sentence,sql What is the name of the player that is pick #69?,"SELECT player FROM table_name_51 WHERE pick__number = ""69""" What is the motive before 2007?,SELECT motive FROM table_name_25 WHERE year < 2007 What is the id of the organization with the maximum number of outcomes and how many outcomes are there?,"SELECT T1.organisation_id , count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1" "What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?",SELECT SUM(total__kg_) FROM table_name_26 WHERE snatch < 110 AND clean_ & _jerk > 120 What is the number of jews asarb where the metro area is philadelphia?,"SELECT number_of_jews__asarb_ FROM table_1131183_2 WHERE metro_area = ""Philadelphia""" "Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?","SELECT COUNT(rank) FROM table_name_6 WHERE bronze > 1 AND silver > 0 AND nation = ""norway (host nation)"" AND total > 16" What is the child sex ration for the population with 37.7% work participation?,"SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = ""37.7%""" "Which Opponent had a Surface of hard, and a Partner of maria elena camerin?","SELECT opponent FROM table_name_26 WHERE surface = ""hard"" AND partner = ""maria elena camerin""" What was the home team score when Brisbane lions was the home team?,"SELECT home_team AS score FROM table_16388398_1 WHERE home_team = ""Brisbane Lions""" Show the name of drivers in descending order of age.,SELECT name FROM driver ORDER BY age DESC What is the name of the instructor who advises the student with the greatest number of total credits?,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 What wiaa classifications does vancouver itech prepratory have?,"SELECT wiaa_classification FROM table_22058547_1 WHERE high_school = ""Vancouver iTech Prepratory""" Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.,SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000 "In the Year 1939, what was the Finish when Al was the League?","SELECT finish FROM table_name_88 WHERE league = ""al"" AND year = 1939" What is the family name of the employee who shipped the order 10521 to CACTU?,SELECT T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10521 AND T2.CustomerID = 'CACTU' Which episode ids are rated 5 stars and have more than 100 votes?,SELECT episode_id FROM Vote WHERE stars = 5 AND votes > 100; What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia?,"SELECT serial_no FROM table_name_90 WHERE entered_service = ""november 1984"" AND owner = ""chicago freight car leasing australia""" Whose permanent address is different from his or her current address? List his or her first name.,SELECT first_name FROM Students WHERE current_address_id != permanent_address_id "For all donors from Texas City, list their donation message and name of the project they donated to.","SELECT T2.donation_message, T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donor_city = 'Texas City'" How many playoffs did Per Mars participate in?,SELECT SUM(T2.GP) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.PlayerName = 'Per Mars' AND T2.GAMETYPE = 'Playoffs' where are the date of ceremony of music festivals with category 'best song' and 'awarded'?,"SELECT Date_of_ceremony FROM music_festival WHERE Category = ""Best Song"" AND RESULT = ""Awarded""" "Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?","SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = ""corvette racing"" AND class = ""gt1"" AND laps = 327" Compute the average age of all the dogs.,SELECT avg(age) FROM Dogs Great! Can you update that list to include the year that the school was founded?,"SELECT School,Founded FROM university WHERE affiliation ! = 'Public'" Which Away team has a Home team of walsall?,"SELECT away_team FROM table_name_3 WHERE home_team = ""walsall""" Who is the actor required when Edna Stricken is the FlatSpin actor?,"SELECT actor_required FROM table_name_24 WHERE flatspin = ""edna stricken""" What is the after for the player kevin streelman?,"SELECT after FROM table_28498999_3 WHERE player = ""Kevin Streelman""" What city is she in?,"SELECT city_code FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" "Name the opponent with attendance of 31,777","SELECT opponent FROM table_name_6 WHERE attendance = ""31,777""" "What is the lowest density of a town with a 13,708 2011 population census ?",SELECT MIN(density) FROM table_name_74 WHERE population_2011_census = 13 OFFSET 708 Write me the titles of the movies starring Jim Carrey.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Jim Carrey' "For all of the 4 cylinder cars, which model has the most horsepower?",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1; What is the color of the grape whose wine products have the highest average price?,SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1 How many customers who are in Norway and have credit line under 220000?,SELECT COUNT(creditLimit) FROM customers WHERE creditLimit < 220000 AND country = 'Norway' "Among the players who went to high school in Chicago, how many of them belongs to the west conference?",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.hsCity = 'Chicago' AND T2.conference = 'West' When did the Broncos play the Miami Dolphins?,"SELECT date FROM table_17294353_1 WHERE opponent = ""Miami Dolphins""" What is the Home team when Motagua is the Away team?,"SELECT home FROM table_name_68 WHERE away = ""motagua""" "Calculate the percentage of women who have participated in Equestrianism Mixed Three-Day Event, Individual.","SELECT CAST(COUNT(CASE WHEN T1.gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN event AS T4 ON T3.event_id = T4.id WHERE T4.event_name = 'Equestrianism Mixed Three-Day Event, Individual'" Find the semester when both Master students and Bachelor students got enrolled in.,SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor' "What is Record, when High Rebounds is ""Tyson Chandler (6)""?","SELECT record FROM table_name_68 WHERE high_rebounds = ""tyson chandler (6)""" List the distinct payment method codes with the number of orders made,"SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code" Who is the senator for district 24?,SELECT member_senator FROM table_11948857_1 WHERE district = 24 Can you show me the average enrollment of all schools?,SELECT avg ( enrollment ) FROM school How tall is the contestant from Ecuador?,"SELECT height__ft_ FROM table_20669355_2 WHERE country = ""Ecuador""" Show the nations that have both hosts older than 45 and hosts younger than 35.,SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 What is the longest duration for a bike trip starting on a day with a fog in 2013?,SELECT MAX(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2013%' AND T2.events = 'Fog' AND T2.zip_code = 94107 What country has a To par of +1 and the score of 71-76-70=217?,"SELECT country FROM table_name_25 WHERE to_par = ""+1"" AND score = 71 - 76 - 70 = 217" What were the goals at Sydney?,"SELECT goals FROM table_name_16 WHERE venue = ""sydney""" Show names of actors and names of musicals they are in.,"SELECT T1.Name , T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID" What is the average amount due for all the payments?,SELECT AVG(amount_due) FROM payments What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926?,"SELECT AVG(year_made) FROM table_name_85 WHERE iwcr_no = ""5"" AND year_withdrawn > 1926" What is the title of the song that received 259 points?,SELECT song_title FROM table_13805773_2 WHERE points = 259 List the number of games that ended up with 5-0 in Greece.,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Greece' AND T1.FTHG = 5 AND T1.FTAG = 0 "Please list any five app categories that are related to games, along with their label ID.","SELECT category, label_id FROM label_categories WHERE category LIKE '%game%' LIMIT 5" what is the number of different channel owners?,SELECT count(DISTINCT OWNER) FROM channel "Sum up the number of students enlisted in foreign legion, peace corps and army.","SELECT COUNT(name) FROM enlist WHERE organ IN ('army', 'peace_corps', 'foreign_legion')" Who was Carlton's away team opponent?,"SELECT away_team FROM table_name_79 WHERE home_team = ""carlton""" what is the title of the episode with the production code of ad1a22?,"SELECT title FROM table_name_1 WHERE production_code = ""ad1a22""" "Hi, what journalist had worked the most amount of years?",SELECT journalist_ID FROM journalist ORDER BY Years_working DESC LIMIT 1 What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?,"SELECT SUM(grid) FROM table_name_7 WHERE laps > 66 AND driver = ""michael schumacher""" Which stadiums have an average attendance of 13840?,SELECT stadium FROM table_11208143_9 WHERE average = 13840 What are the changes from 2009 to 2010 in Tunisia?,"SELECT change__2009_to_2010_ FROM table_14752049_2 WHERE country = ""Tunisia""" "What is No. 1, when Region (Year) is Mississippi (2010)?","SELECT no_1 FROM table_name_25 WHERE region__year_ = ""mississippi (2010)""" And what decisions resulted from those tryouts?,SELECT decision FROM tryout where pPos = ( SELECT pPos FROM tryout GROUP BY pPos ORDER BY count ( * ) DESC LIMIT 1 ) "Of all the products ordered in order no. 10248, which product has the highest user satisfaction?",SELECT T1.ProductName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10248 ORDER BY T1.ReorderLevel DESC LIMIT 1 "Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?","SELECT MIN(points) FROM table_name_51 WHERE make = ""chevrolet"" AND driver = ""sterling marlin"" AND car__number < 14" "Find the names and descriptions of courses that belong to the subject named ""Computer Science"".","SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Computer Science""" "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.","SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009" What is the postion when the nhl team is los angeles kings?,"SELECT position FROM table_2850912_7 WHERE nhl_team = ""Los Angeles Kings""" What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?,"SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = ""pacific marine"" AND percentage_of_total_area__foreez_ > 3.1" "Among the cars with an engine displacement of no less than 400 cubic millimeter, how many cars cost at least 30,000?",SELECT COUNT(*) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.displacement > 400 AND T2.price > 30000 "WHAT IS THE HIGHEST ROUND FOR MIKE TAYLOR, WITH PICK HIGHER THAN 55?","SELECT MAX(round) FROM table_name_86 WHERE player = ""mike taylor"" AND pick > 55" "Provide order number, warehouse code of customers Elorac, Corp.","SELECT DISTINCT T1.OrderNumber, T1.WarehouseCode FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T2.`Customer Names` = 'Elorac, Corp'" What are the ages and genders of the LG L70 users?,"SELECT T2.age, T2.gender FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'LG' AND T1.device_model = 'L70'" What date did they each become customers?,SELECT date_became_customer FROM customers where customer_name in ( SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ) "What is the Player that has a Place of t2, and a Score of 74-70-68=212?","SELECT player FROM table_name_64 WHERE place = ""t2"" AND score = 74 - 70 - 68 = 212" Tell me the start date and start station id for id 900504?,"select start_date, start_station_name from trip where id = 900504" List down all the person IDs who taught course ID of 18.,SELECT p_id FROM taughtBy WHERE course_id = 18 What is the second that has jordan moulton as the lead?,"SELECT second FROM table_name_97 WHERE lead = ""jordan moulton""" Which customer has the most addresses?,"SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ORDER BY COUNT(T2.customer_id) DESC LIMIT 1" What school is he the catcher for?,"SELECT school FROM table_11677100_11 WHERE position = ""Catcher""" Show the height of the mountain climbed by the climber with the maximum points.,SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1 How many tourists did not make any visit?,SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ) Which staff have contacted which engineers? List the staff name and the engineer first name and last name.,"SELECT T1.staff_name , T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id" Which name has a percentage of 0.59%?,"SELECT name FROM table_name_28 WHERE percentage = ""0.59%""" how many colors are in list in the description?,SELECT count ( * ) FROM Ref_colors How many institutes are private and not-for profit?,SELECT COUNT(*) FROM institution_details WHERE control = 'Private not-for-profit' "Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?",SELECT MIN(snatch) FROM table_name_25 WHERE clean_ & _jerk = 180 AND bodyweight < 69.83 What was the score on the October 28 game?,"SELECT final_score FROM table_23601267_2 WHERE date = ""October 28""" in how many of the arkansas colomel the county was pope,"SELECT COUNT(colonel) FROM table_29458735_5 WHERE county = ""Pope""" Can you add to the table the dates of those transactions?,"SELECT date_of_transaction,share_count, amount_of_transaction FROM TRANSACTIONS where share_count > = 100 or amount_of_transaction > = 100" What is the To par of the Player with a Score of 73-70-71-72=286?,SELECT to_par FROM table_name_35 WHERE score = 73 - 70 - 71 - 72 = 286 "What is Candidate Name, when Target/Approach is ""vaccine to amyloid-beta""?","SELECT candidate_name FROM table_name_58 WHERE target_approach = ""vaccine to amyloid-beta""" What is his lowest number of wins?,SELECT MIN(wins) FROM table_2216245_2 what's the result for district ohio 2,"SELECT result FROM table_1342013_34 WHERE district = ""Ohio 2""" What is the release Date of Catalog RR 8655-2?,"SELECT date FROM table_name_39 WHERE catalog = ""rr 8655-2""" What's the Serie A when the coppa italia was 5?,SELECT AVG(serie_a) FROM table_name_79 WHERE coppa_italia = 5 What are the notes for a Type of 0-6-0t?,"SELECT notes FROM table_name_37 WHERE type = ""0-6-0t""" What is the Height of Junior Meghan Austin?,"SELECT height FROM table_name_59 WHERE year = ""junior"" AND name = ""meghan austin""" How many events did not have any participants?,SELECT count(*) FROM EVENTS WHERE event_id NOT IN (SELECT event_id FROM Participants_in_Events) Which school(s) had a wide receiver drafted in round 4?,"SELECT school_club_team FROM table_name_16 WHERE round > 4 AND position = ""wide receiver""" Mention the most populated city and median income of the store in Florida state.,"SELECT `City Name`, `Median Income` FROM `Store Locations` WHERE State = 'Florida' ORDER BY Population DESC LIMIT 1" "In total, how many Hispanic male students graduated from Amridge University?",SELECT SUM(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T1.chronname = 'Amridge University' AND T2.gender = 'M' AND T2.race = 'H' What was the date of the game where Geelong was the home team?,"SELECT date FROM table_name_18 WHERE home_team = ""geelong""" what is the react when the country is sweden and the lane is higher than 6?,"SELECT SUM(react) FROM table_name_65 WHERE country = ""sweden"" AND lane > 6" Find the department name of the instructor whose name contains 'Soisalon'.,SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' Name the number of countries that have the us dollar,"SELECT COUNT(country) FROM table_2764267_2 WHERE currency = ""US dollar""" What was the average attendance when the New York Mets were opponents with a record of 51-33?,"SELECT AVG(attendance) FROM table_name_81 WHERE opponent = ""new york mets"" AND record = ""51-33""" Which team did David McLay play for?,"SELECT college_junior_club_team FROM table_2850912_3 WHERE player = ""David McLay""" What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?,"SELECT SUM(points_2) FROM table_name_98 WHERE goals_for > 52 AND team = ""altrincham""" Which Ofsted has a Capacity of 1677?,SELECT ofsted FROM table_name_83 WHERE capacity = 1677 What are the names of all campuses located at Chico?,"SELECT campus FROM campuses WHERE LOCATION = ""Chico""" What is the pali word for pride in poison/klesha?,"SELECT pali FROM table_name_87 WHERE poison_klesha = ""pride""" Can you show me the first names of customers who have a rental date on or before 2005-08-23?,SELECT first_name FROM customer WHERE customer_id IN ( SELECT customer_id FROM rental WHERE rental_date < = '2005-08-23 00:00:00' ) What is the name of the deparment with the highest enrollment?,SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1 What is the name and category of the app with the highest amount of -1 sentiment polarity score?,"SELECT DISTINCT T1.App, T1.Category FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment_Polarity = '-1.0'" For driver Mark Skaife what is the result for race 1?,"SELECT race_1 FROM table_11581984_2 WHERE driver = ""Mark Skaife""" What number of voters did Queens have when Staten Island had 295 voters?,"SELECT queens FROM table_1108394_34 WHERE richmond_[staten_is] = ""295""" "How many Points have a Position larger than 3, and a Played smaller than 14?",SELECT COUNT(points) FROM table_name_42 WHERE position > 3 AND played < 14 "list the first and last names, and the addresses of all employees in the ascending order of their birth date.","SELECT fname , lname , address FROM employee ORDER BY Bdate" How many hours do the players train on average?,SELECT avg(HS) FROM Player Show the most common nationality of pilots.,SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 "what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28?",SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 28 What party is the winner K. Anbazhagan from?,"SELECT party AS a FROM table_22756549_1 WHERE winner = ""K. Anbazhagan""" "Among the easiest courses, what is the name of the course where most students got an A?",SELECT T2.name FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T1.grade = 'A' AND T2.diff = 1 GROUP BY T2.name ORDER BY COUNT(T1.student_id) DESC LIMIT 1 What was the least quantity of items purchased? | do you mean the id of product or the id of order? | ID of the order please.,select order_id from Order_items order by order_quantity limit 1 How many directors were in Season 2?,SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 2 What is the date with a Japan region?,"SELECT date FROM table_name_70 WHERE region = ""japan""" How many departments have David Bradley been in?,SELECT COUNT(T3.DepartmentID) FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' Which institution has the most papers? Find the name of the institution.,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1 Show names of musicals which have at least three actors.,SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3 Which movie did the company 'Radiant Film GmbH' work on?,SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Radiant Film GmbH' List all the distinct cities,SELECT DISTINCT city FROM addresses Please list the names of the restaurants that had a low risk violation in inspections in 2014.,"SELECT DISTINCT T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2014' AND T1.risk_category = 'Low Risk'" Who won when Jamie Green had the best lap?,"SELECT winning_driver FROM table_21321935_2 WHERE fastest_lap = ""Jamie Green""" What are the names of poker players in descending order of earnings?,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC Which time has a Rider of anthony west?,"SELECT time FROM table_name_66 WHERE rider = ""anthony west""" "What is the order ID of the security-Tint Envelopes product ordered on June 3, 2013, in the Central region?",SELECT DISTINCT T1.`Order ID` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Security-Tint Envelopes' AND T1.`Order Date` = '2013-06-03' What are the names of all tryout participants who are from the largest college?,SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) S: What IS the largest college? "What is Score, when Set 3 is 17-25?","SELECT score FROM table_name_67 WHERE set_3 = ""17-25""" Out of those 2 which has less than 2 fault logs?,"SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) < 2" What year was the player with the height 2.04 born?,"SELECT MIN(year_born) FROM table_12962773_12 WHERE height = ""2.04""" "Return the decor of the room named ""Recluse and defiance"".","SELECT decor FROM Rooms WHERE roomName = ""Recluse and defiance"";" "Determine the email and Code of employee who are working at United State, state CA","SELECT T1.email, T1.employeeNumber FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T2.country = 'USA' AND T2.state = 'CA' GROUP BY T1.email, T1.officeCode" What is the lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?,"SELECT MIN(bronze) FROM table_name_29 WHERE ""total"" > 18 AND sport = ""total"" AND silver < 143" Name the club with date of appointment of 1 november 2007,"SELECT club FROM table_name_67 WHERE date_of_appointment = ""1 november 2007""" "How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?","SELECT Kids FROM Reservations WHERE CheckIn = ""2010-09-21"" AND FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";" "What was the number of goals did player Id ""dyeba01"" make in the 1921 Stanley Cup finals?",SELECT G FROM ScoringSC WHERE playerID = 'dyeba01' AND year = 1921 how many class is there,SELECT count ( * ) FROM CLASS What was the result and score of the game on February 22?,"SELECT result FROM table_name_5 WHERE date = ""february 22""" What Secretary has an Internal CO of isabel voets?,"SELECT secretary FROM table_name_90 WHERE internal_co = ""isabel voets""" What about Cash?,"SELECT count ( * ) FROM customers where payment_method = ""Cash""" What city and state is the Lancers mascot located?,"SELECT location FROM table_11044765_1 WHERE mascot = ""Lancers""" What is the french word for the Russian word filtrovat (фильтровать)?,"SELECT french FROM table_15040_8 WHERE russian = ""filtrovat (фильтровать)""" How many lessons were in cancelled state?,"SELECT count(*) FROM Lessons WHERE lesson_status_code = ""Cancelled"";" Name the number of episode summary for jesse csincsak,"SELECT COUNT(episode) AS Summary FROM table_2140071_10 WHERE coach = ""Jesse Csincsak""" What is the blank ends record when the win record is higher than 6.0?,SELECT blank_ends FROM table_29565673_2 WHERE w > 6.0 "How many images have ""picture"" as their attribute class and ""bear"" as their object class?",SELECT COUNT(T2.IMG_ID) FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.ATT_CLASS = 'picture' AND T4.OBJ_CLASS = 'bear' What is the savings balance of the account belonging to the customer with the highest checking balance?,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 Name the catalog for alfa records and cd format,"SELECT catalog FROM table_name_84 WHERE label = ""alfa records"" AND format = ""cd""" Show the names of customers who have both an order in completed status and an order in part status.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part' What day did Footscray play as the home team?,"SELECT date FROM table_name_20 WHERE home_team = ""footscray""" What is the teaching language for Master of Quantitative Finance?,"SELECT teaching_language FROM table_name_69 WHERE program = ""master of quantitative finance""" Which venue did collingsworth play essendon in when they had the 3rd position on the ladder?,"SELECT venue FROM table_29033869_3 WHERE opponent = ""Essendon"" AND position_on_ladder = ""3rd""" "What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?","SELECT SUM(year) FROM table_name_39 WHERE attendance = ""95,000"" AND runner_up = ""dresdner sc""" Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= ""2009-01-01"" AND T2.date_order_placed <= ""2010-01-01""" How many centerfold models were there when the cover model was Torrie Wilson?,"SELECT COUNT(centerfold_model) FROM table_1566852_4 WHERE cover_model = ""Torrie Wilson""" On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?,"SELECT date FROM table_name_84 WHERE score = ""5-2"" AND loss = ""greinke (1-2)""" What is the record of game 26 with beno udrih (4) as the highest assists?,"SELECT record FROM table_name_41 WHERE high_assists = ""beno udrih (4)"" AND game = 26" Return the number of accounts that the customer with the first name Art and last name Turcotte has.,"SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Art"" AND T2.customer_last_name = ""Turcotte""" List the products ordered by Matt Abelman from the Western store in 2013.,"SELECT DISTINCT T3.`Product Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Matt Abelman' AND STRFTIME('%Y', T1.`Order Date`) = '2013'" "What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?","SELECT MAX(grid) FROM table_name_4 WHERE time_retired = ""+6 laps"" AND laps < 69" Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.,"SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;" What are the register year of Jeremy Jarmon?,"SELECT T1.register_year FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.name = ""Jeremy Jarmon""" Who were all the candidates in elections in which Steve Chabot was a candidate?,"SELECT candidates FROM table_1805191_36 WHERE incumbent = ""Steve Chabot""" Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency?,"SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = ""prolonged"" AND condition = ""factor v deficiency""" What rating did Jill give for HL Mountain Pedal?,SELECT T1.Rating FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ReviewerName = 'Jill' AND T2.Name = 'HL Mountain Pedal' What are the ids of all students along with how many sports and games did they play?,"SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID" What is the installation date for each ending station on all the trips?,"SELECT T1.id , T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id" What is the score for the team that has a record of 80-64?,"SELECT score FROM table_name_43 WHERE record = ""80-64""" "Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?","SELECT SUM(attendance) FROM table_name_65 WHERE date = ""december 22, 1985"" AND week < 16" Name the college for nate binder,"SELECT college FROM table_25017530_5 WHERE player = ""Nate Binder""" What is niurbi encarnación ynoa's height?,"SELECT height FROM table_name_95 WHERE contestant = ""niurbi encarnación ynoa""" "Please list the full name, date of birth, and email id of the elderly clients in descending order of age.","SELECT first, middle, last, year, month , day, email FROM client WHERE age > 65 ORDER BY age DESC" What is the code of the country with the most players?,SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1 How films are produced by each studio?,"SELECT Studio , COUNT(*) FROM film GROUP BY Studio" Give the nationality that is most common across all people.,SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 "What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0?",SELECT MIN(population__1_july_2005_est_) FROM table_name_5 WHERE population_density__per_km²_ = 0 Which final round had a first round of 20?,SELECT final_round FROM table_name_22 WHERE first_round = 20 "Away result of 1–1, and a Round of 1r, and a Season of 1967-68 involves what club?","SELECT club FROM table_name_92 WHERE away_result = ""1–1"" AND round = ""1r"" AND season = ""1967-68""" What was the name of the opponent that having a TV time of Bye?,"SELECT opponent FROM table_name_19 WHERE tv_time = ""bye""" Who did the Lyrics (l) / Music (m) for the song in 23 Place?,"SELECT lyrics__l____music__m_ FROM table_name_76 WHERE place = ""23""" Which away team played at Kardinia Park?,"SELECT away_team FROM table_name_35 WHERE venue = ""kardinia park""" Please list all sale team names which had orders on 5/31/2018.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T1.OrderDate = '5/31/18' THEN T2.`Sales Team` ELSE NULL END AS T FROM `Sales Orders` T1 INNER JOIN `Sales Team` T2 ON T2.SalesTeamID = T1._SalesTeamID ) WHERE T IS NOT NULL "What is the Losing bonus, when the value for Points is 43?","SELECT losing_bonus FROM table_name_61 WHERE points = ""43""" Find the names of nurses who are on call.,SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse "What are the different product names, and what is the sum of quantity ordered for each product?","SELECT T2.product_name , sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name" What is the Diameter (mi) when the Longitude is 79.8° e?,"SELECT diameter__mi_ FROM table_name_65 WHERE longitude = ""79.8° e""" What are the codes and names of the cheapest products in each category?,"SELECT code , name , min(price) FROM products GROUP BY name" "What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?","SELECT MAX(seats_2006) FROM table_name_5 WHERE parties_and_voter_communities = ""bürger für groß-rohrheim"" AND _percentage_2006 < 21.3" In what Games did Patrick Etolu compete?,"SELECT games FROM table_name_60 WHERE name = ""patrick etolu""" What are the codes corresponding to document types for which there are less than 3 documents?,SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3 What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5?,SELECT COUNT(silver) FROM table_name_26 WHERE bronze > 1 AND rank < 5 I need to know the number of checking accounts for each account name.,"SELECT count ( * ) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name" "What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.",SELECT LastReceiptCost - StandardPrice FROM ProductVendor ORDER BY StandardPrice DESC LIMIT 1 Show the names of editors of age 24.,SELECT Name FROM editor WHERE Age = 24 Thank you! Can you show me a list of all of the book titles published by Alyson?,select Book_Title from book_club where Publisher = 'Alyson' When 8.9% is the electricity reduction percentage what is the £ saved?,"SELECT £_saved FROM table_29538735_1 WHERE _percentage_electricity_reduction = ""8.9%""" Give the actual elapsed time of the flights with air carrier named Semo Aviation Inc.: SEM.,SELECT T2.ACTUAL_ELAPSED_TIME FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Semo Aviation Inc.: SEM' Which Centerfold model has a Cover model of irina voronina?,"SELECT centerfold_model FROM table_name_81 WHERE cover_model = ""irina voronina""" How many schools in urban area requested for books resources?,SELECT COUNT(T2.schoolid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.resource_type = 'Books' AND T2.school_metro = 'urban' "How many were in attendance during the game on January 9, 1988?","SELECT attendance FROM table_16119656_1 WHERE date = ""January 9, 1988""" How many suburban metros are there in Livingston Parish School District?,SELECT COUNT(projectid) FROM projects WHERE school_district = 'Livingston Parish School Dist' AND school_metro = 'suburban' What is the engine for the car with 3 points?,SELECT engine FROM table_name_6 WHERE points = 3 List all the load shapes of all head cars of each train and identify which load shape has the highest number. Calculate the percentage of the trains with the said head car that are running eas,"SELECT DISTINCT T3.load_shape FROM ( SELECT load_shape, train_id FROM cars WHERE position = 1 ORDER BY train_id DESC ) AS T3 UNION ALL SELECT T4.load_shape FROM ( SELECT load_shape, train_id FROM cars WHERE position = 1 ORDER BY train_id DESC LIMIT 1 ) AS T4 UNION ALL SELECT (CAST(COUNT(DISTINCT CASE WHEN T2.direction = 'east' THEN T2.id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.id)) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_shape = ( SELECT T4.load_shape FROM ( SELECT load_shape, train_id FROM cars AS T WHERE position = 1 ORDER BY train_id DESC LIMIT 1 ) AS T4 )" Which away team has a tie number of 14?,"SELECT away_team FROM table_name_62 WHERE tie_no = ""14""" What was the maximum vertical measurement if the horizon measurement is 640?,SELECT MAX(vertical) FROM table_272313_1 WHERE horizontal = 640 Which department offers the most number of degrees? List department name and id.,"SELECT T2.department_name , T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1" What is her age?,"SELECT age FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" Find the first and last name of students who are living in the dorms that have amenity TV Lounge.,"SELECT T1.fname , T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" What are the distinct majors that students with treasurer votes are studying?,SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote How much lower in percentage is the unit price of Ikura in order no. 10273 than its standard unit price?,SELECT CAST((T1.UnitPrice - T2.UnitPrice) AS REAL) * 100 / T1.UnitPrice FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10273 AND T1.ProductName = 'Ikura' How many statements do we have?,SELECT count(*) FROM Statements "For each payment method, return how many customers use it.","SELECT payment_method_code , count(*) FROM customers GROUP BY payment_method_code" "What is the mean vertical relief in feet when the Peak Name is Tower near mead wood road entrance and the elevation in feet is more than 1,410?","SELECT AVG(vertical_relief__ft_) FROM table_name_87 WHERE peak_name = ""tower near mead wood road entrance"" AND elevation__ft_ > 1 OFFSET 410" Who was the runner up when the won by 4 strokes?,"SELECT runner_s__up FROM table_21649285_2 WHERE margin_of_victory = ""4 strokes""" How many professors have a Ph.D. in each department?,"SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code" Please list the names of all the products ordered by Aimee Bixby in 2016.,"SELECT DISTINCT T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND STRFTIME('%Y', T2.`Ship Date`) = '2016'" What are the job ids for jobs done more than once for a period of more than 300 days?,SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2 what are the names of people who did not participate in the candidate election.,SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate) what is the minimum attendance with score 8.16 (64) – 8.12 (60),"SELECT MIN(attendance) FROM table_10566855_1 WHERE score = ""8.16 (64) – 8.12 (60)""" "What was the Attendance on September 11, 1983?","SELECT attendance FROM table_name_49 WHERE date = ""september 11, 1983""" "Show the id, name of each festival and the number of artworks it has nominated.","SELECT T1.Festival_ID , T3.Festival_Name , COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID" What is the card type code with most number of cards?,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY COUNT(*) DESC LIMIT 1 What is the owner of the channel that has the highest rating ratio?,SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1 Which opponent has 32194 as the attendance?,SELECT opponent FROM table_23466021_4 WHERE attendance = 32194 How many laps for a grid of over 18 and retired due to electrical failure?,"SELECT SUM(laps) FROM table_name_31 WHERE grid > 18 AND time_retired = ""electrical""" What are the themes and locations of parties?,"SELECT Party_Theme , LOCATION FROM party" list the dates of debates,SELECT Date FROM debate The game in week 11 has what result?,SELECT result FROM table_name_70 WHERE week = 11 What is Tatyana Gubina's Weight?,"SELECT weight FROM table_name_43 WHERE name = ""tatyana gubina""" What is the total number of weeks that the buffalo bills played against the San Diego Chargers?,"SELECT SUM(week) FROM table_name_49 WHERE opponent = ""san diego chargers""" What`s the score in October 7.,"SELECT score FROM table_27734286_1 WHERE date = ""October 7""" How many orders has Cordy Dumbarton made?,SELECT COUNT(*) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Cordy' AND T1.last_name = 'Dumbarton' State the address of drivers who transported the shipment with weight greater than 50000 pounds.,SELECT T2.address FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id GROUP BY T2.driver_id HAVING SUM(T1.weight) > 50000 "What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512?","SELECT byte_string FROM table_name_23 WHERE memory_map = ""standard"" AND decimal = ""standard"" AND floating_point = ""standard"" AND max_memory__kwords_ < 512" What is the name of department where has the largest number of professors with a Ph.D. degree?,"SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1" "Show the census ranking of cities whose status are not ""Village"".","SELECT Census_Ranking FROM city WHERE Status <> ""Village""" What home team plays at Princes Park?,"SELECT home_team FROM table_name_62 WHERE venue = ""princes park""" "what is the institution at akron, oh?","SELECT institution FROM table_name_78 WHERE location = ""akron, oh""" Mention the first name of employee who took care the order id 10250.,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10250" "What home team has a score of 2–1, when the away team was Telford United?","SELECT home_team FROM table_name_10 WHERE score = ""2–1"" AND away_team = ""telford united""" What is the date of the Rome to Florence course?,"SELECT date FROM table_name_44 WHERE course = ""rome to florence""" What School/Club Team has a Player named Juan Dixon and a Position of guard?,"SELECT school_club_team FROM table_name_58 WHERE position = ""guard"" AND player = ""juan dixon""" What is the price of the book with ISBN 9780763628321?,SELECT T2.price FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.isbn13 = 9780763628321 Tell me the average wins for class of 50cc and rank of 8th,"SELECT AVG(wins) FROM table_name_47 WHERE class = ""50cc"" AND rank = ""8th""" What is Gary David Saunders' Tenure?,"SELECT tenure FROM table_name_23 WHERE name = ""gary david saunders""" Find the title and score of the movie with the lowest rating among all movies directed by each director.,"SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director" whatthe minimum round where grand prix is german grand prix,"SELECT MIN(round) FROM table_1137704_2 WHERE grand_prix = ""German grand_prix""" What is the service type code of thing id 2?,select service_type_code from things where thing_id = 2 Show the outcome code of mailshots along with the number of mailshots in each outcome code.,"SELECT outcome_code , count(*) FROM mailshot_customers GROUP BY outcome_code" How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?,"SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = ""#1 Patrón Highcroft Racing"" AND gtc_winning_team = ""#81 Alex Job Racing""" "What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?","SELECT MAX(extra_points) FROM table_name_38 WHERE player = ""albert herrnstein"" AND points > 15" What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21',"SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'" What were the starts when the points dropped 18?,"SELECT races__starts_ FROM table_24937583_1 WHERE points__dropped_points_ = ""18""" List the ID of all professors who are not faculty member along with the courses taught by him/her.,"SELECT T2.p_id, T2.course_id FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 AND T1.hasPosition <> 0" which providence's soccer stadium was founded in 2005?,SELECT province FROM table_27369069_1 WHERE founded = 2005 "What is the Outcome when christophe rochus was partner, on 31 july 2005?","SELECT outcome FROM table_name_38 WHERE partner = ""christophe rochus"" AND date = ""31 july 2005""" When Collingwood was the home team who was the opposing away team?,"SELECT away_team FROM table_name_52 WHERE home_team = ""collingwood""" "Which menu page of ""Ritz Carlton"" has the biggest height?",SELECT T1.page_number FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.name = 'Ritz Carlton' ORDER BY T1.full_height DESC LIMIT 1 what is the customer name of customer id 3,SELECT customer_name FROM Customers WHERE customer_id = 3 "If team two is San Lorenzo, how many were on team one?","SELECT COUNT(team__number1) FROM table_16795394_3 WHERE team__number2 = ""San Lorenzo""" Find the average price of wines that are not produced from Sonoma county.,SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') What were the US Open's final scores?,"SELECT score_in_the_final FROM table_22597626_1 WHERE championship = ""US Open""" What is the lowest 1971 number of the Macedonian population with a 2002 value greater than 133 and a 1991 value less than 171?,SELECT MIN(number_1971) FROM table_name_15 WHERE 2002 > 133 AND 1991 < 171 "Show me the names of the workshop groups that have bookings with status code ""stop""?","SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop""" How many silver medals did the country that won 20 gold medals win in the 1955 Pan American Games?,SELECT SUM(silver) FROM table_name_62 WHERE gold = 20 What is the average price of the orders made by a customer in Germany?,SELECT AVG(T3.o_totalprice) FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN orders AS T3 ON T2.c_custkey = T3.o_custkey WHERE T1.n_name = 'GERMANY' What are first and last names of players participating in all star game in 1998?,"SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998" "What is the number of people on board at Iberia Airline, with the aircraft type of lockheed l-1049g?","SELECT AVG(people_on_board) FROM table_name_48 WHERE airline = ""iberia"" AND aircraft_type = ""lockheed l-1049g""" What is the lowest heat that had a time of 1:02.85 in a lane larger than 7?,"SELECT MIN(heat) FROM table_name_40 WHERE time = ""1:02.85"" AND lane > 7" What is the email id of Iron Man?,"select email from user_profiles where name = ""Iron Man""" Which team has a Game of 49?,SELECT team FROM table_name_18 WHERE game = 49 Which businesses are no longer in business but have a low number of votes useful?,SELECT DISTINCT T1.business_id FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.active LIKE 'FALSE' AND T1.review_votes_useful LIKE 'Low' Which country has the smallest land area in square kilometers for 19 consecutive years starting from year 1961? Indicate how much is its land area in square kilometers in those years and the income group of the country.,"SELECT T1.CountryName, SUM(T1.Value) area, T2.IncomeGroup FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Land area (sq. km)' AND T1.Year >= 1961 AND T1.Year < 1980 GROUP BY T1.CountryCode ORDER BY SUM(T1.Value) ASC LIMIT 1" Calculate the bmi of the competitor id 147420.,SELECT CAST(T1.weight AS REAL) / (T1.height * T1.height) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.id = 147420 What is the most common status across all cities?,SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 List the countries having more than 4 addresses listed.,SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4 What is mario domínguez's average Grid?,"SELECT AVG(grid) FROM table_name_88 WHERE driver = ""mario domínguez""" Which country have completed vital registration? List all the countries.,SELECT ShortName FROM Country WHERE VitalRegistrationComplete = 'Yes' How many podiums for the driver with 18 stage wins?,SELECT COUNT(podiums) FROM table_18811741_15 WHERE stage_wins = 18 "What's the total long for an avg/g over 0.2, fewer than 2 loss, and a gain less than 8?",SELECT COUNT(long) FROM table_name_30 WHERE avg_g > 0.2 AND loss < 2 AND gain < 8 What was the score for the match where the home team was Leicester City?,"SELECT score FROM table_name_16 WHERE home_team = ""leicester city""" Can you give me the zip_postcode for Colorado,SELECT zip_postcode FROM addresses where state_province_county = 'Colorado' Indicate the id of the reviewer whose itunes id is 1516665400.,SELECT T2.author_id FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.itunes_id = 1516665400 what is Tiger woods's age,"SELECT age FROM head where name = ""Tiger Woods""" which rooms have a king bed?,SELECT * FROM Rooms WHERE bedtype = 'King' how many purchases did members with level 5 make?,SELECT count ( * ) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 5 Count the number of matches.,SELECT count(*) FROM matches Show all destinations and the number of flights to each destination.,"SELECT destination , count(*) FROM Flight GROUP BY destination" Give the Finish for a Stage that is larger than 15,SELECT finish FROM table_name_44 WHERE stage > 15 What is the language most often used in songs with resolution below 500?,SELECT languages FROM song WHERE resolution < 500 GROUP BY languages ORDER BY count ( * ) DESC LIMIT 1 What was the record at week 7,SELECT record FROM table_11391448_2 WHERE week = 7 What is the total number of hours per week and number of games played by students under 20?,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20" "WHICH Date has a Venue of lancaster park , christchurch?","SELECT date FROM table_name_14 WHERE venue = ""lancaster park , christchurch""" "What is Home Team, when Away Team is ""Brentford""?","SELECT home_team FROM table_name_67 WHERE away_team = ""brentford""" What is the alphabetically ordered list of all the distinct names of nurses?,SELECT DISTINCT name FROM nurse ORDER BY name What is the country that has the most perpetrators?,"SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1" How many ships are there?,SELECT count(*) FROM ship Could you please show me all the student IDs with the number of sports?,"SELECT StuID , count ( * ) FROM Sportsinfo GROUP BY StuID" How many people watched season 1?,"SELECT viewers__in_millions_ FROM table_name_69 WHERE season = ""1""" How about her a id,SELECT T2.a_id FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id where T1.name = 'Helen' What is the average bronze with a total of 15 and less than 2 gold?,SELECT AVG(bronze) FROM table_name_69 WHERE total = 15 AND gold < 2 "How many paragraphs are there in the scene whose description is ""A Sea-port in Cyprus. An open place near the quay.""?",SELECT SUM(T2.ParagraphNum) FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id WHERE T1.Description = 'A Sea-port in Cyprus. An open place near the quay.' What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida?,"SELECT COUNT(swimsuit) FROM table_name_35 WHERE evening_gown > 9.48 AND country = ""florida"" AND interview > 8.94" How many of those 3 are currently teaching courses?,SELECT count ( DISTINCT t3.emp_num ) FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T3.dept_code = 'ACCT' "Find all the songs performed by artist with last name ""Heilo""","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = ""Heilo""" How many picks did the College of USC wind up getting?,"SELECT COUNT(pick__number) FROM table_name_67 WHERE college = ""usc""" Show the names of high school students and their corresponding number of friends.,"SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id" What is the gender and name of the artist who sang the song with the smallest resolution?,"SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1" "What's the name of the athlete with a Snatch larger than 140, Bodyweight smaller than 84.55, and Clean and Jerk of 192.5?","SELECT name FROM table_name_62 WHERE snatch > 140 AND bodyweight < 84.55 AND clean_ & _jerk = ""192.5""" Which 2 countries' border span across the longest length? Provide the country's full name.,"SELECT T1.Name, T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 ORDER BY T2.Length DESC LIMIT 1" List the occupation and income of male customers with an level of education of 4 to 6.,"SELECT T1.OCCUPATION, T2.INCOME_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.EDUCATIONNUM >= 4 AND T1.EDUCATIONNUM <= 6 AND T1.SEX = 'Male'" "Which team had the attendance of 16,468 and lost?","SELECT loss FROM table_name_61 WHERE attendance = ""16,468""" Which record has a Team of manchester yankees?,"SELECT record FROM table_name_43 WHERE team = ""manchester yankees""" What capital's county had a population of 730129 as of 2009?,SELECT capital FROM table_16278894_1 WHERE population_census_2009 = 730129 What is Mike Souchak's to par?,"SELECT to_par FROM table_name_89 WHERE player = ""mike souchak""" What are the names of players from the dr congo?,"SELECT name FROM table_29743928_3 WHERE country = ""DR Congo""" Name the episode with maritza reveron,"SELECT episode FROM table_2140071_10 WHERE coach = ""Maritza Reveron""" "If fitzroy is the Away team, what Date did they play?","SELECT date FROM table_name_97 WHERE away_team = ""fitzroy""" What is the mean longitude for all stations that have never had more than 10 bikes available?,SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available) > 10) Show different types of ships and the average tonnage of ships of each type.,"SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE" How many of the shipments bound for New York City were shipped to Harry's Hot Rod Auto and Truck Accessories?,SELECT COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T3.city_name = 'New York' AND T1.cust_name = 'Harry''s Hot Rod Auto & Truck Accessories' How much was the transfer fee when n is 2?,SELECT transfer_fee FROM table_22810095_8 WHERE n = 2 What Pastoral Region has 3 Cemeteries?,SELECT pastoral_region FROM table_name_57 WHERE cemeteries = 3 List the person IDs and course levels of the affiliated professors in faculty.,"SELECT T1.p_id, T3.courseLevel FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id WHERE T1.hasPosition = 'Faculty_aff'" What is the care plan description of the prevalent disease with the highest prevalence percentage?,"SELECT T4.DESCRIPTION FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON T2.DESCRIPTION = T1.ITEM INNER JOIN encounters AS T3 ON T2.ENCOUNTER = T3.ID INNER JOIN careplans AS T4 ON T4.ENCOUNTER = T3.ID ORDER BY T1.""PREVALENCE PERCENTAGE"" DESC LIMIT 1" "List the clubs that have at least a member with advisor ""1121"".",SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121 Name the record for may 3,"SELECT record FROM table_name_92 WHERE date = ""may 3""" What is the original airdate for episode 7-17 (195) from writer Sidney Slon?,"SELECT original_airdate FROM table_name_5 WHERE writer_s_ = ""sidney slon"" AND episode = ""7-17 (195)""" Find the price of all wines that have prices higher than some wines from John Anthony winery.,"SELECT Price FROM WINE WHERE Price > ( SELECT min ( Price ) FROM wine WHERE Winery = ""John Anthony"" ) " Which race number in the Indy F3 Challenge circuit had John Martin in pole position?,"SELECT race FROM table_15530244_2 WHERE circuit = ""Indy F3 Challenge"" AND pole_position = ""John Martin""" "What is the school of the player from Dallas, TX?","SELECT school FROM table_name_47 WHERE hometown = ""dallas, tx""" "Calculate the win rate of the team ""Chennai Super Kings"".",SELECT CAST(SUM(CASE WHEN T1.Match_Winner = 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Match_Id) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 INNER JOIN Team AS T3 ON T3.Team_Id = T1.Team_2 WHERE T2.Team_Name = 'Chennai Super Kings' OR T3.Team_Name = 'Chennai Super Kings' Name the least indian tamil for population density being 240,SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240 What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?,"SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is" The Olympic competitor John Aalberg is from which region?,SELECT T1.region_name 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 T3.full_name = 'John Aalberg' What is the genitive for the ergative shen?,"SELECT genitive FROM table_name_1 WHERE ergative = ""shen""" Where is the University of North Carolina at Greensboro located?,"SELECT location FROM table_255188_3 WHERE institution = ""University of North Carolina at Greensboro""" How many customers are located in London?,SELECT COUNT(CustomerID) FROM Customers WHERE City = 'London' "What was the Partner on February 23, 1997?","SELECT partner FROM table_name_91 WHERE date = ""february 23, 1997""" "Find all the instruments ever used by the musician with last name ""Heilo""?","SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" "How many users, between the age 27 to 35, were surveyed in 2018?",SELECT T1.UserID FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.SurveyID = 2018 AND T2.questionid = 1 AND T1.AnswerText BETWEEN '27' AND '35' Show the locations of parties with hosts older than 50.,SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 Name the venue when the away team was richmond,"SELECT venue FROM table_name_6 WHERE away_team = ""richmond""" How many samples of food object are there in image no.6?,SELECT COUNT(T2.OBJ_SAMPLE_ID) FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 6 AND T1.OBJ_CLASS = 'food' How many orders does Luca Mancini have in his invoices?,"SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";" What is the title of the employee with the highest number of territories in charge?,SELECT T1.Title FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.Title ORDER BY COUNT(T2.TerritoryID) DESC LIMIT 1 Give the NOC code and region name of the heaviest competitor.,"SELECT T1.noc, T1.region_name 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 ORDER BY T3.weight DESC LIMIT 1" Show all artist names who didn't have an exhibition in 2004.,SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004 "How many assets can each part be used in? | Here is the result table of the part names and the number of assets that each of them can use. For example, the middle part can use 5 assets. | what is the part ID's for these?",SELECT T1.part_id FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name What is the smallest number of fastest laps listed?,SELECT MIN(fastest_laps) FROM table_19312274_3 Tell me the venue for record of 2-7,"SELECT venue FROM table_name_39 WHERE record = ""2-7""" Show the names of companies in the banking or retailing industry?,"SELECT Name FROM company WHERE Industry = ""Banking"" OR Industry = ""Retailing""" List out student names that enrolled in two schools and two organizations?,"SELECT T.name FROM ( SELECT T1.name, COUNT(T1.organ) AS num FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name GROUP BY T1.name ) T WHERE T.num = 2" How many different source system code for the cmi cross references are there?,SELECT count(DISTINCT source_system_code) FROM CMI_cross_references Hello. What is the name of the youngest editor?,SELECT Name FROM editor ORDER BY Age ASC LIMIT 1 "For all the deceased players who are good at both left and right hand, list the player's name and the age when he died.","SELECT firstName, lastName, deathYear - birthYear FROM Master WHERE shootCatch IS NULL AND deathYear IS NOT NULL" Tell me about the information of the French publisher.,SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'France' What type has the most games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1 What are the names of all pilots listed by descending age?,SELECT Name FROM pilot ORDER BY Age DESC How many film titles are there?,SELECT count ( distinct title ) from film And what's the name for that musical with ID 6?,SELECT DISTINCT ( T2.Name ) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.musical_ID = 6 What are the details of the shops that can be accessed by walk?,"SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk""" What is the average pick of school/club team kutztown state with a round 4?,"SELECT AVG(pick) FROM table_name_3 WHERE round = 4 AND school_club_team = ""kutztown state""" How many dorms are in the database?,SELECT count(*) FROM dorm Name the 2013 club which has a Name of ana grbac category:articles with hcards?,"SELECT 2013 AS _club FROM table_name_62 WHERE name = ""ana grbac category:articles with hcards""" what is the highest rank in dresden with a time faster than 10.88?,"SELECT MAX(rank) FROM table_name_97 WHERE location = ""dresden"" AND fastest_time__s_ < 10.88" What are the official languages used in Belgium?,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Belgium' AND T2.IsOfficial = 'T' In what venue did FK Crvena Stijena play at home?,"SELECT venue FROM table_name_24 WHERE home = ""fk crvena stijena""" Who beat the Marlins with a score of 4-0?,"SELECT winning_team FROM table_name_68 WHERE losing_team = ""marlins"" AND score = ""4-0""" Please list the occupations of the customers over 40 and have sent a true response to the incentive mailing sent by the marketing department.,SELECT DISTINCT T1.OCCUPATION FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.age > 40 AND T2.RESPONSE = 'true' How many ingredients are needed to prepare Idaho Potato Supreme?,SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Idaho Potato Supreme' What is the email and followers of Iron Man?,"SELECT email,followers FROM user_profiles where name = ""Iron Man""" Please give the title of the work of Shakespeare that has the most characters.,"SELECT T.Title FROM ( SELECT T1.Title, COUNT(T3.character_id) AS num FROM works T1 INNER JOIN chapters T2 ON T1.id = T2.work_id INNER JOIN paragraphs T3 ON T2.id = T3.chapter_id INNER JOIN characters T4 ON T3.character_id = T4.id GROUP BY T3.character_id, T1.Title ) T ORDER BY T.num DESC LIMIT 1" What are the names of actors who are not 20 years old?,SELECT Name FROM actor WHERE Age != 20 "How much is the GDP for an area of 61,395?","SELECT gdp__ppp__$m_usd FROM table_name_86 WHERE area__km²_ = ""61,395""" Find the name and category of the most expensive product.,"SELECT product_name , product_category_code FROM products ORDER BY product_price DESC LIMIT 1" "Which customer's name contains ""Alex""? Find the full name.","SELECT customer_name FROM customers WHERE customer_name LIKE ""%Alex%""" Show the names of products that are in at least two events in ascending alphabetical order of product name.,SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name What is the name of the artist who produced the shortest song?,SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 What was the score of the game 57 after February 23?,SELECT score FROM table_name_19 WHERE february > 23 AND game = 57 Name the most number for 74 runs margins,"SELECT MAX(s_no) FROM table_1594772_2 WHERE margin = ""74 runs""" "Awesome! Finally, can you show me the number of loans and credit score for Owen?","SELECT T1.credit_score,count ( * ) FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id where T1.cust_name = ""Owen""" What is the title of the episode that was watched by 8.92 million viewers?,"SELECT episode_title FROM table_12146637_1 WHERE us_viewers__millions_ = ""8.92""" How many books are in English?,SELECT COUNT(*) FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'English' Which Country has a Winter Olympics of 1948?,"SELECT country FROM table_name_28 WHERE winter_olympics = ""1948""" "What is Tournament, when Week is November 23?","SELECT tournament FROM table_name_64 WHERE week = ""november 23""" Which book has the most number of pages?,SELECT title FROM book ORDER BY num_pages DESC LIMIT 1 how many courses are there?,SELECT count ( * ) FROM course How many captains when the shirt sponsor is toshiba?,"SELECT COUNT(captain) FROM table_27631756_2 WHERE shirt_sponsor = ""Toshiba""" Show the credit card number of Lisa Ling.,SELECT DISTINCT T2.CreditCardNumber FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Lisa' AND T1.Last = 'Ling' "Hello, what is the total number of bookings?",SELECT COUNT ( * ) FROM BOOKINGS What is the name of the player in position lb and an overall of 128?,"SELECT player FROM table_name_65 WHERE position = ""lb"" AND overall = 128" What is the rank when the col is larger than 0?,SELECT COUNT(rank) FROM table_name_7 WHERE col__m_ > 0 List the builders of railways in ascending alphabetical order.,SELECT Builder FROM railway ORDER BY Builder ASC How many legislators are not senator?,SELECT COUNT(bioguide) FROM `current-terms` WHERE class IS NULL How many historical legislators were born in 1973?,SELECT COUNT(*) FROM historical WHERE CAST(birthday_bio AS date) = 1973 Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish?,"SELECT young_classification FROM table_name_26 WHERE general_classification = ""christian vande velde"" AND team_classification = ""team columbia"" AND sprint_classification = ""mark cavendish""" Which of those documents is the oldest? | which kind of information the oldest documents do you want me to give you? | Give me the document name from those documents that has the earliest document date.,SELECT document_name FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project' order by document_date limit 1 What was the highest points when the second was 4?,"SELECT MAX(points) FROM table_name_12 WHERE second = ""4""" who is the the pole position with date being august 10,"SELECT pole_position FROM table_14638077_2 WHERE date = ""August 10""" "How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203?","SELECT SUM(rank) FROM table_name_3 WHERE lane > 7 AND athlete = ""michael mathieu"" AND react > 0.203" Who are the players that have names containing the letter a?,SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' list the name of the colleges whose enrollment is greater than 12000 sorted by the college's name and state?,"SELECT cName FROM College WHERE enr > 12000 ORDER BY cName , state" When was the event in Dublin?,"SELECT date FROM table_name_50 WHERE city = ""dublin""" "What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?","SELECT director FROM table_name_93 WHERE release_date = ""2004-03-31"" AND characters = ""daffy (as duck dodgers)""" Name the original title for the last metro,"SELECT original_title FROM table_18987377_1 WHERE film_title_used_in_nomination = ""The Last Metro""" Which country is the oldest player from?,SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T2.Country_Name = T1.Country_Id WHERE T2.Country_Name IS NOT NULL ORDER BY T2.DOB LIMIT 1 What is the division where the result was 0–2?,"SELECT division FROM table_27274566_2 WHERE result = ""0–2""" "What is the language of the method used in the solution path ""opendns_diagnosticapp\windows\OpenDnsDiagnostic.sln""?",SELECT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'opendns_diagnosticappwindowsOpenDnsDiagnostic.sln' How many transaction does each account have? Show the number and account id.,"SELECT count(*) , account_id FROM Financial_transactions" Name the number of administrative county for area 1961 and 176694,SELECT COUNT(administrative_county) FROM table_14925084_1 WHERE area_1961__statute_acres_ = 176694 Identify all the restaurants in Yolo County by their label.,"SELECT T1.id_restaurant, T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'yolo county'" How many Men's 200 Metres Freestyle events did Ian James Thorpe compete in?,SELECT COUNT(T1.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN event AS T4 ON T3.event_id = T4.id WHERE T1.full_name = 'Ian James Thorpe' AND T4.event_name LIKE 'Swimming Men%s 200 metres Freestyle' what is the least booked count,SELECT MIN ( booked_count ) FROM Products_Booked What was the attendance for the North Melbourne's home game?,"SELECT crowd FROM table_name_31 WHERE home_team = ""north melbourne""" How much does the coin with a 14mm diameter weigh?,"SELECT weight FROM table_name_52 WHERE diameter = ""14mm""" What is the height of mountain Dhaulagiri located and in which province is it located?,"SELECT T1.Height, T2.Province FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T1.Name = 'Dhaulagiri'" "If the Away team is north melbourne, what's the Home team score?","SELECT home_team AS score FROM table_name_18 WHERE away_team = ""north melbourne""" What is minimum and maximum share of TV series?,"SELECT MAX(SHARE), MIN(SHARE) FROM TV_series" What are the three largest cities in terms of regional population?,SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 Show the name and phone of the customer without any mailshot.,"SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)" "What year has a Schwante smaller than 2.043, an Eichstädt smaller than 848, and a Bärenklau smaller than 1.262?",SELECT COUNT(year) FROM table_name_30 WHERE schwante < 2.043 AND eichstädt < 848 AND bärenklau < 1.262 What engine was used by Equipe Simca Gordini before 1956 with less than 4 points?,"SELECT engine FROM table_name_15 WHERE year < 1956 AND points < 4 AND entrant = ""equipe simca gordini""" What is the country with a 70-74-69=213 score?,SELECT country FROM table_name_65 WHERE score = 70 - 74 - 69 = 213 Which To par is of thomas aiken?,"SELECT to_par FROM table_name_77 WHERE player = ""thomas aiken""" What was the album Closer: The Best of Sarah Mclachlan certified as?,"SELECT certification FROM table_name_88 WHERE album = ""closer: the best of sarah mclachlan""" In which city the 2004 Summer was held?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '2004 Summer' "Who is the hero character of the movie whose total gross was $222,527,828?","SELECT T1.hero FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T2.total_gross = '$222,527,828'" "Can you also show me the total number of instructers? | what did you mean by instructers? can you give more info? | Sorry, I meant instructors",SELECT count ( i_ID ) from advisor What point had team Lotus whit the lotus 33 chassis in 1964?,"SELECT points FROM table_name_66 WHERE chassis = ""lotus 33"" AND entrant = ""team lotus"" AND year = 1964" What is the total number of byes that has 13 losses and wins less than 5?,SELECT COUNT(byes) FROM table_name_41 WHERE losses = 13 AND wins < 5 "Provide the number of credits, category, role and birthplace of the crew member who was born in North Korea.","SELECT DISTINCT T2.credited, T2.category, T2.role, T1.birth_place FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.birth_country = 'North Korea';" "How much Lost has a Drawn larger than 5, and a Played larger than 18?",SELECT SUM(lost) FROM table_name_78 WHERE drawn > 5 AND played > 18 who is the opponent on 18 january 1993?,"SELECT opponent FROM table_name_23 WHERE date = ""18 january 1993""" What's the ratings of TBS of Episode 10 and had a Japanese title of Scandal?,"SELECT average_ratings FROM table_name_76 WHERE tv_station = ""tbs"" AND episodes = ""10"" AND japanese_title = ""scandal""" On which date was the venue of vfl park used?,"SELECT date FROM table_name_37 WHERE venue = ""vfl park""" Name the directed by for production code for 3t7509,"SELECT directed_by FROM table_19396259_1 WHERE production_code = ""3T7509""" Please state the district name where incident number JB106545 took place.,SELECT T1.case_number FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.title = 'Criminal Sexual Assault' AND T2.crime_against = 'Persons' AND T1.arrest = 'TRUE' LIMIT 3 which students are female? | Do you want the ids of students who are female? | yes,SELECT StuID FROM Student WHERE sex = 'F' Name the aircraft type for jagdgeschwader 6,"SELECT aircraft_type FROM table_28342423_1 WHERE parent_unit = ""Jagdgeschwader 6""" Which Prime Minister's served a term of 344 days?,"SELECT Prime AS minister FROM table_name_68 WHERE term_in_office = ""344 days""" Show the names of editors that are on at least two journal committees.,SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2 What is the low win total for players ranked below 4?,SELECT MIN(wins) FROM table_name_17 WHERE rank > 4 Which constructor has a Time/Retired of +37.311?,"SELECT constructor FROM table_name_91 WHERE time_retired = ""+37.311""" Find the titles of items that received any rating below 5.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 What are the country id of Hades 360?,"SELECT Country_ID FROM roller_coaster WHERE Name = ""Hades 360""" Okay. Sorry about that. Can you please list all of the customer IDs for which the customer has more than one card?,SELECT customer_id FROM Customers_cards GROUP BY customer_id having count ( * ) >1 "What is the percentage of coaches in 1969 who were awarded ""NBA Coach of the Year""?",SELECT CAST(SUM(CASE WHEN award = 'NBA Coach of the Year' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM awards_coaches WHERE year = 1969 "How many countries does each continent have? List the continent id, continent name and the number of countries.","SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;" What percentage of orders were placed by customers in Madrid city in 1996?,"SELECT CAST(COUNT(CASE WHEN T1.City = 'Madrid' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.City) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y', T2.OrderDate) = 1996" Name the away team score for lake oval,"SELECT away_team AS score FROM table_name_1 WHERE venue = ""lake oval""" "What is the sum of the losses that a match score larger than 26, a points score of 62, and a draw greater than 5?",SELECT SUM(lost) FROM table_name_6 WHERE matches > 26 AND points = 62 AND draw > 5 Name the 1821 with 1861 of 3733,"SELECT 1821 FROM table_name_30 WHERE 1861 = ""3733""" "How many businesses operating in the ""Accessories"" category have received a ""wonderful experience"" review from users?",SELECT COUNT(T2.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.stars > 3 AND T1.category_name LIKE 'Accessories' What is the Visitor on January 1?,"SELECT visitor FROM table_name_58 WHERE date = ""january 1""" How many students enrolled in class ACCT-211?,SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211' "Which loss has an Attendance of 23,952?","SELECT loss FROM table_name_55 WHERE attendance = ""23,952""" What is the Elmers End with a 09:54 Bingham Road?,"SELECT elmers_end FROM table_name_65 WHERE bingham_road = ""09:54""" Name the result with notes of quarter-finals and event of adcc 2001 absolute,"SELECT result FROM table_name_65 WHERE notes = ""quarter-finals"" AND event = ""adcc 2001 absolute""" What states have at least two representatives?,SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2 what is the total number of goal different when the club is cf extremadura and the played is less than 38?,"SELECT COUNT(goal_difference) FROM table_name_51 WHERE club = ""cf extremadura"" AND played < 38" "What is the total number of second place finishes when the city & nation was Chicago, USA?","SELECT COUNT(second_place) FROM table_2146364_2 WHERE city_ & _nation = ""Chicago, USA""" How many accelerators are not compatible with the browsers listed ?,SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser ); Who is the most valuable player who played in the 2000-2001 season of the International league?,SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.LEAGUE = 'International' ORDER BY T1.P DESC LIMIT 1 What is the date when France is the opposing team?,"SELECT date FROM table_name_50 WHERE opposing_teams = ""france""" "What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?","SELECT category FROM table_name_90 WHERE year > 1991 AND score = ""7-5, 6-7, 6-2""" What are the names of the captains that have classes?,select name from captain where class ! = 'NULL' Can you show me which school is founded most recently?,SELECT * FROM university order by founded desc LIMIT 1 What is the attendance at the Dallas home game on may 12?,"SELECT COUNT(attendance) FROM table_name_67 WHERE home = ""dallas"" AND date = ""may 12""" Name the least population for 2002 for 2011 being 9564,SELECT MIN(population__2002_) FROM table_2562572_5 WHERE population__2011_ = 9564 Which runner-up placed in a year prior to 2006 and whose Champion was Elon?,"SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = ""elon""" Find the country of all cities with post code starting with 4.,"SELECT country FROM addresses WHERE zip_postcode LIKE ""4%""" How many users belong to the same behavior category as comics?,SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'comics' What is the cost of 972 Min Press caused 52 death?,"SELECT damage__millions_usd__ FROM table_name_36 WHERE min_press___mbar__ = ""972"" AND deaths = ""52""" What's the total that the position is less than 1?,SELECT MIN(total) FROM table_name_31 WHERE position < 1 Which origin has most number of flights?,SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1 "How many products with the id ""476"" are stored in Metal Storage?",SELECT T2.Quantity FROM Location AS T1 INNER JOIN ProductInventory AS T2 ON T1.LocationID = T2.LocationID WHERE T2.ProductID = 476 AND T1.Name = 'Metal Storage' List first name and last name of customers that have more than 2 payments.,"SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2;" What was the discipline for the euroboss championship?,"SELECT discipline FROM table_name_59 WHERE championship = ""euroboss""" "What is the lowest rank that has university park, pa as the location?","SELECT MIN(rank) FROM table_name_68 WHERE location = ""university park, pa""" Which score has a Loss of gubicza (0-1)?,"SELECT score FROM table_name_66 WHERE loss = ""gubicza (0-1)""" Please list the top ten movies with the most price per day in descending order of price per day.,SELECT title FROM film ORDER BY rental_rate / rental_duration DESC LIMIT 10 What team has a player from Santa Clara?,"SELECT team FROM table_name_82 WHERE college = ""santa clara""" What score resulted in a winner after 2008?,"SELECT score FROM table_name_18 WHERE outcome = ""winner"" AND year > 2008" What is the lowest rank of Gatwick Airport? ,"SELECT MIN(rank) FROM table_18118221_1 WHERE railway_station = ""Gatwick Airport""" What is K236AM's lowest frequency in MHz?,"SELECT MIN(frequency_mhz) FROM table_name_51 WHERE call_sign = ""k236am""" For which location was the round smaller than 11 and the circuit streets of denver?,"SELECT city_location FROM table_name_93 WHERE round < 11 AND circuit = ""streets of denver""" What's the CSA/CMA Population in IA-IL?,"SELECT MAX(csa_cma_2009_population) FROM table_name_89 WHERE state__province = ""ia-il""" Find the customer who made the highest payment in 2005.,"SELECT t2.customerName FROM payments AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE STRFTIME('%Y', t1.paymentDate) = '2005' GROUP BY t2.customerNumber, t2.customerName ORDER BY SUM(t1.amount) DESC LIMIT 1" How many employees do we have?,SELECT count(*) FROM Employees; What is the difference in the number of employees from the UK and the USA who work as sales representatives?,SELECT ( SELECT COUNT(Title) FROM Employees WHERE Country = 'UK' AND Title = 'Sales Representative' ) - ( SELECT COUNT(Title) FROM Employees WHERE Country = 'USA' AND Title = 'Sales Representative' ) AS DIFFERENCE Find the names of all the catalog entries.,SELECT distinct(catalog_entry_name) FROM catalog_contents how many Invoices there,SELECT count ( * ) FROM INVOICES What was the record when the high rebounds was david lee (8),"SELECT record FROM table_23248869_8 WHERE high_rebounds = ""David Lee (8)""" What is the salary of the instructor with id number 22591?,SELECT salary FROM instructor WHERE id = 22591 How many times have Central Crossing won the OCC Championship?,"SELECT SUM(occ_championships) FROM table_name_96 WHERE school = ""central crossing""" Show me all the wine names made in the year 2006.,SELECT Name FROM WINE WHERE YEAR = 2006 What is the highest November date that has a game under 19 and opponents of the Minnesota North Stars?,"SELECT MAX(november) FROM table_name_11 WHERE game < 19 AND opponent = ""minnesota north stars""" Please list the IDs of all the trains that run in the east direction and have less than 4 cars.,"SELECT T1.id FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS carsNum FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T1.direction = 'east' AND T2.carsNum < 4" Hi there! Can you show me the name of the architect who built the most mills?,SELECT T1.name FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1 How many times was the # of total votes 2582322?,SELECT COUNT(_number_of_seats_won) FROM table_123462_2 WHERE _number_of_total_votes = 2582322 What is the rate of 17 years?,"SELECT rate FROM table_name_55 WHERE year = ""17 years""" "How many employees does each role have? List role description, id and number of employees.","SELECT T1.role_description, T2.role_code, COUNT(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code" What is the name of the non-mammal who has tatarinov as the author?,"SELECT name FROM table_name_4 WHERE authors = ""tatarinov""" "What is Event, when Winning Driver is ""Laurent Aiello Laurent Aiello"", when Round is greater than 1, and when Circuit is ""Wunstorf""?","SELECT event FROM table_name_29 WHERE winning_driver = ""laurent aiello laurent aiello"" AND round > 1 AND circuit = ""wunstorf""" What is the nationality of the player who was previously with the Detroit Pistons?,"SELECT nationality FROM table_name_55 WHERE previous_team = ""detroit pistons""" List Aerosmith's albums.,"SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Aerosmith"";" Which African countries have a smaller population than that of any country in Asia?,"SELECT Name FROM country WHERE Continent = ""Africa"" AND population < (SELECT min(population) FROM country WHERE Continent = ""Asia"")" What are the numbers of all flights coming from Los Angeles?,"SELECT flno FROM Flight WHERE origin = ""Los Angeles""" Find the average age of losers and winners of all matches.,"SELECT AVG(loser_age), AVG(winner_age) FROM matches" Show publishers that have more than one publication.,SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1 What is every position for the CFL Edmonton?,"SELECT position FROM table_28059992_1 WHERE cfl_team = ""Edmonton""" Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?,"SELECT sub_parish__sogn_ FROM table_name_52 WHERE parish__prestegjeld_ = ""hafslo parish"" AND location_of_the_church = ""urnes""" How tall is the building with 36 floors?,SELECT height__m_ FROM table_23759976_1 WHERE floors = 36 Which Video has a Channel of 25.3?,SELECT video FROM table_name_49 WHERE channel = 25.3 What is the home team score when they played at Victoria Park?,"SELECT home_team AS score FROM table_name_7 WHERE venue = ""victoria park""" "Hmm, I want to know the product names and the order quantities. | Did you mean the product details as product names? | Yes.","SELECT T1.product_details,T2.order_quantity from Products as T1 join Order_Items as T2 on T1.product_id = T2.product_id" Find the name and capacity of products with price greater than 700 (in USD).,"SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700" What was the 3’UTR sequence when Coding was 6a 3 and the GenBank id is nm_001093770.2?,"SELECT 3 AS ’utr_sequence FROM table_name_64 WHERE coding = ""6a 3"" AND genbank_id = ""nm_001093770.2""" Round 3 with less than 54 for Round 4?,"SELECT round_3 FROM table_name_69 WHERE round_4 = ""54""" What type of format was released after 1979?,SELECT release_format FROM table_name_48 WHERE release_date > 1979 Name the most female life expectancy for overall rank of 61,SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE overall_rank = 61 Name the product from the 'Classic Cars' production line that has the greatest expected profit.,"SELECT t.productName, t.MSRP - t.buyPrice FROM products AS t WHERE t.productLine = 'Classic Cars' ORDER BY t.MSRP - t.buyPrice DESC LIMIT 1" When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?,"SELECT COUNT(rank) FROM table_23248420_1 WHERE country = ""England"" AND county = ""Merseyside"" AND city_town = ""Birkenhead""" Name the most obama number for mccain being 38.86%,"SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_percentage = ""38.86%""" what is the total balance of customers whose credit score is above 100,SELECT sum ( acc_bal ) FROM customer WHERE credit_score > 100 GROUP BY state "Which opponent was playing on December 20, 1998?","SELECT opponent FROM table_name_63 WHERE date = ""december 20, 1998""" Find the person who has exactly one friend.,SELECT name FROM PersonFriend GROUP BY name HAVING COUNT(*) = 1 What are all the dates of enrollment and completion in record?,"SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment" Please provide the number of forks that the repository of the solution 35 have.,SELECT T1.Forks FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 35 Name the bush% for where others # is 90,SELECT bush_percentage FROM table_1733457_1 WHERE others_number = 90 "Among the schools' projects whose donation didn't use account credits redemption,how many schools are public magnet schools?",SELECT COUNT(T1.schoolid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_magnet = 't' AND T2.payment_included_acct_credit = 'f' Who was the visitor on March 17?,"SELECT visitor FROM table_name_53 WHERE date = ""march 17""" what's the won with points for being 643,"SELECT won FROM table_14058433_5 WHERE points_for = ""643""" List all song names by singers above the average age.,SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer) What was the location and how many attended when Golden State played? ,"SELECT location_attendance FROM table_22883210_9 WHERE team = ""Golden State""" In which city live the most staff? List the city name and number of staff.,"SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;" "Which Team 1, has Team 2, Slovan Liberec?","SELECT team_1 FROM table_name_13 WHERE team_2 = ""slovan liberec""" List down the languages of the countries that have population below 8000.,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Population < 8000 What is the quantity made of the locomotive with a Waterford class?,"SELECT quantity_made FROM table_name_67 WHERE class = ""waterford""" "If the population is 1858, what is the maximum ansi code?",SELECT MAX(ansi_code) FROM table_18600760_7 WHERE pop__2010_ = 1858 "WHAT IS THE HIGHEST # OF CARS WITH A START YEAR LESS THAN 2012, TBA CURRENT CAR, AND MORE THAN 1 CAR?","SELECT MAX(number_of_cars) FROM table_name_95 WHERE year_started < 2012 AND current_car = ""tba"" AND car__number > 1" Show all product names and the total quantity ordered for each product name.,"SELECT T2.product_name , sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name" Under what classification do the papers that cited word1163 belong?,SELECT DISTINCT T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T2.word_cited_id = 'word1163' "In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000?",SELECT city_of_license FROM table_name_60 WHERE frequency_mhz = 102.3 AND erp_w < 1 OFFSET 000 WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?,"SELECT team_classification FROM table_11667521_17 WHERE points_classification = ""Bradley Wiggins""" Provide the ingredients that are rationed in the recipe with the highest carbohydrate content.,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id WHERE T2.max_qty = T2.min_qty ORDER BY T3.carbo DESC LIMIT 1 "What is the number of points for east germany, and a Places of 88?","SELECT SUM(points) FROM table_name_84 WHERE nation = ""east germany"" AND places = ""88""" What is the elevation of the city with the alias East Longmeadow?,SELECT T2.elevation FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'East Longmeadow' What are the dates for apartment 585 ? | Did you mean the booking start and end dates of the apartments with id 585? | Yes,"SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE t2.apt_number = ""Apt. 585""" How many teachers are there?,select count ( teacher_id ) from Teachers What was the original airdate for the episode written by daisuke habara and directed by akimitsu sasaki,"SELECT original_airdate FROM table_29039942_1 WHERE writer = ""Daisuke Habara"" AND director = ""Akimitsu Sasaki""" What is the Language when the Reteconomy is the television service?,"SELECT language FROM table_name_86 WHERE television_service = ""reteconomy""" How many persons are not body builders?,SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder) What is the record when the opponent is washington redskins?,"SELECT record FROM table_18847692_2 WHERE opponent = ""Washington Redskins""" What is the national share of Guizhou's administrative division?,"SELECT national_share___percentage_ FROM table_171666_1 WHERE administrative_division = ""Guizhou""" Tell the origin country of car no.382.,SELECT DISTINCT T2.country FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T1.ID = 382 What is the name of the country when the television service is italia 1?,"SELECT country FROM table_name_95 WHERE television_service = ""italia 1""" What launched has mariner 4 as the spacecraft?,"SELECT launched FROM table_name_17 WHERE spacecraft = ""mariner 4""" What Score has a Home of Montreal Canadiens and a Date of April 22?,"SELECT score FROM table_name_74 WHERE home = ""montreal canadiens"" AND date = ""april 22""" "How many Winners have a Third of 1, and Runners-up smaller than 0?",SELECT COUNT(winners) FROM table_name_27 WHERE third = 1 AND runners_up < 0 what is the competition name when the age group is 17 or younger for athletics?,"SELECT competition_name FROM table_name_42 WHERE age_groups = ""17 or younger"" AND sport = ""athletics""" What is the finish of the year with start 5?,"SELECT finish FROM table_name_42 WHERE start = ""5""" Name the number of gn divisions for mannar,"SELECT COUNT(gn_divisions) FROM table_24574438_1 WHERE ds_division = ""Mannar""" What ship was built in 2012?,SELECT ship FROM table_name_79 WHERE built = 2012 Where did Melbourne play as the home team?,"SELECT venue FROM table_name_38 WHERE home_team = ""melbourne""" What was the record after the game against the Houston Oilers?,"SELECT record FROM table_name_98 WHERE opponent = ""houston oilers""" What are the different ids and names of the stations that have had more than 12 bikes available?,"SELECT DISTINCT T1.id , T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12" "When the home team was Woking, what was the tie no?","SELECT tie_no FROM table_name_12 WHERE home_team = ""woking""" How many 7-star votes in star score did the episode Lost Verizon have?,SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon' AND T2.stars = 7; What is minimum age for different job title?,"SELECT min(age) , job FROM Person GROUP BY job" "Which Decision has a Visitor of vancouver, and a Score of 5 – 4?","SELECT decision FROM table_name_4 WHERE visitor = ""vancouver"" AND score = ""5 – 4""" What is the average weeks on top of volumes associated with the artist aged 25 or younger?,SELECT AVG(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 How many customers don't have an account?,SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts) "Hello, which complaint id has more than 3 records present on this list?",SELECT complaint_id FROM complaints GROUP BY complaint_id HAVING count ( * ) > 3 On which date is there a performance of more than 8.22.72?,"SELECT date FROM table_name_9 WHERE performance = ""8.22.72""" How many sales orders did the salesperson David R. Campbell create?,SELECT COUNT(T2.TotalDue) FROM Person AS T1 INNER JOIN SalesOrderHeader AS T2 ON T1.ModifiedDate = T2.DueDate WHERE T1.FirstName = 'David' AND T1.MiddleName = 'R' AND T1.LastName = 'Campbell' AND T1.PersonType = 'SP' Show the names of people and the number of times they have been on the affirmative side of debates.,"SELECT T2.Name , COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name" "Which name has a License of gpl, and a Platform of windows?","SELECT name FROM table_name_47 WHERE license = ""gpl"" AND platform = ""windows""" "What are the minimum, average, and maximum quantities ordered? Check all the invoices.","SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES" "What is Team, when Qual 1 is 1:16.417?","SELECT team FROM table_name_65 WHERE qual_1 = ""1:16.417""" Which sign has a modern house title of House of Partnerships?,"SELECT sign FROM table_name_50 WHERE modern_title_of_house = ""house of partnerships""" Where was the game played that started at 7:00 p.m.?,"SELECT game_site FROM table_24396664_2 WHERE kickoff = ""7:00 p.m.""" What is the average price of products with more than fifty units in stock?,SELECT SUM(UnitPrice) / COUNT(UnitPrice) FROM Products WHERE UnitsInStock > 50 Return the country codes for countries that do not speak English.,"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""" What are the names of all the games that have been played for at least 1000 hours?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000 "Show the total number of rooms of all apartments with facility code ""Gym"".","SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" Name who directed the episode for the series number 236,SELECT directed_by FROM table_17356042_1 WHERE series__number = 236 How many albums are there?,SELECT COUNT(*) FROM ALBUM Who was pick number 34?,SELECT player FROM table_29836557_2 WHERE pick__number = 34 Which away game was played on 2008-07-18?,"SELECT away FROM table_name_5 WHERE date = ""2008-07-18""" Who was the team for game 34?,SELECT team FROM table_name_79 WHERE game = 34 What are the names of those airlines? | Here are the names of airlines who are active. | What is the airline id of Aloha Airlines?,SELECT alid FROM airlines WHERE name = 'Aloha Airlines' Give the location coordinates of the city with area code 636.,"SELECT T2.latitude, T2.longitude FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 636" "What is the rank for the show aired on May 19, 2009?","SELECT rank___number_ FROM table_name_86 WHERE air_date = ""may 19, 2009""" What are the most common compliments types received by user with uber number of fans?,SELECT DISTINCT T3.compliment_type FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id INNER JOIN Compliments AS T3 ON T2.compliment_id = T3.compliment_id WHERE T1.user_fans = 'Uber' Hello! Can you provide me with a list of all of the settlement IDs and the corresponding settlement amounts?,"SELECT Settlement_ID, settlement_amount FROM settlements" "What is the title of corpus where word ""desena"" appear?",SELECT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'desena' List the names of the attractions which belong to gallery type | Did you mean all the names? | yes,"SELECT T2.Name FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code where Attraction_Type_Description = ""gallery""" "Are the comments for the method ""HtmlSharp.HtmlParser.Feed"" in XML format?",SELECT CASE WHEN CommentIsXml = 0 THEN 'No' WHEN CommentIsXml = 1 THEN 'Yes' END isXMLFormat FROM Method WHERE Name = 'HtmlSharp.HtmlParser.Feed' "What is the most draws when less than 154 goals were conceded, and less than 36 games played?",SELECT MAX(draws) FROM table_name_74 WHERE goals_conceded < 154 AND games_played < 36 What are the names of all Rock tracks that are stored on MPEG audio files?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" AND T3.name = ""MPEG audio file"";" "What is the enrollment for the institution in Westfield, Massachusetts? ","SELECT enrollment FROM table_261927_2 WHERE location = ""Westfield, Massachusetts""" "How many Universities were founded in Tacoma, Washington?","SELECT COUNT(founded) FROM table_16078390_2 WHERE location = ""Tacoma, Washington""" "How many musicians play in the song ""Flash""?","SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = ""Flash""" "What is the email of the student with first name ""Emma"" and last name ""Rohan""?","SELECT email_address FROM Students WHERE first_name = ""Emma"" AND last_name = ""Rohan""" List all program origins in the alphabetical order.,SELECT origin FROM program ORDER BY origin What is the average level employees working as Managing Editor are at? How many levels are there between the average level and the highest level?,"SELECT AVG(T2.job_lvl), T1.max_lvl - AVG(T2.job_lvl) FROM jobs AS T1 INNER JOIN employee AS T2 ON T1.job_id = T2.job_id WHERE T1.job_desc = 'Managing Editor' GROUP BY T2.job_id, T1.max_lvl" Show the names of customers who have both an order in completed status and an order in part status.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part' "Among the books that cost less than 1 dollar, how many were published by Berkley Trade?",SELECT COUNT(*) FROM publisher AS T1 INNER JOIN book AS T2 ON T1.publisher_id = T2.publisher_id INNER JOIN order_line AS T3 ON T3.book_id = T2.book_id WHERE T1.publisher_name = 'Berkley' AND T3.price < 1 What is the average height of male athletes playing basketball sport?,SELECT AVG(T5.height) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T1.sport_name = 'Basketball' AND T5.gender = 'M' what are every one of the rivals in conclusive where title is zürich,"SELECT opponents_in_final FROM table_23197088_4 WHERE championship = ""Zürich""" Name the total number of revenue for italy with team of internazionale with operating income less than 27,"SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = ""italy"" AND team = ""internazionale"" AND operating_income__$m_ < 27" "What is the highest rank for the react of 0.198, and the time more than 20.42?",SELECT MAX(rank) FROM table_name_4 WHERE react = 0.198 AND time > 20.42 Find the name and account balance of the customer whose name includes the letter ‘a’.,"SELECT cust_name , acc_bal FROM customer WHERE cust_name LIKE '%a%'" What is the Policy ID of Policy Type Life?,SELECT Policy_ID FROM Customer_Policies where Policy_Type_Code = 'Life' What rank had more than 165 laps and a finish of 5?,"SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = ""5""" How many recipes can be made with canned dairy?,SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.category = 'canned dairy' "Which country have the least number of users being surveyed? Indicate the name of the country. If there are multiple countries having the same number of users, indicate all of their names.",SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 3 GROUP BY T1.AnswerText ORDER BY COUNT(T1.UserID) DESC LIMIT 1 List the names of aircrafts and the number of times it won matches.,"SELECT T1.Aircraft, COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft" "who has the second most orders? | Do you want the customer first name or something else? | something else, that was a typo. What I meant to say was, how many orders does the person with the second most orders have?",SELECT count ( * ) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 2 Name the total number of SP+FS for places of 60 and points more than 151.66,SELECT COUNT(sp) + fs FROM table_name_28 WHERE places = 60 AND points > 151.66 Can you please show me their names?,SELECT name FROM member WHERE Membership_card = 'Black' OR age > 30 "Could you please display the first and last names of all employees whose first names end in the letter ""m""?","SELECT first_name , last_name FROM employees WHERE first_name LIKE '%m'" "What package/option has documentaries as the content, yes as the HDTV, and a television service of history hd?","SELECT package_option FROM table_name_56 WHERE content = ""documentaries"" AND hdtv = ""yes"" AND television_service = ""history hd""" "What is the height of the player from Benetton Treviso, Italy?","SELECT height_in_ft FROM table_name_2 WHERE school_club_team_country = ""benetton treviso, italy""" "What is the duration that has 3 for appearances, and james garret as the character?","SELECT duration FROM table_name_20 WHERE appearances = ""3"" AND character = ""james garret""" What is the circuit for the ADAC großer preis der tourenwagen race?,"SELECT circuit FROM table_name_27 WHERE race = ""adac großer preis der tourenwagen""" Show the authors who have submissions to more than one workshop.,SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 List the full name of legislators whose born in 1960.,SELECT official_full_name FROM current WHERE birthday_bio LIKE '1960%' For the record of 52-60 what's the date?,"SELECT date FROM table_name_60 WHERE record = ""52-60""" "Which Description has a Year of Issue of 1983, and a Thickness of 1.7mm, and a Weight of 3.50grams?","SELECT description FROM table_name_8 WHERE year_of_issue = 1983 AND thickness = ""1.7mm"" AND weight = ""3.50grams""" what is the grid when the time/retired is +27.112?,"SELECT grid FROM table_name_79 WHERE time_retired = ""+27.112""" "What 1953 has 2 as a 1949, and 3 as 1952?","SELECT 1953 FROM table_name_48 WHERE 1949 = ""2"" AND 1952 = ""3""" What team was he on the year he had 38 points? ,SELECT team FROM table_24584486_1 WHERE points = 38 "Find the first and last name of the staff members who reported problems from the product ""rem"" but not ""aut""?","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""rem"" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""aut""" "Among the sales with 40% discount via in-store channel, how many products were shipped from warehouse code of WARE-NMK1003?",SELECT COUNT(DISTINCT T) FROM ( SELECT CASE WHEN `Sales Channel` = 'In-Store' AND WarehouseCode = 'WARE-NMK1003' AND `Discount Applied` = '0.4' THEN OrderNumber ELSE NULL END AS T FROM `Sales Orders` ) WHERE T IS NOT NULL "Among the suppliers in the European region, what percentage have a below-average account balance?","SELECT CAST(SUM(IIF(T3.s_acctbal < ( SELECT AVG(supplier.s_acctbal) FROM supplier ), 1, 0)) AS REAL) * 100 / COUNT(T1.n_nationkey) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey INNER JOIN supplier AS T3 ON T1.n_nationkey = T3.s_nationkey WHERE T2.r_name = 'EUROPE'" What is the earliest last year with a yr plyf less than 0?,SELECT MIN(last_yr) FROM table_name_97 WHERE yr_plyf < 0 Who was the supervisor in the year 1846?,"SELECT supervisor FROM table_name_43 WHERE years = ""1846""" Find the distinct names of all races held between 2014 and 2017?,SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017 What are the minimum number of transit passengers of all airports?,SELECT min ( Transit_Passengers ) FROM airport "Return the description for the courses named ""database"".","SELECT course_description FROM COURSES WHERE course_name = ""database""" What countries are visited in the episode presented by Brian B. Thompson?,"SELECT countries_visited FROM table_15211468_1 WHERE presenter = ""Brian B. Thompson""" "Show the apartment numbers, start dates, and end dates of all the apartment bookings.","SELECT T2.apt_number , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id" what are the sale?,SELECT * FROM TRANSACTIONS What are the hometowns that are shared by at least two gymnasts?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2 How many projects are there?,SELECT count ( * ) FROM Projects Which golfer finished with a score of 70-71=141?,SELECT player FROM table_name_40 WHERE score = 70 - 71 = 141 How many students are not involved in any behavior incident?,SELECT COUNT(*) FROM STUDENTS WHERE NOT student_id IN (SELECT student_id FROM Behavior_Incident) What are the names of reviewers who had rated 3 star and 4 star?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4 can you show me names of races?,SELECT name FROM race What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?,"SELECT AVG(january) FROM table_name_72 WHERE opponent = ""vancouver canucks"" AND game > 39" What is the lease amount of touchdowns with 1318 yards?,SELECT MIN(touchdowns) FROM table_name_41 WHERE yards = 1318 Is there any party that has at least two records?,SELECT Party FROM party group by Party having count ( * ) > 1 what is minimum and maximum number of bathrooms and bedrooms of all the apartments?,"SELECT min ( bathroom_count ) , max ( bathroom_count ) , min ( bedroom_count ) , max ( bedroom_count ) FROM Apartments" Which Laps have a Rider of andrea dovizioso?,"SELECT MIN(laps) FROM table_name_2 WHERE rider = ""andrea dovizioso""" "Among the establishments that failed the inspection in February 2010, list the names of the employees with a salary greater than 70% of the average salary of all employees.","SELECT DISTINCT T1.employee_id FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.results = 'Fail' AND strftime('%Y-%m', T2.inspection_date) = '2010-02' AND T1.salary > 0.7 * ( SELECT AVG(salary) FROM employee )" what are all the uu-usu score with winner is #5 brigham young (2–0),"SELECT uu_usu_score FROM table_13665809_2 WHERE winner = ""#5 Brigham Young (2–0)""" "Which Year has a Venue of atlanta, united states?","SELECT year FROM table_name_13 WHERE venue = ""atlanta, united states""" What is the average duration time of the films starring PENELOPE GUINESS?,SELECT AVG(T3.length) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' What are the states of the colleges where students who tried out for the striker position attend?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' Name the sum of draws when the position is less than 17 and wins is less than 11,SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11 "Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?","SELECT friday FROM table_11748792_2 WHERE monday = ""Emma Willis Jamie East""" What language is the film La Diagonale du Fou in?,"SELECT language FROM table_name_24 WHERE original_title = ""la diagonale du fou""" what is the skill code of Mechanical,"SELECT skill_code FROM skills where skill_description = ""Mechanical""" "Which Score has a Country of united states, and a Player of raymond floyd?","SELECT score FROM table_name_33 WHERE country = ""united states"" AND player = ""raymond floyd""" What booking made date of service id 1?,"SELECT booking_made_date FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id where t1.service_id = ""1""" List down all the tweet text posted from Australia.,SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.Country = 'Australia' Show all artist names and the number of exhibitions for each artist.,"SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id" what is the event when gold is darren kenny great britain (gbr)?,"SELECT event FROM table_name_1 WHERE gold = ""darren kenny great britain (gbr)""" Name the kaz hayashi for block A being bushi,"SELECT kaz_hayashi FROM table_name_43 WHERE block_a = ""bushi""" What is the average gradepoint for students with the last name Smith?,"SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = ""Smith""" Identify the players who weigh 120 kg.,SELECT T2.PlayerName FROM weight_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.weight_id = T2.weight WHERE T1.weight_in_kg = 120 What are the market city/market(s) for Rapid City Alternative format?,"SELECT target_city__market FROM table_134987_3 WHERE city_of_license = ""Rapid City"" AND format = ""Alternative""" How many right-shooted players have a height of 5'7''?,"SELECT COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch = '5''7""' AND T1.shoots = 'R'" What is the finish when there was more than 192 laps and a qual of 135.736?,"SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = ""135.736""" "Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox?","SELECT college FROM table_name_37 WHERE round < 7 AND pick__number < 27 AND name = ""anthony maddox""" What's the record of Game 70?,SELECT record FROM table_name_77 WHERE game = 70 What are the prices of those?,SELECT T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 List ids and details for all projects.,"SELECT project_id , project_details FROM Projects" What is the name of that campus?,SELECT distinct T1.Campus FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t2.Campus = 5 What is the total value of shipped vintage car orders from 2003-2004?,SELECT SUM(T2.priceEach * T2.quantityOrdered) FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode INNER JOIN orders AS T3 ON T2.orderNumber = T3.orderNumber WHERE T3.status = 'Shipped' AND T3.orderDate BETWEEN '2003-01-01' AND '2004-12-31' What's the Game SIte with an Opponent of San Diego Chargers?,"SELECT game_site FROM table_name_97 WHERE opponent = ""san diego chargers""" How many directed by have 2.80 as u.s. viewers (in millions)?,"SELECT COUNT(directed_by) FROM table_23499946_1 WHERE us_viewers__in_millions_ = ""2.80""" "What is the sum of the total of player rich beem, who has a to par greater than 17?","SELECT SUM(total) FROM table_name_20 WHERE player = ""rich beem"" AND to_par > 17" what is the Mexico City 250's date?,"SELECT date FROM race where name = ""Mexico City 250""" What are the total number of credits offered by each department?,"SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code" List the names of all winners who played in both 2013 and 2016.,SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016 What's the title of the episode that Rob Heyland wrote? ,"SELECT title FROM table_14330096_3 WHERE writer = ""Rob Heyland""" How many gold medals were given to the winners in the Ice Hockey Men's Ice Hockey event?,SELECT COUNT(T2.competitor_id) FROM event AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.event_id WHERE T1.event_name LIKE 'Ice Hockey Men%s Ice Hockey' AND T2.medal_id = 1 List the 3 highest salaries of the players in 2001?,SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3; Find the id and name of the most expensive base price room.,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;" When was the most recent appointment? | do you want the most recent start or end of appointment | Start,select appointmentid from appointment order by start desc limit 1 What are the name and level of catalog structure with level number between 5 and 10,"SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10" What are the favorite project types of each of the top 10 donors?,"SELECT project_resource_type FROM ( SELECT T1.donor_acctid, T3.project_resource_type FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN resources AS T3 ON T2.projectid = T3.projectid ORDER BY T1.donation_total DESC LIMIT 10 ) GROUP BY project_resource_type ORDER BY COUNT(project_resource_type) DESC LIMIT 1" Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362,SELECT SUM(swimsuit) FROM table_name_67 WHERE average < 7.362 AND evening_gown < 6.983 What was the Score when the Losing Semifinalists were Toluca Unam?,"SELECT score FROM table_name_88 WHERE losing_semifinalists = ""toluca unam""" "Among all the orders, which products sold for the most amount?",SELECT ProductID FROM `Order Details` GROUP BY ProductID ORDER BY SUM(Quantity) DESC LIMIT 1 What's the title of the episode seen by 12.85 millions of people in the US?,"SELECT title FROM table_28212888_2 WHERE us_viewers__millions_ = ""12.85""" What date was the 200m breaststroke event?,"SELECT date FROM table_name_53 WHERE event = ""200m breaststroke""" I want the constructor for brakes and grid less than 14,"SELECT constructor FROM table_name_39 WHERE time_retired = ""brakes"" AND grid < 14" "What Opponent in the final had a match with a Score in the final of 7–5, 6–2?","SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = ""7–5, 6–2""" Yes please,"SELECT T1.course_name , COUNT ( * ) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name" What team had a race time of 2:53:57?,"SELECT team FROM table_2268216_1 WHERE race_time = ""2:53:57""" How many different last names do the actors and actresses have?,SELECT count(DISTINCT last_name) FROM actor What tie number featured Chelsea as the home team?,"SELECT MIN(tie_no) FROM table_17736890_5 WHERE home_team = ""Chelsea""" List the title of films that do not have any market estimation.,SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation) Name the round of 32 in conference usa,"SELECT round_of_32 FROM table_10722506_6 WHERE conference = ""conference USA""" What date did the episode originally air on with salvatore giunta as a guest?,"SELECT original_airdate FROM table_25691838_11 WHERE guest = ""Salvatore Giunta""" "What are the customer phone numbers under the policy ""Life Insurance""?","SELECT customer_phone FROM available_policies WHERE policy_type_code = ""Life Insurance""" "Find the number of trains for each station, as well as the station network name and services.","SELECT count(*) , t1.network_name , t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id;" What are the number of different course codes?,SELECT count(DISTINCT crs_code) FROM CLASS Show the member names which are in both the party with id 3 and the party with id 1.,SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 Which regular season was 2013 in?,SELECT regular_season FROM table_name_50 WHERE year = 2013 What are the city addresses of the customers located in the United States of America?,SELECT DISTINCT T2.city FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id WHERE T1.country_name = 'United States of America' What is the title of project that have the most expensive funds?,SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.projectid = ( SELECT projectid FROM resources ORDER BY item_unit_price * item_quantity DESC LIMIT 1 ) Show the ids for projects with at least 2 documents.,SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2 What are the average and maximum number of tickets bought in all visits?,"SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit" Which place has horton smith as the player?,"SELECT place FROM table_name_10 WHERE player = ""horton smith""" Show the name of the company with company_id 1.0?,"SELECT Name from company where Company_ID = 1.0" What is the total number of games played?,SELECT sum(gamesplayed) FROM Sportsinfo Give the names of poker players who have earnings above 300000.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000 What are the names of all photos taken by Olympus brand cameras?,"SELECT T2.name FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id where T1.brand = ""Olympus""" Name the team anthem that was written by quentin eyers and les kaczmarek.,"SELECT name_of_team_song FROM table_28243323_1 WHERE writer_composer = ""Quentin Eyers and Les Kaczmarek""" list out the station names,SELECT DISTINCT name FROM station When 123 is the number in series who is the director?,SELECT directed_by FROM table_2468961_7 WHERE no_in_series = 123 "What are the name and typical buying and selling prices of the products that have color described as ""yellow""?","SELECT t1.product_name , t1.typical_buying_price , t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""yellow""" What are the life spans of representatives from New York state or Indiana state?,"SELECT Lifespan FROM representative WHERE State = ""New York"" OR State = ""Indiana""" What was the title of the episode viewed by 5.03 million viewers?,"SELECT title FROM table_27987623_1 WHERE us_viewers__in_million_ = ""5.03""" How many movie reviews does each director get?,"SELECT COUNT(*), T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director" What is the IHSAA class when the county was 83 vermillion?,"SELECT ihsaa_class FROM table_name_40 WHERE county = ""83 vermillion""" What is the amount of viewers if the series number is 14?,SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14 What is the total amount of tax charged for the order placed by customer 88931 on 7/13/994?,SELECT SUM(T2.l_extendedprice * (1 - T2.l_discount) * (1 + T2.l_tax)) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_custkey = 88931 AND T1.o_orderdate = '1994-07-13' What's the team #2 in the round where team #1 is Iraklis?,"SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = ""Iraklis""" Which member has Cook as the electorate?,"SELECT member FROM table_name_16 WHERE electorate = ""cook""" List all department names ordered by their starting date.,SELECT dname FROM department ORDER BY mgr_start_date What is the average avg/game of the player with 97 goals and a rank above 7?,SELECT AVG(avg_game) FROM table_name_51 WHERE goals = 97 AND rank < 7 What country in Kunlong in?,"SELECT country FROM table_name_46 WHERE location = ""kunlong""" What is the investor that has invested in the most number of entrepreneurs?,SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1 How many districts have John C. Calhoun as the incumbent?,"SELECT COUNT(district) FROM table_2668352_16 WHERE incumbent = ""John C. Calhoun""" What are the different names of the colleges involved in the tryout in alphabetical order?,SELECT DISTINCT cName FROM tryout ORDER BY cName can you show me campuses county?,SELECT County FROM Campuses Name the least ai %,SELECT MIN(ai___percentage_) FROM table_18012738_1 Who is the team at vikings stadium?,"SELECT team FROM table_name_64 WHERE stadium = ""vikings stadium""" What was the result of the election of the incumbent harry r. sheppard?,"SELECT result FROM table_1341973_6 WHERE incumbent = ""Harry R. Sheppard""" "What is the production company of the movie ""Crazy Heart""?",SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T3.title = 'Crazy Heart' How many resources with a unit price less than 15 are not technology type? List them by vendor id,SELECT vendorid FROM resources WHERE project_resource_type = 'Technology' AND item_unit_price <= 15 How many stages were won by Robbie McEwen?,"SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = ""Robbie McEwen""" When Sagittarius is the wester name what is the sanskrit gloss?,"SELECT sanskrit AS gloss FROM table_186462_1 WHERE western_name = ""Sagittarius""" What's the clock speed of the model that costs $910?,"SELECT clock_speed FROM table_12740151_8 WHERE price___usd__ = ""$910""" What is the Annual Generation at Kawerau (Bope)?,"SELECT annual_generation__average_gwh_ FROM table_name_83 WHERE name = ""kawerau (bope)""" What were his winnings when he had 14 top 10s?,SELECT winnings FROM table_2169966_2 WHERE top_10 = 14 What opera has 19.87% as the firefox?,"SELECT opera FROM table_name_48 WHERE firefox = ""19.87%""" "Which position has a lower minimum salary, Account Representative or Trainee?",SELECT positiontitle FROM position WHERE positiontitle = 'Account Representative' OR positiontitle = 'Trainee' ORDER BY minsalary ASC LIMIT 1 "Give the order ids for all orders, as well as the total product quantity in each.","SELECT order_id , sum(product_quantity) FROM Order_items GROUP BY order_id" What year had the supernova award?,"SELECT year FROM table_name_46 WHERE category = ""supernova award""" How many times has the student Linda Smith visited Subway?,"SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"" AND Restaurant.ResName = ""Subway"";" How many prefectures have an area of 361.719 kilometers squared?,"SELECT COUNT(prefecture) FROM table_221398_1 WHERE area__km²_ = ""361.719""" Which venue has a Result of 1–0?,"SELECT venue FROM table_name_96 WHERE result = ""1–0""" "What are the issue dates of volumes associated with the artist ""Gorgoroth""?","SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = ""Gorgoroth""" "What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?","SELECT MIN(pick) FROM table_name_51 WHERE position = ""ss, p"" AND team = ""minnesota twins""" Which grid is the highest and has a time/retired of +0.3?,"SELECT MAX(grid) FROM table_name_11 WHERE time_retired = ""+0.3""" What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?,"SELECT name , operating_system FROM web_client_accelerator WHERE CONNECTION != 'Broadband'" what's the won with tries for being 84,"SELECT won FROM table_14058433_5 WHERE tries_for = ""84""" "Great! Of those 8 customers, how many also have the status of ""Shipped""?","select count ( * ) from ( SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped"" ) " "Name the episode that aired october 8, 1988","SELECT episode_title FROM table_name_81 WHERE original_airdate = ""october 8, 1988""" What is the total round with pick of 109?,SELECT SUM(round) FROM table_name_37 WHERE pick = 109 "Which product's detail contains the word ""Latte"" or ""Americano""? Return the full detail.","SELECT product_details FROM products WHERE product_details LIKE ""%Latte%"" OR product_details LIKE ""%Americano%""" What is the Outcome when All England Open is the Opponent in the final?,"SELECT outcome FROM table_name_67 WHERE opponent_in_the_final = ""all england open""" What is the scheduled local departure time and the actual departure time of the flight from Philadelphia to Harrisburg with the plane's tail number N627AE on the 13th of August 2018?,"SELECT CRS_DEP_TIME, DEP_TIME FROM Airlines WHERE ORIGIN = 'PHL' AND DEST = 'MDT' AND TAIL_NUM = 'N627AE' AND FL_DATE = '2018/8/13'" What is the number of 2011 populations having a 2002 population of 29449?,SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE population__2002_ = 29449 What date did the Steelers play against the New York Jets?,"SELECT date FROM table_name_39 WHERE opponent = ""new york jets""" What team was the away team for the venue punt road oval?,"SELECT away_team FROM table_name_4 WHERE venue = ""punt road oval""" What lowest round has orlando pace as the player?,"SELECT MIN(round) FROM table_name_3 WHERE player = ""orlando pace""" Find the names of the customers who have an deputy policy.,"SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy""" List the full amount of week 36 results when week 32 is 13.2%.,"SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = ""13.2%""" "In 2009, who among the married patients had undergone a care plan for more than 60 days?","SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.marital = 'M' AND strftime('%J', T2.STOP) - strftime('%J', T2.START) > 60" How much money did Lucas Mancini spend?,"SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";" What is the Format of the release in Greece?,"SELECT format FROM table_name_16 WHERE region = ""greece""" List out all award titles nominated for episode 20.,"SELECT T2.award FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 20 AND T2.result IN ('Winner', 'Nominee')" What was the result of the election with incumbent bob barr?,"SELECT result FROM table_27487712_1 WHERE incumbent = ""Bob Barr""" Show names of musicals and the number of actors who have appeared in the musicals.,"SELECT T2.Name , COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID" "Which Opposition has a Year smaller than 1911, and a Venue of old trafford?","SELECT opposition FROM table_name_51 WHERE year < 1911 AND venue = ""old trafford""" Find the number of games taken place in city Atlanta in 2000.,SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta'; State the total number of projects of the list?,SELECT count ( * ) FROM projects What rank does Mark Giuliano have?,SELECT Rank from faculty where Lname = 'Giuliano' and fname = 'Mark' Which poll resource provided the most number of candidate information?,SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1 What is the average number played for place 2 and more than 4 lost?,SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 4 What date was the release when the format was lp?,"SELECT date FROM table_name_21 WHERE format = ""lp""" Which country has at most 3 stadiums listed?,SELECT country FROM stadium GROUP BY country HAVING count(*) <= 3 Precisely how many staff members live in Connecticut?,"SELECT count ( * ) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.state_province_county = ""Connecticut""" What is employee id 163 full name?,"SELECT first_name, last_name FROM employees WHERE employee_id = 163" How many students does LORIA ONDERSMA teaches?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""LORIA"" AND T2.lastname = ""ONDERSMA""" "For what round was the opponent mercedes paz with a result of 4–6, 6–1, 6–3?","SELECT round FROM table_name_95 WHERE opponent = ""mercedes paz"" AND result = ""4–6, 6–1, 6–3""" "Among the menus that did not support taking out or booking in advance, how many of them were created before 1950?","SELECT COUNT(*) FROM Menu WHERE call_number IS NULL AND strftime('%Y', date) < '1950'" What is the type of vocables that appears most frequently?,SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 Name the episode for run time 25:05,"SELECT episode FROM table_2102782_1 WHERE run_time = ""25:05""" Which player's pick number was 25?,SELECT player FROM table_name_79 WHERE pick__number = 25 What about transactions with type code PUR?,"Select date_of_transaction from transactions where transaction_type_code = ""PUR""" WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?,"SELECT MAX(grid) FROM table_name_72 WHERE time_retired = ""accident"" AND manufacturer = ""honda""" Which Home team has an Away team of fitzroy?,"SELECT home_team FROM table_name_62 WHERE away_team = ""fitzroy""" How many draws were there with goals against that did not qualify for UEFA competitions?,"SELECT drew FROM table_name_56 WHERE goals_against = ""did not qualify for uefa competitions""" "When 441st bs, 7th bw is the unit what is the b-52 model?","SELECT b_52_model FROM table_18933037_3 WHERE unit = ""441st BS, 7th BW""" "What is Lost, when Losing Bonus is ""3"", and when Club is ""Bettws RFC""?","SELECT lost FROM table_name_64 WHERE losing_bonus = ""3"" AND club = ""bettws rfc""" Return the gender and name of artist who produced the song with the lowest resolution.,"SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1" Which Constructor has a Grid of 17?,SELECT constructor FROM table_name_87 WHERE grid = 17 Find the list of cities that no customer is living in.,SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) List out the user id that has compliment type of photos.,SELECT T2.user_id FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.compliment_type = 'photos' Show me all the films not longer than 100 minutes?,SELECT title FROM film WHERE LENGTH < = 100 Which team started 2010?,"SELECT team_name FROM table_17289224_1 WHERE season = ""2010""" What was segment C when segment D was fluorescent tubes? ,"SELECT segment_c FROM table_15187735_1 WHERE segment_d = ""Fluorescent Tubes""" "How many suppliers for the part ""hot spring dodger dim light"" are in Vietnam?",SELECT COUNT(T3.s_name) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey INNER JOIN nation AS T4 ON T3.s_nationkey = T4.n_nationkey WHERE T1.p_name = 'hot spring dodger dim light' AND T4.n_name = 'VIETNAM' "What is the sum of the laps with a grid less than 28, retirement time, and a ducati 1098 f08 bikes?","SELECT SUM(laps) FROM table_name_5 WHERE grid < 28 AND time = ""retirement"" AND bike = ""ducati 1098 f08""" "What is the object class of the image with a bounding box of 0, 0, 135, 212?",SELECT T1.OBJ_CLASS FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.X = 0 AND T2.Y = 0 AND T2.W = 135 AND T2.H = 212 "When the poll source is research 2000/daily kos, what is the total number of dates administered? ","SELECT COUNT(dates_administered) FROM table_16751596_13 WHERE poll_source = ""Research 2000/Daily Kos""" state the open year of branch id 3?,SELECT Open_year FROM branch WHERE Branch_ID = 3 "For all players who becomes coach after retirement, state the given name of coach and which teams and years did they coach?","SELECT DISTINCT T2.nameGiven, T3.name, T3.year FROM Coaches AS T1 INNER JOIN Master AS T2 ON T2.coachID = T1.coachID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T2.playerID IS NOT NULL AND T2.coachID IS NOT NULL" Which country has the most players in the Hall of Fame?,SELECT T1.birthCountry FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID GROUP BY T1.birthCountry ORDER BY COUNT(T1.playerID) DESC LIMIT 1 what is the finish when the manager is tom kotchman and the record is 40-36?,"SELECT finish FROM table_name_50 WHERE manager = ""tom kotchman"" AND record = ""40-36""" On what date was Game 1?,"SELECT date FROM table_name_54 WHERE game = ""game 1""" "What is To Par, when Place is ""T9"", and when Player is ""Lee Trevino""?","SELECT to_par FROM table_name_23 WHERE place = ""t9"" AND player = ""lee trevino""" How many polling percentages were there in October 2008 when is was 30.8% in Aug 2008?,"SELECT COUNT(oct_2008) FROM table_23680576_2 WHERE aug_2008 = ""30.8%""" "In the papers classified as ML, how many cited butz01algorithmic?",SELECT COUNT(T1.paper_id) FROM paper AS T1 INNER JOIN cites AS T2 ON T1.paper_id = T2.citing_paper_id WHERE T1.class_label = 'ML' AND T2.cited_paper_id = 'butz01algorithmic' "Among all the residential areas in Arecibo county, what is the zip_code of the one with the highest white population?",SELECT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' ORDER BY T1.white_population DESC LIMIT 1 What is zip code of customer with first name as Carole and last name as Bernhard?,"SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" What is the rating and category of the podcast entitled Sitcomadon?,"SELECT DISTINCT T3.rating, T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T2.title = 'Sitcomadon'" "List the creation year, name and budget of each department.","SELECT creation , name , budget_in_billions FROM department" Which events id does not have any participant with detail 'Kenyatta Kuhn'?,SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn' Name the sex ratio lowest for population 4773138,SELECT MAX(sex_ratio) FROM table_231623_3 WHERE population = 4773138 "What is the highest salary among each team? List the team name, id and maximum salary.","SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;" What is the product description that matches that product ID?,SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76 List out patient names with calcium deficiency.,"SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Calcium' AND T2.VALUE < 8.6" "What is the biggest discount among all orders for the part ""burnished seashell gainsboro navajo chocolate""?",SELECT MAX(T1.l_discount) FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name = 'burnished seashell gainsboro navajo chocolate' What is the highest region number with a 499 population?,SELECT MAX(region) FROM table_name_10 WHERE population = 499 What was the date of the game that had a decision of wall?,"SELECT date FROM table_name_41 WHERE decision = ""wall""" Please name one attribute that business number 2 does not have.,SELECT T1.attribute_name FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'none' LIMIT 1 How many menu items were created on 28th March 2011?,SELECT COUNT(*) FROM MenuItem WHERE created_at LIKE '2011-03-28%' What years did the Buick Skylark 320 get in production?,SELECT T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'buick skylark 320' What is the 17th c. pronunciation when the british is əʊ?,"SELECT 17 AS th_c FROM table_name_68 WHERE british = ""əʊ""" Who was sent to the third island in week 1?,"SELECT member FROM table_11764007_2 WHERE week_sent_to_third_island = ""1""" How many words are repeated on the Llista de conflictes armats page?,SELECT occurrences FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE title = 'Llista de conflictes armats' ) What are the nationalities that are shared by at least two people?,SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 Find the id of the order which is shipped most recently.,SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments) What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?,SELECT fis_nordic_world_ski_championships FROM table_name_93 WHERE winter_olympics = 1968 List the wheels and locations of the railways.,"SELECT Wheels , LOCATION FROM railway" what is the nationality of journalist ID 1,select Nationality from journalist where journalist_ID = 1 What place had a score of 73-69-68=210?,SELECT place FROM table_name_86 WHERE score = 73 - 69 - 68 = 210 Who has a reported death of 6 march 1998?,"SELECT name FROM table_name_63 WHERE reported_death_date = ""6 march 1998""" What label has a catalog of chem036cd?,"SELECT label FROM table_name_2 WHERE catalog = ""chem036cd""" Who directed the eula goodnight movie after 1949?,"SELECT director FROM table_name_97 WHERE year > 1949 AND role = ""eula goodnight""" Name the year for donlavey racing bill davis racing,"SELECT year FROM table_2181798_1 WHERE team_s_ = ""Donlavey Racing Bill Davis Racing""" Which Opponent has a Date of march 16?,"SELECT opponent FROM table_name_42 WHERE date = ""march 16""" Show customer ids who don't have an account.,SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts What percentage of books written by Hirohiko make up the number of books published by Viz Media?,SELECT CAST(SUM(CASE WHEN T1.author_name = 'Hirohiko Araki' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM author AS T1 INNER JOIN book_author AS T2 ON T2.author_id = T1.author_id INNER JOIN book AS T3 ON T3.book_id = T2.book_id INNER JOIN publisher AS T4 ON T4.publisher_id = T3.publisher_id WHERE T4.publisher_name = 'VIZ Media' How many scientists are there?,SELECT count(*) FROM scientists What are the names of the two volumes that spend 3.0 weeks on top? | What do you mean by names? | I am sorry - what are the songs of the two volumes that spent 3.0 weeks on top?,select song from volume where weeks_on_top = 3.0 "What is the description, code and the corresponding count of each service type?","SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code" With a draw greater than 11 and the place smaller than 4 what was the televote?,SELECT televote FROM table_name_96 WHERE draw > 11 AND place < 4 "Who was the runner-up, when the champion was Björn Borg after 1978?","SELECT runner_up FROM table_name_66 WHERE champion = ""björn borg"" AND year > 1978" Which Class has Laps of 31?,SELECT class FROM table_name_74 WHERE laps = 31 What is the difference between the events of device number -9222956879900150000 that can be located and those that are unable to be located?,"SELECT SUM(IIF(latitude != 0 AND longitude != 0, 1, 0)) - SUM(IIF(latitude = 0 AND longitude = 0, 1, 0)) AS diff FROM events WHERE device_id = '-922956879900150000'" Show all the distinct buildings that have faculty rooms.,SELECT DISTINCT building FROM Faculty "what is the percentage for john kerry and dates administered is april 22, 2008?","SELECT democrat AS :_john_kerry FROM table_16751596_5 WHERE dates_administered = ""April 22, 2008""" races held after 2017 in spain circuits,"SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2017" Where was the fight that lasted 3 rounds and was won or loss by a decision?,"SELECT location FROM table_name_65 WHERE round = 3 AND method = ""decision""" what is the enroll grade of 324257,SELECT ENROLL_GRADE from ENROLL where STU_NUM = 324257 "What are the start and end dates for incidents with incident type code ""NOISE""?","SELECT date_incident_start , date_incident_end FROM Behavior_Incident WHERE incident_type_code = ""NOISE""" what is the city population of Attock District,"SELECT City_Population FROM district where Headquartered_City = ""Attock City""" what is the maximum age for all people,SELECT max ( age ) FROM people What is the highest grossing movie without a song?,"SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie_title WHERE T2.song IS NULL ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" Name the status for unemployment rate being 6.7%,"SELECT status FROM table_22815568_12 WHERE unemployment_rate = ""6.7%""" What is the date of the Cubs game when the Cubs had a record of 1-0?,"SELECT date FROM table_name_2 WHERE record = ""1-0""" What is the transaction type code of transaction id 2?,SELECT t2.transaction_type_code FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE t2.transaction_id = 2 what is the name and age of the youngest winning pilot?,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1" What is the Airline when the notes show aoc 135?,"SELECT airline FROM table_name_51 WHERE notes = ""aoc 135""" What is the points when the try bonus is 1?,"SELECT points_for FROM table_name_83 WHERE try_bonus = ""1""" Who had the fastest lap in the races won by Max Papis?,"SELECT fastest_lap FROM table_11056278_3 WHERE winning_driver = ""Max Papis""" What are the minimum and maximum crime rate of counties?,"SELECT MIN(Crime_rate), MAX(Crime_rate) FROM county_public_safety" What is the name of the episode in which Jenn is eliminated?,"SELECT episode_title FROM table_1272844_2 WHERE eliminated = ""Jenn""" What is the nationality of the player from UCLA?,"SELECT nationality FROM table_name_4 WHERE school_club_team = ""ucla""" What was Johnny Rutherford's fastest lap while Al Unser was the pole position?,"SELECT fastest_lap FROM table_10527215_3 WHERE winning_driver = ""Johnny Rutherford"" AND pole_position = ""Al Unser""" Which assets did not incur any fault log? List the asset model.,SELECT asset_model FROM Assets WHERE asset_id NOT IN (SELECT asset_id FROM Fault_Log) How many faculty members have 20 years of experience? ,"SELECT COUNT(designation) FROM table_17384764_1 WHERE experience = ""20 years""" What is the team with at least 2 technicians?,SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2 Give id of the instructor who advises students in the History department.,SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' What country does Ryanair belong to?,"SELECT country FROM airlines WHERE name = ""Ryanair""" What is Kyle's id?,"SELECT ID FROM Highschooler WHERE name = ""Kyle""" What was the total attendance for the 3:1 game?,"SELECT SUM(attendance) FROM table_name_79 WHERE score = ""3:1""" Which Res has a Time of 11:58?,"SELECT res FROM table_name_27 WHERE time = ""11:58""" "Find the number of products with category ""Spices"" and typically sold above 1000.","SELECT count(*) FROM products WHERE product_category_code = ""Spices"" AND typical_selling_price > 1000" Find the city where the most customers live.,SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1 "Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?","SELECT song FROM table_name_52 WHERE weeks_at_number_one > 2 AND issue_date_s_ = ""17 april - 8 may""" "What is Score, when Opponent is ""Ivo Minář""?","SELECT score FROM table_name_52 WHERE opponent = ""ivo minář""" Who wrote the episode with a production code of 116?,SELECT written_by FROM table_29087004_2 WHERE production_code = 116 Name the end date for robert goebbels,"SELECT end_date FROM table_name_50 WHERE minister = ""robert goebbels""" What are the names of wrestlers who have never been eliminated?,SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination) "What is Mark, when React is less than 0.148?",SELECT mark FROM table_name_59 WHERE react < 0.148 "What is the lowest position of the club with 53 goals against, 26 points, and a -11 goal difference?",SELECT MIN(position) FROM table_name_70 WHERE goals_against = 53 AND points = 26 AND goal_difference > -11 What are the clean and jerk score of the body builder with the highest total score?,SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1 Hello! Can you provide me with a list of all customer ids and their associated policy type codes?,"select T2.Customer_ID, T1.Policy_Type_Code from Policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id" What is the score with third place of stefan edberg?,"SELECT score FROM table_name_33 WHERE third_place = ""stefan edberg""" What years did number 54 play for the jazz,SELECT years_for_jazz FROM table_11545282_4 WHERE no = 54 What's the highest pick for SS position?,"SELECT MAX(pick) FROM table_name_76 WHERE position = ""ss""" "Which Unit test has a MSDN integration of full, and a Projects templates of yes?","SELECT unit_test FROM table_name_76 WHERE msdn_integration = ""full"" AND projects_templates = ""yes""" What date was the opposing team Poverty Bay?,"SELECT date FROM table_name_94 WHERE opposing_team = ""poverty bay""" Tell me the time for 6/6/77 release date and song title of way down,"SELECT time FROM table_name_95 WHERE release_date = ""6/6/77"" AND song_title = ""way down""" What is the number of projects that Sony doesn't manufacture?,SELECT count ( DISTINCT name ) FROM products WHERE name NOT IN ( SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' ) What year was incumbent Michael A. Feighan first elected? ,"SELECT MIN(first_elected) FROM table_1342218_35 WHERE incumbent = ""Michael A. Feighan""" How many students have milk or egg allergies?,"SELECT count ( * ) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.allergy = ""Milk"" OR T1.allergy = ""Eggs""" What are the names of all movies that were made after 2000 or reviewed by Brittany Harris?,SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000 Please calculate the total payment amount of customers who come from the USA.,SELECT SUM(T1.amount) FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.country = 'USA' What number in the season was episode 52 in the series?,SELECT MIN(_number) FROM table_22904707_1 WHERE no = 52 Find the department with the most employees.,SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1; How many segment C are there in the episode where segment D is bicycle tires?,"SELECT COUNT(segment_c) FROM table_15187735_20 WHERE segment_d = ""Bicycle Tires""" "How many events did the device ID ""3915082290673130000"" join?",SELECT COUNT(event_id) FROM events WHERE device_id = 3915082290673130000 Name the result for 1810,"SELECT result FROM table_2668352_14 WHERE first_elected = ""1810""" What is the title when the series # is 7?,SELECT title FROM table_29747178_2 WHERE series__number = 7 What was the score on October 13?,"SELECT score FROM table_name_94 WHERE date = ""october 13""" Show order ids and the total quantity in each order.,"SELECT order_id , sum(product_quantity) FROM Order_items GROUP BY order_id" How many different professors are there for the different schools?,"SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code" Where did Kisnorbo move from?,"SELECT moving_from FROM table_22810095_8 WHERE name = ""Kisnorbo""" What is the league for season 1955-56?,"SELECT league FROM table_name_93 WHERE season = ""1955-56""" "What is the average attendance for the game on September 26, 1976?","SELECT AVG(attendance) FROM table_name_48 WHERE date = ""september 26, 1976""" "For businesses with long length reviews, which state are they located?",SELECT DISTINCT T1.state FROM Business AS T1 INNER JOIN Tips AS T2 ON T1.business_id = T2.business_id WHERE T2.tip_length = 'Long' Which team had a qualifying 2 time of 1:01.093?,"SELECT team FROM table_name_11 WHERE qual_2 = ""1:01.093""" What is the average quantity of product that have been shipped by Federal Shipping in November 1996?,SELECT CAST(SUM(T2.Quantity) AS REAL) / COUNT(T2.OrderID) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Shippers AS T3 ON T1.ShipVia = T3.ShipperID WHERE T1.ShippedDate LIKE '1996-11%' AND T3.CompanyName = 'Federal Shipping' State name of students who have been absent for 5 months from school and do not have payment due.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T1.month = 5 AND T2.bool = 'neg' Can you list the names in alphabetical order from top to bottom?,SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1 order by T1.name How many have interactions with medicines?,SELECT count ( distinct enzyme_id ) FROM medicine_enzyme_interaction Who is the player from Round 3 from Russia?,"SELECT player FROM table_name_17 WHERE round = 3 AND nationality = ""russia""" Engine 2.3 16v has how many cylinders?,"SELECT cyl FROM table_name_1 WHERE engine = ""2.3 16v""" In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?,"SELECT T1.season , T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'" Name the opponents for game 5,SELECT opponents FROM table_21091145_1 WHERE game = 5 How many lots have share count smaller than 50?,SELECT Count ( T1.lot_id ) FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 The deputy that left office in 2003 took office in which year?,"SELECT took_office FROM table_name_90 WHERE left_office = ""2003""" "What is the date when the document ""Marry CV"" was stored?","SELECT date_stored FROM All_documents WHERE Document_name = ""Marry CV""" Who is the customer with the largest payment for rental films?,"SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, SUM(T2.amount) AS num FROM customer AS T1 INNER JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1" What are their ids?,SELECT customer_id FROM Customers "Great, can you show the role code with the last employees? | Did you mean the employee with the largest id? | yes",SELECT role_code FROM Employees order by employee_id desc limit 1 List all the object classes in image 10.,SELECT DISTINCT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 10 Can you filter this list to show only the students? | Would you like me to show you a list of names and corresponding jobs for people whose job is student? | Yes please!,"SELECT name, job FROM Person WHERE job = 'student'" What Event has an Outcome of other open tournaments?,"SELECT event FROM table_name_34 WHERE outcome = ""other open tournaments""" How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%?,"SELECT COUNT(eviction_result) FROM table_15162479_8 WHERE eviction_no = 12 AND vote_to_save = ""2.76%""" name the composer of balls to wall,"SELECT distinct T2.composer FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall""" What game was developed by Naughty Dog?,"SELECT genre FROM table_name_33 WHERE developer_s_ = ""naughty dog""" What 1986 movie was nominated for a Tony Award for Best Book of a Musical?,select name from musical where year = 1986 and category = 'Best Book of a Musical' and Result = 'Nominated' What is the place of the person with a score of 67-70=137?,SELECT place FROM table_name_96 WHERE score = 67 - 70 = 137 Which FCC info has an ERP W of 100 watts?,"SELECT fcc_info FROM table_name_67 WHERE erp_w = ""100 watts""" "Show the average room count of the apartments that have booking status code ""Provisional"".","SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" List the course's name where students acquired a grade of D.,SELECT T1.name FROM course AS T1 INNER JOIN registration AS T2 ON T1.course_id = T2.course_id WHERE T2.grade = 'D' "When a team wins 4, how much is the Maximum amount of points?",SELECT MAX(points) FROM table_14889048_2 WHERE wins = 4 What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Rylan"" AND T4.staff_last_name = ""Homenick"" )" What player has a total of 297?,SELECT player FROM table_name_87 WHERE total = 297 What is the date for the game where Platense was the home side?,"SELECT date FROM table_name_99 WHERE home = ""platense""" What is the Shirt No for Henry Bell Cisnero whose height is less than 190?,"SELECT MAX(shirt_no) FROM table_name_24 WHERE height < 190 AND player = ""henry bell cisnero""" How many candidates were there in the year of 1987?,"SELECT number_of_candidates FROM table_19698421_1 WHERE year = ""1987""" What is the lowest grid with rider casey stoner and laps that are smaller than 27?,"SELECT MIN(grid) FROM table_name_96 WHERE rider = ""casey stoner"" AND laps < 27" What year did actor Richard Farnsworth get nominated for an award?,"SELECT year FROM table_name_73 WHERE actor = ""richard farnsworth""" "What is the compatible repository when the version is old version, no longer supported: 9 and default desktop environment is lxde?","SELECT compatible_repository FROM table_27329061_2 WHERE version = ""Old version, no longer supported: 9"" AND default_desktop_environment = ""LXDE""" What type of ship is the Corbridge ?,"SELECT type FROM ship WHERE name = ""Corbridge""" How many transactions have the type code PUR?,"SELECT count ( * ) FROM TRANSACTIONS WHERE transaction_type_code = ""PUR""" What is the Born–Died for the person whose family moved to Australia at age 6?,"SELECT born___died FROM table_name_93 WHERE connection_with_australia = ""family moved to australia at age 6""" How many flights arriving in Aberdeen city?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" How many airports haven't the pilot 'Thompson' driven an aircraft?,SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot = 'Thompson' ); Find all students taught by OTHA MOYER. Output the first and last names of the students.,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" "What is the highest goals for that has a drawn less than 11, with a played less than 42?",SELECT MAX(goals_for) FROM table_name_54 WHERE drawn < 11 AND played < 42 Show me organization ids for organizations described as research,SELECT t1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' Find the name of the club that has the most female students.,"SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = ""F"" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1" "How many teams did the team with the most victories in 1915 play against? Indicate the name of the team who won the most games in 1915, as well as the names of the opposing team.","SELECT COUNT(DISTINCT oppID), T2.tmID, T2.oppID FROM Teams AS T1 INNER JOIN TeamVsTeam AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID WHERE T2.year = 1915 GROUP BY T2.tmID, T2.oppID ORDER BY SUM(T2.W) DESC LIMIT 1" "Are there any captains that are included in both lists? | Did you mean ships that are included in both lists? | Oh sorry, yes ships that are included in both lists",SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' How many Eredivisie teams have played in 2008?,SELECT COUNT(DISTINCT T1.HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Eredivisie' AND T1.season = 2008 "What was built in a class with less than 10, and the Downer Rail owner?","SELECT built FROM table_name_58 WHERE number_in_class < 10 AND owner = ""downer rail""" What was the score when Françoise Dürr was partner?,"SELECT score FROM table_177273_2 WHERE partner = ""Françoise Dürr""" Please list the official full names of all the current legislators who have served in the U.S. House.,SELECT official_full_name FROM current WHERE house_history_id IS NOT NULL What is the movie that Paul Schneider directed?,"SELECT title FROM table_name_97 WHERE director = ""paul schneider""" "Can you tell me the Chinese that has the Chapter larger than 4, and the English Translation of food transformations?","SELECT chinese FROM table_name_7 WHERE chapter > 4 AND english_translation = ""food transformations""" Show the organizer and name for churches that opened between 1830 and 1840.,"SELECT organized_by, name FROM church WHERE open_date BETWEEN 1830 AND 1840" What is the title of Amenemhat I?,"SELECT title FROM table_name_57 WHERE name = ""amenemhat i""" List out the table name of countries using series code as SP.DYN.TO65.MA.ZS,SELECT T1.TableName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SP.DYN.TO65.MA.ZS' Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802,"SELECT guns FROM table_name_63 WHERE class = ""third-rate ship of the line"" AND rank = ""vice-admiral"" AND year = ""1802""" How many volts has an energy-to-weight ratio of 54 kj/kg to 2.0v?,"SELECT volts FROM table_name_44 WHERE energy_to_weight_ratio = ""54 kj/kg to 2.0v""" Who has 48 points in the class of 500 cc?,"SELECT team FROM table_name_11 WHERE points = 48 AND class = ""500 cc""" Show the first name of all employees and their salary.,"SELECT first_name, salary FROM employees" Who was the opponent in the Women's Cup 0 0 where Brancão Couto 0 is the scorer?,"SELECT opponent FROM table_27654988_1 WHERE competition = ""Women's Cup 0 0"" AND scorers = ""Brancão Couto 0""" "How many Forfeits have Wins smaller than 8, and Losses larger than 16?",SELECT COUNT(forfeits) FROM table_name_84 WHERE wins < 8 AND losses > 16 Who owns the station on channel 33.3?,"SELECT station_ownership FROM table_1404984_1 WHERE virtual_channel = ""33.3""" What is the total number of students?,SELECT count(*) FROM Student "What movies contain the words ""deleted scenes"" in the column Special Features?",SELECT * FROM film WHERE special_features LIKE '%Deleted Scenes%' What is the smallest crowd with fitzroy as the home team?,"SELECT MIN(crowd) FROM table_name_8 WHERE away_team = ""fitzroy""" What is the Year commissioned of the power station with a Gross head of 60 metres and Average annual output of less than 59 million KWh?,SELECT MAX(year_commissioned) FROM table_name_75 WHERE gross_head__metres_ = 60 AND average_annual_output__million_kwh_ < 59 What country is phil mickelson from?,"SELECT country FROM table_name_57 WHERE player = ""phil mickelson""" "What is the customer id, first and last name with most number of accounts.","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1" How about the most recent one?,SELECT year FROM Movie order by year DESC limit 1 What was the score when the partner is Rafael Osuna?,"SELECT score FROM table_2215159_2 WHERE partner = ""Rafael Osuna""" Find the number of different states which banks are located at.,SELECT COUNT(DISTINCT state) FROM bank Find the names of all the product characteristics.,SELECT DISTINCT characteristic_name FROM CHARACTERISTICS Find the average ram mib size of the chip models that are never used by any phone.,SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone) Which Total is the lowest one that has a Rank smaller than 1?,SELECT MIN(total) FROM table_name_47 WHERE rank < 1 What is the name of the game that has been played the most?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1 What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?,SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8 What is the s wicket value associated with Shaun Young?,"SELECT s_wicket FROM table_name_51 WHERE player = ""shaun young""" How many losses for the team atl. colegiales?,"SELECT MAX(losses) FROM table_18594107_2 WHERE team = ""Atl. Colegiales""" Give me the names of all the students,"SELECT lname, fname FROM STUDENT" List all of the ids for left-footed players with a height between 180cm and 190cm.,"SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = ""left""" Provide the congress representatives' IDs of the postal points in East Springfield.,SELECT T2.district FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code WHERE T1.city = 'East Springfield' Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.,"SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)" What is the most populace city that speaks English?,"SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = ""English"" ORDER BY T1.Population DESC LIMIT 1" What is the year when sigourney weaver was nominated for best actress?,"SELECT year__ceremony_ FROM table_name_26 WHERE category = ""best actress"" AND actor_actress = ""sigourney weaver""" "Which Architecture and modelling has a Unit test of no, and a Projects templates of limited?","SELECT architecture_and_modelling FROM table_name_5 WHERE unit_test = ""no"" AND projects_templates = ""limited""" "Which city is the headquarter of the store named ""Blackville"" in?","SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = ""Blackville""" Which song directed by datta naik had the ending stranza written by Johnny Walker?,"SELECT additional_info FROM table_2528382_1 WHERE music_director = ""Datta Naik""" How many students does each advisor have?,"SELECT advisor , count(*) FROM Student GROUP BY advisor" What is the name of team 2 that has 1-2 as the score?,"SELECT team_2 FROM table_name_91 WHERE score = ""1-2""" What is the total number of airlines?,SELECT count(*) FROM airlines "How many keywords are there for season 9, episode 23 of law_and_order?",SELECT COUNT(T2.keyword) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.season = 9 AND T1.episode = 23 Provide the name of the airport which landed the most number of flights on 2018/8/15.,SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/15' ORDER BY T2.DEST DESC LIMIT 1 How many of the students joined two organization?,SELECT COUNT(name) FROM enlist WHERE organ >= 2 What is the least w?,SELECT MIN(w) FROM table_29704430_1 "How many gold medals were won by the nation that won over 4 silver medals, over 14 bronze, and 97 medals total?",SELECT COUNT(gold) FROM table_name_88 WHERE silver > 4 AND bronze > 14 AND total = 97 What was the attendance when the Southend United was the home team?,"SELECT attendance FROM table_name_1 WHERE home_team = ""southend united""" Show the church names for the weddings of all people older than 30.,SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30 Which opponent has a loss of wells (1-3)?,"SELECT opponent FROM table_name_95 WHERE loss = ""wells (1-3)""" Can you tell me the Record that has the Opponent of vs. hamilton tiger cats?,"SELECT record FROM table_name_55 WHERE opponent = ""vs. hamilton tiger cats""" Thank you. What are their names?,SELECT employee_name FROM Employees WHERE employee_id IN ( SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed ) "How many products are there under the category ""Seeds""?","SELECT count(*) FROM products WHERE product_category_code = ""Seeds""" "What is First Member, when Election is ""1871 by-election""?","SELECT first_member FROM table_name_95 WHERE election = ""1871 by-election""" What was the episode name when share was 8?,SELECT episode FROM table_20522228_2 WHERE share = 8 "What Field was Commissioned in 1958, 2005?","SELECT field FROM table_name_24 WHERE commissioned = ""1958, 2005""" What are the statuses and average populations of each city?,"SELECT Status , avg(Population) FROM city GROUP BY Status" Show the most common nationality for journalists.,SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 Which county has the largest population? Give me the name of the county.,SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 What is the average latitude and longitude of stations located in San Jose city?,"SELECT avg(lat) , avg(long) FROM station WHERE city = ""San Jose""" What are the full names of the customer who gave River City a 5-star?,"SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T3.BrandName = 'River City' AND T2.StarRating = 5" What was the date when order id 5 was placed?,SELECT date_order_placed FROM Orders WHERE order_id = 5 Show the names of customers who use Credit Card payment method,SELECT customer_name from customers where payment_method_code = 'Credit Card' On what date did the Du monde entier company request that 9 units of Filo Mix be sent to it?,SELECT T2.OrderDate FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID WHERE T4.ProductName = 'Filo Mix' AND T3.Quantity = 9 AND T1.CompanyName = 'Du monde entier' "What is the average number of reviews of all the root beer brands from ""CA"" State?",SELECT CAST(COUNT(*) AS REAL) / COUNT(DISTINCT T1.BrandID) AS avgreview FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.State = 'CA' WHAT IS THE TOTAL WITH A TO PAR OF 10?,SELECT MAX(total) FROM table_name_30 WHERE to_par = 10 Who had the highest rebounds in game 2?,SELECT high_rebounds FROM table_23286112_12 WHERE game = 2 What was the number of attendance at Stadion with a score of 2-0,"SELECT attendance FROM table_name_90 WHERE venue = ""stadion"" AND score = ""2-0""" How many goals on average are there for rank 3?,SELECT AVG(goals_for) FROM table_name_52 WHERE rank = 3 What is the highest number of bronzes for countries ranking over 5 with 0 golds?,SELECT MAX(bronze) FROM table_name_74 WHERE rank > 5 AND gold < 0 What is the extra when the result is 4th at the NCAA Championships?,"SELECT extra FROM table_name_28 WHERE result = ""4th"" AND tournament = ""ncaa championships""" What is the price and name of the product bought by Erica Xu?,"SELECT T3.Price, T3.Name FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.FirstName = 'Erica' AND T2.LastName = 'Xu'" Which game type has least number of games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY COUNT(*) LIMIT 1 How many female Professors do we have?,"SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = ""Professor""" "Among the complaints received in year 2015, what is total number of complaints timely response and closed with an explanation?","SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%Y', T1.`Date received`) = '2015' AND T2.`Timely response?` = 'Yes' AND T2.`Company response to consumer` = 'Closed with explanation'" what are the results of the opponent of spain?,"SELECT results¹ FROM table_name_78 WHERE opponent = ""spain""" Find the total access count of all documents in the most popular document type.,SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 How many rooms have king beds? Report the number for each decor type.,"SELECT decor , count(*) FROM Rooms WHERE bedType = ""King"" GROUP BY decor;" What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?,"SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = ""°04′58″"" AND apparent_magnitude > 7.3" The fighting knights has what type of nickname?,"SELECT type FROM table_1183842_1 WHERE nickname = ""Fighting Knights""" What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?,SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4 What is the first name of each student entrolled in class ACCT-211?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' How many people live in Norton?,"SELECT SUM(population) FROM table_name_1 WHERE town = ""norton""" i want to highest resolution in the song table,SELECT resolution FROM song ORDER BY resolution DESC LIMIT 1 who are all the players for st. thomas aquinas high school,"SELECT player FROM table_11677691_12 WHERE school = ""St. Thomas Aquinas High school""" "Among the most important courses, what is the name of the most difficult course?",SELECT name FROM course WHERE credit = ( SELECT MAX(credit) FROM course ) AND diff = ( SELECT MAX(diff) FROM course ) Give the student staff ratio of university ID 35.,SELECT student_staff_ratio FROM university_year WHERE university_id = 35 "Tell me the price of Cream Soda in dollars, euros and pounds.","SELECT price_in_dollars, price_in_euros, price_in_pounds FROM catalog_contents WHERE catalog_entry_name = ""Cream Soda""" Provide the code summarization for the weather recorded by the weather station which contained the no.2 store on 2013/2/12.,SELECT T1.codesum FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2013-02-12' AND T2.store_nbr = 2 What are the names of customers who have not taken a Mortage loan?,SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' hi. what is the average capacity of the stadiums?,SELECT avg ( capacity ) FROM stadium Which trainer had a time of 1:10.09 with a year less than 2009?,"SELECT trainer FROM table_name_34 WHERE year < 2009 AND time = ""1:10.09""" What are the airline names and abbreviations for airlines in the USA?,"SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = ""USA""" "What is the date for a week before 9, and a opponent of dallas cowboys?","SELECT date FROM table_name_18 WHERE week < 9 AND opponent = ""dallas cowboys""" Which coach has the best performance for team DET in history? What was the winning percentage? Name the coach and the year he coached.,"SELECT CAST(T2.W AS REAL) / T2.G, T1.firstName, T1.lastName, T2.year FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN ( SELECT coachID FROM Coaches ORDER BY CAST(w AS REAL) / g DESC LIMIT 1 ) AS T3 ON T2.coachID = T3.coachID" "Which Drawn has a Points of 6, and a Against larger than 16?",SELECT SUM(drawn) FROM table_name_17 WHERE points = 6 AND against > 16 What is the Release Date for Model Number c7 1.8?,"SELECT release_date FROM table_name_62 WHERE model_number = ""c7 1.8""" Name the swuinsuit for oregon,"SELECT swimsuit FROM table_17516967_1 WHERE state = ""Oregon""" "What is To Par, when Place is ""T5"", and when Country is ""United States""?","SELECT to_par FROM table_name_18 WHERE place = ""t5"" AND country = ""united states""" Which customers have at least 2 accounts? List their first names please.,SELECT T2.customer_first_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 2 Show names of companies and that of employees in descending order of number of years working for that employee.,"SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working" What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships?,"SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = ""Norway"" AND holmenkollen = ""1958""" "Please list the Asian populations of all the residential areas with the bad alias ""URB San Joaquin"".",SELECT SUM(T1.asian_population) FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T2.bad_alias = 'URB San Joaquin' Which team has the oldest player?,SELECT Team FROM player ORDER BY Age DESC LIMIT 1 What is the Metric value of Russian че́тверть?,"SELECT metric_value FROM table_name_19 WHERE russian = ""че́тверть""" What day did Chris Maddocks compete in the 35000 m?,"SELECT date FROM table_name_83 WHERE athlete = ""chris maddocks"" AND event = ""35000 m""" From which college was the player who won the most award in 1970.,SELECT college FROM players WHERE playerID = ( SELECT playerID FROM awards_players WHERE year = 1970 GROUP BY playerID ORDER BY COUNT(award) DESC LIMIT 1 ) What are the names of managers in ascending order of level?,SELECT Name FROM manager ORDER BY LEVEL ASC "Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811?",SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811 What is the total number of roll for Te Hapua school?,"SELECT COUNT(roll) FROM table_name_12 WHERE name = ""te hapua school""" "For which Game 4, did David Boyle play in Game 3?","SELECT game_4 FROM table_name_41 WHERE game_3 = ""david boyle""" Which party's candidate is Grech Louis Grech?,"SELECT party FROM table_name_36 WHERE candidate = ""grech louis grech""" Show me the names of all artist?,SELECT Name FROM ARTIST Please list the starting stations of the bike trips made on a day with a max humidity over 80 in 2013 in the area where the zip code is 94107.,"SELECT DISTINCT T1.start_station_name FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2013' AND T2.zip_code = 94107 AND T2.max_temperature_f > 80" Can you list them for me with their names and majors? | First name? | Yes please. First name and major.,"SELECT fname , major FROM Student WHERE StuID NOT IN ( SELECT StuID FROM Has_allergy WHERE Allergy = ""Soy"" ) " Who made the challenge on the Albert Park Grand Prix Circuit?,"SELECT challenge FROM table_25531112_2 WHERE circuit = ""Albert Park Grand Prix circuit""" "How many times does the Catalan word ""nombre"" repeat itself?",SELECT T1.occurrences FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T2.word = 'nombre' What is the average number of conversions for the Cardiff Blues with less than 14 tries?,"SELECT AVG(conversions) FROM table_name_91 WHERE team = ""cardiff blues"" AND tries < 14" Show first name and last name for all the students advised by Michael Goodrich.,"SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = ""Michael"" AND T1.lname = ""Goodrich""" What is the location id for Debur and Polish?,SELECT LocationID FROM Location WHERE Name = 'Debur and Polish' What is the full name of the team with the fastest growth in winning rate in the 'ABA' league from 1972 to 1973?,SELECT T1.name FROM teams AS T1 INNER JOIN ( SELECT * FROM teams WHERE lgID = 'ABA' AND year = 1972 ) AS T2 ON T1.tmID = T2.tmID WHERE T1.lgID = 'ABA' AND T1.year = 1973 ORDER BY (CAST(T1.won AS REAL) / (T1.won + T1.lost) - (CAST(T2.won AS REAL) / (T2.won + T2.lost))) DESC LIMIT 1 What country has the largest surface area?,SELECT Name FROM Country ORDER BY SurfaceArea DESC LIMIT 1 "Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?","SELECT entrant FROM table_name_63 WHERE pts < 12 AND engine = ""climax"" AND chassis = ""lotus 24""" What is the product type code of order item 1?,SELECT production_type_code from Order_Items as T1 join Products as T2 on T1.product_id = T2.product_id where T1.order_item_id = 1 Find the id and rank of the team that has the highest average attendance rate in 2014.,"SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;" "What was the home team's score at the game that had a crowd larger than 24,000?",SELECT home_team AS score FROM table_name_79 WHERE crowd > 24 OFFSET 000 "Which of Shakespeare's work has chapter description of ""A field near Windsor""?",SELECT T2.Title FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T1.Description = 'A field near Windsor.' "What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta?","SELECT date FROM table_name_42 WHERE outcome = ""runner-up"" AND score = ""6–4, 6–2"" AND opponents = ""gisela dulko flavia pennetta""" What is the total of all against values for the Corinthians with less than 3 lost?,"SELECT COUNT(against) FROM table_name_4 WHERE team = ""corinthians"" AND lost < 3" What's the number of the horse whose trainer is Kim Bailey?,"SELECT MAX(number) FROM table_20095300_1 WHERE trainer = ""Kim Bailey""" "What is the date of the game later than week 13 and 41,862 people attended?","SELECT date FROM table_name_62 WHERE week > 13 AND attendance = ""41,862""" How many games had an assist number greater than 54?,SELECT SUM(games) FROM table_name_54 WHERE assist > 54 Please list the names of all the awards won by the crew member whose nickname is Doofus.,SELECT T2.award FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T1.nickname = 'Doofus' AND T2.result = 'Winner'; "Among sales teams in Midwest region, which sales team has an order quantity greater than 5?",SELECT DISTINCT T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.Region = 'Midwest' AND T1.`Order Quantity` > 5 What pick was mario williams before 2006?,"SELECT SUM(pick) FROM table_name_72 WHERE player_name = ""mario williams"" AND year < 2006" and the chargeable amount for these?,SELECT chargeable_amount FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name Name the 26 august 2005 asian record,"SELECT 26 AS _august_2005 FROM table_24011830_2 WHERE world_record = ""Asian record""" "Show the No.3 character name in the credit list of the movie ""G.I. Joe: The Rise of Cobra"".",SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'G.I. Joe: The Rise of Cobra' AND T2.creditOrder = '3' Which opponent was a runner-up on 2 march 1998?,"SELECT opponent_in_the_final FROM table_name_6 WHERE outcome = ""runner-up"" AND date = ""2 march 1998""" What is the date assigned from and date assigned to sales person?,"SELECT date_assigned_from,date_assigned_to FROM Staff_Department_Assignments where job_title_code = ""Sales Person""" What is the series code for Germany and what is its description?,"SELECT T1.Seriescode, T1.Description FROM CountryNotes AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.ShortName = 'Germany'" What is Myron Pryor Hometown?,SELECT Hometown FROM member where name = 'Myron Pryor' what is the city area of Bahawalnagar District,"SELECT city_area FROM district where District_name = ""Bahawalnagar District""" How many professors who has a either Ph.D. or MA degree?,SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' What game type is Works of Widenius?,"SELECT GType FROM Video_games where GName = ""Works of Widenius""" What is the birth date of the member with the Defining characteristic of pink hair?,"SELECT birthdate FROM table_name_63 WHERE defining_characteristics = ""pink hair""" What is the pos with weight less than 205?,SELECT pos FROM table_name_37 WHERE weight < 205 "Which employee has the lowest job level. State the first name, last name and when he /she was hired.","SELECT fname, lname, hire_date FROM employee ORDER BY job_lvl LIMIT 1" "How many ""5"" star reviews does the Yelp business No. ""10682"" get?",SELECT COUNT(review_length) FROM Reviews WHERE business_id = 10682 AND review_stars = 5 Which Baltimore group is of the retroviridae family?,"SELECT baltimore_group FROM table_name_62 WHERE family = ""retroviridae""" "Among the artists from 1980 to 1982. Which artist was tagged as ""disco""?",SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'disco' AND T1.groupYear BETWEEN 1980 AND 1982 What are the ids of documents with the letter 's' in the name with any expense budgets?,SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' Where did Geelong play as the home team?,"SELECT venue FROM table_name_4 WHERE home_team = ""geelong""" Show me the name of the store name with dept store id 1? | Do you mean dept store chain name? | yes,"SELECT dept_store_chain_name from Department_Store_Chain where dept_store_chain_id = 1" What is the record on March 16?,"SELECT record FROM table_name_66 WHERE date = ""march 16""" When did the team score 21 goals?,SELECT date FROM table_name_67 WHERE goal = 21 Name the results for institutional authority of paf,"SELECT results FROM table_name_73 WHERE institutional_authority = ""paf""" "What is Fleet Number(s), when Wheel Arrangement is ""2-6-0"", and when Class is ""Z""?","SELECT fleet_number_s_ FROM table_name_98 WHERE wheel_arrangement = ""2-6-0"" AND class = ""z""" How many flights depart from 'APG'?,"SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = ""APG""" Which MLS Team's pick number was 31?,SELECT mls_team FROM table_name_69 WHERE pick__number = 31 "What is Date, when Team is Holden Racing Team, and when Circuit is Eastern Creek Raceway?","SELECT date FROM table_name_40 WHERE team = ""holden racing team"" AND circuit = ""eastern creek raceway""" "Thank you very much. This will be my last question, could you please show me the name of female students who are majoring in 520, if there are any? | Did you mean the full name about those ? | yes please, first and last name would be great.","select Fname , Lname FROM Student where Sex = 'F' and Major = 520" What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2?,SELECT MAX(west_lancashire) FROM table_name_15 WHERE pendle > 1 AND rossendale > 2 When is the date of vacancy of Davy Fitzgerald being a replacement?,"SELECT date_of_vacancy FROM table_11190568_7 WHERE replaced_by = ""Davy FitzGerald""" How many people attended the game that ended 4-6?,"SELECT COUNT(attendance) FROM table_name_15 WHERE score = ""4-6""" "In the calls from the mountain division, how many are from teenage clients?",SELECT COUNT(T1.age) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.age BETWEEN 12 AND 20 AND T2.division = 'Mountain' What the listed in round when the hawthorn score is 17.7.109?,"SELECT MAX(round) FROM table_28211103_1 WHERE hawthorn_score = ""17.7.109""" How many departments are in the division AS?,"SELECT count(*) FROM DEPARTMENT WHERE Division = ""AS""" Show the headquarters that have at least two companies.,SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2 What are the titles of all movies that James Cameron directed after 2000?,SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 What are the distinct address type codes for all customer addresses?,SELECT DISTINCT address_type_code FROM customer_addresses What is the Attendance of the game with a Result of L 20-14?,"SELECT attendance FROM table_name_46 WHERE result = ""l 20-14""" What was the tier versus Annalisa bona?,"SELECT tier FROM table_name_59 WHERE opponent_in_the_final = ""annalisa bona""" What were the high points on May 12?,"SELECT high_points FROM table_name_4 WHERE date = ""may 12""" Name the host for prime,"SELECT host_s_ FROM table_16884579_1 WHERE network = ""Prime""" How many distinct names are associated with all the photos?,SELECT count(DISTINCT Name) FROM PHOTOS Name the location attendance for 10-14,"SELECT location_attendance FROM table_23248940_7 WHERE record = ""10-14""" "Among the books purchased by less than 1 dollar, what is the difference between the number of books with less than 500 pages and books with greater than 500 pages?",SELECT SUM(CASE WHEN T1.num_pages < 500 THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.num_pages > 500 THEN 1 ELSE 0 END) AS dif FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.price < 1 What is the female rank in Karnataka?,"SELECT females_rank FROM table_14785903_1 WHERE states = ""Karnataka""" What is the police force of counties on the east side?,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East""" List all countries and their number of airlines in the descending order of number of airlines.,"SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC" "If Jose Rodriguez tried his best, how many percentage can his salary raise without changing his position?","SELECT 100 * (CAST(REPLACE(SUBSTR(T2.maxsalary, 4), ',', '') AS REAL) - CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) AS per FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'Jose' AND T1.lastname = 'Rodriguez'" How many players are playing for the listed colleges?,"SELECT college, count ( * ) FROM match_season group by college" What are the names of festivals held in year 2007?,SELECT Festival_Name FROM festival_detail WHERE YEAR = 2007 What was the location with the 24-21 result?,"SELECT location FROM table_name_54 WHERE result = ""24-21""" "Tell the abbreviation for ""Delaware"" state.",SELECT T FROM ( SELECT DISTINCT CASE WHEN state = 'Delaware' THEN state_abbr ELSE NULL END AS T FROM state_sector_grads ) WHERE T IS NOT NULL What are the names and decor of rooms with a king bed? Sort them by their price,"SELECT roomName , decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice;" What was the surface on 23 October 2011?,"SELECT surface FROM table_name_97 WHERE date = ""23 october 2011""" "When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + 2 laps, what is the average number of laps?","SELECT AVG(laps) FROM table_name_96 WHERE time_retired = ""+ 2 laps"" AND driver = ""mike hailwood"" AND grid > 12" What city is the school that had less than 17 titles in boys basketball with the last title being after 2005?,"SELECT city FROM table_name_86 WHERE _number_of_titles < 17 AND last > 2005 AND sport = ""boys basketball""" How many results do Ellery and Frankie have?,"SELECT COUNT(result) FROM table_19744915_15 WHERE couple = ""Ellery and Frankie""" When was the school whose students are nicknamed Rams founded?,"SELECT MAX(founded) FROM table_1969577_3 WHERE nickname = ""Rams""" What is the highest average a contestant from Iowa with a swimsuit smaller than 9.267 has?,"SELECT MAX(average) FROM table_name_14 WHERE state = ""iowa"" AND swimsuit < 9.267" "What is Score, when To Par is ""E""?","SELECT score FROM table_name_8 WHERE to_par = ""e""" "What is the highest bronze number when silver is 0, and the total is smaller than 1?",SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1 Which business ID received the review of 4 star and above by 65% of user? Describe their active status and city.,"SELECT DISTINCT T2.business_id, T2.city FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.review_stars >= 4 AND ( SELECT CAST(( SELECT COUNT(DISTINCT T1.user_id) FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.review_stars >= 4 ) AS REAL) * 100 / ( SELECT COUNT(user_id) FROM Users ) > 65 )" How many problems have been reported under staff ID 10?,"SELECT count ( * ) FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_id = ""10""" Can you display the address id associated with the city of Damianfort?,"SELECT address_id FROM Addresses WHERE city = ""Damianfort""" "List the asset id, details, make and model for every asset.","SELECT asset_id , asset_details , asset_make , asset_model FROM Assets" Name the least join date,SELECT MIN(join_date) FROM table_26466528_1 How much is the track Fast As a Shark?,"SELECT unit_price FROM tracks WHERE name = ""Fast As a Shark"";" "What is the location code for the country ""Canada""?","SELECT location_code FROM Ref_locations WHERE location_name = ""Canada""" Which Republican has a District of 10?,SELECT republican FROM table_name_26 WHERE district = 10 State the number of addresses in the Nordrhein-Westfalen district.,SELECT COUNT(address_id) FROM address WHERE district = 'Nordrhein-Westfalen' Show the distinct director of films with market estimation in the year of 1995.,SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995 Find the details for all chip models.,SELECT * FROM chip_model How many students belong to 1 club?,select count ( * ) from ( select stuid from member_of_club group by stuid having count ( * ) = 1 ) "Based on the credits, state how many roles were played in the 5th episode of simpson 20.",SELECT COUNT(DISTINCT T2.role) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 5; "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.","SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name ASC" How many users in user group M23-26 use a vivo device?,SELECT COUNT(T2.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'M23-26' AND T2.phone_brand = 'vivo' What were the wounded for complement of 46 off 656 men?,"SELECT wounded FROM table_11793221_4 WHERE complement = ""46 off 656 men""" What year was the name mount roskill grammar school?,"SELECT years FROM table_name_35 WHERE name = ""mount roskill grammar school""" What are the names of people in ascending alphabetical order?,SELECT Name FROM People ORDER BY Name ASC Who wrote episode number 48,SELECT written_by FROM table_20098479_1 WHERE no_in_series = 48 What are the names of the different departments?,SELECT DISTINCT dept_name FROM course In what Season is Necaxa an Opponent?,"SELECT season FROM table_name_96 WHERE opponent = ""necaxa""" What are the Department ids under the Sales and Marketing Group?,SELECT DepartmentID FROM Department WHERE GroupName = 'Sales and Marketing' What rocket has a Block of block i and a COSPAR ID of 1995-060a?,"SELECT rocket FROM table_name_41 WHERE block = ""block i"" AND cospar_id = ""1995-060a""" what's the party with incumbent being william e. evans,"SELECT party FROM table_1342359_5 WHERE incumbent = ""William E. Evans""" what is the minimum position with 31 points?,SELECT MIN(position) FROM table_27781212_1 WHERE points = 31 What is the record for june 10?,"SELECT record FROM table_name_28 WHERE date = ""june 10""" what is the city id of Nanjing,"SELECT City_ID from city WHERE City = ""Nanjing ( Jiangsu ) """ Who was the winning driver of the Kraco Car Stereo 150?,"SELECT winning_driver FROM table_name_78 WHERE name = ""kraco car stereo 150""" What is the name of the most expensive product?,SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1 Who placed order after having order cancelled?,"SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > ( SELECT min ( order_date ) FROM Customer_Orders WHERE order_status_code = ""Cancelled"" ) " What was the total number of rebounds on november 27?,"SELECT COUNT(high_rebounds) FROM table_22822559_4 WHERE date = ""November 27""" Please list the family names of any employees whose middle names begin with C.,SELECT LastName FROM Person WHERE PersonType = 'EM' AND MiddleName LIKE 'C%' Count the number of dogs of an age below the average.,SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs ) Show all role codes and the number of employees in each role.,"SELECT role_code, COUNT(*) FROM Employees GROUP BY role_code" How many employees live in Georgia?,"SELECT count(*) FROM Addresses WHERE state_province_county = ""Georgia"";" Name the others % for johnson,"SELECT others_percentage FROM table_1733457_1 WHERE county = ""Johnson""" What was the date that ended in a record of 8-25-7?,"SELECT date FROM table_name_21 WHERE record = ""8-25-7""" "In Alaska with school count of 1 from year 2011 to 2013, how many of the students are white?",SELECT COUNT(T2.race) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.schools_count = 1 AND T2.year BETWEEN 2011 AND 2013 AND T2.race = 'W' AND T1.state = 'Alaska' Return the money rank of the poker player with the greatest height.,SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 What country had a 100% cut?,"SELECT country FROM table_21690339_1 WHERE _percentage_cut = ""100%""" how many date with score being w 113–87,"SELECT COUNT(date) FROM table_13480122_5 WHERE score = ""W 113–87""" Who is the champion if the national trophy/rookie is not held?,"SELECT champion FROM table_25563779_4 WHERE national_trophy_rookie = ""not held""" How many episodes did Eve Weston write?,"SELECT COUNT(no_in_series) FROM table_27462177_1 WHERE written_by = ""Eve Weston""" Find the title of course that is provided by Statistics but not Psychology departments.,SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' When 790 am is the frequency what is the format?,"SELECT format FROM table_1949746_1 WHERE frequency = ""790 AM""" What is the fewest number of silvers for teams with more than 21 gold and more than 4 bronze?,SELECT MIN(silver) FROM table_name_56 WHERE bronze > 4 AND gold > 21 Which Purpose has a Name of oak?,"SELECT purpose FROM table_name_49 WHERE name = ""oak""" What is the lowest number of seats from the election with 27.0% of votes?,"SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = ""27.0%""" Name the Year which has a Label of atco records and a Type of album? Question 2,"SELECT year FROM table_name_15 WHERE label = ""atco records"" AND type = ""album""" Show the names and genders of players with a coach starting after 2011.,"SELECT T3.Player_name , T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011" What is the first year in the competition?,SELECT MIN(year) FROM table_19047_2 Return the names of all counties sorted by county name in descending alphabetical order.,SELECT County_name FROM county ORDER BY County_name DESC What is the name of the high schooler who has the greatest number of likes?,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 "What is the title of the program that was originally aired on June 13, 1999?","SELECT title FROM table_name_8 WHERE original_airdate = ""june 13, 1999""" Show the names of all airports with elevation over 5000.,SELECT name FROM airports WHERE elevation > 5000 Find the description of the most popular role among the users that have logged in.,SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1) Which of these users have more than one tweet?,SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1 How many registered students does each course have? List course name and the number of their registered students.,"SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id" How many millions of U.S. viewers watched the episode with the production code of 6AKY07?,"SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = ""6AKY07""" What is the multiplier for the processor with a frequency of 733MHz?,"SELECT multiplier FROM table_name_20 WHERE frequency = ""733mhz""" Name the location of the church for berle kyrkje,"SELECT location_of_the_church FROM table_178408_1 WHERE church_name = ""Berle kyrkje""" What was the season number for production code E2110?,"SELECT season_no FROM table_21781578_2 WHERE production_code = ""E2110""" "What is the weekly rank for the episode ""A Love of a Lifetime""?","SELECT Weekly_Rank FROM TV_series WHERE Episode = ""A Love of a Lifetime"";" What is the description of the most popular role among users that have logged in?,SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1) Show the name of aircraft which fewest people have its certificate.,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1 "For each type, how many ships are there?","SELECT TYPE , COUNT(*) FROM ship GROUP BY TYPE" What is Jerry Barber's To par?,"SELECT to_par FROM table_name_74 WHERE player = ""jerry barber""" What is the 2010–11 when the Event is colonial square ladies classic?,"SELECT 2010 AS _11 FROM table_name_75 WHERE event = ""colonial square ladies classic""" What is the make of the car that drove 54 laps?,SELECT constructor FROM table_name_26 WHERE laps = 54 Find the name of amenity that is most common in all dorms.,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1 What' the series number of the episode with season number 13?,SELECT MIN(no_in_series) FROM table_2226817_6 WHERE no_in_season = 13 How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1?,"SELECT MIN(silver) FROM table_name_3 WHERE bronze = 1 AND total > 1 AND nation = ""croatia""" What is the number of dances total number if the average is 22.3?,"SELECT COUNT(number_of_dances) FROM table_23662272_4 WHERE average = ""22.3""" What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823?,"SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = ""missouri"" AND average < 8.823" Show the names of players and names of their coaches in descending order of the votes of players.,"SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC" Find the policy type used by more than 4 customers.,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4 What station has average ratings of 14.7%?,"SELECT tv_station FROM table_name_25 WHERE average_ratings = ""14.7%""" What was the status of the election featuring incumbent margaret kaiser?,"SELECT status FROM table_26416704_2 WHERE incumbent = ""Margaret Kaiser""" Name the least number in season for jessica ball,"SELECT MIN(no_in_season) FROM table_23117208_4 WHERE written_by = ""Jessica Ball""" What is geelong's aberage crowd as Away Team?,"SELECT AVG(crowd) FROM table_name_13 WHERE away_team = ""geelong""" List the name of the phone model launched in year 2002 and with the highest RAM size.,SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1 Find names of all students who took some course and the course description.,"SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code" Name the vendor who has the shortest average lead time for Product ID 319.,SELECT T1.Name FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.ProductID = 319 ORDER BY T2.AverageLeadTime LIMIT 1 May I have their names please?,SELECT name FROM editor WHERE Age>25 and age<45 List out the procedure and medicine prescribed for drug overdose patients.,"SELECT DISTINCT T2.DESCRIPTION, T3.DESCRIPTION FROM encounters AS T1 INNER JOIN procedures AS T2 ON T1.PATIENT = T2.PATIENT INNER JOIN medications AS T3 ON T1.PATIENT = T3.PATIENT WHERE T1.REASONDESCRIPTION = 'Drug overdose'" "What is the id, name and IATA code of the airport that had most number of flights?","SELECT T1.id , T1.name , T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1" Find the checking balance of the accounts whose savings balance is higher than the average savings balance.,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM savings)) "What is the name of the product with the id ""475""?",SELECT Name FROM Product WHERE ProductID = 475 "Who is the earliest graduate of the school? List the first name, middle name and last name.","SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1" Find the name and checking balance of the account with the lowest saving balance.,"SELECT T2.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" Which college did the player picked larger than 130 by the New York Jets go to?,"SELECT college FROM table_name_95 WHERE pick > 130 AND team = ""new york jets""" What is the budget type code with most number of documents.,SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1 List all of the NLL Toronto Rock players. ,"SELECT player FROM table_18042409_1 WHERE national_lacrosse_league = ""Toronto Rock""" When 1 is the number in series who is the director?,SELECT director FROM table_18335117_3 WHERE no_in_series = 1 What proportion of the total gross of all movies is from movies with songs?,SELECT CAST(COUNT(CASE WHEN T1.song IS NOT NULL THEN T2.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T2.movie_title) FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie_title = T2.movie_title Calculate the percentage of businesses with the category name food that are open from 7AM to 8PM in the businesses with the same time.,SELECT CAST(SUM(CASE WHEN T3.category_name = 'Food' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.category_name) FROM Business_Categories AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T1.category_id = T3.category_id "What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft?","SELECT season FROM table_name_63 WHERE lead = ""don bartlett"" AND third = ""don walchuk"" AND second = ""carter rycroft""" What are the customer ID's for these orders?,SELECT t2.customer_id FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count ( * ) > 2 "Which papers have the substring ""Database"" in their titles? Show the titles of the papers.","SELECT title FROM papers WHERE title LIKE ""%Database%""" Who were the away teams when the competition was the 1st ``republic of srpska football day`` and the home team was u 14 republic of srpska?,"SELECT away_team FROM table_29728596_2 WHERE competition = ""1st ``Republic of Srpska Football Day``"" AND home_team = ""U 14 Republic of Srpska""" "What is the total number of Year with Wins of 1, and Losses smaller than 1?",SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1 What was the latest game that Sacramento played?,"SELECT MAX(game) FROM table_name_26 WHERE team = ""sacramento""" How many lessons did customer with first name Ray take?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" What is the smallest week 3 score?,SELECT MIN(week_3) FROM table_28946565_2 What date was the race at Oran Park ran?,"SELECT date FROM table_name_25 WHERE race_title = ""oran park""" What Position has a Round of 27?,SELECT position FROM table_name_95 WHERE round = 27 "When was the archbishop that was born on February 22, 1825 ordained as a bishop?","SELECT ordained_bishop FROM table_name_6 WHERE born = ""february 22, 1825""" "How many crimes are commited on January 1, 2018?",SELECT COUNT(*) FROM Crime WHERE date LIKE '1/1/2018%' What shows for series 4 when the seat shows 1?,SELECT series_4 FROM table_name_27 WHERE seat = 1 What are the hometowns that are shared by at least two gymnasts?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2 Find the state of all cities with post code starting with 4.,"SELECT state_province_county FROM addresses WHERE zip_postcode LIKE ""4%""" "Find the names and descriptions of the photos taken at the tourist attraction called ""film festival"".","SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = ""film festival""" How much capacity was installed in Wheatland?,"SELECT installed_capacity__mw_ FROM table_24837750_1 WHERE county = ""Wheatland""" "What is the total number of UEFA Cup(s), when Total is greater than 3?",SELECT COUNT(uefa_cup) FROM table_name_44 WHERE total > 3 Opponent of chicago bears involved what date?,"SELECT date FROM table_name_95 WHERE opponent = ""chicago bears""" "Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?","SELECT time FROM table_name_13 WHERE manufacturer = ""aprilia"" AND grid < 16 AND rider = ""sandro cortese""" What's the postal code of the office the VP Sales is at?,SELECT t2.postalCode FROM employees AS t1 INNER JOIN offices AS t2 ON t1.officeCode = t2.officeCode WHERE t1.jobTitle = 'VP Sales' "What is the attendance from November 3, 1974?","SELECT attendance FROM table_name_35 WHERE date = ""november 3, 1974""" Find the names of furnitures whose prices are lower than the highest price.,SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT max(Price_in_Dollar) FROM furniture_manufacte) "What is Country, when To Par is ""–2"", and when Player is ""Tsuneyuki Nakajima""?","SELECT country FROM table_name_48 WHERE to_par = ""–2"" AND player = ""tsuneyuki nakajima""" "List the locations ids, compartments and containers for the Lock Ring","SELECT T2.LocationID, T2.Shelf, T2.Bin FROM Product AS T1 INNER JOIN ProductInventory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE 'Lock Ring'" How many male players does Winnipeg have?,"SELECT count ( * ) FROM player where gender = ""M"" and residence = ""Winnipeg""" "How many zip codes are under Barre, VT?","SELECT COUNT(T2.zip_code) FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Barre, VT'" How many countries are there in the No.2 region?,SELECT COUNT(n_nationkey) FROM nation WHERE n_regionkey = 2 Find the average height and weight for all males (sex is M).,"SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'" What is the rank with a 14 finish?,"SELECT rank FROM table_name_13 WHERE finish = ""14""" How many pets have a greater weight than 10?,SELECT count(*) FROM pets WHERE weight > 10 What is the date in the 2007-08 season where the away team was the kaizer chiefs?,"SELECT date FROM table_27274566_2 WHERE season = ""2007-08"" AND away_team = ""Kaizer Chiefs""" Name the country with the largest number of households in a residential area.,SELECT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T1.county ORDER BY T2.households DESC LIMIT 1 Which district has an IUCN of iii and was established in 1998?,"SELECT district FROM table_name_44 WHERE iucn = ""iii"" AND est = 1998" What is the average absence period of a disabled student?,SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name What is the total amount of allied-unrelated where the component is human capital?,"SELECT COUNT(allied_unrelated) FROM table_11944282_1 WHERE component = ""Human Capital""" What was the margin of victory when the winning score was –10 (70-72-68-68=278)?,SELECT margin_of_victory FROM table_name_6 WHERE winning_score = –10(70 - 72 - 68 - 68 = 278) What is the percentage more for the rental payment for store No.2 than store No.1?,"SELECT CAST((SUM(IIF(T2.store_id = 2, T1.amount, 0)) - SUM(IIF(T2.store_id = 1, T1.amount, 0))) AS REAL) * 100 / SUM(IIF(T2.store_id = 1, T1.amount, 0)) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN store AS T3 ON T2.store_id = T3.store_id" How many animal type allergies exist?,"SELECT count(*) FROM Allergy_type WHERE allergytype = ""animal""" What was Footscray's score as an away team?,"SELECT away_team AS score FROM table_name_45 WHERE away_team = ""footscray""" What did the away team score at Junction oval?,"SELECT away_team AS score FROM table_name_30 WHERE venue = ""junction oval""" What Country has a 67 score by Phil Mickelson?,"SELECT country FROM table_name_89 WHERE score = 67 AND player = ""phil mickelson""" Which Game has a Score of w 90–82 (ot)?,"SELECT game FROM table_name_40 WHERE score = ""w 90–82 (ot)""" How many people canceled their orders,SELECT count ( distinct customer_id ) FROM customer_orders where order_status = 'Cancelled' "Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11?",SELECT MAX(tries_for) FROM table_name_12 WHERE points_against < 124 AND points_for < 241 AND tries_against < 11 Please list the full names of the employees who are working as a Trainee.,"SELECT T1.firstname, T1.lastname FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'" List out root beer brand that is not caffeinated and not containing cane sugar. What is the total amount sold for this products?,"SELECT T1.BrandName, SUM(T3.PurchasePrice) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.CaneSugar = 'FALSE' AND T1.Caffeinated = 'FALSE' GROUP BY T1.BrandName" What are the names of wines whose production year are before the year of all wines by Brander winery?,"SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = ""Brander"")" "In Movie No. 19, how many people are there in Department No. 7? Please give me their job.",SELECT COUNT(DISTINCT job) FROM movie_crew WHERE movie_id = 19 AND department_id = 7 Find the first names and offices of all instructors who have taught some course and also find the course description.,"SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" "List down the business ID with a star range from 3 to 4, located at Tempe.",SELECT business_id FROM Business WHERE city LIKE 'Tempe' AND stars BETWEEN 3 AND 4 Who wrote the lyrics when Jeevankala co-starred?,"SELECT lyricist FROM table_2528382_5 WHERE co_stars = ""Jeevankala""" "Which School has a Capacity larger than 730, and an Ofsted smaller than 106135, and a Locality of heaton mersey?","SELECT school FROM table_name_89 WHERE capacity > 730 AND ofsted < 106135 AND locality = ""heaton mersey""" What was Bryan Clay's react time?,"SELECT MIN(react) FROM table_name_94 WHERE name = ""bryan clay""" "What was the final score of the match that had an attendance of 9,205?","SELECT score_1 FROM table_name_99 WHERE attendance = ""9,205""" What is the total number of byes that has 1 draw and an against of 1374?,SELECT COUNT(byes) FROM table_name_1 WHERE draws = 1 AND against = 1374 Who is the oldest person?,SELECT name FROM Person WHERE age = (SELECT max(age) FROM person) What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?,SELECT MAX(market_value__billion_) AS $_ FROM table_name_79 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ > 166.99 What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?,"SELECT MAX(bronze) FROM table_name_22 WHERE silver > 10 AND edition = ""i"" AND gold > 9" "Which team did player Id ""roypa01"" play in 1992? Give the team id.",SELECT tmID FROM Goalies WHERE playerID = 'roypa01' AND year = 1992 Identify by their id all the orders that have been cancelled.,SELECT T2.order_id FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Cancelled' "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.","SELECT T2.first_name , T2.last_name , T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1" "What song came out on March 8, 2008?","SELECT song FROM table_name_8 WHERE date = ""march 8, 2008""" Who was the loser when the New York Giants were the winners on November 14?,"SELECT loser FROM table_name_71 WHERE winner = ""new york giants"" AND date = ""november 14""" What is the average and largest salary of all employees?,"SELECT avg(salary) , max(salary) FROM Employee" Name the record for houston,"SELECT record FROM table_23186738_6 WHERE team = ""Houston""" How many courses are there in total?,SELECT count(*) FROM COURSES What is the peak height of the highest volcanic type of mountain? Give it's name.,"SELECT Height, Name FROM mountain WHERE Type = 'volcanic' ORDER BY Height DESC LIMIT 1" please show me the names of all of the representatives,SELECT Name FROM representative "What was the surface for Julie Halard when the final score was 6–3, 6–2?","SELECT surface FROM table_name_55 WHERE partner = ""julie halard"" AND score_in_the_final = ""6–3, 6–2""" What is the cell phone number of the student whose address has the lowest monthly rental?,SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1 Name the most rebounds for larry smith,"SELECT MAX(rebounds) FROM table_22824319_3 WHERE player = ""Larry Smith""" Calculate the number of game publisher IDs for games released in 1984.,SELECT COUNT(T.game_publisher_id) FROM game_platform AS T WHERE T.release_year = 1984 What type of inspection was done at John Schaller?,SELECT DISTINCT T2.inspection_type FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'JOHN SCHALLER' Please list the full names of all the clients whose complaints are still in progress.,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'In progress'" What arena does the team play at that has Michael Wales as the captain?,"SELECT arena FROM table_2384331_1 WHERE captain = ""Michael Wales""" List the names of pilots in ascending order of rank.,SELECT Pilot_name FROM pilot ORDER BY Rank ASC "Among the organizations where headquarters are in the 'USA', what is the percentage of the them are in 'Washington'?",SELECT CAST(SUM(CASE WHEN T2.City = 'Washington' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.City) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T2.Country = 'USA' "If the points were 0, what was the losing bonus?","SELECT losing_bonus FROM table_name_32 WHERE points = ""0""" How many horror movies are there?,SELECT COUNT(T1.movie_id) FROM movie_genres AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.genre_id WHERE T2.genre_name = 'Horror' What is the average number of cuts made when there were more than 2 tournaments played in 2011?,SELECT AVG(cuts_made) FROM table_name_50 WHERE tournaments_played > 2 AND year = 2011 Name the total number of goals which have played more than 44,SELECT COUNT(goals_for) FROM table_name_13 WHERE played > 44 "Hello, could you find how many friends Alice has?",SELECT count ( * ) FROM PersonFriend where name = 'Alice' Who scored more than 72?,SELECT player FROM table_name_28 WHERE score > 72 When was John McEnroe's minimum year?,SELECT MIN(year) FROM table_22597626_1 What position does Antti-Jussi Niemi play?,"SELECT position FROM table_2840500_4 WHERE player = ""Antti-Jussi Niemi""" "Please list the names of all the players with a height of over 6'2"" inches.","SELECT DISTINCT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2""'" What is the label from 1973 that has a catalog number of l 35023?,"SELECT label FROM table_name_98 WHERE date = ""1973"" AND catalog = ""l 35023""" What was the result of the election featuring r. ewing thomason (d) unopposed?,"SELECT result FROM table_1342233_43 WHERE candidates = ""R. Ewing Thomason (D) Unopposed""" "How many authors have written paper ""145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: ""?",SELECT COUNT(DISTINCT T2.Name) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = '145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: ' In what genre did Microvision develop a game?,"SELECT genre FROM table_name_49 WHERE developer = ""microvision""" What is the name of the newest song?,SELECT song_name FROM song ORDER BY releasedate DESC LIMIT 1 In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?,"SELECT COUNT(profit__loss__before_tax__) AS £m_ FROM table_name_47 WHERE year_ended = ""2011"" AND net_profit__£m_ > 123.8" OK - what was the total number of bookings in 2016?,"SELECT count ( * ) FROM apartment_bookings where booking_start_date like ""%2016%""" Which places did Alison visit,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Alison""" "When the change is 8.8%, what is the density (pop/km²)?","SELECT density__pop_km²_ FROM table_1425958_1 WHERE _percentage_change = ""8.8""" Find the ids and names of stations from which at least 200 trips started.,"SELECT start_station_id , start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200" What is the average episode number with q146 format?,"SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = ""q146""" What is the ε (m −1 cm −1 ) of the red dye?,"SELECT ε__m_−1_cm_−1__ FROM table_26428602_1 WHERE color = ""red""" Give the names of the nations that were founded after 1950.,SELECT Name FROM country WHERE IndepYear > 1950 List out full name and email of employees who are working in Paris?,"SELECT T1.firstName, T1.lastName, T1.email FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T2.city = 'Paris'" What are the states with colleges that have enrollments less than the some other college?,SELECT DISTINCT state FROM college WHERE enr < (SELECT max(enr) FROM college) Show different teams of technicians and the number of technicians in each team.,"SELECT Team , COUNT(*) FROM technician GROUP BY Team" "Hello, how many candidates total are there?",SELECT count ( * ) FROM candidate "List the research assistants' full names, capabilities and GPAs who were under the supervision of Merwyn Conkay.","SELECT T3.f_name, T3.l_name, T2.capability, T3.gpa FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T1.first_name = 'Merwyn' AND T1.last_name = 'Conkay'" Find the first names of professors who are not playing Canoeing or Kayaking.,SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' What are the teams that have the 5 oldest players?,SELECT Team FROM player ORDER BY Age DESC LIMIT 5 Count different addresses of each school.,"SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code" List the names of studios that have at least two films.,SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2 what was the extra score when the overall score was 52,"SELECT losing_bonus FROM table_14070062_4 WHERE tries_for = ""52""" What is the lowest first half when the score is larger than 621 and the rank 35?,SELECT MIN(1 AS st_half) FROM table_name_21 WHERE score > 621 AND rank = 35 What ranking has the nationality of spain and the goals of 26?,"SELECT ranking FROM table_name_95 WHERE nationality = ""spain"" AND goals = 26" Calculate the percentage of female actors and quality 2 who have appeared twice at the casting of the film 1672580.,"SELECT CAST(SUM(IIF(T2.cast_num = 2 AND T1.a_quality = 2, 1, 0)) AS REAL) * 100 / COUNT(T1.actorid) FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid WHERE T2.movieid = 1672580 AND T1.a_gender = 'F'" What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17?,"SELECT score FROM table_name_30 WHERE home = ""chicago black hawks"" AND visitor = ""vancouver canucks"" AND date = ""november 17""" "How many users answered the question ""Overall, how much importance does your employer place on physical health?""?","SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Overall, how much importance does your employer place on physical health?'" Count the number of different characteristic names the product 'cumin' has.,"SELECT count(DISTINCT 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""" Which country has the highest infant mortality? Also state its population growth.,"SELECT T1.Name, T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country ORDER BY T2.Infant_Mortality DESC LIMIT 1" Which Office has a Republican ticket of daniel h. conway?,"SELECT office FROM table_name_63 WHERE republican_ticket = ""daniel h. conway""" Name the river at Little Rock city. State the length of the river.,SELECT T3.Length FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T1.Name = 'Little Rock' What is the average GPA of the students with the highest research capability and high salary? List the full names of the students.,"SELECT AVG(T2.gpa), T2.f_name, T2.l_name FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high' AND T1.capability = 5 GROUP BY T2.student_id" How many different kinds of clients are supported by the web clients accelerators?,SELECT count(DISTINCT client) FROM web_client_accelerator What I meant was the asset counts for each of these contracts,"SELECT count ( * ) , T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id" What was the date of the game that led to a 4-3 record?,"SELECT date FROM table_name_64 WHERE record = ""4-3""" Name the ptor-austronesian for father,"SELECT proto_austronesian FROM table_15568886_14 WHERE kinship = ""father""" Find the name of the employee who got the highest one time bonus.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 What is the first name and age of every student who lives in a dorm with a TV Lounge?,"SELECT T1.fname , T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" What is the qual 2 when the qual 1 is 1:16.841?,"SELECT qual_2 FROM table_name_49 WHERE qual_1 = ""1:16.841""" What are the ids of the problems which are reported after 1978-06-26?,"SELECT problem_id FROM problems WHERE date_problem_reported > ""1978-06-26""" "Among the patients that died, what is the condition of the oldest patient?","SELECT T1.DESCRIPTION FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.deathdate IS NOT NULL ORDER BY strftime('%Y', T2.deathdate) - strftime('%Y', T2.birthdate) DESC LIMIT 1" "What is the most common mill type, and how many are there?","SELECT TYPE , count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" What other Journalists have England as their nationality?,"SELECT * FROM journalist WHERE Name ! = ""Jackie Waring"" AND Nationality = ""England""" Hello! Can you provide me with a list of all Job Title Codes present on this list?,SELECT job_title_code from staff_department_assignments "If the episode was written by Tim Balme, what was the original air date?","SELECT original_air_date FROM table_23114705_3 WHERE written_by = ""Tim Balme""" "What are the first name, last name, and gender of all the good customers? Order by their last name.","SELECT first_name , last_name , gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name" Tell me the position for round less than 3,SELECT position FROM table_name_1 WHERE round < 3 For what award was there a nomination for Best Actress?,"SELECT award FROM table_name_21 WHERE category = ""best actress""" Who is the Visiting team on december 20?,"SELECT visiting_team FROM table_name_99 WHERE date = ""december 20""" How many campuses exist are in the county of LA?,"SELECT count(*) FROM campuses WHERE county = ""Los Angeles""" Calculate the average number of cast members that appeared in the credit from the 185th to the 193rd episode.,SELECT CAST(COUNT(T1.episode_id) AS REAL) / (193 - 185 + 1) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.category = 'Cast' AND T1.credited = 'true' AND T2.number_in_series BETWEEN 185 AND 193 list both the id and number of shops for the company that produces the most expensive furniture in the same table,"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 smallest year when Ubisoft Montreal was the developer (s)?,"SELECT MIN(year) FROM table_name_38 WHERE developer_s_ = ""ubisoft montreal""" What are the names of the patients who only had one appointment?,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) = 1 What is the title of Catalan language wikipedia page with revision page id '16203226'?,SELECT title FROM pages WHERE revision = 16203226 On what date was the record 8–6–3?,"SELECT date FROM table_name_14 WHERE record = ""8–6–3""" "Please list the countries that got the footnote ""Data are classified as official aid."" on the series code DC.DAC.AUSL.CD in 2002.",SELECT T1.SHORTNAME FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data are classified as official aid.' AND T2.Seriescode = 'DC.DAC.AUSL.CD' AND T2.Year LIKE '%2002%' What is the height of the person born before 1975?,SELECT height FROM table_name_57 WHERE year_born < 1975 "What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1?",SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1 Can you list all the cmi cross reference id on here,SELECT cmi_cross_ref_id FROM CMI_Cross_References what's the id of the document that has the most draft copies?,SELECT document_id FROM Draft_Copies GROUP BY document_id ORDER BY count ( copy_number ) DESC LIMIT 1 How many teams scored against their opponent who had pulled their goalie in the year 2005?,SELECT COUNT(tmID) FROM Goalies WHERE year = 2005 AND ENG IS NULL Give the hometowns from which two or more gymnasts are from.,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2 What is the number of players who have points less than 30 for each position?,"SELECT count(*) , POSITION FROM player WHERE points < 30 GROUP BY POSITION" How many die sizes have a texture of exactly 34?,"SELECT COUNT(die_size__mm_2__) FROM table_26040604_1 WHERE texture___gt__s_ = ""34""" "Great, can you show me the top 3 companies that have operated the most flights?",SELECT * FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id order by count ( * ) limit 3 What are the names of members and their corresponding parties?,"SELECT T1.member_name , T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id" What episode was written by Bobby Bell and Bill Lee?,"SELECT MAX(no_in_season) FROM table_12226390_4 WHERE written_by = ""Bobby Bell and Bill Lee""" What is the Island Trading customer's complete address?,"SELECT Address, City, Region, Country, PostalCode FROM Customers WHERE CompanyName = 'Island Trading'" "Among businesses with ""Wi-Fi"" attribute, which businesses id are located at SC State?",SELECT T3.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name = 'Wi-Fi' AND T2.attribute_value = 'true' AND T3.state = 'SC' What are the first names of the teachers who teach grade 1?,SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 What college has Jojo Manalo?,"SELECT college FROM table_name_43 WHERE player = ""jojo manalo""" What is the party when the incumbent is samuel smith?,"SELECT party FROM table_2668416_7 WHERE incumbent = ""Samuel Smith""" What was the 2010 population of frankfort which has a rank smaller than 14?,"SELECT AVG(2010 AS _pop) FROM table_name_26 WHERE city = ""frankfort"" AND rank < 14" Hello! Can you please provide me with a list of all of customer IDs in the Customer Address History table?,SELECT customer_id FROM Customer_Address_History "Find the payment method and phone of the party with email ""enrico09@example.com"".","SELECT payment_method_code , party_phone FROM parties WHERE party_email = ""enrico09@example.com""" Please show the software platforms of devices in descending order of the count.,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?,"SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000" "Among the teams that were ranked 3 from 1937 to 1940, what is the team name whose players had the highest point?",SELECT DISTINCT T1.name FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.rank = 3 AND T1.year BETWEEN 1937 AND 1940 ORDER BY T2.points DESC LIMIT 1 How many people were first elected with an incument of diane watson?,"SELECT COUNT(first_elected) FROM table_1805191_6 WHERE incumbent = ""Diane Watson""" What was the To Par [a] when Charles Coody Category:Articles with hCards was champion and the year was earlier than 1973?,"SELECT to_par_[a_] FROM table_name_6 WHERE year < 1973 AND champion = ""charles coody category:articles with hcards""" "State the number of the ""魅蓝Note 2"" users who are in the ""F29-32"" group.",SELECT COUNT(T2.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'F29-32' AND T2.device_model = '魅蓝Note 2' "What year was 2,242 yards achieved?","SELECT year FROM table_name_68 WHERE yards = ""2,242""" "Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?","SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = ""unaffected"" AND condition = ""thrombocytopenia""" "Which location belongs to the website, http://www.mudgeerabasoccer.com/?","SELECT location FROM table_11365528_2 WHERE website = ""http://www.mudgeerabasoccer.com/""" how many female persons are in the table,"SELECT COUNT ( * ) FROM Person WHERE gender = ""female""" What are the names of all employees who have a salary higher than average?,SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee) What are the arrival dates for all flights from Los Angeles to Honolulu?,"SELECT arrival_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" How many art products were ordered in 2013 in the east superstore?,"SELECT COUNT(DISTINCT T1.`Product ID`) FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Sub-Category` = 'Art' AND T1.Region = 'East' AND STRFTIME('%Y', T1.`Order Date`) = '2013'" "WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES?","SELECT score FROM table_name_39 WHERE week > 13 AND visitor = ""montreal alouettes""" How many schools are in the basketball match?,SELECT count(DISTINCT school_id) FROM basketball_match "What is the area with decile of 8, and a 25 roll?",SELECT area FROM table_name_67 WHERE decile = 8 AND roll = 25 What was the chassis when the points were greater than 0 and the entrant was March Engineering?,"SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = ""march engineering""" Name the number of number in series for production code of 06-04-621,"SELECT COUNT(no_in_series) FROM table_1876825_7 WHERE production_code = ""06-04-621""" Where does the customer with the first name Linda live? And what is her email?,"SELECT T2.address , T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'" list the number of votes for this category,"SELECT sum ( votes ) FROM hall_of_fame where category = ""Pioneer/Executive""" Count the number of farms.,SELECT count(*) FROM farm Which IHSAA Class has a School of shakamak?,"SELECT ihsaa_class FROM table_name_84 WHERE school = ""shakamak""" What position was taken out of Louisiana-Lafayette?,"SELECT position FROM table_16575609_1 WHERE college = ""Louisiana-Lafayette""" who is the away team when played at junction oval?,"SELECT away_team FROM table_name_41 WHERE venue = ""junction oval""" Who lost with a time of 0:58?,"SELECT loser FROM table_name_44 WHERE time = ""0:58""" What is the first and last name of the employee who reports to Nancy Edwards?,"SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = ""Nancy"" AND T1.last_name = ""Edwards"";" "What are the names of departments either in division AS, or in division EN and in building NEB?","SELECT DName FROM DEPARTMENT WHERE Division = ""AS"" UNION SELECT DName FROM DEPARTMENT WHERE Division = ""EN"" AND Building = ""NEB""" List the name of all different customers who have an loan sorted by their total loan amount.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) Also give me the names of the colleges where enrollment is between 10000 and 20000.,SELECT cName FROM College WHERE enr<20000 and enr>10000 What is the Place of the Player with a Score of 70-71=141?,SELECT place FROM table_name_61 WHERE score = 70 - 71 = 141 How many season did sportfreunde siegen win best supported club?,"SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = ""Sportfreunde Siegen""" What is the Tournament when the 2013 is 1r?,"SELECT tournament FROM table_name_54 WHERE 2013 = ""1r""" "Show the id and star rating of each hotel, ordered by its price from low to high.","SELECT hotel_id, star_rating_code FROM HOTELS ORDER BY price_range" "What was the position of the event held in Valencia, Spain?","SELECT position FROM table_name_8 WHERE venue = ""valencia, spain""" What are the wines that have prices higher than 50 and made of Red color grapes?,"SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" "In the ""https://github.com/wallerdev/htmlsharp.git"", give all the linearized sequenced of API calls.",SELECT T3.ApiCalls FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T1.Url = 'https://github.com/wallerdev/htmlsharp.git' What rank does Rodney Marsh have?,"SELECT MAX(rank) FROM table_21100348_15 WHERE player = ""Rodney Marsh""" Calculate the percentage of customers who paid more than the average rent amount in store 1.,SELECT CAST(( SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN payment AS T2 ON T1.customer_id = T2.customer_id WHERE T2.amount > ( SELECT AVG(amount) FROM payment ) ) AS REAL) * 100 / ( SELECT COUNT(customer_id) FROM customer ) List the grapes and appelations of all wines.,"SELECT Grape, Appelation FROM WINE" Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27,SELECT SUM(played) FROM table_name_34 WHERE position < 9 AND draws > 19 AND goals_against > 27 How many recipes are non-dairy?,SELECT COUNT(T2.recipe_id) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id WHERE T1.category NOT LIKE '%dairy%' "List the over IDs, ball IDs, and innings numbers of the match ID ""336004"" while the batsman got the maximum scores.","SELECT Over_Id, Ball_Id, Innings_No FROM Batsman_Scored WHERE Match_Id = 336004 ORDER BY Runs_Scored DESC LIMIT 1" "Which position has a venue of Helsinki, Finland?","SELECT position FROM table_name_40 WHERE venue = ""helsinki, finland""" Please list the IDs of the orders made by Aimee Bixby with more than 3 kinds of products ordered.,SELECT DISTINCT T2.`Order ID` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Aimee Bixby' GROUP BY T2.`Product ID` HAVING COUNT(T2.`Product ID`) > 3 "For each product which has problems, what are the number of problems and the product id?","SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id" Please list the capital cities of the countries that have more than 4 mountains.,"SELECT T1.Capital FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country GROUP BY T1.Name, T1.Capital HAVING COUNT(T1.Name) > 4" I want the average lose for lost point more than 16 and goal difference less than 37 and point less than 43,SELECT AVG(lose) FROM table_name_96 WHERE lost_point > 16 AND goal_difference < 37 AND point < 43 "What were the former schools of the player from East Brunswick, NJ?","SELECT former_school FROM table_25177625_1 WHERE hometown = ""East Brunswick, NJ""" "What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?","SELECT party FROM table_name_3 WHERE result = ""re-elected"" AND first_elected < 1894 AND incumbent = ""charles h. grosvenor""" Which studios have never worked with the director Walter Hill?,"SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = ""Walter Hill""" Name the university that had the most students in 2011.,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.num_students DESC LIMIT 1 Which driver has a grid value of 22?,"SELECT driver FROM table_name_38 WHERE grid = ""22""" What's the 1981 census of Livorno?,"SELECT 1981 AS _census FROM table_10138926_1 WHERE city = ""Livorno""" Can you show me which three products received the three highest total number of reported problems?,SELECT T1.product_name from product as T1 join problems as T2 on T1.product_id = T2.product_id group by T2.product_id order by count ( * ) desc limit 3 What is the latest year?,SELECT MAX(year) FROM table_2199290_1 What is the transfer fee for the country that has the name McCartney listed?,"SELECT transfer_fee FROM table_name_46 WHERE name = ""mccartney""" job title code for staff id? | Do you mean all the job title codes for all the staff ids? | yes,SELECT job_title_code from Staff_Department_Assignments Which Grand Prix has the Circuit of Lille?,"SELECT name FROM table_name_20 WHERE circuit = ""lille""" Who is the competitor from France with 10 starts?,"SELECT name FROM table_19487922_1 WHERE country = ""France"" AND race_entries__starts_ = ""10""" Name the driver passenger for position 4,SELECT driver___passenger FROM table_16729457_17 WHERE position = 4 who is the first flight's pilot?,SELECT Pilot FROM flight ORDER BY Date LIMIT 1 Show the police force shared by counties with location on the east and west.,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East"" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West""" "What are the mission codes, fates, and names of the ships involved?","SELECT T1.Code , T1.Fate , T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID" Whsts the name of the student thst took prerequisite course title internatoinal finance?,SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN ( SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance' ) What's the date the score was 379?,"SELECT date FROM table_name_5 WHERE score = ""379""" "What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?",SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 0 "When John Harkes was the color commentator, and Alexi Lalas and Steve McManaman were the pregame analysts, who were the sideline reporters?","SELECT sideline_reporters FROM table_name_84 WHERE color_commentator = ""john harkes"" AND pregame_analysts = ""alexi lalas and steve mcmanaman""" What is the lowest overall amount of no votes?,SELECT MIN(no_votes) FROM table_256286_13 What was the constructor in the Belgian Grand Prix round?,"SELECT constructor FROM table_2911781_3 WHERE grand_prix = ""Belgian grand_prix""" "Which Current car has a Number of cars of 1, and a Year started of 1999?",SELECT current_car FROM table_name_54 WHERE number_of_cars = 1 AND year_started = 1999 What are the average ages of male engineers and male doctors?,"SELECT avg ( age ) , job FROM Person WHERE gender = 'male' GROUP BY job" What is the weight in kg of Tony Martensson?,SELECT T2.weight_in_kg FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T1.PlayerName = 'Tony Martensson' Return the name of the organization which has the most contact individuals.,SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1 what's the naturalisation by marriage with regbeingtration of a minor child being 114,SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE registration_of_a_minor_child = 114 What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?,"SELECT chassis FROM table_name_93 WHERE engine = ""maserati straight-6"" AND points > 0 AND year = 1955" Which Tournament has a Margin of victory of 7 strokes,"SELECT tournament FROM table_name_38 WHERE margin_of_victory = ""7 strokes""" How many bonus points were won by 5?,"SELECT bonus_points FROM table_17510803_2 WHERE won = ""5""" What are the ids and names of the architects who built at least 3 bridges ?,"SELECT T1.id, T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) >= 3" What is the total number of wins with 10 cuts made and a score average under 74.09?,SELECT COUNT(wins) FROM table_name_52 WHERE cuts_made = 10 AND scoring_average < 74.09 Which zone had mădălina gojnea monica niculescu as the opponent?,"SELECT zone FROM table_name_30 WHERE opponents = ""mădălina gojnea monica niculescu""" "How many years have a Pick of 12, and a Position of dt, and a College of penn state?","SELECT COUNT(year) FROM table_name_20 WHERE pick = ""12"" AND position = ""dt"" AND college = ""penn state""" What is the roll for the school with state authority and a decile of 9?,"SELECT roll FROM table_name_42 WHERE authority = ""state"" AND decile = 9" "Show the industries shared by companies whose headquarters are ""USA"" and companies whose headquarters are ""China"".","SELECT Industry FROM Companies WHERE Headquarters = ""USA"" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = ""China""" What is the sum number of years where the wheel arrangement of 0-4-0t?,"SELECT COUNT(year_made) FROM table_name_18 WHERE wheel_arrangement = ""0-4-0t""" What engine did Dick Simon Racing use?,"SELECT engine FROM table_name_21 WHERE team = ""dick simon racing""" "What is the nationality of ""Customer#000000055""?",SELECT T2.n_name FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_name = 'Customer#000000055' What's the 1996 if 1986 has a 1R?,"SELECT 1996 FROM table_name_53 WHERE 1986 = ""1r""" What is the average age of all the female students (sex with F) from each city?,"SELECT avg ( age ) , city_code FROM student WHERE sex = 'F' GROUP BY city_code" What year is that musical with id 6?,SELECT DISTINcT ( T2.Year ) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.musical_ID = 6 What years have a total of 395 (0)?,"SELECT years FROM table_name_64 WHERE total = ""395 (0)""" Please include the full name of the patient who received a lung transplant.,"SELECT T2.first, T2.last FROM procedures AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Transplant of lung (procedure)'" What are the categories of businesses that have opening time on Sunday?,SELECT DISTINCT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T2.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T4.day_of_week = 'Sunday' AND T3.opening_time <> '' How heavy is Matthias Trattnig in kilograms?,SELECT T2.weight_in_kg FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T1.PlayerName = 'Pavel Patera' Which customer status code has least number of customers?,SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1; "What is the category and typical buying price of the product with name ""cumin""?","SELECT product_category_code, typical_buying_price FROM products WHERE product_name = ""cumin""" Show ids for all employees who do not have a certificate.,SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate "What are the names of all instructors who have taught a course, as well as the corresponding course id?","SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID" what is the old English name of Saturday? ,"SELECT old_english_day_name FROM table_2624098_1 WHERE modern_english_day_name = ""Saturday""" "What are the wifi and screen mode type of the hardware model named ""LG-P760""?","SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = ""LG-P760"";" What is the highest crowd when fitzroy is the home team?,"SELECT MAX(crowd) FROM table_name_24 WHERE home_team = ""fitzroy""" "What is the Outcome of the Match played after 2003 with a Score of 6–0, 6–3?","SELECT outcome FROM table_name_88 WHERE year > 2003 AND score = ""6–0, 6–3""" What is the to par when the year(s) won is larger than 1999?,SELECT to_par FROM table_name_53 WHERE year_s__won > 1999 "What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Poland with more than 1 medal in total?","SELECT MIN(gold) FROM table_name_31 WHERE rank < 5 AND silver = 1 AND nation = ""poland"" AND total > 1" What is the least common category?,SELECT category FROM categories GROUP BY category ORDER BY COUNT(podcast_id) ASC LIMIT 1 What is the decor of room Recluse and defiance?,"SELECT decor FROM Rooms WHERE roomName = ""Recluse and defiance"";" Hello! Can you show me all school names and bus driver names for each of the school buses in this database?,"SELECT T2.school , T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id" Srdjan Dragojevic worked on a film which earned what nomination?,"SELECT nomination FROM table_10236830_4 WHERE director = ""Srdjan Dragojevic""" can you show me average of credit scores?,SELECT AVG ( credit_score ) FROM customer "In the crew, who was born in 1962 in California?","SELECT name FROM Person WHERE SUBSTR(birthdate, 1, 4) = '1962' AND birth_region = 'California';" What is the name of the teacher who teaches in that classroom?,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count ( * ) DESC LIMIT 1" Show all directors.,SELECT DISTINCT directed_by FROM film Name the number of apps for total g is 8,SELECT COUNT(l_apps) FROM table_19018191_5 WHERE total_g = 8 "Among the countries with more than 3% population growth rate, state the country name in full along with its GDP.","SELECT T1.Name, T3.GDP FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T2.Country WHERE T2.Population_Growth > 3" How many movie reviews does each director get?,"SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director" List out the city name of states located in South region.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T1.Region = 'South' THEN T2.`City Name` END AS T FROM Regions T1 INNER JOIN `Store Locations` T2 ON T2.StateCode = T1.StateCode ) WHERE T IS NOT NULL List 5 solution path that has sampling time of 636431758961741000.,SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SampledAt = 636431758961741000 LIMIT 5 What city of license has a value of k293bg for its call sign?,"SELECT city_of_license FROM table_name_82 WHERE call_sign = ""k293bg""" How many hours computer literacy course in a week?,"SELECT hours from course where cname = ""COMPUTER LITERACY""" which Points has Wins smaller than 2?,SELECT MIN(points) FROM table_name_41 WHERE wins < 2 What is the total number of games of the team against the Los Angeles Kings after January 5?,"SELECT COUNT(game) FROM table_name_69 WHERE opponent = ""los angeles kings"" AND january > 5" How many patients have diabetes that started in 1988?,"SELECT COUNT(PATIENT) FROM conditions WHERE DESCRIPTION = 'Diabetes' AND strftime('%Y', START) = '1988'" "What is the name of the student with id 4? | Here are the first, middle, and last name of the student with id 4. | What is their email address?",SELECT email_address FROM Students WHERE student_id = 4 Give the name of the community area which had the most pocket-picking thefts.,SELECT T3.community_area_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.primary_description = 'THEFT' AND T1.secondary_description = 'POCKET-PICKING' GROUP BY T2.community_area_no ORDER BY T2.case_number DESC LIMIT 1 Give me the temperature of Shanghai in January.,"SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = ""Shanghai""" "What is Quantity made, when Wheel Arrangement is ""2-6-0"", and when Class is ""D-3""?","SELECT quantity_made FROM table_name_31 WHERE wheel_arrangement = ""2-6-0"" AND class = ""d-3""" What is the least rank with more than 3 losses and less than 25 sets lost?,SELECT MIN(rank) FROM table_name_34 WHERE loss > 3 AND sets_lost < 25 Name the Score on 17 december 1979?,"SELECT score FROM table_name_80 WHERE date = ""17 december 1979""" What is the highest number of ends lost?,SELECT MAX(Ends) AS lost FROM table_17012578_37 What team was the player that received a penalty at time 32:17 playing for?,"SELECT team FROM table_name_13 WHERE time = ""32:17""" When 24:31 is the run time how many measurements of viewers (in millions) are there?,"SELECT COUNT(viewers__in_millions_) FROM table_2102945_1 WHERE run_time = ""24:31""" "If the title if the Lost Boy, how many directors were there?","SELECT COUNT(directed_by) FROM table_19517621_3 WHERE title = ""The Lost Boy""" "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.","SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1" Count the number of building IDs,SELECT count ( id ) FROM buildings "Which Record has a February smaller than 8, and an Opponent of montreal canadiens?","SELECT record FROM table_name_51 WHERE february < 8 AND opponent = ""montreal canadiens""" "How many cities in France have a population of more than 100,000?",SELECT COUNT(T2.Name) FROM country AS T1 INNER JOIN city AS T2 ON T2.Country = T1.Code WHERE T1.Name = 'France' AND T2.Population > 100000 Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?,"SELECT body_tackle FROM table_name_56 WHERE diving_tackle = ""yes"" AND sliding_tackle = ""classified as a trip""" Who had the high assists on october 6?,"SELECT high_assists FROM table_27756474_2 WHERE date = ""October 6""" "What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn?","SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = ""(muŏy) dáb leăn""" List down the brand names of root beer that gained a 5-star rating from a customer's review in 2013. Calculate the unit profit available to wholesalers for each brand.,"SELECT T1.BrandName, T1.CurrentRetailPrice - T1.WholesaleCost AS result FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 AND T2.ReviewDate BETWEEN '2013-01-01' AND '2013-12-31'" "What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?","SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" List the height and weight of people in descending order of height.,"SELECT Height, Weight FROM people ORDER BY Height DESC" Name the number of headphone class for sr100,"SELECT COUNT(headphone_class) FROM table_1601027_2 WHERE headphone_model = ""SR100""" When did these failures occur?,"SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Fail""" Find the first name of students who are living in the Smith Hall.,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' What is Year is Walt Disney Pictures Imagemovers Digital?,"SELECT SUM(year) FROM table_name_59 WHERE studio_s_ = ""walt disney pictures imagemovers digital""" Return the highest acc percent across all basketball matches.,SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 What is the code for rank 10?,SELECT code__iata_icao_ FROM table_name_18 WHERE rank = 10 "Among the recipes whose source is the National Potato Board, which recipe has the highest calories?",SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'National Potato Board' ORDER BY T2.calories DESC LIMIT 1 How many titles were released on 21 October 1992?,"SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = ""21 October 1992""" "What is the aspect ratio for the September 1, 2009 release?","SELECT aspect_ratio FROM table_name_56 WHERE release_date = ""september 1, 2009""" Name the least episode for fibre cement siding,"SELECT MIN(episode) FROM table_15187735_18 WHERE segment_d = ""Fibre Cement Siding""" What is the document id and name with greatest number of paragraphs?,"SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1" What competition was held on the 26th?,"SELECT competition FROM table_name_50 WHERE date = ""26th""" Find the name of the department which has the highest average salary of professors,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg ( salary ) DESC LIMIT 1 "What are the names of all songs produced by the artist with the first name ""Marianne""?","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = ""Marianne""" How many different riders are there that won riding Omr Tsunami?,"SELECT COUNT(rider_names) FROM table_27833186_1 WHERE horse_name = ""OMR Tsunami""" "What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1?","SELECT l2_cache FROM table_name_80 WHERE release_date = ""september 10, 2009"" AND fpu_width = ""128-bit"" AND multi_1 = ""12x""" How many head coaches did Kent state golden flashes have?,"SELECT COUNT(opponents_head_coach) FROM table_28418916_3 WHERE fbs_opponent = ""Kent State Golden Flashes""" What about their attribute value,"SELECT t2.attribute_value FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" On which site was the game against Louisville played?,"SELECT site FROM table_name_22 WHERE opponent = ""louisville""" On what date was the venue at Edgbaston?,"SELECT date FROM table_name_97 WHERE venue = ""edgbaston""" "What is the skill code for skill id 1, 2 and 3 ?","SELECT skill_id, skill_code FROM skills where skill_id = 1 or skill_id = 2 or skill_id = 3" What is the Sanskrit for the Greek word λέων?,"SELECT sanskrit FROM table_name_98 WHERE greek = ""λέων""" what is the work type of Anna Powierza?,"SELECT T2.Work_Type FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID where T1.Name = ""Anna Powierza""" "What is the title, credit value, and department name for courses with more than one prerequisite?","SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1" What is the number of Position when the team was são paulo railway and the against is less than 46?,"SELECT COUNT(position) FROM table_name_28 WHERE team = ""são paulo railway"" AND against < 46" What were those movies directed by Walter Hill?,"SELECT Title FROM film WHERE Director = ""Walter Hill""" List the names of all courses ordered by their titles and credits.,"SELECT title FROM course ORDER BY title , credits" What 2008 has 14.2% as the 2009?,"SELECT 2008 FROM table_name_31 WHERE 2009 = ""14.2%""" Which cities in the Los Angeles Unified School District has bought supplies from Quill.com?,SELECT T2.school_city FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_district = 'Los Angeles Unif Sch Dist' AND T1.vendor_name = 'Quill.com' Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Lysanne"" AND T4.staff_last_name = ""Turcotte"" )" "Great, can you show me the dates these catalogs were revised again?","select catalog_name, date_of_latest_revision from Catalogs where date_of_latest_revision in ( SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count ( * ) > 1 ) " How many high schoolers are there?,SELECT COUNT(*) FROM Highschooler How many items that were shipped via air were returned in 1994?,"SELECT COUNT(l_linenumber) FROM lineitem WHERE l_returnflag = 'R' AND l_shipmode = 'AIR' AND STRFTIME('%Y', l_shipdate) = '1994'" What game was in 2005?,SELECT game FROM table_name_85 WHERE year = 2005 Which allergy is the most common?,SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1 What couple had a vote percentage of 5.2%?,"SELECT couple FROM table_26375386_17 WHERE vote_percentage = ""5.2%""" List down the page numbers for menu with dishes on the right upper corner.,SELECT T2.page_number FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id WHERE T3.xpos > 0.75 AND T3.ypos < 0.25 In what year(s) did South Korea win silver?,"SELECT year FROM table_name_14 WHERE silver = ""south korea""" Who led the most laps when brandon wagner had the fastest lap?,"SELECT most_laps_led FROM table_29690363_3 WHERE fastest_lap = ""Brandon Wagner""" How many tie no have team 1 as borac banja luka?,"SELECT tie_no FROM table_19294812_2 WHERE team_1 = ""Borac Banja Luka""" what is the number of people where the pieces is 3015,SELECT COUNT(player) FROM table_28498999_6 WHERE points = 3015 Ashley Grimes had what to club?,"SELECT to_club FROM table_name_26 WHERE player = ""ashley grimes""" What is the lowest total?,SELECT MIN(total) FROM table_19439864_2 Ok. Can you give me the cities where the state is NorthCarolina,SELECT town_city FROM addresses where state_province_county = 'NorthCarolina' Name the title of the episode that was nominated for Emmy's Outstanding Animated Program 21 times.,SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.organization = 'Primetime Emmy Awards' AND T1.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T1.result = 'Nominee' GROUP BY T1.episode_id HAVING COUNT(T1.episode_id) = 21; How many location IDs have actual resource hours of 2?,SELECT COUNT(LocationID) FROM WorkOrderRouting WHERE ActualResourceHrs = 2 Who is the owner of the radio station that plays adult hits?,"SELECT owner FROM table_name_8 WHERE format = ""adult hits""" "What is Rating, when Event is Johnson Vs. Dodson?","SELECT rating FROM table_name_23 WHERE event = ""johnson vs. dodson""" "Among the employees who were born before 1969, what is the work shift of the 6th oldest employee?","SELECT T3.StartTime, T3.EndTime FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Shift AS T3 ON T2.ShiftId = T3.ShiftId WHERE STRFTIME('%Y', T1.BirthDate) < '1969' ORDER BY T1.BirthDate LIMIT 5, 1" "Among the products with an order quantity of no less than 5 that was shipped in the month of May 2019, what is the name of the product with the lowest net profit?","SELECT T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T1.`Order Quantity` > 5 AND ShipDate LIKE '5/%/19' ORDER BY REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') ASC LIMIT 1" "Give me the full birthdate, email and phone number of the youngest client in Indianapolis .","SELECT T1.year, T1.month, T1.day, T1.email, T1.phone FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Indianapolis' ORDER BY T1.year DESC, T1.month DESC, T1.day DESC LIMIT 1" List the names of players who play by the left hand.,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_hand = 'Left-hand bat' How many distinct students have been in detention?,SELECT COUNT(DISTINCT student_id) FROM Students_in_Detention "What are the formats associated with the Atlantic Records label, catalog number 512336?","SELECT format_s_ FROM table_name_15 WHERE label = ""atlantic records"" AND catalog = ""512336""" Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .,select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 ) what is the competition when the date is 16 january 1996?,"SELECT competition FROM table_name_14 WHERE date = ""16 january 1996""" How many orders were shipped in 1994?,"SELECT COUNT(l_orderkey) FROM lineitem WHERE STRFTIME('%Y', l_shipdate) = '1994'" What are the vice manager names of those locations?,"select location, vice_manager_name from gas_station where manager_name = ( SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count ( * ) DESC LIMIT 1 ) " Please list all of the character descriptions in paragraph 20.,SELECT T1.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 20 What is the name and hours for the project which has the most scientists assigned to it?,"SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1" What are the names of the parts that were ordered by customer 110942?,SELECT T3.p_name FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey INNER JOIN part AS T3 ON T2.l_partkey = T3.p_partkey WHERE T1.o_custkey = 110942 Who was the opponent that played against the Buckeyes on October 17?,"SELECT opponent_number FROM table_name_16 WHERE date = ""october 17""" Please list the e-mails of the reviewers who have reviewed high class.,SELECT T1.EmailAddress FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Class = 'H' What are the type and nationality of ships?,"SELECT TYPE, Nationality FROM ship" What is the overall average amount of transactions?,SELECT avg ( amount_of_transaction ) FROM TRANSACTIONS "For the county represented by Thompson Bennie G, how many bad aliases does it have?",SELECT COUNT(DISTINCT T2.bad_alias) FROM zip_congress AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T1.district = T3.cognress_rep_id WHERE T3.first_name = 'Thompson' AND T3.last_name = 'Bennie G' How many episodes were numbered 5?,SELECT COUNT(production_count) FROM table_2501754_2 WHERE episode__number = 5 What is the constructor of the driver Heinz-Harald Frentzen?,"SELECT constructor FROM table_name_50 WHERE driver = ""heinz-harald frentzen""" "What is To Par, when Score is ""66"", and when Player is ""Brad Faxon""?","SELECT to_par FROM table_name_25 WHERE score = 66 AND player = ""brad faxon""" What tournament was after 2009?,SELECT tournament FROM table_name_8 WHERE year > 2009 Name the game released in 2011.,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2011 How many people attended Match No. 31?,"SELECT attendance FROM table_name_51 WHERE match_no = ""31""" What are the average and minimum prices (in Euros) of all products?,"SELECT avg ( price_in_euros ) , min ( price_in_euros ) FROM catalog_contents" What is the life expectancy of residents in the most crowded city?,SELECT T2.LifeExpectancy FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC LIMIT 1 "What is the Location, when the Score is 35-31?","SELECT location FROM table_name_63 WHERE score = ""35-31""" Which US air date had 4.4 million viewers?,"SELECT original_us_air_date FROM table_17901155_4 WHERE viewers__millions_ = ""4.4""" What are the names of all reviewers that have given 3 or 4 stars for reviews?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4 "Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0?",SELECT player FROM table_name_31 WHERE total < 4 AND scottish_cup = 0 AND league_cup > 0 Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939,"SELECT name FROM table_name_73 WHERE laid_down = ""22 september 1939"" AND commissioned = ""30 august 1941""" List the names of all distinct products in alphabetical order.,SELECT DISTINCT product_name FROM products ORDER BY product_name What was her final score on the ribbon apparatus?,"SELECT score_final FROM table_name_86 WHERE apparatus = ""ribbon""" How many tweets are in English?,SELECT COUNT(TweetID) AS tweet_number FROM twitter WHERE Lang = 'en' What is the 2008 for 2009 heartland high tech?,"SELECT 2008 FROM table_name_2 WHERE 2009 = ""heartland high tech""" "What is To Par, when Country is ""United States"", when Place is ""T4"", and when Score is ""71-68=139""?","SELECT to_par FROM table_name_75 WHERE country = ""united states"" AND place = ""t4"" AND score = 71 - 68 = 139" "What poll source had an administered date on July 10, 2008?","SELECT poll_source FROM table_16751596_6 WHERE dates_administered = ""July 10, 2008""" "Provide the character name, paragraph number, and plain text of ""cousin to the king"" description.","SELECT T1.CharName, T2.ParagraphNum, T2.PlainText FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.Description = 'cousin to the king'" Find the grade taught in classroom 103.,SELECT DISTINCT grade FROM list WHERE classroom = 103 Find the weight of the youngest dog.,SELECT weight FROM pets ORDER BY pet_age LIMIT 1 "Return the apartment numbers of the apartments with type code ""Flat"".","SELECT apt_number FROM Apartments WHERE apt_type_code = ""Flat""" What country does Glory Alozie play for?,"SELECT country FROM table_name_15 WHERE name = ""glory alozie""" What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?,"SELECT origin_of_programming FROM table_name_11 WHERE service = ""dish"" AND language = ""malayalam"" AND genre = ""general"" AND network = ""asianet plus""" "What is the total number of 4th place that has 3 appearances for 3, and a more than 0 silver medals, and no gold medals?",SELECT COUNT(4 AS th_place) FROM table_name_27 WHERE appearances = 3 AND silver_medals > 0 AND gold_medals < 0 What was the 2nd leg score between Patronage Sainte-Anne and Asante Kotoko?,"SELECT 2 AS nd_leg FROM table_name_27 WHERE team_1 = ""asante kotoko""" Who is the quarter back for a winning pct of .792,"SELECT quarterback FROM table_14389782_2 WHERE winning_pct = "".792""" What is the number of flights?,SELECT count(*) FROM Flight what's the record where score is w 105–92 (ot),"SELECT record FROM table_11964154_9 WHERE score = ""W 105–92 (OT)""" Current legislator Sherrod Brown has been in the Democrat party during how many terms that he has served?,SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Sherrod Brown' AND T2.party = 'Democrat' Who placed in t5 and scored 73-69-68=210?,"SELECT player FROM table_name_76 WHERE place = ""t5"" AND score = 73 - 69 - 68 = 210" "What is the average frequency mhz of the loomis, south dakota city license?","SELECT AVG(frequency_mhz) FROM table_name_83 WHERE city_of_license = ""loomis, south dakota""" what is the highest salary?,select max ( salary ) from instructor What is the birthday of Amy Klobuchar?,SELECT birthday_bio FROM current WHERE first_name = 'Amy' AND last_name = 'Klobuchar' Please list the IDs of the top 3 professors that teaches the most courses.,SELECT T1.p_id FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.professor = 1 GROUP BY T1.p_id ORDER BY COUNT(*) DESC LIMIT 3 "Among the books published by publisher ""Thomas Nelson"", how many of them have over 300 pages?",SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Thomas Nelson' AND T1.num_pages > 300 Name the least age 30-39 where age 20-29 is 593,SELECT MIN(age_30_39) FROM table_169693_1 WHERE age_20_29 = 593 List down the email address of female single employees.,SELECT T3.EmailAddress FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmailAddress AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.Gender = 'F' AND T1.MaritalStatus = 'S' What was Mark O'Meara's total?,"SELECT total FROM table_name_40 WHERE player = ""mark o'meara""" Which Crew has Comments of daggerboards. design: roy seaman?,"SELECT crew FROM table_name_49 WHERE comments = ""daggerboards. design: roy seaman""" Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.,"SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)" Which users had some tweets?,SELECT name FROM user_profiles WHERE UID IN ( SELECT UID FROM tweets ) What is the Finish when the start shows 3 in the year of 2010?,"SELECT finish FROM table_name_74 WHERE start = ""3"" AND year = 2010" What is the result on 29 September 2007?,"SELECT result FROM table_name_39 WHERE date = ""29 september 2007""" What is the average Barrow Island Australia when Draugen north sea is 17 and Mutineer-Exeter Australia is smaller than 6?,SELECT AVG(barrow_island_australia) FROM table_name_94 WHERE draugen_north_sea = 17 AND mutineer_exeter_australia < 6 What is the lowest production code,SELECT MIN(production_code) FROM table_20098479_1 " what's the success where date of completion is september 28, 2007","SELECT success FROM table_12078626_1 WHERE date_of_completion = ""September 28, 2007""" Give the name of the airline to which tail number N202NN belongs to.,SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.TAIL_NUM = 'N202NN' GROUP BY T2.Description What is the attendance for august 29?,"SELECT attendance FROM table_name_9 WHERE date = ""august 29""" Can you list the class room associated with the name Loria Ondersma in the teachers table?,"SELECT classroom from teachers where lastname = ""ONDERSMA""" What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?,"SELECT galician___reintegrationist__ FROM table_26614365_5 WHERE galician___official__ = ""Adeus*""" what is the ship with the date of 28.1.1915?,"SELECT ship FROM table_name_87 WHERE date = ""28.1.1915""" How many bands are there?,SELECT count(*) FROM Band Show different colleges along with the number of authors of submission from each college.,"SELECT College, COUNT(*) FROM submission GROUP BY College" "What was the total amount of Value ($M), when the Rank was higher than 6, and the % change on year was -27?","SELECT COUNT(value__) AS $m_ FROM table_name_36 WHERE rank > 6 AND _percentage_change_on_year = ""-27""" Which cmi cross reference id is not related to any parking taxes?,SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines "What is the average win as a percentage of German racer Rudi Altig, who has ridden in over 79 races?","SELECT AVG(win_average) FROM table_name_50 WHERE nationality = ""german"" AND name = ""rudi altig"" AND races_ridden > 79" Which Matches is on 24 march 1963 with a Rank larger than 44?,"SELECT MAX(matches_as_champion) FROM table_name_6 WHERE title_last_held = ""24 march 1963"" AND rank > 44" Where was the location of the Mong Kok Stadium?,"SELECT location FROM table_name_12 WHERE home_ground = ""mong kok stadium""" What is the characteristic name used by most number of the products?,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 GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1 What are the regions that use English or Dutch?,"SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" OR T2.Language = ""Dutch""" How many car makers are there in france?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'; What are the names of mountains in ascending alphabetical order?,SELECT Name FROM mountain ORDER BY Name ASC Return the full names and salaries of employees with null commissions.,"SELECT first_name , last_name , salary FROM employees WHERE commission_pct = ""null""" Could you list the names of all counties in ascending alphabetical order?,SELECT County_name FROM county order by County_name "Provide the number of events participated by the device users at coordinates of (80,37).",SELECT COUNT(event_id) FROM events WHERE longitude = 80 AND latitude = 37 Find the county where produces the most number of wines with score higher than 90.,SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1 What are the heights of body builders with total score smaller than 315?,SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315 Show the ids of all employees who have either destroyed a document or made an authorization to do this.,SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed What are the products with the maximum page size eqal to A4 or a pages per minute color less than 5?,"SELECT product FROM product WHERE max_page_size = ""A4"" OR pages_per_minute_color < 5" "How many items were shipped on 4th December, 1993?",SELECT COUNT(l_linenumber) FROM lineitem WHERE l_shipdate = '1993-12-04' Name the appearance for independence bowl,"SELECT COUNT(appearances) FROM table_2517159_1 WHERE name_of_bowl = ""Independence Bowl""" What is the title of the book in the order ID 931?,SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.order_id = 931 "What is the highest Total, when Gold is 1, when Nation is Hungary, and when Bronze is less than 0?","SELECT MAX(total) FROM table_name_32 WHERE gold = 1 AND nation = ""hungary"" AND bronze < 0" "What is the id, name and nationality of the architect who built most mills?","SELECT T1.id , T1.name , T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" What was the winning score at bellerive country club?,"SELECT score FROM table_275162_1 WHERE course = ""Bellerive country Club""" "Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8?","SELECT poll FROM table_name_10 WHERE wk_10 > 2 AND wk_2 = ""12"" AND wk_13 = 8" What is the sum of votes for the green party?,"SELECT SUM(votes__gib_) FROM table_name_38 WHERE party = ""green""" Which problems are reported before 1978-06-26? Give me the ids of the problems.,"SELECT problem_id FROM problems WHERE date_problem_reported < ""1978-06-26""" Could you please show me the average share count of transactions of each investor?,"SELECT investor_id , avg ( share_count ) FROM TRANSACTIONS GROUP BY investor_id" Who does Nancy Edwards report to? | The first and last names of the employee whom Nancy Edwards reports to is Andrew Adams. | Who does Andrew Adams report to?,"SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T2.first_name = ""Andrew"" AND T2.last_name = ""Adams""" show me the first and last names of students in Wisconsin.,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Wisconsin""" "Which country is dated October 20, 1976?","SELECT country FROM table_name_83 WHERE date = ""october 20, 1976""" "What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?","SELECT SUM(overall) FROM table_name_60 WHERE round < 4 AND college = ""tennessee"" AND pick__number > 9" Return the grade for the high schooler named Kyle.,"SELECT grade FROM Highschooler WHERE name = ""Kyle""" "Drawn of 0, and a Games larger than 5 has what amount of highest points?",SELECT MAX(points) FROM table_name_62 WHERE drawn = 0 AND games > 5 "How many types of music does Yelp business No.""1141"" have?",SELECT COUNT(T1.attribute_name) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'TRUE' AND T2.business_id = 1141 Count the number of documents that do not have expenses.,SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses ) "Which College has an Overall larger than 211, a Position of db, and a Name of carl charon?","SELECT college FROM table_name_7 WHERE overall > 211 AND position = ""db"" AND name = ""carl charon""" Calculate how many percent of sales in North America is higher than the average sale per region for platform ID 9577.,SELECT (SUM(CASE WHEN T2.region_name = 'North America' THEN T1.num_sales ELSE 0 END) - AVG(T1.num_sales)) * 100.0 / AVG(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T1.game_platform_id = 9577 Which country has a rank of 2?,SELECT country FROM table_name_93 WHERE rank = 2 "What is the date of birth of the actor who played the role of a ""writer""?",SELECT T2.birthdate FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.role = 'writer' What were the highest points before the year 1974?,SELECT MAX(points) FROM table_name_61 WHERE year < 1974 What is the site when the superintendent was John Barry?,"SELECT site FROM table_name_28 WHERE superintendent = ""john barry""" What is the original NFL team of the College of Oregon DT Player?,"SELECT original_nfl_team FROM table_name_51 WHERE college = ""oregon"" AND pos = ""dt""" What is the UK singles chart rank of the single released on 26 February 1990?,"SELECT uk_singles_chart FROM table_name_9 WHERE release_date = ""26 february 1990""" "If the UK air date is February 18, 2013, who was the episode written by?","SELECT written_by FROM table_25640730_7 WHERE uk_air_date = ""February 18, 2013""" What city has Sky Tower?,"SELECT city FROM table_name_35 WHERE name = ""sky tower""" Compute the total order quantity for Uncle Bob's Organic Dried Pears so far.,SELECT SUM(T2.Quantity) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName LIKE 'Uncle Bob%s Organic Dried Pears' How about just for Cola?,"SELECT avg ( price_in_euros ) , min ( price_in_euros ) FROM catalog_contents where catalog_entry_name = 'Cola'" What was the score for the game where the home team was Wycombe Wanderers?,"SELECT score FROM table_name_73 WHERE home_team = ""wycombe wanderers""" What player went to DePaul University?,"SELECT player FROM table_name_80 WHERE college = ""depaul""" "For each grant id, how many documents does it have, and which one has the most?","SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1" "Find the titles and studios of the films that are produced by some film studios that contained the word ""Universal"".","SELECT title , Studio FROM film WHERE Studio LIKE ""%Universal%""" What is the largest series number? ,SELECT MAX(series__number) FROM table_19517621_4 How many businesses are with high review count?,SELECT COUNT(business_id) FROM Business WHERE review_count LIKE 'High' What is the average Round for wide receiver r. jay soward and Overall smaller than 29?,"SELECT AVG(round) FROM table_name_16 WHERE position = ""wide receiver"" AND name = ""r. jay soward"" AND overall < 29" Show all the distinct product names with price higher than the average.,SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS) "How many OPPO users participated in events which were held around 12 AM on 1st May,2016?","SELECT COUNT(T1.device_id) FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'OPPO' AND STRFTIME('%Y-%m-%d', T1.`timestamp`) = '2016-05-01'" Show ids for all students who live in CHI.,"SELECT StuID FROM Student WHERE city_code = ""CHI""" What episode number in the series had a production code of bdf405?,"SELECT MIN(series__number) FROM table_28019988_5 WHERE production_code = ""BDF405""" How many of the drivers are over 40?,SELECT count ( * ) FROM driver WHERE age > 40 What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?,SELECT MIN(gold) FROM table_name_45 WHERE bronze = 4 AND silver > 5 What is the highest pick of the wr player with an overall less than 15?,"SELECT MAX(pick) FROM table_name_62 WHERE position = ""wr"" AND overall < 15" List all customers’ names in the alphabetical order.,SELECT name FROM accounts ORDER BY name Name the vote for gigit,"SELECT vote FROM table_16976547_2 WHERE eliminated = ""Gigit""" WHAT IS THE TITLE WITH CATEGORY OF best r&b song?,"SELECT title FROM table_name_95 WHERE category = ""best r&b song""" what is id of students who registered some courses but the least number of courses in these students?,SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1 What is the number of professors for different school?,"SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code" Count the number of captains that have each rank.,"SELECT count(*) , rank FROM captain GROUP BY rank" When did Shakespeare write the first poem?,SELECT MIN(Date) FROM works WHERE GenreType = 'Poem' What is the Visitor of the game with a Record of 21–17–13?,"SELECT visitor FROM table_name_70 WHERE record = ""21–17–13""" "Count the number of members in club ""Bootup Baltimore"" whose age is above 18.","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.age > 18" Name the points against for november 7,"SELECT points_against FROM table_15607589_2 WHERE date = ""November 7""" "What is the Physician name of the following Employee ID? tell me the SSN. | Sorry what employee IDs are you talking about? | Sorry for my mistake. What is the Physician name of the following Employee ID 2? tell me the SSN.","select name,SSN from physician where employeeid = 2" "What is Winner, when Win # is greater than 1, and when Points is less than 94?",SELECT winner FROM table_name_76 WHERE win__number > 1 AND points < 94 Who was the opponent in week 4?,SELECT opponent FROM table_14875671_1 WHERE week = 4 How much is her GDP in agriculture for the country with the least area?,SELECT T2.GDP * T2.Agriculture FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T1.Area ASC LIMIT 1 Which county has the lowest crime rate? | Would you like the county name corresponding to the lowest crime rate? | yes,SELECT Name FROM county_public_safety ORDER BY Crime_rate ASC LIMIT 1 What is the Eurozone result for Population M (LUZ) of 3.08?,SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08 "Among the female users of the devices, how many of them are over 30?",SELECT COUNT(device_id) FROM gender_age WHERE age > 30 AND gender = 'F' How many distinct transaction types are used in the transactions?,SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS "What percentage of users rated the movie ""Patti Smith: Dream of Life"" by more than 3?",SELECT CAST(SUM(CASE WHEN T1.rating_score > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Patti Smith: Dream of Life' Find the names of all wines produced in 2008.,"SELECT Name FROM WINE WHERE YEAR = ""2008""" What is the prefix for the teacher who handled the 'Reading About Other Cultures' project?,SELECT T2.teacher_prefix FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Reading About Other Cultures' Which organizations are not a parent organization of others? List the organization id.,SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations What are the prices of those?,SELECT T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 What is the position of the employee with the 10th highest salary? Indicate his/her salary amount and his/her full name.,"SELECT T2.JobTitle, T1.Rate, T3.FirstName, T3.MiddleName, T3.LastName FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID ORDER BY T1.Rate DESC LIMIT 9, 1" "List the eateries' names and addresses which had reinspection on 2nd February, 2015.","SELECT T2.name, T2.address FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = '2015-02-02' AND T1.type = 'Reinspection/Followup'" "What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?","SELECT AVG(year) FROM table_name_78 WHERE playoffs = ""did not qualify"" AND open_cup = ""did not qualify"" AND regular_season = ""7th, southeast""" Which apps have not been updated since year 2015 and what kind of sentiment users hold on it?,"SELECT DISTINCT App, Sentiment FROM user_reviews WHERE App IN ( SELECT App FROM playstore WHERE CAST(SUBSTR('Last Updated', -4, 4) AS INTEGER) < 2015 )" "great, can you give me the organization type and detail too?","SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count ( * ) DESC LIMIT 1" What shows for Scorers when the Opponent was west germany on October 7?,"SELECT scorers FROM table_name_31 WHERE opponent = ""west germany"" AND date = ""october 7""" What is the the birth country of player-ids? | Do you mean the birth country of all players? | yes,SELECT birth_country FROM player what is the date of attendance of the student is 121? | the date of attendance of the student with id 121 is 2012-04-09 11:44:34. | which student id attend english and french both course?,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""English"" intersect SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""French""" What is the Diameter of the Dog Sled (gold variant) Theme coin?,"SELECT diameter FROM table_name_74 WHERE theme = ""dog sled (gold variant)""" What year did Coenraad Breytenbach have their Int'l Debut?,"SELECT year FROM table_name_92 WHERE player = ""coenraad breytenbach""" "What are the average, maximum, and minimum number of floors for all buildings?","SELECT avg(floors) , max(floors) , min(floors) FROM building" How high did Arnold Palmer score in 1962?,"SELECT MAX(score) FROM table_name_69 WHERE player = ""arnold palmer""" How many hours of training has the student with the most hours completed?,SELECT hs from player order by hs desc limit 1 How many publishers published the Minecraft game?,SELECT COUNT(T2.publisher_id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id WHERE T1.game_name = 'Minecraft' What group was the Hollindale Stakes in?,"SELECT group FROM table_2062148_3 WHERE race = ""Hollindale Stakes""" can you show a list of customer address?,SELECT customer_address FROM customers How many staff have the first name Ludie?,"SELECT count(*) FROM Staff WHERE first_name = ""Ludie"";" What is the average total with a nation of thailand with a gold smaller than 17?,"SELECT AVG(total) FROM table_name_54 WHERE nation = ""thailand"" AND gold < 17" What is the name and salary for employee with id 242518965?,"SELECT name , salary FROM Employee WHERE eid = 242518965" What's listed for the Station Code that has the Arrival of 02:20?,"SELECT station_code FROM table_name_40 WHERE arrival = ""02:20""" How many distinct currency codes are there for all drama workshop groups?,SELECT COUNT(DISTINCT Currency_Code) FROM Drama_Workshop_Groups How many students are 18 years old?,SELECT count(*) FROM Student WHERE age = 18 Where was Collingwood's away game played?,"SELECT venue FROM table_name_3 WHERE away_team = ""collingwood""" What are the service details of thing id 2?,select service_details from things where thing_id = 2 Where does the judge whose court is in Groton reside?,"SELECT judges_residence FROM table_26758262_1 WHERE location_of_court = ""Groton""" In what Year was the Position 11th?,"SELECT COUNT(year) FROM table_name_80 WHERE position = ""11th""" What is the smallest amount of points had a lost number of 2 when the position was less than 1?,SELECT MIN(points) FROM table_name_67 WHERE lost = 2 AND position < 1 "Among the professors with more than average teaching ability, list the full name and email address of the professors who advise two or more students.","SELECT T2.first_name, T2.last_name, T2.email FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.teachingability > ( SELECT AVG(teachingability) FROM prof ) GROUP BY T2.prof_id HAVING COUNT(T1.student_id) >= 2" How many dorms have amenities?,SELECT count(DISTINCT dormid) FROM has_amenity Give the names and locations of all wrestlers.,"SELECT Name , LOCATION FROM wrestler" What is the patient's name in room 111?,SELECT T1.Name FROM Stay as T4 Join Patient as T1 where T4.Patient = T1.SSN and T4.Room = 111 Which Venue has Against of 25?,SELECT venue FROM table_name_89 WHERE against = 25 Name the total number of date for l 85–86 (ot),"SELECT COUNT(date) FROM table_22654073_6 WHERE score = ""L 85–86 (OT)""" When was the Hon Ian Causley first elected?,"SELECT first_elected FROM table_name_66 WHERE member = ""hon ian causley""" Where is Fred Haas from?,"SELECT country FROM table_name_93 WHERE player = ""fred haas""" What is the election year of the president with a Birth State of lost connecticut?,"SELECT AVG(election_year) FROM table_name_61 WHERE birth_state = ""lost connecticut""" What record has November 15 as the date?,"SELECT record FROM table_name_32 WHERE date = ""november 15""" "Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?","SELECT AVG(pop_area__1_km²_) FROM table_name_84 WHERE no_p > 1 AND name = ""albergaria-a-velha""" What are the distinct salaries of all instructors who earned less than the maximum salary?,SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor) "When nº is 3, what are all the coaliton parties?",SELECT coalition_parties FROM table_21422977_1 WHERE nº = 3 "How many reviews are created for the podcast ""Scaling Global"" under?",SELECT COUNT(T2.content) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Scaling Global' What was the attendance that had a loss of Ponson (1-5)?,"SELECT attendance FROM table_name_58 WHERE loss = ""ponson (1-5)""" What format has 080 360-2 as the catalog?,"SELECT format FROM table_name_84 WHERE catalog = ""080 360-2""" When @ new orleans is the team who has the highest amount of rebounds?,"SELECT high_rebounds FROM table_17288825_6 WHERE team = ""@ New Orleans""" What is the award for 1998 with Representative Work of city beat?,"SELECT award FROM table_name_78 WHERE year = 1998 AND representative_work = ""city beat""" Find the person who has exactly one friend.,SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1 How many different apartment building are there?,SELECT count ( DISTINCT building_id ) FROM apartment_buildings WHich country had the most competitions?,SELECT country FROM competition GROUP BY country ORDER BY COUNT ( * ) DESC LIMIT 1 What is the production code for the episode that had 9.18 million viewers (U.S.)?,"SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = ""9.18""" How many matches have Mumbai Indians won?,SELECT SUM(CASE WHEN T2.Team_Name = 'Mumbai Indians' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner what are the last names of the teachers who teach grade 5?,SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 What are the names of players who have the best dribbling?,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling = ( SELECT max(overall_rating) FROM Player_Attributes) What is the lowest gold medals of a rank 12 team?,"SELECT MIN(gold) FROM table_name_81 WHERE rank = ""12""" what is the number of teams where the record is 0-1,"SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = ""0-1""" can you show me the oldest one?,SELECT Name FROM people ORDER BY Age DESC LIMIT 1 What is the number of staff living in Georgia?,SELECT count ( * ) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county ORDER BY count ( * ) DESC LIMIT 1 "Which Opponent has a Week larger than 2 on november 19, 1995?","SELECT opponent FROM table_name_81 WHERE week > 2 AND date = ""november 19, 1995""" What is the record for opponent Anna Barone?,"SELECT record FROM table_name_24 WHERE opponent = ""anna barone""" How many games were released in 1981?,SELECT COUNT(T.id) FROM game_platform AS T WHERE T.release_year = 1981 "what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?",SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.5 What was the intermediate sprint classification for the race whose winner was Daniel Martin?,"SELECT intermediate_sprints_classification_klasyfikacja_najaktywniejszych FROM table_28092844_16 WHERE winner = ""Daniel Martin""" What is the lowest number of laps obtained by driver Nick Heidfeld?,"SELECT MIN(laps) FROM table_name_32 WHERE driver = ""nick heidfeld""" "ok,let show me the average unit price of all genre id","SELECT genre_id,avg ( unit_price ) from tracks group by genre_id" What is the round for Arizona with a pick over 100?,"SELECT AVG(round) FROM table_name_48 WHERE school = ""arizona"" AND pick > 100" What was South Melbourne's score as the home team?,"SELECT home_team AS score FROM table_name_19 WHERE home_team = ""south melbourne""" What City had Results¹ of 1:2?,"SELECT city FROM table_name_39 WHERE results¹ = ""1:2""" What is the number of different class sections offered in the course ACCT-211?,SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' How many years was the chassis a Coloni C3?,"SELECT COUNT(year) FROM table_name_51 WHERE chassis = ""coloni c3""" "What is the total number of losses with less than 73 goals for, less than 11 wins, more than 24 points, and a position greater than 15?",SELECT COUNT(losses) FROM table_name_54 WHERE goals_for < 73 AND wins < 11 AND points > 24 AND position > 15 "How many assets does each third party company supply? | Here is the result table of third-party companies and the number of ASSETS they held. For EXAMPLE, COMPANY 1 HELD 1 ASSET. | How many total assets are there?",SELECT count ( * ) FROM assets What are the numbers of races for each constructor id?,"SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid" What is the public when the vote percentage is 16.0%,"SELECT public FROM table_26375386_20 WHERE vote_percentage = ""16.0%""" Which of those residences have both male and female players?,"SELECT Residence FROM player where gender = ""M"" intersect SELECT Residence FROM player where gender = ""F""" How many drivers did not participate in the races held in 2009?,SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 ) "Of all the countries of the Hindu religion, which has the lowest ratio of people per square meter of surface?",SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Hindu' ORDER BY T1.Population / T1.Area ASC LIMIT 1 "Among all goals scored by Calgary Hitmen in the 2007-2008 season, identify the percentage scored by Ian Schultz.",SELECT CAST(SUM(CASE WHEN T2.PlayerName = 'Ian Schultz' THEN T1.G ELSE 0 END) AS REAL) * 100 / SUM(T1.G) FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2007-2008' AND T1.TEAM = 'Calgary Hitmen' List out the time of the event id 12.,SELECT timestamp FROM events WHERE event_id = 12 How about names of not assigned projects?,SELECT Name FROM Projects WHERE Code NOT IN ( SELECT Project FROM AssignedTo ) What is the highest attendance of the match with a 2:0 score and vida as the away team?,"SELECT MAX(attendance) FROM table_name_59 WHERE score = ""2:0"" AND away = ""vida""" Count the number of services.,SELECT count(*) FROM services Show names for artists without any exhibition.,SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition) "What was the attendance of the bowl game in Gainesville, Fl?","SELECT attendance FROM table_15190346_2 WHERE location = ""Gainesville, FL""" which builder has the highest total points? | Do you want their name or id? | their name please,SELECT T2.name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1 Tell the Id number of the business with the most number of violations.,SELECT business_id FROM violations GROUP BY business_id ORDER BY COUNT(business_id) DESC LIMIT 1 What is the country that has the most perpetrators?,"SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1" How many runs when bangladesh was the fielding team?,"SELECT runs FROM table_1670921_2 WHERE fielding_team = ""Bangladesh""" How many players were included in the Hall of Fame on average between 1950 and 1980?,SELECT CAST(COUNT(name) AS REAL) / 30 FROM HOF WHERE year BETWEEN 1950 AND 1980 AND category = 'Player' "Which DOB has Bats of s, and a Position of inf?","SELECT dob FROM table_name_8 WHERE bats = ""s"" AND position = ""inf""" When they were 2-32 what did they score?,"SELECT score FROM table_name_71 WHERE record = ""2-32""" Which Elevator has a Title of bishop of palestrina?,"SELECT elevator FROM table_name_29 WHERE title = ""bishop of palestrina""" How many matches were played in the Scottish Premiership division from 2006 to 2008?,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish Premiership' AND (T1.season BETWEEN 2006 AND 2008) "Out of these names, which names contain the letter a?","SELECT Fname FROM STUDENT WHERE Fname LIKE ""%a%""" "What is the result of the February 24, 2010 inspection involving the employee named ""Arnold Holder""?",SELECT DISTINCT T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-02-24' AND T1.first_name = 'Arnold' AND T1.last_name = 'Holder' "Which School name has students smaller than 389, and grades of 10-12?","SELECT school_name FROM table_name_64 WHERE students < 389 AND grades = ""10-12""" Who was the Democratic incumbent in the South Carolina 5 District?,"SELECT incumbent FROM table_name_84 WHERE party = ""democratic"" AND district = ""south carolina 5""" What's the greatest losses for those with more than 13 wins?,SELECT MAX(losses) FROM table_name_20 WHERE wins > 13 "What is Builder, when Date is 1953?","SELECT builder FROM table_name_71 WHERE date = ""1953""" What are the order dates of orders with price higher than 1000?,SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?,"SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" HOw many top 5 starts did the team with an average start of 17.7 have?,"SELECT COUNT(top_5) FROM table_1929755_1 WHERE avg_start = ""17.7""" How about for the supplier who supplies the least products? | Did you want to get the supplier id who supplies the least products? | I want the average amount purchased and value purchased for the supplier who supplies the least products,"SELECT avg ( total_amount_purchased ) , avg ( total_value_purchased ) FROM Product_Suppliers WHERE supplier_id = ( SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count ( * ) LIMIT 1 ) " Who is the manager of the St. Johnstone club?,"SELECT manager FROM table_name_53 WHERE club = ""st. johnstone""" "How many models does each car maker produce? List maker full name, id and the number.","SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;" "Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963?","SELECT sr_no FROM table_name_87 WHERE wheel_arrangement = ""0-6-0t"" AND year_made > 1874 AND year_withdrawn = 1963" What is the average wins of a team with more than 0 ples and less than 3 podiums?,SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3 "What is the End of term of the President with an Age at inauguration of 78years, 160days?","SELECT end_of_term FROM table_name_89 WHERE age_at_inauguration = ""78years, 160days""" What is the average number of bronze medals won by Poland?,"SELECT AVG(bronze) FROM table_name_67 WHERE nation = ""poland""" How many invested in the school with mascot Falcons?,"SELECT Invested FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE t1.mascot = ""Falcons""" Find each target user's name and average trust score.,"SELECT T1.name , avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id" What is the ID of the item that sold the best on the day with the highest max temperature in store no.3 in 2012?,SELECT T1.item_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.store_nbr = 3 AND T1.`date` LIKE '%2012%' AND tmax = ( SELECT MAX(tmax) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.store_nbr = 3 AND T1.`date` LIKE '%2012%' ) GROUP BY T1.item_nbr ORDER BY SUM(units) DESC LIMIT 1 Name the outcome for opponents of jonas björkman john mcenroe,"SELECT outcome FROM table_name_60 WHERE opponents_in_the_final = ""jonas björkman john mcenroe""" "With 1.97 million HK viewers and a finale more than 33, what was the total number of peaks?","SELECT COUNT(peak) FROM table_name_16 WHERE hk_viewers = ""1.97 million"" AND finale > 33" What is the record of the game with a score of 1 – 5?,"SELECT record FROM table_name_39 WHERE score = ""1 – 5""" List the distinct carriers of phones with memories bigger than 32.,SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32 What is the name of the race when Lineth Chepkurui is the athlete?,"SELECT race FROM table_name_17 WHERE athlete = ""lineth chepkurui""" Which of the previous products are more expensive than the average price of all products? | Do you mean to find the names of those products that are more expensive than the average price of all products? | Only the names of those products supplied by supplier id 2.,SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > ( SELECT avg ( product_price ) FROM products ) "What is the name of the division in which Club Brugge and Genk competed on September 13, 2009?",SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2009-09-13' and T1.HomeTeam = 'Club Brugge' AND T1.AwayTeam = 'Genk' "Find the names of all artists that have ""a"" in their names.","SELECT Name FROM ARTIST WHERE Name LIKE ""%a%""" Who was the lead with John Shuster as skip in the season of 2009–10?,"SELECT lead FROM table_name_83 WHERE skip = ""john shuster"" AND season = ""2009–10""" Remove all instructor IDs who did not teach in Spring 2010 from the list. | Did you mean retain the instructor IDs who both teach in Spring 2010 and in Fall 2009 | Retain the instructor IDs who did not teach in Spring 2010 but did teach in Fall 2009,SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 How many strokes under par was the player who scored 71?,SELECT to_par FROM table_name_43 WHERE score = 71 What are the names of all tracks that are on playlists titled Movies?,"SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = ""Movies"";" What base pair has 832 genes?,SELECT base_pairs FROM table_name_79 WHERE genes = 832 Please name any three products that have been discontinued in the meat or poultry category.,SELECT T2.ProductName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.Discontinued = 1 AND T1.CategoryName = 'Meat/Poultry' LIMIT 3 List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif',SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif' Show all the ranks and the number of male and female faculty for each rank.,"SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex" What is the bounding box of the object sample in image no.5 that has a self-relation?,"SELECT T2.X, T2.Y, T2.W, T2.H FROM IMG_REL AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.IMG_ID = T2.IMG_ID WHERE T1.IMG_ID = 5 AND T1.OBJ1_SAMPLE_ID = T1.OBJ2_SAMPLE_ID" who had high rebounds at game 69?,SELECT high_rebounds FROM table_27700375_10 WHERE game = 69 What constituency does the Conservative Darren Millar belong to?,"SELECT constituency FROM table_name_93 WHERE conservative = ""darren millar""" what is the worlds smallest population?,SELECT MIN(world) FROM table_19017269_5 Find the name of the customer that has been involved in the most policies.,SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1 How many airports are there per city in the United States? Order the cities by decreasing number of airports.,"SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC" Can you find their addresses and add them to the chart?,"SELECT customer_name ,customer_address FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_address_history ) " What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1?,"SELECT chassis FROM table_name_62 WHERE rounds = ""1"" AND driver = ""maria teresa de filippis""" "Which Arena has an Opponent of @ oilers, and a Date of may 25?","SELECT arena FROM table_name_79 WHERE opponent = ""@ oilers"" AND date = ""may 25""" "Name the tournament for may 18, 1997","SELECT tournament FROM table_name_90 WHERE date = ""may 18, 1997""" What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?,SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80 Name the party with edward boland,"SELECT party FROM table_1341865_23 WHERE incumbent = ""Edward Boland""" How many author published papers in the 'IEEE Computer' journal?,SELECT COUNT(T2.Name) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T3.FullName = 'IEEE Computer' What was the method in the fight against Chris Myers?,"SELECT method FROM table_name_15 WHERE opponent = ""chris myers""" Which cities have lower temperature in March than in Dec and have never served as host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What is the average end year of the player from swe and a summer transfer window?,"SELECT AVG(ends) FROM table_name_81 WHERE nat = ""swe"" AND transfer_window = ""summer""" How many bikes can be borrowed in San Jose Diridon Caltrain Station at 12:06:01 on 2013/8/29?,SELECT T2.bikes_available FROM station AS T1 INNER JOIN status AS T2 ON T1.id = T2.station_id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.time = '2013/08/29 12:06:01' How many places have more than 33 points?,SELECT COUNT(place) FROM table_name_96 WHERE points = 33 "Show the name, location, open year for all tracks with a seating higher than the average.","SELECT name , LOCATION , year_opened FROM track WHERE seating > (SELECT avg(seating) FROM track)" What states have at least two representatives?,SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2 What is the organisation type and id of the organisation which has the most number of research staff?,"SELECT T1.organisation_type , T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1" How many credit cards does customer Blanche Huels have?,"SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Blanche"" AND T2.customer_last_name = ""Huels"" AND T1.card_type_code = ""Credit""" What is a park in Anaheim?,"SELECT T2.park_name FROM park as t2 WHERE T2.city = ""Anaheim""" What years did the branches open?,SELECT Open_year FROM branch ORDER BY membership_amount DESC LIMIT 3 "If the district is Virginia 17, who are the candidates?","SELECT candidates FROM table_2668416_18 WHERE district = ""Virginia 17""" period between 1985 - 1990 have minimum infant mortality rate of what.,"SELECT MIN(infant_mortality_rate) FROM table_21258_1 WHERE period = ""1985 - 1990""" Find the team of the player of the highest age.,SELECT Team FROM player ORDER BY Age DESC LIMIT 1; "What is the total number of Games, when Losses is greater than 6, when Club is ""Club Sportif Sfaxien"", and when Wins is less than 3?","SELECT COUNT(games) FROM table_name_58 WHERE losses > 6 AND club = ""club sportif sfaxien"" AND wins < 3" Who did wilson reis fight against that lasted less than 3 rounds with a time of 1:02?,"SELECT opponent FROM table_name_25 WHERE round < 3 AND time = ""1:02""" Which episodes did Katie Palmer write? ,"SELECT title FROM table_27823058_1 WHERE written_by = ""Katie Palmer""" "Among the students who filed for bankruptcy with an absence in school of no more than 6 months, how many students enlisted for the fire department?",SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name INNER JOIN enlist AS T3 ON T3.name = T2.name WHERE T3.organ = 'fire_department' Find the names of all directors whose movies are rated by Sarah Martinez,SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' Where is the home venue of Bengaluru FC?,"SELECT home_venue FROM table_name_95 WHERE team = ""bengaluru fc""" What is the diff for a club that has a value of 662 for points for?,"SELECT diff FROM table_name_46 WHERE points_for = ""662""" What are the countries of all airlines whose names start with Orbit?,SELECT country FROM airlines WHERE name LIKE 'Orbit%' "What is the sum of the points with less goals conceded than 51, larger than position 1, has a draw of 7, and more losses than 5?",SELECT SUM(points) FROM table_name_12 WHERE goals_conceded < 51 AND position > 1 AND draws = 7 AND loses > 5 which of those enzymes is in the medicine with the name Aripiprazole?,"SELECT T3.name FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T2.name = 'Aripiprazole' and T3.location = ""Cytosol""" "Among the customers with an average income per inhabitant above 3000, what percentage are in their eighties?",SELECT CAST(SUM(CASE WHEN T1.age BETWEEN 80 AND 89 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INCOME_K > 3000 "What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?","SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" can you show me the name and salary of all instructors?,"SELECT name, salary FROM instructor" What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms? ,"SELECT kentucky FROM table_18461045_1 WHERE michigan = ""Grosse Pointe Farms-City LL Grosse Pointe Farms""" what is the lowest league goals when the league apps is 1 and the fa cup goals is more than 0?,"SELECT MIN(league_goals) FROM table_name_1 WHERE league_apps = ""1"" AND fa_cup_goals > 0" Which election had the least votes?,select election_id from election where votes = ( SELECT min ( votes ) FROM election ) Tell me the position for the student id 1001 ? | Do you mean the city code for students? | yes,SELECT city_code FROM Student where StuID = 1001 How many blocks did the player who had 59 rebounds have? ,SELECT blocks FROM table_24850487_5 WHERE rebounds = 59 List the different director IDs of the movies whose user rating is more than 4.,SELECT DISTINCT T2.directorid FROM u2base AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.rating > 4 Please list the descriptions of the series code SM.POP.TOTL for all the countries that are under the lending category of the International Development Associations.,SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL' "How many producers does the movie ""The Amityville Horror"" have?",SELECT COUNT(T2.person_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'The Amityville Horror' AND T2.job = 'Producer' Name the Result of new zealand Nationality / Opponent?,"SELECT result FROM table_name_56 WHERE nationality___opponent = ""new zealand""" Return all the committees that have delegates from Democratic party.,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic""" "Show the names of festivals that have nominated artworks of type ""Program Talent Show"".","SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = ""Program Talent Show""" Set this result in ascending order of department number,"SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id" What was the score in Tie number 16?,"SELECT score FROM table_name_16 WHERE tie_no = ""16""" "What are the names of parties that have both delegates on ""Appropriations""?","SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Appropriations"" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Economic Matters""" Show the premise type and address type code for all customer addresses.,"SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id" How many season 3 appearances by Morgan the Dog?,"SELECT MAX(season_3) FROM table_26240046_1 WHERE played_by = ""Morgan the Dog""" Which position has the highest number of female employees with a 2 year degree?,SELECT T2.positiontitle FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.educationrequired = '2 year degree' AND T1.gender = 'F' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) DESC LIMIT 1 How many payments were made throughout the month of August 2005?,SELECT SUM(amount) FROM payment WHERE payment_date LIKE '2005-08%' In what place did the golfer that scored 68-70-69=207 finish?,SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207 "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.","SELECT fname , lname FROM student WHERE city_code != 'HKG' ORDER BY age" I need the number of amenities for the dorms that can accommodate more than 100 students | Are you asking for the number of distinct amenities for dorms whose student capacity is greater than 100? | yes,"SELECT count ( DISTINCT T2.amenid ) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid" Which segment c's segment b is refrigerators?,"SELECT segment_c FROM table_name_58 WHERE segment_b = ""refrigerators""" what is the latitude of San Jose Civic Center?,SELECT distinct T1.lat FROM station AS T1 JOIN trip AS T2 where T1.name = 'San Jose Civic Center' "Name the heightfor city of license of malone, ny","SELECT height_m___ft__ FROM table_name_44 WHERE city_of_license = ""malone, ny""" How many orders were shipped in 1998?,"SELECT COUNT(l_orderkey) FROM lineitem WHERE STRFTIME('%Y', l_shipdate) = '1998'" what about the least?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count ( * ) LIMIT 1 Which last names are both used by customers and by staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff Which region is associated with the catalog value of 512335?,"SELECT region FROM table_name_57 WHERE catalog = ""512335""" "What is the image ID of page 1 of the menu ""Zentral Theater Terrace""?",SELECT T2.image_id FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.name = 'Zentral Theater Terrace' AND T2.page_number = 1 What is the platelet count for congenital afibrinogenemia?,"SELECT platelet_count FROM table_238124_1 WHERE condition = ""Congenital afibrinogenemia""" "Among the episodes that were aired in 1998, how many won an International Monitor Awards?","SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE strftime('%Y', T1.air_date) = '1998' AND T2.organization = 'International Monitor Awards' AND T2.result = 'Winner'" What is the company name of the supplier who supplies the product with the highest unit price?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) In which city's office does Sandy Adams work at?,SELECT T2.locationcity FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T1.lastname = 'Adams' AND T1.firstname = 'Sandy' What is the most frequently used payment method?,SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY count ( * ) DESC LIMIT 1 "What is No. 7, when Region (Year) is Arizona (2010)?","SELECT no_7 FROM table_name_85 WHERE region__year_ = ""arizona (2010)""" What's the title of the episode that got the most 7-star votes in star score?,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 7 ORDER BY T2.votes DESC LIMIT 1; What is the device id of the oldest user?,SELECT device_id FROM gender_age WHERE age = ( SELECT MAX(age) FROM gender_age ) what's the result with candidates being billy tauzin (d) unopposed,"SELECT result FROM table_1341586_19 WHERE candidates = ""Billy Tauzin (D) Unopposed""" "which To par has a Country of united states, and a Player of dave stockton?","SELECT to_par FROM table_name_42 WHERE country = ""united states"" AND player = ""dave stockton""" What is the least total when there are more than 2 golds and fewer than 0 silver?,SELECT MIN(total) FROM table_name_6 WHERE gold > 2 AND silver < 0 How many points did Costa score in the Macau Grand Prix since 2011?,"SELECT points FROM table_name_23 WHERE season > 2011 AND series = ""macau grand prix""" How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?,"SELECT COUNT(obama_number) FROM table_20350118_1 WHERE obama_percentage = ""27.8%""" What date did Collingwood play as the home team?,"SELECT date FROM table_name_75 WHERE home_team = ""collingwood""" "Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?","SELECT visitor FROM table_name_89 WHERE home = ""linköpings hc"" AND round > 20 AND date = ""saturday, november 22""" What is the record for January 7?,"SELECT record FROM table_name_21 WHERE date = ""january 7""" How many different students are involved in sports?,SELECT count(DISTINCT StuID) FROM Sportsinfo Please calculate the average temperature of those trips that started at Market at 4th in 2013.,"SELECT AVG(T2.mean_temperature_f) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2013' AND T1.start_station_name = 'Market at 4th'" Which engine has more than 1 point after 1981?,SELECT engine FROM table_name_71 WHERE points > 1 AND year > 1981 "Which Release date has a Required OS of windows, a Type of 2d, and a Developer(s) of zeonix?","SELECT release_date FROM table_name_59 WHERE required_os = ""windows"" AND type = ""2d"" AND developer_s_ = ""zeonix""" "What is the average finish that has 24 as the start, with a year after 1987?",SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987 "Find the names of all artists that have ""a"" in their names.","SELECT Name FROM ARTIST WHERE Name LIKE ""%a%""" Name the total number of points for 46 tries for,"SELECT COUNT(points) FROM table_27293285_4 WHERE tries_for = ""46""" Count the number of gymnasts.,SELECT count(*) FROM gymnast What is the lowest round for an offensive guard when the overall is smaller than 150?,"SELECT MIN(round) FROM table_name_59 WHERE overall < 150 AND position = ""offensive guard""" Which School/Club Team has a Years in Orlando of 1997–1998?,"SELECT school_club_team FROM table_name_92 WHERE years_in_orlando = ""1997–1998""" "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.","SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'" How many players were in the event after 2011 with less than 9 aces?,SELECT COUNT(player) FROM table_name_72 WHERE event > 2011 AND NOT aces < 9 how many trip are presented on the table,SELECT count ( * ) FROM trip How many times is the number of Indian cities than Italian cities?,"SELECT CAST(SUM(IIF(T1.country = 'India', 1, 0)) AS REAL) / SUM(IIF(T1.country = 'Italy', 1, 0)) FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id" Who was the mens doubles when womens singles is mette sørensen?,"SELECT mens_doubles FROM table_12171145_1 WHERE womens_singles = ""Mette Sørensen""" What is their distinct id and type?,"SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close'" "How many journals have a word ""computing"" in its full name?",SELECT COUNT(Id) FROM Journal WHERE FullName LIKE '%computing%' How many methods in repository 150 did not have a comment and a summary?,SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 150 AND T2.FullComment IS NULL AND T2.Summary IS NULL What is the longitude of Angerona Tholus?,"SELECT longitude FROM table_name_35 WHERE name = ""angerona tholus""" What's the pos for an asts less than 117?,SELECT pos FROM table_name_52 WHERE asts < 117 Which city lives most of staffs? List the city name and number of staffs.,"SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;" Show ID and first and last name of Engineer who has visited the most times.,"SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 on T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY count ( * ) DESC LIMIT 1" List out 3 best seller products during year 2003 with their total quantity sold during 2003.,"SELECT t3.productName, SUM(t2.quantityOrdered) FROM orders AS t1 INNER JOIN orderdetails AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN products AS t3 ON t2.productCode = t3.productCode WHERE STRFTIME('%Y', t1.orderDate) = '2003' GROUP BY t3.productName ORDER BY SUM(t2.quantityOrdered) DESC LIMIT 3" Return the ids of all products that were ordered more than three times or supplied more than 80000.,SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000 What year had a title of Die Shaolin Affen EP and EP as the type?,"SELECT AVG(year) FROM table_name_50 WHERE type = ""ep"" AND title = ""die shaolin affen ep""" "What is Party, when Results is ""Re-Elected"", and when District is ""Louisiana 5""?","SELECT party FROM table_name_76 WHERE results = ""re-elected"" AND district = ""louisiana 5""" what other types of accounts are available?,"SELECT acc_type FROM customer where acc_type ! = ""saving""" What was the max profit a user can make on Bitcoin on 2013/4/28?,SELECT T2.high - T2.low FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T1.name = 'Bitcoin' Show me the details of all entrepreneurs,SELECT * FROM entrepreneur what is the average of lesson time?,SELECT avg ( lesson_time ) FROM Lessons List the title of all projects located in Chicago along with the ID of the donor.,"SELECT T1.title, T3.donor_acctid FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T2.school_city LIKE 'Chicago'" What is the longitude of the township at ANSI code 1759682?,SELECT longitude FROM table_18600760_9 WHERE ansi_code = 1759682 "For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?","SELECT COUNT(week) FROM table_name_93 WHERE opponent = ""minnesota vikings"" AND attendance < 68 OFFSET 431" how many maximum # when viewers (m) is 8.01,"SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = ""8.01""" "Bronze of 0, and a Total of 1, and a Silver smaller than 1 what is the lowest gold?",SELECT MIN(gold) FROM table_name_35 WHERE bronze = 0 AND total = 1 AND silver < 1 "What position did player id ""hartgi01"" play in his Stanley Cup finals performance?",SELECT DISTINCT pos FROM ScoringSC WHERE playerID = 'hartgi01' what is the total checking and saving balance of all accounts?,SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid "What is the earliest year where playoffs was ""did not qualify,"" regular season was ""2nd, New England,"" and Open Canada Cup is ""N/A""?","SELECT MIN(year) FROM table_1999350_1 WHERE playoffs = ""Did not qualify"" AND regular_season = ""2nd, New England"" AND open_canada_cup = ""N/A""" The record of 35-31 has what score?,"SELECT score FROM table_name_52 WHERE record = ""35-31""" how many player are presented on the table | Did you mean to ask for the number of entries in the table player? | exactly,SELECT COUNT ( * ) FROM player In which location did the Meca World Vale Tudo 6 event happen?,"SELECT location FROM table_name_84 WHERE event = ""meca world vale tudo 6""" What draw has a lost less than 6 with 28 as the points?,SELECT draw FROM table_name_23 WHERE lost < 6 AND points = 28 Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.,"SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = ""John Anthony"")" Which grants are described as 'regular'?,SELECT * FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' "Hmm, can you list the names of customers whose savings account balances are higher than the average savings balance?",SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > ( SELECT avg ( balance ) FROM savings ) What are the names of the stadiums without any concerts?,SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert) "How many female characters are there in the movie ""Spider-Man 3""?",SELECT COUNT(*) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T2.gender_id = T3.gender_id WHERE T1.title = 'Spider-Man 3' AND T3.gender = 'Female' "What school is located in Huntsville, Texas?","SELECT institution FROM table_28243691_2 WHERE location = ""Huntsville, Texas""" How many of those fault logs had faulty parts?,"select count ( * ) from ( SELECT fault_log_entry_id FROM Fault_Log where fault_log_entry_id in ( select fault_log_entry_id from Fault_Log_Parts ) ) " What languages are spoken when call sign XEJAM is used?,"SELECT languages FROM table_14670060_1 WHERE call_sign = ""XEJAM""" List the names of all the cast members in the series.,SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.category = 'Cast' Which team uses lola t92/00/ buick for their chassis/engine?,"SELECT team FROM table_23391714_1 WHERE chassis_engine = ""Lola T92/00/ Buick""" What is the Final score on november 22?,"SELECT final_score FROM table_name_48 WHERE date = ""november 22""" "What is the total number of FA Cup Goals, when FLT Goals is greater than 0?",SELECT COUNT(fa_cup_goals) FROM table_name_47 WHERE flt_goals > 0 What are their first names and the class rooms where they teach?,"SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'" "What is the name of the staff that is in charge of the attraction named ""US museum""?","SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = ""US museum""" What is the Date of the game with a Record of 8–10–6?,"SELECT date FROM table_name_99 WHERE record = ""8–10–6""" What is the score for the team with a record of 2-1?,"SELECT score FROM table_name_81 WHERE record = ""2-1""" Name the team for 22 points,"SELECT team FROM table_24587026_1 WHERE points = ""22""" Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.,"SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2;" what is the building_id of the apartment apt.908?,"SELECT building_id FROM Apartments where apt_number = ""Apt. 908""" How many dollars is the revenue when the net profit is 55.4 million dollars?,"SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = ""55.4""" please show the undergrads total from each campus,"SELECT t2.campus, sum ( t1.undergraduate ) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id group by t2.Campus" what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)?,"SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = ""13 ships for usmc (plus 37 more for usn)""" How many drivers are from Hartford city or younger than 40?,SELECT count(*) FROM driver WHERE home_city = 'Hartford' OR age < 40 What was the 2nd leg that had the Estudiantes La Plata home for the 2nd leg?,"SELECT 2 AS nd_leg FROM table_name_41 WHERE home__2nd_leg_ = ""estudiantes la plata""" What position does Neil Komadoski play?,"SELECT position FROM table_1213511_4 WHERE player = ""Neil Komadoski""" Compute the number of products with a price larger than or equal to $180.,SELECT COUNT(*) FROM products WHERE price >= 180 What Valley Vista has a Willow Canyon of 2169?,"SELECT valley_vista FROM table_name_47 WHERE willow_canyon = ""2169""" Thank you! What athletic conference is Rutgers University in?,"SELECT Primary_conference FROM university where school = ""Rutgers University""" What is every value for periselene if period is 4.947432?,"SELECT periselene__km_ FROM table_206217_2 WHERE period__h_ = ""4.947432""" Steve Nash (24) got high points for how many teams?,"SELECT COUNT(team) FROM table_17340355_10 WHERE high_points = ""Steve Nash (24)""" Show different publishers together with the number of publications they have.,"SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher" What is the ratio between famous current legislators and famous historical legislators?,SELECT CAST(COUNT(CASE WHEN wikipedia_id IS NOT NULL THEN bioguide_id ELSE 0 END) AS REAL) * 100 / ( SELECT COUNT(CASE WHEN wikipedia_id IS NOT NULL THEN bioguide_id ELSE 0 END) FROM historical ) FROM current Retrieve the title of the paper that has the largest number of authors.,SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship) Which Emission (in nanometers) has an absorbtion of 593 nm?,"SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = ""593""" What is the Place of the Player with a Score of 73-73-65-73=284?,SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284 Which apps have 5 rating? List out then application name.,SELECT DISTINCT App FROM playstore WHERE Rating = 5 What is the name of the room that can accommodate the most people?,SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1; List by their ID the complaints received by the company on 25/09/2014 that took the longest.,"SELECT `Complaint ID` FROM events WHERE strftime('%J', `Date sent to company`) - strftime('%J', `Date received`) = ( SELECT MAX(strftime('%J', `Date sent to company`) - strftime('%J', `Date received`)) FROM events WHERE `Date sent to company` = '2014-09-25' ) AND `Date sent to company` = '2014-09-25'" What is the total installs of apps with content rating of adults only 18+ and what are the translated reviews of it?,"SELECT SUM(T1.Installs), T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.""Content Rating"" = 'Adults only 18+'" List the country name of the customers in the building marketing segment with an account balance greater than 80% of the average account balance of all customers.,SELECT T2.n_name FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey INNER JOIN ( SELECT AVG(c_acctbal) * 0.8 AS avg_acctbal FROM customer ) AS T3 WHERE T1.c_acctbal > T3.avg_acctbal What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339?,"SELECT name FROM table_name_74 WHERE type = ""primary"" AND dcsf_number > 2337 AND ofsted_number < 135339" What are the names and ids of customers whose address contains TN?,"SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE ""%TN%""" what song is a genre of glam,"SELECT song_title FROM table_name_26 WHERE genre = ""glam""" "What was the Competition on September 29, 2003?","SELECT competition FROM table_name_15 WHERE date = ""september 29, 2003""" "In the most populated ward, how many incidents of domestic violence were reported in a bar or tavern?",SELECT COUNT(T2.report_no) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.domestic = 'TRUE' AND T2.location_description = 'BAR OR TAVERN' ORDER BY T1.Population DESC LIMIT 1 What is the id of the patient whose hypertension started most recently?,SELECT PATIENT FROM conditions WHERE START = ( SELECT MAX(START) FROM conditions WHERE DESCRIPTION = 'Hypertension' ) Which highest rank belongs to the palestinian territories?,"SELECT MAX(rank) FROM table_name_85 WHERE country = ""palestinian territories""" Which start station had the most trips starting from August? Give me the name and id of the station.,"SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1" Name the nation when bronze is less than 4 and the total is more than 4,SELECT nation FROM table_name_46 WHERE total > 4 AND bronze < 4 What are the different instruments listed in the database?,SELECT DISTINCT instrument FROM Instruments What are the color of products that were reviewed?,SELECT T1.Color FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID = 709 OR 937 OR 798 What are the name and id of the three highest priced rooms?,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;" What is the highest ff when solo is 56?,SELECT MAX(ff) FROM table_26176081_29 WHERE solo = 56 What are the countries in the region of Asia?,SELECT T1.n_name FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_name = 'ASIA' What language was spoken in Everlasting Moments?,"SELECT language_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = ""Everlasting Moments""" what is the dpi of Fujitsu fi-6130 A4 Series Scanner?,"SELECT dpi FROM product WHERE product = ""Fujitsu fi-6130 A4 Series Scanner""" How many conditions did Tyree Eichmann have?,SELECT COUNT(DISTINCT T2.DESCRIPTION) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Tyree' AND T1.last = 'Eichmann' Show the name of the teacher for the math course.,"SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = ""Math""" Find the saving balance of the account with the highest checking balance.,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 Which Rank has a Runner -up smaller than 0?,SELECT MAX(rank) FROM table_name_31 WHERE runner__up < 0 what year has general nominated in the category or choice breakthrough artist?,"SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = ""general"" AND category = ""choice breakthrough artist""" Where did Michael Eric Bibat win bronze?,"SELECT location FROM table_name_29 WHERE bronze = ""michael eric bibat""" Show all cities and corresponding number of students.,"SELECT city_code, COUNT(*) FROM Student GROUP BY city_code" What name is popular for actors? | did you mean the most popular? | yes,"SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count ( * ) DESC LIMIT 1" Show the school id for the project 'Virtual Aquarium Needs Help!'.,SELECT T2.schoolid FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Virtual Aquarium Needs Help!' What is the venue of the race where Lineth Chepkurui placed 4th?,"SELECT venue FROM table_name_12 WHERE position = ""4th""" "What are the statement ids, statement details, and account details, for all accounts?","SELECT T1.statement_id , T2.statement_details , T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id" What is the Country of the Player with a Score of 69-71-66=206?,SELECT country FROM table_name_99 WHERE score = 69 - 71 - 66 = 206 What is the infant mortality rate for Ethiopia?,SELECT T2.Infant_Mortality FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Ethiopia' What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has?,SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13 "What bombing happened in Brighton, UK?","SELECT event FROM table_name_98 WHERE location = ""brighton, uk""" What is the Competition on July 7?,"SELECT competition FROM table_name_68 WHERE date = ""july 7""" "What is the total number of top-25 in the Masters Tournament, which has 0 top-10 and more than 0 top-5?","SELECT COUNT(top_25) FROM table_name_16 WHERE top_10 = 0 AND tournament = ""masters tournament"" AND top_5 > 0" What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?,SELECT T2.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' What are the schools that were either founded before 1850 or are public?,SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' What is the total amount of money spent by Lucas Mancini?,"SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";" Find the first names of all customers that live in Brazil and have an invoice.,"SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Brazil""" WHAT IS THE POINTS WITH 55 TRIES?,"SELECT points FROM table_name_89 WHERE tries_for = ""55""" "What is the venue with more than 3 against, and South Africa is the opposing team?","SELECT venue FROM table_name_55 WHERE against > 3 AND opposing_teams = ""south africa""" How many shipments does each driver deliver per month on average?,SELECT CAST(COUNT(*) AS REAL) / (12 * COUNT(T2.driver_id)) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id Show the names of phones and the districts of markets they are on.,"SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID" What are the distinct ids of customers who made an order after any order that was Cancelled?,"SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code = ""Cancelled"")" What is the Revenues during Tenure 1854-1855?,"SELECT revenues FROM table_name_43 WHERE tenure = ""1854-1855""" What are the names and opening years of the three churches that opened most recently?,"SELECT name , open_date FROM church ORDER BY open_date DESC LIMIT 3" Name the incumbent for lost renomination republican hold,"SELECT incumbent FROM table_19753079_4 WHERE result = ""Lost renomination Republican hold""" "What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?","SELECT title_rank FROM table_name_24 WHERE series = ""1-8, 13"" AND character = ""arthur hastings""" Name the least season # for the first time,"SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = ""The first time""" Which coach has the most 'won' than 'lost' in year '1988'?,SELECT coachID FROM coaches WHERE year = 1988 ORDER BY won - lost DESC LIMIT 1 List the names of all players from Avangard Omsk that have played for playoffs in season 2000-2001.,SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.TEAM = 'Avangard Omsk' AND T1.GAMETYPE = 'Playoffs' What is the production code for episode 26 in the series?,SELECT production_code FROM table_1876825_3 WHERE no_in_series = 26 What was the score of the game with the Broadview Hawks as the home team?,"SELECT score FROM table_name_97 WHERE home = ""broadview hawks""" What is the lowest price that a publisher earns?,SELECT Price FROM publication order by Price limit 1 "Find all the papers published by the institution ""Google"".","SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" What is the percentage of male Twitter users from Florida?,SELECT SUM(CASE WHEN T3.Gender = 'Male' THEN 1.0 ELSE 0 END) / COUNT(T1.TweetID) AS percentage FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T3.UserID = T1.UserID WHERE T2.State = 'Florida' What assists has points of 10?,"SELECT assists FROM table_name_11 WHERE points = ""10""" What is the Undecided on 2009-05-24?,"SELECT undecided FROM table_name_66 WHERE date = ""2009-05-24""" "What is Against, when Opposing Teams is ""Australia"", and when Date is ""27/07/1991""?","SELECT against FROM table_name_12 WHERE opposing_teams = ""australia"" AND date = ""27/07/1991""" List at least 5 active business ID that are good for groups and dancing.,SELECT T2.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T2.attribute_value LIKE 'TRUE' AND T1.attribute_name LIKE 'Good for Dancing' AND T1.attribute_name LIKE 'Good for Groups' LIMIT 5 What is the runtime of the movie starred by Jackie Chan with a rating greater than 7?,SELECT T1.Runtime FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Jackie Chan' AND T1.Rating > 7 What date was the opponents the Oakland Raiders?,"SELECT date FROM table_name_88 WHERE opponent = ""oakland raiders""" Show all cities along with the number of drama workshop groups in each city.,"SELECT T1.City_Town, COUNT(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town" Find the average number of staff working for the museums that were open before 2009.,SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009 What are the first names and last names of students with address in Wisconsin state?,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Wisconsin""" What is the average grid for Marco Andretti with a finishing position higher than 19?,"SELECT AVG(grid) FROM table_name_85 WHERE driver = ""marco andretti"" AND fin_pos > 19" What is the Story Title that has Albers as the Letterer?,"SELECT story_title FROM table_name_60 WHERE letterer_s = ""albers""" "Which Segment C that has an Episode lower than 230, and a Segment A consisting of wax figures?","SELECT segment_c FROM table_name_79 WHERE episode < 230 AND segment_a = ""wax figures""" What is the name of the customer that made the order with the largest quantity?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items) What is the name of the university with the most international students in 2011?,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.pct_international_students DESC LIMIT 1 What is the maximum founded year of the Worcester Tornadoes?,"SELECT MAX(founded) FROM table_24334261_1 WHERE team = ""Worcester Tornadoes""" Name the competition for score of 3-0,"SELECT competition FROM table_name_42 WHERE score = ""3-0""" Show the average salary of all departments. | Would you like to the know the average salary grouped over each department name? | Yes show average salary grouped over each department name.,"SELECT dept_name, avg ( salary ) FROM instructor GROUP BY dept_name" In what Year were there 48 of 120 Seats and a % votes larger than 34.18?,"SELECT SUM(year) FROM table_name_94 WHERE seats = ""48 of 120"" AND _percentage_votes > 34.18" How many times did Richard Durbin become a legislator in district 20?,SELECT SUM(CASE WHEN T2.district = 20 THEN 1 ELSE 0 END) AS count FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Richard' AND T1.last_name = 'Durbin' What are the average ages of losers and winners across matches?,"SELECT avg(loser_age) , avg(winner_age) FROM matches" who won in the race in the section georgia 5,"SELECT incumbent FROM table_1342393_10 WHERE district = ""Georgia 5""" "Which long range AM station has the lowest frequency and includes a webcast of listen live, was licensed in the city of Monterrey, and uses the Callsign of xet?","SELECT MIN(frequency) FROM table_name_2 WHERE webcast = ""listen live"" AND city_of_license = ""monterrey"" AND callsign = ""xet""" Please list the names of all the ranking criteria of Harvard University in 2011.,SELECT T1.criteria_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'Harvard University' AND T2.year = 2011 what is the airline for source airport?,select distinct airline from routes where src_apid = ( SELECT T1.apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count ( * ) DESC LIMIT 1 ) What was the original title of 3.19?,"SELECT original_title FROM table_20124413_3 WHERE production_code = ""3.19""" How young is he?,SELECT age FROM captain ORDER BY age LIMIT 1 Who was the opposing team in the game with a score of 21-17?,"SELECT opp_team FROM table_name_49 WHERE score = ""21-17""" Which race was at Hockenheim circuit?,"SELECT race_name FROM table_name_74 WHERE circuit = ""hockenheim""" How many districts does riley joseph wilson?,"SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = ""Riley Joseph Wilson""" "Name the production for alpina model being b10 4,6","SELECT production FROM table_2477085_1 WHERE alpina_model = ""B10 4,6""" How many values for decile occur in Mount Roskill with Monte Cecilia school with a roll greater than 170?,"SELECT COUNT(decile) FROM table_name_33 WHERE area = ""mount roskill"" AND name = ""monte cecilia school"" AND roll > 170" What is the class of the locomotive with a wheel arrangement of 4-6-0 and a quantity made of 14?,"SELECT class FROM table_name_47 WHERE wheel_arrangement = ""4-6-0"" AND quantity_made = ""14""" What is the last transcript release date?,SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 What nationality is the #63 pick?,"SELECT nationality FROM table_name_72 WHERE pick__number = ""63""" What team has a vehicle with an Offenhauser engine and a McLaren chassis?,"SELECT team FROM table_1405704_1 WHERE chassis = ""McLaren"" AND engine = ""Offenhauser""" "Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?","SELECT MIN(height__m_) FROM table_name_97 WHERE name = ""plessur alps"" AND ave__no > 63" What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?,"SELECT AVG(december) FROM table_name_84 WHERE record = ""16-3-4"" AND game < 23" What team was the opponent with a record of 5–0?,"SELECT opponent FROM table_name_94 WHERE record = ""5–0""" Calculate the percentage of male users among all device users.,"SELECT SUM(IIF(gender = 'M', 1, 0)) / COUNT(device_id) AS per FROM gender_age" "What was the time of the car having a constructor of Renault, which went 40 laps?","SELECT time_retired FROM table_name_96 WHERE constructor = ""renault"" AND laps = ""40""" How many classes exist for each school?,"SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code" Who is the losing pitcher when the winning pitcher is roy oswalt?,"SELECT losing_pitcher FROM table_12125069_2 WHERE winning_pitcher = ""Roy Oswalt""" List the problem id and log id which are assigned to the staff named Rylan Homenick.,"SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = ""Rylan"" AND T1.staff_last_name = ""Homenick""" "What are all the players who played in match season, sorted by college in ascending alphabetical order?",SELECT player FROM match_season ORDER BY College ASC What is the upstream for the internet 100 plans?,"SELECT upstream FROM table_name_42 WHERE internet_plan = ""internet 100""" Return the average earnings across all poker players.,SELECT avg(Earnings) FROM poker_player "On what date did a save of ||54,918||50–36 occur?","SELECT date FROM table_name_73 WHERE save = ""||54,918||50–36""" How many times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24?,"SELECT COUNT(first_elected) FROM table_2668199_2 WHERE result = ""Re-elected"" AND party = ""Anti-Masonic"" AND district = ""Pennsylvania 24""" Which runs had james bryant graeme welch as Batsmen?,"SELECT runs FROM table_name_28 WHERE batsmen = ""james bryant graeme welch""" Name the lowest Draw which has a Performer of kaliopi and a Televotes larger than 3834?,"SELECT MIN(draw) FROM table_name_18 WHERE performer = ""kaliopi"" AND televotes > 3834" List the name of ships in ascending order of tonnage.,SELECT Name FROM ship ORDER BY Tonnage ASC "Which Role has a Theatre of globe, and a Music of jerome kern?","SELECT role FROM table_name_61 WHERE theatre = ""globe"" AND music = ""jerome kern""" "What is the Genre for Malina (ger.-aus.-fr.), an Original Title?","SELECT genre FROM table_name_12 WHERE original_title = ""malina (ger.-aus.-fr.)""" How many Wins in the Year with more than 16 Races?,SELECT wins FROM table_name_7 WHERE races > 16 what is the game for 23 april when batting 2nd is england 5/113 (19)?,"SELECT MIN(game) FROM table_name_62 WHERE date = ""23 april"" AND batting_2nd = ""england 5/113 (19)""" Who did they lose to 3-17?,"SELECT opponent FROM table_name_67 WHERE score = ""3-17""" What is Andrea Suarez Lazaro's height?,"SELECT height FROM table_name_25 WHERE contestant = ""andrea suarez lazaro""" "Hi can you show me all the headquarters of a company in backing industry? | Do you mean banking, not backing? | Sorry, yes banking!",SELECT headquarters FROM company WHERE main_industry = 'Banking' What Ecclesiastical Province has a type diocese and a latin name alexiensis?,"SELECT ecclesiastical_province FROM table_name_21 WHERE type = ""diocese"" AND latin_name = ""alexiensis""" What is the air date the had atlasphere for event 1 before episode 11?,"SELECT air_date FROM table_name_89 WHERE episode_number < 11 AND event_1 = ""atlasphere""" How many games have 61-16 as the record?,"SELECT COUNT(game) FROM table_name_14 WHERE record = ""61-16""" Which player has a position of FW?,"SELECT player FROM table_name_25 WHERE pos = ""fw""" Which Year has a Game of resident evil 4?,"SELECT AVG(year) FROM table_name_35 WHERE game = ""resident evil 4""" Give me the names of members whose address is in Harford or Waterbury.,SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury' What company focuses on Engine Overhaul for their principal activity?,"SELECT company FROM table_name_7 WHERE principal_activities = ""engine overhaul""" What country did Chris Witty represent?,"SELECT nation FROM table_name_50 WHERE name = ""chris witty""" Find the patient order by the date they underwent treatment. Recent first.,SELECT patient FROM undergoes ORDER BY dateundergoes DESC How many business ids have opening hours from 8AM to 6PM?,SELECT DISTINCT business_id FROM Business_Hours WHERE opening_time = '8AM' AND closing_time = '6PM' How many entries for 100 occur when the average is 15.78?,"SELECT COUNT(100) FROM table_2985664_8 WHERE average = ""15.78""" Give the country where St. George's Park is located.,SELECT T3.Country_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T2.City_Id = T1.City_Id INNER JOIN Country AS T3 ON T3.Country_Id = T2.Country_id WHERE T1.Venue_Name = 'St George''s Park' Where is the location where Scott Junk was the opponent?,"SELECT location FROM table_name_89 WHERE opponent = ""scott junk""" "What is Geust, when Result is 0:9?","SELECT geust FROM table_name_45 WHERE result = ""0:9""" What are the names of the songs whose rating is below the rating of all songs in English?,SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english') Which title has xbox as the platform with a year prior to 2006?,"SELECT title FROM table_name_85 WHERE platform = ""xbox"" AND year < 2006" Give me a list of all the distinct building descriptions.,SELECT DISTINCT building_description FROM Apartment_Buildings "Can you tell me the document type code, name, and description of the document with the name 'Noel CV'?","SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV'" "How many customers have email that contains ""gmail.com""?","SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE ""%gmail.com%""" When there are 3.39 million u.s viewers what is the production code?,"SELECT production_code FROM table_19068566_1 WHERE us_viewers__million_ = ""3.39""" Tell me the most year for 3 points,SELECT MAX(year) FROM table_name_30 WHERE points = 3 What percentage of countries became independent during the year 1960?,"SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Independence) = '1960' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Country) FROM politics" What player has a number of playoff games played greater than 0?,SELECT player FROM table_name_64 WHERE pl_gp > 0 Which Round has a Pick larger than 179?,SELECT MAX(round) FROM table_name_63 WHERE pick > 179 Where is the place that has a Callsign of DWRJ-FM?,"SELECT location FROM table_name_77 WHERE callsign = ""dwrj-fm""" Sort the first names of all the authors in alphabetical order.,SELECT fname FROM authors ORDER BY fname What is Bob Charles' To par?,"SELECT to_par FROM table_name_84 WHERE player = ""bob charles""" "Who constructed the car that has a Time/Retired of engine, and over 50 laps?","SELECT constructor FROM table_name_56 WHERE time_retired = ""engine"" AND laps > 50" "With Round 3 and Pick # over 10, what is the higher Overall number?",SELECT MAX(overall) FROM table_name_38 WHERE round = 3 AND pick__number > 10 "What is the customer last name, id and phone number with most number of orders?","SELECT T2.customer_last_name , T1.customer_id , T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1" "Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30?","SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = ""17,510"" AND area_2006_km² > 30" How many railways are there?,SELECT COUNT(*) FROM railway How many movies did the director of the highest movie popularity make?,SELECT COUNT(movie_id) FROM movies WHERE director_id = ( SELECT director_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 ) How many Credit Card complaints did Sharon handle?,SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.Product = 'Credit card' AND T1.server = 'SHARON' List the IDs and full names of legislators from the Liberal Republican party.,"SELECT T2.bioguide_id, T2.first_name, T2.last_name FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.party = 'Liberal Republican'" "The column ""winning_pilot "" in Table: ""MATCH"" refers to column ""pilot_id"" in Table: "" pilot"" | Did you mean that you want to get Pilot Id? | Yes",SELECT distinct t1.pilot_id FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot How many Account Representatives are there in Illinois with satisfying performance?,SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T1.performance = 'Good' AND T2.state = 'IL' What is the high 10 profile when high profile is 160?,SELECT high_10_profile FROM table_237036_2 WHERE high_profile = 160 What was the record in the win 7 streak?,"SELECT record FROM table_name_86 WHERE streak = ""win 7""" What is the English of chae soo-yeon?,"SELECT english_title FROM table_name_56 WHERE role = ""chae soo-yeon""" What is the total number of Lost for the Highest Ranking of – –?,"SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = ""– –""" What is the minimum and maximum number of bathrooms of all the apartments?,"SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments" "December larger than 21, and a Opponent of Pittsburgh penguins had what average game?","SELECT AVG(game) FROM table_name_30 WHERE december > 21 AND opponent = ""pittsburgh penguins""" "For the productline where the product No.S18_2949 was produced, what's the text description for that product line?",SELECT t1.textDescription FROM productlines AS t1 INNER JOIN products AS t2 ON t1.productLine = t2.productLine WHERE t2.productCode = 'S18_2949' Hello Can you provide me with a list of all of the different department names?,SELECT dept_name from department What is the total number of rebounds values for Ann Wauters?,"SELECT COUNT(rebounds) FROM table_name_56 WHERE name = ""ann wauters""" What is the employee ID of the employee who flew the longest distance?,SELECT t1.eid FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid ORDER BY t2.distance desc limit 1 List the name with registered members? | There are the names of branches with registered members. | which city of Alexandra?,SELECT city FROM branch where name = 'Alexandre' What was the date of the game when the record was 9–5–2?,"SELECT date FROM table_name_78 WHERE record = ""9–5–2""" Find the classrooms in which grade 4 is studying.,SELECT DISTINCT classroom FROM list WHERE grade = 4 what is the flag of the ship id 1,SELECT flag FROM ship where Ship_ID = 1 Name the opponents for 24 july 2011,"SELECT opponents FROM table_name_45 WHERE date = ""24 july 2011""" Who was Team #1 when Team #2 was galatasaray cc i̇stanbul?,"SELECT team__number1 FROM table_name_20 WHERE team__number2 = ""galatasaray cc i̇stanbul""" Can you please tell me how many credits that course was worth?,SELECT credits FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010 What services do they offer?,SELECT services FROM station "State the full name of state code ""GA"".","SELECT T FROM ( SELECT IIF(StateCode = 'GA', State, NULL) AS T FROM Regions ) WHERE T IS NOT NULL" Who was the distinct director of ET the Extra-Terrestrial?,SELECT director FROM film where title = 'ET the Extra-Terrestrial' "What time was the kickoff on September 15, 1985?","SELECT kickoff_[a_] FROM table_name_68 WHERE date = ""september 15, 1985""" "If the location is Yangon, Myanmar, what is the opponent total number?","SELECT COUNT(opponent) FROM table_25428629_1 WHERE location = ""Yangon, Myanmar""" What is the frequency of the model whose part number is ado520biaa5do? ,"SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = ""ADO520BIAA5DO""" "Give the description for the Act No.2, Scene No.2 of Midsummer Night's Dream.",SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = '2' AND T2.Scene = '2' AND T1.Title = 'Midsummer Night''s Dream' What is the least popular kind of decor?,SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1; Who built the Jim Crawford car?,"SELECT constructor FROM table_name_76 WHERE driver = ""jim crawford""" "List all inspection IDs where the employee named ""Rosemary Kennedy"" was involved.",SELECT DISTINCT T2.inspection_id FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Rosemary' AND T1.last_name = 'Kennedy' Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards?,"SELECT Nominee FROM musical WHERE Award = ""Tony Award"" OR Award = ""Cleavant Derricks""" "Among the menu pages on which the dish ""Chicken gumbo"" had appeared, what is the menu ID of the one with the biggest width?",SELECT T1.id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Chicken gumbo' ORDER BY T1.full_width DESC LIMIT 1 Show student ids for all male students.,SELECT StuID FROM Student WHERE Sex = 'M' What is the Date that chicago black hawks has a Record of 2–2?,"SELECT date FROM table_name_5 WHERE visitor = ""chicago black hawks"" AND record = ""2–2""" What is the Date of the Competition with Man of the Match Ollie Bronnimann?,"SELECT date FROM table_name_41 WHERE man_of_the_match = ""ollie bronnimann""" "What is the lowest Killed, when Perpetrator is ""Sherrill, Patrick Henry , 44""?","SELECT MIN(killed) FROM table_name_93 WHERE perpetrator = ""sherrill, patrick henry , 44""" Count the number of templates.,SELECT count(*) FROM Templates "What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?","SELECT apogee FROM table_name_48 WHERE inclination = ""65°"" AND launch_date_time___gmt__ = ""15 february 1973, 01:11""" "How many people had filled a role in the episode titled ""Cherished"", but did not show up in the on-screen credits?",SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' AND T2.credited = 'false' List the themes of parties in ascending order of number of hosts.,SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC "How are you! Can you provide me with a list of all of the master customer ids and corresponding cmi details?","SELECT master_customer_id, cmi_details from Customer_Master_Index" What is the genre of Super Mario Galaxy?,"SELECT genre FROM table_name_50 WHERE game = ""super mario galaxy""" List all restaurant types.,SELECT ResTypeName FROM Restaurant_Type What are the dates of transactions with at least 100 share count or amount bigger than 100?,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100 Tally the product name and quantity of the first ten sales.,"SELECT T3.Name, T2.Quantity FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T2.SalesID BETWEEN 1 AND 10" What are the name and id of the three highest priced rooms?,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;" "From 1968 to 1970, what are indicator names whose license type is open and values are less than 100?",SELECT DISTINCT T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year >= 1968 AND T1.Year < 1971 AND T2.LicenseType = 'Open' AND T1.Value < 100 what is the mol.weight (daltons) when the percent of mass is 1.5?,"SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = ""1.5""" What about the names of scientists that worked on the project named 'A Puzzling Parallax'?,SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax' Which county has 438 (4%) listed under R. Bacon?,"SELECT county FROM table_name_92 WHERE r_bacon = ""438 (4%)""" can you please display only the department names with the number of employees in each one?,"SELECT department_name , COUNT ( * ) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name" "Among the products with product ID lower than 15, how many of them costs 10 and below?",SELECT COUNT(ProductID) FROM Products WHERE ProductID < 15 AND Price <= 10 Provide the full address of Ursola Purdy.,"SELECT T3.street_number, T3.street_name, T3.city FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id INNER JOIN country AS T4 ON T4.country_id = T3.country_id WHERE T1.first_name = 'Ursola' AND T1.last_name = 'Purdy'" What are the dates of leaving office for politician from the province of Seville?,"SELECT left_office FROM table_26362472_1 WHERE province = ""Seville""" what are the minister names of the parties with 1 events,SELECT T2.Minister FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count ( * ) = 1 What are the amenities of the dorm that has the most female students living in it?,"SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T1.dormid = ( select T1.dormid from dorm as T1 join lives_in as T4 on T1.dormid = T4.dormid join student as T5 on T4.stuid = T5.stuid where T5.sex = ""F"" group by T1.dormid order by count ( * ) desc limit 1 ) " What was the Home team Carlton's Ground?,"SELECT ground FROM table_name_55 WHERE home_team = ""carlton""" Show names of teachers and the courses they are arranged to teach.,"SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID" "What was the performance length of the 1999 season in bydgoszcz, poland?","SELECT performance FROM table_name_11 WHERE season = 1999 AND place = ""bydgoszcz, poland""" what is the name of the customer of customer code 401,SELECT customer_name from Customers where customer_code = 401 What was the score of the game against the Braves with a record of 41–27?,"SELECT score FROM table_name_25 WHERE opponent = ""braves"" AND record = ""41–27""" Find all airlines that have fewer than 200 flights.,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 "Among the history works written by Shakespeare, how many works whose 1st acts have no more than 2 scenes?",SELECT COUNT(DISTINCT T2.work_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene < 2 AND T1.GenreType = 'History' Can you tell me the Opponent that has the December of 2?,SELECT opponent FROM table_name_52 WHERE december = 2 How many altitudes does the common with an area of 130.7 km^2 have?,"SELECT COUNT(altitude__mslm_) FROM table_1449176_1 WHERE area__km_2__ = ""130.7""" Which Played has a Points difference of +261?,"SELECT played FROM table_name_50 WHERE points_difference = ""+261""" Show origins of all flights with destination Honolulu.,"SELECT origin FROM Flight WHERE destination = ""Honolulu""" Show the delegate from district 1 in election.,SELECT Delegate FROM election WHERE District = 1 And what about the lowest oppose rate?,SELECT min ( Oppose_rate ) FROM candidate What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?,"SELECT date_of_birth__age_ FROM table_name_57 WHERE caps = ""3"" AND name = ""gabriel quak jun yi""" Who is Pick #41?,"SELECT player FROM table_name_99 WHERE pick__number = ""41""" What is the name of the person whose date of death is 01-04-1954?,"SELECT name FROM table_11585313_1 WHERE date_of_death† = ""01-04-1954""" Name the district for rep. warren r. davis died during previous congress,"SELECT district FROM table_225200_4 WHERE reason_for_change = ""Rep. Warren R. Davis died during previous congress""" What is the lowest episode number that had 4.03 million viewers?,"SELECT MIN(episode__number) FROM table_27927185_1 WHERE viewers__millions_ = ""4.03""" List the most common type of Status across cities.,SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 How many matches were held in 2011?,SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2011%' What was the playoff advancement during the year 1998?,SELECT playoffs FROM table_1570003_2 WHERE year = 1998 Who is riding the Ducati 999 RS in Round 7?,"SELECT rider FROM table_name_31 WHERE rounds = ""7"" AND motorcycle = ""ducati 999 rs""" When was episode 2x11 aired for the first time?,"SELECT first_broadcast FROM table_19930660_2 WHERE episode = ""2x11""" What is the bowling skill of SC Ganguly?,SELECT T1.Bowling_Skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T2.Bowling_skill = T1.Bowling_Id WHERE T2.Player_Name = 'SC Ganguly' What was the score of the game with a loss of Mercedes (0-1)?,"SELECT score FROM table_name_47 WHERE loss = ""mercedes (0-1)""" What are the names and distances of aircraft that have more than 5000 distance and there are at least 5 people who have its certificate?,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count ( * ) > = 5 How many animal type allergies exist?,"SELECT count(*) FROM Allergy_type WHERE allergytype = ""animal""" "What is the credit rating of the company whose average lead time is 16 days for a standard price of 18.9900 and whose last receipt date is August 27, 2011?","SELECT T2.CreditRating FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.StandardPrice = 18.9900 AND T1.AverageLeadTime = 16 AND STRFTIME('%Y-%m-%d', T1.LastReceiptDate) = '2011-08-27'" Please list all album titles in alphabetical order.,SELECT Title FROM ALBUM ORDER BY Title "What is the total number of Lane, when Mark is ""7.93"", and when React is less than 0.145?",SELECT COUNT(lane) FROM table_name_8 WHERE mark = 7.93 AND react < 0.145 Which FA Cup has a Total smaller than 1?,SELECT AVG(fa_cup) FROM table_name_24 WHERE total < 1 Which company launched in 1996 and has a Hanzi of 凤凰卫视中文台?,"SELECT name FROM table_name_36 WHERE launch = ""1996"" AND hanzi = ""凤凰卫视中文台""" Which Make has a Pos of 3?,SELECT make FROM table_name_58 WHERE pos = 3 When did series 6 start?,SELECT start_date FROM table_24057191_2 WHERE series = 6 and can you tell me the name of that product?,SELECT name from products where price = ( select min ( Price ) FROM Products ) What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?,"SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = ""2 (6 in 30.89s)""" Who is the home team for the stadium located in Berlin?,"SELECT home_team FROM table_name_73 WHERE state = ""berlin""" What is the name of campus with id 19?,SELECT distinct T1.Campus FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t2.Campus = 19 Name the points won for 1230,SELECT points AS won FROM table_23501776_16 WHERE points = 1230 What are all the names of the customers? | Did you mean customer details in the table? | Yes,SELECT customer_details FROM customers What was Lambert's song choice in the top 13?,"SELECT song_choice FROM table_21501511_1 WHERE week__number = ""Top 13""" "How many clubs have players with the position ""Right Wing""?","SELECT count ( * ) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = ""Right Wing""" What is the difference between average glucose reading for patients in the 20s and 50s?,"SELECT SUM(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime('%J', T1.birthdate)) / 365) BETWEEN 20 AND 30 THEN T2.VALUE ELSE 0 END) / COUNT(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime('%J', T1.birthdate)) / 365) BETWEEN 20 AND 30 THEN T2.PATIENT END) - SUM(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime('%J', T1.birthdate)) / 365) BETWEEN 50 AND 60 THEN T2.VALUE ELSE 0 END) / COUNT(CASE WHEN ROUND((strftime('%J', T2.DATE) - strftime('%J', T1.birthdate)) / 365) BETWEEN 50 AND 60 THEN T2.PATIENT END) AS difference FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Glucose'" What years show Model of 2.0 tdi (cr) dpf?,"SELECT years FROM table_name_62 WHERE model = ""2.0 tdi (cr) dpf""" "Where was the game played when 71,060 people attended?","SELECT game_site FROM table_name_31 WHERE attendance = ""71,060""" How much Vitamin A is in Sherry beef?,SELECT T2.vitamin_a FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Sherried Beef' How many bronze medals for the nation with less than 1 total?,SELECT MAX(bronze) FROM table_name_79 WHERE total < 1 how about the rooms that do not have any reservations ?,SELECT avg ( beds ) FROM rooms WHERE roomid NOT IN ( SELECT DISTINCT room FROM reservations ) who is Toonmax owner? | Did you want the owner of the program named Toonmax? | yes,"SELECT owner from program where name = ""Toonmax""" "For upper Arlington, what was the median household income?","SELECT median_house__hold_income FROM table_1840495_2 WHERE place = ""Upper Arlington""" How many distinct kinds of injuries happened after season 2010?,SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.season > 2010 WHAT IS THE PLAYER WITH 287?,SELECT player FROM table_name_26 WHERE total = 287 What is the lowest Grid for jj lehto with over 51 laps?,"SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = ""jj lehto""" Which episode number drew in 3.84 million viewers in the U.S.?,"SELECT MAX(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = ""3.84""" What is every score at the location of Verizon Center and points of 68?,"SELECT score FROM table_23486853_8 WHERE location = ""Verizon Center"" AND points = 68" Show the album names and ids for albums that contain tracks with unit price bigger than 1.,"SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID" Which Venue resulted in AUS by 229 runs?,"SELECT venue FROM table_name_80 WHERE result = ""aus by 229 runs""" list the salaries in ascending order,SELECT salary FROM Employee ORDER BY salary ASC Find the total revenue of companies of each founder.,"SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder" List down the name of countries whereby English is their official language.,SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' Find the names and average salaries of all departments whose average salary is greater than 42000.,"SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name HAVING AVG(salary) > 42000" timothy truman worked on what dates,"SELECT publication_dates FROM table_1420954_1 WHERE artist_s_ = ""Timothy Truman""" What is the name of the marketing region that the store Rob Dinning belongs to?,"SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = ""Rob Dinning""" "Among the patients with hypertension, what is the average of their diastolic blood pressure?",SELECT AVG(T1.VALUE) FROM observations AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN conditions AS T3 ON T2.patient = T3.PATIENT WHERE T3.DESCRIPTION = 'Hypertension' AND T1.DESCRIPTION = 'Diastolic Blood Pressure' What are the different ids and stop durations of all the drivers whose stop lasted longer than the driver in the race with the id 841?,"SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)" How many students that are undergoing the pre-phase of qualification have advisors?,SELECT COUNT(T1.p_id_dummy) FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.inPhase = 'Pre_Quals' AND T2.student = 1 What are the crime rates of counties that contain cities that have white percentages of over 90?,SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90 What is the record of the Hartford Whalers home team with the April 13 game date?,"SELECT record FROM table_name_7 WHERE home = ""hartford whalers"" AND date = ""april 13""" Show the transaction type code that occurs the most frequently.,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 How many total miles recorded for the racer who finished in 1:05:33?,"SELECT miles__km_ FROM table_17802778_1 WHERE race_time = ""1:05:33""" Who is Team D when Carmen Ada is team C?,"SELECT team_d FROM table_name_61 WHERE team_c = ""carmen ada""" "What is the average occurrence of the word ""grec"" on each Wikipedia page that has this word?",SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.wid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'grec' What are the order details of the products with price higher than 2000?,SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 How many distinct nationalities are there?,SELECT count(DISTINCT Nationality) FROM people What are the names of the states that have 2 to 4 employees living there?,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4; What student id corresponds to the oldest student?,SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student) Which network has bob costas as the studio host and darren pang as the ice level reporters?,"SELECT network FROM table_22485543_1 WHERE studio_host = ""Bob Costas"" AND ice_level_reporters = ""Darren Pang""" What is the district name for district id 15?,SELECT district_name from district where district_id = 15 What is the product that has the highest average rating from the mountain product line?,SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.ProductLine = 'M' GROUP BY T2.Name ORDER BY CAST(SUM(T1.Rating) AS REAL) / COUNT(T1.ProductID) DESC LIMIT 1 What is the id and salary of the employee named Mark Young?,"SELECT eid , salary FROM Employee WHERE name = 'Mark Young'" What is the Year 10 5th Quads with NC as Open 1st VIII and NC as a Year 10 3rd Quads?,"SELECT year_10_5th_quad FROM table_name_16 WHERE open_1st_viii = ""nc"" AND year_10_3rd_quad = ""nc""" Does the sky calcio 6 hd have PPV?,"SELECT ppv FROM table_15887683_4 WHERE television_service = ""Sky Calcio 6 HD""" "Which Venue has Notes of 58.25 m, and a Competition of world championships?","SELECT venue FROM table_name_33 WHERE notes = ""58.25 m"" AND competition = ""world championships""" "What are the names of the stations which serve both ""Ananthapuri Express"" and ""Guruvayur Express"" trains?","SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = ""Ananthapuri Express"" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = ""Guruvayur Express""" What date does the Home team of Richmond have?,"SELECT date FROM table_name_32 WHERE home_team = ""richmond""" List the venues of debates in ascending order of the number of audience.,SELECT Venue FROM debate ORDER BY Num_of_Audience "How many years did player Id ""healygl01"" play?",SELECT COUNT(year) FROM Goalies WHERE playerID = 'healygl01' What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?,SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin' What are the name and id of the team with the most victories in 2008 postseason?,"SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;" Show the average amount of transactions for different lots.,"SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id" What is the average education level of customers from the place with the highest average income per month?,SELECT AVG(T1.EDUCATIONNUM) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID ORDER BY T2.INCOME_K DESC LIMIT 1 "What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R?","SELECT 1996 FROM table_name_23 WHERE 1994 = ""a"" AND 2003 = ""a"" AND 2001 = ""1r""" "Among the customers, list customers' company names and addresses who paid more than average in freight.","SELECT DISTINCT T1.CompanyName, T1.Address FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Freight > ( SELECT AVG(Freight) FROM Orders )" "Which highest wins number had Kawasaki as a team, 95 points, and a year prior to 1981?","SELECT MAX(wins) FROM table_name_9 WHERE team = ""kawasaki"" AND points = 95 AND year < 1981" "User No.""63469"" has got ""1"" like for a tip to the Yelp business, which city is that business located in?",SELECT T1.city FROM Business AS T1 INNER JOIN Tips AS T2 ON T1.business_id = T2.business_id WHERE T2.likes = 1 AND T2.user_id = 63469 What is the name and salary for employee with id 242518965?,"SELECT name, salary FROM Employee WHERE eid = 242518965" What object class is in the X and Y coordinates of 126 and 363?,"SELECT T1.IMG_ID, T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 126 AND T1.Y = 363" "who is the builder of Object Number 1975-7006?","SELECT builder FROM railway WHERE ObjectNumber = ""1975-7006""" Which ship was sunk at 01:00?,"SELECT name_of_ship FROM table_name_96 WHERE fate = ""sunk at"" AND time = ""01:00""" "Show the names of aircrafts that are associated with both an airport named ""London Heathrow"" and an airport named ""London Gatwick""","SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Heathrow"" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" "What is Average Height, when Weight is less than 93, when Spike is less than 336, and when Block is 305?",SELECT AVG(height) FROM table_name_82 WHERE weight < 93 AND spike < 336 AND block = 305 Which team had the most same starting players througout the season? Give the full name of the team.,SELECT DISTINCT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.GP = T2.GS "What is the percentage of player who won ""All-Defensive First Team"" from 1980 - 2000 is from 'NY'.",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T1.birthState = 'NY' AND T2.award = 'All-Defensive First Team' AND T2.year BETWEEN 1980 AND 2000 Calculate the total profit made by chocolate floral blue coral cyan.,SELECT SUM(T3.l_extendedprice * (1 - T3.l_discount) - T2.ps_supplycost * T3.l_quantity) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN lineitem AS T3 ON T2.ps_partkey = T3.l_partkey AND T2.ps_suppkey = T3.l_suppkey WHERE T1.p_name = 'chocolate floral blue coral cyan' What is the name of the grape whose wine products had the highest average price?,SELECT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG ( Price ) DESC LIMIT 1 Calculate the difference between the 2020 population and the 2010 population for the districts represented by Griffin Tim.,SELECT T1.population_2020 - T1.population_2010 FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Griffin' AND T3.last_name = 'Tim' What is the lowest amount of draws with less than 12 wins and less than 30 played?,SELECT MIN(draws) FROM table_name_27 WHERE wins < 12 AND played < 30 In what Season was Colin Miller (TAS) the Player?,"SELECT season FROM table_name_34 WHERE player = ""colin miller (tas)""" What is the average population ratio of the countries in which organizations were established in 1947?,"SELECT T1.Population / T1.Area FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE STRFTIME('%Y', T2.Established) = '1947'" When καθ are the letters what is the nickname?,"SELECT nickname FROM table_28436909_4 WHERE letters = ""ΚΑΘ""" "Find the id, forename and number of races of all drivers who have at least participated in two races?","SELECT T1.driverid , T1.forename , count(*) 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(*) >= 2" What average drawn has a played greater than 42?,SELECT AVG(drawn) FROM table_name_21 WHERE played > 42 Which county's population is lowest?,SELECT county_name FROM county order by population asc limit 1 "In Season 20 Episode 11, how many times was Doofus included in the credit list?",SELECT COUNT(*) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.nickname = 'Doofus' AND T2.credited = 'true' AND T2.episode_id = 'S20-E11'; Who played Blackpool when Blackpool was at home?,"SELECT away_team FROM table_name_2 WHERE home_team = ""blackpool""" What type is the race with the vicenza to marostica course?,"SELECT type FROM table_name_29 WHERE course = ""vicenza to marostica""" What was the catalog when the label was frontiers records?,"SELECT catalog FROM table_name_61 WHERE label = ""frontiers records""" What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.,SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details can you show a list of order date?,SELECT order_date FROM customer_orders "What is the date of the match with Brother Elephants as the opponent and a save of ||4,117?","SELECT date FROM table_name_49 WHERE opponent = ""brother elephants"" AND save = ""||4,117""" "Among the teams with the most number of ties, how many penalty was committed by a player or coach that is not on the ice? Indicate the name of the team.","SELECT BenchMinor, name FROM Teams ORDER BY T DESC LIMIT 1" "Please list the total number of companies with a commission percentage of 0.018 or above, along with each company's assigned geographical location.","SELECT T1.BusinessEntityID, T2.'Group' FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 USING (territoryid) WHERE T1.CommissionPct >= 0.018" What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?,SELECT MIN(league) FROM table_name_67 WHERE total > 8 how many innings had bbi 4/26?,"SELECT innings FROM table_28846752_5 WHERE bbi = ""4/26""" What tracks belong to genre Rock?,"SELECT * FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock""" What are the dates of assessment notes for students with first name 'Fanny'?,"SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = ""Fanny""" what's the thursday iuppiter (jupiter) with saturday saturnus ( saturn) being jesarn,"SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE saturday_saturnus___saturn_ = ""Jesarn""" Find the number of rooms with price higher than 120 for different decor.,"SELECT decor , count(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor;" What date was the game when away team northampton town played?,"SELECT date FROM table_name_43 WHERE away_team = ""northampton town""" How many people attended the Royals game with a score of 17 - 6?,"SELECT SUM(attendance) FROM table_name_17 WHERE opponent = ""royals"" AND score = ""17 - 6""" What is the least political rights rank in 1976?,SELECT MIN(political_rights) FROM table_name_54 WHERE year = 1976 What are the average ages for male and female students?,"SELECT avg(age) , sex FROM Student GROUP BY sex" "What is the list date of the historic place that was built 1896, 1914?","SELECT listed FROM table_name_88 WHERE built = ""1896, 1914""" "What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?","SELECT displacement FROM table_name_20 WHERE fuel_system = ""carburettor"" AND power = ""ps (kw; hp)"" AND model = ""2000""" Find all the policy types that are used by more than 2 customers.,SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2 Final question is how many votes for Niki Ashton?,"SELECT Votes FROM player WHERE player_name = ""Niki Ashton""" Show names of technicians in ascending order of quality rank of the machine they are assigned.,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank Where is the Belhaven College SSAC conference location?,"SELECT location FROM table_name_23 WHERE current_conference = ""ssac"" AND institution = ""belhaven college""" What episode had a run time of 24:53?,"SELECT episode FROM table_2102714_1 WHERE run_time = ""24:53""" what is the powertrain (engine/transmission) when the order year is 2000?,"SELECT powertrain__engine_transmission_ FROM table_10007452_3 WHERE order_year = ""2000""" Opponent of at san francisco 49ers had what lowest week?,"SELECT MIN(week) FROM table_name_43 WHERE opponent = ""at san francisco 49ers""" With a 2011 of 0 what was the 2006 result?,"SELECT 2006 FROM table_name_83 WHERE 2011 = ""0""" Name the year for japanese,"SELECT year__ceremony_ FROM table_21790203_1 WHERE language_s_ = ""Japanese""" What is the average game number when the record is 4-1?,"SELECT AVG(game) FROM table_name_18 WHERE record = ""4-1""" What was the original title for the film used in nomination of keep smiling?,"SELECT original_title FROM table_name_36 WHERE film_title_used_in_nomination = ""keep smiling""" What is the campus fee for San Francisco State University in 1996?,"SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND T2.year = 1996" Which category is the most common?,"SELECT T.name FROM ( SELECT T2.name, COUNT(T2.name) AS num FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T2.name ) AS T ORDER BY T.num DESC LIMIT 1" "What is Country, when Player is ""Jack Nicklaus""?","SELECT country FROM table_name_56 WHERE player = ""jack nicklaus""" When was the record 27-25?,"SELECT date FROM table_name_64 WHERE record = ""27-25""" Can you find the response received dates for all grants that were over 100?,SELECT T1.response_received_date FROM Documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id WHERE T2.grant_amount > 100 "What are the different schools and their nicknames, ordered by their founding years?","SELECT school , nickname FROM university ORDER BY founded" What is the percentage of American players among all the players who have gotten in the Hall of Fame?,SELECT CAST(COUNT(CASE WHEN T1.birthCountry = 'USA' THEN T1.playerID ELSE NULL END) AS REAL) * 100 / COUNT(T1.playerID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID Can you show the product name and total order quantity of each product please?,"SELECT T1.product_name , sum ( T2.order_quantity ) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id" "For each product type, return the maximum and minimum price.","SELECT product_type_code , max(product_price) , min(product_price) FROM products GROUP BY product_type_code" How Many Students have Behavior Incident reports with recommendations?,SELECT count ( * ) from ( SELECT * FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ) State the name of the publisher with the most games.,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t" List the names of all the customers that use email as a contact channel.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' What season did SV Darmstadt 98 end up at RL Süd (1st)?,"SELECT season FROM table_20217456_7 WHERE rl_süd__1st_ = ""SV Darmstadt 98""" What is the highest amount of floors in Stockholm with a rank of 15?,"SELECT MAX(floors) FROM table_name_96 WHERE location = ""stockholm"" AND rank = ""15""" How many students live there?,SELECT COUNT ( T1.stuid ) FROM lives_in AS T1 JOIN dorm AS T2 ON T1.dormid = T2.dormid WHERE T2.student_capacity = ( SELECT max ( student_capacity ) FROM dorm ) What dorms have no Study Room as an amenity? | Do you mean among those with a TV Lounge? | Yes.,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' Is there anyone else with the first name Joe?,"select first_name, last_name from actor where first_name = 'JOE' and last_name ! = 'SWANK'" Which religion has the largest population in Martinique?,SELECT T2.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Martinique' ORDER BY T1.population DESC LIMIT 1 how many titles were never presented in china?,SELECT count ( title ) FROM film WHERE film_id NOT IN ( SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China' ) How many territories are owned by Anne Dodsworth?,SELECT COUNT(T2.TerritoryID) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Anne' AND T1.LastName = 'Dodsworth' Great! How many catalogs has each publisher published?,"SELECT catalog_publisher, count ( * ) FROM catalogs GROUP BY catalog_publisher" Which game has the longest name?,SELECT T.game_name FROM game AS T ORDER BY LENGTH(T.game_name) DESC LIMIT 1 "What are the names of conductors, sorted descending by the number of years they have worked?",SELECT Name FROM conductor ORDER BY Year_of_Work DESC What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?,"SELECT canadian_championship FROM table_name_45 WHERE name = ""ashtone morgan category:articles with hcards""" Tell me the Draft Pick Number for the country 6 ? | For which season do you want? | for 1998.0,"SELECT Draft_Pick_Number from match_season WHERE season = ""1998.0"" AND country = ""6""" "Excellent! Can you tell me what the total number of trips is, within zip code 94002, for bike 252?",SELECT COUNT ( * ) FROM trip WHERE zip_code = 94002 and bike_id = '252' What was the weight in kg when the horse was Alcopop? ,"SELECT weight__kg_ FROM table_24915874_1 WHERE horse = ""Alcopop""" Please list three businesses with the lowest total sales from last year.,SELECT BusinessEntityID FROM SalesPerson ORDER BY SalesLastYear LIMIT 3 What is the average number of employees of the departments whose rank is between 10 and 15?,SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15 What is the name of the department with the student that has the lowest GPA?,SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1 What are the total amount and average amount paid in claim headers?,"SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers" Show the names of phones that are on market with number of shops greater than 50.,SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50 "What are the keywords of the ""Shield"" episode?",SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Shield' How many reshared tweets are there in Texas?,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.State = 'Texas' AND T1.IsReshare = 'TRUE' Which Site that has a Sex and other data of old male?,"SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = ""old male""" What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?,"SELECT release_date FROM table_name_93 WHERE production_number < 1495 AND director = ""robert mckimson"" AND title = ""mouse-placed kitten""" What was the results for the candidates listed as bart gordon (d) 76.5% wallace embry (r) 23.5%?,"SELECT result FROM table_1341577_43 WHERE candidates = ""Bart Gordon (D) 76.5% Wallace Embry (R) 23.5%""" "The episode with production code 693-002, has how many original airdates?","SELECT COUNT(original_airdate) FROM table_26982362_2 WHERE production_code = ""693-002""" "now can you show the those same results, but ordered in ascending order of member names","SELECT T2.Name, T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name ASC" what's the won with points against being 597,"SELECT won FROM table_13758945_3 WHERE points_against = ""597""" How many original air dates did episode 12 have?h,SELECT COUNT(original_air_date) FROM table_23255941_1 WHERE episode__number = 12 What is the smallest district that had 33.25 in animals,"SELECT MIN(district) FROM table_20403667_2 WHERE animal__in_lakh__ = ""33.25""" Which one of them registered the earliest?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance LIMIT 1 Which student's age is older than 18 and is majoring in 600? List each student's first and last name.,"SELECT Fname, Lname FROM Student WHERE Age > 18 AND Major = 600" How many total finals where there when the last win was in 2012-13?,"SELECT total_finals FROM table_14286908_1 WHERE year_of_last_win = ""2012-13""" Find the first names and offices of all professors sorted by alphabetical order of their first name.,"SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname" "What was the result for Rank 2 on December 6, 1969?","SELECT result FROM table_name_23 WHERE rank_number = ""2"" AND date = ""december 6, 1969""" What are the id and name of the stations that have ever had more than 12 bikes available?,"SELECT DISTINCT T1.id , T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12" "What ward was she nominated at for her work, Flare Path for the category of best featured actress in a play?","SELECT award FROM table_name_62 WHERE nominated_work = ""flare path"" AND category = ""best featured actress in a play""" "What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30?","SELECT AVG(silver) FROM table_name_82 WHERE gold > 0 AND rank = ""1"" AND total < 30" "How many undergraduates are there in ""San Jose State University"" in year 2004?","SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Jose State University""" What are the names of the photos that use a Sigma lens?,SELECT T2.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' "Who was the director of the film with an original title of ""16 Days in Afghanistan""? ","SELECT director FROM table_17155250_1 WHERE original_title = ""16 Days in Afghanistan""" How many concerts occurred in 2014 or 2015?,SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015 In what season did Rusty Wallace win?,"SELECT MAX(season) FROM table_1769428_2 WHERE winning_driver = ""Rusty Wallace""" Find the name and email for the users who have more than one follower.,"SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1" Calculate the percentage of words used in Agents class label.,SELECT CAST(COUNT(DISTINCT CASE WHEN T1.class_label = 'Agents' THEN T2.word_cited_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.,"SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) < 2" What Elector has the Place of Birth listed as Bavaria?,"SELECT elector FROM table_name_4 WHERE place_of_birth = ""bavaria""" "When the country is austria germany and the rank is kept under 5, what's the average number of matches played?","SELECT AVG(matches) FROM table_name_91 WHERE country = ""austria germany"" AND rank < 5" How many marriages between women have % same-sex marriages of 1.06?,"SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = ""1.06""" What are the names of the courses that have exactly 1 student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1 "What is the last name of the professor whose office is located in DRE 102, and when were they hired?","SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'" What is the prize money for the second round qualifying that is listed?,"SELECT prize_money FROM table_name_60 WHERE round = ""second round qualifying""" What is the result when the nominee(s) of janine sherman?,"SELECT result FROM table_name_57 WHERE nominee_s_ = ""janine sherman""" What is the home city when the stadium was Gradski Stadion U Poljudu?,"SELECT home_city FROM table_name_69 WHERE stadium = ""gradski stadion u poljudu""" Who ran for office in the Alabama 1 district?,"SELECT candidates FROM table_1342198_3 WHERE district = ""Alabama 1""" List down application that have not been updated since 2015. What is the percentage of this application having more negative sentiment than positive sentiment?,"SELECT CAST((( SELECT COUNT(*) Po FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE SUBSTR(T1.""Last Updated"", -4, 4) > '2015' AND T2.Sentiment = 'Positive' ) - ( SELECT COUNT(*) Ne FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE SUBSTR(T1.""Last Updated"", -4, 4) > '2015' AND T2.Sentiment = 'Negative' )) AS REAL) * 100 / ( SELECT COUNT(*) NUM FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE SUBSTR(T1.""Last Updated"", -4, 4) > '2015' )" List down the product name for products from id 1 to 10.,SELECT Name FROM Products WHERE ProductID BETWEEN 1 AND 10 Who is the artist that drew higher than 4?,SELECT artist FROM table_name_33 WHERE draw > 4 Where is shabazz muhammad from?,"SELECT hometown FROM table_name_58 WHERE player = ""shabazz muhammad""" What is the name of the available rock single/pack by REO Speedwagon?,"SELECT single___pack_name FROM table_name_30 WHERE genre = ""rock"" AND artist = ""reo speedwagon""" How many books did David Foster Wallace write?,SELECT COUNT(T1.title) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'David Foster Wallace' What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday?,"SELECT monday_to_friday FROM table_name_34 WHERE mañana_es_para_siempre = ""impreuna pentru totdeauna""" What is the gender with a age range of 3-11 at the st adrian roman catholic primary school?,"SELECT gender FROM table_28523_2 WHERE age_range = ""3-11"" AND school = ""St Adrian Roman Catholic Primary school""" "What are the last name of staff id 1? | Do you mean customer, not staff? | yes",SELECT last_name FROM customer WHERE customer_id = 1 how many album id,SELECT count ( distinct album_id ) from tracks How many live births were there in 2006 in South Yorkshire (met county)?,"SELECT live_births_2006 FROM table_12251936_1 WHERE county = ""South Yorkshire (Met county)""" What are the names of all tracks that are on the Movies playlist but not in the music playlist?,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' How many copies per particle are there for the base pair that is size 1059?,SELECT COUNT(copies_per_particle) FROM table_140968_1 WHERE size___s_base_pair__ = 1059 Which college have both players with position midfielder and players with position defender?,"SELECT College FROM match_season WHERE POSITION = ""Midfielder"" INTERSECT SELECT College FROM match_season WHERE POSITION = ""Defender""" Calculate the total quantity ordered for 18th Century Vintage Horse Carriage and the average price.,"SELECT SUM(T2.quantityOrdered) , SUM(T2.quantityOrdered * T2.priceEach) / SUM(T2.quantityOrdered) FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode WHERE T1.productName = '18th Century Vintage Horse Carriage'" List the name of the school with the smallest enrollment.,SELECT school_name FROM school ORDER BY enrollment LIMIT 1 Which method has the record of 11-1?,"SELECT method FROM table_name_4 WHERE record = ""11-1""" How many Summer games were held in Stockholm?,SELECT COUNT(T3.id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Stockholm' AND T3.season = 'Summer' "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?","SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72" What candidates are from mississippi 6?,"SELECT candidates FROM table_1342233_24 WHERE district = ""Mississippi 6""" And what are their student numbers?,SELECT T2.STU_NUM FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' "In the matches where the winning margin is less than fifty, how many teams won by wicket?",SELECT COUNT(T2.Win_Id) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id WHERE T2.Win_Type = 'wickets' AND T1.Win_Margin < 50 What was the away teams score at Glenferrie Oval?,"SELECT away_team AS score FROM table_name_92 WHERE venue = ""glenferrie oval""" what is the method when the time is 0:51?,"SELECT method FROM table_name_5 WHERE time = ""0:51""" Which teams had more than 3 eliminations?,SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 "Which vocal type has the band mate with first name ""Marianne"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Marianne"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" find the ten customers with the most total orders,SELECT * FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT ( * ) DESC LIMIT 10 On the date november 24-december 6 what's the winner when the country is united states?,"SELECT winner FROM table_name_35 WHERE country = ""united states"" AND date = ""november 24-december 6""" Calculate the difference in the average number of low-priority orders shipped by truck in each month of 1995 and 1996.,"SELECT (CAST(SUM(IIF(STRFTIME('%Y', T2.l_shipdate) = 1995, 1, 0)) AS REAL) / 12) - (CAST(SUM(IIF(STRFTIME('%Y', T2.l_shipdate) = 1996, 1, 0)) AS REAL) / 12) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderpriority = '5-LOW' AND T2.l_shipmode = 'TRUCK'" Return the codes of countries that do not speak English and do not have Republics for governments.,"SELECT Code FROM country WHERE GovernmentForm != ""Republic"" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""" Which player went to the college Southern California?,"SELECT player FROM table_11677691_4 WHERE college = ""Southern California""" Who went there?,SELECT name FROM member where college_id = 4 What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?,"SELECT date__to_ FROM table_name_38 WHERE traction_type = ""electric"" AND name_of_system = ""yarmouth light and power company""" Name the mens singles for 1944/1945,"SELECT mens_singles FROM table_12193259_1 WHERE season = ""1944/1945""" "Among the American casts, how many were uncredited on episode ID tt0629228?",SELECT COUNT(T1.person_id) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.episode_id = 'tt0629228' AND T1.category = 'Cast' AND T1.credited = 'false' AND T2.birth_country = 'USA' Find the appelations that produce wines after the year of 2008 but not in Central Coast area.,"SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast""" What was the margin of victory in the tournament with a winning score of −3 (74-68-72-71=285)?,SELECT margin_of_victory FROM table_name_60 WHERE winning_score = −3(74 - 68 - 72 - 71 = 285) "How much time do businesses in El Mirage City, AZ State operate in average daily?",SELECT SUM(T2.closing_time - T2.opening_time) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'El Mirage' AND T1.state = 'AZ' Find the distinct last names of all the students who have president votes and whose advisor is 8741.,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""8741""" What is the date for the flag of Norway?,"SELECT date FROM table_name_73 WHERE flag = ""norway""" What companies are in the banking or retailing industry? | Do you want their company id or name? | What are the names of the companies in the banking or retail industries?,"SELECT Name FROM company WHERE Industry = ""Banking"" OR Industry = ""Retailing""" "How many Scottish League One games took place on the day that ""Pro Vercelli"" and ""Pescara""had a 5-2 game?",SELECT COUNT(T1.Date) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish League One' AND T1.Date = ( SELECT Date FROM matchs WHERE FTHG = 5 AND FTAG = 2 AND HomeTeam = 'Pro Vercelli' AND AwayTeam = 'Pescara' ) "Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?","SELECT years FROM table_name_41 WHERE decile < 6 AND area = ""te kuiti"" AND authority = ""state integrated""" What are the headquarters with at least two companies in the banking industry?,SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 Who finished in third place when the winner was Karina Bacchi? ,"SELECT third_place FROM table_25214321_1 WHERE winner = ""Karina Bacchi""" How many languages have le roman de renart as the original title?,"SELECT COUNT(languages) FROM table_22073745_1 WHERE original_title = ""Le Roman de Renart""" "How many teams lost at the sydney football stadium, sydney (11)?","SELECT COUNT(losingteam) FROM table_11236195_5 WHERE location = ""Sydney Football Stadium, Sydney (11)""" Which player had a conference of PAC-10 and position of G?,"SELECT player FROM table_name_56 WHERE conf = ""pac-10"" AND pos = ""g""" What are the ids and names of the web accelerators that are compatible with two or more browsers?,"SELECT T1.id, T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 2" What is the greatest elevation of all of those airports?,SELECT max ( elevation ) FROM airports What city does the employee who helps the customer with postal code 70174 live in?,"SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = ""70174""" What is the high lap total for mika salo with a grid greater than 17?,"SELECT MAX(laps) FROM table_name_66 WHERE driver = ""mika salo"" AND grid > 17" Ok thank you.Can you please show me the music festivals with counts more than 1? | Did you mean to ask for the categories of the music festivals with counts more than 1? | Yes.,SELECT Category FROM music_festival GROUP BY Category HAVING COUNT ( * ) > 1 Which Proto-Oceanic has a Proto-Polynesian of *lima?,"SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = ""*lima""" "How many actively running Yelp businesses are there located in ""Phoenix"" city?",SELECT COUNT(business_id) FROM Business WHERE active = 'true' AND city = 'Phoenix' which round is u.s. open cup division semifinals,"SELECT us_open_cup FROM table_1046170_5 WHERE playoffs = ""division Semifinals""" "What is Weekly Rank of TV series with Episode ""A Love of a Lifetime""?","SELECT Weekly_Rank FROM TV_series WHERE Episode = ""A Love of a Lifetime"";" "State the full height and width for menu called ""El Fuerte Del Palmar"".","SELECT T1.full_height, T1.full_width FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.name = 'El Fuerte Del Palmar'" What country does the goaltender come from?,"SELECT nationality FROM table_1213511_6 WHERE position = ""Goaltender""" "List the products whose supplier is Pavlova, Ltd. Please include the product ID and re-order level.","SELECT T1.ProductName, T1.ProductID, T1.ReorderLevel FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Pavlova, Ltd.'" Which publisher has published the most number of Action games?,"SELECT T.publisher_name FROM ( SELECT T4.publisher_name, COUNT(DISTINCT T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id INNER JOIN game_publisher AS T3 ON T2.id = T3.game_id INNER JOIN publisher AS T4 ON T3.publisher_id = T4.id WHERE T1.genre_name = 'Action' GROUP BY T4.publisher_name ORDER BY COUNT(DISTINCT T2.id) DESC LIMIT 1 ) t" "What are the names of the wrestlers, ordered descending by days held?",SELECT Name FROM wrestler ORDER BY Days_held DESC What event was the opponent Karl Knothe and had a submission (rear naked choke)?,"SELECT event FROM table_name_16 WHERE method = ""submission (rear naked choke)"" AND opponent = ""karl knothe""" List all info about all people.,SELECT * FROM people What is the Championship Game when the Final Four is 1 and the conference is American South?,"SELECT championship_game FROM table_name_29 WHERE final_four = ""1"" AND conference = ""american south""" what is the claim that incurred most number of settlements? | what do you want to know about this claim? | what is the claim id?,SELECT T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count ( * ) DESC LIMIT 1 Find the average price of all product clothes.,SELECT avg(product_price) FROM products WHERE product_type_code = 'Clothes' What is the Date for the Away team University?,"SELECT date FROM table_name_73 WHERE away_team = ""university""" Which events have the number of notes between one and three? List the event id and the property id.,"SELECT T1.Customer_Event_ID , T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3" How many elections in this table?,SELECT count ( * ) FROM election Which project has the highest hours on the list?,SELECT name FROM projects ORDER BY hours DESC LIMIT 1 list all the names of the sports available,SELECT distinct sportname FROM Sportsinfo Name the june when it has july of 84 °f / 28.9 °c,"SELECT jun FROM table_name_28 WHERE jul = ""84 °f / 28.9 °c""" How many teachers does the student named CHRISSY NABOZNY have?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""CHRISSY"" AND T1.lastname = ""NABOZNY""" Can you list the IDs and middle names of all students who have no more than 2 enrollments?,"SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT ( * ) < = 2" "List down the actor IDs of film titled ""BOUND CHEAPER"".",SELECT T2.actor_id FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id WHERE T1.title = 'BOUND CHEAPER' "When has a Score of 0–0, and a Away team of scunthorpe united?","SELECT date FROM table_name_65 WHERE score = ""0–0"" AND away_team = ""scunthorpe united""" Which team plays at Lake Oval?,"SELECT home_team FROM table_name_39 WHERE venue = ""lake oval""" What is the name of the conductor who has worked the greatest number of years?,SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 What opponent has 8-10 as the record?,"SELECT opponent FROM table_name_76 WHERE record = ""8-10""" What is the school with the nickname Tornadoes Lady Tornadoes?,"SELECT school FROM table_name_65 WHERE nickname_s_ = ""tornadoes lady tornadoes""" What school/club had pick 33?,SELECT school_club_team FROM table_name_31 WHERE pick = 33 "If the market name is Xperia U, what is the weight?","SELECT weight FROM table WHERE market_name = ""Xperia U""" What city is that building in?,SELECT City FROM buildings ORDER BY Height DESC LIMIT 1 State the name of the category which has the most number of films.,"SELECT T.name FROM ( SELECT T2.name, COUNT(T1.film_id) AS num FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T2.name ) AS T ORDER BY T.num DESC LIMIT 1" What is the score March 27?,"SELECT score FROM table_name_55 WHERE date = ""march 27""" cool can you tell me what that roller coaster's height is too?,SELECT height FROM roller_coaster order BY speed desc limit 1 What is the most common problem ID reported by all staff?,SELECT problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id GROUP BY problem_id ORDER BY count ( * ) DESC LIMIT 1 On what Surface was the match against Malek Jaziri played?,"SELECT surface FROM table_name_78 WHERE opponent = ""malek jaziri""" Show me the names of players who received salary in both 2005 and 2007?,"SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 or T1.year = 2007" how many credit cards there,"SELECT count ( * ) from Customers_Cards where card_type_code = ""Credit""" Please list the names of all the products ordered in order no. 10248.,SELECT T1.ProductName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10248 Who has the status of jr synonym of protosialis casca?,"SELECT novelty FROM table_name_75 WHERE status = ""jr synonym of protosialis casca""" What is the station name for the id's 1 and 2 ?,"SELECT name, id FROM station where id = 1 or id = 2" who is get the high salary? | Do you mean the id of the player who gets the highest salary? | Yes.,SELECT player_id FROM salary order by salary desc limit 1 Who is the stunt coordinator in episode 3?,SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.episode = 3 AND T2.role = 'stunt coordinator' What are the names of perpetrators?,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID What is the Regionalliga Sud for 1995-96?,"SELECT regionalliga_süd FROM table_name_13 WHERE season = ""1995-96""" Name the district for carolyn mccarthy,"SELECT district FROM table_1341423_32 WHERE incumbent = ""Carolyn McCarthy""" Which episode number visited India?,"SELECT episode_no FROM table_name_56 WHERE countries_visited = ""india""" What was the highest crowd at Windy Hill?,"SELECT MAX(crowd) FROM table_name_56 WHERE venue = ""windy hill""" How many touchdowns were made by the person with 7 extra points?,SELECT COUNT(touchdowns__5_points_) FROM table_14342210_14 WHERE extra_points_1_point = 7 What was the round when nueza silva played against greece?,"SELECT round FROM table_name_31 WHERE against = ""greece""" Find the total number of students living in the male dorm (with gender M).,SELECT 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 T3.gender = 'M' Give me the average prices of wines that are produced by appelations in Sonoma County.,"SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" "What average Year has Losses 4, and Wins less than 18, and Draws greater than 1?",SELECT AVG(year) FROM table_name_24 WHERE loses = 4 AND wins < 18 AND draws > 1 Which country has a score of 72 by Andrew Brooks?,"SELECT country FROM table_name_41 WHERE score = 72 AND player = ""andrew brooks""" How many times longer is the longest river in Tajikistan than the shortest river?,SELECT MAX(T2.Length) / MIN(T2.Length) FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T1.Country = 'TJ' "What are the different customer ids, and how many cards does each one hold?","SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id" State the player ID and coach ID of person who have become coach after retirement.,"SELECT playerID, coachID FROM Master WHERE playerID IS NOT NULL AND coachID IS NOT NULL" "What is the # when conroe, tx is the hometown?","SELECT MIN(_number) FROM table_22496344_1 WHERE home_town = ""Conroe, TX""" What year had more than 2 goals and 11 (2) games?,"SELECT years FROM table_name_36 WHERE goals > 2 AND games = ""11 (2)""" On which dates did the episodes directed by TR Babu Subramaniam air?,"SELECT original_air_date FROM table_17355820_1 WHERE directed_by = ""TR Babu Subramaniam""" Which episode was N/A in region 1,"SELECT episodes FROM table_15823956_1 WHERE region_1 = ""N/A""" Which tournament was played on 12 February 2001?,"SELECT tournament FROM table_name_21 WHERE date = ""12 february 2001""" What are the distinct Famous release dates?,SELECT DISTINCT (Famous_Release_date) FROM artist What are the names of all students who tried out in alphabetical order?,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName How many TFR were there in 2006 when the GFR was 53.8?,"SELECT tfr_2006 FROM table_12251936_1 WHERE gfr_2006 = ""53.8""" What division has finalist playoffs and was 3rd round Open Cup?,"SELECT division FROM table_name_73 WHERE playoffs = ""finalist"" AND open_cup = ""3rd round""" What is the description of the service type which offers both the photo product and the film product?,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film' "Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?",SELECT SUM(position) FROM table_name_28 WHERE goals_against < 43 AND wins > 14 AND played > 38 What was the outcome of the match against Stacy Margolin?,"SELECT outcome FROM table_name_79 WHERE opponent = ""stacy margolin""" What is the total number for long when there are 19 attempts?,SELECT COUNT(long) FROM table_name_52 WHERE attempts = 19 Find the total revenue created by the companies whose headquarter is located at Austin.,SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin' What is the Team in Game 38?,SELECT team FROM table_name_46 WHERE game = 38 What is the stadium for the city of Braga?,"SELECT stadium FROM table_name_88 WHERE city = ""braga""" What are the opening hours of the haunted mansion?,"SELECT Opening_Hours FROM Tourist_Attractions where Name = ""haunted mansion""" What operating system was needed for 2D games?,"SELECT required_os FROM table_name_91 WHERE type = ""2d""" Which venue was used on 12 September 1998?,"SELECT venue FROM table_name_10 WHERE date = ""12 september 1998""" "What is the highest Money ( $ ), when To Par is less than 2?",SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2 "What is Name (Birth-Death), when Left Office is 7 October 1958?","SELECT name__birth_death_ FROM table_name_79 WHERE left_office = ""7 october 1958""" Find and list the id and geographic ID of the elderly customers with an education level below 3.,"SELECT ID, GEOID FROM Customers WHERE EDUCATIONNUM < 3 AND age > 65" Show all distinct template type codes for all templates.,SELECT DISTINCT template_type_code FROM Templates What is the highest number of wins that has a top-25 of 13 and events less than 32?,SELECT MAX(wins) FROM table_name_76 WHERE top_25 = 13 AND events < 32 Who was the host team for the game on December 27?,"SELECT host_team FROM table_name_55 WHERE date = ""december 27""" What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?,"SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )" Which district has the least area?,SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1 "Which professionals have done at least two treatments? List the professional's id, role, and first name.","SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2" Show the premise type and address type code for all customer addresses.,"SELECT T2.premises_type , T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id" What type of currency has a code of SEK?,"SELECT currency FROM table_name_34 WHERE code = ""sek""" What is the lowest crowd when essendon is the away team?,"SELECT MIN(crowd) FROM table_name_78 WHERE away_team = ""essendon""" What was the winning score of the Masters Tournament?,"SELECT winning_score FROM table_13026799_1 WHERE championship = ""Masters Tournament""" Who is the user who created the list titled 'Sound and Vision'? Was he a subcriber when he created the list?,"SELECT T1.user_id, T1.user_subscriber FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Sound and Vision'" Show the distinct position of players from college UCLA or Duke.,"SELECT DISTINCT POSITION FROM match_season WHERE College = ""UCLA"" OR College = ""Duke""" What is the name of the home captain when the result was Aus by 32 runs?,"SELECT home_captain FROM table_name_55 WHERE result = ""aus by 32 runs""" Which country produced the car with the lowest mileage per gallon?,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.mpg ASC LIMIT 1 What is the name of the department with the fewest professors?,SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1 Which friend of Zach has the longest-lasting friendship?,SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach') Name the most bits 14-12 for output from accumulator to character bus,"SELECT MIN(bits_14_12) FROM table_14249278_1 WHERE description = ""Output from accumulator to character bus""" What's about Captain Sir Henry Langford?,"select rank from captain where name = ""Captain Henry Dumaresq""" List the most common type of artworks.,SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 What is the total number on roll for Shelly Park school?,"SELECT COUNT(roll) FROM table_name_7 WHERE name = ""shelly park school""" On what date did Fantasy Records release a CD format of catalog FCD-4513-2?,"SELECT date FROM table_name_54 WHERE label = ""fantasy records"" AND format = ""cd"" AND catalog = ""fcd-4513-2""" Which leagues have Raiders as their mascot?,"SELECT league FROM table_11044765_1 WHERE mascot = ""Raiders""" What's the hometown of rachel muyot soriano?,"SELECT hometown FROM table_name_67 WHERE delegate = ""rachel muyot soriano""" What are the names of the sea that can be found on the island with the biggest area?,SELECT T2.Name FROM islandIn AS T1 INNER JOIN sea AS T2 ON T2.Name = T1.Sea WHERE T1.Island = ( SELECT Name FROM island ORDER BY Area DESC LIMIT 1 ) What are the names of the rivers in Canada?,SELECT DISTINCT T1.River FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Canada' AND T1.River IS NOT NULL "When Payne Stewart of the United States scored higher than 69, what was the To Par?","SELECT to_par FROM table_name_43 WHERE country = ""united states"" AND score > 69 AND player = ""payne stewart""" What is the zip code of the address in the city Port Chelsea?,SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' "Hello! Can you show me a list of all company IDs, with their names and headquarters locations?","SELECT Company_ID,Name,Headquarters FROM company" How many users have more than 100 followers in the list created by users in 2009?,SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 100 AND T1.list_creation_date_utc LIKE '2009%' Find the first name of the band mate that has performed in most songs.,SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1 "What is the largest gold with a Total of 2, and a Rank smaller than 2?",SELECT MAX(gold) FROM table_name_91 WHERE total = 2 AND rank < 2 "Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?","SELECT MAX(attendance) FROM table_17294353_1 WHERE opponent = ""Cincinnati Bengals""" display the employee id and salary of all employees who report to Payam (first name).,"SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam')" Name the D 47 O with D 48 O of r 9,"SELECT d_47_o FROM table_name_80 WHERE d_48_o = ""r 9""" What is the user avatar url for user 41579158? What is the latest movie rated by him / her?,"SELECT T3.user_avatar_image_url, T3.rating_date_utc FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T3.user_id = T2.user_id WHERE T3.user_id = 41579158 ORDER BY T3.rating_date_utc DESC LIMIT 1" What was the attendance when Hawthorn played as the away team?,"SELECT AVG(crowd) FROM table_name_54 WHERE away_team = ""hawthorn""" Which publisher published Overwatch?,SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Overwatch' What are the product names with average product price smaller than 1000000?,SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000 How many rooms whose capacity is less than 50 does the Lamberton building have?,SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50 "What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?","SELECT authors FROM table_name_13 WHERE novelty = ""gen et sp nov"" AND name = ""lanthanocephalus""" What is the name of the subcategory to which the gray product with the lowest safety stock level belongs?,SELECT T1.Name FROM ProductSubcategory AS T1 INNER JOIN Product AS T2 USING (ProductSubcategoryID) WHERE T2.Color = 'Grey' GROUP BY T1.Name How much in total has customer with first name as Carole and last name as Bernhard paid?,"SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Carole"" AND T2.last_name = ""Bernhard""" what is the first name and the last name of the customer who made the earliest rental ?,"SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1" What is the score where Saint-Amant lost the match?,"SELECT score FROM table_name_42 WHERE opponent = ""saint-amant"" AND result = ""lost""" How many students does Ogdon Zywicki advise?,SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.first_name = 'Ogdon' AND T2.last_name = 'Zywicki' What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932?,"SELECT nordbayern FROM table_name_92 WHERE year < 1932 AND württemberg = ""union böckingen""" What is the value of Ends Lost when Blank Ends is 9.,SELECT Ends AS lost FROM table_1505809_2 WHERE blank_ends = 9 "What is the outcome on June 9, 1997?","SELECT outcome FROM table_name_57 WHERE date = ""june 9, 1997""" "How many Yelp businesses are there in 'AZ' with less than ""3"" stars?",SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND stars < 3 Name the manufacturer for cale yarborough for 1984,"SELECT manufacturer FROM table_2266230_1 WHERE driver = ""Cale Yarborough"" AND year = ""1984""" "What is Date (Closing), when Year is greater than 2011?",SELECT date__closing_ FROM table_name_83 WHERE year > 2011 What is the score for set 3 with a time at 15:04?,"SELECT set_3 FROM table_name_46 WHERE time = ""15:04""" Which team had the highest number of attendance?,SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id group by T1.team_id ORDER BY sum ( T1.attendance ) desc limit 1 What is the name of the player who is a wr and has a weight of 197?,"SELECT name FROM table_name_83 WHERE position = ""wr"" AND weight = 197" list all department code and department name,"SELECT dept_code, dept_name FROM department" What song is later than place 2 and has a draw number of 1?,SELECT song FROM table_name_77 WHERE place > 2 AND draw = 1 "List all the document names which contains ""CV"".","SELECT document_name FROM documents WHERE document_name LIKE ""%CV%""" What are the id and details of the customers who have at least 3 events?,"SELECT T1.customer_id, T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 3" What is the highest Attendance with a Result that is w 24-21?,"SELECT MAX(attendance) FROM table_name_50 WHERE result = ""w 24-21""" "What are the total scores of the body builders whose birthday contains the string ""January"" ?","SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE ""%January%"";" What was the score on December 3 when Detroit was the home team and Legace took the decision?,"SELECT score FROM table_name_52 WHERE home = ""detroit"" AND decision = ""legace"" AND date = ""december 3""" "Among the repository ""3"", how many methods whose comments is XML format?",SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 3 AND T2.CommentIsXml = 1 List all the order numbers along with its product name for each order under the sales team of 'Douglas Tucker'.,"SELECT DISTINCT T1.ProductID, T1.`Product Name` FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T3.`Sales Team` = 'Douglas Tucker'" What is the product description of the product booked with an amount of 102.76?,SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76 What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?,"SELECT name FROM table_name_12 WHERE directed___undirected = ""both"" AND basis = ""subgraph-centric""" I want to know the store chains with the largest department stores,SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count ( * ) DESC LIMIT 1 How many times the number of adults and kids staying in a room reached the maximum capacity of the room?,SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids; Show the names of the countries that have more than one roller coaster.,SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT ( * ) > 1 Wha is the rank for 52 574 avg. att?,"SELECT rank FROM table_name_49 WHERE avgatt = ""52 574""" Which player played 2004-05,"SELECT player FROM table_11545282_18 WHERE years_for_jazz = ""2004-05""" "Show name, address road, and city for all branches sorted by open year.","SELECT name , address_road , city FROM branch ORDER BY open_year" find the names of programs whose origin is not in Beijing.,SELECT name FROM program WHERE origin != 'Beijing' Calculate the average salary for employees who did inspection on License Re-Inspection.,SELECT AVG(T2.salary) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_type = 'License Re-Inspection' What lane did the rank 3 swimmer use?,SELECT MAX(lane) FROM table_name_57 WHERE rank = 3 what was the score of the game at pro player stadium on june 14?,"SELECT score FROM table_name_9 WHERE venue = ""pro player stadium"" AND date = ""june 14""" What is the name of the product with the lowest quantity?,SELECT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID ORDER BY T1.Quantity LIMIT 1 How many users have no followers in 2014?,SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2004 AND user_fans LIKE 'None' "What institution is located in Watertown, Wisconsin?","SELECT institution FROM table_1974443_1 WHERE location = ""Watertown, Wisconsin""" Which division is the Derbyshire Falcons in?,"SELECT division FROM table_name_68 WHERE team = ""derbyshire falcons""" What is the aircraft name for the flight with number 99,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 What is highest place reached by artist Ray Adams?,"SELECT MAX(position) FROM table_13805773_2 WHERE artist = ""Ray Adams""" What is the to par for japan,"SELECT to_par FROM table_name_49 WHERE country = ""japan""" List the languages used in the USA.,SELECT Language FROM CountryLanguage WHERE CountryCode = 'USA' What are the cities with exactly two airports?,SELECT city FROM airports GROUP BY city HAVING count(*) = 2 "Which professional did not operate any treatment on dogs? List the professional's id, role and email.","SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id" show names of ships involved in a mission launched after 1928.,SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 List the official full names of all the legislators that served 13 district for 26 consecutive years.,"SELECT DISTINCT CASE WHEN SUM(CAST(strftime('%Y', T2.end) AS int) - CAST(strftime('%Y', T2.start) AS int)) = 26 THEN T1.official_full_name END FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide GROUP BY T1.official_full_name, T2.district HAVING COUNT(T1.official_full_name) = 13" How many total murders happened after 2011?,SELECT SUM(murder) FROM table_name_44 WHERE year > 2011 Which country has the least organization membership?,SELECT country FROM organization WHERE country IN ( SELECT Code FROM country ) GROUP BY country ORDER BY COUNT(NAME) LIMIT 1 What's the date in the United Kingdom having a catalog of reveal50cd/lp?,"SELECT date FROM table_name_3 WHERE catalog = ""reveal50cd/lp"" AND region = ""united kingdom""" Name the project titles created by teacher who acquired a doctor degree.,SELECT T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_message LIKE 'Donation on behalf of Matt Carpenter because I''m a strong believer in education.' "Which To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?","SELECT MIN(to_par) FROM table_name_90 WHERE year_s__won = ""1962, 1967, 1972, 1980"" AND total > 149" "How many attendances have October 30, 1977 as the date, with a week greater than 7?","SELECT COUNT(attendance) FROM table_name_16 WHERE date = ""october 30, 1977"" AND week > 7" What Competition has an Event of 4x100 m relay and has the Time of 38.89?,"SELECT competition FROM table_name_77 WHERE event = ""4x100 m relay"" AND time = ""38.89""" What is the average price for flights from Los Angeles to Honolulu.,"SELECT avg(price) FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" let me know the name of the youngest captain,SELECT name FROM captain ORDER BY age LIMIT 1 What is the finishing position for the person who had a grid of 3?,"SELECT fin_pos FROM table_name_44 WHERE grid = ""3""" What is total amount claimed summed across all the claims?,SELECT sum(Amount_Claimed) FROM Claims "Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?","SELECT wins FROM table_name_99 WHERE team = ""scuderia toro rosso"" AND poles = ""0"" AND races = ""16""" What was the placing when the jockey was Damien Oliver?,"SELECT placing FROM table_24915874_1 WHERE jockey = ""Damien Oliver""" "What is the maximum week that 69,372 people attended the game?","SELECT MAX(week) FROM table_name_13 WHERE attendance = ""69,372""" What was the publication year ranking l.a. is 1st?,"SELECT year_of_publication FROM table_19948664_2 WHERE ranking_la__2_ = ""1st""" How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?,SELECT COUNT(2011 AS _1h) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7 "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.","SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion" What is the location shared by most counties?,SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 What is the away team's score when north melbourne is the home team?,"SELECT away_team AS score FROM table_name_28 WHERE home_team = ""north melbourne""" What is the screen size of the s45 (Australia only) Model with no bluetooth?,"SELECT screen_size FROM table_name_8 WHERE bluetooth = ""no"" AND model = ""s45 (australia only)""" What are all the locations with a cinema?,SELECT DISTINCT LOCATION FROM cinema What country is jack nicklaus from?,"SELECT country FROM table_name_75 WHERE player = ""jack nicklaus""" List the names of members in ascending alphabetical order.,SELECT Name FROM member ORDER BY Name ASC "Who is performing in the back stage position for the song ""Der Kapitan""? Show the first name and last name.","SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Der Kapitan"" AND T1.StagePosition = ""back""" What is the frequency of the Classic Country Krki-fm booster station?,"SELECT frequency FROM table_134987_3 WHERE format = ""Classic Country KRKI-FM booster""" what is the phone number for life insurance?,"SELECT customer_phone FROM available_policies WHERE policy_type_code = ""Life Insurance""" Name the average silver with total less than 1,SELECT AVG(silver) FROM table_name_5 WHERE total < 1 How many points did Nigel Connell have?,"SELECT points FROM table_name_44 WHERE performer = ""nigel connell""" "Of those films, which ones have the special features Deleted Scenes?","SELECT count ( * ) FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.name = ""Foreign"" and T3.special_features = ""Deleted Scenes""" In how many rounds was Race 17?,SELECT COUNT(round) FROM table_26334740_3 WHERE race = 17 What is the upstream with the price 65 chf?,"SELECT upstream FROM table_name_1 WHERE price = ""65 chf""" Can you add the number of female faculty members for each of the ranks to the table please?,"SELECT rank , sex , count ( * ) FROM Faculty GROUP BY rank , sex" Find the names of all distinct wines that have appellations in North Coast area.,"SELECT DISTINCT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""North Coast""" "Of all the orders that have ordered Ikura, how many of them enjoys a unit price that's lower than its standard unit price?",SELECT COUNT(T2.OrderID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Ikura' AND T2.UnitPrice < T1.UnitPrice What parties do they belong to?,SELECT party from representative where state in ( select state FROM representative GROUP BY State HAVING COUNT ( * ) > = 2 ) "Find the max, average and min training hours of all players.","SELECT avg(HS) , max(HS) , min(HS) FROM Player" Name the country that has ken doherty,"SELECT country FROM table_26454128_7 WHERE athlete = ""Ken Doherty""" Which sign has a red border?,"SELECT text_symbol FROM table_name_42 WHERE border = ""red""" "Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review?",SELECT CAST(COUNT(CASE WHEN T2.StarRating > 3 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.CustomerID) FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.SubscribedToEmailList = 'FALSE' "Give me the first name and last name for all the female members of the club ""Bootup Baltimore"".","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.sex = ""F""" Who was the winner in 2007?,SELECT winner FROM table_name_49 WHERE date = 2007 How many songs have a lead vocal?,"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""lead""" Please list the businesses name with a rating less than 5 whose category name is men's clothing.,SELECT T2.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Men''s Clothing' AND T3.stars < 5 what is the highest booked amount,SELECT max ( booked_amount ) FROM products_booked What is the Overall of the pick less than 20?,SELECT overall FROM table_name_16 WHERE pick__number < 20 What is the fewest amount of races in any season? ,SELECT MIN(races) FROM table_25421463_1 Please list the titles of all the episodes in which Park Dietz was credited.,SELECT T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T2.credited = 'true' AND T3.name = 'Park Dietz' Please provide the names of any three away teams that competed in the Italian divisions.,SELECT T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.country = 'Italy' LIMIT 3 How many students are enlisted in the Navy organization?,SELECT COUNT(name) FROM enlist WHERE organ = 'navy' What is the oldest log id and its corresponding problem id?,"SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1" "How many wins did team Kolles & Heinz union, with f/laps of 0, have in the Formula Three Euroseries?","SELECT wins FROM table_name_16 WHERE f_laps = ""0"" AND series = ""formula three euroseries"" AND team = ""kolles & heinz union""" Which other country has more than 2 ships?,SELECT Nationality FROM ship WHERE Nationality ! = 'United Kingdom' GROUP BY Nationality HAVING COUNT ( * ) > 2 How many stumpings did the player Tim Latham have?,"SELECT MAX(stumpings) FROM table_13337302_16 WHERE player = ""Tim Latham""" show me the location of the tallest perpetrator.,SELECT T2.Location FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 What is Segment D of 20-08 series Ep.?,"SELECT segment_d FROM table_name_89 WHERE series_ep = ""20-08""" Name the opponent with a record of 60-61,"SELECT opponent FROM table_name_35 WHERE record = ""60-61""" "Which titles has above average royalty rate? Give those title's name, type and price?","SELECT DISTINCT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.royalty > ( SELECT CAST(SUM(royalty) AS REAL) / COUNT(title_id) FROM roysched )" Which team was Bubba Vanegdom from?,"SELECT team FROM table_name_11 WHERE player = ""bubba vanegdom""" Show headquarters with at least two companies in the banking industry.,SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 What is the name of the establishment with the highest number of low risk violations in 2014?,"SELECT T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2014' AND T1.risk_category = 'Low Risk' GROUP BY T2.name ORDER BY COUNT(T2.business_id) DESC LIMIT 1" What was the title of the episode directed by David Mamet?,"SELECT title FROM table_26200084_1 WHERE directed_by = ""David Mamet""" What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?,"SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'" How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps?,"SELECT _percentage_of_1_rep_max_last_set_ FROM table_name_28 WHERE set_4 = ""145lb x 5reps""" Please indicate the birthplace of the crew which name is Dan Castellaneta.,SELECT birth_place FROM Person WHERE name = 'Dan Castellaneta'; "Please list the full names of the sanitarians who did at least one inspection in May, 2010.","SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE strftime('%Y-%m', T2.inspection_date) = '2010-05' AND T1.title = 'Sanitarian'" Who is the advisor for that major?,select advisor from student where major = ( SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 ) I want the manner of departure for date of appointment being 12 october 2007,"SELECT manner_of_departure FROM table_name_87 WHERE date_of_appointment = ""12 october 2007""" What was the score of the away team at Junction Oval?,"SELECT away_team AS score FROM table_name_77 WHERE venue = ""junction oval""" "If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?","SELECT round_of_32 FROM table_26335424_86 WHERE quarterfinals = ""Did not advance"" AND event = ""Bantamweight (-63kg)""" What class of captain named Lieutenant Hugh Bolitho?,SELECT Class FROM captain WHERE name = 'Lieutenant Hugh Bolitho' "Among the episodes which have star score less than 8, how many episodes were aired in 2009?","SELECT COUNT(DISTINCT T2.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE strftime('%Y', T1.air_date) = '2009' AND T2.stars < 8;" What are the booking start and end dates of the apartments with more than 2 bedrooms?,"SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2" Which version B-58 aircraft model originated in the United States has 2 in service?,"SELECT aircraft FROM table_name_57 WHERE in_service = ""2"" AND origin = ""united states"" AND versions = ""b-58""" "What years in orlando have the United States as the nationality, and montana as the school/club team?","SELECT years_in_orlando FROM table_name_16 WHERE nationality = ""united states"" AND school_club_team = ""montana""" "When has Attendances of 45,795?","SELECT date FROM table_name_7 WHERE attendance = ""45,795""" what team's score is 101?,"SELECT team FROM table_name_42 WHERE score = ""101""" Indicate the university's name with the highest ranking score in Teaching.,SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN ranking_criteria AS T3 ON T3.id = T2.ranking_criteria_id WHERE T3.criteria_name = 'Teaching' ORDER BY T2.score DESC LIMIT 1 What is the minimum amount for wool for 2001-02?,"SELECT MIN(2001 AS _02) FROM table_1057262_1 WHERE commodity = ""Wool""" How long did it take for bike id 426 to reach 2nd at South Park from Market at 4th on 8/29/2013? Indicate the duration in minutes.,SELECT CAST(duration AS REAL) / 60 FROM trip WHERE bike_id = 426 AND end_station_name = '2nd at South Park' AND start_station_name = 'Market at 4th' AND start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%' Name the number of episodes for sam snape,"SELECT COUNT(episode) FROM table_27208817_1 WHERE writer = ""Sam Snape""" What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?,"SELECT MAX(lost) FROM table_name_81 WHERE draw = 0 AND team = ""gwardia katowice"" AND points < 12" What is the number of matches played for the team with 0 draws and 33 points?,"SELECT played FROM table_name_49 WHERE drawn = ""0"" AND points = ""33""" What is the status when the rank is 2?,SELECT status FROM table_29572583_19 WHERE rank = 2 How much is the average salary of female employees in comparison to male employees?,SELECT AVG(T2.Rate) FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'F' Can you tell me the Location that has the Mascot of lakers?,"SELECT location FROM table_name_69 WHERE mascot = ""lakers""" What are the email addresses and date of births for all customers who have a first name of Carole?,"SELECT email_address , date_of_birth FROM Customers WHERE first_name = ""Carole""" Who is from the College of Cincinnati?,"SELECT name FROM table_name_38 WHERE college = ""cincinnati""" Among deaths 106 000 how many is crude rate.,"SELECT crude_death_rate FROM table_21258_1 WHERE deaths = ""106 000""" How many organizations are founded in countries with a population of under 1000000?,SELECT COUNT(T2.Name) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T1.Population < 1000000 "Show the minimum, average, maximum order quantity of all invoices.","SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES" What is the joined year of the pilot of the highest rank?,SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1 What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?,SELECT f_id FROM song WHERE resolution > (SELECT max(resolution) FROM song WHERE rating < 8) "What is Streak, when Heat Points is ""101"", and when Game is ""16""?",SELECT streak FROM table_name_12 WHERE heat_points = 101 AND game = 16 Name the total number of viewers for audience share in timeslot for 10.2%,"SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = ""10.2%""" Find the first name and country code of the player who did the most number of tours.,"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1" What is the lowest pick for the Buffalo Bills?,"SELECT MIN(pick) FROM table_name_60 WHERE team = ""buffalo bills""" Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver?,"SELECT report FROM table_name_33 WHERE pole_position = ""bobby unser"" AND winning_driver = ""rick mears""" "Show the location name for document ""Robin CV"".","SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = ""Robin CV""" Which sign has a fall of Venus?,"SELECT sign FROM table_name_5 WHERE fall = ""venus""" "Who are the ministers and what parties do they belong to, listed descending by the times they took office?","SELECT minister , party_name FROM party ORDER BY took_office DESC" Tell me the sum of gold for bronze less than 0,SELECT SUM(gold) FROM table_name_31 WHERE bronze < 0 How many courses are in Mech. eng?,SELECT count ( * ) FROM course where dept_name = 'Mech. Eng.' what is 2004 when the tournament is paris masters?,"SELECT 2004 FROM table_name_49 WHERE tournament = ""paris masters""" Give me the names of members whose address is in Harford or Waterbury.,SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury' What is the total number of teams founded that were left in 1976?,"SELECT SUM(founded) FROM table_name_47 WHERE left = ""1976""" What is the original air date of the episode that was directed by Bruce Seth Green?,"SELECT original_air_date FROM table_29584044_1 WHERE directed_by = ""Bruce Seth Green""" On May 8 what series is it?,"SELECT series FROM table_name_41 WHERE date = ""may 8""" "In users yelping since 2011 to 2013, how many of them have high count of fans?",SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year BETWEEN 2011 AND 2013 AND user_fans LIKE 'High' What player had a school of missouri,"SELECT player FROM table_name_13 WHERE school_club_team_country = ""missouri""" "Find the document type name of the document named ""How to read a book"".","SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = ""How to read a book""" Which From club had a Transfer fee of £3.87m?,"SELECT from_club FROM table_name_40 WHERE transfer_fee = ""£3.87m""" What are the names of scientists who are assigned to any project?,SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn Show all student ids and the number of hours played.,"SELECT Stuid, SUM(hours_played) FROM Plays_games GROUP BY Stuid" How many matches were played in 2013 or 2016?,SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016 what is the original air date for the episoe written by vanessa reisen?,"SELECT original_air_date FROM table_13336122_5 WHERE written_by = ""Vanessa Reisen""" "What Elector was Elevated on December 18, 1182?","SELECT elector FROM table_name_31 WHERE elevated = ""december 18, 1182""" What is the name of the director who directed the movie that Raintree Pictures produced?,"SELECT director FROM table_name_13 WHERE producer = ""raintree pictures""" Where was game 62 played? ,SELECT location FROM table_16864968_7 WHERE game = 62 The Palazzo's street address is listed as what?,"SELECT street_address FROM table_name_73 WHERE name = ""the palazzo""" Count the number of programs broadcast for each time section of a day.,"SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day" When 5 is the rank of 2011 what is the country?,SELECT country FROM table_293465_1 WHERE rank_2011 = 5 List the name and the number of enrolled student for each course.,"SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name" Find the major that is studied by the largest number of students.,SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1 What is the last transcript release date?,SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 What is the average point count for tristan gommendy?,"SELECT AVG(points) FROM table_name_30 WHERE driver = ""tristan gommendy""" Name the least attendance for may 6,"SELECT MIN(attendance) FROM table_name_1 WHERE date = ""may 6""" "WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?","SELECT europe FROM table_name_68 WHERE head_coach = ""vainauskas , sakalauskas"" AND regional_competitions = ""nebl finalist""" Tell me the circuit for 10 may for targa florio,"SELECT circuit FROM table_name_79 WHERE date = ""10 may"" AND name = ""targa florio""" What is the status of player Philipp Kohlschreiber?,"SELECT status FROM table_24431348_18 WHERE player = ""Philipp Kohlschreiber""" retrieve the country that has published the most papers?,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count ( * ) DESC LIMIT 1 Who is every stage winner at the distance of 162.5?,"SELECT stage AS winner FROM table_275506_1 WHERE distance__km_ = ""162.5""" Tell me the average goals with apps less than 3,SELECT AVG(goals) FROM table_name_16 WHERE apps < 3 Which sport was held in Huntsville at the Von Braun Center as part of the Southern Indoor Football League?,"SELECT sport FROM table_name_76 WHERE city = ""huntsville"" AND venue = ""von braun center"" AND league = ""southern indoor football league""" What year was Black Swan up for the Gotham Awards?,"SELECT COUNT(year) FROM table_name_47 WHERE title = ""black swan"" AND award = ""gotham awards""" With which kind of payment method were the least number of payments processed?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1 What is the simplified Chinese name for the 9th album?,"SELECT chinese__simplified_ FROM table_name_21 WHERE album_number = ""9th""" how many wiaa classifications does fort vancouver high school have?,"SELECT COUNT(wiaa_classification) FROM table_22058547_1 WHERE high_school = ""Fort Vancouver""" Which English name has a Color of green?,"SELECT english_name FROM table_name_54 WHERE color = ""green""" "that was quick, thank you again. then could you please let me know if there is any station which has less than 10 maximum precipitation?",SELECT t2.id FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max ( t1.precipitation ) < 10 "Which Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan?","SELECT rebuilt FROM table_name_64 WHERE builder = ""derby"" AND name_as_rebuilt = ""ben madigan""" Who is the heaviest athlete from Russia?,SELECT T3.full_name 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 = 'Russia' ORDER BY T3.weight DESC LIMIT 1 What is the surface on 15 August 2009?,"SELECT surface FROM table_name_45 WHERE date = ""15 august 2009""" How many voice-actors were involved in the Bambi movie?,SELECT COUNT(DISTINCT 'voice-actor') FROM `voice-actors` WHERE movie = 'Bambi' How many females does this network has?,SELECT count(*) FROM Person WHERE gender = 'female' Which Church has 27 stops?,"SELECT church FROM table_name_71 WHERE stops = ""27""" What is the id of the patient who stayed in room 111 most recently?,SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1 Which product has the highest price in 2012?,SELECT ProductID FROM ProductListPriceHistory WHERE StartDate LIKE '2012%' ORDER BY ListPrice DESC LIMIT 1 On what date was the score 2-1?,"SELECT date FROM table_name_38 WHERE score = ""2-1""" "Find the names of courses taught by the tutor who has personal name ""Julio"".","SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = ""Julio""" Which skill is used in fixing the most number of faults? List the skill id and description.,"SELECT T1.skill_id , T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1" What is their average salary?,"SELECT avg ( salary ) FROM instructor WHERE dept_name = ""Statistics""" How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?,SELECT SUM(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990 Which Crowd has a Home team of geelong?,"SELECT crowd FROM table_name_86 WHERE home_team = ""geelong""" Find the ids of all distinct customers who made order after some orders that were Cancelled.,"SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code = ""Cancelled"")" What is every entry for Tuesday August 23 when Thursday August 25 is 24' 31.87 92.282mph?,"SELECT tues_23_aug FROM table_30058355_3 WHERE thurs_25_aug = ""24' 31.87 92.282mph""" Find out which business ID are opened all the time.,SELECT DISTINCT business_id FROM Business_Hours WHERE day_id >= 1 AND day_id < 8 AND opening_time = closing_time Who was the constructor of car 22?,SELECT constructor FROM table_15491596_1 WHERE no = 22 How many episodes were directed by Tim Matheson?,"SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = ""Tim Matheson""" "What is the item ""Moving to"", when the Transfer fee is £300,000?","SELECT moving_to FROM table_name_56 WHERE transfer_fee = ""£300,000""" What is the newest established organization where Singapore is a member of?,SELECT T3.Name FROM country AS T1 INNER JOIN isMember AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T1.Name = 'Singapore' ORDER BY T3.Established DESC LIMIT 1 "WHAT IS THE TO PAR WITH A FINISH OF T11, FOR DAVID GRAHAM?","SELECT to_par FROM table_name_23 WHERE finish = ""t11"" AND player = ""david graham""" "Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?","SELECT lost FROM table_name_50 WHERE try_bp = ""10"" AND club = ""uwic rfc""" "Thanks! I'm a bit short on time, so can you provide me with Owens loan amount?","SELECT t2.amount FROM loan AS T2 JOIN customer AS T1 ON T1.cust_id = T2.cust_id WHERE t1.cust_name = ""Owen""" Can you get me the first names of students that have a milk allergy?,"SELECT DISTINCT T1.fname FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = ""Milk""" What is the record of the team that lost to Alexander (5-2)?,"SELECT record FROM table_name_12 WHERE loss = ""alexander (5-2)""" What is the skip with a second of Philippe Caux?,"SELECT skip FROM table_name_30 WHERE second = ""philippe caux""" "what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?",SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0 "Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7?","SELECT AVG(laps) FROM table_name_16 WHERE time = ""+17.485"" AND grid < 7" "What is listed as the highest Gold that also has a Silver that's smaller than 1, and has a Total that's smaller than 0?",SELECT MAX(gold) FROM table_name_23 WHERE silver < 1 AND total < 0 What are the first names of all students that are not enrolled in courses?,SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN) What is the mobile phone number of the student named Timmothy Ward ?,SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward' What is the kind of Democratic ticket has a Office of comptroller?,"SELECT democratic_ticket FROM table_name_14 WHERE office = ""comptroller""" How many captains with younger than 50 are in each rank?,"SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank" What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""254 Ottilie Junction"" OR T2.How_to_Get_There = ""bus""" Name the timeslot for season 5,SELECT timeslot FROM table_143554_1 WHERE season = 5 What was the latest order that customer No.114 made? Give the name of the product.,SELECT t3.productName FROM orderdetails AS t1 INNER JOIN orders AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN products AS t3 ON t1.productCode = t3.productCode WHERE t2.customerNumber = '114' ORDER BY t2.orderDate DESC LIMIT 1 On which date is the tournament final with the opponents michael berrer & kenneth carlsen?,"SELECT date FROM table_name_98 WHERE opponents_in_the_final = ""michael berrer & kenneth carlsen""" Find the name and active date of the customer that use email as the contact channel.,"SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'" What is the Date of the game with a Record of 1–2–4?,"SELECT date FROM table_name_27 WHERE record = ""1–2–4""" What are the characters of actors in descending order of age?,SELECT Character FROM actor ORDER BY age DESC "Which archbishop was ordained as bishop November 30, 1925?","SELECT archbishop FROM table_1656555_1 WHERE ordained_bishop = ""November 30, 1925""" what is the card number of Aniyah | Do you mean the customer with first name Aniyah | exactly,"SELECT T2.card_number from Customers as T1 JOIN Customers_Cards as T2 ON T1.customer_id = T2.customer_id WHERE customer_first_name = ""Aniyah""" What are the Poles for Season 2006,SELECT poles FROM table_name_91 WHERE season = 2006 What are the entry names of catalog with the attribute processed by most entries?,SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = ( SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count ( * ) DESC LIMIT 1 ) How many students and instructors are in each department?,"SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name" What was the qualifying 2 time for the team with a qualifying 1 time of 1:01.630?,"SELECT qual_2 FROM table_name_55 WHERE qual_1 = ""1:01.630""" how many ships have more than one captain?,Select count ( * ) from ( SELECT * FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count ( * ) > 1 ) Who was the republican candidate in 2013 when Staten Island was 451?,"SELECT 2013 AS _republican_primary FROM table_1108394_6 WHERE staten_island = ""451""" What is the status in the district with the incumbent Bob Barr? ,"SELECT status FROM table_26336739_1 WHERE incumbent = ""Bob Barr""" What is the attendance in the bye week after week 5?,"SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = ""bye""" Which party has 24 governments?,"SELECT party FROM table_name_46 WHERE governments = ""24""" What is the average rating of Apps falling under the racing genre and what is the percentage ratio of positive sentiment reviews?,"SELECT AVG(T1.Rating), CAST(COUNT(CASE WHEN T2.Sentiment = 'Positive' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Racing'" "How many games have a Score of 1–0, and Points smaller than 66?","SELECT COUNT(game) FROM table_name_9 WHERE score = ""1–0"" AND points < 66" how many archive were when run time is 24:34,"SELECT archive FROM table_2112766_1 WHERE run_time = ""24:34""" With which kind of payment method were the least number of payments processed?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1 In which region where a game had the lowest number of sales?,SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id ORDER BY T2.num_sales LIMIT 1 In which years cars were produced weighing no less than 3000 and no more than 4000 ?,SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000 What of total number of faculty?,"SELECT count ( * ) FROM Faculty WHERE building = ""NEB""" Find the name of all students who were in the tryout sorted in alphabetic order.,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName Who has friends that are younger than the average age?,SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person) What is the class label of paper ID 'chakrabarti01integrating'. How many words were cited by this paper ID?,"SELECT DISTINCT T1.class_label, COUNT(T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.paper_id = 'chakrabarti01integrating' GROUP BY T1.class_label" How many losses for the team with 3 wins and more than 1919 against?,SELECT MIN(losses) FROM table_name_28 WHERE wins = 3 AND against > 1919 What is the highest place for song that was draw number 6?,SELECT MAX(place) FROM table_name_83 WHERE draw = 6 The Catalog number is 80809 what is the title?,"SELECT title FROM table_11222744_2 WHERE catalog_number = ""80809""" List all the distinct president votes and the vice president votes.,"SELECT DISTINCT President_Vote , VICE_President_Vote FROM VOTING_RECORD" How many orders are priced higher than 1000?,SELECT count ( * ) FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 How many percent of customers were inactive?,"SELECT CAST(SUM(IIF(active = 0, 1, 0)) AS REAL) * 100 / COUNT(customer_id) FROM customer" What is the Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph?,"SELECT fri_3_june FROM table_29218221_2 WHERE wed_1_june = ""18' 22.66 123.182mph""" "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?","SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'" List names of all pilot aged 30 or younger in descending alphabetical order.,SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC What is the Skip when the Third was john morris?,"SELECT skip FROM table_name_61 WHERE third = ""john morris""" "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.","SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id" How many customers have two orders or less,SELECT COUNT ( * ) FROM ( SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count ( * ) < = 2 ) Which country does customer with first name as Carole and last name as Bernhard lived in?,"SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" Hi can you tell me the name of the regions not affected by storms?,SELECT region_name FROM region WHERE region_id NOT IN ( SELECT region_id FROM affected_region ) What are all companies names?,Select name from manufacturers What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?,SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200) What's that person's name?,"select first_name,last_name from actor where actor_id = '9'" "In the match played against Telford United, who was the home team?","SELECT home_team FROM table_name_9 WHERE away_team = ""telford united""" Show all product names and the total quantity ordered for each product name.,"SELECT T2.product_name , sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name" Which Incumbent has a District of massachusetts 8?,"SELECT incumbent FROM table_name_47 WHERE district = ""massachusetts 8""" Count the number of people of each sex who have a weight higher than 85.,"SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex" What is the order id and order details for the order more than two invoices.,"SELECT T2.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING COUNT(*) > 2" "Show the short names of the buildings managed by ""Emma"".","SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = ""Emma""" What is the name of the player who has been chosen the most times for 'Man of the Series'?,SELECT T3.Player_Name FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Man_of_the_Series = T2.Man_of_the_Match INNER JOIN Player AS T3 ON T2.Man_of_the_Match = T3.Player_Id GROUP BY T3.Player_Name ORDER BY COUNT(T1.Man_of_the_Series) DESC LIMIT 1 How many values for attendance on the date of September 5?,"SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = ""September 5""" Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.,SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20 Average of the last receipt cost of the products whose average lead time is 60 days.,SELECT SUM(LastReceiptCost) / COUNT(ProductID) FROM ProductVendor WHERE AverageLeadTime = 60 Which year has the least number of movies that was released and what is the title of the movie in that year that has the highest number of rating score of 1?,"SELECT DISTINCT T1.movie_release_year, T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = ( SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1 ) AND T2.rating_score = 1" Which of these has the largest number of employees?,select Name from Department order by Head desc limit 1 What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?,"SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE ""12/%""" What is the homepage URL for the journal that published the most papers?,SELECT T2.HomePage FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id GROUP BY T1.JournalId ORDER BY COUNT(T1.JournalId) DESC LIMIT 1 Find the student ID and middle name for all the students with at most two enrollments.,"SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2" Find the total payment of the orders by customers from San Francisco.,SELECT SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) AS TOTALPAYMENT FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.City = 'San Francisco' How many streets with restaurants are there in the Northern California region?,SELECT COUNT(T1.city) FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'northern california' Can you add the paper IDs of those to the table please?,"SELECT t3.title,t3.paperID FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Ralf"" AND t1.lname = ""Hinze""" "What was the to par score for Tim Herron, who had a score of 69-72=141?","SELECT to_par FROM table_name_92 WHERE score = 69 - 72 = 141 AND player = ""tim herron""" show the date of the tallest perpetrator.,SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 What is the minimum salary in each department?,"SELECT MIN(salary) , department_id FROM employees GROUP BY department_id" "Which Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6?","SELECT points_classification FROM table_name_85 WHERE trofeo_fast_team = ""metauro mobili-pinarello"" AND stage = ""6""" What is the enrollment for the school with the mascot of the Fighting '59ers?,"SELECT enrollment FROM table_name_9 WHERE mascot = ""fighting '59ers""" Name the driver for Laps less than 9 and a grid of 13,SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13 How long does student Linda Smith spend on the restaurant in total?,"SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"";" Who built the car that retired due to suspension before 65 laps?,"SELECT constructor FROM table_name_7 WHERE laps < 65 AND time_retired = ""suspension""" What Award was received bby the Motion Picture What's Love Got To Do With It?,"SELECT award FROM table_name_97 WHERE motion_picture = ""what's love got to do with it""" How many inspections done in 2010 had serious food safety issue?,"SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T2.inspection_date) = '2010' AND T1.risk_level = 3" "What is the TV Channel of TV series with Episode ""A Love of a Lifetime""? List the TV Channel's series name.","SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = ""A Love of a Lifetime""" "Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.",SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM savings) "What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54?","SELECT SUM(round) FROM table_name_32 WHERE player = ""tim hunter (rw)"" AND pick < 54" "For the publisher which published the most books, show its name.",SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name ORDER BY COUNT(T2.publisher_id) DESC LIMIT 1 What are the names of the tourist attractions Vincent and Marcelle visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Marcelle""" "Show the names and locations of institutions that are founded after 1990 and have the type ""Private"".","SELECT institution , LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'" "What is Event, when Position is 4th?","SELECT event FROM table_name_94 WHERE position = ""4th""" what is the lowest total when the rank is less than 2 and bronze is more than 0?,SELECT MIN(total) FROM table_name_30 WHERE rank < 2 AND bronze > 0 What are the names of all of the students?,"select lastname,firstname from list" Provide the list of the longest movies. Arrange these titles in alphabetical order.,SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film ) What is the average number of cars on trains that run in the east direction?,SELECT CAST(COUNT(T1.id) AS REAL) / COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' Which college does the player John Theus associate with?,"SELECT college FROM table_11677691_5 WHERE player = ""John Theus""" Who is the player that plays position f from Fort Wayne Pistons?,"SELECT player FROM table_name_89 WHERE team = ""fort wayne pistons"" AND position = ""f""" What is the average weight of cars each year?,"SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR" "Among the businesses which have attribute of beer_and_wine, how many business located in Peoria?",SELECT COUNT(T1.business_id) FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Peoria' AND T1.attribute_value = 'beer_and_wine' Home of kings had what score?,"SELECT score FROM table_name_64 WHERE home = ""kings""" "What is the long name of the country with the description ""Estimates are derived from data on foreign-born population."" on the series code SM.POP.TOTL?",SELECT T1.LongName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Estimates are derived FROM data on foreign-born population.' AND T2.Seriescode = 'SM.POP.TOTL' what's the points with played being 22 and points against being 319,"SELECT points FROM table_13940275_5 WHERE played = ""22"" AND points_against = ""319""" "If the headquarters is Bharatpur, what is the maximum area?","SELECT MAX(area__km²_) FROM table_2168295_1 WHERE headquarters = ""Bharatpur""" Can you list the songs' names?,SELECT song_name from song "How many employees does each role have? List role description, id and number of employees.","SELECT T1.role_description , T2.role_code , count(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code;" Show the name of cities in the county that has the largest number of police officers.,SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1) Which is the ship of Captain Henry Dumaresq?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.Name like '%Henry Dumaresq%' Find names of all colleges whose enrollment is greater than that of all colleges in the FL state.,SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL') What is the Notes of the Country with a Rank of 4?,SELECT notes FROM table_name_31 WHERE rank = 4 "How much To par has a Place of t1, and a Score of 70-70-71-71=282?","SELECT COUNT(to_par) FROM table_name_47 WHERE place = ""t1"" AND score = 70 - 70 - 71 - 71 = 282" Show all company names and headquarters in the descending order of market value.,"SELECT company , headquarters FROM company ORDER BY market_value DESC" Tell me the venue for 8 june 1931 for st kilda away team,"SELECT venue FROM table_name_6 WHERE date = ""8 june 1931"" AND away_team = ""st kilda""" Name the position for the player born 2 november 1987,"SELECT position FROM table_name_80 WHERE date_of_birth__age_ = ""2 november 1987""" Which locations have 2 or more cinemas with capacity over 300?,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2 what is the least total when the nation is canada (can) and bronze is less than 0?,"SELECT MIN(total) FROM table_name_78 WHERE nation = ""canada (can)"" AND bronze < 0" Who are the top 5 actors with the highest number of films? List their full names and calculate the average number of films for each of the actors.,"SELECT T.first_name, T.last_name, num FROM ( SELECT T1.first_name, T1.last_name, COUNT(T2.film_id) AS num FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 5" What seat does Gubernia Warszawska hold?,"SELECT seat FROM table_11614581_3 WHERE name_in_polish = ""Gubernia warszawska""" How many 2003 Harley-Davidson Eagle Drag Bikes were ordered?,SELECT SUM(t2.quantityOrdered) FROM products AS t1 INNER JOIN orderdetails AS t2 ON t1.productCode = t2.productCode WHERE t1.productName = '2003 Harley-Davidson Eagle Drag Bike' "How many sacks have 2006 as the year, and a solo less than 62?","SELECT SUM(sacks) FROM table_name_59 WHERE year = ""2006"" AND solo < 62" When did Linda Smith visit Subway?,"SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"" AND Restaurant.ResName = ""Subway"";" Find the number of students taught by TARRING LEIA.,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""TARRING"" AND T2.lastname = ""LEIA""" What is 1996 during the US Open?,"SELECT 1996 FROM table_name_72 WHERE tournament = ""us open""" Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.,"SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There" "What is the locale of the language of the page titled ""Abril""?",SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Abril' How many albums are there other than those?,select count ( * ) from ( SELECT * FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count ( T1.id ) > = 10 ) In what Round was Pick #12 drafted?,SELECT round FROM table_name_53 WHERE pick__number = 12 "For the team led by head coach Felix Magath, who is the team captain?","SELECT team AS Captain FROM table_name_91 WHERE head_coach = ""felix magath""" What is the full name of employee who sold 1000 units?,"SELECT DISTINCT T2.FirstName, T2.MiddleInitial, T2.LastName FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE T1.Quantity = 1000" What is the Away Team score of North Melbourne?,"SELECT away_team AS score FROM table_name_24 WHERE away_team = ""north melbourne""" What are the points 1 for the team with position less than 13 and goal difference of +16?,"SELECT points_1 FROM table_name_93 WHERE position < 13 AND goal_difference = ""+16""" Which H/A/N has a score of 105*♠?,"SELECT h_a_n FROM table_name_13 WHERE score = ""105*♠""" "What is the total number of Round, when Position is ""D"", and when Player is ""Andrew Campbell""?","SELECT COUNT(round) FROM table_name_94 WHERE position = ""d"" AND player = ""andrew campbell""" Show me all products supplied by supplier id 2. | Do you mean the product ID of all products supplied by supplier id 2? | Yes,SELECT product_id from Product_Suppliers where supplier_id = 2 Count the number of cinemas.,SELECT count(*) FROM cinema Find the total saving balance for each account name.,"SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name" "Can you tell me what is FCC info for harmony township, new jersey?","SELECT fcc_info FROM table_name_39 WHERE city_of_license = ""harmony township, new jersey""" How many times on page number 16 does the second word in the pair of words 1 and 109 appear?,SELECT SUM(T1.occurrences) FROM pages_words AS T1 INNER JOIN biwords AS T2 ON T2.w2nd = T1.wid WHERE T2.w2nd = 109 AND T2.w1st = 1 AND T1.pid = 16 What is the average duration of a bike trip made on the day with the hottest temperature ever in 2014?,SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2014%' AND T1.start_station_name = '2nd at Folsom' AND T2.max_temperature_f = ( SELECT max_temperature_f FROM weather ORDER BY max_temperature_f DESC LIMIT 1 ) Show aircraft names and number of flights for each aircraft.,"SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid" Fulham as Team 1 has the 2nd leg score of what?,"SELECT 2 AS nd_leg FROM table_name_44 WHERE team_1 = ""fulham""" "Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?","SELECT gender FROM table_name_76 WHERE authority = ""state"" AND years = ""1–8"" AND decile < 10 AND roll = 36" Show the names of editors on the list with at least two journal committees.,SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT ( * ) > = 2 Which method had a time of 0:46?,"SELECT method FROM table_name_85 WHERE time = ""0:46""" Please list the weights of all the cars with the price over $40000.,SELECT T1.weight FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price > 40000 What was the time of the driver with a finish position of 19?,"SELECT time_retired FROM table_name_13 WHERE fin_pos = ""19""" What is the lowest attandance recorded at Cappielow?,"SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = ""Cappielow""" What is the lowest number of wins of a team?,SELECT MIN(wins) FROM table_19741316_1 On what Date is the Winning Score 71-69-68-70=278?,SELECT date FROM table_name_60 WHERE winning_score = 71 - 69 - 68 - 70 = 278 Which game type has most number of games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1 What's the Opponent with a Week that's larger than 16?,SELECT opponent FROM table_name_9 WHERE week > 16 When dennis ross (r) unopposed is the candidate what is the party?,"SELECT party FROM table_25030512_12 WHERE candidates = ""Dennis Ross (R) unopposed""" How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.?,"SELECT COUNT(_number) FROM table_16072430_1 WHERE weekly_rank = ""TBA"" AND timeslot = ""8:00 P.M.""" "Which Opponents have a Year of 1999–2000, and a Team of leeds united?","SELECT opponents FROM table_name_78 WHERE year = ""1999–2000"" AND team = ""leeds united""" What is the total for the player whose finish was t66?,"SELECT total FROM table_name_70 WHERE finish = ""t66""" Which conference has the longest name?,SELECT FullName FROM Conference ORDER BY LENGTH(FullName) DESC LIMIT 1 "Can you tell me the County that has the Year Joined of 1964, and the Location of montezuma?","SELECT county FROM table_name_24 WHERE year_joined = 1964 AND location = ""montezuma""" What is the archive of the show that aired on 18april1970?,"SELECT archive FROM table_2102898_1 WHERE broadcast_date = ""18April1970""" Find the name and rank of the 3 youngest winners across all matches.,"SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3" At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?,"SELECT location FROM table_name_71 WHERE host = ""robert morris university (illinois)"" AND national_champion = ""lindenwood""" What party did incumbent Howard Coble belong to?,"SELECT party FROM table_1341568_34 WHERE incumbent = ""Howard Coble""" Which entrepreneur has the highest weight? Thanks! | What attribute would you like to know about the entrepreneur with the highest weight? | I would like to know the name of the entrepreneur with the highest weight.,SELECT T2.name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID order by T2.weight desc limit 1 "hi, what is the maximum low temperature at Amersham station?","SELECT max ( t1.low_temperature ) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = ""Amersham""" "Can you tell me the sum of Podiums that has the Season of 2006, and the Races larger than 16?","SELECT SUM(podiums) FROM table_name_20 WHERE season = ""2006"" AND races > 16" Show the names of customers who have both an order in completed status and an order in part status.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part' "Among all the current legislators born after the year 1960, how many of them are not google entities?","SELECT COUNT(*) FROM current WHERE strftime('%Y', birthday_bio) > '1960' AND google_entity_id_id IS NULL" What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?,SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998 What are week 4 results? ,SELECT result FROM table_14608759_1 WHERE week = 4 which project are least hours on the table,SELECT name from projects WHERE hours = ( SELECT min ( hours ) FROM projects ) Which location is most profitable? | What do you mean by location? We have different companies in different countries. | Which company is the most profitable?,select Company from company order by assets_billion desc limit 1 What are the names of people in ascending order of height?,SELECT Name FROM People ORDER BY Height ASC Who visited phoenix with a Record of 2–5–0?,"SELECT visitor FROM table_name_64 WHERE home = ""phoenix"" AND record = ""2–5–0""" How many courses that do not have prerequisite?,SELECT count ( * ) FROM course WHERE course_id NOT IN ( SELECT course_id FROM prereq ) Which 2006 cfl draft pick played college ball at Idaho state?,"SELECT pick__number FROM table_name_91 WHERE college = ""idaho state""" "What are all the album titles, in alphabetical order?",SELECT Title FROM ALBUM ORDER BY Title "Return the names of shops, ordered by year of opening ascending.",SELECT Shop_Name FROM shop ORDER BY Open_Year ASC What is the Place 2 Player?,"SELECT player FROM table_name_1 WHERE place = ""2""" "What is the most recent year founded with an enrollment of 42,708?",SELECT MAX(founded) FROM table_name_81 WHERE enrollment = 42 OFFSET 708 Can you please also include their names and the number of peole attended?,"SELECT event_id, event_attendance, name FROM event ORDER BY Event_Attendance DESC" What party does joel r. poinsett represent?,"SELECT party FROM table_2668264_22 WHERE incumbent = ""Joel R. Poinsett""" What jersey number did Al Harrington wear,"SELECT MAX(no) FROM table_15621965_8 WHERE player = ""Al Harrington""" "List down the award name, result, credit category and credited status of the ""Billy Kimball"".","SELECT DISTINCT T1.award, T1.result, T2.category, T2.credited FROM Award AS T1 INNER JOIN Credit AS T2 ON T2.episode_id = T1.episode_id WHERE T2.person = 'Billy Kimball';" What is Michael Del Zotto's nationality?,"SELECT nationality FROM table_name_54 WHERE player = ""michael del zotto""" Which Nationality of the person has a Position on left wing?,"SELECT nationality FROM table_name_30 WHERE position = ""left wing""" How many classrooms are not in Lamberton?,SELECT count(*) FROM classroom WHERE building != 'Lamberton' Show each premise type and the number of premises in that type.,"SELECT premises_type, COUNT(*) FROM premises GROUP BY premises_type" What round was in canberra stadium?,"SELECT round FROM table_name_40 WHERE venue = ""canberra stadium""" When did the staff member with first name as Janessa and last name as Sawayn leave the company?,"SELECT date_left_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" "What is the color description of the product with name ""catnip""?","SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""catnip""" "Which phone brand and model was used for event ID ""6701""?","SELECT T2.phone_brand, T2.device_model FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.event_id = 6701" "Among the Yelp_Businesses in Arizona, how many of them are still running?",SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND active LIKE 'True' How big is the province with the Armenian name of փայտակարան?,"SELECT MIN(area__km²_) FROM table_23887174_1 WHERE armenian_name = ""Փայտակարան""" How many male employees work at the address 450 Peachtree Rd?,SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.address = '450 Peachtree Rd' AND T1.gender = 'M' What was the Illinois Derby purse?,"SELECT purse___us$__ FROM table_name_32 WHERE race = ""illinois derby""" How many vuts made for a player with 2 wins and under 7 top 5s?,SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7 "What was the attendance on October 27, 1968?","SELECT MAX(week) FROM table_name_9 WHERE date = ""october 27, 1968""" what is the scoreboard when karen was 4.5,"SELECT scoreboard FROM table_19744915_3 WHERE karen = ""4.5""" "What sound has cantonese as the language, N/A as the classification, and spectrum dvd as the publisher?","SELECT sound FROM table_name_77 WHERE language = ""cantonese"" AND classifaction = ""n/a"" AND publisher = ""spectrum dvd""" What type has the most games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1 Which allergy affects student ID 1001,SELECT Allergy FROM Has_allergy where StuID = 1001 "How many region 4 dates are associated with a region 2 date of July 9, 2007?","SELECT COUNT(region_4__australia_) FROM table_240936_2 WHERE region_2__uk_ = ""July 9, 2007""" What was the winning score of the Greater Vancouver Open tournament?,"SELECT winning_score FROM table_name_50 WHERE tournament = ""greater vancouver open""" "Among the pairs of genes that are both located in the nucleus, what is the highest expression correlation score?",SELECT T2.Expression_Corr FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 INNER JOIN Genes AS T3 ON T3.GeneID = T2.GeneID2 WHERE T1.Localization = 'nucleus' AND T3.Localization = 'nucleus' ORDER BY T2.Expression_Corr DESC LIMIT 1 What is the average salary for each job title?,"SELECT job_title , AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title" "Which Number has a Year Start smaller than 1874, and a Year End larger than 1873?",SELECT MAX(number) FROM table_name_13 WHERE year_start < 1874 AND year_end > 1873 How many complaints on credit cards in the year 2016 were filed by male clients?,"SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE strftime('%Y', T2.`Date received`) = '2016' AND T1.sex = 'Male' AND T2.Product = 'Credit card'" How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?,"SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"";" In what season was the conference record 4-3?,"SELECT MIN(season) FROM table_20319085_2 WHERE conference_record = ""4-3""" Name the points classification for levi leipheimer,"SELECT points_classification FROM table_29077342_19 WHERE general_classification = ""Levi Leipheimer""" What day has a record of 25–30–13 and less than 63 points?,"SELECT AVG(march) FROM table_name_70 WHERE record = ""25–30–13"" AND points < 63" What are the names of all the storms that affected at least 10 cities and two regions?,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count ( * ) > = 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum ( T2.number_city_affected ) > = 10 What is the correlation between the review starts and business stars?,SELECT CAST(SUM(T2.review_stars) AS REAL) / COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id What is the position of the song that was eliminated on 11 november?,"SELECT MAX(position) FROM table_23585197_3 WHERE date_eliminated = ""11 November""" "When the Fowler is 16, what is the number of cylinders?","SELECT COUNT(stanier), _3_cylinder FROM table_20142629_2 WHERE fowler = 16" What are the coreceptors of the chromosomes in that location 11q22.2-q22.3?,"SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = ""11q22.2-q22.3""" What was the Attendance when Oxford United was the Home team?,"SELECT SUM(attendance) FROM table_name_58 WHERE home_team = ""oxford united""" "For the oldest movie listed, what is its average rating and title?","SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)" which of the physicians have zero patients?,SELECT name FROM physician WHERE name NOT IN ( SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP ) Can you tell me the Overall Record that has the Week of 3?,SELECT overall_record FROM table_name_81 WHERE week = 3 "Can you tell me the Nation that has the Bronze of 1, and the Gold of 0?",SELECT nation FROM table_name_68 WHERE bronze = 1 AND gold = 0 What was the date of the game played at Gillette Stadium with a score of 40-21?,"SELECT date FROM table_name_97 WHERE location = ""gillette stadium"" AND result = ""40-21""" What Venue had 2 or more Goals in a Friendly Competition?,"SELECT venue FROM table_name_48 WHERE competition = ""friendly"" AND goal > 2" what is the average price among all products?,SELECT avg ( Price ) FROM products "What score has october 16, 2000 as the date?","SELECT score FROM table_name_71 WHERE date = ""october 16, 2000""" Find all the stores in the district with the most population.,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1) And what was the average followers for those who do not have any tweets?,SELECT avg ( followers ) FROM user_profiles WHERE UID NOT IN ( SELECT UID FROM tweets ) what is the total number of employees?,SELECT count ( * ) FROM employees When cardboard boxes is segment c what is segment a?,"SELECT segment_a FROM table_15187735_5 WHERE segment_c = ""Cardboard Boxes""" "Which Loss is the lowest one that has an Avg/G of 3.5, and a Gain smaller than 42?",SELECT MIN(loss) FROM table_name_83 WHERE avg_g = 3.5 AND gain < 42 What percentage of consumers from Houston disputed complaints?,SELECT CAST(SUM(CASE WHEN T2.`Consumer disputed?` = 'Yes' AND T1.city = 'Houston' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID From where did Train No. 15929/30 originate?,"SELECT origin FROM table_name_15 WHERE train_no = ""15929/30""" "What nation has 0 as the silver, 1 as the bronze, with 18 as the rank?","SELECT nation FROM table_name_84 WHERE silver = 0 AND bronze = 1 AND rank = ""18""" Can you list all the schools that have less than 5 different departments? | BUS is the school code for schools with less than 5 different departments. | Can you list the number of departments with school code BUS?,"SELECT count ( DISTINCT dept_name ) FROM department where school_code = ""BUS""" what's the monday time with tuesday being 9:00-6:00,"SELECT monday FROM table_11019212_1 WHERE tuesday = ""9:00-6:00""" How many different orders with a total price greater than 4000 are cancelled?,SELECT COUNT(DISTINCT T1.orderNumber) FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber WHERE T1.quantityOrdered * T1.priceEach > 4000 AND T2.status = 'Cancelled' what is the status of Perth-Andover | The status of the city with official name Perth-Andover is Village. | what is the name of the city that is top in area km 2.,SELECT Official_Name FROM city order by Area_km_2 desc limit 1 Under what events was the menu page's full width less than 2000 mm?,SELECT T1.event FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.full_width = 2000 Name the kurdistan democratic party for kurdistan list being 10,SELECT MIN(kurdistan_democratic_party) FROM table_24440361_1 WHERE total_kurdistan_list = 10 Name the number of series for 19,SELECT no_by_series FROM table_23958944_6 WHERE no_by_season = 19 Constructor with total time of 2:45.416,"SELECT constructor FROM table_name_72 WHERE q1 + q2_time = ""2:45.416""" "Provide the number of Yelp businesses in ""Gilbert"" which got a"" high"" review count.",SELECT COUNT(business_id) FROM Business WHERE review_count = 'High' AND city = 'Gilbert' "Among all the patients who once had cystitis, what was the percentage of them being married?",SELECT CAST(SUM(CASE WHEN T1.marital = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.description = 'Cystitis' What AP increase has an AP duration of 0.75?,"SELECT ap_increase__mv_ FROM table_name_68 WHERE ap_duration__ms_ = ""0.75""" How many results for minimum first elected incumbent Noble Jones Gregory?,"SELECT MIN(first_elected) FROM table_1342198_17 WHERE incumbent = ""Noble Jones Gregory""" List the id of the player who won the Orange Cap for 2 consecutive seasons.,SELECT Orange_Cap FROM Season GROUP BY Orange_Cap HAVING COUNT(Season_Year) > 1 "Among the players that weigh more than 90 kg, how many of them have a position of defense?",SELECT COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 AND T1.position_info = 'D' Who is the incumbent in district Texas 15?,"SELECT incumbent FROM table_1341707_45 WHERE district = ""Texas 15""" "How much did the project that teacher ""822b7b8768c17456fdce78b65abcc18e"" created donate?",SELECT T2.donation_total FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e' Which team is located in Leicester?,"SELECT team FROM table_name_36 WHERE location = ""leicester""" "Find the dates of orders which belong to the customer named ""Jeramie"".","SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" "For students who have pets , how many pets does each student have ? list their ids instead of names .","SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid" What are the names of the directors who made exactly one movie excluding director NULL?,"SELECT director FROM Movie WHERE director <> ""null"" GROUP BY director HAVING COUNT(*) = 1" How many professors attained either Ph.D. or Masters degrees?,SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' What is the title of corpus with most words?,SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) Name the kaz hayashi with block A of Shuji Kondo,"SELECT kaz_hayashi FROM table_name_47 WHERE block_a = ""shuji kondo""" What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?,SELECT number_of_decimal_digits FROM table_name_26 WHERE total_bits > 32 AND exponent < 15 "How many totals have 0 as Gold, a bronze greater than 1, and a silver less than 1?",SELECT COUNT(total) FROM table_name_94 WHERE gold = 0 AND bronze > 1 AND silver < 1 "What is the earliest game that had 42,707 attending?",SELECT MIN(game) FROM table_name_94 WHERE attendance = 42 OFFSET 707 What are the first names of all professors who teach more than one class?,SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1 What are the ids and details of all accounts?,"SELECT account_id , account_details FROM Accounts" Find all the store names in the district with the lowest population.,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = ( SELECT district_id FROM district ORDER BY city_population ASC LIMIT 1 ) What's Kaia Kanepi's Sd?,"SELECT MIN(sd) FROM table_27615896_20 WHERE player = ""Kaia Kanepi""" Who is the drive for an Entrant of Scuderia Ambrosiana?,"SELECT driver FROM table_name_65 WHERE entrant = ""scuderia ambrosiana""" What is the density (hab/km²) with a population censo 2007(hab) of 336.293*?,"SELECT density__hab__km²__ FROM table_name_4 WHERE population_censo_2007_hab_ = ""336.293*""" Find the names of stadiums which have never had any event.,SELECT name FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event) What is the home team of Lake Oval?,"SELECT home_team FROM table_name_21 WHERE venue = ""lake oval""" List all the room names booked with 1 adult and their check in date.,"SELECT T2.roomName, T1.Checkin FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Adults = 1" What was the entrant in round 16 were Ferrari was the constructor?,"SELECT entrant FROM table_name_70 WHERE rounds = ""16"" AND constructor = ""ferrari""" what is the average of high speed? | Did you mean to ask for the average max speed of the storms? | yes,SELECT AVG ( Max_speed ) FROM storm Find the author for each submission and list them in ascending order of submission score.,SELECT Author FROM submission ORDER BY Scores ASC How many owners temporarily do not have any dogs?,SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs ) "What is the description of the club ""Pen and Paper Gaming""?","SELECT clubdesc FROM club WHERE clubname = ""Pen and Paper Gaming""" "How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted?",SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575 What is the number of Mike Thomas?,"SELECT COUNT(position) FROM table_20860739_1 WHERE player = ""Mike Thomas""" What is the number of laps for Grid 14?,SELECT COUNT(laps) FROM table_name_88 WHERE grid = 14 What is the score for the game with the record of 3–12?,"SELECT score FROM table_27698941_6 WHERE record = ""3–12""" "In 2007, which job position was hired the most?","SELECT JobTitle FROM Employee WHERE STRFTIME('%Y', HireDate) = '2007' GROUP BY HireDate ORDER BY COUNT(JobTitle) DESC LIMIT 1" What group a winner was for nocerina?,"SELECT group_a_winner FROM table_1137142_1 WHERE group_d_winner = ""Nocerina""" Show different locations and the number of performances at each location.,"SELECT LOCATION , COUNT(*) FROM performance GROUP BY LOCATION" "What surface was used on may 13, 2007?","SELECT surface FROM table_name_19 WHERE date = ""may 13, 2007""" display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.,"SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct != ""null"" OR department_id != 40" How many points have a percentage of possible points of 67.22%?,"SELECT SUM(points) FROM table_name_92 WHERE percentage_of_possible_points = ""67.22%""" What are the memories and carriers of phones?,"SELECT Memory_in_G , Carrier FROM phone" Name the year for les portes tournantes,"SELECT year__ceremony_ FROM table_17025328_1 WHERE original_title = ""Les portes tournantes""" Count the number of exhibitions that have had an attendnance of over 100 or a ticket prices under 10.,SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10 What message has hd 186408 as a designation HD?,"SELECT message FROM table_name_75 WHERE designation_hd = ""hd 186408""" How many 1 star ratings are there in the worst rated episode of the season?,SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 1 ORDER BY T1.rating LIMIT 1; Which semeseter and year had the fewest students?,"SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1" Who are the suppliers of the discontinued products?,SELECT DISTINCT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.Discontinued = 1 Which Away team plays at the Venue vfl park?,"SELECT away_team FROM table_name_91 WHERE venue = ""vfl park""" Please name three communities that experience the fraud incident.,SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Criminal Sexual Assault' LIMIT 3 What are the names of all the people who worked on episode 19 of season 9?,SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.episode = 19 AND T1.season = 9 What is the result on Sunday that's सोमवार somavār on Monday and मंगलवार mangalavār on Tuesday?,"SELECT sunday_surya__the_sun_ FROM table_name_29 WHERE monday_soma__the_moon_ = ""सोमवार somavār"" AND tuesday_mangala__mars_ = ""मंगलवार mangalavār""" What's the latest keynote version of version 2.3 of numbers with pages greater than 4.3?,"SELECT MAX(keynote_version) FROM table_name_18 WHERE numbers_version = ""2.3"" AND pages_version > 4.3" "What is Score, when Player is ""Ernie Els""?","SELECT score FROM table_name_15 WHERE player = ""ernie els""" How many episodes are numbered 4 in the season?,SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4 How many photos use Olympus camera lenses?,SELECT count ( * ) FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id WHERE T2.brand = 'Olympus' "Find the names of swimmers who has a result of ""win"".",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' What are the names of all games played by Linda Smith?,"SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = ""Smith"" AND T3.Fname = ""Linda""" Give the id of the weather station with most stores.,SELECT station_nbr FROM relation GROUP BY station_nbr ORDER BY COUNT(station_nbr) DESC LIMIT 1 What are their names?,select Name from artist Name the awardee for best editing,"SELECT awardee_s_ FROM table_24446718_7 WHERE name_of_award = ""Best Editing""" How many distinct courses are enrolled in by students?,SELECT COUNT(course_id) FROM Student_Course_Enrolment "Time ( ET ) of 1:00pm, and a Result of w 34–14 has what record?","SELECT record FROM table_name_67 WHERE time___et__ = ""1:00pm"" AND result = ""w 34–14""" What is the fewest number of races Pedro Nunes completed in any series?,SELECT MIN(races) FROM table_25386974_1 And the lowest?,SELECT stars FROM Rating ORDER BY stars aSC LIMIT 1 What is the airport name for airport 'AKO'?,"SELECT AirportName FROM AIRPORTS WHERE AirportCode = ""AKO""" In which regions are there no pizza restaurants?,SELECT DISTINCT T2.region FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'pizza' AND T2.region != 'unknown' What unit is located in China and has Zhou Zhang as an author?,"SELECT unit FROM table_name_53 WHERE location = ""china"" AND authors = ""zhou zhang""" Who is the second for the team with alternate Margarita Fomina?,"SELECT second FROM table_name_12 WHERE alternate = ""margarita fomina""" who is Zach's friend?,SELECT friend FROM PersonFriend where name = 'Zach' What is the percentage of cars that was produced by Japan among those that have a sweep volume of no less than 30?,SELECT CAST(SUM(CASE WHEN T3.country = 'Japan' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.displacement / T1.cylinders > 30 What is the status of the membership application on 2008-12-15?,"SELECT status FROM table_name_26 WHERE membership_application = ""2008-12-15""" What are the bike id of zip code 94041?,SELECT bike_id FROM trip WHERE zip_code = 94041 "What is Expected End Date, when Trial Start Date is Nov 2007?","SELECT expected_end_date FROM table_name_65 WHERE trial_start_date = ""nov 2007""" "Find all members of ""Bootup Baltimore"" whose major is ""600"". Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.major = ""600""" How many players had been drafted in front of Yves archambault,"SELECT pick__number FROM table_1473672_7 WHERE player = ""Yves Archambault""" how many times was the incumbent is john b. yates?,"SELECT COUNT(party) FROM table_2668347_14 WHERE incumbent = ""John B. Yates""" Please list the texts of all the tweets in French posted by male users.,SELECT T1.text FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' AND T1.Lang = 'fr' Show all flight number from Los Angeles.,"SELECT flno FROM Flight WHERE origin = ""Los Angeles""" Name the series on june 5,"SELECT series FROM table_11965481_13 WHERE date = ""June 5""" Can you please show me the current courses being taught with the last name of the instructor teaching them?,"SELECT T2.emp_lname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code" Which major has least number of students? List the major and the number of students.,"SELECT Major , count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;" What award did the character Homer simpson 20 achieve in 2009?,SELECT DISTINCT T1.award FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.year = 2009 AND T2.character = 'Homer Simpson'; How many apartments in this table?,SELECT count ( * ) from apartments Please list the names of all the store contact employees whose credit cards expired in 2007.,"SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN CreditCard AS T3 ON T2.CreditCardID = T3.CreditCardID WHERE T3.ExpYear = 2007 AND T1.PersonType = 'SC'" Find the name of customers who do not have a loan with a type of Mortgages.,SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' How many songs are available in each format?,"SELECT formats, count ( * ) FROM files group by formats" What is the round of Jimmy Drolet from Canada?,"SELECT round FROM table_name_70 WHERE nationality = ""canada"" AND player = ""jimmy drolet""" What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?,SELECT T2.Suffix FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'SP' ORDER BY T1.SickLeaveHours DESC LIMIT 1 Please list the IDs of the events happened on all the vivo devices.,SELECT T2.event_id FROM phone_brand_device_model2 AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'vivo' How many laps did Eddie Irvine have?,"SELECT laps FROM table_name_73 WHERE driver = ""eddie irvine""" In which year has the greatest number of cases where Handgun was used as weapon?,"SELECT STRFTIME('%Y', date) FROM incidents WHERE subject_weapon = 'Handgun' GROUP BY STRFTIME('%Y', date) ORDER BY COUNT(case_number) DESC LIMIT 1" What was the average speed where lap four's time was 22.9049?,"SELECT avg_speed FROM table_23018775_3 WHERE lap_four = ""22.9049""" When Fabrizio Baldassari is the runner-up what is the total prize money?,"SELECT prize_money FROM table_12454156_1 WHERE runner_up = ""Fabrizio Baldassari""" What was the total number of episodes that had a 3-1 vote?,"SELECT COUNT(episode) FROM table_24122653_2 WHERE vote = ""3-1""" What is the highest number won with a difference of 1?,"SELECT MAX(won) FROM table_15331868_1 WHERE difference = ""1""" Calculate the percentage of cars that belong to the USA.,SELECT CAST(SUM(CASE WHEN T2.country = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98?,SELECT AVG(evening_gown) FROM table_name_21 WHERE swimsuit < 7.99 AND interview > 7.98 Who was the music director in 1994?,SELECT music_director FROM table_name_3 WHERE year = 1994 Which themes have had corresponding exhibitions that have had attendance both below 100 and above 500?,SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 List the full name of the professors who advised students with intelligence 1.,"SELECT T1.first_name, T1.last_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.intelligence = 1" How many unmarried women were checked for normal pregnancy?,SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Normal pregnancy' AND T2.gender = 'F' AND T2.marital = 'S' What is the team for season 1911-12?,"SELECT team FROM table_10556257_1 WHERE season = ""1911-12""" "What is Score, when Country is United States, and when Player is ""Arnold Palmer""?","SELECT score FROM table_name_93 WHERE country = ""united states"" AND player = ""arnold palmer""" What was the 2011 population of pavliš?,"SELECT population__2011_ FROM table_2562572_46 WHERE settlement = ""Pavliš""" Name the total number of NGC number for sagittarius and diffuse nebula with declination of °02′,"SELECT COUNT(ngc_number) FROM table_name_86 WHERE constellation = ""sagittarius"" AND object_type = ""diffuse nebula"" AND declination___j2000__ = ""°02′""" "What lowest games have a Goal Ratio of 0, and Goals smaller than 0?",SELECT MIN(games) FROM table_name_87 WHERE goal_ratio = 0 AND goals < 0 "What state had less than 8.874 for swimsuit, less than 9.257 for evening gown, and less than 9.121 for interview?",SELECT state FROM table_name_26 WHERE swimsuit < 8.874 AND evening_gown < 9.257 AND interview < 9.121 What is the category for trains numbered 16609/16610?,"SELECT category FROM table_21716139_1 WHERE train_no = ""16609/16610""" What are the names of customers with checking balances lower than the average checking balance?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking) "How many policies are listed for the customer named ""Dayana Robel""?","SELECT count ( * ) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Dayana Robel""" Which gold has 3 silver and a Total of 5?,"SELECT gold FROM table_name_15 WHERE silver = ""3"" AND total = ""5""" What is the status code with the least number of customers?,SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1; What is the 1995 value with A in 1986 and 2r in 1992?,"SELECT 1995 FROM table_name_29 WHERE 1986 = ""a"" AND 1992 = ""2r""" "Which nominees have nominated musicals for ""Drama Desk Award""?","SELECT distinct Nominee FROM musical WHERE Award = ""Drama Desk Award""" Who is the player with the lowest training hours?,SELECT pName from player order by HS limit 1 The KTRH.com website includes which type of webcast?,"SELECT webcast FROM table_name_54 WHERE website = ""ktrh.com""" What is the rating of the restaurant Subway?,"SELECT Rating FROM Restaurant WHERE ResName = ""Subway"";" What is the average pages per minute color?,SELECT AVG(pages_per_minute_color) FROM product What countries have had eruptions of growth episodes in 1986?,"SELECT country FROM table_1081235_1 WHERE last_eruption_or_growth_episode = ""1986""" what team played on april 9,"SELECT opponent FROM table_name_58 WHERE date = ""april 9""" List the name of actors whose age is not 20.,SELECT Name FROM actor WHERE Age != 20 "How many biword pairs contain the word ""base"" as the second word?",SELECT COUNT(w1st) FROM biwords WHERE w2nd = ( SELECT wid FROM words WHERE word = 'base' ) "Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?","SELECT title FROM table_name_93 WHERE dance_partner = ""adele astaire"" AND lyrics = ""ira gershwin"" AND director = ""felix edwardes""" What year did Omar Gonzalez graduate?,"SELECT SUM(graduated) FROM table_name_94 WHERE player = ""omar gonzalez""" "List the ids of the problems from the product ""voluptatem"" that are reported after 1995?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"" AND T1.date_problem_reported > ""1995""" How many students live in Smith Hall?,SELECT 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 T3.dorm_name = 'Smith Hall' "Find the number of albums by the artist ""Metallica"".","SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""Metallica""" "Among the working days from Monday to Saturday, which businesses with the category names work the most days?",SELECT T2.category_name FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T1.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id GROUP BY T2.category_name ORDER BY COUNT(T3.day_id) DESC LIMIT 1 What are the ids of the candidates that have an outcome code of Pass?,"SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = ""Pass""" What is the Year of the Coin with an Issue Price of $1089.95 and Mintage less than 900?,"SELECT SUM(year) FROM table_name_15 WHERE issue_price = ""$1089.95"" AND mintage < 900" Please provide the full name of the conference where one of the papers of Jean-luc Hainaut were published.,SELECT DISTINCT T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T2.Name = 'Jean-luc Hainaut' LIMIT 1 Name the total number of elementary schools for 31851,SELECT COUNT(elementary_schools) FROM table_2367847_2 WHERE district_wide = 31851 Name the date for broadcast fsn,"SELECT date FROM table_26842217_18 WHERE broadcast = ""FSN""" What is the percentage of the European countries among the given countries?,"SELECT CAST(SUM(IIF(T2.r_name = 'EUROPE', 1, 0)) AS REAL) * 100 / COUNT(T1.n_name) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey" "If the points were 0, what were the tries for?","SELECT tries_for FROM table_name_65 WHERE points_for = ""0""" What is the first name of Reservations Code 10105?,"SELECT FirstName from Reservations where Code = 10105" How many studios have average gross higher than 4500000,SELECT Studio FROM film GROUP BY Studio HAVING avg ( Gross_in_dollar ) > = 4500000 What is Kerry J. Donley's Party?,"SELECT party FROM table_name_48 WHERE name = ""kerry j. donley""" "What is the Population 1961 of West Sussex with a Population of 120,952 or less?","SELECT SUM(population_1961) FROM table_name_22 WHERE administrative_county = ""west sussex"" AND population_1891 < 120 OFFSET 952" How many years were recorded when world ranking was 21st?,"SELECT COUNT(index__year_) FROM table_19948664_2 WHERE world_ranking__1_ = ""21st""" "If a team has a grid of over 8 with less than 4 points, what's the team name?",SELECT team FROM table_name_31 WHERE grid > 8 AND points < 4 How many stations in San Francico can hold more than 20 bikes?,SELECT SUM(CASE WHEN city = 'San Francisco' AND dock_count > 20 THEN 1 ELSE 0 END) FROM station "How many businesses are there in Scottsdale city under the category of ""Beauty & Spas""?",SELECT COUNT(T2.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.city LIKE 'Scottsdale' AND T1.category_name LIKE 'Beauty & Spas' What is the system called that is named ELKJS?,"SELECT system FROM table_name_56 WHERE name = ""elkjs""" How many budgets are above 3000 in year 2001 or before?,SELECT count(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001 What are the names of all clubs?,SELECT clubname FROM club What Nominating festival was party of the adjustment film?,"SELECT nominating_festival FROM table_name_69 WHERE film = ""adjustment""" What was the week 7 opponent for the year that had a week 12 opponent of Oregon State (7-3)?,"SELECT week_7_oct_12 FROM table_name_29 WHERE week_12_nov_16 = ""oregon state (7-3)""" "Provide the cast for the film ""Jason trap"".","SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'JASON TRAP'" What is the score for set 2 when set 3 was 15–6?,"SELECT set_2 FROM table_name_61 WHERE set_3 = ""15–6""" What is the Home Ground with the Location n/a for the Club kcdrsc?,"SELECT home_ground FROM table_name_39 WHERE location = ""n/a"" AND club = ""kcdrsc""" WHAT IS ROOM NAME of rooms that have a king bed.?,SELECT roomName FROM Rooms WHERE bedtype = 'King' What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?,"SELECT sing_pres FROM table_name_51 WHERE sing_pret = ""ou"" AND subj_pres = ""ie""" What was the winning car's chassis for the 1982 season?,"SELECT chassis FROM table_name_48 WHERE season = ""1982""" Who was the entrant for Louis Chiron with a Chassis of T26C?,"SELECT entrant FROM table_name_95 WHERE driver = ""louis chiron"" AND chassis = ""t26c""" How many products are in the 'Spices' category and have a typical price of over 1000?,"SELECT count(*) FROM products WHERE product_category_code = ""Spices"" AND typical_buying_price > 1000" What's the city of license having a D ERP of 100kw?,"SELECT city_of_license FROM table_name_21 WHERE d_erp = ""100kw""" "What is the Date, when the City is Warsaw?","SELECT date FROM table_name_39 WHERE city = ""warsaw""" How many disabled male students joined an organization?,SELECT COUNT(T1.name) FROM disabled AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name INNER JOIN enlist AS T3 ON T3.name = T2.name What country has at max 3 stadiums?,SELECT country FROM stadium GROUP BY country HAVING count ( * ) < = 3 What is the platelet count when partial thromboplastin time and bleeding time are unaffected?,"SELECT platelet_count FROM table_221653_1 WHERE partial_thromboplastin_time = ""Unaffected"" AND bleeding_time = ""Unaffected""" "What sport was played on November 14, 2009?","SELECT sport FROM table_name_27 WHERE date = ""november 14, 2009""" what is the mountain peak when the location is 37.5775°n 105.4856°w?,"SELECT mountain_peak FROM table_name_73 WHERE location = ""37.5775°n 105.4856°w""" "How many objects can you spot in image no. 72? What objects may be identified on the same image and within the bounding box represented as (341, 27, 42, 51)?","SELECT SUM(IIF(T1.IMG_ID = 1, 1, 0)), SUM(IIF(T1.X = 341 AND T1.Y = 27 AND T1.W = 42 AND T1.H = 51, 1, 0)) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID" When was an average speed of 81.388 mph recorded?,"SELECT date FROM table_2266976_1 WHERE average_speed__mph_ = ""81.388""" what's the duration with mission being sts-87,"SELECT duration FROM table_14118521_1 WHERE mission = ""STS-87""" What was the Obama% when McCain% was 61.2%?,"SELECT obama_percentage FROM table_20750731_1 WHERE mccain_percentage = ""61.2%""" How many artists are above age 46 and joined after 1990?,SELECT count(*) FROM artist WHERE age > 46 AND year_join > 1990 What is the description of role code ED?,"SELECT role_description FROM ROLES WHERE role_code = ""ED"";" What is the name of the player with an Overall larger than 227?,SELECT player FROM table_name_14 WHERE overall > 227 What is the Pashto word for the Somali word talaado?,"SELECT pashto FROM table_name_24 WHERE somali = ""talaado""" What is the number of tries for the player who is larger than 16?,SELECT SUM(tries) FROM table_name_81 WHERE played > 16 What is the date of the performance with the highest number of attendees?,SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1 Mention the supplier country of Ipoh Coffee and the order ID which had maximum in total payment.,"SELECT T3.Country, T1.OrderID FROM `Order Details` AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Suppliers AS T3 ON T2.SupplierID = T3.SupplierID WHERE T2.ProductName = 'Ipoh Coffee' ORDER BY T1.UnitPrice * T1.Quantity * (1 - T1.Discount) DESC LIMIT 1" "Which term in office has a qld state, a Party of labor, and an Electorate of fisher?","SELECT term_in_office FROM table_name_76 WHERE state = ""qld"" AND party = ""labor"" AND electorate = ""fisher""" "Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014?",SELECT COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.TransactionDate LIKE '2014-08%' AND T3.Twitter IS NULL What is the lowest numbered game against Phoenix with a record of 29-17?,"SELECT MIN(game) FROM table_name_61 WHERE opponent = ""phoenix"" AND record = ""29-17""" What si the youngest employee's first and last name?,"SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;" Name the original name for the one from bulgaria,"SELECT original_name FROM table_name_4 WHERE country = ""bulgaria""" How many games available on PSP were released in 2004?,SELECT 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 T1.platform_name = 'PSP' AND T2.release_year = 2004 List the name of physicians who never took any appointment.,SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID "What is the template type descriptions for template type code ""AD"".","SELECT template_type_description FROM Ref_template_types WHERE template_type_code = ""AD""" What is the name of the team whose class is Rotax Light?,"SELECT team FROM table_name_95 WHERE class = ""rotax light""" What is the least common media type in all tracks?,SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1 When has a Result of 0–2 and a Opponent of aberdeen?,"SELECT date FROM table_name_13 WHERE result = ""0–2"" AND opponent = ""aberdeen""" What are the phone numbers of all customers and suppliers?,SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers What are the names of students who took a course in the Fall of 2003?,SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003) List the author's name of the books published by Abrams.,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T4.publisher_name = 'Abrams' "What is the name of the place that has a census ranking of 1,229 of 5,008?","SELECT official_name FROM table_name_63 WHERE census_ranking = ""1,229 of 5,008""" State the shipping company of order id 10260.,SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.OrderID = 10260 Tell me the name that has 17 floors,SELECT name FROM table_name_25 WHERE floors = 17 What is the quantity preserved when 4 were made of class F-21?,"SELECT quantity_preserved FROM table_name_76 WHERE quantity_made = ""4"" AND class = ""f-21""" What location of school name Bremen?,"SELECT location FROM school where School_name = ""Bremen""" "What is the locale of the language of the page titled ""Anys 90""?",SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Anys 90' "Name the sscore for world cup qualifying october 15, 2008","SELECT score FROM table_name_49 WHERE competition = ""world cup qualifying"" AND date = ""october 15, 2008""" What is the lowest Rank of Denmark County with a Total smaller than 1?,"SELECT MIN(rank) FROM table_name_2 WHERE country = ""denmark"" AND total < 1" What are their ages?,SELECT T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN ( SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge' ) Which state has the most customers?,SELECT state FROM customers GROUP BY state ORDER BY COUNT(*) LIMIT 1 What is the second word in the pair of words number 1 and 8968?,SELECT word FROM words WHERE wid = 8968 Which publisher published Barry Eisler's book?,SELECT T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'Barry Eisler' Who's the actor for the Archers having a character of Martha Woodford?,"SELECT actor FROM table_name_14 WHERE soap_opera = ""the archers"" AND character = ""martha woodford""" What is the resolution of the network Canal de las Estrellas?,"SELECT resolution FROM table_name_96 WHERE network = ""canal de las estrellas""" Find courses that ran in Fall 2009 or in Spring 2010.,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 Name the left day 9 finish for eliminated,"SELECT eliminated FROM table_25920798_2 WHERE finish = ""Left Day 9""" What round is player phil graham in?,"SELECT round FROM table_name_8 WHERE player = ""phil graham""" "Among the active businesses located at Mesa, AZ, list the category and attributes of business with a low review count.",SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T1.review_count = 'Low' AND T1.city = 'Mesa' AND T1.active = 'true' AND T1.state = 'AZ' "what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth?","SELECT race FROM table_name_48 WHERE jockey = ""frankie dettori"" AND margin > 3 AND course = ""yarmouth""" And where are they located?,"SELECT T2.state FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" "How many of the users hold neutral attitude on ""10 Best Foods for You"" app and what category is this app?","SELECT COUNT(T2.App), T1.Category FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = '10 Best Foods for You' AND T2.Sentiment = 'Neutral'" "List the vehicle flight number, date and pilot of all the flights, ordered by altitude.","SELECT vehicle_flight_number , date , pilot FROM flight ORDER BY altitude ASC" What is the average laps that had a time/retired of +5 laps?,"SELECT AVG(laps) FROM table_name_27 WHERE time_retired = ""+5 laps""" How many customers are there?,SELECT count(*) FROM customers "Which type of transaction was it for the ""LL Road Handlebars"" order happened in 2012/11/3?","SELECT T1.TransactionType FROM TransactionHistoryArchive AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'LL Road Handlebars' AND STRFTIME('%Y-%m-%d',T1.TransactionDate) = '2012-11-03'" Which method had Travis Fulton as an opponent?,"SELECT method FROM table_name_68 WHERE opponent = ""travis fulton""" What is the average Entre Ríos Municipality with less than 9 Pojo Municipalities?,SELECT AVG(entre_ríos_municipality) FROM table_name_99 WHERE pojo_municipality < 9 List all active vendors who offer a purchasing web service.,SELECT Name FROM Vendor WHERE ActiveFlag = 1 "For episode number 2-03, what are the names of the cast?","SELECT cast FROM table_2570269_2 WHERE episode__number = ""2-03""" What is the max pressure of the .38 long colt cartridge?,"SELECT max_pressure FROM table_173103_1 WHERE cartridge = "".38 Long Colt""" "What is the full address of the customer who commented that DHL be used for the order that was shipped on April 4, 2005?","SELECT T1.addressLine1, T1.addressLine2 FROM customers AS T1 INNER JOIN orders AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.shippedDate = '2005-04-04' AND T2.status = 'Shipped'" How many credit cards does customer Blanche Huels have?,"SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Blanche"" AND T2.customer_last_name = ""Huels"" AND T1.card_type_code = ""Credit""" "Of all the All-star players who played in the Eastern Conference for no more than 5 minutes, how many went to Illinois College?",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.conference = 'East' AND T2.minutes <= 5 AND T1.college = 'Illinois' What is the highest top-25 with more than 9 top-10 but less than 29 events?,SELECT MAX(top_25) FROM table_name_17 WHERE top_10 > 9 AND events < 29 What are the three colleges from which the most players are from?,SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3 Who is every high rebound when the team is Mount St. Mary's?,"SELECT high_rebounds FROM table_29846807_4 WHERE team = ""Mount St. Mary's""" How many different positions of players are there?,SELECT count(DISTINCT POSITION) FROM player Which three sales regions have generated the most revenue thus far?,SELECT TerritoryID FROM SalesTerritory ORDER BY SalesYTD DESC LIMIT 3 How many enrollement does Dakota State University have,"SELECT Enrollment FROM institution WHERE Institution = ""Dakota State University""" How many documents have the status code done?,"SELECT count(*) FROM Documents WHERE document_status_code = ""done"";" "For each director who directed more than one movie, what are the titles and dates of release for all those movies?","SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title" Indicate the height of all players from team Oshawa Generals in inches.,SELECT T3.height_in_inch FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T1.height = T3.height_id WHERE T2.TEAM = 'Oshawa Generals' What are the titles and ids for albums containing tracks with unit price greater than 1?,"SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID" How many counties are there?,SELECT count ( * ) FROM county_public_safety "Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.","SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC" which is the former pageant in the country where the new pageant is miss bahamas?,"SELECT former_pageant FROM table_14308895_2 WHERE new_pageant = ""Miss Bahamas""" What was the attendance of the Indiana game?,"SELECT location_attendance FROM table_17080868_7 WHERE team = ""Indiana""" What is the general classification when the team classification is japan?,"SELECT general_classification FROM table_name_18 WHERE team_classification = ""japan""" How many respondents younger than 25 years old did participate in the survey in 2016?,SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 1 AND T1.SurveyID = 2016 AND T1.AnswerText <= 25 How many flights from American Airlines were cancelled due to a type A cancellation code?,SELECT COUNT(*) FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.CANCELLATION_CODE = 'A' AND T2.Description = 'American Airlines Inc.: AA' AND T1.CANCELLED = 1 Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?,"SELECT player FROM table_name_71 WHERE nationality = ""united states"" AND position = ""small forward"" AND years_for_grizzlies = ""1999-2002""" Return the name and job title of the staff with the latest date assigned.,"SELECT T1.staff_name , T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1" WHAT IS THE RESULT WHEN THE OPPONENT WAS CHICAGO BEARS?,"SELECT result FROM table_name_18 WHERE opponent = ""chicago bears""" Who won with the song kemenangan cinta?,"SELECT winner FROM table_name_1 WHERE winning_song = ""kemenangan cinta""" Show all locations which don't have a train station with at least 15 platforms.,SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15 "In the year (ceremony) 1998 (71st), what are all the main languages?","SELECT main_language_s_ FROM table_26385848_1 WHERE year__ceremony_ = ""1998 (71st)""" Who is the Player for School/Club Team Illinois?,"SELECT player FROM table_name_22 WHERE school_club_team = ""illinois""" Find Alice's friends of friends.,SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice' Which opponent has 36102 is the attendance?,SELECT opponent FROM table_23466021_4 WHERE attendance = 36102 List the names of entrepreneurs and their companies in descending order of money requested?,"SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested" How many total are there when actor/actress is pam ferris?,"SELECT total FROM table_25831483_1 WHERE actor_actress = ""Pam Ferris""" Which Conference Semifinals has a Conference Finals of † denotes division championship?,"SELECT conference_semifinals FROM table_name_57 WHERE conference_finals = ""† denotes division championship""" What Version has a Remixed by Perky Park with a Length of 6:38?,"SELECT version FROM table_name_29 WHERE remixed_by = ""perky park"" AND length = ""6:38""" "Please list the movies rated by the user who created the movie list ""250 Favourite Films"".",SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T3.list_title = '250 Favourite Films' Provide the ward number with the highest population.,SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1 when points for is 39 what is the total number of drawn,"SELECT drawn FROM table_20396710_1 WHERE points_for = ""39""" What are the staff ids and genders of all staffs whose job title is Department Manager?,"SELECT T1.staff_id, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Department Manager""" What is the Year of Kodansha Novels' Tokyo Nightmare?,"SELECT year FROM table_name_80 WHERE first_publisher = ""kodansha novels"" AND english_title = ""tokyo nightmare""" What are the lowest points when poles were 0 and races were 10?,SELECT MIN(points) FROM table_24405773_1 WHERE poles = 0 AND races = 10 What is Alexander Wronski's Position?,"SELECT position FROM table_name_31 WHERE name = ""alexander wronski""" What was the production company for the film directed by Daniel Cormack?,"SELECT production_company FROM table_name_54 WHERE director_s_ = ""daniel cormack""" What is the name of the item with the lowest average rating?,SELECT T1.title 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 ) LIMIT 1 What date was the episode originally aired that was directed by James Widdoes and the production code is 320?,"SELECT original_air_date FROM table_2221374_3 WHERE directed_by = ""James Widdoes"" AND production_code = 320" What is the average song duration for the songs that are in mp3 format and whose resolution below 800?,"SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" What is the lowest number of Not Outs when there were more than 25 innings?,SELECT MIN(not_outs) FROM table_name_76 WHERE innings > 25 What is the power in KW that has a station type of relay and a callsign of DXCL-TV?,"SELECT power_kw FROM table_24673888_1 WHERE station_type = ""Relay"" AND callsign = ""DXCL-TV""" College of villanova has what round?,"SELECT round FROM table_name_65 WHERE college = ""villanova""" Provide the population of the city of the 'World Tourism Organization' headquarter.,SELECT T2.Population FROM organization AS T1 INNER JOIN city AS T2 ON T1.City = T2.Name WHERE T1.Name = 'World Tourism Organization' "Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?","SELECT SUM(rec) FROM table_name_95 WHERE average < 32 AND s_touchdown < 3 AND opponent = ""oregon state""" What are their distinct ages?,SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes' Who wrote the episode with the code xle05012?,"SELECT written_by FROM table_28348757_6 WHERE production_code = ""XLE05012""" What is the NUT 3 region with area of 41.58?,"SELECT nuts_3_region FROM table_name_38 WHERE area__km²_ = ""41.58""" List by school id projects from schools located in the Union Pub School District I-9 that have a New York teaching fellow,SELECT schoolid FROM projects WHERE school_district = 'Union Pub School District I-9' AND teacher_ny_teaching_fellow = 't' What is the sum of the total number of medals when silver is less than 0?,SELECT COUNT(total) FROM table_name_54 WHERE silver < 0 Name the ICAO for IATA of rgn,"SELECT icao FROM table_name_69 WHERE iata = ""rgn""" What are the names of countries that have both players with position forward and players with position defender?,"SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Forward"" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" What are the hometowns of gymnasts and the corresponding number of gymnasts?,"SELECT T2.Hometown , COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown" What county is the team with the mascot of the Tigers in?,"SELECT county FROM table_name_89 WHERE mascot = ""tigers""" "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.","SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )" How many were in the crowd when the score was 97-80?,"SELECT COUNT(crowd) FROM table_name_48 WHERE score = ""97-80""" "List all characteristics of product named ""sesame"" with type code ""Grade"".","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"" AND t3.characteristic_type_code = ""Grade""" "What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977?","SELECT leftfielder FROM table_name_90 WHERE second_baseman = ""davey lopes"" AND first_baseman = ""steve garvey"" AND shortstop = ""bill russell"" AND year > 1977" What state is the radio station in that has a frequency of 90.1 FM and a city license in New Castle?,"SELECT state FROM table_name_71 WHERE frequency = ""90.1 fm"" AND city_of_license = ""new castle""" When is the highest closed price of CHNCoin?,SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'CHNCoin' ORDER BY T2.close DESC LIMIT 1 Segment B of aerospace fuel lines is what netflix episode?,"SELECT netflix FROM table_name_99 WHERE segment_b = ""aerospace fuel lines""" Name the distance for Course of vittorio veneto to marina romea,"SELECT distance FROM table_name_3 WHERE course = ""vittorio veneto to marina romea""" How many restaurants have not obtained a minimum of 3 in their reviews?,SELECT COUNT(id_restaurant) FROM generalinfo WHERE review < 3 Great. What is that person's name?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN ( SELECT name FROM Person WHERE age > 40 ) show the train name and station name for each train.,"SELECT T2.name , T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id" Score of 8 - 1 happened on what day in December?,"SELECT december FROM table_name_27 WHERE score = ""8 - 1""" Who directed the episode watched by 2.01 million US viewers?,"SELECT directed_by FROM table_28466323_2 WHERE us_viewers__million_ = ""2.01""" "What are the names of poker players, ordered ascending by the number of final tables they have made?",SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made "What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?","SELECT MIN(against) FROM table_name_16 WHERE venue = ""twickenham, london"" AND status = ""five nations"" AND opposing_teams = ""ireland""" "Which Multiplier has a Front Side Bus of 200 mhz, and a Frequency of 1200 mhz?","SELECT multiplier FROM table_name_98 WHERE front_side_bus = ""200 mhz"" AND frequency = ""1200 mhz""" What is the record when the score was 2–0?,"SELECT record FROM table_name_45 WHERE score = ""2–0""" Find the distinct last names of all the students who have president votes and whose advisor is not 2192.,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""2192""" what are the names of the institution and building here,"SELECT T1.name , T2.institution FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id" What are the total order quantities of photo products?,"SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = ""photo""" "For each station, find its latitude and the minimum duration of trips that ended at the station.","SELECT T1.name , T1.lat , min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id" "Among all the menu pages with the appearance of the dish ""Clear green turtle"", how many of them have the dish at a stable price?",SELECT SUM(CASE WHEN T1.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.highest_price IS NULL List the IDs of all the directors who worked on French films.,SELECT T2.directorid FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'France' What is the sum of attendance for the games played at Los Angeles Rams?,"SELECT SUM(attendance) FROM table_name_39 WHERE opponent = ""at los angeles rams""" "What is in 2001, that has the year 2006, 2r, and in 2010 an A?","SELECT 2001 FROM table_name_71 WHERE 2006 = ""2r"" AND 2010 = ""a""" Find the id and name of the stadium where the largest number of injury accidents occurred.,"SELECT T1.id , T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" "What is the call sign for the station that uses the branding, mom's radio 101.5 tacloban?","SELECT callsign FROM table_17487395_1 WHERE branding = ""Mom's Radio 101.5 Tacloban""" Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?,"SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = ""yes"" AND steal_intercept_ball = ""yes""" Which entrant has a year after 1999?,SELECT entrant FROM table_name_59 WHERE year > 1999 How many actors have acted in both US or UK films?,SELECT COUNT(T1.actorid) FROM movies2actors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'USA' OR T2.country = 'UK' To which predicted relation class does the self-relation of the object sample in image no.5 belong?,SELECT T1.PRED_CLASS FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.IMG_ID = 5 AND T2.OBJ1_SAMPLE_ID = T2.OBJ2_SAMPLE_ID what's the highest acc percent score?,SELECT acc_percent FROM basketball_match order by acc_percent desc limit 1 What are all the employee ids and the names of the countries in which they work?,"SELECT T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" What is the difference between the actual manufacturing cost of product number 818 and the estimated manufacturing cost?,SELECT PlannedCost - ActualCost FROM WorkOrderRouting WHERE ProductID = 818 Which home team played against Hawthorn?,"SELECT home_team AS score FROM table_name_49 WHERE away_team = ""hawthorn""" What was the result for the 2012 ibjjf world jiu-jitsu championships event when the method was points (4 x 0)?,"SELECT result FROM table_name_95 WHERE event = ""2012 ibjjf world jiu-jitsu championships"" AND method = ""points (4 x 0)""" What are the amenities of the dorm that the oldest student lives in?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.age = ( select max ( age ) from student ) Which December has a Game of 37 and Points smaller than 47?,SELECT AVG(december) FROM table_name_35 WHERE game = 37 AND points < 47 What game was the final score 82-79?,"SELECT game FROM table_name_60 WHERE score = ""82-79""" who is the away team when the home team is luton town?,"SELECT away_team FROM table_name_11 WHERE home_team = ""luton town""" Who is the player from the United States in T4 place with a score of 68-73-68=209?,"SELECT player FROM table_name_77 WHERE country = ""united states"" AND place = ""t4"" AND score = 68 - 73 - 68 = 209" How many companies operates airlines in each airport?,"SELECT T3.id , count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id" When was the person(s) who were canonised before 1988 beatified?,SELECT beatified FROM table_name_17 WHERE canonised < 1988 What was Jack Nicklaus's score after round 1?,"SELECT MIN(score) FROM table_name_97 WHERE player = ""jack nicklaus""" What lead has the third David Nedohin?,"SELECT lead FROM table_name_98 WHERE third = ""david nedohin""" How many customers in this table?,SELECT count ( cust_name ) FROM customer How many ingredients are required to make the Raspberry Chiffon Pie?,SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' What are the maximum and minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm" What is the geust with a 0:1 result?,"SELECT geust FROM table_name_65 WHERE result = ""0:1""" List the id of students who never attends courses?,SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance) What is the average crowd for the home team of North Melbourne?,"SELECT AVG(crowd) FROM table_name_97 WHERE home_team = ""north melbourne""" For what motion picture did Samuel L. Jackson win the best supporting actor award before 1997?,"SELECT motion_picture FROM table_name_42 WHERE award = ""best supporting actor"" AND actor = ""samuel l. jackson"" AND year < 1997" What is the highest Pick that is wide receiver with overall of 29?,"SELECT MAX(pick__number) FROM table_name_60 WHERE position = ""wide receiver"" AND overall = 29" What are the region names affected by the storm with a number of deaths of least 10?,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10; "Among the employees born before 1980 , how many of them are single?",SELECT COUNT(BusinessEntityID) FROM Employee WHERE MaritalStatus = 's' AND BirthDate < '1980-1-1' What is the rank of Rmax Rpeak ( Pflops ) of 17.173 20.133?,"SELECT AVG(rank) FROM table_name_7 WHERE rmax_rpeak___pflops__ = ""17.173 20.133""" Find the name of the person who has no student friends.,SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' "what is the average bronze when gold is more than 0, the nation is greece and silver is less than 0?","SELECT AVG(bronze) FROM table_name_75 WHERE gold > 0 AND nation = ""greece"" AND silver < 0" Find the name of the airports located in Cuba or Argentina.,SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina' In which country is the store where Hector Poinexter rents equipment located?,SELECT T5.country FROM customer AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN address AS T3 ON T2.address_id = T3.address_id INNER JOIN city AS T4 ON T3.city_id = T4.city_id INNER JOIN country AS T5 ON T4.country_id = T5.country_id WHERE T1.first_name = 'HECTOR' AND T1.last_name = 'POINDEXTER' Find the average and oldest age for students with different sex.,"SELECT avg(age) , max(age) , sex FROM student GROUP BY sex" What League was played in 2007?,SELECT league FROM table_2380212_1 WHERE year = 2007 How many track numbers were called song 2?,"SELECT COUNT(track_no) FROM table_28715942_3 WHERE track = ""Song 2""" How many Gold medals did Japan receive who had a Total of more than 1 medals?,"SELECT SUM(gold) FROM table_name_39 WHERE nation = ""japan"" AND total > 1" what is the game when march is 15?,SELECT SUM(game) FROM table_name_12 WHERE march = 15 hi. can you tell me how many players are from OU College?,"SELECT count ( * ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = ""OU""" "Yes, what is their speed?","SELECT Roller_Coaster_ID , status, Speed FROM roller_coaster WHERE LENGTH > 3300 and Height > 100" What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?,"SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor" "Please list the titles of all the movie produced by production company ""Universal Pictures"".",SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Universal Pictures' "Which Joined has a Nickname of knights, and an Enrollment larger than 2,960?","SELECT SUM(joined) FROM table_name_61 WHERE nickname = ""knights"" AND enrollment > 2 OFFSET 960" "What is the highest Rank, when Director is ""Henry Hathaway""?","SELECT MAX(rank) FROM table_name_63 WHERE director = ""henry hathaway""" How many times has Bob Fosse been nominated?,"SELECT count ( * ) FROM musical WHERE Nominee = ""Bob Fosse""" Which season was 2nd position?,"SELECT season FROM table_name_84 WHERE position = ""2nd""" Please list the titles of the podcasts for which the author whose ID is F7E5A318989779D has written a review.,SELECT T2.title FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.author_id = 'F7E5A318989779D' Find the name of route that has the highest number of deliveries.,SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY COUNT(*) DESC LIMIT 1 Name the player who has the most NHL points in draft year.,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.P = ( SELECT MAX(P) FROM SeasonStatus ) List the names of people that are not employed by any company,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment) Where did someone run a 58:33?,"SELECT event_place FROM table_name_25 WHERE time = ""58:33""" what is the average number of faculty members? | Do you mean the average number of FacID? | yes,SELECT AVG ( FacID ) FROM Faculty Find how many different affiliation types there are.,SELECT count(DISTINCT affiliation) FROM university who are all the visitor with a record of 25–18,"SELECT visitor FROM table_11964047_7 WHERE record = ""25–18""" Find the captain rank that has no captain in Third-rate ship of the line class.,SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' What CFL teams are part of Simon Fraser college?,"SELECT cfl_team FROM table_10975034_4 WHERE college = ""Simon Fraser""" "Which Car # has a Make of toyota, and a Driver of mike skinner, and a Pos larger than 3?","SELECT MAX(car__number) FROM table_name_19 WHERE make = ""toyota"" AND driver = ""mike skinner"" AND pos > 3" Which city in Texas hosts the Frank Erwin center?,"SELECT city FROM table_name_58 WHERE state = ""texas"" AND venue = ""frank erwin center""" How many built year same in this table? | did you mean 'How many built year saved this table'? | Yes.,SELECT count ( distinct Built_Year ) FROM ship what is the maximum season where leading goalkicker is scott simister (54),"SELECT MAX(season) FROM table_1165048_1 WHERE leading_goalkicker = ""Scott Simister (54)""" Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?,"SELECT lead FROM table_name_70 WHERE second = ""cathrine norberg"" AND third = ""anna rindeskog""" What is the total of laps run by the driver with a grid under 17 and a time of +5.088?,"SELECT SUM(laps) FROM table_name_3 WHERE time = ""+5.088"" AND grid < 17" "How many players, who were drafted by Anaheim Ducks in 2008, have played for U.S. National U18 Team?",SELECT COUNT(DISTINCT T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.overallby = 'Anaheim Ducks' AND T1.draftyear = 2008 AND T2.TEAM = 'U.S. National U18 Team' "Show the name, open date, and organizer for all churches.","SELECT name , open_date , organized_by FROM Church" "Which papers' first author is affiliated with an institution in the country ""Japan"" and has last name ""Ohori""? Give me the titles of the papers.","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""Japan"" AND t2.authorder = 1 AND t1.lname = ""Ohori""" Which part fault requires the most number of skills to fix? List part id and name.,"SELECT T1.part_id , T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1" Name the eliminated 7th voted out day 21,"SELECT eliminated FROM table_24233848_2 WHERE finish = ""7th voted Out Day 21""" Which year did Maryland hold the title with Railroaders LL Brunswick?,"SELECT year FROM table_13012165_1 WHERE maryland = ""Railroaders LL Brunswick""" What is the Twitter ID of Emanuel Cleaver?,SELECT T1.twitter_id FROM `social-media` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name = 'Emanuel' AND T2.last_name = 'Cleaver' What is the total number of bronze medals for teams with less than 0 silver?,SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0 "For each station, return its longitude and the average duration of trips that started from the station.","SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id" What are their names? | Do you mean the photos name | Yes,SELECT T1.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id group by T1.name having T2.brand = 'Olympus' What are the first names of all students who live in the dorm with the most amenities?,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1) "Which Rank has a Name of tsvetelina kirilova, and a Result smaller than 55.97?","SELECT MAX(rank) FROM table_name_73 WHERE name = ""tsvetelina kirilova"" AND result < 55.97" How many transfer windows coming from Crystal Palace?,"SELECT COUnT AS transfer_window FROM table_17596418_4 WHERE moving_from = ""Crystal palace""" "Set 1 of 25–20, what was Set 2?","SELECT set_2 FROM table_name_38 WHERE set_1 = ""25–20""" How many people directed episode 2?,SELECT COUNT(directed_by) FROM table_29545336_2 WHERE no = 2 What is matk user id,SELECT u_id FROM useracct WHERE name = 'Mark' What TV channel had a license from Boston?,"SELECT channel_tv___dt__ FROM table_1353096_2 WHERE city_of_license_market = ""Boston""" How many candidates are there?,SELECT COUNT(*) FROM candidate Which Round has a Pick of 174?,SELECT round FROM table_name_47 WHERE pick = 174 "What is listed for the Elevator, that also has the Cardinalatial title of Deacon of S. Maria in Portico?","SELECT elevator FROM table_name_78 WHERE cardinalatial_title = ""deacon of s. maria in portico""" "What is the average for matches with a prize money amount of £3,000?","SELECT AVG(matches) FROM table_name_56 WHERE prize_money = ""£3,000""" Please list the team names which have at least 3 all-star players.,SELECT T1.tmID FROM players_teams AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) >= 3 Which stories have a rank of 14?,"SELECT stories FROM table_name_43 WHERE rank = ""14""" What is the Round against Gillingham with an Against smaller than 3?,"SELECT round FROM table_name_40 WHERE opposing_team = ""gillingham"" AND against < 3" Which director did Bill Thompson work the most with?,SELECT director FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T1.name = T2.movie WHERE T2.`voice-actor` = 'Bill Thompson' GROUP BY director ORDER BY COUNT(director) DESC LIMIT 1 "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id" "What was the week of the game played December 6, 1964?","SELECT SUM(week) FROM table_name_75 WHERE date = ""december 6, 1964""" Find the name of the shops that do not hire any employee.,SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring) What date was the final Score of 17-34?,"SELECT date FROM table_name_35 WHERE final_score = ""17-34""" How many people attended Melbourne's away game?,"SELECT SUM(crowd) FROM table_name_4 WHERE away_team = ""melbourne""" What is the margin of victory in WGC-Accenture Match Play Championship?,"SELECT margin_of_victory FROM table_name_98 WHERE tournament = ""wgc-accenture match play championship""" Show the party and the number of drivers in each party.,"SELECT party , count(*) FROM driver GROUP BY party" "What is the lowest Lost for são paulo railway, Points more than 21?","SELECT MIN(lost) FROM table_name_46 WHERE team = ""são paulo railway"" AND points > 21" Name the fastest lap for the brazilian grand prix,"SELECT fastest_lap FROM table_name_39 WHERE grand_prix = ""brazilian grand prix""" What position does the player from Winston-Salem State play?,"SELECT position FROM table_name_89 WHERE school_club_team = ""winston-salem state""" State the number of athletes in the 1984 Summer Olympic Games who were more than 50 years old.,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1984 Summer' AND T2.age > 50 How many prefectures have a population density of 16 people/kilometers squared?,"SELECT COUNT(pop_density___km²_) FROM table_221398_1 WHERE number_in_map = ""16""" Find the name of tracks which are in both Movies and music playlists.,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' "What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?","SELECT authors FROM table_name_90 WHERE novelty = ""gen nov"" AND location = ""south africa"" AND name = ""criocephalosaurus""" "How many times has the score been 6–4, 3–6, [11–13]?","SELECT COUNT(opponent) FROM table_29163303_4 WHERE score = ""6–4, 3–6, [11–13]""" What are the bed type and name of all the rooms with traditional decor?,"SELECT roomName , bedType FROM Rooms WHERE decor = ""traditional"";" What is the average BMI of all the coaches who have gotten in the Hall of Fame?,SELECT SUM(T1.weight / (T1.height * T1.height)) / COUNT(T1.coachID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID "For each player, what are their name, season, and country that they belong to?","SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country" What is the highest acc percent score in the competition?,SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?",SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4 "Which 2008 has a 2009 of A, and a 2010 of A, and a 2012 of 1r, and a Tournament of cincinnati masters?","SELECT 2008 FROM table_name_2 WHERE 2009 = ""a"" AND 2010 = ""a"" AND 2012 = ""1r"" AND tournament = ""cincinnati masters""" "For the album Board Up the House, what is the contribution?","SELECT contribution FROM table_name_49 WHERE album = ""board up the house""" "What was the loss of the game against the Yankees that was attended by 27,652?","SELECT loss FROM table_name_45 WHERE opponent = ""yankees"" AND attendance = ""27,652""" What's Italy's rank?,"SELECT SUM(rank) FROM table_name_36 WHERE country = ""italy""" How many balance of customer id 1? | Do you want the saving balance of the customer with id 1? | Yes,SELECT balance from savings where custid = 1 "Find the IDs of customers whose name contains ""Diana"".","SELECT customer_id FROM customers WHERE customer_name LIKE ""%Diana%""" What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?,"SELECT result FROM table_name_43 WHERE category = ""outstanding supporting actress in a drama series"" AND year = 2009" What are the cities whose population is between 160000 and 900000?,SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000 What are the distinct template type descriptions for the templates ever used by any document?,SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID How many attended game(s) against the boston patriots?,"SELECT attendance FROM table_17779448_1 WHERE opponent = ""Boston Patriots""" "How large is the ROM? | What do you mean by ROM? | When the ""Nokia Corporation"" company produces phones, what is the average ROM size implemented into a certain phone.","SELECT T1.ROM_MiB FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"" order by T1.ROM_MiB desc limit 1" What is the status of bleeding time for thrombocytopenia? ,"SELECT bleeding_time FROM table_20592988_1 WHERE condition = ""Thrombocytopenia""" "how many are assistant professors? | Did you mean to ask for the number of assistant professors in total? | Well, yes.","SELECT COUNT ( * ) FROM Faculty WHERE Rank = ""AsstProf""" What season had a 14th position?,"SELECT season FROM table_name_47 WHERE position = ""14th""" What year was yellow jersey of Jacques Anquetil?,"SELECT MIN(year) FROM table_name_66 WHERE yellow_jersey = ""jacques anquetil""" Which Date has a Winning score of −15 (71-69-68-65=273)?,SELECT date FROM table_name_98 WHERE winning_score = −15(71 - 69 - 68 - 65 = 273) How many product quantity does order item 1 have ?,SELECT product_quantity from Order_Items where order_item_id = 1 How many games did the coach who received the first-ever Second Team All-Star award play before receiving such award?,"SELECT SUM(T1.g) FROM Coaches AS T1 INNER JOIN ( SELECT coachID, year FROM AwardsCoaches WHERE award = 'Second Team All-Star' ORDER BY year LIMIT 1 ) AS T2 ON T1.coachID = T2.coachID AND T1.year < T2.year" How many produce in the sierra foothills? | Did you want the number of appelations that produce wine in the Sierra Foothills? | yes,"SELECT COUNT ( * ) FROM appellations WHERE Area = ""Sierra Foothills""" "Between 8/1/2003 and 8/30/2004, how many checks were issued by Mini Gifts Distributors Ltd.? Please list their check numbers.",SELECT T1.checkNumber FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.paymentDate >= '2003-08-01' AND T1.paymentDate <= '2004-08-30' AND T2.customerName = 'Mini Gifts Distributors Ltd.' What is the IATA OF Akureyri?,"SELECT iata FROM table_name_30 WHERE city = ""akureyri""" How many customers are there?,SELECT count(*) FROM customers "What is the name of the game with odds of winning 1 in 4.23 with a top prize of $15,000?","SELECT game_name FROM table_name_92 WHERE odds_of_winning = ""1 in 4.23"" AND top_prize = ""$15,000""" How many weeks had an attendance of 60038?,SELECT COUNT(week) FROM table_16729071_1 WHERE attendance = 60038 What was the lowest attendance at Glenferrie Oval?,"SELECT MIN(crowd) FROM table_name_83 WHERE venue = ""glenferrie oval""" Please list the names of all the players that are over 90 kg and are right-shooted.,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 AND T1.shoots = 'R' Can you filter this list to show only the rows associated with money requested that are not between 120000 and 140000?,"Select investor from entrepreneur where investor in ( SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000 ) group by investor having count ( * ) > 1" "What is High Assists, when Team is ""@ Milwaukee""?","SELECT high_assists FROM table_name_83 WHERE team = ""@ milwaukee""" How many invoices do we have?,SELECT count(*) FROM Invoices What is the average time for a disabled student to be absent from school?,SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` Which Saturday has a Sunday of yes and a Evening of yes?,"SELECT saturday FROM table_name_80 WHERE sunday = ""yes"" AND evening = ""yes""" How many students are older than 20 in each dorm?,"SELECT count(*) , T3.dorm_name 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" "What is the value for 2011 when `a` is the value for 2009, and 4r is the value for 2013?","SELECT 2011 FROM table_name_89 WHERE 2009 = ""a"" AND 2013 = ""4r""" "What material is made with a rounded, plain edge?","SELECT composition FROM table_1307572_1 WHERE edge = ""Rounded, plain""" What are the names of high schoolers who both have friends and are liked?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id Who sang the song composed by Mariah Carey and Walter Afanasieff?,"SELECT performer_s_ FROM table_name_20 WHERE composer_s_ = ""mariah carey and walter afanasieff""" Find the customer who started a policy most recently.,SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT max(start_date) FROM policies) Name the tallest mountain on Himalaya and what is its height.,"SELECT Name, Height FROM mountain WHERE Mountains = 'Himalaya' ORDER BY Height DESC LIMIT 1" list the author ids,select author_id from courses "What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens?","SELECT score FROM table_name_83 WHERE opponent_team = ""belgium"" AND opponent = ""kirsten flipkens""" What are the ids of those?,SELECT T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count ( * ) = 1 "What is the Elector with a Faction of roman, and an Elevated with 1244, may 28?","SELECT elector FROM table_name_56 WHERE faction = ""roman"" AND elevated = ""1244, may 28""" "What is the lowest weight class (kg) that has sofia, bulgaria as the venue?","SELECT MIN(weight_class__kg_) FROM table_name_73 WHERE venue = ""sofia, bulgaria""" What is the team when the time is 1:11.19.89?,"SELECT team FROM table_name_36 WHERE time = ""1:11.19.89""" SORT ALL THE TOTAL BALANCE OF CHECKING AND SAVING ACCOUNT IN ASCENDING ORDER,SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance Return the id and type code of the template that is used for the greatest number of documents.,"SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1" What was the surface for the opponent Marcos Baghdatis?,"SELECT surface FROM table_name_3 WHERE opponent = ""marcos baghdatis""" "What are the different statement ids on accounts, and the number of accounts for each?","SELECT STATEMENT_ID , count(*) FROM Accounts GROUP BY STATEMENT_ID" What is the P max (bar) of the pistol with a P1 diameter of 12.09 mm?,"SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = ""12.09""" What was the record after the game on November 10?,"SELECT record FROM table_27755784_6 WHERE date = ""November 10""" The common of Chieri has what population density?,"SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE common_of = ""Chieri""" List out the total pages of the words that has repeated times more than 3000.,SELECT T1.pages FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences > 3000 GROUP BY T1.pages How many students are in each department?,"SELECT count(*) , dept_code FROM student GROUP BY dept_code" Find the number of funiture types produced by each manufacturer as well as the company names.,"SELECT count(*) , t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id" list out the all technician age,"SELECT technician_id, age FROM technician" Show all majors and corresponding number of students.,"SELECT major , count(*) FROM Student GROUP BY major" For livorno team mention all the manner of departure,"SELECT manner_of_departure FROM table_27114708_2 WHERE team = ""Livorno""" Who was the opponent before 1994 with bobby dye as the BSU head coach?,"SELECT opponent FROM table_name_86 WHERE bsu_head_coach = ""bobby dye"" AND year < 1994" What is the total sum of the donations paid with an optional support in projects that reach more than 300 students?,SELECT SUM(T2.dollar_amount) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.students_reached > 300 AND t2.donation_included_optional_support = 't' What was the home team in the February 22 game that Legace played in for the St. Louis Blues?,"SELECT home FROM table_name_78 WHERE decision = ""legace"" AND visitor = ""st. louis"" AND date = ""february 22""" When mount gauttier is the peak what is the island?,"SELECT island FROM table_18946749_1 WHERE peak = ""Mount Gauttier""" What was the loss of the game when the record was 20-16?,"SELECT loss FROM table_name_77 WHERE record = ""20-16""" What are the names of countries that have both players with position forward and players with position defender?,"SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Forward"" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" How many mountains are there in the United States?,SELECT COUNT(T1.Name) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Province = T3.Name WHERE T4.Name = 'United States' What is the continent name which Anguilla belongs to?,"SELECT Continent FROM country WHERE Name = ""Anguilla""" Return the phone and email of the customer with the first name Aniyah and last name Feest.,"SELECT customer_phone , customer_email FROM Customers WHERE customer_first_name = ""Aniyah"" AND customer_last_name = ""Feest""" What was the date of a game that had the odds of q rook?,"SELECT AVG(date) FROM table_name_33 WHERE odds = ""q rook""" "Among the students with a gpa of 3.1 to 3.7, how many of them are undergraduate students?",SELECT COUNT(student_id) FROM student WHERE gpa BETWEEN 3.1 AND 3.7 AND type = 'UG' How many female users use device model of MI 3?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T2.device_model = 'MI 3' Which year did the Angeles City based airline begin operations?,"SELECT commenced_operations FROM table_15637071_1 WHERE headquarters = ""Angeles City""" On which date was the record of 27-28-11 set?,"SELECT date FROM table_27537518_9 WHERE record = ""27-28-11""" What is the ratio of players with batting hands of left and right?,SELECT CAST(SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.Batting_hand = 'Right-hand bat' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHich Tournament has a Partnering of diego pérez and a Opponents in the final of christer allgardh carl limberger?,"SELECT tournament FROM table_name_39 WHERE partnering = ""diego pérez"" AND opponents_in_the_final = ""christer allgardh carl limberger""" Who played as Team 1 against Lomé i?,"SELECT team_1 FROM table_name_8 WHERE team_2 = ""lomé i""" "what is the tournament when the score is 2-6, 4-6?","SELECT tournament FROM table_name_1 WHERE score = ""2-6, 4-6""" "Select the average price of each manufacturer's products, showing the manufacturer's name.","SELECT avg(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" What are the names of all storms?,SELECT name FROM storm What was the attendance for the home team of Walsall?,"SELECT attendance FROM table_name_48 WHERE home_team = ""walsall""" Which driver has grid value of 18?,"SELECT driver FROM table_name_45 WHERE grid = ""18""" What is the Song choice when there is an Order # of 4?,"SELECT song_choice FROM table_name_26 WHERE order__number = ""4""" Can you tell me the names of the professors that make more than Valtchev?,"SELECT name FROM instructor WHERE salary > ( SELECT salary FROM instructor WHERE name = ""Valtchev"" ) " Which syndicate is associated with the stars & stripes yacht?,"SELECT syndicate FROM table_name_8 WHERE yacht = ""stars & stripes""" what is the budget for chandler?,"SELECT budget from department where building = ""Chandler""" Which Wins is the lowest one that has Events larger than 30?,SELECT MIN(wins) FROM table_name_70 WHERE events > 30 List the distinct ranges of the mountains with the top 3 prominence.,SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3 And which schools don't have a goalie player?,"SELECT cName FROM tryout WHERE pPos ! = ""goalie""" "Show the average amount of transactions for different lots, ordered by average amount of transactions.","SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)" What's the description of user 85981819's movie list with the most followers?,SELECT T1.list_description FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 ORDER BY T1.list_followers DESC LIMIT 1 How many product ids have the lowest price?,SELECT COUNT(DISTINCT ProductID) FROM Products WHERE Price = ( SELECT MAX(Price) FROM Products ) What is the largest crowd when melbourne plays at home?,"SELECT MAX(crowd) FROM table_name_98 WHERE home_team = ""melbourne""" What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in?,"SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = ""berlin international film festival""" show a list of the invoice numbers,SELECT invoice_number from Shipments What is channel 33.7's official call sign?,"SELECT call_sign FROM table_1404984_1 WHERE virtual_channel = ""33.7""" "what is the total rank on airdate march 30, 2011?","SELECT COUNT(rank_timeslot_) FROM table_27987623_4 WHERE airdate = ""March 30, 2011""" Name the city for los angeles stadium,"SELECT city FROM table_28281704_1 WHERE stadium = ""Los Angeles stadium""" "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.","SELECT brand , name FROM camera_lens ORDER BY max_aperture DESC" What is the average departure delay time of flights operated by American Airlines Inc.?,SELECT AVG(T1.DEP_DELAY) FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T2.Code = T1.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T1.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' What is the number of the sub categories for bikes?,SELECT COUNT(*) FROM ProductCategory AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductCategoryID = T2.ProductCategoryID WHERE T1.Name = 'Bikes' How about the names of all artists that prefer the genre tagore?,"SELECT artist_name FROM artist WHERE preferred_genre = ""tagore""" What was the highest peak position for the album one of the boys?,"SELECT MAX(peak_position) FROM table_name_48 WHERE album = ""one of the boys""" What are the titles of all the papers Google published?,"SELECT t3.title FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid where t1.name = ""Google""" Great! Can you put them in descending order of total number of stock?,SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum ( T1.Num_of_stock ) > 2000 ORDER BY sum ( T1.Num_of_stock ) DESC what is the molecules when the percent mass is 1.0?,"SELECT molecules FROM table_name_8 WHERE percent_of_mass = ""1.0""" What was the place when the score was 71-69-71=211?,SELECT place FROM table_name_22 WHERE score = 71 - 69 - 71 = 211 "In 1997, what was the final total?","SELECT total FROM table_name_57 WHERE year_s__won = ""1997""" Please give the ids of the oldest films that got the most ratings.,SELECT DISTINCT T1.movieid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T1.rating = 5 AND T2.year = 1 How many different cities do have some airport in the country of Greenland?,SELECT COUNT(DISTINCT city) FROM airports WHERE country = 'Greenland' How many countries uses the 1968 System of National Accounts methodology?,SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.' When arthur collins is the winner what is the reason?,"SELECT reason FROM table_28898948_3 WHERE winner = ""Arthur Collins""" Show origin and destination for flights with price higher than 300.,"SELECT origin , destination FROM Flight WHERE price > 300" What is the network with the play-by-play Marv Albert before 1994?,"SELECT network FROM table_name_66 WHERE play_by_play = ""marv albert"" AND year < 1994" How many pa were blank ends 7 and 5?,SELECT COUNT(pa) FROM table_24475186_2 WHERE blank_ends = 7 AND l = 5 How many teams finished in 8th in 2008?,"SELECT COUNT(team) FROM table_20140132_1 WHERE position_in_2008 = ""8th""" Name the minimum wins,SELECT MIN(wins) FROM table_19001175_1 Name the most total for south korea,"SELECT MAX(total) FROM table_30007505_1 WHERE country_territory = ""South Korea""" What position does allister brown play.,"SELECT position FROM table_2850912_12 WHERE player = ""Allister Brown""" what is the salary and name of the employee who has the most number of aircraft certificates?,"SELECT T1.name , T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1" Can you add up the room counts for each distinct apartment type code and display those values along with their respective department type codes?,"SELECT apt_type_code , sum ( room_count ) FROM Apartments GROUP BY apt_type_code" What is the score for the southern home team?,"SELECT score FROM table_name_78 WHERE home_team = ""southern""" What is the rank of the film directed by Kevin Costner?,"SELECT COUNT(rank) FROM table_name_14 WHERE director = ""kevin costner""" "What is the Physician name of the following Position Staff Internist ? tell me the SSN, and Employee ID, | Do you want the name, SSN, and employee ID? | yes","select name,SSN,employeeid from physician where position = ""Staff Internist""" "What team has a Rank Ret, and rider Frank A Applebee?","SELECT team FROM table_name_92 WHERE rank = ""ret"" AND rider = ""frank a applebee""" "What is the Score with a Home of colorado, and a Date with may 11?","SELECT score FROM table_name_72 WHERE home = ""colorado"" AND date = ""may 11""" what is the capacity of Codling? | Did you mean the capacity of the cinema with a name of Coding? | yes,"SELECT capacity FROM cinema where name = ""Codling""" What is the Chassis from before 1997 with a Lamborghini v12 engine?,"SELECT chassis FROM table_name_98 WHERE year < 1997 AND engine = ""lamborghini v12""" In what state is it located?,"SELECT T1.State_County FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" How many employees have that job title?,"SELECT count ( * ) from employees where title = ""Sales Manager""" "What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1?",SELECT SUM(high_score) FROM table_name_52 WHERE stump = 0 AND catches = 4 AND average < 56.1 AND inns > 14 Are there any other amenities that the dorm features? | For this dorm? Or for all dorms? | For this dorm.,"SELECT T1.dorm_name,T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Fawlty Towers'" "Return the apartment numbers of the apartments with type code ""Flat"".","SELECT apt_number FROM Apartments WHERE apt_type_code = ""Flat""" Which competition occurred after 1980 with a score of 0:5 in Jerusalem?,"SELECT competition FROM table_name_51 WHERE year > 1980 AND score = ""0:5"" AND location = ""jerusalem""" What is the average height of the players from the college named 'Yale University'?,SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University'; Please give me a list of cities whose regional population is over 10000000.,SELECT city FROM city WHERE regional_population > 10000000 What is the gender of the majority of Vivo phone users?,"SELECT T.gender FROM ( SELECT T2.gender, COUNT(T2.gender) AS num FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'vivo' GROUP BY T2.gender ) AS T ORDER BY T.num DESC LIMIT 1" What is the low silver medal total for nations with over 1 bronze ranked above 11?,SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 11 how many artist are there in total?,SELECT count ( * ) from artist How many of the movies rated 5 are rated by a user between the ages of 25 and 35?,SELECT COUNT(T1.movieid) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating = 5 AND T2.age BETWEEN 25 AND 35 Can you tell me the Record that has the Game of 19?,SELECT record FROM table_name_72 WHERE game = 19 What is the text of the tweet that got the most `likes`?,SELECT text FROM twitter WHERE Likes = ( SELECT MAX( Likes) FROM twitter ) What are all percentages of overweight or obese adults for obesity rank of 21?,SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obesity_rank = 21 What are the names of the vendors to which the company purchased its women's tights products?,SELECT DISTINCT T4.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN ProductSubcategory AS T3 ON T1.ProductSubcategoryID = T3.ProductSubcategoryID INNER JOIN Vendor AS T4 ON T2.BusinessEntityID = T4.BusinessEntityID WHERE T1.MakeFlag = 0 AND T1.Style = 'W' AND T3.Name = 'Tights' Where was the game when Police S.A. was the opponent?,"SELECT location FROM table_name_78 WHERE opponent_team = ""police s.a.""" Which country has the most restaurants with Italian food?,SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'Italian' GROUP BY T2.county ORDER BY COUNT(T1.id_restaurant) DESC LIMIT 1 What are the result description of the project whose detail is 'sint'?,SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' How many penalty minutes did the Montreal Canadiens have on average in the Stanley Cup Finals?,SELECT CAST(SUM(T2.PIM) AS REAL) / COUNT(T2.PIM) FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens' How many employees are under Gregory Cardenas?,SELECT COUNT(T1.employee_id) FROM employee AS T1 WHERE T1.supervisor = ( SELECT employee_id FROM employee WHERE first_name = 'Gregory' AND last_name = 'Cardenas' ) Please list the names of all the universities in Australia.,SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Australia' What are the titles of films that do not have a film market estimation?,SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation) what's Lyla last name?,"SELECT last_name FROM teachers where first_name = ""Lyla""" "What are the names of workshop groups in which services with product name ""film"" are performed?","SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = ""film""" How many points and bonuses did Kurt Busch get?,"SELECT pts_bns FROM table_27940569_1 WHERE driver = ""Kurt Busch""" Which month has the most happy hours?,SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1 * I have left the chat *,SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id group by T1.team_id ORDER BY sum ( T1.attendance ) desc limit 1 "Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?","SELECT award_ceremony FROM table_name_87 WHERE nominee = ""sarah travis"" AND category = ""best orchestrations""" List the business' name and risk category of businesses with a score greater than the 80% of average score of all businesses.,"SELECT DISTINCT T1.name, T3.risk_category FROM businesses AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN violations AS T3 ON T1.business_id = T3.business_id WHERE T2.score > 0.8 * ( SELECT AVG(score) FROM inspections )" How many different degree names are offered?,SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs "If Crazy In Love is the song choice, what is the theme?","SELECT theme FROM table_22736523_1 WHERE song_choice = ""Crazy In Love""" Thanks! I would be fine just know which is the tallest building. | Do you mean you want to know the name of the tallest building? Or anything else? | Yes! I want to know the name of the tallest building please.,SELECT Name FROM building ORDER BY Height_feet DESC LIMIT 1 How many apartments are there?,SELECT count ( * ) FROM Apartments When fc oberau is the oberbayern a what is the oberpfalz?,"SELECT oberpfalz FROM table_23224961_1 WHERE oberbayern_a = ""FC Oberau""" What was the crowd size at Junction Oval?,"SELECT MAX(crowd) FROM table_name_78 WHERE venue = ""junction oval""" "What is the average rank of the movie from Paramount Studios that grossed $200,512,643?","SELECT AVG(rank) FROM table_name_26 WHERE studio = ""paramount"" AND gross = ""$200,512,643""" Can you add the resident other detail to the results?,"SELECT T1.resident_id , T1.other_details , count ( * ) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count ( * ) DESC" Find the name of the department that has the fewest members.,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1 "What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total?",SELECT MAX(gold) FROM table_name_72 WHERE total > 13 AND silver > 9 AND bronze = 7 "Among the 4 clubs, how many members are there in total?",select count ( * ) from member_of_club Score of 2–3 ot on what date?,"SELECT date FROM table_name_76 WHERE score = ""2–3 ot""" What is the name of the poll source with the earliest date?,SELECT Poll_Source FROM candidate ORDER BY Date DESC LIMIT 1 Which week has a result showing L 24-10?,"SELECT week FROM table_name_82 WHERE result = ""l 24-10""" I would like to know the names of all the physicians,SELECT name FROM physician Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.,SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64 What is the surface when the us open is the championship in the year 1979?,"SELECT surface FROM table_22860698_2 WHERE championship = ""US Open"" AND year = 1979" Name the game cost for merged with new york central to form penn central,"SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = ""Merged with New York Central to form Penn Central""" "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?","SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2" List the names of wrestlers that have not been eliminated.,SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination) State the name of u id 2 on the list?,SELECT name FROM useracct WHERE u_id = 2 Please list the zip_codes of all the residential areas in Huntingdon county with over 30 employees.,SELECT DISTINCT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'HUNTINGDON' AND T1.employees > 30 What is the average horsepower of the cars before 1980?,SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980 "Can you show me a list of colleges that have an enrollment of 15,000 or higher? | Do you want the names of the schools that have an enrollment of 15000 or higher? | Can you provide the name and the location of the schools that have an enrollment of 15,000 or higher?","SELECT School, Location FROM university WHERE enrollment > 15000" What is the Record of the game on November 15 against Visitor Chicago Black Hawks with a Score of 1–3?,"SELECT record FROM table_name_32 WHERE score = ""1–3"" AND visitor = ""chicago black hawks"" AND date = ""november 15""" What identities do the genus/species arabidopsis thaliana have? ,"SELECT identity FROM table_15417439_1 WHERE genus_species = ""Arabidopsis thaliana""" How frequently do the employee with the least number of sick leave hours get paid?,SELECT T2.PayFrequency FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.SickLeaveHours ASC LIMIT 1 "What is the number of the leading scorer for keyarena 16,640?","SELECT COUNT(leading_scorer) FROM table_11964047_8 WHERE attendance = ""KeyArena 16,640""" "What is Country, when Player is ""Dutch Harrison""?","SELECT country FROM table_name_8 WHERE player = ""dutch harrison""" What's the lowest goal difference when the position is higher than 16?,SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16 Which organisation type hires most research staff?,SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1 "What is the original price of the ""Black Avery Flip-Chart Easel Binder""?",SELECT T1.Sales / (1 - T1.Discount) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Blackstonian Pencils' Show me professor office for professors with a MA degree,SELECT PROF_OFFICE FROM professor WHERE prof_high_degree = 'MA' What Tournament has a Winning score of −16 (66-64-67=197)?,SELECT tournament FROM table_name_89 WHERE winning_score = −16(66 - 64 - 67 = 197) "How many credits is ""Accounting"" worth?",select credits from course where title = 'Accounting' What is the total price of all the orders made by customers in Germany?,SELECT SUM(T3.o_totalprice) FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN orders AS T3 ON T2.c_custkey = T3.o_custkey WHERE T1.n_name = 'GERMANY' What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?,SELECT AVG(total) FROM table_name_38 WHERE nominated_by_the_taoiseach = 0 AND agricultural_panel > 5 What are the names of the players who played for Acadie-Bathurst Titan during the regular season in 1998-1999?,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Regular Season' AND T1.TEAM = 'Acadie-Bathurst Titan' What's the abbreviation for libya?,"SELECT abbreviation FROM table_name_88 WHERE country = ""libya""" Which three countries does the Amazonas flow through? Give the full name of the countries.,SELECT DISTINCT T4.Name FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River INNER JOIN country AS T4 ON T4.Code = T2.Country WHERE T3.Name = 'Amazonas' What is the average market value,select avg ( market_value ) from company What is the latest result where a person from the Philippines won?,"SELECT MAX(year) FROM table_name_72 WHERE nation_represented = ""philippines""" What label is from the Region of Spain?,"SELECT label FROM table_name_93 WHERE region = ""spain""" List the names of the customers from India.,"SELECT T4.first_name, T4.last_name FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id INNER JOIN customer AS T4 ON T3.address_id = T4.address_id WHERE T1.country = 'India'" of the players with an overall rating greater than 80 how many are right-footed?,SELECT count ( * ) FROM Player_Attributes WHERE overall_rating > 80 and preferred_foot = 'right' What is the ICAO for the destination in Armenia?,"SELECT icao FROM table_name_80 WHERE country = ""armenia""" "What is the Score when there was a hard surface and the Championship is new haven , usa?","SELECT score FROM table_name_93 WHERE surface = ""hard"" AND championship = ""new haven , usa""" What was the original price of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?,SELECT DISTINCT T2.Sales / (1 - T2.Discount) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' AND T2.`Order Date` = '2014-09-10' What is the name of the department with the fewest members?,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1 How many dishes appeared on a menu more than once?,SELECT COUNT(*) FROM Dish WHERE times_appeared > menus_appeared Who is the CBSA officer of the post point in the area with the highest number of employees?,SELECT T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.employees = ( SELECT MAX(employees) FROM zip_data ) What was the date of the week 9 game?,SELECT date FROM table_name_76 WHERE week = 9 "What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)?","SELECT industrial_use__m_3__p_yr__in__percentage_ FROM table_name_32 WHERE total_freshwater_withdrawal__km_3__yr_ < 82.75 AND agricultural_use__m_3__p_yr__in__percentage_ = ""1363(92%)""" List down the phone numbers of employees who did Canvass inspection.,SELECT DISTINCT T1.phone FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_type = 'Canvass' "What are the names of parties that have both delegates on ""Appropriations"" committee and","SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Appropriations"" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Economic Matters""" What is the name of that phone?,SELECT Name FROM phone WHERE Phone_id NOT IN ( SELECT Phone_ID FROM phone_market ) What is the Wade-Giles translation of the Pinyin xīn rú yuánhóu?,"SELECT wade_giles FROM table_name_44 WHERE pinyin = ""xīn rú yuánhóu""" Which year was the goalie who had the most postseaon shots Against in 2008 born?,SELECT T1.birthYear FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2008 ORDER BY T2.PostSA DESC LIMIT 1 Find the names of the courses that have just one student enrollment.,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1 Name the total number of rank timeslot for 18-49 being 3.1,"SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE rating__18_49_ = ""3.1""" What is the score of the home team tottenham hotspur?,"SELECT score FROM table_name_94 WHERE home_team = ""tottenham hotspur""" What date did they play in Cleveland Municipal Stadium?,"SELECT date FROM table_14423274_3 WHERE game_site = ""Cleveland Municipal Stadium""" "What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4?",SELECT SUM(2000) FROM table_name_88 WHERE 1969 = 54.3 AND 1979 < 48.4 "Which Game has a Team of at san antonio, and a Record of 3-3?","SELECT game FROM table_name_86 WHERE team = ""at san antonio"" AND record = ""3-3""" Find the distinct last names of all the students who have president votes and whose advisor is not 2192.,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""2192""" "Among the businesses which have short length of review, which one located in Phoenix?",SELECT DISTINCT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Phoenix' AND T2.review_length = 'Short' "Of the 3 staff members living in Connecticut, can you tell me which one joined the staff first?","SELECT T2.first_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.state_province_county = ""Connecticut"" order by date_joined_staff asc limit 1" Which player was the high points scorer during the game with an end score of W 93-85?,"SELECT high_points FROM table_name_77 WHERE score = ""w 93-85""" "Where the exports is 13,608.65, what is the total trade?","SELECT total_trade FROM table_26160007_1 WHERE exports = ""13,608.65""" What's the average milliseconds of the Rock Tracks?,"SELECT AVG ( T2.Milliseconds ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" Who is the customer who purchased the largest total cost of products in a single order?,"SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` GROUP BY T1.`Order ID`, T2.`Customer Name` ORDER BY SUM((T1.Sales / (1 - T1.Discount)) * T1.Quantity - T1.Profit) DESC LIMIT 1" Which project in Brooklyn that have the highest request of resources? State the the project ID including all of the name of item requested.,"SELECT T1.projectid, T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_city LIKE 'Brooklyn' GROUP BY T1.item_name ORDER BY COUNT(T1.item_name) DESC LIMIT 1" How many events have a Top-25 of 1 and made less than 1 cut?,SELECT MAX(events) FROM table_name_38 WHERE top_25 = 1 AND cuts_made < 1 Which level has wale as artist 1?,"SELECT level FROM table_23649244_1 WHERE artist_1 = ""Wale""" What is the date of the game at Commerce Bank Ballpark?,"SELECT date FROM table_name_67 WHERE field = ""commerce bank ballpark""" What is the smallest rank for new zealand?,"SELECT MIN(rank) FROM table_name_23 WHERE country = ""new zealand""" what's the ungegn for the ១០០ khmer?,"SELECT ungegn FROM table_name_23 WHERE khmer = ""១០០""" Who is the studio host for the year 2010?,"SELECT studio_host FROM table_22485543_1 WHERE year = ""2010""" can you show me a list of allergy name?,SELECT Allergy FROM Allergy_Type How many lesson does customer with first name Ray took?,"SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" What is the name and capacity for the stadium with the highest average attendance?,"SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1" "Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian?","SELECT MIN(tonnage___grt__) FROM table_name_84 WHERE date = ""26 september 1940"" AND ship_name = ""ashantian""" What is the race class with most number of races.,SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1 Which year has the most elite users?,SELECT year_id FROM Elite GROUP BY year_id ORDER BY COUNT(user_id) DESC LIMIT 1 What is the result/score that has 6-5 as the record?,"SELECT result_score FROM table_name_45 WHERE record = ""6-5""" How many different users wrote some reviews?,SELECT count(DISTINCT u_id) FROM review Which location sold more bottles of beer?,SELECT T2.LocationName FROM rootbeer AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.ContainerType = 'Bottle' GROUP BY T2.LocationID ORDER BY COUNT(T1.LocationID) DESC LIMIT 1 "Among the students with high salary, what is total number of students with a GPA higher than 3?",SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high' AND T2.gpa > 3 Which cfl team is manitoba college?,"SELECT cfl_team FROM table_21321804_1 WHERE college = ""Manitoba""" "How many players were from high point, nc?","SELECT COUNT(mlb_draft) FROM table_11677100_15 WHERE hometown = ""High Point, NC""" "How many among them are with ""success""?",SELECT count ( * ) FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' and Event_Details = 'Success' Which team has 10 losses?,SELECT team FROM table_name_33 WHERE lost = 10 What is the name and job title of the staff who was assigned the latest?,"SELECT T1.staff_name , T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1" Which California State University is located in Kern County?,"SELECT campus from campuses where campus like ""%California State University%"" and county = ""Kern""" what is the average price of wine not produced in Sanoma county,SELECT avg ( t2.price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County ! = 'Sonoma' How many episodes have won the award for Outstanding Animated Program (Programming Under One Hour) with less than 100 votes? Calculate the percentage of episodes with less than 100 votes out of total episodes.,"SELECT SUM(CASE WHEN T2.votes < 100 THEN 1 ELSE 0 END) AS num , CAST(SUM(CASE WHEN T2.votes < 100 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Award AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE T1.award = 'Outstanding Animated Program (For Programming Less Than One Hour)';" What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?,"SELECT AVG(gold) FROM table_name_99 WHERE nation = ""russia (rus)"" AND silver < 2" "Among the countries whose agriculture percentage of the GDP is under 50%, how many of them have an area of over 8000000?",SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Agriculture < 50 AND T1.Area > 8000000 Who was the away team when Hawthorn was the home team?,"SELECT away_team AS score FROM table_name_23 WHERE home_team = ""hawthorn""" What is the Opponent of the game on September 26?,"SELECT opponent FROM table_name_40 WHERE date = ""september 26""" "What was the school/club after round 12, and picked smaller than 342?",SELECT school_club_team FROM table_name_95 WHERE round > 12 AND pick < 342 Find the names of the swimmers who have no record.,SELECT name FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record) Who had the most the most rebounds and how many did they have on April 1?,"SELECT high_rebounds FROM table_27700530_14 WHERE date = ""April 1""" "Which Grid that has a Rider of mike di meglio, and Laps larger than 23?","SELECT AVG(grid) FROM table_name_23 WHERE rider = ""mike di meglio"" AND laps > 23" "Show the name, average attendance, total attendance for stadiums where no accidents happened.","SELECT name , average_attendance , total_attendance FROM stadium EXCEPT SELECT T2.name , T2.average_attendance , T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id" "What are all the policy types of the customer named ""Dayana Robel""?","SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" What Player with a Place of T10 had a Score of 80-70-72-72=294?,"SELECT player FROM table_name_8 WHERE place = ""t10"" AND score = 80 - 70 - 72 - 72 = 294" "List the camera lens names containing substring ""Digital"".","SELECT name FROM camera_lens WHERE name LIKE ""%Digital%""" Give the date of birth of the 2014 Orange Cap winner.,SELECT T2.DOB FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id WHERE T1.Season_Year = 2014 AND T1.Orange_Cap IS NOT NULL Name the party or first elected is 1920,SELECT party FROM table_1342393_16 WHERE first_elected = 1920 what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7%,"SELECT district FROM table_1341586_39 WHERE candidates = ""Curt Weldon (R) 61.3% Bill Spingler (D) 38.7%""" What is the pick # of cfl team bc lions (7),"SELECT pick__number FROM table_26996293_7 WHERE cfl_team = ""BC Lions (7)""" What is the average salary of the employees who takes charge of the sales of over 4 territories?,SELECT AVG(T1.Salary) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.EmployeeID HAVING COUNT(T2.TerritoryID) > 4 How many climbers are from each country?,"SELECT Country , COUNT(*) FROM climber GROUP BY Country" Hi I was wondering if you could tell me what the fastest roller coaster is?,SELECT name FROM roller_coaster order BY speed desc limit 1 please show the description of the Aircraft Robinson R-22,SELECT Description from aircraft WHERE Aircraft = 'Robinson R-22' What is the percentage difference of River City sale compare to Frostie?,SELECT CAST((SUM(CASE WHEN T3.BrandName = 'River City' THEN T2.PurchasePrice ELSE 0 END) - SUM(CASE WHEN T3.BrandName = 'Frostie' THEN T2.PurchasePrice ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T3.BrandName = 'Frostie' THEN T2.PurchasePrice ELSE 0 END) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID Which Series 2 has a Series 3 of deborah meaden?,"SELECT series_2 FROM table_name_35 WHERE series_3 = ""deborah meaden""" Where was the incident of 2009-09-05?,"SELECT location FROM table_name_28 WHERE date = ""2009-09-05""" "list all the names of programs, ordering by launch time.",SELECT name FROM program ORDER BY launch What are the names of body builders?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID What are their customer id's?,SELECT customer_id FROM customers How many shops have more staff than shop 10?,SELECT count ( * ) from shop where num_of_staff > ( select num_of_staff from shop where shop_id = 10 ) Name the rank for wins of 0 and points of 2,SELECT rank FROM table_name_10 WHERE wins = 0 AND points = 2 Find the first name and last name of the instructor of course that has course name,"SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = ""COMPUTER LITERACY""" What is the total number in class for the Whitehaven Coal?,"SELECT SUM(number_in_class) FROM table_name_13 WHERE owner = ""whitehaven coal""" "show the customer ids, first name and last name with card type and number | Do you mean card type code? | show the customer ids and card number","SELECT customer_id , card_number FROM Customers_cards" What is the score 1 for the major league soccer all-star game?,"SELECT score1 FROM table_name_20 WHERE competition_or_tour = ""major league soccer all-star game""" "What is the lowest number of loses of the club with more than 42 goals scored, more than 20 goals conceded, and less than 3 draws?",SELECT MIN(loses) FROM table_name_30 WHERE goals_scored > 42 AND goals_conceded > 20 AND draws < 3 OK. What is it for Nancy Edwards?,"SELECT phone FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards""" Which prod code was series 11?,SELECT production_code FROM table_25996938_1 WHERE no_in_series = 11 When was the date in 1786?,SELECT date FROM table_name_82 WHERE year = 1786 What is the CFL Team with #48 as the pick number?,SELECT cfl_team FROM table_name_98 WHERE pick__number = 48 List the full names and phone numbers of clients that were from the Pacific.,"SELECT T1.first, T1.middle, T1.last, T1.phone FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Pacific'" Sum the total game sales in every region for platform ID 9658.,SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.game_platform_id = 9658 Name the pinyin for where population is 44617,SELECT pinyin FROM table_1638437_2 WHERE population = 44617 Who is the pitcher from the 1983 season in location Kingdome?,"SELECT pitcher FROM table_name_40 WHERE location = ""kingdome"" AND season = ""1983""" "What Label has a Region of united states, and a Format of cassette?","SELECT label FROM table_name_68 WHERE region = ""united states"" AND format = ""cassette""" "List the character names in the ""Open Water"" movie.",SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Open Water' How many points did the away team of st kilda score?,"SELECT away_team AS score FROM table_name_84 WHERE away_team = ""st kilda""" "Oh, I see, and what are the names of the players from UCLA?",SELECT Player FROM match_season where College = 'UCLA' What is the lowest amount of wins of someone who has 2 losses?,SELECT MIN(wins) FROM table_name_96 WHERE losses = 2 "what is the least draws when the position is lower than 5, the points is 62 and played is more than 38?",SELECT MIN(draws) FROM table_name_98 WHERE position < 5 AND points = 62 AND played > 38 What company collaborated with non-hodgkin lymphoma?,"SELECT collaboration FROM table_name_5 WHERE indication = ""non-hodgkin lymphoma""" What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?,"SELECT COUNT(attendance) FROM table_name_2 WHERE opponent = ""middlesbrough"" AND result = ""3-1""" What are the order details of the products with price higher than 2000?,SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 Can you display the salary and name of the employees?,"SELECT salary, name from employee" "How many team franchises are active, with active value 'Y'?",SELECT COUNT(*) FROM team_franchise WHERE active = 'Y' how many times was nation counted where athlete is shuhei nishida category:articles with hcards,"SELECT COUNT(nation) FROM table_22355_50 WHERE athlete = ""Shuhei Nishida Category:Articles with hCards""" "Which home team has more than 19,000 spectators?",SELECT home_team FROM table_name_73 WHERE crowd > 19 OFFSET 000 Find the name of tracks which are in Movies playlist but not in music playlist.,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' How many players 89 points?,SELECT COUNT(blocks) FROM table_25342713_5 WHERE points = 89 List down the territory IDs and descriptions existed in Southern region.,"SELECT T1.TerritoryID, T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Southern'" "What is the average attendance on October 9, 1983?","SELECT AVG(attendance) FROM table_name_11 WHERE date = ""october 9, 1983""" What about Celine?,SELECT count ( * ) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid and T1.name = 'Celine Dion' Which job level is O'Rourke at?,SELECT job_lvl FROM employee WHERE lname = 'O''Rourke' What band performed when Samantha Mumba presented?,"SELECT band FROM table_name_80 WHERE female = ""samantha mumba""" Who is the team captain for the team with sparkasse (düsseldorf) as the shirt sponsor?,"SELECT team AS captain FROM table_name_41 WHERE shirt_sponsor = ""sparkasse (düsseldorf)""" Show the working years of managers in descending order of their level.,SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC What is the Result when the memphis grizzlies ( 2) were the loser?,"SELECT result FROM table_name_10 WHERE loser = ""memphis grizzlies ( 2)""" What is the name and capacity for the stadium with highest average attendance?,"SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1" On what Date is Tie no 19?,"SELECT date FROM table_name_36 WHERE tie_no = ""19""" How many colleges have enrollment greater than 18000?,SELECT count ( * ) FROM College WHERE enr > 18000 Calculate the sum of all the total amount donated to the essay project titled 'Lets Share Ideas' which were paid through paypal and indicate the city and poverty level.,"SELECT SUM(T3.donation_total), school_city, poverty_level FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Lets Share Ideas' AND T3.payment_method = 'paypal'" "For the client who made the complaint call ""CR0217298"", what was his/her birthday?","SELECT T1.month, T1.day FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Complaint ID` = 'CR0217298'" "Name the date with a hard surface and tournament of usa f5, brownsville","SELECT date FROM table_name_83 WHERE surface = ""hard"" AND tournament = ""usa f5, brownsville""" What is the listed Status that has the Province of Ontario and Rank of 86?,"SELECT status FROM table_name_19 WHERE province = ""ontario"" AND rank = 86" Student21 is enlisted in which organization and has the student been absent?,"SELECT T2.month, T1.organ FROM enlist AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.`name` = T2.`name` WHERE T1.name = 'student21'" How much higher is James Johnson's salary from the minimum salary of his title?,"SELECT CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) - CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL) AS diff FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.lastname = 'Johnson' AND T1.firstname = 'James'" What's the distance of the course of stage 4?,"SELECT distance FROM table_name_73 WHERE stage = ""4""" What are the population and life expectancies in Brazil?,"SELECT Population , LifeExpectancy FROM country WHERE Name = ""Brazil""" What is the casting temperature for the alloy with hardness 21?,"SELECT casting_at__°c_ FROM table_name_98 WHERE hardness = ""21""" What is the least total seasons of the Vancouver 86ers?,"SELECT MIN(total_seasons) FROM table_name_58 WHERE team = ""vancouver 86ers""" Which visitor has a Los Angeles home?,"SELECT visitor FROM table_name_20 WHERE home = ""los angeles""" Which award description has a year later than 1994 with a date of December 6?,"SELECT award_description_s_ FROM table_name_84 WHERE year > 1994 AND date = ""december 6""" what are the names and classes of the ships that do not have any captain yet?,"SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)" What years did Orlando have stanley roberts on the team?,"SELECT years_in_orlando FROM table_name_75 WHERE player = ""stanley roberts""" What is the value Others% when the value Others# is greater than 147 and the value Kerry% is 39.6%?,"SELECT others_percentage FROM table_name_83 WHERE others_number > 147 AND kerry_percentage = ""39.6%""" Name the most points for independiente,"SELECT MAX(points) FROM table_16940409_1 WHERE team = ""Independiente""" What is the most common type code of all the products?,SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 How many movies starring Morgan Freeman are suggested by parental guidance?,SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Morgan Freeman' AND T1.`MPAA Rating` = 'PG' How about the most recent one? | Did you just want to know the recent date? | Yes,SELECT date FROM races ORDER BY date DESC LIMIT 1 Return the ids of documents that do not have expenses.,SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses Show the description and code of the attraction type most tourist attractions belong to.,"SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" What is the Purpose of the Area Braidwood?,"SELECT purpose FROM table_name_62 WHERE area_served = ""braidwood""" What driver was the winner when Joakim Bonnier was in the Pole Position?,"SELECT winning_driver FROM table_name_78 WHERE pole_position = ""joakim bonnier""" How many materials are there for output power of ~0.1 pw per cycle (calculated)?,"SELECT COUNT(material) FROM table_30057479_1 WHERE output_power = ""~0.1 pW per cycle (calculated)""" How many dishes appear in the right upper corner of the menu page?,SELECT COUNT(*) FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T1.dish_id = T2.id WHERE T1.xpos > 0.75 AND T1.ypos < 0.25 Please name any three parts that have an available quantity of more than 9998.,SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T2.ps_availqty > 9998 LIMIT 3 What product has been ordered the greatest number of times?,SELECT t1.product_name FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count ( * ) DESC LIMIT 1 "How many images have at least 5 ""black"" classes?",SELECT COUNT(IMGID) FROM ( SELECT T1.IMG_ID AS IMGID FROM IMG_OBJ_att AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T2.ATT_CLASS = 'black' GROUP BY T1.IMG_ID HAVING COUNT(T1.ATT_CLASS_ID) >= 5 ) T3 Which event is in the 1952 summer olympics?,"SELECT event FROM table_name_57 WHERE olympics = ""1952 summer olympics""" What is the affiliation of the University called Explorers?,"SELECT affiliation FROM table_19210115_1 WHERE nickname = ""Explorers""" What was team number 2's Fluminense's 2nd leg?,"SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number2 = ""Fluminense""" "What is the campus fee of ""San Jose State University"" in year 1996?","SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND T2.year = 1996" Return all the distinct payment methods used by customers.,SELECT DISTINCT payment_method FROM customers where did marie-laure taya win?,"SELECT venue FROM table_name_90 WHERE winner = ""marie-laure taya""" state all the spokesperson for the channel where commentator is dmitriy guberniyev,"SELECT spokesperson FROM table_1992924_3 WHERE commentator = ""Dmitriy Guberniyev""" Count the number of patients who stayed in room 112.,SELECT count(patient) FROM stay WHERE room = 112 Which Engine has a Model of s430?,"SELECT engine FROM table_name_71 WHERE model = ""s430""" What is the total number of suppliers from Germany?,SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T2.n_name = 'GERMANY' "For all the games ended up with 1-1, what percentage of them are from Liga NOS division?",SELECT CAST(COUNT(CASE WHEN T2.name = 'Liga NOS' THEN T1.Div ELSE NULL END) AS REAL) * 100 / COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTHG = 1 AND FTAG = 1 Find the product type whose average price is lower than the average price of all products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg ( product_price ) < ( SELECT avg ( product_price ) FROM products ) What episode number was written by Karin Gist?,"SELECT MAX(no) FROM table_25851971_1 WHERE written_by = ""Karin Gist""" What are the nationalities of the player picked from Thunder Bay Flyers (ushl),"SELECT nationality FROM table_1013129_2 WHERE college_junior_club_team = ""Thunder Bay Flyers (USHL)""" What buildings were founded in 2003?,SELECT institution from institution where founded = 2003 "From how many years did tampa, FL depart?","SELECT SUM(year) FROM table_name_76 WHERE departed_from = ""tampa, fl""" "With a total of 11, and 10 rank points, what are the score points?","SELECT score_points FROM table_name_25 WHERE rank_points = ""10"" AND total = ""11""" How many account ids are on the table?,SELECT count ( Account_ID ) from accounts Which Competition was 1st Position with 57.03 in Notes?,"SELECT competition FROM table_name_57 WHERE position = ""1st"" AND notes = ""57.03""" Which airlines have at least 10 flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10 How many episodes were written by Ross brown?,"SELECT COUNT(no_in_series) FROM table_2468961_2 WHERE written_by = ""Ross Brown""" Which Free polite has a Genitive 1 of *=ku?,SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku How many stations does this train run through?,SELECT count ( * ) FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY count ( * ) DESC LIMIT 1 "Who is the winner of the game happened on 2009/10/10, between ""East Fife"" and ""Dumbarton""?",SELECT CASE WHEN FTR = 'H' THEN 'East Fife' ELSE 'Dumbarton' END WINNER FROM matchs WHERE Date = '2009-10-10' AND HomeTeam = 'East Fife' AND AwayTeam = 'Dumbarton' what is the sum of totaltk when yards is less than 0?,SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0 "what are the endings of examples achilles, appendices, fæces","SELECT ending FROM table_17798093_20 WHERE examples = ""Achilles, appendices, fæces""" Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.,"SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings)" "What are the email addresses of teachers whose address has zip code ""918""?","SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = ""918""" How many tries against got the club with 62 tries for?,"SELECT tries_against FROM table_13564702_4 WHERE tries_for = ""62""" What is the total number of electorates in 2009 with a constituency of 193?,"SELECT COUNT(number_of_electorates__2009_) FROM table_name_83 WHERE constituency_number = ""193""" Which season was harrisburg lunatics in?,"SELECT season FROM table_name_75 WHERE team = ""harrisburg lunatics""" "Show the apartment type codes and apartment numbers in the buildings managed by ""Kyle"".","SELECT T2.apt_type_code , T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = ""Kyle""" What is the team 1 with team 2 Mount Cameroon FC?,"SELECT team_1 FROM table_name_43 WHERE team_2 = ""mount cameroon fc""" what is part 2 when part 4 is gebonden?,"SELECT part_2 FROM table_name_92 WHERE part_4 = ""gebonden""" What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50?,"SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = ""R20.50""" "Who was the home team in the game with more than 1675, and Olimpia was the away side?","SELECT home FROM table_name_28 WHERE attendance > 1675 AND away = ""olimpia""" Hello there! Can you provide me with a list of all of the service names?,SELECT service_name FROM services Find the name of customers who have both saving and checking account types.,SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' Show each state and the number of addresses in each state.,"SELECT state_province_county , count(*) FROM addresses GROUP BY state_province_county" What was the format for catalog 660-51-015?,"SELECT format FROM table_name_51 WHERE catalog = ""660-51-015""" What was the result of the race where the jockey was J. Marshall? ,"SELECT result FROM table_2062148_2 WHERE jockey = ""J. Marshall""" "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.",SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application' What County was the Obama% at 41.7%?,"SELECT county FROM table_20750731_1 WHERE obama_percentage = ""41.7%""" What cores has an L2 cache of low power?,"SELECT cores FROM table_name_16 WHERE l2_cache = ""low power""" Who was the man of the series in 2013? Give the full name.,SELECT T2.Player_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id WHERE T1.Season_Year = 2013 Find the city with the most number of stores.,SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1 What's the record of game 67?,SELECT record FROM table_name_42 WHERE game = 67 What are the team and the location of school each player belongs to?,"SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID" "In businesses with a category of mexican, how many of them has a star rating below 4?",SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.stars < 4 AND T3.category_name LIKE 'Mexican' "What are the restaurants that are located at ""19th St. Oakland""?",SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'Oakland' AND T2.street_name = '19th St' What is the category and attributes of businesses with highest star rating?,"SELECT DISTINCT T3.category_name, T5.attribute_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id INNER JOIN Business_Attributes AS T4 ON T2.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.stars = ( SELECT MAX(stars) FROM Business )" Show all the locations where some cinemas were opened in both year 2010 and year 2011.,SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011 "How many songs have used the instrument ""drums""?","SELECT count(*) FROM instruments WHERE instrument = ""drums""" List the name of artworks in ascending alphabetical order.,SELECT Name FROM artwork ORDER BY Name "What is the Hazmat, when the Type is Rural, and when the number of Tankers is 1?","SELECT hazmat FROM table_name_98 WHERE type = ""rural"" AND tankers = 1" "Among the players who became coaches, how many of them have gotten in the Hall of Fame?",SELECT COUNT(T1.playerID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.playerID IS NOT NULL AND T1.coachID IS NOT NULL What are the names of body builders whose total score is higher than 300?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300 which females in that list are from canada?,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' Tell me the overall rank for roland schoeman,"SELECT overall_rank FROM table_name_50 WHERE swimmer = ""roland schoeman""" Which week is the theme n/a,"SELECT week__number FROM table_21501518_1 WHERE theme = ""N/A""" What is the id of the project that has the highest optional tip? Indicate the names of the resources that were requested.,"SELECT T1.projectid, T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid ORDER BY T2.total_price_including_optional_support - T2.total_price_excluding_optional_support DESC LIMIT 1" Mention the description of the care plan of American patients.,SELECT DISTINCT T1.DESCRIPTION FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.ethnicity = 'american' Count the number of cities in Australia.,SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' Then could you please let me know what is Ian Thornton's major and advisor code?,"SELECT Major , Advisor FROM Student WHERE LName = ""Thornton"" and FName = ""Ian""" Who is the director for the movie 'Transformers?',SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Transformers' AND T2.job = 'Director' What are the names of perpetrators?,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID; What is the nickname of University of Rhode Island?,"SELECT Nickname FROM university WHERE School = ""University of Rhode Island""" Show names of musicals which have at least three actors.,SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3 "For each product, return its id and the number of times it was ordered.","SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" What venue had footscray play at it?,"SELECT venue FROM table_name_87 WHERE away_team = ""footscray""" What are the ids of documents which don't have expense budgets?,SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses What are the all product names,SELECT product_name FROM products What is the current status of the order with the highest shipping cost?,SELECT Status FROM SalesOrderHeader ORDER BY Freight DESC LIMIT 1 How many have fewer than ten tracks?,SELECT count ( * ) from ( select count ( * ) FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count ( T1.id ) < 10 ) How many products are there?,SELECT count(*) FROM Products Great! Can you update this list to include the activity name associated with each individual faculty member?,"SELECT T1.Fname, T1.Lname, T1.FacID, T3.activity_name from Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T3.actid" List down the trips in which their start and end station are similar. Give me their trip IDs and location coordinates.,"SELECT T1.id, T2.lat, T2.long FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.start_station_name = T1.end_station_name" Who has a total of 272?,SELECT player FROM table_name_46 WHERE total = 272 What driver had 101 laps?,SELECT drivers FROM table_name_86 WHERE laps = 101 Who is the player that has a round greater than 2 and a pick bigger than 83?,SELECT player FROM table_name_5 WHERE round > 2 AND pick > 83 What golfer has 281 as their total?,SELECT player FROM table_name_52 WHERE total = 281 What's the to par for england when the score is less than 71?,"SELECT to_par FROM table_name_34 WHERE country = ""england"" AND score < 71" Show the most common type of ships,SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT ( * ) DESC LIMIT 1 What is the average number of Mubi users who love movies directed by Stanley Kubrick?,SELECT AVG(movie_popularity) FROM movies WHERE director_name = 'Stanley Kubrick' What is the location of Blanca Peak?,"SELECT location FROM table_name_77 WHERE mountain_peak = ""blanca peak""" what is the elevation of south america? ,"SELECT elevation_ft FROM table_27435931_1 WHERE continent = ""South America""" WHICH 2/3 (P) has a Verb of khêla?,"SELECT 2 AS _3__p_ FROM table_name_76 WHERE verb = ""khêla""" How many rounds did the event rings: king of kings 2000 block a have with a record of 6-1?,"SELECT round FROM table_name_82 WHERE event = ""rings: king of kings 2000 block a"" AND record = ""6-1""" Please list the classes of all the object samples in image no.1.,SELECT T1.OBJ_CLASS FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 1 GROUP BY T1.OBJ_CLASS How many female actors have been played a role in any of French or USA movies?,"SELECT COUNT(T2.actorid) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country IN ('France', 'USA')" Can you tell me the High points that has the Date of january 31?,"SELECT high_points FROM table_name_32 WHERE date = ""january 31""" Show the 3 counties with the smallest population.,SELECT County_name FROM county ORDER BY Population ASC LIMIT 3 What are their vote percents?,"SELECT T2.Name, T1.Vote_Percent FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC" How many of these end in San Francisco?,"SELECT count ( * ) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city = ""San Francisco""" Name the judges for 4 public,SELECT judges FROM table_26375386_22 WHERE public = 4 What is the category of the film Agent Truman?,SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.title = 'AGENT TRUMAN' What is the publisher's information of New Moon Books?,SELECT T1.pr_info FROM pub_info AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' "What's the publisher of the book ""Silicon Valley Gastronomic Treats""? Give the publisher's name.",SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.title = 'Silicon Valley Gastronomic Treats' What are the names and ids of every course with less than 2 sections?,"SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2" When was incumbent William B. Oliver first elected?,"SELECT MAX(first_elected) FROM table_1342379_2 WHERE incumbent = ""William B. Oliver""" What is the name of the team that has 307 attempts?,"SELECT team FROM table_name_7 WHERE attempts = ""307""" What is the distinct ID of elctronics or Commen?,"SELECT DISTINCT thing_id from things WHERE Type_of_Thing_Code = ""Electronics"" or Type_of_Thing_Code = ""Commen""" What format does the method number 8's comment have?,SELECT CASE WHEN CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Method WHERE Id = 8 What driving wheels are on the m1 original NER class?,"SELECT driving_wheels FROM table_name_8 WHERE original_ner_class = ""m1""" Name the viewers for 520,SELECT us_viewers__in_millions_ FROM table_23958944_6 WHERE production_number = 520 Which city has a school where the nickname is Pioneers?,"SELECT location FROM table_262560_2 WHERE nickname = ""Pioneers""" can you shoe me customers' phone numbers? | Do you mean cell mobile phone number or phone number? | phone number,SELECT phone_number FROM Customers What are the addresses of the inactive customers?,SELECT T2.address FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.active = 0 Which Margin has a Winning score of –7 (71-72-67-71=281)?,SELECT margin FROM table_name_26 WHERE winning_score = –7(71 - 72 - 67 - 71 = 281) List the price of Ford cars from model 1970 to 1980.,SELECT DISTINCT T3.price FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN price AS T3 ON T3.ID = T2.ID WHERE T1.car_name LIKE 'ford%' AND T2.model_year BETWEEN 1970 AND 1980 what is the acc percent of each team?,"SELECT team_id, acc_percent FROM basketball_match" "Return the lot details of lots that belong to investors with details ""l""?","SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = ""l""" Show director with the largest number of show times in total.,SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1 Which Rec has Jerel Myers as the Player?,"SELECT rec FROM table_name_25 WHERE player = ""jerel myers""" "Which two Asian countries share a border that is 1,782 kilometers long?","SELECT T4.Country1, T4.Country2 FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN borders AS T4 ON T4.Country1 = T3.Code WHERE T1.Name = 'Asia' AND T4.Length = 1782" "On what date did the person leave office who died on October 23, 1887 and who served 2 years?","SELECT left_office FROM table_name_58 WHERE years_in_office = ""2"" AND death = ""october 23, 1887""" What's the release price of a processor that has a frequency of 3.2 ghz and 1 × 6.4 gt/s qpi I/O?,"SELECT release_price___usd__ FROM table_name_76 WHERE frequency = ""3.2 ghz"" AND i_o_bus = ""1 × 6.4 gt/s qpi""" What time is it for the southern home team?,"SELECT time FROM table_name_82 WHERE home_team = ""southern""" With an area km 2 of 343.95 what is the official name?,SELECT official_name FROM table_name_38 WHERE area_km_2 = 343.95 What CFL team did simeon rottier play for?,"SELECT cfl_team FROM table_20170644_1 WHERE player = ""Simeon Rottier""" How many bench minor penalties did the team St. Louis Blues got in total in all the games?,SELECT CAST(SUM(BenchMinor) AS REAL) / 2 FROM Teams WHERE name = 'St. Louis Blues' What is the average number of wins before the season in 1906 where there were 0 draws?,SELECT AVG(wins) FROM table_name_72 WHERE season < 1906 AND draws < 0 What is the name and capacity of the dorm with the fewest amount of amenities?,"SELECT T1.dorm_name , T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1" "what is the position when lot is less than 14, goal difference is +1 and drawn is more than 15?","SELECT SUM(position) FROM table_name_88 WHERE lost < 14 AND goal_difference = ""+1"" AND drawn > 15" how many staffs are on the table,select count ( staff_id ) from staff What is the CFL Team with Will Grant?,"SELECT cfl_team FROM table_name_32 WHERE player = ""will grant""" How long did Elly Koss have to take Acetaminophen 160 MG?,"SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS days FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND last = 'Koss' AND T2.DESCRIPTION = 'Acetaminophen 160 MG'" Can you tell me the Divisional Record that has the Away Team of dallas?,"SELECT divisional_record FROM table_name_58 WHERE away_team = ""dallas""" "What is the 8th entry in the row with a first entry of ""club""?","SELECT tries_for FROM table_12792876_2 WHERE ""club"" = ""club""" What number of rank has more than 2 medals in total with less than 4 bronze?,SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 4 What is the highest number of stories in homes with a height of 42 m.?,"SELECT MAX(stories) FROM table_name_7 WHERE height = ""42 m.""" What is the name of the episode told by Kiki and directed by Will Dixon?,"SELECT title FROM table_10470082_6 WHERE storyteller = ""Kiki"" AND director = ""Will Dixon""" How many wrestlers are there?,SELECT count(*) FROM wrestler What is the Label name that has a Country of uk and the Catalog is bpg 62988?,"SELECT label FROM table_name_73 WHERE country = ""uk"" AND catalog = ""bpg 62988""" "In zip code 94107, on which day neither Fog nor Rain was observed?","SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS != ""Fog"" AND EVENTS != ""Rain""" "Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.",SELECT CAST(SUM(CASE WHEN JobTitle = 'Sales Representative' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(BusinessEntityID) FROM Employee What was the end date when Alex Bodry was the minister?,"SELECT end_date FROM table_name_11 WHERE minister = ""alex bodry""" "Among the daylight savings areas in the Midwest region, how many postal points are there in Illinois?",SELECT COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Illinois' AND T2.daylight_savings = 'Yes' AND T2.region = 'Midwest' Show the manager name with most number of gas stations opened after 2000.,SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY COUNT(*) DESC LIMIT 1 What name has the role of midfielder for 1999-2003?,"SELECT name FROM table_name_76 WHERE role = ""midfielder"" AND period = ""1999-2003""" what are the average revenues of all compaies?,SELECT avg ( revenue ) FROM manufacturers How many rounds did the IFL: Oakland event have?,"SELECT SUM(round) FROM table_name_4 WHERE event = ""ifl: oakland""" What municipality has a 130.6 pupulation density?,"SELECT municipality FROM table_255829_1 WHERE pop_density__per_km_2__ = ""130.6""" How many postal points are there under the congress representative in Puerto Rico?,SELECT COUNT(T2.zip_code) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.state = 'Puerto Rico' Which documents have more than 1 draft copies? List document id and number of draft copies.,"SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*) > 1;" Provide the most used keyword in the movies.,SELECT T1.keyword_name FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id GROUP BY T1.keyword_name ORDER BY COUNT(T1.keyword_name) DESC LIMIT 1 How many students are attending English courses?,"SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""English""" "What is the coaster name that was opened in 1978, and have wooden track?","SELECT coaster_name FROM table_name_40 WHERE year_opened = ""1978"" AND track = ""wooden""" "What date has a game smaller than 4, and a score of 116-114?","SELECT date FROM table_name_73 WHERE game < 4 AND score = ""116-114""" How many employees report to Andrew Fuller?,SELECT COUNT(EmployeeID) FROM Employees WHERE ReportsTo = ( SELECT EmployeeID FROM Employees WHERE LastName = 'Fuller' AND FirstName = 'Andrew' ) what is the highest goals against when the wins is less than 1?,SELECT MAX(goals_against) FROM table_name_54 WHERE wins < 1 Which kind of policy type was chosen by the most customers?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count ( * ) DESC LIMIT 1 What is the largest crowd when st kilda was the away team?,"SELECT MAX(crowd) FROM table_name_60 WHERE away_team = ""st kilda""" "What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358?","SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = ""ethiopia"" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358" "How many foundeds have sousse as the city, with a capacity greater than 25,000?","SELECT COUNT(founded) FROM table_name_25 WHERE city = ""sousse"" AND capacity > 25 OFFSET 000" Return the number of music festivals of each category.,"SELECT Category , COUNT(*) FROM music_festival GROUP BY Category" "What is the sum of Points, when Equipment was ""Zabel-BSU"", and when Position was 42?","SELECT SUM(points) FROM table_name_39 WHERE equipment = ""zabel-bsu"" AND position = 42" "How many years have a final score of 6–3, 6–2?","SELECT COUNT(year) FROM table_22834834_3 WHERE score_in_the_final = ""6–3, 6–2""" What the round with the time 1:15?,"SELECT AVG(round) FROM table_name_99 WHERE time = ""1:15""" What country has a rank of 3 and notes of r?,"SELECT country FROM table_name_97 WHERE notes = ""r"" AND rank = 3" Which city in the Midwest region has the least number of clients?,SELECT T2.city FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Midwest' GROUP BY T2.city ORDER BY COUNT(T2.city) LIMIT 1 "How many students took any course? | Did you mean how many students there are? | Yes, sorry!",SELECT count ( * ) from STUDENT What are the names of customers who have taken out more than one loan?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count(*) > 1 List at least 5 students who have payment due and are enlisted in Peace Corps organization?,SELECT T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T2.organ = 'peace_corps' AND T1.bool = 'pos' LIMIT 5 What is the largest ethnic group in the settlement with a 2011 population of 5082?,SELECT COUNT(largest_ethnic_group__2002_) FROM table_2562572_44 WHERE population__2011_ = 5082 How many different addresses do the students currently live?,SELECT count(DISTINCT current_address_id) FROM Students Who won the silver medal in the games where Hong Chia-yuh took home bronze?,"SELECT silver FROM table_name_5 WHERE bronze = ""hong chia-yuh""" Please show me the information of all students who are under 25 years old,SELECT * FROM student WHERE age < 25 Which Record has a Date of january 31?,"SELECT record FROM table_name_18 WHERE date = ""january 31""" "Tell me the tournament with a hard surface for 6–1, 6–2","SELECT tournament FROM table_name_99 WHERE surface = ""hard"" AND score = ""6–1, 6–2""" What is the qual 1 when the qual 2 has no time and the best is 1:16.776?,"SELECT qual_1 FROM table_name_94 WHERE qual_2 = ""no time"" AND best = ""1:16.776""" Show all company name and main industry without a gas station?,"SELECT company , main_industry FROM company WHERE company_id not IN ( SELECT company_id FROM station_company ) " List all goalies who played in the year 2005 season and shorter than 72 inches. List all the team names he play for.,"SELECT DISTINCT T1.firstName, T1.lastName, T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.tmID = T3.tmID WHERE T2.year = 2005 AND T1.height < 72" What is the Status of primitive confuciusornithid .?,"SELECT status FROM table_name_21 WHERE notes = ""primitive confuciusornithid .""" "What's the mean week number for November 12, 1978?","SELECT AVG(week) FROM table_name_9 WHERE date = ""november 12, 1978""" Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.,"SELECT name , open_year FROM manufacturer WHERE num_of_shops > 10 OR Num_of_Factories < 10" What is the highest number of laps led with 16 points?,"SELECT MAX(laps) AS Led FROM table_17319931_1 WHERE points = ""16""" "Find all the locations whose names contain the word ""film"".","SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE ""%film%""" "What is Appearances, when Postion [F ] is ""Defender"", and when Date to [H ] is ""1938""?","SELECT appearances FROM table_name_18 WHERE position_[f_] = ""defender"" AND date_to_[h_] = ""1938""" How many courses does the Biology department offer?,"SELECT count ( * ) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Biology""" "What is 17th c., when Australian is ""i, ɪ, ə"", and when Examples is ""œsophagus""?","SELECT 17 AS th_c FROM table_name_25 WHERE australian = ""i, ɪ, ə"" AND examples = ""œsophagus""" What is the 1st leg of bp. honvéd team #2?,"SELECT 1 AS st_leg FROM table_name_62 WHERE team__number2 = ""bp. honvéd""" What are the ids of all stations that have a latitude above 37.4 and have never had less than 7 bikes available?,SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available) < 7 When was the station WLS-TV owned since?,"SELECT owned_since FROM table_22329326_1 WHERE station = ""WLS-TV""" what is the GDP of the city with the largest population.,SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1 What are the names of courses without prerequisites?,SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) Please show the employee first names and ids of employees who serve at least 10 customers.,"SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10" What is the elevation of Goroka Airport,SELECT elevation FROM airports where name = 'Goroka Airport' What is the venue that has 34-18 as the score?,"SELECT venue FROM table_21350934_2 WHERE score = ""34-18""" Find the product type whose average price is higher than the average price of all products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg ( product_price ) > ( SELECT avg ( product_price ) FROM products ) What are the full names of customers who do not have any accounts?,"SELECT customer_first_name , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" Count the number of likes for each student id.,"SELECT student_id , count(*) FROM Likes GROUP BY student_id" How many female customers permit the company to send regular emails to them?,SELECT COUNT(CustomerID) FROM customers WHERE Gender = 'F' AND SubscribedToEmailList = 'TRUE' What tonnage was built in 2007?,SELECT tonnage FROM table_name_75 WHERE built = 2007 What are the numbers of wines for different grapes?,"SELECT count(*) , Grape FROM WINE GROUP BY Grape" how many people are there whose weight is higher than 85 for each gender?,"SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex" Who is the person to contact to get Camembert Pierrot?,SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Camembert Pierrot' What player was moving from manchester united?,"SELECT name FROM table_name_78 WHERE moving_from = ""manchester united""" "Find the names of customers who have used both the service ""Close a policy"" and the service ""New policy application"".","SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""Close a policy"" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""New policy application""" What was the winning team lmpc in rnd 3?,SELECT lmpc_winning_team FROM table_24037660_2 WHERE rnd = 3 How many rounds did the match last when his record was 6-6?,"SELECT round FROM table_name_72 WHERE record = ""6-6""" How many times was Ford Maverick introduced to the market?,SELECT COUNT(T2.model_year) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'ford maverick' please list those languages,"SELECT Official_native_language FROM country WHERE Official_native_language LIKE ""%English%""" Which final has a run of 1:19.49?,"SELECT final FROM table_name_18 WHERE run_3 = ""1:19.49""" What was the cuts average in tournament totals in an event larger than 24?,"SELECT AVG(cuts_made) FROM table_name_62 WHERE tournament = ""totals"" AND events > 24" Show the description of the transaction type that occurs most frequently.,SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 What is the name of the home team that played against Collingwood?,"SELECT home_team FROM table_name_17 WHERE away_team = ""collingwood""" Provide the price of the only Toyota Corona hardtop in the database.,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'toyota corona hardtop' What are the highest points for the team of marlboro brm with brm p180 as the chassis?,"SELECT MAX(points) FROM table_name_43 WHERE team = ""marlboro brm"" AND chassis = ""brm p180""" WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?,"SELECT homeland_security_distinguished_service_medal FROM table_2104176_1 WHERE medal_of_honor = ""Coast Guard Medal""" What is the full name of the customer who rented movies for 7 consecutive days?,"SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN ( SELECT customer_id, COUNT(*) AS num_days FROM ( SELECT *, date(days, '-' || rn || ' day') AS results FROM ( SELECT customer_id, days, row_number() OVER (PARTITION BY customer_id ORDER BY days) AS rn FROM ( SELECT DISTINCT customer_id, date(rental_date) AS days FROM rental ) ) ) GROUP BY customer_id, results HAVING num_days = 7 ) AS T2 ON T1.customer_id = T2.customer_id" Who built the car that went 53 laps with a Time/Retired of 1:17:09.672?,"SELECT constructor FROM table_name_25 WHERE laps = 53 AND time_retired = ""1:17:09.672""" Which title is in Portuguese?,"SELECT title FROM table_name_28 WHERE language = ""portuguese""" "Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?",SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9 What Tournament was the 2010 Olympic Games?,"SELECT tournament FROM table_name_58 WHERE 2010 = ""olympic games""" How many years does simon baker appear as a nominee?,"SELECT COUNT(year) FROM table_name_84 WHERE nominee = ""simon baker""" What is the distance when brisbane is $4.80?,"SELECT distance FROM table_2923917_4 WHERE brisbane = ""$4.80""" "What is Score, when Player is ""Brad Faxon""?","SELECT score FROM table_name_68 WHERE player = ""brad faxon""" Thank you! Can you filter this list ot show only the hometowns that have both people older than 23 years of age and people younger than 20 years of age?,SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20 In which district is the residence Dublin?,"SELECT district FROM table_26131768_4 WHERE residence = ""Dublin""" "Among the crimes reported to the ward located at 1958 N. Milwaukee Ave., list down the report number of the crimes happened inside the apartment.",SELECT T1.case_number FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T2.ward_office_address = '1958 N. Milwaukee Ave.' What is the ID of Movies?,"SELECT id from playlists WHERE name = ""Movies""" How many of those apartment building are managed by Kyle?,"SELECT count ( * ) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = ""Kyle""" List the names of all routes in alphabetic order.,SELECT route_name FROM Delivery_Routes ORDER BY route_name What are the names and prices of all products in the store?,"SELECT name , price FROM products" and what are the names of the projects requiring more than 300 hours,SELECT name FROM projects WHERE hours > 300 List all the name of customers who have orders that are still processing.,SELECT t2.customerName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.status = 'In Process' "What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?","SELECT MIN(quantity) FROM table_name_72 WHERE manufacturer = ""peckett and sons"" AND gwr_nos = ""696, 779, 93 5""" Can you tell me the role of project id 1 ?,SELECT role_code FROM Project_Staff WHERE project_id = 1 Find the average credit score of the customers who do not have any loan.,SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan) Name the score for december 5,"SELECT score FROM table_name_36 WHERE date = ""december 5""" Name the week 3 of 36,"SELECT week_1 FROM table_name_67 WHERE week_3 = ""36""" How many Airspeed Fleet Shadower aircraft are retired?,"SELECT retired FROM table_13605170_2 WHERE aircraft_type = ""Airspeed Fleet Shadower""" "What is the total number of Goals For, when Losses is greater than 16?",SELECT COUNT(goals_for) FROM table_name_99 WHERE losses > 16 "In 2006, how many restricted films were released?",SELECT COUNT(film_id) FROM film WHERE rating = 'R' AND release_year = 2006 Show the locations that have at least two performances.,SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2 Name the To par that has a Year(s) won of 1988 and a Total smaller than 148?,"SELECT MAX(to_par) FROM table_name_31 WHERE year_s__won = ""1988"" AND total < 148" "Name the number of other builders for nant, visual studio","SELECT COUNT(other_builders) FROM table_22903426_1 WHERE windows_builders = ""NAnt, Visual Studio""" "What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen?","SELECT nationality FROM table_name_30 WHERE college_junior_club_team = ""university of wisconsin (wcha)"" AND player = ""bob lundeen""" How many high schoolers are in each grade?,"SELECT grade , count(*) FROM Highschooler GROUP BY grade" How many orders were shipped to GREAL via United Package?,SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.CustomerID = 'GREAL' AND T2.CompanyName = 'United Package' "Who had a rank larger than 7, less than 305 goals, and 418 matches?","SELECT name FROM table_name_36 WHERE rank > 7 AND goals < 305 AND matches = ""418""" How many week 2 scores have a week 7 score of 40 + 40 = 80?,SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80 "When Cancelable of yes, and a Type of drag, what was the Category?","SELECT category FROM table_name_72 WHERE cancelable = ""yes"" AND type = ""drag""" What playee has 24.21 as the average?,"SELECT player FROM table_name_46 WHERE average = ""24.21""" how many products there,SELECT count ( * ) from products what is the constituency when the rank is less than 5 and the result is con hold?,"SELECT constituency FROM table_name_64 WHERE rank < 5 AND result = ""con hold""" "Which airline operated more flights on 2018/8/1, American Airlines Inc. or Endeavor Air Inc.?",SELECT CASE WHEN COUNT(CASE WHEN T3.Description = 'American Airlines Inc.: AA' THEN 1 ELSE NULL END) > COUNT(CASE WHEN T3.Description = 'Endeavor Air Inc.: 9E' THEN 1 ELSE NULL END) THEN 'American Airlines Inc.: AA' ELSE 'Endeavor Air Inc.: 9E' END AS RESULT FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' Show the players from college UCLA.,"SELECT Player FROM match_season WHERE College = ""UCLA""" "of these total drivers, how many countries are represented?",SELECT count ( distinct nationality ) FROM drivers What is the Tallangatta DFL losses greater than 2 and an against greater than 1013,SELECT tallangatta_dfl FROM table_name_49 WHERE against > 1013 AND losses > 2 "Which Award has a Result of nominated, and a Year of 2003?","SELECT award FROM table_name_85 WHERE result = ""nominated"" AND year = 2003" "What status doe the area with a census ranking of 2,290 of 5,008 have?","SELECT status FROM table_171356_2 WHERE census_ranking = ""2,290 of 5,008""" What are the issue dates of volumes associated with the artist aged 23 or younger?,SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23 "Name the representative with presentation of credentials of august 16, 1928","SELECT representative FROM table_name_45 WHERE presentation_of_credentials = ""august 16, 1928""" "Who is the professor in the office DRE 102? | Do you want their first name, last name, or initial? | last name and hire date please.","SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'" What were all the salary values of players in 2010 and 2001?,SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001 Name the opponent for astrodome,"SELECT opponent FROM table_14418812_1 WHERE game_site = ""Astrodome""" What is the Singapore Cup when the S-League is 5 (14)?,"SELECT singapore_cup FROM table_name_92 WHERE s_league = ""5 (14)""" Which nation's total is less than 19 when there's less than 1 bronze?,SELECT nation FROM table_name_54 WHERE total < 19 AND bronze < 1 Provide the occurrence date and location of the deceptive practice due to the unlawful use of recorded sound.,"SELECT T2.date, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T1.primary_description = 'DECEPTIVE PRACTICE' AND T1.secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'" Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.,"SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10" "What is average frequency MHZ when is in portales, new mexico?","SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = ""portales, new mexico""" What are the names of the customers and staff members?,SELECT customer_details FROM customers UNION SELECT staff_details FROM staff What was the name of the episode that was directed by Mary Harron?,"SELECT title FROM table_2182654_6 WHERE directed_by = ""Mary Harron""" what are the apartment numbers for those 7?,"SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" What kind of Tongan has a North Marquesan of /haʔe/?,"SELECT tongan FROM table_name_89 WHERE north_marquesan = ""/haʔe/""" What is the winning % for the 2010 QF?,"SELECT win__percentage FROM table_name_3 WHERE 2010 = ""qf""" What is the week 1 with candice hunnicutt in week 3?,"SELECT week_1 FROM table_name_53 WHERE week_3 = ""candice hunnicutt""" How many stars does each of the 3 top users with the most likes in their reviews have?,SELECT T2.user_average_stars FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id GROUP BY T2.user_id ORDER BY SUM(T1.likes) DESC LIMIT 3 What Gold has a Silver greater than 30 and a Total less than 107?,SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107 What is diego work title? | is Diego the employee first name? | Yes,"SELECT Company from Customer where FirstName = ""Diego""" What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?,"SELECT third_place FROM table_name_94 WHERE winner = ""thomas enqvist"" AND runner_up = ""guy forget""" How many distinct official languages are there among countries of players whose positions are defenders.,"SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" What was the height of this Freshman with a forward position?,"SELECT height FROM table_25177625_1 WHERE position = ""Forward"" AND year = ""Freshman""" Show the names of employees with role name Editor.,"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" On what date were the Ottawa Swans the away team?,"SELECT date FROM table_name_25 WHERE away = ""ottawa swans""" What round has a name of vladimir morozov?,"SELECT round FROM table_name_90 WHERE name = ""vladimir morozov""" Find the names of stadiums that some Australian swimmers have been to.,SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia' How about the minimum too?,SELECT min ( used_kb ) FROM screen_mode Which club has 77 points?,"SELECT club FROM table_name_95 WHERE points = ""77""" What was the away teams score when they played at kardinia park?,"SELECT away_team AS score FROM table_name_7 WHERE venue = ""kardinia park""" "What is Home Team, when Date is 18 February 1956, and when Tie No is 3?","SELECT home_team FROM table_name_69 WHERE date = ""18 february 1956"" AND tie_no = ""3""" What are the phones and emails of workshop groups in which services are performed?,"SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID" What are the names of all female candidates in alphabetical order (sex is F)?,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name What name is listed under representative for the 112th congress?,"SELECT representative FROM table_2841865_2 WHERE congress = ""112th""" What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts?,"SELECT volume AS :issue FROM table_name_96 WHERE weeks_on_top < 2 AND artist = ""george mccrae""" State the state of businesses which have closing time at 12AM.,SELECT DISTINCT T1.state FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T2.closing_time = '12AM' Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?,"SELECT class FROM table_name_19 WHERE facility_id > 85076 AND call_sign = ""k289au""" "How many rooms in total are there in the apartments in the building with short name ""Columbus Square""?","SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = ""Columbus Square""" "In ""maxild_playground\Playground.sln"", what is the time of sampling for the method ""GitHubRepo.Cli.GitHubClientWrapper.GetReleases""?",SELECT T2.SampledAt FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maxild_playgroundPlayground.sln' AND T2.Name = 'GitHubRepo.Cli.GitHubClientWrapper.GetReleases' "What is the result of the game played when 22,555 were in attendance and the Buckeyes were ranked #1?","SELECT result FROM table_name_57 WHERE rank__number = ""1"" AND attendance = ""22,555""" How many cities have a stadium that was opened before the year of 2006?,SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006 "For the episode(s) aired in the U.S. on 4 april 2008, what were the names?","SELECT title FROM table_10935205_1 WHERE us_airdate = ""4 April 2008""" Show the customer ids and firstname without a credit card.,"SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = ""Credit""" Who were the co drivers past 1994 in the WSC class?,"SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = ""wsc""" what is the club that as 100 tries?,"SELECT club FROM table_name_48 WHERE tries_for = ""100""" show the date order placed for order id 9,SELECT date_order_placed from Orders where order_id = 9 Which class had a quantity made of 20?,"SELECT class FROM table_name_19 WHERE quantity_made = ""20""" On what date did a game higher than 10 have a score of 99-89?,"SELECT date FROM table_name_26 WHERE game > 10 AND score = ""99-89""" How many reviewers are there?,SELECT count ( DISTINCT RID ) FROM Rating What are the names of manufacturers with revenue greater than the average of all revenues?,SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers) "What percentage of podcasts are ""technology"" podcasts? List all of them.","SELECT CAST(SUM(CASE WHEN T1.category = 'technology' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.title) OR '%' ""percentage"" FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id" "Among the students from the navy department, how many of them have payment due?",SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN no_payment_due AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy' AND T2.bool = 'pos' What are the distinct address type codes for all customer addresses?,SELECT DISTINCT address_type_code FROM customer_addresses "Please list all the paragraphs in Act 1, Scene 1 in Twelfth Night.",SELECT T3.PlainText FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T2.Act = 1 AND T2.Scene = 1 AND T1.Title = 'Twelfth Night' Determine Disney's total box office gross between 2010 and 2016.,SELECT SUM(Total) FROM revenue WHERE `Year` BETWEEN 2010 AND 2016 "How many players, in games played in 1990, achieved 50% or less of oRebounds than dRebounds.",SELECT COUNT(playerID) FROM players_teams WHERE CAST(oRebounds AS REAL) * 100 / dRebounds <= 50 AND year = 1990 Who is the vacator when south carolina 4th is the district?,"SELECT vacator FROM table_225100_4 WHERE district = ""South Carolina 4th""" What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese?,"SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children_and_adolescents = ""12.4%""" Which faculty members advise two ore more students? Give me their faculty ids.,SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2 What is the winery at which the wine with the highest score was made?,SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1 How many parks are in Atlanta?,"SELECT count ( * ) FROM park where city = ""Atlanta""" Which restaurants have highest rating? List the restaurant name and its rating.,"SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1" Which school has the largest enrollment?,SELECT school FROM university ORDER BY enrollment DESC LIMIT 1 What pole position did 2006 gehl championship finale have?,"SELECT pole_position FROM table_name_82 WHERE race_name = ""2006 gehl championship finale""" What is the date for the tournament McDonald's wpga championship?,"SELECT date FROM table_2167226_3 WHERE tournament = ""McDonald's WPGA Championship""" What is the Score of the game with a Record of 29–23–13?,"SELECT score FROM table_name_21 WHERE record = ""29–23–13""" What is the course id of that?,SELECT course_id FROM course WHERE title = 'Care and Feeding of Cats' What was the attendance when the score was 8–7?,"SELECT SUM(attendance) FROM table_name_16 WHERE score = ""8–7""" Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.,SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000 Show the distinct director of films with market estimation in the year of 1995.,SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995 Show the first name and last name for all the instructors.,"SELECT fname , lname FROM Faculty WHERE Rank = ""Instructor""" Which Track has a Writer(s) of mac davis?,"SELECT AVG(track) FROM table_name_48 WHERE writer_s_ = ""mac davis""" Find the name and partition id for users who tweeted less than twice ?,"SELECT T1.partitionid, T1.name FROM user_profiles AS T1 join tweets AS T2 where T1.uid = T2.uid group by T2.uid having count ( * ) <2" Name the founded for school closed in 2005,"SELECT founded FROM table_262505_1 WHERE current_conference = ""school closed in 2005""" Can you also tell me which position they play?,"SELECT Player,Position FROM match_season where College = 'UCLA'" Which awards happened more recently than 2005?,SELECT awards FROM table_name_33 WHERE year > 2005 Who won the gold in 1958?,"SELECT gold FROM table_name_18 WHERE year = ""1958""" List all of the user ids and ages who rated movies with the id 1695219?,"SELECT T2.userid, T2.age FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.movieid = 1695219" Can you give me a list of the problem descriptions he reported?,"SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = ""Christop""" find the total market rate of the furnitures that have the top 2 market shares.,SELECT SUM(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2 How frequently did the words 1 and 25 appear together?,SELECT occurrences FROM biwords WHERE w1st = 1 AND w2nd = 25 "How many employees are living in Hoffman Estates, IL?",SELECT COUNT(employee_id) FROM employee WHERE state = 'IL' AND city = 'Hoffman Estates' When rudolph kleberg (d) is the successor what is the date of successors taking office?,"SELECT date_of_successors_taking_office FROM table_2417445_4 WHERE successor = ""Rudolph Kleberg (D)""" what is the lowest appearance when goals is more than 0?,SELECT MIN(appearance) FROM table_name_32 WHERE goals > 0 How many University founded in 1863?,SELECT COUNT(enrollment) FROM table_19210115_1 WHERE founded = 1863 Count the number of 'dress' object classes and include their X and Y coordinates in image ID 1764.,"SELECT T1.X, T1.Y FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 1764 AND T2.OBJ_CLASS = 'dress'" What is the location and attendance of game 1?,SELECT location_attendance FROM table_name_95 WHERE game = 1 "How many customers in the building segments have orders with a total price of no less than 50,000?",SELECT COUNT(T2.c_name) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'BUILDING' AND T1.o_totalprice > 50000 Which location has 103.534 million passengers in 2011-12? ,"SELECT location FROM table_18118221_1 WHERE total_passengers__millions__2011_12 = ""103.534""" Can you tell me the billing addresses located in the billing city Boston?,"SELECT distinct billing_address FROM invoices where billing_city = ""Boston""" What are the price ranges of five star hotels?,"SELECT price_range FROM HOTELS WHERE star_rating_code = ""5""" What is the id of the most recent order?,SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1 What was the 1st leg score for the match with Lesotho as team 1?,"SELECT 1 AS st_leg FROM table_name_14 WHERE team_1 = ""lesotho""" Provide the menu page ids of all the menu that includes mashed potatoes.,SELECT T2.menu_page_id FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Mashed potatoes' Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12,SELECT MAX(evening_gown) FROM table_name_38 WHERE average < 8.793 AND swimsuit < 8.12 AND interview = 8.51 "What is Party, when Incumbent is ""Rodney Alexander""?","SELECT party FROM table_name_52 WHERE incumbent = ""rodney alexander""" Count the number of characteristics the product 'sesame' has.,"SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" "Thank you very much! Can you filter this list to show only the item with the product id of 11, and show me the associated product category code?","SELECT t1.product_id,t1.product_name,t1.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code where t1.product_id = 11" "Please show the names of the buildings whose status is ""on-hold"", in ascending order of stories.","SELECT name FROM buildings WHERE Status = ""on-hold"" ORDER BY Stories ASC" tell me the total number of decile with a roll showing 251.,SELECT COUNT(decile) FROM table_name_90 WHERE roll = 251 What is the record if the location is Clarke Stadium?,"SELECT record FROM table_23916539_3 WHERE location = ""Clarke Stadium""" What is average enrollment of colleges in the state FL?,SELECT avg(enr) FROM College WHERE state = 'FL' what is а а [a] when ҕь ҕь [ʁʲ/ɣʲ] is ш ш [ʂʃ]?,"SELECT а_а_[a] FROM table_202365_2 WHERE ҕь_ҕь_[ʁʲ_ɣʲ] = ""Ш ш [ʂʃ]""" How many customers have accounts?,SELECT count ( * ) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id Which country has a finish of t4?,"SELECT country FROM table_name_98 WHERE finish = ""t4""" Which city and state has the bad alias of Lawrenceville?,"SELECT T2.city, T2.state FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Lawrenceville' GROUP BY T2.city, T2.state" What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359?,SELECT MIN(1995) FROM table_name_14 WHERE 1990 = 441 AND 1985 < 359 Find the ship type that are used by both ships with Panama and Malta flags.,SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' What is the name of the movie that has been reviewed the most?,"SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1" Can you count the number of drivers who are from Hartford City or younger than 40?,SELECT count ( * ) FROM driver WHERE home_city = 'Hartford' OR age < 40 What are their student numbers?,SELECT t1.stu_num FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' Name the position for nhl team being los angeles kings,"SELECT position FROM table_1965650_3 WHERE nhl_team = ""Los Angeles Kings""" What are the nationalities of the party hosts?,SELECT T2.Nationality FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID "What is the highest position Talk on Corners, which had an issue date greater than 1, had?","SELECT COUNT(highest_position) FROM table_name_29 WHERE album_title = ""talk on corners"" AND issue_date > 1" List all directors along with the number of films directed by each director.,"SELECT directed_by , count(*) FROM film GROUP BY directed_by" show me the details of the events. | here are the details of all events | How many events did not have any participants?,SELECT count ( * ) FROM EVENTS WHERE event_id NOT IN ( SELECT event_id FROM Participants_in_Events ) What is the highest total points a team got in a year?,"SELECT SUM(Pts), year FROM Teams GROUP BY year, tmID ORDER BY SUM(Pts) DESC LIMIT 1" "What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?","SELECT SUM(losses) FROM table_name_56 WHERE team = ""montreal hockey club"" AND goals_against > 15" Who was the visitor when the score was 136–120?,"SELECT visitor FROM table_name_78 WHERE score = ""136–120""" Find the list of documents that are both in the most three popular type and have the most three popular structure.,SELECT document_name FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY count(*) DESC LIMIT 3 "How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?",SELECT COUNT(gold) FROM table_name_62 WHERE bronze < 5 AND silver > 1 AND rank > 8 "Which product got the most five stars, and how many?","SELECT T.Product, MAX(T.num) FROM ( SELECT Product, COUNT(Stars) AS num FROM reviews WHERE Stars = 5 GROUP BY Product ) T" Which After 1 year has an After 3 years of 80%?,"SELECT after_1_year FROM table_name_40 WHERE after_3_years = ""80%""" What is the review of the restaurant at 8440 Murray Ave?,SELECT T2.review FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'murray ave' AND T1.street_num = 8440 What is the name of the department with the student that has the lowest GPA?,SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1 Show the names of players coached by the rank 1 coach.,SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1 How many people are under 40 for each gender?,"SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender" what is the sum of attendance of week 11,SELECT SUM(attendance) FROM table_name_62 WHERE week = 11 what are the first name and last name of all candidates?,"SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id" What's the lowest Year with a Venue of casablanca and has the Time of 20.63w?,"SELECT MIN(year) FROM table_name_71 WHERE venue = ""casablanca"" AND time = ""20.63w""" "What is teh average amount of goals for club real avilés cf, which has more than 59 goals against and a -10 goal difference?","SELECT AVG(goals_for) FROM table_name_53 WHERE goals_against > 59 AND club = ""real avilés cf"" AND goal_difference > -10" Who was the partner of the winner?,"SELECT partner FROM table_name_46 WHERE outcome = ""winner""" Who is the Director of the Filmography with Production Number of 11-14?,"SELECT director FROM table_name_76 WHERE production_number = ""11-14""" And what about the course code that they are enrolled in?,SELECT T3.CRS_CODE FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' Which country is the Nova TV network from?,"SELECT country FROM table_name_53 WHERE tv_network_s_ = ""nova tv""" "For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.","SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade" What is the Result of the dance Choreographed by Kelly Aykers?,"SELECT results FROM table_name_44 WHERE choreographer = ""kelly aykers""" What is the lowest episode number where john bird was the 4th performer?,"SELECT MIN(episode) FROM table_name_48 WHERE performer_4 = ""john bird""" What law has a penalty of — in Iraq?,"SELECT laws_against_homosexuality FROM table_name_90 WHERE penalty = ""—"" AND country = ""iraq""" What was the score when the opponent was the Orioles and the loss shows morehead (5–4)?,"SELECT score FROM table_name_18 WHERE opponent = ""orioles"" AND loss = ""morehead (5–4)""" What is the percentage of people whose age greater than 24 and participate in winter season?,SELECT CAST(COUNT(CASE WHEN T2.age > 24 AND T1.season = 'Winter' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.games_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id What is the nickname of the school established in 2009?,SELECT nickname FROM table_name_8 WHERE established = 2009 Which Record has a Score of l 97–99 (ot)?,"SELECT record FROM table_name_88 WHERE score = ""l 97–99 (ot)""" "How many more times does the first word in the biwords pair ""àbac-xinès"" occur than the biwords pair itself?",SELECT occurrences - ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) AS CALUS FROM words WHERE word = 'àbac' What is the total number of runners-up for a club with winning years of 2010?,"SELECT COUNT(runners_up) FROM table_name_92 WHERE winning_years = ""2010""" What are the names of races held after 12:00:00 or before 09:00:00?,"SELECT name FROM races WHERE TIME > ""12:00:00"" OR TIME < ""09:00:00""" What is the name of all the teams that played in the EFL League One division?,"SELECT T1.HomeTeam,T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.name = 'EFL League One' and T1.Div = 'E2' " What are the functions of the pair of genes that have the lowest expression correlation score?a,SELECT T1.Function FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 ORDER BY T2.Expression_Corr ASC LIMIT 1 Which driver had a grid of 18?,"SELECT driver FROM table_name_58 WHERE grid = ""18""" Who is the winner of the Best Television Episode award for the Edgar category in 2000? Include his or her name and role.,"SELECT T1.name, T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.year = 2000 AND T2.award_category = 'Edgar' AND T2.award = 'Best Television Episode'" How many millions of U.S viewers are there when the director is andy wolk?,"SELECT us_viewers__million_ FROM table_29747178_2 WHERE directed_by = ""Andy Wolk""" What is the average winning rate of the Buffalo Sabres in 2000?,SELECT SUM(CAST(T2.W AS REAL) / T2.G) / COUNT(T1.oppID) FROM TeamVsTeam AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID WHERE T2.name = 'Buffalo Sabres' AND T1.year = 2000 What is the Score of the game @ San Antonio on June 20?,"SELECT score FROM table_name_81 WHERE opponent = ""@ san antonio"" AND date = ""june 20""" Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.,SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry' How many people attended the game with a record of 86-56,"SELECT COUNT(attendance) FROM table_name_39 WHERE record = ""86-56""" "What is the venue of the competition ""1994 FIFA World Cup qualification"" hosted by ""Nanjing ( Jiangsu )""?","SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = ""Nanjing ( Jiangsu )"" AND T3.competition = ""1994 FIFA World Cup qualification""" "Which Lost has a Drawn larger than 1, and Games smaller than 7?",SELECT MIN(lost) FROM table_name_8 WHERE drawn > 1 AND games < 7 What is the weight when the race was the VRC Melbourne Cup?,"SELECT COUNT(weight) FROM table_name_76 WHERE race = ""vrc melbourne cup""" Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000 What are the full names and ages for all female students whose sex is F?,"SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'" What is the full name of the sales person who has the the highest commission percent received per sale?,"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM SalesPerson AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.CommissionPct DESC LIMIT 1" "Which date has a Week smaller than 14, and an Opponent of san francisco 49ers?","SELECT date FROM table_name_92 WHERE week < 14 AND opponent = ""san francisco 49ers""" What is the median age where the area is 1.7?,"SELECT median_age__in_2006_ FROM table_1174162_1 WHERE area__km²_ = ""1.7""" List all the purchase order ids of the vendor with a below average rating.,SELECT T2.PurchaseOrderID FROM Vendor AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.BusinessEntityID = T2.VendorID WHERE T1.CreditRating = 5 How many districts have Mac Sweeney as incumbent?,"SELECT COUNT(candidates) FROM table_1341586_44 WHERE incumbent = ""Mac Sweeney""" Name the commander of 167 off 2348 men,"SELECT commander FROM table_11793221_4 WHERE complement = ""167 off 2348 men""" Who were the guest team wehn the match score was 3:0 (0:2)?,"SELECT guest FROM table_name_76 WHERE score__first_match_ = ""3:0 (0:2)""" How many customers ordered Stephen King's first book?,SELECT COUNT(T1.publication_date) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN order_line AS T4 ON T4.book_id = T1.book_id WHERE T3.author_name = 'Stephen King' ORDER BY T1.publication_date ASC LIMIT 1 What films did Nicholas Meyer direct?,"SELECT Title FROM film WHERE Director = ""Nicholas Meyer""" Find the average grade of all students who have some friends.,SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) And in which city is it located?,SELECT city FROM airports ORDER BY elevation LIMIT 1 Count the number of distinct channel owners.,SELECT count(DISTINCT OWNER) FROM channel "Which city of license has an independent network affiliation, a variety format and is station KKUP?","SELECT city_of_license FROM table_name_9 WHERE network_affiliation = ""independent"" AND format = ""variety"" AND station = ""kkup""" What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?,SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' What lane did the barbados swimmer compete in before heat 3?,"SELECT lane FROM table_name_23 WHERE heat < 3 AND nationality = ""barbados""" Which Match played in a Location of San Francisco has a Competition of Semifinal?,"SELECT match FROM table_name_19 WHERE competition = ""semifinal"" AND location = ""san francisco""" What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?,SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' Indicate the title of all the films that are in the Classics category.,SELECT T2.title FROM film_category AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id WHERE T3.name = 'Classics' What is the total amount of gold medals when there were more than 20 silvers and there were 135 bronze medals?,SELECT COUNT(gold) FROM table_name_22 WHERE silver > 20 AND bronze = 135 Give the total surface area covered by countries in Asia or Europe.,"SELECT sum(SurfaceArea) FROM country WHERE Continent = ""Asia"" OR Continent = ""Europe""" Which college have both players with position midfielder and players with position defender?,"SELECT College FROM match_season WHERE POSITION = ""Midfielder"" INTERSECT SELECT College FROM match_season WHERE POSITION = ""Defender""" "Please list the titles of all the films in the category of ""Horror"".",SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Horror' "What are the ids, names, dates of opening, and other details for accounts corresponding to the customer with the first name ""Meaghan""?","SELECT T1.account_id , T1.date_account_opened , T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'" "If -750m is 46.436, what is the name of the cyclist? ","SELECT name FROM table_1912276_2 WHERE __750m = ""46.436""" Give the number of Jetblue Airways flights.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = ""JetBlue Airways""" Show the name of colleges that have at least two players.,SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 I want the engine for luigi villoresi,"SELECT engine FROM table_name_44 WHERE driver = ""luigi villoresi""" What was the lowest pick for the kicker after round 12?,"SELECT MIN(pick) FROM table_name_23 WHERE round > 12 AND position = ""kicker""" Which opponent has a Date of april 14?,"SELECT opponent FROM table_name_20 WHERE date = ""april 14""" List the brand names of bottled root beer whose first brewing year is no later than 1930.,SELECT T2.BrandName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T2.FirstBrewedYear < '1930-01-01' AND T1.ContainerType = 'Bottle' ORDER BY T2.FirstBrewedYear LIMIT 1 "when type of work is novel and published in english is 1977, what was published in russian?","SELECT published_in_russian FROM table_207795_1 WHERE type_of_work = ""novel"" AND published_in_english = ""1977""" Name the least number of believers,SELECT MIN(number_of_believers) FROM table_24613895_1 Show names of teachers and the courses they are arranged to teach.,"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID" What is the Equatorial diameter of the Body: Mars?,"SELECT equatorial_diameter FROM table_name_24 WHERE body = ""mars""" What is the most money United States player Bob Gilder won?,"SELECT MAX(money___) AS $__ FROM table_name_93 WHERE country = ""united states"" AND player = ""bob gilder""" What's the nationality of Montreal Impact with Justin Mapp Category:articles with hcards as the player?,"SELECT nationality FROM table_name_14 WHERE team = ""montreal impact"" AND player = ""justin mapp category:articles with hcards""" What republican candidate was first elected most recently?,"SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = ""Republican""" Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?,"SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" what is the first performance of the last performance on 03/29/1957,"SELECT first_performance FROM table_19189856_1 WHERE last_performance = ""03/29/1957""" How many first elections have Claude Fuller as incumbent?,"SELECT COUNT(first_elected) FROM table_1342315_4 WHERE incumbent = ""Claude Fuller""" List all titles with sales of quantity more than 20 and store located in the CA state.,"SELECT T1.title, T2.qty FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T2.stor_id = T3.stor_id WHERE T2.qty > 20 AND T3.state = 'CA'" what is c-span 2009 when times 2008** is 08?,"SELECT c_span_2009 FROM table_name_80 WHERE times_2008 * * = ""08""" What year was incumbent mark w. hannaford elected?,"SELECT MIN(first_elected) FROM table_1341672_6 WHERE incumbent = ""Mark W. Hannaford""" "For each director, what is the title and score of their most poorly rated movie?","SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director" Name the pick number for bill atessis,"SELECT pick__number FROM table_name_15 WHERE name = ""bill atessis""" What event was Sun Yue the alternate and wang bingyu(3rd) the skip?,"SELECT event FROM table_name_75 WHERE alternate = ""sun yue"" AND skip = ""wang bingyu(3rd)""" "What is the highest number of wins when more than 17 cuts and more than 25 starts were made, and the top 10 ranking is less than 8?",SELECT MAX(wins) FROM table_name_95 WHERE cuts_made > 17 AND starts > 25 AND top_10 < 8 What was the Location/Attendance on september 11?,"SELECT location_attendance FROM table_name_3 WHERE date = ""september 11""" Show details of all visitors.,SELECT Tourist_Details FROM VISITORS What is the Venue of the Competition with a Score of 4-1?,"SELECT venue FROM table_name_11 WHERE score = ""4-1""" what are the different names of the singers that have sales more than 300000?,SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000 "Is teacher ""42d43fa6f37314365d08692e08680973"" a New York teacher?",SELECT teacher_ny_teaching_fellow end FROM projects WHERE teacher_acctid = '42d43fa6f37314365d08692e08680973' What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?,"SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'" Name the ICAO for lilongwe international airport,"SELECT icao FROM table_name_74 WHERE airport = ""lilongwe international airport""" What is the name of the ship with the most tonnage ?,SELECT name FROM ship order by tonnage desc limit 1 What bore goes with an 18 AB?,"SELECT bore FROM table_name_9 WHERE name = ""18 ab""" Name the administrative county being area of 422372,SELECT administrative_county FROM table_14925084_1 WHERE area_1961__statute_acres_ = 422372 How many viewers in millions were there for episode 4 of this season?,SELECT COUNT(us_viewers__in_millions_) FROM table_27969432_4 WHERE no_in_season = 4 Show all distinct city where branches with at least 100 memberships are located.,SELECT DISTINCT city FROM branch WHERE membership_amount >= 100 How many directors have directed atleast 10 movies between 1960 to 1985? Indicate the name of the movie in those years of each director that received the highest amount of 5 rating score.,SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name HAVING COUNT(T2.movie_id) > 10 Can you show both the highest and lowest grade point for each letter grade?,"SELECT lettergrade, max ( gradepoint ) , min ( gradepoint ) FROM GRADECONVERSION group by lettergrade" What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.,"SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > ""1986-11-13"" GROUP BY T2.product_id" What are the employees whose first name does not containing the letter M?,SELECT first_name FROM employees WHERE first_name NOT LIKE '%M%' What is the college pick for 213?,SELECT college FROM table_name_23 WHERE pick = 213 "In the game with 31 points, how many goals were conceded?",SELECT COUNT(goals_conceded) FROM table_18018214_4 WHERE points = 31 What's the HC for the Euro I standard?,"SELECT hc__g_kwh_ FROM table_2780146_6 WHERE standard = ""Euro I""" What was the result of the match on grass in 1955?,"SELECT outcome FROM table_2139023_2 WHERE surface = ""Grass"" AND year = 1955" What is the earliest season where Aisha Jefcoate was the runner-up?,"SELECT MIN(season) FROM table_name_13 WHERE runner_up = ""aisha jefcoate""" Home of dallas happened on what date?,"SELECT date FROM table_name_95 WHERE home = ""dallas""" What was the dew point on the day the most units of item no.5 were sold in store no.3 in 2012?,"SELECT dewpoint FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.item_nbr = 5 ORDER BY units DESC LIMIT 1" "Show the minimum, maximum, and average age for all people.","SELECT min(age) , max(age) , avg(age) FROM people" Find employee with ID and name of the country presently where (s)he is working.,"SELECT T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" How many players are from Australia?,SELECT COUNT(CASE WHEN T2.Country_Name = 'Australia' THEN T1.Player_Id ELSE NULL END) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id "Which Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs?","SELECT record FROM table_name_25 WHERE time___et__ = ""1:00pm"" AND opponent = ""kansas city chiefs""" What seasons in series 7 did David E. Kelley write ?,"SELECT COUNT(season__number) FROM table_23279434_1 WHERE written_by = ""David E. Kelley"" AND series__number = 7" What are the different driver ids and nationalities of all drivers who had a laptime of more than 100000 milliseconds?,"SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000" "Between the stores under weather station 12, what is the percentage of item 5 sold in store 10 in 2014?",SELECT CAST(SUM(CASE WHEN T2.store_nbr = 10 THEN units * 1 ELSE 0 END) AS REAL) * 100 / SUM(units) FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE station_nbr = 12 AND item_nbr = 5 AND T2.`date` LIKE '%2014%' What are the alias of the cities with 0 population in 2010?,SELECT DISTINCT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2010 = 0 What was the location and attendance of the game when High Assists were Andre Miller (7)?,"SELECT location_attendance FROM table_17323042_11 WHERE high_assists = ""Andre Miller (7)""" Return the unit of measure for 'Herb' products.,"SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = ""Herbs""" WHAT IS THE HOME TEAM ON APRIL 25?,"SELECT home_team FROM table_name_52 WHERE date = ""april 25""" What is the title of the course that is a prerequisite for Mobile Computing?,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') What is the venue when Geelong is the away team?,"SELECT venue FROM table_name_27 WHERE away_team = ""geelong""" "What are the attributes when the type is ""DOMNodeRemoved""?","SELECT attribute FROM table_1507852_1 WHERE type = ""DOMNodeRemoved""" "List the method, date and amount of all the payments, in ascending order of date.","SELECT Payment_Method_Code, Date_Payment_Made, Amount_Payment FROM Payments ORDER BY Date_Payment_Made" What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?,SELECT MIN(matches) FROM table_name_36 WHERE bonus_pts = 19 AND total_points > 421 Please give all the list prices of the product LL Fork.,SELECT T2.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'LL Fork' "Of all the teams that played as a team away against Caen in the 2010 season, which one has the highest winning percentage?",SELECT AwayTeam FROM matchs WHERE HomeTeam = 'Caen' AND season = 2010 AND FTR = 'A' GROUP BY AwayTeam ORDER BY COUNT(AwayTeam) DESC LIMIT 1 What is the Musical Guest/Song with a pilot of 3?,"SELECT musical_guest_song_performed FROM table_name_99 WHERE pilot = ""3""" "For period September 2009, what is the other Mozilla total number?","SELECT COUNT(other_mozilla) FROM table_1876262_10 WHERE period = ""September 2009""" "Show the total number of rooms of the apartments in the building with short name ""Columbus Square"".","SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = ""Columbus Square""" When was Too Hop to Handle released?,"SELECT release_date FROM table_name_68 WHERE title = ""too hop to handle""" "Okay, what are the dates for the apartment in building 225 ?","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE t2.building_id = ""225""" What's the sales breakdown for Nintendo's Mario Kart DS?,"SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = ""Nintendo"" AND title = ""Mario Kart DS""" Name the number of party for new york 29,"SELECT COUNT(party) FROM table_1341423_32 WHERE district = ""New York 29""" What are the distinct positions of the players from a country whose capital is Dublin?,"SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = ""Dublin""" Show the property type descriptions of properties belonging to that code.,SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code "Van Meter has a water(sqmi) of 0 and a longitude larger than -98.444062, what was their highest ANSI code?","SELECT MAX(ansi_code) FROM table_name_63 WHERE water__sqmi_ = 0 AND township = ""van meter"" AND longitude > -98.444062" Which Sydney has Auckland cancelled and Perth yes?,"SELECT sydney FROM table_name_73 WHERE auckland = ""cancelled"" AND perth = ""yes""" "What are the last names of faculty in building Barton, sorted by last name?","SELECT Lname FROM FACULTY WHERE Building = ""Barton"" ORDER BY Lname" Which PBA team has a College of nu?,"SELECT pba_team FROM table_name_61 WHERE college = ""nu""" List all people names in the order of their date of birth from old to young.,SELECT name FROM people ORDER BY date_of_birth Which community area has the least population?,SELECT community_area_name FROM Community_Area ORDER BY population ASC LIMIT 1 What language is Sky Cinema Passion television service n. 308?,"SELECT language FROM table_15887683_5 WHERE television_service = ""Sky Cinema Passion"" AND n° = ""308""" What sport name do they play?,SELECT T1.sportname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' Name the date for postponed attendance,"SELECT date FROM table_name_7 WHERE attendance = ""postponed""" How many performers are 29 that made it to the semi finals?,"SELECT semifinal__week_ FROM table_28180840_15 WHERE age_s_ = ""29""" What are the descriptions for the aircrafts?,SELECT Description FROM aircraft What is the position of the player with a round less than 20 from the school/club Washington?,"SELECT position FROM table_name_17 WHERE round < 20 AND school_club_team = ""washington""" what is the name of the episode whose writer is Timothy J. Lea and the director is Norberto Barba?,"SELECT title FROM table_22580855_1 WHERE written_by = ""Timothy J. Lea"" AND directed_by = ""Norberto Barba""" What was the date of A. Benes loss to the Rockies?,"SELECT date FROM table_name_19 WHERE loss = ""a. benes"" AND opponent = ""rockies""" What are their city codes?,"SELECT city_code FROM Student WHERE sex = ""F""" "Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008?","SELECT format FROM table_name_89 WHERE label = ""columbia"" AND catalog < 88697411432 AND date = ""october 24, 2008""" Please list any three businesses with their IDs that are located in Dallas City.,SELECT T2.BusinessEntityID FROM Address AS T1 INNER JOIN BusinessEntityAddress AS T2 ON T1.AddressID = T2.AddressID WHERE T1.City = 'Dallas' LIMIT 3 "What is 1989, when 1999 is F, and when 1994 is 2R?","SELECT 1989 FROM table_name_39 WHERE 1999 = ""f"" AND 1994 = ""2r""" "Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, and a Range of virunga mountains, and a Mountain of nyiragongo?","SELECT country FROM table_name_12 WHERE prominence__m_ < 1540 AND height__m_ < 3530 AND range = ""virunga mountains"" AND mountain = ""nyiragongo""" "Find products with max page size as ""A4"" or pages per minute color smaller than 5.","SELECT product FROM product WHERE max_page_size = ""A4"" OR pages_per_minute_color < 5" What is the longitude with a latitude of 47.985154?,"SELECT longitude FROM table_18600760_15 WHERE latitude = ""47.985154""" Which Cup Apps (sub) had 2 goals?,"SELECT cup_apps__sub_ FROM table_name_59 WHERE cup_goals = ""2""" What is the ICT when education is 1.73 and KI is ag 1.99? ,"SELECT ict FROM table_23050383_1 WHERE education = ""1.73"" AND ki = ""1.99""" Why did Geninho leave as manager?,"SELECT manner_of_departure FROM table_29414946_3 WHERE outgoing_manager = ""Geninho""" What was John Jones's pick#?,"SELECT SUM(pick) FROM table_name_30 WHERE player = ""john jones""" What's the original title of the film Zozo?,"SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = ""Zozo""" What is the visiting team of the game with the home team Grizzlies on 13 November 2007?,"SELECT visitor FROM table_name_77 WHERE home = ""grizzlies"" AND date = ""13 november 2007""" When did the United States of America attained it's Independence?,SELECT T1.Independence FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United States' Give me the brewery and brand names of canned root beer that were purchased before 6/6/2015.,"SELECT DISTINCT T2.BreweryName, T2.BrandName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T1.PurchaseDate < '2015-06-06' AND T1.ContainerType = 'Can'" How many schools in Brooklyn with urban metro and donations for an honoree have requested TT992 - Refill Pack for Safety Name Tags as a resource?,SELECT COUNT(T2.schoolid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T2.school_city = 'Brooklyn' AND T2.school_metro = 'urban' AND T3.for_honoree = 't' AND T1.item_name = 'TT992 - Refill Pack for Safety Name Tags' "When the winner was Alessandro Ballan, how many total team classifications were there?","SELECT COUNT(team_classification) FROM table_15294880_2 WHERE winner = ""Alessandro Ballan""" "What was the winning team with the 8,132 final attendance?","SELECT winningteam FROM table_name_20 WHERE cup_final_attendance = ""8,132""" At what milepost is Beacon Falls? ,"SELECT milepost FROM table_2572788_1 WHERE town_city = ""Beacon Falls""" "Hmm, I also want to know the phone numbers of all suppliers please.",SELECT supplier_phone FROM suppliers Show the delegate and committee information of elections.,"SELECT Delegate , Committee FROM election" which location in 2004? | do you mean campus? | which campus has the highest number of degrees?,SELECT T1.campus FROM Campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.Degrees = ( select max ( Degrees ) from degrees ) Name the termination of mission for appointed by of franklin pierce,"SELECT termination_of_mission FROM table_name_76 WHERE appointed_by = ""franklin pierce""" What are the names of all the storms that affected at least 10 cities?,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum ( T2.number_city_affected ) > = 10 How many perpetrators are there?,SELECT count(*) FROM perpetrator; "For the event which happened at 23:55:16 on 2016/5/7, in the location coordinate(113, 28), on what device did it happen? Give the name of the device model.",SELECT T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN events AS T2 ON T1.device_id = T2.event_id WHERE T2.longitude = '113' AND T2.latitude = '28' AND T2.timestamp = '2016-05-07 23:55:16' Name the most famous university in Argentina.,SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name ORDER BY SUM(T2.score) DESC LIMIT 1 What's that department's address?,SELECT T4.DEPT_ADDRESS FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count ( * ) DESC LIMIT 1 What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?,"SELECT COUNT(coordinate_velocity_v_dx_dt_in_units_of_c) FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = ""ln[2 + √5] ≅ 1.444""" Show the distinct countries of managers.,SELECT DISTINCT Country FROM manager Who had the high rebounds when the team played Sacramento?,"SELECT high_rebounds FROM table_17355408_9 WHERE team = ""Sacramento""" What's the speed rank in 1963?,"SELECT speed_rank FROM table_name_11 WHERE year = ""1963""" What year was Caroline Medina Miss Fire (3rd Runner-up)?,"SELECT AVG(year) FROM table_name_21 WHERE miss_fire__3rd_runner_up_ = ""caroline medina""" What Etymology ranked 12?,SELECT etymology FROM table_name_58 WHERE rank = 12 Name the sum of played with wins more than 19,SELECT SUM(played) FROM table_name_14 WHERE wins > 19 Can you tell me the Position that has the CFL Team of toronto?,"SELECT position FROM table_name_31 WHERE cfl_team = ""toronto""" What location did david mccann receive a siver and morgan fox win the gold?,"SELECT location FROM table_name_38 WHERE silver = ""david mccann"" AND gold = ""morgan fox""" What shows for 2002 when 2006 is Grand Slam Tournaments?,"SELECT 2002 FROM table_name_65 WHERE 2006 = ""grand slam tournaments""" How many transactions were made to purchase a bottle of beer using American Express?,SELECT COUNT(T1.RootBeerID) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID WHERE T1.ContainerType = 'Bottle' AND T2.CreditCardType = 'American Express' List all the dates of enrollment and completion of students.,"SELECT date_of_enrolment , date_of_completion FROM Student_Course_Enrolment" List at least 10 films that the customers can rent for more than 5 days.,"SELECT T.title FROM ( SELECT T1.title, COUNT(T3.customer_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id WHERE T1.rental_duration > 5 GROUP BY T1.title ) AS T WHERE T.num > 10" Where was the combat of 2009-09-16?,"SELECT location FROM table_name_80 WHERE circumstances = ""combat"" AND date = ""2009-09-16""" what is the year of Gone with the Wind,SELECT year FROM Movie WHERE title = 'Gone with the Wind' How many yards were averaged by the player that had a higher than 13 average with less than 18 long?,SELECT AVG(yards) FROM table_name_94 WHERE long < 18 AND avg > 13 What is the number Played that has 310 Points for?,"SELECT played FROM table_name_77 WHERE points_for = ""310""" How many episodes in the series were directed by Alan Taylor?,"SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = ""Alan Taylor""" Who is the oldest player that participated in OHL league in the 1997 - 2000 season?,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.LEAGUE = 'OHL' AND T2.SEASON = '1999-2000' ORDER BY T1.birthdate LIMIT 1 "Calculate the total dish count for menu with uuid of ""510d47e4-2958-a3d9-e040-e00a18064a99"" & ""510d47e4-295a-a3d9-e040-e00a18064a99"".",SELECT SUM(CASE WHEN T2.uuid = '510d47e4-2958-a3d9-e040-e00a18064a99' THEN T1.dish_count ELSE 0 END) - SUM(CASE WHEN T2.uuid = '510d47e4-295a-a3d9-e040-e00a18064a99' THEN T1.dish_count ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id "What is the total number of Tonnage, when Date is ""25 June 1943""?","SELECT COUNT(tonnage) FROM table_name_4 WHERE date = ""25 june 1943""" "Return the owner id, first name and last name of the owner who has the most dogs.","SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1" "In which year did the user who gave the most number of ""5"" star reviews join the Yelp?",SELECT T2.user_yelping_since_year FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.review_stars = 5 GROUP BY T2.user_yelping_since_year ORDER BY COUNT(T1.review_stars) DESC LIMIT 1 "Among the female users that uses OPPO as their phone brand, what is the percentage of them of the user that uses R815T model to install the app?","SELECT SUM(IIF(T1.phone_brand = 'OPPO', 1, 0)) / SUM(IIF(T1.device_id = 'R815T', 1, 0)) AS num FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T2.gender = 'F'" can you show me a list of starting year?,SELECT Starting_year FROM player_coach "what is the to par for $242,813 with score 68-72-74-66=280","SELECT to_par FROM table_name_83 WHERE money___$__ = ""242,813"" AND score = 68 - 72 - 74 - 66 = 280" "In 2015, what percentage of trips that had the subscription type was Customer and ended on a rainy day?","SELECT CAST(SUM(CASE WHEN T2.events = 'Rain' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2015' AND T1.subscription_type = 'Customer'" what is the average of capacities?,SELECT avg ( Capacity ) FROM cinema "When David McNamara was the opponent in the final, what was the tier?","SELECT tier FROM table_name_59 WHERE opponent_in_the_final = ""david mcnamara""" "On the date of 30/01/1991, when the away team was Liverpool, what was the score?","SELECT score FROM table_name_76 WHERE date = ""30/01/1991"" AND away_team = ""liverpool""" "What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7?","SELECT MIN(total) FROM table_name_72 WHERE data_processing_and_exploitation = ""00 0,228"" AND management_and_support > 1 OFFSET 7" In what year was player Bruce Graham acquired?,"SELECT acquired FROM table_name_18 WHERE player = ""bruce graham""" How many ingredients are there in the recipe that is best in helping your body's natural defence against illness and infection?,SELECT COUNT(*) FROM Nutrition AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.vitamin_a > 0 Is Zach also a male?,"SELECT gender from person where name = ""Zach""" Show names for artists without any exhibition.,SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition) "Of all male officers, what percentage are black officers?",SELECT CAST(SUM(race = 'B') AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M' Who wrote the episode with a production code of ip03007?,"SELECT written_by FROM table_29273182_1 WHERE production_code = ""IP03007""" Give the full name of employee who handled the order id 10280.,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10280" What year at CU is the person in video services with an experience less than 1?,"SELECT year_at_cu FROM table_name_8 WHERE experience < 1 AND position = ""video services""" What date did De Vries start?,"SELECT started FROM table_12608427_8 WHERE name = ""de Vries""" In which district was the incumbent Dick Saslaw? ,"SELECT district FROM table_13618584_1 WHERE incumbent = ""Dick Saslaw""" How few laps were finished in 17?,"SELECT MIN(laps) FROM table_name_48 WHERE finish = ""17""" List the total scores of body builders in ascending order.,SELECT Total FROM body_builder ORDER BY Total ASC "Among the films starred by Nick Wahlberg, what is the percentage of the films with G rating?","SELECT CAST(SUM(IIF(T3.rating = 'G', 1, 0)) AS REAL) / COUNT(T3.film_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Elvis' AND T1.last_name = 'Marx'" Provide the full names of employees earning more than the employee with id 163.,"SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )" Which state has the most cities?,SELECT state_abbrev FROM district GROUP BY state_abbrev ORDER BY COUNT(city) DESC LIMIT 1 What is the week number with Phil Collins as the original artist?,"SELECT week__number FROM table_name_88 WHERE original_artist = ""phil collins""" Which Race has a Runners of 7 and Odds of 1/3?,"SELECT race FROM table_name_30 WHERE runners = 7 AND odds = ""1/3""" name the student ids who attend the statastic course?in order of attendance date,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.date_of_attendance" "Which nation has the number of silver medals greater than 1, and bronze medals as 1?",SELECT nation FROM table_name_7 WHERE silver > 1 AND bronze = 1 How many times is the shot volume (cm3) less than 172.76?,SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76 Who did Abdelhafid Benchebla face in the quarterfinals?,"SELECT quarterfinals FROM table_17427004_7 WHERE athlete = ""Abdelhafid Benchebla""" "Which author of the paper ""Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web"" is affiliated with National Taiwan University Department of Computer Science and Information Engineering Taiwan?",SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web' AND T1.Affiliation = 'National Taiwan University Department of Computer Science and Information Engineering Taiwan' "Who were the students who failed the course ""Applied Deep Learning""? Give the full name.","SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Applied Deep Learning ' AND T2.grade IS NULL" Write down the times when there is no available bike to borrow in a station. List down the stations name and location coordinate.,"SELECT T2.time, T1.name, T1.lat, T1.long FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.bikes_available = 0" Please list the Alpha2Codes of all the countries that have an indicator on Rural population in 1960.,SELECT T1.Alpha2Code FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Rural population' AND T2.Year = 1960 Show the times used by climbers to climb mountains in Country Uganda.,"SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = ""Uganda""" What is the rank for the nation with 0 silver medals and a total larger than 2?,SELECT SUM(rank) FROM table_name_86 WHERE silver = 0 AND total > 2 Who directed the episode with production code ip01003? ,"SELECT directed_by FROM table_29273057_1 WHERE production_code = ""IP01003""" how mnay greek designation in tampa,"SELECT COUNT(greek_designation) FROM table_18159601_1 WHERE city = ""Tampa""" what are the air dates for episodes with the production code 08-02-214,"SELECT original_air_date FROM table_16390576_3 WHERE production_code = ""08-02-214""" Show the ids for all the students who participate in an activity and are under 20.,SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20 What car number has 130 points?,SELECT car__number FROM table_name_58 WHERE points = 130 Which carrier is ranked 20?,SELECT carriers FROM table_name_19 WHERE rank = 20 How many products have a price higher than the average?,SELECT count ( * ) FROM products WHERE product_price > ( SELECT avg ( product_price ) FROM products ) From what Country is T6 Place Player Robert Karlsson?,"SELECT country FROM table_name_19 WHERE place = ""t6"" AND player = ""robert karlsson""" What is the average and total transaction amount?,"SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions" What year was the Win percentage 60%?,"SELECT years FROM table_name_77 WHERE win_percentage = ""60%""" "What are each of those pilots' nationalities? | Do you want to konw Pilot name and related pilots' nationalities? | Yes, please.","SELECT Pilot_name,Nationality from pilot" What are their login names?,"SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""operating system"" OR T2.course_name = ""data structure""" "Who wrote the episode that originally aired on January 15, 1993?","SELECT written_by FROM table_2409041_5 WHERE original_air_date = ""January 15, 1993""" What is the birth date of A. J. Holmes who has a right-handed batting style?,"SELECT birth_date FROM table_name_57 WHERE batting_style = ""right-handed"" AND name = ""a. j. holmes""" What are the names of players whose training hours is between 500 and 1500?,SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 "Find the titles of all the papers written by ""Jeremy Gibbons""","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Jeremy"" AND t1.lname = ""Gibbons""" What was the year Elected of Republican Incumbent Dave Reichert?,"SELECT elected FROM table_name_31 WHERE party = ""republican"" AND incumbent = ""dave reichert""" What shows for 2000 when 2013 shows 3rd?,"SELECT 2000 FROM table_name_19 WHERE 2013 = ""3rd""" Which major town is located within the Outback Areas Community Development Trust?,"SELECT major_town FROM table_23685890_2 WHERE local_government_area = ""Outback Areas Community Development Trust""" what is the time/retired when the grid is 9?,SELECT time_retired FROM table_name_77 WHERE grid = 9 Find the city that hosted the most events.,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1 How many counties are there in Virginia State?,SELECT COUNT(T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Virginia' Which Round has a Player of todd fedoruk?,"SELECT SUM(round) FROM table_name_28 WHERE player = ""todd fedoruk""" "What is the average react of bryan barnett, who has a lane less than 2?","SELECT AVG(react) FROM table_name_59 WHERE name = ""bryan barnett"" AND lane < 2" How many of those are not in San Jose City?,"select count ( * ) from ( SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg ( bikes_available ) > 10 EXCEPT SELECT name FROM station WHERE city = ""San Jose"" ) " "Also, what is the color code?","SELECT t1.color_code , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" Can you show me the student names with ids?,"SELECT StuID, LName, Fname FROM Student" Wins smaller than 0 had what sum of year?,SELECT SUM(year) FROM table_name_16 WHERE wins < 0 Find average unit price?,SELECT avg ( unit_price ) from tracks What is the set 1 score when the total is 85–101?,"SELECT set_1 FROM table_name_92 WHERE total = ""85–101""" Name the Weight of ádám steinmetz category:articles with hcards?,"SELECT weight FROM table_name_96 WHERE name = ""ádám steinmetz category:articles with hcards""" Find all the forenames of distinct drivers who was in position 1 as standing and won?,SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 Which FA Cup apps has league goals of 1 with total goals less than 1?,SELECT AVG(fa_cup_apps) FROM table_name_47 WHERE league_goals = 1 AND total_goals < 1 "What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?","SELECT COUNT(guests) FROM table_name_89 WHERE ship_name = ""rv indochina"" AND crew < 28" List out the nation of players who played for the 1997-1998 season .,SELECT DISTINCT T2.nation FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1997-1998' What are the titles of the top 5 Catalan language Wikipedia page with the least number of different words? Indicate each title's word id that has appeared the most in the said pages.,SELECT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid ORDER BY T1.words LIMIT 5 Name the runner-up for janice yan (閻奕格),"SELECT runner_up FROM table_name_35 WHERE winner = ""janice yan (閻奕格)""" what is the Open Date of Pure Church of Christ? | Did you mean the open date of the church named Pure Church of Christ? | yes,"SELECT open_date FROM church where name = ""Pure Church of Christ""" "Which Home team has a Year of 2002/03, and a Venue of tahnoun bin mohamed stadium?","SELECT home_team FROM table_name_35 WHERE year = ""2002/03"" AND venue = ""tahnoun bin mohamed stadium""" What character did actor Damien Richardson play?,"SELECT character FROM table_name_50 WHERE actor_actress = ""damien richardson""" "Among the players with a height of over 6'2"" inches, how many of them were born in Sweden?","SELECT COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2""' AND T1.nation = 'Sweden'" "Okay, and what about the average followers for those who do have tweets?",SELECT avg ( followers ) FROM user_profiles WHERE UID IN ( SELECT UID FROM tweets ) What is the average grid with brm and under 63 laps?,"SELECT AVG(grid) FROM table_name_33 WHERE constructor = ""brm"" AND laps < 63" "Hi, could you please show me the list of all appellations those produce wine after 2008?",SELECT Appelation FROM WINE WHERE YEAR > 2008 "What is the total rank for New Zealand, when less than 1 bronze medals were won?","SELECT SUM(rank) FROM table_name_56 WHERE nation = ""new zealand"" AND bronze < 1" What are the types of competition that have most 5 competitions for that type?,SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 5 Show the status shared by cities with population bigger than 1500 and smaller than 500.,SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500 "Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?","SELECT MAX(promotions) FROM table_name_43 WHERE team = ""pallacanestro messina"" AND relegations > 0" What was the losing score on September 1?,"SELECT loss FROM table_name_48 WHERE date = ""september 1""" How old is the doctor named Zach?,SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach' "What is the name of the document which has been accessed the most times, as well as the number of times it has been accessed?","SELECT document_name , access_count FROM documents ORDER BY access_count DESC LIMIT 1" How many picks have a Player of pong escobal?,"SELECT SUM(pick) FROM table_name_80 WHERE player = ""pong escobal""" "What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001?",SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001 When are the birthdays of customer who are classified as 'Good Customer' status?,SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer' What season did the player who came from Cebu play in?,"SELECT season FROM table_name_64 WHERE school_club_team = ""cebu""" What is the area of xin county?,"SELECT area FROM table_2847477_2 WHERE english_name = ""Xin County""" What are their item IDs?,SELECT i_id FROM item WHERE i_id NOT IN ( SELECT i_id FROM review ) "What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?","SELECT fastest_lap FROM table_name_18 WHERE date = ""leeds, alabama"" AND circuit = ""april 19""" "What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered?","SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE ship_types_delivered = ""S2 (LST) type, S2 (frigate) type, C1-M type""" How many teams did Farhad Kazemi leave?,"SELECT COUNT(team) FROM table_22297198_3 WHERE outgoing_manager = ""Farhad Kazemi""" What was the score when they had a 25-41-9 record?,"SELECT score FROM table_name_84 WHERE record = ""25-41-9""" "What was the topic of the article ""A Formal Approach to Service Component Architecture"" and when was it published?","SELECT Keyword, Year FROM Paper WHERE Title = 'A Formal Approach to Service Component Architecture'" Show name of all students who have some friends and also are liked by someone else.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id "Tell me the lowest week for attendance of 60,894","SELECT MIN(week) FROM table_name_37 WHERE attendance = ""60,894""" "List down the company names which supplied products for the order on 14th August, 1996.",SELECT T1.CompanyName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN `Order Details` AS T3 ON T2.ProductID = T3.ProductID INNER JOIN Orders AS T4 ON T3.OrderID = T4.OrderID WHERE date(T4.OrderDate) = '1996-08-14' Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.,SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 Which game has a result of 113-106?,"SELECT game FROM table_name_29 WHERE result = ""113-106""" How many partys have a candidate first elected in 1923?,SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1923 What is the border length between 'USA' and 'MEX',SELECT Length FROM borders WHERE Country1 = 'MEX' AND Country2 = 'USA' On what dates were employees without the letter M in their first names hired?,SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%' Cool! Can you show me a list of all of the different product names?,select distinct product_name from products Find the net profit of the floral products which were delivered in 2021.,"SELECT SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T1.DeliveryDate LIKE '%/%/21' AND T2.`Product Name` = 'Floral'" "Show the average amount of transactions for different lots, ordered by average amount of transactions.","SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY AVG(amount_of_transaction)" What is the most common nationality of the 3 nationalities?,SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT ( * ) DESC LIMIT 1 What is the author of the submission with the highest score?,SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 And what about the avocado's rank?,"SELECT rank FROM review WHERE i_id = ( select i_id from item where title = ""avocado"" ) " "Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?","SELECT MAX(opened) FROM table_name_76 WHERE themed_area = ""aerial park"" AND manufacturer = ""zamperla""" Name the south american rank for venezuela,"SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = ""Venezuela""" "Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon?","SELECT MAX(round) FROM table_name_7 WHERE pick < 10 AND name = ""tory nixon""" Who is responsible for most of the inspections? Give the full name.,"SELECT T.first_name, T.last_name FROM ( SELECT T2.employee_id, T2.first_name, T2.last_name, COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id GROUP BY T2.employee_id, T2.first_name, T2.last_name ORDER BY COUNT(T1.inspection_id) DESC LIMIT 1 ) AS T" What are the allergies and their types?,"SELECT allergy , allergytype FROM Allergy_type" Which number belonged to the school team from Arizona?,"SELECT no FROM table_15621965_17 WHERE school_club_team = ""Arizona""" What were the least points with a Coloni FC88 chassis?,"SELECT MIN(points) FROM table_name_43 WHERE chassis = ""coloni fc88""" "How many papers were published by the ""Virtual Reality, IEEE Annual International Symposium"" conference in 2012?","SELECT COUNT(T2.Id) FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Virtual Reality, IEEE Annual International Symposium' AND T2.Year = 2012" What are all the location codes and location names?,"SELECT location_code , location_name FROM Ref_locations" What region is the toshiba emi label with a cd format?,"SELECT region FROM table_name_51 WHERE format_s_ = ""cd"" AND label = ""toshiba emi""" "Between the Ivy League Schools, which school's state have the lowest sate appropriations to higher education in fiscal year 2011 per resident?","SELECT T1.state FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state WHERE T1.chronname IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' ) GROUP BY T1.state ORDER BY SUM(T2.state_appr_value) ASC LIMIT 1" What is the personal name of student ID 15?,SELECT personal_name FROM Students where student_id = 15 Who was the girl of the week 2 weeks before terri lynn farrow in the same month?,"SELECT week_2 FROM table_name_47 WHERE week_4 = ""terri lynn farrow""" Show the product type codes which have at least two products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING count(*) >= 2 Return the names of musicals who have the nominee Bob Fosse.,"SELECT Name FROM musical WHERE Nominee = ""Bob Fosse""" can you show me campuses years?,SELECT Year FROM Campuses What are the age groups for the Big League World Series?,"SELECT age_groups FROM table_name_26 WHERE competition_name = ""big league world series""" What is the Song with an Issue Date(s) that is 19 june?,"SELECT song FROM table_name_70 WHERE issue_date_s_ = ""19 june""" List the locations that are shared by more than two wrestlers.,SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2 what was the drawn when the tries for was 46?,"SELECT drawn FROM table_12792876_3 WHERE tries_for = ""46""" hi! how many employees are there that get a commission percentage?,SELECT COUNT ( DISTINCT EMPLOYEE_ID ) FROM employees WHERE COMMISSION_PCT > 0 When 9 is the rank who are the couple?,SELECT couple FROM table_19744915_18 WHERE rank = 9 Name the mountain peak of 49 rank,SELECT mountain_peak FROM table_name_67 WHERE rank = 49 List the 3 highest salaries of the players in 2001?,SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3 Name what was published in july 1934 with a setting of mars,"SELECT published_in FROM table_name_22 WHERE setting = ""mars"" AND publication_date = ""july 1934""" Show the statement detail and the corresponding document name for the statement with detail 'Private Project' ?,"SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'" Name the visiting team for stadium of ralph wilson stadium,"SELECT visiting_team FROM table_name_67 WHERE stadium = ""ralph wilson stadium""" "Which Losses have a South West DFL of branxholme-wallacedale, and less than 2 Byes?","SELECT AVG(losses) FROM table_name_21 WHERE south_west_dfl = ""branxholme-wallacedale"" AND byes < 2" Which is the email of the party that has used the services the most number of times?,SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY COUNT(*) DESC LIMIT 1 Show me the start dates and end dates of apartment bookings by these IDs please.,"SELECT T1.booking_start_date , T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = ""Female""" Which venue has a Result of draw?,"SELECT venue FROM table_name_92 WHERE result = ""draw""" "What outcome has September 23, 2013 as the date?","SELECT outcome FROM table_name_68 WHERE date = ""september 23, 2013""" How many different popular vote counts were there for the candidate Rick Perry?,"SELECT COUNT(popular_vote) FROM table_20246201_9 WHERE candidate = ""Rick Perry""" "Tell the capacity, length, height and width for the catalog entry name cola ?","SELECT capacity, length, height, width FROM catalog_contents WHERE catalog_entry_name = ""Cola""" What cities have more than 3 airports in the United States?,SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count ( * ) > 3 "What is the total amount of money requested for three persons? | Sorry, which three persons do you want? | The three persons are Francesco Postiglione, Leonardo Binchi and Fabrizio Buonocore","SELECT sum ( T1.Money_Requested ) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Name = ""Francesco Postiglione"" or T2.Name = ""Leonardo Binchi"" or T2.Name = ""Fabrizio Buonocore""" k. Who is the composer for For Those About To Rock (We Salute You) ?,SELECT distinct T2.Composer FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId where t1.title = 'For Those About To Rock We Salute You' How many different dates are there for founded teams for the venue of champion window field?,"SELECT COUNT(founded) FROM table_name_77 WHERE venue = ""champion window field""" What is the venue of the game that was played on 23 October 1966?,"SELECT venue FROM table_name_41 WHERE date = ""23 october 1966""" "Which room has lowest price value? tell me the price, the name and Room ID","SELECT baseprice, roomName, roomid FROM Rooms WHERE basePrice = ( select min ( baseprice ) from rooms ) " Can you tell me the Position that has the Entrant of j ampt?,"SELECT position FROM table_name_67 WHERE entrant = ""j ampt""" Show all the activity names and the number of faculty involved in each activity.,"SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID" "What is the Placement when the Votes are fewer than 208, and when the Candidate is Jordan Turner?","SELECT placement FROM table_name_58 WHERE votes < 208 AND candidate = ""jordan turner""" "Who are the opponents in the February 19, 1996 final?","SELECT opponents_in_the_final FROM table_name_30 WHERE date = ""february 19, 1996""" Where did Footscray play as the away team?,"SELECT venue FROM table_name_76 WHERE away_team = ""footscray""" List out the phone number of the shipping company of order id 10296.,SELECT T2.Phone FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.OrderID = 10260 "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.","SELECT T2.Name , T2.age , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme ASC" Which Drobo (2nd) has a Drobo S (2nd) of 5?,SELECT drobo__2nd_ FROM table_name_1 WHERE DROBO_S(2 AS nd) = 5 How many employees work for AdvertureWorks that is single?,SELECT COUNT(T1.BusinessentityID) FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.PersonType = 'EM' AND T2.MaritalStatus = 'S' "Which Position has a Round larger than 4, and a Player of patrick johnson?","SELECT position FROM table_name_45 WHERE round > 4 AND player = ""patrick johnson""" What Country has a Player with Playoff Money with a Score of 72-69-73-73=287?,"SELECT country FROM table_name_8 WHERE money___$__ = ""playoff"" AND score = 72 - 69 - 73 - 73 = 287" "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?","select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;" "Provide the locations and times of the events of app ID ""8715964299802120000"".","SELECT T1.longitude, T1.latitude, T1.timestamp FROM events AS T1 INNER JOIN app_events AS T2 ON T1.event_id = T2.event_id WHERE T2.app_id = 8715964299802120000" What were the average partial failures when the rocket was Ariane 5?,"SELECT AVG(partial_failures) FROM table_name_87 WHERE rocket = ""ariane 5""" Please calculate the average total price of orders from Exoto Designs Vendor in 2005.,"SELECT SUM(T2.quantityOrdered * T2.priceEach) / COUNT(T3.orderNumber) FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode INNER JOIN orders AS T3 ON T2.orderNumber = T3.orderNumber WHERE T1.productVendor = 'Exoto Designs' AND STRFTIME('%Y', T3.orderDate) = '2005'" What is the number of region 4 for the series of the complete seventh series?,"SELECT COUNT(region_4) FROM table_1337525_1 WHERE complete_series = ""The Complete Seventh Series""" Which Position has a Player of steve nemeth?,"SELECT position FROM table_name_94 WHERE player = ""steve nemeth""" What is the fewest gold medals when the bronze medals is greater than 5?,SELECT MIN(gold) FROM table_name_49 WHERE bronze > 5 which vehicles got best time of day 1:17.17,"SELECT vehicle FROM table_20090682_4 WHERE best_time_of_day = ""1:17.17""" What is augusta's low rank?,"SELECT MIN(rank) FROM table_name_58 WHERE location = ""augusta""" What date was the record 20–16?,"SELECT date FROM table_name_38 WHERE record = ""20–16""" "Show the start dates and end dates of all the apartment bookings made by guests with gender code ""Female"".","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = ""Female""" On which date was the opponent lamine ouahab?,"SELECT date FROM table_name_92 WHERE opponent = ""lamine ouahab""" When olympikus is the main sponsor who is the secondary sponsor?,"SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = ""Olympikus""" Find the name of the students and their department names sorted by their total credits in ascending order.,"SELECT name , dept_name FROM student ORDER BY tot_cred" What Try bonus has a Points against of 488?,"SELECT try_bonus FROM table_name_61 WHERE points_against = ""488""" "What is the roll number of Poroti school, which has a 6 decile?","SELECT roll FROM table_name_45 WHERE decile = ""6"" AND name = ""poroti school""" Who played on clay on 3 march 2012?,"SELECT opponent FROM table_name_16 WHERE surface = ""clay"" AND date = ""3 march 2012""" Show names of cities and names of counties they are in.,"SELECT T1.Name , T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" What is the names of movies whose created year is after all movies directed by Steven Spielberg?,"SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = ""Steven Spielberg"")" Which Venue has a Result of won 5-4?,"SELECT venue FROM table_name_65 WHERE result = ""won 5-4""" Which of the document is described with the prefix initial? | Document with type code APP is described with the prefix initial. | Whats is APP document description?,"SELECT document_description FROM Document_Types WHERE document_type_code = ""APP""" When did elisabeth of valois die?,"SELECT death FROM table_name_45 WHERE name = ""elisabeth of valois""" What was the result of round 2r?,"SELECT outcome FROM table_11326124_3 WHERE round = ""2R""" "How many coaches does each club has? List the club id, name and the number of coaches.","SELECT T1.club_id , T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id" Who is the staff manager of the store with the most non-active customers?,"SELECT T.first_name, T.last_name FROM ( SELECT T3.first_name, T3.last_name, COUNT(T1.customer_id) AS num FROM customer AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN staff AS T3 ON T2.store_id = T3.store_id WHERE T1.active = 0 GROUP BY T3.first_name, T3.last_name ) AS T ORDER BY T.num DESC LIMIT 1" What is the total enrollment of the aa IHSAA class?,"SELECT COUNT(enrollment) FROM table_name_61 WHERE ihsaa_class = ""aa""" "What was attendance on March 11, 1995?","SELECT MIN(attendance) FROM table_20745746_1 WHERE date = ""March 11, 1995""" "Among the countries in the High income: OECD group whose currency unit is Euro, how many of them have a note on the series code SP.DYN.AMRT.FE?",SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.IncomeGroup = 'High income: OECD' AND T1.CurrencyUnit = 'Euro' AND T2.Seriescode = 'SP.DYN.AMRT.FE' What series was sorted at number 3?,SELECT series_sorted FROM table_1620397_5 WHERE _number = 3 Which Chinese has a Pali of atappa?,"SELECT chinese FROM table_name_59 WHERE pali = ""atappa""" "List all the authors named ""George"".",SELECT author_name FROM author WHERE author_name LIKE 'George%' "For the employee who has been hired the latest, what is his or her pay rate?",SELECT T1.Rate FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T2.HireDate DESC LIMIT 1 "What is the average age of the members of the club ""Bootup Baltimore""?","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" What is the cyrillic name other names for the settlement of debeljača?,"SELECT cyrillic_name_other_names FROM table_2562572_43 WHERE settlement = ""Debeljača""" What result occurs when the round is 4 leg 2?,"SELECT result FROM table_name_87 WHERE round = ""4 leg 2""" "What is the smallest total for a rank below 4, 0 silver medals, and 2 gold medals?",SELECT MIN(total) FROM table_name_85 WHERE rank < 4 AND silver > 0 AND gold < 2 "What is the language ID of the movie ""Walk the Line""?",SELECT T2.language_id FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Walk the Line' "What is the maximum, minimum and average years spent working on a school bus?","SELECT MAX(years_working), MIN(years_working), AVG(years_working) FROM school_bus" What are the names and job titles of every person ordered alphabetically by name?,"SELECT name , job FROM Person ORDER BY name" What are the results for Bill Shuster?,"SELECT results FROM table_name_71 WHERE incumbent = ""bill shuster""" What was the genre of Queen (an artist from the United Kingdom)?,"SELECT genre FROM table_name_47 WHERE country_of_origin = ""united kingdom"" AND artist = ""queen""" "Show the average room count of the apartments that have booking status code ""Provisional"".","SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" What is the total revenue of all companies whose main office is at Tokyo or Taiwan?,SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' what is the brand name of id 2 ? | Did you mean the brand or name of the camera lens with ID 2? | yes,SELECT brand FROM camera_lens where id = 2 who was the trofeo fast team in stage 10?,"SELECT trofeo_fast_team FROM table_name_32 WHERE stage = ""10""" "What is the tenure of the person with revenues of 60,000-->58,000 koku?","SELECT tenure FROM table_name_90 WHERE revenues = ""60,000-->58,000 koku""" "List down the revision page id of titles where ""fresc"" appears.",SELECT T3.revision FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'fresc' Which club has a try bonus of 9 and 43 tries against?,"SELECT club FROM table_name_38 WHERE tries_against = ""43"" AND try_bonus = ""9""" What is the high grid for ferrari's with 2 laps?,"SELECT MAX(grid) FROM table_name_45 WHERE constructor = ""ferrari"" AND laps = 2" What is the average no opinion score during 1954 November that is more favorable than 35?,"SELECT AVG(no_opinion) FROM table_name_94 WHERE date = ""1954 november"" AND favorable > 35" "List the organisation id with the maximum outcome count, and the count.","SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1" How many games are played for all students?,SELECT sum(gamesplayed) FROM Sportsinfo When is the completed date of the destroyer with a pennant number h59?,"SELECT completed FROM table_name_50 WHERE pennant_number = ""h59""" Show paragraph details for paragraph with text 'Korea ' .,select other_details from paragraphs where paragraph_text like 'korea' How many people attended the game at Jahn-sportpark?,"SELECT MIN(attendance) FROM table_24786958_2 WHERE game_site = ""Jahn-Sportpark""" what is the score for the dams?,"SELECT points FROM table_10705060_1 WHERE team_name = ""DAMS""" "Show the account name, id and the number of transactions for each account.","SELECT T2.account_name , T1.account_id , count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id" What region has 0.3% solar panel?,"SELECT region FROM table_25042332_26 WHERE solar_panel = ""0.3%""" "Which Bask has Soft of 18, and a Total larger than 35?","SELECT AVG(bask) FROM table_name_17 WHERE soft = ""18"" AND total > 35" "What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?",SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540 "How many degrees did ""San Jose State University"" confer in 2001?","SELECT sum ( degrees ) FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND t2.year = 2001" What is the notes for the team from Denmark?,"SELECT notes FROM table_name_48 WHERE country = ""denmark""" List the award name and persons who won the award in 2009.,"SELECT award, person FROM Award WHERE result = 'Winner' AND SUBSTR(year, 1, 4) = '2009';" Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?,"SELECT year FROM table_name_3 WHERE runner_up = ""utc"" AND winners = ""saint-gaudens bears""" Where did adrian smith go to college?,"SELECT team_school FROM table_26916717_1 WHERE name = ""Adrian Smith""" Give the names of countries that are in Europe and have a population equal to 80000.,"SELECT Name FROM country WHERE continent = ""Europe"" AND Population = ""80000""" Could you add in their departments please?,"SELECT T1.first_name , T1.last_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id" "What is the catalog number of the title called ""super callanetics""?","SELECT catalog_number FROM table_11222744_3 WHERE title = ""Super Callanetics""" What percentage of the votes in Copiah did McCain get?,"SELECT mccain_percentage FROM table_20799587_1 WHERE county = ""Copiah""" what is the owner name of CCTV-1,"SELECT owner from channel where name = ""CCTV-1""" Which Away team has a Venue of arden street oval?,"SELECT away_team FROM table_name_32 WHERE venue = ""arden street oval""" Who has a time of 3:50.90?,"SELECT name FROM table_name_35 WHERE time = ""3:50.90""" What is the series 3 with more than 4 seats?,SELECT series_3 FROM table_name_77 WHERE seat > 4 What date was the game score w 104-98?,"SELECT date FROM table_27882867_9 WHERE score = ""W 104-98""" Who is the guard for Wisconsin?,"SELECT player FROM table_name_44 WHERE position = ""guard"" AND school = ""wisconsin""" "For every student who is registered for some course, how many courses are they registered for?","SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id" What are the top three universities with the most international students?,SELECT DISTINCT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id GROUP BY T2.university_name ORDER BY SUM(T1.num_students * T1.pct_international_students / 100) DESC LIMIT 3 What are the L2 cache specifications of part number amql64dam22gg?,"SELECT l2_cache FROM table_27277284_27 WHERE order_part_number = ""AMQL64DAM22GG""" What is the production code for season episode 8?,SELECT MIN(production_code) FROM table_13505192_3 WHERE season_number = 8 "How many papers are ""Atsushi Ohori"" the author of?","SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Atsushi"" AND t1.lname = ""Ohori""" What is the customer name of customer id 9?,SELECT customer_name FROM Customers WHERE customer_id = 9 what is the highest round when the college is penn state?,"SELECT MAX(round) FROM table_name_72 WHERE college = ""penn state""" Which is the city where most of the 1 star reviews come from?,SELECT T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 1 GROUP BY T2.city ORDER BY COUNT(T2.city) DESC LIMIT 1 what city scored 0:0,"SELECT city FROM table_name_78 WHERE results¹ = ""0:0""" Show all distinct publishers for books.,SELECT DISTINCT publisher FROM book_club Please show different denominations and the corresponding number of schools in descending order.,"SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC" What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04?,"SELECT default_desktop_environment FROM table_27329061_2 WHERE edition = ""KDE"" AND compatible_repository = ""Ubuntu 13.04""" Name the call sign for ERP W of 4,SELECT call_sign FROM table_name_20 WHERE erp_w = 4 What school is located in Michigan City?,"SELECT school FROM table_name_37 WHERE location = ""michigan city""" Where can I get the demographic information about the Valley Bicycle Specialists store?,SELECT Demographics FROM Store WHERE Name = 'Valley Bicycle Specialists' What is the event that is in 8th position?,"SELECT event FROM table_name_70 WHERE position = ""8th""" What was the score when there was a visitor of Magic and at home with the Clippers?,"SELECT score FROM table_name_54 WHERE visitor = ""magic"" AND home = ""clippers""" Give me the issue date of the volume with the minimum weeks on top,SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1 Show me all the employees in the same department as Clara. | Here is all the information of all the employees in the same department as the employee with a first name Clara. | Can you show me their hire dates?,"SELECT hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = ""Clara"" ) " "In what week was the attendance 25,000?","SELECT week FROM table_name_92 WHERE attendance = ""25,000""" Which furniture has the highest price? | The id of the furniture with the highest price is 7. | What is the name of the manufacturer that sells that furniture?,SELECT t1.Name 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 lowest First Year, when Model is ""Quattroporte (2.8)""?","SELECT MIN(first_year) FROM table_name_15 WHERE model = ""quattroporte (2.8)""" List the maximum weight and type for each type of pet.,"SELECT max(weight) , petType FROM pets GROUP BY petType" What were Sébastien Bourdais' lowest points when there were less than 63 laps?,"SELECT MIN(points) FROM table_name_16 WHERE driver = ""sébastien bourdais"" AND laps < 63" "Write down the title, summary, and air date of the episode that garnered 72 10-star votes.","SELECT T2.title, T2.summary, T2.air_date FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 10 AND T1.votes = 72" Which title aired on 18 dec 2006- 10 feb 2007?,"SELECT english_title__chinese_title_ FROM table_name_67 WHERE airing_date = ""18 dec 2006- 10 feb 2007""" What is the max gross weight of the Robinson R-22?,"SELECT max_gross_weight FROM table_10006830_1 WHERE aircraft = ""Robinson R-22""" In which event did Fabuleux 5 get a result smaller than 70.88?,"SELECT event FROM table_name_69 WHERE horse = ""fabuleux 5"" AND result < 70.88" Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.,"SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1" What is the lowest year with tyres in g and less than 0 points?,"SELECT MIN(year) FROM table_name_32 WHERE tyres = ""g"" AND points < 0" WHAT IS THE SCORE WITH A RECORD OF 1-0?,"SELECT score FROM table_name_94 WHERE record = ""1-0""" How many members gained university status in 1900?,"SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900" Provide the alias and elevation of the city with zip code 1028.,"SELECT T1.alias, T2.elevation FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 1028" Name the branch with least membership amount.?,SELECT Name FROM branch ORDER BY membership_amount ASC LIMIT 1 "What are all the songs in albums under label ""Universal Music Group""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = ""Universal Music Group""" What is the average height of people from USA?,SELECT AVG(height_meters) FROM Person WHERE birth_country = 'USA'; What are the details of the shops that can be accessed by walk?,"SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk""" What was the record at the game against the Los Angeles Rams?,"SELECT record FROM table_name_25 WHERE opponent = ""los angeles rams""" Give the district numbers with an Anti-Administration party.,SELECT district FROM `historical-terms` WHERE party = 'Anti-Administration' GROUP BY district What is the MSRP for the laptop with storage of 128-512 GB SSD?,"SELECT msrp FROM table_name_2 WHERE storage = ""128-512 gb ssd""" What are the first names of all history professors who do not teach?,SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num "Which Country has a Score of 69, and a Player of mick soli?","SELECT country FROM table_name_92 WHERE score = 69 AND player = ""mick soli""" What was the status of rank 20?,SELECT status FROM table_24431348_18 WHERE rank = 20 What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09?,"SELECT original_airing FROM table_name_74 WHERE rating < 10.1 AND episode_number_production_number = ""96 5-09""" "What are the first names for students who have an ""a"" in their first name?",SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' What are the names of stadiums that some Australian swimmers have been to?,SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia' How many students are there?,SELECT count(*) FROM student "Find the average yearly order by customer Weimei Corp for 2018, 2019 and 2020.",SELECT COUNT(T1.OrderNumber) / 3 FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE (T1.OrderDate LIKE '%/%/18' AND T2.`Customer Names` = 'Weimei Corp') OR (T1.OrderDate LIKE '%/%/19' AND T2.`Customer Names` = 'Weimei Corp') OR (T1.OrderDate LIKE '%/%/20' AND T2.`Customer Names` = 'Weimei Corp') What are the daily hire costs for the products with substring 'Book' in its name?,SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%' What is the lowest pick number of John Scully?,"SELECT MIN(pick__number) FROM table_name_45 WHERE name = ""john scully""" "Total larger than 3, and a Rank of 4, and a Silver larger than 0 has what average gold?","SELECT AVG(gold) FROM table_name_2 WHERE total > 3 AND rank = ""4"" AND silver > 0" Name the number of against for portuguesa santista,"SELECT COUNT(against) FROM table_15319684_1 WHERE team = ""Portuguesa Santista""" how many city there,SELECT count ( distinct City ) from city Find the name and email of the user whose name contains the word ‘Swift’.,"SELECT name , email FROM user_profiles WHERE name LIKE '%Swift%'" Which claims caused more than 2 settlements? Please list the date the claim was made and the claim id?,"SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count ( * ) > 2" What was the score when the place was t8?,"SELECT score FROM table_name_96 WHERE place = ""t8""" Find the name of companies that do not make DVD drive.,SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive' Which two countries share the second highest mountain? Give the country code.,"SELECT T1.Code FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T2.Mountain = ( SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1, 1 )" Name the finish with Laps more than 200,SELECT finish FROM table_name_17 WHERE laps > 200 Find the zip code in which the average mean visibility is lower than 10.,SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles) < 10 How many points does Clark have? ,"SELECT points FROM table_14342592_3 WHERE player = ""Clark""" What team did the Red Sox play against on June 3?,"SELECT opponent FROM table_name_16 WHERE date = ""june 3""" show me the ages of pilots in the center team position,"select age from pilot where position = ""Center Team""" In which venue did the competition on 11 October 2008 take place?,"SELECT venue FROM table_name_47 WHERE date = ""11 october 2008""" What are the maximum duration and resolution of songs grouped and ordered by languages?,"SELECT max ( T1.duration ) , max ( T2.resolution ) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages" what is the position of John Dorian,"SELECT Position FROM Physician WHERE Name = ""John Dorian""" What final round had a weight of 245?,SELECT final_round FROM table_name_61 WHERE weight = 245 What is the sum of the difference for 9 draws and over 18 played?,SELECT SUM(diff) FROM table_name_48 WHERE drawn = 9 AND played > 18 Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić,"SELECT score_in_the_final FROM table_name_1 WHERE outcome = ""runner-up"" AND surface = ""hard"" AND opponents_in_the_final = ""michaël llodra nenad zimonjić""" Tell me the Hindu for ethnic group for white irish,"SELECT hindu FROM table_name_4 WHERE ethnic_group = ""white irish""" Which nominee was nominated in the Outstanding Director of a Musical category?,"SELECT nominee FROM table_name_17 WHERE category = ""outstanding director of a musical""" "How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?","SELECT SUM(to_par) FROM table_name_32 WHERE total > 149 AND country = ""united states"" AND year_s__won = ""1997""" What is the name of the 3 employees who get paid the least?,SELECT name FROM Employee ORDER BY salary ASC LIMIT 3 How many different municipal mayors were there in the municipality with an area of 42.66 km2?,"SELECT COUNT(municipal_mayor) FROM table_216776_2 WHERE area__km²_ = ""42.66""" Which headquarter's truck has the highest shipments in year 2016?,"SELECT CASE WHEN T2.make = 'Peterbilt' THEN 'Texas (TX)' WHEN T2.make = 'Mack' THEN 'North Carolina (NC)' WHEN T2.make = 'Kenworth' THEN 'Washington (WA)' END AS ""result"" FROM shipment AS T1 INNER JOIN truck AS T2 ON T1.truck_id = T2.truck_id WHERE CAST(T1.ship_date AS DATE) = 2016 GROUP BY T2.make ORDER BY COUNT(T1.ship_id) DESC LIMIT 1" List the name of actors whose age is not 20.,SELECT Name FROM actor WHERE Age != 20 Who did the high rebounds in the game against Boston?,"SELECT high_rebounds FROM table_27704187_7 WHERE team = ""Boston""" What daft pick number is the player coming from Regina Pats (WHL)?,"SELECT pick__number FROM table_2850912_1 WHERE college_junior_club_team = ""Regina Pats (WHL)""" What are the names of wines that are more expensive then all wines made in the year 2006?,SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006) Find the team names of the universities whose enrollments are smaller than the average enrollment size.,SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university) "How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?","SELECT COUNT(car__number) FROM table_name_93 WHERE driver = ""erik darnell"" AND pos < 2" Name the analysts,SELECT s_analyst FROM table_22654139_2 "When South Melbourne was the home team, who was the away team?","SELECT away_team FROM table_name_80 WHERE home_team = ""south melbourne""" "Among the players who played 72 games, how many are left-shooters?",SELECT COUNT(T2.ELITEID) FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.GP = 72 AND T2.shoots = 'L' who is the player when the position is p and the team is oakland athletics?,"SELECT player FROM table_name_99 WHERE position = ""p"" AND team = ""oakland athletics""" What are the ids of the stations in San Francisco that normally have more than 10 bikes available?,"SELECT id FROM station WHERE city = ""San Francisco"" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available) > 10" "What is the sum of Capacity, when Team is ""Denizlispor""?","SELECT SUM(capacity) FROM table_name_58 WHERE team = ""denizlispor""" List down the cities that belong to the country with a life expectancy of 66.4.,SELECT T2.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.LifeExpectancy = 66.4 What is the 1994 finish for the Miami tournament?,"SELECT 1994 FROM table_name_14 WHERE tournament = ""miami""" What is the total sales amount for Reflector?,SELECT SUM(T1.Price * T2.quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Reflector' Who was away team at the home game of south melbourne?,"SELECT away_team FROM table_name_99 WHERE home_team = ""south melbourne""" What are the names of storms that did not affect two or more regions?,SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 Damani Ralph is associated with which lowest pick #?,"SELECT MIN(pick__number) FROM table_name_39 WHERE player = ""damani ralph""" Find the first and last name of students who are not in the largest major.,"SELECT fname , lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)" Which Overall is the average one that has a Name of vance walker?,"SELECT AVG(overall) FROM table_name_95 WHERE name = ""vance walker""" What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger?,"SELECT COUNT(place) FROM table_name_10 WHERE artist = ""rosie hunter"" AND draw > 1" is γолемата вода nominated for anything?,"SELECT result FROM table_14928423_1 WHERE original_title = ""Γолемата Вода""" What are the first names of the students that minor in the department with DNO 140?,SELECT T2.Fname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140 Which movies have 'Deleted Scenes' as a substring in the special feature?,SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%' find the full name of employees who report to Nancy Edwards?,"SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = ""Nancy"" AND T1.last_name = ""Edwards"";" Find the name and age of the person who is a friend of Dan or Alice.,"SELECT DISTINCT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'" What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?,SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16' How many flights of Alaska Airlines were delayed on 2018/8/2?,SELECT COUNT(*) FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.FL_DATE = '2018/8/2' AND T2.Description = 'Alaska Airlines Inc.: AS' AND T1.DEP_DELAY > 0 What is the highest total when there is less than 1 championship?,SELECT MAX(total) FROM table_name_80 WHERE championship < 1 "Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18?","SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = ""usa u-18""" "Count the number of customers that have an email containing ""gmail.com"".","SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE ""%gmail.com%""" What was the dose of that medication?,"SELECT dose FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" Which rank has a Total GDP (€ bn) of €11.243??,"SELECT rank FROM table_name_98 WHERE total_gdp__€_bn__ = ""€11.243""" What is the distance/duration on sept 5 of le grand prix de trois-rivières?,"SELECT distance_duration FROM table_name_3 WHERE date = ""sept 5"" AND race_title = ""le grand prix de trois-rivières""" Name the gender for elsthorpe school,"SELECT gender FROM table_name_63 WHERE name = ""elsthorpe school""" Which format is in St. George with a frequency of 0 107.3 fm?,"SELECT format FROM table_name_31 WHERE city_of_license = ""st. george"" AND frequency = ""0 107.3 fm""" "Give the genre and popularity of movies whose revenue is at least 120,000,000 between 2012 and 2015.","SELECT T3.genre_name, T1.popularity FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.revenue > 120000000 AND T1.release_date BETWEEN '2012-01-01' AND '2015-12-31'" Name the round for southampton opponents,"SELECT round FROM table_name_43 WHERE opponents = ""southampton""" What is the Score for the game with a record of 38-18?,"SELECT score FROM table_name_84 WHERE record = ""38-18""" What are the names of the dorm that does not have a TV Lounge?,SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' What are the names of all colleges with a larger enrollment than the largest college in Florida?,SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL') "Which Bronze has a Silver of 15, and a Total smaller than 54?",SELECT MIN(bronze) FROM table_name_23 WHERE silver = 15 AND total < 54 I want the trailers for motors of 145,"SELECT trailers FROM table_name_92 WHERE motors = ""145""" What was the TV time for the road game against Phoenix where the score was 98-99?,"SELECT tv_time FROM table_name_30 WHERE home_team = ""phoenix"" AND result = ""98-99""" "What is the Competition for Season 2002–03, and the Opponent was zenit st. petersburg?","SELECT competition FROM table_name_86 WHERE season = ""2002–03"" AND opponent = ""zenit st. petersburg""" "Find the name and nationality of the swimmer who has won (i.e., has a result of ""win"") more than 1 time.","SELECT t1.name , t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING count(*) > 1" What are the birthdays of people in ascending order of height?,SELECT Birth_Date FROM People ORDER BY Height ASC What was the tournament that resulted in a winning score of –4 (71-72-72-69=284)?,SELECT tournament FROM table_name_34 WHERE winning_score = –4(71 - 72 - 72 - 69 = 284) What league has an average attendance of 244?,"SELECT league FROM table_name_72 WHERE avg_attendance_† = ""244""" Tell met he score for team of waaia,"SELECT score FROM table_name_67 WHERE team = ""waaia""" Which is the opponent when the record was 43-56?,"SELECT opponent FROM table_name_12 WHERE record = ""43-56""" How many carries for jeff smoker?,"SELECT SUM(car) FROM table_name_54 WHERE player = ""jeff smoker""" List all of the player ids with a height of at least 180cm and an overall rating higher than 85.,SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85 Where do the trips end?,SELECT DISTINCT T2.city FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id How many States have an Indian population of 30947?,SELECT COUNT(filipino) FROM table_10118412_6 WHERE indian = 30947 "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.","SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'" "What are the ids, types, and details of the organization with the most research staff?","SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1" Please show the names and the players of clubs.,"SELECT T1.name, T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID" What is Australia's highest total?,"SELECT MAX(total) FROM table_name_86 WHERE country = ""australia""" Find the names of all races held in 2017.,SELECT name FROM races WHERE YEAR = 2017 What are the three most costly procedures?,SELECT name FROM procedures ORDER BY cost LIMIT 3 "When the FIS Nordic World Ski Championships was 1962, 1964 what was the Holmenkollen?","SELECT holmenkollen FROM table_name_58 WHERE fis_nordic_world_ski_championships = ""1962, 1964""" Who was featured in 20 questions on 4-03?,"SELECT 20 AS _questions FROM table_1566852_4 WHERE date = ""4-03""" What is the Unanimous of the Minnesota Southern California School?,"SELECT unanimous FROM table_name_93 WHERE school = ""minnesota southern california""" What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?,SELECT SUM(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010 "What is the Date, when Game is 17?",SELECT date FROM table_name_69 WHERE game = 17 What are the first and last names of the student who played the most total hours per week?,"SELECT Fname, Lname from student where stuid = ( select stuid from sportsinfo group by stuid order by sum ( hoursperweek ) desc limit 1 ) " Who is the head of household for task number 7?,SELECT head_of_household FROM table_name_39 WHERE task_no = 7 How many population total figures are there for the year when Allora's population was 2132?,SELECT COUNT(population__region_total_) FROM table_12584173_1 WHERE population__allora_ = 2132 How much does David Bornhammar weigh in kilograms?,SELECT T2.weight_in_kg FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T1.PlayerName = 'David Bornhammar' What was the time recorded for grid 18?,SELECT time_retired FROM table_name_89 WHERE grid = 18 Which game has sold the fewest units?,SELECT T.game_name FROM ( SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id ORDER BY T4.num_sales LIMIT 1 ) t What is the maximum elevation of all airports in the country of Iceland?,SELECT max(elevation) FROM airports WHERE country = 'Iceland' Give me the the customer details and id for the customers who had two or more policies but did not file any claims.,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id" Which patients made more than one appointment? Tell me the name and phone number of these patients.,"SELECT name , phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count(*) > 1" Name the production code for theresa rebeck,"SELECT production_code FROM table_25604014_9 WHERE written_by = ""Theresa Rebeck""" Which buildings are in a studio?,SELECT building_full_name FROM Apartment_Buildings WHERE building_description = 'Studio' Find the names of Japanese constructors that have once earned more than 5 points?,"SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = ""Japanese"" AND T2.points > 5" What is the age of the oldest dog?,SELECT max(age) FROM Dogs What is the title of the employee involved in inspection ID 60332?,SELECT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 60332 Which classes have more than two captains?,SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2 Can you calculate the total salary paid by team Boston Red Stockings in 2010?,SELECT sum ( T1.salary ) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 Which University's soccer stadium in named Moncton Stadium?,"SELECT university FROM table_27369069_1 WHERE soccer_stadium = ""Moncton Stadium""" How many inspections failed in 2014?,"SELECT COUNT(inspection_id) FROM inspection WHERE strftime('%Y', inspection_date) = '2014' AND results = 'Fail'" What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?,"SELECT dates_administered FROM table_name_87 WHERE lead_margin < 5.5 AND poll_source = ""survey usa""" What is the most common special features of science-fiction movies?,SELECT T1.special_features FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'sci-fi' ORDER BY T1.special_features DESC LIMIT 1 "What is the first name of the author with last name ""Ueno""?","SELECT fname FROM authors WHERE lname = ""Ueno""" what's the district with candidates being harry lane englebright (r) unopposed,"SELECT district FROM table_1342359_5 WHERE candidates = ""Harry Lane Englebright (R) Unopposed""" Please list all songs in volumes in ascending alphabetical order.,SELECT Song FROM volume ORDER BY Song what is the location of ID 3 | Do you mean the perpetrator ID? | yes the prepetrator ID,"SELECT location FROM perpetrator WHERE Perpetrator_ID = ""3""" List out the id of event that achieve the gold medal.,SELECT T2.event_id FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id WHERE T1.medal_name = 'Gold' Name the status for points 3185,SELECT status FROM table_23501776_16 WHERE points = 3185 What player placed t10?,"SELECT player FROM table_name_17 WHERE place = ""t10""" List all the IDs of images that have objects with the attributes of 'wired'.,SELECT DISTINCT T2.IMG_ID FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.ATT_CLASS = 'wired' What are their first and last names?,"SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Football""" What is the title of season 2? ,SELECT title FROM table_2409041_6 WHERE no_in_season = 2 what had a score of 70-71-68-72=281?,SELECT country FROM table_name_88 WHERE score = 70 - 71 - 68 - 72 = 281 how many female students presented on table,"SELECT count ( * ) FROM Student WHERE Sex = ""F""" Is English one of them?,"SELECT distinct dept_code from professor where dept_code = ""ENG""" What is the catalogue number for release dates of exactly 2005 and released by The Clear Spots?,"SELECT catalogue_number FROM table_27932399_1 WHERE release_date = 2005 AND artist = ""The Clear Spots""" What is the level name of the cheapest catalog (in USD)?,SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 Who was the vacator when the reason for change was failure to elect?,"SELECT vacator FROM table_225206_3 WHERE reason_for_change = ""Failure to elect""" Show the names and genders of players with a coach starting after 2011,"SELECT T3.Player_name , T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011" What year was the 190 South Lasalle Street?,"SELECT MAX(year) FROM table_name_9 WHERE name = ""190 south lasalle street""" For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?,"SELECT tie_no FROM table_name_5 WHERE attendance = ""2 january 1999"" AND home_team = ""plymouth argyle""" Who is every player with a height of 6-5?,"SELECT player FROM table_22824297_1 WHERE height = ""6-5""" What is the ID of cup?,"SELECT i_id FROM item where title = ""cup""" List all the distinct stations from which a trip of duration below 100 started.,SELECT DISTINCT start_station_name FROM trip WHERE duration < 100 What was the first Round with a Pick # greater than 1 and 140 Overall?,SELECT MIN(round) FROM table_name_43 WHERE pick__number > 1 AND overall > 140 What is the final result for the 63.5 kg?,"SELECT final FROM table_name_73 WHERE event = ""63.5 kg""" Show the names of employees that work for companies with sales bigger than 200.,SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200 Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?,"SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000" List the categories for which Bonita Pietila was given credit and her role in creating the episodes.,"SELECT DISTINCT category, role FROM Credit WHERE person = 'Bonita Pietila';" Find the total and average amount of settlements.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements" "Among the seafoods, how many of them have an order quantity of more than 50?",SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Categories AS T3 ON T1.CategoryID = T3.CategoryID WHERE T3.CategoryName = 'Seafood' AND T2.Quantity > 50 Show different type codes of products and the number of products with each type code.,"SELECT Product_Type_Code, COUNT(*) FROM Products GROUP BY Product_Type_Code" What is the pick number for Danny Green in a round less than 2?,"SELECT COUNT(pick) FROM table_name_21 WHERE player = ""danny green"" AND round < 2" How many events are there?,SELECT count ( distinct Event_ID ) FROM Participants_in_Events What is the English word for twie?,SELECT english FROM table_name_43 WHERE DUTCH(Limburgish) = twie List the name of competitors from Argentina.,SELECT T3.full_name 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 = 'Argentina' What is the accelerate of the car make amc hornet sportabout (sw)?,SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)' How many Sales Rep who are working in Tokyo? List out email and full name of those employees.,"SELECT T1.firstName, T1.lastName, T1.email FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T2.city = 'Tokyo' AND T1.jobTitle = 'Sales Rep'" WHAT IS THE NATIONALITY FOR SOUTHWESTERN OKLAHOMA?,"SELECT nationality FROM table_name_53 WHERE college = ""southwestern oklahoma""" Name the number of party with the incubent james william trimble,"SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = ""James William Trimble""" What longitudes associated with a water (sqmi) area of 0.068?,"SELECT longitude FROM table_18600760_13 WHERE water__sqmi_ = ""0.068""" "Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis redden?","SELECT AVG(touchdowns) FROM table_name_47 WHERE extra_points = 0 AND points > 5 AND player = ""curtis redden""" what is the name of the instructor who is in Statistics department and earns the lowest salary?,SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1 Name the chassis of 147 points and engine of ford cosworth dfx,"SELECT chassis FROM table_name_43 WHERE points = 147 AND engine = ""ford cosworth dfx""" Return the ids corresponding to templates with the description 'Presentation'.,"SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = ""Presentation""" Engine 2.5 20v d has what engine code?,"SELECT engine AS code FROM table_name_46 WHERE engine = ""2.5 20v d""" "Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?",SELECT score FROM table_name_35 WHERE points > 46 AND game < 35 AND december = 21 How many house colours are associated with house names of Hillary?,"SELECT COUNT(house_colour) FROM table_1942683_1 WHERE house_name = ""Hillary""" What was the rank (week) for episode number 34?,SELECT rank__week_ FROM table_26199130_1 WHERE no = 34 "Which week's game was attended by 65,272 people?","SELECT week FROM table_name_18 WHERE attendance = ""65,272""" Show the detention type code for the detention with id 1?,SELECT T1.detention_type_code FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code where detention_id = 1 "Station Ownership of eicb tv, and a Call sign of ktcj-ld is what virtual network?","SELECT virtual_channel FROM table_name_25 WHERE station_ownership = ""eicb tv"" AND call_sign = ""ktcj-ld""" Which state has the least?,select T1.state_province_county from Addresses as T1 join Employees as T2 on T1.address_id = T2.employee_address_id group by T1.state_province_county order by count ( * ) limit 1 What was the first leg of the semi-final?,"SELECT first_leg FROM table_name_78 WHERE round = ""semi-final""" Who is the player with a 75-68-70=213 score?,SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 213 "Who played the No.1 character in the credit list of the movie which was released on ""2015/10/26""?",SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.`Release Date` = '2015-10-26' AND T2.creditOrder = '1' "What is Name, when State is ""Jin""?","SELECT name FROM table_name_55 WHERE state = ""jin""" What is the description for the character mentioned in paragraph No.640171?,SELECT T1.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.id = '640171' Find the total access count of all documents in the most popular document type.,SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.,"SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)" "Name the coverage area for licesne of hillsboro, west virginia","SELECT coverage_area FROM table_name_25 WHERE city_of_license = ""hillsboro, west virginia""" What are the unique types of player positions in the tryout?,SELECT count(DISTINCT pPos) FROM tryout Where is the school whose students are nicknamed Panthers located?,"SELECT location FROM table_1971074_1 WHERE nickname = ""Panthers""" What in 2013 has a 2009 of 3r?,"SELECT 2013 FROM table_name_29 WHERE 2009 = ""3r""" "What is the total number of Ends Won, when Province is ""Saskatchewan"", and when Stolen Ends is less than 6?","SELECT COUNT(ends_won) FROM table_name_92 WHERE province = ""saskatchewan"" AND stolen_ends < 6" list the course ids available,select course_id from courses "How many users have ""uber"" number of fans?",SELECT COUNT(user_id) FROM Users WHERE user_fans LIKE 'Uber' which categories fit under the institution calvin college?,"SELECT type FROM table_261895_1 WHERE institution = ""Calvin College""" What are the names of the districts that have both mall and village store style shops?,"SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""City Mall"" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""Village Store""" What are the names of banks that have loaned money to customers with credit scores below 100?,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 What players finished 2nd?,"SELECT player FROM table_1506950_4 WHERE finish = ""2nd""" Provide the average elevation of the cities with alias Amherst.,SELECT AVG(T2.elevation) FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'Amherst' How many people attended when the record was broken with 47–63?,"SELECT attendance FROM table_name_38 WHERE record = ""47–63""" What is the year that the Roughriders left the conference?,"SELECT MAX(year_left) FROM table_name_25 WHERE mascot = ""roughriders""" Who was No. 9 when Ava was No. 4 and Addison was No. 6?,"SELECT no_9 FROM table_name_37 WHERE no_4 = ""ava"" AND no_6 = ""addison""" Show the product ids and the number of unique orders containing each product.,"SELECT product_id , count(DISTINCT order_id) FROM Order_items GROUP BY product_id" What are the details for the paragraph that includes the text 'Korea ' ?,select other_details from paragraphs where paragraph_text like 'korea' How many final venues were there in the 1997-98 season?,"SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = ""1997-98""" Who are the members whose hometown address includes Kentucky | Did you want the names of the members whose hometown address includes the word Kentucky? | Yes please give their names.,"SELECT Name FROM member WHERE Hometown LIKE ""%Kentucky%""" Does the length of the tip influence the number of likes for hotel and travel business category?,"SELECT T3.tip_length, SUM(T3.likes) AS likes FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Tips AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name = 'Hotels & Travel' GROUP BY T3.tip_length" Who was the home team that played against Aylesbury Vale?,"SELECT home_team FROM table_name_37 WHERE away_team = ""aylesbury vale""" What is the country of the airport with the highest elevation?,SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 Name the candidates in 1964,SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964 Show names of musicals and the number of actors who have appeared in the musicals.,"SELECT T2.Name , COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID" What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?,"SELECT name FROM station WHERE city = ""Palo Alto"" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*) > 100" What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10?,SELECT call_sign FROM table_name_26 WHERE frequency_mhz < 95.9 AND erp_w = 10 Check whether Mr. Eduardo Martin is a customer or not? | Great. Which is the first name? | Eduardo.,"SELECT * FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins""" State the birth name of crews who are director and have birth country in South Korea.,SELECT T1.birth_name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.role = 'director' AND T1.birth_country = 'South Korea'; What was the nationality of the winner of the 42nd Edition?,"SELECT country FROM table_name_90 WHERE edition = ""42nd""" Was the game home or away when the record is 6-12?,"SELECT home___away FROM table_name_23 WHERE record = ""6-12""" What is the total when the B Score was 9.15 for Cheng Fei ( chn )?,"SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND gymnast = ""cheng fei ( chn )""" What is the Record for April 13?,"SELECT record FROM table_name_14 WHERE date = ""april 13""" What are the names of all people who are friends with Alice for the shortest amount of time?,SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice') What are the names of all the aircrafts associated with London Gatwick airport?,"SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" What team(s) had 120 consecutive starts?,SELECT teams FROM table_28606933_7 WHERE consecutive_starts = 120 Show the number of locations.,SELECT count(*) FROM Ref_locations "what row is the population of Latin America/Caribbean when Asia is 4,894 (46.1%)?","SELECT COUNT(latin_america_caribbean) FROM table_19017269_5 WHERE asia = ""4,894 (46.1%)""" Name the number of first elected for thomas maxwell (j) 60.1% david woodcock (aj) 39.9%,"SELECT COUNT(first_elected) FROM table_2668243_17 WHERE candidates = ""Thomas Maxwell (J) 60.1% David Woodcock (AJ) 39.9%""" Find the names of customers who either have an deputy policy or uniformed policy.,"SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy"" OR t1.policy_type_code = ""Uniform""" What City/State did the Atlanta Hawks (retired) team play for?,"SELECT city_state FROM table_name_24 WHERE team = ""atlanta hawks (retired)""" When did Final Score of 31-7 happen?,"SELECT date FROM table_name_64 WHERE final_score = ""31-7""" Which flag was on the Green Marine's boat?,"SELECT flag FROM table_19872699_1 WHERE builder = ""Green Marine""" What is the precise coordinate of the location where simple assault incidents happened the most in Chatham?,"SELECT T2.latitude, T2.longitude FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Simple Assault' AND T3.community_area_name = 'Chatham' AND T3.community_area_no = 44 ORDER BY T2.latitude DESC, T2.longitude DESC LIMIT 1" "Hello, can you please provide me with a list of all Event IDs and Event names?","SELECT event_id, event_name from party_events" What is the average number of bedrooms of all apartments?,SELECT avg(bedroom_count) FROM Apartments Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.,"SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != ""Rachel Elnaugh""" How many people are in the staff?,SELECT count ( * ) from staff What is the number eliminated for the person with a time of 12:38?,"SELECT eliminated AS by FROM table_name_15 WHERE time = ""12:38""" What is the earliest game against Orlando?,"SELECT MIN(game) FROM table_name_57 WHERE team = ""orlando""" what is the name id of the person with the longest laptime? | Do you mean driver id? | yes,SELECT T1.driverid FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1 When the status is rural community what's the lowest area in kilometers squared?,"SELECT MIN(area_km_2) FROM table_name_47 WHERE status = ""rural community""" "What is the record of the game on February 25, 2008?","SELECT record FROM table_name_59 WHERE date = ""february 25, 2008""" What is the earliest year?,SELECT MIN(year) FROM table_2127933_3 "Who is the ""Next-Door Bike Store"" point of contact?",SELECT T1.Name FROM ContactType AS T1 INNER JOIN BusinessEntityContact AS T2 ON T1.ContactTypeID = T2.ContactTypeID INNER JOIN Store AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T3.Name = 'Next-Door Bike Store' What was team 2 when team 1 was omonia?,"SELECT team_2 FROM table_name_9 WHERE team_1 = ""omonia""" Which supercharger gear ratio has a Octane rating of 68?,"SELECT supercharger_gear_ratio FROM table_name_22 WHERE octane_rating = ""68""" Return the cell phone number and email address for all students.,"SELECT cell_mobile_number, email_address FROM STUDENTS" "Show each apartment type code, and the maximum and minimum number of rooms for each type.","SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code" Pick 5 clients with 0 priority and write down their last name.,SELECT T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.priority = 0 LIMIT 5 How many gas companies are there?,SELECT count(*) FROM company Find the first name and office of the professor who is in the history department and has a Ph.D. degree.,"SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'" What is the strongs # for the english spelling of the word jirmejah?,"SELECT strongs__number FROM table_1242447_2 WHERE english_spelling = ""Jirmejah""" What league has 2-3 as the away?,"SELECT league FROM table_name_18 WHERE away = ""2-3""" how many journalist there,SELECT count ( * ) FROM journalist What is Maksim Botin's position? ,"SELECT position FROM table_14038363_1 WHERE player = ""Maksim Botin""" "What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?",SELECT MAX(wins) FROM table_name_74 WHERE goals_against < 51 AND points > 39 AND goal_difference < 13 What percentage of players have Legbreak skill?,SELECT CAST(SUM(CASE WHEN T2.Bowling_skill = ' Legbreak' THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Player_Id) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id List out projects which has staff for researcher role ?,SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' What is the list of school locations sorted in descending order of school foundation year?,SELECT LOCATION FROM school ORDER BY Founded DESC Name the segment 1 for episode # 2/225,"SELECT segment_1 FROM table_24172078_2 WHERE episode__number = ""2/225""" "What are the names , themes , and number of singers for every concert ?","select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id" "If the total number of seats is under 144, and the seats won is 32, which election is this?",SELECT election FROM table_name_37 WHERE total_seats < 144 AND seats = 32 Show the name and description of the role played by the employee named Ebba.,"SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = ""Ebba""" What is the lyric fm for rnag 93.2?,"SELECT lyric_fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = ""93.2""" What is the percentage ration of customers to subscribers that started their trips within the city of San Francisco?,SELECT CAST(SUM(CASE WHEN T1.subscription_type = 'Customer' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.subscription_type = 'Subscriber' THEN 1 ELSE 0 END) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'San Francisco' how many departments are there?,SELECT count ( * ) FROM department Which season's winner is Panathinaikos and is located in Athens?,"SELECT season FROM table_name_33 WHERE location = ""athens"" AND winners = ""panathinaikos""" Name the 2nd m for gregor schlierenzauer,"SELECT 2 AS nd__m_ FROM table_14407512_24 WHERE name = ""Gregor Schlierenzauer""" Find the names of the trains that do not pass any station located in London.,"SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = ""London"")" "What was the original name of the restaurant located in Orillia, ON?","SELECT original_name FROM table_name_50 WHERE location = ""orillia, on""" Lee Trevino of the United States with a total greater than 294 had what To par?,"SELECT to_par FROM table_name_73 WHERE total > 294 AND country = ""united states"" AND player = ""lee trevino""" How many years did John Player Lotus used Cosworth v8?,"SELECT SUM(year) FROM table_name_3 WHERE engine = ""cosworth v8"" AND entrant = ""john player lotus""" What is the sum of total values for Rd 7 less than 8?,SELECT SUM(total) FROM table_name_53 WHERE rd_7 < 8 Name the runs conceded where overs bowled is 53,"SELECT COUNT(runs_conceded) FROM table_15700367_2 WHERE overs_bowled = ""53""" Who was the vistiting team in the game with the final score of 7-13?,"SELECT visiting_team FROM table_name_3 WHERE final_score = ""7-13""" "Can you list the awards of the musical nominee ""Cleavant Derricks""?","SELECT DISTINCT Award FROM musical WHERE Nominee = ""Cleavant Derricks""" Name the men doubles for caroline persyn smids,"SELECT men_doubles FROM table_14903355_2 WHERE womens_doubles = ""Caroline Persyn Smids""" Find the claim id and the number of settlements made for the claim with the most recent settlement date.,"SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1" List all directors along with the number of films directed by each director.,"SELECT directed_by , count(*) FROM film GROUP BY directed_by" What is the home team's score when the away team is south melbourne?,"SELECT home_team AS score FROM table_name_12 WHERE away_team = ""south melbourne""" Please provide the number of stars that the repository of the solution 20 have.,SELECT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 20 "How many events were there on 30th April, 2016?","SELECT COUNT(event_id) FROM events WHERE SUBSTR(`timestamp`, 1, 10) = '2016-04-30'" how many students there,SELECT count ( * ) from student "For the order paying the highest freight, how many kinds of products does it contain?",SELECT COUNT(T2.ProductID) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID WHERE T1.Freight = ( SELECT MAX(Freight) FROM Orders ) GROUP BY T1.OrderID How many attended the game with north melbourne as the away side?,"SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = ""north melbourne""" "What are the corresponding classes for the ""very large bike"" attribute?",SELECT ATT_CLASS_ID FROM ATT_CLASSES WHERE ATT_CLASS = 'very large' "What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4?","SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = ""poland"" AND rank > 4" "Please show the different statuses, ordered by the number of cities that have each.",SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC Which pick came from Pittsburgh?,"SELECT COUNT(pick) FROM table_name_60 WHERE college = ""pittsburgh""" "How many of the episodes in the top 50 rankings were originally aired on June 28, 2010?","SELECT COUNT(top_50_ranking) FROM table_22170495_7 WHERE original_airing = ""June 28, 2010""" "What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0?","SELECT AVG(gold) FROM table_name_28 WHERE nation = ""yugoslavia"" AND silver > 0" What is the percentage of female athletes below 20s who participated in the 2002 Winter Olympic?,SELECT CAST(COUNT(CASE WHEN T3.gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '2002 Winter' AND T2.age < 20 "What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?","SELECT SUM(T1.PerAssemblyQty), T2.Name FROM BillOfMaterials AS T1 INNER JOIN UnitMeasure AS T2 ON T1.UnitMeasureCode = T2.UnitMeasureCode WHERE T1.UnitMeasureCode IN ('EA', 'IN', 'OZ') GROUP BY T2.Name" What are the names of wines that are more expensive than all wines made in the year 2006?,SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006) "What is the id, forename, and number of races for all drivers that have participated in at least 2 races?","SELECT T1.driverid , T1.forename , count(*) 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(*) >= 2" "Who is the partner in the final with a score of 2–6, 7–6, 7–6?","SELECT partner FROM table_name_10 WHERE score_in_the_final = ""2–6, 7–6, 7–6""" Can you add the people id associated with that weight into the table?,"SELECT people_id, weight from people order by weight desc limit 1" How many third party companies are there?,SELECT count ( * ) FROM Third_Party_Companies When was Alianza's first season in first division with a promotion after 1959?,"SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = ""1959"" AND name = ""alianza""" "What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?",SELECT SUM(total) FROM table_name_11 WHERE rank > 6 AND gold > 0 AND silver = 2 "What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?","SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = ""edmonton oil kings (wchl)"" AND position = ""defence""" What was the score of the game for April 16?,"SELECT loss FROM table_name_62 WHERE date = ""april 16""" In which city do the most employees live and how many of them live there?,"SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;" "Name the record for prudential center - 12,880","SELECT record FROM table_27539272_4 WHERE location_attendance = ""Prudential Center - 12,880""" Give the annual revenue of the customer of ship ID 1047.,SELECT T2.annual_revenue FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1047' What is the ergative for the dative chven?,"SELECT ergative FROM table_name_33 WHERE dative = ""chven""" What is the highest of balmoor/,"SELECT highest FROM table_11206787_5 WHERE stadium = ""Balmoor""" What player is from the California Golden Seals?,"SELECT player FROM table_1965650_10 WHERE nhl_team = ""California Golden Seals""" Could you please tell me all the names of the journalists?,SELECT name from journalist For ranks over 2 with Golds over 6 and Silvers over 5 what would be the lowest qualifying Total?,SELECT MIN(total) FROM table_name_4 WHERE gold > 6 AND rank > 2 AND silver > 5 what are the names of the districts where both city mall and village store type stores.,"SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""City Mall"" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""Village Store""" "What is Country, when Score is 71-71-69=211?",SELECT country FROM table_name_26 WHERE score = 71 - 71 - 69 = 211 Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.,"SELECT Employees.employee_name , count(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id , Circulation_History.draft_number , Circulation_History.copy_number ORDER BY count(*) DESC LIMIT 1;" "How many customer ids has the ""delivered"" status on the list?",select count ( customer_id ) from Customer_Orders where order_status = 'Delivered' "Among the most popular professors, how many are females?",SELECT COUNT(prof_id) FROM prof WHERE gender = 'Female' AND popularity = ( SELECT MAX(popularity) FROM prof ) Find the routes operated by all airlines? | Do you mean return all the routes? | yes.,select * from routes How many movies were made before 2000?,SELECT count(*) FROM Movie WHERE YEAR < 2000 Name who wrote the 11 number in the season,"SELECT written_by FROM table_15584067_7 WHERE no_in_season = ""11""" "In users yelping since 2010 to 2012, how many of them has an low fans?",SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year BETWEEN 2010 AND 2012 AND user_fans LIKE 'Low' Tell me the price ranges for all the hotels.,SELECT price_range FROM HOTELS What is the Time of the Rowers from Belgium?,"SELECT time FROM table_name_36 WHERE country = ""belgium""" Return the names of the gymnasts.,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID "What is Position in Table, when Team is ""Morelia""?","SELECT position_in_table FROM table_name_64 WHERE team = ""morelia""" List the authors of submissions in ascending order of scores.,SELECT Author FROM submission ORDER BY Scores ASC In what year was the most degrees conferred?,SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1 How many different store locations are there?,SELECT count(DISTINCT LOCATION) FROM shop Who is the director of the adventure movie which was released on 2007/3/30?,"SELECT T1.director FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.name WHERE T2.genre = 'Adventure' AND T2.release_date = 'Mar 30, 2007'" "What is Tournament, when Date is ""Sep 25, 1977""?","SELECT tournament FROM table_name_61 WHERE date = ""sep 25, 1977""" What party does Bill McCollum belong to?,"SELECT party FROM table_1341453_11 WHERE incumbent = ""Bill McCollum""" Tell me the document date of the project id 30?,SELECT document_type_code from documents where project_id = 30 "What is Date, when Round is less than 10, and when Circuit is ""Norisring""?","SELECT date FROM table_name_18 WHERE round < 10 AND circuit = ""norisring""" What is the name of the youngest captain?,SELECT name FROM captain ORDER BY age LIMIT 1 List all the username and passwords of users with the most popular role.,"SELECT user_name, password FROM users GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1" What are the id and first name of the student whose addresses have the highest average monthly rental?,"SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1" What is the margin of victory that has masters gc ladies as the tournament?,"SELECT margin_of_victory FROM table_name_45 WHERE tournament = ""masters gc ladies""" In which tournament was the opponent Lauren Embree?,"SELECT tournament FROM table_name_83 WHERE opponent = ""lauren embree""" Name the incumbent for first elected 1956,SELECT incumbent FROM table_1341930_40 WHERE first_elected = 1956 What is the first and last name of the student participating in the most activities?,"SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1" List down the ID of movies with running time of 3 and average revenue of 1?,SELECT T1.movieid FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid INNER JOIN directors AS T3 ON T2.directorid = T3.directorid WHERE T1.runningtime = 3 AND T3.avg_revenue = 1 What points has points for as points for?,"SELECT points FROM table_name_25 WHERE points_for = ""points for""" "What is the word id for title ""Sometent""?",SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Sometent' What are the first and last names of the 5 customers who purchased something most recently?,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;" What is the mean temperature in Fahrenheit on 8/29/2013 for the area where the zip code is 94107?,"SELECT SUM(IIF(zip_code = 94107 AND date = '8/29/2013', mean_temperature_f, 0)) FROM weather" "Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?","SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = ""#8"" AND share = 12" "What is High Assists, when High Points is Keon Clark (19)?","SELECT high_assists FROM table_name_57 WHERE high_points = ""keon clark (19)""" Which tournament had a 2008 result of 1R?,"SELECT tournament FROM table_name_85 WHERE 2006 = ""a"" AND 2008 = ""1r""" Find each student's first name.,SELECT DISTINCT fname FROM student I want the replaced for date of appointment being 12 october 2007,"SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = ""12 october 2007""" What is the name of the publisher who published Agatha Christie's first book?,SELECT T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'Agatha Christie' ORDER BY T1.publication_date ASC LIMIT 1 Sort the apartment numbers in ascending order of room count.,SELECT apt_number FROM Apartments ORDER BY room_count ASC Show the fleet series of the aircrafts flied by pilots younger than 34,SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34 Which employee has the highest salary? Please give his or her full name.,"SELECT firstname, lastname FROM employee ORDER BY salary DESC LIMIT 1" Where is the classroom located?,"SELECT class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T1.Crs_Code = ""ACCT-211"" AND T1.Class_Time LIKE '%T%'" What is the crime rate in Aibonito?,SELECT Crime_rate FROM county_public_safety WHERE County_ID = ( select County_ID from city where Name = 'Aibonito' ) "Among the classic movies, how many movies have a rental rate of less than 1?",SELECT COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.rental_rate < 1 AND T2.name = 'Classics' What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?,"SELECT stadium FROM table_name_72 WHERE location = ""carrick-on-shannon""" Show all locations which don't have a train station with at least 15 platforms.,SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms > = 15 "For each zip code, what is the average mean temperature for all dates that start with '8'?","SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE ""8/%"" GROUP BY zip_code" Find all types of store and number of them.,"SELECT TYPE , count(*) FROM store GROUP BY TYPE" Show details of all investors if they make any transaction with share count greater than 100.,SELECT T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 Find the name and age of the person who is a friend of both Dan and Alice.,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'" Name the number ends won when L is 4 and stolen ends is 17,SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17 What is the name of the genre with the most number of video games?,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T2.id = T1.genre_id GROUP BY T2.genre_name ORDER BY COUNT(T1.genre_id) DESC LIMIT 1 Show the first name and last name for all the instructors.,"SELECT fname , lname FROM Faculty WHERE Rank = ""Instructor""" "Which Laps have a Time/Retired of +23.215, and a Grid larger than 11?","SELECT MIN(laps) FROM table_name_41 WHERE time_retired = ""+23.215"" AND grid > 11" What is the name of the customer who has the most orders?,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 List the name and count of each product in all orders.,"SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" What is the role name and role description for employee called Ebba?,"SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = ""Ebba""" Show all product names and the number of customers having an order on each product.,"SELECT T2.product_name , count ( * ) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name" Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.,SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax' how many master card there,"SELECT count ( * ) FROM INVOICES where payment_method_code = ""MasterCard""" What transfer window has baptista as the name?,"SELECT transfer_window FROM table_name_44 WHERE name = ""baptista""" What is the average number of points of the team with more than 17 pg won?,SELECT AVG(points__pts_) FROM table_name_26 WHERE won__pg_ > 17 "Name the highest Ends Lost which has an Shot % larger than 78, and a Ends Won smaller than 38?",SELECT MAX(ends_lost) FROM table_name_63 WHERE shot__percentage > 78 AND ends_won < 38 I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor,"SELECT prothrombin_time FROM table_name_49 WHERE partial_thromboplastin_time = ""prolonged"" AND bleeding_time = ""unaffected"" AND condition = ""factor xii deficiency""" "Show the teams that have both wrestlers eliminated by ""Orton"" and wrestlers eliminated by ""Benjamin"".","SELECT Team FROM Elimination WHERE Eliminated_By = ""Orton"" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = ""Benjamin""" "How many documents have the document description ""Initial Application""?",SELECT count ( * ) FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Initial Application' How many people attended the match on 1/11?,"SELECT attendance FROM table_name_45 WHERE date = ""1/11""" What was the result of Samuel Smith's race?,"SELECT result FROM table_2668329_11 WHERE incumbent = ""Samuel Smith""" What is the number of Goals For for Games Played more than 8?,SELECT SUM(goals_for) FROM table_name_44 WHERE games_played > 8 How many distinct students are enrolled in courses?,SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment "What is the total for the draw with 0 points, and less than 14 lost?",SELECT SUM(draw) FROM table_name_15 WHERE points = 0 AND lost < 14 "Yes, what is the exact altitude of the Bar Yehuda Airfield?","SELECT elevation FROM airports where name = ""Bar Yehuda Airfield""" What are the distinct names and nationalities of the architects who have ever built a mill?,"SELECT DISTINCT T1.name , T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id" How many players with the first name Joe were drafted in 1970?,SELECT COUNT(DISTINCT playerID) FROM draft WHERE firstName = 'Joe' AND draftYear = 1970 What was the score when the partner was arnaud clément?,"SELECT score FROM table_name_60 WHERE partner = ""arnaud clément""" Who is the driver of the chassis that is tg183b tg184?,"SELECT driver FROM table_name_79 WHERE chassis = ""tg183b tg184""" In what state was the electorate fowler?,"SELECT state FROM table_name_1 WHERE electorate = ""fowler""" What was the record for the Orangemen when they played against Army?,"SELECT record FROM table_23346983_1 WHERE opponent = ""Army""" What is the Virtue of Temperance in Latin?,"SELECT latin FROM table_name_64 WHERE virtue = ""temperance""" What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?,SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000 When did Quvenzhané Wallis first win?,"SELECT MIN(year) FROM table_name_76 WHERE actress = ""quvenzhané wallis""" What was the home team score at Glenferrie Oval?,"SELECT home_team AS score FROM table_name_10 WHERE venue = ""glenferrie oval""" What are the origins of all flights that are headed to Honolulu?,"SELECT origin FROM Flight WHERE destination = ""Honolulu""" Who trained the horse on post 11 with over 36 odds?,SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11 What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?,"SELECT branding FROM table_name_80 WHERE owner = ""canadian broadcasting corporation"" AND frequency = ""fm 97.7""" Who is the tallest player in Denver Nuggets since 1980?,"SELECT T1.firstName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T3.name = 'Denver Nuggets' AND T2.year > 1980 ORDER BY T1.height DESC LIMIT 1" What is the id of the problem log that is created most recently?,SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1 How many different numbers of cantons does the province with the Armenian name վասպուրական have?,"SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = ""Վասպուրական""" What league is Sun Source in?,"SELECT league_division FROM table_name_6 WHERE club = ""sun source""" List all manufacturer names and ids ordered by their opening year.,"SELECT name , manufacturer_id FROM manufacturer ORDER BY open_year" What player scored 68-66=134?,SELECT player FROM table_name_50 WHERE score = 68 - 66 = 134 Name the landesliga nord for asv neumarkt,"SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = ""ASV Neumarkt""" On what Week was the Result W 17-14?,"SELECT AVG(week) FROM table_name_4 WHERE result = ""w 17-14""" Give me the count for the students younger than the average age.,select count ( fname ) from student where age < ( SELECT avg ( age ) FROM STUDENT ) Please show the record formats of orchestras in ascending order of count.,SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC Show the School name with School_ID 1?,SELECT School FROM school WHERE School_ID = '1' What result has 1947 sun bowl as the bowl game?,"SELECT result FROM table_name_81 WHERE bowl_game = ""1947 sun bowl""" Name the total number of points for the right end,"SELECT COUNT(points) FROM table_14342592_4 WHERE position = ""Right end""" "Which Series has an Opponent of calgary flames, and a Score of 9–4?","SELECT series FROM table_name_3 WHERE opponent = ""calgary flames"" AND score = ""9–4""" How many gold medals did Denmark win?,"SELECT MIN(gold) FROM table_name_65 WHERE nation = ""denmark""" "Name 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.","SELECT DISTINCT T2.city, T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Lexington-Fayette, KY' LIMIT 10" Who had the most assists agains New Orleans?,"SELECT high_assists FROM table_27755603_7 WHERE team = ""New Orleans""" "What is the average enrollment that has hot dogs as the mascot, with a year joined later than 1926?","SELECT AVG(enrollment) FROM table_name_38 WHERE mascot = ""hot dogs"" AND year_joined > 1926" How many Airlines have a total distance of 705 (km)?,SELECT COUNT(_number_of_airlines) FROM table_name_76 WHERE distance__km_ = 705 How many bank branches are there?,SELECT COUNT(*) FROM bank Find the ids of the nurses who are on call in block floor 1 and block code 1.,SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1 What was the final score when the opponent was Atlético Choloma?,"SELECT final_score FROM table_name_40 WHERE opponent = ""atlético choloma""" What is the last name of the musician that has been at the back position the most?,"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = ""back"" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1" What was the 3rd place value in 2011?,"SELECT 3 AS rd_place FROM table_name_53 WHERE year = ""2011""" Name the number of clock rate mhz when bandwidth mb/s is 2400,SELECT COUNT(clock_rate__mhz_) FROM table_142573_1 WHERE bandwidth__mb_s_ = 2400 how many colleges are participated?,SELECT count ( distinct college ) from match_season What is the github address of the repository that contains files used by solution ID12?,SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 12 "Who is performing in the back stage position for the song ""Badlands""? Show the first name and the last name.","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Badlands"" AND T1.StagePosition = ""back""" Could you show me all the locations that have train stations with exactly 19 platforms?,SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms = 19 "Which circuit was located in st. petersburg, florida?","SELECT circuit FROM table_30134667_2 WHERE location = ""St. Petersburg, Florida""" What is the city?,"SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = ""FJA Filming""" Name the english title for mexico/spain/usa,"SELECT english_title FROM table_name_24 WHERE country = ""mexico/spain/usa""" Which pick was from Lamar High School?,"SELECT pick FROM table_name_15 WHERE school = ""lamar high school""" How many male (sex is M) students have class senator votes in the fall election cycle?,"SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = ""M"" AND T2.Election_Cycle = ""Fall""" What is the locomotive with a standard gauge and a serial number of 83-1015?,"SELECT locomotive FROM table_name_74 WHERE gauge = ""standard"" AND serial_no = ""83-1015""" Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73,"SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = ""delaware"" AND interview > 9.73" What is the age of the tallest person?,SELECT Age FROM people ORDER BY Height DESC LIMIT 1 Who was the co-driver for the team with more than 160 laps and the number 6 after 2010?,SELECT co_driver FROM table_name_41 WHERE laps > 160 AND year > 2010 AND number = 6 List the name of players who have a height over 5'9.,"SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '5''9""'" What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?,"SELECT thurs_25_aug FROM table_30058355_2 WHERE fri_26_aug = ""19' 30.70 116.023mph""" "Which Bronze has a Silver of 7, and a Total larger than 25?",SELECT MIN(bronze) FROM table_name_93 WHERE silver = 7 AND total > 25 List down the text of tweets posted by unknown gender users.,SELECT T1.text FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Unknown' What is all the information about the Marketing department?,SELECT * FROM departments WHERE department_name = 'Marketing' What was the crowd population for Footscray as an away team?,"SELECT MAX(crowd) FROM table_name_64 WHERE away_team = ""footscray""" What is the total for a top-10 in a masters tournament in an event smaller than 4?,"SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = ""masters tournament"" AND events < 4" "What is that engineer's full name, please?","SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count ( * ) DESC LIMIT 1" What is the pick of wiley college?,"SELECT pick FROM table_name_70 WHERE college = ""wiley""" What is the fastest car made by Japan?,SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Japan' ORDER BY T1.horsepower DESC LIMIT 1 "State all countries with border greater than 4,000. List the full country name.",SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 WHERE T2.Length > 4000 "What was the game score on april 2, 2008?","SELECT score FROM table_name_2 WHERE date = ""april 2, 2008""" What is the full name of the Vice President of Sales. Give me the URL of his/her photo.,"SELECT FirstName, LastName FROM Employees WHERE Title = 'Vice President, Sales'" Which customer has the highest subtotal amount of sales orders whose assigned to the salesperson with the highest bonus?,SELECT T1.CustomerID FROM SalesOrderHeader AS T1 INNER JOIN SalesPerson AS T2 ON T1.SalesPersonID = T2.BusinessEntityID ORDER BY T1.SubTotal DESC LIMIT 1 "Name the total number of material collected for justice league of america by george pérez, vol. 2","SELECT COUNT(material_collected) FROM table_19534677_1 WHERE volume_title = ""Justice League of America by George Pérez, Vol. 2""" "Between 2018 to 2020, what is the average amount of shipped orders per year under Carl Nguyen?",SELECT CAST(COUNT(T1.OrderNumber) AS REAL) / 3 FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE (T2.`Sales Team` = 'Carl Nguyen' AND ShipDate LIKE '%/%/18') OR (T2.`Sales Team` = 'Carl Nguyen' AND ShipDate LIKE '%/%/19') OR (T2.`Sales Team` = 'Carl Nguyen' AND ShipDate LIKE '%/%/20') What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Lysanne"" AND T4.staff_last_name = ""Turcotte"")" WHAT IS THE MEANING WITH Pīnyīn of chē?,"SELECT meaning FROM table_name_61 WHERE pīnyīn = ""chē""" List the names of employees involved in an inspection with the Display of Inspection Report Summary category.,"SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T4.category = 'Display of Inspection Report Summary'" Find the semester and year which has the least number of student taking any class.,"SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1" Find the average price of all product clothes.,SELECT avg(product_price) FROM products WHERE product_type_code = 'Clothes' Which film has the highest rental rate? And what is the rate?,"SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1" What is the average crowd size for Richmond home games?,"SELECT AVG(crowd) FROM table_name_2 WHERE home_team = ""richmond""" count the number of records for each track id | do you mean count the number of race ids for each track id? | How about this--list all track Ids,select track_id from track What is his customer id?,"SELECT customer_id from customers WHERE customer_first_name = ""Art"" AND customer_last_name = ""Turcotte""" "How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?",SELECT AVG(silver) FROM table_name_89 WHERE total < 3 AND rank = 6 AND bronze > 1 Count the number of books written by Orson Scott Card.,SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card' What Status does Freddie Jackson have?,"SELECT status FROM table_name_32 WHERE artist = ""freddie jackson""" Which driver had a grid of 22?,"SELECT driver FROM table_name_43 WHERE grid = ""22""" Who had highest rebounds during game on March 12?,"SELECT high_rebounds FROM table_27744976_10 WHERE date = ""March 12""" "Who is the character that said ""This is Illyria, lady.""?","SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.PlainText = 'This is Illyria, lady.'" What product category that Sam Craven ordered from the central and east superstore?,SELECT DISTINCT T3.Category FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` LEFT JOIN central_superstore AS T4 ON T3.`Product ID` = T4.`Product ID` WHERE T2.`Customer Name` = 'Sam Craven' What is the value in 1971 when 30 is the value for 1969?,"SELECT 1971 FROM table_name_65 WHERE 1969 = ""30""" When thomas löfkvist is the general classification who is the winner?,"SELECT winner FROM table_18733814_2 WHERE general_classification = ""Thomas Löfkvist""" What was the rank with the qual of 115.095?,"SELECT rank FROM table_name_86 WHERE qual = ""115.095""" What are the states of businesses with attribute of beer and wine located?,SELECT DISTINCT T2.state FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.attribute_value = 'beer_and_wine' Tell me the lowest date for result of win and method of points with notes of opening round,"SELECT MIN(date) FROM table_name_59 WHERE result = ""win"" AND method = ""points"" AND notes = ""opening round""" Which airlines have departures from CVO but not from APG airports?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""CVO"" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""APG""" What league has a position of 8/13?,"SELECT league FROM table_name_88 WHERE league_position = ""8/13""" What is the sum of pick# for Don Majkowski?3,"SELECT SUM(pick__number) FROM table_name_26 WHERE player = ""don majkowski""" What place had a ribbon below 9.8 and a 19.2 total?,SELECT MAX(place) FROM table_name_23 WHERE ribbon < 9.8 AND total = 19.2 Which vendor gives the best profit on net for product ID 342?,SELECT T1.Name FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.ProductID = 342 ORDER BY T2.LastReceiptCost - T2.StandardPrice DESC LIMIT 1 "What are the department names, cities, and state provinces for each department?","SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id" When was the episode directed by Carey Meyer aired for the first time?,"SELECT original_air_date FROM table_13273629_2 WHERE directed_by = ""Carey Meyer""" "Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?","SELECT AVG(gold) FROM table_name_83 WHERE nation = ""south korea (kor)"" AND bronze < 65" Give the coordinate of the alleys where a crime was reported and an arrest was made.,"SELECT latitude, longitude FROM Crime WHERE location_description = 'ALLEY' AND arrest = 'TRUE' GROUP BY latitude, longitude" Name the realization for phoneme of /i/ and example of /idːa/,"SELECT realization FROM table_name_5 WHERE phoneme = ""/i/"" AND example = ""/idːa/""" Who watches North Melbourne when they are away?,"SELECT crowd FROM table_name_14 WHERE away_team = ""north melbourne""" who is the replacement when the team is bournemouth and the outgoing manager is kevin bond?,"SELECT replaced_by FROM table_name_87 WHERE team = ""bournemouth"" AND outgoing_manager = ""kevin bond""" "What about staff members who reported problems for the product ""aut""?","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""aut""" How many appellations produce wine in Napa Valley?,"SELECT COUNT ( * ) FROM appellations WHERE County = ""Napa""" What is the sum of laps for grid 20?,SELECT SUM(laps) FROM table_name_53 WHERE grid = 20 List the name of staff who has been assigned multiple jobs.,SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*) > 1 Who is the November playmate with the July playmate Hope Marie Carlton?,"SELECT november FROM table_name_66 WHERE july = ""hope marie carlton""" What are the names of wrestlers and the elimination moves?,"SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID" What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?,SELECT f_id FROM song WHERE resolution > (SELECT MAX(resolution) FROM song WHERE rating < 8) WHAT POSITION IS 273?,SELECT position FROM table_name_26 WHERE overall = 273 What is the Rank of the Nation with 0 Silver and more than 1 Bronze?,SELECT MAX(rank) FROM table_name_24 WHERE silver < 1 AND bronze > 1 Find the common login name of course authors and students.,SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students "What is the ratio of active and inactive app users of the event ID ""58""?","SELECT SUM(IIF(is_active = 1, 1, 0)) / SUM(IIF(is_active = 0, 1, 0)) AS per FROM app_events WHERE event_id = 58" When was a game played at 7:00 pm?,"SELECT date FROM table_name_65 WHERE time = ""7:00 pm""" Awesome! Can you filter this list to show only the customer IDs and customer names associated with either a deputy policy or an uninformed policy?,"SELECT t2.customer_id, t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy"" OR t1.policy_type_code = ""Uniform""" What is the category for the year when Brioude started and the stage is less than 7?,"SELECT COUNT(category) FROM table_name_10 WHERE start = ""brioude"" AND stage < 7" How many calories is 1 watt hour?,"SELECT calorie FROM table_name_64 WHERE watt_hour = ""1""" What are the attribute data types with more than 3 attribute definitions?,SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3 What are the first names of all students who are taking classes from the Computer Info. Systems department?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' What is the high lap total for françois cevert?,"SELECT MAX(laps) FROM table_name_71 WHERE driver = ""françois cevert""" Which Team/Chassis has less than 65 points?,SELECT team_chassis FROM table_name_66 WHERE pts < 65 "What is the highest rank that has 5 silvers, less than 5 golds, and less than 7 total medals?",SELECT MAX(rank) FROM table_name_83 WHERE silver = 5 AND gold < 5 AND total < 7 What is the Tie No with a Score of 2–2?,"SELECT tie_no FROM table_name_26 WHERE score = ""2–2""" How many students are unemployed and have payment due?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.`name` = T2.`name` What is the highest rank team akasvayu girona had with less than 311 rebounds?,"SELECT MAX(rank) FROM table_name_52 WHERE team = ""akasvayu girona"" AND rebounds < 311" How many unique languages are spoken in the world?,SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage Rank for viewers larger than 1.244?,SELECT nightly_rank FROM table_name_21 WHERE viewers__millions_ > 1.244 Find the name of the customer that has been involved in the most policies.,SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1 What are the details of all products?,SELECT DISTINCT product_details FROM products Give the religion of the legislator with RSS url of http://www.corker.senate.gov/public/index.cfm/rss/feed.,SELECT T1.religion_bio FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.rss_url = 'http://www.corker.senate.gov/public/index.cfm/rss/feed' GROUP BY T1.religion_bio "Among the NBA winning coaches, which are from STL team? Please list their coach id.",SELECT DISTINCT T2.coachID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T1.tmID = 'STL' AND T1.lgID = 'NBA' What is the power for the Spirit R (Type B)?,"SELECT power FROM table_250230_2 WHERE model = ""Spirit R (Type B)""" Who was the GTO winning team in round 5 when the GTU winning team was #59 Brumos Porsche - Audi? ,"SELECT gto_winning_team FROM table_13642023_2 WHERE rnd = 5 AND gtu_winning_team = ""#59 Brumos Porsche - Audi""" What is the total number of points when the grade was A?,"SELECT SUM(points) FROM table_name_31 WHERE grade = ""a""" "Who is the 2005 World AIDS Day Benefit ""Dream"" Cast when the Original Australian performer is Susan-Ann Walker?","SELECT 2005 AS _world_aids_day_benefit_dream_cast FROM table_1901751_1 WHERE original_australian_performer = ""Susan-Ann Walker""" "What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?","SELECT episode FROM table_name_45 WHERE air_date = ""july 23, 2009"" AND viewers > 3.31" What are the names of teams that do no have match season record?,SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season) Where did Carlton play as the home team?,"SELECT venue FROM table_name_14 WHERE home_team = ""carlton""" Which three cities have the largest regional population?,SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 "Show the number of transactions with transaction type code ""SALE"" for different investors if it is larger than 0.","SELECT investor_id , COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = ""SALE"" GROUP BY investor_id" How many artists have released albums?,SELECT count ( * ) from artists where id in ( select artist_id from albums ) "Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?","SELECT winner FROM table_name_80 WHERE team_classification = ""la vie claire"" AND general_classification = ""greg lemond"" AND stage = ""20""" In which competition was the score 3-0?,"SELECT competition FROM table_name_79 WHERE score = ""3-0""" How many rounds was the fight against carter williams?,"SELECT round FROM table_name_2 WHERE opponent = ""carter williams""" How many active airlines are on the list?,SELECT count ( * ) from airlines where active = 'Y' "In 2005, which series codes use the International Monetary Fund, Balance of Payments Statistics Yearbook and data files source?","SELECT T1.Seriescode, T2.Source FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T1.Year LIKE '%2005%' AND T2.Source LIKE 'International Monetary Fund%'" Can you list the names associated with those patient ID 100000004 and 100000002?,SELECT DISTINCT ( T1.name ) FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient WHERE T2.patient = 100000004 OR T2.patient = 100000002 And the login name for Adolf Keira Rohan?,"SELECT login_name from Course_Authors_and_Tutors where personal_name like ""%Adolf%"" and middle_name like ""%Keira%"" and family_name like ""%Rohan%""" How many peak positions were there on the weekly charts?,"SELECT COUNT(peak_position) FROM table_23180638_1 WHERE oricon_albums_chart = ""Weekly Charts""" How many of the items are instructed to be delivered in person?,SELECT COUNT(l_linenumber) FROM lineitem WHERE l_shipinstruct = 'DELIVER IN PERSON' Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic,"SELECT COUNT(party) FROM table_1346118_5 WHERE candidates = ""Henry E. Barbour (R) 52.1% Henry Hawson (D) 47.9%""" Provide the alias of the city with the highest population in year 2020.,SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2020 = ( SELECT MAX(population_2020) FROM zip_data ) How many were in attendance when the league position was 16th and the score was F–A of 0–3?,"SELECT COUNT(attendance) FROM table_name_43 WHERE league_position = ""16th"" AND score_f_a = ""0–3""" Find the highest rank of all reviews.,SELECT min(rank) FROM review report the total number of degrees granted between 1998 and 2002 in each campus.,"SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus" where is the Headquarter of Sony?,"SELECT Headquarter FROM manufacturers WHERE Name = ""Sony""" What is the highest game with a 24-23 record?,"SELECT MAX(game) FROM table_name_62 WHERE record = ""24-23""" What is the number of distinct continents where Chinese is spoken?,"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Chinese""" What is the Netflix where Segment C is car washes?,"SELECT netflix FROM table_15187735_12 WHERE segment_c = ""Car Washes""" Which start has 32 as the finish and laps more than 6?,"SELECT start FROM table_name_11 WHERE finish = ""32"" AND laps > 6" What are the name and population of each county?,"SELECT County_name , Population FROM county" What are the keywords of the episodes which have the air date in 2008?,"SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008';" WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?,"SELECT carrier FROM table_name_37 WHERE package_version = ""5.0.0.742""" "Among the states that start with letter A and attained a national sector average of 16.5, give the number of degree-seeking students in the cohort of those students in 2012 .",SELECT SUM(T2.grad_cohort) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.state LIKE 'A%' AND T1.awards_per_natl_value = 16.5 AND T2.year = 2012 "What is the total (kg when the bodyweight is more than 57.8, and the clean & jerk is less than 103?",SELECT SUM(total__kg_) FROM table_name_94 WHERE bodyweight > 57.8 AND clean_ & _jerk < 103 WHAT HINDI HAS Kannada of shukravara?,"SELECT hindi FROM table_name_54 WHERE kannada = ""shukravara""" What year is the season with the 10.73 million views?,"SELECT tv_season FROM table_10120207_8 WHERE viewers__millions_ = ""10.73""" "What is the Winning Team, when Losing Team is South Sydney Rabbitohs?","SELECT winning_team FROM table_name_50 WHERE losing_team = ""south sydney rabbitohs""" "What is the average number of wins for the Terang Club, when there are less than 0 draws?","SELECT AVG(wins) FROM table_name_43 WHERE club = ""terang"" AND draws < 0" "Write down the conference full name of ""ICWE"" and it's homepage address.","SELECT FullName, Homepage FROM Conference WHERE ShortName = 'ICWE'" What selection was the springfield olympics (nejhl)?,"SELECT MAX(pick__number) FROM table_2850912_12 WHERE college_junior_club_team = ""Springfield Olympics (NEJHL)""" "During Game 2, which position did Andrew Farrar play?","SELECT position FROM table_name_20 WHERE game_2 = ""andrew farrar""" Indicate the opening hours of businesses are with category in fashion.,SELECT T4.opening_time FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name LIKE 'Fashion' Which Score has a Home team of aston villa?,"SELECT score FROM table_name_20 WHERE home_team = ""aston villa""" "Hmm, I want to know the famous titles of the artists associated with volumes with more than 2 weeks on top.",SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 Name the length for all class and date of march 18,"SELECT length FROM table_name_63 WHERE class = ""all"" AND date = ""march 18""" Can you show me all first and last names from the list table that have a classroom id of 108?,"SELECT firstname, lastname from teachers where classroom = 108" What are all the source airports?,"SELECT T2.src_apid,T2.src_ap,T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name" What is the least amount of league of communists where municipality is mojkovac,"SELECT MIN(league_of_communists) FROM table_15306124_1 WHERE municipality = ""Mojkovac""" "Which city does the school that project ""iMath"" donated to in?",SELECT T1.school_city FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'iMath' "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1; How many actors are there?,SELECT count(*) FROM actor What is the weight when 20 is the number?,SELECT MAX(weight) FROM table_22496344_1 WHERE _number = 20 When was there a result of 8-1 and a score of 8-1?,"SELECT date FROM table_name_92 WHERE result = ""8-1"" AND score = ""8-1""" "Return the date of birth for all the guests with gender code ""Male"".","SELECT date_of_birth FROM Guests WHERE gender_code = ""Male""" Which Gothic Letter has Proto-Germanic origin of /ɸ/; /b/?,"SELECT gothic_letter FROM table_name_4 WHERE proto_germanic_origin = ""/ɸ/; /b/""" How many employees serve at least 10 customers?,SELECT count ( * ) FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT ( * ) > = 10 How many movies has the highest networth actor acted in?,"SELECT COUNT(*) FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE CAST(REPLACE(REPLACE(T2.NetWorth, ',', ''), '$', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(REPLACE(NetWorth, ',', ''), '$', '') AS REAL)) FROM actor)" Find the percentage of discontinued products in Northwind's portfolio of products.,SELECT CAST(COUNT(CASE WHEN Discontinued = 1 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(ProductID) FROM Products "Round of 1r, and an away result of 7–1 is what season?","SELECT season FROM table_name_65 WHERE round = ""1r"" AND away_result = ""7–1""" What are all the distinct details of the customers?,SELECT DISTINCT customer_details FROM Customers What is the highest duration of songs that have mp3 format and resolution below 800?,"SELECT max ( T1.duration ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" Name the teams along with the coaches that went to 'Quarter Final' round in 1946.,"SELECT DISTINCT T1.coachID, T3.name FROM coaches AS T1 JOIN series_post AS T2 ON T1.tmID = T2.tmIDWinner JOIN teams AS T3 ON T3.tmID = T1.tmID WHERE T2.round = 'QF' AND T2.year = 1946" "What is the result for Melbourne when Gold Coast, Perth, Auckland, and Sydney are no?","SELECT melbourne FROM table_name_1 WHERE gold_coast = ""no"" AND perth = ""no"" AND auckland = ""no"" AND sydney = ""no""" How many countries has more than 2 car makers ?,select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2 What is the number of days that had an average humity above 50 and an average visibility above 8?,SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8 Name the venue for 15 august 2006,"SELECT venue FROM table_name_89 WHERE date = ""15 august 2006""" List down the cities with unknown country.,SELECT city FROM geographic WHERE county = 'unknown' "When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?","SELECT pat_robertson FROM table_name_12 WHERE bob_dole = ""26%"" AND george_hw_bush = ""47%""" What are the name and location of the cinema with the largest capacity?,"SELECT name , LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1" How many Asians live in the borough with 8109 Chinese population?,SELECT MIN(total_asian_population) FROM table_19149550_9 WHERE chinese_population = 8109 List down the student names who did not file for bankruptcy.,SELECT name FROM person WHERE name NOT IN ( SELECT name FROM filed_for_bankrupcy ) On what date was Richmond playing as an away team?,"SELECT date FROM table_name_32 WHERE away_team = ""richmond""" "For the all donations to the project 'Bringing Drama to Life', what is the percentage of the donation is paid by credit card?",SELECT CAST(SUM(CASE WHEN T2.payment_method LIKE 'creditcard' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(donationid) FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Bringing Drama to Life' What are the names of ships that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' "District commander Robert A. Rubio was responsible for how many incidents in January, 2018?","SELECT SUM(CASE WHEN SUBSTR(T2.date, 5, 4) = '2018' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander = 'Robert A. Rubio' AND SUBSTR(T2.date, 1, 1) = '1'" Who were the runner(s)-up when Tiger won by 11 strokes?,"SELECT runner_s__up FROM table_11570261_2 WHERE margin_of_victory = ""11 strokes""" What place had a To par of –10?,"SELECT place FROM table_name_28 WHERE to_par = ""–10""" "What is the highest Version, when Release Date is ""2011-04-01""?","SELECT MAX(version) FROM table_name_38 WHERE release_date = ""2011-04-01""" "Find the last name of the latest contact individual of the organization ""Labour Party"".","SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = ""Labour Party"" ORDER BY t2.date_contact_to DESC LIMIT 1" What is the highest prominence in ft of the peak with a prominence in m less than 103?,SELECT MAX(prominence__ft_) FROM table_name_18 WHERE prominence__m_ < 103 What percentage of clients who sent their complaints by postal mail are age 50 and older?,SELECT CAST(SUM(CASE WHEN T1.age > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.`Submitted via`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Submitted via` = 'Postal mail' who is the away team when the home team is sydney spirit?,"SELECT away_team FROM table_name_28 WHERE home_team = ""sydney spirit""" List by name all the games released in the year 2010.,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T3.release_year = '2010' What is the To par of the New Zealand Player?,"SELECT to_par FROM table_name_79 WHERE country = ""new zealand""" What is the Title of paperID 200?,select title from Papers where paperID = '200' "For the professors who advise more than 2 students, which professor has a higher teaching ability? Give the full name.","SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, T2.teachingability FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id GROUP BY T1.prof_id HAVING COUNT(student_id) > 2 ) T ORDER BY T.teachingability DESC LIMIT 1" What was the result of the week 16 game?,SELECT result FROM table_name_49 WHERE week = 16 Name the streets in Dallas.,SELECT street_name FROM address WHERE city = 'Dallas' "What is the total combined weight of players from minnetonka, mn?","SELECT SUM(weight) FROM table_name_22 WHERE home_town = ""minnetonka, mn""" When did the season with 1 team format premiere?,"SELECT premiere_air_dates FROM table_1949994_7 WHERE format = ""1 Team""" List the year in which there are more than one festivals.,SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*) > 1 What is the city of license when the class is LP and the identifier is CBDK?,"SELECT city_of_license FROM table_name_70 WHERE class = ""lp"" AND identifier = ""cbdk""" What is the train name that has a destination of Tuticorin?,"SELECT train_name FROM table_21716139_1 WHERE destination = ""Tuticorin""" What is the average last yr with an l plyf less than 0?,SELECT AVG(last_yr) FROM table_name_98 WHERE l_plyf < 0 What is the ratio of male and female users in 27-28 age group?,"SELECT SUM(IIF(gender = 'M' AND `group` = 'M27-28', 1, 0)) / SUM(IIF(gender = 'F' AND `group` = 'F27-28', 1, 0)) AS r FROM gender_age" What is the teacher's account ID for the project that got the donation at 11:38:43 on 2008/7/29 ?,SELECT T1.teacher_acctid FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_timestamp LIKE '2008-07-29 11:38:43.361' What position is Jessie Clark?,"SELECT position FROM table_14655757_1 WHERE player = ""Jessie Clark""" Find the id and first name of the student that has the most number of assessment notes?,"SELECT T1.student_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1" "For each year, return the year and the average number of attendance at home games.","SELECT YEAR , avg(attendance) FROM home_game GROUP BY YEAR;" What is the afflilation of university of rhode island?,"SELECT affiliation FROM university WHERE school = ""University of Rhode Island""" what is the venue when the result is loss and the opponent is st george-illawarra dragons?,"SELECT venue FROM table_name_58 WHERE result = ""loss"" AND opponent = ""st george-illawarra dragons""" Find the first and last name of students who are living in the dorms that have amenity TV Lounge.,"SELECT T1.fname , T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" "What is the V OC (V), when t (µm) is greater than 5, and when I SC (A) is 0.8?","SELECT v_oc__v_ FROM table_name_46 WHERE t__µm_ > 5 AND i_sc__a_ = ""0.8""" What is the sum of the FAC/LC apps with less than 25 PC apps and a UEFA YC less than 0?,SELECT SUM(fac___lc_apps) FROM table_name_11 WHERE pl_apps < 25 AND UEfa_yc < 0 Scunthorpe United as the home team has what tie number?,"SELECT tie_no FROM table_name_52 WHERE home_team = ""scunthorpe united""" Count the number of Annual Meeting events that took place in the region of the United Kingdom.,"SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = ""United Kingdom"" AND t3.Event_Name = ""Annaual Meeting""" Show writers who have published a book with price more than 4000000.,SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000 What is the catalog entry id and product stock number for Cola?,"SELECT catalog_entry_id,product_stock_number FROM catalog_contents WHERE catalog_entry_name = ""Cola""" How many customers have never married?,SELECT COUNT(ID) FROM Customers WHERE MARITAL_STATUS = 'Never-married' "In 1961, what was the Chassis when the points were lower than 6?",SELECT chassis FROM table_name_51 WHERE points < 6 AND year = 1961 What is the latest week when the chicago bears are the opponent?,"SELECT MAX(week) FROM table_name_27 WHERE opponent = ""chicago bears""" Which sliding tackle has no dump tackle and a restricted shoulder charge?,"SELECT sliding_tackle FROM table_name_3 WHERE dump_tackle = ""no"" AND shoulder_charge = ""restricted""" What was the aggregate score for the match won by Viadana?,"SELECT aggregate_score FROM table_28068063_2 WHERE winners = ""Viadana""" What was the attendance when St Kilda played as the away team?,"SELECT AVG(crowd) FROM table_name_79 WHERE away_team = ""st kilda""" What is the away team score at vfl park?,"SELECT away_team AS score FROM table_name_19 WHERE venue = ""vfl park""" "Show template ids, version numbers, and template type codes for all templates.","SELECT template_id, version_number, template_type_code FROM Templates" Which apartment type code is the most common among apartments with more than one bathroom?,SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 Show all template type codes and number of templates for each.,"SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code" Give me a list of all the service names sorted alphabetically.,SELECT service_name FROM services ORDER BY service_name Find the prices of products which has never received a single complaint.,SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints) "How many times was ""Blanket Beverly"" rented?",SELECT COUNT(T3.rental_id) FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id WHERE T1.title = 'Blanket Beverly' Which company has the largest sales? | Did you mean the name of the company with the largest sales? | Yes thr name of the company that has the largest sales,SELECT name FROM company ORDER BY Sales_in_Billion DESC LIMIT 1 Which First elected has a Incumbent of none (new seat)?,"SELECT first_elected FROM table_name_15 WHERE incumbent = ""none (new seat)""" Where was the game when Geelong was the away team?,"SELECT venue FROM table_name_28 WHERE away_team = ""geelong""" "List the id and type of each thing, and the details of the organization that owns it.","SELECT T1.thing_id , T1.type_of_Thing_Code , T2.organization_details FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id" "Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.","SELECT apt_type_code , COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC" show me the names and ids of all stations,"SELECT name , id FROM station" How many sales team were from Northeast?,SELECT SUM(CASE WHEN Region = 'Northeast' THEN 1 ELSE 0 END) FROM `Sales Team` Which district has the largest population?,SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1 Which rowers represented the country of portugal?,"SELECT rowers FROM table_name_4 WHERE country = ""portugal""" Tell me the party phone of the party id 2 ?,"SELECT party_phone FROM parties WHERE party_id = ""2""" What is the average rank of the Reliance Entertainment movie with an opening day on Wednesday before 2012?,"SELECT AVG(rank) FROM table_name_8 WHERE day_of_week = ""wednesday"" AND year < 2012 AND studio_s_ = ""reliance entertainment""" "What is Country, when Player is ""Billy Maxwell""?","SELECT country FROM table_name_77 WHERE player = ""billy maxwell""" "Which customers have ordered ""food""? | ok, did you want to just return their names? | Yes. I just want to know the names of which customers have placed orders under the category ""food""","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = ""food""" Which Allied Force targetted Woensdrecht?,"SELECT allied_forces FROM table_1160161_12 WHERE target = ""Woensdrecht""" Find the id of users who are followed by Mary or Susan.,"SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" OR T1.name = ""Susan""" Who held the same position in 2014 that Garion Weller held in 2014?,"SELECT 2014 FROM table_name_82 WHERE 2012 = ""garion weller""" "What is the away team at the game with an Attendance of 1,730?","SELECT away_team FROM table_name_73 WHERE attendance = ""1,730""" What is the s B share for the shareholder that has 2.55 percent of votes? ,"SELECT MAX(s_b_share) FROM table_206419_3 WHERE percent_of_votes = ""2.55""" What is total number of show times per day for each cinema?,"SELECT T2.name , sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id" "What is the Week number on December 18, 1960?","SELECT COUNT(week) FROM table_name_17 WHERE date = ""december 18, 1960""" Please list the names of the top three movies in the number comments related to the critic made by the user rating the movie.,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_comments DESC LIMIT 3 "Tally the full names of actors in the film ""Alabama Devil.""","SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'ALABAMA DEVIL'" "If the night rank is 9, what is the total share number?","SELECT COUNT(share) FROM table_19805130_3 WHERE rank__night_ = ""9""" LIST THE NAME OF THE AIRCRAFTS,SELECT name from aircraft "Who voiced the villain in ""The Rescuers""?",SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie WHERE T2.movie_title = 'The Rescuers' AND T1.character = T2.villian Can you show me all tracks which were opened after 2000? | Do you mean the names of all the tracks which were opened after 2000? | Yes.,SELECT name FROM track WHERE year_opened > 2000 "How many users, who were not a a trialist when they rated the movie, gave the movie ""The South"" a rating score of not more than 2?",SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 0 AND T2.rating_score <= 2 AND T1.movie_title = 'The South' What game in the season does this list start?,SELECT MIN(game) FROM table_27713030_7 How many of the customers are male?,SELECT COUNT(ID) FROM Customers WHERE SEX = 'Male' Which company is headed by Austin city? | Did you mean the name of manufacturers whose headquarters are Austin? | Yes,"SELECT name from manufacturers where headquarter = ""Austin""" How many ranks by average when Keiron & Brianne are the couple?,"SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = ""Keiron & Brianne""" List the community area names in the Northwest.,SELECT community_area_name FROM Community_Area WHERE side = 'Northwest' What location did Sherry Middaugh win in?,"SELECT location FROM table_name_13 WHERE winning_skip = ""sherry middaugh""" What is the df when Adam Hinshelwood is Junior Mendes?,"SELECT df FROM table_23835213_2 WHERE adam_hinshelwood = ""Junior Mendes""" Provide the names and locations of the facilities that failed inspections on 29th July 2013.,"SELECT T2.dba_name, T2.longitude, T2.latitude FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE T1.inspection_date = '2013-07-29' AND T1.results = 'Fail'" how many months in total,select count ( distinct month ) from happy_hour What was the score against the phillies on may 24?,"SELECT score FROM table_name_28 WHERE opponent = ""phillies"" AND date = ""may 24""" Can you give me the names of those trains and tell me when they have service,"SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id where T1.station_id = 1" "What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity?","SELECT COUNT(opened) FROM table_name_49 WHERE stadium = ""stade de la mosson"" AND capacity > 32 OFFSET 939" What is the status of the unit with a net capacity of 1212 MW?,"SELECT status FROM table_name_50 WHERE net_capacity = ""1212 mw""" How many employees are there?,select count ( employee_id ) from employees What is the date for week 15?,SELECT date FROM table_name_28 WHERE week = 15 Gives the average number of chapters in Shakespeare's 1599 work.,SELECT CAST(COUNT(T1.id) AS REAL) / COUNT(DISTINCT T2.id) FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T2.Date = '1599' What is the number of different different airports that are destinations for American Airlines?,SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' List the names of wrestlers that have not been eliminated.,SELECT Name FROM wrestler WHERE NOT Wrestler_ID IN (SELECT Wrestler_ID FROM elimination) "What is 2000, when 1996 is ""A"", when 1997 is ""A"", and when 2007 is ""A""?","SELECT 2000 FROM table_name_30 WHERE 1996 = ""a"" AND 1997 = ""a"" AND 2007 = ""a""" Which player from the Ironi Nahariya club was born in 1980?,"SELECT player FROM table_name_4 WHERE current_club = ""ironi nahariya"" AND year_born = 1980" What is listed under chister tornell when karianne gulliksen is 7?,SELECT MIN(christer_tornell) FROM table_28677723_10 WHERE karianne_gulliksen = 7 What's the average year for the accolade 100 greatest singles of all time?,"SELECT AVG(year) FROM table_name_57 WHERE accolade = ""100 greatest singles of all time""" How many sitting Representatives are there in the New York 10 polling area?,"SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = ""New York 10""" Where was the game with the result of 22-20 played?,"SELECT venue FROM table_name_81 WHERE result = ""22-20""" What are the majors of male (sex is M) students?,"SELECT Major FROM STUDENT WHERE Sex = ""M""" How many Points has Wins larger than 0?,SELECT COUNT(points) FROM table_name_24 WHERE wins > 0 What is the part 2 entry for class 3a?,"SELECT part_2 FROM table_name_36 WHERE class = ""3a""" "What is City of License, when Frequency MHz is less than 102.5?",SELECT city_of_license FROM table_name_8 WHERE frequency_mhz < 102.5 "Name of the crew that were born in California, USA between 1958 and 1969.","SELECT name FROM Person WHERE SUBSTR(birthdate, 1, 4) = '1958' AND birth_place = 'California' AND birth_country = 'USA';" What is the country of the contestant with a swimsuit of 9.46?,SELECT country FROM table_name_19 WHERE swimsuit = 9.46 "Determine the email and Code of employee who are working at United State, state MA","SELECT T1.email, T1.employeeNumber FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T2.state = 'MA' AND T2.country = 'USA'" Please list the names of the crytocurrencies that have a total amount of existence of over 10000000 on 2013/4/28.,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T2.total_supply > 10000000 "What is Score, when Player is ""Vijay Singh""?","SELECT score FROM table_name_41 WHERE player = ""vijay singh""" "Of the employees who sold Blade, who has the most amount of sales?","SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID ORDER BY T2.Quantity * T3.Price DESC LIMIT 1" Count the matches with a total of two innings.,SELECT COUNT(Match_Id) FROM Wicket_Taken WHERE innings_no = 2 What's the L3 cache that has a low power part number?,"SELECT l3_cache FROM table_name_84 WHERE part_number_s_ = ""low power""" "How old is each gender, on average?","SELECT avg(age) , gender FROM Person GROUP BY gender" "What is the highest value for Points, when Games is 21, and when Rank is greater than 2?",SELECT MAX(points) FROM table_name_52 WHERE games = 21 AND rank > 2 "On February 8, 2014, what is the minimum temperature in the station where store 29 belongs?",SELECT tmin FROM relation AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.store_nbr = 29 AND T2.`date` = '2014-02-08' Who wrote the episode in the series 46b?,"SELECT written_by FROM table_2701851_5 WHERE no_in_series = ""46b""" How many battles resulted in Battle of the Yellow Sea?,"SELECT COUNT(result) FROM table_26977890_1 WHERE battles = ""Battle of the Yellow Sea""" How many females were members of the past legislators?,SELECT COUNT(*) FROM historical WHERE gender_bio = 'F' Find the average ride duration during the rain of more than 0.8 inches.,SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE (T2.events = 'Rain' AND T2.precipitation_inches > 0.8) OR (T2.events = 'rain' AND T2.precipitation_inches > 0.8) What is the maximum horsepower and the make of the car models with 3 cylinders?,"SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1" How many people were at the game with a record of 6-1?,"SELECT attendance FROM table_name_50 WHERE record = ""6-1""" State the number of male students who do not have payment due.,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN male AS T2 ON T2.name = T1.name WHERE T1.bool = 'pos' What was the earliest game with a record of 16–4–3?,"SELECT MIN(game) FROM table_name_96 WHERE record = ""16–4–3""" What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?,SELECT MAX(pakistanis_admitted) FROM table_1717824_3 WHERE nepalis_admitted = 627 Return the investors who have invested in two or more entrepreneurs.,SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2 How many distinct delegates are from counties with population larger than 50000?,SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 What is the largest number in attendance when the record is 1-1-0?,"SELECT MAX(attendance) FROM table_name_63 WHERE record = ""1-1-0""" "Show the names and locations of institutions that are founded after 1990 and have the type ""Private"".","SELECT institution, LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'" what's the area (km 2 ) with population census 2009 being 939370,SELECT area__km_2__ FROM table_1404456_1 WHERE population_census_2009 = 939370 Name the first elected for the republican party,"SELECT first_elected FROM table_1341865_23 WHERE party = ""Republican""" What tournament location has south korea as the country?,"SELECT tournament_location FROM table_name_43 WHERE country = ""south korea""" Which Place has a Player of justin leonard?,"SELECT place FROM table_name_48 WHERE player = ""justin leonard""" "Among the Most improved Players awarded from 1985-1990, how many player whose country is USA?",SELECT COUNT(DISTINCT T2.playerID) FROM awards_players AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.award = 'Most Improved Player' AND T2.birthCountry = 'USA' AND T1.year BETWEEN 1985 AND 1990 Can you tell me which year had more than one festival please?,SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT ( * ) > 1 In what season was the winner Dado Dolabella?,"SELECT MAX(season) FROM table_25214321_1 WHERE winner = ""Dado Dolabella""" "What is Date, when High Rebounds is ""Yao Ming (10)""?","SELECT date FROM table_name_86 WHERE high_rebounds = ""yao ming (10)""" Could you please find all the procedure that Jon Wen was trained in?,"SELECT * FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" Who was the opponent with a points for of 177?,SELECT opponent FROM table_25229283_4 WHERE points_for = 177 "What is the frequency of Walterboro, SC?","SELECT frequency_mhz FROM table_name_74 WHERE city_of_license = ""walterboro, sc""" Name the Best which has a Qual 2 of 58.700?,"SELECT best FROM table_name_47 WHERE qual_2 = ""58.700""" What are the title and director of each film?,"SELECT title , directed_by FROM film" Please give the full name of the customer that have rented the most films.,"SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T2.rental_id) AS num FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1" Which studios have an average gross of over 4500000?,SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000 How many different descriptions are there for the flag that means decimal digit 2?,"SELECT COUNT(description) FROM table_29997112_3 WHERE meaning = ""Decimal Digit 2""" What is the number of the year round school in Los Angeles?,SELECT COUNT(school_year_round) FROM projects WHERE school_city = 'Los Angeles' AND school_year_round = 't' What are the lot details of lots associated with transactions with share count smaller than 50?,SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 What was the last year someone was elected to the 14th district?,"SELECT MAX(elected) FROM table_13618584_2 WHERE district = ""14th""" "Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?","SELECT season FROM table_name_61 WHERE rank < 4 AND club = ""barcelona"" AND goals < 115" what is the product price?,SELECT product_price FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1 What attendance was on 7 January 2003?,"SELECT attendance FROM table_name_14 WHERE date = ""7 january 2003""" Tell me the college/junior club team for pick of 16,"SELECT college_junior_club_team FROM table_name_5 WHERE pick = ""16""" What are the names of the activities Mark Giuliano is involved in,"SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?,"SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = ""born in the u.s.; mother is u.s. citizen""" How many games are held after season 2007?,SELECT count(*) FROM game WHERE season > 2007 Which days have a stage of ss11?,"SELECT day FROM table_21536557_2 WHERE stage = ""SS11""" How many viewers watched the episode with a story by david simon & mari kornhauser?,"SELECT us_viewers__millions_ FROM table_26914076_3 WHERE story_by = ""David Simon & Mari Kornhauser""" What type of bridge is Colton's Crossing Bridge?,"SELECT type FROM table_name_46 WHERE name = ""colton's crossing bridge""" "What is the full name of the conference in which the paper titled ""Extended Fuzzy Regression Models"" was published?",SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Extended Fuzzy Regression Models' What are the top 10 products with the highest net profit?,"SELECT T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID GROUP BY T1._ProductID ORDER BY SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) DESC LIMIT 10" What provinces encompass the world's biggest desert in terms of overall area?,SELECT Province FROM geo_desert WHERE Desert = ( SELECT Name FROM desert ORDER BY Area DESC LIMIT 1 ) How many NFL teams does Stevie Brown play for?,"SELECT COUNT(nfl_team) FROM table_20996923_25 WHERE player = ""Stevie Brown""" Please list the Catalan words with an occurrence of over 200000.,SELECT word FROM words WHERE occurrences > 200000 "What is the area of the corporation named the powell river, the corporation of the city of?","SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = ""Powell River, The Corporation of the City of""" What are the Wikipedia page names of all the anti-administration senators?,SELECT T1.wikipedia_id FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.type = 'sen' AND T2.party = 'Anti-Administration' Who is themens doubles when the mens singles is flemming delfs?,"SELECT mens_doubles FROM table_12171145_1 WHERE mens_singles = ""Flemming Delfs""" Who had a qual 1 best of 1:01.704?,"SELECT qual_1 FROM table_name_43 WHERE best = ""1:01.704""" What is the name of the racer with a first-qualifying time of 58.991?,"SELECT name FROM table_name_76 WHERE qual_1 = ""58.991""" Thank you for that! Would you be able to show me the roller coaster names associated with just Sweden?,SELECT T2.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = 'Sweden' what city does Zach live?,SELECT city from Person where name = 'Zach' What is the location of the festival with the largest number of audience?,SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1 How much is the minimum salary given to the position with the most complex work?,SELECT minsalary FROM position ORDER BY educationrequired DESC LIMIT 1 how many herbs in the product category code?,"SELECT COUNT ( * ) FROM Products WHERE product_category_code = ""Herbs""" "What are their opening hours, please?","SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus"" OR How_to_Get_There = ""walk""" What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?,SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 4 Count the number of countries in Asia.,"SELECT count(*) FROM country WHERE continent = ""Asia""" "What is the journal's short and full names that feature papers on the ""Materials"" topic?","SELECT T2.ShortName, T2.FullName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Keyword LIKE '%Materials%'" Find the id of the song that lasts the longest.,SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 "Who has a reported age of 111 years, 66 days?","SELECT name FROM table_name_38 WHERE reported_age = ""111 years, 66 days""" Return all the distinct payment methods used by customers.,SELECT DISTINCT payment_method FROM customers "What is the sum of the gold medals of the total nation, which has more than 19 silver medals?","SELECT SUM(gold) FROM table_name_74 WHERE nation = ""total"" AND silver > 19" "What is the score of the event held on July 23, 2009?","SELECT score FROM table_name_78 WHERE date = ""july 23, 2009""" Name the Apps with a sentiment objectivity of 0.3 and include their number of installs.,"SELECT DISTINCT T1.App, T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment_Polarity = 0.3" What is the value for Wins when the Position is 7th?,"SELECT wins FROM table_name_67 WHERE position = ""7th""" Which publisher has published the most games?,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T2.id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T1.publisher_id ORDER BY COUNT(T2.id) DESC LIMIT 1 ) t" What is the average rating of comic category apps? How many users hold positive attitude towards this app?,"SELECT AVG(T1.Rating) , COUNT(CASE WHEN T2.Sentiment = 'Positive' THEN 1 ELSE NULL END) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Category = 'COMICS'" "What is 2009, when Year is ""Highest Mean Annual Temperature""?","SELECT 2009 FROM table_name_31 WHERE year = ""highest mean annual temperature""" Which party is associated with the person who was first elected in 1982?,SELECT party FROM table_1341577_43 WHERE first_elected = 1982 How many points did Happy Valley score before game 14?,"SELECT COUNT(point) FROM table_name_89 WHERE team = ""happy valley"" AND game < 14" What year for the legatum institute?,"SELECT year FROM table_name_79 WHERE organization = ""legatum institute""" "What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?",SELECT MIN(total) FROM table_name_36 WHERE gold < 3 AND bronze > 0 AND silver > 0 "On what dates did the student whose personal name is ""Karson"" enroll in and complete the courses?","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = ""Karson""" Name the total number of years for talbot-lago t26c and points less than 3,"SELECT COUNT(year) FROM table_name_52 WHERE chassis = ""talbot-lago t26c"" AND points < 3" What are the names of the channels owned by CCTV or HBS?,SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS' "For each product type, return the maximum and minimum price.","SELECT product_type_code , max(product_price) , min(product_price) FROM products GROUP BY product_type_code" " january 15-16 when august 21-22 is august 22, 1979?","SELECT january_15_16 FROM table_25355501_2 WHERE august_21_22 = ""August 22, 1979""" Thank you. Which players play midfielder?,SELECT Player FROM match_season WHERE Position = 'Midfielder' "In films with a length duration of 113 minutes, how many of the films are starred by Kirk Jovovich?",SELECT COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.length = 113 AND T1.first_name = 'Kirk' AND T1.last_name = 'Jovovich' what is the competition on 21 april 2001?,"SELECT competition FROM table_name_75 WHERE date = ""21 april 2001""" What is the average number of courses taught by a professor?,SELECT CAST(COUNT(T1.course_id) AS REAL) / COUNT(DISTINCT T2.p_id) AS num FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.professor = 1 Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?,SELECT COUNT(evening_gown) FROM table_name_57 WHERE swimsuit < 9.36 AND average < 9.23 Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?,"SELECT champion FROM table_name_90 WHERE runner_up = ""jimmy connors"" AND year < 1978" Find the semester and year which has the least number of student taking any class.,"SELECT semester, YEAR FROM takes GROUP BY semester, YEAR ORDER BY COUNT(*) LIMIT 1" What show had a nomination for best actor in a lead role – female (popular) in 2006?,"SELECT for_the_show FROM table_name_22 WHERE category = ""best actor in a lead role – female (popular)"" AND year = 2006" What is the age of the patient with hypertension named Giovanni Russel?,"SELECT strftime('%Y', T2.deathdate) - strftime('%Y', T2.birthdate) AS age FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.first = 'Giovanni' AND T2.last = 'Russel' AND T1.DESCRIPTION = 'Hypertension'" List the names of all players who have a crossing score higher than 90 and prefer their right foot.,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = ""right""" Which college's pick was 14?,"SELECT college FROM table_name_86 WHERE pick = ""14""" "Which Date has a Score of 2–3, a Time of 20:30, and a Set 3 of 16–25?","SELECT date FROM table_name_38 WHERE score = ""2–3"" AND time = ""20:30"" AND set_3 = ""16–25""" Which Season has an Away of 1–2?,"SELECT season FROM table_name_94 WHERE away = ""1–2""" What is the highest heat for more than 3 lanes and a time of 2:09.12?,"SELECT MAX(heat) FROM table_name_23 WHERE lane > 3 AND time = ""2:09.12""" How many points does the year after 1986 with a AGS JH23B chassis have?,"SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = ""ags jh23b""" "Which city has the most addresses? List the city name, number of addresses, and city id.","SELECT T2.city , count(*) , T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1" What is every original air date with U.S. viewers of 0.23 million?,"SELECT original_air_date FROM table_29803475_2 WHERE us_viewers__million_ = ""0.23""" What are the products that belong to the beverage category?,SELECT T2.ProductName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.CategoryName = 'Beverages' Which Event has a Record of 19-9?,"SELECT event FROM table_name_47 WHERE record = ""19-9""" What was the venue of the competition that held the 1st position in 2011?,"SELECT venue FROM table_name_68 WHERE position = ""1st"" AND year = 2011" What is the highest number of extra points for players with less than 2 touchdowns and less than 1 point?,SELECT MAX(extra_points) FROM table_name_47 WHERE touchdowns < 2 AND points < 1 What are the names of the people with no friends in New York City?,SELECT distinct name FROM PersonFriend WHERE friend NOT IN ( SELECT name FROM person WHERE city = 'new york city' ) "What is the attendance of the game that was played on September 27, 1964?","SELECT MAX(attendance) FROM table_name_85 WHERE date = ""september 27, 1964""" List the names of all distinct races in reversed lexicographic order?,SELECT DISTINCT name FROM races ORDER BY name DESC Name the general classification for mauricio soler,"SELECT general_classification FROM table_29077342_19 WHERE winner = ""Mauricio Soler""" Give the number of 30-year-old users who were active in the events on 2016/5/2.,"SELECT COUNT(T3.device_id) FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id INNER JOIN gender_age AS T3 ON T2.device_id = T3.device_id WHERE SUBSTR(`timestamp`, 1, 10) = '2016-05-02' AND T1.is_active = 1 AND T3.age = '30'" How many million of windows phones were shipped during the quarter that shipped 216.2 million total?,"SELECT windows_phone FROM table_14260687_3 WHERE total = ""216.2""" Yes please.,SELECT T1.player_id FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' How many different departments are there?,SELECT count(DISTINCT dept_name) FROM department How many shops are there in each location?,"SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION" What commission pct do they get?,SELECT COMMISSION_PCT FROM employees WHERE first_name LIKE '%m' "What is Matches, when Year is ""2003""?","SELECT matches FROM table_name_72 WHERE year = ""2003""" What is the city of the bank branch that provides business loans?,SELECT T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business' What is the country for Sony / Sony Bmg?,"SELECT country FROM table_name_61 WHERE label = ""sony / sony bmg""" What is the average amount of transaction?,SELECT avg ( transaction_amount ) FROM Financial_transactions "Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?","SELECT attendance FROM table_name_20 WHERE arena = ""arrowhead pond of anaheim"" AND points < 5" What are the names and account balances of customers with the letter a in their names?,"SELECT cust_name , acc_bal FROM customer WHERE cust_name LIKE '%a%'" What was the maximum speed of the car with 1.556 cc capacity?,"SELECT vmax FROM table_name_45 WHERE capacity = ""1.556 cc""" What are the distinct first names of the students who have class president votes?,SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE Please list the home teams in the matches of the Bundesliga division that ended with a home victory in the 2021 season.,SELECT DISTINCT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H' AND T2.name = 'Bundesliga' Which year had a vehicle of Mitsubishi?,"SELECT year FROM table_name_88 WHERE vehicle = ""mitsubishi""" How many bridges was built by Frank Gehry?,"SELECT count ( * ) from architect as T1 join bridge as T2 on T1.id = T2.architect_id where T1.name = ""Frank Gehry""" When i4 is the engine what is the graphical?,"SELECT graphical FROM table_22915134_2 WHERE engine = ""I4""" How many parties were for candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%?,"SELECT COUNT(party) FROM table_1341640_11 WHERE candidates = ""Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%""" "can you give me the last name, id, and phone number of the person with the most order?","select T1.customer_last_name, T1.customer_id, T1.phone_number from Customers as T1 join orders as T2 on T1.customer_id = T2.customer_id group by T2.customer_id order by count ( * ) desc limit 1" "What type of surface was played on July 27, 2013?","SELECT surface FROM table_name_31 WHERE date = ""july 27, 2013""" What is the ID of the image with the most number of object samples?,SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID ORDER BY COUNT(OBJ_SAMPLE_ID) DESC LIMIT 1 What is the height of that building?,SELECT Height FROM buildings ORDER BY Height DESC LIMIT 1 which gender got the highest average uncertain ratio.,SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1 Which Team plays at Western Oval?,"SELECT home_team FROM table_name_90 WHERE venue = ""western oval""" What's the title in the number 10 in the season?,SELECT title FROM table_27117365_1 WHERE no_in_season = 10 WHAT PLAYER HAS THE OAKLAND ATHLETICS?,"SELECT player FROM table_name_55 WHERE team = ""oakland athletics""" "State the name and affiliation of author for the 'Education, democracy and growth' paper?","SELECT T2.Name, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Education, democracy and growth'" What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?,"SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3" What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach?,"SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'" How may times did a player that attended Iowa state appear on the all time roster?,"SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = ""Iowa State""" List all the names of schools with an endowment amount smaller than or equal to 10.,SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount) <= 10 What is the code of airport that has the highest number of flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1 How many lines have the segment description of red line mos-2 west?,"SELECT line_s_ FROM table_1817879_2 WHERE segment_description = ""Red Line MOS-2 West""" Which Year has a Regular Season of 7th?,"SELECT MAX(the_year) FROM table_name_18 WHERE regular_season = ""7th""" What machine has tony rutter as the rider?,"SELECT machine FROM table_name_68 WHERE rider = ""tony rutter""" How many state universities are there?,SELECT COUNT(*) FROM university WHERE university_name LIKE '%State%' "What is the location of the game with attendance of 63,336?","SELECT game_site FROM table_name_93 WHERE attendance = ""63,336""" Name the team for co-drivers of david brabham mario andretti,"SELECT team FROM table_name_15 WHERE co_drivers = ""david brabham mario andretti""" What is the name of team with Palmeiras 4-2 portuguesa as the last match?,"SELECT team FROM table_name_47 WHERE last_match = ""palmeiras 4-2 portuguesa""" How many players were born in the 90s?,SELECT COUNT(Player_Id) AS cnt FROM Player WHERE DOB BETWEEN '1990-01-01' AND '1999-12-31' What is the transfer window of the Leeds United source with a move from Motherwell?,"SELECT transfer_window FROM table_name_52 WHERE source = ""leeds united"" AND moving_from = ""motherwell""" "What is the position when drafted is 1974,r11,p11?","SELECT position FROM table_1198175_1 WHERE drafted = ""1974,R11,P11""" How many people directed episode 7 In the season?,SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 7 What Event used submission (rear naked choke) with 9-4?,"SELECT event FROM table_name_11 WHERE method = ""submission (rear naked choke)"" AND record = ""9-4""" What is the order status for order 3,SELECT order_status_code FROM Customer_Orders WHERE order_id = 3 What is the Gaelic Football Stadium at McHale Park's ranking in total capacity?,"SELECT COUNT(rank) FROM table_name_30 WHERE stadium = ""mchale park""" WHAT IS THE DECISION FOR NOVEMBER 28?,"SELECT decision FROM table_name_10 WHERE date = ""november 28""" What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal?,"SELECT AVG(bronze) FROM table_name_94 WHERE rank < 11 AND nation = ""trinidad and tobago"" AND total < 1" find the training hours of the player Charles,SELECT HS from Player where pName = 'Charles' What year has 59th as a finish position?,"SELECT year FROM table_name_58 WHERE finish_position = ""59th""" "For the event with index f7, what is the status?","SELECT status FROM table_name_23 WHERE index = ""f7""" How many percent of countries in North America use English?,"SELECT CAST(SUM(IIF(T2.Language = 'English', 1, 0)) AS REAL) * 100 / COUNT(T1.Code) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode" What was the score in the match against Sanaz Marand?,"SELECT score FROM table_name_54 WHERE opponent = ""sanaz marand""" What are the id and zip code of the address with the highest monthly rental?,"SELECT T2.address_id , T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1" What is the format for the station owned by Dakota Broadcasting?,"SELECT format FROM table_2709_4 WHERE owner = ""Dakota Broadcasting""" What is the percentage of Android use when Windows is 1.15%?,"SELECT android FROM table_11381701_3 WHERE windows = ""1.15%""" Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?,"SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = ""semi hepa"" AND class = ""h12""" Which Year is the lowest when the Viewers are 13.7 million?,"SELECT MIN(year) FROM table_name_7 WHERE viewers = ""13.7 million""" "Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?","SELECT winner FROM table_name_71 WHERE points_classification = ""giuseppe saronni"" AND trofeo_fast_team = ""bianchi"" AND stage = ""3""" What party represents the district with incumbent matthew clay?,"SELECT party FROM table_2668378_18 WHERE incumbent = ""Matthew Clay""" What is the name of the director of the episode written by robin schwartz & robert tarlow?,"SELECT directed_by FROM table_name_55 WHERE written_by = ""robin schwartz & robert tarlow""" "Can you find me student with first name ""Emma""? | What do you want to know about that student? | Student id","SELECT student_id FROM Students WHERE first_name = ""Emma""" What is the bleeding time in Bernard-soulier syndrome?,"SELECT bleeding_time FROM table_1557752_1 WHERE condition = ""Bernard-Soulier syndrome""" What is the place result of the downhill race before the 1996 season on 11-Mar-1995?,"SELECT place FROM table_name_17 WHERE race = ""downhill"" AND season < 1996 AND date = ""11-mar-1995""" How many scenes are there in Act 1 in Twelfth Night?,SELECT COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T1.Title = 'Twelfth Night' "What is the date of completion in the course named ""advanced database?""","SELECT T2.date_of_completion FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""advanced database""" "Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?","SELECT gold_coast FROM table_name_49 WHERE perth = ""no"" AND sydney = ""yes"" AND auckland = ""yes""" What was the No. 6 name when Emma was No. 2 and Sophia was No. 3?,"SELECT no_6 FROM table_name_78 WHERE no_2 = ""emma"" AND no_3 = ""sophia""" what is employee number of james ? | Is James a first name or last name? | first name,"SELECT EMP_NUM FROM EMPLOYEE WHERE EMP_FNAME = ""James""" Find the name of airports whose altitude is between -50 and 50.,SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50 How many English films have a duration of over 50 minutes and the cost of replacement are under 10.99?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.name = 'English' AND T1.length > 50 AND T1.replacement_cost < 10.99 List players' first name and last name who have weight greater than 220 or height shorter than 75.,"SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75" Name the time with track number less than 4 for you're my everything,"SELECT time FROM table_name_58 WHERE track_number < 4 AND song_title = ""you're my everything""" How many platinum points were awarded for 5th place?,"SELECT MAX(points_awarded__platinum_) FROM table_11254821_2 WHERE finishing_position = ""5th""" Which park did the most people attend in 2008?,SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1; List down email address of customers who were attended by staff with ID 2.,SELECT DISTINCT T1.email FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T2.staff_id = 2 Who played Captain Jack Sparrow in all of the Pirates of the Caribbean movies?,SELECT DISTINCT T3.person_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T2.character_name = 'Captain Jack Sparrow' AND T1.title LIKE 'Pirates of the Caribbean%' "What is the to par of player ed sneed, who has a t5 place?","SELECT to_par FROM table_name_45 WHERE place = ""t5"" AND player = ""ed sneed""" Find the names of all the product characteristics.,SELECT DISTINCT characteristic_name FROM CHARACTERISTICS What's the average attendance of the league with a total attendance of 2268508?,"SELECT average_attendance FROM table_name_75 WHERE total_attendance = ""2268508""" What was the date of the game against Hayes & Yeading United?,"SELECT date FROM table_name_60 WHERE opponent = ""hayes & yeading united""" Find the number and time of the train that goes from Chennai to Guruvayur.,"SELECT train_number, TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur'" How many tries for does Pontardawe RFC have? ,"SELECT tries_for FROM table_14070062_3 WHERE club = ""Pontardawe RFC""" What's the year that Hagerstown joined?,"SELECT year_joined FROM table_name_66 WHERE school = ""hagerstown""" "Who was the customer in the South Region superstore who bought the most “Hon Multipurpose Stacking Arm Chairs""?",SELECT T2.`Customer Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Hon Multipurpose Stacking Arm Chairs' GROUP BY T2.`Customer Name` ORDER BY COUNT(T2.`Customer Name`) DESC LIMIT 1 What is the payment method of the order with an id of 11?,select T1.payment_method from customers as T1 join customer_orders as T2 on T1.customer_id = T2.customer_id where T2.order_id = 11 How many positions drafted players from Washington?,"SELECT COUNT(position) FROM table_16729063_1 WHERE college = ""Washington""" what is the pole position for france?,"SELECT pole_position FROM table_29686983_1 WHERE country = ""France""" Which staff handled least number of payments? List the full name and the id.,"SELECT T1.first_name , T1.last_name , T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1" "On June 30, 2008 who what was the Republican: Jeff Sessions percentage?","SELECT republican AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = ""June 30, 2008""" What were the years active where Asian Cup played as a captain is Iran 1976?,"SELECT years_active FROM table_272865_20 WHERE asian_cup_played_as_a_captain = ""Iran 1976""" What is the status of rené hoppe?,"SELECT status FROM table_name_10 WHERE athlete = ""rené hoppe""" What was the date of the game with the record of 18–10–2?,"SELECT date FROM table_name_60 WHERE record = ""18–10–2""" How many companies are in the list?,"SELECT count ( * ) FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion , Profits_in_Billion DESC" "What is the City, when the Prize is €880,000?","SELECT city FROM table_name_26 WHERE prize = ""€880,000""" Which Against has a Date of 30/05/1981?,"SELECT COUNT(against) FROM table_name_63 WHERE date = ""30/05/1981""" "In the district called Tennessee 6, how many in total of first elected are there?","SELECT COUNT(first_elected) FROM table_1341577_43 WHERE district = ""Tennessee 6""" Show names of technicians in ascending order of quality rank of the machine they are assigned.,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank List the document ids for any documents with the status code done and the type code paper.,"SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"";" What is the description of the color for most products?,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1 What is the numbers of the thn unit with a power greater than 220?,"SELECT numbers FROM table_name_49 WHERE power__horsepower_ > 220 AND type = ""thn""" What was the model's DirectX if it has a Core of 700 700 mhz?,"SELECT directx FROM table_26860595_2 WHERE core___mhz__ = ""700 700""" Show the transportation method most people choose to get to tourist attractions.,SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1 What is the Portuguese Pluperfect when the French is Ils/Elles Avaient Entendu?,"SELECT portuguese FROM table_name_25 WHERE french = ""ils/elles avaient entendu""" Show the names of artworks in ascending order of the year they are nominated in.,SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year How many judges were there for the eliminated couple? ,"SELECT judges FROM table_26375386_23 WHERE result = ""Eliminated""" What was the score for an n/a location with the odds of p + 1?,"SELECT result FROM table_name_61 WHERE location = ""n/a"" AND odds = ""p + 1""" How many distinct cities does the employees live in?,SELECT COUNT(DISTINCT city) FROM EMPLOYEE "Which surface has a score in the final of 4–6, 3–6?","SELECT surface FROM table_name_77 WHERE score_in_the_final = ""4–6, 3–6""" What is the price of the dvds?,select product_price from Products where product_name = 'dvds' What was the score of the game where the venue was cairns convention centre?,"SELECT score FROM table_name_54 WHERE venue = ""cairns convention centre""" Great! Can you update this list to show how many times each tourist attraction was visited?,"SELECT T1.Name , count ( * ) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count ( * ) > = 2" who was the director of the episode with production code ad1a26?,"SELECT directed_by FROM table_name_38 WHERE production_code = ""ad1a26""" What was the total To Par for Craig Wood?,"SELECT SUM(to_par) FROM table_name_16 WHERE player = ""craig wood""" "What is the status of the community with a census ranking of 2,418 of 5,008?","SELECT status FROM table_name_67 WHERE census_ranking = ""2,418 of 5,008""" Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count(*) >= 5 How many storms had death records?,SELECT count(*) FROM storm WHERE Number_Deaths > 0; "What are the first name, last name, and gender of all the good customers? Order by their last name.","SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name" What is the name of the division that has had the lowest number of draft matches in the 2019 season?,SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2019 AND T1.FTR = 'D' GROUP BY T2.division ORDER BY COUNT(FTR) LIMIT 1 What is the name of the most recent movie?,SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie) State the name of the pair of word that have id of 20 and 50?,"SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.w1st = 20 AND T2.w2nd = 50" List all the first words of the biwords pair where the second word is 'antic'.,SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w2nd = ( SELECT wid FROM words WHERE word = 'antic' ) "Among the stations with 3 stores, how many stations have a station pressure of no more than 30 on February 18, 2014?",SELECT COUNT(station_nbr) FROM weather WHERE `date` = '2014-02-18' AND stnpressure < 30 AND station_nbr IN ( SELECT station_nbr FROM relation GROUP BY station_nbr HAVING COUNT(store_nbr) = 3 ) What is the episode # when the guests were julie nixon eisenhower and david eisenhower?,"SELECT MIN(episode__number) FROM table_25691838_12 WHERE guest = ""Julie Nixon Eisenhower and David Eisenhower""" Find the grade studying in room 105.,SELECT DISTINCT grade FROM list WHERE classroom = 105 "Which student is more satisfied with the course Machine Learning Theory, Willie Rechert or Laughton Antonio?","SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE (T1.f_name = 'Laughton' OR T1.f_name = 'Willie') AND (T1.l_name = 'Antonio' OR T1.l_name = 'Rechert') AND T3.name = 'Machine Learning Theory' ORDER BY T2.sat DESC LIMIT 1" "On what date was the attendance at TD Garden 18,624?","SELECT date FROM table_23274514_8 WHERE location_attendance = ""TD Garden 18,624""" Can you please tell me the name of that school and the enrollment?,"SELECT school, enrollment FROM university WHERE affiliation ! = 'Public'" What country does the player who joined the Vancouver Canucks originally hail from?,"SELECT nationality FROM table_2886617_4 WHERE nhl_team = ""Vancouver Canucks""" What is their name and team? | what do you mean their?could you give more info ? | What is the name of the oldest technician?,SELECT Name FROM technician ORDER BY Age DESC LIMIT 1 Who is the outgoing manager when they were replaced by pablo centrone?,"SELECT outgoing_manager FROM table_name_16 WHERE replaced_by = ""pablo centrone""" What was the year that had Anugerah Bintang Popular Berita Harian 23 as competition?,"SELECT COUNT(year) FROM table_name_30 WHERE competition = ""anugerah bintang popular berita harian 23""" "Find the id of the order whose shipment tracking number is ""3452"".","SELECT order_id FROM shipments WHERE shipment_tracking_number = ""3452""" What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?,SELECT call_sign FROM table_name_35 WHERE frequency_mhz < 94.9 AND erp_w = 170 "Which Skip has Ends Lost larger than 44, and Blank Ends of 10?",SELECT skip FROM table_name_80 WHERE ends_lost > 44 AND blank_ends = 10 What is the last year that someone is first elected?,SELECT MAX(first_elected) FROM table_1342359_2 What shows for 2006 when 2002 is 0–1?,"SELECT 2006 FROM table_name_96 WHERE 2002 = ""0–1""" What are the allergy types and how many allergies correspond to each one?,"SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype" How many problems does the product with the most problems have? List the number of the problems and product name.,"SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1" What region has a 5 rank?,SELECT region FROM table_name_25 WHERE rank = 5 "Show statement id, statement detail, account detail for accounts.","SELECT T1.statement_id , T2.statement_details , T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id" What is the name of the course that has the most student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT ( * ) DESC LIMIT 1 What was the score of the Browns game against the San Francisco 49ers?,"SELECT result FROM table_name_7 WHERE opponent = ""san francisco 49ers""" What are names of countries with the top 3 largest population?,SELECT Name FROM country ORDER BY Population DESC LIMIT 3 Which high income group countries are from Asia?,"SELECT CountryCode, Region FROM Country WHERE (IncomeGroup = 'High income: OECD' OR IncomeGroup = 'High income: nonOECD') AND Region LIKE '%Asia%'" "What are the degrees conferred in ""San Francisco State University"" in 2001.","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND t2.year = 2001" "Can you tell me the total number of 100s that has the Balls larger than 325, and the Runs smaller than 572?",SELECT COUNT(100 AS s) FROM table_name_44 WHERE balls > 325 AND runs < 572 What is the title of AC/DC's albums?,"SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""AC/DC""" "Great, what is the typical product price for this product?","SELECT typical_buying_price FROM products WHERE product_name = ""chervil""" What is the ratio between country with the highest number of infant deaths in 1971 and the lowest number of infant deaths in 1971? List the country with the highest number of infant deaths in 1971 and the lowest number of infant deaths in 1971.,"SELECT CAST(MAX(value) AS REAL) / MIN(value) FROM indicators WHERE indicatorname = 'Number of infant deaths' AND year = '1971' UNION ALL SELECT countryname FROM ( SELECT countryname, MAX(value) FROM indicators WHERE indicatorname = 'Number of infant deaths' AND year = '1971' ) UNION SELECT countryname FROM ( SELECT countryname, MIN(value) FROM indicators WHERE indicatorname = 'Number of infant deaths' AND year = '1971' )" What airport is in Vietnam?,"SELECT airport FROM table_name_77 WHERE country = ""vietnam""" Find the names of the artists who have produced English songs but have never received rating higher than 8.,"SELECT DISTINCT artist_name FROM song WHERE languages = ""english"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8" List all the titles and their publishing journals from the 60's.,"SELECT T1.Title, T1.JournalId FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Year >= 1960 AND T1.Year <= 1970" What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4?,"SELECT COUNT(laps) FROM table_name_22 WHERE manufacturer = ""ktm"" AND time_retired = ""+3.578"" AND grid > 4" Can you tell me the last railways this builder has build?,"SELECT Railway FROM railway GROUP BY Builder having Builder = ""GWR Swindon"" ORDER BY built DESC limit 1" Which Artist has the Label of Columbia and the Standard number of COCC-72073?,"SELECT artist FROM table_name_86 WHERE label = ""columbia"" AND standard_number = ""cocc-72073""" "In countries with constitutional monarchy, what is the percentage of cities located in the district of England?",SELECT CAST(SUM(CASE WHEN T1.District = 'England' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.GovernmentForm = 'Constitutional Monarchy' What team was the away team for the game with 916 in attendance?,SELECT away FROM table_name_45 WHERE attendance = 916 what is the average wins when percent is more than 0.4 and teams is chargers~?,"SELECT AVG(wins) FROM table_name_53 WHERE percent > 0.4 AND teams = ""chargers~""" What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant?,"SELECT MIN(year) FROM table_name_40 WHERE points < 3 AND entrant = ""parmalat forti ford""" "How many students, who have a GPA between 3 to 4, failed a course?",SELECT COUNT(T2.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T2.grade IS NULL AND T1.gpa BETWEEN 3 AND 4 How many clubs were founded in the westfalenstadion stadium?,"SELECT COUNT(founded) FROM table_26218124_1 WHERE stadium = ""Westfalenstadion""" Alana Boyd of group B with a 4.30 result has what nationality?,"SELECT nationality FROM table_name_24 WHERE group = ""b"" AND result = ""4.30"" AND name = ""alana boyd""" "From 1593 onwards, what is the difference between the number of comedy works and history works?","SELECT SUM(IIF(GenreType = 'Comedy', 1, 0)) - SUM(IIF(GenreType = 'History', 1, 0)) FROM works WHERE Date > 1593" "For the Honkai Impact 3rd App, what is the highest sentiment polarity score and what genre does it belong to?","SELECT MAX(T2.Sentiment_Polarity), T1.Genres FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Honkai Impact 3rd' AND T2.Sentiment_Polarity > 0.5 GROUP BY T1.Genres" What is the airport code of the airport with the most flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1 "What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?","SELECT start FROM table_name_22 WHERE engine = ""ford cosworth dfx"" AND year > 1981 AND entrant = ""kraco enterprises""" How many times did Tiger get second in the year where there were 11 cuts?,"SELECT MAX(2 AS nd) FROM table_11570261_6 WHERE cuts_made = ""11""" Who directed the show with the production code k2708?,"SELECT directed_by FROM table_name_1 WHERE production_code = ""k2708""" How many Students are below the age of 17?,SELECT count ( StuID ) FROM student where Age<17 List all the server of the phone complaints with a late response from the company.,SELECT DISTINCT T2.server FROM events AS T1 INNER JOIN callcenterlogs AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.`Submitted via` = 'Phone' AND T1.`Timely response?` = 'No' Which catalogue is from Japan?,"SELECT catalogue FROM table_name_31 WHERE region = ""japan""" How many high risk violations do the restaurants in San Francisco have in total?,"SELECT COUNT(T2.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.city IN ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO') AND T1.risk_category = 'High Risk'" State number of legislators who are not the senator among female legislators.,SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' AND (T2.class IS NULL OR T2.class = '') When was the F4 7 series?,"SELECT date FROM table_25572068_1 WHERE series = ""F4 7""" "What kind of transaction type for the ""HL Road Frame - Black, 48"" order happened in 2012/12/13?","SELECT T1.TransactionType FROM TransactionHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'HL Road Frame - Black, 48' AND STRFTIME('%Y-%m-%d',T1.TransactionDate) = '2013-07-31'" What was the record of the game when Lebron James (4) had the high assists?,"SELECT record FROM table_name_43 WHERE high_assists = ""lebron james (4)""" Which date had a sport of Academics?,"SELECT date FROM table_name_70 WHERE sport = ""academics""" "How many grids have a Time/Retired of gearbox, and Laps smaller than 3?","SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = ""gearbox"" AND laps < 3" List out total number of projects which has no staff for researcher role ?,SELECT count ( * ) FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) Which settlement has the cyrillic name сигет? ,"SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = ""Сигет""" "What is the most recent date for a singles final with the score of 1–6, 4–6, 5–7?","SELECT MAX(date) FROM table_name_77 WHERE score_in_the_final = ""1–6, 4–6, 5–7""" How many flights have a velocity larger than 200?,SELECT COUNT(*) FROM flight WHERE velocity > 200 Name the minimum for prohibition?,SELECT MIN(for_prohibition) FROM table_120778_1 Which college/junior/club teams nationality is canada and nhl team is minnesota north stars,"SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = ""Canada"" AND nhl_team = ""Minnesota North Stars""" What is the model for Thor's Hammer which is listed as operating?,"SELECT model FROM table_name_16 WHERE status = ""operating"" AND name = ""thor's hammer""" How many games did Per Mars play in the 1997-1998 season?,SELECT T2.GP FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.SEASON = '1997-1998' AND T1.PlayerName = 'Pavel Patera' which county has the highest crime rate?,SELECT Name FROM county_public_safety ORDER BY Crime_rate DESC LIMIT 1 who is the the mixed doubles with year being 1972,SELECT mixed_doubles FROM table_13857700_1 WHERE year = 1972 "What are the songs in album ""A Kiss Before You Go: Live in Hamburg""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = ""A Kiss Before You Go: Live in Hamburg""" Can you tell me the Club that has the Lost of 19?,"SELECT club FROM table_name_34 WHERE lost = ""19""" Who has filed the least amounts of complaints?,SELECT DISTINCT t3.customer_id FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count ( * ) LIMIT 1 "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.",SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200 "What was the score for the match at the tournament in canada f7, toronto?","SELECT score FROM table_name_87 WHERE tournament = ""canada f7, toronto""" "What is the result for the distance of 10f, and a winner or 2nd of Lampra?","SELECT result FROM table_name_30 WHERE distance = ""10f"" AND winner_or_2nd = ""lampra""" "What is the event when the method was tko (punches), and the record was 7-1?","SELECT event FROM table_name_60 WHERE method = ""tko (punches)"" AND record = ""7-1""" "What are the names of representatives whose party is not ""Republican""?","SELECT Name FROM Representative WHERE Party != ""Republican""" What is the name of the song that was released most recently?,"SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1" "How many people, who were born in Canada, won an award in 1999?",SELECT COUNT(T1.person_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.year = 1999 AND T1.birth_country = 'Canada' What is the description of the low risk violation of Tiramisu Kitchen on 2014/1/14?,SELECT T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = '2014-01-14' AND T2.name = 'Tiramisu Kitchen' AND T1.risk_category = 'Low Risk' What are all distinct countries where singers above age 20 are from?,SELECT DISTINCT country FROM singer WHERE age > 20 "How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points?",SELECT played FROM table_name_75 WHERE lost < 12 AND points > 37 AND drawn = 5 "Which Venue has a Result of 5-1, and a Score of 1-0?","SELECT venue FROM table_name_72 WHERE result = ""5-1"" AND score = ""1-0""" What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?,"SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Return the names of artists and the themes of their exhibitions that had a ticket price higher than average.,"SELECT T1.theme , T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT avg(ticket_price) FROM exhibition)" What is the score of game 33?,SELECT score FROM table_15780049_6 WHERE game = 33 What is the average buying price?,SELECT avg ( T2.typical_buying_price ) FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' how many Invoices there,SELECT count ( * ) from invoices Which year did the World indoor championships gave a position of 3rd?,"SELECT SUM(year) FROM table_name_12 WHERE competition = ""world indoor championships"" AND position = ""3rd""" What year did the team from City of Aurora join?,"SELECT AVG(year_joined__or_joining_) FROM table_name_57 WHERE city = ""aurora""" "Tweets posted from which city has a higher number of average likes, Bangkok or Chiang Mai?","SELECT SUM(CASE WHEN T2.City = 'Bangkok' THEN Likes ELSE NULL END) / COUNT(CASE WHEN T2.City = 'Bangkok' THEN 1 ELSE 0 END) AS bNum , SUM(CASE WHEN City = 'Chiang Mai' THEN Likes ELSE NULL END) / COUNT(CASE WHEN City = 'Chiang Mai' THEN TweetID ELSE NULL END) AS cNum FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.City IN ('Bangkok', 'Chiang Mai')" What are distinct locations where tracks are located?,SELECT DISTINCT LOCATION FROM track When turquoise is the map colour how many avg. trips per mile (×1000) are there?,"SELECT COUNT(avg_trips_per_mile__) AS ×1000_ FROM table_17839_1 WHERE map_colour = ""Turquoise""" "What is the partition id of the user named ""Iron Man"".",SELECT partitionid FROM user_profiles WHERE name = 'Iron Man' What was North Melbourne's score when they were the home team?,"SELECT home_team AS score FROM table_name_22 WHERE home_team = ""north melbourne""" Who is building manager of Mercedes House?,"SELECT building_manager FROM Apartment_Buildings WHERE building_full_name = ""Mercedes House""" "What is the description of chapter 18704, where there is a character called Orsino?",SELECT DISTINCT T3.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id INNER JOIN chapters AS T3 ON T2.chapter_id = T3.id WHERE T1.CharName = 'Orsino' AND T3.ID = 18704 Which department has a small of 11370? ,SELECT department FROM table_21249915_1 WHERE small__100ha_ = 11370 What is the average losses for 22 goals?,SELECT AVG(losses) FROM table_name_23 WHERE goals_for > 22 How many Points have a January of 18?,SELECT COUNT(points) FROM table_name_88 WHERE january = 18 What about their date?,SELECT T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 How many scientists do not have any projects assigned to them?,SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) "Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?","SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = ""riochy sekiya""" Who were semi-finalists in the event with a runner-up of Lisa Raymond?,"SELECT semi_finalists FROM table_name_3 WHERE runner_up = ""lisa raymond""" What is the id of the trip that started from the station with the highest dock count?,SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id = T2.id ORDER BY T2.dock_count DESC LIMIT 1 "Between Northwest and Southeast of the United States, which territory one recorded the highest amount of sales last year?",SELECT Name FROM SalesTerritory WHERE CountryRegionCode = 'US' AND (Name = 'Northwest' OR Name = 'Southeast') ORDER BY SalesLastYear DESC LIMIT 1 "For the tournament played on 26 February 2006, what surface was used?","SELECT surface FROM table_name_35 WHERE date = ""26 february 2006""" What Social AO has a President of harm van leeuwen?,"SELECT social_ao FROM table_name_68 WHERE president = ""harm van leeuwen""" Who directed the film Gomorra?,"SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = ""Gomorra""" What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?,"SELECT result FROM table_name_78 WHERE year > 1989 AND category = ""best supporting actress"" AND actor = ""samantha morton""" How many points were scored by someone who's position was right tackle?,"SELECT COUNT(points) FROM table_14342480_7 WHERE position = ""Right tackle""" Please show the different record companies and the corresponding number of orchestras.,"SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company" What is the 2007 value with 2r in 2011 and 2r in 2008?,"SELECT 2007 FROM table_name_67 WHERE 2011 = ""2r"" AND 2008 = ""2r""" Find the average age of losers and winners of all matches.,"SELECT avg(loser_age) , avg(winner_age) FROM matches" Which home team has a record of 3-2?,"SELECT home FROM table_name_49 WHERE record = ""3-2""" Return the names of the contestants whose names contain the substring 'Al' .,"SELECT contestant_name FROM contestants WHERE contestant_name LIKE ""%al%""" What distinct accelerator names have been compatible since at least 1996.,SELECT DISTINCT T2.name from accelerator_compatible_browser as T1 join Web_client_accelerator as T2 on T1.accelerator_id = T2.id where compatible_since_year > = 1996 How many semifinalists has Romania had? ,"SELECT semifinalists FROM table_30008638_1 WHERE country_territory = ""Romania""" "Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?","SELECT set_3 FROM table_name_86 WHERE score = ""3–2"" AND set_2 = ""25–23"" AND time = ""19:00""" Which player placed in t5 and had a score of 72-71-73-78=294?,"SELECT player FROM table_name_17 WHERE place = ""t5"" AND score = 72 - 71 - 73 - 78 = 294" What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?,SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16' I want to know all the engineers corresponding skill description? | Do you mean the corresponding skill description for all the engineers? | Yes please,SELECT T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id What about from 100 - 200?,SELECT department_id FROM departments where manager_id > = 100 and manager_id < = 200 Which position in the table is the team watford?,"SELECT position_in_table FROM table_18784280_3 WHERE team = ""Watford""" "Among the current legislators who have accounts on both http://thomas.gov, how many of them have accounts on instagram?",SELECT COUNT(DISTINCT T1.bioguide_id) FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.thomas_id IS NOT NULL AND T2.instagram IS NOT NULL What is the highest enrollment in Lagrange where the mascot is panthers?,"SELECT MAX(enrollment) FROM table_name_48 WHERE location = ""lagrange"" AND mascot = ""panthers""" Who wrote the episodes directed by David Straiton?,"SELECT written_by FROM table_21312845_1 WHERE directed_by = ""David Straiton""" "Among the episodes aired on April of 2009, how many episodes won an award?","SELECT COUNT(T1.episode_id) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2009' AND T2.air_date LIKE '2009-04%';" How many employed disabled students have zero absences?,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name INNER JOIN unemployed AS T3 ON T3.name = T2.name WHERE T1.month = 0 What kind of Obama has a Undecided of 1%?,"SELECT obama FROM table_name_87 WHERE undecided = ""1%""" What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? ,"SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = ""Prolonged"" AND partial_thromboplastin_time = ""Unaffected""" What was the margin of victory when runner-up was K. J. Choi?,"SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = ""K. J. Choi""" Return the average age across all artists.,SELECT avg(Age) FROM artist what was the score on june 16?,"SELECT score FROM table_name_77 WHERE date = ""june 16""" Who was seat no 6 when seat no 1 and seat no 5 were jacques lachapelle and donald s. dutton,"SELECT seat_no_6 FROM table_2231241_1 WHERE seat_no_1 = ""Jacques Lachapelle"" AND seat_no_5 = ""Donald S. Dutton""" may i have the order ids please? | Did you mean their order ids? | yes,"SELECT order_id FROM orders WHERE order_status = ""On Road""" Tell me the chargeable amount for part id 1 ?,"SELECT chargeable_amount FROM Parts WHERE part_id = ""1""" Last name of Tracy | Did you want the last name of the student with first name Tracy? | Yes,"SELECT lname from student where fname = ""Tracy""" What are the distinct names and nationalities of the architects who have ever built a mill?,"SELECT DISTINCT T1.name , T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id" What was the Result for the club universidad de guadalajara?,"SELECT result FROM table_name_11 WHERE club = ""club universidad de guadalajara""" What is the length in feet when the length in meters is 64.2?,"SELECT length___ft__ FROM table_name_47 WHERE length___m__ = ""64.2""" What is/are the ids of the tallest patient/s?,SELECT PATIENT FROM observations WHERE DESCRIPTION = 'Body Height' AND UNITS = 'cm' ORDER BY VALUE DESC LIMIT 1 Find the number of teachers who teach the student called CHRISSY NABOZNY.,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""CHRISSY"" AND T1.lastname = ""NABOZNY""" What are the ids of all students and number of hours played?,"SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid" What is the most common maximum page size?,SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1 What class is associated with a W.A. of 0-8-0?,"SELECT class FROM table_name_10 WHERE wa = ""0-8-0""" Can you list all the events that happened within the last 5 years?,SELECT name FROM event where year > = 2014 What's the status for an against below 22 with an opposing team of Australia?,"SELECT status FROM table_name_86 WHERE against < 22 AND opposing_teams = ""australia""" list the year id in which the least people enter hall of fame,SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count ( * ) ASC LIMIT 1 Name the representing for englar alheimsins,"SELECT representing FROM table_name_35 WHERE original_title = ""englar alheimsins""" What stadium had the score 1 - 1 dodd 38'?,"SELECT stadium FROM table_name_21 WHERE score = ""1 - 1 dodd 38'""" "WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?","SELECT são_paulo_career FROM table_name_45 WHERE appearances < 201 AND goals < 2 AND name = ""ricardo rocha""" Name the total number of eu for quinn,"SELECT COUnT AS eu FROM table_22667773_8 WHERE name = ""Quinn""" Name the opponent for save of williams (9),"SELECT opponent FROM table_name_35 WHERE save = ""williams (9)""" "What was the highest points on October 12, when the attendance where is over 10,701?","SELECT MAX(points) FROM table_name_20 WHERE date = ""october 12"" AND attendance > 10 OFFSET 701" Who was the opponent in Game 44?,"SELECT opponent FROM table_name_98 WHERE game = ""44""" "Hello! How are you? Can you please provide me with a list of all department IDs, department names, and their respective years of creation?","SELECT department_id, name, creation FROM department" "Show the studios that have not produced films with director ""Walter Hill"".","SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = ""Walter Hill""" "How many Drawn have a Difference of 3, and Points smaller than 52?","SELECT COUNT(drawn) FROM table_name_55 WHERE difference = ""3"" AND points < 52" Count the active businesses that has an attribute of BYOB with high review count.,SELECT COUNT(DISTINCT T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T3.attribute_name = 'BYOB' AND T1.review_count = 'High' AND T1.active = 'true' "Which venue has a Result of w, and a Goal of deacon 5/5?","SELECT venue FROM table_name_84 WHERE result = ""w"" AND goals = ""deacon 5/5""" What are the char cells of those?,"SELECT DISTINCT T1.char_cells FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = ""Nokia Corporation"" AND T1.Type ! = ""Text""" "Which Gold has a Silver of 7, and a Bronze smaller than 7?",SELECT MIN(gold) FROM table_name_24 WHERE silver = 7 AND bronze < 7 Show each author and the number of workshops they submitted to.,"SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author" How many Black patients were immunized with DTaP in 2013?,"SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T1.race = 'black' AND T2.DESCRIPTION = 'DTaP' AND strftime('%Y', T2.DATE) = '2013'" List the character names and descriptions of chapter ID 18710.,"SELECT DISTINCT T1.CharName, T1.Description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.Chapter_id = 18710" What is the games played when the category is points per game?,"SELECT MIN(games_played) FROM table_28628309_8 WHERE category = ""Points per game""" What are the names of the aircraft that the least people are certified to fly?,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1 Show all allergy types and the number of allergies in each type.,"SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype" what is the glos & wilts where the bristol & somerset is lansdown?,"SELECT glos_ & _wilts FROM table_12043148_2 WHERE bristol_ & _somerset = ""Lansdown""" What is the launched date of the destroyer completed 25 February 1936?,"SELECT launched FROM table_name_13 WHERE completed = ""25 february 1936""" "Find the first and last name of the author(s) who wrote the paper ""Nameless, Painless"".","SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Nameless , Painless""" "Who won Gold later than 2004 with Notes of 2.73km, 14controls?","SELECT gold FROM table_name_32 WHERE year > 2004 AND notes = ""2.73km, 14controls""" Find the id and name of the staff who has been assigned for the shortest period.,"SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" Type FJ/RN/SC is associated with what class?,"SELECT class FROM table_21538523_1 WHERE type = ""FJ/RN/SC""" Show the names of journalists and the names of the events they reported in ascending order,"SELECT T3.Name, T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance" what is the location for the date (to) 8 october 1922?,"SELECT location FROM table_12562214_1 WHERE date__to_ = ""8 October 1922""" Do you know who the architect is for that bridge?,SELECT * from bridge as T1 join architect as T2 on T1.architect_id = T2.id where T1.name = 'Xian Ren Qiao ( Fairy Bridge ) ' "What is 01-02, when 03-04 is 03-04?","SELECT 01 AS _02 FROM table_name_61 WHERE ""03_04"" = ""03_04""" What are the dock count of San Jose Diridon Caltrain Station?,"SELECT dock_count FROM station WHERE name = ""San Jose Diridon Caltrain Station""" What callsign has 1300 as the frequency?,SELECT callsign FROM table_name_66 WHERE frequency = 1300 "Who directed the episode that aired November 21, 2003?","SELECT directed_by FROM table_28859177_2 WHERE original_air_date = ""November 21, 2003""" "What label released a record on March 25, 1984?","SELECT label FROM table_name_9 WHERE date = ""march 25, 1984""" What are the 2fm's for erp 16?,"SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE erp__kw_ = ""16""" And what is this organization's type?,SELECT T1.organisation_type FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo' "What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have?","SELECT date FROM table_name_28 WHERE name__location_ = ""belyanitsky, ivanovo, and balino""" "Hello! Can you provide me with a list of first name, last name, and faculty ID of all faculty?","SELECT Fname, Lname, FacID from Faculty" What are the names of the characteristics of the product 'sesame' that have the characteristic type code 'Grade'?,"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"" AND t3.characteristic_type_code = ""Grade""" Thanks! Can you also update that list to show the checking balance for each customer?,select balance from CHECKING List the report number of crimes against property happened in Riverdale.,SELECT SUM(CASE WHEN T1.crime_against = 'Property' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T3.community_area_name = 'Riverdale' What is Ken Walter's lowest pick number with an overall pick number larger than 195?,"SELECT MIN(pick__number) FROM table_name_28 WHERE name = ""ken walter"" AND overall > 195" What is the chassis when there is 25 points?,"SELECT chassis FROM table_name_41 WHERE points = ""25""" What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva?,"SELECT score FROM table_name_2 WHERE surface = ""hard"" AND opponent_in_the_final = ""elena likhovtseva""" Name the candidates for illinois 15,"SELECT candidates FROM table_1341672_14 WHERE district = ""Illinois 15""" What are the names of all the customers?,SELECT customer_name FROM customers Who was the partner that played against Serena Williams Venus Williams?,"SELECT partner FROM table_name_94 WHERE opponents_in_the_final = ""serena williams venus williams""" What is the additional information in the song mera yaar bana hai dulha,"SELECT additional_info FROM table_2528382_2 WHERE song = ""Mera Yaar Bana Hai Dulha""" What team won after 2008?,SELECT team FROM table_name_9 WHERE season > 2008 Which languages are spoken by only one country in republic governments?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = ""Republic"" GROUP BY T2.Language HAVING COUNT(*) = 1" "Which Position has a Pick smaller than 152, and a Round smaller than 3?",SELECT position FROM table_name_92 WHERE pick < 152 AND round < 3 How many Federalist representatives are there whose first names are Benjamin?,SELECT COUNT(T.bioguide_id) FROM ( SELECT T1.bioguide_id FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Benjamin' AND T2.party = 'Federalist' AND T2.type = 'rep' GROUP BY T1.bioguide_id ) AS T What are the first names of all students in Smith Hall?,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' "What was the result of the april 6, 2002 game against the greensboro prowlers?","SELECT result FROM table_name_89 WHERE opponent = ""greensboro prowlers"" AND date = ""april 6, 2002""" What 2nd Member has an Election of 1833 by-election?,"SELECT 2 AS nd_member FROM table_name_43 WHERE election = ""1833 by-election""" What day was Jeld-Wen Tradition held?,"SELECT date FROM table_15346009_1 WHERE tournament = ""JELD-WEN Tradition""" "When is the earliest year for it is in barcelona, spain?","SELECT MIN(year) FROM table_name_35 WHERE venue = ""barcelona, spain""" what week number was at memorial stadium?,"SELECT AVG(week) FROM table_name_53 WHERE game_site = ""memorial stadium""" "In the Central region, what was the infiltration (km 3 /year)?","SELECT infiltration__km_3__year_ FROM table_25983027_1 WHERE region = ""Central""" How many players are there for each hand type?,"SELECT count(*) , hand FROM players GROUP BY hand" What is the name of the player acquired via import and larger than 22?,"SELECT name FROM table_name_55 WHERE acquisition_via = ""import"" AND number > 22" "What is the genre of the game titled '999: Nine Hours, Nine Persons, Nine Doors' ?","SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '999: Nine Hours, Nine Persons, Nine Doors'" What is the direction of the train with a diamond-shaped load in its 2nd car?,SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 2 AND T1.shape = 'diamond' Which cornerback has the lowest overall and a pick number smaller than 16?,"SELECT MIN(overall) FROM table_name_30 WHERE position = ""cornerback"" AND pick__number < 16" List name of ships?,SELECT name FROM ship How many teams have the same total number of postseason wins and postseason loses?,SELECT DISTINCT COUNT(tmID) FROM Goalies WHERE PostW = PostL What are the shipping agent names?,SELECT shipping_agent_name FROM Ref_Shipping_Agents; "What is the name of the team with the earliest home game date, and what is that date?","SELECT T2.name,T1.span_first FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br order by T1.span_first limit 1" "Which Date has a Road Team of new york, and a Result of 79-75?","SELECT date FROM table_name_42 WHERE road_team = ""new york"" AND result = ""79-75""" Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.,SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200 What is the total profit gained by the company from the product that has the highest amount of quantity ordered from online customers? Indicate the name of the product.,"SELECT (T2.ListPrice - T2.StandardCost) * SUM(T1.Quantity), T2.Name FROM ShoppingCartItem AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID, T2.Name, T2.ListPrice, T2.StandardCost, T1.Quantity ORDER BY SUM(T1.Quantity) DESC LIMIT 1" Show the denomination of the school that has the most players.,SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1 "Which Opponent is on september 9, 2004?","SELECT opponent FROM table_name_77 WHERE date = ""september 9, 2004""" Please list the depth of the lakes that are located in the Province of Albania.,SELECT T2.Depth FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T1.Province = 'Albania' Which projects have no outcome? List the project details.,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes ); What is the Netflix episode that has a series episode of 6-02?,"SELECT netflix FROM table_name_98 WHERE series_ep = ""6-02""" "Alright, and how many male artists who prefer pop are there in the entire world, according to the table?","SELECT count ( * ) FROM artist WHERE preferred_genre = ""pop"" AND gender = ""Male""" And what are their transaction dates?,SELECT transaction_date FROM Financial_transactions WHERE transaction_amount > ( SELECT avg ( transaction_amount ) FROM Financial_transactions ) What is the highest number of Brisbane viewers?,SELECT MAX(brisbane) FROM table_24291077_4 "What is the range of married filing jointly or qualified widower in which married filing separately is $33,951–$68,525?","SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_11647327_2 WHERE married_filing_separately = ""$33,951–$68,525""" "How many calories from fat are there in the recipe ""Raspberry Chiffon Pie""?",SELECT T2.calories * T2.pcnt_cal_fat FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' "How many solution path does the repository with 111 stars, 58 forks, and 111 watchers?",SELECT COUNT(T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 111 AND T1.Forks = 58 AND T1.Watchers = 111 Name the bulgarian name for mart,SELECT bulgarian_name FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Mart "Among the players who were born in 1977, provide names and birthdates of the players from England.","SELECT T2.Player_Name, T2.DOB FROM Country AS T1 INNER JOIN Player AS T2 ON T2.Country_Name = T1.Country_Id WHERE T2.DOB LIKE '1977%' AND T1.Country_Name = 'England'" How many residences are there in total?,SELECT count ( distinct residence ) FROM player How many clubs had 7 wins? ,"SELECT COUNT(club) FROM table_13741576_6 WHERE won = ""7""" "For the customer who gave a 3 star rating to Frostie brand on 2014/4/24, did the user permit the company to send regular emails to him/her?",SELECT CASE WHEN T1.SubscribedToEmailList LIKE 'TRUE' THEN 'YES' ELSE 'NO' END AS result FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T2.StarRating = 3 AND T3.BrandName = 'Frostie' AND T2.ReviewDate = '2014-04-24' How many songs have a shared vocal?,"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""shared""" What was the player name who came from Australia?,"SELECT player FROM table_11734041_1 WHERE school_club_team_country = ""Australia""" List all the model names sorted by their launch year.,SELECT model_name FROM chip_model ORDER BY launch_year "Which Wins have a Class of 500cc, and a Year smaller than 1975?","SELECT wins FROM table_name_46 WHERE class = ""500cc"" AND year < 1975" Who won silver in 1982?,SELECT silver FROM table_name_15 WHERE year = 1982 What is its ID?,"SELECT T2.Manufacturer_ID FROM furniture as T1 JOIN furniture_manufacte as T2 ON T1.Furniture_ID = T2.Furniture_ID WHERE T1.name = ""Chabudai""" "Who is the opponent on October 28, 2001?","SELECT opponent FROM table_name_77 WHERE date = ""october 28, 2001""" What is the championship of Jem Karacan that has a total of 2 and a league cup more than 0?,"SELECT championship FROM table_name_10 WHERE total = 2 AND league_cup > 0 AND name = ""jem karacan""" What is the score for the United States in place T1 for David Duval?,"SELECT score FROM table_name_80 WHERE country = ""united states"" AND place = ""t1"" AND player = ""david duval""" "List the camera lens names containing substring ""Digital"".","SELECT name FROM camera_lens WHERE name LIKE ""%Digital%""" "What is the avg/g of Rhines, Chris, who has an effic greater than 73.95?","SELECT avg_g FROM table_name_70 WHERE effic > 73.95 AND name = ""rhines, chris""" How many distinct orders were there in 2003 when the quantity ordered was less than 30?,"SELECT COUNT(DISTINCT T1.orderNumber) FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber WHERE T1.quantityOrdered < 30 AND STRFTIME('%Y', T2.orderDate) = '2003'" What is the time with FB notes for Canada?,"SELECT time FROM table_name_43 WHERE notes = ""fb"" AND country = ""canada""" Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.,"SELECT Hardware_Model_name , Company_name FROM phone WHERE Accreditation_type LIKE 'Full';" When did customer with first name as Carole and last name as Bernhard became a customer?,"SELECT date_became_customer FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard"";" What was the score when the Spurs' record was 43-13?,"SELECT score FROM table_name_72 WHERE record = ""43-13""" What about the staff?,SELECT first_name FROM staff where last_name = 'Mertz' What are the amenities of the dorm that has the smallest student capacity?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid jOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid where T1.student_capacity = ( select min ( student_capacity ) from dorm ) Name the most win % for 13 drawn,SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13 What are the maximum and minimum number of transit passengers of all aiports.,"SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport" which manufacturer has the least revenue? | Did you mean to get the name of manufacturer has the least revenue | name the manufacturer with the least revenue,SELECT name FROM manufacturers order by revenue limit 1 And what are starting years shared by technicians from both teams?,"SELECT Starting_Year FROM technician WHERE Team = ""CLE"" INTERSECT SELECT Starting_Year FROM technician WHERE Team = ""CWS""" What was the away team's score at Western Oval?,"SELECT away_team AS score FROM table_name_75 WHERE venue = ""western oval""" Excellent! Can you list the investor IDs that correspond to each of these lot_details?,"SELECT T1.investor_id, T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = ""l""" What is the earliest sunrise recorded in the stations with no more than 1 store in February 2012?,SELECT T1.station_nbr FROM relation AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE sunrise IS NOT NULL AND T2.`date` LIKE '%2012-02%' AND T1.station_nbr IN ( SELECT station_nbr FROM relation GROUP BY station_nbr HAVING COUNT(store_nbr) = 1 ) ORDER BY sunrise LIMIT 1 "Among the teams that played in 1922's Stanley Cup finals, how many of them had over 20 points in that year?",SELECT COUNT(T1.tmID) FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = '1922' AND T2.Pts > 20 "How many distinct colleges are associated with players from the team with name ""Columbus Crew"".","SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" Can you give the name of the countries with population smaller than 100000?,SELECT County_name FROM county WHERE Population < 100000 What was the highest amount of losses when there were 45 goals and the play was smaller than 38?,SELECT MAX(losses) FROM table_name_52 WHERE goals_for = 45 AND played < 38 Show all ages and corresponding number of students.,"SELECT age , count(*) FROM Student GROUP BY age" "Return the categories of music festivals that have the result ""Awarded"".","SELECT Category FROM music_festival WHERE RESULT = ""Awarded""" What are the full names of faculty members who are a part of department 520?,"SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520" "What are the naems of all the projects, and how many scientists were assigned to each of them?","SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name" "What is the average Season for coach Fisher, and an actual adjusted record of 0–11?","SELECT AVG(season) FROM table_name_45 WHERE coach = ""fisher"" AND actual_adjusted_record = ""0–11""" Show all storm names except for those with at least two affected regions.,SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2; Find the name of the ships that have more than one captain.,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1 How many businesses operating in the shopping business have opening times before 8AM?,SELECT COUNT(T3.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T4.opening_time < '8AM' AND T1.category_name LIKE 'Shopping' What is the FIS Nordic World Ski Championships when holmenkollen is 1976?,"SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE holmenkollen = ""1976""" Find the cities which have exactly two airports.,SELECT city FROM airports GROUP BY city HAVING count(*) = 2 Which Away has a Home of 2–2?,"SELECT away FROM table_name_84 WHERE home = ""2–2""" How many of the unemployed students are disabled?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name Which round has more than 79 overall and a position of QB?,"SELECT round FROM table_name_60 WHERE position = ""qb"" AND overall > 79" How many architects haven't built a mill before year 1850?,SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year < 1850 ); What was the average bronze when gold was larger than 1 and silver was larger than 2?,SELECT AVG(bronze) FROM table_name_42 WHERE gold > 1 AND silver > 2 Which country's IATA is ika?,"SELECT country FROM table_name_72 WHERE iata = ""ika""" What was rickie winslow's number?,"SELECT MAX(_number) FROM table_22496374_1 WHERE name = ""Rickie Winslow""" Find the first name and country code of the player who did the most number of tours.,"SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1" Calculate the average age of clients from the Midwest region.,SELECT CAST(SUM(T1.age) AS REAL) / COUNT(T3.Region) AS average FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Midwest' "What was the Attendance on September 26, 1971?","SELECT AVG(attendance) FROM table_name_86 WHERE date = ""september 26, 1971""" What is the year First elected when the Member is John Armitage?,"SELECT first_elected FROM table_name_6 WHERE member = ""john armitage""" Show the number of buildings with a height above the average or a number of floors above the average.,SELECT count(*) FROM building WHERE height_feet > (SELECT avg(height_feet) FROM building) OR floors > (SELECT avg(floors) FROM building) "What is the sum of Year, when Rank is less than 19?",SELECT SUM(year) FROM table_name_4 WHERE rank < 19 Who are the employees working for publisher not located in USA? State the employee's name and publisher name.,"SELECT T1.fname, T1.lname, T2.pub_name FROM employee AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country != 'USA'" "In March 2014, which weather stations recorded the highest number of days whose temperature is below the 30-year normal?","SELECT station_nbr FROM weather WHERE SUBSTR(`date`, 1, 4) = '2014' AND SUBSTR(`date`, 6, 2) = '03' AND depart < 0 GROUP BY station_nbr HAVING COUNT(DISTINCT `date`) = ( SELECT COUNT(DISTINCT `date`) FROM weather WHERE SUBSTR(`date`, 1, 4) = '2014' AND SUBSTR(`date`, 6, 2) = '03' AND depart < 0 GROUP BY station_nbr ORDER BY COUNT(`date`) DESC LIMIT 1 )" How many stations have been owned since wfts-tv?,"SELECT owned_since FROM table_1847523_2 WHERE station = ""WFTS-TV""" Show me the ids and names of these stations.,"SELECT start_station_id , start_station_name FROM trip GROUP BY start_station_name HAVING COUNT ( * ) > = 200" How many players have the bowling skill greater than 2?,SELECT COUNT(Player_Name) FROM Player WHERE Bowling_skill > 2 "What's the average survived with a to Iran less than 1, more than 1 destroyed, and a brazil tucano aircraft?","SELECT AVG(survived) FROM table_name_53 WHERE to_iran < 1 AND aircraft = ""brazil tucano"" AND destroyed > 1" Show the delegate and committee information of elections.,"SELECT Delegate , Committee FROM election" "display the first and last name, department, city, and state province for each employee.","SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" "what is the pick for alfred morris when the overall is less than 217, and the round is smaller than 6?","SELECT MAX(pick) FROM table_name_49 WHERE overall < 217 AND name = ""alfred morris"" AND round < 6" Name the number of points defending for 1075,SELECT COUNT(points) AS defending FROM table_23501776_16 WHERE new_points = 1075 Which movies have received the greatest ratings from female users whose occupations fall within the category of 3?,SELECT T2.movieid FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T1.u_gender = 'F' AND T1.occupation = 3 AND T2.rating = 5 Name the mixed doubles for zhu lin,"SELECT mixed_doubles FROM table_14496232_2 WHERE womens_singles = ""Zhu Lin""" "What is the average number of votes of representatives from party ""Republican""?","SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = ""Republican""" Wow ! What was his account type?,SELECT acc_type FROM customer ORDER BY credit_score LIMIT 1 Find the name of airline which runs the most number of routes.,SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 What are the description and credit of the course which the student whose last name is Smithson took?,"SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'" The community station broadcasting at frequency 0 96.9 is in what band?,"SELECT band FROM table_name_87 WHERE purpose = ""community"" AND frequency = ""0 96.9""" Who's the shooter with a total of 25?,"SELECT shooter FROM table_name_57 WHERE total = ""25""" "What is Set 2, when Date is May 31?","SELECT set_2 FROM table_name_67 WHERE date = ""may 31""" "Which average overall has a Round of 1, and a Position of center?","SELECT AVG(overall) FROM table_name_80 WHERE round = 1 AND position = ""center""" What is the administrative division that has an area of 30 km^2?,SELECT administrative_division FROM table_171666_1 WHERE area__km²_ = 30 Calculate the average population per city in Karnataka district.,SELECT AVG(Population) FROM City WHERE District = 'Karnataka' GROUP BY ID Show me the name of players?,"SELECT name_first, name_last, name_given FROM player" Can you add host names to that table?,"SELECT T2.name, T1.party_id , T1.host_id, T3.party_theme FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" "Find the last names of the members of the club ""Bootup Baltimore"".","SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" How many restaurants were inspected on 2015/5/8?,SELECT COUNT(T2.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.inspection_date = '2015-05-08' AND T1.facility_type = 'Restaurant' "What was the result under interim head coach, Gary Darnell?","SELECT result FROM table_name_62 WHERE interim_head_coach = ""gary darnell""" "Among the solutions that contain files within the repository followed by over 1000 people, how many of them can be implemented without needs of compilation?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > 1000 AND T2.WasCompiled = 1 How many restaurants have more than 4 star reviews?,SELECT COUNT(id_restaurant) AS cnt FROM generalinfo WHERE review > 4 What is the highest taijijian with a 9.87 taijiquan and a total less than 19.77?,SELECT MAX(taijijian) FROM table_name_20 WHERE taijiquan = 9.87 AND total < 19.77 What are all of their professor high degree?,SELECT prof_high_degree from professor Name the club for quevedo,"SELECT club FROM table_2454589_1 WHERE home_city = ""Quevedo""" "What are the companies of entrepreneurs, ordered descending by amount of money requested?",SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC "What state or district has a charter date of april 17, 2011?","SELECT us_state_district FROM table_name_51 WHERE charter_date = ""april 17, 2011""" How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.,"SELECT T2.email, T3.country FROM customers AS T1 INNER JOIN employees AS T2 ON T1.salesRepEmployeeNumber = T2.employeeNumber INNER JOIN offices AS T3 ON T2.officeCode = T3.officeCode WHERE T3.country = 'Australia' AND T1.creditLimit < 200000 AND T2.jobTitle = 'Sales Rep'" Find the number of songs in all the studio albums.,"SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = ""Studio""" What is the format for UK catalog S 63795?,"SELECT format FROM table_name_90 WHERE country = ""uk"" AND catalog = ""s 63795""" What is the 3 most common cloud cover rates in the region of zip code 94107?,SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3 Who is the Opponent in the game with a Record of 1–3–0?,"SELECT opponent FROM table_name_26 WHERE record = ""1–3–0""" "What is the name, type, and flag of the ship that was built in the most recent year?","SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1" Which Venue has Against smaller than 6?,SELECT venue FROM table_name_82 WHERE against < 6 Nam ethe enlisted for troop carrier group,"SELECT enlisted FROM table_23508196_5 WHERE type_of_unit = ""Troop carrier group""" When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?,SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer' "What was the home team's score at the game attended by more than 24,637?",SELECT home_team AS score FROM table_name_81 WHERE crowd > 24 OFFSET 637 "In the film with an inventory ID between 20 to 60, how many of the films have a G rating?",SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.inventory_id BETWEEN 20 AND 60 AND T1.rating = 'G' Name the points against for november 14,"SELECT points_against FROM table_15607589_2 WHERE date = ""November 14""" "What is the number of households in the ""FL-10"" district?",SELECT SUM(CASE WHEN T2.district = 'FL-10' THEN 1 ELSE 0 END) FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code "What Elimination Move is listed against Wrestler Henry, Eliminated by Batista?","SELECT elimination AS Move FROM table_name_35 WHERE eliminated_by = ""batista"" AND wrestler = ""henry""" "Which province had a liberal party member on December 31, 2006?","SELECT province FROM table_name_38 WHERE party = ""liberal"" AND date = ""december 31, 2006""" Show the name of each party and the corresponding number of delegates from that party.,"SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party" What are the notes of the number 1 rank?,SELECT notes FROM table_name_52 WHERE rank = 1 How many students play Works of Widenius?,"SELECT count ( distinct t1.StuID ) FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid where t2.GName = ""Works of Widenius""" Can you list the details of all the customers please?,SELECT customer_details FROM customers Who was in Lane 5?,SELECT name FROM table_name_84 WHERE lane = 5 What school is from 45 Lake county and is located in Merrillville?,"SELECT school FROM table_name_32 WHERE county = ""45 lake"" AND location = ""merrillville""" "If the spectral type is g1v, what is the constellation?","SELECT constellation FROM table_1820752_1 WHERE spectral_type = ""G1V""" What is the id of the longest song?,SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 Show the name of the county with the biggest population.,SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 How much March has Points of 85?,SELECT COUNT(march) FROM table_name_24 WHERE points = 85 How many female employees are in charge of 3 or more territories?,SELECT COUNT(EID) FROM ( SELECT T1.EmployeeID AS EID FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.TitleOfCourtesy IN ('Ms.' OR 'Mrs.') GROUP BY T1.EmployeeID HAVING COUNT(T2.TerritoryID) >= 3 ) T1 What number in the series was episode 2 in the season?,SELECT MAX(no_in_series) FROM table_2468961_3 WHERE no_in_season = 2 Which Away team is associated with the Richmond Home team?,"SELECT away_team FROM table_name_13 WHERE home_team = ""richmond""" Give the average number of working horses on farms with more than 5000 total horses.,SELECT avg(Working_Horses) FROM farm WHERE Total_Horses > 5000 Find the name and city of the airport which is the destination of the most number of routes.,"SELECT T1.name , T1.city , T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1" "Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.57?","SELECT SUM(100 AS s) FROM table_name_41 WHERE team = ""deccan chargers"" AND matches = 8 AND average > 35.57" "Which customers have used the service named ""Close a policy"" or ""Upgrade a policy""? Give me the customer names.","SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""Close a policy"" OR t3.service_name = ""Upgrade a policy""" Could you add the total number of games played to that table please?,"SELECT StuID , count ( * ) , sum ( gamesplayed ) FROM Sportsinfo GROUP BY StuID" Which Department has the most number of employee? tell me the rank and creation year.,"SELECT ranking, creation from department where num_employees = ( select max ( num_employees ) from department ) " How many venues had a race called the Australia Stakes?,"SELECT COUNT(venue) FROM table_14981555_3 WHERE race = ""Australia Stakes""" List all country and league names.,"SELECT T1.name, T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id" hi I was wondering how many counties you have information for?,SELECT count ( DISTINCT T1.county ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus what is the dept-code of student number 324257,SELECT DEPT_CODE from student where STU_NUM = 324257 how many employees are there?,SELECT count ( * ) FROM Employees List out students that enrolled in occ school and enlisted in a fire department.,SELECT T1.name FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T2.name = T1.name WHERE T2.school = 'occ' AND T1.organ = 'fire_department' What is the official language spoken in the country whose head of state is Beatrix?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = ""Beatrix"" AND T2.IsOfficial = ""T""" What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?,SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2 "Among the tweets posted from Santa Fe state in Argentina, how many of them were posted on 31st?",SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.Day = 31 AND T2.State = 'Santa' AND T2.Country = 'Argentina' "What are the states or counties of the address of the stores with marketing region code ""CA""?","SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = ""CA""" "How many instrument does the musician with last name ""Heilo"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" When did Geelong play as the home team?,"SELECT date FROM table_name_65 WHERE home_team = ""geelong""" What genres are the games published by 'Agatsuma Entertainment'?,SELECT T4.genre_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T1.publisher_name = 'Agatsuma Entertainment' Which film was released in the year 2002?,SELECT film_name FROM table_name_63 WHERE year = 2002 what is the average bronze when the team is northwest territories and gold is more than 34?,"SELECT AVG(bronze) FROM table_name_23 WHERE team = ""northwest territories"" AND gold > 34" What are the ids and first names of customers who do not hold a credit card?,"SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = ""Credit""" Find the accreditation level that more than 3 phones use.,SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*) > 3 When 2010 is the year what is the game?,"SELECT games FROM table_29743928_4 WHERE years = ""2010""" What is title of album which track For Those About To Rock (We Salute You) belong to?,"SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = ""For Those About To Rock ( We Salute You ) """ What is the role code with the largest number of employees?,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 How may faculties in this survey?,select count ( * ) from Faculty "How many awards did the ""Agony"" win?",SELECT COUNT(T2.award) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Agony' AND T2.result = 'Winner' What is the value in 2008 when the value for Tournament is year?,"SELECT 2008 FROM table_name_77 WHERE tournament = ""year""" Name the date for result of eng by 23 runs,"SELECT date FROM table_name_24 WHERE result = ""eng by 23 runs""" "Which Opened has a System of c-train, and a Daily ridership smaller than 269,600?","SELECT MAX(opened) FROM table_name_80 WHERE system = ""c-train"" AND daily_ridership < 269 OFFSET 600" Show the countries that have managers of age above 50 or below 46.,SELECT Country FROM manager WHERE Age > 50 OR Age < 46 "Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?",SELECT CAST(SUM(CASE WHEN customerNumber = 186 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(orderNumber) FROM orders WHERE status = 'Shipped' AND shippedDate BETWEEN '2005-01-01' AND '2005-12-31' "How many Points have a Game smaller than 37, and a Score of 2–3, and a December of 13?","SELECT COUNT(points) FROM table_name_98 WHERE game < 37 AND score = ""2–3"" AND december = 13" Which services type had both successful and failure event details?,SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail' "What competition took place in Berlin, Germany?","SELECT competition FROM table_name_47 WHERE venue = ""berlin, germany""" What was the length for GT class at Portland International Raceway?,"SELECT length FROM table_name_22 WHERE class = ""gt"" AND circuit = ""portland international raceway""" What are the details of the lots which aren't used in any transactions?,SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id WHAT DID HAWTHORN SCORE AT ITS AWAY GAME?,"SELECT away_team AS score FROM table_name_50 WHERE away_team = ""hawthorn""" List the names of mountains that do not have any climber.,SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber) How many different players trained for more than 1000 hours?,SELECT count(*) FROM Player WHERE HS > 1000 Return the last name of the staff member who handled the complaint with the earliest date raised.,SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1 "What is the name of the vendor that the project ""Bloody Times"" uses for their resources?",SELECT T3.vendor_name FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN resources AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Bloody Times' "In 2014, what is the shortest duration of trips by subscribers which started at 2nd at Folsom and ended in the 5th at Howard stations, and by how much shorter than the average? Give me the minimum temperature, maximum gust speed and weather event on that trip.","SELECT MIN(T1.duration) , MIN(T1.duration) - AVG(T1.duration), T2.min_temperature_f FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_date = '1/1/2014 0:00' AND T1.end_date = '12/31/2014 11:59' AND T1.start_station_name = '2nd at Folsom' AND T1.end_station_name = '5th at Howard' AND T1.subscription_type = 'Subscriber'" "How many distinct programs are broadcast at ""Night"" time?",SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night' "When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?","SELECT COUNT(population__2010_) FROM table_29289372_1 WHERE income_classification = ""1st Class"" AND city_municipality = ""Itogon, Benguet""" What is the col location for the location of france / italy?,"SELECT col_location FROM table_2731431_1 WHERE location = ""France / Italy""" what is the college for keenan robinson when overall is more than 102?,"SELECT college FROM table_name_55 WHERE overall > 102 AND name = ""keenan robinson""" who in that list is from canada?,"SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id OR T1.male_id = t2.people_id WHERE T1.year = 2016 AND t2.country = ""Canada""" Which party has the 6th district?,"SELECT party FROM table_name_49 WHERE district = ""6th""" Awesome! Can you tell me what the date issued is for each of these two coupon_ids?,SELECT date_issued from discount_coupons where coupon_id in ( SELECT T1.coupon_id FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_id FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad' ) What year was the game at Bad Neuenahr Eppelborn?,"SELECT year FROM table_name_30 WHERE venue = ""bad neuenahr eppelborn""" "Among students with low salary, how many of them have a gpa of 3.5?",SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.gpa = 3.5 AND T1.salary = 'low' * I have left the chat *,select t1.name from browser as T1 join accelerator_compatible_browser as T2 on T1.id = T2.browser_id order by compatible_since_year asc limit 1 WHAT'S THE TIE NUMBER WITH AN AWAY TEAM OF WREXHAM?,"SELECT tie_no FROM table_name_52 WHERE away_team = ""wrexham""" Where was the tournament that happened in 1987 on a clay surface?,"SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = ""clay""" "What is the highest average for a long less than 24, a GP-GS of 2-0, and less than 7 yards?","SELECT MAX(avg_g) FROM table_name_93 WHERE long < 24 AND gp_gs = ""2-0"" AND yards < 7" Find the distinct winery of wines having price between 50 and 100.,SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100 What is the name of the event that happened in the most recent year?,SELECT name FROM event ORDER BY YEAR DESC LIMIT 1 How many distinct locations of perpetrators are there?,SELECT count(DISTINCT LOCATION) FROM perpetrator; What is the average sales of the journals that have an editor whose work type is 'Photo'?,SELECT avg(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo' What is the relationship between object sample no.12 and no.8 of image no.2345511?,SELECT T1.PRED_CLASS FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.IMG_ID = 2345511 AND T2.OBJ1_SAMPLE_ID = 12 AND T2.OBJ2_SAMPLE_ID = 8 "Which Ties is the highest one that has Losses smaller than 9, and Starts of 26, and Wins smaller than 21?",SELECT MAX(ties) FROM table_name_65 WHERE losses < 9 AND starts = 26 AND wins < 21 Name the present share for australia,"SELECT present_share FROM table_23195_5 WHERE producing_nation = ""Australia""" "What are the first name, last name and id of the player with the most all star game experiences? Also list the count.","SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;" Which company has the lowest unit price? Please give the company name and the product name.,"SELECT T2.CompanyName, T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice = ( SELECT MIN(UnitPrice) FROM Products )" "What is Syracuse, when Utica is Solsville Shale And Sandstone?","SELECT syracuse FROM table_name_51 WHERE utica = ""solsville shale and sandstone""" What is the for the f136fb engine?,"SELECT usage FROM table_name_98 WHERE engine = ""f136fb""" what is the average when matches is less than 5 and wickets is more than 9?,SELECT average FROM table_name_26 WHERE matches < 5 AND wickets > 9 Please list the full names of any three inactive customers.,"SELECT first_name, last_name FROM customer WHERE active = 0 LIMIT 3" Okay. What other countries are listed?,"SELECT DISTINCT Country FROM member EXCEPT SELECT Country FROM member WHERE Country = ""United States""" What is the instrumental for the dative shen?,"SELECT instrumental FROM table_name_15 WHERE dative = ""shen""" What are the names of musicals who have at 3 or more actors?,SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3 Which composer has a track length of 2:50?,"SELECT composer_s_ FROM table_name_33 WHERE time = ""2:50""" "Tell me temperature for City ID 2 for Jan, Apr and Oct","SELECT Jan, Apr, Oct FROM temperature WHERE city_id = 2" Which date has china as the venue?,"SELECT date FROM table_name_25 WHERE venue = ""china""" What lots are associate with those transactions with a count smaller than 50? | Do you mean all the information about lots or some specific attributes? | What are all of the details about the lots?,SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 "What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?","SELECT COUNT(gold) FROM table_name_4 WHERE silver = 1 AND bronze = 1 AND nation = ""austria""" Who was team 1 when team 2 was Young Africans?,"SELECT team_1 FROM table_name_65 WHERE team_2 = ""young africans""" "Among the customers with a marital status of married-civ-spouse, list the number of inhabitants and age of those who are machine-op-inspct.",SELECT T2.INHABITANTS_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.OCCUPATION = 'Farming-fishing' AND T1.SEX = 'Male' AND T1.age >= 20 AND T1.age <= 30 How many laps for a grid larger than 1 with a Time/Retired of halfshaft?,"SELECT laps FROM table_name_31 WHERE grid > 1 AND time_retired = ""halfshaft""" How many winners are there of farma?,"SELECT COUNT(winners) FROM table_1053802_1 WHERE local_title = ""Farma""" what is the name of the papers publishes by Indiana University,"SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University""" "Which Position has a Pick # smaller than 23, and a Player of garrett sutherland?","SELECT position FROM table_name_12 WHERE pick__number < 23 AND player = ""garrett sutherland""" Show the names of all the clients with no booking.,SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID What is the 2006-2007 points minimum is the team is Overmach Parma?,"SELECT MIN(2006 AS _07_points) FROM table_23215145_2 WHERE team = ""Overmach Parma""" What are the countries that have at least two perpetrators?,"SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2" "How many object samples in image no.1 are in the class of ""man""?",SELECT SUM(CASE WHEN T1.OBJ_CLASS = 'man' THEN 1 ELSE 0 END) FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 1 What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?,"SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year" "What is the highest Goals Against, when Club is ""Pontevedra CF"", and when Played is less than 38?","SELECT MAX(goals_against) FROM table_name_74 WHERE club = ""pontevedra cf"" AND played < 38" What is the average teaching ability of the most popular professors?,SELECT CAST(SUM(teachingability) AS REAL) / COUNT(prof_id) FROM prof WHERE popularity = ( SELECT MAX(popularity) FROM prof ) "How many for percentages are there when the against percentage is 35,782 (69)?","SELECT for___percentage_ FROM table_1289762_1 WHERE against___percentage_ = ""35,782 (69)""" "If the spectral type is g1v, what is the total distance amount?","SELECT COUNT(distance___ly__) FROM table_1820752_1 WHERE spectral_type = ""G1V""" I am interested in learning who the artist is.,"SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = ""Balls to the Wall""" What is the id and type code for the template used by the most documents?,"SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1" What are the names and opening years of the three churches that opened the earliest?,"SELECT name , open_date FROM church ORDER BY open_date Asc LIMIT 3" How many games have 5 goals and less than 8 assists?,SELECT COUNT(games) FROM table_name_20 WHERE goals = 5 AND assists < 8 In 2007 what category won?,"SELECT category FROM table_name_62 WHERE result = ""won"" AND year < 2007" Which airlines have a flight with destination airport AHD?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ""AHD""" Which race happened in 1948?,SELECT race_title FROM table_name_26 WHERE year = 1948 Could you show me all the locations that have train stations with more than 25 total passengers?,SELECT DISTINCT LOCATION FROM station WHERE total_passengers > 25 What types of ships have both ships that have Panama Flags and Malta flags?,SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' What is the name and address of the department with the most students?,"SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1" Show the ids and names of all documents.,"SELECT document_id , document_name FROM Documents" show the login name and password for registration id 2,"select T1.login_name, T1.password from students AS T1 JOIN Student_Course_Enrolment AS T2 ON T2.student_id = T1.student_id WHERE registration_id = 2" "Who is the Winner, when the Name is Ouninpohja 1?","SELECT winner FROM table_name_92 WHERE name = ""ouninpohja 1""" When is the highest price of Terracoin?,SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Terracoin' ORDER BY T2.price DESC LIMIT 1 What is the description of the chapter with the longest number of paragraphs?,SELECT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id ORDER BY T1.ParagraphNum DESC LIMIT 1 When 0.6–1.4 is the b r (t) what is the h ci (ka/m)?,"SELECT h_ci__ka_m_ FROM table_2282444_1 WHERE b_r__t_ = ""0.6–1.4""" "What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?","SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = ""eliza maria partridge""" Which cities are they from?,SELECT city FROM employees What was the Result in Green Lane with Kirkburton as the Runner-up?,"SELECT result FROM table_name_94 WHERE runner_up = ""kirkburton"" AND final_venue = ""green lane""" Return the codes of countries for which Spanish is the predominantly spoken language.,"SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = ""Spanish"" GROUP BY CountryCode" what are all the overall with rating being 1.4,"SELECT overall FROM table_13110459_2 WHERE rating = ""1.4""" "Calculate the order percentage by ""Carlos Miller"" sales team.",SELECT CAST(SUM(CASE WHEN T2.`Sales Team` = 'Carlos Miller' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID What are the description and credit of the course which the student whose last name is Smithson took?,"SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'" Show the name and the release year of the song by the youngest singer.,"SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1" "What is the highest points of the club with less than 9 draws, 11 wins, and more than 40 goals?",SELECT MAX(points) FROM table_name_28 WHERE draws < 9 AND wins = 11 AND goals_for > 40 List the title of movies in Latin released between 1/01/1990 and 12/31/1995.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin' AND T1.release_date BETWEEN '1990-01-01' AND '1995-12-31' What was the length of release 3.6?,SELECT length FROM table_name_54 WHERE release = 3.6 What is the categorization in 2012 when it was A in 2008 and 1R in 2011?,"SELECT 2012 FROM table_name_13 WHERE 2008 = ""a"" AND 2011 = ""1r""" Find the name of the person who has friends with age above 40 but not under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) "Which date has a Week larger than 5, and an Attendance of 54,803?","SELECT date FROM table_name_6 WHERE week > 5 AND attendance = ""54,803""" how many schools or teams had jalen rose,"SELECT COUNT(school_club_team) FROM table_10015132_16 WHERE player = ""Jalen Rose""" Name the color analyst for terry bowden and 17.2,"SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = ""Terry Bowden"" AND tv_rating = ""17.2""" Whice race ended with a DNF?,"SELECT race FROM table_name_98 WHERE position = ""dnf""" When 2011 is the year what is the lowest money list rank?,SELECT MIN(money_list_rank) FROM table_24330912_1 WHERE year = 2011 What is Michigan State's position?,"SELECT position FROM table_name_59 WHERE school_club_team = ""michigan state""" Who is the director when there is 8.44 million viewers?,"SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = ""8.44""" What is the Front Side Bus for Model Number c3 850?,"SELECT front_side_bus FROM table_name_54 WHERE model_number = ""c3 850""" Grechukha Tholi has what longitude?,"SELECT longitude FROM table_16799784_4 WHERE name = ""Grechukha Tholi""" Name the genre for release-year of first charted record of 1988,SELECT genre FROM table_name_98 WHERE release_year_of_first_charted_record = 1988 What's the heigh of nolan smith?,"SELECT height FROM table_name_83 WHERE player = ""nolan smith""" Show all the locations where no cinema has capacity over 800.,SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800 What is the detail of the location UK Gallery?,"SELECT Other_Details FROM LOCATIONS WHERE Location_Name = ""UK Gallery""" "How many legislators hold the title ""Majority Leader""?",SELECT COUNT(bioguide) FROM `current-terms` WHERE title = 'Majority Leader' How many Atts that have Yards of 43 and a Long larger than 43?,SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43 "Find the distinct years when the governor was named ""Eliot Spitzer"".","SELECT DISTINCT YEAR FROM party WHERE Governor = ""Eliot Spitzer""" How May female Dorm are there?,"SELECT count ( * ) from dorm where gender = ""F""" Show the population of the city which was the destination of shipment no.1398.,SELECT T2.population FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1398' Show all ages and corresponding number of students.,"SELECT age, COUNT(*) FROM Student GROUP BY age" Which Method has a Record of 16–7?,"SELECT method FROM table_name_99 WHERE record = ""16–7""" List out which business category that are most likely to have average good review in Arizona?,SELECT DISTINCT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.state LIKE 'AZ' AND T1.review_stars >= 3 Which student is older than the average age. | Do you want their id or last name or first name? | The first name for the student older than the average age.,select fname from student where age > ( SELECT avg ( age ) FROM STUDENT ) Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?,"SELECT miss_universe_philippines FROM table_name_82 WHERE first_runner_up = ""danielle castaño"" AND binibining_pilipinas_world = ""janina san miguel""" Show the details of the top 3 most expensive hotels.,SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3 "What is the credit of the course named ""Computer Vision""?",SELECT credit FROM course WHERE name = 'Computer Vision' Find the actor's name that played as Don Altobello in a drama movie that has a gross of 136766062.,SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Gross = 136766062 AND T2.`Character Name` = 'Don Altobello' AND T1.Genre = 'Drama' "Please list the area name of the communities in the Far north side, which has a population of more than 50000 but less than 70000.","SELECT community_area_name, side FROM Community_Area WHERE side = 'Far North ' AND population BETWEEN 50000 AND 70000" "What is Born-Died, when Term Start is 4 December 1941?","SELECT born_died FROM table_name_25 WHERE term_start = ""4 december 1941""" What was the grid number of the team and driver with 14 points?,"SELECT grid FROM table_name_9 WHERE points = ""14""" please order them in alphabetical order.,SELECT customer_name FROM customers order by customer_name Tell the special features of the film Uprising Uptown.,SELECT special_features FROM film WHERE title = 'UPRISING UPTOWN' "What is the average age as of February 1, 2014 for the supercentenarians born in the United States?","SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = ""united states""" How many teams participated (maximum) when Cornish All Blacks Pertemps Bees were relegated to the league?,"SELECT MAX(teams) FROM table_23927423_4 WHERE relegated_to_league = ""Cornish All Blacks Pertemps Bees""" What was the margin of victory of Steve Stricker as a runner up?,"SELECT margin_of_victory FROM table_19630743_2 WHERE runner_s__up = ""Steve Stricker""" When did the season finale reached an audience of 10.02 million viewers?,"SELECT season AS finale FROM table_2669287_1 WHERE viewers__in_millions_ = ""10.02""" What is the Grid number for the Team from Italy?,"SELECT COUNT(grid) FROM table_name_87 WHERE team = ""italy""" What is the Original Artis of the Track with a Length of 2:38?,"SELECT original_artist FROM table_name_64 WHERE length = ""2:38""" Find the id and city of the student address with the highest average monthly rental.,"SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1" Which Opponent is on mar 10?,"SELECT opponent FROM table_name_63 WHERE date = ""mar 10""" I want to know the states and the college names which have some college students in tryout.,"SELECT T1.state, T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName" During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?,"SELECT season FROM table_name_62 WHERE winner = ""kiveton park"" AND final_venue = ""sandy lane""" Please list the IDs of all the matches in the year 2008.,"SELECT Match_Id FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2008'" Please list the faculty members in building Barton.,"SELECT * FROM FACULTY WHERE Building = ""Barton""" "What is the value in 2012 if it is 2R in 2013, 1R in 2005, and 1R in 2008?","SELECT 2012 FROM table_name_84 WHERE 2013 = ""2r"" AND 2005 = ""1r"" AND 2008 = ""1r""" How many numbers had Brandon Dean as a name?,"SELECT SUM(number) FROM table_name_24 WHERE name = ""brandon dean""" What position was pick 32?,SELECT position FROM table_name_86 WHERE pick = 32 What is the savings balance for Wang?,"SELECT sum ( T2.balance ) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid where T1.name = ""Wang""" how many cars were produced in 1980?,SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980 What is the competition that had a 2-2 result?,"SELECT competition FROM table_name_58 WHERE result = ""2-2""" Who was the director when the writer was John Sullivan?,"SELECT directed_by FROM table_17641206_4 WHERE written_by = ""John Sullivan""" "For each phone, show its names and total number of stocks.","SELECT T2.Name , sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name" "What is the employment, disability, gender and school debt status for student180 and student117?","SELECT ( SELECT COUNT(name) FROM disabled WHERE name IN ('student180', 'student117') ), ( SELECT COUNT(name) FROM unemployed WHERE name IN ('student180', 'student117') ), ( SELECT COUNT(name) FROM male WHERE name IN ('student180', 'student117') ), ( SELECT COUNT(name) FROM no_payment_due WHERE name IN ('student180', 'student117'))" Which average Crowd has a Home team of south melbourne?,"SELECT AVG(crowd) FROM table_name_72 WHERE home_team = ""south melbourne""" please list out the campus | which column do you want to list? | first column,select Id from Campuses "What institution does ""Katsuhiro Ueno"" belong to?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Katsuhiro"" AND t1.lname = ""Ueno""" List the position of players with average number of points scored by players of that position bigger than 20.,SELECT POSITION FROM player GROUP BY name HAVING avg(Points) >= 20 What college has a student who successfully made the team in the role of a goalie?,SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie' "please show me the DOB OF EMPLOYEE WHO HAS THIS AS HIS FIRST NAME | Do you mean the first name ""James""? | yeah","SELECT EMP_DOB FROM EMPLOYEE WHERE EMP_FNAME = ""James""" How many employees are there all together?,SELECT count(*) FROM employee How many products were on the LL Road Frame Sale?,SELECT COUNT(DISTINCT ProductID) FROM SpecialOffer AS T1 INNER JOIN SpecialOfferProduct AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID WHERE T1.Description = 'LL Road Frame Sale' How many professors are in the accounting dept?,"SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = ""Accounting""" How many episodes have more than 1000 votes?,SELECT COUNT(episode_id) FROM Episode WHERE votes > 1000; Name the venue that has conv of 5 players on 20 points,"SELECT venue FROM table_name_12 WHERE conv = ""5 players on 20 points""" Show the name and country for all people whose age is smaller than the average.,"SELECT name , country FROM people WHERE age < (SELECT avg(age) FROM people)" What is the first name of the customers whose address is in the postal code that begins with 76?,"SELECT T1.first_name FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE SUBSTR(T2.postal_code, 1, 2) = '76'" Which Third has a Champion of metalurh novomoskovsk?,"SELECT third FROM table_name_20 WHERE champion = ""metalurh novomoskovsk""" "Find all members of ""Bootup Baltimore"" whose major is ""600"". Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.major = ""600""" Who is the television commentator for the year 2006?,SELECT television_commentator FROM table_1998037_9 WHERE year_s_ = 2006 Which skip's second is Martin Hejhal?,"SELECT skip FROM table_name_51 WHERE second = ""martin hejhal""" Can you tell me the names of the schools with the top 3 largest size?,SELECT cName FROM college ORDER BY enr DESC LIMIT 3 What was the attendance for record 2-0?,"SELECT attendance FROM table_name_52 WHERE record = ""2-0""" Show the names of companies and the number of employees they have,"SELECT T3.Name , COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name" Find the name of the customers who have at most two orders.,SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2 Which department has the lowest average salary of professors?,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg ( salary ) LIMIT 1 "Who from The simpson 20s: Season 20 cast and crew was born in October 29, 1957 in Chicago, Illinois?",SELECT name FROM Person WHERE birthdate = '1957-10-29' AND birth_place = 'Chicago' AND birth_region = 'Illinois'; How many donors have endowment for the school named Glenn?,"SELECT count ( DISTINCT T1.donator_name ) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = ""Glenn""" "Name the gamecenter with attendance of 78,551","SELECT gamecenter FROM table_name_48 WHERE attendance = ""78,551""" Show the product type codes that have at least two products.,SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*) >= 2 Thank you. Which states have at least two parks in them?,SELECT state FROM park GROUP BY state HAVING count ( * ) > 2 What date did the episode that was directed by Christian i. nyby ii originally air on?,"SELECT original_air_date FROM table_29583441_1 WHERE directed_by = ""Christian I. Nyby II""" What is the full name of the alderman of ward no.21?,"SELECT alderman_first_name, alderman_last_name, alderman_name_suffix FROM Ward WHERE ward_no = 21" What was the attendance of week 8?,SELECT attendance FROM table_name_24 WHERE week = 8 "What was the Record at the game that had an attendance of 21,191?","SELECT record FROM table_name_22 WHERE attendance = ""21,191""" Which religion has the majority of the people in Japan?,SELECT T2.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' ORDER BY T2.Percentage DESC LIMIT 1 Which tournaments was Ryan Palmer in as a runner-up?,"SELECT tournament FROM table_name_40 WHERE runner_s__up = ""ryan palmer""" where would you find a public university which was founded in 1915?,"SELECT location_s_ FROM table_2076463_2 WHERE control = ""Public university"" AND founded = 1915" what is the pts/game for Charlotte barras and the games is 5?,"SELECT pts_game FROM table_name_78 WHERE games = 5 AND name = ""charlotte barras""" Find the number of courses provided in each semester and year.,"SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR" What are all the instruments used?,SELECT DISTINCT instrument FROM Instruments Which Place has Phil Mickelson as the Player?,"SELECT place FROM table_name_67 WHERE player = ""phil mickelson""" Which of the film has the highest rent fee?,SELECT title FROM film ORDER BY rental_rate DESC LIMIT 1 The final score was 24-34 on what date?,"SELECT date FROM table_name_18 WHERE final_score = ""24-34""" "How many students, on average, does each college have enrolled?",SELECT avg(enr) FROM College Find the names of users who have more than one tweet.,SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1 who had the fastest lap for round 1?,SELECT fastest_lap FROM table_29686983_1 WHERE round = 1 What team played South Melbourne at their home game?,"SELECT away_team FROM table_name_22 WHERE home_team = ""south melbourne""" List all the coatches of the Oklahoma City Thunder,SELECT DISTINCT coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE name = 'Oklahoma City Thunder' What are the IDs and resolutions of all the songs with resolutions higher than those?,"SELECT f_id,resolution FROM song WHERE resolution > ( SELECT max ( resolution ) FROM song WHERE rating < 8 ) " Who was the replacement for the Brussels team with a date of vacancy of 22 December 2007?,"SELECT replaced_by FROM table_name_46 WHERE team = ""brussels"" AND date_of_vacancy = ""22 december 2007""" How many parties received 29.9% of the vote in Manhattan?,"SELECT COUNT(party) FROM table_1108394_47 WHERE manhattan = ""29.9_percentage""" Count the total number of settlements made.,SELECT count(*) FROM Settlements What is the lowest sentiment polarity score of the Basketball Stars app for people who dislikes the app pretty much and how many downloads does it have?,"SELECT MIN(T2.Sentiment_Polarity), T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Basketball Stars'" "Among the products under the type ""promo brushed steel"", how many of them are manufactured by Manufacturer#5?",SELECT COUNT(p_partkey) FROM part WHERE p_type = 'PROMO BRUSHED STEEL' AND p_mfgr = 'Manufacturer#5' Show all ministers who do not belong to Progress Party.,SELECT minister FROM party WHERE party_name != 'Progress Party' What is the name and job title of the staff who was assigned the latest?,"SELECT T1.staff_name, T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1" What's the oil rig of the song with a draw number 9?,SELECT MIN(oil_rig) FROM table_20183474_1 WHERE draw = 9 What is the condition of the platelet counts in hemophilia?,"SELECT platelet_count FROM table_1557752_1 WHERE condition = ""Hemophilia""" What is the overall sum of the game with a pick less than 8 from the college of western michigan?,"SELECT SUM(overall) FROM table_name_23 WHERE pick < 8 AND college = ""western michigan""" How many incumbents come from alvin bush's district?,"SELECT COUNT(candidates) FROM table_1341930_38 WHERE incumbent = ""Alvin Bush""" I want to know the customer names and how many credit cards they have?,"SELECT T2.customer_first_name, T2.customer_last_name, count ( * ) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_type_code = ""Credit"" group by T1.customer_id" What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?,SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland' What country placed t3 with a score of 70-65=135?,"SELECT country FROM table_name_52 WHERE place = ""t3"" AND score = 70 - 65 = 135" How many words have repetitions greater than 2000 and lower than 5000?,SELECT COUNT(wid) FROM langs_words WHERE occurrences BETWEEN '2000' AND '5000' "How many students have personal names that contain the word ""son""?","SELECT COUNT(*) FROM Students WHERE personal_name LIKE ""%son%""" Who corned the most points for the game that ended with a score of l 85–94 (ot)?,"SELECT high_points FROM table_27734577_2 WHERE score = ""L 85–94 (OT)""" "What is the average attendance for the game before week 4 that was on october 16, 1955?","SELECT AVG(attendance) FROM table_name_97 WHERE date = ""october 16, 1955"" AND week < 4" Which Asian country gave its agricultural sector the largest share of its gross domestic product?,SELECT T2.Country FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T2.Country = T3.Code INNER JOIN economy AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Asia' ORDER BY T4.Agriculture DESC LIMIT 1 Name the name of 36.0n,"SELECT name FROM table_16799784_2 WHERE latitude = ""36.0N""" How many albums in this table? | did you mean the number of all the albums shown in the table? | Yes.,SELECT count ( * ) FROM ALBUM "What is the id of the criteria ""Citations Rank""?",SELECT id FROM ranking_criteria WHERE criteria_name = 'Citations Rank' Find the name of the teacher who teaches the largest number of students.,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count(*) DESC LIMIT 1" How many active users were there in the event id 2?,SELECT COUNT(is_active) FROM app_events WHERE event_id = 2 AND is_active = 1 Which Location has a Game greater than 27 and a Record of 18-10?,"SELECT location FROM table_name_58 WHERE game > 27 AND record = ""18-10""" Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?,"SELECT grand_prix FROM table_name_58 WHERE winning_driver = ""david coulthard"" AND pole_position = ""michael schumacher"" AND round < 9" What player received the injury? | You mean all the players having injuries? | What player received the Hamstring muscle strain in his left thigh?,"SELECT player from injury_accident where injury = ""Hamstring muscle strain in his left thigh""" "In Barcelona, how many Olympic games were held?",SELECT COUNT(T1.games_id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'Barcelona' What is the membership card held by both members living in Hartford and ones living in Waterbury address?,SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury' Who is the incumbent of Florida 9?,"SELECT incumbent FROM table_1341423_9 WHERE district = ""Florida 9""" Name the total number of written by for 26 july 2010,"SELECT COUNT(written_by) FROM table_27218002_1 WHERE originalairdate = ""26 July 2010""" List all members and member type of the Islamic Development Bank.,"SELECT T2.Country, T2.Type FROM organization AS T1 INNER JOIN isMember AS T2 ON T1.Abbreviation = T2.Organization INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T1.Name = 'Islamic Development Bank'" What is the first name of the student whose last name starts with the letter S and is taking ACCT-211?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' Give the number of solutions that the repository which has 3060 Stars contains.,SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 3060 How many opponents led to an exactly 7-0 record?,"SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = ""7-0""" Where is David Frost from?,"SELECT place FROM table_name_38 WHERE player = ""david frost""" How many wins does that driver have?,"SELECT count ( * ) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid where T1.surname = ""Nakajima"" and T2.rank = 1" What is the Gaelic name for an area less than 127 in Kintyre?,"SELECT gaelic_name FROM table_name_63 WHERE area___ha__ < 127 AND location = ""kintyre""" Which city in West North Central has the highest number of customers over the age of 60?,SELECT T2.city FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'West North Central' AND T1.age > 60 GROUP BY T2.city ORDER BY COUNT(T2.city) DESC LIMIT 1 Which Location has a Floors of 03.0 n/a?,"SELECT location FROM table_name_18 WHERE floors = ""03.0 n/a""" What is the customer id that spends the most,SELECT customer_id FROM Payments GROUP BY customer_id ORDER BY sum ( amount_paid ) DESC LIMIT 1 what is the season when the lead is john shuster and third is shawn rojeski?,"SELECT season FROM table_name_54 WHERE lead = ""john shuster"" AND third = ""shawn rojeski""" "Hi, show me the instructors",SELECT name FROM instructor What kind of IATA has an Airport of hamburg airport?,"SELECT iata FROM table_name_5 WHERE airport = ""hamburg airport""" Please list just Tillman Ernsers contact channel,"SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id where customer_name = ""Tillman Ernser""" What code has the most number of documents? | The type code that has the most number of documents is BK | How many documents are in BK?,"SELECT count ( * ) FROM Documents where Document_Type_Code = ""BK""" Show all product names without an order.,SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id How many people attended the game of a.f.c. totton?,"SELECT attendance FROM table_name_47 WHERE home_team = ""a.f.c. totton""" What is the highest rank of a rider whose time was 1:19.02.8?,"SELECT MAX(place) FROM table_name_70 WHERE time = ""1:19.02.8""" How many different scores are there for the Verizon Classic?,"SELECT COUNT(score) FROM table_11603006_1 WHERE tournament = ""Verizon Classic""" What is the rank of the 150.163 qual?,"SELECT rank FROM table_name_34 WHERE qual = ""150.163""" What was awarded before 2013 to the Saber in the category of Best Action?,"SELECT award FROM table_name_93 WHERE year < 2013 AND title_of_work = ""saber"" AND category = ""best action""" What is the protein name when aa length is 202 aa?,"SELECT protein_name FROM table_26708105_5 WHERE aa_length = ""202 aa""" What nationality is the swimmer that is in the lane that is less than 2?,SELECT nationality FROM table_name_3 WHERE lane < 2 How many distinct movies in English stars a male actor who acts the best?,SELECT COUNT(DISTINCT T1.actorid) FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T3.isEnglish = 'T' AND T1.a_gender = 'M' AND T1.a_quality = 5 What are the codes of countries with more than 50 players?,SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50 What is the position of the player from Tampa?,"SELECT position FROM table_name_14 WHERE school_club_team = ""tampa""" "When against is more than 1244 with less than 8 losses, what is the average of wins?",SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8 Calculate the percentage of times that the same word appears in a pair.,SELECT CAST(COUNT(CASE WHEN w1st = w2nd THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(w1st) FROM biwords "Find the id of the customers who have order status both ""On Road"" and ""Shipped"".","SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" List the number of invoices and the invoice total from California.,"SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = ""CA"";" Find the name of the room with the maximum occupancy.,SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1 Who is the crime against criminal sexual abuse?,SELECT crime_against FROM FBI_Code WHERE title = 'Criminal Sexual Abuse' What are the names of the products that were discountinued?,SELECT ProductName FROM Products WHERE Discontinued = 1 Which group does age 24 belong to?,SELECT `group` FROM gender_age WHERE age = '24' "If the establishment is 49319, what is the sales, receipts or shipments maximum amount?","SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319" "What year was The Horn Blows at Midnight, directed by Raoul Walsh?","SELECT AVG(year) FROM table_name_96 WHERE director = ""raoul walsh"" AND title = ""the horn blows at midnight""" "What is the highest Game, when Record is ""21-30-11""?","SELECT MAX(game) FROM table_name_92 WHERE record = ""21-30-11""" "For all the referees, who became a hall of famer in the 1970s? What's his hofID?","SELECT name, hofID FROM HOF WHERE category = 'Builder' AND year BETWEEN 1970 AND 1979" Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran?,"SELECT main_contestant FROM table_name_33 WHERE co_contestant__yaar_vs_pyaar_ = ""shalini chandran""" what is the range of Mount Kenya (Batian) in country kenya,SELECT Range FROM mountain where country = 'Kenya' and name = 'Mount Kenya ( Batian ) ' How many different clerks have served the customer with the address uFTe2u518et8Q8UC?,SELECT COUNT(T1.o_clerk) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_address = 'uFTe2u518et8Q8UC' "What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia?","SELECT ring_name FROM table_name_49 WHERE stable = ""kasugano"" AND birthplace = ""z mtskheta , georgia""" what is the name of the person who weighs the least?,SELECT Name FROM people order by weight asc limit 1 What are the cities/towns located in the municipality of Moss?,"SELECT city_town FROM table_157826_1 WHERE municipality = ""Moss""" What was hayley ericksen's score?,"SELECT score FROM table_name_97 WHERE partner = ""hayley ericksen""" How many churches opened before 1850 are there?,SELECT count(*) FROM Church WHERE Open_Date < 1850 "Find the IDs of customers whose name contains ""Diana"".","SELECT customer_id FROM customers WHERE customer_name LIKE ""%Diana%""" What are the names of the coaches that started in 2010?,SELECT coach_name from coach as t1 join player_coach as t2 on t1.coach_id = t2.coach_id where starting_year = 2010 What is the 54 holes for The Open Championship (4)?,"SELECT 54 AS _holes FROM table_name_7 WHERE championship = ""the open championship (4)""" Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.,"SELECT Hardware_Model_name , Company_name FROM phone WHERE Accreditation_type LIKE 'Full';" What is the agg when team 1 is Milan?,"SELECT agg FROM table_name_70 WHERE team_1 = ""milan""" "Find the winning rate of award in 2010. Describe the winner name, award name, episode title and role of the winner in that episode.","SELECT T3.rate, T4.person, T4.award, T5.title, T4.role FROM ( SELECT CAST(SUM(CASE WHEN T1.result = 'Winner' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.result IN ('Winner', 'Nominee') THEN 1 ELSE 0 END) AS rate , T1.person, T1.award, T2.title, T1.role FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2010' ) AS T3 INNER JOIN Award AS T4 INNER JOIN Episode AS T5 ON T4.episode_id = T5.episode_id WHERE T4.year = 2010 AND T4.result = 'Winner';" Tell me the stages for 1981,SELECT stages FROM table_name_42 WHERE year = 1981 How many goals occurred for Stein Huysegems when the caps value is more than 8?,"SELECT goals FROM table_name_13 WHERE caps > 8 AND player = ""stein huysegems""" What are the names of all the playlists?,SELECT name FROM playlists; Who were the winner and nominees in 2001?,SELECT winner_nominee_s_ FROM table_name_27 WHERE year = 2001 What date did the episode that had 1.023 million u.s. viewers originally air?,"SELECT original_air_date FROM table_24223834_3 WHERE us_viewers__in_millions_ = ""1.023""" Find the branch name of the bank that has the most number of customers.,SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 Find the most important and most difficult courses.,SELECT name FROM course WHERE credit = ( SELECT MAX(credit) FROM course ) AND diff = ( SELECT MAX(diff) FROM course ) What is the salaray and name of the employee with the most certificates to fly planes more than 5000?,SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1 Where was the 1984 Olympics hosted?,SELECT tournament FROM table_name_29 WHERE year = 1984 "For games on December 20, how many points did the scoring leaders get?","SELECT high_points FROM table_10812293_4 WHERE date = ""December 20""" What was the result for song of the year award in 1994?,"SELECT result FROM table_name_69 WHERE year = 1994 AND award = ""song of the year""" Please give the contact name for Tokyo Traders.,SELECT ContactName FROM Suppliers WHERE CompanyName = 'Tokyo Traders' Please list the categories of the Yelp_Business that closes at 12PM on Sundays.,SELECT T4.category_name FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business_Categories AS T3 ON T1.business_id = T3.business_id INNER JOIN Categories AS T4 ON T4.category_id = T4.category_id WHERE T1.closing_time = '12PM' AND T2.day_of_week = 'Sunday' GROUP BY T4.category_name "Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11?","SELECT MIN(gain) FROM table_name_84 WHERE loss > 2 AND avg_g > -6 AND name = ""sheehan, tyler"" AND long > 11" What was the away team that played at Corio Oval?,"SELECT away_team FROM table_name_9 WHERE venue = ""corio oval""" What was the date of the game when the record of the series was 0–1?,"SELECT date FROM table_name_10 WHERE series = ""0–1""" How many students got accepted after the tryout?,SELECT COUNT(*) FROM tryout WHERE decision = 'yes' How many tariff codes have a bts retail price of 2.553p/min?,"SELECT COUNT(tariff_code) FROM table_10408617_5 WHERE bts_retail_price__regulated_ = ""2.553p/min""" What is total number of show times per dat for each cinema?,"SELECT T2.name , sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id" Which Date has a Remainder of 20%?,"SELECT date FROM table_name_21 WHERE remainder = ""20%""" Which Competition has a Year larger than 2000?,SELECT competition FROM table_name_45 WHERE year > 2000 How many drivers did not participate in the races held in 2009?,SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 ) Count the number of companies.,SELECT count(*) FROM Companies Which sport has most number of students on scholarship?,SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1 Show all the distinct districts for elections.,SELECT DISTINCT District FROM election "Show the minimum, average, and maximum age of all students.","SELECT MIN(age), AVG(age), MAX(age) FROM Student" When did essendon play away?,"SELECT date FROM table_name_53 WHERE away_team = ""essendon""" What are their names?,SELECT name FROM airports WHERE country = 'United States' GROUP BY city HAVING count ( * ) > 4 Please list the indicator names belonging to Education: Inputs topic in 2000.,SELECT DISTINCT T2.IndicatorName FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T1.Year = 'YR2000' AND T2.Topic = 'Education: Inputs' "What are the document dates of all documents with the document type code ""BK""?","SELECT T2.Document_Date FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.Document_Type_Code = ""BK""" What percentage of restaurants in Monterey County have Mexican food?,"SELECT CAST(SUM(IIF(T2.food_type = 'mexican', 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.county = 'monterey county'" Name the minister for end date of 31 july 2004,"SELECT minister FROM table_name_12 WHERE end_date = ""31 july 2004""" Find all the distinct district names ordered by city area in descending.,SELECT DISTINCT District_name FROM district ORDER BY city_area DESC Name the chassis for tyre of g and carlos reutemann,"SELECT chassis FROM table_name_24 WHERE tyre = ""g"" AND driver = ""carlos reutemann""" What venue featured the home side of st kilda?,"SELECT venue FROM table_name_67 WHERE home_team = ""st kilda""" Who were the candidates in the district won by the incumbent Del Latta?,"SELECT candidates FROM table_1341690_35 WHERE incumbent = ""Del Latta""" What is the name and marketing segment of the customer with the total order price of 199180.63?,"SELECT T2.c_name, T2.c_mktsegment FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_totalprice = 199180.63" Which wood has stabilizing earth?,"SELECT wood FROM table_name_50 WHERE earth = ""stabilizing""" What is the medium through which most complaints are registered in Florida?,SELECT T3.`Submitted via` FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN events AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.state = 'FL' GROUP BY T1.`Complaint ID` ORDER BY COUNT(T1.`Complaint ID`) DESC LIMIT 1 Name the city with july of 88 °f / 31.1 °c,"SELECT city FROM table_name_74 WHERE jul = ""88 °f / 31.1 °c""" "Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate?","SELECT SUM(killeen_rate) FROM table_name_8 WHERE reported_offenses > 216 AND us_rate < 3274 AND texas_rate < 2688.9 AND crime = ""violent crime""" What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?,SELECT MIN(wins) FROM table_name_78 WHERE position = 7 AND scored > 14 What is the long title of the work with the highest number of scenes in act 1?,SELECT T2.LongTitle FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T1.Act = 1 ORDER BY T1.Scene DESC LIMIT 1 "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id" "What is the competition before the 1930 season, and a winning draw?","SELECT competition_round_[d_] FROM table_name_75 WHERE season < 1930 AND winner = ""draw""" Name the laps for suzuki and time/retired of +1:02.804,"SELECT laps FROM table_name_92 WHERE manufacturer = ""suzuki"" AND time_retired = ""+1:02.804""" What is the description where the date is 1911?,SELECT description FROM table_name_58 WHERE date = 1911 "Which Year has a Result smaller than 20.26, and a Location of eugene?","SELECT SUM(year) FROM table_name_80 WHERE result < 20.26 AND location = ""eugene""" "That's a big list, thank you. Then could you please exclude Central Coast area from them?","SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast""" What is the series number when al horford (10) had the high rebounds?,"SELECT series FROM table_27734577_13 WHERE high_rebounds = ""Al Horford (10)""" What order did Lambert perform in the top 11?,"SELECT order__number FROM table_21501511_1 WHERE week__number = ""Top 11""" What is the Cuchumela Municipality minimum?,SELECT MIN(cuchumuela_municipality) FROM table_2509112_3 What is the highest number of divisions mentioned?,SELECT MAX(division) FROM table_21602734_1 what is the swimsuit score when the interview score is 8.626 (5)?,"SELECT swimsuit FROM table_name_19 WHERE interview = ""8.626 (5)""" "with api level of 18, what's the code name?",SELECT code_name FROM table_name_71 WHERE api_level = 18 Show first name and id for all customers with at least 2 accounts.,"SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2" What are the details of the project with no outcomes?,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes ) What is all the information regarding employees who are managers?,SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id "How many laps did Emerson Fittipaldi do on a grid larger than 14, and when was the Time/Retired of accident?","SELECT COUNT(laps) FROM table_name_98 WHERE grid > 14 AND time_retired = ""accident"" AND driver = ""emerson fittipaldi""" "How many votes were tallied with a % of national vote of 13.11, and over 39 candidates nominated?",SELECT COUNT(votes) FROM table_name_72 WHERE _percentage_of_national_vote = 13.11 AND candidates_nominated > 39 On which date was the Winning score –5 (70-65-69-75=279)?,SELECT date FROM table_name_92 WHERE winning_score = –5(70 - 65 - 69 - 75 = 279) What was Olga Govortsova's outcome when she played on a grass surface?,"SELECT outcome FROM table_name_59 WHERE surface = ""grass""" What is the short description of the project that gives donation to school “301c9bf0a45d159d162b65a93fddd74e”?,SELECT T2.short_description FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.schoolid = '301c9bf0a45d159d162b65a93fddd74e' and Camylle? | Do you mean the zip postcode in the area where the person with first name Camylle lived? | Yes,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Camylle""" "What is the language, when ""house"" is ""balay"", when ""three"" is ""tatlo"", and when ""four"" is ""apat""?","SELECT english FROM table_name_52 WHERE house = ""balay"" AND three = ""tatlo"" AND four = ""apat""" How many opponents were there when the record was 6-0?,"SELECT date FROM table_21197135_1 WHERE record = ""6-0""" "How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?","SELECT COUNT(total) FROM table_name_37 WHERE player = ""ahmad fouzee masuri"" AND fa_cup > 0" List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.,"SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS"";" "Among the releases with the tag ""1980s"", which one of them is the most downloaded? Please give its title.",SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' ORDER BY T1.totalSnatched DESC LIMIT 1 Find the delegates who are from counties with population below 100000.,SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 Which Barrel twist has a Stock of canadian 3rd generation and a Hand guards of short ribbed?,"SELECT barrel_twist FROM table_name_33 WHERE stock = ""canadian 3rd generation"" AND hand_guards = ""short ribbed""" "Count the number of postal points under New York-Newark-Jersey City, NY-NJ-PA.","SELECT COUNT(T2.zip_code) FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'New York-Newark-Jersey City, NY-NJ-PA'" What is the rank of the airport with the BKK/VTBS code?,"SELECT rank FROM table_name_60 WHERE code__iata_icao_ = ""bkk/vtbs""" what is the average of rates?,SELECT avg ( Rate ) FROM Reservations What was the loss of the game when the record was 14–8?,"SELECT loss FROM table_name_90 WHERE record = ""14–8""" Which Kickoff (ET) has a Result of w 34–23?,"SELECT kickoff__et_ FROM table_name_67 WHERE result = ""w 34–23""" "Which Venue has a Competition of european championships, and a Position of 7th?","SELECT venue FROM table_name_22 WHERE competition = ""european championships"" AND position = ""7th""" Which year experienced the most rain?,"SELECT SUBSTR(CAST(date AS TEXT), -4) FROM weather GROUP BY SUBSTR(CAST(date AS TEXT), -4) ORDER BY SUM(CASE WHEN events LIKE '%Rain%' OR events LIKE '%rain%' THEN 1 ELSE 0 END) DESC LIMIT 1" "What is 2012, when 2009 is ""A""?","SELECT 2012 FROM table_name_44 WHERE 2009 = ""a""" What is the sum of laps for Derek Warwick?,"SELECT SUM(laps) FROM table_name_20 WHERE driver = ""derek warwick""" What is the total time of the vehicle having a navigator of Vandenberg?,"SELECT total_time FROM table_name_79 WHERE navigator = ""vandenberg""" Name the class aaaa for menard,"SELECT class_aAAA FROM table_14630796_1 WHERE class_a = ""Menard""" What is the Player that has a To standard of –7?,"SELECT player FROM table_name_47 WHERE to_par = ""–7""" Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.,"SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance" Name all products and total quantity for each item for shopping cart ID 14951.,"SELECT T1.Name, T2.Quantity FROM Product AS T1 INNER JOIN ShoppingCartItem AS T2 ON T1.ProductID = T2.ProductID WHERE T2.ShoppingCartID = 14951" What car had the fewest laps with a qual of 138.750?,"SELECT MIN(laps) FROM table_name_16 WHERE qual = ""138.750""" Can i have the city code of all members of the tennis club,"SELECT t3.city_code FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" what's the width with frame size being 4.5k,"SELECT width FROM table_1251878_1 WHERE frame_size = ""4.5K""" Which campus has the most degrees conferred in all times?,SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1 Who is the winning driver of the Oschersleben circuit with Timo Scheider as the pole position?,"SELECT winning_driver FROM table_name_36 WHERE pole_position = ""timo scheider"" AND circuit = ""oschersleben""" Where is the college where Keith Hartwig plays?,"SELECT college FROM table_10361625_1 WHERE player_name = ""Keith Hartwig""" Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳?,"SELECT genre FROM table_name_92 WHERE english_title__chinese_title_ = ""the romance of the white hair maiden 白髮魔女傳""" "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?","SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = ""Clara"") AND first_name != ""Clara""" What are the name and phone of the customer with the most ordered product quantity?,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1" What are the id of students who registered course 301?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 "list the card number of all members whose hometown address includes word ""Kentucky"".","SELECT card_number FROM member WHERE Hometown LIKE ""%Kentucky%""" Can you show the artist name of f id 2?,SELECT artist_name FROM files WHERE f_id = '2' What about the lowest student capacity?,SELECT dorm_name FROM dorm order by student_capacity asc limit 1 What are the name of the players who received a card in descending order of the hours of training?,SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC What is the name of the customer who has made the minimum amount of payment in one claim?,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers) "What are the addresses of the course authors who teach either ""operating system"" or ""data structure"" course.","SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""operating system"" OR T2.course_name = ""data structure""" What are the member ids of the people who have that membership level?,select member_id from member where level in ( SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count ( * ) ASC LIMIT 1 ) Provide the territory IDs under employee ID of 7.,SELECT TerritoryID FROM EmployeeTerritories WHERE EmployeeID = 7 How many teachers in this table?,SELECT count ( * ) from teachers how many times was it the district illinois 18?,"SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = ""Illinois 18""" Which country is Scott McCarron from?,"SELECT country FROM table_name_90 WHERE player = ""scott mccarron""" what is the speed of Dauling Dragon,"SELECT speed from roller_coaster where name = ""Dauling Dragon""" What were the number of deputies for the 1964 election year?,SELECT number_of_deputies FROM table_name_44 WHERE election_date = 1964 Which position has the highest amount of poor performing employees?,SELECT T2.positiontitle FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) DESC LIMIT 1 What was the South Asian population in Nova Scotia in 2001?,"SELECT south_asians_2001 FROM table_1717824_1 WHERE province = ""Nova Scotia""" Could you filter this same list to list only the Headquarter countries that have more than one company in them?,SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT ( * ) > = 2 and can you tell me the names of those 5 products?,SELECT product_name FROM Products WHERE Product_ID NOT IN ( SELECT Product_ID FROM Products_in_Events ) What area is named Mackenzie college?,"SELECT area FROM table_name_50 WHERE name = ""mackenzie college""" What are the codes of all the courses that are located in room KLR209?,SELECT class_code FROM CLASS WHERE class_room = 'KLR209' Where is longview high school,"SELECT hometown FROM table_11677691_8 WHERE school = ""Longview High school""" Find the id and local authority of the station with has the highest average high temperature.,"SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1" What are the names and revenues of the companies with the highest revenues in each headquarter city?,"SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter" what is the year made when the manufacturer is 2-6-2 — oooo — mogul?,"SELECT year_made FROM table_name_20 WHERE manufacturer = ""2-6-2 — oooo — mogul""" Find the total revenue of companies of each founder.,"SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder" "How many years in office were served by the person who assumed the office on October 4, 1886?","SELECT years_in_office FROM table_name_23 WHERE assumed_office = ""october 4, 1886""" What event (Extra) in 2002 did the competitor compete in and place 8th?,"SELECT extra FROM table_name_80 WHERE year = 2002 AND result = ""8th""" "Tell me the surface for november 28, 2010","SELECT surface FROM table_name_34 WHERE date = ""november 28, 2010""" When is the Mexican grand prix?,"SELECT date FROM table_name_24 WHERE race = ""mexican grand prix""" In how many cities are there airports in the country of Greenland?,SELECT count(DISTINCT city) FROM airports WHERE country = 'Greenland' What's the profit for the Freewheel?,SELECT T1.LastReceiptCost - T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Freewheel' What's the total number of crew chiefs of the Fas Lane Racing team?,"SELECT COUNT(crew_chief) FROM table_1266602_1 WHERE team = ""FAS Lane Racing""" what is the league id of Boston Red Stocking?,select league_id from team where name = 'Boston Red Stockings' find the name of driver who is driving the school bus with the longest working history.,SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1 which course has most number of registered students ?,SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count ( * ) DESC LIMIT 1 How many companies are there?,SELECT count(*) FROM Companies Who was Dainty June when Tammy Blanchard was Louise?,"SELECT dainty_june FROM table_name_5 WHERE louise = ""tammy blanchard""" How many with a value R died after the year 2000?,SELECT count ( * ) FROM player WHERE bats = 'R' AND death_year > 2000 Can you tell me the amount and code of the job with the most employees?,"SELECT emp_jobcode , count ( * ) FROM employee GROUP BY emp_jobcode ORDER BY count ( * ) DESC LIMIT 1" "Find the start and end dates of behavior incidents of students with last name ""Rohan""?","SELECT T1.date_incident_start , T1.date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Rohan""" "Under the conference name of MICRO, calculate how many more paper is needed to published in 1971 to 1980 in average by yearly to get equivalent to the number of paper from 1991 to 2000. Write down the title and author name of the paper that were actually published during 1971 to 1980 with the conference name with MICRO.","SELECT T2.title, T3.name, T1.FullName FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.id = T2.ConferenceId INNER JOIN PaperAuthor AS T3 ON T1.id = T3.PaperId WHERE T1.ShortName = 'MICRO' AND T2.Year BETWEEN '1971' AND '1980'" "Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23?","SELECT rider FROM table_name_46 WHERE laps = 14 AND grid > 23 AND bike = ""honda cbr1000rr"" AND time = ""+1'04.877""" What is the name of the good with the highest average rank?,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY avg ( T2.rank ) DESC LIMIT 1 "What is the average To Par, when Player is ""Julius Boros""?","SELECT AVG(to_par) FROM table_name_22 WHERE player = ""julius boros""" What was the margin of victory at the LPGA Championship?,"SELECT margin_of_victory FROM table_name_65 WHERE tournament = ""lpga championship""" List down 5 non English adventure movies from UK?,SELECT T1.movieid FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'UK' AND T1.genre = 'Adventure' AND T2.isEnglish = 'F' LIMIT 5 How many wins for Port Fairy and against more than 2333?,"SELECT MAX(wins) FROM table_name_81 WHERE port_fairy_fl = ""port fairy"" AND against > 2333" What are the locations of all the gas stations ordered by opening year?,SELECT LOCATION FROM gas_station ORDER BY open_year Which advisors have more than two students?,SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2 What format is catalogue 148615 in?,"SELECT format FROM table_name_78 WHERE catalogue = ""148615""" What was the record at the game with a score of 7–5?,"SELECT record FROM table_name_42 WHERE score = ""7–5""" Calculate the ratio of unemployed students who have never been absent from school.,"SELECT CAST(SUM(IIF(T2.month = 0, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM unemployed AS T1 INNER JOIN longest_absense_from_school AS T2 ON T2.name = T1.name" "What is the largest ethnic group in 2002 for the cyrillic name, other name of бешка?","SELECT largest_ethnic_group__2002_ FROM table_2562572_54 WHERE cyrillic_name_other_names = ""Бешка""" What was the series count at for game 5? ,SELECT series FROM table_11963601_11 WHERE game = 5 Name the representating for ingenjör andrées luftfärd,"SELECT representing FROM table_name_82 WHERE original_title = ""ingenjör andrées luftfärd""" Who was the opponent when Devin Gardner was the player?,"SELECT opponent FROM table_26108103_2 WHERE player = ""Devin Gardner""" "For the airline ids with the top 10 most routes operated, what are their names?","SELECT T1.name , T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10" What country have the series code of SP.DYN.CBRT.IN?,SELECT T1.ShortName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'SP.DYN.CBRT.IN' What week was the member who arrived on the main island in week 6 sent to the third island?,"SELECT week_sent_to_third_island FROM table_11764007_2 WHERE week_arrived_on_main_island = ""6""" "What is Nationality, and when College is Illinois State?","SELECT nationality FROM table_name_2 WHERE college = ""illinois state""" How many trips which subscription types were Subscriber and ended in San Jose city?,SELECT COUNT(T1.subscription_type) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.end_station_name WHERE T1.subscription_type = 'Subscriber' AND T2.city = 'San Jose' Which country and state does staff with first name as Janessa and last name as Sawayn lived?,"SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Now show the names of building whose status is on-hold,"SELECT name FROM buildings WHERE Status = ""on-hold""" List all category name of Exotic Liquids 's product with units in stock over 100.,SELECT T3.CategoryName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T2.UnitsInStock > 100 AND T1.CompanyName = 'Exotic Liquids' "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?","SELECT date , mean_temperature_f , mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3" What is team 2 where the result is ICL world by 8 wickets?,"SELECT team_2 FROM table_17103566_1 WHERE result = ""ICL World by 8 wickets""" List all the description of the films starring Lucille Tracy?,SELECT T1.film_id FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id WHERE T2.first_name = 'LUCILLE' AND T2.last_name = 'TRACY' Which Name has a Location of ljubljana?,"SELECT name FROM table_name_32 WHERE location = ""ljubljana""" "How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?","SELECT points_classification FROM table_name_55 WHERE young_rider_classification = ""lech piasecki"" AND general_classification = ""stephen roche"" AND winner = ""carrera jeans-vagabond""" List all information about college sorted by enrollment number in the ascending order.,SELECT * FROM College ORDER BY enr Which state includes the Harry A. Gampel Pavilion venue?,"SELECT state FROM table_name_10 WHERE venue = ""harry a. gampel pavilion""" "If grid is 2, what is the minimum fin. pos number?",SELECT MIN(fin_pos) FROM table_17330069_1 WHERE grid = 2 Who is team f when Aida Gagaring is team A?,"SELECT team_f FROM table_name_16 WHERE team_a = ""aida gagaring""" "How many games ended in a record of 30-28-4, with a March more than 1?","SELECT COUNT(game) FROM table_name_42 WHERE record = ""30-28-4"" AND march > 1" What is the id of the room with a base price of 250?,SELECT roomid FROM Rooms where baseprice = 250 What is the send date of document Id 2?,SELECT sent_date FROM documents WHERE document_id = 2 "What is the Status of the dinosaur, whose notes are, ""n coelurosauria""?","SELECT status FROM table_name_73 WHERE notes = ""n coelurosauria""" Date of october 5 had what score?,"SELECT score FROM table_name_15 WHERE date = ""october 5""" Which Game has a Record of 27–30?,"SELECT SUM(game) FROM table_name_99 WHERE record = ""27–30""" Calculate the percentage of shipping done through Speedy Express.,SELECT CAST(COUNT(CASE WHEN T2.CompanyName = 'Speedy Express' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.ShipVia) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID Compute the average score of the university located in Brazil.,SELECT AVG(T2.score) FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Brazil' What is the average age of the survey respondents in the United States?,SELECT CAST(SUM(T1.AnswerText) AS REAL) / COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN ( SELECT T1.UserID FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 3 AND T1.AnswerText = 'United States' ) AS T2 ON T1.UserID = T2.UserID INNER JOIN Question AS T3 ON T1.QuestionID = T3.questionid WHERE T3.questionid = 1 what is the name of the club where drawn is 1 and lost is 10?,"SELECT club FROM table_13564637_3 WHERE drawn = ""1"" AND lost = ""10""" Show the institution type with the largest number of institutions.,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 What are the countries with the most airlines whose active status is Y?,SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1 "Attendance of 60,671 had what average week?",SELECT AVG(week) FROM table_name_9 WHERE attendance = 60 OFFSET 671 What is the full name of the employees who report to the Sales Manager?,"SELECT FirstName, LastName FROM Employees WHERE ReportsTo = ( SELECT EmployeeID FROM Employees WHERE Title = 'Sales Manager' )" "May I know the album names and ids, and the number of tracks they have?","SELECT T1.title,T1.id,count ( T1.id ) FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id" What are the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?,SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' How many times do seedless red grapes appear in the recipes?,SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = 'seedless red grapes' What location is listed from 2005-2010?,"SELECT location FROM table_26476336_2 WHERE years = ""2005-2010""" "What are the names of students and their respective departments, ordered by number of credits from least to greatest?","SELECT name , dept_name FROM student ORDER BY tot_cred" What district is bill thomas from?,"SELECT district FROM table_1341453_7 WHERE incumbent = ""Bill Thomas""" What date has 37 points?,SELECT date FROM table_name_95 WHERE points = 37 Which Arabic-speaking country has the smallest population?,SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Arabic' AND T2.Percentage = 100 ORDER BY T1.Population ASC LIMIT 1 List the email addresses of the drama workshop groups located in Alaska state.,"SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = ""Alaska""" "Which Attendance has an Opponent of perth glory, and a Round of 9?","SELECT MIN(attendance) FROM table_name_91 WHERE opponent = ""perth glory"" AND round = ""9""" In which league did the player who weighs 40% less than the heaviest player and whose height is 80 inches play?,"SELECT T2.lgID FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID GROUP BY T2.lgID, T1.weight HAVING T1.weight = MAX(T1.weight) - MAX(T1.weight) * 0.4" What are the names of those two departments?,SELECT name FROM department GROUP BY creation ORDER BY count ( * ) DESC LIMIT 1 Which course is enrolled in by the most students? Give me the course name.,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 "What is the year of the tournament played at Melbourne, Australia?","SELECT AVG(year) FROM table_name_89 WHERE venue = ""melbourne, australia""" Find the name of the makers that produced some cars in the year of 1970?,SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'; Which year has a railway class of 250?,"SELECT year FROM table_name_19 WHERE class = ""250""" What are the names of body builders in descending order of total scores?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC Tell me the average year with a record of 33-33,"SELECT AVG(year) FROM table_name_23 WHERE record = ""33-33""" What is the group's name?,"SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" How long is the people’s average life expectancy in Central Africa?,"SELECT avg(LifeExpectancy) FROM country WHERE Region = ""Central Africa""" "Which Prothrombin time has a Platelet count of unaffected, and a Bleeding time of unaffected, and a Partial thromboplastin time of normal or mildly prolonged?","SELECT prothrombin_time FROM table_name_28 WHERE platelet_count = ""unaffected"" AND bleeding_time = ""unaffected"" AND partial_thromboplastin_time = ""normal or mildly prolonged""" What is the smallest crowd at punt road oval?,"SELECT MIN(crowd) FROM table_name_10 WHERE venue = ""punt road oval""" How many likes does Kyle have?,"SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""" Who were the candidates in the district whose incumbent is Bill Pascrell?,"SELECT candidates FROM table_1341453_32 WHERE incumbent = ""Bill Pascrell""" How many games in total did team Boston Red Stockings attend from 2000 to 2010?,SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010; Show the lieutenant governor and comptroller from the democratic party.,"SELECT Lieutenant_Governor, Comptroller FROM party WHERE Party = ""Democratic""" How many different transcriptions are there for the Thai name พฤษภาคม?,"SELECT COUNT(transcription) FROM table_20354_5 WHERE thai_name = ""พฤษภาคม""" Return all detention summaries.,SELECT detention_summary FROM Detention "Among all addresses provided by customers, identify the percentage that are not in use anymore.",SELECT CAST(SUM(CASE WHEN T2.address_status = 'Inactive' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer_address AS T1 INNER JOIN address_status AS T2 ON T2.status_id = T1.status_id What is the torque of the 6.3l v12 engine?,"SELECT torque FROM table_name_72 WHERE engine = ""6.3l v12""" How many deaths did eseta cause?,"SELECT deaths FROM table_name_34 WHERE name = ""eseta""" "Among the institutes in the state of Alabama whose percent rank for median SAT value within sector is 77, how many of them have over 500 graduates in total in 2011?",SELECT COUNT(DISTINCT T1.chronname) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.state = 'Alabama' AND T1.med_sat_percentile = '100' AND T2.year = 2011 AND T2.grad_cohort > 500 What was gary player's score?,"SELECT score FROM table_name_25 WHERE player = ""gary player""" "on what day was it? | Did you mean the day of week in weekly weather table | Yes, in what say was the maximum low temperature in Amersham station.","SELECT t1.day_of_week FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = ""Amersham"" order by low_temperature desc limit 1" "In how many games did player Id ""vernomi01"" end up with a tie or an overtime loss in the 1998 season?",SELECT `T/OL` FROM Goalies WHERE playerID = 'vernomi01' AND year = 1998 Which mountain range has a rank of 19?,SELECT mountain_range FROM table_name_35 WHERE rank = 19 Which away team goes against the home team Mauritius?,"SELECT away_team FROM table_name_94 WHERE home_team = ""mauritius""" "Show the phone, room, and building for the faculty named Jerry Prince.","SELECT phone , room , building FROM Faculty WHERE Fname = ""Jerry"" AND Lname = ""Prince""" How many accounts do we have?,SELECT count(*) FROM Accounts Can you show me the maximum enrollment of all schools?,SELECT max ( enrollment ) FROM school "Can you tell me the Co-driver that has the Year smaller than 2012, and the Laps smaller than 161, and the Position of dnf, and the Number 33?","SELECT co_driver FROM table_name_1 WHERE year < 2012 AND laps < 161 AND position = ""dnf"" AND number = 33" What are the id and details of the customers who have at least 3 events?,"SELECT T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 3" How many episodes have not won any Law & Order series awards?,SELECT COUNT(award_id) FROM Award WHERE Result = 'Nominee' What is the coinage metal for KM numbers of S45?,"SELECT coinage_metal FROM table_26336060_19 WHERE km_number = ""S45""" "What tournament was being played on August 11, 1984?","SELECT tournament FROM table_name_86 WHERE date = ""august 11, 1984""" What is the name of uid 1 ?,SELECT name FROM user_profiles where uid = 1 How many heads of the departments are older than 56 ?,SELECT COUNT(*) FROM head WHERE age > 56 What was the cargo value in 2005 for all product carriers?,"SELECT 2005 FROM table_name_46 WHERE cargo = ""all product carriers""" "Count the members of the club ""Tennis Club"".","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" List the ingredients which measure in slices.,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.unit = 'slice(s)' Who published the title in the pet-raising simulator genre?,"SELECT publisher FROM table_21458142_1 WHERE genre = ""Pet-raising simulator""" Find the names of all instructors who have taught some course and the course_id.,"SELECT name, course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID" What is the Date with an Opponent that is indiana state college?,"SELECT date FROM table_name_71 WHERE opponent = ""indiana state college""" Which owner has the call sign of KDSU?,"SELECT name FROM table_name_88 WHERE call_sign = ""kdsu""" Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.,SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005 What is the total attendance at games against the New York Mets with a record of 18-18?,"SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = ""new york mets"" AND record = ""18-18""" What are the names of representatives with more than 10000 votes in election?,SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE Votes > 10000 What is the last name of the musician that have produced the most songs?,SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 What is the language that was used most often in songs with resolution above 500?,SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 What are all the policy types of the customer that has the most policies listed?,SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) What is the response and number of inhabitants of the oldest female customer?,"SELECT T2.RESPONSE, T3.INHABITANTS_K FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.SEX = 'Female' ORDER BY T1.age DESC LIMIT 1" "What is 2005, when 2006 is ""1R""?","SELECT 2005 FROM table_name_73 WHERE 2006 = ""1r""" "Show the names of sponsors of players whose residence is either ""Brandon"" or ""Birtle"".","SELECT Sponsor_name FROM player WHERE Residence = ""Brandon"" OR Residence = ""Birtle""" who else along with scott dixon and graham rahal drove with the most speed,"SELECT fastest_lap FROM table_13512105_3 WHERE most_laps_led = ""Scott Dixon"" AND pole_position = ""Graham Rahal""" In what order were the Bee Gees as the artist when it was a result of bottom 3?,"SELECT order__number FROM table_name_30 WHERE result = ""bottom 3"" AND original_artist = ""bee gees""" What year was incumbent jim ramstad first elected?,"SELECT MIN(first_elected) FROM table_1341423_23 WHERE incumbent = ""Jim Ramstad""" who is the leading scorer where home is charlotte bobcats,"SELECT leading_scorer FROM table_11964047_5 WHERE home = ""Charlotte Bobcats""" Find the first names of the faculty members who participate in Canoeing and Kayaking.,SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking' Show names for all aircrafts of which John Williams has certificates.,"SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = ""John Williams""" "Which Stations are in vancouver, bc?","SELECT stations FROM table_name_64 WHERE city = ""vancouver, bc""" Great! Can you calculate for me the sum total of all Settlement Amounts and also the average Settlement Amount for all settlements?,"SELECT sum ( settlement_amount ) , avg ( settlement_amount ) FROM settlements" What are the names of all Statistics courses ?,"SELECT title FROM course WHERE dept_name = ""Statistics""" "With original artist of Tina Turner, what is the week number?","SELECT week__number FROM table_21501565_1 WHERE original_artist = ""Tina Turner""" Which flight carrier operator has the most cancelled flights?,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID ORDER BY T2.CANCELLED DESC LIMIT 1 "In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?","SELECT AVG(rank) FROM table_name_48 WHERE opposition = ""tipperary"" AND county = ""limerick"" AND total > 12" Who was the opponent when the loss was Wells (4-7)?,"SELECT opponent FROM table_name_35 WHERE loss = ""wells (4-7)""" What is the low point total when there are over 5 games?,SELECT MIN(points) FROM table_name_56 WHERE games > 5 "What Entrepreneurs requested £60,000?","SELECT entrepreneur_s_ FROM table_name_27 WHERE money_requested__£_ = ""60,000""" Name all the trips where the bike was borrowed and returned on a different day. State the city where the bike was returned.,"SELECT DISTINCT T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE SUBSTR(CAST(T2.start_date AS TEXT), INSTR(T2.start_date, '/') + 1) - SUBSTR(CAST(T2.start_date AS TEXT), INSTR(T2.start_date, ' ') - 5) <> SUBSTR(CAST(T2.end_date AS TEXT), INSTR(T2.end_date, '/') + 1) - SUBSTR(CAST(T2.end_date AS TEXT), INSTR(T2.end_date, ' ') - 5)" Find the name of dorms which have TV Lounge but no Study Room as amenity.,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' Name the un region for 3314000 population,SELECT un_region FROM table_16278349_1 WHERE population = 3314000 Show all church names except for those that had a wedding in year 2015.,SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 Name the points for donald boor,"SELECT points FROM table_25646820_2 WHERE player = ""Donald Boor""" "List the vote ids, phone numbers and states of all votes.","SELECT vote_id , phone_number , state FROM votes" Find the policy type used by more than 4 customers.,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4 Please list all the games that have the same game genre as 3D Lemmings.,SELECT T1.game_name FROM game AS T1 WHERE T1.genre_id = ( SELECT T.genre_id FROM game AS T WHERE T.game_name = '3D Lemmings' ) "Name the first citicality for electric power of 1,380 mw","SELECT first_criticality FROM table_name_3 WHERE electric_power = ""1,380 mw""" What's the duration of the Archers with Norman Painting as an actor?,"SELECT duration FROM table_name_98 WHERE soap_opera = ""the archers"" AND actor = ""norman painting""" Which Year has a Competition of commonwealth youth games?,"SELECT AVG(year) FROM table_name_94 WHERE competition = ""commonwealth youth games""" "What is the loaction attendance that has a game greater than 35, with January 30 as the date?","SELECT location_attendance FROM table_name_24 WHERE game > 35 AND date = ""january 30""" what is the product category code for product name 'sesame',select product_category_code from Products where product_name = 'sesame' "How much money was spent when the amount after debt was $1,757,936?","SELECT money_spent, _3q FROM table_name_19 WHERE after_debt = ""$1,757,936""" "What Date was the Country of japan, and a Label of sony?","SELECT date FROM table_name_75 WHERE country = ""japan"" AND label = ""sony""" how many publishers are there?,SELECT count ( distinct Publisher ) FROM publication In what year was Phil J. Welch first elected?,"SELECT first_elected FROM table_1342198_25 WHERE incumbent = ""Phil J. Welch""" "What is the number of career caps for a full back, when tour Apps is smaller than 29?","SELECT COUNT(career_caps) FROM table_name_78 WHERE position = ""full back"" AND tour_apps < 29" Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?,SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500; show me the name of the users.,SELECT name FROM user_profiles What is the product name of order CA-2011-115791 in the East superstore?,SELECT DISTINCT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'CA-2011-141817' How many classes does the professor whose last name is Graztevski teach?,SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski' What types of documents are these?,SELECT document_type_code FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id Where was the race on 28 dec 2010 held?,"SELECT location FROM table_name_69 WHERE date = ""28 dec 2010""" Which season did Jovy Sese play?,"SELECT season FROM table_name_7 WHERE name = ""jovy sese""" What date was the Week 3 game played?,SELECT date FROM table_name_18 WHERE week = 3 Find the names of all reviewers who have contributed three or more ratings.,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3 Describe Sales Representative names who were hired in 1992 and compare the number of orders among them.,"SELECT T1.FirstName, T1.LastName, COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.Title = 'Sales Representative' AND STRFTIME('%Y', T1.HireDate) = '1992' GROUP BY T1.EmployeeID, T1.FirstName, T1.LastName" "Among the films starred by Angelina Astaire, what is the title of the film with a replacement cost of 27.99?",SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Angelina' AND T1.last_name = 'Astaire' AND T3.replacement_cost = 27.99 What was the attendance in the gave versus the Brewers with a score of 9–6?,"SELECT attendance FROM table_name_43 WHERE opponent = ""brewers"" AND score = ""9–6""" What are the student class and gpa of each of those students?,"SELECT stu_class, stu_GPA FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C'" Who had the high points when the score was w 112-110?,"SELECT high_points FROM table_27902171_7 WHERE score = ""W 112-110""" show all the skill descriptions.,SELECT skill_description FROM skills what is the pole position of Round 9,SELECT pole_position FROM table_name_4 WHERE round = 9 How many flights operated by American Airlines Inc. on 2018/8/1 were faster than scheduled?,SELECT SUM(CASE WHEN T2.ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' AND T3.Description = 'American Airlines Inc.: AA' How many courses have more than 2 credits?,SELECT COUNT(*) FROM COURSE WHERE Credits > 2 Tell me the affiliation for pick number less than 59 and position of gk,"SELECT affiliation FROM table_name_33 WHERE pick__number < 59 AND position = ""gk""" How many main wins for France?,"SELECT main_wins FROM table_name_63 WHERE team = ""france""" What is the minimum number of opponents' points for the game at Michigan State?,"SELECT MIN(opponents) FROM table_24560733_1 WHERE opponent = ""at Michigan State""" How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?,"SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = ""4.4%""" What is every TV network in Belgium?,"SELECT tv_network_s_ FROM table_18821196_1 WHERE country = ""Belgium""" What is the Capacity in use with an Annual change that is 21.8%?,"SELECT capacity_in_use FROM table_name_31 WHERE annual_change = ""21.8%""" Which arena was founded in 2000?,SELECT arena FROM table_name_5 WHERE founded = 2000 What circut has an unknown fastest lap on July 19?,"SELECT circuit FROM table_name_76 WHERE fastest_lap = ""unknown"" AND date = ""july 19""" Provide the price and country origin of the car named Ford Maverick.,"SELECT DISTINCT T1.price, T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T4.car_name = 'ford maverick'" "Who was the Opponent in the Auckland, New Zealand Tournament?","SELECT opponent FROM table_name_50 WHERE tournament = ""auckland, new zealand""" how many order id from order item id 2,SELECT count ( * ) FROM order_items where order_item_id = 2 What is the name of the player picked before round 2?,SELECT player FROM table_name_75 WHERE round < 2 How many accelerators are not compatible with the browsers listed ?,SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser) What state is that in?,"SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = ""FJA Filming""" what was the name of the episode that got 3.3 (millions) of u.s viewers?,"SELECT title FROM table_21313327_1 WHERE us_viewers__millions_ = ""3.3""" What are the names of instructors who have taught C Programming courses?,SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' What was the attendance at the Billericay Town home game?,"SELECT attendance FROM table_name_51 WHERE home_team = ""billericay town""" what is the date order placed of order id 2,SELECT date_order_placed FROM orders where order_id = 2 What driver won the VII Rand Grand Prix?,"SELECT winning_driver FROM table_name_26 WHERE race_name = ""vii rand grand prix""" Name the number at march when class is j66,"SELECT number_at_march FROM table_15608800_2 WHERE class = ""J66""" Name the 2008 for 2012 of sf,"SELECT 2008 FROM table_name_41 WHERE 2012 = ""sf""" What is the average round at which is the position of Tight End and Randy Bethel?,"SELECT AVG(round) FROM table_name_56 WHERE position = ""tight end"" AND player = ""randy bethel""" How about the price of Cola in dollars? | do you still want to know the average and minimum? | Yes please!,"SELECT avg ( price_in_dollars ) , min ( price_in_dollars ) FROM catalog_contents where catalog_entry_name = 'Cola'" what's the salmonella with shigella being ipgc,"SELECT salmonella FROM table_10321124_1 WHERE shigella = ""IpgC""" Which Home team score has an Away team of st kilda?,"SELECT home_team AS score FROM table_name_2 WHERE away_team = ""st kilda""" "How many ingredients must be rationed in the recipe ""Raspberry Chiffon Pie""?",SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T2.max_qty = T2.min_qty how many customers are presented on the table,SELECT count ( * ) FROM Customers "Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?","SELECT MAX(3 AS _balls), _2_ribbons FROM table_name_16 WHERE nation = ""bulgaria"" AND place > 1" Which detriment has a domicile of mercury and Virgo as a sign?,"SELECT detriment FROM table_name_89 WHERE domicile = ""mercury"" AND sign = ""virgo""" Who directed the episode that was written by Bill Lawrence? ,"SELECT directed_by FROM table_25547943_1 WHERE written_by = ""Bill Lawrence""" What is the average number of injuries caused each time?,SELECT AVG(injured) FROM death What was the date of the game that had a loss of Reed (0–2)?,"SELECT date FROM table_name_29 WHERE loss = ""reed (0–2)""" What is her email?,"SELECT email_address FROM Students WHERE first_name = ""Emma""" What is fleet number for the year of 19xx?,"SELECT fleet_number FROM table_name_62 WHERE year = ""19xx""" display those departments where more than ten employees work who got a commission percentage.,SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10 Please calculate the average unit price for products of Formaggi Fortini s.r.l.,SELECT SUM(T1.UnitPrice) / COUNT(T1.SupplierID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Formaggi Fortini s.r.l.' Which products has been complained by the customer who has filed least amount of complaints?,SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY COUNT(*) LIMIT 1 "What is the lowest year that has all-ireland hurling final as the competition, and 6-08 (24) as the waterford score?","SELECT MIN(year) FROM table_name_95 WHERE competition = ""all-ireland hurling final"" AND waterford_score = ""6-08 (24)""" "What is the name of the institution that ""Matthias Blume"" belongs to?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Matthias"" AND t1.lname = ""Blume""" what is the address of history department?,SELECT dept_address FROM department WHERE dept_name = 'History' "What is the earliest Date on a Surface of clay in a Championship in Linz, Austria?","SELECT MIN(date) FROM table_name_15 WHERE surface = ""clay"" AND championship = ""linz, austria""" Hi.Can you show the categories of the music festivals?,SELECT Category FROM music_festival What was the grid when the driver was Mark Webber?,"SELECT grid FROM table_name_96 WHERE driver = ""mark webber""" How many tracks are there?,SELECT count ( * ) FROM Track Please list the titles of all the books in British English.,SELECT T1.title FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'British English' Which event led to a 4-0 record?,"SELECT event FROM table_name_98 WHERE record = ""4-0""" Please list all the categories of the Yelp_Business in Arizona.,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.state LIKE 'AZ' GROUP BY T1.category_name What was the pick number in round 228 for Mike Ford?,"SELECT MAX(pick) FROM table_name_44 WHERE player = ""mike ford"" AND round > 228" How many different bike ids are there?,SELECT count(DISTINCT bike_id) FROM trip How many businesses in Arizona having an average review less than 3 stars?,SELECT COUNT(business_id) FROM Business WHERE business_id IN ( SELECT DISTINCT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.state = 'AZ' GROUP BY T1.business_id HAVING SUM(T2.review_stars) / COUNT(T2.user_id) < 3 ) What is the average alcohol content per 12-ounce beer bottle produced by Boston Beer Company?,SELECT AVG(T1.abv) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Boston Beer Company' AND T1.ounces = 12 What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.,"SELECT issue_price FROM table_name_46 WHERE artist = ""john mardon"" AND year = 2000 AND mintage = ""included in steam buggy""" What is the Valvetrain of the Diesel Engines Model?,"SELECT valvetrain FROM table_name_12 WHERE model = ""diesel engines""" "What is the rating for ""Garden Coloring Book""? List all of its reviews.","SELECT T1.Rating, T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Garden Coloring Book'" "Which Copa del Rey has a Name of guti, and a FIFA Club World Championship smaller than 0?","SELECT SUM(copa_del_rey) FROM table_name_63 WHERE name = ""guti"" AND fifa_club_world_championship < 0" "List every individual's first name, middle name and last name in alphabetical order by last name.","SELECT individual_first_name , individual_middle_name , individual_last_name FROM individuals ORDER BY individual_last_name" What loss was against the angels with a 50-31 record?,"SELECT loss FROM table_name_84 WHERE opponent = ""angels"" AND record = ""50-31""" which team performed in Ave Maria university ?,SELECT Team FROM institution WHERE Institution = 'Ave Maria University' How many different people did different scores of high assists during the December 11 game?,"SELECT COUNT(high_assists) FROM table_23248869_6 WHERE date = ""December 11""" What was the total number who attended during week 11?,SELECT COUNT(attendance) FROM table_name_98 WHERE week = 11 "Who is the last/current driver(s) 3 november 2013 when first driver(s) is marlon stöckinger , kotaro sakurai ( 2011 )?","SELECT last_current_driver_s__3_november_2013 FROM table_27279050_3 WHERE first_driver_s_ = ""Marlon Stöckinger , Kotaro Sakurai ( 2011 )""" what is the number of passengers when the capacity is 81.2%?,"SELECT SUM(total_passengers) FROM table_name_88 WHERE capacity_in_use = ""81.2%""" Name the total number of population 2000 census for mesquita,"SELECT COUNT(population_2000_census) FROM table_14986292_1 WHERE administrative_division = ""Mesquita""" What is the score of the match with anders järryd as the runner-up?,"SELECT score FROM table_name_93 WHERE runner_up = ""anders järryd""" "Which Time/Retired has less than 77 laps, and a Grid of 16?",SELECT time_retired FROM table_name_68 WHERE laps < 77 AND grid = 16 What is the name style of the employee with the lowest pay rate?,SELECT T2.NameStyle FROM EmployeePayHistory AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Rate IS NOT NULL ORDER BY T1.Rate ASC LIMIT 1 Can you give me a list of all products?,select * from products What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?,"SELECT home FROM table_name_29 WHERE visitor = ""edmonton oilers"" AND date = ""may 22""" Which of these appear more than once?,SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count ( * ) > 1 How many schools are there?,SELECT count ( DISTINCT SCHOOL_CODE ) FROM DEPARTMENT how many customers are there,SELECT count ( * ) FROM customers What Nationality is the Pick that is 116?,SELECT nationality FROM table_name_92 WHERE pick = 116 "What is the Netflix number having a segment D, of NED can corn?","SELECT netflix FROM table_name_2 WHERE segment_d = ""ned can corn""" what about the name of the dorms that are both male and female?,"SELECT * FROM dorm where gender = ""M"" or gender = ""F""" "How much Rank has a Tally of 0-10, and an Opposition of cork?","SELECT COUNT(rank) FROM table_name_37 WHERE tally = ""0-10"" AND opposition = ""cork""" Please list the IDs of all the shipments made by a retailer customer.,SELECT T2.ship_id FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_type = 'retailer' What are all the title directed by reginald hudlin,"SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = ""Reginald Hudlin""" List the language used least number of TV Channel. List language and number of TV Channel.,"SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;" Tell me the listed when cerclis id is msd004006995,"SELECT listed FROM table_name_17 WHERE cerclis_id = ""msd004006995""" "List all the paper that the journal ""Theoretical Computer Science "" published in 2003.",SELECT DISTINCT T1.Title FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T2.FullName = 'Theoretical Computer Science' AND T1.Year = 2003 AND T1.Title <> '' "In the parts supply by Supplier#000000654, list the top five parts with the most supply cost in descending order of supply cost.",SELECT T2.ps_partkey FROM supplier AS T1 INNER JOIN partsupp AS T2 ON T1.s_suppkey = T2.ps_suppkey WHERE T1.s_name = 'Supplier#000000654' ORDER BY T2.ps_supplycost DESC LIMIT 5 What is the year Airds High School was founded?,"SELECT founded FROM table_name_65 WHERE school = ""airds high school""" What is the fault status of that?,SELECT T2.fault_status FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id where T2.fault_log_entry_id = ( SELECT T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1 ) What school or team is in a round below 5 with a pick of 2?,SELECT school_club_team FROM table_name_57 WHERE round < 5 AND pick = 2 What is the school of the player from the College of Michigan?,"SELECT school FROM table_name_35 WHERE college = ""michigan""" "For races with an average speed of 113.835 mph, what are the winning race times?","SELECT race_time FROM table_17801022_1 WHERE average_speed__mph_ = ""113.835""" how many are under age 21,select count ( * ) from people where Age < 21 "What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?","SELECT bronze FROM table_name_6 WHERE location = ""bangkok"" AND year = 1978" In what location was a stadium built for the St Kilda Football Club?,"SELECT location FROM table_28885977_1 WHERE built_for = ""St Kilda Football Club""" What is the highest Car with more than 155 yards?,SELECT MAX(car) FROM table_name_56 WHERE yards > 155 How many counties are there?,SELECT COUNT(*) FROM county_public_safety What is the percentage of documentary films?,"SELECT CAST(SUM(IIF(T2.name = 'Documentary', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id" "What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5?",SELECT AVG(2007) FROM table_name_19 WHERE 2009 > 2.8 AND 2010 = 4.9 AND 2006 < 2.5 "For each tourist attraction, return its name and the date when the tourists named Vincent or Vivian visited there.","SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" OR T2.Tourist_Details = ""Vivian""" "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.","SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1" "Which vocal type did the musician with last name ""Heilo"" played in the song with title ""Der Kapitan""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = ""Heilo"" AND T2.title = ""Der Kapitan""" Which builder completed before 1890 and launched on 9 june 1888?,"SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = ""9 june 1888""" Tell me the ages of the oldest and youngest students studying major 600.,"SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600" List the driver's name of the shipment with a weight greater than 95% of the average weight of all shipments.,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.weight * 100 > ( SELECT 95 * AVG(weight) FROM shipment )" Who is the constructor of the 196 chassis?,"SELECT constructor FROM table_name_50 WHERE chassis = ""196""" Great! how many apartments does each of them have?,"SELECT count ( * ) , apt_type_code FROM Apartments GROUP BY apt_type_code" And how many volumes spent 1.0 weeks on top?,SELECT count ( * ) FROM volume where weeks_on_top = 1.0 "What is the average goals for Jimmy Greaves, and matches more than 516?","SELECT AVG(goals) FROM table_name_91 WHERE name = ""jimmy greaves"" AND matches > 516" When was the kickoff time of the SB XXXVI?,"SELECT kickoff FROM table_name_93 WHERE week = ""sb xxxvi""" what is the game when batting 2nd is new zealand 6/133 (18)?,"SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = ""new zealand 6/133 (18)""" What is the total profit all transactions with product ID 827?,SELECT SUM((T1.ListPrice - T1.StandardCost) * T2.Quantity) FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID = 827 Find all the forenames of distinct drivers who was in position 1 as standing and won?,SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 The nll participate in what sport?,"SELECT sport FROM table_name_64 WHERE league = ""nll""" Show the enrollment and primary_conference of the oldest college.,"SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1" "What's the lowest Position with a Conceded that's larger than 16, Draws of 3, and Losses that's larger than 3?",SELECT MIN(position) FROM table_name_6 WHERE conceded > 16 AND draws = 3 AND losses > 3 Find courses that ran in Fall 2009 and in Spring 2010.,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 What is the station type for the branding ABS-CBN TV-32 Tagaytay?,"SELECT station_type FROM table_2610582_2 WHERE branding = ""ABS-CBN TV-32 Tagaytay""" What is the grid total for cars with over 69 laps?,SELECT COUNT(grid) FROM table_name_34 WHERE laps > 69 Show me the details of the schools,SELECT School FROM University How many precincts are in the county where G. Hager received 19 (20%) votes?,"SELECT precincts FROM table_17820556_4 WHERE g_hager = ""19 (20%)""" what's the maximum peru vs. world (percent) with 9672 species in the world ,SELECT MAX(peru_vs_world__percent_) FROM table_11727969_1 WHERE species_in_the_world = 9672 Which Foreign population has a Population (2004) larger than 234733?,SELECT AVG(foreign_population) FROM table_name_26 WHERE population__2004_ > 234733 "What is Permanent Account, when Updated In Past 30 Days is 10324?","SELECT permanent_account FROM table_name_96 WHERE updated_in_past_30_days = ""10324""" What is the minimum capacity for Sangre Grande Ground?,"SELECT MIN(capacity) FROM table_24039173_1 WHERE stadium = ""Sangre Grande Ground""" "Which Inhabitants have a Party of democratic party, and a Municipality of florence, and an Election smaller than 2009?","SELECT MIN(inhabitants) FROM table_name_99 WHERE party = ""democratic party"" AND municipality = ""florence"" AND election < 2009" Show the names of employees with role name Editor.,"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" What is the genre of the game ID 119?,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.id = 119 WHAT IS THE RANK OF TEAM BS1? IN TEAM TABLE?,"SELECT rank FROM team WHERE team_id = ""BS1""" Great! Can you tell me how many students in total participated in football?,SELECT count ( distinct T2.stuid ) FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID where T1.activity_name = 'Soccer' "How many teams were there when chris bosh , lebron james (8) had the high rebounds?","SELECT COUNT(team) FROM table_27713030_16 WHERE high_rebounds = ""Chris Bosh , LeBron James (8)""" When was the earliest with 4 seasons?,SELECT MIN(year_s_) FROM table_name_81 WHERE season = 4 Who are the top 8 suppliers supplying the products with the highest user satisfaction?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID ORDER BY T1.ReorderLevel DESC LIMIT 8 What is the Course Id for English,"SELECT course_id FROM courses WHERE course_name = ""English""" What are the distinct publishers of publications with price higher than 5000000?,SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000 kenneth mcalpine drove from which entrant?,"SELECT entrant FROM table_name_23 WHERE driver = ""kenneth mcalpine""" When does Yelp_Business no.1 open on Tuesdays?,SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Tuesday' AND T1.business_id = 1 Who was second runner up when Janina San Miguel won Binibining Pilipinas-World?,"SELECT second_runner_up FROM table_1825751_4 WHERE binibining_pilipinas_world = ""Janina San Miguel""" give the location of subtrate coproporphyrinogen iii,"SELECT location FROM table_182499_1 WHERE substrate = ""Coproporphyrinogen III""" Now who is the oldest captain?,SELECT name FROM captain ORDER BY age desc LIMIT 1 How many distinct currency codes are there for all drama workshop groups?,SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups What date final has 1989 as the year?,"SELECT date_final FROM table_name_90 WHERE year = ""1989""" What's the average of the amount of laps for the driver patrick tambay?,"SELECT AVG(laps) FROM table_name_64 WHERE driver = ""patrick tambay""" "How many cartoons were written by ""Joseph Kuhr""?","SELECT COUNT(*) FROM Cartoon WHERE Written_by = ""Joseph Kuhr""" Provide the itunes id and url for podcast titled 'Brown Suga Diaries'.,"SELECT itunes_id, itunes_url FROM podcasts WHERE title = 'Brown Suga Diaries'" "What percentage of games won, games lost and games drawn does Cittadella have as a home team in total?","SELECT CAST(COUNT(CASE WHEN FTR = 'H' THEN 1 ELSE NULL END) / COUNT(HomeTeam) AS REAL) * 100, CAST(COUNT(CASE WHEN FTR = 'A' THEN 1 ELSE NULL END) AS REAL) / COUNT(HomeTeam), CAST(COUNT(CASE WHEN FTR = 'D' THEN 1 ELSE NULL END) AS REAL) / COUNT(HomeTeam) FROM matchs WHERE HomeTeam = 'Cittadella'" What date was 53-75 recorded?,"SELECT date FROM table_name_16 WHERE record = ""53-75""" "When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?","SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = ""joyn"" AND company_name = ""nokia corporation""" Great! Can you please provide me with the total number of films by 20th Century Fox?,"SELECT count ( * ) FROM film where studio = ""20th Century Fox""" How many countries have a republic as their form of government?,"SELECT count(*) FROM country WHERE GovernmentForm = ""Republic""" can you show me a list of ACCOUNTS name?,SELECT * FROM ACCOUNTS How many results where given for the vote percentage 3.1%?,"SELECT COUNT(result) FROM table_26375386_17 WHERE vote_percentage = ""3.1%""" What is the average words of the 10 fewest words title?,SELECT CAST(SUM(CASE WHEN words >= 10 THEN words ELSE 0 END) AS REAL) / SUM(CASE WHEN words >= 10 THEN 1 ELSE 0 END) FROM pages Which services have been used more than twice in first notification of loss? Return the service name.,SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 Which major has the least?,SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) ASC LIMIT 1 "What is the name of the document on project ""Graph Database project""?",SELECT document_name FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project' Name the dominant religion of srpska crnja,"SELECT dominant_religion__2002_ FROM table_2562572_37 WHERE settlement = ""Srpska Crnja""" "What is the title, phone and hire date of Nancy Edwards?","SELECT title , phone , hire_date FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" On what date did they play in Boston Garden with a record of 22-4?,"SELECT date FROM table_name_24 WHERE location = ""boston garden"" AND record = ""22-4""" How many customers are there in the customer type with the most customers?,SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1 What about states that have some college students playing in the goalie position?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' what is the maximum number of hull numbers?,SELECT MAX(hull_numbers) FROM table_12232526_2 "What is To Par, when Place is ""T1"", and when Player is ""Joey Rassett""?","SELECT to_par FROM table_name_6 WHERE place = ""t1"" AND player = ""joey rassett""" Which leader of the Democratic Unionist party has more than 8 seats?,"SELECT leader FROM table_name_35 WHERE number_of_seats > 8 AND party = ""democratic unionist party""" How many customer ids have purchased Hex Nut 9?,SELECT COUNT(T1.CustomerID) FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Hex Nut 9' What is every Swedish name for residence city is Loviisa?,"SELECT swedish_name FROM table_198175_2 WHERE residence_city = ""Loviisa""" What Format has the Region of Europe and a Catalog of 74321 45851 2?,"SELECT format FROM table_name_86 WHERE region = ""europe"" AND catalog = ""74321 45851 2""" How many manners of departure did peter voets have?,"SELECT COUNT(manner_of_departure) FROM table_11713303_2 WHERE outgoing_manager = ""Peter Voets""" "Who was the away team when the attendance was 7,891?","SELECT away_team FROM table_name_64 WHERE attendance = ""7,891""" how many have destination airports in Italy?,SELECT count ( * ) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' Provide the full names and emails of unpaid research assistants.,"SELECT T2.f_name, T2.l_name, T2.email FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'free'" What are the receipt dates of all of the documents Airline shipped?,"SELECT T2.receipt_date FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T2.shipping_agent_code = T1.shipping_agent_code WHERE T1.shipping_agent_name = ""Airline""" Find the name of dorms which have both TV Lounge and Study Room as amenities.,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' "Which Year is the highest one that has a Work of the clone, and an Award of contigo award?","SELECT MAX(year) FROM table_name_8 WHERE work = ""the clone"" AND award = ""contigo award""" Show me all the buildings that have at least 10 professors,"SELECT building FROM Faculty WHERE rank = ""Professor"" GROUP BY building HAVING count ( * ) > = 10" What language is predominantly spoken in Aruba?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba"" ORDER BY Percentage DESC LIMIT 1" What percentage of restaurants are from the Bay Area?,"SELECT CAST(SUM(IIF(T1.region = 'bay area', 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city" Show the company name and the main industry for all companies whose headquarters are not from USA.,"SELECT company , main_industry FROM company WHERE headquarters != 'USA'" What Name has the Location of Bayswater?,"SELECT name FROM table_name_67 WHERE location = ""bayswater""" Who was the opposing team at the match played at the Arden Street Oval?,"SELECT away_team FROM table_name_64 WHERE venue = ""arden street oval""" How many awards has Julia Roberts been nominated for?,SELECT COUNT(T2.award_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Julia Roberts' AND T2.result = 'Nominee' "Which room has the highest rate? List the room's full name, rate, check in and check out date.","SELECT T2.roomName , T1.Rate , T1.CheckIn , T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;" What is the average squad age of the team whose shirt sponsor is Sho'rtan Gaz Mahsulot and whose kit manufacturer is Adidas? ,"SELECT average_squad_age FROM table_25527255_2 WHERE shirt_sponsor = ""Sho'rtan Gaz Mahsulot"" AND kit_manufacturer = ""Adidas""" What is the heat number of the athlete who finished in 2:23.95?,"SELECT AVG(heat) FROM table_name_99 WHERE time = ""2:23.95""" What is the gender of the user whose tweet got 535 retweets?,SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.RetweetCount = 535 Which lake is the largest in terms of both surface area and depth?,SELECT Name FROM lake ORDER BY Area * Depth DESC LIMIT 1 "Who wrote the episode that was set in winter 1541/february 13, 1542?","SELECT written_by FROM table_10413597_5 WHERE setting = ""Winter 1541/February 13, 1542""" How many furniture products were ordered at central superstore?,SELECT COUNT(*) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Furniture' Did Ms. Lyric Emely Taylor provide the consent for result of the complaint call on 2016/5/20?,"SELECT CASE WHEN T2.`Consumer consent provided?` IN (NULL, 'N/A', '') THEN 'No' ELSE 'Yes' END FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Lyric' AND T1.middle = 'Emely' AND T1.last = 'Taylor' AND T1.sex = 'Female' AND T2.`Date received` = '2016-05-20'" Name the date of vacancy for daniel uberti,"SELECT date_of_vacancy FROM table_18522916_5 WHERE outgoing_manager = ""Daniel Uberti""" When gniazdo is polish what is proto-slavic?,"SELECT proto_slavic FROM table_26757_4 WHERE polish = ""gniazdo""" What is the sum of the places of the team with more than 49 points and less than 54 goals scored?,SELECT SUM(place__posición_) FROM table_name_70 WHERE points__pts_ > 49 AND goals_scored__gf_ < 54 What is the city name of country ID 3?,SELECT City_Name FROM City WHERE Country_ID = 3 "What are the name and description for role code ""MG""?","SELECT role_name , role_description FROM ROLES WHERE role_code = ""MG""" What is the id of the appointment with the most recent start date?,SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1 Hello! Can you show me a list of all investor names?,SELECT distinct Investor FROM entrepreneur What is the production code that had 24.8 million u.s. viewers?,"SELECT MAX(production_code) FROM table_27713890_1 WHERE us_viewers__millions_ = ""24.8""" List the writers of the books in ascending alphabetical order.,SELECT Writer FROM book ORDER BY Writer ASC In what district is the incumbent Lawrence J. Smith? ,"SELECT district FROM table_1341598_10 WHERE incumbent = ""Lawrence J. Smith""" "What are the names of technicians from ""CLE""?","SELECT name from technician where team = ""CLE""" List names of all pilot in descending order of age.,SELECT Name FROM pilot ORDER BY Age DESC how many phone there,SELECT count ( * ) from phone Which technician is the oldest? | Do you mean the id of the oldest technician? | What is the Name of the oldest technician?,SELECT name from technician order by age DESC limit 1 Which english website has a daily frequency ?,"SELECT website FROM table_name_89 WHERE language = ""english"" AND frequency = ""daily""" List countries that have more than one swimmer.,"SELECT nationality , count(*) FROM swimmer GROUP BY nationality HAVING count(*) > 1" What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?,SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8 In what district is the incumbent Charles Fisher?,"SELECT district FROM table_2668336_17 WHERE incumbent = ""Charles Fisher""" What is the desired rate when the rate limit (p) is 50.33?,"SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = ""50.33""" "How many premio are there when ""Artist of the Year"" was the categoria?","SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = ""Artist of the Year""" On what date was the venue Away and the result was lost 6-4 (lost 9-7 on agg)?,"SELECT date FROM table_name_5 WHERE venue = ""away"" AND result = ""lost 6-4 (lost 9-7 on agg)""" When did Renaldi's Pizza had its first inspection?,SELECT MIN(T2.inspection_date) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'RENALDI''S PIZZA' Where was the 1966 final played?,SELECT finals_venue__surface_ FROM table_name_12 WHERE year = 1966 Name of each manufacturer along with the name and price of its most expensive product?,"SELECT T1.Name , max ( T1.Price ) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" "What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?","SELECT result FROM table_name_47 WHERE competition = ""friendly"" AND score = ""5-0"" AND date = ""october 27, 2005""" "Name the total number of payout for december 28, 2009","SELECT COUNT(payout___us) AS $__ FROM table_24427210_1 WHERE date = ""December 28, 2009""" Name the nationality for defender 201,"SELECT nationality² FROM table_24565004_20 WHERE position = ""Defender"" AND appearances¹ = 201" What is the drawn number when there are 58 tries?,"SELECT drawn FROM table_name_12 WHERE tries_for = ""58""" "What are the vocal types used in song ""Le Pop""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What was the theme for Vegas Verdicts week with a result of Advanced?,"SELECT theme FROM table_name_30 WHERE result = ""advanced"" AND week = ""vegas verdicts""" "For each zip code, select all those that have an average mean visiblity below 10.",SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles) < 10 How many people attended game 42?,SELECT location_attendance FROM table_name_30 WHERE game = 42 "List the dishes that appeared at the left upper corner of the CHAS.BRADLEY'S OYSTER & DINING ROOM""s sponsored menu.",SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM' AND T1.xpos < 0.25 AND T1.ypos < 0.25 What are the different names of all reviewers whose ratings do not have a date field?,"SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = ""null""" What are the codes of types of documents of which there are for or more?,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 4 Please list the age and famous title of artists in descending order of age.,"SELECT Famous_Title , Age FROM artist ORDER BY Age DESC" What is the most recent year with a mk.v type?,"SELECT MAX(year) FROM table_name_62 WHERE type = ""mk.v""" "Of complaints with the type code ""Product Failure"", how many had each different status code?","SELECT complaint_status_code , count(*) FROM complaints WHERE complaint_type_code = ""Product Failure"" GROUP BY complaint_status_code" Find the names of the trains that do not pass any station located in London.,"SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = ""London"")" Which network has model nForce Professional 3400 MCP?,"SELECT network FROM table_name_29 WHERE model = ""nforce professional 3400 mcp""" What is the detailed position of the store which has order SO - 000115?,"SELECT T2.Latitude, T2.Longitude FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.OrderNumber = 'SO - 000115'" How many institutions in this table?,SELECT count ( * ) from Institution What was the mean humidity of a trip with id 4275?,SELECT T2.mean_humidity FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.id = 4275 What is the geographic ID and total income per year when the average income is above 3300 dollar.,"SELECT GEOID, INHABITANTS_K * INCOME_K * 12 FROM Demog WHERE INCOME_K > 3300" Please list all the keywords of the episode Lost Verizon.,SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Lost Verizon'; Who were the operational owners during the construction date of April 1892?,"SELECT operational_owner_s_ FROM table_1057316_1 WHERE build_date = ""April 1892""" Show the names and genders of players with a coach starting after 2011.,"SELECT T3.Player_name , T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011" "For all the movies which were produced by Cruel and Unusual Films, which one has the most popularity?",SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Cruel and Unusual Films' ORDER BY T3.popularity DESC LIMIT 1 And the one with the least number of cards?,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count ( * ) LIMIT 1 find all first-grade students who are not taught by otha moyer. | Do you mean First or Last names? | first,"SELECT DISTINCT T1.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" What is the phone number and postal code of the address 1031 Daugavpils Parkway?,"SELECT phone, postal_code FROM address WHERE address = '1031 Daugavpils Parkway'" "What are the departments managed by heads whose temporary acting value is ""yes""? | The following table shows the names of departments managed by heads whose temporary acting value is ""yes"". | Show me the name and number of employees for the Treasury department.","SELECT name , num_employees FROM department where name = ""Treasury""" What are the names of the artists from Bangladesh?,"SELECT artist_name FROM artist WHERE country = ""Bangladesh""" Where is the Hometown that the person who attended Camarillo High School is from?,"SELECT hometown FROM table_name_40 WHERE school = ""camarillo high school""" How many body builders are there?,SELECT count(*) FROM body_builder What are the names of all games that were played for at least 1000 hours?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum ( hours_played ) > = 1000 Find the average and total capacity of dorms for the students with gender X.,"SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'" What is the original United States air date of the episode written by Mike Ferris? ,"SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = ""Mike Ferris""" For how many terms have the oldest current legislator served?,SELECT COUNT(T2.bioguide) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio = ( SELECT MIN(birthday_bio) FROM current ) How many millions of viewers did the episode directed by Jeffrey Blitz have?,"SELECT us_viewers__million_ FROM table_25341765_1 WHERE directed_by = ""Jeffrey Blitz""" How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)?,"SELECT COUNT(reason_for_change) FROM table_1802522_3 WHERE successor = ""Leonard B. Jordan (R)""" Who made the decisions in the game whose first star was V. Lecavalier?,"SELECT decision FROM table_27537518_6 WHERE first_star = ""V. Lecavalier""" What was the attendance on August 8?,"SELECT attendance FROM table_name_47 WHERE date = ""august 8""" "what is the gold when silver is 1, event is 2000 summer paralympics and bronze is more than 3?","SELECT AVG(gold) FROM table_name_41 WHERE silver = 1 AND event = ""2000 summer paralympics"" AND bronze > 3" What are the fewest seats with fewer than 5.4% seats and more than -1 change?,SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -1 List the amount and donor name for the largest amount of donation.,"SELECT amount , donator_name FROM endowment ORDER BY amount DESC LIMIT 1" How many engine b5234 t3?,"SELECT COUNT(model) FROM table_1147705_1 WHERE engine_type = ""B5234 T3""" What are the arriving date and the departing date of the dogs who have gone through a treatment?,"SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id" find the country in the list? | What do you mean? | how many country in the list?,SELECT COUNT ( DISTINCT country ) FROM airports What cities are in sweden on this list?,"SELECT city FROM table_28005160_2 WHERE country = ""Sweden""" "Hmm, can you tell me the addresses that have the highest average monthly rental?",SELECT T2.address_id FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG ( monthly_rental ) DESC LIMIT 1 how many total number of points margin when brive is the winners,"SELECT COUNT(points_margin) FROM table_27987767_2 WHERE winners = ""Brive""" How about the builder with the most trains?,SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID order by count ( * ) desc limit 1 Find the names of programs that are never broadcasted in the morning.,"SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning""" WHAT IS THE WORLDWIDE BOX OFFICE FOR BRAVE?,"SELECT worldwide FROM table_name_41 WHERE film = ""brave""" How many matches did Mohammad Hafeez play?,SELECT SUM(CASE WHEN T2.Player_Name = 'Mohammad Hafeez' THEN 1 ELSE 0 END) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?,SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955 Name the number of home town for number being 32,SELECT COUNT(home_town) FROM table_25360865_1 WHERE _number = 32 How many kinds of events does athletics have?,SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Athletics' Count the matches that were won by wickets in all season.,SELECT COUNT(T1.Match_Id) FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id WHERE T2.Win_type = 'wickets' "What was the earliest year during which the winner was Matthew King, and during which the score was higher than 270?","SELECT MIN(year) FROM table_name_25 WHERE winner = ""matthew king"" AND score > 270" In which city was the Night of the Living Duck released?,"SELECT city FROM table_name_75 WHERE title = ""the night of the living duck""" "Return the average, minimum, maximum, and total transaction amounts.","SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions" What are the names of the top 5 universities with the highest number of international students?,SELECT DISTINCT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id ORDER BY (CAST(T1.num_students * T1.pct_international_students AS REAL) / 100) DESC LIMIT 5 Name the party for 1998 first elected,"SELECT party FROM table_25030512_24 WHERE first_elected = ""1998""" How many different production codes are there for the episode with 4.69 million US viewers?,"SELECT COUNT(production_code) FROM table_26429543_1 WHERE us_viewers__millions_ = ""4.69""" Hello! Can you show me a list of all course IDs?,SELECT course_id FROM takes How many viewers in the UK did episode 50 have?,SELECT uk_total_viewers FROM table_30139175_3 WHERE episode_no = 50 What was the score of Game 48?,SELECT score FROM table_name_33 WHERE game = 48 What is the socked when the turbo is 8/8/10/11?,"SELECT socket FROM table_name_40 WHERE turbo = ""8/8/10/11""" "What was the final score for the game that was contested on February 1, 2009?","SELECT final_score FROM table_10548224_1 WHERE date_contested = ""February 1, 2009""" How many innings for the player with an average of 22.61?,"SELECT innings FROM table_28846752_12 WHERE average = ""22.61""" How many order keys are not applied for the discount?,SELECT COUNT(l_orderkey) FROM lineitem WHERE l_discount = 0 Which Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)?,"SELECT week_14_nov_30 FROM table_name_1 WHERE week_6_oct_5 = ""michigan state (5-1)""" What is a colt racing entrant engine?,"SELECT engine FROM table_name_17 WHERE entrant = ""colt racing""" Which Opponent has a Record of 45–21–4?,"SELECT opponent FROM table_name_51 WHERE record = ""45–21–4""" what's the result with candidates being charles edward bennett (d) unopposed,"SELECT result FROM table_1342013_9 WHERE candidates = ""Charles Edward Bennett (D) Unopposed""" "What is Opponent In Final, when Surface is Hard, when Location is Wellington, New Zealand, and when Date is 6 February 2000?","SELECT opponent_in_final FROM table_name_72 WHERE surface = ""hard"" AND location = ""wellington, new zealand"" AND date = ""6 february 2000""" "What sea does the Baltic Sea converge with, and how deep is the Baltic Sea?","SELECT T2.Sea2, T1.Depth FROM sea AS T1 INNER JOIN mergesWith AS T2 ON T1.Name = T2.Sea1 WHERE T1.Name = 'Baltic Sea'" What are the unit of measure and category code for the 'chervil' product?,"SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""chervil""" who owns that account?,SELECT T2.custid FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance LIMIT 1 What venue will hold the 2013 Concacaf Gold Cup competition?,"SELECT venue FROM table_name_59 WHERE competition = ""2013 concacaf gold cup""" Show the role description and the id of the project staff involved in most number of project outcomes?,"SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1" What is the id and last name of the driver who participated in the most races after 2010?,"SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1" how many female dependents are there?,SELECT COUNT(*) FROM dependent WHERE sex = 'F' How many flights have a velocity larger than 200?,SELECT count(*) FROM flight WHERE velocity > 200 "what is the location when the champion is brigham young-hawaii, defeated is western oregon and the score is 3-0 (15-5, 15-9, 15-6)?","SELECT location FROM table_name_72 WHERE champion = ""brigham young-hawaii"" AND defeated = ""western oregon"" AND score = ""3-0 (15-5, 15-9, 15-6)""" How many women has got the first runner-up position in representation of Philippines?,"SELECT 1 AS st_runner_up FROM table_29942205_1 WHERE country_territory = ""Philippines""" Which competition was played on 13-11-2012?,"SELECT competition FROM table_name_22 WHERE date = ""13-11-2012""" Hello! Can you show me a list of the various product type codes?,SELECT Product_Type_Code FROM Products what is the most laps for driver jackie stewart?,"SELECT MAX(laps) FROM table_name_43 WHERE driver = ""jackie stewart""" What percentage of voters chose McCain in the county where 2.1% of voters voted third party?,"SELECT mccain__percentage FROM table_20278716_2 WHERE others__percentage = ""2.1%""" How many fatalities were there in the crash described as crashed at take-off due to engine failure?,"SELECT fatalities FROM table_229917_2 WHERE brief_description = ""Crashed at take-off due to engine failure""" What are the number of episodes when the genre is modern drama and the highest average ratings points are 28?,"SELECT AVG(number_of_episodes) FROM table_name_34 WHERE genre = ""modern drama"" AND highest_average_point_ratings = 28" What Nationality is the Iowa State team?,"SELECT nationality FROM table_name_69 WHERE school_club_team = ""iowa state""" Name the gold coast which has an auckland of no and melbourne of yes,"SELECT gold_coast FROM table_name_88 WHERE auckland = ""no"" AND melbourne = ""yes""" Name the pole position for belgian grand prix,"SELECT pole_position FROM table_name_75 WHERE grand_prix = ""belgian grand prix""" Who was the home team of the game on 26 February 2008?,"SELECT home FROM table_name_5 WHERE date = ""26 february 2008""" What is the total for danny allsopp?,"SELECT total FROM table_name_98 WHERE name = ""danny allsopp""" "Find the number of characteristics that the product ""flax"" has.","SELECT count(*) 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 = ""flax""" Which score has a record of 58–15–8?,"SELECT score FROM table_name_80 WHERE record = ""58–15–8""" How many object dates does episode #16 have?,SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16 what was Vincent Montmeat's support rate,"SELECT t2.support_rate FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.name = ""Vincent Montméat""" What is the Rank of the building that has a Highest floor larger than 50?,SELECT rank FROM table_name_57 WHERE highest_floor > 50 Who wrote the title that received 1.211 million total viewers?,"SELECT written_by FROM table_12419515_4 WHERE total_viewers__in_millions_ = ""1.211""" What are all the metropolis / municipality where mayor is helen c. De castro,"SELECT city___municipality FROM table_255812_1 WHERE mayor = ""Helen C. De Castro""" What is the percentage of Tukunga when La Crescenta-Montrose is 28%?,"SELECT tujunga FROM table_name_33 WHERE la_crescenta__montrose = ""28%""" Return the ids of the two department store chains with the most department stores.,SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2 What is the record when the time is 1:11?,"SELECT record FROM table_name_91 WHERE time = ""1:11""" "For a venue of Rome on July 30, 2009, what are the notes?","SELECT notes FROM table_name_59 WHERE venue = ""rome"" AND date = ""july 30, 2009""" "Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?","SELECT japanese_title FROM table_name_58 WHERE tv_station = ""tbs"" AND romaji_title = ""hana yori dango""" what is the date for catolog 88697185162 when the region is canada?,"SELECT date FROM table_name_9 WHERE catalog = 88697185162 AND region = ""canada""" What day in March is the game with a 48-13-11 record and a game number less than 72?,"SELECT SUM(march) FROM table_name_12 WHERE record = ""48-13-11"" AND game < 72" List the names of companies by ascending number of sales.,SELECT Name FROM company ORDER BY Sales_in_Billion List point level of inspections with no fine.,SELECT DISTINCT T1.point_level FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.fine = 0 What is the chassis for offy engine and 25th finish?,"SELECT chassis FROM table_name_12 WHERE engine = ""offy"" AND finish = ""25th""" List all the country in East Asia & Pacific region that have more than 2000000 urban population in 1970.,SELECT DISTINCT T1.CountryCode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Year = 1970 AND T1.Region = 'East Asia & Pacific' AND T2.Value > 2000000 AND t2.indicatorname = 'Urban population' Name the capacity for the torque of n·m (lb·ft) @4150,"SELECT capacity FROM table_name_90 WHERE torque__nm__rpm = ""n·m (lb·ft) @4150""" What are the first names and offices of history professors who don't have Ph.D.s?,"SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree ! = 'Ph.D.'" "List the name, origin and owner of each program.","SELECT name , origin , OWNER FROM program" "What was the distance of the race on saturday, august 23?","SELECT distance FROM table_name_59 WHERE date = ""saturday, august 23""" Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?,"SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = ""shō kei"" AND mission_type = ""congratulation"" AND year = 1718" "Among the businesses with a category of Local Services, what is the percentage of the business with less than 3 stars?","SELECT CAST(SUM(CASE WHEN T1.stars < 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) AS ""percentage"" FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T3.category_name LIKE 'Local Services'" What are the average prices of hotels grouped by their pet policy.,"SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn" How many viewers were there for the premier with 34,SELECT hk_viewers FROM table_10942714_1 WHERE premiere = 34 "When the percent is larger than 0.685, what is the average number of points scored?",SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685 Which Name has a Date of 11 june 1940?,"SELECT name FROM table_name_95 WHERE date = ""11 june 1940""" "What game in February 10, 2009 has the most points and a game number larger than 54?","SELECT MAX(points) FROM table_name_27 WHERE date = ""february 10, 2009"" AND game > 54" What college has pick 45,SELECT college FROM table_name_33 WHERE pick = 45 What was the score of the game at the Broadmoor Arena?,"SELECT score FROM table_name_38 WHERE arena = ""broadmoor arena""" "What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?","SELECT catalog FROM table_name_46 WHERE format = ""lp"" AND country = ""us"" AND label = ""sundazed"" AND date = ""2006""" Who is the lead on the Europe team that has a Liudmila Privivkova as the skip?,"SELECT lead FROM table_name_18 WHERE team = ""europe"" AND skip = ""liudmila privivkova""" "Which Wins has a Tournament of totals, and a Cuts made larger than 42?","SELECT AVG(wins) FROM table_name_2 WHERE tournament = ""totals"" AND cuts_made > 42" what is the number of weekly rank where the total is 1980000?,SELECT COUNT(weekly_rank) FROM table_17004367_3 WHERE total = 1980000 What is the construction of Olivier Panis' car that retired due to a collision?,"SELECT constructor FROM table_name_23 WHERE time_retired = ""collision"" AND driver = ""olivier panis""" What is draft detail of the document with id 7?,SELECT draft_details FROM Document_Drafts WHERE document_id = 7; "What is the minimum pick that drafted Pat Shires, with a round greater than 29 and an overall greater than 328?","SELECT MIN(pick) FROM table_name_87 WHERE overall > 328 AND name = ""pat shires"" AND round > 29" "What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?","SELECT SUM(upper_index_kcal__nm_3) FROM table_name_1 WHERE lower_index_mj__nm_3 > 47.91 AND fuel_gas = ""propylene"" AND upper_index_mj__nm_3 > 77.04" "What nation has a total less than 2, silver of 1 and bronze less than 1?",SELECT nation FROM table_name_32 WHERE total < 2 AND bronze < 1 AND silver = 1 What is the label for catalogue 7200222?,"SELECT label FROM table_name_77 WHERE catalogue = ""7200222""" "Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4?","SELECT AVG(floors) FROM table_name_9 WHERE pinnacle_height_ft__m_ = ""1,136 (346)"" AND pinn_rank > 4" How much does the cheapest Hard drive go for? | 240 is the price of the cheapest product whose name is Hard drive | and what of the cheapest memory?,SELECT price FROM Products where Name = 'Memory' order by price limit 1 Name the number of total votes for # of seats won being 30,SELECT _number_of_total_votes FROM table_19283982_4 WHERE _number_of_seats_won = 30 "Among the devices on which an event happened on 2016/5/1, how many of them are used by a male user?",SELECT COUNT(T1.device_id) FROM events AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T1.timestamp = '2016-05-01' AND T2.gender = 'M' "Which Date has an Opponent of @ mariners, and a Loss of hernández (0-1)?","SELECT date FROM table_name_25 WHERE opponent = ""@ mariners"" AND loss = ""hernández (0-1)""" "Which course has more teachers, course no.16 or course no.18?",SELECT course_id FROM taughtBy WHERE course_id = 11 OR course_id = 18 GROUP BY course_id ORDER BY COUNT(course_id) DESC LIMIT 1 what's the win with points for being 376,"SELECT won FROM table_12828723_3 WHERE points_for = ""376""" "Which Weight has a Power of kw (hp) at 1,800rpm, and a Name of 9 nc?","SELECT weight FROM table_name_98 WHERE power = ""kw (hp) at 1,800rpm"" AND name = ""9 nc""" What is the rank for Denmark?,"SELECT COUNT(rank) FROM table_name_33 WHERE nationality = ""denmark""" "Find the last name of the staff whose email address contains ""wrau"".","SELECT last_name FROM staff WHERE email_address LIKE ""%wrau%""" "Find all the songs whose name contains the word ""the"".",SELECT title FROM songs WHERE title LIKE '% the %' "Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3",SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 What are the venues of all the matches? Sort them in the descending order of match date.,SELECT venue FROM MATCH ORDER BY date DESC How many songs has Enrique recorded?,"SELECT count ( * ) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.artist_name = ""Enrique""" What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?,"SELECT date , zip_code FROM weather WHERE max_temperature_f >= 80" "What is IATA, when ICAO is ""VHHH""?","SELECT iata FROM table_name_8 WHERE icao = ""vhhh""" What are the names of the heads who are born outside the California state?,SELECT name FROM head WHERE born_state != 'California' Which Record label has a Title of 诀别诗?,"SELECT record_label FROM table_name_46 WHERE title = ""诀别诗""" List the population density per kilometer for the city of calintaan?,"SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = ""Calintaan""" List the name of staff who has been assigned multiple jobs.,SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*) > 1 List down all of the product names that were placed by sales person with id 10.,SELECT DISTINCT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.SalesPersonID = 10 How many authors are there?,SELECT count ( distinct authID ) fROM Authorship Find the name of different colleges involved in the tryout in alphabetical order.,SELECT DISTINCT cName FROM tryout ORDER BY cName Show names of ships involved in a mission launched after 1928.,SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 What is the name of the golfer that has the score of 73-65=138?,SELECT player FROM table_name_81 WHERE score = 73 - 65 = 138 WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?,"SELECT SUM(floors) FROM table_name_57 WHERE street_address = ""01.0 10 light street""" What is the H/A on 5 August 1990?,"SELECT h___a FROM table_name_46 WHERE date = ""5 august 1990""" "List all the order dates for the customer named ""Adrian Kunzelmann"".",SELECT T3.order_date FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Adrian' AND T4.last_name = 'Kunzelmann' How many models do not have the wifi function?,SELECT COUNT(*) FROM chip_model WHERE wifi = 'No' Find the last names of teachers who are not involved in any detention.,SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id Give the names of nations that speak both English and French.,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""French""" Show the location codes and the number of documents in each location.,"SELECT location_code , count(*) FROM Document_locations GROUP BY location_code" Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?,"SELECT engine FROM table_name_8 WHERE year > 2006 AND power = ""bhp (kw)""" What are the names of the races held after 2017 in Spain?,"SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2017" What is the language used most often in the songs?,SELECT languages FROM song GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1 What is the average number for Northgate which commenced its construction before 1951?,"SELECT AVG(number_on_map) FROM table_name_42 WHERE name = ""northgate"" AND construction_commenced < 1951" State all the district that Benjamin Contee has served before.,SELECT T2.district FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Benjamin' AND T1.last_name = 'Contee' "What are the names of all instructors with names that include ""dar""?",SELECT name FROM instructor WHERE name LIKE '%dar%' Name the maximum points for libertad,"SELECT MAX(points) FROM table_18607260_6 WHERE team = ""Libertad""" What name has the highest salary?,SELECT name FROM Employee order by salary desc limit 1 How many games do not have any sales in Europe?,SELECT COUNT(*) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Europe' AND T1.num_sales = 0 can you please tell me how many managers Scotland has?,SELECT count ( * ) FROM manager WHERE Country = 'Scotland' Please List out the Actors name?,SELECT Name FROM actor Who is the advisor of student with ID 1004?,SELECT Advisor FROM Student WHERE StuID = 1004 How many transactions do we have?,SELECT count(*) FROM Financial_transactions "What is the lowest draws that have losses greater than 0, an against less than 1728, melton as the ballarat fl, and byes less than 2?","SELECT MIN(draws) FROM table_name_66 WHERE losses > 0 AND against < 1728 AND ballarat_fl = ""melton"" AND byes < 2" What is the name of the product that was ordered recently by Darren Powers?,SELECT T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Darren Powers' ORDER BY T2.`Order Date` DESC LIMIT 1 What is the gayndah when perry is 304?,SELECT MAX(gayndah) FROM table_12526990_1 WHERE perry = 304 What place had 14:11.15 as the performance?,"SELECT place FROM table_name_33 WHERE performance = ""14:11.15""" "what is the lowest position when points is more than 11, name is ea schongau and lost is less than 3?","SELECT MIN(position) FROM table_name_47 WHERE points > 11 AND name = ""ea schongau"" AND lost < 3" What did United States place when the player was Raymond Floyd?,"SELECT place FROM table_name_84 WHERE country = ""united states"" AND player = ""raymond floyd""" What is the Higgins with a Scallon that is 2%?,"SELECT higgins FROM table_name_35 WHERE scallon = ""2%""" Please list the first names of the players with the most personal fouls in the 'NBL' league.,"SELECT T1.firstName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.lgID = 'NBL' GROUP BY T1.playerID, T1.firstName ORDER BY COUNT(PF) DESC LIMIT 1" What are the last names of students studying major 50?,SELECT LName FROM STUDENT WHERE Major = 50 How many US events did jason bennett win?,"SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = ""jason bennett""" "When do all the researcher role staff start to work, and when do they stop working?","SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'researcher'" "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.","SELECT campus FROM campuses WHERE LOCATION = ""Northridge"" AND county = ""Los Angeles"" UNION SELECT campus FROM campuses WHERE LOCATION = ""San Francisco"" AND county = ""San Francisco""" Please list the nick names of the coaches who are from the USA and have taught the Buffalo Sabres.,SELECT DISTINCT nameNick FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Buffalo Sabres' AND T3.birthCountry = 'USA' Who was the cyclist from Belgium?,"SELECT cyclist FROM table_name_85 WHERE nation = ""belgium""" What is the name of the perpetrator with the biggest weight.,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1 What is the party of these 4 drivers?,SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40 Can you list the composer who wrote the most rock genre songs?,"SELECT composer FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock"" group by composer order by count ( * ) desc limit 1" How many times is married non sales employees against single non-sales employees?,SELECT CAST(SUM(CASE WHEN T1.MaritalStatus = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.MaritalStatus = 'S' THEN 1 ELSE 0 END) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'EM' "Among the players born in Whitestone, how many of them have won the MVP?",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Most Valuable Player' AND T1.birthCity = 'Houston' What dorm id have the amenity id 904?,SELECT T2.dormid FROM has_amenity AS T2 where T2.amenid = 904 How many years did he finish in 59th?,"SELECT COUNT(avg_start) FROM table_1637041_2 WHERE position = ""59th""" Where else is TMobile active?,"SELECT T2.district FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID where T3.carrier = ""TMobile"" and T2.district ! = ""Alberta""" Name the total number of air dates for 102 episode,"SELECT COUNT(original_air_date) FROM table_15584067_7 WHERE no_in_series = ""102""" To whom does Steve Patterson report? Please give his or her full name.,"SELECT t2.firstName, t2.lastName FROM employees AS t1 INNER JOIN employees AS t2 ON t2.employeeNumber = t1.reportsTo WHERE t1.firstName = 'Steve' AND t1.lastName = 'Patterson'" What is the building for the r90 pennant?,"SELECT builder FROM table_name_16 WHERE pennant = ""r90""" What are the full names and salaries for any employees earning less than 6000?,"SELECT first_name , last_name , salary FROM employees WHERE salary < 6000" what is the country name? | what did you want to konw the country name ?give more info about this question | what are the country names which has both roller coasters with speed higher than 60 and roller coasters with speed lower than 55?,SELECT T1.name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55 "Which had an attendance of larger than 33,435?",SELECT result FROM table_name_26 WHERE attendance > 33 OFFSET 435 what is the city of south california,"SELECT city from Addresses where state_province_county = ""SouthCarolina""" How many subscribers have ended their trip at MLK Library and how many docks does that station have?,"SELECT COUNT(T1.id), T2.dock_count FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.end_station_name = 'MLK Library' AND T1.subscription_type = 'Subscriber' AND T2.dock_count = 19" what is the winner of meridiana,"SELECT owner FROM table_name_35 WHERE winner = ""meridiana""" "Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?",SELECT MIN(1965) FROM table_name_38 WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53 "Yes, what are ids of all passed exams?",SELECT registration_id FROM Student_Tests_Taken where test_result = 'Pass' What is the last name of the musician that has been at the back position the most?,"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = ""back"" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1" And how many volumes spent 3.0 weeks on top?,select count ( * ) from volume where weeks_on_top = 3.0 What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?,"SELECT t_papadopoulos FROM table_name_48 WHERE d_christofias = ""28.4%""" Could you limit it to all first graders?,"SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" Who was the driver with chassis 625 553 500?,"SELECT driver FROM table_name_72 WHERE chassis = ""625 553 500""" "For the team whose shirt sponsor is Krombacher, who is the team captain?","SELECT team AS Captain FROM table_name_12 WHERE shirt_sponsor = ""krombacher""" What is the only flight destination for flights from Albany?,SELECT DEST FROM Airlines WHERE ORIGIN = 'ABY' GROUP BY DEST Who was rose in the 1975 Broadway Revival?,"SELECT rose FROM table_name_60 WHERE productions = ""1975 broadway revival""" How many pages does a dream of spring have?,"SELECT pages FROM table_name_3 WHERE title = ""a dream of spring""" What is the birthday of the staff member with first name as Janessa and last name as Sawayn?,"SELECT date_of_birth FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What is Pinnacle height of chimney of orot rabin?,"SELECT pinnacle_height FROM table_name_31 WHERE name = ""chimney of orot rabin""" "Among all the users who received the high number of compliments, what percent received the 'cute' type of compliment.",SELECT CAST(SUM(CASE WHEN T1.compliment_type = 'cute' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.user_id) FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T2.number_of_compliments = 'High' Which facilities were inspected by Sarah Lindsey on 20th November 2012?,SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T2.inspection_date = '2012-11-20' AND T3.first_name = 'Sarah' AND T3.last_name = 'Lindsey' Sort the names of products in ascending order of their price.,SELECT Product_Name FROM Products ORDER BY Product_Price ASC "What is the dimensions in centimeters of a theater board who started in 1940, who was released after 2010?","SELECT board__cm_ FROM table_name_14 WHERE start = ""1940"" AND type = ""theater"" AND release > 2010" How many subordinates does employee ID 2 have and what is the biggest order in terms of value that his/her subordinates have created?,"SELECT COUNT(T1.EmployeeID), SUM(T3.Quantity * T3.UnitPrice) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.ReportsTo = 2 ORDER BY SUM(T3.UnitPrice * T3.Quantity) DESC LIMIT 1" "What is Prize, when Name is ""Valdemar Kwaysser""?","SELECT prize FROM table_name_58 WHERE name = ""valdemar kwaysser""" Thank you! What is Percival Cox's position?,"select position from physician where name = ""Percival Cox""" What is the highest power (hp) of an OM314 engine?,"SELECT MAX(power__hp_) FROM table_name_5 WHERE engine = ""om314""" "Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?","SELECT champion FROM table_name_47 WHERE location = ""morrisville, nc"" AND semi_finalist__number2 = ""clemson""" What is the start value for rank 11?,"SELECT start FROM table_name_31 WHERE rank = ""11""" Can you tell me highest value of the entry name?,SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 "Among the current legislators who served the term starting on 2013/1/3, how many of them are female?",SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.start = '2013-01-03' AND T1.gender_bio = 'F' What D Player with a Height of m (ft 4in) is in the Spandau 04 Club?,"SELECT name FROM table_name_5 WHERE club = ""spandau 04"" AND height = ""m (ft 4in)"" AND pos = ""d""" What candidate has a result of being re-elected in the Texas 7 District?,"SELECT candidates FROM table_1342218_43 WHERE result = ""Re-elected"" AND district = ""Texas 7""" How many staff are there?,SELECT count ( staff_id ) from Project_Staff What is the percentage of games that were released on PS4 in 2014 among all platforms?,SELECT CAST(COUNT(CASE WHEN T2.platform_name = 'PS4' THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id WHERE T1.release_year = 2014 Show the name of track with most number of races.,SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY COUNT(*) DESC LIMIT 1 Please give the highest product cost of a purchase order.,SELECT ActualCost FROM TransactionHistory WHERE TransactionType = 'P' ORDER BY ActualCost DESC LIMIT 1 What details do we have on the students who registered for courses most recently?,SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1 how many debit cards there,"SELECT count ( * ) from Customers_Cards where card_type_code = ""Debit""" Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.,"SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid'" How many of the businesses are in Surprise?,SELECT COUNT(business_id) FROM Business WHERE city = 'Surprise' Which grants are described both 'regular' and 'initial application'?,SELECT * FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT * FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application' Find the name and position of physicians who prescribe some medication whose brand is X?,"SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" Which team played on April 1?,"SELECT team FROM table_13619053_9 WHERE date = ""April 1""" How many stages were there where the winner and the points classification were Alberto Contador?,"SELECT COUNT(stage) FROM table_15294880_2 WHERE winner = ""Alberto Contador"" AND points_classification = ""Alberto Contador""" What type of award is the theatre world award?,"SELECT award FROM table_name_34 WHERE category = ""theatre world award""" Show the average age for male and female students.,"SELECT AVG(age), sex FROM Student GROUP BY sex" Which dance style had a draw smaller than 15 and 18 points?,SELECT dance_styles FROM table_name_54 WHERE draw < 15 AND points = 18 What are the different models created by either the car maker General Motors or weighed more than 3500?,SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500; "What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?","SELECT 2011 FROM table_name_34 WHERE 2008 = ""a"" AND 2012 = ""a"" AND 2009 = ""a"" AND tournament = ""paris masters""" What event has the result of 7th (5-6)?,"SELECT event FROM table_name_82 WHERE result = ""7th (5-6)""" Name the accrediatation for southeast technical institute,"SELECT accreditation FROM table_2076557_2 WHERE school = ""Southeast Technical Institute""" What is the total number of languages used in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba""" "Among the orders placed by Pacific Ltd, how many orders have been applied 5% discount ?",SELECT SUM(CASE WHEN T1.`Discount Applied` = 0.05 AND T2.`Customer Names` = 'Pacific Ltd' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID What are the names of all employees who have a certificate to fly Boeing 737-800?,"SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800""" What is the largest major?,SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1 What are all values for 24 mountains when direction is Northeast?,"SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = ""Northeast""" How many characters are there in Hamlet?,SELECT COUNT(DISTINCT T3.character_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T1.Title = 'Hamlet' Which deputy prime minister left office in 2004 and was in the 7th legislature?,"SELECT deputy_prime_minister FROM table_name_8 WHERE term = ""7th legislature"" AND left_office = ""2004""" How many file formats are supported?,SELECT count ( distinct formats ) FROM files Name the won for try bonus of 10,"SELECT won FROM table_13741576_4 WHERE try_bonus = ""10""" Which player had a height of 6-0?,"SELECT player FROM table_11734041_11 WHERE height_in_ft = ""6-0""" "Give the number of users who joined Yelp since ""2004"".",SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2004 Find the average and minimum weight for each gender.,"SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex" When has a Tie no of 15?,"SELECT date FROM table_name_17 WHERE tie_no = ""15""" Looking at the claim for 2018-06-14 what date was it settled?,SELECT Date_Claim_Settled FROM Claims where Date_Claim_Made = '2018-06-14' Retrieve all the first and last names of authors in the alphabetical order of last names.,"SELECT fname, lname FROM authors ORDER BY lname" What was the record for the date above 27 and an opponent of the St. Louis Blues?,"SELECT record FROM table_name_33 WHERE date > 27 AND opponent = ""st. louis blues""" To which segment belongs the customer that made the most orders in April 1994?,"SELECT T.c_mktsegment FROM ( SELECT T2.c_mktsegment, COUNT(T1.o_orderkey) AS num FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_orderdate LIKE '1994-04-%' GROUP BY T1.o_custkey ) AS T ORDER BY T.num DESC LIMIT 1" When portsmouth is the city of license who is the licensee?,"SELECT licensee FROM table_1949746_1 WHERE city_of_license = ""Portsmouth""" "Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?","SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = ""al anbar governorate"" AND seats_2005 < 9" What are the names of departments that have at least one employee.,SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id Return the average number of weeks on top for volumes by artists that are at most 25 years old.,SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 "what is the total number of opponent where date is november 23, 1980","SELECT COUNT(opponent) FROM table_11406866_2 WHERE date = ""November 23, 1980""" What studio has 6 as the rank?,SELECT studio FROM table_name_32 WHERE rank = 6 "What are the emails and phone numbers of all customers, sorted by email address and phone number?","SELECT email_address , phone_number FROM customers ORDER BY email_address , phone_number" Name the number of seats to be won being % of popular vote at 6.88%,"SELECT _number_of_seats_to_be_won FROM table_19283982_4 WHERE _percentage_of_popular_vote = ""6.88%""" Who did the Blue Jays lose to on July 16?,"SELECT loss FROM table_name_15 WHERE date = ""july 16""" How many Gold medals did Great Britain with a Total of more than 2 medals receive?,"SELECT MIN(gold) FROM table_name_83 WHERE nation = ""great britain"" AND total > 2" Who did the high rebounds in the game where Douglas (28) did the high points?,"SELECT high_rebounds FROM table_18894744_6 WHERE high_points = ""Douglas (28)""" Please list the IDs of the users who have a high number of followers.,SELECT user_id FROM Users WHERE user_fans LIKE 'High' GROUP BY user_id "What is the name of the player with an overall less than 209 for the Victoriaville tigres (qmjhl), and a Round of 1?","SELECT player FROM table_name_85 WHERE overall < 209 AND club_team = ""victoriaville tigres (qmjhl)"" AND round = 1" "What's the total when the champions league was 0, the coppa italia was less than 0, and the Serie A was more than 1?",SELECT SUM(total) FROM table_name_62 WHERE champions_league = 0 AND serie_a > 1 AND coppa_italia < 0 What are the names of all cities and states?,SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses How many customers have filed complaints?,SELECT count ( * ) FROM customers WHERE customer_id IN ( SELECT customer_id FROM complaints ) "Name the team for united center 22,147","SELECT team FROM table_22669044_9 WHERE location_attendance = ""United Center 22,147""" What was the stats of Trinidad and Tobago,"SELECT wind__m_s_ FROM table_1231316_4 WHERE country = ""Trinidad and Tobago""" What about for Graciela?,"SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Graciela""" "When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?","SELECT crowd FROM table_name_1 WHERE date = ""19 july 1980"" AND away_team = ""footscray""" How many cars in the database are originated from Europe?,SELECT COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'Europe' What was the average tonnage for the Siljan ship from Sweden?,"SELECT AVG(tonnage) FROM table_name_97 WHERE nationality = ""sweden"" AND name_of_ship = ""siljan""" What is the job occupation of Zach?,SELECT job FROM person WHERE name = 'Zach' How many comedies did Shakespeare create?,SELECT COUNT(id) FROM works WHERE GenreType = 'Comedy' What is the max salary for 'Tracy Coulter' if he/she stays on his/her position?,SELECT T2.maxsalary FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'Tracy' AND T1.lastname = 'Coulter' Which company had profits of 26.9?,"SELECT company FROM table_1682026_2 WHERE profits__billion_$_ = ""26.9""" Which Series has a Date of may 2?,"SELECT series FROM table_name_7 WHERE date = ""may 2""" What is the 1998 value if the 2000 value is 25?,"SELECT 1998 FROM table_name_3 WHERE 2000 = ""25""" From which hometowns did no gymnasts come from?,SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID What is every missile type with a code and location of M-20 Harbor Drive?,"SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = ""M-20 Harbor Drive""" What is the name of the highest mountain?,SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 What kind of locomotive is Winston Churchill?,"SELECT locomotive_type FROM table_name_93 WHERE name = ""winston churchill""" What is the zip code of staff with first name as Janessa and last name as Sawayn?,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Which college did kevin landolt attend?,"SELECT college FROM table_name_10 WHERE name = ""kevin landolt""" "Between Deering and Near West districts, which district reported the most number of crime incidents that happened in a library?","SELECT T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.district_name IN ('Deering', 'Near West') AND T2.location_description = 'LIBRARY' GROUP BY T1.district_name ORDER BY COUNT(T2.district_no) DESC LIMIT 1" How many rentals did Ella Oliver hire in June 2016?,SELECT COUNT(T1.rental_id) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'ELLA' AND T2.last_name = 'ELLA' AND date(T1.rental_date) BETWEEN '2005-06-01' AND '2005-06-30' "For each country, what is the average elevation of that country's airports?","SELECT avg(elevation) , country FROM airports GROUP BY country" How many laps did mike spence complete grids above 12?,"SELECT COUNT(laps) FROM table_name_85 WHERE driver = ""mike spence"" AND grid > 12" "Who was the runner-up for the Bulgaria Open, before 2007?","SELECT score FROM table_name_40 WHERE year < 2007 AND outcome = ""runner-up"" AND tournament = ""bulgaria open""" Count the total number of apartment bookings.,SELECT count(*) FROM Apartment_Bookings just locations,SELECT distinct location FROM wrestler How many airlines do you have?,SELECT count ( * ) FROM airlines "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?","SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1" Show all student ids who are older than 20.,SELECT StuID FROM Student WHERE age > 20 what is the finishes when points is more than 337 and starts is more than 26?,SELECT SUM(finishes) FROM table_name_90 WHERE points > 337 AND starts > 26 List the carriers of devices in ascending alphabetical order.,SELECT Carrier FROM device ORDER BY Carrier ASC What is the name of the customer of ship ID 1147?,SELECT T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1147' Find the average ranking for each player and their first name.,"SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name" What is the count of different game types?,SELECT count(DISTINCT gtype) FROM Video_games Please list the capital cities of the countries with an inflation rate under 2.,SELECT T1.Capital FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Inflation < 2 What is the BMI of David Bornhammar?,SELECT CAST(T2.weight_in_kg AS REAL) / (CAST(T3.height_in_cm AS REAL) / 100 * (CAST(T3.height_in_cm AS REAL) / 100)) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id INNER JOIN height_info AS T3 ON T1.height = T3.height_id WHERE T1.PlayerName = 'David Bornhammar' What is the average year for a user to be upgraded to elite user?,SELECT CAST(SUM(T2.year_id - T1.user_yelping_since_year) AS REAL) / COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?","SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details != 'Schmidt , Kertzmann and Lubowitz'" "What is Syracuse, when Buffalo is Oatka Creek Shale, and when Albany is Berne?","SELECT syracuse FROM table_name_90 WHERE buffalo = ""oatka creek shale"" AND albany = ""berne""" In what Week was the Result W 27-24?,"SELECT MAX(week) FROM table_name_1 WHERE result = ""w 27-24""" What is the year for the United Arab Emirates?,"SELECT COUNT(year) FROM table_name_19 WHERE country = ""united arab emirates""" What is the rank by average for the team who averaged 22.8?,"SELECT MIN(rank_by_average) FROM table_25391981_3 WHERE average = ""22.8""" In what season did Pons Racing compete?,"SELECT season FROM table_27571406_1 WHERE team_name = ""Pons Racing""" "What is the percentage for manhattan 45,901?","SELECT COUNT(_percentage) FROM table_1108394_24 WHERE manhattan = ""45,901""" Which railways do not have trains? | Did you mean the object number of railways that do not have any train? | Yes,SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN ( SELECT Railway_ID FROM train ) Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.,"SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = ""PIT""" Please show me the headquarters with at least two companies in the banking industry?,SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count ( * ) > = 2 What was Jack McGrath's finish number in 1954?,"SELECT finish FROM table_name_95 WHERE year = ""1954""" When did Mrs. Joye Homenick receive her most recent influenza seasonal vaccine?,SELECT T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Influenza seasonal injectable preservative free' AND T1.first = 'Joye' AND T1.last = 'Homenick' ORDER BY T2.DATE DESC LIMIT 1 "what are the name of the wrestler | Would you like to know the names of all wrestlers with location Tokyo, Japan? | yes","SELECT name FROM wrestler WHERE LOCATION = 'Tokyo , Japan'" how many driver are presented on the table,select count ( * ) from driver What is the capital of the 3rd most populated country in Asia and what is the capital city's ratio in percentage (%) against the overall population of the country?,"SELECT T4.Capital, CAST(T3.Population AS REAL) * 100 / T4.Population FROM city AS T3 INNER JOIN ( SELECT T1.Capital , T1.Population FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country WHERE T2.Continent = 'Asia' ORDER BY T1.Population DESC LIMIT 2, 1 ) AS T4 ON T3.Name = T4.Capital" What is the most common condition among the patients who received influenza seasonal injectable preservative free immunization?,SELECT T2.DESCRIPTION FROM immunizations AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.DESCRIPTION = 'Influenza seasonal injectable preservative free' GROUP BY T2.DESCRIPTION ORDER BY COUNT(T2.DESCRIPTION) DESC LIMIT 1 "When did the institution located in Lewiston, Maine join the conference? ","SELECT joined FROM table_261931_2 WHERE location = ""Lewiston, Maine""" Calculate the percentage of people who were born after 1970 and from California.,"SELECT CAST(SUM(CASE WHEN birth_region = 'California' AND SUBSTR(birthdate, 1, 4) > '1970' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(birthdate) FROM Person;" Sum up the votes from star 1 to 5 for all of the contestants in Blimp Award.,"SELECT T2.stars, SUM(T2.stars) FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.award_category = 'Blimp Award' AND T2.stars BETWEEN 1 AND 5 GROUP BY T2.stars;" Return the maximum and minimum population among all counties.,"SELECT max(Population) , min(Population) FROM county" "Which Win percentage has Points smaller than 472, and a Record (W–L–T/OTL) of 140–220–40?","SELECT AVG(win_percentage) FROM table_name_79 WHERE points < 472 AND record__w_l_t___otl_ = ""140–220–40""" What is the name of the airport with the lowest altitude?,SELECT name FROM airports ORDER BY elevation LIMIT 1 Who was the home team when the away team is Carlton?,"SELECT home_team FROM table_16388478_4 WHERE away_team = ""Carlton""" "How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?","SELECT COUNT(play_by_play) FROM table_17628022_2 WHERE pregame_analysts = ""Darren Flutie, Eric Tillman and Greg Frers""" List all opponents from the 4-4 scoring game.,"SELECT opponent FROM table_24561550_1 WHERE record = ""4-4""" Who is the customer who purchased the highest number of products in a single order?,SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T1.CompanyName ORDER BY COUNT(T3.ProductID) DESC LIMIT 1 What competition has 17-1 as the result?,"SELECT competition FROM table_name_38 WHERE result = ""17-1""" "Which location is in Oregon, ranked under 121, and contains Mount McLoughlin?","SELECT location FROM table_name_71 WHERE state = ""oregon"" AND rank < 121 AND mountain_peak = ""mount mcloughlin""" Which state was the tweet `tw-685681052912873473` from? Give the state code.,SELECT T2.StateCode FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.TweetID = 'tw-685681052912873473' Find the name of the most popular party form.,SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1 Can you tell me the Venue that has the Position in 2005 of 8?,"SELECT venue FROM table_name_77 WHERE position_in_2005 = ""8""" Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.,SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' "What are the name, origin and owner of each program?","SELECT name , origin , OWNER FROM program" What is the city with the most number of flagship stores?,SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1 Give the flight numbers of flights leaving from Aberdeen.,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" Name the team with a tie number of 6.,"SELECT date FROM table_name_51 WHERE tie_no = ""6""" Find the name of customer who has the highest amount of loans.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1 How would an Italian say the Andalusian word coche?,"SELECT italian FROM table_name_78 WHERE andalusian = ""coche""" Name the trine dehli cleve for english waltz,"SELECT MIN(trine_dehli_cleve) FROM table_28677723_14 WHERE style = ""English Waltz""" In cook county Kerry# is?,"SELECT kerry_number FROM table_1302886_1 WHERE county = ""Cook""" What are the names of all the branches?,SELECT Name FROM branch How many policies has she been involved in ?,SELECT count ( * ) FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1 What was the term of Bruce Biers Kendall whose hometown is Anchorage?,"SELECT term FROM table_name_6 WHERE hometown = ""anchorage"" AND name = ""bruce biers kendall""" For which Game 4 did Michael O'Connor play during Game 1?,"SELECT game_4 FROM table_name_27 WHERE game_1 = ""michael o'connor""" What is the score of the game that holds a record of 80-61?,"SELECT score FROM table_name_69 WHERE record = ""80-61""" When the crowd was 8642 what was the away team's score?,SELECT away_team AS score FROM table_16388439_2 WHERE crowd = 8642 What was the score in the tournament against Ekaterina Makarova?,"SELECT score FROM table_name_21 WHERE opponent = ""ekaterina makarova""" What is the most common type of compliments that a user has received from other users?,SELECT T2.compliment_type FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id GROUP BY T2.compliment_type ORDER BY COUNT(T2.compliment_type) DESC LIMIT 1 "How many times more for the papers that were presented at the ""International Conference on Thermoelectrics"" conference than ""International Conference on Wireless Networks, Communications and Mobile Computing“ conference?","SELECT CAST(SUM(CASE WHEN T2.FullName = 'International Conference on Thermoelectrics' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.FullName = 'International Conference on Wireless Networks, Communications and Mobile Computing' THEN 1 ELSE 0 END) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id" "What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games played?","SELECT MAX(points) FROM table_name_10 WHERE tied = ""4"" AND goals_for < 257 AND games > 72" Please list the top 3 cities with the most number of tweets posted in Canada.,"SELECT T.City FROM ( SELECT T2.City, COUNT(T1.TweetID) AS num FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.Country = 'Canada' GROUP BY T2.City ) T ORDER BY T.num DESC LIMIT 3" Hello! Can you give me a list of all of the forenames and surnames of the various drivers?,"SELECT forename , surname FROM drivers" How many FG percent values are associated with 59 assists and offensive rebounds under 40?,SELECT COUNT(fg_pct) FROM table_name_21 WHERE asst = 59 AND off_reb < 40 What is the ID of the project with the least number of documents?,SELECT project_id FROM Documents GROUP BY project_id ORDER BY count ( * ) ASC LIMIT 1 When 62 is the number in series who is the writer?,"SELECT written_by FROM table_27657925_1 WHERE no_in_series = ""62""" What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?,"SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" What is the smallest number of tries with conversions more than 0?,SELECT MIN(tries) FROM table_name_22 WHERE conversions > 0 How many professors are there?,SELECT count ( * ) from professor "Between Rome and Juliet, which character was mentioned the most in the The Tragedy of Romeo and Juliet? Calculate for Romeo and Juliet's individual amount of appearance in percentage against the overall number of characters that appeared in the said work.","SELECT SUM(IIF(T4.CharName = 'Romeo', 1, 0)), SUM(IIF(T4.CharName = 'Juliet', 1, 0)), CAST(SUM(IIF(T4.CharName = 'Romeo', 1, 0)) + SUM(IIF(T4.CharName = 'Juliet', 1, 0)) AS REAL) * 100 / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id" What is the document type code with most number of documents?,SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 list all the game type,SELECT gtype FROM Video_games Show the start dates and end dates of all the apartment bookings.,"SELECT booking_start_date , booking_end_date FROM Apartment_Bookings" What are the average number of all the male students (sex with M) from each city?,"SELECT count ( * ) , city_code FROM student WHERE sex = 'M' GROUP BY city_code" Who were the candidates when Noble Jones Gregory was incumbent?,"SELECT candidates FROM table_1342270_17 WHERE incumbent = ""Noble Jones Gregory""" How many countries are there in total?,SELECT count(*) FROM country "Show the attendances of the performances at location ""TD Garden"" or ""Bell Centre""","SELECT Attendance FROM performance WHERE LOCATION = ""TD Garden"" OR LOCATION = ""Bell Centre""" What average year contains the title of machineries of joy vol. 4?,"SELECT AVG(year) FROM table_name_54 WHERE title = ""machineries of joy vol. 4""" "Please list the names of all the producers in the movie ""Pirates of the Caribbean: At World's End"".",SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Producer' what is the average number of days | did you mean the average days held by all wrestlers? | yes,SELECT avg ( Days_held ) FROM wrestler List down the number of inhabitants of customers with a divorced marital status and older than 50 years old.,SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.MARITAL_STATUS = 'Divorced' AND T1.age < 50 Which venue had an against score smaller than 18 when the opposing team was North Auckland?,"SELECT venue FROM table_name_84 WHERE against < 18 AND opposing_team = ""north auckland""" "What are the width and height of the bounding box of the object with ""keyboard"" as their object class and (5, 647) as their coordinate?","SELECT T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'keyboard' AND T1.X = 5 AND T1.Y = 647" "Can you please list the grapes, appellations, and names of wines whose score is higher than 93?","SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93" Which movie has the keyword 'extremis?',SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'extremis' Find the name of the department that has the biggest number of students minored in?,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) DESC LIMIT 1 What are the id and name of mountains that have photos and height above 4000?,"SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000" What about by Susan?,"SELECT count ( * ) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Susan""" How many wins did Hobbs had a 15th finish at poles 0?,"SELECT wins FROM table_name_89 WHERE poles = ""0"" AND final_placing = ""15th""" When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there?,"SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = ""Olympikus"" AND period = ""2011""" "What is the attendance in a week larter than 4, on December 6, 1992?","SELECT attendance FROM table_name_80 WHERE week > 4 AND date = ""december 6, 1992""" How many premierships for the queensland raceway?,"SELECT premierships FROM table_name_40 WHERE venue = ""queensland raceway""" Count the number of customers.,SELECT count(*) FROM customers What Team had a 1:24.152 Best?,"SELECT team FROM table_name_51 WHERE best = ""1:24.152""" Who were those churches organized by?,SELECT Organized_by FROM church ORDER BY open_date Asc LIMIT 3 List all customer names with orders that are disputed.,"SELECT t3.firstName, t3.lastName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber INNER JOIN employees AS t3 ON t2.salesRepEmployeeNumber = t3.employeeNumber WHERE t1.status = 'Disputed'" What is the number of the series written by Teresa Lin? ,"SELECT COUNT(no_in_series) FROM table_26801821_1 WHERE written_by = ""Teresa Lin""" What are the names of each district?,select district_name from district what is the pick for robert griffin iii?,"SELECT pick FROM table_name_97 WHERE name = ""robert griffin iii""" How many counties are there in total?,SELECT count(*) FROM county Count the number of regions.,SELECT count(*) FROM region What character is in over 22 episodes?,SELECT character FROM table_name_91 WHERE episodes > 22 Which home has a Date of november 7?,"SELECT home FROM table_name_16 WHERE date = ""november 7""" Which courses ran in Fall 2009 and in Spring 2010?,SELECT * FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 What is the releases number under Season 2?,"SELECT release FROM table_16279520_1 WHERE timeline = ""Season 2""" Which transportation method is used the most often to get to tourist attractions?,SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1 Calculate the percentage of complaints made by Google account client in server ZOHARI.,SELECT CAST(SUM(CASE WHEN T1.email LIKE '%@gmail.com' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.email) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.server = 'ZOHARI' "What are the personal name, family name, and author ID of the course author who teaches the most courses?","SELECT T1.personal_name , T1.family_name , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1" Show the manager name for gas stations belonging to the ExxonMobil company.,SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil' What is the Result of the Game on April 9?,"SELECT result FROM table_name_87 WHERE date = ""april 9""" What is the name of the building with the largest height?,SELECT name FROM buildings ORDER BY Height DESC LIMIT 1 Please list the dates of the flights that were cancelled due to the most serious reason.,SELECT FL_DATE FROM Airlines WHERE CANCELLATION_CODE = 'A' GROUP BY FL_DATE What are the names of all students who tried out in alphabetical order?,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName Name the least bronze for silver being less than 0,SELECT MIN(bronze) FROM table_name_45 WHERE silver < 0 Is the right halfback player a starter?,"SELECT starter FROM table_25517718_3 WHERE position = ""Right halfback""" What is the smallest width for a frame size of 5k and a height shorter than 2700?,"SELECT MIN(width) FROM table_name_18 WHERE frame_size = ""5k"" AND height < 2700" what is Dan's friend's name and age?,"SELECT DISTINCT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan'" What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo?,"SELECT nation FROM table_name_24 WHERE sport = ""weightlifting"" AND pinyin = ""kùkè qúndǎo""" State the name of the optional ingredient of no.1397 recipe.,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.recipe_id = 1397 AND T2.optional = 'TRUE' List the names of the first andthe second teams that played a match with the point of the winning margin lower than the 30% of the average winning margin of the matches held in 2011.,"SELECT DISTINCT CASE WHEN T1.Win_Margin < ( SELECT AVG(Win_Margin) * 0.3 FROM Match WHERE Match_Date LIKE '2011%' ) THEN T2.Team_Name END, CASE WHEN T1.Win_Margin < ( SELECT AVG(Win_Margin) * 0.3 FROM Match WHERE Match_Date LIKE '2011%' ) THEN T3.Team_Name END FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 INNER JOIN Team AS T3 ON T3.Team_Id = T1.Team_2 WHERE T1.Match_Date LIKE '2011%'" Which date has the most ordered quantity? What is the total order quantity on that day?,"SELECT ord_date, SUM(qty) FROM sales GROUP BY ord_date ORDER BY SUM(qty) DESC LIMIT 1" "Oh sorry! I am all mixed up! Third time's a charm! Can you provide me with the lot details for all lots that belong to investors which belong to the 'investor id' category of ""l""?","SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = ""l""" What are the names of the technicians aged either 36 or 37?,SELECT Name FROM technician WHERE Age = 36 OR Age = 37 "Among all orders shipped, calculate the percentage of orders shipped at least 3 days before the required date.",SELECT COUNT(CASE WHEN JULIANDAY(t1.shippeddate) - JULIANDAY(t1.requireddate) > 3 THEN T1.customerNumber ELSE NULL END) FROM orders AS T1 INNER JOIN orderdetails AS T2 ON T1.orderNumber = T2.orderNumber WHERE T1.status = 'Shipped' How many authors were associated with the Microsoft Research when paper number 1 was written?,SELECT COUNT(PaperId) FROM PaperAuthor WHERE Affiliation LIKE '%Microsoft Research%' "List down the business ID and attribute value of the attribute name of ""payment_types_visa"".","SELECT T2.business_id, T2.attribute_value FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name = 'payment_types_visa'" Which is the largest average number when the swimsuit is 9.4 and the evening gown stat is less than 9.486?,SELECT MAX(average) FROM table_name_75 WHERE swimsuit = 9.4 AND evening_gown < 9.486 What school/club did the player who layed shooting guard attend?,"SELECT school_club_team FROM table_name_35 WHERE position = ""shooting guard""" How many restaurants' owners are in California?,SELECT COUNT(owner_state) FROM businesses WHERE owner_state = 'CA' List the id of students who attended some courses?,SELECT student_id FROM student_course_attendance What are the names of everybody sorted by age in descending order?,SELECT name FROM Person ORDER BY age DESC "What is the highest number of bronze when silver is larger than 0, rank is larger than 3?",SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 AND rank > 3 "Which class had a machine of RS125R, points over 113, and a rank of 4th?","SELECT class FROM table_name_30 WHERE machine = ""rs125r"" AND points > 113 AND rank = ""4th""" "What is the host year of city ""Taizhou ( Zhejiang )""?","SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = ""Taizhou ( Zhejiang )""" "What is the first, middle, and last name of the first student to register?","SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1" Find the product of enzyme id 1?,SELECT product FROM enzyme where id = 1 Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.,"SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" What coutry had a rampaged killing 14 in 1965?,"SELECT country FROM table_name_29 WHERE killed = ""14"" AND year = 1965" How long is the Fairy Bridge?,"SELECT length_meters from bridge where name = ""Fairy Bridge""" "List the names of all the producers in the movie ""Pirates of the Caribbean: At World's End"".",SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND T2.job = 'Producer' What are their prices? | Do you mean typical buying price or typical selling price? | Buying price.,SELECT T2.typical_buying_price FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' What are the mascots for schools with enrollments above the average?,SELECT mascot FROM school WHERE enrollment > (SELECT avg(enrollment) FROM school) Which policy type has the most records in the database?,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1 What is the school and organization enrolled by student211?,"SELECT T2.school, T1.organ FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T2.name = T1.name WHERE T1.name = 'student211'" What rounds did Gordini participate in?,"SELECT rounds FROM table_name_74 WHERE constructor = ""gordini""" "Which Capacity has a School of windlehurst school, and an Ofsted smaller than 131889?","SELECT SUM(capacity) FROM table_name_63 WHERE school = ""windlehurst school"" AND ofsted < 131889" What Nationality has the Player of Marcus Walker?,"SELECT nationality FROM table_name_19 WHERE player = ""marcus walker""" Name the entrant for 1975 and chassis of hill gh1,"SELECT entrant FROM table_name_25 WHERE year = 1975 AND chassis = ""hill gh1""" "Name the venue for march 28, 2008","SELECT venue FROM table_name_47 WHERE date = ""march 28, 2008""" What was the released date of Polarium?,"SELECT released_date FROM table_1616608_2 WHERE western_title = ""Polarium""" "WHAT IS THE PLAYER WITH TOTAL LESS THAN 151, TO PAR OF 8?",SELECT player FROM table_name_41 WHERE total < 151 AND to_par = 8 When did Essendon play as the home team?,"SELECT date FROM table_name_70 WHERE home_team = ""essendon""" "Describe the hero, director, and the release date of Mulan.","SELECT T1.hero, T2.director, T1.release_date FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.movie_title = 'Mulan'" "How many scenes are there in the 5th act of ""History of Henry VIII""?",SELECT SUM(T2.Scene) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 5 AND T1.LongTitle = 'History of Henry VIII' Who played drums for the Gray Race album?,"SELECT drums FROM table_name_89 WHERE album = ""the gray race""" What is the Record when the high rebounds was Antonio Davis (9)?,"SELECT record FROM table_name_5 WHERE high_rebounds = ""antonio davis (9)""" Which championship had an oppenent of mario ančić in the final?,"SELECT championship FROM table_name_8 WHERE opponent_in_the_final = ""mario ančić""" "What model has a builder of zhuzhou, and a power output of 9600 (kw)?","SELECT model FROM table_name_20 WHERE builder__family_ = ""zhuzhou"" AND power_output__kw_ = ""9600""" What is Cristiano Ronaldo's birthday?,"SELECT birthday from Player where player_name = ""Cristiano Ronaldo""" Which customers have made at least two orders? Give me each customer name and number of orders made.,"SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2" "Hello, how many drivers are there in total?",SELECT count ( * ) from drivers "In the least populated community, what is the most common location of all the reported crime incidents?",SELECT T2.location_description FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.population = ( SELECT MIN(population) FROM Community_Area ) AND T2.location_description IS NOT NULL GROUP BY T2.location_description Which team is from earlier than 1994?,SELECT team FROM table_name_53 WHERE year < 1994 "On broadcast date is 25april1970, how many people tuned in?","SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = ""25April1970""" Which aircraft won the most matches?,SELECT winning_aircraft FROM match group by winning_aircraft order by count ( * ) desc limit 1 What is the id of the store that has the most items in inventory?,SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1 Who won the mens doubles when wang hao won the mens singles?,"SELECT mens_doubles FROM table_28138035_26 WHERE mens_singles = ""Wang Hao""" Name the date successor seated for successor being vacant,"SELECT date_successor_seated FROM table_2417330_4 WHERE successor = ""Vacant""" How many crimes had happened in Central Chicago?,SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' "Which Elector has an Order of cardinal-priest, and a Nationality of french?","SELECT elector FROM table_name_74 WHERE order = ""cardinal-priest"" AND nationality = ""french""" What is the total time for all lessons taught by Janessa Sawayn?,"SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Hello! Can you show me a list of all of the hometowns?,SELECT Hometown FROM people "Among products bought by Kathryn Ashe, what is the name of the product with the highest quantity?",SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.FirstName = 'Kathryn' AND T3.LastName = 'Ashe' ORDER BY T2.Quantity DESC LIMIT 1 What was Collingwood's score as the home team?,"SELECT home_team AS score FROM table_name_54 WHERE home_team = ""collingwood""" What is the party where the incumbent is overton brooks?,"SELECT party FROM table_1342198_18 WHERE incumbent = ""Overton Brooks""" What is the total number of adventure games released in 2005?,SELECT COUNT(DISTINCT T3.id) FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Adventure' AND T1.release_year = 2005 "Show the zip code of the county with name ""Howard"".","SELECT Zip_code FROM county WHERE County_name = ""Howard""" What was the percentage of votes for coakley when kennedy won 1.6%,"SELECT coakley__percentage FROM table_24115349_4 WHERE kennedy__percentage = ""1.6%""" Calculate the difference between the average satisfaction of the students with high salaries and no salary.,SELECT AVG(T2.sat) - ( SELECT AVG(T2.sat) FROM RA AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'free' ) AS diff FROM RA AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high' Show the name for regions and the number of storms for each region.,"SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id" Please list the names of the movies that received more than 20 likes?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.critic_likes > 20 "What is the highest profit order in the East superstore of customers from Houston, Texas?",SELECT T1.`Order ID` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.City = 'Houston' AND T2.State = 'Texas' ORDER BY T1.Profit DESC LIMIT 1 What is the venue when fitzroy was the away team?,"SELECT venue FROM table_name_80 WHERE away_team = ""fitzroy""" What was the record after game 20?,SELECT record FROM table_20010140_9 WHERE game = 20 How many different scientists are assigned to any project?,SELECT count(DISTINCT scientist) FROM assignedto Calculate the percentage of games published by 'Brash Entertainment'?,SELECT CAST(COUNT(CASE WHEN T1.publisher_name = 'Brash Entertainment' THEN T2.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id "Who is the arranger for ""I KIssed a Girl""?","SELECT arranger_s_ FROM table_28715942_6 WHERE track = ""I Kissed a Girl""" "Among the product lists in order ID 10337, write down the product names and suppliers which had the highest in reorder level.","SELECT T2.ProductName, T1.CompanyName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN `Order Details` AS T3 ON T2.ProductID = T3.ProductID WHERE T3.OrderID = 10337 ORDER BY T2.ReorderLevel DESC LIMIT 1" What is the name and city of the airport that the most routes end at?,"SELECT T1.name , T1.city , T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1" Which champion has a Group Stage LLWS in Russellville?,"SELECT champion FROM table_name_16 WHERE llws = ""group stage"" AND city = ""russellville""" List the 1st air date for season 12.,SELECT original_air_date FROM table_27437601_2 WHERE no_in_season = 12 What are the first names for all students who are from the major numbered 600?,SELECT Fname FROM Student WHERE Major = 600 "List the runtime of movies starred by an African-American actor born on December 28, 1954.",SELECT T1.Runtime FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Ethnicity = 'African American' AND T3.`Date of Birth` = '1954-12-28' Find and list the names of districts which has below-average stars for Eagle Capital.,SELECT T2.division FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Product = 'Eagle Capital' AND T1.Stars > ( SELECT AVG(Stars) FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id ) show me the name and ids of these stations,"SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg ( T2.bikes_available ) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE ""12/%""" Show how many department stores does the store chain South have?,"SELECT count ( * ) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""South""" what is the population of Abbotsford,"SELECT Population FROM county_public_safety WHERE Name = ""Abbotsford""" can you how me a list of artists?,SELECT artist_name FROM artist How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps?,"SELECT COUNT(grid) FROM table_name_11 WHERE manufacturer = ""ducati"" AND rider = ""casey stoner"" AND laps < 27" How many locations have the callsign DXGH?,"SELECT COUNT(location) FROM table_28794440_1 WHERE callsign = ""DXGH""" Indicate the name of the congressman represent in Guanica.,"SELECT T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.city = 'Guanica'" "In 1992, what class has higher wins than 0?",SELECT class FROM table_name_58 WHERE wins > 0 AND year = 1992 what is 2012 when the tournament is cincinnati masters?,"SELECT 2012 FROM table_name_66 WHERE tournament = ""cincinnati masters""" "Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's?","SELECT drivers FROM table_name_2 WHERE rounds = ""all"" AND make = ""lexus"" AND tyre = ""b"" AND team = ""petronas toyota team tom's""" How much does the most expensive charge type costs?,SELECT MAX(charge_amount) FROM Charges What other years did the Cherry Awards occur during?,"SELECT YEAR FROM festival_detail WHERE Festival_Name = ""Cherry Awards""" What is the largest number for karianne gulliksen?,SELECT MAX(karianne_gulliksen) FROM table_28677723_5 "When did user 39115684 rate the movie ""A Way of Life""?",SELECT T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684 Count the number of students who have advisors.,SELECT count(DISTINCT s_id) FROM advisor "Among the race of all students, what is the control of institution and level of institution with highest number of students?","SELECT DISTINCT T1.control, T1.level FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'X' AND T1.student_count = ( SELECT MAX(T1.student_count) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'X' )" Show the names of journalists and the number of events they reported.,"SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name" What are the room name and base price of the room with the lowest base price?,"SELECT roomName , basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;" "What country is the player, with an undisclosed transfer fee and moving to Nacional, from?","SELECT country FROM table_name_96 WHERE transfer_fee = ""undisclosed"" AND moving_to = ""nacional""" "How many Picks have a Round larger than 2, and a Name of lawrence sidbury, and an Overall smaller than 125?","SELECT COUNT(pick__number) FROM table_name_69 WHERE round > 2 AND name = ""lawrence sidbury"" AND overall < 125" Please show me the names and years of the movies that has the top 3 highest rating stars,"SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" How many total customer are there?,SELECT COUNT ( * ) FROM Customers What is the height for Nikola Franković?,"SELECT height FROM table_name_45 WHERE name = ""nikola franković""" How many total wins are associated with events with 1 top-10?,SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1 What is the average ratio between female and male actors in a movie?,SELECT CAST(COUNT(CASE WHEN T2.gender = 'Female' THEN T1.person_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.gender = 'Male' THEN T1.person_id ELSE NULL END) FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id What year was John m. Belk Arena built?,"SELECT year_built FROM table_name_74 WHERE venue = ""john m. belk arena""" Name the number of color for furcifer pardalis,"SELECT COUNT(color) FROM table_175442_1 WHERE scientific_name = ""Furcifer pardalis""" What team was the away team when the tie no is 40?,"SELECT away_team FROM table_name_67 WHERE tie_no = ""40""" What is the highest number of poles?,SELECT MAX(poles) FROM table_26794530_1 What time or retired does Scott Dixon have?,"SELECT time_retired FROM table_name_7 WHERE driver = ""scott dixon""" How about the year before that? | Did you mean which college conferred the most number of degrees in 2003? | Yes,SELECT t1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t3.year = 2003 ORDER BY t3.degrees DESC LIMIT 1 How many overs bowled for muttiah muralitharan?,"SELECT COUNT(overs_bowled) FROM table_15700367_6 WHERE name = ""Muttiah Muralitharan""" What is the maximum renewable energy (gw×h) for the state of Delaware?,"SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = ""Delaware""" How many route/via's are there for the ernad express?,"SELECT COUNT(route_via) FROM table_29770377_1 WHERE train_name = ""Ernad Express""" "What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?","SELECT COUNT(average) FROM table_name_57 WHERE team = ""england"" AND wickets < 18 AND best_bowling = ""4/138"" AND matches < 3" "Which Car # has a Make of toyota, and a Pos of 7?","SELECT AVG(car__number) FROM table_name_93 WHERE make = ""toyota"" AND pos = 7" Name the common name for furcifer pardalis,"SELECT common_name FROM table_175442_1 WHERE scientific_name = ""Furcifer pardalis""" how many times is the name matt targett and the lane higher than 7?,"SELECT COUNT(time) FROM table_name_44 WHERE name = ""matt targett"" AND lane > 7" What are the first and last names of all students who are not living in the city HKG and order the results by age?,"SELECT fname , lname FROM student WHERE city_code != 'HKG' ORDER BY age" "List all the methods with a solution with a ""636449700980488000"" processed time.",SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.ProcessedTime = 636449700980488000 "What is the github address of the solution path ""joeyrobert_bloomfilter\DataTypes.BloomFilter.sln""?",SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'joeyrobert_bloomfilterDataTypes.BloomFilter.sln' Which country has the 5th highest infant mortality rate?,"SELECT T2.Name FROM population AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Infant_Mortality DESC LIMIT 4, 1" "What is To par, when Margin of Victory is ""2 Strokes"", and when Tournament is ""Women's British Open""?","SELECT to_par FROM table_name_98 WHERE margin_of_victory = ""2 strokes"" AND tournament = ""women's british open""" Who was the director of Chaser on the Rocks?,"SELECT director FROM table_name_74 WHERE title = ""chaser on the rocks""" List the countries and their official languages in Antarctica.,"SELECT T1.Name, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Antarctica' AND T2.IsOfficial = 'T'" How many draws did švyturys Klaipėda have?,"SELECT MIN(draws) FROM table_16034882_4 WHERE club = ""Švyturys Klaipėda""" Show the names and grades of each high schooler.,"SELECT name , grade FROM Highschooler" What are the results of the elections in which Ted Strickland is seeking re-election?,"SELECT results FROM table_1805191_36 WHERE incumbent = ""Ted Strickland""" Show ids for all aircrafts with more than 1000 distance.,SELECT aid FROM Aircraft WHERE distance > 1000 Which city has a venue of the Arco Arena?,"SELECT city FROM table_name_42 WHERE venue = ""arco arena""" What is the earliest year with less than 45 points for Yamaha team in 21st rank?,"SELECT MIN(year) FROM table_name_49 WHERE points < 45 AND team = ""yamaha"" AND rank = ""21st""" "Show the name, time, and service for all trains.","SELECT name , TIME , service FROM train" What is the difficulty of the athens circuit?,"SELECT difficulty FROM table_24463470_1 WHERE circuit = ""Athens""" What is the pick # for player david grannis?,"SELECT MAX(pick__number) FROM table_21721351_18 WHERE player = ""David Grannis""" Show the member name and hometown who registered a branch in 2016.,"SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016" please tell me alice friend name,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Alice' When did Shelia Lawrence join the series?,"SELECT MIN(series__number) FROM table_11404452_1 WHERE writer_s_ = ""Shelia Lawrence""" List the tournament that kent state won?,"SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = ""Kent State""" "Among the active employees, how many of them have a courtesy title of ""Mr""?",SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.CurrentFlag = 1 AND T2.Title = 'Mr.' Tell me the number range for 1965-66,"SELECT no_range FROM table_name_58 WHERE year_built__converted * _ = ""1965-66""" Which constitutional monarchy nations saw the greatest growth in the number of organizations after 1907?,"SELECT T1.Name FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE STRFTIME('%Y', T2.Established) > '1907' AND T3.Government = 'constitutional monarchy' GROUP BY T1.Name ORDER BY COUNT(DISTINCT T2.Name) DESC LIMIT 1" What are all the document type codes and document type names?,"SELECT document_type_code , document_type_name FROM Ref_document_types" How many millions of US viewers watched the episode written by Jack Sanderson?,"SELECT us_viewers__millions_ FROM table_27462177_1 WHERE written_by = ""Jack Sanderson""" Which customer status code has least number of customers?,SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1; Give the country id and corresponding count of cities in each country.,"SELECT country_id , COUNT(*) FROM locations GROUP BY country_id" What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won?,"SELECT SUM(purse___) AS $__ FROM table_name_27 WHERE score = ""272 (-16)"" AND winner = ""frank nobilo"" AND year > 1996" How many teams had a #1 draft pick that won the Rookie of the Year Award?,"SELECT COUNT(team) FROM table_1004033_1 WHERE draft_pick__number = ""1""" "Which opponents conference has the result L, 62-10?","SELECT opponents_conference FROM table_26240481_1 WHERE result = ""L, 62-10""" "What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15?",SELECT MAX(bronze) FROM table_name_84 WHERE gold > 0 AND total = 15 AND silver < 5 What about the most common country?,SELECT Country FROM member GROUP BY Country ORDER BY COUNT ( * ) DESC LIMIT 1 Which home team played the away team of collingwood?,"SELECT home_team FROM table_name_14 WHERE away_team = ""collingwood""" Where is the orchestra when the year of recording is 1934?,SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934 What district is incumbent frank chelf from?,"SELECT district FROM table_1341884_19 WHERE incumbent = ""Frank Chelf""" ok i see the transactions of the sales. and then what are the ones that were purchases?,select transaction_id from Transactions where transaction_type_code = 'PUR' "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?","SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'" How many customers have an address that is located in the city of Villeneuve-la-Garenne?,SELECT COUNT(address_id) FROM address WHERE city = 'Villeneuve-la-Garenne' Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist?,"SELECT winner FROM table_name_39 WHERE finalist = ""lietuvos rytas"" AND season < 2010" Find the number of distinct products Rodrick Heaney has bought so far.,"SELECT count(DISTINCT product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" Who called the race in 1978?,SELECT race_caller FROM table_22583466_5 WHERE year = 1978 "Find the max, average, and minimum gpa of all students in each department.","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code" What country scored 71-66-66-71=274?,SELECT country FROM table_name_32 WHERE score = 71 - 66 - 66 - 71 = 274 What is the average savings account balance?,SELECT avg ( balance ) FROM savings How many people attended the game on June 18?,"SELECT COUNT(attendance) FROM table_name_85 WHERE date = ""june 18""" What are the ids of all students for courses and what are the names of those courses?,"SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id" And what are their status?,"SELECT Roller_Coaster_ID , status FROM roller_coaster WHERE LENGTH > 3300 and Height > 100" When the number is 2 what is the lowest amount of al-wedhat wins?,SELECT MIN(al_wehdat_wins) FROM table_2985714_2 WHERE _number = 2 What week was the tournament at Cincinnati?,"SELECT week FROM table_name_57 WHERE tournament = ""cincinnati""" Show me the title of album id 1?,SELECT T1.Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID where T1.AlbumId = 1 Find the name and level of catalog structure with level between 5 and 10.,"SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10" "Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?","SELECT team FROM table_name_1 WHERE car__number < 99 AND make = ""toyota"" AND driver = ""mike skinner""" "What was the result of the game that had 56,500 in attendance?","SELECT result FROM table_name_15 WHERE attendance = ""56,500""" What was the final score when the Temple Owls beat Virginia Tech?,"SELECT score FROM table_25461946_5 WHERE team = ""Virginia Tech""" "what is the company name of XPERIA T, XPERIA J","SELECT Company_name from phone WHERE Hardware_Model_name = ""XPERIA T, XPERIA J""" "What is the lowest against that has bacchus marsh as a ballarat fl, with wins less than 1?","SELECT MIN(against) FROM table_name_75 WHERE ballarat_fl = ""bacchus marsh"" AND wins < 1" find the college name for the player id 10001,SELECT T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.Pid = '10001' What was the lowest squad with 0 goals?,SELECT MIN(squad_no) FROM table_name_81 WHERE goals < 0 what is the average of prices*,SELECT AVG ( Price ) FROM schedule What are the names and genders of all artists who released songs in the month of March?,"SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Mar%""" What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad?,"SELECT first_runner_up FROM table_name_40 WHERE miss_maja_pilipinas = ""nanette prodigalidad""" "How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53?","SELECT COUNT(february) FROM table_name_32 WHERE opponent = ""montreal canadiens"" AND record = ""18-25-10"" AND game > 53" Name the number of dates for alouettes,"SELECT COUNT(date) FROM table_24126518_2 WHERE opponent = ""Alouettes""" "For each city, return the highest latitude among its stations.","SELECT city , max(lat) FROM station GROUP BY city" What is the job position of the oldest employee?,SELECT T2.PersonType FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.BirthDate ASC LIMIT 1 How many votes did Jeannemarie Devolites Davis get in 1995-Special?,"SELECT votes FROM table_name_90 WHERE opponent = ""jeannemarie devolites davis"" AND year = ""1995-special""" Find the email and phone number of the customers who have never filed a complaint before.,"SELECT email_address , phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)" Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?,"SELECT can_yayınları FROM table_name_39 WHERE güzelçamlı’nin_kayıp_panteri = ""çevreci peri""" "What are the names and year of joining for artists that do not have the country ""United States""?","SELECT name , year_join FROM artist WHERE country != 'United States'" What is the record of the game before week 5 and a bye game site?,"SELECT record FROM table_name_54 WHERE week < 5 AND game_site = ""bye""" Find the ids of the students who participate in Canoeing and Kayaking.,SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking' What year was Frank Annunzio elected,"SELECT MIN(first_elected) FROM table_1341663_14 WHERE incumbent = ""Frank Annunzio""" How many transactions correspond to each invoice number?,"SELECT invoice_number , count(*) FROM Financial_transactions GROUP BY invoice_number" What is the average rating of all movies reviewed by Brittany Harris.,"SELECT avg ( T1.stars ) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" What is the title of the episode that had 9.76 million U.S. viewers?,"SELECT title FROM table_22181917_2 WHERE us_viewers__millions_ = ""9.76""" What is the reverse when the £1 fraction is 1/480?,"SELECT reverse FROM table_1682865_1 WHERE £1_fraction = ""1/480""" Which season is the wicket 2nd partnership in?,"SELECT season FROM table_name_41 WHERE wicket_partnership = ""2nd""" Which title was directed by chuck jones and released on 1958-04-12?,"SELECT title FROM table_name_56 WHERE director = ""chuck jones"" AND release_date = ""1958-04-12""" Who were the guests for the episode with an original airdate of december 07?,"SELECT guest FROM table_25691838_12 WHERE original_airdate = ""December 07""" State the number of users who are under 50 and above 20 use device model of Galaxy Premier.,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age BETWEEN 20 AND 50 AND T2.device_model = 'Galaxy Premier' "What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?","SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = ""danny mcguire"" AND goals > 0" Can you provide me with a list of all of the names of the races?,SELECT name FROM races and can you please also give me the project details?,"SELECT T1.project_details , T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count ( * ) DESC LIMIT 1" "For each reviewer id, what is the title and rating for the movie with the smallest rating?","SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID" what is the total number of record where streak is l2 and leading scorer is roy : 23,"SELECT COUNT(record) FROM table_11964047_5 WHERE streak = ""L2"" AND leading_scorer = ""Roy : 23""" "Avg/G that has a GP-GS of 13–13, and a Effic smaller than 114.23 has what total of numbers?","SELECT COUNT(avg_g) FROM table_name_82 WHERE gp_gs = ""13–13"" AND effic < 114.23" "Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille?","SELECT chassis FROM table_name_5 WHERE points = 13 AND year = 1975 AND entrant = ""scuderia citta del mille""" Which Country has a Player of arjun atwal?,"SELECT country FROM table_name_19 WHERE player = ""arjun atwal""" Find the number of visitors who did not visit any museum opened after 2010.,SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010) What are the booking start and end dates of the apartments with more than 2 bedrooms ?,"SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2" How many contestants were there in a season where alejandra espinoza won?,"SELECT COUNT(number_of_contestants) FROM table_name_65 WHERE winner = ""alejandra espinoza""" what is the highest saving balance?,select max ( balance ) from savings Who was the home team when the venue was Junction Oval?,"SELECT home_team FROM table_name_82 WHERE venue = ""junction oval""" How old was Mr. Stacy Morar at the time of his first emergency room admission due to a drug overdose?,SELECT T2.DATE - T1.birthdate AS age FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Stacy' AND T1.last = 'Morar' AND T2.DESCRIPTION = 'Emergency Room Admission' AND T2.REASONDESCRIPTION = 'Drug overdose' ORDER BY T2.DATE LIMIT 1 List the name and population of the communities where more than average solicit for prostitutes were reported.,"SELECT T2.community_area_name, T2.population FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T1.iucr_no WHERE T3.iucr_no = ( SELECT iucr_no FROM IUCR WHERE secondary_description = 'SOLICIT FOR PROSTITUTE' GROUP BY iucr_no HAVING COUNT(iucr_no) > ( SELECT SUM(CASE WHEN secondary_description = 'SOLICIT FOR PROSTITUTE' THEN 1.0 ELSE 0 END) / COUNT(iucr_no) AS average FROM IUCR ) )" What are the contestant numbers and names of the contestants who had at least two votes?,"SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2" What was the Tyre for the German Grand Prix?,"SELECT tyre FROM table_name_27 WHERE race = ""german grand prix""" "For all reviews with the worst rating, state the podcast title as well as the review title and content.","SELECT DISTINCT T1.title, T2.title, T2.content FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.rating = 1" "Provide the facebook ID of the facebook account named ""RepWilson"".",SELECT facebook_id FROM `social-media` WHERE facebook = 'RepWilson' Show the draft pick numbers and draft classes of players whose positions are defenders.,"SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = ""Defender""" Which Pick has the College named Far Eastern / PSBA?,"SELECT pick FROM table_name_68 WHERE college = ""far eastern / psba""" What is the foot per second speed where time to feet ratio is 9.2 at 25 degrees?,"SELECT m_v_ft_s FROM table_16439764_1 WHERE time_to_ft__m__at_25°__seconds_ = ""9.2""" What is the 2009 for 2012 1R in Wimbledon and a 2011 2r?,"SELECT 2009 FROM table_name_77 WHERE 2012 = ""1r"" AND tournament = ""wimbledon"" AND 2011 = ""2r""" "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.","SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR" What was the most recent associated invoice date for Lucas Mancini?,"SELECT T2.invoice_date FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"" ORDER BY t2.invoice_date DESC LIMIT 1" who are the writer of the series episode number 170?,SELECT written_by FROM table_22580855_1 WHERE series_no = 170 What location did Anke Huber win the championship?,"SELECT location FROM table_name_68 WHERE champion = ""anke huber""" Return the color code and description for the product with the name 'chervil'.,"SELECT t1.color_code , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" Which opponent has a Score of 15.4.94?,"SELECT opponent FROM table_name_89 WHERE score = ""15.4.94""" What city and state is the bank with the name morningside in?,"SELECT city , state FROM bank WHERE bname = 'morningside'" Can you tell me the average Chapter that has Articles smaller than 15?,SELECT AVG(chapter) FROM table_name_48 WHERE articles < 15 What is the zip code of staff with first name as Janessa and last name as Sawayn?,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" How many points were scored when the record was 6-8-6?,"SELECT COUNT(points) FROM table_17360840_5 WHERE record = ""6-8-6""" Name the D46 when it has D 44 of ← majority,"SELECT d_46 FROM table_name_50 WHERE d_44 = ""← majority""" How many players and coaches are awarded after death?,SELECT COUNT(note) FROM AwardsMisc WHERE note IS NOT NULL List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?,"SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000" Find the name of the department that offers the highest total credits?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1 What is the velocity of the pilot named 'Thompson'?,SELECT AVG(velocity) FROM flight WHERE pilot = 'Thompson' What is the marketing region code that has the most drama workshop groups?,SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1 What is the highest when pohang steelers is the team?,"SELECT highest FROM table_21824695_8 WHERE team = ""Pohang Steelers""" "What country has a silver medal in the boxing, heavyweight event?","SELECT country FROM table_name_77 WHERE medal = ""silver"" AND event = ""boxing, heavyweight""" How many won the Men's Open if the players are from Sweden?,"SELECT COUNT(mens_open) FROM table_182298_5 WHERE country = ""Sweden""" Who plays on the date september 29?,"SELECT opponent FROM table_name_48 WHERE date = ""september 29""" What are the maximum and minimum week on top of all volumes?,"SELECT MAX(Weeks_on_Top), MIN(Weeks_on_Top) FROM volume" How many origins have titles of Samoan cricket bats?,"SELECT COUNT(origin) FROM table_29635868_1 WHERE title_ & _link_to_episode_on_youtube = ""Samoan Cricket Bats""" What information do you have on colleges sorted by increasing enrollment numbers?,SELECT * FROM College ORDER BY enr How many years has there been a competition in Helsinki?,"SELECT COUNT(year) FROM table_name_78 WHERE location = ""helsinki""" which sport has most number of students on scholarship?,"SELECT sportname FROM Sportsinfo WHERE onscholarship = ""Y"" GROUP BY sportname ORDER BY count ( * ) DESC LIMIT 1" Name the class when position is rt,"SELECT class FROM table_14624447_39 WHERE position = ""RT""" Which Title is from 1952?,SELECT title FROM table_name_6 WHERE year = 1952 Find the name and category of the most expensive product.,"SELECT product_name , product_category_code FROM products ORDER BY product_price DESC LIMIT 1" Which of the films released in 2006 was the most popular among Mubi users?,SELECT movie_title FROM movies WHERE movie_release_year = 2006 ORDER BY movie_popularity DESC LIMIT 1 How many movies were released between 1937 and 1950?,"SELECT COUNT(movie_title) FROM characters WHERE SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) BETWEEN '37' AND '50'" "How about the end date, please?","SELECT Policy_Type_Code,Start_Date,End_Date FROM policies where Customer_ID = 380" Thanks! Can you update this list to show both the city name and state associated with each of these customers?,"select t1.customer_id, t3.city, t3.state_province_county FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county ! = 'California'" What is the feature type name of feature AirCon?,"SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = ""AirCon""" "Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18?","SELECT model FROM table_name_72 WHERE years = ""2001–2004"" AND torque = ""n·m (lb·ft) @ 3750"" AND engine_code = ""n42b18 / n46b18""" What is the lowest number of losses a goalkeeper with more than 2776 minutes had?,SELECT MIN(loses) FROM table_name_54 WHERE minutes > 2776 Provide the ID of 1C Company.,SELECT T.id FROM publisher AS T WHERE T.publisher_name = '1C Company' Show all cities without a branch having more than 100 memberships.,SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 What are the average prominence of the mountains in country 'Morocco'?,SELECT avg(prominence) FROM mountain WHERE country = 'Morocco' What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?,"SELECT subject FROM table_name_63 WHERE election = ""general"" AND office = ""queen anne's county state's attorney""" who is the home team when the away team is bolton wanderers?,"SELECT home_team FROM table_name_12 WHERE away_team = ""bolton wanderers""" Name the average clean and jerk for snatch of 140 and total kg less than 315,SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315 What is the complete description of the researcher role.,SELECT role_description FROM Staff_Roles WHERE role_code = 'researcher' What Player has a To par of +1 and a Score of 73-71-71=217?,"SELECT player FROM table_name_24 WHERE to_par = ""+1"" AND score = 73 - 71 - 71 = 217" How many states that have some college students playing in the mid position but not in the goalie position.,SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') Who was Canada's lead?,"SELECT lead FROM table_name_76 WHERE country = ""canada""" Show names of technicians and the number of machines they are assigned to repair.,"SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name" "What is Website, when Last Release is 2009-08-09, 1.2.9?","SELECT website FROM table_name_25 WHERE last_release = ""2009-08-09, 1.2.9""" How many party classifications are there for the senator from Canton? ,"SELECT party FROM table_26129220_2 WHERE residence = ""Canton""" What is the highest Super G that had an 11 Downhill and an overall less than 16?,"SELECT MAX(super_g) FROM table_name_6 WHERE downhill = ""11"" AND overall < 16" Calculate the percentage of legislators who are Senator and were born in 1964.,SELECT CAST(SUM(CASE WHEN T2.class IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio LIKE '%1964%' How many top-25s are associated with more than 91 events?,SELECT SUM(top_25) FROM table_name_24 WHERE events > 91 Which company falls under the category of an associated member? Please provide the organization's full name.,SELECT NAME FROM organization WHERE country IN ( SELECT country FROM politics WHERE dependent != '' ) "What is the theme for these cities? | The themes of competitions with host cities having populations larger than 1000 are Carnival M is back!, Codehunters, and MTV Asia Aid | Which cities have populations less than 1000? List their ids.",SELECT DISTINCT T1.CITY_ID FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population < 1000 Where was the game held that was played on 2002-03-07?,"SELECT venue FROM table_name_36 WHERE date = ""2002-03-07""" Which country published the least papers?,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count ( * ) LIMIT 1 Who wrote the episode with the production code of 942A?,"SELECT written_by FROM table_16432167_1 WHERE production_code = ""942A""" What is the name of all the people who are older than at least one engineer? Order them by age.,SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age What was the away team that played at Princes Park?,"SELECT away_team FROM table_name_97 WHERE venue = ""princes park""" What is the competition on 23 February 1929?,"SELECT competition FROM table_name_27 WHERE date = ""23 february 1929""" What are their emails?,SELECT email FROM employees Name the date of the uncaf nations cup 2009,"SELECT date FROM table_name_91 WHERE competition = ""uncaf nations cup 2009""" What are the names of the cities that all customers live in?,SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID "Which programs' origins are not ""Beijing""? Give me the program names.",SELECT name FROM program WHERE origin != 'Beijing' Please list the releases that have been downloaded for more than 20000 times.,SELECT groupName FROM torrents WHERE totalSnatched > 20000 What's the total against when the draws are more than 0?,SELECT COUNT(against) FROM table_name_30 WHERE draws > 0 what is the united fc wehre pifa colaba is maratha united?,"SELECT united_fc FROM table_28759261_5 WHERE pifa_colaba_fc_u_17 = ""Maratha United""" list all job ids,select distinct job_id from employees What are the first and last name of all biology professors?,"SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = ""Biology""" Who led with the highest points during the game against Indiana?,"SELECT high_points FROM table_23286158_9 WHERE team = ""Indiana""" Which person has zach been friends with the longest?,SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = ( SELECT max ( YEAR ) FROM PersonFriend WHERE name = 'Zach' ) Which SANSKRT has a JAPANESE of jayana?,"SELECT sanskrt FROM table_name_38 WHERE japanese = ""jayana""" What are the last names of individuals who have been contact individuals for an organization?,SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id What is the id and name of the browser that is compatible with the most web accelerators?,"SELECT T1.id , T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" What is the number of countries with more than 2 car makers ?,select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2 Please calculate the average total price of shipped orders from German customers.,SELECT SUM(T3.quantityOrdered * T3.priceEach) / COUNT(T2.orderNumber) FROM customers AS T1 INNER JOIN orders AS T2 ON T1.customerNumber = T2.customerNumber INNER JOIN orderdetails AS T3 ON T2.orderNumber = T3.orderNumber WHERE T2.status = 'Shipped' AND T1.country = 'Germany' What are airlines that have some flight departing from airport 'AHD'?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""AHD""" Who is the home team when the away team is newcastle united?,"SELECT home_team FROM table_name_16 WHERE away_team = ""newcastle united""" Which episode has the largest number of votes?,SELECT episode FROM Episode WHERE votes = ( SELECT MAX(votes) FROM Episode ); "What is Teleplay, when Director is ""George McCowan"", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981?","SELECT teleplay FROM table_name_24 WHERE director = ""george mccowan"" AND season < 1.1400000000000001 AND first_broadcast = ""april 3, 1981""" What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?,"SELECT sat_29_aug FROM table_23465864_4 WHERE fri_28_aug = ""25' 01.89 90.438mph""" Which kickoff has the opponent at new orleans saints?,"SELECT kickoff_[a_] FROM table_11449590_2 WHERE opponent = ""at New Orleans Saints""" "Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past?",SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.SurveyID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 32 AND T1.SurveyID = 2016 what is the mascot of st. paul's school? ,"SELECT mascot FROM table_2439728_1 WHERE school = ""St. Paul's school""" I want the lowest Grid for Rolf Stommelen,"SELECT MIN(grid) FROM table_name_48 WHERE driver = ""rolf stommelen""" "How many papers have ""Atsushi Ohori"" published?","SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Atsushi"" AND t1.lname = ""Ohori""" What is the Away Competition on the 6th?,"SELECT competition FROM table_name_81 WHERE venue = ""away"" AND date = ""6th""" What are the names of all games played by Linda Smith?,"SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = ""Smith"" AND T3.Fname = ""Linda""" When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?,"SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = ""Middle Assyrian Empire""" what is the rounds when the entrant is scuderia ferrari marlboro?,"SELECT rounds FROM table_name_57 WHERE entrant = ""scuderia ferrari marlboro""" Please list the indicator names of Arab World whose values are higher than 50 in 1960.,SELECT IndicatorName FROM Indicators WHERE CountryName = 'Arab World' AND Year = 1960 AND Value > 50 Name the number of families for uk30,"SELECT COUNT(family_families) FROM table_19897294_8 WHERE no_overall = ""UK30""" At 1:48.16 what was the number of track time?,"SELECT COUNT(track) FROM table_16689920_1 WHERE time = ""1:48.16""" "What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800?","SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = ""analog"" AND available_interface = ""agp"" AND retail_name = ""all-in-wonder 9800""" Name the score for home of green bay packers,"SELECT score FROM table_name_37 WHERE home = ""green bay packers""" What are the names of the contestants whose names are not 'Jessie Alloway',SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway' I want the highest Grid for Toyota and jarno trulli,"SELECT MAX(grid) FROM table_name_95 WHERE constructor = ""toyota"" AND driver = ""jarno trulli""" Give the full name of driver who transported the items on 3/2/2016.,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_date = '2016-03-02'" What is the D 43 when D 46 is R 6?,"SELECT d_43 FROM table_name_68 WHERE d_46 = ""r 6""" Find the SSN and name of scientists who are assigned to the project with the longest hours.,"SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)" "What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has?","SELECT COUNT(final_position___tour) FROM table_name_95 WHERE final_position___giro > 20 AND rider = ""mariano piccoli"" AND year < 1999" "Hello, can you please tell me the most weeks spent on top?",SELECT max ( Weeks_on_Top ) FROM volume what is the ID for electoral code? | which columns return? | What is the master id please.,SELECT master_customer_id FROM cmi_cross_references WHERE source_system_code = 'Electoral' How many time is the population density (per km²) is 2.5?,"SELECT COUNT(localities) FROM table_26007767_1 WHERE population_density__per_km²_ = ""2.5""" What is the difference related to 2 losses and fewer than 10 points?,SELECT points_difference FROM table_name_51 WHERE lost = 2 AND points < 10 "What is the attribute value of an inactive business with a medium review count and 3.5 stars which is located at Phoenix, AZ?",SELECT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state LIKE 'AZ' AND T1.review_count LIKE 'Medium' AND T1.active LIKE 'FALSE' AND T1.city LIKE 'Phoenix' AND T1.stars = 3.5 "When the driver peter gethin has a grid less than 25, what is the average number of laps?","SELECT AVG(laps) FROM table_name_4 WHERE driver = ""peter gethin"" AND grid < 25" When 4744 is the avg. trips per mile (x1000) what is the current stock?,SELECT current_stock FROM table_17839_1 WHERE avg_trips_per_mile__×1000_ = 4744 Please list all the territories in the Eastern Region.,SELECT DISTINCT T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' Which Terminus is on line 10?,"SELECT terminus FROM table_name_1 WHERE line = ""line 10""" Who won the bronze when jin kanno won the gold?,"SELECT bronze FROM table_name_99 WHERE gold = ""jin kanno""" Show the game name that has most number of hours played.,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum ( hours_played ) DESC LIMIT 1 Who's the owner of Thai PBS?,"SELECT owner FROM table_name_28 WHERE name = ""thai pbs""" What is the title of the prerequisite class of International Finance course?,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance') Show all main industry for all companies.,SELECT DISTINCT main_industry FROM company List the names of all distinct wines in alphabetical order.,SELECT DISTINCT Name FROM WINE ORDER BY Name What is the Name of the Space Telescope Terminated on March 1993?,"SELECT name FROM table_name_31 WHERE terminated = ""march 1993""" "Who are the members of the club named ""Hopkins Student Enterprises""? Show the last name.","SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" Show the names of conductors and the orchestras they have conducted.,"SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID" What is the biggest amount of reviews a salable product gets?,SELECT T1.Comments FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.FinishedGoodsFlag = 1 GROUP BY T1.Comments ORDER BY COUNT(T1.ProductReviewID) DESC LIMIT 1 List the dates and vote percents of elections.,"SELECT Date , Vote_Percent FROM election" "Thanks! Lastly, (I am about to run out of time) can you filter that list to show me which year had the most degrees conferred?",SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum ( degrees ) DESC LIMIT 1 "What are the names of perpetrators in country ""China"" or ""Japan""?","SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""China"" OR T2.Country = ""Japan""" Give the time stamp for event No.887711.,SELECT timestamp FROM events WHERE event_id = '887711' What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?,"SELECT MIN(bronze) FROM table_name_75 WHERE silver > 0 AND rank < 4 AND nation = ""jamaica"" AND total < 22" Provide a list of titles together with its publisher name for all publishers located in the USA.,"SELECT T1.title, T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'USA'" what's the minimum total with crop (kilotonnes) being s lupin,"SELECT MIN(total) FROM table_1057262_2 WHERE crop__kilotonnes_ = ""s Lupin""" How many paragraphs in total?,SELECT count(*) FROM Paragraphs What is the First Publisher prior to 1999?,SELECT first_publisher FROM table_name_31 WHERE year < 1999 How many customers have an active value of 1?,SELECT count(*) FROM customer WHERE active = '1' What are the ships that are steered by a captain with Lieutenant rank?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' What country is Pick 100?,SELECT nationality FROM table_name_97 WHERE pick = 100 What year(s) was axis & allies: d-day released?,"SELECT release FROM table_173475_1 WHERE title = ""Axis & Allies: D-Day""" Return the weight of the shortest person.,SELECT Weight FROM people ORDER BY Height ASC LIMIT 1 On which platform was Panzer Tactics released in 2007?,SELECT T5.platform_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T4.release_year = 2007 Please list the genre of the movies that are the newest and is in English.,SELECT T2.genre FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.year = 4 AND T1.isEnglish = 'T' What year shows 4 points?,SELECT year FROM table_name_65 WHERE points = 4 "what is the ranking for 2010 production of 2,903,000?","SELECT rank FROM table_name_52 WHERE 2010 = ""2,903,000""" When and in what zip code did max temperature reach 80?,"SELECT date , zip_code FROM weather WHERE max_temperature_f >= 80" which pilot is in charge of the most number of flights?,SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1 "Show the average share count of transactions each each investor, ordered by average share count.","SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)" Find the name of tracks which are in Movies playlist but not in music playlist.,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' What are the distinct last names of the students who have class president votes?,SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE Name the number in series for production code being 204,SELECT no_in_series FROM table_25810656_3 WHERE production_code = 204 Who was the defensive award winner in February when the rookie award was given to Rhys Duch?,"SELECT defensive FROM table_14132239_3 WHERE month = ""February"" AND rookie = ""Rhys Duch""" Show all ministers and parties they belong to in descending order of the time they took office.,"SELECT minister, party_name FROM party ORDER BY took_office DESC" can you show me a list of last name that starting with 'J'?,"SELECT LastName FROM list WHERE LastName LIKE ""J%""" What is the result of week 5?,SELECT result FROM table_name_33 WHERE week = 5 "In the history of team id NJD, which goalie saved the most goal attempts? Give his full name.","SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'NJD' GROUP BY T2.playerID ORDER BY SUM(T2.SA - T2.GA) DESC LIMIT 1" Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.,"SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance" Which movie has the highest average rating? | The title of the movie that has the highest average rating is Snow White | What is it's rating?,SELECT avg ( T1.stars ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg ( T1.stars ) DESC LIMIT 1 Show all transaction types.,SELECT DISTINCT transaction_type FROM Financial_Transactions When was the first movie released?,SELECT MIN(release_date) FROM movie WHERE movie_status = 'Released' Please list all the cities from where tweets with neutral sentiments were posted.,SELECT DISTINCT T2.City FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE Sentiment = 0 How many journals do not have a website?,SELECT COUNT(HomePage) FROM Journal WHERE HomePage = '' When the allergy starts for Angelo Buckridge.,SELECT T2.START FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Adolfo' AND T1.last = 'Schmitt' AND T2.STOP IS NOT NULL "List the id, color scheme, and name for all the photos.","SELECT id , color , name FROM photos" How many authors are affiliated with NASA Langley Research Center?,SELECT COUNT(Name) FROM Author WHERE Affiliation = 'NASA Langley Research Center' What's the winning party in the Pennsylvania 6 district?,"SELECT party FROM table_1341604_39 WHERE district = ""Pennsylvania 6""" What is the name of organization that has the greatest number of contact individuals?,SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1 Count the number of distinct claim outcome codes.,SELECT count(DISTINCT claim_outcome_code) FROM claims_processing Show the name and service for all trains in order by time.,"SELECT name , service FROM train ORDER BY TIME" What source system code includes the sub string 'en'?,SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%' Which market segment does the customer with the highest amount of debt belongs to?,SELECT c_mktsegment FROM customer WHERE c_acctbal = ( SELECT MIN(c_acctbal) FROM customer ) Which Mission has a Apogee of 705 km?,"SELECT mission FROM table_name_3 WHERE apogee = ""705 km""" What is the name of the procedure that has the lowest cost?,SELECT Name FROM procedures order by cost asc limit 1 Give the flight numbers of flights leaving from APG.,"SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ""APG""" "If the position is 12th, what was the series?","SELECT series FROM table_21795846_1 WHERE position = ""12th""" First names of the proffesors teaching course ACCT-211?,"SELECT DISTINCT T1.EMP_FNAME FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = ""ACCT-211""" Tell me singles W-L that has years larger than 1 and highest singles ranking of 1346,"SELECT singles_w_l FROM table_name_7 WHERE years_played > 1 AND highest_singles_ranking = ""1346""" How many dates did the episode with a production code of 804 originally air on?,SELECT COUNT(original_air_date) FROM table_27988559_1 WHERE production_code = 804 When michele pirro is the pole position what is the date?,"SELECT date FROM table_21191496_1 WHERE pole_position = ""Michele Pirro""" Which film has the most copies in the inventory? List both title and id.,"SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1" What is the outcome type of match ID 392195?,SELECT T2.Outcome_Type FROM Match AS T1 INNER JOIN Outcome AS T2 ON T1.Outcome_type = T2.Outcome_Id WHERE T1.Match_Id = '392195' "How many games did player Id ""vanbijo01"" win in the 1990 season?",SELECT W FROM Goalies WHERE playerID = 'vanbijo01' AND year = 1990 Which authors did not submit to any workshop?,SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance) What was the score of the game against the phoenix suns?,"SELECT score FROM table_name_18 WHERE opponent = ""phoenix suns""" What number does the player who was with the grizzles in 1999 wear?,"SELECT MIN(no) FROM table_16494599_4 WHERE years_for_grizzlies = ""1999""" "What are the names of the course authors who teach the course with the name ""operating system"" or ""data structure"" please? | do you want to return their personal, middle, and family names? | All of those, please?","SELECT T1.personal_name, t1.middle_name, t1.family_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""operating system"" OR T2.course_name = ""data structure""" "Which Grid has a Rider of randy de puniet, and Laps smaller than 24?","SELECT MAX(grid) FROM table_name_11 WHERE rider = ""randy de puniet"" AND laps < 24" yes | Here are all the candidates' ids who got assessed. | which of those most recently had an assessment?,SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 What is the time/retired if the driver is Marco Andretti?,"SELECT time_retired FROM table_17693171_1 WHERE driver = ""Marco Andretti""" Which 1997 has sf as the 2002?,"SELECT 1997 FROM table_name_74 WHERE 2002 = ""sf""" How many times does Bob show up in the friend column?,SELECT count ( * ) FROM PersonFriend where friend = 'Bob' Find the total number of matches.,SELECT count(*) FROM matches How many allergies are there?,SELECT COUNT(DISTINCT allergy) FROM Allergy_type What is the average rating star for each reviewer?,"SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name" Which away team is from junction oval?,"SELECT away_team FROM table_name_38 WHERE venue = ""junction oval""" Name the total number of lost when goals scored is less than 22 and goals conceded is more than 27,SELECT COUNT(lost) FROM table_name_82 WHERE goals_scored < 22 AND goals_conceded > 27 On what ground was the game on 31 Jul 2007?,"SELECT ground FROM table_name_60 WHERE date = ""31 jul 2007""" Name the fifth district for steve rudoni,"SELECT fifth_district FROM table_15442974_1 WHERE fourth_district = ""Steve Rudoni""" What is the url of solution 1?,SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 1 What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?,SELECT SUM(cultural_and_educational_panel) FROM table_name_90 WHERE industrial_and_commercial_panel = 0 AND agricultural_panel > 0 How many laps did the car do that had a final position of 17?,"SELECT laps FROM table_name_79 WHERE fin_pos = ""17""" What are the investors that have invested in at least two entrepreneurs?,SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2 What is the average number of laps for a grid of 6?,SELECT AVG(laps) FROM table_name_31 WHERE grid = 6 "Could you please find the products with the max page size as ""A4""?","SELECT product FROM product WHERE max_page_size = ""A4""" What is the result for 2006 of a tournament that is 107 in 2010?,"SELECT 2006 FROM table_name_73 WHERE 2010 = ""107""" What are first and last names of players participating in all star game in 1998?,"SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998" How many department stores does the store chain South have?,"SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""South""" What is the GDP of Shanghai?,"SELECT GDP FROM city where city = ""Shanghai""" "Can you list the number of airports whose names contain the word ""International""?",SELECT count ( * ) FROM airports WHERE name LIKE '%International%' What is the North American release date of the remake with a European release date on 2013-03-20?,"SELECT north_american_release_date FROM table_name_25 WHERE european_release_date = ""2013-03-20""" Great! Could you update this list to show me Meaghan's email address and phone number as well?,"SELECT T2.customer_first_name , T2.customer_last_name, T2.email_address, T2.phone_number FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""900""" Who was the driver that had all rounds and a f399 chassis?,"SELECT driver FROM table_name_53 WHERE rounds = ""all"" AND chassis = ""f399""" Can you show me the top 3 highest room counts?,SELECT room_count FROM Apartments order by room_count DESC LIMIT 3 How many times is the rank higher than 3 and bronze more than 1?,SELECT COUNT(gold) FROM table_name_82 WHERE rank > 3 AND bronze > 1 "Which Result has a Home team of portland, and a Date of may 31?","SELECT result FROM table_name_30 WHERE home_team = ""portland"" AND date = ""may 31""" Show the name of colleges that have at least two players in descending alphabetical order.,SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC could you tell me those four customer's details and their ID?,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count ( * ) > 1" How many films have a duration between 100 to 110 minutes?,SELECT COUNT(film_id) FROM film WHERE length BETWEEN 100 AND 110 What is the Tie no when the away team was Burnley?,"SELECT tie_no FROM table_name_30 WHERE away_team = ""burnley""" What are the first name and department name of all employees?,"SELECT T1.first_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id" "Return the lowest version number, along with its corresponding template type code.","SELECT min(Version_Number) , template_type_code FROM Templates" What was the outcome when Jing-Jing Lu was the opponent?,"SELECT outcome FROM table_name_81 WHERE opponent = ""jing-jing lu""" "How many Votes, when the Residence is Halifax?","SELECT votes FROM table_name_81 WHERE residence = ""halifax""" How many female students (sex is F) whose age is below 25?,SELECT count(*) FROM student WHERE sex = 'F' AND age < 25 "Find the department name that is in Building ""Mergenthaler"".","SELECT DName FROM DEPARTMENT WHERE Building = ""Mergenthaler""" What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""660 Shea Crescent"" OR T2.How_to_Get_There = ""walk""" "Among all the teams that made the playoffs in the 2007-2008 season, identify the percentage that played over 20 games.",SELECT CAST(COUNT(CASE WHEN GP > 20 THEN TEAM ELSE NULL END) AS REAL) * 100 / COUNT(TEAM) FROM SeasonStatus WHERE SEASON = '2007-2008' AND GAMETYPE = 'Playoffs' "what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?",SELECT AVG(2005) FROM table_name_77 WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5 Who was Constructor for rider Marco Melandri?,"SELECT constructor FROM table_name_76 WHERE rider = ""marco melandri""" Find the title and score of the movie with the lowest rating among all movies directed by each director.,"SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director" How many users are followed by Mary?,"SELECT count ( * ) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary""" which district has the least area?,SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1 Who is the 44-year-old patient diagnosed with drug overdose?,"SELECT T2.first, T2.last FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Drug overdose' AND ROUND((strftime('%J', T2.deathdate) - strftime('%J', T2.birthdate)) / 365) = 44" what is the Id of the browser that is compatible with most web accelerators?,SELECT T1.id FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1 What is the air date of the episode with the production code 6acx19? ,"SELECT original_air_date FROM table_22261877_1 WHERE production_code = ""6ACX19""" "What is Score, when Player is ""Jeff Maggert""?","SELECT score FROM table_name_76 WHERE player = ""jeff maggert""" From which branch does the sales representative employee who made the most sales in 2005? Please indicates its full address and phone number.,"SELECT T3.addressLine1, T3.addressLine2, T3.phone FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber INNER JOIN customers AS T3 ON T2.customerNumber = T3.customerNumber INNER JOIN employees AS T4 ON T3.salesRepEmployeeNumber = T4.employeeNumber INNER JOIN offices AS T5 ON T4.officeCode = T5.officeCode WHERE STRFTIME('%Y', T2.orderDate) = '2005' AND T4.jobTitle = 'Sales Rep' ORDER BY T1.quantityOrdered DESC LIMIT 1" Name the total number of drawn for danish and mathias,"SELECT COUNT(draw) FROM table_name_37 WHERE language = ""danish"" AND artist = ""mathias""" Who was in the original broadway cast while jake epstein was in the original 1st us tour cast? ,"SELECT original_broadway_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = ""Jake Epstein""" How many orders in 2022 have Iran as their destinations?,"SELECT COUNT(*) FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id INNER JOIN cust_order AS T3 ON T3.dest_address_id = T2.address_id WHERE T1.country_name = 'Iran' AND STRFTIME('%Y', T3.order_date) = '2022'" "How to pay the donation of the project that teacher ""822b7b8768c17456fdce78b65abcc18e"" created?",SELECT T2.payment_method FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e' Return all the apartment numbers sorted by the room count in ascending order.,SELECT apt_number FROM Apartments ORDER BY room_count Can you show me dates of all visits before the year 2013 only?,"SELECT Visit_Date FROM visits where visit_date < ""2013-01-01 00:00:00""" Which Rank is Highest for Yoshiazuma?,"SELECT highest_rank FROM table_name_44 WHERE name = ""yoshiazuma""" What is the minimum attendance of all events?,SELECT min ( Event_Attendance ) FROM event What is the news frequency for the show Locker Room?,"SELECT news_freq FROM table_name_73 WHERE show_name = ""locker room""" Which Date has an Away team of south melbourne?,"SELECT date FROM table_name_42 WHERE away_team = ""south melbourne""" What is the average number of papers published in the World Computer Congress each year?,"SELECT CAST(SUM(CASE WHEN T2.FullName = 'International Congress Series' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id) AS Div1, T1.Year FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id GROUP BY T1.YEAR HAVING Div1 != 0" "What is the unit of measuerment of the product category code ""Herbs""?","SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = ""Herbs""" Which Surface had an Opponent of chris evert-lloyd?,"SELECT surface FROM table_name_45 WHERE opponent = ""chris evert-lloyd""" Find the average salary of the professors of each department?,"SELECT avg ( salary ) , dept_name FROM instructor GROUP BY dept_name" "What are all the section titles of the document named ""David CV""?","SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV""" What is the most popular first name of the actors?,SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1 "How much space does page 1 of the menu ""Zentral Theater Terrace"" cover?",SELECT T2.full_height * T2.full_width FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.name = 'Zentral Theater Terrace' AND T2.page_number = 1 "Give the number of ""drive-thru"" businesses in ""Scottsdale"" with business ID number less than ""1000"".",SELECT T2.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.business_id < 1000 AND T3.city LIKE 'Scottsdale' AND T1.attribute_name LIKE 'Drive-Thru' AND T2.attribute_value LIKE 'TRUE' WHAT ARE THE NAMES OF AIRCRAFT WHICH FEWEST PEOPLE HAVE ITS CERTIFICATE,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count ( * ) ASC LIMIT 1 "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?","SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count(*) > 2" I'm looking for the things with Close status before 2017-06-19 02:59:21 | Do you want things that satisfy both criteria or at least at of them? And do you want the ids or other? | I want the number of things in a close status,"SELECT count ( distinct thing_id ) from Timed_Status_of_Things WHERE Status_of_Thing_Code = ""Close""" How many regions do we have?,SELECT COUNT(*) FROM region Please list the top 3 countries with the highest inflation rate.,SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.Inflation DESC LIMIT 3 what location are the clemson teams?,SELECT t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' What award was nominated in 2007?,"SELECT award FROM table_name_76 WHERE result = ""nominated"" AND year = 2007" How many research assistants of Ogdon Zywicki have an average salary?,SELECT COUNT(T1.prof_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.first_name = 'Ogdon' AND T1.salary = 'med' AND T2.last_name = 'Zywicki' "Hmm, please tell me the course ids that do not have any prerequisite.",SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq "For the model/engine of 1.8 Duratec HE, what is the torque?","SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = ""1.8 Duratec HE""" What is the description of the color used by least products?,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1 Name the casualities for kabul area,"SELECT casualties FROM table_name_74 WHERE location = ""kabul area""" What is the object whose attribute is blurry in image no.2377993? Give the explanation about the object.,"SELECT T4.OBJ_CLASS_ID, T4.OBJ_CLASS FROM IMG_OBJ_att AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T2.ATT_CLASS = 'blurry' AND T1.IMG_ID = 22377993" Can you give me the nationality of the ship with minimum tonnage.,SELECT Nationality FROM ship order by Tonnage limit 1 Calculate the average of 2020's population in each zip code.,SELECT CAST(SUM(population_2020) AS REAL) / COUNT(zip_code) FROM zip_data "What is the average score of the movie ""The Fall of Berlin"" in 2019?",SELECT SUM(T1.rating_score) / COUNT(T1.rating_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_timestamp_utc LIKE '2019%' AND T2.movie_title LIKE 'The Fall of Berlin' "How many of them have ""Diana"" anywhere in their name?","SELECT count ( customer_details ) FROM customers WHERE customer_details LIKE ""%Diana%""" Who produced The simpson 20s: Season 20?,SELECT DISTINCT person FROM Credit WHERE role = 'producer'; "What is To par, when Country is ""Spain""?","SELECT to_par FROM table_name_47 WHERE country = ""spain""" What is the title of the episode that received the lowest rating?,SELECT title FROM Episode ORDER BY rating LIMIT 1; "Among all the citation, what is the percentage of paper ID under the Agents classification?",SELECT CAST(COUNT(CASE WHEN class_label = 'Agents' THEN paper_id ELSE NULL END) AS REAL) * 100 / COUNT(paper_id) FROM paper I want to know the average Fuml for Att of 5 and long more than 7,SELECT AVG(fuml) FROM table_name_13 WHERE att = 5 AND long > 7 "What was the outcome of the game that had a score of 3–6, 6–3, 6–0?","SELECT outcome FROM table_name_81 WHERE score = ""3–6, 6–3, 6–0""" What is the damage of storm three?,"SELECT damage__millions_usd__ FROM table_name_58 WHERE storm_name = ""three""" Return all the committees that have delegates from Democratic Party.,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic""" How many students play sports?,SELECT COUNT(DISTINCT StuID) FROM Sportsinfo "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?","SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'" "For all list titles with at least 200 movies in the list, what is their average number of followers?",SELECT AVG(list_followers) FROM lists WHERE list_movie_number > 200 "What is the league name for the regular season status of 2nd, mid atlantic?","SELECT league FROM table_16636344_1 WHERE regular_season = ""2nd, Mid Atlantic""" What Week 4 has a Week 2 of samantha speer?,"SELECT week_4 FROM table_name_62 WHERE week_2 = ""samantha speer""" "Find the names of the customers who have order status both ""On Road"" and ""Shipped"".","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" Provide the name of artists who released at least two bootlegs in 2016.,SELECT artist FROM torrents WHERE groupYear = 2016 AND releaseType LIKE 'bootleg' GROUP BY artist HAVING COUNT(releaseType) > 2 Write the titles of horror films with a vote average of more than 7.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Horror' AND vote_average > 7 How many different types of settlements does Nova Pazova fall into?,"SELECT COUNT(type) FROM table_2562572_53 WHERE settlement = ""Nova Pazova""" when was the death when the birth was 8 december 1542?,"SELECT death FROM table_name_45 WHERE birth = ""8 december 1542""" What was the date of the game against seattle?,"SELECT date FROM table_name_52 WHERE opponent = ""seattle""" How many heads are temporary acting?,SELECT count ( * ) FROM management WHERE temporary_acting = 'Yes' Show all the cinema names and opening years in descending order of opening year.,"SELECT name, openning_year FROM cinema ORDER BY openning_year DESC" What is the 2013 BAFA adult flag division in Aylesbury?,"SELECT 2013 AS _bafa_adult_flag_division FROM table_name_95 WHERE location = ""aylesbury""" How many followers does Celine Dion have?,"SELECT followers FROM user_profiles where name = ""Celine Dion""" What are the names of all the stores in the largest district by population?,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1) What is the date of birth of every customer whose status code is 'Good Customer'?,SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer' How many flights does airline 'JetBlue Airways' have?,"SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = ""JetBlue Airways""" What are the medical encounter ids of patients who were born in Pembroke MA US?,SELECT DISTINCT T1.ENCOUNTER FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.birthplace = 'Pembroke MA US' Find the names of all physicians and their primary affiliated departments' names.,"SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1" What is the last name of the student who received an A in the class with the code 10018?,SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018 What are the titles of the papers?,SELECT title FROM papers At which age did A Lamusi participate in 2012 Summer?,SELECT T2.age FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '2012 Summer' AND T3.full_name = 'A Lamusi' What was kumar sangakkara's average?,"SELECT average FROM table_26041144_11 WHERE player = ""Kumar Sangakkara""" What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?,SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available) < 7 When luz mcclinton is the name what is the season?,"SELECT season FROM table_19061741_1 WHERE name = ""Luz McClinton""" "When Heather Christensen was featured in Week 2, who was the cyber girl for Week 3?","SELECT week_3 FROM table_name_11 WHERE week_2 = ""heather christensen""" What is the race in the 8th position?,"SELECT races FROM table_name_43 WHERE position = ""8th""" What day did the platform sell 9.87 million units?,"SELECT release_date FROM table_18590048_1 WHERE units_sold__in_millions_ = ""9.87""" Who was nominated for outstanding director of a musical?,"SELECT nominee FROM table_name_30 WHERE category = ""outstanding director of a musical""" What is the name of the highest mountain?,SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 "What is the Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary?","SELECT termination_of_mission FROM table_name_34 WHERE title = ""ambassador extraordinary and plenipotentiary"" AND representative = ""marsha e. barnes""" What are the tries against when they played against Bridgend?,SELECT MAX(tries_against) FROM table_16770037_3 WHERE team = Bridgend How many routes end in a Canadian airport?,SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' Which of those 5 distinct shops have the most happy hours? | Shop id 1 has the most happy hours | Can you tell me which shop ID offers the least happy hours?,SELECT shop_id FROM happy_hour group by shop_id order by count ( * ) asc limit 1 "What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points?","SELECT SUM(year) FROM table_name_69 WHERE entrant = ""scuderia centro sud"" AND points = 6" how many laps have a time/retired of +1 lap and mark blundell is the driver?,"SELECT AVG(laps) FROM table_name_85 WHERE time_retired = ""+1 lap"" AND driver = ""mark blundell""" Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.,"SELECT cName FROM College WHERE enr < 13000 AND state = ""AZ"" UNION SELECT cName FROM College WHERE enr > 15000 AND state = ""LA""" "What is the total population of the neighborhoods Avondale Gardens, Irving Park, Kilbourn Park, Merchant Park, Old Irving Park, and The Villa?",SELECT SUM(T2.population) AS sum FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.neighborhood_name = 'Avondale Gardens' OR T1.neighborhood_name = 'Irving Park' OR T1.neighborhood_name = 'Kilbourn Park' OR T1.neighborhood_name = 'Merchant Park' OR T1.neighborhood_name = 'Old Irving Park' OR T1.neighborhood_name = 'The Villa' "For the 3-credit course with the easiest difficulty, how many students get an ""A"" in that course?",SELECT COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T1.grade = 'A' AND T2.credit = '3' AND T2.diff = 1 what is the date of birth of the employee named Ebba?,"SELECT Date_of_Birth FROM Employees WHERE employee_name = ""Ebba""" Which city of license has a frequency less than 100.1?,SELECT city_of_license FROM table_name_5 WHERE frequency_mhz < 100.1 "What are the names and buildings of the deparments, sorted by budget descending?","SELECT dept_name , building FROM department ORDER BY budget DESC" And what year did the largest number of baseball players attend that college?,Select year from player_college where college_id = ( SELECT T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count ( * ) DESC LIMIT 1 ) group by college_id order by year desc limit 1 Show all customer ids and the number of accounts for each customer.,"SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id" "How many films are there under the category of ""Horror""?",SELECT COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id WHERE T2.name = 'Horror' What is the season date if the minor (South) winners is Bristol Sanctuary XI?,"SELECT season FROM table_23014923_1 WHERE minor__south__winners = ""Bristol Sanctuary XI""" "Name the score in the final for january 12, 2013","SELECT score_in_the_final FROM table_name_63 WHERE date = ""january 12, 2013""" What is the Result of the game on October 3?,"SELECT result FROM table_name_49 WHERE date = ""october 3""" How many actors have starred in the film ACADEMY DINOSAUR?,SELECT COUNT(T1.actor_id) FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id WHERE T2.title = 'ACADEMY DINOSAUR' "Of the names listed in the table, which of them have an item status listed as ""cancel""?","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = ""Cancel"" AND T4.product_name = ""food"" GROUP BY T1.customer_id HAVING count ( * ) > = 1" What is the number of finishes associated with an elimination of Adriana?,"SELECT COUNT(finish) FROM table_24122653_2 WHERE eliminated = ""Adriana""" What is the grade of CID 550.681? | Did you mean the grades of students who enrolled in the course with CID 550.681? | YES,"SELECT grade from enrolled_in where cid = ""550.681""" "Please list all the biwords pairs with ""àbac"" as its first word.","SELECT T1.word AS W1, T3.word AS W2 FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'àbac'" "What is the year 2013 with a total of 5, and 5th in 2009?","SELECT 2013 FROM table_name_78 WHERE total = 5 AND 2009 = ""5th""" What is the general description for case number JB106010?,SELECT T1.primary_description FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.case_number = 'JB106010' Which 2012 has a 2007 of 0 / 4?,"SELECT 2012 FROM table_name_8 WHERE 2007 = ""0 / 4""" List the name of products in ascending order of price.,SELECT Product_Name FROM Products ORDER BY Product_Price ASC Which Norwegian (nynorsk) has a Danish of farvel?,"SELECT norwegian__nynorsk_ FROM table_name_12 WHERE danish = ""farvel""" What team(s) played in the 1995-96 season?,"SELECT teams FROM table_name_46 WHERE season = ""1995-96""" "What is the date of enrollment in the course named ""operating system""?","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 = ""operating system""" List at least 5 customers who paid greater than $10. Provide the full name of the customers.,"SELECT T2.first_name, T2.last_name FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.amount > 10" what is the count for Naiman?,"SELECT count ( * ) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.Fname = ""Naiman""" "Tell me the prices of Dining | Sorry, there is no product named ""Dining"". There is, however, a product named ""Dinning"". This might be a typo. Do you want to know the prices of ""Dinning""? | Tell me the prices of Dinning","SELECT Product_Price FROM Products WHERE Product_Name = ""Dinning""" What's the storage case of the buttonholer described as ivory and red metal?,"SELECT storage_case FROM table_28652521_1 WHERE description = ""ivory and red metal""" "What are the employee ids of the employees whose role name is ""Human Resource"" or ""Manager""?","SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource"" OR T2.role_name = ""Manager""" "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?","SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code" How many flights departed on time on 8/1/2018?,SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' AND DEP_DELAY <= 0 Who was the Winner when the Runner-up was Real Salt Lake?,"SELECT winner FROM table_name_20 WHERE runner_up = ""real salt lake""" Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.,"SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1" What star rating is the most common for beers containing corn syrup?,SELECT T2.StarRating FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.CornSyrup = 'TRUE' GROUP BY T2.StarRating ORDER BY COUNT(T2.StarRating) DESC LIMIT 1 What country is the film directed by Jean-Luc Godard in French from?,"SELECT country FROM table_name_19 WHERE language = ""french"" AND director = ""jean-luc godard""" "For all authors from CA who are not on contract, which title of his/hers has the most year to date sales.",SELECT T1.title FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T3.contract = 0 AND T3.state = 'CA' ORDER BY T1.ytd_sales DESC LIMIT 1 "Which Game has a Streak of loss 1, and a Score of 110–111?","SELECT game FROM table_name_80 WHERE streak = ""loss 1"" AND score = ""110–111""" What was the total time for the match that ocurred in Round 3 with opponent Keith Wisniewski?,"SELECT time FROM table_name_39 WHERE round = ""3"" AND opponent = ""keith wisniewski""" what builder is now retired,"SELECT pennant_number FROM table_name_20 WHERE current_status = ""retired""" What date was the away team from Adelaide?,"SELECT date FROM table_name_37 WHERE away_team = ""adelaide""" What is the position with a neutral H/A/N and more than 2 innings?,"SELECT AVG(pos) FROM table_name_93 WHERE h_a_n = ""neutral"" AND inn > 2" when does the train arriving at stamford east at 11.45 departure ,"SELECT departure FROM table_18333678_2 WHERE arrival = ""11.45"" AND going_to = ""Stamford East""" "Show the average, maximum, minimum enrollment of all schools.","SELECT avg(enrollment) , max(enrollment) , min(enrollment) FROM school" What is the average of the top-25 with 16 cuts and less than 23 events?,SELECT AVG(top_25) FROM table_name_79 WHERE cuts_made = 16 AND events < 23 How many times longer is the longest border in the United States than the shortest?,SELECT MAX(T2.Length) / MIN(T2.Length) FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country2 WHERE T1.Name = 'United States' Now please list all unique product type codes,SELECT DISTINCT product_type_code FROM Products Find the name and country of origin for all artists who have release at least one song of resolution above 900.,"SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING count(*) >= 1" "Which clubs are located at ""AKW""? Return the club names.","SELECT clubname FROM club WHERE clublocation = ""AKW""" and what is their total market value in billions?,"SELECT sum ( Market_Value_in_Billion ) FROM company WHERE Industry = ""Banking"" OR Industry = ""Retailing""" Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.,"SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) < 2" What is the away team score for the match at 6:00 PM and an away team of Hawthorn?,"SELECT away_team AS score FROM table_name_56 WHERE time = ""6:00 pm"" AND away_team = ""hawthorn""" What is the total of the ranks that did not participate?,"SELECT total FROM table_name_88 WHERE rank = ""did not participate""" "What are the date of ceremony of music festivals with category ""Best Song"" and result ""Awarded""?","SELECT Date_of_ceremony FROM music_festival WHERE Category = ""Best Song"" AND RESULT = ""Awarded""" "Find the longest ride on foggy day. What were the mean visibility, mean wind speed, and weather event during that ride? Also, list the coordinates and names of the start and end stations.","SELECT T3.mean_visibility_miles, T3.mean_wind_speed_mph, T3.events, T1.lat, T1.long , T2.start_station_name, T2.end_station_name FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.events = 'Fog' ORDER BY T2.duration DESC LIMIT 1" What round had a record of 4-1?,"SELECT round FROM table_name_17 WHERE record = ""4-1""" Calculate the total type of allergies for German people.,SELECT COUNT(DISTINCT T2.DESCRIPTION) FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.ethnicity = 'german' What is varricchio's unit?,"SELECT unit FROM table_name_75 WHERE authors = ""varricchio""" What was the origin country of the car model ford torino produced in 1970?,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.car_name = 'ford torino' AND T2.model_year = 1970 "Among the author who drafted the paper ""A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus"", which of them is/are affiliated with the Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea ?","SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Affiliation = 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' AND T1.Title = 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus'" Name the team for november 5,"SELECT team FROM table_17355716_5 WHERE date = ""November 5""" How many have a Ph.D. degree?,"SELECT count ( * ) FROM professor where prof_high_degree = ""Ph.D.""" What is Mary Smith's rental ID?,SELECT T2.rental_id FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'MARY' AND T1.last_name = 'SMITH' In which year was a linebacker pick 17?,"SELECT year FROM table_name_4 WHERE position = ""linebacker"" AND pick = ""17""" Find the name of the airport in the city of Goroka.,SELECT name FROM airports WHERE city = 'Goroka' "What is the comment format of method number 50 with the solution path ""managedfusion_managedfusion\ManagedFusion.sln""?",SELECT CASE WHEN T2.CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN T2.CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 50 AND T1.Path = 'managedfusion_managedfusionManagedFusion.sln' How many years has 2 points?,SELECT SUM(year) FROM table_name_85 WHERE points = 2 When did the first staff for the projects started working?,SELECT date_from FROM Project_Staff ORDER BY date_from LIMIT 1 How about Lidl?,SELECT T3.address_details FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id where T1.supplier_name = 'Lidl' Tell me the lowest Bronze for gold of 3 in the winter for cross-country skiing and silver less than 0,"SELECT MIN(bronze) FROM table_name_56 WHERE gold = 3 AND games = ""winter"" AND sport = ""cross-country skiing"" AND silver < 0" How many 35-year-old female users gave the movie 1711133 a rating of 3?,SELECT COUNT(T1.userid) FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid WHERE T2.rating = 3 AND T2.movieid = '1711133' AND T1.age = 35 AND T1.u_gender = 'F' Could you please tell me which room has the cheapest base price?,SELECT * FROM Rooms ORDER BY basePrice ASC LIMIT 1 How many League cups had a total less than 25 and a league larger than 19?,SELECT COUNT(league) AS Cup FROM table_name_70 WHERE total < 25 AND league > 19 What was the position in 2006?,SELECT pos FROM table_name_66 WHERE year = 2006 What is the date of the circuit gilles villeneuve?,"SELECT date FROM table_1137707_2 WHERE location = ""Circuit Gilles Villeneuve""" what is the participant id in lupe deckow,"SELECT participant_id FROM participants WHERE Participant_Details = ""Lupe Deckow""" Where was the tourney when Louisville won the regular season?,"SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = ""Louisville""" Who was the vacator when Shadrach Bond was the successor?,"SELECT vacator FROM table_225095_4 WHERE successor = ""Shadrach Bond""" "Please tell the meaning of CultureID ""fr"".",SELECT Name FROM Culture WHERE CultureID = 'fr' What is the type for Cassano?,"SELECT type FROM table_name_46 WHERE name = ""cassano""" "On which date was the part ""burnished seashell gainsboro navajo chocolate"" in order no.1 shipped?",SELECT T1.l_shipdate FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T1.l_orderkey = 1 AND T2.p_name = 'burnished seashell gainsboro navajo chocolate' What was the original air date when ed horowitz wrote it?,"SELECT original_airdate FROM table_name_89 WHERE written_by = ""ed horowitz""" What is the google entity ID of current legislator Sherrod Brown?,SELECT google_entity_id_id FROM current WHERE official_full_name = 'Sherrod Brown' Where did the Centurions play the Hamburg Sea Devils?,"SELECT game_site FROM table_27764201_2 WHERE opponent = ""Hamburg Sea Devils""" "What is the total when the league cup is less than 1, and the fa cup is less than 1?",SELECT SUM(total) FROM table_name_45 WHERE league_cup < 1 AND fa_cup < 1 What was Phil Mickelson's score to par?,"SELECT to_par FROM table_name_20 WHERE player = ""phil mickelson""" "If the results are Kuwait won by 72 runs scorecard, what are the details?","SELECT details FROM table_22577693_1 WHERE result = ""Kuwait won by 72 runs Scorecard""" When the change (2011 to 2012) is +13.4% what is the country?,"SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = ""+13.4%""" List the names of all distinct wines that are made of red color grape.,"SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red""" Which Call sign has an ERP W of 75?,SELECT call_sign FROM table_name_23 WHERE erp_w = 75 "How many companies operate airlines in each airport? | Do you want the result by airport id, or airport name or all airport information? | I would like the results by airport id, please.","SELECT T3.id , count ( * ) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id" "Return the record companies of orchestras, sorted descending by the years in which they were founded.",SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC What was Brian Moran's share of the votes when Creigh Deeds had 30%?,"SELECT brian_moran FROM table_21535453_1 WHERE creigh_deeds = ""30%""" Which cities had a higher temperature in Feb than in Jun or were a host city?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What Game has a Location of Philadelphia Spectrum and a Date of April 1?,"SELECT game FROM table_name_80 WHERE location = ""philadelphia spectrum"" AND date = ""april 1""" Which country had notes of sa/b and a rank of 2?,"SELECT country FROM table_name_7 WHERE notes = ""sa/b"" AND rank = 2" Show me the average and minimum number of floors for all buildings?,"SELECT avg ( floors ) , min ( floors ) FROM building" List all the bad alias for zip codes in Puerto Rico.,SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.state = 'PR' "Among the customers in South superstore, which customers ordered more than 3 times in 2015? State the name of the customers.","SELECT DISTINCT T2.`Customer Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE STRFTIME('%Y', T1.`Order Date`) = '2015' GROUP BY T2.`Customer Name` HAVING COUNT(T2.`Customer Name`) > 3" "How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99?",SELECT COUNT(pick__number) FROM table_name_30 WHERE reg_gp > 906 AND pl_gp > 99 Find the total amount claimed in the most recently created document.,SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1) What procedures is John Wen trained in? | Do you mean the name of the procedure that John Wen is trained in? | Yes.,"SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" When was incumbent John Thomas Wilson first elected? ,"SELECT first_elected FROM table_1434788_5 WHERE incumbent = ""John Thomas Wilson""" "Find the papers which have ""Olin Shivers"" as an author.","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Olin"" AND t1.lname = ""Shivers""" "what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?","SELECT grid FROM table_name_5 WHERE laps > 0 AND time_retired = ""engine"" AND driver = ""pedro de la rosa""" List down the series codes in which the topic is about Environment: Emissions and the license type is restricted. Please include their alpha code.,SELECT SeriesCode FROM Series WHERE Topic = 'Environment: Emissions' AND LicenseType = 'Restricted' How many receptions were smaller than 7?,SELECT COUNT(reception) FROM table_name_12 WHERE long < 7 What award did they win before 2005?,SELECT award FROM table_name_62 WHERE year < 2005 What is the total when the Yugoslavia number of silver won is more than 1?,"SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = ""yugoslavia""" What is the date of the First Performance of Rhys Kosakowski as Billy Elliot in the Original Cast?,"SELECT first_performance FROM table_name_38 WHERE status = ""original cast"" AND name = ""rhys kosakowski""" What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?,"SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = ""33""" what is the inventory id of the rent id 3?,SELECT inventory_id FROM rental WHERE rental_id = 3 Which player was drafted by the New York Rangers? ,"SELECT player FROM table_2850912_10 WHERE nhl_team = ""New York Rangers""" How many city/municipalties have an area (km2) of 506.64?,"SELECT COUNT(city___municipality) FROM table_261222_1 WHERE area__km_2__ = ""506.64""" Hello! Can you please list all of the gymnast IDs and their associated hometowns?,"SELECT T1.Gymnast_ID, T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID" Which date has an Opponent of bye?,"SELECT date FROM table_name_78 WHERE opponent = ""bye""" List the number of invoices and the invoice total from California.,"SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = ""CA"";" What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347?,SELECT AVG(fall_07) FROM table_name_83 WHERE fall_05 = 271 AND fall_09 < 347 "Write down the image ID, full height, and full width of the menu that were used in the ""100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER"" event.","SELECT T1.image_id, T1.full_height, T1.full_width FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.event = '100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER'" Show the headquarters that have at least two companies.,SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2 How many no outs for an average of 56.38?,"SELECT COUNT(not_out) FROM table_20367820_16 WHERE average = ""56.38""" What place is Spain in?,"SELECT place FROM table_name_73 WHERE country = ""spain""" what is the location when began is before 1990 and the country is france?,"SELECT location FROM table_name_87 WHERE began < 1990 AND country = ""france""" In what year was 1.35% the average vote per candidate?,"SELECT year FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = ""1.35""" What are the full names and department ids for the lowest paid employees across all departments.,"SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)" Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.,"SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1" What are the names of representatives in descending order of votes?,SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC Find the name of the tryout players who are from the college with largest size.,SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) show the lowest low temperature and highest wind speed in miles per hour.,"SELECT min(low_temperature) , max(wind_speed_mph) FROM weekly_weather;" What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?,"SELECT male_population_2001 FROM table_19589113_5 WHERE growth_rate_1991_01 = ""36.16""" When did the length of 60 minutes air?,"SELECT airdate FROM table_name_46 WHERE length = ""60 minutes""" What's the average Round of Pete Laframboise?,"SELECT AVG(round) FROM table_name_59 WHERE player = ""pete laframboise""" I want the ICAO for city of xi'an,"SELECT icao FROM table_name_51 WHERE city = ""xi'an""" how many college with player being rich voltzke,"SELECT COUNT(college) FROM table_14655985_1 WHERE player = ""Rich Voltzke""" What are the games with an Involuntary suspension of Season (hurricane Rita)?,"SELECT games FROM table_name_72 WHERE standing = ""involuntary suspension of season (hurricane rita)""" What are the full names of the first top 10 customers?,"SELECT First, Last FROM customers ORDER BY FirstPurchaseDate LIMIT 10" What is the name of the song that was released in the most recent year?,"SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1" Return all the distinct secretary votes made in the fall election cycle.,"SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = ""Fall""" Show the names of editors that are on the committee of journals with sales bigger than 3000.,SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 What is the name of the airline with the highest number of non-cancelled flights?,SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.CANCELLED = 0 GROUP BY T2.Description ORDER BY COUNT(T1.CANCELLED) DESC LIMIT 1 Hi can you tell me what is the average salary?,SELECT avg ( salary ) FROM Employee What are the start station's name and id for the one that had the most start trips in August?,"SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1" Return the names of tracks that have no had any races.,SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race) "What is the most gold medals when the bronze medals were 0, and the silver medals greater than 1?",SELECT MAX(gold) FROM table_name_75 WHERE bronze = 0 AND silver > 1 Who is the high rebound where game is 5?,SELECT high_rebounds FROM table_27723526_17 WHERE game = 5 Which phone id has the highest stock on the list?,SELECT phone_id FROM phone_market ORDER BY num_of_stock DESC LIMIT 1 Find the first names of professors who are not playing Canoeing or Kayaking.,SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' What is the party affiliation for President Stefano Baccelli?,"SELECT party FROM table_name_33 WHERE president = ""stefano baccelli""" "Which universities have more than 100,000 students in 2011?",SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T1.num_students > 100000 Which party experienced a result of lost re-election democratic-republican hold?,"SELECT party FROM table_2668352_16 WHERE result = ""Lost re-election Democratic-Republican hold""" "What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24?","SELECT MAX(grid) FROM table_name_70 WHERE bike = ""honda cbr1000rr"" AND time = ""+20.848"" AND laps > 24" Find the total budgets of the Marketing or Finance department.,SELECT SUM(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance' Find the number and averaged salary of all instructors who are in the department with the highest budget.,"SELECT AVG(T1.salary), COUNT(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1" How old is the person with the height of m (ft 3⁄4 in)?,"SELECT age FROM table_24192031_2 WHERE height = ""m (ft 3⁄4 in)""" Name the location for eagles,"SELECT location FROM table_1973648_1 WHERE nickname = ""Eagles""" What's the points for count for the club with 41 points and 8 won games?,"SELECT points_for FROM table_12886178_4 WHERE points = ""41"" AND won = ""8""" * I have left the chat *,SELECT age FROM STUDENT WHERE StuID = 1003 Which tournament had an opponent of petra krejsová tereza smitková?,"SELECT tournament FROM table_name_59 WHERE opponents = ""petra krejsová tereza smitková""" How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.,"SELECT booking_status_code , COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code" Which heat and lane was in rank of 22?,SELECT heat__lane_ FROM table_name_75 WHERE rank = 22 What is the highest laps with a 30 finish?,"SELECT MAX(laps) FROM table_name_89 WHERE finish = ""30""" "Among students that gave satisfaction of value 4 for the course named ""Statistical Learning"", how many of them have a gpa of 3.8?",SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Statistical learning' AND T2.sat = 4 AND T1.gpa = 3.8 What is the lowest salary in departments with average salary greater than the overall average.,"SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)" What is the population of city Id 2?,SELECT population FROM city WHERE City_ID = 2 What is the Opponents on a clay surface with christophe rochus as partner?,"SELECT opponents FROM table_name_57 WHERE surface = ""clay"" AND partner = ""christophe rochus""" What are the names of the perpetrators in the country Japan?,"SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""Japan""" Which providers use version 2008?,"SELECT provider FROM table_14465871_2 WHERE version = ""2008""" What are the name and phone of the customer with the most ordered product quantity?,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1" What is the bounding box of the object with image id 4 and a prediction relationship class id of 144?,"SELECT T2.X, T2.Y, T2.W, T2.H FROM IMG_REL AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.IMG_ID = T2.IMG_ID WHERE T1.PRED_CLASS_ID = 144 AND T1.IMG_ID = 3" What percentage of movies that came from Japan belong in the 'animation' genre?,SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Animation' THEN T1.movie_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_COUNTry AS T3 ON T1.movie_id = T3.movie_id INNER JOIN genre AS T4 ON T2.genre_id = T4.genre_id INNER JOIN COUNTry AS T5 ON T3.COUNTry_id = T5.COUNTry_id WHERE T5.COUNTry_name = 'Japan' What is the lowest heat of the Lakeside race?,"SELECT MIN(heat) FROM table_name_65 WHERE race_title = ""lakeside""" Which venue was melbourne the away team of?,"SELECT venue FROM table_name_56 WHERE away_team = ""melbourne""" "What is the date when the document ""Marry CV"" was stored?","SELECT date_stored FROM All_documents WHERE Document_name = ""Marry CV""" What is the semester which most student registered in? Show both the name and the id.,"SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1" What is Ido Kozikaro's position?,"SELECT position FROM table_12962773_2 WHERE player = ""Ido Kozikaro""" How many businesses are opened for 24 hours?,SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'TRUE' AND T1.attribute_name LIKE 'Open 24 Hours' What was his record at the AFC: Brazil 1 event that went 3 rounds?,"SELECT record FROM table_name_59 WHERE round = ""3"" AND event = ""afc: brazil 1""" What is the asset make and asset model for asset id 2?,"SELECT asset_make,asset_model from assets where asset_id = 2" What are the last names and ages of the students who are allergic to milk and cat?,"SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" What is the name of the activity that has the most faculty members involved in?,SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY COUNT(*) DESC LIMIT 1 What Percentage did the First game of 1998 have?,SELECT percentage FROM table_name_80 WHERE first_game = 1998 What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7?,"SELECT MIN(drawn) FROM table_name_58 WHERE played < 11 AND points > 7 AND team = ""mackenzie""" Who were the runners-up when the individual winner was Tiger Woods?,"SELECT runners_up FROM table_name_17 WHERE individual = ""tiger woods""" What is the policy type code of customer with ID 334?,SELECT Policy_Type_Code from policies Where customer_id = 334 What is the highest number of wins?,SELECT MAX(wins) FROM table_26609690_1 "What is the highest Year, when Apparatus is ""Vault"", and when Rank-Final is less than 9?","SELECT MAX(year) FROM table_name_45 WHERE apparatus = ""vault"" AND rank_final < 9" Can you show me the rating of the restaurant with ResID 1?,select Rating from Restaurant where ResID = 1 "How many people reside in the nation's capital city, which is situated in the nation that attained independence on 8/15/1947?",SELECT T3.Population FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN city AS T3 ON T3.Name = T2.Capital WHERE T1.Independence = '1947-08-15' What position for the player from villa park high school?,"SELECT position FROM table_name_5 WHERE school = ""villa park high school""" "How many dates originally aired episodes located in Philadelphia, pennsylvania?","SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = ""Philadelphia, Pennsylvania""" Show all publishers which do not have a book in 1989.,SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989 What is the total number of short cars on all the trains that run in the east direction?,SELECT SUM(CASE WHEN T1.len = 'short' then 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' "What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070?","SELECT COUNT(week) FROM table_name_81 WHERE opponent = ""at chicago bears"" AND attendance > 49 OFFSET 070" What was the Record on Week 13 at the Hoosier Dome?,"SELECT record FROM table_name_97 WHERE game_site = ""hoosier dome"" AND week = 13" What was the introductory phrase for episode 794?,SELECT introductory_phrase FROM table_25691838_11 WHERE episode__number = 794 What rank was Core Districts + Inner Suburbs and had a population of 10123000?,"SELECT MAX(rank) FROM table_name_37 WHERE definition = ""core districts + inner suburbs"" AND population = ""10123000""" How many times did the Denver Broncos face the Dallas Texans this season?,"SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = ""Dallas Texans""" what is the sweet for voice actor saki fujita?,"SELECT sweet FROM table_26615633_3 WHERE voice_actor = ""Saki Fujita""" What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?,"SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings)" Find the stories of the building with the largest height.,SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1 Show the number of buildings with a height above the average or a number of floors above the average.,SELECT count(*) FROM building WHERE height_feet > (SELECT avg(height_feet) FROM building) OR floors > (SELECT avg(floors) FROM building) what are all the location where station number is c11,"SELECT location FROM table_11934032_1 WHERE station_number = ""C11""" How many stations are in Mountain View?,"SELECT COUNT(*) FROM station WHERE city = ""Mountain View""" "What are the papers published under the institution ""Indiana University""?","SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University""" "Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance?","SELECT SUM(attendance) FROM table_name_49 WHERE location = ""ebbets field"" AND time = ""2:56"" AND game > 6" How many users are there?,SELECT count(*) FROM useracct What is listed as the Place of Birth for the Elector of Pandolfo?,"SELECT place_of_birth FROM table_name_40 WHERE elector = ""pandolfo""" What is the total surface area of the countries in the Caribbean region?,"SELECT sum(SurfaceArea) FROM country WHERE Region = ""Caribbean""" "WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?","SELECT name FROM table_name_39 WHERE transfer_window = ""summer"" AND country = ""sen""" Give the address of the schools that passed the inspection in March 2010.,"SELECT DISTINCT T1.address FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-03' AND T2.results = 'Pass' AND T1.facility_type = 'School'" Count the number of courses with more than 2 credits.,SELECT count(*) FROM COURSE WHERE Credits > 2 Which county is the campus in?,SELECT county from campuses WHERE YEAR > = 1935 AND YEAR < = 1939 "What is 2009, when Tournament is ""Year-End Ranking""?","SELECT 2009 FROM table_name_77 WHERE tournament = ""year-end ranking""" What are the names of those cities?,SELECT headquartered_city FROM district where city_population > 500000 Who had the decision goal when the date was 1?,SELECT decision FROM table_name_73 WHERE date = 1 What are the names of instructors who didn't teach courses in the Spring?,SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring') What is the name of the winner with the most rank points who participated in the Australian Open tournament?,SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1 Name the sales person for store Area Bike Accessories. Which territory is he / she in?,SELECT T4.Name FROM Store AS T1 INNER JOIN SalesPerson AS T2 ON T1.SalesPersonID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID INNER JOIN SalesTerritory AS T4 ON T2.TerritoryID = T4.TerritoryID WHERE T1.Name = 'Area Bike Accessories' Provide employees' ID who are in-charge of territory ID from 1000 to 2000.,SELECT EmployeeID FROM EmployeeTerritories WHERE TerritoryID BETWEEN 1000 AND 2000 Manager of marty berghammer / nick allen is what year?,"SELECT year FROM table_name_91 WHERE manager = ""marty berghammer / nick allen""" What are names of all programs?,SELECT name FROM program What was Richmond's score when it was the away team?,"SELECT away_team AS score FROM table_name_83 WHERE away_team = ""richmond""" "How many wins, on average, were defeated by furuichi?","SELECT AVG(wins) FROM table_name_45 WHERE defeated_by = ""furuichi""" "In heat rank 7, what is the sum of lanes?",SELECT SUM(lane) FROM table_name_48 WHERE heat_rank = 7 What was the result on the wild card?,"SELECT result FROM table_name_74 WHERE week = ""wild card""" what are the districts that have city mall.,"SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""City Mall""" How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?,SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990; What is the total number of regions where the average family size is 2.8?,"SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = ""2.8""" How many orders which expected profits greater than 100?,SELECT COUNT(T1.productCode) FROM orderdetails AS T1 INNER JOIN products AS T2 ON T1.productCode = T2.productCode WHERE T2.MSRP - T2.buyPrice > 100 How many players were drafted by Arizona Coyotes whose height reaches 195 centimeters?,SELECT COUNT(T2.ELITEID) FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T2.overallby = 'Arizona Coyotes' AND T1.height_in_cm = 195 How many projects (not labeled omnis) have two or more outcomes?,SELECT count ( T2.project_id ) FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count ( * ) > 2 How many products are there?,SELECT count(*) FROM products What is the Original title with a Country that is canada?,"SELECT original_title FROM table_name_55 WHERE country = ""canada""" What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox?,"SELECT internet_explorer FROM table_name_53 WHERE firefox = ""20.01%""" What was the score of the game that had more than 8 points?,SELECT score FROM table_name_17 WHERE points > 8 Show all card type codes and the number of cards in each type.,"SELECT card_type_code , count(*) FROM Customers_cards GROUP BY card_type_code" "Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?",SELECT SUM(b_score) FROM table_name_2 WHERE total > 15.325 AND a_score < 6.4 "What is the minimum of International migrant stock, total of heavily indebted poor countries?","SELECT MIN(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.OtherGroups = 'HIPC' AND T2.IndicatorName = 'International migrant stock, total'" "What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977?","SELECT MAX(overall_pick) FROM table_name_27 WHERE position = ""c"" AND nfl_draft > 1977" What are the names of the ships that are from either the US or the UK?,"SELECT Name FROM ship WHERE Nationality = ""United States"" OR Nationality = ""United Kingdom""" What player was moved to Blackpool?,"SELECT player FROM table_name_41 WHERE to_club = ""blackpool""" How many activities do we have?,SELECT count(*) FROM Activity Show the county name and population of all counties.,"SELECT County_name , Population FROM county" What is the average credit score for customers who have never taken a loan?,SELECT avg(credit_score) FROM customer WHERE cust_id NOT IN (SELECT cust_id FROM loan) "What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?","SELECT type FROM table_name_96 WHERE year > 2010 AND location = ""justus lipsius building, brussels"" AND president = ""herman van rompuy (2nd term)"" AND date = ""28–29 june""" How many employees are there?,SELECT COUNT ( * ) FROM Employees What is the average age of the dogs who have gone through any treatments?,SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments) "What is the total number of Rating(s), when Air Date is June 25, 2008, and when Share is greater than 3?","SELECT COUNT(rating) FROM table_name_22 WHERE air_date = ""june 25, 2008"" AND share > 3" Emilya Valenti has what draw average?,"SELECT AVG(draw) FROM table_name_31 WHERE artist = ""emilya valenti""" "Which Hanzi has a Regional Population of 4,591,972 in 2010?","SELECT hanzi FROM table_name_92 WHERE regional_population_2010_ = ""4,591,972""" How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%?,"SELECT COUNT(result) FROM table_1341586_26 WHERE candidates = ""Gene Taylor (R) 67.0% Ken Young (D) 33.0%""" * I have left the chat *,"SELECT COUNT ( DISTINCT T2.enzyme_id ) FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE name = ""Asenapine""" What kilometer (Rizal Park-basis) has a kilometer of 25?,"SELECT kilometer_no__rizal_park_basis_ FROM table_name_92 WHERE kilometer_no__layac_basis_ = ""25""" How many times was country considered when starky % was 20.96%,"SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = ""20.96%""" How many status figures does James Finch have?,"SELECT COUNT(status) FROM table_27514362_7 WHERE entrant = ""James Finch""" "For each zip code, how many times has the maximum wind speed reached 25 mph?","SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code" What's the sum of the Pick that has the Player of Robert Ingalls?,"SELECT COUNT(pick) FROM table_name_47 WHERE player = ""robert ingalls""" "What is the name, location and seating for the most recently opened track?","SELECT name , LOCATION , seating FROM track ORDER BY year_opened DESC LIMIT 1" "What was the Score on November 10, 2007?","SELECT score FROM table_name_76 WHERE date = ""november 10, 2007""" "Which bridge is located in Nectar, in Blount County?","SELECT name FROM table_name_17 WHERE county = ""blount"" AND location = ""nectar""" "What is the average total number of passengers for all airports that the aircraft ""Robinson R-22"" visits?","SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = ""Robinson R-22""" Which Record has a Date of may 31?,"SELECT record FROM table_name_55 WHERE date = ""may 31""" Name the original title directed by luis buñuel,"SELECT original_title FROM table_name_85 WHERE director = ""luis buñuel""" What is the sum of FA Cup goals when there are 19 league goals?,"SELECT SUM(fa_cup_goals) FROM table_name_5 WHERE league_goals = ""19""" What is the most recent year that China won a bronze?,"SELECT MAX(year) FROM table_name_77 WHERE bronze = ""china""" What is the name of the oldest person who participated in the Olympic Games?,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age DESC LIMIT 1 What is Roman Bragin's position? ,"SELECT position FROM table_14038363_1 WHERE player = ""Roman Bragin""" "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.","SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" "What venue has more than 50,715 attending?",SELECT venue FROM table_name_45 WHERE attendance > 50 OFFSET 715 Name the sanskrit word and meaning for aquarius,"SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = ""Aquarius""" Which country has the tallest person in the crew?,SELECT birth_country FROM Person ORDER BY height_meters DESC LIMIT 1; What is the Attendance of Game 24?,SELECT SUM(attendance) FROM table_name_94 WHERE game = 24 What was the Tie no when the Home team was Ramsgate?,"SELECT tie_no FROM table_name_20 WHERE home_team = ""ramsgate""" "Among the trains that run in the east direction, how many of them have at least one car in a non-regular shape?","SELECT SUM(CASE WHEN T1.shape IN ('bucket', 'elipse') THEN 1 ELSE 0 end)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east'" What is the location of the kanyakumari government medical college?,"SELECT location FROM table_name_59 WHERE college_name = ""kanyakumari government medical college""" What is the average total gross for the movies featuring Sterling Holloway?,"SELECT SUM(CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL)) / COUNT(T2.movie_title) FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie = T2.movie_title WHERE T1.`voice-actor` = 'Sterling Holloway'" Which series is in position nc?,"SELECT series FROM table_25740774_1 WHERE position = ""NC""" How many Barangays lived in the municipality with area coordinator of 110.95?,"SELECT no_of_barangays FROM table_2402209_1 WHERE area_coordinator = ""110.95""" When was the note a vocals and the album north (original motion picture soundtrack)?,"SELECT year FROM table_name_62 WHERE note = ""vocals"" AND album = ""north (original motion picture soundtrack)""" What is the Lane of the swimmer from Uzbekistan in Heat 1?,"SELECT COUNT(lane) FROM table_name_88 WHERE heat = 1 AND nationality = ""uzbekistan""" "When the venue is away and the opponents are the bracknell bees, what is the competition?","SELECT competition FROM table_name_88 WHERE venue = ""away"" AND opponent = ""bracknell bees""" What is the Wheelbase for Model 97300?,"SELECT wheelbase__mm_inch_ FROM table_20866024_4 WHERE model_designation = ""97300""" "What is Television Service, when HDTV is No, and when Language is Italian?","SELECT television_service FROM table_name_11 WHERE hdtv = ""no"" AND language = ""italian""" What was the score of the game on December 11?,"SELECT score FROM table_17360840_6 WHERE date = ""December 11""" What is the lowest value in April with New York Rangers as opponent for a game less than 82?,"SELECT MIN(april) FROM table_name_90 WHERE opponent = ""new york rangers"" AND game < 82" "What is Record, when Date is Oct 19?","SELECT record FROM table_name_30 WHERE date = ""oct 19""" "Among the cities with area code 608, how many cities implement daylight savings?",SELECT COUNT(T2.city) FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 608 AND T2.daylight_savings = 'Yes' List all the name of the customers that received a shipment in February 2017.,SELECT T1.cust_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.ship_date LIKE '2017-02%' What is the Branding with a Callsign DWLL?,"SELECT branding FROM table_name_99 WHERE callsign = ""dwll""" What is the Date with a Runner(s)-up that is jerry steelsmith?,"SELECT date FROM table_name_69 WHERE runner_s__up = ""jerry steelsmith""" "How many students are members of the club ""Bootup Baltimore""?","SELECT count ( * ) from Club as T1 join member_of_club as T2 on T1.clubid = T2.clubid where T1.clubname = ""Bootup Baltimore""" mention the city code of the city that the most students live.,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count ( * ) DESC LIMIT 1 What are the names and countries of members?,"SELECT Name , Country FROM member" WHAT IS BIRTH YEAR of aardsda01,"SELECT birth_year from player where player_id = 'aardsda01'" Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.,"SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = ""Christop""" Please provide the age group of any LG Nexus 4 device users.,SELECT T1.`group` FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'LG' AND T2.device_model = 'Nexus 4' what is the average of attendance?,SELECT AVG ( Attendance ) FROM performance Which city has hosted the most events?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1 What are the package options and the name of the series for the TV Channel that supports high definition TV?,"SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = ""yes""" How many transcripts are listed?,SELECT count(*) FROM Transcripts Which premier team played the 1951 NSWRFL Grand Final?,"SELECT premiers FROM table_name_17 WHERE details = ""1951 nswrfl grand final""" List all the product names and categories of the highest reorder level.,"SELECT T2.ProductName, T1.CategoryName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID ORDER BY T2.ReorderLevel DESC LIMIT 1" "For model volvo, how many cylinders does the car with the least accelerate have?",SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate LIMIT 1 What is the lowest number of states contested under apna dal?,"SELECT MIN(states_contested) FROM table_22582663_1 WHERE party_name = ""Apna Dal""" Show all countries and the number of people from each country.,"SELECT country , count(*) FROM people GROUP BY country" Find the name of students who have taken the prerequisite course of the course with title International Finance.,SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance') Who is the player from Denmark who plays position c?,"SELECT player FROM table_name_68 WHERE position = ""c"" AND nationality = ""denmark""" What was the score for the away team southport?,"SELECT score FROM table_name_13 WHERE away_team = ""southport""" What is the school code of the accounting department?,"SELECT school_code FROM department WHERE dept_name = ""Accounting""" What is the official name of the municipality whose name in Spanish is Vitoria? ,"SELECT official_name FROM table_300283_1 WHERE name_in_spanish = ""Vitoria""" I want to know the final score for december 27,"SELECT final_score FROM table_name_74 WHERE date = ""december 27""" What was the total number of seats won where the % of votes is equal to 20.29?,"SELECT COUNT(seats_won) FROM table_149330_1 WHERE _percentage_of_votes = ""20.29""" What is the country with a 68-73-69=210 score?,SELECT country FROM table_name_91 WHERE score = 68 - 73 - 69 = 210 Who is the youngest player who is still living. State the given name and date of birth.,"SELECT nameGiven , nameGiven , birthYear, birthMon, birthDay FROM Master WHERE deathYear IS NULL ORDER BY birthYear DESC, birthMon DESC, birthday DESC LIMIT 1" What was the result of the singer with the top 8?,"SELECT result FROM table_name_39 WHERE episode = ""top 8""" What rank was the swimmer in lane 4?,SELECT rank FROM table_name_41 WHERE lane = 4 What's the sum of the Area (KM 2) that's got a Population that's smaller than 90?,SELECT COUNT(area__km_2__) FROM table_name_20 WHERE population < 90 List the council tax ids and their related cmi cross references of all the parking fines.,"SELECT council_tax_id , cmi_cross_ref_id FROM parking_fines" Show ids for all the male faculty.,SELECT FacID FROM Faculty WHERE Sex = 'M' Calculate the average of repetitions in the pages that have a total of 100 different words.,SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.page) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 100 What is the 1994 finish associated with a 1995 finish of 3R and 1997 of QF?,"SELECT 1994 FROM table_name_92 WHERE 1997 = ""qf"" AND 1995 = ""3r""" What product is the least shipped to the postal code 28023?,SELECT T4.ProductName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID WHERE T1.PostalCode = 28023 ORDER BY T3.Quantity LIMIT 1 List down the number of inhabitants of customers with a widowed marital status and false response .,SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.MARITAL_STATUS = 'Widowed' AND T2.RESPONSE = 'true' How many churches have a wedding in year 2016?,SELECT COUNT (DISTINCT church_id) FROM wedding WHERE YEAR = 2016 What is the results in 2004 that has a 2013 result of 2r?,"SELECT 2004 FROM table_name_72 WHERE 2013 = ""2r""" "Find the last names of all the authors that have written a paper with title containing the word ""Monadic"".","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE ""%Monadic%""" List all books published by ADV Manga.,SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'ADV Manga' Which manufacturer has a time of +10.142?,"SELECT manufacturer FROM table_name_11 WHERE time = ""+10.142""" What is the average price of games belonging in the arcade genre which has a content rating of Everyone 10+?,SELECT AVG(Price) FROM playstore WHERE 'Content Rating' = 'Everyone 10+' AND Genres = 'Arcade' What was the overall record of Oral Roberts college?,"SELECT record FROM table_16295365_1 WHERE school = ""Oral Roberts""" What round has a method of submission?,"SELECT round FROM table_name_64 WHERE method = ""submission""" "what is november 3 when june 10-11 is june 10, 1964?","SELECT november_3 FROM table_25355392_2 WHERE june_10_11 = ""June 10, 1964""" Anthony West ride which Motorcyle?,"SELECT motorcycle FROM table_name_23 WHERE rider = ""anthony west""" What's the Date with the Region of Europe and has a Catalog of 28765 22392 8?,"SELECT date FROM table_name_13 WHERE region = ""europe"" AND catalog = ""28765 22392 8""" "Between device ID of ""-9215352913819630000"" and ""-9222956879900150000"", mention the age and gender of device user who participated more events.","SELECT T.age, T.gender FROM ( SELECT T2.age, T2.gender, COUNT(T1.device_id) AS num FROM events AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T1.device_id BETWEEN -9215352913819630000 AND -9222956879900150000 GROUP BY T2.age, T2.gender ) AS T ORDER BY T.num DESC LIMIT 1" Who was the Winner of the French Polynesia Billabong Pro Event?,"SELECT winner FROM table_name_29 WHERE event = ""billabong pro"" AND country = ""french polynesia""" Name the annual rainfail for 2002 population being 493984,SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984 What is the name of the bank branch with the greatest number of customers?,SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 what is the rank of Mark | Do you mean the rank of the faculty whose fname is Mark? | exactly,"SELECT Rank FROM FACULTY WHERE Fname = ""Mark""" What is the average age of the dogs who have gone through any treatments?,SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments ) Which organization has a Finish of 4th?,"SELECT organization FROM table_name_93 WHERE finish = ""4th""" "How many top 10 finishes did Ken Bouchard get in the year he won $17,695?","SELECT top_10 FROM table_2333416_2 WHERE winnings = ""$17,695""" And how about their last names?,"SELECT T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Confirmed""" "Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?","SELECT club_team FROM table_name_7 WHERE position = ""(d)"" AND nationality = ""canada"" AND player = ""andrew macwilliam""" What is the average heights of crew members from Animation Department?,SELECT AVG(T1.height_meters) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Animation Department'; "If the points is 20, what was the team name?","SELECT team FROM table_17693171_1 WHERE points = ""20""" Who is the director of kon-tiki original title?,"SELECT director FROM table_21655290_1 WHERE original_title = ""Kon-Tiki""" "What is listed in notes for the athlete, lassi karonen?","SELECT notes FROM table_name_46 WHERE athlete = ""lassi karonen""" What is the language that was used most often in songs with resolution above 500?,SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 What was the venue where the result was 12th?,"SELECT venue FROM table_name_73 WHERE result = ""12th""" what percent of slovenes did the village called čahorče in slovenian have in 1991?,"SELECT percent_of_slovenes_1991 FROM table_10797463_1 WHERE village__slovenian_ = ""Čahorče""" Provide the supplier company name in Sydney and its homepage address if available.,"SELECT CompanyName, HomePage FROM Suppliers WHERE City = 'Sydney'" "With an overall record of KSU, 118-117 what is the last 5 meetings?","SELECT last_5_meetings FROM table_name_38 WHERE overall_record = ""ksu, 118-117""" What is the phonemic when the phonetic is [pʰaː˥˥]?,"SELECT phonemic FROM table_name_42 WHERE phonetic = ""[pʰaː˥˥]""" "What are the name, role code, and date of birth of the employee named 'Armani'?","SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'" List all the titles of the Spanish books published by Alfaguara.,SELECT T2.title FROM book_language AS T1 INNER JOIN book AS T2 ON T2.language_id = T1.language_id INNER JOIN publisher AS T3 ON T3.publisher_id = T2.publisher_id WHERE T1.language_name = 'Spanish' AND T3.publisher_name = 'Alfaguara' GROUP BY T2.title What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?,"SELECT actors_name FROM table_10236830_6 WHERE film_name = ""Chopin: Desire for Love"" AND nomination = ""Best Actress in a Leading Role""" "Describe the award title, person and character name of the award ID 326.","SELECT DISTINCT T1.award, T1.person, T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.award_id = 326;" what is the person there the numbers is 2343,SELECT player FROM table_28498999_6 WHERE points = 2343 Show the names and main services for train stations that have the top three total number of passengers.,"SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3" with rank of 31 what is the year?,"SELECT COUNT(year) FROM table_name_48 WHERE rank = ""31""" What are those players' names?,"SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' and yCard = ""yes""" Return the ids of all products that were ordered more than three times or supplied more than 80000.,SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000 "When did the Indians play a game with 15,105 people in attendance?","SELECT date FROM table_name_5 WHERE attendance = ""15,105""" Which channels are not owned by CCTV? Give me the channel names.,SELECT name FROM channel WHERE OWNER != 'CCTV' what's the score in canada with place of t8?,"SELECT score FROM table_name_83 WHERE country = ""canada"" AND place = ""t8""" Hello! Can you show me a list of all of the coupon IDs and coupon amounts?,"SELECT coupon_id, coupon_amount FROM Discount_Coupons" What is the smallest total number of medals for rank 11 and more than 0 silver medals?,"SELECT MIN(total) FROM table_name_25 WHERE rank = ""11"" AND silver > 0" "Give the contact name of the supplier for the product ""Gudbrandsdalsost"".",SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Gudbrandsdalsost' How many laps does driver dario franchitti have?,"SELECT laps FROM table_name_46 WHERE driver = ""dario franchitti""" What are the maximum and minimum number of cities in all markets.,"SELECT max(Number_cities) , min(Number_cities) FROM market" List the names of all the umpires from England.,SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN country AS T2 ON T2.Country_Id = T1.Umpire_Country WHERE T2.Country_Name = 'England' "Which Average that has a W-L-T of 5-1, and a Season smaller than 2001, and Games smaller than 6?","SELECT AVG(average) FROM table_name_59 WHERE w_l_t = ""5-1"" AND season < 2001 AND games < 6" How many businesses with the category named Stadiums & Arenas are rated highest?,SELECT COUNT(T1.business_id) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.category_name = 'Stadiums & Arenas' AND T3.stars = ( SELECT MAX(stars) FROM Business ) "WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0?","SELECT MAX(wins) FROM table_name_89 WHERE series = ""british formula three"" AND season = ""2005"" AND poles < 0" How many books on business have the bookstores in Massachusetts ordered?,SELECT SUM(T1.qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T2.state = 'Massachusetts' AND T3.type = 'business' What is the county and region of Davis City?,"SELECT county, region FROM geographic WHERE city = 'Davis'" What is the ship id and name that caused most total injuries?,"SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1" What is the Total for the Player with a To par of +11?,"SELECT MAX(total) FROM table_name_17 WHERE to_par = ""+11""" Name the most overall rank for czech republic,"SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = ""Czech Republic""" Tell me the total number of grid for laps of 52,SELECT COUNT(grid) FROM table_name_60 WHERE laps = 52 What is the estimated end date for the 2001-037a international designated satellite?,"SELECT estimated_end_date[_clarification_needed_] FROM table_18161217_2 WHERE cospar_id = ""2001-037A""" What is the genre name of the film HUNGER ROOF?,SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' What year finished with Daniel Zueras as the runner-up?,"SELECT COUNT(year) FROM table_1149495_1 WHERE runner_up = ""Daniel Zueras""" Find the student ID and login name of the student with the most course enrollments,"SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.,"SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'" "Show the id, name of each festival and the number of artworks it has nominated.","SELECT T1.Festival_ID , T3.Festival_Name , COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID" "What is the sum of Round(s), when Method is ""Submission (Banana Split)""?","SELECT SUM(round) FROM table_name_79 WHERE method = ""submission (banana split)""" "what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?","SELECT english_translation FROM table_name_51 WHERE language = ""english"" AND draw < 16 AND artist = ""aysel and arash""" Name the lost for % won of 55.37,"SELECT lost FROM table_name_64 WHERE _percentage_won = ""55.37""" Which state is University of Tennessee based in?,"SELECT state FROM table_name_27 WHERE host = ""university of tennessee""" What region has a transmitter located at Mount Sugarloaf?,"SELECT region_served FROM table_name_1 WHERE transmitter_location = ""mount sugarloaf""" List all players' given name who are good at both left and right hand and playing the forward position.,SELECT nameGiven FROM Master WHERE shootCatch IS NULL AND pos = 'F' "List the hardware model name for the phones that were produced by ""Nokia Corporation"" or whose screen mode type is ""Graphics.""","SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = ""Graphics"" OR t2.Company_name = ""Nokia Corporation""" List the order cancelled customer id from the table?,"select order_id ,customer_id from Customer_Orders where order_status = 'Cancelled'" What is the supply cost of large plated tin?,SELECT T2.ps_supplycost FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T1.p_type = 'large plated tin' What is the lowest score for a year before 2008 and had 3rd place?,"SELECT MIN(score) FROM table_name_89 WHERE year < 2008 AND placement = ""3rd""" What dates of captaincy for a win % of 35.71?,SELECT dates_of_captaincy FROM table_name_14 WHERE _percentage_win_[a_] = 35.71 What country had the car with the Jawa 350cc engine?,"SELECT country FROM table_name_42 WHERE engine_make_capacity = ""jawa 350cc""" Find the countries that have never participated in any competition with Friendly type.,SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' Find all students taught by OTHA MOYER. Output the first and last names of the students.,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" Who wrote the episode that had 5.93 million viewers?,"SELECT writer FROM table_27846651_1 WHERE viewers__millions_ = ""5.93""" Find out the popularity of the movies with the highest vote count.,SELECT popularity FROM movie ORDER BY vote_COUNT DESC LIMIT 1 What is the capital for the state that has the largest city of Burlington?,"SELECT capital FROM table_name_27 WHERE largest_city = ""burlington""" Where was September 5?,"SELECT location FROM table_name_25 WHERE date = ""september 5""" What is the total capacity for the city of Trogir?,"SELECT SUM(capacity) FROM table_name_21 WHERE city = ""trogir""" How many different starts had an average finish of 17.9?,"SELECT COUNT(starts) FROM table_2622469_1 WHERE avg_finish = ""17.9""" what is the role of the project id 5?,SELECT role_code FROM Project_Staff WHERE project_id = 5 "Which Series has Poles of 0, and Races of 17?","SELECT series FROM table_name_72 WHERE poles = ""0"" AND races = ""17""" Find the total population of the districts where the area is bigger than the average city area.,SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district) List all location attendance for series 1-1.,"SELECT location_attendance FROM table_17344582_11 WHERE series = ""1-1""" Which game type has most number of games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count ( * ) DESC LIMIT 1 What was the highest lap count for Walker Racing with a grid larger than 15?,"SELECT MAX(laps) FROM table_name_34 WHERE team = ""walker racing"" AND grid > 15" "Which Date has a Game smaller than 4, and an Opponent of calgary flames, and a Score of 4–5?","SELECT date FROM table_name_83 WHERE game < 4 AND opponent = ""calgary flames"" AND score = ""4–5""" Show the names and details of all the staff members.,"SELECT Name , Other_Details FROM Staff" What is the payment method code used by the most orders?,SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1 What is the name of each course and the corresponding number of student enrollment?,"SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name" Show the document type code with fewer than 3 documents.,SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3 "Which Lost has a Position of 4, and a Drawn smaller than 3?",SELECT AVG(lost) FROM table_name_4 WHERE position = 4 AND drawn < 3 "Which stadium name contains the substring ""Bank""?","SELECT name FROM stadium WHERE name LIKE ""%Bank%""" What year were the first game released?,SELECT T.release_year FROM game_platform AS T ORDER BY T.release_year ASC LIMIT 1 What are the heights of body builders with total score smaller than 315?,SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315 What is the smallest goal during the 2006 fifa world cup qualification competition?,"SELECT MIN(goal) FROM table_name_45 WHERE competition = ""2006 fifa world cup qualification""" List down the movies produced by Lucasfilm.,SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Lucasfilm' what is item id of cup?,SELECT i_id FROM item where title = 'cup' What is the shortest duration?,SELECT duration from files order by duration limit 1 What was the title for the label mother / mvp / polydor?,"SELECT title FROM table_name_80 WHERE label = ""mother / mvp / polydor""" "What is the average Year Named, when Latitude is 37.9N, and when Diameter (km) is greater than 76?","SELECT AVG(year_named) FROM table_name_70 WHERE latitude = ""37.9n"" AND diameter__km_ > 76" What classes did each school offer?,"SELECT * , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code" What are the names and positions of all physicians who prescribed brand X medications?,"SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" "Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777",SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777 "Which director had not nominated as a result, and had Bayan Ko: Kapit Sa Patalim as an original title?","SELECT director FROM table_name_51 WHERE result = ""not nominated"" AND original_title = ""bayan ko: kapit sa patalim""" What is the highest total of the player with a 7 to par?,SELECT MAX(total) FROM table_name_71 WHERE to_par = 7 Which MLS team had a pick number of 32?,SELECT mls_team FROM table_name_3 WHERE pick__number = 32 What is the largest and smallest customer codes?,"SELECT max(customer_code) , min(customer_code) FROM Customers" What was the attendance at the post-week 7 game against the San Diego Chargers?,"SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = ""san diego chargers""" What was the detailed issue did Mr Gunner Omer Fuller complain about?,SELECT T2.`Sub-issue` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Gunner' AND T1.middle = 'Omer' AND T1.last = 'Fuller' AND T1.sex = 'Male' What is the away side that playes at lake oval?,"SELECT away_team AS score FROM table_name_12 WHERE venue = ""lake oval""" "When the Winning score is 68-65-65-68=266, what is the Margin of victory?",SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266 Who were the candidates in district Pennsylvania 3?,"SELECT candidates FROM table_1341423_38 WHERE district = ""Pennsylvania 3""" Provide the body weight of Elly Koss in every observation.,"SELECT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.DESCRIPTION = 'Body Weight'" What is their name?,SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 What was the outcome of the game that had a week number of less than 2?,SELECT result FROM table_name_67 WHERE week < 2 "How many times has a wrestler whose federation was roh, wwe competed in this event?","SELECT COUNT(other_placings) FROM table_2305948_1 WHERE federation = ""ROH, WWE""" What was the 2nd leg score for Chemie Halle?,"SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = ""chemie halle""" How many budget types do we have?,SELECT count(*) FROM Ref_budget_codes "What is To Par, when Place is 3?","SELECT to_par FROM table_name_43 WHERE place = ""3""" How many images have over 20 object samples?,SELECT COUNT(T1.IMG_ID) FROM ( SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(OBJ_SAMPLE_ID) > 20 ) T1 "What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?","SELECT result FROM table_name_37 WHERE competition = ""2010 fifa world cup qualification"" AND date = ""10 september 2008""" Show me salaries for those employees,SELECT salary FROM employees WHERE salary < ( SELECT min ( salary ) FROM employees WHERE job_id = 'MK_MAN' ) Show the names of members and the location of the performances they attended.,"SELECT T2.Name, T3.Location 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" Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.,SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3 "What golfer has a greater than 293 total, and won in 1989?","SELECT player FROM table_name_34 WHERE total > 293 AND year_s__won = ""1989""" "What is the campus fee of ""San Jose State University"" in year 1996?","SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND T2.year = 1996" How many male users use the Galaxy Ace Plus model?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Ace Plus' AND T1.gender = 'M' What are all the makers and models?,"SELECT Maker, Model FROM MODEL_LIST" Name the FCC info for call sign of k208eq,"SELECT fcc_info FROM table_name_51 WHERE call_sign = ""k208eq""" "How many solar eclipse on June 10-11, while November 3 is 153?","SELECT june_10_11 FROM table_25287007_2 WHERE november_3 = ""153""" when was the ship laid down when it was completed on 3 july 1926?,"SELECT laid_down FROM table_name_43 WHERE completed = ""3 july 1926""" Show the description of the transaction type that occurs most frequently.,SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?,"SELECT notes FROM table_name_82 WHERE vehicle = ""scout x-4"" AND ceased_operation = ""june 1971""" "Return the decor of the room named ""Recluse and defiance"".","SELECT decor FROM Rooms WHERE roomName = ""Recluse and defiance"";" "Where is the club ""Pen and Paper Gaming"" located?","SELECT clublocation FROM club WHERE clubname = ""Pen and Paper Gaming""" Who won the Best Female Artist where Best R&B Contributor won the Best Male Lyricist?,"SELECT best_female_artist FROM table_22546460_4 WHERE best_male_lyricist = ""Best R&B Contributor""" How many o-19% are where the quartier is in saint-loup?,"SELECT _percentage_0_19_years FROM table_29615165_5 WHERE quartier = ""Saint-Loup""" "Have the teacher ""42d43fa6f37314365d08692e08680973"" acquired P.h.D or doctor degree?",SELECT CASE WHEN teacher_prefix = 'Dr.' THEN 'Yes' ELSE 'NO' END FROM projects WHERE teacher_acctid = '42d43fa6f37314365d08692e08680973' "How many ""food maintenance"" related violations did inspection no.1454071 have?",SELECT COUNT(T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = '1454071' AND T1.category = 'Food Maintenance' Which team had the least number of attendances in home games in 1980?,SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; How many crimes described as 'The theft of a motor vehicle' by the FBI have taken place in the Lake View community?,SELECT SUM(CASE WHEN T3.community_area_name = 'Lake View' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T1.description = 'The theft of a motor vehicle.' What year(s) were they nominated in?,SELECT year FROM musical GROUP BY Nominee HAVING COUNT ( * ) > 1 On average how large is the population of the counties?,SELECT avg(Population) FROM county How many professors are there?,"SELECT count ( * ) FROM Faculty WHERE Rank = ""Professor""" What line has Newmarket Junction terminus?,"SELECT line_name FROM table_name_4 WHERE terminus = ""newmarket junction""" How many bedrooms are there in those buildings?,"SELECT sum ( T2.bedroom_count ) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" What dates was champion masahiro kawamura at the ibaraki country club tournament?,"SELECT dates FROM table_name_6 WHERE tournament_location = ""ibaraki country club"" AND champion = ""masahiro kawamura""" What is the highest place of the song with 38 votes and a draw great than 3?,SELECT MAX(place) FROM table_name_8 WHERE votes = 38 AND draw > 3 How many Drawn is which has a Games smaller than 6?,SELECT SUM(drawn) FROM table_name_61 WHERE games < 6 What is the running of marlene sanchez?,"SELECT running FROM table_12407546_2 WHERE athlete = ""Marlene Sanchez""" "Among the players who died in Massachussets, how many of them have won an award?",SELECT COUNT(DISTINCT T1.playerID) FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T1.deathState = 'MA' What is the average ROM size of a phone made by company Nokia?,"SELECT avg ( T1.ROM_MiB ) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation""" Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?,SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20 "How many occurrences does the word ""panajot"" have?",SELECT occurrences FROM words WHERE word = 'panajot' What was the average crowd size when the away team was South Melbourne?,"SELECT AVG(crowd) FROM table_name_63 WHERE away_team = ""south melbourne""" What is the current club with more than 368 apps and a debut year earlier than 1994?,SELECT current_club FROM table_name_51 WHERE apps > 368 AND debut_year < 1994 What year did Miyoshi Umeki make a film?,"SELECT year FROM table_name_25 WHERE name = ""miyoshi umeki""" what language is seethaiah in,"SELECT language FROM table_name_27 WHERE film_name = ""seethaiah""" Thank you very much! Can you filter that list to show only the artist_names who have song for which the country code is the UK?,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name" "What was Gassaway's record at the fight in mississippi, united states against anthony macias?","SELECT record FROM table_name_19 WHERE location = ""mississippi, united states"" AND opponent = ""anthony macias""" How about those with no loans?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count ( * ) = 0 How many hours of role-playing games were played?,"SELECT sum ( hours_played ) FROM Plays_games AS T1 JOIN Video_games where GType = ""Role-playing game""" What was the location of the game with a score of 2:3?,"SELECT location FROM table_name_90 WHERE score = ""2:3""" How many professionals did not operate any treatment on dogs?,SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments ) What is the Tonnage of the ship from Canada?,"SELECT MAX(tonnage) FROM table_name_73 WHERE flag = ""canada""" How many non-active clients have not returned the rented material?,SELECT COUNT(T2.customer_id) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.active = 0 "Hmm, can you list the invoice numbers which are created before 1989-09-03 or after 2007-12-25?","SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" "On 8/29/2013 at 6:14:01 PM, how many bikes were borrowed from San Jose Diridon Caltrain Station?",SELECT SUM(T1.dock_count - T2.bikes_available) FROM station AS T1 INNER JOIN status AS T2 ON T1.id = T2.station_id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.time = '2013/08/29 06:14:01' "What about staff members who reported problems for the product ""rem""?","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""rem""" Show the number of documents.,SELECT count(*) FROM Documents What is draft detail of the document with id 7?,SELECT draft_details FROM Document_Drafts WHERE document_id = 7 Which model with a fleet series of s410-s434?,"SELECT model FROM table_name_60 WHERE fleet_series = ""s410-s434""" What is the average rating of the reviewers?,SELECT avg ( stars ) FROM Rating Which region is the majority of the athletes from?,SELECT T2.region_name FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id GROUP BY T2.region_name ORDER BY COUNT(T1.person_id) DESC LIMIT 1 What is his id?,SELECT T1.Railway_ID FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID order by count ( * ) desc limit 1 What is the region id of Christine Jacoba Aaftink?,SELECT T1.region_id FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T2.full_name = 'Christine Jacoba Aaftink' What are the top 3 stations that have sold the highest quantities for an item in a single day?,SELECT T2.station_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr ORDER BY T1.units DESC LIMIT 3 What year is the Grim Fandango with a windows platform?,"SELECT year FROM table_name_36 WHERE platform_s_ = ""windows"" AND game = ""grim fandango""" Which organisation type hires most research staff?,SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1; "Which country is 9 Green Ridge Point, Arendal located at?",SELECT T2.country_name FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T1.street_number = 9 AND T1.street_name = 'Green Ridge Point' AND T1.city = 'Arendal' Who is the turner on Team MRF?,"SELECT tuner FROM table_name_23 WHERE team = ""mrf""" What are the account details with the largest value?,SELECT Account_details FROM Accounts order by Account_details desc limit 1 Which network has a play-by-play announcer of John Wells?,"SELECT network FROM table_name_36 WHERE play_by_play = ""john wells""" How many different software platforms are there for devices?,SELECT count(DISTINCT Software_Platform) FROM device Who had the most points in game 81?,SELECT high_points FROM table_name_84 WHERE game = 81 What is the type of the player whose transfer fee was €20m?,"SELECT type FROM table_13770460_3 WHERE transfer_fee = ""€20M""" can you tell me the names of those wineries?,SELECT Winery FROM WINE GROUP BY Winery HAVING count ( * ) > = 4 What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?,"SELECT COUNT(pl_gp) FROM table_name_73 WHERE player = ""anton rodin"" AND reg_gp < 0" "which episode was Transmitted on wednesday if the episode of ""319 sucker punch"" was transmitted on tuesday? ","SELECT COUNT(wednesday) FROM table_18173916_8 WHERE tuesday = ""319 Sucker Punch""" "Among the customers who have ordered the product ""Telescoping Adjustable Floor Lamp"", how many of them are consumers?",SELECT COUNT(DISTINCT T1.`Customer Name`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T3.`Product Name` = 'Telescoping Adjustable Floor Lamp' AND T1.Segment = 'Consumer' Name the most applications for 1986,"SELECT MAX(applications) FROM table_20007413_3 WHERE year = ""1986""" What day was the circuit Isle of Man?,"SELECT date FROM table_name_72 WHERE circuit = ""isle of man""" What race has a distance of 1200 m?,"SELECT race FROM table_2062148_3 WHERE distance = ""1200 m""" Count the total number of students.,SELECT count(*) FROM student Which event is in round 1 with a record at 5-1?,"SELECT event FROM table_name_28 WHERE round = 1 AND record = ""5-1""" What is the average number of silver medals for rank 2 and more than 1 bronze medal?,SELECT AVG(silver) FROM table_name_15 WHERE rank = 2 AND bronze > 1 "Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance?","SELECT champion FROM table_name_65 WHERE venue = ""berlin"" AND attendance = ""100,000"" AND result = ""2-0""" How about males?,"SELECT count ( * ) from people where sex = ""M""" Who is the hero character of the adventure movie which was released on 2016/3/4?,SELECT T1.hero FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T2.genre = 'Adventure' AND T1.release_date = '4-Mar-16' Name the most attendance for tamworth with home venue,"SELECT MAX(attendance) FROM table_name_4 WHERE opponent = ""tamworth"" AND venue = ""home""" What date is the 1:00 pm game at arrowhead stadium?,"SELECT date FROM table_name_37 WHERE time___et__ = ""1:00 pm"" AND game_site = ""arrowhead stadium""" "What location airports is near by me has two airports? | What do you mean by near by you? Sorry, We cannot answer this. | what is the name of airport in the country Papua New Guinea",SELECT name FROM airports where country = 'Papua New Guinea' What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz?,"SELECT date FROM table_name_34 WHERE circuit = ""hockenheimring"" AND winning_manufacturer = ""mercedes-benz""" What is the lowest ranking associated with a total of 23?,SELECT MIN(ranking) FROM table_name_51 WHERE total = 23 Find the name of the courses that do not have any prerequisite?,SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) What is the average scores of Tiramisu Kitchen in all inspections?,SELECT AVG(T1.score) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Tiramisu Kitchen' I want the Grand Final Date for season 1988,SELECT grand_finaldate FROM table_name_40 WHERE season = 1988 How many male users are active in the events held on 5/1/2016?,SELECT COUNT(T3.gender) FROM app_events AS T1 INNER JOIN events_relevant AS T2 ON T2.event_id = T1.event_id INNER JOIN gender_age AS T3 ON T3.device_id = T2.device_id WHERE T1.is_active = 1 AND T3.gender = 'M' AND T2.timestamp LIKE '2016-05-01%' Which countries have members?,SELECT distinct ( Country ) FROM member Which country has the most members?,SELECT Country FROM member GROUP BY Country order by COUNT ( * ) desc limit 1 "Which dorm has the largest capacity? | Hi do you need the dorm name or dorm id ? | dorm id , please.",SELECT dormid FROM dorm ORDER BY student_capacity DESC LIMIT 1 By how many strokes did Lema beat Jack Nicklaus?,"SELECT margin_of_victory FROM table_name_16 WHERE runner_s__up = ""jack nicklaus""" "What are the names and birth dates of people, ordered by their names in alphabetical order?","SELECT Name , Birth_Date FROM people ORDER BY Name ASC" "Cities that were opened before 2010 | Ah, I cannot understand. Do you mean cities that have branches opened before 2010? | Give me names of branches opened before 2010",SELECT name FROM branch WHERE open_year < 2010 How many active users are there in the event?,SELECT COUNT(app_id) FROM app_events WHERE is_active = 1 List the names of the top 5 oldest people.,SELECT Name FROM People ORDER BY Age DESC LIMIT 5 WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR?,"SELECT hometown FROM table_11677100_11 WHERE position = ""Catcher""" How many students failed tests?,"SELECT count ( distinct T1.student_id ) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Fail""" Show the flight number and distance of the flight with maximum price.,"SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1" How many planes does Southwest Airlines Co. have?,SELECT COUNT(T3.TAIL_NUM) FROM ( SELECT T1.TAIL_NUM FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T2.Description = 'Southwest Airlines Co.: WN' GROUP BY T1.TAIL_NUM ) T3 How many artists are from Bangladesh?,"SELECT count(*) FROM artist WHERE country = ""Bangladesh""" Name the standard yarn weight system for 9 wpi,"SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = ""9 wpi""" Calculate the average number of male users who posted tweets in a week.,SELECT COUNT(DISTINCT T1.TweetID) / COUNT(DISTINCT T1.UserID) / 7 AS avg FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' AND T1.Day BETWEEN 1 AND 31 "What time/retired for a grid less than 19, under 21 laps, and made by aprilia?","SELECT time_retired FROM table_name_38 WHERE grid < 19 AND manufacturer = ""aprilia"" AND laps < 21" What is the time/retired of the team with a grid of 14?,SELECT time_retired FROM table_name_62 WHERE grid = 14 what is the highest annual interchanges ?,SELECT Annual_interchanges FROM station ORDER BY Annual_interchanges DESC LIMIT 1 "What is shown for november 3 when august 21-22 is august 22, 1998?","SELECT november_3 FROM table_25355501_2 WHERE august_21_22 = ""August 22, 1998""" How many employees do we have?,SELECT COUNT(*) FROM Employee "What is the south season of the scorpio sign, which has cold & wet qualities?","SELECT season AS :_south FROM table_name_88 WHERE qualities = ""cold & wet"" AND sign = ""scorpio""" List all deceased goalies by last name. List the season where he had the most time played.,"SELECT T1.playerID, T2.year, Min FROM Master AS T1 INNER JOIN Goalies AS T2 ON T2.playerID = T1.playerID WHERE T1.deathYear IS NOT NULL ORDER BY T2.Min DESC LIMIT 1" Please list any five cities that have an unidentified county and region.,SELECT city FROM geographic WHERE county = 'unknown' AND region = 'unknown' LIMIT 5 "Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?",SELECT AVG(champs) FROM table_name_16 WHERE draw > 2 AND games < 60 How many mountains are there in the country with the most land area?,SELECT COUNT(Mountain) FROM geo_mountain WHERE Country = ( SELECT Code FROM country ORDER BY Area DESC LIMIT 1 ) What are the years of opening for tracks with seating between 4000 and 5000?,SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000 What is the average attendance when the Forest Green Rovers is the away team?,"SELECT AVG(attendance) FROM table_name_82 WHERE away_team = ""forest green rovers""" What are the gender and occupation of players?,"SELECT Gender , Occupation FROM player" "What is Points, when Club is Maesteg RFC?","SELECT points FROM table_name_14 WHERE club = ""maesteg rfc""" What was the airdate of 21 series number?,SELECT original_air_date FROM table_11630008_3 WHERE series_no = 21 "Show name, opening year, and capacity for each cinema.","SELECT name, openning_year, capacity FROM cinema" Can you list their names in this chat box?,"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" "After 1986, how many Wins did Lucky Strike Yamaha Team with less than 6 Points have?","SELECT MIN(wins) FROM table_name_51 WHERE year > 1986 AND team = ""lucky strike yamaha"" AND points < 6" "What's the report for the race name, XIII Grand Prix de l'Albigeois?","SELECT report FROM table_1140117_5 WHERE race_name = ""XIII Grand Prix de l'Albigeois""" What is the average of absence for an employed students?,SELECT AVG(month) FROM longest_absense_from_school WHERE name NOT IN ( SELECT name FROM unemployed ) What kind of industry does royal dutch shell belongs to?,"SELECT Industry FROM company where name = ""Royal Dutch Shell""" What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.,"SELECT date, cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5" When bas van erp was the athlete what was the quarterfinals?,"SELECT quarterfinals FROM table_18602462_21 WHERE athlete = ""Bas van Erp""" "What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?",SELECT MIN(total) FROM table_name_99 WHERE silver > 7 AND gold > 73 "Tally the match IDs in which V Kohli is the ""Man of the Match"".",SELECT T1.Match_Id FROM `Match` AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Match = T2.Player_Id WHERE T2.Player_Name = 'V Kohli' How far into the postseason did the Rams go when their record was 29-7?,"SELECT postseason FROM table_14609295_4 WHERE overall = ""29-7""" "Which Term end has a Political Party of balli kombëtar, and a Born-Died of 1905–1972?","SELECT term_end FROM table_name_23 WHERE political_party = ""balli kombëtar"" AND born_died = ""1905–1972""" Which Neon has Atomic property of average valence electron energy (avee)?,"SELECT neon FROM table_name_91 WHERE atomic_property = ""average valence electron energy (avee)""" Show all locations with only 1 station.,SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1 What season had more than 12 contestants in which greydis gil won?,"SELECT season FROM table_name_98 WHERE number_of_contestants > 12 AND winner = ""greydis gil""" What is the total number of Wickets with a 26.13 average?,SELECT COUNT(wickets) FROM table_name_8 WHERE average = 26.13 Tell me the pole winner of may 12,"SELECT pole_winner FROM table_name_91 WHERE date = ""may 12""" Name the leaast points for standing 5th,"SELECT MIN(points) FROM table_26882866_1 WHERE standing = ""5th""" "What is the title of the original airing on e4 May 2, 2010?","SELECT title FROM table_22170495_6 WHERE original_airing_on_e4 = ""May 2, 2010""" Which player had a To par of 13?,SELECT player FROM table_name_78 WHERE to_par = 13 What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order.,SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details ASC; Which opponent has a record of 3–1?,"SELECT opponent FROM table_name_94 WHERE record = ""3–1""" What is the name of the team that won the first ever match?,SELECT T1.Team_Name FROM team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Season_Id = 1 ORDER BY T2.Match_Date LIMIT 1 What is the lowest salary in departments with average salary greater than the overall average.,"SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)" What is the bronze for Kyrgyzstan nation with a silver record of greater than 0?,"SELECT AVG(bronze) FROM table_name_8 WHERE nation = ""kyrgyzstan"" AND silver > 0" What is the die size(mm 2) for model sgx531?,"SELECT die_size__mm_2___[1] FROM table_1439045_5 WHERE model = ""SGX531""" What are the names of catalog with number 8,"SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" Count the number of high schoolers in grades 9 or 10.,SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10 Show the number of locations.,SELECT count(*) FROM Ref_locations "Show the id, the date of account opened, the account name, and other account detail for all accounts.","SELECT account_id , date_account_opened , account_name , other_account_details FROM Accounts" how many incumbent with first elected being 1924,SELECT COUNT(incumbent) FROM table_1342393_17 WHERE first_elected = 1924 "Show the date of the transcript which shows the least number of results, also list the id.","SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1" How much do the works data saved in English and Arabic differ from one another?,SELECT SUM(CASE WHEN T1.Name = 'English' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.Name = 'Arabic' THEN 1 ELSE 0 END) FROM Culture AS T1 INNER JOIN ProductModelProductDescriptionCulture AS T2 ON T1.CultureID = T2.CultureID WHERE T1.Name = 'English' OR T1.Name = 'Arabic' How many rooms are there?,SELECT sum ( room_number ) FROM classroom What is the average year that the Belanger Motors had an Offenhauser l4 engine?,"SELECT AVG(year) FROM table_name_8 WHERE engine = ""offenhauser l4"" AND entrant = ""belanger motors""" How many different services are provided by all stations?,SELECT count(DISTINCT services) FROM station; What date was the opponent VFL Sindelfingen?,"SELECT date FROM table_name_98 WHERE opponent = ""vfl sindelfingen""" How many role-playing games are there?,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Role-Playing' "What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?","SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = ""march 3, 1980""" Name the total number of ranks when total is less than 1,SELECT COUNT(rank) FROM table_name_76 WHERE total < 1 What is the average unit price of rock tracks?,"SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" Find the total student enrollment for different affiliation type schools.,"SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation" Which award was given for the role of Elphaba in 2009?,"SELECT award FROM table_name_92 WHERE role = ""elphaba"" AND year = ""2009""" List down the trip IDs when bike no. 10 was used by subscribers and the weather's mean temperature is no less than 62 degress Fahrenheit.,SELECT T1.id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.bike_id = 10 AND T2.mean_temperature_f > 62 AND T1.subscription_type = 'Subscriber' How many apartments are there?,SELECT count ( * ) FROM Apartments What is the name of the author who wrote the most papers? | Do you mean the fname or lname? | Both please,"SELECT t1.lname,t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid group by t1.authID order by count ( * ) desc limit 1" In which regions are there no African food restaurants?,SELECT DISTINCT T2.region FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type != 'african' "What is the sum for the year with a location of newport, rhode island?","SELECT SUM(year) FROM table_name_57 WHERE location = ""newport, rhode island""" "What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333?","SELECT MIN(free) FROM table_name_87 WHERE athlete = ""apolline dreyfuss & lila meesseman-bakir"" AND total > 90.333" How many companies do ship Northwind's orders?,SELECT COUNT(ShipperID) FROM Shippers Show the names of all technicians in ascending order of quality rank assigned to the machine with ID 2.,"SELECT T3.Name, t1.machine_id, quality_rank FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID and t1.machine_id = 2 order by quality_rank" "In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?",SELECT CASE WHEN 'Studio Entertainment[NI 1]' > 'Disney Media Networks' THEN 'Studio Entertainment[NI 1]' ELSE 'Disney Media Networks' END FROM revenue WHERE `Year` = 1998 Name the least matches for runs being 276,SELECT MIN(matches) FROM table_17900317_5 WHERE runs = 276 Which sport did the United States win?,"SELECT sport FROM table_name_29 WHERE nation_represented = ""united states""" "Group by ships by flag, and return number of ships that have each flag.","SELECT count(*) , flag FROM ship GROUP BY flag" What is the alphabetically ordered list of all distinct medications?,SELECT DISTINCT name FROM medication ORDER BY name "What is Venue, when Status is ""Test Match"", and when Against is ""12""?","SELECT venue FROM table_name_16 WHERE status = ""test match"" AND against = 12" Show publishers with a book published in 1989 and a book in 1990.,SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990 What are the ids and locations of all circuits in France or Belgium?,"SELECT circuitid , LOCATION FROM circuits WHERE country = ""France"" OR country = ""Belgium""" What is the position for the player becchio?,SELECT position FROM table WHERE player = Becchio What is the room type for room 101?,SELECT roomtype from room where roomnumber = 101 How many rounds had a race name of anglia tv trophy?,"SELECT COUNT(round) FROM table_name_25 WHERE name = ""anglia tv trophy""" WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?,"SELECT high_assists FROM table_name_21 WHERE date = ""november 24""" Show me their customer addresses,SELECT T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING count ( * ) > 2 Tell me the power when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750,"SELECT power_rpm FROM table_name_37 WHERE torque__nm__rpm = ""n·m (lb·ft)/*n·m (lb·ft) @1750""" What was the film that vadim ilyenko directed?,"SELECT film_name FROM table_10236830_1 WHERE director = ""Vadim Ilyenko""" What was the destination of the season won by Anwar Syed?,"SELECT destination FROM table_20026849_1 WHERE winner = ""Anwar Syed""" What Elimination number is listed againt Eliminated by Sonjay Dutt?,"SELECT elimination FROM table_name_2 WHERE eliminated_by = ""sonjay dutt""" Show the transaction type code that occurs the most frequently.,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 "What is Outcome, when Score is 1-6, 3-6?","SELECT outcome FROM table_name_5 WHERE score = ""1-6, 3-6""" What date did Mike Rockenfeller have the fastest lap?,"SELECT date FROM table_24732149_2 WHERE fastest_lap = ""Mike Rockenfeller""" "Among the bike trips started on the days with a fog in 2013, how many of those trips started from the station ""2nd at Townsend""?",SELECT COUNT(T1.start_station_name) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2013%' AND T2.events = 'Fog' AND T1.start_station_name = '2nd at Townsend' AND T2.zip_code = 94107 "Find the texts of assessment notes for teachers with last name ""Schuster"".","SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = ""Schuster""" What is the Sub-Parish (Sokn) that was built in 1957 in the location of Stavang?,"SELECT sub_parish__sokn_ FROM table_name_30 WHERE year_built = ""1957"" AND location_of_the_church = ""stavang""" Nam the total number for bruce coulter award for 9th game,"SELECT COUNT(bruce_coulter_award) FROM table_228149_1 WHERE game = ""9th""" The name of the smallest mountain from all countries | Do you mean the name of the lowest mountain? | YES,SELECT name FROM mountain order by height limit 1 What is the total amount male and female actors who were casted in movie ID 1684910 and what is the proportion between the highest quality actors against the worst quality of actors? Indicate your answer in percentage. List the the director as well as the genre.,"SELECT SUM(IIF(a_gender = 'M', 1, 0)) , SUM(IIF(a_gender = 'F', 1, 0)) , CAST(SUM(IIF(a_quality = 5, 1, 0)) AS REAL) * 100 / COUNT(*) , CAST(SUM(IIF(a_quality = 0, 1, 0)) AS REAL) * 100 / COUNT(*), ( SELECT directorid FROM movies2directors WHERE movieid = 1684910 ) , ( SELECT genre FROM movies2directors WHERE movieid = 1684910 ) FROM actors WHERE actorid IN ( SELECT actorid FROM movies2actors WHERE movieid = 1684910 )" Where was the fight located that lasted a time of 2:33?,"SELECT location FROM table_name_7 WHERE time = ""2:33""" In which country does the most populated university in 2014 located ?,SELECT T2.country_id FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2014 ORDER BY T1.num_students DESC LIMIT 1 What is the list of school locations sorted in ascending order of school enrollment?,SELECT LOCATION FROM school ORDER BY Enrollment ASC What is Pegasus' right ascension with a 7318a NGC?,"SELECT right_ascension___j2000__ FROM table_name_67 WHERE constellation = ""pegasus"" AND ngc_number = ""7318a""" "Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?","SELECT SUM(pick) FROM table_name_64 WHERE round > 8 AND name = ""kenny fells"" AND overall > 297" What is the route that has the longest duration? Indicate the city of where the stations are located.,"SELECT T1.start_station_name, T1.end_station_name, T2.city FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.duration = ( SELECT MAX(T1.duration) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name )" List out the first name of legislators who are senior Senator.,SELECT T1.first_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state_rank = 'senior' GROUP BY T1.first_name Give me a list of all the last names of authors sorted in alphabetical order,SELECT lname FROM authors ORDER BY lname Indicate if there is any pair formed by the words fukunaga and d'egees.,SELECT CASE WHEN COUNT(T1.wid) > 0 THEN 'yes' ELSE 'no' END FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st = ( SELECT wid FROM words WHERE T1.word = 'fukunaga' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word LIKE 'd%egees' ) Find the names of all instructors whose name includes the substring “dar”.,SELECT name FROM instructor WHERE name LIKE '%dar%' What are the titles of courses without prerequisites?,SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) "Which Blagojevich (D) has a Source of zogby/wsj, and a Date of october 16, 2006?","SELECT blagojevich__d_ FROM table_name_70 WHERE source = ""zogby/wsj"" AND date = ""october 16, 2006""" Find the maximum age of all the students.,SELECT max(Age) FROM STUDENT what is the activity id of faculty id of 1082,select actid from Faculty_Participates_in where FacID = 1082 What is the name of the Artist for the Spoofed Title of the moron downer jr. show?,"SELECT artist FROM table_name_13 WHERE spoofed_title = ""the moron downer jr. show""" Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?,SELECT MIN(administrative_panel) FROM table_name_52 WHERE nominated_by_the_taoiseach < 0 What are the product id and product type of the cheapest product?,"SELECT product_id, product_type_code FROM products ORDER BY product_price LIMIT 1" What is the IATA for San Francisco airport?,"SELECT iata FROM table_name_88 WHERE airport = ""san francisco airport""" "what is the bronze when silver is 1, gold is 0 the rank is 11 and the total is more than 1?","SELECT MAX(bronze) FROM table_name_74 WHERE silver = 1 AND gold = 0 AND rank = ""11"" AND total > 1" How many games are puzzle genre?,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Puzzle' What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli?,"SELECT tyre FROM table_name_87 WHERE entrant = ""sa alfa romeo"" AND driver = ""luigi fagioli""" Which Distance has a Time of men's speed skating?,"SELECT distance FROM table_name_46 WHERE time = ""men's speed skating""" "What are the first year and last year of the parties with theme ""Teqnology""","SELECT First_year , Last_year FROM party WHERE Party_Theme = ""Teqnology""" "Who was the player from the United States, with a total larger than 145?","SELECT player FROM table_name_32 WHERE country = ""united states"" AND total > 145" What transaction type code did that have?,"SELECT T3.transaction_type_code FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = ""PUR"" ORDER BY T3.amount_of_transaction DESC LIMIT 1" What vehicle has an epa highway fuel economy of 109 mpg-e?,"SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = ""109 mpg-e""" WHAT POSITION DOES PATRICK WIERCIOCH PLAY?,"SELECT position FROM table_11803648_17 WHERE player = ""Patrick Wiercioch""" what is the city of Riverside Park,"SELECT city FROM park where park_name = ""Riverside Park""" In what region do 18.6% of the people make less than 50% of the median income?,"SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = ""18.6%""" "What is the full comment on the method whose solution path is ""bmatzelle_nini\Source\Nini.sln"" with a tokenized name of ""alias text add alias""?",SELECT T2.FullComment FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'bmatzelle_niniSourceNini.sln' AND T2.NameTokenized = 'alias text add alias' What is the gold number when the total is 8 and bronze is more than 4?,SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4 Name the example when the realization is [ɐ],"SELECT example FROM table_name_36 WHERE realization = ""[ɐ]""" What is the most popular payment method?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1 What was the attendance at the West Ham United home game?,"SELECT attendance FROM table_name_69 WHERE home_team = ""west ham united""" what is the language when the awardee is re-recordist : mateen ahmad?,"SELECT language FROM table_25926120_7 WHERE awardee_s_ = ""Re-recordist : Mateen Ahmad""" What is the lowest episode number with an original airdate on 8 June 2008?,"SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = ""8 june 2008""" What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?,"SELECT inverse_subjunctive FROM table_name_9 WHERE imperative = ""—"" AND subjunctive = ""se måchadn""" In what year and season did Sohail Abbas compete?,"SELECT T1.games_year, T1.season FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'Sohail Abbas'" Find the name and component amount of the least popular furniture.,"SELECT name , Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1" Hello. How many classes are there?,SELECT count ( * ) FROM CLASS What is the name of the perpetrator with the biggest weight.,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1; "List the player's ID of the top five players, by descending order, in terms of bowling skill.",SELECT Player_Id FROM Player ORDER BY Bowling_skill DESC LIMIT 5 Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.,SELECT name FROM instructor WHERE salary > (SELECT MIN(salary) FROM instructor WHERE dept_name = 'Biology') What are the unique labels for the albums?,SELECT count(DISTINCT label) FROM albums Name the score for philadelphia flyers ,"SELECT score FROM table_16864968_9 WHERE opponent = ""Philadelphia Flyers""" How many times did kevin love (22) have the high points?,"SELECT COUNT(date) FROM table_27756314_8 WHERE high_points = ""Kevin Love (22)""" How many chips used by phones have a ram mib higher or equal to 64,SELECT count ( * ) FROM chip_model WHERE model_name IN ( SELECT chip_model FROM phone ) AND RAM_MiB > = 64 Name the location for democratic méga-plex taschereau imax,"SELECT location FROM table_2461720_1 WHERE theatre_name = ""Méga-Plex Taschereau IMAX""" Tally the movie ID and character name in the movie starring Jim Carrey.,"SELECT T2.movie_id, T2.character_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Jim Carrey'" "What week was the December 24, 1994 game?","SELECT SUM(week) FROM table_name_78 WHERE date = ""december 24, 1994""" Name the lowest Founded with the Name cougars?,"SELECT MIN(founded) FROM table_name_42 WHERE nickname = ""cougars""" How many districts have an incumbent first elected in 1940?,SELECT COUNT(district) FROM table_1342256_10 WHERE first_elected = 1940 List restaurant ids located in Danville city.,SELECT id_restaurant FROM location WHERE city = 'Danville' what the team where the record is 1-1 and the player is 1-1,"SELECT × FROM table_26173058_2 WHERE jeel = ""1-1"" AND ramtha = ""1-1""" "Which Record has a Game smaller than 19, and Points smaller than 19, and a Score of 4–6?","SELECT record FROM table_name_24 WHERE game < 19 AND points < 19 AND score = ""4–6""" What is the attendance of the location where New Orleans's team plays?,"SELECT location_attendance FROM table_name_81 WHERE team = ""new orleans""" what's the notes where withdrawn is 1956–57,"SELECT notes FROM table_1181375_1 WHERE withdrawn = ""1956–57""" How many female students did Stanford University have in 2011?,SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Stanford University' Give the phone number of the customer who placed the order id 10264.,SELECT T1.Phone FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10264 Return the names of parties that have two or more events.,SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2 How many players scored the most points on game 4?,SELECT COUNT(high_points) FROM table_13762472_3 WHERE game = 4 May I have the ids of those employees who cant authorize the destruction of documents?,SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed What are the most recent three independent nations?,SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country ORDER BY T2.Independence DESC LIMIT 3 On which day did the Chicago Cubs have a loss of trout (4-2)?,"SELECT date FROM table_name_23 WHERE loss = ""trout (4-2)""" Show the game that least number of hours played.,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum ( hours_played ) ASC LIMIT 1 "What is the resolution for song name ""Just beat it""?","SELECT resolution from song where song_name = ""Just beat it""" On which day and in which zip code was the min dew point lower than any day in zip code 94107?,"SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)" What is the total number of languages used in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba""" What is the value for Bahia when the Northeast total was 6747013?,"SELECT bahia FROM table_name_97 WHERE northeast_total = ""6747013""" "What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is No?","SELECT reserved_instruments FROM table_name_95 WHERE conduct_of_litigation = ""yes"" AND probate_activities = ""no""" What is the sum of Kilometers that has a Station Code of KGQ?,"SELECT COUNT(kilometers) FROM table_name_43 WHERE station_code = ""kgq""" "Awesome! Finally, can you show me the number of residents per officer for this county?",SELECT T1.Residents_per_officer FROM county_public_safety as T1 join city as T2 on T1.County_ID = T2.County_ID order by Population desc limit 1 How many shots on goal did Cam Neely had in the year of 1990?,SELECT T2.SOG FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T1.firstName = 'Cam' AND T1.lastName = 'Neely' AND T2.year = '1990' What is the most recent year where the average start is 8.5?,"SELECT MAX(year) FROM table_2190919_1 WHERE avg_start = ""8.5""" How many airlines does Russia has?,SELECT count(*) FROM airlines WHERE country = 'Russia' "What is Date (Closing), when Opening Film is ""Deconstruction of Korean Housewife""?","SELECT date__closing_ FROM table_name_95 WHERE opening_film = ""deconstruction of korean housewife""" What is the sum of all the years that Landon Donovan won the ESPY award?,"SELECT COUNT(year) FROM table_name_32 WHERE player = ""landon donovan""" What driver has 44 laps?,SELECT driver FROM table_name_75 WHERE laps = 44 What is the total number of orders made by customers in United States?,SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey INNER JOIN nation AS T3 ON T2.c_nationkey = T3.n_nationkey WHERE T3.n_name = 'UNITED STATES' Can you show me the first and last names of all employees who work in any department located in London please?,"SELECT first_name , last_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'" "What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?",SELECT top_25 FROM table_name_47 WHERE events < 13 AND cuts_made < 3 AND top_10 = 1 Give the unit of measure for the product with the name 'cumin'.,"SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""cumin""" Which season had a trade with the school/club team La Salle?,"SELECT season FROM table_name_5 WHERE acquisition_via = ""trade"" AND school_club_team = ""la salle""" List the description of the outcomes for all projects.,SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code What is the maximum dew point in Fahrenheit degree on 7/15/2014 in the area with a zip code of 94301?,SELECT DISTINCT CASE WHEN date = '7/15/2014' AND zip_code = 94301 THEN max_dew_point_f END FROM weather "What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?","SELECT AVG(total) FROM table_name_60 WHERE name = ""simon gillett category:articles with hcards"" AND other > 3" WHAT IS THE YEAR OF FLOETIC?,"SELECT SUM(year) FROM table_name_5 WHERE title = ""floetic""" what is the reported age when the reported birth date is 22 december 1878?,"SELECT reported_age FROM table_name_62 WHERE reported_birth_date = ""22 december 1878""" Show the transaction types and the total amount of transactions.,"SELECT transaction_type, SUM(transaction_amount) FROM Financial_transactions GROUP BY transaction_type" What is the country location of the employee who handled order id 10257?,SELECT T1.Country FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10257 how many order Items there,SELECT count ( * ) FROM Order_Items "If the winners from the previous round is 8, what is the round?","SELECT round FROM table_1859269_1 WHERE winners_from_previous_round = ""8""" What is the home team venue for the New Zealand Breakers?,"SELECT venue FROM table_name_30 WHERE home_team = ""new zealand breakers""" Hello. Can you list the top three vote getters?,SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 3 What is the count for the Zero Fighter with hours of 2:00?,"SELECT count FROM table_name_5 WHERE flight_hours = ""2:00""" Which behavior category does user number 5902120154267990000 belong to?,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 5902120154267990000 "How many countries are having their country's footnotes described as ""unspecified""? Please provide the full names of any three of those countries.",SELECT COUNT(DISTINCT T1.CountryCode) FROM Country AS T1 INNER JOIN Footnotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Unspecified' OR T2.Description = 'Not specified' UNION SELECT T1.LongName FROM Country AS T1 INNER JOIN Footnotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Unspecified' OR T2.Description = 'Not specified' LIMIT 4 "How many times the word ""desena"" occurs?",SELECT occurrences FROM words WHERE word = 'desena' "What is the western word for ""latrones"" in Latin?","SELECT western FROM table_26614365_1 WHERE latin = ""latrones""" What medium was used for the sculpture by Ernest Richard Gause? ,"SELECT medium FROM table_20903658_1 WHERE artist = ""Ernest Richard Gause""" What is the average diff when games played are more than 6?,SELECT AVG(diff) FROM table_name_84 WHERE played > 6 What form of governance does the least prosperous nation in the world have?,SELECT T3.Government FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE T2.GDP IS NOT NULL ORDER BY T2.GDP ASC LIMIT 1 How many laps have a time/retired of +23.080?,"SELECT laps FROM table_name_51 WHERE time_retired = ""+23.080""" What are their genders? | Would you like their names and their genders? | Yes.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" What team was the away team at Junction Oval?,"SELECT away_team FROM table_name_20 WHERE venue = ""junction oval""" Count the number of artists.,SELECT count(*) FROM artist Tell the number of cases with arrests in North Lawndale community.,SELECT SUM(CASE WHEN T1.community_area_name = 'North Lawndale' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.arrest = 'TRUE' Return the elimination movies of wrestlers on Team Orton.,"SELECT Elimination_Move FROM Elimination WHERE Team = ""Team Orton""" What are the countries that have greater surface area than any country in Europe?,"SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = ""Europe"")" At what arena was the September 21 game?,"SELECT arena FROM table_name_22 WHERE date = ""september 21""" Please show me the names of songs for which the format is mp4 and resolution is below 1000.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp4"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" "What is the unit price of the tune ""Fast As a Shark""?","SELECT unit_price FROM tracks WHERE name = ""Fast As a Shark"";" "Among the students enlisted in marines, how many of them are disabled?",SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.organ = 'marines' What is the relative height of Scotland with Ben Vorlich as parent?,"SELECT COUNT(relative_height__m_) FROM table_name_9 WHERE country = ""scotland"" AND parent = ""ben vorlich""" What are the duration of the longest and shortest pop tracks in milliseconds?,"SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Pop""" list the other directors against the movies they directed.,"SELECT director, title from movie where director ! = ""Victor Fleming""" List the full names of all clients who live in the Pacific division.,"SELECT T2.first, T2.middle, T2.last FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.division = 'Pacific'" "How many males in this table? | Do you mean the table ""Faculty""? | Yes.",select count ( * ) from Faculty where Sex = 'M' Which marketing region has the most drama workshop groups? Give me the region code.,SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1 "What is the total of the year with a Team of johnson city yankees, and a Finish of 6th?","SELECT SUM(year) FROM table_name_33 WHERE team = ""johnson city yankees"" AND finish = ""6th""" "List all movies rated by user 39115684. State the title, rating date and rating score.","SELECT T2.movie_title, T1.rating_timestamp_utc, T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 39115684" What are the themes of farm competitions sorted by year in ascending order?,SELECT Theme FROM farm_competition ORDER BY YEAR ASC "When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals?","SELECT MAX(bronze) FROM table_name_28 WHERE total < 17 AND nation = ""poland"" AND gold > 1" "What was the attendance at the game on December 11, 1966?","SELECT attendance FROM table_name_66 WHERE date = ""december 11, 1966""" Who is the rector of the residence hall who's mascot is the phoxes?,"SELECT rector FROM table_15873547_1 WHERE mascot = ""Phoxes""" What categories did Cleavant Derricks win for?,"SELECT Category FROM musical WHERE Nominee = ""Cleavant Derricks"" AND Result = ""Won""" "What is the name of the event that had a prize of zł 1,226,711?","SELECT event FROM table_name_22 WHERE prize = ""zł 1,226,711""" "What To par has a Place of t10, and a Score of 67-73=140?","SELECT to_par FROM table_name_74 WHERE place = ""t10"" AND score = 67 - 73 = 140" when did no. 32 play for grizzles,SELECT years_for_grizzlies FROM table_16494599_5 WHERE no = 32 What are the first names of professors in the history department?,SELECT T1.emp_fname from employee as T1 join professor as T2 on T1.emp_num = T2.emp_num where T2.dept_code = 'HIST' What about Mountain Climbing and Kayaking?,SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Mountain Climbing' INTERSECT SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking' "How many weeks have an attendance less than 26,048?",SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 Give the coordinates of the buyer of R & A Plant Genetics from Benchmark Education.,"SELECT T2.school_latitude, T2.school_longitude FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.item_name = 'R & A Plant Genetics' AND T1.vendor_name = 'Benchmark Education'" What was the number of race that Kevin Curtain won?,"SELECT COUNT(no) FROM table_10083598_1 WHERE pole_position = ""Kevin Curtain""" How many Yards did Player Rob Turner collect?,"SELECT yards FROM table_name_32 WHERE player = ""rob turner""" What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?,SELECT MAX(won__pg_) FROM table_name_85 WHERE goals_conceded__gc_ < 21 AND played__pj_ < 18 Which last names are both used by customers and by staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff What is the Score when Deportes Savio is the Home team?,"SELECT score FROM table_name_99 WHERE home = ""deportes savio""" How many years for the team with under 31 ties and a percentage of 0.5451?,SELECT years FROM table_name_15 WHERE tied < 31 AND pct = 0.5451 What was the date of the record of 43-28?,"SELECT date FROM table_name_69 WHERE record = ""43-28""" What is the highest 1985 value that has a 1990 value of 93?,SELECT MAX(1985) FROM table_name_27 WHERE 1990 = 93 "What is the rating for ""Draw A Stickman""?",SELECT Rating FROM playstore WHERE APP = 'Draw A Stickman' Name the result/games for 54741,SELECT result_games FROM table_21436373_11 WHERE attendance = 54741 "What is the Country, when the Transfer fee is ""loan"", and when the Name is Lynch?","SELECT country FROM table_name_94 WHERE transfer_fee = ""loan"" AND name = ""lynch""" Thank you! Can you filter that list to show only the department with the lowest budget?,"SELECT dept_name,budget FROM department order by budget limit 1" List the names of players in ascending order of votes.,SELECT Player_name FROM player ORDER BY Votes ASC What was the yield of the K-4 explosion?,"SELECT yield__approximate_ FROM table_148578_1 WHERE explosion = ""K-4""" What is the name of the vendors that serve resources to schools whose primary focus area is Literature?,SELECT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_area LIKE 'Literacy%' GROUP BY T1.vendor_name ORDER BY COUNT(T2.primary_focus_area) DESC LIMIT 1 Find the ids of all distinct customers who made order after some orders that were Cancelled.,"SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT MIN(order_date) FROM Customer_Orders WHERE order_status_code = ""Cancelled"")" What date was Carlos Boozer (23) the leading scorer?,"SELECT date FROM table_name_50 WHERE leading_scorer = ""carlos boozer (23)""" What is the minimum attendance on games of record 0-2-1,"SELECT MIN(attendance) FROM table_17360840_4 WHERE record = ""0-2-1""" How many stations had more than 14 bikes available on average or were installed in december?,"select count ( * ) from ( SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg ( T2.bikes_available ) > 14 UNION SELECT name FROM station WHERE installation_date LIKE ""12/%"" ) " How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?,"SELECT COUNT(average_weekly_rank) FROM table_15358729_6 WHERE average_nightly_rank = ""No. 2""" "Compare the total number of orders between customer ""Apollo Ltd"" and ""Pacific Ltd"".","SELECT SUM(CASE WHEN T2.`Customer Names` = 'Apollo Ltd' THEN 1 ELSE 0 END), SUM(CASE WHEN T2.`Customer Names` = 'Pacific Ltd' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID" What is the total number of 2nd place finishes for riders active in years 2009-2010 and more than 0 wins?,"SELECT SUM(2 AS nd_pl) FROM table_name_83 WHERE years_active = ""2009-2010"" AND wins > 0" Where does the staff member with the first name Elsa live?,SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa' "What is the Season Outcome, when the School is Sussex Tech?","SELECT season_outcome FROM table_name_70 WHERE school = ""sussex tech""" What location had 25/25 fatalities?,"SELECT location FROM table_name_15 WHERE fatalities = ""25/25""" How many titles are listed with 8.44 million viewers?,"SELECT COUNT(title) FROM table_24910733_1 WHERE us_viewers__millions_ = ""8.44""" What document types have more than 2 corresponding documents?,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 2 Can you add to the table the amount of transaction associated with each share count?,"SELECT share_count, amount_of_transaction FROM TRANSACTIONS" Show times of elimination of wrestlers with days held more than 50.,SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 How many dishes appeared more than once on a menu?,SELECT COUNT(*) FROM Dish WHERE times_appeared > Dish.menus_appeared What is Prime Mover of Model FM CFA-16-4?,"SELECT prime_mover FROM table_name_87 WHERE model = ""fm cfa-16-4""" What were the total number of 2012 deaths when 2012 births were 127?,SELECT death_2012 FROM table_25703_2 WHERE birth_2012 = 127 "For each language, list the number of TV Channels that use it.","SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE" What is it's phone number?,"SELECT DISTINCT Customer_Phone FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" "Name the championship for outcome being winner for 7–5, 4–6, 6–1","SELECT championship FROM table_24638867_6 WHERE outcome = ""Winner"" AND score = ""7–5, 4–6, 6–1""" what is the last performance of leon varkas category:articles with hcards,"SELECT last_performance FROM table_19189856_1 WHERE performer = ""Leon Varkas category:Articles with hCards""" List all the paper ID and its class type that cited the word 'word1002'.,"SELECT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T2.word_cited_id = 'word1002'" What is the Home with a Time that is 14:00?,"SELECT home FROM table_name_28 WHERE time = ""14:00""" In what arena was the game against the Sharks played?,"SELECT arena FROM table_name_33 WHERE opponent = ""sharks""" Find the number of items without any review.,SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review) the song The way was issued what volume?,"SELECT volume_Issue FROM volume WHERE Song LIKE ""%The Way%""" "What is the truck used by Brett Moffitt, from Hattori Racing Enterprises?","SELECT truck_s_ FROM table_name_23 WHERE driver_s_ = ""brett moffitt"" AND team = ""hattori racing enterprises""" "How many unscheduled routine inspections did ""Soma Restaurant And Bar"" have?",SELECT COUNT(T1.business_id) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Soma Restaurant And Bar' AND T1.type = 'Routine - Unscheduled' Find all the cities that have 2 to 4 parks.,SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; Who was the visitor on november 14 with leclaire recording the decision?,"SELECT visitor FROM table_name_43 WHERE decision = ""leclaire"" AND date = ""november 14""" "For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?","SELECT record FROM table_name_68 WHERE location = ""boston garden"" AND score = ""118-110""" Which nationality is the player from the Philadelphia Flyers?,"SELECT nationality FROM table_1473672_3 WHERE nhl_team = ""Philadelphia Flyers""" Who is the composer of the song with a length of 6:24?,"SELECT composer_s_ FROM table_name_85 WHERE length = ""6:24""" Display the 10 least expensive invoices | Would you like a list of the id's of these invoices? | No.,SELECT T2.invoice_date FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10 What are the codes of template types that are not used for any document?,SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id What class was ren alde?,"SELECT class FROM table_22824312_1 WHERE player = ""Ren Alde""" which countries did participated in both Friendly and Tournament type competitions.,SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' What district is incument terry kilgore from?,"SELECT district FROM table_13618584_2 WHERE incumbent = ""Terry Kilgore""" What was the average for the country with the swimsuit score of 9.57?,"SELECT average FROM table_11884814_3 WHERE swimsuit = ""9.57""" "What place result was the 1996 season at Lake Louise, Canada?","SELECT place FROM table_name_73 WHERE season = 1996 AND location = ""lake louise, canada""" Name the agg for seba united,"SELECT agg FROM table_name_12 WHERE team_1 = ""seba united""" "Find the product names that are colored 'white' but do not have unit of measurement ""Handful"".","SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = ""white"" AND t2.unit_of_measure != ""Handful""" What is the smallest capacity for Bursa?,"SELECT MIN(capacity) FROM table_name_10 WHERE city = ""bursa""" Which stage took the tour through Boulogne-Billancourt?,"SELECT stage FROM table_name_90 WHERE route = ""boulogne-billancourt""" what role does Koby play?,"SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = ""Koby""" Which position does Suchitra hold?,SELECT T2.JobTitle FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Suchitra' "What is Award, when Category is Cabello Maluco?","SELECT award FROM table_name_43 WHERE category = ""cabello maluco""" "Find the dates of the tests taken with result ""Pass"".","SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = ""Pass""" Give the url of movie which was rated 5 on 2013/5/3 5:11:17.,SELECT T2.movie_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE rating_score = 5 AND rating_timestamp_utc LIKE '2013-05-03 05:11:17' How long does Yelp_Business no.1 open on Tuesdays?,"SELECT T1.closing_time - T1.opening_time AS ""opening hours"" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Tuesday' AND T1.business_id = 1" What day in october was game number 4 with under 3 points?,SELECT COUNT(october) FROM table_name_18 WHERE game = 4 AND points < 3 How many flights from Charlotte Douglas International Airport to Austin - Bergstrom International Airport experienced serious reasons that cause flight cancellation?,"SELECT COUNT(*) FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T1.ORIGIN = T2.Code WHERE T1.ORIGIN = 'CLT' AND T1.DEST = 'AUS' AND T2.Description = 'Charlotte, NC: Charlotte Douglas International' AND T1.CANCELLATION_CODE = 'A'" On what date was the record 21-25?,"SELECT date FROM table_name_79 WHERE record = ""21-25""" "What is the result for 23,24,25,26 july 1992?","SELECT result FROM table_name_58 WHERE date = ""23,24,25,26 july 1992""" What is the precise location of all paying customers with American Express?,"SELECT DISTINCT T2.Latitude, T2.Longitude FROM `transaction` AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID WHERE T1.CreditCardType = 'American Express'" "For each donation not from a teacher, state the donor account id and calculate the percentage of donation given for optional support.","SELECT donor_acctid, donation_optional_support / donation_total FROM donations WHERE is_teacher_acct = 'f'" When is Edmonton Oilers in?,"SELECT date FROM table_name_99 WHERE home = ""edmonton oilers""" Return the order ids and details for orderes with two or more invoices.,"SELECT T2.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count(*) > 2" What is all the information about all people?,SELECT * FROM people "How many times did the episode titled ""Agony"" win an award?",SELECT COUNT(T2.award_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Agony' AND T2.result = 'Winner' Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products.,"SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)" What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?,"SELECT bike FROM table_name_18 WHERE grid < 9 AND time = ""+7.764""" In which county is the residential area with the highest average income per household located?,SELECT T2.county FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' GROUP BY T2.county ORDER BY T1.avg_income_per_household DESC LIMIT 1 When davao city is the home or representative town or province and clash 2010 is the edition how many ages are there?,"SELECT COUNT(age) FROM table_19061741_3 WHERE edition = ""Clash 2010"" AND home_or_representative_town_or_province = ""Davao City""" if 22km is the trekking route what is height from sea level in meters?,"SELECT height_from_sea_level_in_meters FROM table_1430913_1 WHERE trekking_route = ""22km""" What is the 2006 total with a 2010 value greater than 417.9?,SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.9 What is the lowest week that has Minnesota Vikings as the opponent?,"SELECT MIN(week) FROM table_name_75 WHERE opponent = ""minnesota vikings""" "Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?","SELECT opponents_in_the_final FROM table_name_37 WHERE partnering = ""bruno soares"" AND surface = ""clay"" AND date = ""august 1, 2010""" what is the highest number city affected,SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id order by count ( * ) desc limit 1 Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.,SELECT id FROM trip WHERE duration >= (SELECT AVG(duration) FROM trip WHERE zip_code = 94103) Name the launch vehicle with Institutional authority of ndc,"SELECT launch_vehicle FROM table_name_59 WHERE institutional_authority = ""ndc""" Write down the last name of employee who did inspection ID 52238?,SELECT T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52238 how many names or products in the table | Do you mean the names of products in the products table | how many headquarter in the Manufacturers table,SELECT count ( Headquarter ) from Manufacturers Which Group position has Result F–A of 0–1 on 1 november 2006?,"SELECT group_position FROM table_name_50 WHERE result_f_a = ""0–1"" AND date = ""1 november 2006""" what is the least amount of milk cattle in ontario,"SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = ""Ontario""" What Brands Hatch race had Niki Lauda as its Fastest Lap?,"SELECT race FROM table_name_78 WHERE fastest_lap = ""niki lauda"" AND location = ""brands hatch""" Hello! Can you tell me how many total employees are on this list?,SELECT count ( distinct EMPLOYEE_ID ) from employees how many female students are presented on the table,select count ( StuID ) from Student where Sex = 'F' What was the session at the circuit of autodrom most?,"SELECT session FROM table_name_95 WHERE circuit = ""autodrom most""" List the names of climbers in descending order of points.,SELECT Name FROM climber ORDER BY Points DESC "If the just cents is 701.96, what is the interval name?","SELECT interval_name FROM table_18955077_1 WHERE just__cents_ = ""701.96""" Find the number of distinct amenities.,SELECT count(*) FROM dorm_amenity "What's the rank for February 11, 2012 with less than 18,735 in attendance?","SELECT AVG(rank) FROM table_name_67 WHERE date = ""february 11, 2012"" AND attendance < 18 OFFSET 735" Show the name of aircrafts with top three lowest distances.,SELECT name FROM Aircraft ORDER BY distance LIMIT 3 Which rank has the smallest number of faculty members?,SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1 "Which home teams had crowds larger than 4,000?",SELECT home_team FROM table_name_25 WHERE crowd > 4 OFFSET 000 What is the highest number of students with a teacher:student ratio of 20.8?,"SELECT MAX(students) FROM table_1414743_1 WHERE pupil_teacher_ratio = ""20.8""" FIND THE NAME OF CUSTOMER WHO HAS HIGH ACCOUNT BALANCE | Did you mean the highest account balance? | YES,SELECT cust_name FROM customer ORDER BY acc_bal desc LIMIT 1 Find the first names and offices of all professors sorted by alphabetical order of their first name.,"SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname" What was the water depth that entered service in 2001 named Cajun Express?,"SELECT water_depth FROM table_name_11 WHERE entered_service = ""2001"" AND name = ""cajun express""" "What products were ordered by the customer ID ""WILMK"" which were required on 3/26/1998?",SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.RequiredDate LIKE '1998-03-26%' AND T1.CustomerID = 'WILMK' What player is a lock with 1 cap?,"SELECT player FROM table_name_16 WHERE position = ""lock"" AND caps = 1" what was the lowest numbers for the winner gregory w. meeks,"SELECT MIN(elected) FROM table_13870048_3 WHERE incumbent = ""Gregory W. Meeks""" How many times did Boston Red Stockings lose in 2009 postseason?,SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009; Show all church names except for those that had a wedding in year 2015.,SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 What is the quantity of Ikura ordered in order no. 10273?,SELECT T2.Quantity FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10273 AND T1.ProductName = 'Ikura' What is the average Apps for the team Kairat with level larger than 1?,"SELECT AVG(apps) FROM table_name_51 WHERE team = ""kairat"" AND level > 1" What is the Format of the Epic/Sony Label after 1980?,"SELECT format FROM table_name_33 WHERE label = ""epic/sony"" AND date > 1980" Calculate the difference between the number of cars that has a horsepower of 130 with the model year 1970 and model year 1976,SELECT SUM(CASE WHEN T2.model_year = 1970 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.model_year = 1976 THEN 1 ELSE 0 END) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.horsepower = 130 Show the titles of books in descending order of publication price.,SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC "Among the cities with alias Ponce, what is the percentage of cities with a country level FIPS code of less than 20?",SELECT CAST(COUNT(CASE WHEN T2.county_fips < 20 THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'Ponce' Find the names of rooms that have been reserved for more than 60 times.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING count(*) > 60 Which courses are taught on days MTW?,"SELECT CName FROM COURSE WHERE Days = ""MTW""" What's the 2009 of the Australian Open having a 1R in 2011?,"SELECT 2009 FROM table_name_56 WHERE 2011 = ""1r"" AND tournament = ""australian open""" "In the circuit of Madonie, what was the date that had the winning constructor Bugatti?","SELECT date FROM table_name_17 WHERE circuit = ""madonie"" AND winning_constructor = ""bugatti""" "What are the first name and last name of each male member in club ""Hopkins Student Enterprises""?","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t3.sex = ""M""" "Who is the youngest? | Did you mean the youngest students whose GPA is higher than 3? | Yes, please.",SELECT * FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1 List the game IDs of the games produced by Abylight.,SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Abylight' "In the database, how many times is the number of Indian cities to the South African cities?",SELECT CAST(SUM(CASE WHEN T2.Country_Name = 'India' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.Country_Name = 'South Africa' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN Country AS T2 ON T1.Country_Id = T2.Country_Id How many points were scored in 1:44:59.557 of time?,"SELECT points FROM table_name_64 WHERE time_retired = ""1:44:59.557""" "List the hardware model name for the phones that were produced by ""Nokia Corporation"" or whose screen mode type is ""Graphics.""","SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = ""Graphics"" OR t2.Company_name = ""Nokia Corporation""" What was the label for Shake Your Groove Thing in USA?,"SELECT label FROM table_name_59 WHERE country_of_release = ""usa"" AND title = ""shake your groove thing""" "Which Team has a Year smaller than 2007, and a Class of gts?","SELECT team FROM table_name_96 WHERE year < 2007 AND class = ""gts""" Name the region for cd with catalog of alca-9203,"SELECT region FROM table_name_43 WHERE format = ""cd"" AND catalog = ""alca-9203""" "Which Date has a Tournament of milan , italy?","SELECT date FROM table_name_69 WHERE tournament = ""milan , italy""" Who was the winning team in the 1989 season?,"SELECT winningteam FROM table_12028543_3 WHERE season = ""1989""" what is the result when the round is less than 7 and the opponent is melbourne storm?,"SELECT result FROM table_name_76 WHERE round < 7 AND opponent = ""melbourne storm""" Which of these host cities has a lower temperature in March than July.,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city Please provide the IDs of any three AdventureWorks product subcategories.,SELECT DISTINCT ProductCategoryID FROM ProductSubcategory LIMIT 3 "or a C? | You want the students just with grade ""C"" or including ""A"" | Who got either an A or a C?",SELECT count ( T1.stu_fname ) FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A' What were the official itv ratings in millions for semi-final 5?,"SELECT official_itv_rating__millions_ FROM table_27319183_7 WHERE episode = ""Semi-final 5""" What are their id numbers?,SELECT DISTINCT RID FROM Rating Which chassis-engine had 77 laps?,SELECT chassis___engine FROM table_name_9 WHERE laps = 77 "with a share of 44.2% and 77 seats, what is the greatest seat total?","SELECT MAX(total_seats) FROM table_name_82 WHERE seats = 77 AND share_of_votes = ""44.2%""" Find the total number of king beds available.,SELECT sum(beds) FROM Rooms WHERE bedtype = 'King'; What were the home team scores at york park?,"SELECT home_team AS score FROM table_16388478_2 WHERE ground = ""York Park""" Show all main industry for all companies.,SELECT DISTINCT main_industry FROM company Who was Team 2 when Team 1 was América?,"SELECT team_2 FROM table_name_88 WHERE team_1 = ""américa""" List the full name of employees and titles who have to report to Sales Manager.,"SELECT FirstName, LastName, Title FROM Employees WHERE ReportsTo = ( SELECT EmployeeID FROM Employees WHERE Title = 'Sales Manager' )" What is the exact number of Total that has a percentage of precisely 12.03%?,"SELECT COUNT(total) FROM table_name_24 WHERE percentage = ""12.03%""" Who has a licence of gpl v2 and a current version of 0.9.9?,"SELECT name FROM table_name_92 WHERE license = ""gpl v2"" AND current_version = ""0.9.9""" What is the rank for the 3 silver medals?,SELECT rank FROM table_name_13 WHERE silver = 3 Whose term expired in 1996 and was from the province of Central Highlands?,"SELECT name FROM table_name_74 WHERE province = ""central highlands"" AND term_expires = 1996" What type of structure is there at the American Tower Christmas?,"SELECT structure_type FROM table_name_17 WHERE name = ""american tower christmas""" "What was the year opened for North Carolina with a smaller than 21,500 capacity?","SELECT year_opened FROM table_name_50 WHERE state = ""north carolina"" AND capacity < 21 OFFSET 500" "What are the wifi and screen mode type of the hardware model named ""LG-P760""?","SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = ""LG-P760"";" What is the lowest overall number of hurricanes?,SELECT MIN(number_of_hurricanes) FROM table_2930244_3 Which municipality has a party of Lega Friuli-VG that won elections before 2011?,"SELECT municipality FROM table_name_34 WHERE party = ""lega friuli-vg"" AND election < 2011" "Among the products manufactured by manufacturer 5 that have a retail price of no more than 1,000, how many products were shipped via rail?",SELECT COUNT(T1.ps_partkey) FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_mfgr = 'Manufacturer#5' AND T3.p_retailprice < 1000 AND T2.l_shipmode = 'RAIL' Show all party names and the number of members in each party.,"SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" List venues of all matches in the order of their dates starting from the most recent one.,SELECT venue FROM MATCH ORDER BY date DESC What studio produced Star Trek II: The Wrath of Khan?,"SELECT Studio FROM film WHERE Title = ""Star Trek II: The Wrath of Khan""" What country is ranked number 4?,SELECT country FROM table_name_41 WHERE rank = 4 What is the name of the race where Stirling Moss was the winning driver?,"SELECT race_name FROM table_name_13 WHERE winning_driver = ""stirling moss""" List down the rating for the App Learn C++.,SELECT DISTINCT Rating FROM playstore WHERE App = 'Learn C++' what is their address?,SELECT T1.address FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1 What score occurred on February 6?,"SELECT score FROM table_name_31 WHERE date = ""february 6""" What is the total number of Issues has a End month of oct-80?,"SELECT COUNT(number_of_issues) FROM table_name_60 WHERE end_month = ""oct-80""" "Find the names of courses taught by the tutor who has personal name ""Julio"".","SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = ""Julio""" find the event names that have more than 2 records.,SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2 "What are the dates of birth of entrepreneurs with investor ""Simon Woodroffe"" or ""Peter Jones""?","SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = ""Simon Woodroffe"" OR T1.Investor = ""Peter Jones""" Please list 3 businesses along with their IDs that use cellphones.,SELECT T2.BusinessEntityID FROM PhoneNumberType AS T1 INNER JOIN PersonPhone AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID WHERE T1.Name = 'Cell' LIMIT 3 "Among the dishes, how many of them are for free?",SELECT COUNT(*) FROM Dish WHERE lowest_price = 0 "What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota?","SELECT position FROM table_name_73 WHERE height__cm_ < 183 AND weight__kg_ < 91 AND birthplace = ""bloomington, minnesota""" What is the total number of sales across all regions?,SELECT SUM(T.num_sales) * 100000 FROM region_sales t What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?,"SELECT trainer FROM table_name_54 WHERE time = ""1:44.80"" AND jockey = ""william jenkins""" Find the name and city of the airport which is the source for the most number of flight routes.,"SELECT T1.name, T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1" How many staff does each project has? List the project id and the number in an ascending order.,"SELECT T1.project_id , count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC" I want the standing for january 29 and finished of 3rd and total points less than 248,"SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = ""3rd"" AND date = ""january 29""" What 2009 has lq as the 2011?,"SELECT 2009 FROM table_name_58 WHERE 2011 = ""lq""" Calculate the average number of repetitions in the pairs of words in which the first word id is number 34.,SELECT CAST(SUM(CASE WHEN w1st = 34 THEN 1 ELSE 0 END) AS REAL) / COUNT(w1st) FROM biwords What is the average Laps for andrea de cesaris?,"SELECT AVG(laps) FROM table_name_76 WHERE driver = ""andrea de cesaris""" What school did the rb drafted attend?,"SELECT school FROM table_24540893_6 WHERE position = ""RB""" "What is Country, when To par is ""1"", and when Player is ""Seve Ballesteros""?","SELECT country FROM table_name_20 WHERE to_par = 1 AND player = ""seve ballesteros""" List all countries and their number of airlines in the descending order of number of airlines.,"SELECT country, COUNT(*) FROM airlines GROUP BY country ORDER BY COUNT(*) DESC" What yacht did Andrew Saies sail on?,"SELECT yacht FROM table_25561560_3 WHERE skipper = ""Andrew Saies""" Which part one is class 7d?,"SELECT part_1 FROM table_name_36 WHERE class = ""7d""" What is the total number of customers across banks?,SELECT sum(no_of_customers) FROM bank """Cumin"" data types","SELECT t3.characteristic_data_type 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 = ""cumin""" Which submission received the highest score in acceptance result. Show me the result.,SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1 What are the top five most popular episodes?,SELECT episode_id FROM Episode ORDER BY votes DESC LIMIT 5; What was the score of the tied game or the away team of Crewe Alexandra?,"SELECT tie_no FROM table_name_13 WHERE away_team = ""crewe alexandra""" Find the number of distinct currency codes used in drama workshop groups.,SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.,"SELECT date , max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1" "What are the years for the player with fewer than 62 goals, debut year of 1981 and 28 games?",SELECT years_at_club FROM table_name_61 WHERE goals < 62 AND debut_year = 1981 AND games = 28 Could you show me all the locations that have train stations with at least 15 platforms?,SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms > = 15 "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.",SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year What is the venue for the friendly competition and score of 4-0?,"SELECT venue FROM table_name_53 WHERE score = ""4-0"" AND competition = ""friendly""" What is the Date of the Game with a Result of w 22–16 in TV Time of CBS 1:00ET?,"SELECT date FROM table_name_90 WHERE tv_time = ""cbs 1:00et"" AND result = ""w 22–16""" "Write down the tweet text posted from Rawang, Selangor, Malaysia.",SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.City = 'Rawang' AND T2.State = 'Selangor' AND T2.Country = 'Malaysia' What's Number & Name listed for the Date 1967?,SELECT number_ & _name FROM table_name_61 WHERE date = 1967 Name the score for 29 game,SELECT score FROM table_27537870_5 WHERE game = 29 "What is the lowest grid with time of +0.499,when laps are larger than 21?","SELECT MIN(grid) FROM table_name_33 WHERE time = ""+0.499"" AND laps > 21" Find the address of all customers that live in Germany and have invoice.,"SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Germany""" how many times is the week # is audition?,"SELECT COUNT(original_artist) FROM table_27075510_1 WHERE week__number = ""Audition""" The movie 'Gojira ni-sen mireniamu' is from which country?,SELECT T3.COUNTry_name FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T1.title = 'Gojira ni-sen mireniamu' what is the teacher id of detention id 1,select teacher_id from detention where detention_id = 1 What was the final score of the game at Texas Stadium?,"SELECT final_score FROM table_name_26 WHERE stadium = ""texas stadium""" "What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?","SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = ""olympic record"" AND snatch = ""total""" "What is Score, when To Par is ""+1"", and when Player is ""Mike Souchak""?","SELECT score FROM table_name_7 WHERE to_par = ""+1"" AND player = ""mike souchak""" Can you show me the email addresses of all the customers who paid with Visa?,"SELECT customer_email FROM Customers where payment_method = ""Visa""" List the names of counties in descending order of population.,SELECT Name FROM county_public_safety ORDER BY Population DESC "What is the total number of Wins, when Losses is less than 10, when Against is less than 1253, and when Byes is less than 0?",SELECT COUNT(wins) FROM table_name_42 WHERE losses < 10 AND against < 1253 AND byes < 0 What are the wines that have prices higher than 50 and made of Red color grapes?,"SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" Please name any three sovereign nations that have been governed by the republic since 1991.,"SELECT country FROM politics WHERE government = 'republic' AND STRFTIME('%Y', independence) >= '1991' AND country IN ( SELECT country FROM country ) ORDER BY independence LIMIT 3" What is the entry name of the most expensive catalog (in USD)?,SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 find the name and college of students whose player position are goalie in the tryout,"SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.pPos = 'goalie'" "Find the name, account type, and account balance of the customer who has the highest credit score.","SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1" Which classes have more than two captains?,SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2 Who has played the most game plays in the 2000-2001 season of the International league?,SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.LEAGUE = 'International' ORDER BY T1.GP DESC LIMIT 1 Which position does Jesse Boulerice play?,"SELECT position FROM table_name_83 WHERE player = ""jesse boulerice""" "What is the lowest draw that has We The Lovers for the english translation, with a place greater than 1?","SELECT MIN(draw) FROM table_name_26 WHERE english_translation = ""we the lovers"" AND place > 1" What is the employee id of the head whose department has the least number of employees?,SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1; Please show the date of ceremony of the volumes that last more than 2 weeks on top.,SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 Which nations have a boundary with the Kalahari Desert?,SELECT T3.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Kalahari' How many stores are in weather station 12?,SELECT SUM(store_nbr) FROM relation WHERE station_nbr = 12 Name the sum of Laps for lance reventlow with grid more than 16,"SELECT SUM(laps) FROM table_name_56 WHERE driver = ""lance reventlow"" AND grid > 16" What is the roll number for East Gore School?,"SELECT COUNT(roll) FROM table_name_21 WHERE name = ""east gore school""" tell me the average roll for the featherston area and integrated authority.,"SELECT AVG(roll) FROM table_name_48 WHERE area = ""featherston"" AND authority = ""integrated""" "What is the number of departments in Division ""AS""?","SELECT count(*) FROM DEPARTMENT WHERE Division = ""AS""" What are the names of the teachers ordered by ascending age?,SELECT Name FROM teacher ORDER BY Age ASC What is the smallest point amount for years prior to 1958 when the class is 350cc?,"SELECT MIN(points) FROM table_name_91 WHERE year < 1958 AND class = ""350cc""" What position did the CFL player drafted out of college of toronto in 2007 play?,"SELECT position FROM table_name_22 WHERE college = ""toronto""" Show the institution type with the largest number of institutions.,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?,"SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" Show the grape whose white color grapes are used to produce wines?,"SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" What team is from the United States and plays a guard position for the Grizzlies in 2012?,"SELECT school_club_team FROM table_name_70 WHERE nationality = ""united states"" AND position = ""guard"" AND years_for_grizzlies = ""2012""" what is the maximum season with byu-usu score being 29–7,"SELECT MAX(season) FROM table_13665809_2 WHERE byu_usu_score = ""29–7""" How many loses corresponded to giving up 714 points?,"SELECT lost FROM table_12792876_2 WHERE points_against = ""714""" "What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?",SELECT MAX(gold) FROM table_name_96 WHERE rank < 6 AND silver = 1 AND total > 4 What is the marketing region code that has the most drama workshop groups?,SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1 "What is the total number of products that are in orders with status ""Cancelled""?","SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = ""Cancelled""" "Name the institutional authority for launch date of october 12, 2004","SELECT institutional_authority FROM table_name_47 WHERE launch_date = ""october 12, 2004""" Tell me the title of the film in which Sandra Kilmer is one of the actors.,SELECT T3.title FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.first_name = 'SANDRA' AND T2.last_name = 'KILMER' What internet explorer has 29.07% for the chrome?,"SELECT internet_explorer FROM table_name_91 WHERE chrome = ""29.07%""" How many times did Yuvraj Singh receive the Man of the Match award?,SELECT SUM(CASE WHEN T2.Player_Name = 'Yuvraj Singh' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match "ok, list out all college name",SELECT cName from College What is the end date for Maaroufi?,"SELECT ends FROM table_name_59 WHERE name = ""maaroufi""" "When the attendance was 24,406 who lost?","SELECT loss FROM table_name_8 WHERE attendance = ""24,406""" What was the result of the April 16 game?,"SELECT result FROM table_name_94 WHERE date = ""april 16""" "Which set 3 has a Time of 10:00, and a Score of 3–2, and a Total of 113–102?","SELECT set_3 FROM table_name_61 WHERE time = ""10:00"" AND score = ""3–2"" AND total = ""113–102""" What's the best average score with a bad score of 15?,SELECT AVG(best_score) FROM table_name_46 WHERE worst_score = 15 What is the difference in the number of restaurants that passed and failed the canvass inspection type?,SELECT COUNT(CASE WHEN T2.results = 'Pass' THEN T1.license_no END) - COUNT(CASE WHEN T2.results = 'Fail' THEN T1.license_no END) AS diff FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.inspection_type = 'Canvass' AND T1.facility_type = 'Restaurant' "What is the normal temperature of Abbotsford, British Columbia?","SELECT normal_temperature FROM table_name_8 WHERE city = ""abbotsford, british columbia""" "For each location, how many gas stations are there in order?","SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)" During which years did the golfer with the total of 289 win?,SELECT year_s__won FROM table_name_42 WHERE total = 289 To whom does the employee have to inform that is the sales representative of the French customer?,SELECT T1.reportsTo FROM employees AS T1 INNER JOIN customers AS T2 ON T1.employeeNumber = T2.salesRepEmployeeNumber WHERE T2.country = 'France' Find the names of all instructors in the Art department who have taught some course and the course id.,"SELECT T1.name , T2.course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'" In which group of islands is Rinjani Mountain located?,SELECT T1.Islands FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Name = 'Rinjani' how about by walk?,"SELECT T1.Shop_ID FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk""" Return the most frequent result across all musicals.,SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 "WHAT IS THE OPENING WITH A WORLDWIDE NUMBER OF $559,852,396?","SELECT opening FROM table_name_85 WHERE worldwide = ""$559,852,396""" Please list the titles of all the films that the customer RUTH MARTINEZ has rented.,SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' Who is the away team that played home team Perth Wildcats?,"SELECT away_team FROM table_name_82 WHERE home_team = ""perth wildcats""" Which ehtinc group consists of 93% muslims?,"SELECT ethnic_group FROM table_name_58 WHERE muslims = ""93%""" Who are the members of Bootup Baltimore? | Here are the first names and last names of members of Bootup Baltimore | What are there major's?,"SELECT t3.major FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" Where is the miss global teen?,"SELECT hometown FROM table_1825751_14 WHERE pageant = ""Miss Global Teen""" What is the number of cars with a greater accelerate than the one with the most horsepower?,SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 ); Show the student IDs and numbers of friends corresponding to each.,"SELECT student_id , count(*) FROM Friend GROUP BY student_id" "What is the 1957 number when the 1955 is smaller than 0.63, and 1952 is larger than 0.22?",SELECT COUNT(1957) FROM table_name_71 WHERE 1955 < 0.63 AND 1952 > 0.22 "What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?","SELECT date FROM table_name_82 WHERE label = ""sony bmg, epic"" AND catalog = ""5187482""" "In the Y coordinate of image ID 12, how many are 0?",SELECT COUNT(IMG_ID) FROM IMG_OBJ WHERE IMG_ID = 12 AND Y = 0 Which template type code has most number of templates?,SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1 "What was the attendance during the november 16, 1975 game?","SELECT MAX(attendance) FROM table_name_18 WHERE date = ""november 16, 1975""" "Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller than 1?",SELECT gold FROM table_name_50 WHERE total > 2 AND bronze < 1 How many paragraphs are there in the longest chapter where Sir Richard Ratcliff appeared?,SELECT MAX(T2.ParagraphNum) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Sir Richard Ratcliff' "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?","SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1" What is the Academy Award for the Film Educating Peter?,"SELECT academy_award FROM table_name_34 WHERE film = ""educating peter""" How many times did other regions make positive sales in DS platform?,SELECT COUNT(DISTINCT T2.id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN region_sales AS T3 ON T1.id = T3.game_platform_id INNER JOIN region AS T4 ON T3.region_id = T4.id WHERE T1.platform_name = 'DS' AND T4.region_name = 'Other' AND T3.num_sales > 0 "Perfect, thanks for that. Now, how many documents don't have images?",select count ( * ) from ( SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id ) Give the YouTube ID of the channel 'RepWassermanSchultz.',SELECT youtube_id FROM `social-media` WHERE youtube = 'RepWassermanSchultz' How about names of first five customers who used any type of payment?,SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5 "What is the first name, last name, and phone of the customer with account name 162?","SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""162""" which teams did the three play for?,"SELECT T1.player_id, T2.league_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3" "How many distinct characteristic names does the product ""basil"" have?","SELECT count ( DISTINCT 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 = ""basil""" "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.","SELECT Adults FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG"";" What was the average T score when the E score was larger than 9.6 and the team was from Spain?,"SELECT AVG(t_score) FROM table_name_88 WHERE nation = ""spain"" AND e_score > 9.6" "Among all the clients from the New York city, how many of them have filed a complaint on the issue of Deposits and withdrawals?",SELECT COUNT(T2.Issue) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Issue = 'Deposits and withdrawals' AND T1.city = 'New York City' "How many hours does the Yelp business No. ""5734"" open on Saturday?","SELECT T1.closing_time - T1.opening_time AS ""hour"" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Saturday' AND T1.business_id = 5734" What network garnered 2.74 million viewers for Supernatural?,"SELECT network FROM table_2170969_2 WHERE viewers_in_millions = ""2.74""" Which team had the most final-time home-team goals in the 2021 season's matches of the Bundesliga division?,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021 ORDER BY T1.FTHG DESC LIMIT 1 List the race time for may 11.,"SELECT race_time FROM table_28178756_1 WHERE date = ""May 11""" Which frequency belongs to the cihr-fm call sign?,"SELECT frequency FROM table_name_72 WHERE call_sign = ""cihr-fm""" What is the builder launched 30 october 1944?,"SELECT builder FROM table_1206583_2 WHERE launched = ""30 October 1944""" Find the average number of customers cross all banks.,SELECT avg(no_of_customers) FROM bank What is the number of vacators when the successor was William H. Wells ( F )?,"SELECT COUNT(vacator) FROM table_224839_3 WHERE successor = ""William H. Wells ( F )""" "What is To par, when Player is ""Greg Turner""?","SELECT to_par FROM table_name_72 WHERE player = ""greg turner""" How many rounds exist for picks under 5?,SELECT COUNT(rd__number) FROM table_name_21 WHERE pick__number < 5 What are the names and countries of origin for the artists who produced the top three highly rated songs.,"SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3" "Hmm, I want to know the customer ids who have not rented any films after '2005-08-23 02:06:01' please.",SELECT customer_id FROM customer WHERE customer_id NOT IN ( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' ) "Show the faculty id of each faculty member, along with the number of students he or she advises.","SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID" find the saving balance of the account with the highest checking balance?,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 Name the population for 11 languages,"SELECT population FROM table_26519486_1 WHERE languages = ""11""" Calculate the 2016 gap between the average revenue for Indian and American films.,"SELECT AVG(CASE WHEN T3.COUNTry_name = 'United States of America' THEN T1.revenue END) - AVG(CASE WHEN T3.COUNTry_name = 'India' THEN T1.revenue END) AS CALCULATE FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2016" Which model of the car has the minimum horsepower?,SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1; Show the location name and code with the least documents.,"SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1" What is the average dismissals of 83 test and catches less than 33?,SELECT AVG(total_dismissals) FROM table_name_5 WHERE tests = 83 AND catches < 33 which Record has a Home of ottawa senators on Date of december 21?,"SELECT record FROM table_name_82 WHERE home = ""ottawa senators"" AND date = ""december 21""" show the institute type with lowest number of institutions,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count ( * ) LIMIT 1 what is the week when the finalist is marcelo ríos?,"SELECT week FROM table_name_16 WHERE finalist = ""marcelo ríos""" Name the preliminary average for utah,"SELECT preliminary_average FROM table_name_34 WHERE state = ""utah""" "Which buildings does ""Emma"" manage? Give me the short names of the buildings.","SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = ""Emma""" How many players played each position?,"SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION" Which apartment type code appears the most often?,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 What percentage of complaints are from the elderly?,SELECT CAST(SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.age) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID What is the total number of Dates during which the Catalog nebbc003 was given?,"SELECT SUM(date) FROM table_name_71 WHERE catalog = ""nebbc003""" What is the Production Number of the Filmography in MM Series with a Release date of 1964-06-27?,"SELECT production_number FROM table_name_96 WHERE series = ""mm"" AND release_date = ""1964-06-27""" How many different students play games?,SELECT count(DISTINCT StuID) FROM Plays_games how many firstnames are available?,"SELECT count ( distinct FirstName ) FROM list" Show first name and last name for all students.,"SELECT Fname , Lname FROM Student" What was the score on 20/6/97?,"SELECT score FROM table_name_83 WHERE date = ""20/6/97""" Name the total number of games for lost being 41,SELECT COUNT(games) FROM table_2509505_1 WHERE lost = 41 What is the release date of Milk and Money?,"SELECT release_date FROM table_name_50 WHERE title = ""milk and money""" How many wins for the team with more than 1282 against and fewer than 14 losses?,SELECT MIN(wins) FROM table_name_59 WHERE against > 1282 AND losses < 14 "Hmm, I want to know what is the song in the volume with the maximum weeks on top please.",SELECT distinct ( Song ) from volume where Weeks_On_Top = ( SELECT Weeks_on_Top FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 ) Name the most wickets for best is 4/22,"SELECT MAX(wickets) FROM table_17900317_5 WHERE best = ""4/22""" What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap?,"SELECT report FROM table_name_54 WHERE pole_position = ""mario andretti"" AND fastest_lap = ""jean-pierre jarier""" "Among all the flights scheduled to depart from John F. Kennedy International on 2018/8/1, when was the earliest one scheduled to depart?","SELECT T2.DEP_TIME FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T1.Description = 'New York, NY: John F. Kennedy International' AND T2.DEP_TIME IS NOT NULL ORDER BY T2.DEP_TIME ASC LIMIT 1" "what is the highest points when position is higher than 6, lost is less than 12 and drawn is less than 1?",SELECT MAX(points) FROM table_name_39 WHERE position > 6 AND lost < 12 AND drawn < 1 What was the opponents score when Geelong played as home team?,"SELECT away_team AS score FROM table_name_99 WHERE home_team = ""geelong""" List all the businesses that closed at 8PM.,SELECT DISTINCT business_id FROM Business_Hours WHERE closing_time = '8PM' Find the total number of students and total number of instructors for each department.,"SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name" hi. can you tell me how many wrestlers were eliminated?,SELECT COUNT ( * ) FROM Elimination What are the details of all products?,SELECT DISTINCT product_details FROM products What is the percentage for Schweitzer when the lead margin is 29?,SELECT democrat AS :_brian_schweitzer FROM table_name_12 WHERE lead_margin = 29 "Which Bronze has a Silver of 2, and a Total smaller than 5?",SELECT AVG(bronze) FROM table_name_15 WHERE silver = 2 AND total < 5 In which tournament was Silke Meier the opponent in the final?,"SELECT tournament FROM table_name_8 WHERE opponent_in_the_final = ""silke meier""" What was the date of the game with a score of 15–6?,"SELECT date FROM table_name_15 WHERE score = ""15–6""" Please provide the solution id of the respository among the respository that receive 238 forks.,SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = 238 "Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%?","SELECT vote_to_save FROM table_name_3 WHERE eviction_no < 14 AND vote_to_evict = ""5.42%""" such as are entire the rating of closing where championship is moscow,"SELECT score_in_final FROM table_23197088_4 WHERE championship = ""Moscow""" "What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States?","SELECT genre FROM table_name_79 WHERE release_year_of_first_charted_record = 1968 AND country_of_origin = ""united states""" How many wins did he have when he made over 2 cuts and had under 2 top 10s?,SELECT AVG(wins) FROM table_name_37 WHERE cuts_made > 2 AND top_10 < 2 Please show the most common type of ships.,SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 "How many military deaths were there when there were 1,200+ military and/or civilian wounded?","SELECT military_deaths FROM table_name_15 WHERE military_and_or_civilian_wounded = ""1,200+""" How many kinds of enzymes are there?,SELECT count(*) FROM enzyme "What is Tie no, when Home Team is ""Hull City""?","SELECT tie_no FROM table_name_69 WHERE home_team = ""hull city""" List the names of states that have more than 2 parks.,SELECT state FROM park GROUP BY state HAVING count(*) > 2; Name the award won for category of choice tv villain in years after 2008,"SELECT award FROM table_name_94 WHERE result = ""won"" AND category = ""choice tv villain"" AND year > 2008" "What is Charleston, SC ERP W?","SELECT erp_w FROM table_name_2 WHERE city_of_license = ""charleston, sc""" List the nominees that have been nominated more than two musicals.,SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2 "What is Money ( $ ), when Player is ""Morgan Pressel""?","SELECT money___$__ FROM table_name_4 WHERE player = ""morgan pressel""" Show me the access count for books?,SELECT access_count FROM documents where document_type_code = 'Book' What are the names of the directors who made exactly one movie?,SELECT director FROM Movie GROUP BY director HAVING count(*) = 1 Find all information of all the products with a price between $60 and $120.,SELECT * FROM products WHERE price BETWEEN 60 AND 120 Who was the incumbent in the 20th district?,"SELECT incumbent FROM table_name_16 WHERE district = ""20th""" "For each company, return the company name and the name of the building its office is located in.","SELECT T3.name , T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id" What percentage of films with a length of less than 100 belong to the Drama category?,"SELECT CAST(SUM(IIF(T2.length < 100 AND T3.name = 'Drama', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id" Name the most wins where position is 16th,"SELECT MAX(wins) FROM table_1708050_3 WHERE position = ""16th""" "when was it commissioned when the destroyer was built by scotts, greenock?","SELECT commissioned FROM table_name_88 WHERE builder = ""scotts, greenock""" "What are the product names of all products with the type code ""Food""?","SELECT Product_Name FROM Products WHERE Product_Type_Code = ""Food""" How many categories of first elected are in Washington 4 district? ,"SELECT COUNT(first_elected) FROM table_1805191_48 WHERE district = ""Washington 4""" Name the recipes which can lead to constipation.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.iron > 20 please give me the name of the driver,"SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid where T1.nationality = ""British"" ORDER BY fastestLapSpeed DESC LIMIT 1" "If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?","SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = ""proton kr""" what the highest population in the county public safety table,SELECT MAX ( Population ) FROM county_public_safety What is the longest students absence duration from school?,"SELECT name, month FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school )" What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?,"SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3" Which country is bob tway from?,"SELECT country FROM table_name_30 WHERE player = ""bob tway""" Where did case No. JB100065 happen? Give the name of the district.,SELECT T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB100065' How many goals were scored in the 2005-06 season?,"SELECT goals FROM table_1218784_1 WHERE season = ""2005-06""" What CFL team did Darcy Brown play for?,"SELECT cfl_team FROM table_20170644_1 WHERE player = ""Darcy Brown""" "Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1?","SELECT COUNT(season) FROM table_name_27 WHERE team_2 = ""chonburi"" AND score = ""0:1""" What is the name of the shipping agent of the document with id 2?,SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2; "How many kinds of products are supplied by ""Karkki Oy"" company?",SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Karkki Oy' For how many years combined were Frank Gifford and Dan Dierdorf color commentators?,"SELECT COUNT(year) FROM table_name_61 WHERE color_commentator_s_ = ""frank gifford and dan dierdorf""" What are the last names of customers without invoice totals exceeding 20?,SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20 "What is the Team Record, when the Result is l 0–24?","SELECT team_record FROM table_name_52 WHERE result = ""l 0–24""" Tell me the year for defensive tackle and college of lsu,"SELECT year FROM table_name_13 WHERE position = ""defensive tackle"" AND college = ""lsu""" List the names of aircrafts and that did not win any match.,SELECT Aircraft FROM aircraft WHERE NOT Aircraft_ID IN (SELECT Winning_Aircraft FROM MATCH) "What is the short name of the country in which the ""Net bilateral aid flows from DAC donors, Sweden (current US$)"" indicator hit the 570,000 value in 1970?","SELECT T2.ShortName FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Net bilateral aid flows FROM DAC donors, Sweden (current US$)' AND T1.Year = 1970 AND T1.Value = 570000" What are their last names?,SELECT Lname FROM student WHERE sex = 'F' AND city_code = 'BAL' What is the last year a sponsorship ended?,SELECT MAX(sponsorship) AS Ended FROM table_28005160_2 Write down all of the product ids that were placed by Meander.,SELECT DISTINCT T2.ProductID FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID WHERE T1.FirstName = 'Meander' What are the names of the tourist attractions that have parking or shopping as their feature details?,SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping' What are the addresses for the stores?,SELECT T2.address FROM store AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id How many unique directors with an average earnings of 2 and a quality of 3 have not made comedy films? List them.,SELECT DISTINCT T1.directorid FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 3 AND T1.avg_revenue = 2 AND T2.genre != 'Comedy' Which Total has a Set 3 of 13–25?,"SELECT total FROM table_name_53 WHERE set_3 = ""13–25""" What song has 24 votes?,SELECT song FROM table_19763199_3 WHERE total_votes = 24 What was the date if the driver was Robert Pressley?,"SELECT date FROM table_2260452_1 WHERE driver = ""Robert Pressley""" What GEO ID has a longitude of -102.693028?,SELECT geo_id FROM table_name_83 WHERE longitude = -102.693028 How old was composer of the show when he was nominated for Emmy's Outstanding Music Composition for a Series in 2009. Indicate his full name as well.,"SELECT T1.year - T2.birthdate AS ageIn2009, T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person = T2.name WHERE T1.role = 'composer' AND T1.organization = 'Primetime Emmy Awards' AND T1.award = 'Outstanding Music Composition for a Series (Original Dramatic Score)' AND T1.result = 'Nominee' AND T1.year = 2009;" What are all the phone numbers?,SELECT customer_phone FROM available_policies List the names of roller coasters by ascending order of length.,SELECT Name FROM roller_coaster ORDER BY LENGTH List the first and last name of all players who are left / L hand in the order of birth date.,"SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date" Give the names of countries with English and French as official languages.,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" AND T2.IsOfficial = ""T"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""French"" AND T2.IsOfficial = ""T""" Which year has the most customer orders?,"SELECT strftime('%Y', order_date) FROM cust_order GROUP BY strftime('%Y', order_date) ORDER BY COUNT(strftime('%Y', order_date)) DESC LIMIT 1" How many captains in this table?,select count ( * ) from captain From which country is the player who made less than $216?,SELECT country FROM table_name_63 WHERE money___$__ < 216 What is the Standard cost (USD) of Kwin team creator?,"SELECT standard_cost__usd_ FROM table_name_95 WHERE creator = ""kwin team""" List the themes of parties in ascending order of number of hosts.,SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.,SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000 How many students are enlisted in the Army organization?,SELECT COUNT(name) FROM enlist WHERE organ = 'army' I want the manner of departure for 1 june 2007,"SELECT manner_of_departure FROM table_name_2 WHERE date_of_appointment = ""1 june 2007""" Who lost to moyer (9–4)?,"SELECT opponent FROM table_name_26 WHERE loss = ""moyer (9–4)""" Which channel was on 28 December 2008?,"SELECT channel FROM table_name_74 WHERE date = ""28 december 2008""" What are the first names and office locations for all professors sorted alphabetically by first name?,"SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname" "Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?","SELECT MAX(diameter__km_) FROM table_name_4 WHERE name = ""alma-merghen planitia"" AND year_named < 1997" "What is Quantitiy Made, when Quantity Preserved is ""4-4-0 — oooo — american""?","SELECT quantity_made FROM table_name_23 WHERE quantity_preserved = ""4-4-0 — oooo — american""" What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?,"SELECT grand_cru FROM table_name_33 WHERE wine_style = ""red wine"" AND village = ""gevrey-chambertin""" What is the D45 associated with a D42 of r 22?,"SELECT d_45 FROM table_name_23 WHERE d_42 = ""r 22""" What are all the payment methods?,SELECT DISTINCT payment_method FROM customers How about how to get there?,"SELECT T2.How_to_Get_There FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" "Yes, hi, I'd like to know how many professors are in the history department?","SELECT count ( * ) FROM professor WHERE dept_code = ""HIST""" "Among observations in 2011, provide the names and ages of patients whose Systolic Blood Pressures are 200mmHg.","SELECT T2.first, T2.last , CASE WHEN T2.deathdate IS NULL THEN strftime('%Y', T1.DATE) - strftime('%Y', T2.birthdate) ELSE strftime('%Y', T2.deathdate) - strftime('%Y', T2.birthdate) END AS age FROM observations AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Systolic Blood Pressure' AND T1.VALUE = 200 AND T1.UNITS = 'mmHg' AND strftime('%Y', T1.DATE) = '2011'" What played has 3 as the losing bonus?,"SELECT played FROM table_name_91 WHERE losing_bonus = ""3""" Which points classification has 4 as the stage?,SELECT points_classification FROM table_22464308_2 WHERE stage = 4 What day was the margin of victory 1 stroke when the tournament was colonial national invitation?,"SELECT date FROM table_name_5 WHERE margin_of_victory = ""1 stroke"" AND tournament = ""colonial national invitation""" Which festival name was nimonated for artwork? | you want all of festival name was nimonated for artwork? | Yes,SELECT distinct T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID Which channels are broadcast in the morning? Give me the channel names.,SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' "What date is for Venue of jjb stadium, and a Result of w?","SELECT date FROM table_name_14 WHERE venue = ""jjb stadium"" AND result = ""w""" Which Case length has a Rim diameter of 13.20 (.518)?,"SELECT case_length FROM table_name_90 WHERE rim_diameter = ""13.20 (.518)""" What is the lowest position with 32-6 points and less then 59 goals when there are more than 38 played?,"SELECT MIN(position) FROM table_name_37 WHERE points = ""32-6"" AND goals_against < 59 AND played > 38" Show the locations of parties with hosts older than 50.,SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 who is the entrant when the engine is bmw p82?,"SELECT entrant FROM table_name_92 WHERE engine_† = ""bmw p82""" How many times has the student Linda Smith visited Subway?,"SELECT COUNT(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"" AND Restaurant.ResName = ""Subway""" Name the D 46 which has D 42 of r 14,"SELECT d_46 FROM table_name_36 WHERE d_42 = ""r 14""" what is the unit price of track id 6,SELECT unit_price from tracks where id = 6 list out the stadium names,SELECT name FROM stadium How many employees working in the Engineering Department in 2007 would have their credit cards expired in the same year?,SELECT COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN PersonCreditCard AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID INNER JOIN CreditCard AS T4 ON T3.CreditCardID = T4.CreditCardID WHERE T4.ExpYear = 2007 AND T2.Name = 'Engineering' "What is the lowest Points, when Home is ""Boston""?","SELECT MIN(points) FROM table_name_81 WHERE home = ""boston""" What college did Marcus Wilson attend?,"SELECT college FROM table_name_45 WHERE player = ""marcus wilson""" What year did the San Agustin gym open?,"SELECT year_opened FROM table_name_44 WHERE arena_venue = ""san agustin gym""" State one biword pair with occurence of 4.,"SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.occurrences = 4 LIMIT 1" Find the number of shops in each location.,"SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION" Which number was the lyricist ahmed metwally?,"SELECT no FROM table_28005100_1 WHERE lyricist = ""Ahmed Metwally""" What season has the champion of Nicolas Kiesa?,"SELECT season FROM table_name_84 WHERE champion = ""nicolas kiesa""" "What is all the information about courses, ordered by credits ascending?",SELECT * FROM COURSE ORDER BY Credits "Show me the teams that have wrestlers eliminated by ""Benjamin"".","SELECT Team FROM Elimination WHERE Eliminated_By = ""Benjamin""" "Which department is the smallest? | Do you mean the department that has the fewest members? | Yes, which department has the fewest members?",SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count ( * ) ASC LIMIT 1 What Nationality has a Time of 9:01.70?,"SELECT nationality FROM table_name_58 WHERE time = ""9:01.70""" what are the names of the manufacturers of those products?,SELECT T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code where T1.price > = 150 "How much Total has a Rank of 5, and a Bronze larger than 3?","SELECT SUM(total) FROM table_name_44 WHERE rank = ""5"" AND bronze > 3" Which procedures and medications were received by the patient with the third-degree burn?,"SELECT DISTINCT T1.DESCRIPTION, T3.DESCRIPTION FROM procedures AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT INNER JOIN medications AS T3 ON T2.patient = T3.PATIENT WHERE T2.DESCRIPTION = 'Third degree burn'" What was the ticket price at Red Rocks Amphitheatre?,"SELECT ticket_price_s_ FROM table_name_96 WHERE venue = ""red rocks amphitheatre""" what is the most weeks on chart when the peak position is less than 5 and from Sweden?,"SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = ""sweden""" "When was the latest debut in Europe for Henrik Larsson, with less than 108 games?","SELECT MAX(debut_in_europe) FROM table_name_57 WHERE player = ""henrik larsson"" AND games < 108" What is the name and id of the department with the most number of degrees ?,"select t2.department_name , t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1" What Laurel Mountain Channel is associated with B Mountain Channel of 7?,"SELECT laurel_mountain_channel FROM table_name_51 WHERE b_mountain_channel = ""7""" Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?,"SELECT directed_by FROM table_2226817_3 WHERE written_by = ""Michael G. Moye & Ron Leavitt & J. Stanford Parker""" Who was Louise when Tracy Venner was Dainty June?,"SELECT louise FROM table_name_83 WHERE dainty_june = ""tracy venner""" Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .,"select sum(population) , avg(surfacearea) from country where continent = ""north america"" and surfacearea > 3000" Find the name of route that has the highest number of deliveries.,SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1 How many seasons was Dave Reid treasurer?,"SELECT COUNT(season) FROM table_16446652_1 WHERE treasurer = ""Dave Reid""" What is the record of game 48?,SELECT record FROM table_name_40 WHERE game = 48 How many players wore number 8?,SELECT COUNT(height) FROM table_12962773_16 WHERE no = 8 Who is the Opponent on January 7?,"SELECT opponent FROM table_name_21 WHERE date = ""january 7""" What are the bed types of the three least expensive rooms?,SELECT bedType FROM Rooms ORDER BY basePrice LIMIT 3 What date did the opponent George Khrikadze play?,"SELECT date FROM table_name_97 WHERE opponent = ""george khrikadze""" What are the names and scores of wines that are made of white color grapes?,"SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" Please list all tags of kurtis blow from 2000 to 2010.,SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 2000 AND 2010 AND T1.artist LIKE 'kurtis blow' What is the score of the visiting Hartford Whalers game from April 11?,"SELECT score FROM table_name_8 WHERE visitor = ""hartford whalers"" AND date = ""april 11""" What are the id of each employee and the number of document destroyed by that employee?,"SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID" and what is the company name associated with ID 9?,SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id WHERE t2.maintenance_contract_id = 9 Return the full name and phone of the customer who has card number 4560596484842.,"SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = ""4560596484842""" What are the ids and names of the medicine that can interact with two or more enzymes?,"SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" What is the rank for China?,"SELECT SUM(rank) FROM table_name_96 WHERE country = ""china""" What class is volleyball in 2000?,"SELECT class FROM table_name_40 WHERE sport = ""volleyball"" AND year = 2000" "In reviews for the Eagle National Bank product, how many of the 5 star reviews where from Nashville, Tennessee?",SELECT COUNT(T2.Stars) FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T1.city = 'Nashville' AND T1.state_abbrev = 'TN' AND T2.Product = 'Eagle National Mortgage' AND T2.Stars = 5 What is the average Year for the project The Untouchables?,"SELECT AVG(year) FROM table_name_16 WHERE project = ""the untouchables""" "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.","SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1" On what date was a friendly match held at Auckland?,"SELECT date FROM table_name_32 WHERE competition = ""friendly match"" AND venue = ""auckland""" What is the full name of that campus?,SELECT campus from campuses WHERE YEAR > = 1935 AND YEAR < = 1939 What is the fleet size of the airline which has a callsign of cool red?,"SELECT MIN(fleet_size) FROM table_15637071_1 WHERE callsign = ""COOL RED""" Where was the game with a 4-1 record played?,"SELECT location FROM table_23243769_4 WHERE record = ""4-1""" Name the womens doubles for werner schlager,"SELECT womens_doubles FROM table_28138035_4 WHERE mens_singles = ""Werner Schlager""" "What are the first name, last name, and gender of all the good customers? Order by their last name.","SELECT first_name , last_name , gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name" What is the greatest number of caps for Bruce Djite?,"SELECT MAX(caps) FROM table_name_54 WHERE player = ""bruce djite""" What is the date of the game with a record of 14-31?,"SELECT date FROM table_name_16 WHERE record = ""14-31""" What conference includes the Indians?,"SELECT conference_joined FROM table_name_40 WHERE mascot = ""indians""" How many tracks belong to rock genre?,"SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" Find the names of all modern rooms with a base price below $160 and two beds.,SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern' Can you please list the names of the journalists in a table with the number of events they each reported?,"SELECT T3.Name , COUNT ( * ) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name" "what is the highest events when the cuts made is less than 34, the top-25 is less than 5 and the top-10 is more than 1?",SELECT MAX(events) FROM table_name_72 WHERE cuts_made < 34 AND top_25 < 5 AND top_10 > 1 Records from Kontor Records from the catalog of Kontor446 was released in what format?,"SELECT format FROM table_name_63 WHERE label = ""kontor records"" AND catalog = ""kontor446""" How many new entries started in the quarter finals?,"SELECT new_entries_this_round FROM table_18328569_1 WHERE round = ""Quarter finals""" What is the highest population in 2001?,SELECT MAX(population__2001_) FROM table_27366772_3 "Which school picked a back in round 16, after pick 89?","SELECT school FROM table_name_20 WHERE pick > 89 AND position = ""back"" AND round = 16" "What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?",SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 0 What is the name of the department with the most students enrolled?,SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1 What was the high points when the team was Washington?,"SELECT high_points FROM table_27755603_10 WHERE team = ""Washington""" Who are cast members in an English movie which has a running time equal to 2? Please list their IDs.,SELECT T2.actorid FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.runningtime = 2 AND T1.isEnglish = 'T' When did the Chiefs have their first bye?,"SELECT MIN(week) FROM table_name_47 WHERE attendance = ""bye""" "What is the Result of Venue of edmonton, canada?","SELECT result FROM table_name_54 WHERE venue = ""edmonton, canada""" What was the Result in 2013?,SELECT result FROM table_name_48 WHERE year = 2013 "How many of the ""Hon Pagoda Stacking Chairs"" have been sold in total in the west superstore?",SELECT SUM(T1.Quantity) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Hon Pagoda Stacking Chairs' List the 3 highest salaries of players in the AL in 2001,"SELECT salary FROM salary WHERE YEAR = 2001 and league_id = ""AL"" ORDER BY salary DESC LIMIT 3" Find the names of the tourist attractions that is either accessible by walk or at address 660 Shea Crescent.,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""660 Shea Crescent"" OR T2.How_to_Get_There = ""walk""" "Show the distinct leader names of colleges associated with members from country ""Canada"".","SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = ""Canada""" which phone has the highest screen mode on the table,select * from phone where screen_mode = ( select max ( screen_mode ) from phone ) What parties have at least three representatives?,SELECT Party FROM representative GROUP BY Party HAVING COUNT(*) >= 3 What is the Home team of the Lincoln City Away game?,"SELECT home_team FROM table_name_5 WHERE away_team = ""lincoln city""" "Which Catalog has a Date of july 15, 2011?","SELECT AVG(catalog) FROM table_name_73 WHERE date = ""july 15, 2011""" Which city does staff with first name as Janessa and last name as Sawayn live?,"SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" What is the total population and maximum GNP in Asia?,"SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = ""Asia""" How many days had both mean humidity above 50 and mean visibility above 8?,SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8 what is participant type code of karlee batz,"SELECT Participant_Type_Code FROM Participants WHERE Participant_Details = ""Karlee Batz""" Show all the distinct product names with price higher than the average.,SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS) How many of those organizations are parent organizations?,select organization_id from Organizations where organization_id in ( SELECT parent_organization_id FROM organizations ) How many students were absence for 4 month?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 4 How many countries have a life expectancy of 75.1?,SELECT COUNT(*) FROM Country WHERE LifeExpectancy = 75.1 What was the crowd attendance when the home team was Melbourne?,"SELECT COUNT(crowd) FROM table_name_73 WHERE home_team = ""melbourne""" what is the city for the country of netherlands?,"SELECT city FROM table_name_96 WHERE country = ""netherlands""" How many different cities are represented by contestants whose height stands at 1.80?,"SELECT COUNT(hometown) FROM table_22447251_2 WHERE height = ""1.80""" List all countries with 'Category III' membership in 'IFAD' organization. Please also provide the capital of the country.,"SELECT Name, Capital FROM country WHERE Code IN ( SELECT Country FROM isMember WHERE type = 'Category III' AND Organization = 'IFAD' )" "Which Census Ranking has an Area km 2 larger than 753.06, and an Official Name of stanley?","SELECT census_ranking FROM table_name_94 WHERE area_km_2 > 753.06 AND official_name = ""stanley""" Which show as previously on The Family Channel?,"SELECT show FROM table_169766_13 WHERE previous_network = ""The Family Channel""" What are the indicator codes for the Republic of Albania in the year 1960?,SELECT DISTINCT T1.IndicatorCode FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Year = 1960 AND T2.LongName = 'Republic of Albania' "What class is the city of black mountain, north carolina?","SELECT class FROM table_name_45 WHERE city_of_license = ""black mountain, north carolina""" What are the names of students who have 2 or more likes?,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2 Count the number of different countries that climbers are from.,SELECT COUNT(DISTINCT Country) FROM climber what is the title when the featuring is leela and series sorted is 4s/b?,"SELECT title FROM table_name_71 WHERE featuring = ""leela"" AND series_sorted = ""4s/b""" "What is the label ID of ""Third-party card management"" category?",SELECT label_id FROM label_categories WHERE category = 'Third-party card management' "Which film has the most number of actors or actresses? List the film name, film id and description.","SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1" Name the lms number for serial number being 372,SELECT lms_no FROM table_20236726_2 WHERE serial_no = 372 "What Week had an Attendance smaller than 22,333?",SELECT COUNT(week) FROM table_name_12 WHERE attendance < 22 OFFSET 333 What is the tyres with a year earlier than 1961 for a climax l4 engine?,"SELECT tyres FROM table_name_33 WHERE year < 1961 AND engine = ""climax l4""" What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?,"SELECT SUM(grid) FROM table_name_87 WHERE laps < 68 AND time_retired = ""injection""" Show the names of customers who use Credit Card payment method and have more than 2 orders.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING count(*) > 2 Which institute has the highest percentage of male White students graduating in 2011 within 150 percent of normal/expected time?,SELECT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.year = 2011 AND T2.gender = 'M' AND T2.race = 'W' AND T2.grad_150 = ( SELECT MAX(T2.grad_150) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.year = 2011 AND T2.gender = 'M' AND T2.race = 'W' ) Nme the most cuts made for wins being 0,SELECT MAX(cuts_made) FROM table_1697190_1 WHERE wins = 0 "What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?","SELECT MIN(weight__kg_) FROM table_name_62 WHERE jersey__number > 22 AND position = ""f"" AND birthdate = ""march 19, 1980""" Who is the player from Hotchkiss School with a position of d?,"SELECT player FROM table_name_45 WHERE position = ""d"" AND team_from = ""hotchkiss school""" What is the date of the poll with Silbert at 18%?,"SELECT date FROM table_name_53 WHERE silbert = ""18%""" List down the encounter descriptions of patients who were born in Pittsfield MA US.,SELECT DISTINCT T2.DESCRIPTION FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.birthplace = 'Pittsfield MA US' What is the language that is used by the largest number of Asian nations?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = ""Asia"" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1" Tell me the date for new orleans saints,"SELECT date FROM table_name_22 WHERE opponent = ""new orleans saints""" What is the hometown of the representative that served the twenty-sixth legislature?,"SELECT hometown FROM table_name_22 WHERE legislatures = ""twenty-sixth""" Provide the registered courses' names by undergraduate students with GPA of 3.7 and above.,SELECT DISTINCT T1.f_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.type = 'UG' AND T1.gpa > 3.7 What event has a time of 7:45.67?,"SELECT event FROM table_name_62 WHERE time = ""7:45.67""" i mean chromosome value ? | You mean PBG deaminase? | yes,"SELECT Chromosome from enzyme where name = ""PBG deaminase""" "Who is the player with a t10 place, from the United States, and has a score of 69-70-76=215?","SELECT player FROM table_name_61 WHERE place = ""t10"" AND country = ""united states"" AND score = 69 - 70 - 76 = 215" "Show the location name for document ""Robin CV"".","SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = ""Robin CV""" Which Away team score has a Venue of scg?,"SELECT away_team AS score FROM table_name_82 WHERE venue = ""scg""" What is the lowest win number of the competitor who had 90 points before 1994?,SELECT MIN(wins) FROM table_name_41 WHERE points = 90 AND year < 1994 Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.,SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 What number has 2008 as the season?,"SELECT number FROM table_name_38 WHERE season = ""2008""" Show invoice dates and order id and details for all invoices.,"SELECT T1.invoice_date , T1.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id" "How many students have the incident type code ""VIOLENCE""?","SELECT count ( * ) from Behavior_Incident where incident_type_code = ""VIOLENCE""" What was his position in 2009 with 1 win?,"SELECT position FROM table_name_93 WHERE wins = ""1"" AND season = ""2009""" What is the name of the root beer brand with the lowest unit profit available to wholesalers?,SELECT BrandName FROM rootbeerbrand ORDER BY CurrentRetailPrice - WholesaleCost LIMIT 1 Name 5 country codes of country with highest value and state the region of these countries.,"SELECT DISTINCT T1.CountryCode, T1.Region FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode ORDER BY T2.Value DESC LIMIT 5" Who was the dirctor for season 13?,SELECT director_s_ FROM table_11715748_2 WHERE season__number = 13 How many different status codes of things are there?,SELECT count(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things What types of food are served at the 4 top-reviewed restaurants?,SELECT food_type FROM generalinfo WHERE review = ( SELECT MAX(review) FROM generalinfo ) LIMIT 4 What are the titles of all albums that start with A in alphabetical order?,SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title; Give me the name of each club.,SELECT clubname FROM club How many professionals have performed any treatment to dogs?,SELECT COUNT(DISTINCT professional_id) FROM Treatments What location has an attendance and a score of l 90–91 (ot)?,"SELECT location_attendance FROM table_name_28 WHERE score = ""l 90–91 (ot)""" Name the Others# when McCain# is 4730.,SELECT others_number FROM table_20750731_1 WHERE mccain_number = 4730 "Which song has a ending theme, and is sung by miriam yeung?","SELECT name_of_the_song FROM table_name_75 WHERE kind_of_the_song = ""ending theme"" AND singer = ""miriam yeung""" Tell me the away team score for away team of south melbourne,"SELECT away_team AS score FROM table_name_23 WHERE away_team = ""south melbourne""" What is the country associated with the date in 2003?,"SELECT country FROM table_name_34 WHERE date = ""2003""" Could you give me the names of all phones?,select distinct ( name ) from phone Show all locations and the total number of platforms and passengers for all train stations in each location.,"SELECT LOCATION , sum(number_of_platforms) , sum(total_passengers) FROM station GROUP BY LOCATION" Who is the opponent for the game that occurred after week 13?,SELECT opponent FROM table_name_12 WHERE week > 13 What are the names of all races that occurred after 12:00:00 or before 09:00:00?,"SELECT name FROM races WHERE TIME > ""12:00:00"" OR TIME < ""09:00:00""" How many first teams chose to bat after winning the toss?,SELECT COUNT(Team_1) FROM `Match` WHERE Team_1 = Toss_Winner AND Toss_Decide = 2 "What is the l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560?",SELECT l_100km_urban__cold_ FROM table_name_24 WHERE co_2_g_km < 222 AND mpg_us_urban > 17.8 AND mpg_uk_extra_urban = 55.4 AND engine_capacity > 1560 How many distinct birth places are there?,SELECT count(DISTINCT Birth_Place) FROM people "Find the names of all swimmers, sorted by their 100 meter scores in ascending order.",SELECT name FROM swimmer ORDER BY meter_100 Name the patients who had an allergy to soy.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Allergy to soya'" Who was the Long Beach constructor?,"SELECT constructor FROM table_name_24 WHERE location = ""long beach""" What is the to par for the 69-70-72=211 score?,SELECT to_par FROM table_name_56 WHERE score = 69 - 70 - 72 = 211 "Among the donations with a portion using account credits redemption, how many of them are for projects created by teachers working in a public year-round school?",SELECT COUNT(T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.payment_included_acct_credit = 't' AND T1.school_year_round = 't' How many units of item no.5 were sold in store no.3 on the day the temperature range was the biggest?,SELECT t2.units FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T1.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND T2.item_nbr = 5 ORDER BY t3.tmax - t3.tmin DESC LIMIT 1 What is the inspection result for inspection done by Thomas Langley?,SELECT DISTINCT T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Thomas' AND T1.last_name = 'Langley' "What is the quantity of the part ""burnished seashell gainsboro navajo chocolate"" ordered in order no.1?",SELECT T1.l_quantity FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T1.l_orderkey = 1 AND T2.p_name = 'burnished seashell gainsboro navajo chocolate' "Find the names of swimmers who has a result of ""win"".",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' "How many businesses in Scottsdale are rated as ""wonderful experience""?",SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale' AND stars > 3 What number is on the car that Geoffrey Bodine drives?,"SELECT MIN(_number) FROM table_2182170_1 WHERE driver_s_ = ""Geoffrey Bodine""" Show the membership level with most number of members.,SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY COUNT(*) DESC LIMIT 1 "For the question “What US state or territory do you work in?”, how many people gave ""Kansas"" as the answer?",SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'What US state or territory do you work in?' AND T1.AnswerText = 'Kansas' How many title's crew members are working from Casting Department?,SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.category = 'Casting Department'; how many orders does the customer with the most orders have?,SELECT count ( * ) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 Who directed the episode that was watched by 2.67 million U.S. viewers?,"SELECT directed_by FROM table_29747178_3 WHERE us_viewers__million_ = ""2.67""" What is the season total number if the primary (South) winners is Ridings High 'A'?,"SELECT COUNT(season) FROM table_23014923_1 WHERE primary__south__winners = ""Ridings High 'A'""" What is the sum of the averages when there are 68 caps and less than 9 goals?,SELECT SUM(average) FROM table_name_16 WHERE caps = 68 AND goals < 9 Name the date for series 2-2,"SELECT date FROM table_17622423_12 WHERE series = ""2-2""" State name of students who have the longest duration of absense from school and do not have payment due.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg' ORDER BY T1.month DESC LIMIT 1 Which state has 5179 (gw×h) of renewable energy without hydrogen power?wha,SELECT state FROM table_25244412_1 WHERE renewable_electricity_w_o_hydro__gw•h_ = 5179 List the names of all players in team Avangard Omsk in season 2000-2001.,SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.TEAM = 'Avangard Omsk' What is the league goals when the total goals is 179?,SELECT MAX(league_goals) FROM table_29701419_2 WHERE total_goals = 179 Which school did the player then go to Auburn?,"SELECT school FROM table_11677691_7 WHERE college = ""Auburn""" What are the Points after 1991?,SELECT COUNT(points) FROM table_name_49 WHERE year > 1991 On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas?,"SELECT other_performer_s_ FROM table_name_4 WHERE director_s_ = ""melina matsoukas"" AND album = ""loud""" When did they play Utah at home?,"SELECT date FROM table_name_38 WHERE home = ""utah""" What Dave Douglas' Place?,"SELECT place FROM table_name_66 WHERE player = ""dave douglas""" "Find the email of the user whose name contains the word ""Swift""",SELECT email FROM user_profiles WHERE name LIKE '%Swift%' "When columbia, south carolina is the hometown what is the lowest age?","SELECT MIN(age) FROM table_1859855_2 WHERE hometown = ""Columbia, South Carolina""" What are the names and parties of representatives?,"SELECT Name , Party FROM representative" What number value has the Other transliteration of muoy roy?,"SELECT value FROM table_name_90 WHERE other = ""muoy roy""" Which episode has the highest number of vote of the star score?,SELECT episode_id FROM Vote ORDER BY votes DESC LIMIT 1; "What apartment type codes and apartment numbers do the buildings managed by ""Kyle"" have?","SELECT T2.apt_type_code , T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = ""Kyle""" Name the total number of grounds for essendon,"SELECT COUNT(ground) FROM table_16388047_1 WHERE home_team = ""Essendon""" How many enzymes do not have any interactions?,SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); What mintage for the royal canadian mint engravers before 2008 that has an issue price of $102.95?,"SELECT mintage FROM table_name_98 WHERE artist = ""royal canadian mint engravers"" AND year < 2008 AND issue_price = ""$102.95""" Who are the major users from Australia?,"SELECT major_users FROM table_29474407_11 WHERE country_of_origin = ""Australia""" Against whom did the Spartans score 73 points?,SELECT opponent FROM table_22860990_3 WHERE spartans_points = 73 When did Prime Minister Agathe Uwilingiyimana's mandate end?,"SELECT mandate_end FROM table_name_44 WHERE office = ""prime minister"" AND name_a = ""agathe uwilingiyimana""" Show flags of ships?,"SELECT name, flag FROM ship" What is a login name of Dee A Larkin?,"SELECT login_name FROM customers WHERE Customer_first_name = ""Dee"" AND Customer_middle_initial = ""A"" AND Customer_last_name = ""Larkin""" "Which Opponent that has a Week smaller than 7 on september 12, 1988?","SELECT opponent FROM table_name_41 WHERE week < 7 AND date = ""september 12, 1988""" Find the average age of the dogs who went through treatments.,SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments ) "What is the solution path for the method ""IQ.Data.DbQueryProvider.CanBeEvaluatedLocally""?",SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally' Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.,"SELECT departure_date , arrival_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" "Give me the times and numbers of all trains that go to Chennai, ordered by time.","SELECT TIME , train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME" In which round was Gabriel Veiga the opponent?,"SELECT round FROM table_name_42 WHERE opponent = ""gabriel veiga""" "What is Opening, when White is Kramnik, when Year is less than 2001, and when Tournament is ""Siemens Giants""?","SELECT opening FROM table_name_77 WHERE white = ""kramnik"" AND year < 2001 AND tournament = ""siemens giants""" What type of engine does the model with model designation 97F00 have?,"SELECT engine FROM table_20866024_3 WHERE model_designation = ""97F00""" "Great! Can you tell me which, if any, customers on this list appear more than once?",SELECT T2.customer_name From customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id GROUP BY T2.customer_name having count ( * ) > 1 What is the first year that there was a Satellite Award?,"SELECT MIN(year) FROM table_name_90 WHERE festival_organization = ""satellite award""" How many car models were produced by the maker with full name American Motor Company?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'; Name the best when runs of 1088 and matches more than 11,SELECT best FROM table_name_4 WHERE matches > 11 AND runs = 1088 How many customers in state of CA?,"SELECT count(*) FROM customers WHERE state = ""CA"";" Who publishes Wolverine?,"SELECT publisher FROM table_name_67 WHERE character_s_ = ""wolverine""" "What team has less than 64 goals against, 101 goals for, and a Points 2 total of 63?",SELECT team FROM table_name_20 WHERE goals_against < 64 AND points_2 = 63 AND goals_for = 101 "which episode was Transmitted on wednesday if the episode of ""438 magic: the gathering mini masters tournament"" was transmitted on thursday? ","SELECT wednesday FROM table_18173916_8 WHERE thursday = ""438 Magic: The Gathering Mini Masters Tournament""" What are the faculty id and the number of students each faculty has?,"SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID" Which countries do not have a stadium that was opened after 2006?,SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006 Great! Can you update the list to show the number of different institutions in each building?,"SELECT T1.name , count ( * ) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id" What is the latest date that orders were sent by supplier id 4? | Did you mean date of supplied from or to? | Supplied to.,SELECT date_supplied_to FROM Product_Suppliers where supplier_id = 4 order by date_supplied_to desc limit 1 "What frequency is the xfm station, which is part of the talk music genre?","SELECT frequency FROM table_name_71 WHERE genre = ""talk music"" AND station = ""xfm""" "How many of the reviews for the app ""Brit + Co"" have a comment?",SELECT COUNT(App) FROM user_reviews WHERE App = 'Brit + Co' AND Translated_Review IS NOT NULL How many courses have more than one prerequisite?,select count ( * ) from ( SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count ( * ) > 1 ) What is every entry for 1982-83 for rank 1?,SELECT 1982 AS _83 FROM table_22606461_10 WHERE rank = 1 What job is at red bank?,"SELECT occupation FROM table_name_90 WHERE residence = ""red bank""" "What is the average height of all players from the college ""Yale University""?",SELECT avg ( T1.height ) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University' How many reg GP for rick vaive in round 1?,"SELECT SUM(reg_gp) FROM table_name_19 WHERE player = ""rick vaive"" AND rd__number < 1" What is the rating of each restaurant reviews on Atlantic Ave?,SELECT T1.review FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'atlantic ave' How many products does the company Exotic Liquids supply?,SELECT COUNT(T1.ProductName) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Exotic Liquids' list out the student name,SELECT name FROM student What are the names and ids of customers whose address contains TN?,"SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE ""%TN%""" What are the maximum and minimum resolution of songs whose duration is 3 minutes?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""" What was the score against san antonio?,"SELECT score FROM table_13619053_4 WHERE team = ""San Antonio""" When was the train 2053 built?,"SELECT build_date FROM table_1057316_1 WHERE serial_number = ""2053""" "Who are the opponents of Missouri that have an overall record of MU, 3-1?","SELECT missouri_vs FROM table_16201038_5 WHERE overall_record = ""MU, 3-1""" What are the electric companies drawing power from Itaipu?,"SELECT entities FROM table_19001916_2 WHERE supply_point = ""Itaipu""" How many workshops did each author submit to? Return the author name and the number of workshops.,"SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author" How many roles did Julia Roberts play in the series?,SELECT COUNT(T1.role) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Julia Roberts' How much does product ID 8 cost?,SELECT product_price from products where product_id = 8 Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace?,"SELECT written_by FROM table_name_5 WHERE prod_code > 1.4 AND directed_by = ""rick wallace""" What were the shots below par when the winning score was 67-64-63-71-66=331?,SELECT to_par FROM table_247955_2 WHERE winning_score = 67 - 64 - 63 - 71 - 66 = 331 Which vehicle has a Grid of 13?,SELECT constructor FROM table_name_5 WHERE grid = 13 Please provide a list of every nation where English is spoken and utilized entirely.,SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'English' AND T2.Percentage = 100 What the B Score when the total is 16.125 and the position is less than 7?,SELECT SUM(b_score) FROM table_name_10 WHERE position < 7 AND total = 16.125 Which player had a position of QB for Texas Tech?,"SELECT player FROM table_name_84 WHERE pos = ""qb"" AND college = ""texas tech""" "Which Record has a Match Report of recap, and a Result of l 30–20?","SELECT record FROM table_name_92 WHERE match_report = ""recap"" AND result = ""l 30–20""" "What are flight numbers of flights arriving at Airport ""APG""?","SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ""APG""" "who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed?","SELECT incumbent FROM table_1341672_10 WHERE candidates = ""William V. Chappell, Jr. (D) Unopposed""" "when fairburn is bigger than 54.0, how many years?",SELECT COUNT(year) FROM table_20142629_2 WHERE fairburn > 54.0 What is the total amount of grant money given to each organization and what is its id?,"SELECT sum(grant_amount) , organisation_id FROM Grants GROUP BY organisation_id" What venue did South Melbourne play as the away team?,"SELECT venue FROM table_name_61 WHERE away_team = ""south melbourne""" Find the name of companies whose revenue is greater than the average revenue of all companies.,SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers) What was the score on January 12?,"SELECT score FROM table_name_27 WHERE date = ""january 12""" Name the country for johannesburg,"SELECT country FROM table_name_35 WHERE city = ""johannesburg""" What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?,"SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )" What is the highest account balance of customers with checking accounts?,SELECT max ( balance ) from checking Who were the incumbent(s) when the result was a retired democratic-republican hold and the first elected representative was in 1816>,"SELECT incumbent FROM table_2668336_19 WHERE result = ""Retired Democratic-Republican hold"" AND first_elected = ""1816""" What Vehicle Flight # has Pilot Peterson and Velocity (km/h) of 649?,"SELECT vehicle_flight__number FROM table_name_31 WHERE pilot = ""peterson"" AND velocity__km_h_ = 649" Which country has doosan infracore as then company name?,"SELECT country FROM table_237199_1 WHERE company_name = ""Doosan Infracore""" What is the average Position with less than 57 against and the team is Juventus?,"SELECT AVG(position) FROM table_name_19 WHERE against < 57 AND team = ""juventus""" Namethe school team for season 2008,"SELECT school_club_team FROM table_15463188_7 WHERE season = ""2008""" what city has a game of friendly and an opponent of tunisia?,"SELECT city FROM table_name_42 WHERE type_of_game = ""friendly"" AND opponent = ""tunisia""" Which Venue has a Opponents of halmstad and a Score of 1-1?,"SELECT venue FROM table_name_84 WHERE opponents = ""halmstad"" AND score = ""1-1""" How many Total matches happened in 2003?,"SELECT total_matches FROM table_name_20 WHERE year = ""2003""" Find the number of routes for each source airport and the airport name.,"SELECT count(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name" What is the highest number of artists on Scarface?,"SELECT MAX(number) FROM table_name_67 WHERE artist = ""scarface""" Find the name of the genre that is most frequent across all tracks.,SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1 "Which Points is the lowest one that has a Year larger than 1974, and a Rank of 15th?","SELECT MIN(points) FROM table_name_75 WHERE year > 1974 AND rank = ""15th""" "Show institution types, along with the number of institutions and total enrollment for each type.","SELECT TYPE, COUNT(*), SUM(enrollment) FROM institution GROUP BY TYPE" What was the finish of the player who had a total of 282?,SELECT finish FROM table_name_80 WHERE total = 282 Name the 132.1% for where north carolina is colorado,"SELECT 1321 AS _percentage FROM table_15051_4 WHERE north_carolina = ""Colorado""" Who constructed piercarlo ghinzani's car with under 44 laps?,"SELECT constructor FROM table_name_59 WHERE laps < 44 AND driver = ""piercarlo ghinzani""" "For each competition, count the number of matches.","SELECT count(*) , Competition FROM MATCH GROUP BY Competition" Which Venue has an Against of 25?,SELECT venue FROM table_name_26 WHERE against = 25 Who had the most assists of team Plymouth Whalers in the 1999-2000 season?,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.TEAM = 'Plymouth Whalers' AND T2.SEASON = '1999-2000' ORDER BY T2.A DESC LIMIT 1 "What are the numerical values of their revenues, please?","SELECT name,revenue FROM manufacturers WHERE revenue > ( SELECT min ( revenue ) FROM manufacturers WHERE headquarter = 'Austin' ) " what are all the result for New York 7 district,"SELECT result FROM table_1341395_33 WHERE district = ""New York 7""" Please list any three airports with their codes.,"SELECT Code, Description FROM Airports LIMIT 3" what is that customer's gender?,SELECT T2.gender FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 What is the lowest number played of the club with more than 15 wins and less than 42 goals against?,SELECT MIN(played) FROM table_name_59 WHERE wins > 15 AND goals_against < 42 "How tall was the member of Nymburk, who was born in 1982?","SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = ""nymburk""" All players are position mark polak.,"SELECT position FROM table_1013129_10 WHERE player = ""Mark Polak""" What is the lowest overall amount of shutouts?,SELECT MIN(shutouts) FROM table_29743928_4 "What are the building full names that contain the word ""court""?","SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE ""%court%""" What is the number of distinct languages used around the world?,SELECT count(DISTINCT LANGUAGE) FROM countrylanguage How about student that did attend courses?,SELECT * FROM student_course_registrations WHERE student_id IN ( SELECT student_id FROM student_course_attendance ) What seasons does stella malone appear?,"SELECT main_cast_seasons FROM table_12441518_1 WHERE character = ""Stella Malone""" "Great! Out of those cities, which ones have temperatures lower in March compared to their December temperature?",SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What was the CB CW for the year of 1982?,SELECT cb_cw FROM table_name_89 WHERE year = 1982 Name the athelte for enkhzorig ( mgl ) l 1–10,"SELECT athlete FROM table_17417383_6 WHERE round_of_32 = ""Enkhzorig ( MGL ) L 1–10""" What type of release was Napisten Hava?,"SELECT release_type FROM table_name_81 WHERE album = ""napisten hava""" How many Connecticut home games were broadcast?,"SELECT COUNT(broadcast) FROM table_28298589_4 WHERE home_team = ""Connecticut""" "In ""Sex, Pies and Idiot Scrapes"", how many percentage of votes did the 9 star score has?","SELECT T2.percent FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Sex, Pies and Idiot Scrapes' AND T2.stars = 9;" What is the schoo/club team of the player in round 3?,SELECT school_club_team FROM table_name_92 WHERE round = 3 what date has the record of 77-62?,"SELECT date FROM table_name_22 WHERE record = ""77-62""" On which island does South Yorkshire situated? State it's longtitude and latitude.,"SELECT DISTINCT T3.Longitude, T3.Latitude FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Province = 'South Yorkshire'" What city in the Citrus Bowl aired on ABC?,"SELECT city FROM table_16046689_29 WHERE stadium = ""Citrus Bowl"" AND television = ""ABC""" In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?,"SELECT year FROM table_name_83 WHERE tournament = ""1st division el salvador"" AND finish = ""champion"" AND team = ""fas""" Name the opponent for record 10-4,"SELECT opponent FROM table_18894744_5 WHERE record = ""10-4""" How many films are there?,SELECT count ( * ) from film What are the players whose rank is 2?,SELECT player FROM table_11303072_9 WHERE rank = 2 Which team picked Blaine Russell?,"SELECT nhl_team FROM table_2840500_6 WHERE player = ""Blaine Russell""" Return the minister who left office at the latest time.,SELECT minister FROM party ORDER BY left_office DESC LIMIT 1 Who was Alberta's skip when the shot pct was 88?,"SELECT skip FROM table_17012578_6 WHERE shot_pct = 88 AND province = ""Alberta""" "For each team, return the team name, id and the maximum salary among the team.","SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;" "What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn?",SELECT SUM(played) FROM table_name_27 WHERE first_game < 2000 AND lost < 21 AND drawn < 0 What is the Date of the game against Detroit in game 31 or after?,"SELECT date FROM table_name_59 WHERE game > 31 AND opponent = ""detroit""" how many are from same hometown | Santo Domingo is the only hometown where more than 1 person is from. There are 5 people from the hometown San Domingo. | what is the name of people ID 2,select Name from people where People_ID = 2 What's the nationality of Henry Carr having a time of 20.3y?,"SELECT nationality FROM table_name_82 WHERE athlete = ""henry carr"" AND time = ""20.3y""" What are the names of the top 3 customers who paid the highest amount of price per order after discount?,"SELECT `Customer Names` FROM ( SELECT T1.`Customer Names` , REPLACE(T2.`Unit Price`, ',', '') * T2.`Order Quantity` - REPLACE(T2.`Unit Price`, ',', '') * T2.`Discount Applied` AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) ORDER BY T DESC LIMIT 3" "Which Score in the final has a Surface of clay, and a Partner of martin emmrich?","SELECT score_in_the_final FROM table_name_62 WHERE surface = ""clay"" AND partner = ""martin emmrich""" Which order have the highest unit cost?,"SELECT OrderNumber FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 )" What event placed bronze earlier than 1987?,"SELECT event FROM table_name_16 WHERE placed = ""bronze"" AND year < 1987" "What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?","SELECT MIN(touchdowns) FROM table_name_66 WHERE points > 5 AND field_goals = 0 AND player = ""snow"" AND extra_points > 0" How many customers did not have any event?,SELECT count(*) FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_events ) "What are the chip model and screen mode of the phone with hardware model name ""LG-P760""?","SELECT chip_model, screen_mode FROM phone WHERE Hardware_Model_name = ""LG-P760""" How many regions are affected?,SELECT count(DISTINCT region_id) FROM affected_region "Goals that has a Position of 14th of 24, and a League of football conference has what sum?","SELECT SUM(goals) FROM table_name_63 WHERE position = ""14th of 24"" AND league = ""football conference""" What customer status code does Ryan Goodwin have?,"SELECT customer_status_code from Customers where first_name = ""Rylan"" AND last_name = ""Goodwin""" How much does the biology professor make?,"SELECT name, salary FROM instructor WHERE dept_name = ""Biology""" What is silver when gold is 1 and the rank is less than 3 for japan?,"SELECT silver FROM table_name_77 WHERE gold = 1 AND rank < 3 AND nation = ""japan""" Find the name and price of the product that has been ordered the greatest number of times.,"SELECT t1.product_name , t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1" What details are there on the research staff? List the result in ascending alphabetical order.,SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC "What is Score, when Date is 10 July 2011?","SELECT score FROM table_name_65 WHERE date = ""10 july 2011""" What are the budget type codes for those?,"SELECT T2.Budget_Type_Code FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Organisation""" Where was the 249cc Yamaha?,"SELECT place FROM table_name_3 WHERE machine = ""249cc yamaha""" What was Reid's rolex ranking in the year that her money list rank was 3?,"SELECT MAX(rolex_ranking) FROM table_29506171_2 WHERE money_list_rank = ""3""" Calculate the average rating of reviews for restaurants in Santa Cruz County.,SELECT AVG(T2.review) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.county = 'santa cruz county' What is the minimum weight of the car with 8 cylinders produced in 1974 ?,select min(weight) from cars_data where cylinders = 8 and year = 1974 List down the tagline of the Polski movies.,SELECT DISTINCT T1.tagline FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Polski' What is the partially deleted result for a deleted of m– in Valley?,"SELECT partially_deleted FROM table_name_95 WHERE deleted = ""–"" AND county = ""valley""" "What is the date of the game with 40,005 in attendance?","SELECT date FROM table_name_61 WHERE attendance = ""40,005""" Which country has the most neighbors? Give the full name of the country.,SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 GROUP BY T1.Name ORDER BY COUNT(T1.Name) DESC LIMIT 1 What are the names of all of the instructors who are advisors?,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id Show the name of aircrafts with top three lowest distances.,SELECT name FROM Aircraft ORDER BY distance LIMIT 3 "Among the courses that are basic or medium undergraduate courses, how many of them are taught by a faculty member?",SELECT COUNT(*) FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id INNER JOIN person AS T3 ON T2.p_id = T3.p_id WHERE T3.professor = 1 AND T1.courseLevel = 'Level_300' Where is the capital of country which has the largest percentage of Malay people?,SELECT T1.Capital FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Malay' ORDER BY T2.Percentage DESC LIMIT 1 whats the course description of french,"SELECT course_description FROM courses WHERE course_name = ""French""" "What is the total budget amount for school ""Glenn"" in all years?",SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' What is the average age of female (sex is F) students?,"SELECT AVG(Age) FROM STUDENT WHERE Sex = ""F""" What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2?,SELECT SUM(league_cup_apps) FROM table_name_63 WHERE fa_cup_goals > 0 AND fa_cup_apps < 2 How much does Jonathan Bender weigh?,"SELECT weight FROM table_name_2 WHERE player = ""jonathan bender""" What is the percentage ratio between uncredited and credited roles on the episode that won the 2017 Jupiter Award for Best International TV Series? Please include the title of the episode and the names of the persons who were uncredited alongside their role in that episode.,"SELECT CAST(SUM(CASE WHEN T2.credited = 'false' THEN 1 END) AS REAL) * 100 / SUM(CASE WHEN T2.credited = 'true' THEN 1 END), T3.title, T2.person FROM Award AS T1 INNER JOIN Credit AS T2 ON T2.episode_id = T1.episode_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2017' AND T1.award_category = 'Jupiter Award' AND T1.award = 'Best International TV Series' AND T1.result = 'Winner';" "How many sales associates are located in Sao Paulo, Brazil?",SELECT COUNT(CustomerID) FROM Customers WHERE City = 'Sao Paulo' AND Country = 'Brazil' AND ContactTitle = 'Sales Associate' Which team played in game 20?,SELECT team FROM table_13464416_5 WHERE game = 20 How many assists did the player who had 863 minutes have? ,SELECT MIN(assists) FROM table_24850487_5 WHERE minutes = 863 "How many votes of 5-star did the episode ""Lisa the Drama Queen"" receive?",SELECT SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lisa the Drama Queen' AND T2.stars = 5; How many site entries are there at 3:30pm and the visiting team is coastal carolina?,"SELECT COUNT(site) FROM table_28298589_2 WHERE time = ""3:30pm"" AND visiting_team = ""Coastal Carolina""" Please show each industry and the corresponding number of companies in that industry.,"SELECT Industry , COUNT(*) FROM Companies GROUP BY Industry" Which countries has the most number of airlines?,SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1 Show the names of members and the location of performances they attended in ascending alphabetical order of their names.,"SELECT T2.Name, T3.Location 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 ORDER BY T2.Name" What are the codes of countries where Spanish is spoken by the largest percentage of people?,"SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = ""Spanish"" GROUP BY CountryCode" How many hosts does party theme spring have?,"SELECT number_of_hosts from party where party_theme = ""Spring""" What was the amount of draws where a club had 51 tries for?,"SELECT drawn FROM table_name_19 WHERE tries_for = ""51""" "Among all movies in the list, calculate the percentage of movies that were never been rated?",SELECT CAST(SUM(CASE WHEN T2.movie_id IS NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.movie_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id "What was David Rubin's job in the movie ""Days of Thunder""?",SELECT T2.job FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'David Rubin' AND T1.title = 'Days of Thunder' How many silver medals were won with a total medal of 3 and a rank above 9?,SELECT AVG(silver) FROM table_name_49 WHERE total < 3 AND rank > 9 "What is Race 2, when Driver is John Faulkner?","SELECT race_2 FROM table_name_2 WHERE driver = ""john faulkner""" What's the weekly rank of episode 1.03?,"SELECT weekly_rank FROM table_28283535_4 WHERE episode = ""1.03""" What is the name of employees with three lowest salaries?,SELECT name FROM Employee ORDER BY salary ASC LIMIT 3 What company has a Colonial Voice card that expired in March 2005?,SELECT T2.BusinessEntityID FROM CreditCard AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID WHERE T1.CardType = 'ColonialVoice' AND T1.ExpMonth = 3 AND T1.ExpYear = 2005 How many people lived in the census division with an area of 15767.99 km2 in 1996?,"SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = ""15767.99""" What team had a high points of west (20)?,"SELECT team FROM table_name_65 WHERE high_points = ""west (20)""" Which music is jive?,"SELECT music FROM table_name_20 WHERE style = ""jive""" Please list the awards the players who died in Arlington have won.,SELECT T2.award FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T1.deathCity = 'Kemptville' When was the game ID 156 released?,SELECT T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id WHERE T2.game_id = 156 How many ships for the nation with grand total of 20?,SELECT s_motor_ship___s_naval_trawler FROM table_name_13 WHERE grand_total = 20 Where was Al Gore elected,"SELECT district FROM table_1341640_43 WHERE incumbent = ""Al Gore""" When did Meg Whitman get 60%?,"SELECT date_s__administered FROM table_name_38 WHERE meg_whitman = ""60%""" List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.,SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services' List all the information about course authors and tutors in alphabetical order of the personal name.,SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name How many publishers are in the USA?,SELECT COUNT(pub_id) FROM publishers WHERE country = 'USA' Which origin has least number of flights?,SELECT origin FROM Flight group by origin order by count ( * ) asc limit 1 Indicate the full name of the patients who have 3 different allergies.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT GROUP BY T1.patient ORDER BY COUNT(DISTINCT T2.DESCRIPTION) > 3" Who Eliminated Kane?,"SELECT eliminated_by FROM table_name_63 WHERE wrestler = ""kane""" Show the role code with the least employees.,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1 Which date has a Surface of carpet (i)?,"SELECT date FROM table_name_44 WHERE surface = ""carpet (i)""" In what round did Mike Newton Thomas Erdos Ben Collins won the LMP2?,"SELECT rnd FROM table_24865763_2 WHERE lmp2_winning_team = ""Mike Newton Thomas Erdos Ben Collins""" What is the zip code that has the lowest average mean sea level pressure?,SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1 Tell me the total number of grid for rider of james toseland,"SELECT COUNT(grid) FROM table_name_14 WHERE rider = ""james toseland""" Compute the average score of submissions.,SELECT avg(Scores) FROM submission What date did Hawthorn play as the away team?,"SELECT date FROM table_name_87 WHERE away_team = ""hawthorn""" What place is Jay Hebert?,"SELECT place FROM table_name_60 WHERE player = ""jay hebert""" Name the number opponent for loss result,"SELECT COUNT(opponent) FROM table_20928661_1 WHERE result = ""Loss""" "What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?",SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 OFFSET 000 Name the least touchdowns for joe rogers,"SELECT MIN(touchdowns) FROM table_25646820_2 WHERE player = ""Joe Rogers""" What is the highest number of top-25s for events with 0 wins?,SELECT MAX(top_25) FROM table_name_15 WHERE wins < 0 What is the other for 2012?,"SELECT other FROM table_name_54 WHERE year = ""2012""" What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?,"SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = ""United Nations (UNDP)"" AND ranking_la__2_ = ""2nd""" "What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?",SELECT MIN(preliminary) FROM table_name_50 WHERE swimsuit < 8.822 AND interview > 8.744 AND evening_gown > 9.333 Show me all branch names with the number of members in each branch registered after 2015,"SELECT T2.name , count ( * ) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id" What is the hometown of number 40?,SELECT hometown FROM table_name_44 WHERE number = 40 How many games did they play on february 5?,"SELECT opponent FROM table_23308178_8 WHERE date = ""February 5""" What is the title and journal homepage of the latest published paper?,"SELECT T1.Title, T2.HomePage FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id ORDER BY T1.Year DESC LIMIT 1" How many tourists were there total?,SELECT count ( * ) FROM Visitors What language is spoken after 2007 for the role of urvashi mathur?,"SELECT language FROM table_name_56 WHERE year > 2007 AND role = ""urvashi mathur""" What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?,"SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" How many gas companies are there?,SELECT COUNT(*) FROM company Find the number of left handed winners who participated in the WTA Championships.,SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L' What are all the production codes of episodes written by Michael G. Moye?,"SELECT production_code FROM table_2226817_8 WHERE written_by = ""Michael G. Moye""" "In the year 2000, what is the campus fee for San Francisco State University?","SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Francisco State University"" AND t1.year = 2000" Find the name of the source user with the highest average trust score.,SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1 Show station names without any trains.,SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station) What is the version number and template type code for the template with version number later than 5?,"SELECT version_number , template_type_code FROM Templates WHERE version_number > 5" What is the year that had the most concerts?,SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 Show different citizenships and the maximum net worth of singers of each citizenship.,"SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship" What is the discipline for the summer Olympics in 2008?,"SELECT discipline FROM table_name_68 WHERE tournament = ""summer olympics"" AND year = 2008" Which episode 4 has a Star of anna powierza?,"SELECT episode_4 FROM table_name_87 WHERE star = ""anna powierza""" What are the maximum and average height of the mountains?,"SELECT max(height) , avg(height) FROM mountain" What is the average inflation rate of the biggest continent?,SELECT AVG(T4.Inflation) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code WHERE T1.Name = ( SELECT Name FROM continent ORDER BY Area DESC LIMIT 1 ) What are the death and injury situations caused by the ship with tonnage 't'?,"SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'" Did the Bulls win or lose at Valley Parade?,"SELECT result FROM table_name_84 WHERE venue = ""valley parade""" Which Game has a Score of 3–4?,"SELECT MIN(game) FROM table_name_76 WHERE score = ""3–4""" "Which complaint is more urgent, complaint ID CR2400594 or ID CR2405641?",SELECT CASE WHEN SUM(CASE WHEN `Complaint ID` = 'CR2400594' THEN priority END) > SUM(CASE WHEN `Complaint ID` = 'CR2405641' THEN priority END) THEN 'CR2400594' ELSE 'CR2405641' END FROM callcenterlogs What is the model year of the truck used in shipment id 1003?,SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1003' What are the average enrollment size of the universities that are founded before 1850?,SELECT avg(enrollment) FROM university WHERE founded < 1850 What payment method was used for Needed Resource Materials For My Students?,SELECT T3.payment_method FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Needed Resource Materials For My Students' What is the average weight of all players?,SELECT avg ( weight ) FROM player "What are the highest number of games played that had game starts of 10, receptions of 6 and fumbles smaller than 3?",SELECT MAX(games_played) FROM table_name_9 WHERE receptions = 6 AND games_started = 10 AND fumbles < 3 "If the lees team is Clare Balding and Miranda Hart, what was the score?","SELECT scores FROM table_23575917_7 WHERE lees_team = ""Clare Balding and Miranda Hart""" "What transfer fee has both winter as the transfer window, and Madureira as the moving to?","SELECT transfer_fee FROM table_name_68 WHERE transfer_window = ""winter"" AND moving_to = ""madureira""" "In papers with journal IDs from 200 to 300 and with its short name starts with A, what is the percentage of papers with conference ID of 0?",SELECT CAST(SUM(CASE WHEN T1.ConferenceId = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.ConferenceId) FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.JournalId BETWEEN 200 AND 300 AND T2.ShortName LIKE 'A%' "Which country does Airline ""JetBlue Airways"" belong to?","SELECT Country FROM AIRLINES WHERE Airline = ""JetBlue Airways""" Which city has most number of departing flights?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1 How many orders made by Rochester Ltd?,SELECT SUM(CASE WHEN T1.`Customer Names` = 'Rochester Ltd' THEN 1 ELSE 0 END) FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID "What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?","SELECT SUM(births__000s_) FROM table_name_59 WHERE deaths > 7.6 AND year = ""1990-2009""" "Which Played has a Club of atlético ceuta, and less than 11 Losses?","SELECT MAX(played) FROM table_name_40 WHERE club = ""atlético ceuta"" AND losses < 11" How many entrants was yves giraud-cabantous?,"SELECT COUNT(entrant) FROM table_21977627_1 WHERE driver = ""Yves Giraud-Cabantous""" "What is the Week, when the Finalist is Carlos Moyá (5)?","SELECT week FROM table_name_66 WHERE finalist = ""carlos moyá (5)""" How many teachers in Twin Falls have Math & Science as their primary focus area?,SELECT COUNT(teacher_acctid) FROM projects WHERE school_county = 'Twin Falls' AND primary_focus_area = 'Math & Science' What is the average total donations received by Fresno County colleges?,SELECT SUM(T2.donation_optional_support + T2.donation_to_project) / COUNT(donationid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_county = 'Fresno' "What's the highest Played with a Scored of 15, and Draws that's less than 1?",SELECT MAX(played) FROM table_name_80 WHERE scored = 15 AND draws < 1 Which driver had a Part 1 time of 1:13.306?,"SELECT driver FROM table_name_56 WHERE part_1 = ""1:13.306""" What was the score for place 4?,"SELECT score FROM table_name_21 WHERE place = ""4""" From which cities are the customers who gave 5 stars in their reviews in November 2012?,SELECT DISTINCT T1.City FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.StarRating = 5 AND T2.ReviewDate BETWEEN '2012-11-01' AND '2012-11-30' find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.,"SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1" "Finally, what is the average budget, the maximum budget, and the minimum budget for all movies before 2000?","SELECT avg ( budget_million ) , max ( budget_million ) , min ( budget_million ) FROM movie WHERE YEAR < 2000" List the stars of episodes aired in November 2008.,"SELECT T2.stars FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 7) = '2008-11';" Who is the director of Last Window: The Secret of Cape West 3?,"SELECT director FROM table_name_93 WHERE title = ""last window: the secret of cape west 3""" Which address has the most memberships?,SELECT Address_road FROM branch ORDER BY membership_amount DESC LIMIT 1 Name the deceased spouse for length of marriage being 24 years,"SELECT deceased_spouse FROM table_24143253_1 WHERE length_of_marriage = ""24 years""" Can you show me how many rooms are there in total?,select count ( * ) from room "Among all the players that are right-shooted, how many of them weigh over 90 kg?",SELECT COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 AND T1.shoots = 'R' "When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?","SELECT home_team FROM table_name_89 WHERE date = ""15 july 1967"" AND away_team = ""fitzroy""" "which one is located in New York. | Do you mean York? | sorry, yes.","SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN ( SELECT Railway_ID FROM train ) AND LOCATION = ""York""" Who are the contenders In the New York 19 polling area race?,"SELECT candidates FROM table_1342256_32 WHERE district = ""New York 19""" When the county is Carroll what is the lowest population?,"SELECT MIN(population) FROM table_name_50 WHERE county = ""carroll""" What was the score that led to an 11-16 record?,"SELECT score FROM table_name_77 WHERE record = ""11-16""" What is the actual departure time of JetBlue Airways with the plane's tail number N903JB to Fort Lauderdale-Hollywood International Airport on the 20th of August 2018?,SELECT T1.DEP_TIME FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code INNER JOIN Airports AS T3 ON T1.DEST = T3.Code WHERE T1.FL_DATE = '2018/8/20' AND T1.TAIL_NUM = 'N903JB' AND T2.Description LIKE '%JetBlue Airways%' AND T3.Description LIKE '%Fort Lauderdale-Hollywood%' "If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?","SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = ""Resigned"" AND position_in_table = ""10th""" List the types and results of the inspections done on Riverwalk café.,"SELECT T2.inspection_type, T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.facility_type = 'RIVERWALK CAFE'" "What is Points, when Played is ""20"", and when Club is ""Caldicot RFC""?","SELECT points FROM table_name_64 WHERE played = ""20"" AND club = ""caldicot rfc""" Which countries have more than two members?,SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2 What is the age of the oldest of those students?,SELECT MAX ( Age ) FROM Student where Major = 600 Tell me the Ryuji Hijikata for Block A of Ryuji Hijikata,"SELECT ryuji_hijikata FROM table_name_72 WHERE block_a = ""ryuji hijikata""" "What are the major record formats of orchestras, sorted by their frequency?",SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC How many trains are there per station?,"SELECT t2.station_id, count ( * ) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id" What was the overall score when the score of set 3 was 29–27?,"SELECT score FROM table_name_63 WHERE set_3 = ""29–27""" Return the names of all counties sorted by population in ascending order.,SELECT County_name FROM county ORDER BY Population ASC Tell me the finalists for week # less than 2,SELECT finalists FROM table_name_40 WHERE week__number < 2 How many budgets are above 3000 in year 2001 or before?,SELECT COUNT(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001 What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.,"SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'" How many players did not get more than 10 steals between the years 2000 and 2005?,SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE season_id BETWEEN 2000 AND 2005 AND steals <= 10 "Which Series has a Site of ames on september 10, 2005?","SELECT series FROM table_name_90 WHERE site = ""ames"" AND date = ""september 10, 2005""" Which occurence has the matrix sim marked as 0.925?,"SELECT occurrence FROM table_26708105_2 WHERE matrix_sim = ""0.925""" "Between 1/1/2010 to 12/31/2020, how many users, who were a trialist when they created the list, gave the movie ""The Secret Life of Words"" a rating score of 3?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'The Secret Life of Words' AND T1.rating_score = 3 AND T1.user_trialist = 0 AND T1.rating_timestamp_utc BETWEEN '2010%' AND '2020%' On October 31 what team played at home?,"SELECT home FROM table_name_56 WHERE date = ""october 31""" What is the total kills of the perpetrators with height more than 1.84.,SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84; How many years have a time of 1:42.086?,"SELECT COUNT(year) FROM table_16308030_1 WHERE time = ""1:42.086""" "What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?","SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = ""melbourne indoor, australia"" AND score = ""2–6, 6–2, 6–2""" "What are the manager's first name, last name and id who won the most manager award?","SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;" What is the song in the volume with the maximum weeks on top?,SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 Name the coin that have higher than average percentage price changed from the previous 24 hours for transaction on 2013/6/22.,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2020-06-22' GROUP BY T1.name HAVING AVG(T2.percent_change_24h) > T2.PRICE I want to know the course names and the prerequisite ids.,"SELECT T1.title,T2.prereq_id FROM course as T1 join prereq as T2 where T1.course_id = T2.course_id" Which distinct car models are the produced after 1980?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980 Find the name of dorms that do not have amenity TV Lounge.,SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' How many positions did the car with a final time of +10.8098 finish in?,"SELECT COUNT(fin_pos) FROM table_17244483_1 WHERE time_retired = ""+10.8098""" When stacy schneider is the candidate what are the results?,"SELECT result FROM table_1859855_2 WHERE candidate = ""Stacy Schneider""" "In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won?","SELECT MIN(ends_won) FROM table_name_45 WHERE stolen_ends = 10 AND locale = ""italy"" AND blank_ends < 14" Who played against team 1 Vitória?,"SELECT team__number2 FROM table_17282875_2 WHERE team__number1 = ""Vitória""" What is the email address of login id zops?,"SELECT T3.email_address FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T3.login_name = ""zops""" Great! Can you tell me the name of the player who is the tallest left-footed player?,"SELECT player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON t1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = ""left"" order by height desc limit 1" What was the latest number in series that was directed by Skip Sudduth?,"SELECT MAX(no_in_series) FROM table_27491610_2 WHERE directed_by = ""Skip Sudduth""" what scores were Clemson's home games?,SELECT t2.All_Home FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' Find the name of the source user with the highest average trust score.,SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY AVG(trust) DESC LIMIT 1 what are all the ranks on the table,SELECT DISTINCT rank FROM FACULTY What's the number of male Hispanic students who graduated from Central Alabama Community College in 2011 within 100 percent of normal/expected time?,SELECT SUM(T2.grad_100) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T1.chronname = 'Central Alabama Community College' AND T2.year = 2011 AND T2.gender = 'M' AND T2.race = 'H' What is the location of id 3?,SELECT location FROM mill WHERE id = 3 Name the result for the bafta tv awards,"SELECT result FROM table_name_83 WHERE award = ""bafta tv awards""" What was the issue that the client with the longest server time faced?,SELECT T2.Issue FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.ser_time = ( SELECT MAX(ser_time) FROM callcenterlogs ) Tell me the away team score for 27 april 1974 and veue of mcg,"SELECT away_team AS score FROM table_name_51 WHERE date = ""27 april 1974"" AND venue = ""mcg""" Find the root beer with the most and least amount of profit per unit and list the container types in which these root beers are sold.,"SELECT * FROM ( SELECT T1.BrandName, T2.ContainerType FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID ORDER BY T1.CurrentRetailPrice - T1.WholesaleCost DESC LIMIT 1 ) UNION ALL SELECT * FROM ( SELECT T3.BrandName, T4.ContainerType FROM rootbeerbrand AS T3 INNER JOIN rootbeer AS T4 ON T3.BrandID = T4.BrandID ORDER BY T3.CurrentRetailPrice - T3.WholesaleCost ASC LIMIT 1 )" What is the lowest score of all games for match 2?,SELECT MIN(match2) FROM table_24538140_2 What is the Capacity of Ernst-Abbe-Sportfeld?,"SELECT capacity FROM table_name_25 WHERE stadium = ""ernst-abbe-sportfeld""" "What are the names of companies whose headquarters are not ""USA""?",SELECT name FROM Companies WHERE Headquarters != 'USA' Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.,SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200 "Among all the customers who have purchased ML Bottom Bracket, identify the percentage of sales by Albert I. Ringer?","SELECT CAST(SUM(IIF(T3.FirstName = 'Albert' AND T3.MiddleInitial = 'I' AND T3.LastName = 'Ringer', 1, 0)) AS REAL) * 100 / COUNT(T2.CustomerID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T1.Name = 'ML Bottom Bracket'" "What is Tournament, when Moves is ""37"", and when Result is ""½–½""?","SELECT tournament FROM table_name_50 WHERE moves = 37 AND result = ""½–½""" what is the average year when the title is baka to test to shōkanjū?,"SELECT AVG(year) FROM table_name_89 WHERE title = ""baka to test to shōkanjū""" Which EL places have a Rank 2013 of 15?,"SELECT MAX(el_places) FROM table_name_4 WHERE rank_2013 = ""15""" "Which episode number has the second highest positive viewer comments and has been awarded ""Best Television Episode""?",SELECT T2.episode_id FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Best Television Episode' AND T1.result = 'Winner' ORDER BY T2.rating DESC LIMIT 2 How many players enter hall of fame each year?,"SELECT yearid , count(*) FROM hall_of_fame GROUP BY yearid;" Which player is from Sweden?,"SELECT player FROM table_name_47 WHERE nationality = ""sweden""" Hi there! Can you provide me with a list of all of the names of people on this list?,SELECT name FROM Person What is the average price for flights from LA to Honolulu?,"SELECT avg(price) FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" What Date has a Home listed as Calgary?,"SELECT date FROM table_name_48 WHERE home = ""calgary""" What is the name and age of the pilot younger than 30 who has won the most number of times?,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1" "Among the routine inspections of Tiramisu Kitchen, how many of them have a score of over 70?",SELECT COUNT(T2.business_id) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Tiramisu Kitchen' AND T1.type = 'Routine - Unscheduled' AND T1.score > 70 When did the fastest roller coaster in Austria open?,"SELECT T2.opened FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = ""Austria"" order by T2.speed desc limit 1" What are the all games score and location of the school called Clemson?,"SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'" Which Airport has the largest number of international passengers?,SELECT Airport_Name FROM airport ORDER BY International_Passengers DESC LIMIT 1 What is the SFC when the specific impulse is 453?,SELECT sfc_in_g__kn·s_ FROM table_15944_5 WHERE specific_impulse__s_ = 453 "Great! Finally, can you update this list to also include The train ID and train number for each?","SELECT t3.name , t3.time,t3.train_number ,t2.train_id FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = ""Chiltern""" In which city's station is a bike borrowed on trip ID4069?,SELECT T2.city FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 4069 What is the league of the third baseman player before 1973?,"SELECT league FROM table_name_79 WHERE year < 1973 AND position = ""third baseman""" "How many instrument does the musician with last name ""Heilo"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" What are the names of the cameras that have taken picture of the most mountains?,SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 List all player names who have an overall rating higher than the average.,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > ( SELECT avg ( overall_rating ) FROM Player_Attributes ) In what laguage was Contotv 5?,"SELECT language FROM table_15887683_19 WHERE television_service = ""ContoTV 5""" How many total wins does Ballarat FL of East point have when the against is greater than 1000?,"SELECT COUNT(wins) FROM table_name_61 WHERE ballarat_fl = ""east point"" AND against > 1000" "What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals?",SELECT AVG(bronze) FROM table_name_86 WHERE gold > 0 AND silver < 0 How many years as tallest building was Independence Hall?,"SELECT years_as_tallest FROM table_name_6 WHERE name = ""independence hall""" List all the names of the books written by Danielle Steel.,SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Danielle Steel' How many female students have no payment due?,SELECT COUNT(name) FROM no_payment_due WHERE name NOT IN ( SELECT name FROM male ) What is the average earnings of poker players with height higher than 200?,SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200 Sum the total number of products rejected for having a trim length that is too long.,SELECT SUM(T2.ScrappedQty) FROM ScrapReason AS T1 INNER JOIN WorkOrder AS T2 ON T1.ScrapReasonID = T2.ScrapReasonID WHERE T1.Name = 'Trim length too long' What are the names of the cities along the Euphrat River's course? Indicate the capital city of the nation where the Euphrat River flows.,"SELECT T2.City, T1.Capital FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Euphrat'" "In the year 2000, which team has played the most games against the Buffalo Sabres?",SELECT T3.name FROM TeamVsTeam AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.oppID = T2.tmID INNER JOIN Teams AS T3 ON T1.year = T3.year AND T1.tmID = T3.tmID WHERE T1.year = 2000 AND T2.name = 'Buffalo Sabres' GROUP BY T3.name ORDER BY SUM(T2.G) DESC LIMIT 1 what is the the playing time of the mid player ?,"SELECT min ( T2.HS ) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID where ppos = 'mid' GROUP BY T1.pPos" Is 3751 the location ID for tweet with ID tw-682714048199311366?,SELECT LocationID FROM twitter WHERE TweetID = 'tw-682714048199311366' Show me the greatest weight of the body builder,SELECT T2.Weight FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 What was the score for the away team when geelong was the home team?,"SELECT away_team AS score FROM table_name_4 WHERE home_team = ""geelong""" Which product has the most problems? Give me the number of problems and the product name.,"SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1" How many cities are located in South Africa?,SELECT SUM(CASE WHEN T2.Country_Name = 'South Africa' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN Country AS T2 ON T2.Country_Id = T1.Country_id Name the customer who sent the shipment to Oak Park.,SELECT T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T1.city_id WHERE T3.city_name = 'Oak Park' "What stadium was the game held at on December 23, 2001?","SELECT stadium FROM table_name_2 WHERE date = ""december 23, 2001""" how much grant amount in organisation id 10,select count ( grant_id ) from Grants where organisation_id = 10 Who drives the abc supply sponsored cor?,"SELECT driver_s_ FROM table_2503102_2 WHERE primary_sponsor = ""ABC Supply""" What is the type of turbine having fewer than 17 units and located in County Laois?,"SELECT type FROM table_name_65 WHERE turbines < 17 AND location = ""county laois""" Who was the other team on march 27?,"SELECT team FROM table_27712702_11 WHERE date = ""March 27""" What is the NHL team for Round 5 and an overall ranking of #154?,"SELECT nhl_team FROM table_name_7 WHERE round = ""5"" AND overall = ""#154""" Great! Can you filter this list to show only the mission that involved ships from the United States?,"SELECT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = ""United States""" How long were Ray Bradbury and his wife married?,"SELECT length_of_marriage FROM table_24143253_4 WHERE name = ""Ray Bradbury""" What was the name of the Olympic game that John Aalberg took part in when he was 31?,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'John Aalberg' AND T2.age = 31 Return the code of the document type that is most common.,SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 Count the total number of available services.,SELECT count(*) FROM services List the names of non-US suppliers that have discontinued.,SELECT DISTINCT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.Discontinued = 1 AND T2.Country != 'USA' What are the names of the directors who made exactly one movie excluding director NULL?,"SELECT director FROM Movie WHERE director != ""null"" GROUP BY director HAVING count(*) = 1" WHAT IS THE LOWEST ROUND FOR CB POSITION?,"SELECT MIN(round) FROM table_name_56 WHERE position = ""cb""" What percentage of donations are given via a giving or campaign page? List the primary area of those donations.,"SELECT CAST(SUM(CASE WHEN T1.via_giving_page = 't' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(donation_total), ( SELECT T2.primary_focus_area FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.via_giving_page = 't' GROUP BY T2.primary_focus_area ORDER BY SUM(T1.donation_total) DESC LIMIT 1 ) result FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid" Which root beer got the most five stars in 2012? Give the brand name of this beer.,"SELECT T3.BrandName FROM rootbeer AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.StarRating = 5 AND strftime('%Y', T2.ReviewDate) = '2012' GROUP BY T1.BrandID ORDER BY COUNT(T2.BrandID) DESC LIMIT 1" Which is the smallest pick number that had a Reg GP of less than 0?,SELECT MIN(pick__number) FROM table_name_44 WHERE reg_gp < 0 Who is the customer from the East region that purchased the order with the highest profit?,SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'East' ORDER BY T1.Profit DESC LIMIT 1 "What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976?","SELECT bb_pop FROM table_name_93 WHERE cb_cw = ""1"" AND year > 1976 AND riaa = ""p""" Provide the district of the city with a population of 201843.,SELECT District FROM City WHERE population = 201843 Who is the recipient of the Primetime Emmy Award with the most votes?,SELECT T1.person FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.award_category = 'Primetime Emmy' ORDER BY T2.votes DESC LIMIT 1; "Im the match where the home team is Melbourne Victory, what was the crowd attendance?","SELECT COUNT(crowd) FROM table_name_97 WHERE home_team = ""melbourne victory""" Who was the finalist of the hard surface tournament in Miami?,"SELECT finalist FROM table_name_66 WHERE surface = ""hard"" AND tournament = ""miami""" What is the average of the white population in the cities with area code 920?,SELECT AVG(T2.white_population) FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 920 "How many clubs does ""Linda Smith"" have membership for?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Linda"" AND t3.lname = ""Smith""" Show the names for all females from Canada having a wedding in year 2016.,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' How many totals had more than 4 bronze?,SELECT SUM(total) FROM table_name_93 WHERE bronze > 4 Name the report for per-viktor widengren and alfa romeo,"SELECT report FROM table_name_48 WHERE winning_driver = ""per-viktor widengren"" AND winning_constructor = ""alfa romeo""" What date did Ben Gordon (8) have high assists?,"SELECT date FROM table_name_20 WHERE high_assists = ""ben gordon (8)""" What's the least enrolled when the mascot was the Trojans?,"SELECT MIN(enrollment) FROM table_name_8 WHERE mascot = ""trojans""" What is the twitter name of the legislator whose birthday was on 5/27/1946?,SELECT T2.twitter FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.birthday_bio = '1946-05-27' What was the result for james o'h. patterson when first elected in 1904?,"SELECT result FROM table_name_40 WHERE first_elected = ""1904"" AND incumbent = ""james o'h. patterson""" Give me the times of all trains that go to Chennai,SELECT TIME FROM train WHERE destination = 'Chennai' What are the names of all songs that have a lower rating than some song of blues genre?,"SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = ""blues"")" How many episodes were directed by Arlene Sanford?,"SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = ""Arlene Sanford""" "Show the industries shared by companies whose headquarters are ""USA"" and companies whose headquarters are ""China"".","SELECT Industry FROM Companies WHERE Headquarters = ""USA"" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = ""China""" How many points against did Carmarthen Athletic RFC have when they played 22 games ?,"SELECT points_against FROM table_name_32 WHERE played = ""22"" AND club = ""carmarthen athletic rfc""" What is the Japanese orthography for the English name National Farmers Academy?,"SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = ""National Farmers Academy""" How many athletes over the age of 59 competed in the 2016 Summer Olympics?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2016 Summer' AND T2.age > 59 What are the star rating descriptions of the hotels with price above 10000?,SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 What is detail of the student who most recently registered course?,SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1 What are the first names of the customers with the last name Mertz?,SELECT first_name FROM Staff where last_name = 'Mertz' What are their full names and the names of the food allergies they have?,"SELECT T3.Fname, T3.Lname,T2.Allergy FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy JOIN Student as T3 on T3.StuID = T1.StuID WHERE T2.allergytype = ""food"" and T3.sex = 'M'" What is the percentage of larceny cases among all cases that happened in Edgewater community?,SELECT CAST(SUM(CASE WHEN T3.title = 'Larceny' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.case_number) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.community_area_name = 'Edgewater' Against which team was game 21?,SELECT team FROM table_17001658_6 WHERE game = 21 For which countries are there more than four distinct addresses listed?,SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4 What is the manner of departure for the date of appointment 24 may 2010?,"SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = ""24 May 2010""" "The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to?","SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = ""Cheung, Raymond Man-to""" what country is Vijay Singh from?,SELECT Country FROM artist where Name = 'Vijay Singh' Which event had a score of over 673 points?,SELECT event FROM table_name_72 WHERE score > 673 What is the name of the storm with the lowest speed?,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id Order by Max_speed limit 1 What is the lowest number of blocks for players with height of 206 and more than 356 spikes?,SELECT MIN(block) FROM table_name_69 WHERE height = 206 AND spike > 356 "Which player, born in Winter Haven, played 12 minutes per season during the 1980s in the All-Stars?","SELECT DISTINCT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Winter Haven' AND T2.season_id BETWEEN 1980 AND 1989 AND T2.minutes = 12" What was the winning team when mikhail goikhberg was the winning driver?,"SELECT winning_team FROM table_25668203_2 WHERE winning_driver = ""Mikhail Goikhberg""" What are the resident details containing the substring 'Miss'?,SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%' Which show had a part 3 before 2011?,"SELECT show FROM table_name_45 WHERE year < 2011 AND episode_title = ""part 3""" What is the Date for the actual title archie bunker's place?,"SELECT date FROM table_name_42 WHERE actual_title = ""archie bunker's place""" What is the average rating star for each reviewer?,"SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name" What's the title for year n.m.?,"SELECT title FROM table_name_43 WHERE year = ""n.m.""" What is then engine when the notes state srt8?,"SELECT engine FROM table_name_91 WHERE notes = ""srt8""" in what year the position was the 9th,"SELECT season FROM table_29697744_1 WHERE position = ""9th""" What was the score when Bolton Wanderers were the away team?,"SELECT score FROM table_name_38 WHERE away_team = ""bolton wanderers""" what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos?,"SELECT location FROM table_name_48 WHERE designer = ""glen peloso"" AND restaurant_name = ""joe boo's cookoos""" Which transfer window was moving from borussia dortmund?,"SELECT transfer_window FROM table_name_38 WHERE moving_from = ""borussia dortmund""" "Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r?","SELECT 2012 FROM table_name_75 WHERE 2007 = ""1r"" AND 2008 = ""1r"" AND 2013 = ""2r""" Find the name of account that has the lowest total checking and saving balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1 Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?,SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500 "What is the povery rate of the county with market income per capita of $20,518?","SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = ""$20,518""" How many of these are sandwich restaurants?,SELECT count ( * ) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' Which Opponent was played on 1991-10-13?,"SELECT opponent FROM table_name_52 WHERE date = ""1991-10-13""" What is the date with Ellis as the decision and St. Louis as the visitor?,"SELECT date FROM table_name_27 WHERE decision = ""ellis"" AND visitor = ""st. louis""" What is the name of the venue where the game played had an away team of Melbourne?,"SELECT venue FROM table_name_5 WHERE away_team = ""melbourne""" Find the salary and manager number for those employees who is working under a manager.,"SELECT salary, manager_id FROM employees WHERE manager_id <> ""null""" "What is the Surface of the match with a Score of 2–6, 6–4, 7–6?","SELECT surface FROM table_name_30 WHERE score = ""2–6, 6–4, 7–6""" What country is Stephen Ames from with a place value of t9?,"SELECT country FROM table_name_20 WHERE place = ""t9"" AND player = ""stephen ames""" "Can you filter that list to show the document name and document structure code with the fewest document structure code entries, or in other words, the least popular structure?","SELECT document_name,document_structure_code FROM documents where document_structure_code = ( select min ( document_structure_code ) from documents ) " What was the result on 10/06/1934?,"SELECT result FROM table_name_80 WHERE date = ""10/06/1934""" Which country has a Col (m) of 1374?,SELECT country FROM table_name_33 WHERE col__m_ = 1374 Show names of teachers that teach at least two courses.,SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 Return complaint status codes have more than 3 corresponding complaints?,SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*) > 3 What was the title of the song that peaked the charts at #1 with track 20?,"SELECT song_title FROM table_name_78 WHERE chart_peak = ""#1"" AND track = 20" What is Bob's friend's name?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob' what is the location where the record is 1-0,"SELECT ahli FROM table_26173058_2 WHERE ramtha = ""1-0""" List movie titles with duration over 120 minutes that are in the action category.,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.`name` = 'action' AND T1.length > 120 What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?,"SELECT MIN(year) FROM table_name_90 WHERE award = ""drama desk award"" AND nominated_work = ""the mineola twins""" Which position has new Jersey Devils as the nhl team?,"SELECT position FROM table_2897457_3 WHERE nhl_team = ""New Jersey Devils""" Find the highest rank of losers in all matches.,SELECT min(loser_rank) FROM matches "Provide eateries' IDs, risk categories and descriptions with violation ID of 103101.","SELECT business_id, risk_category, description FROM violations WHERE violation_type_id = '103101'" And what about the lowest 3?,SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased ASC LIMIT 3 "Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?","SELECT matches FROM table_name_55 WHERE rank < 6 AND years = ""1943-62""" Name the most numbers dam and gnis query link for borough or census area for fairbanks north star,"SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_18760137_2 WHERE borough_or_census_area = ""Fairbanks North Star""" What is the previous team of the player with 4 NBA years and a pick less than 16?,"SELECT previous_team FROM table_name_12 WHERE nba_years_[a_] = ""4"" AND pick < 16" "Who did the argonauts play against during the game that had 19,423 fans in attendance?","SELECT opponent FROM table_name_45 WHERE attendance = ""19,423""" Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)?,"SELECT nationality FROM table_2886617_3 WHERE position = ""Left Wing"" AND college_junior_club_team = ""Portland Winterhawks (WHL)""" Show order ids and the total quantity in each order.,"SELECT order_id , sum(product_quantity) FROM Order_items GROUP BY order_id" "What are all the the participant ids, type code and details?","SELECT Participant_ID , Participant_Type_Code , Participant_Details FROM Participants" What are the first and last name for those employees who works either in department 70 or 90?,"SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90" What country has a series premier of unknown and mbc action as their TV network?,"SELECT country FROM table_name_27 WHERE series_premiere = ""unknown"" AND tv_network_s_ = ""mbc action""" Please indicate the opening day of businesses whose category is pets.,SELECT DISTINCT T4.day_of_week FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T1.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T2.category_name = 'Pets' How many rounds have goalie as the position?,"SELECT SUM(round) FROM table_name_26 WHERE position = ""goalie""" "How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?","SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = ""newtown & chilwell"" AND wins > 11" What languages are only used by a single country with a republic government?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = ""Republic"" GROUP BY T2.Language HAVING COUNT(*) = 1" How many accounts are in Bothell as opposed to Kenmore? What is the name of the State that comprises these two cities?,"SELECT SUM(IIF(T1.city = 'Bothell', 1, 0)) - SUM(IIF(T1.city = 'Kenmore', 1, 0)) , stateprovincecode FROM Address AS T1 INNER JOIN StateProvince AS T2 ON T1.stateprovinceid = T2.stateprovinceid GROUP BY stateprovincecode" "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.","SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC" "How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?","SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = ""1""" "In the match where newcastle jets was the away team, what was the crown attendance?","SELECT crowd FROM table_name_79 WHERE away_team = ""newcastle jets""" "Which Class Pos have Laps smaller than 304, and a Year after 2001?",SELECT class AS pos FROM table_name_79 WHERE laps < 304 AND year > 2001 Who is the Sales Agent for the company 'Eastern Connection'?,SELECT ContactName FROM Customers WHERE CompanyName = 'Eastern Connection' AND ContactTitle = 'Sales Agent' What place is the player from the United States with a to par of e?,"SELECT place FROM table_name_1 WHERE country = ""united states"" AND to_par = ""e""" What is the lowest round that Adam Wiesel was picked?,"SELECT MIN(round) FROM table_name_9 WHERE player = ""adam wiesel""" What municipality is the Harmon Cove station located in?,"SELECT municipality FROM table_name_58 WHERE station = ""harmon cove""" "WHAT WAS THE SCORE OF THE GAME WITH A 2007-03-06, 20:45 KICKOFF?","SELECT result FROM table_name_50 WHERE kick_off = ""2007-03-06, 20:45""" "That was very quick, thank you very much :) Then, could you please let me know the average duration (milliseconds) of Latin and Pop?","SELECT AVG ( Milliseconds ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Latin"" OR T1.Name = ""Pop""" What are the female names in weddings after 2014?,SELECT T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014 How many activities does Mark Giuliano participate in?,"SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" what is score of a team with tie of 4?,"SELECT score FROM table_name_38 WHERE tie_no = ""4""" Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.,SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' How many games are free of injury accidents?,SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident ) When was the incumbent from the south carolina 1 district first elected?,"SELECT first_elected FROM table_name_56 WHERE district = ""south carolina 1""" What is the phone number for the employee in charge of the Portsmouth territory?,SELECT T1.HomePhone FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Portsmouth' Show first name and id for all customers with at least 2 accounts.,"SELECT T2.customer_first_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2" Find the percentage of male students enlisted in the fire department.,SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM enlist AS T1 LEFT JOIN male AS T2 ON T1.name = T2.name WHERE T1.organ = 'fire_department' What is the total number of all football games played by scholarship students?,"SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = ""Football"" AND onscholarship = 'Y'" Which Date has a Score of 112–118?,"SELECT date FROM table_name_58 WHERE score = ""112–118""" What is the name of the category which most users belong to?,"SELECT T.category FROM ( SELECT T2.category, COUNT(T1.app_id) AS num FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T2.label_id = T1.label_id GROUP BY T1.app_id, T2.category ) AS T ORDER BY T.num DESC LIMIT 1" What is the away team of the UEFA champions league?,"SELECT away FROM table_name_67 WHERE competition = ""uefa champions league""" What are the different document types?,SELECT distinct Document_Type_Code FROM Documents What was the date of the game when the away team was south melbourne?,"SELECT date FROM table_name_77 WHERE away_team = ""south melbourne""" What was the score for the game against Atlanta?,"SELECT score FROM table_name_6 WHERE visitor = ""atlanta""" "List down the match ID of matches that the ""man of the match"" award was given to BB McCullum.",SELECT T1.Match_Id FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match WHERE T2.Player_Name = 'BB McCullum' "That's great, thank you. Then could you please let me know what is the sum of those two accounts?",SELECT T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > ( SELECT avg ( balance ) FROM savings ) Find the name of the activity that has the largest number of student participants.,SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1 What are the positions of players whose average number of points scored by that position is larger than 20?,SELECT POSITION FROM player GROUP BY name HAVING avg(Points) >= 20 Who is the employee that receives 82700 as their salary?,"SELECT first_name, last_name FROM employee WHERE salary = 82700" "Who is the latest contact individual? | the last name of the latest contact individual of the organization ""Labour Party"" is Bradtke | And what is the date of contact?","SELECT t2.date_contact_from, t2.date_contact_to FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = ""Labour Party"" ORDER BY t2.date_contact_to DESC LIMIT 1" which aiport is in the united kingdom and has iata of lcy?,"SELECT airport FROM table_name_58 WHERE country = ""united kingdom"" AND iata = ""lcy""" What is the party of Richard Simpson?,"SELECT party FROM table_name_59 WHERE name = ""richard simpson""" How much are the sales of the games in region ID 4?,SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.region_id = 4 What is the id of the order which has the most items?,SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1 Name the least world rank for south american rank 3,SELECT MIN(world_rank) FROM table_2249087_1 WHERE south_american_rank = 3 What is the round number for the venue of Stade de la Méditerranée?,"SELECT round FROM table_21311525_1 WHERE venue = ""Stade de la Méditerranée""" "What is Run 3, when Team is United States (USA) USA I?","SELECT run_3 FROM table_name_73 WHERE team = ""united states (usa) usa i""" "Which organisation hired the most number of research staff? List the organisation id, type and detail.","SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1" what is the maximum completed for delta bessborough,"SELECT MAX(completed) FROM table_13397394_1 WHERE building = ""Delta Bessborough""" Which type entered service in 1976/1997 and is located in Brazil?,"SELECT type FROM table_name_87 WHERE location = ""brazil"" AND entered_service = ""1976/1997""" What are the names of customers who live in Colorado state?,"SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = ""Colorado""" What was the model for PRR class of gf28a freight?,"SELECT builder’s_model FROM table_name_61 WHERE service = ""freight"" AND prr_class = ""gf28a""" What is the s7 4.0 tfsi quattro engine torque?,"SELECT torque FROM table_21154679_1 WHERE model = ""S7 4.0 TFSI quattro""" What religion has a para of 56.5%?,"SELECT religion FROM table_name_65 WHERE para = ""56.5%""" "Could you please tell me all the catalog publishers whose name contains ""Murray""?","SELECT distinct ( catalog_publisher ) FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" Name the least number,SELECT MIN(number) FROM table_22705586_1 List the business ID of shopping business that have 4 stars ratings.,SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Shopping' AND T1.stars = 4 "Thank you for that! Of all of the years, which year had the fewest players entering the hall of fame?",SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count ( * ) ASC LIMIT 1 What is the elevation for the peak wildspitze in Austria?,"SELECT MIN(elevation__m_) FROM table_2731431_1 WHERE location = ""Austria"" AND peak = ""Wildspitze""" State the employee who are born in or after 1970 and with the least sick leave hour.,"SELECT T2.FirstName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T1.BirthDate) > '1970' ORDER BY T1.SickLeaveHours LIMIT 1" "What is the lowest amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has?",SELECT MIN(wins) FROM table_name_8 WHERE pct > 0.526 AND rank < 37 AND losses = 947 "tries against is 88, played is 22, what is the lost?","SELECT lost FROM table_name_57 WHERE played = ""22"" AND tries_against = ""88""" Which word that has 71303 appearance in the Catalan language?,SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 71303 Which Lost has Games larger than 7?,SELECT AVG(lost) FROM table_name_54 WHERE games > 7 How many games has Prithipal Singh participated in?,SELECT COUNT(T2.games_id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T1.full_name = 'Prithipal Singh' Show the names of all films except those who cost more than 200 for replacement?,SELECT title FROM film EXCEPT SELECT title FROM film WHERE replacement_cost > 200 What is the release date of the CD by EG Records in the UK?,"SELECT SUM(release_date) FROM table_name_32 WHERE media = ""cd"" AND country = ""uk"" AND music_label = ""eg records""" "Year(s) won of 1994 , 1997 has what average total?","SELECT AVG(total) FROM table_name_6 WHERE year_s__won = ""1994 , 1997""" "Name the surface for january 8, 2001","SELECT surface FROM table_name_93 WHERE date = ""january 8, 2001""" Find the name and id of accounts whose checking balance is below the maximum checking balance.,"SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT max(balance) FROM checking)" How many countries have Socialistic Republic form of government?,SELECT COUNT(Code) FROM Country WHERE GovernmentForm = 'Socialistic Republic' who is the athlete with the time 6:02.46?,"SELECT athlete FROM table_name_83 WHERE time = ""6:02.46""" How many matches played are associated with 20 losses?,"SELECT played FROM table_name_38 WHERE lost = ""20""" "Rank larger than 5, and a Rider of paul shoesmith belongs to what team?","SELECT team FROM table_name_53 WHERE rank > 5 AND rider = ""paul shoesmith""" Which position is most popular among players in the tryout?,SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1 what is the outcome when the opponent in the final is william renshaw after year 1882?,"SELECT outcome FROM table_name_24 WHERE year > 1882 AND opponent_in_the_final = ""william renshaw""" What is the theme for Audition week?,"SELECT theme FROM table_26250176_1 WHERE week__number = ""Audition""" "Among the ""Mountain-500 Black"" product types, which type was purchased the most?","SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE 'Mountain-500 Black%' GROUP BY T2.Quantity, T1.Name ORDER BY SUM(T2.Quantity) DESC LIMIT 1" Which player is ranked number 3?,SELECT player FROM table_name_83 WHERE rank = 3 "Give the email address of the person who lives in ""1411 Lillydale Drive"".",SELECT T2.email FROM address AS T1 INNER JOIN staff AS T2 ON T1.address_id = T2.address_id WHERE T1.address = '1411 Lillydale Drive' What's the sum of gold where silver is more than 2 and the total is 12?,SELECT SUM(gold) FROM table_name_17 WHERE silver > 2 AND total = 12 City code of Jones Shiela? | Do you mean the city code of the student whose first name is Shiela and last name is Jones? | Yes,SELECT city_code from student where Fname = 'Shiela' and Lname = 'Jones' Show names of shops and the carriers of devices they have in stock.,"SELECT T3.Shop_Name , T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID" "If points against was 371, what is the drawn?","SELECT drawn FROM table_name_51 WHERE points_against = ""371""" "Which Opponent has a Attendance of 6,275?","SELECT opponent FROM table_name_82 WHERE attendance = ""6,275""" Who is the player who won in 1994?,"SELECT player FROM table_name_91 WHERE year_s__won = ""1994""" Please show me the type of grape available at Old Kraft Vineyard | The type of grape in the wine with a name of Old Kraft Vineyard is Zinfandel. | What are other wineries that also have Zinfandel?,"SELECT winery FROM wine WHERE Grape = ""Zinfandel""" Who had evening gown score of 9.82?,"SELECT country FROM table_11690135_1 WHERE evening_gown = ""9.82""" "Which ship mode has more ""deliver in person"" instructions, rail or mail?","SELECT IIF(SUM(IIF(l_shipmode = 'RAIL', 1, 0)) - SUM(IIF(l_shipmode = 'MAIL', 1, 0)), 'RAIL', 'MAIL') AS result FROM lineitem WHERE l_shipinstruct = 'DELIVER IN PERSON'" Which item was shipped on 3/4/2013 and scheduled for same day delivery in the South region?,SELECT T2.`Product Name` FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Date` = '2013-03-04' AND T2.Region = 'South' AND T1.`Order Date` = '2013-03-04' What California city has an active status and a greek designation of established colony?,"SELECT city FROM table_name_57 WHERE status = ""active"" AND us_state_district = ""california"" AND greek_designation = ""established colony""" Name the date for the venue of brunswick street oval,"SELECT date FROM table_name_59 WHERE venue = ""brunswick street oval""" What do the notes say for 1989 May 7?,"SELECT notes FROM table_name_32 WHERE date = ""1989 may 7""" What attributes are used to describe the wall on image no. 27.,SELECT T4.ATT_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID WHERE T2.OBJ_CLASS = 'wall' AND T1.IMG_ID = 27 GROUP BY T4.ATT_CLASS How many picks are there for defensive back for rounds larger than 11?,"SELECT COUNT(pick) FROM table_name_23 WHERE position = ""defensive back"" AND round > 11" "What is the highest Week, when Date is ""November 8, 1970""?","SELECT MAX(week) FROM table_name_66 WHERE date = ""november 8, 1970""" List the themes of parties in ascending order of number of hosts.,SELECT Party_Theme FROM party ORDER BY Number_of_hosts Who directed the episode whose production code is 2m5901?,"SELECT directed_by FROM table_27969432_4 WHERE production = ""2M5901""" List the professor ID who taught the course ID from 121 to 130 of basic undergraduate courses.,SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_300' AND T1.course_id > 121 AND T1.course_id < 130 What period was there a career average of 48.15?,"SELECT period FROM table_21100348_10 WHERE average = ""48.15""" What is the lowest number of bronze medals with less than 2 silver medals and more than 1 medal in total for Uzbekistan?,"SELECT MIN(bronze) FROM table_name_95 WHERE silver < 2 AND total > 1 AND nation = ""uzbekistan""" Describe the full title which had the character named Servant to Montague.,SELECT DISTINCT T1.LongTitle FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.Description = 'Servant to Montague' Find the total number of hours have done for all students in each department.,"SELECT SUM(stu_hrs), dept_code FROM student GROUP BY dept_code" Give the dates of creation for documents that have both budget type codes 'GV' and 'SF'.,SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF' List all customers’ names in the alphabetical order.,SELECT name FROM accounts ORDER BY name "Among the seafood products, which product have the highest total production of the production?",SELECT T1.ProductName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.CategoryName = 'Seafood' ORDER BY T1.UnitsInStock + T1.UnitsOnOrder DESC LIMIT 1 How frequently does the first-ever Scheduling Assistant get paid?,SELECT T2.PayFrequency FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle = 'Scheduling Assistant' ORDER BY T1.HireDate LIMIT 1 Hello! Can you provide me with a list of all train names for trains that are associated with the local authority of Chiltern?,"SELECT distinct t3.name FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = ""Chiltern""" What is the last name of the musician that have produced the most number of songs?,SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 What are the titles of courses without prerequisites?,SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) Who won the bronze medal in Hiroshima?,"SELECT bronze FROM table_name_90 WHERE location = ""hiroshima""" Find names of all students who took some course and the course description.,"SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code" Which Country has a Score of 79-68-74=212?,SELECT country FROM table_name_49 WHERE score = 79 - 68 - 74 = 212 What is the highest numbered episode with patient portrayer doug savant?,"SELECT MAX(_number) FROM table_26561506_1 WHERE patient_portrayer = ""Doug Savant""" What are the rooms for members of the faculty who are professors and who live in building NEB?,"SELECT Room FROM FACULTY WHERE Rank = ""Professor"" AND Building = ""NEB""" What was the score from the game where Dallas played Home and Edmonton was visiting?,"SELECT score FROM table_name_41 WHERE home = ""dallas"" AND visitor = ""edmonton""" What is the Circuit in the ATCC Round 1 Series with Winner Jim Richards?,"SELECT circuit FROM table_name_34 WHERE winner = ""jim richards"" AND series = ""atcc round 1""" What's the url of user 39115684's rating on the movie 'When Will I Be Loved'?,SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684 Which Office has a Representative of scott pelath?,"SELECT office FROM table_name_81 WHERE representative = ""scott pelath""" Write the full names of junior ranked Republicans.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Republican' AND T2.state_rank = 'junior' GROUP BY T1.official_full_name "Which tests have ""Pass"" results? Return the dates when the tests were taken.","SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result = ""Pass""" Find names of all students who took some course and got A or C.,"SELECT T1.stu_fname, T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'" Name the average events for miller barber,"SELECT AVG(events) FROM table_name_27 WHERE player = ""miller barber""" Show the apartment numbers in the buildings managed by Kyle.,"SELECT T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = ""Kyle""" "How many ratings of 5 have been given to the podcast ""Please Excuse My Dead Aunt Sally""?",SELECT COUNT(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Please Excuse My Dead Aunt Sally' AND T2.rating = 5 Please provide a disability breakdown for each school.,SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name GROUP BY T1.school What is the name of the employee who has the most number of aircraft certificates?,SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count ( * ) DESC LIMIT 1 "Please show the names of aircrafts associated with airport with name ""London Gatwick"".","SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" Please list the e-mail addresses of all the employees who wish to receive e-mail promotions from Adventureworks and selected partners.,SELECT T2.EmailAddress FROM Person AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.EmailPromotion = 2 What is the 2011 value with a 134 in 2008?,"SELECT 2011 FROM table_name_31 WHERE 2008 = ""134""" what items have higher rating than 7?,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 7 Where was held the ceremony for the 12th Pride of Britain Awards?,"SELECT location FROM table_13943239_1 WHERE episode = ""12th Pride of Britain Awards""" What was the score when Sheffield United was the home team?,"SELECT score FROM table_name_37 WHERE home_team = ""sheffield united""" Find number of products which Sony does not make.,SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony') when deland is the fcsl team and 2008 is the year played who is the mlb team?,"SELECT mlb_team FROM table_18373863_2 WHERE years_played = ""2008"" AND fcsl_team = ""DeLand""" how many people won in 1914,SELECT COUNT(district) FROM table_1342359_17 WHERE first_elected = 1914 Who had the highest assists during the game on February 22?,"SELECT high_assists FROM table_name_28 WHERE date = ""february 22""" "What is the attandance figure on October 7, 1990?","SELECT attendance FROM table_name_23 WHERE date = ""october 7, 1990""" Who is the Home Team for Match No. 23?,"SELECT home_team FROM table_name_42 WHERE match_no = ""23""" what's the party for the first elected in 1980,"SELECT party FROM table_1341472_15 WHERE first_elected = ""1980""" Name products and their quantity ordered by the company 'GROSELLA-Restaurante' in the sales order that was processed by Nancy Davolio.,"SELECT T4.ProductName, T3.Quantity FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID INNER JOIN Customers AS T5 ON T2.CustomerID = T5.CustomerID WHERE T1.FirstName = 'Nancy' AND T1.LastName = 'Davolio' AND T5.CompanyName = 'GROSELLA-Restaurante'" Tell me the Location and Country of the Round 1 ?,"SELECT location , country FROM match WHERE round = ""1.0""" "Find the titles and studios of the films that are produced by some film studios that contained the word ""Universal"".","SELECT title , Studio FROM film WHERE Studio LIKE ""%Universal%""" Which driver won the Indianapolis 500 the year the Chaparral team also won it?,"SELECT winning_driver FROM table_name_67 WHERE winning_team = ""chaparral"" AND name = ""indianapolis 500""" What was the smallest total number of medals?,SELECT MIN(total_medals) FROM table_1305623_20 What country have its data estimated based on regression?,SELECT DISTINCT T1.ShortName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Estimates are based on regression.' How many students are enrolled in French?,select count ( * ) from Student_Course_Enrolment AS T1 JOIN Courses AS T2 ON T2.course_id = T1.course_id WHERE course_name = 'French' what's the earliest year that the wimbledon opponent was zheng jie?,"SELECT MIN(year) FROM table_name_50 WHERE event = ""wimbledon"" AND opponent = ""zheng jie""" How many times was product id 13 ordered?,"SELECT count ( * ) FROM order_items GROUP BY product_id having product_id = ""13""" How many states have a college with more students than average?,SELECT count(DISTINCT state) FROM college WHERE enr > (SELECT avg(enr) FROM college) "What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?",SELECT MAX(drawn) FROM table_name_86 WHERE diff < 186 AND points < 12 AND played < 6 Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.,"SELECT T1.fname , T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" How many different actors have played a role in the highest rating movie?,SELECT COUNT(DISTINCT T2.actorid) FROM u2base AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.rating = 5 Which product ID do not have any work order ID?,SELECT ProductID FROM Product WHERE ProductID NOT IN ( SELECT T1.ProductID FROM Product AS T1 INNER JOIN WorkOrder AS T2 ON T1.ProductID = T2.ProductID ) What is the nationality of lane 4?,SELECT nationality FROM table_name_78 WHERE lane = 4 Who was the vacator for the district of Nebraska at-large?,"SELECT vacator FROM table_2417390_4 WHERE district = ""Nebraska At-large""" "If puma is 12, what is camper?","SELECT MIN(camper) FROM table_26894949_2 WHERE puma = ""12""" Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 How many employees do we have?,SELECT count(*) FROM Employees; How many Minipumps have been sold?,SELECT COUNT(OrderQty) FROM SalesOrderDetail WHERE ProductID IN ( SELECT ProductID FROM Product WHERE Name = 'Minipump' ) During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?,"SELECT years FROM table_name_64 WHERE engine_code = ""m47d20"" AND model = ""318td (diesel)""" what is the name of swimmer with id 5?,SELECT name FROM swimmer where id = 5 Can you find the bridge name Xian Ren Qiao?,"SELECT * from bridge where name = ""Xian Ren Qiao ( Fairy Bridge ) """ List the final tables made and the best finishes of poker players.,"SELECT Final_Table_Made, Best_Finish FROM poker_player" What is the total of Golds with more bronzes than 1 and totaled larger than 4?,SELECT COUNT(gold) FROM table_name_64 WHERE bronze > 1 AND total > 4 Who is the opposing team when the game was played on the Shea Stadium?,"SELECT opponent FROM table_17386066_2 WHERE stadium = ""Shea stadium""" Who is the driver for the Forsythe Racing team that has the best time of 1:00.099?,"SELECT name FROM table_name_42 WHERE team = ""forsythe racing"" AND best = ""1:00.099""" When someone was first elected in 1898 what was the result?,"SELECT result FROM table_name_53 WHERE first_elected = ""1898""" How many percent more of the watchers for the repository of solution No.83855 than No.1502?,SELECT CAST(SUM(CASE WHEN T2.Id = 83855 THEN T1.Watchers ELSE 0 END) - SUM(CASE WHEN T2.Id = 1502 THEN T1.Watchers ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 1502 THEN T1.Watchers ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId which musical ids showed up at least three times in the actor table?,SELECT T2.musical_id FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT ( * ) > = 3 How many appelations are in Napa Country?,"SELECT count(*) FROM APPELLATIONS WHERE County = ""Napa""" "What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?","SELECT years FROM table_name_45 WHERE soap_opera = ""un posto al sole"" AND actor = ""riccardo polizzy carbonelli""" What is the sum of carries associated with 80 points and fewer than 16 touchdowns?,SELECT SUM(carries) FROM table_name_98 WHERE points = 80 AND touchdowns < 16 What's the average wins of those games with 3 podiums?,SELECT AVG(wins) FROM table_name_42 WHERE podiums = 3 Which employee has created the least order and please indicates the employee's title?,SELECT T1.Title FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.Title ORDER BY COUNT(T2.OrderID) LIMIT 1 What was the most popular position at tryouts?,SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1 When are end dates (last night) for the season of 1918?,"SELECT end_date__last_night_ FROM table_159359_2 WHERE season = ""1918""" what's the result with district being washington 7,"SELECT result FROM table_1341472_49 WHERE district = ""Washington 7""" What is the title of the episode directed by Charles Beeson?,"SELECT title FROM table_24649082_1 WHERE directed_by = ""Charles Beeson""" Did license number 1222441 pass the inspection and what is the zip code number of it?,"SELECT DISTINCT T2.results, T1.zip FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.license_no = 1222441" What is the model of the enginge d5252 t?,"SELECT model_name FROM table_1147701_5 WHERE engine_code = ""D5252 T""" Please list staff names of staff assigned to at least 1 problem | First or last name? | both,"SELECT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" What is the Cavaliers Record in the game with a Score of 98-99?,"SELECT record FROM table_name_59 WHERE score = ""98-99""" What was its description?,"SELECT T1.fault_log_entry_id , T1.fault_description FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) asc LIMIT 1" "exactly | I mean which one do you want to know, first name or last name or both? | i want first name",SELECT FName FROM Student ORDER BY Advisor DESC LIMIT 1 "Which product have they complained about? | Who do you mean by ""they""? | Customer, 113.","SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id having t3.customer_id = ""113""" "Please list the IDs of the users who answered ""Yes"" to the question ""Do you think that discussing a physical health issue with your employer would have negative consequences?"" in 2014's survey.",SELECT T2.UserID FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'Do you think that discussing a physical health issue with your employer would have negative consequences?' AND T2.AnswerText LIKE 'Yes' AND T2.SurveyID = 2014 What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?,"SELECT date_of_inauguration FROM table_name_71 WHERE ""lifespan"" = ""lifespan""" Which venue had a lost 5-4 result?,"SELECT venue FROM table_name_15 WHERE result = ""lost 5-4""" When was the result l 14–24?,"SELECT date FROM table_name_71 WHERE result = ""l 14–24""" Please provide the attribute values ​​of the bussinesses with fashion in Scottsdale.,SELECT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T1.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T4.category_name LIKE 'Fashion' AND T1.city LIKE 'Scottsdale' What was the score when the total was 75–53?,"SELECT score FROM table_name_89 WHERE total = ""75–53""" What was the maximum 09-10 i/o best?,SELECT MAX(09 AS _10_i_o_best) FROM table_24990183_4 How many domestic violence cases were reported in May 2018?,SELECT COUNT(*) FROM Crime WHERE date LIKE '5/%/2018%' AND domestic = 'TRUE' What was the average crowd attendance for the Junction Oval venue?,"SELECT AVG(crowd) FROM table_name_36 WHERE venue = ""junction oval""" Which country produced the car with the lowest price?,SELECT T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.price ASC LIMIT 1 What year was Jamboree made?,"SELECT year FROM table_name_26 WHERE movie_title = ""jamboree""" What are the average points White made with 0 extra points?,"SELECT AVG(points) FROM table_name_14 WHERE extra_points = 0 AND player = ""white""" What is the document type name and the document type description and creation date for all the documents?,"SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code" How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?,"SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"";" List all the organisations that where its name contains 'United Nation'. State its full name and its headquarter city.,"SELECT Name, City FROM organization WHERE Name LIKE '%United Nation%'" List the ship ID of shipments shipped to the most populated city.,SELECT T1.ship_id FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.population DESC LIMIT 1 "Which visitor has detroit as the home, and february 24 as the date?","SELECT visitor FROM table_name_76 WHERE home = ""detroit"" AND date = ""february 24""" What is the genre name of the film HUNGER ROOF?,SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' What team is in the city of Rock Island?,"SELECT team_name FROM table_27961684_1 WHERE city = ""Rock Island""" What are the school colors for the college whose main campus is overland park?,"SELECT school_colors FROM table_name_66 WHERE main_campus_location = ""overland park""" Which modern house title translates to prison?,"SELECT modern_title_of_house FROM table_name_46 WHERE translation = ""prison""" "What counties have more police officers than that? | do you want to return their names? | Yes, please.",SELECT Name FROM county_public_safety where Police_officers > ( SELECT Police_officers FROM county_public_safety ORDER BY Population DESC LIMIT 1 ) Find courses that ran in Fall 2009 but not in Spring 2010.,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 How many players have more than 1000 hours of training?,SELECT count(*) FROM Player WHERE HS > 1000 How many templates have template type code CV?,"SELECT count(*) FROM Templates WHERE template_type_code = ""CV""" Show all account ids and account details.,"SELECT account_id , account_details FROM Accounts" "What is the percentage of the actors that showed up in the credit list of movie ""Dawn of the Planet of the Apes"" that were born after ""1970/1/1""?",SELECT CAST(SUM(CASE WHEN T3.`Date of Birth` > '1970-01-01' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.`Date of Birth`) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Dawn of the Planet of the Apes' Give me the name of the customer who ordered the most items in total.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1 Please list the nicknames of the players who have won the All-Rookie award and are born in March.,SELECT DISTINCT T1.nameNick FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'All-Rookie' AND T1.birthMon = 3 what is the earliest year when the author is reki kawahara?,"SELECT MIN(year) FROM table_name_42 WHERE author = ""reki kawahara""" Which summer Olympic have the highest and lowest number of participants?,"SELECT ( SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' GROUP BY T1.games_year ORDER BY COUNT(T2.person_id) DESC LIMIT 1 ) AS HIGHEST , ( SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' GROUP BY T1.games_year ORDER BY COUNT(T2.person_id) LIMIT 1 ) AS LOWEST" Return the address and email of the customer with the first name Linda.,"SELECT T2.address , T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'" When did 6.09 million people in the US see the original airing of an episode of the show?,"SELECT original_air_date FROM table_23242933_2 WHERE us_viewers__millions_ = ""6.09""" Ok. Can you show all the information for London Heathrow airport?,"SELECT * from airport where airport_name = ""London Heathrow""" What place was the viewed horse?,"SELECT placing FROM table_name_13 WHERE horse = ""viewed""" Name the entrant for year of 1952,SELECT entrant FROM table_name_39 WHERE year = 1952 What is the most popular industry?,SELECT Industry FROM company GROUP BY Industry ORDER BY COUNT ( * ) DESC LIMIT 1 Find the claim that has the largest total settlement amount. Return the effective date of the claim.,SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 Where did Geelong play as the away team?,"SELECT venue FROM table_name_75 WHERE away_team = ""geelong""" "What is the lowest Attendance, when Date is ""February 4"", and when Points is less than 57?","SELECT MIN(attendance) FROM table_name_72 WHERE date = ""february 4"" AND points < 57" "how many times is the fa cup apps more than 0, the position mf and the league goals 4?","SELECT COUNT(total_goals) FROM table_name_52 WHERE fa_cup_apps > 0 AND position = ""mf"" AND league_goals = 4" "Who is the visitor from the game with 7,000 in attendance on January 1?","SELECT visitor FROM table_name_77 WHERE attendance = ""7,000"" AND date = ""january 1""" What years did the player with the jersey number bigger than 20 play?,SELECT years FROM table_name_5 WHERE jersey_number_s_ > 20 Which engineers have never visited to maintain the assets? List the engineer first name and last name.,"SELECT first_name , last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)" Who is the player with a 77-68=145 score?,SELECT player FROM table_name_56 WHERE score = 77 - 68 = 145 "Who was David Adams partner on the match played on Clay Surface with a Score in the final of 6–3, 6–7 (5–7) , 7–6 (7–5)?","SELECT partner FROM table_name_53 WHERE surface = ""clay"" AND score_in_the_final = ""6–3, 6–7 (5–7) , 7–6 (7–5)""" How many silver medals for the nation with fewer than 1 golds and total less than 1?,SELECT COUNT(silver) FROM table_name_57 WHERE gold < 1 AND total < 1 What is the description of the airline code 19049?,SELECT Description FROM `Air Carriers` WHERE Code = 19049 What is the total number of people who could stay in the modern rooms in this inn?,SELECT SUM(maxOccupancy) FROM Rooms WHERE decor = 'modern' How many main stream browsers whose market share is at least 5 exist?,SELECT COUNT(*) FROM browser WHERE market_share >= 5 How many entrepreneurs correspond to each investor?,"SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor" What is the name of building with ID 3?,"SELECT name FROM buildings where id = ""3""" "What are the names of the scientists, and how many projects are each of them working on?","SELECT count(*) , T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name" "Among the widowed female customers, give the income of those who has an level of education of 5 and below.",SELECT INCOME_K FROM Demog WHERE GEOID IN ( SELECT GEOID FROM Customers WHERE EDUCATIONNUM < 5 AND SEX = 'Female' AND MARITAL_STATUS = 'Widowed' ) Hello! Can you provide me with the time spent in all restaurants by Linda Smith?,"SELECT sum ( Spent ) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith""" Who is the player that plays position c on the New York Knicks?,"SELECT player FROM table_name_54 WHERE team = ""new york knicks"" AND position = ""c""" "In years 2011 to 2013, what is the total number of female students in university ID 40?",SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year BETWEEN 2011 AND 2013 AND university_id = 40 Which episode has the most vote for 10 stars rating?,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 10 ORDER BY T1.votes DESC LIMIT 1; Find the total number of students living in the male dorm (with gender M).,SELECT 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 T3.gender = 'M' Who sang for the movie Amar Deep?,"SELECT singer FROM table_2528382_5 WHERE movie_album = ""Amar Deep""" What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005?,"SELECT AVG(ansi_code) FROM table_name_39 WHERE township = ""sherman"" AND water__sqmi_ < 0.005" Who was the winner of the race at Belmont?,"SELECT winner_2nd FROM table_1358608_4 WHERE venue = ""Belmont""" "What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season?","SELECT SUM(no_in_series) FROM table_name_5 WHERE written_by = ""sam meikle"" AND no_in_season = 21" """ what's the engine with turbo being yes (mitsubishi td04-15g ) ""","SELECT engine FROM table_11167610_1 WHERE turbo = ""Yes (Mitsubishi TD04-15g )""" how about those whose GPA is greater than 3?,SELECT * FROM student WHERE stu_gpa > 3 "What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?","SELECT position FROM table_name_59 WHERE date_of_birth__age_ = ""example"" AND player = ""mark spencer""" "Which Baltimore group has a viron shape of icosahedral, replicates in the cytoplasm, is non-enveloped, and is from the astroviridae family?","SELECT baltimore_group FROM table_name_13 WHERE virion_shape = ""icosahedral"" AND envelopment = ""non-enveloped"" AND replication_site = ""cytoplasm"" AND family = ""astroviridae""" Which were the trips that started at Mountain View City Hall and ended on a rainy day?,SELECT T1.id FROM trip AS T1 INNER JOIN weather AS T2 WHERE T2.events = 'Rain' AND T1.start_station_name = 'Mountain View City Hall' Show the ids of the faculty who don't participate in any activity.,SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in How many baseball players attended that college in 2018?,"Select count ( player_id ) from player_college where year = ""2018"" and college_id = ""texas""" What is other when no party preference is 19.1%?,"SELECT other FROM table_27003186_3 WHERE no_party_preference = ""19.1%""" List all the navy students who are disabled.,SELECT T1.name FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'navy' What Venue has Basketball as a Sport?,"SELECT venue FROM table_name_92 WHERE sport = ""basketball""" "For the biwords pair that appears ""116430"" times, what is the second word of the pair?",SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430 What is the percentage of 5 star ratings River City brand root beer get?,SELECT CAST(COUNT(CASE WHEN T2.StarRating = 5 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.StarRating) FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BrandName = 'River City' What are their first names?,select first_name from employees where first_name LIKE '%z%' What are the heights of body builders with total score smaller than 315?,SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315 "List down the names of person born in California, USA.",SELECT name FROM Person WHERE birth_region = 'California' AND birth_country = 'USA'; What scores happened on February 11?,"SELECT score FROM table_23486853_7 WHERE date = ""February 11""" what is the average age for all people,SELECT avg ( age ) FROM people "What years have a duration of 18 years, and patrizio rispo as the actor?","SELECT years FROM table_name_26 WHERE duration = ""18 years"" AND actor = ""patrizio rispo""" "In heat 4, what is Byun Hye-young's Nationality?","SELECT nationality FROM table_name_62 WHERE heat = 4 AND name = ""byun hye-young""" Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?,"SELECT T1.name , T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'" Show all book categories and the number of books in each category.,"SELECT category , count(*) FROM book_club GROUP BY category" "Which Points have a Game larger than 25, and an Opponent of dallas stars?","SELECT AVG(points) FROM table_name_75 WHERE game > 25 AND opponent = ""dallas stars""" What is the date in location from of document id 81?,SELECT Date_in_Location_From FROM Document_locations WHERE Document_ID = '81' What was the crowd when the VFL played MCG?,"SELECT MIN(crowd) FROM table_name_49 WHERE venue = ""mcg""" What's the lap number for time/retired of +33.912?,"SELECT COUNT(laps) FROM table_name_71 WHERE time_retired = ""+33.912""" What is the high run total associated with a high score of 385 and under 407 innings?,"SELECT MAX(runs) FROM table_name_96 WHERE high_score = ""385"" AND innings < 407" Show the name and opening year for three churches that opened most recently.,"SELECT name , open_date FROM church ORDER BY open_date DESC LIMIT 3" "What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?","SELECT pregame_host FROM table_name_67 WHERE play_by_play = ""jp dellacamera"" AND year < 2009 AND color_commentator_s_ = ""ty keough""" How many employees are there?,SELECT COUNT ( * ) FROM Employees "How many calories on average does a recipe that comes from ""Produce for Better Health Foundation and 5 a Day"" contain?",SELECT AVG(T2.calories) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'Produce for Better Health Foundation and 5 a Day' Can you please tell me how many users there are?,SELECT count ( * ) FROM user_profiles How many All Star players who played in the 1973 season were black?,SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1973 AND T1.race = 'B' Count the number of artists who have had volumes.,SELECT COUNT(DISTINCT Artist_ID) FROM volume Name the attendance on april 17,"SELECT attendance FROM table_name_15 WHERE date = ""april 17""" Which To par is scored at 70?,SELECT to_par FROM table_name_10 WHERE score = 70 Show the title and director for all films.,"SELECT title , directed_by FROM film" What year was the match were xavier malisse was the runner-up against lleyton hewitt?,"SELECT year FROM table_name_3 WHERE outcome = ""runner-up"" AND opponent = ""lleyton hewitt""" Show the names of climbers and the heights of mountains they climb.,"SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" Which school is the top enrollment?,SELECT school_name FROM school order by Enrollment desc limit 1 How many production companies made more than 150 movies?,SELECT COUNT(*) FROM ( SELECT T1.company_name AS CNAME FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(T1.company_name) > 150 ) What is the number of total offense when the opponentis Penn State?,"SELECT MAX(total_offense) FROM table_28697228_4 WHERE opponent = ""Penn State""" "what is the venue when the runner-up is £20,000, the champion (average in final) is phil taylor (109.35)?","SELECT venue FROM table_name_86 WHERE runner_up = ""£20,000"" AND champion__average_in_final_ = ""phil taylor (109.35)""" Which team is ranked #10?,SELECT team FROM table_name_74 WHERE rank = 10 "Name the least game for arco arena 13,330","SELECT MIN(game) FROM table_17102076_10 WHERE location_attendance = ""ARCO Arena 13,330""" "What is Notes, when App(L/C/E) is 13 (7/2/4)?","SELECT notes FROM table_name_89 WHERE app_l_c_e_ = ""13 (7/2/4)""" What player has a round larger than 6 with a D position.,"SELECT player FROM table_name_82 WHERE round > 6 AND position = ""d""" Which Opponent has a Surface of hard on 28 august 1993?,"SELECT opponent FROM table_name_46 WHERE surface = ""hard"" AND date = ""28 august 1993""" "Name the high points for pepsi center 19,155","SELECT high_points FROM table_23285761_8 WHERE location_attendance = ""Pepsi Center 19,155""" "What is the ratio between the 5 stars votes for 'No Loan Again, Naturally' episode and 'Coming to Homerica' episode?","SELECT CAST(SUM(CASE WHEN T1.title = 'No Loan Again, Naturally' THEN T1.votes ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.title = 'Coming to Homerica' THEN T1.votes ELSE 0 END) AS ratio FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 5;" What is the position of Allen Gamboa?,"SELECT position FROM table_name_50 WHERE name = ""allen gamboa""" Find the number of items that did not receive any review.,SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review) "In the game with an attendance of 18304, what was the final score?",SELECT result FROM table_17294353_1 WHERE attendance = 18304 List the distinct positions of pilots older than 30.,SELECT DISTINCT POSITION FROM pilot WHERE Age > 30 What party does the incumbent from the Ohio 7 district belong to? ,"SELECT party FROM table_1342218_35 WHERE district = ""Ohio 7""" Show each state and the number of addresses in each state.,"SELECT state_province_county , count(*) FROM addresses GROUP BY state_province_county" What care plans have been received by Mrs. Elly Koss during year 1970?,"SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND strftime('%Y', T2.START) = '2013'" when did kaku launch?,"SELECT launch from program where name = ""Kaku""" Tell me the dates conducted for plaid cymru of 19%,"SELECT date_s__conducted FROM table_name_69 WHERE plaid_cymru = ""19%""" Name the Nationality of södertälje sk?,"SELECT nationality FROM table_name_78 WHERE team_from = ""södertälje sk""" "What are the names of perpetrators in country ""China"" or ""Japan""?","SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""China"" OR T2.Country = ""Japan""" who did highest rebounds in the game with score w 105–88 (ot),"SELECT high_rebounds FROM table_17190012_7 WHERE score = ""W 105–88 (OT)""" List out the country name of upper middle income group. Which country has the earliest national account base year? List out the region where this country locates.,SELECT DISTINCT T1.CountryName FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IncomeGroup = 'Upper middle income' UNION SELECT longname FROM ( SELECT longname FROM country WHERE NationalAccountsBaseYear <> '' ORDER BY NationalAccountsBaseYear ASC LIMIT 1 ) What is the score of the game with Grizzlies as the visitor team on 30 December 2007?,"SELECT score FROM table_name_21 WHERE visitor = ""grizzlies"" AND date = ""30 december 2007""" What is the nationality of supplier number 1?,SELECT T2.n_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_suppkey = 1 "List the dates of enrollment and completion of the student with family name ""Zieme"" and personal name ""Bernie"".","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = ""Zieme"" AND T2.personal_name = ""Bernie""" List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.,"SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'" Show all donor names.,SELECT DISTINCT donator_name FROM endowment What is the average review number for application with 5 rating?,SELECT AVG(Reviews) FROM playstore WHERE Rating = 5 How many stations in San Francisco are installed in 2014?,"SELECT SUM(CASE WHEN city = 'San Francisco' AND SUBSTR(installation_date, -4) = '2014' THEN 1 ELSE 0 END) FROM station" Can you show all user ids that have more than 1 tweet?,SELECT T1.uid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1 In what district was keith ellison the incumbent?,"SELECT district FROM table_25030512_26 WHERE incumbent = ""Keith Ellison""" What is the number of Goals on 1950-05-30?,"SELECT COUNT(goals) FROM table_name_63 WHERE date = ""1950-05-30""" When was the last transcript released?,SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1 What is the number of tickets sold and available for the concert at Long Beach Arena?,"SELECT tickets_sold___available FROM table_name_18 WHERE venue = ""long beach arena""" How many stars on average does a Yelp_Business in Anthem get from a user review?,SELECT AVG(T2.review_stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Anthem' What is the effective date of the claim that has the largest amount of total settlement?,SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY SUM(t2.settlement_amount) DESC LIMIT 1 Please list the name of the person who was in the Hall of Fame in the year 1978.,SELECT name FROM HOF WHERE year = 1978 How many addresses are there in country USA?,SELECT COUNT(*) FROM addresses WHERE country = 'USA' What is the total number of products?,SELECT sum ( t2.order_quantity ) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id "what is the rank for Goodrich | Goodrich is the last name, right? | yes","select rank from faculty where lname = ""Goodrich""" Show all allergy type with number of students affected.,"SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype" Please give the user ID of the user who has posted the most tweets.,SELECT UserID FROM twitter GROUP BY UserID ORDER BY COUNT(DISTINCT TweetID) DESC LIMIT 1 Provide the full names and emails of customers whose payments were greater than 70% of the average.,"SELECT DISTINCT T2.first_name, T2.last_name, T2.email FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T2.address_id = T3.address_id WHERE T1.amount > ( SELECT AVG(amount) FROM payment ) * 0.7" In what country is mont sokbaro a highest point,"SELECT country_or_region FROM table_24285393_1 WHERE highest_point = ""Mont Sokbaro""" what is the british name when the american name is sixteenth note?,"SELECT british_name FROM table_name_50 WHERE american_name = ""sixteenth note""" What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?,"SELECT chassis FROM table_name_33 WHERE year > 1965 AND team = ""cooper car company"" AND engine = ""maserati v12""" Which school has enrollment of 887?,SELECT school FROM table_name_44 WHERE enrollment = 887 "What is the Time/Retired with more Laps than 34, a Grid smaller than 15, and Driver Damon Hill?","SELECT time_retired FROM table_name_88 WHERE laps > 34 AND grid < 15 AND driver = ""damon hill""" What is the total number of to par when runner-up was Jonathan Kaye?,"SELECT COUNT(to_par) FROM table_247955_2 WHERE runner_s__up = ""Jonathan Kaye""" what was the maxiumum for the first elected?,SELECT MAX(first_elected) FROM table_1342270_24 What are the names of documents that use templates with the code BK?,"SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = ""BK""" What is the code of airport that has fewest number of flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1 Where was the BRDC International Trophy with driver Emerson Fittipaldi held?,"SELECT venue FROM table_name_61 WHERE driver = ""emerson fittipaldi"" AND event = ""brdc international trophy""" How many users holds neutral attitude towards the HTC Weather app? Indicate the app's rating on the Google Play Store.,"SELECT COUNT(T1.Rating), T1.Rating FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'HTC Weather' AND T2.Sentiment = 'Neutral'" Which product has a height smaller than 5? | Do you want to know the names of the products with heights smaller than 5 | Yes,SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 5 Who is the delegate of district 1 in the elections?,SELECT Delegate FROM election WHERE District = 1 Who was the home team of the game at the time of 14:00?,"SELECT home FROM table_name_53 WHERE time = ""14:00""" Who got second place when the winners were rafał mroczek & aneta piotrowska?,"SELECT second_place FROM table_15988037_4 WHERE winner = ""Rafał Mroczek & Aneta Piotrowska""" "How many members does the club ""Tennis Club"" has?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" "What is the MPAA rating for the movie with the character named ""Peter Quill"" in it?",SELECT T1.`MPAA Rating` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.`Character Name` = 'Peter Quill' What is the Hanzi of Hong Kong in 1998?,"SELECT hanzi FROM table_name_46 WHERE origin = ""hong kong"" AND launch = ""1998""" List the titles of books that are not published.,SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication) Who was the winner when Mateus Rocha finished in 3rd place? ,"SELECT winner FROM table_25214321_1 WHERE third_place = ""Mateus Rocha""" Show me their Ids.,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 Which authors have submitted to more than one workshop?,SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 Find the average and maximum age for each type of pet.,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype" What is the score of the game played 26 July 2010?,"SELECT score FROM table_name_22 WHERE date = ""26 july 2010""" "How many scenes can be found in ""Twelfth Night, Or What You Will""?","SELECT COUNT(T2.Scene) AS cnt FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Cymbeline, King of Britain'" Find the name of the product that has the smallest capacity.,SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity LIMIT 1 What was the attendance of the w 28-13 game?,"SELECT attendance FROM table_name_61 WHERE result = ""w 28-13""" Indicate street and number of the Adelitas Taqueria Restaurants.,"SELECT T1.street_name, T1.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'adelitas taqueria'" How many people play Frank in London?,"SELECT COUNT(london) FROM table_10402018_1 WHERE character = ""Frank""" What is the overall of the player with a pick # higher than 13?,SELECT overall FROM table_name_47 WHERE pick__number < 13 What is the height of David Bornhammar in inches?,SELECT T2.height_in_inch FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.PlayerName = 'David Bornhammar' I see. Can you list the id and number for every grand that APP has?,"SELECT grant_id FROM Documents where document_type_code = ""APP""" "What is the average age of students who have city code ""NYC"" and have secretary votes for the spring election cycle?","SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" "WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?",SELECT COUNT(loss) FROM table_name_15 WHERE long < 24 AND gain > 116 Which products has been complained by the customer who has filed least amount of complaints?,SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1 How many different buildings do you have?,SELECT count ( distinct building ) FROM Faculty Who directed the episode that was viewed by 2.57 million people in the U.S.?,"SELECT directed_by FROM table_11820086_1 WHERE us_viewers__millions_ = ""2.57""" What chassis did Gordon Johncock use with his cosworth engine?,"SELECT chassis FROM table_name_73 WHERE engine = ""cosworth"" AND drivers = ""gordon johncock""" Show me the id of the team that has the largest average number of attendance in 2014?,SELECT T2.team_id FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg ( T1.attendance ) DESC LIMIT 1 Which round 5 Grand Prix had Daijiro Hiura at pole position? ,"SELECT grand_prix FROM table_18303274_1 WHERE pole_position = ""Daijiro Hiura"" AND round = 5" "Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?",SELECT COUNT(total) FROM table_name_93 WHERE silver > 8 AND bronze = 20 AND gold < 20 Which school district was Future Einsteins Of America project located at?,SELECT T1.school_district FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Future Einsteins Of America' What is the average time span of contact channels in the database?,SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels What is the attendance on location for a record of 40–40?,"SELECT location_attendance FROM table_name_67 WHERE record = ""40–40""" What is the total number of entries for Leif Olson?,"SELECT COUNT(starts) FROM table_20590020_2 WHERE player = ""Leif Olson""" How many customers are from the city of Lethbridge?,SELECT COUNT(T3.customer_id) FROM city AS T1 INNER JOIN address AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id WHERE T1.city = 'Lethbridge' How many dates are shown for the home team of orlando pirates and result of 1–3?,"SELECT COUNT(date) FROM table_27274566_2 WHERE home_team = ""Orlando Pirates"" AND result = ""1–3""" what is the format of catalog 865 821-1?,"SELECT format FROM table_name_25 WHERE catalog = ""865 821-1""" what's the permanence of the body where penance is the undifferenced,"SELECT permanence_of_the_body FROM table_11609814_1 WHERE penance = ""the undifferenced""" What is the average star with highest percentage for episodes that have received award?,SELECT T2.person_id FROM Vote AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id ORDER BY T1.percent DESC LIMIT 1 "When there are more than 126 errors, more than 551 kills, and more than 40 assists for the 2007 season, what is the total of Solo Blocks?","SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = ""2007"" AND assists > 40" List the title of all cartoons in alphabetical order.,SELECT Title FROM Cartoon ORDER BY title What is the value of the coin weighing 10.5 g and made of cupronickel?,"SELECT value FROM table_name_52 WHERE composition = ""cupronickel"" AND weight = ""10.5 g""" What is the highest sd when the status is second round lost to iveta benešová?,"SELECT MAX(sd) FROM table_26218783_7 WHERE status = ""Second round lost to Iveta Benešová""" "What is the average supply cost for the part ""hot spring dodger dim light""?",SELECT AVG(T1.ps_supplycost) FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_name = 'hot spring dodger dim light' Name the record for result of l 17–50,"SELECT record FROM table_14940519_1 WHERE result = ""L 17–50""" "What are the years, titles, and publishers for all books, ordered by year descending?","SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC" "What is all the information about employees with D, S, or N in their first name, ordered by salary descending?",SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' OR first_name LIKE '%N%' ORDER BY salary DESC How often does Dengeki girl's style come out?,"SELECT frequency FROM table_name_5 WHERE parent_magazine = ""dengeki girl's style""" How many lessons did customer with first name Ray take?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" What province did the river Klaeaelv travel through and how long is the river?,SELECT T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Klaraelv' What is the average number of audience for festivals?,SELECT avg(Num_of_Audience) FROM festival_detail What was the score of the team North Melbourne played at Arden Street Oval?,"SELECT away_team AS score FROM table_name_75 WHERE home_team = ""north melbourne""" Name the most points with lost more than 1 and games less than 5,SELECT MAX(points) FROM table_name_96 WHERE lost > 1 AND games < 5 How many times did episode 79 originally air? ,SELECT COUNT(original_air_date) FROM table_11111116_6 WHERE no_in_series = 79 How many mens doubles took place in 1970/1971?,"SELECT COUNT(mens_doubles) FROM table_12266757_1 WHERE season = ""1970/1971""" "Show all titles and their instructors' names for courses in 2008, in alphabetical order by title.","SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title" What country has a medical school established in 1969 with both an IMED and avicenna?,"SELECT country_territory FROM table_name_15 WHERE imed_avicenna_listed = ""both"" AND established = 1969" Which country is the film Tent of Miracles from?,"SELECT country FROM table_name_9 WHERE film_title_used_in_nomination = ""tent of miracles""" "What is Notes, when Gold is ""Thierry Gueorgiou"", when Year is before 2008, and when Bronze is ""Valentin Novikov""?","SELECT notes FROM table_name_70 WHERE gold = ""thierry gueorgiou"" AND year < 2008 AND bronze = ""valentin novikov""" "What was the job of Dariusz Wolski in the movie ""Pirates of the Caribbean: At World's End""?",SELECT T2.job FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T3.person_name = 'Dariusz Wolski' Which indicator name uses the Weighted average method and has the lowest value?,"SELECT T1.IndicatorName, MIN(T1.Value) FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T2.AggregationMethod = 'Weighted average'" What CFL Team was Barry Jamieson a part of?,"SELECT cfl_team FROM table_26996293_1 WHERE player = ""Barry Jamieson""" Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities ?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What was the winning team in 2013?,SELECT winning_team FROM table_name_74 WHERE year = 2013 Find the package choice and series name of the TV channel that has high definition TV.,"SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = ""yes""" How many pilots are there?,SELECT count(*) FROM pilot What Rd 3 has a Rd 2 1 of 0+1?,"SELECT rd_3 FROM table_name_95 WHERE rd_2_1 = ""0+1""" "Find the name and capacity of the stadium where the event named ""World Junior"" happened.","SELECT t1.name , t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id WHERE t2.name = 'World Junior'" What is the Drop Zone time for the 439th tcg Troop Carrier Group with more tham 36 C-47s?,"SELECT drop_zone AS Time FROM table_name_27 WHERE troop_carrier_group = ""439th tcg"" AND _number_of_c_47s > 36" Find name of the services that has never been used.,SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id State the goalie who has the lowest percentage of goals against among all the shots against recorded. Name the players and season where he played.,"SELECT T1.firstName, T1.lastName, T2.year FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE CAST(T2.GA AS REAL) / T2.SA IS NOT NULL ORDER BY CAST(T2.GA AS REAL) / T2.SA LIMIT 1" What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #38 Mandeville Auto Tech became the GTO winning team? ,"SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = ""#56 Blue Thunder Racing"" AND gto_winning_team = ""#38 Mandeville Auto Tech""" What was the lowest percentages of wins in 1989 with a GB [c] of 17?,"SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = ""17"" AND reds_season = 1989" Show all the locations where some cinemas were opened in year 2011,SELECT LOCATION FROM cinema WHERE openning_year = 2011 what are highest access count on the table?,SELECT access_count FROM Documents ORDER BY access_count DESC LIMIT 1 "When the home team of st kilda was playing, what was the away team score?","SELECT away_team AS score FROM table_name_97 WHERE home_team = ""st kilda""" "What were the ""other details"" (number released) for ""is my love will follow me""?","SELECT other_details FROM table_18710512_3 WHERE single = ""My Love Will Follow Me""" Where did Obama get 37.1%?,"SELECT county FROM table_20453681_1 WHERE obama_percentage = ""37.1%""" "where is Dakota State University situated ? | Did you mean the location or the street address of its building? | yes, location of Dakota state University?",SELECT Location FROM institution WHERE Institution = 'Dakota State University' how many millions of spectator did has the episode whose prod.code was rp#213?,"SELECT viewers__millions_ FROM table_23117208_3 WHERE prod_code = ""RP#213""" how many courses have prerequisite?,SELECT count ( * ) FROM course WHERE course_id IN ( SELECT course_id FROM prereq ) "Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?","SELECT type FROM table_name_54 WHERE incorporated_in = ""netherlands"" AND principal_activities = ""airline"" AND company = ""transavia.com""" What is the result when team 1 is ICL Pakistan?,"SELECT result FROM table_17103566_1 WHERE team_1 = ""ICL Pakistan""" Show the name and population of the country that has the highest roller coaster.,"SELECT T1.Name , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1" What are the names of all the races that occurred in the year 2017?,SELECT name FROM races WHERE YEAR = 2017 "What are the first names, office locations of all lecturers who have taught some course?","SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" Show the transaction type code that occurs the most frequently.,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 Which division had the most draft matches in the 2008 season?,SELECT Div FROM matchs WHERE season = 2008 AND FTR = 'D' GROUP BY Div ORDER BY COUNT(FTR) DESC LIMIT 1 State the prevalence rate of condition no. 368581000119106.,"SELECT DISTINCT T1.""PREVALENCE RATE"" FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) WHERE T2.code = '368581000119106'" What player is from Wales?,"SELECT player FROM table_name_84 WHERE country = ""wales""" How many artists do we have?,SELECT count(*) FROM artist Name the birth date for taavi sadam,"SELECT birth_date FROM table_25058562_2 WHERE player = ""Taavi Sadam""" Which score has a Date of august 17?,"SELECT score FROM table_name_58 WHERE date = ""august 17""" Find the name of people whose age is greater than any engineer sorted by their age.,SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age "What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?","SELECT stuffit AS X FROM table_name_26 WHERE stuffit = ""unknown"" AND lha_lzh = ""yes"" AND iso_cd_image = ""unknown""" Please provide contact details of all Marketing Managers. State their name and phone number.,"SELECT T1.FirstName, T1.LastName, T2.PhoneNumber FROM Person AS T1 INNER JOIN PersonPhone AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Employee AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T3.JobTitle = 'Marketing Manager'" What is the type description of the organization whose detail is listed as 'quo'?,SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo' How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?,"SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = ""fokker""" Can you show the rating of the song Tumi robe nirobe?,"SELECT rating FROM song WHERE song_name = ""Tumi robe nirobe""" Name customers in India with account balances over $5000.,SELECT T1.c_name FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal > 5000 AND T2.n_name = 'INDIA' Give me the title and highest price for each film.,"SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id" What are the famous titles of artists who do not have any volumes?,SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume) What event did Soa Palelei fight against son hai suk?,"SELECT event FROM table_name_31 WHERE opponent = ""son hai suk""" "Which Year has a Position of 2nd, and Notes of -63kg, and a Venue of manchester?","SELECT year FROM table_name_4 WHERE position = ""2nd"" AND notes = ""-63kg"" AND venue = ""manchester""" What is the ratio between male and female legislators?,SELECT CAST(SUM(CASE WHEN gender_bio = 'M' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN gender_bio = 'F' THEN 1 ELSE 0 END) FROM historical Which station has the highest average high temperature? | Which attributes of this station do you want? | The station name.,SELECT t2.network_name FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY avg ( high_temperature ) DESC LIMIT 1 Which driver's grid was 24?,SELECT driver FROM table_name_10 WHERE grid = 24 what is the age of William B. Maclay,"SELECT Age FROM people WHERE name = ""William B. Maclay""" "In language where Saturday is සෙනසුරාදා senasuraadaa, what is Tuesday?","SELECT tuesday_mangala__mars_ FROM table_1277350_3 WHERE saturday_shani__saturn_ = ""සෙනසුරාදා Senasuraadaa""" Which group has David D'Angers as the official history?,"SELECT group FROM table_name_91 WHERE official_history = ""david d'angers""" Who was the writer for season episode 7?,SELECT written_by FROM table_27397948_2 WHERE no_in_season = 7 "List the scenes and descriptions in Act 1 of "" Pericles, Prince of Tyre"".","SELECT T2.Scene, T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Pericles, Prince of Tyre' AND T2.Act = 1" When 74804 is the attendance what week is it?,SELECT week FROM table_14941284_1 WHERE attendance = 74804 What venue was essendon the away team?,"SELECT venue FROM table_name_20 WHERE away_team = ""essendon""" How many turnovers per game did the assist champion had in the 2003 NBA season?,"SELECT AVG(T2.turnovers) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2003 GROUP BY T1.playerID, T2.assists ORDER BY T2.assists DESC LIMIT 1" Which captain has howard wilkinson as the manager?,"SELECT captain FROM table_name_52 WHERE manager = ""howard wilkinson""" What percentage of voters voted for a third party in the county that had 802 third party voters?,SELECT others__percentage FROM table_20278716_2 WHERE others__number = 802 What are the names of people with overall rating between 85 and 90? | by people did you mean players? | yes,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > = 85 AND T2.overall_rating < = 90 What is the city area of the district with the highest population.,sELECT city_area FROM district ORDER BY city_population desC LIMIT 1 Which team is located in Lida?,"SELECT team FROM table_name_91 WHERE location = ""lida""" How many students live in HKG or CHI?,"SELECT COUNT(*) FROM Student WHERE city_code = ""HKG"" OR city_code = ""CHI""" Which Spoofed title had Mort Drucker as the artist in issue 88?,"SELECT spoofed_title FROM table_name_97 WHERE artist = ""mort drucker"" AND issue = 88" "Who's the partner at Tamara, Hon?","SELECT partner FROM table_18268930_1 WHERE location = ""Tamara, HON""" "Among the recipes with alcohol content over 10, which recipe takes the longest to prepare?",SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.alcohol > 10 ORDER BY T1.prep_min DESC LIMIT 1 What was the date of the game that had a loss of Willis (0–1)?,"SELECT date FROM table_name_32 WHERE loss = ""willis (0–1)""" What is the cyrillic name when the settlement is ašanja?,"SELECT cyrillic_name FROM table_2562572_52 WHERE settlement = ""Ašanja""" find the minimum and maximum number of products of all stores.,"SELECT MIN(Number_products), MAX(Number_products) FROM shop" How many owners temporarily do not have any dogs?,SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs) "Select the name and price of all products with a price larger than or equal to 180, and sort first by price (in descending order), and then by name (in ascending order).","SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC" What are the names of modern rooms that have a base price lower than $160 and two beds.,SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern'; "What 2nd run has a less than 6 rank, and 3 as the total?",SELECT 2 AS nd_run FROM table_name_69 WHERE rank < 6 AND total = 3 Show the names of the buildings that have more than one company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT ( * ) > 1 "Show the years, book titles, and publishers for all books, in descending order by year.","SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC" "What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?",SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 4 What are the maximum and minumum grade points?,"SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION" "How many problems did the product called ""voluptatem"" have in record?","SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = ""voluptatem""" "What is 2004, when 2007 is ""A"", and when 1997 is ""A""?","SELECT 2004 FROM table_name_36 WHERE 2007 = ""a"" AND 1997 = ""a""" what's the tries against with tries for being 47,"SELECT tries_against FROM table_12828723_3 WHERE tries_for = ""47""" Show the number of trains,SELECT COUNT(*) FROM train "What was the topic of the show on March 15, 2008?","SELECT topic_of_the_show FROM table_name_5 WHERE date = ""march 15, 2008""" List the production code for the episode had 5.55 million viewers?,"SELECT prod_code FROM table_2501754_3 WHERE viewing_figures_millions = ""5.55""" What is the zip postcode where Kaitlin lived? | Do you mean the zip postcode in the ares where the staff with first name Kaitlin lived? | Yes,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Kaitlin""" Number of international passengers per airport? | Did you want the names of airports and their number of international passengers? | Yes please.,"SELECT airport_name, international_passengers FROM airport" What was the score of the game with a record of 81-60?,"SELECT score FROM table_name_71 WHERE record = ""81-60""" "On June 17 in Tiger stadium, what was the average home run?","SELECT AVG(home_run) FROM table_name_43 WHERE location = ""tiger stadium"" AND date = ""june 17""" What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?,"SELECT name FROM table_name_16 WHERE heat > 4 AND lane = 4 AND nationality = ""australia""" Which opponent has a time of 1:50?,"SELECT opponent FROM table_name_79 WHERE time = ""1:50""" What is the document status description of the document with id 1?,SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1; Which Home Captain has Venue of Bourda?,"SELECT home_captain FROM table_name_42 WHERE venue = ""bourda""" What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?,SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 What are the average amount purchased and value purchased for the supplier who supplies the most products,"SELECT avg ( total_amount_purchased ) , avg ( total_value_purchased ) FROM Product_Suppliers WHERE supplier_id = ( SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count ( * ) DESC LIMIT 1 ) " What home team played against Richmond?,"SELECT home_team FROM table_name_73 WHERE away_team = ""richmond""" Which Nebraska has 2004 year?,"SELECT nebraska FROM table_name_25 WHERE year = ""2004""" highest mountain in Tanzania | Do you mean the name of the highest mountain in country Tanzania? | yes,SELECT name FROM mountain where country = 'Tanzania' order by height desc limit 1 What is the goals number of goals for the player who had 2 league cup apps and 0 FA cup goals?,"SELECT COUNT(total_goals) FROM table_name_64 WHERE league_cup_apps = ""2"" AND fa_cup_goals < 0" "What is the result for Gold Coast when Melbourne and Adelaide are yes, but Perth is no?","SELECT gold_coast FROM table_name_73 WHERE melbourne = ""yes"" AND perth = ""no"" AND adelaide = ""yes""" "If the province is British Columbia, what is the Arabs 2001 total number?","SELECT COUNT(arabs_2001) FROM table_1939367_1 WHERE province = ""British Columbia""" Find the name of the most popular party form.,SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1 Who is the opponent in game 5?,"SELECT opponent FROM table_20745706_1 WHERE _number = ""5""" Give me the names of all the authors.,select distinct author from submission faculty Ids who have at least 2 students,SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count ( * ) > = 2 "What game had more than 50,324 in attendance?",SELECT date FROM table_name_45 WHERE attendance > 50 OFFSET 324 Show the themes of parties and the names of the party hosts.,"SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" Which event had a decision method?,"SELECT event FROM table_name_12 WHERE method = ""decision""" List the comments describing orders from customers in the furniture segment.,SELECT T1.o_comment FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'FURNITURE' I want to know the invoice dates corresponding to customers,"SELECT T1.FirstName, T1.lastname, T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId" Who was the finalist in the 2010 season in the host city tartu?,"SELECT finalist FROM table_name_57 WHERE host_city = ""tartu"" AND season = 2010" "Among the teenager clients who use Google account and Microsoft account, which group of client is more than the other?",SELECT CASE WHEN SUM(CASE WHEN email LIKE '%@gmail.com' THEN 1 ELSE 0 END) > SUM(CASE WHEN email LIKE '%@outlook.com' THEN 1 ELSE 0 END) THEN 'Google account' ELSE 'Microsoft account' END FROM client WHERE age BETWEEN 13 AND 19 "Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?","SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = ""mika häkkinen""" What were the results before the year 2000?,SELECT result FROM table_name_7 WHERE year < 2000 can you show me the document date?,select document_date from documents "How many number of platforms do they have? | could you give more info of your problem? it the ""they"" station id or location? | What is the number of platforms does train station in london has?",select sum ( Number_of_Platforms ) from station where Location = 'London' What is the game number that was on November 27? ,"SELECT _number FROM table_22871239_5 WHERE date = ""November 27""" Find the names of all person sorted in the descending order using age.,SELECT name FROM Person ORDER BY age DESC "Which city is ""Rensselaer Polytechnic Institute"" located in?",SELECT T FROM ( SELECT DISTINCT CASE WHEN chronname = 'Rensselaer Polytechnic Institute' THEN city ELSE NULL END AS T FROM institution_details ) WHERE T IS NOT NULL What is the number of games played in the season before 2005?,SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005 How many ranks have a Code (IATA/ICAO) of ord/kord?,"SELECT COUNT(rank) FROM table_name_29 WHERE code__iata_icao_ = ""ord/kord""" at what location is the last flew on 11 june 2000,"SELECT location FROM table_1997759_1 WHERE last_flew = ""11 June 2000""" "Calculate the total quantity of products with name starting with alphabet ""c"".","SELECT SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE SUBSTR(T1.Name, 1, 1) = 'C'" "What is the NBA draft result of the player from Kingston, PA?","SELECT nba_draft FROM table_name_4 WHERE hometown = ""kingston, pa""" "what is the maximum # with original airdate being march 14, 2001","SELECT MAX(_number) FROM table_13956521_2 WHERE original_airdate = ""March 14, 2001""" In what district is the incumbent John Linder?,"SELECT district FROM table_19753079_13 WHERE incumbent = ""John Linder""" What is the average year joined of the 277 county?,SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277 how many customer orders there,SELECT count ( * ) from Customer_Orders "What is the highest grid that has +44.866 as the time, with laps greater than 25?","SELECT MAX(grid) FROM table_name_80 WHERE time = ""+44.866"" AND laps > 25" Name the least number for xle02007,"SELECT MIN(no) FROM table_28348757_3 WHERE production_code = ""XLE02007""" What position and how many wins does the forename Fernando have? | Do you mean the position of the driver with forename Fernando when he ranked 1 and the number of times that he ranked 1? | yes,"SELECT T2.position, count ( * ) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid where T1.forename = 'Fernando' and rank = 1" "What is the Equipment that has a Points littler than 442, and a Position of 9?",SELECT equipment FROM table_name_93 WHERE points < 442 AND position = 9 What are the different cities listed?,SELECT DISTINCT headquarter FROM manufacturers "What iwas the attendance of the game that took place on december 6, 1998?","SELECT attendance FROM table_name_41 WHERE date = ""december 6, 1998""" What date was BBC One total viewing greater then 11616996.338225884?,SELECT broadcast_date FROM table_103084_4 WHERE bbc_one_total_viewing > 11616996.338225884 Which Album title has a Title of 滑板?,"SELECT album_title FROM table_name_53 WHERE title = ""滑板""" please list each item and rating from highest to lowest rating,"SELECT T1.title, T2.rating FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id order by T2.rating" Find the count and code of the job has most employees.,"SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1" What is their actual resolution?,"Select song_name, resolution from song where song_name in ( SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000 ) " How many problems are there for product voluptatem?,"SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = ""voluptatem""" What is the start date of the care plan of the patient whose maiden name is Adams?,SELECT DISTINCT T1.START FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.maiden = 'Adams' What is the population of Aibonito?,SELECT Population FROM county_public_safety WHERE County_ID = ( select County_ID from city where Name = 'Aibonito' ) How many original titles did Marriage Italian-Style have? ,"SELECT COUNT(original_title) FROM table_10321805_1 WHERE film_title_used_in_nomination = ""Marriage Italian-Style""" What are the names of all people who do not have friends?,SELECT name FROM person EXCEPT SELECT name FROM PersonFriend "For the cars with 4 cylinders, which model has the largest horsepower?",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1; "What is the highest Win #, when Winner is ""Knoxville Cherokees"", when Playoff Result is ""Lost 1st Round ( LOU )"", and when Points is less than 94?","SELECT MAX(win__number) FROM table_name_87 WHERE winner = ""knoxville cherokees"" AND playoff_result = ""lost 1st round ( lou )"" AND points < 94" "Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)?","SELECT no FROM table_26202812_7 WHERE score_in_the_final = ""7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)""" What were the total games in the Big Ten conference when Nebraska lost fewer than 488 games and had a Pct less than 0.7014?,"SELECT SUM(total_games) FROM table_name_68 WHERE conference = ""big ten"" AND lost < 488 AND team = ""nebraska"" AND pct < 0.7014" "Between 1/1/2012 to 12/31/2014, which date recorded the hottest temperature in weather station 1?","SELECT `date` FROM weather WHERE station_nbr = 1 AND CAST(SUBSTR(`date`, 1, 4) AS int) BETWEEN 2012 AND 2014 ORDER BY tmax DESC LIMIT 1" Hmmm...can you also please tell me the address id for this same property?,SELECT T1.address_id FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id where T2.monthly_rental = 1297.807 Which Quantity has a Designation of type 4?,"SELECT AVG(quantity) FROM table_name_82 WHERE designation = ""type 4""" how many games has kansas state and depaul played against each other,"SELECT COUNT(games_played) FROM table_15740666_6 WHERE kansas_state_vs = ""DePaul""" What was the place ranking for the player from Australia?,"SELECT place FROM table_name_43 WHERE country = ""australia""" what's the evening gown where preliminaries is 8.977,"SELECT evening_gown FROM table_12094609_1 WHERE preliminaries = ""8.977""" what are the start date and end of date of the booking that has booked the product named 'book collection A'?,"SELECT T3.booking_start_date , T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'" What party was Dewey Short associated with?,"SELECT party FROM table_1342198_25 WHERE incumbent = ""Dewey Short""" Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.,SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64 "What is Date, when Opponent is At Saskatchewan Roughriders?","SELECT date FROM table_name_13 WHERE opponent = ""at saskatchewan roughriders""" "How many police officers are in Albonito? | Do you mean 'Aibonito' not 'Albonito'? | Yes Aibonito, my mistake",SELECT Police_officers FROM county_public_safety WHERE County_ID = ( select County_ID from city where Name = 'Aibonito' ) What is the lowest episode number?,SELECT MIN(episode__number) FROM table_2501754_4 "Show minimum, maximum, and average market value for all companies.","SELECT MIN(market_value), MAX(market_value), AVG(market_value) FROM company" WHAT ARE THE DISTINCT POSITIONS OF THE PLAYERS FROM COUNTRY WHOSE CAPITAL IS DUBLIN,"SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = ""Dublin""" "What is Location, when Opponent is ""Jonathan Goulet""?","SELECT location FROM table_name_12 WHERE opponent = ""jonathan goulet""" Which Centennial has a Altadeña of panthers?,"SELECT centennial FROM table_name_4 WHERE altadeña = ""panthers""" Find the total revenue for each manufacturer.,"SELECT SUM(revenue), name FROM manufacturers GROUP BY name" What is the largest attendance that has tigers as the opponent and a loss of leiter (0-1)?,"SELECT MAX(attendance) FROM table_name_75 WHERE opponent = ""tigers"" AND loss = ""leiter (0-1)""" From which country was the player whose year(s) won was 1983?,"SELECT country FROM table_name_9 WHERE year_s__won = ""1983""" What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?,SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%' "Which Score has a Game larger than 32, and Points smaller than 42, and a December larger than 19, and a Record of 18–12–5?","SELECT score FROM table_name_28 WHERE game > 32 AND points < 42 AND december > 19 AND record = ""18–12–5""" Can you left join the Assessment Notes table with the Teachers table on teacher_id?,SELECT * FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id Which Avoirdupois value is translated to grain?,"SELECT avoirdupois_value FROM table_name_76 WHERE translation = ""grain""" What is the Established date of the Brian Timmis Stadium?,"SELECT COUNT(established) FROM table_name_57 WHERE venue = ""brian timmis stadium""" Which podiums did the alfa romeo team have?,"SELECT podiums FROM table_10753917_1 WHERE team = ""Alfa Romeo""" What were all the away teams when the crowd was 13304?,SELECT away_team FROM table_16388478_2 WHERE crowd = 13304 what is the name of album id 3,SELECT name from tracks where album_id = 3 display the country ID and number of cities for each country.,"SELECT country_id , COUNT(*) FROM locations GROUP BY country_id" "What Label has a Format of cd, and a Catalog of crgd 86136?","SELECT label FROM table_name_88 WHERE format = ""cd"" AND catalog = ""crgd 86136""" What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?,select max(mpg) from cars_data where cylinders = 8 or year < 1980 What are all the results where Robert Bauman is the incumbent politician?,"SELECT result FROM table_1341690_20 WHERE incumbent = ""Robert Bauman""" What is the Game with a Record of 19-15?,"SELECT game FROM table_name_71 WHERE record = ""19-15""" "What is the category and typical buying price of the product with name ""cumin""?","SELECT product_category_code , typical_buying_price FROM products WHERE product_name = ""cumin""" Which acquisition via has a position of forward and is on the state school or club?,"SELECT acquisition_via FROM table_name_79 WHERE position = ""forward"" AND school_club_team = ""state""" "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?","SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )" Find the first name and age of students who have a dog but do not have a cat as a pet.,"SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')" "Among the male legislators born between 1955 to 1965, what is the percentage of the legislators with an independent party?","SELECT CAST(SUM(CASE WHEN T2.party = 'Independent' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.party) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND strftime('%Y', T1.birthday_bio) BETWEEN '1955' AND '1965'" What is the program where the focus is general management?,"SELECT program FROM table_12591022_2 WHERE focus = ""General Management""" How many total items were requested for the Onslow Co School District urban metro school projects?,SELECT SUM(T1.item_quantity) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_metro = 'urban' AND T2.school_district = 'Onslow Co School District' How many latest released dramas and action movies?,"SELECT COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.year = 4 AND T1.genre IN ('Action', 'drama')" What is the average high temperature for each day of week?,"SELECT avg(high_temperature) , day_of_week FROM weekly_weather GROUP BY day_of_week" For how many times has the customer RUTH MARTINEZ rented a film?,SELECT COUNT(T2.rental_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' Which parts have more than 2 faults? Show the part name and id.,"SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2" Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?,"SELECT shirt_back_sponsor FROM table_name_69 WHERE shorts_sponsor = ""telestet""" Identify the players with the same height as Brian Gionta. How tall are they?,"SELECT T2.PlayerName, T1.height_in_cm FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T2.height = ( SELECT height FROM PlayerInfo WHERE PlayerName = 'Brian Gionta' )" Which overall's pick number was 14?,SELECT overall FROM table_name_65 WHERE pick__number = 14 "Ok, and how many drafts are associated with Kenyon?","SELECT count ( * ) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id where Employee_name = ""Kenyon""" What are the opening hours of business number 53 on Friday?,"SELECT T1.closing_time - T1.opening_time AS ""opening hours"" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Friday' AND T1.business_id = 53" "What is Date, when H/A/N is ""H"", and when Score is 112-118?","SELECT date FROM table_name_77 WHERE h_a_n = ""h"" AND score = ""112-118""" What is every current club for the player Artūrs Štālbergs?,"SELECT current_club FROM table_23670057_7 WHERE player = ""Artūrs Štālbergs""" "What date has w 20-17 as the result, and 1-0 as the record?","SELECT date FROM table_name_32 WHERE result = ""w 20-17"" AND record = ""1-0""" What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?,"SELECT 2010 FROM table_name_10 WHERE 2008 = ""a"" AND 2011 = ""a"" AND 2012 = ""qf""" can you show me average of the distances?,SELECT avg ( distance ) FROM Flight List every city in San Mateo County.,SELECT city FROM geographic WHERE county = 'san mateo county' How many rooms whose capacity is less than 50 does the Lamberton building have?,SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50 Please list the time when event no.2 happened on a vivo device.,SELECT T1.timestamp FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.event_id = T2.device_id WHERE T2.phone_brand = 'vivo' AND T1.event_id = '2' Which Winners club has an Event of hang tight?,"SELECT winners_club FROM table_name_68 WHERE event = ""hang tight""" How many podcasts are there in the category which has the most podcasts?,SELECT COUNT(podcast_id) FROM categories WHERE category = ( SELECT category FROM categories GROUP BY category ORDER BY COUNT(podcast_id) DESC LIMIT 1 ) "How many caps have a Position of prop, and a Player of rui cordeiro?","SELECT COUNT(caps) FROM table_name_6 WHERE position = ""prop"" AND player = ""rui cordeiro""" What was the lowest attendance by the game that had an away team of Vida?,"SELECT MIN(attendance) FROM table_name_47 WHERE away = ""vida""" Can you list me all the username of users with the most popular role?,SELECT user_name FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 what is the school color of barker college,"SELECT school_colors from school where school = ""Barker College""" What is the Date of Catalog 573 194-2?,"SELECT date FROM table_name_76 WHERE catalog = ""573 194-2""" Thank you! That's a lot of people! Can you filter the list to show me only the active customers?,SELECT first_name FROM customer WHERE customer_id IN ( SELECT customer_id FROM rental WHERE rental_date < '2005-08-23 02:06:01' ) AND active = 1 "When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?","SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = ""Hittite Old Kingdom , Minoan eruption""" What is the average age of all gymnasts?,SELECT AVG(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID Thank you. And what are the names of the players who play for those schools?,SELECT Player FROM match_season "How many employees whose performance is poor have a salary of over $50,000 per year?","SELECT COUNT(*) FROM employee WHERE performance = 'Poor' AND CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) > 50000" What's the total of Sweden (SWE) having less than 1 silver?,"SELECT MIN(total) FROM table_name_21 WHERE nation = ""sweden (swe)"" AND silver < 1" "Can you tell me the sum of Pick # that has the Position of sb, and the College of minnesota?","SELECT SUM(pick__number) FROM table_name_20 WHERE position = ""sb"" AND college = ""minnesota""" Who was the player who was pick number 147?,SELECT player FROM table_name_40 WHERE pick = 147 What is the income of female customers ages from 30 to 55 years old and has an occupation of machine-op-inspct?,SELECT T2.INCOME_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.age >= 30 AND T1.age <= 55 AND T1.OCCUPATION = 'Machine-op-inspct' Please list the first name of the players from the NBA league with the forward position.,SELECT DISTINCT T1.firstName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE (T1.pos = 'F' OR T1.pos = 'F-C') AND T2.lgID = 'NBA' What was the attendance of the Hawthorn as the away team?,"SELECT SUM(crowd) FROM table_name_92 WHERE away_team = ""hawthorn""" How many departments do you have?,SELECT count ( * ) from department What is the average calorie count for all recipes using coarsely ground black pepper?,SELECT AVG(T3.calories) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id WHERE T1.name = 'coarsely ground black pepper' Name the total number of production code by david richardson and todd holland,"SELECT COUNT(production_code) FROM table_1876825_2 WHERE written_by = ""David Richardson"" AND directed_by = ""Todd Holland""" In what years were the clients who demanded more problems with Certificate of deposit born?,SELECT T1.year FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Sub-product` = '(CD) Certificate of deposit' GROUP BY T1.year ORDER BY COUNT(T1.year) DESC LIMIT 1 "For the item that has a Gecko of 'font', what is the KHTML value?","SELECT khtml FROM table_name_11 WHERE gecko = ""font""" Which students play video games?,SELECT distinct StuID FROM Plays_games In what place did the player with a score of 66-67=133 come in?,SELECT place FROM table_name_98 WHERE score = 66 - 67 = 133 Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY COUNT(*) >= 5 What's the nationality of Livio Berruti?,"SELECT nationality FROM table_name_53 WHERE athlete = ""livio berruti""" How much money did reestore request ?,"SELECT money_requested__£_ FROM table_name_59 WHERE company_or_product_name = ""reestore""" What is the score for Fitzroy when they are the home team?,"SELECT home_team AS score FROM table_name_53 WHERE home_team = ""fitzroy""" What was the crowd size for the game with a score of 101-105?,"SELECT crowd FROM table_name_13 WHERE score = ""101-105""" What goods were sold to customers in accordance with sales order number 43660?,SELECT T1.Name FROM Product AS T1 INNER JOIN SalesOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE T2.SalesOrderID = 43660 "What is the description of the role named ""Proof Reader""?","SELECT role_description FROM ROLES WHERE role_name = ""Proof Reader""" Whats the number of platforms do london waterloo has ?,"SELECT Number_of_Platforms FROM station where name = ""London Waterloo""" List out the birth name of crews who are co-executive producer and higher than 1.60 meters.,SELECT T1.birth_name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.role = 'co-executive producer' AND T1.height_meters > 1.60; What is the name when winter is the transfer window?,"SELECT name FROM table_name_47 WHERE transfer_window = ""winter""" "great, how many popular role users are?",SELECT count ( * ) FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 What are the names and years of the movies that has the top 3 highest rating star?,"SELECT T2.title, T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" What are the names of the top 5 airlines with the highest number of aircraft?,SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code GROUP BY T2.Description ORDER BY T1.TAIL_NUM DESC LIMIT 5 Which rank took place prior to 2000 when the bike was bsl?,"SELECT rank FROM table_name_71 WHERE year < 2000 AND bike = ""bsl""" When 61 is the entries what is the winning boat?,SELECT winning_boat FROM table_24673710_1 WHERE entries = 61 "What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005?","SELECT play_by_play FROM table_name_11 WHERE color_commentator_s_ = ""eric wynalda"" AND year < 2005" Show me the name of instructors? | Here is the table of first and last names of faculties. | How many instructors are teaching top 3 number of courses?,select count ( * ) from ( SELECT * FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count ( * ) DESC LIMIT 3 ) What is the number of turns for the City of san antonio?,"SELECT turns FROM table_name_35 WHERE city = ""san antonio""" List the platforms that release the most games each year.,"SELECT T1.platform_name 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 GROUP BY T2.release_year, T1.platform_name ORDER BY COUNT(DISTINCT T3.game_id) DESC" Show the organizer and name for churches that opened between 1830 and 1840.,"SELECT organized_by , name FROM church WHERE open_date BETWEEN 1830 AND 1840" What time was the kickoff on week 5?,"SELECT kickoff_[a_] FROM table_name_60 WHERE week = ""5""" How many rooms have not had any reservation yet?,SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations) Waht is the Country of the play by Author Aristophanes?,"SELECT country FROM table_name_25 WHERE author = ""aristophanes""" What are the Asian countries which have a population larger than that of any country in Africa?,"SELECT Name FROM country WHERE Continent = ""Asia"" AND population > (SELECT min(population) FROM country WHERE Continent = ""Africa"")" "Among the languages used in Baltic Countries, provide the languages which are used by over 80%. ",SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Region = 'Baltic Countries' AND T2.Percentage > 80 What was the location attendance when Andray Blatche (9) got high rebounds?,"SELECT location_attendance FROM table_27721131_10 WHERE high_rebounds = ""Andray Blatche (9)""" "Among the customers from Brazil, how many customers are in automobile market segment?",SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_mktsegment = 'AUTOMOBILE' AND T2.n_name = 'BRAZIL' Which rider had a points score equal to 10?,SELECT rider FROM table_name_60 WHERE points = 10 How many owners are located in Mexico?,SELECT COUNT(ContactTitle) FROM Customers WHERE Country = 'Mexico' AND ContactTitle = 'Owner' What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?,"SELECT drawn FROM table_name_11 WHERE points_against = ""correct as of 08:50 10 may 2009""" When was the first elected for district missouri 7?,"SELECT MIN(first_elected) FROM table_1341663_26 WHERE district = ""Missouri 7""" Return the name of the category to which the film 'HUNGER ROOF' belongs.,SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?,SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280) How many products have a price higher than the average?,SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products) How many years had a total earnings amount of 2254598?,SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598 Which restaurants have highest rating? List the restaurant name and its rating.,"SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;" How many books were published in 2017?,"SELECT COUNT(*) FROM book WHERE STRFTIME('%Y', publication_date) = '2017'" What is the average duration of songs that have mp3 format and resolution below 800?,"SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" How many analogue satellite channels does Sky [Analogue] have?,"SELECT no_of_channels FROM table_name_87 WHERE transmission = ""analogue satellite"" AND provider = ""sky [analogue]""" How many teachers that have Literature & Writing as their primary focus subject use 'Mr' as their teacher prefix?,SELECT COUNT(teacher_acctid) FROM projects WHERE teacher_prefix = 'Mr.' AND primary_focus_subject = 'Literature & Writing' What are the greatest and average capacity for rooms in each building?,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building" "How many Points have a Date of march 19, 2009?","SELECT COUNT(points) FROM table_name_7 WHERE date = ""march 19, 2009""" What is the average speed of all the storms?,SELECT avg ( Max_speed ) FROM storm "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.","SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )" What was the to par when the score was 71-70-72-68=281?,SELECT to_par FROM table_name_92 WHERE score = 71 - 70 - 72 - 68 = 281 what is the rank when the mountain peak is isthmus peak?,"SELECT rank FROM table_name_63 WHERE mountain_peak = ""isthmus peak""" "Among the review votes of funny and cool hit uber with long review length, describe the business ID, active status, user ID and user year of joining Yelp.","SELECT T1.business_id, T1.active, T3.user_id, T3.user_yelping_since_year FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T2.review_votes_cool = 'Uber' AND T2.review_votes_funny = 'Uber' AND T2.review_length = 'Long'" "If the incoming head coach is Carlos Azenha, what is the date of vacancy?","SELECT date_of_vacancy FROM table_27133147_3 WHERE incoming_head_coach = ""Carlos Azenha""" What are the names of the countries that are in the continent of Europe and have a population of 80000?,"SELECT Name FROM country WHERE continent = ""Europe"" AND Population = ""80000""" "What is the total cost of all the ""Road-650, Red, 60"" products that Abraham E. Bennet sold?","SELECT SUM(T2.Quantity * T3.Price) FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Abraham' AND T1.MiddleInitial = 'e' AND T1.LastName = 'Bennet' AND T3.Name = 'Road-650 Red, 60'" What is the to par for Fred Couples when the score is 68-66=134?,"SELECT to_par FROM table_name_74 WHERE score = 68 - 66 = 134 AND player = ""fred couples""" WHAT IS THE POPULATION OF 2007 WHEN 2010 POPULATION WAS SMALLER THAN 1282?,SELECT COUNT(population__2007_) FROM table_name_2 WHERE population__2010_ < 1282 What was the number of athletes for the 7th edition?,"SELECT no_of_athletes FROM table_26669939_1 WHERE edition = ""7th""" "Which Series has a Final Placing of 9th, and Podiums of 2?","SELECT series FROM table_name_31 WHERE final_placing = ""9th"" AND podiums = ""2""" Who is the home team that played at venue MCG?,"SELECT home_team FROM table_name_3 WHERE venue = ""mcg""" In which province and country does Moldoveanu located? State its height.,"SELECT T2.Province, T2.Country, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T1.Name = 'Moldoveanu'" Which city includes Barclays Center?,"SELECT city FROM table_name_55 WHERE home_arena = ""barclays center""" Which country has the most of TV Channels? List the country and number of TV Channels it has.,"SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1" How many events have happened on device no.29182687948017100 in 2016?,"SELECT COUNT(event_id) FROM `events` WHERE SUBSTR(`timestamp`, 1, 4) = '2016' AND device_id = 29182687948017100" What is the smallest number of extra points for a left halfback?,"SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = ""Left halfback""" Show me how many school locations have the word 'NY',"SELECT count ( * ) FROM University WHERE Location LIKE ""%NY%""" What event was on 26 August 2005?,"SELECT event FROM table_name_14 WHERE date = ""26 august 2005""" In what year did Tom Sneva win a race?,"SELECT season FROM table_1405704_1 WHERE winning_driver = ""Tom Sneva""" What was the high assist for game 66?,SELECT high_assists FROM table_name_15 WHERE game = 66 What is the difference in percentage between the product descriptions written in Arabic and Thai?,SELECT CAST(SUM(CASE WHEN T1.Name = 'Arabic' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.Name = 'Thai' THEN 1 ELSE 0 END) FROM Culture AS T1 INNER JOIN ProductModelProductDescriptionCulture AS T2 ON T1.CultureID = T2.CultureID Tell me the cast for b. reeves eason and joseph kane,"SELECT cast FROM table_name_80 WHERE director = ""b. reeves eason and joseph kane""" Who wrote the episodes that were directed by Peter O'Fallon?,"SELECT written_by FROM table_28561455_1 WHERE directed_by = ""Peter O'Fallon""" What is the College of the Pick from Denver Broncos?,"SELECT college FROM table_name_47 WHERE team = ""denver broncos""" "In ""Florence. Without the walls. A tucket afar off"", what is the id of the character that was mentioned in ""His name, I pray you.""?","SELECT T1.character_id FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id WHERE T1.PlainText = 'His name, I pray you.' AND T2.Description = 'Florence. Without the walls. A tucket afar off.'" "Which alderman represents the ward with the most number of crimes in January, 2018? Please give his or her full name.","SELECT T1.ward_no, T1.alderman_first_name, T1.alderman_last_name, T1.alderman_name_suffix FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' GROUP BY T1.ward_no ORDER BY COUNT(T1.ward_no) DESC LIMIT 1" Which driver drove the Tourtel Larrousse F1?,"SELECT driver FROM table_name_99 WHERE entrant = ""tourtel larrousse f1""" How many faculty members does each building have? List the result with the name of the building.,"SELECT building , count(*) FROM Faculty GROUP BY building" Who is the gymnast with a floor score of 14.800?,"SELECT gymnast FROM table_name_83 WHERE floor = ""14.800""" "When Iceland gets the Silver, who gets the Bronze?","SELECT bronze FROM table_name_67 WHERE silver = ""iceland""" What is the Traditional when the Pinyin is hédōng qū?,"SELECT traditional FROM table_name_27 WHERE pinyin = ""hédōng qū""" Find the color of the product id 2?,"SELECT T2.color_description FROM Products AS T1 JOIN Ref_Colors AS T2 on T1.color_code = T2.color_code WHERE product_id = ""2""" What is the name of the customer that has purchased the most items?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) DESC LIMIT 1 which of the male has he highest weight | Would you like to know the name of the person who has the highest weight among sex M? | yes of course,SELECT name FROM people WHERE Sex = 'M' ORDER BY Height DESC LIMIT 1 What is the ICAO for Hong Kong?,"SELECT icao FROM table_name_73 WHERE country = ""hong kong""" Return the average gross sales in dollars across all films.,SELECT avg(Gross_in_dollar) FROM film "What is the series number of the episode that aired March 25, 2010?","SELECT MIN(no_in_series) FROM table_23483182_1 WHERE original_air_date = ""March 25, 2010""" Find the average age of the students who have allergies with food and animal types.,"SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""animal"")" Which episode number was associated with Vibhav Gautam?,"SELECT episode_number FROM table_name_1 WHERE name = ""vibhav gautam""" Which model has a maximum memory of 512 mb?,"SELECT MAX(model) FROM table_name_92 WHERE maximum_memory = ""512 mb""" Count the number of stores the chain South has.,"SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""South""" Which nation won 29 gold medals?,SELECT nation FROM table_name_3 WHERE gold = 29 Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.,"SELECT T3.Pilot_name , T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank" Which name is on the of fc sète olympique de marseille?,"SELECT name FROM table_name_39 WHERE teams = ""fc sète olympique de marseille""" "At what game number was the attendance at Conseco Fieldhouse 14,486?","SELECT MAX(game) FROM table_17288825_7 WHERE location_attendance = ""Conseco Fieldhouse 14,486""" What are the names of all the countries that became independent after 1950?,SELECT Name FROM country WHERE IndepYear > 1950 Whah are the name of each industry and the number of companies in that industry?,"SELECT Industry , COUNT(*) FROM Companies GROUP BY Industry" Which order id has the least quantity on the list?,select order_id from Order_Items order by order_quantity limit 1 How many heads of the departments are older than 56 ?,SELECT count(*) FROM head WHERE age > 56 Which category does the film Working Microcosmos belong to?,SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.title = 'WORKING MICROCOSMOS' What are the name and location of the cinema with the largest capacity?,"SELECT name , LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1" "If the cross-section area is 21.2, what is the weight?","SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = ""21.2""" What are the ids of the two department store chains with the largest number of department stores?,SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2 "Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?","SELECT sydney FROM table_name_47 WHERE gold_coast = ""no"" AND adelaide = ""no"" AND melbourne = ""no"" AND auckland = ""no""" "Among the orders in Central superstore, which art product were ordered the most?",SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Sub-Category` = 'Art' GROUP BY T2.`Product Name` ORDER BY COUNT(T2.`Product ID`) DESC LIMIT 1 "Which vocal type has the band mate with first name ""Solveig"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Solveig"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" "Show the name, location, open year for all tracks with a seating higher than the average.","SELECT name , LOCATION , year_opened FROM track WHERE seating > (SELECT avg(seating) FROM track)" Find the name of accounts whose checking balance is higher than corresponding saving balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance List down the business ID with a high review count in Tempe.,SELECT business_id FROM Business WHERE review_count = 'High' AND city = 'Tempe' What is every value for change% for area of 1835.01?,"SELECT change___percentage_ FROM table_26321719_1 WHERE area__km²_ = ""1835.01""" The other [C] of 0 12 0 (0) belongs to what FA Cup?,"SELECT fa_cup FROM table_name_36 WHERE other_[c_] = ""0 12 0 (0)""" Hello! Can you please show me a list of all of the school names for all schools that are not of the Public affiliation?,SELECT School FROM university WHERE affiliation ! = 'Public' how many wins did pitcher jon matlack category:articles with hcards achieve,"SELECT COUNT(wins) FROM table_19864214_3 WHERE pitcher = ""Jon Matlack Category:Articles with hCards""" Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?,"SELECT location_attendance FROM table_17323092_8 WHERE high_assists = ""Anthony Parker (7)""" "how many episodes originally aired january19,2013","SELECT COUNT(no_in_series) FROM table_29196086_4 WHERE original_air_date = ""January19,2013""" What is the country of the player whose score is 71-69-70-69=279?,SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 69 = 279 What are the names of all schools that have students trying out for the position of goal and 'mid'-field.,SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid' What film won best actress at the 2007 Inside Soap Awards?,"SELECT film_or_series FROM table_name_39 WHERE award = ""inside soap awards"" AND category = ""best actress"" AND year = 2007" What are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?,"SELECT dimensions FROM table_298883_5 WHERE obverse = ""Kim Il-sung"" AND date_of_issue = ""1992""" Please list the birth date of the player who has won the most MVPs.,"SELECT T1.birthDate FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Most Valuable Player' GROUP BY T1.playerID, T1.birthDate ORDER BY COUNT(award) DESC LIMIT 1" "What model has a launch of September 3, 2010?","SELECT model FROM table_26040604_1 WHERE launch = ""September 3, 2010""" "What is the title of the episode written by denis leary, peter tolan and evan reilly?","SELECT title FROM table_10610087_3 WHERE written_by = ""Denis Leary, Peter Tolan and Evan Reilly""" Show member names without any registered branch.,SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch) What is the team name for Chungju?,"SELECT team FROM table_name_11 WHERE city = ""chungju""" "Return the famous titles of the artist called ""Triumfall"".","SELECT Famous_Title FROM artist WHERE Artist = ""Triumfall""" The tko (doctor stoppage) method was used in a loss against which opponent?,"SELECT opponent FROM table_name_11 WHERE method = ""tko (doctor stoppage)"" AND res = ""loss""" how many county id in the county table,SELECT count ( County_Id ) FROM county What are the tracks that Dean Peeters bought?,"SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = ""Daan"" AND T4.last_name = ""Peeters"";" What is the Country of the Play Electra?,"SELECT country FROM table_name_60 WHERE play = ""electra""" How many Catholic legislators do not have an account on ballotpedia.org?,SELECT COUNT(bioguide_id) FROM historical WHERE religion_bio = 'Catholic' AND ballotpedia_id IS NULL What are the addresses of customers living in Germany who have had an invoice?,"SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Germany""" How many total draws was played less than 18 with 11 losts?,SELECT SUM(draw) FROM table_name_2 WHERE lost = 11 AND played < 18 Provide the title of the movie that is most-liked by a large number of people.,SELECT title FROM movie ORDER BY popularity DESC LIMIT 1 Find the name and revenue of the company that earns the highest revenue in each city.,"SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter" How often is the cricket competition held?,"SELECT held_every FROM table_name_97 WHERE sport = ""cricket""" What is Subway's rating?,SELECT Rating FROM Restaurant where ResName = 'Subway' Which industry has a company with a market value of 80.3 billion? ,"SELECT industry FROM table_1682026_6 WHERE market_value__billion_$_ = ""80.3""" "Based on the data shown at Target, what percentage of countries are non-Christian?",SELECT 100 - (CAST(SUM(CASE WHEN Target = 'Christian' THEN 1 ELSE 0 END) AS REAL)) * 100 / COUNT(Country) FROM target What are the distinct names and phone numbers for suppliers who have red jeans?,"SELECT DISTINCT T1.supplier_name , T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = ""red jeans""" What is the IATA when the ICAO is wipp?,"SELECT iata FROM table_name_52 WHERE icao = ""wipp""" "What is the number of Frequency MHz in woodstock, georgia?","SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = ""woodstock, georgia""" "Name all the authors for 'Sushi, Anyone?'.","SELECT T3.au_fname, T3.au_lname FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T1.title = 'Sushi, Anyone?'" What was the score on April 25?,"SELECT score FROM table_name_9 WHERE date = ""april 25""" How many gas station are opened between 2000 and 2005?,SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005 "Which Apollo Ltd customer's order number has the most expensive unit price, indicating the order date?","SELECT T1.OrderNumber, T1.OrderDate FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T2.`Customer Names` = 'Apollo Ltd' ORDER BY T1.`Unit Price` DESC LIMIT 1" What are the number of products that had problems?,SELECT count ( * ) FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id What nation has more than 0 silver medals and is ranked 1?,"SELECT nation FROM table_name_27 WHERE silver > 0 AND rank = ""1""" What is Paul Tracy's best time racing on the Forsythe Racing team?,"SELECT best FROM table_name_62 WHERE team = ""forsythe racing"" AND name = ""paul tracy""" * I have left the chat *,SELECT * FROM airlines WHERE name LIKE 'Private%' Find the names of all instructors in Comp. Sci. department with salary > 80000.,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 What's the series number of the episode seen by 9.35 million people in the US?,"SELECT MIN(no_in_series) FROM table_19401346_1 WHERE us_viewers__millions_ = ""9.35""" What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?,"SELECT MAX(T1.HS), pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos" What is the Location of the Moulin Bertrand Mill?,"SELECT location FROM table_name_23 WHERE name_of_mill = ""moulin bertrand""" What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?,"SELECT COUNT(total) FROM table_name_1 WHERE host_city = ""mexico city"" AND gold < 4 AND bronze < 2" What date final has 1982 as the year?,"SELECT date_final FROM table_name_59 WHERE year = ""1982""" "How much silver does the rank have that has gold smaller than 4, and a total of 1 and a rank larger than 6?",SELECT SUM(silver) FROM table_name_34 WHERE gold < 4 AND total = 1 AND rank > 6 In what county did 29231 people vote for Kerry?,SELECT county FROM table_1304443_2 WHERE kerry_number = 29231 What was the score in the final played with Fred McNair as partner?,"SELECT score_in_the_final FROM table_2820584_3 WHERE partner = ""Fred McNair""" What is the lowest enrollment value out of the enrollment values I'd the schools with a 3A WIAA clarification? ,"SELECT MIN(enrollment) FROM table_1414702_3 WHERE wiaa_classification = ""3A""" "Return the characters for actors, ordered by age descending.",SELECT Character FROM actor ORDER BY age DESC What is the report status of the race with Ferrari as the constructor and a monza circuit?,"SELECT report FROM table_name_92 WHERE constructor = ""ferrari"" AND circuit = ""monza""" "List the maximum, minimum and average number of used kb in screen mode.","SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;" Name the date of vacancy for manuel pellegrini,"SELECT date_of_vacancy FROM table_22640051_3 WHERE outgoing_manager = ""Manuel Pellegrini""" "From 1/9/2011 to 8/29/2012, how many German patients have their outpatient encounters?",SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.ethnicity = 'german' AND T2.DATE BETWEEN '2011-01-09' AND '2012-08-29' AND T2.DESCRIPTION = 'Outpatient Encounter' "Among the students that have a payment due, how many students are unemployed?",SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.bool = 'pos' Tell me the round of 32 for conference of southland,"SELECT round_of_32 FROM table_name_62 WHERE conference = ""southland""" Name the date for richmond,"SELECT date FROM table_16387700_1 WHERE away_team = ""Richmond""" List the names of phones that are not on any market.,SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market) Write down the number of running business with each review count in Cave Creek city.,"SELECT SUM(CASE WHEN review_count = 'High' THEN 1 ELSE 0 END) AS high , SUM(CASE WHEN review_count = 'Medium' THEN 1 ELSE 0 END) AS Medium , SUM(CASE WHEN review_count = 'Low' THEN 1 ELSE 0 END) AS low FROM Business WHERE city = 'Cave Creek' AND active = 'true'" When did the person born on 3 May 1446 cease to be countess?,"SELECT ceased_to_be_countess FROM table_name_19 WHERE birth = ""3 may 1446""" What was the date when the location was Zandvoort?,"SELECT date FROM table_name_72 WHERE location = ""zandvoort""" What away team scored 107-104?,"SELECT away_team FROM table_name_84 WHERE score = ""107-104""" What's the D 48 √ when the D 40 √ is D 37?,"SELECT d_48_√ FROM table_name_97 WHERE d_40_√ = ""d 37""" Which organisation type hires most research staff ?,SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count ( * ) DESC LIMIT 1 What is the best rank of losers across all matches?,SELECT min(loser_rank) FROM matches Where is the track located with 18 turns?,"SELECT track FROM table_name_34 WHERE turns = ""18""" What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0?,"SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = ""89.0""" "How many movies directed by Francis Ford Coppola have a popularity of more than 1,000? Indicate what is the highest amount of likes that each critic per movie has received, if there's any.","SELECT COUNT(T2.movie_title), T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Francis Ford Coppola' AND T2.movie_popularity > 1000" Who are the rowers with a time of 6:41.45 and notes of FA?,"SELECT rowers FROM table_name_33 WHERE notes = ""fa"" AND time = ""6:41.45""" What is the highest number of laps when the Time/Retired is differential?,"SELECT MAX(laps) FROM table_name_76 WHERE time_retired = ""differential""" What is the contract length when rejected is the status?,"SELECT contract_length FROM table_name_55 WHERE status = ""rejected""" Which different movies from France got the least ratings?,SELECT DISTINCT T1.movieid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'France' AND T1.rating = 1 how many high assists with record being 15-11,"SELECT COUNT(high_assists) FROM table_13762472_4 WHERE record = ""15-11""" Which frequency has voltage of 1.6v and part number kp80524kx300256kc80524kx300256pmg30002002aa?,"SELECT frequency FROM table_name_64 WHERE voltage = ""1.6v"" AND part_number_s_ = ""kp80524kx300256kc80524kx300256pmg30002002aa""" "How many Picks have an Overall smaller than 304, and a Position of g, and a Round smaller than 11?","SELECT COUNT(pick) FROM table_name_86 WHERE overall < 304 AND position = ""g"" AND round < 11" What is the WPW freq with a day power of 250?,"SELECT SUM(freq) FROM table_name_55 WHERE owner = ""wpw"" AND day_power___w__ > 250" "In New Zealand, what's the value that has an unknown date and is an energy business?","SELECT value___usd__ FROM table_name_70 WHERE date = ""unknown"" AND business = ""energy"" AND country = ""new zealand""" "What year did the school from mars hill, north carolina join?","SELECT joined FROM table_11658094_3 WHERE location = ""Mars Hill, North Carolina""" Where was the 2011-2012 soccer state tournament held?,"SELECT 2011 AS _2012_state_tournament_location FROM table_2849652_2 WHERE sport = ""Soccer""" What is the episode number where Jim Sweeney was performer 1 and Mike Mcshane was performer 4?,"SELECT SUM(episode) FROM table_name_25 WHERE performer_1 = ""jim sweeney"" AND performer_4 = ""mike mcshane""" "Which category has more app users, Securities or Finance?","SELECT IIF(SUM(IIF(T2.category = 'Securities', 1, 0)) - SUM(IIF(T2.category = 'Finance', 1, 0)) > 0, 'Securities', 'Finance') AS diff FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id" "What is the title of the episode originally aired on February 2, 2008?","SELECT title FROM table_name_65 WHERE original_airdate = ""february 2, 2008""" What are the first and last names of all customers with more than 2 payments?,"SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2;" "Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.","SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title" what is the total number of coach where captain is grant welsh and win/loss is 5-15,"SELECT COUNT(coach) FROM table_1165048_1 WHERE captain = ""Grant Welsh"" AND win_loss = ""5-15""" Show the movie titles and book titles for all companies in China.,"SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'" Which Television service has a Content of general television?,"SELECT television_service FROM table_name_49 WHERE content = ""general television""" Hmmm. Please tell me what is the lowest balance in the savings account.,select min ( balance ) from SAVINGS What is the democratic seat plurality with 29% democrat?,"SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = ""29%""" "Please list the business ID of the Yelp_Business with the highest Elitestar rating under the category ""Food"".",SELECT T2.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Food' ORDER BY T3.stars DESC LIMIT 1 What is Argentina's language?,"SELECT language FROM table_name_41 WHERE country = ""argentina""" List the official name and status of the city with the largest population.,"SELECT Official_Name , Status FROM city ORDER BY Population DESC LIMIT 1" What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?,"SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = ""skyteam (2012)""" "Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump?","SELECT best_jump FROM table_name_48 WHERE jump_1 = ""x"" AND jump_2 = ""7.28""" How many draw games happened on 2018/8/7 for National League?,SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'National League' AND T1.Date = '2018-08-07' AND T1.FTR = 'D' Please list the current official YouTube usernames of all the current female legislators.,SELECT T2.youtube FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.gender_bio = 'F' "Which tracks were opened after year 2000? | Here are the ids for tracks that were opened after year 2000, including 2 and 6. | What are their names?",SELECT name FROM track WHERE year_opened > 2000 "Which Competition has a 2nd round score of 1:0, 0:1 (4:3 a.p.)?","SELECT competition FROM table_name_71 WHERE round = ""2nd round"" AND score = ""1:0, 0:1 (4:3 a.p.)""" How many departments are there total?,SELECT count ( distinct dept_code ) FROM professor Which NFL team picked a player for the Wide Receiver position?,"SELECT nfl_team FROM table_name_19 WHERE position = ""wide receiver""" What are all the different start station names for a trip that lasted less than 100?,SELECT DISTINCT start_station_name FROM trip WHERE duration < 100 Who was the home team when the away team was Telford United?,"SELECT home_team FROM table_name_74 WHERE away_team = ""telford united""" Find the zip code in which the average mean visibility is lower than 10.,SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles) < 10 What United States player holds the place of t8?`,"SELECT player FROM table_name_57 WHERE place = ""t8"" AND country = ""united states""" What is the date where Guatemala is the Away team?,"SELECT date FROM table_name_44 WHERE away_team = ""guatemala""" When was the first asset acquired?,SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1 What is the minimum number of bypass ports listed?,SELECT MIN(bypass_ports) FROM table_16731248_1 What are the names and ages of every person who is a friend of both Dan and Alice?,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'" "How many matches were there in May, 2008?","SELECT COUNT(Match_Id) FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'" "Of all the divisions in the world, what percentage of them belong to England?",SELECT CAST(COUNT(CASE WHEN country = 'England' THEN division ELSE NULL END) AS REAL) * 100 / COUNT(division) FROM divisions What is the birthday of the staff member with first name as Janessa and last name as Sawayn?,"SELECT date_of_birth FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" Which cities have 2 to 4 parks?,SELECT city FROM park GROUP BY city HAVING COUNT(*) BETWEEN 2 AND 4 What is the shipping company for order number 10558?,SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.OrderID = 10558 whose source and destination airports are in the United States | Do you want the id of the routes whose source and destination airports are in the United States? | Yes,SELECT rid FROM routes WHERE dst_apid IN ( SELECT apid FROM airports WHERE country = 'United States' ) AND src_apid IN ( SELECT apid FROM airports WHERE country = 'United States' ) Give the air carrier description of the flights that have an earlier arrival and departure.,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.ARR_DELAY < 0 AND T2.DEP_DELAY < 0 GROUP BY T1.Description How many stars on average does user no.3 give to Yelp_Business in Arizona?,SELECT AVG(T2.review_stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.state LIKE 'AZ' AND T2.user_id = 3 What is the largest payment amount?,SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 Which station has the greatest number of traims?,SELECT * FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count ( * ) DESC LIMIT 1 Indicate the name of all adventure games.,SELECT T2.game_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name = 'Adventure' Who is the founder of Creative Labs?,"SELECT Founder FROM manufacturers where name = ""Creative Labs""" What is the q1+q2 time in which q1 is 1:18.574?,"SELECT q1 + q2_time FROM table_1924975_1 WHERE q1_time = ""1:18.574""" Which business ID has the most reviews?,SELECT business_id FROM Reviews GROUP BY business_id ORDER BY COUNT(user_id) DESC LIMIT 1 What is the Notes of the Frequency with Format of talk radio?,"SELECT notes FROM table_name_63 WHERE format = ""talk radio""" Show the type of school and the number of buses for each type.,"SELECT T2.type , count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type" How many poker players are there?,SELECT count(*) FROM poker_player What engine does Galles Racing use?,"SELECT engine FROM table_15736385_1 WHERE team = ""Galles Racing""" What are the profits (in billions) where the assets are 192.8 billion?,"SELECT profits__billion_$_ FROM table_1682026_3 WHERE assets__billion_$_ = ""192.8""" Show different locations of railways along with the corresponding number of railways at each location.,"SELECT LOCATION , COUNT(*) FROM railway GROUP BY LOCATION" "What are the last names of the author of the paper titled ""Binders Unbound""?","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Binders Unbound""" What is the number of routes operated by the airline American Airlines whose destinations are in Italy?,SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' How large was the crowd when the away team was melbourne?,"SELECT crowd FROM table_name_77 WHERE away_team = ""melbourne""" Which are the male artists?,"SELECT * FROM artist WHERE gender = ""Male""" What is the lowest number in the Labour Party for the Fianna Fail higher than 5?,SELECT MIN(labour_party) FROM table_name_16 WHERE fianna_fáil > 5 What was the attendance and location on December 15?,"SELECT location_attendance FROM table_17326036_6 WHERE date = ""December 15""" Who is the incumbent first elected in 1944?,SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944 "From the total amount of donation to projects, what is the percentage of the amount is for school projects located in the rural area?",SELECT CAST(SUM(CASE WHEN T2.school_metro = 'rural' THEN T1.donation_to_project ELSE 0 END) AS REAL) * 100 / SUM(donation_to_project) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid What is the team and starting year for each technician?,"SELECT Team , Starting_Year FROM technician" Which allergy type is the least common?,SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1 What is the FSB / HT (MHz) when the Southbridge is amd-8131 amd-8132?,"SELECT fsb___ht__mhz_ FROM table_name_50 WHERE southbridge = ""amd-8131 amd-8132""" How many years does Team wal-mart / tide participate?,"SELECT COUNT(year) FROM table_name_94 WHERE team = ""wal-mart / tide""" What person was the runner-up skip when Julie Reddick was the winning skip?,"SELECT runner_up_skip FROM table_name_61 WHERE winning_skip = ""julie reddick""" "If a married employee has a western name style, what is the probability of him or her working as a store contact?","SELECT CAST(COUNT(IIF(T1.PersonType = 'SC', T1.PersonType, NULL)) AS REAL) / COUNT(T1.PersonType) FROM Person AS T1 INNER JOIN Employee AS T2 WHERE T1.PersonType = 'SC' AND T1.NameStyle = 0 AND T2.MaritalStatus = 'M'" Which Date has a Partner of daniella dominikovic?,"SELECT date FROM table_name_33 WHERE partner = ""daniella dominikovic""" What Date did the Home team play in essendon?,"SELECT date FROM table_name_48 WHERE home_team = ""essendon""" what is the notes for the time 6:05.21?,"SELECT notes FROM table_name_77 WHERE time = ""6:05.21""" "In which distinct years was the governor ""Eliot Spitzer""?","SELECT DISTINCT YEAR FROM party WHERE Governor = ""Eliot Spitzer""" What date did the episode with Andy Murray as Jamie and John's guest first broadcast?,"SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = ""Andy Murray""" What are the id and the amount of refund of the booking that incurred the most times of payments?,"SELECT T1.booking_id , T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1" How many gp-gs have 121.70 as an effic and an avg/g less than 218.7?,"SELECT COUNT(gp_gs) FROM table_name_41 WHERE effic = ""121.70"" AND avg_g < 218.7" How many singles were released in 1979?,SELECT COUNT(releaseType) FROM torrents WHERE releaseType LIKE 'single' AND groupYear = 1979 What is the First elected of california 3?,"SELECT first_elected FROM table_name_55 WHERE district = ""california 3""" What's the sum of asts for boston college with a rebs over 63?,"SELECT SUM(asts) FROM table_name_35 WHERE school_country = ""boston college"" AND rebs > 63" Show the denomination shared by schools founded before 1890 and schools founded after 1900,SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900 Who is the champion of the 1994 season?,SELECT champion FROM table_2527617_1 WHERE season = 1994 Which procedure has the highest cost? | Do you mean the name of the procedure that has the highest cost? | Yes. What is the name of the procedure that has the highest cost?,SELECT Name FROM procedures order by cost desc limit 1 "From 1980 to 2000, which artist had the most disco releases?",SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 1980 AND 2000 AND T2.tag LIKE 'disco' GROUP BY T1.artist ORDER BY COUNT(T2.tag) DESC LIMIT 1 When was Maat born?,"SELECT dob FROM table_name_44 WHERE surname = ""maat""" Find the titles of items that received both a rating higher than 8 and a rating below 5.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 Which position has 45 picks?,SELECT position FROM table_name_54 WHERE pick__number = 45 How much in total has customer with first name as Carole and last name as Bernhard paid?,"SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Carole"" AND T2.last_name = ""Bernhard""" What are the average and minimum age of captains in different class?,"SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS" "What are the names of all the teams in the basketball competition, sorted by all home scores in descending order?",SELECT team_name FROM basketball_match ORDER BY All_Home DESC What are the top 10 countries with the highest invoice size along with their amount?,"SELECT billing_country , total FROM invoices ORDER BY total DESC LIMIT 10" "What is Date, when Outcome is ""Runner Up"", and when Opponent is ""Lu Jiaxiang""?","SELECT date FROM table_name_91 WHERE outcome = ""runner up"" AND opponent = ""lu jiaxiang""" What was the lowest postion of ehc straubing ii when they played less than 10 games?,"SELECT MIN(position) FROM table_name_70 WHERE name = ""ehc straubing ii"" AND played < 10" What is the largest gold when silver is less than 1 for Canada and bronze is less than 0?,"SELECT MAX(gold) FROM table_name_48 WHERE silver < 1 AND nation = ""canada"" AND bronze < 0" List all the Catalan language wikipedia page title with less than 10 number of different words in these pages.,SELECT title FROM pages WHERE words < 10 "How many 5K wins did Emily Chebet, who had more than 2 total, have?","SELECT COUNT(5 AS k_wins) FROM table_name_80 WHERE runner = ""emily chebet"" AND total > 2" Return each apartment type code along with the maximum and minimum number of rooms among each type.,"SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code" What is the birthplace of Aaron Gagnon?,SELECT birthplace FROM PlayerInfo WHERE PlayerName = 'Aaron Gagnon' "How many donations does the project ""Look, Look, We Need a Nook!"" have?","SELECT SUM(T3.donation_total) FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Look, Look, We Need a Nook!'" "How many movies were produced by ""Eddie Murphy Productions""?",SELECT COUNT(T1.movie_id) FROM movie_company AS T1 INNER JOIN production_company AS T2 ON T1.company_id = T2.company_id WHERE T2.company_name = 'Eddie Murphy Productions' Which region is the city Kabul located in?,"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = ""Kabul""" What is the name of tracks whose genre is Rock?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"";" Find the names of users who do not have a first notification of loss record.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id How many years has Zach been friends with Alice?,"SELECT year from personfriend where friend = ""Alice"" and name = ""Zach""" "For the team that Scotty Bowman coached in 1982, how many bench minor penalties did they have that year?",SELECT T2.BenchMinor FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T3.firstName = 'Scotty' AND T3.lastName = 'Bowman' AND T1.year = 1982 What is the D 46 √ with a D 43 √ with r 3?,"SELECT d_46_√ FROM table_name_2 WHERE d_43_√ = ""r 3""" What is the transaction ratio being made at Sac State American River Courtyard and Sac State Union?,SELECT CAST(COUNT(CASE WHEN T2.LocationName = 'Sac State American River Courtyard' THEN T1.TransactionID ELSE NULL END) AS REAL) * 100 / COUNT(CASE WHEN T2.LocationName = 'Sac State Union' THEN T1.TransactionID ELSE NULL END) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID "Which Home team has a Score of 0–1, and an Away team of tottenham hotspur?","SELECT home_team FROM table_name_77 WHERE score = ""0–1"" AND away_team = ""tottenham hotspur""" "Which Player has a height of 6-10, and went to College at LSU?","SELECT player FROM table_name_66 WHERE height = ""6-10"" AND college = ""lsu""" Find the titles of all the albums of the artist AC/DC?,"SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""AC/DC""" What percentage of the border does Angola share with each of the countries with which it borders?,SELECT SUM(CASE WHEN T2.Name = 'Angola' THEN T1.Length ELSE 0 END) * 100 / SUM(T1.Length) FROM borders AS T1 LEFT JOIN country AS T2 ON T1.Country1 = T2.Code What was the rank when then time was 7:52.53?,"SELECT MIN(rank) FROM table_name_10 WHERE time = ""7:52.53""" what team has the qual 2 of 1:44.050?,"SELECT best FROM table_name_9 WHERE qual_2 = ""1:44.050""" How many farms are there?,SELECT count(*) FROM farm How large was the crowd at Glenferrie Oval?,"SELECT SUM(crowd) FROM table_name_98 WHERE venue = ""glenferrie oval""" Show the ids for projects with at least 2 documents.,SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2 Which 2006 has a 2007 of A?,"SELECT 2006 FROM table_name_98 WHERE 2007 = ""a""" How much longer in percentage is the screen time of the most important character in Batman than the least important one?,"SELECT (MAX(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL)) - MIN(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL))) * 100 / MIN(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL)) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Batman'" What is the average price of all hardware products?,SELECT avg ( product_price ) FROM products WHERE product_type_code = 'Hardware' "Among all the orders made by a customer in the household segment, what is the highest total price?",SELECT MAX(T1.o_totalprice) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'HOUSEHOLD' What is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way?,"SELECT MAX(points_gained) FROM table_name_57 WHERE fans_took = ""907"" AND miles_[one_way] > 44.9" Which district is the community area Lincoln Square grouped into?,SELECT side FROM Community_Area WHERE community_area_name = 'Lincoln Square' What is the Socket when the Part Number(s) is rk80530pz001256?,"SELECT socket FROM table_name_5 WHERE part_number_s_ = ""rk80530pz001256""" What are the names of all the stores located in Khanewal District?,"SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = ""Khanewal District""" "Among the car models introduced in the market in 1970, how many of them have the USA as their origin country?",SELECT COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T1.model_year = 1970 AND T2.country = 'USA' How many ships ended up being 'Captured'?,SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured' "What is the most common company type, and how many are there?","SELECT TYPE , count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" WHEN has a Result of w 23–17?,"SELECT date FROM table_name_96 WHERE result = ""w 23–17""" What are the first names of all teachers who have taught a course and the corresponding course codes?,"SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num" What is the population of African in 'Turks and Caicos Islands'?,SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' AND T1.Name = 'Turks and Caicos Islands' Name the record for kentucky,"SELECT record FROM table_22847880_2 WHERE opponent = ""Kentucky""" Which building has a room with highest capacity?,select building from classroom order by capacity desc limit 1 "Find the personal name, family name, and author ID of the course author that teaches the most courses.","SELECT T1.personal_name , T1.family_name , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1" What was the playoff result for the team name of bay area seals,"SELECT playoffs FROM table_1427998_1 WHERE team_name = ""Bay Area Seals""" What is the sname of every sing that does not have any song?,SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song) What is the quantity of the closed or not running Yelp Businesses in 'AZ'?,SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND active LIKE 'False' Which Floors is the highest one that has a Name of one indiana square?,"SELECT MAX(floors) FROM table_name_84 WHERE name = ""one indiana square""" List by ID all sales teams that have sold products at a 10% discount in store.,SELECT DISTINCT T FROM ( SELECT CASE WHEN `Discount Applied` = '0.1' AND `Sales Channel` = 'In-Store' THEN _SalesTeamID ELSE NULL END AS T FROM `Sales Orders` ) WHERE T IS NOT NULL "Indicate category name of soft drinks, coffees, teas, beers, and ales in description list.","SELECT CategoryName FROM Categories WHERE Description = 'Soft drinks, coffees, teas, beers, and ales'" "What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)?","SELECT tournament_location FROM table_name_81 WHERE margin_of_victory = ""1 stroke"" AND purse___$__ = ""1,200,000""" Name the county that has the bad alias of Druid Hills.,SELECT T2.county FROM avoid AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Druid Hills' "Which coach was the first one to teach the Montreal Canadiens, please give his first name.",SELECT T3.firstName FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Montreal Canadiens' ORDER BY T1.year LIMIT 1 What is the least amount of people that attended a game when Essendon was the away team?,"SELECT MIN(crowd) FROM table_name_83 WHERE away_team = ""essendon""" Who is in November in the year 1979?,SELECT november FROM table_name_36 WHERE year = 1979 Show the status shared by cities with population bigger than 1500 and smaller than 500.,SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500 What is the name of the youngest player?,SELECT Player_Name FROM Player ORDER BY DOB DESC LIMIT 1 "Ok, show me the username of an unpopular user.","SELECT user_name FROM users where user_name not in ( SELECT user_name FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 ) " Can you list the document type code associated with that document description?,SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%' "What is the format for July 27, 1994?","SELECT format FROM table_name_94 WHERE date = ""july 27, 1994""" "What is City, when State is Florida, when AAM Member is No, and when AAM Accredited is No?","SELECT city FROM table_name_61 WHERE state = ""florida"" AND aam_member = ""no"" AND aam_accredited = ""no""" How many poles were there in season 2000?,SELECT poles FROM table_20396_1 WHERE season = 2000 What does DeShawn Stevenson weigh?,"SELECT SUM(weight) FROM table_name_52 WHERE player = ""deshawn stevenson""" When did the person born 24 September 1851 pass away?,"SELECT date_of_death FROM table_name_66 WHERE date_of_birth = ""24 september 1851""" Who is the heaviest athlete?,SELECT full_name FROM person ORDER BY weight DESC LIMIT 1 "What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?","SELECT date FROM table_name_62 WHERE description = ""undergoing overhaul, restoration or repairs""" How many problems are there for product voluptatem?,"SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = ""voluptatem""" what is the invoice date of customer id 2,select invoice_date from invoices where customer_id = 2 Which tournament ended with a winning score of –27 (65-68-64-64=261)?,SELECT tournament FROM table_name_16 WHERE winning_score = –27(65 - 68 - 64 - 64 = 261) What are the lot details associated with these lot ids?,"SELECT T1.lot_id, T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50" What is the status of vessel number K-223?,"SELECT status FROM table_1634376_1 WHERE _number = ""K-223""" How many members does each club have?,"SELECT clubId, count ( StuId ) from Member_of_club group by clubId" In which country is the city of Grozny? Give the full name of the country.,SELECT T1.Name FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Grozny' What is the # when u.s. viewers (million) is 17.44?,"SELECT COUNT(_number) FROM table_22904752_1 WHERE us_viewers__million_ = ""17.44""" Show different type codes of products and the number of products with each type code.,"SELECT Product_Type_Code , COUNT(*) FROM Products GROUP BY Product_Type_Code" "How many lanes have a Nationality of france, and a Rank larger than 8?","SELECT SUM(lane) FROM table_name_92 WHERE nationality = ""france"" AND rank > 8" Show all allergy types.,SELECT DISTINCT allergytype FROM Allergy_type Which team had the most players in the all star games?,SELECT * FROM all_star GROUP BY team_id ORDER BY count ( * ) DESC LIMIT 1 What is the constructor where the circuit is Silverstone?,"SELECT constructor FROM table_name_8 WHERE circuit = ""silverstone""" What was the score in the episode with john barrowman and vic reeves on sean's team?,"SELECT scores FROM table_23292220_4 WHERE seans_team = ""John Barrowman and Vic Reeves""" Which building does the instructor who teaches the most number of courses live in?,SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 1 How much attendance has a Loss of roloson (11–5)?,"SELECT SUM(attendance) FROM table_name_70 WHERE loss = ""roloson (11–5)""" "What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria?","SELECT going_to FROM table_18365784_3 WHERE calling_at = ""Boston, Sleaford, Nottingham Victoria""" Week of 7 had what average attendance?,SELECT AVG(attendance) FROM table_name_57 WHERE week = 7 What December is 8.77 in January ,"SELECT december FROM table_15945862_1 WHERE january = ""8.77""" "How many number of site have May 1, 2004 as the date?","SELECT COUNT(site) FROM table_22098274_1 WHERE date = ""May 1, 2004""" how many countries are participated?,SELECT count ( distinct country ) from match_season Find the first name of student who is taking classes from accounting and Computer Info. Systems departments,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' "Tell me the title for japan august 23, 2012","SELECT title FROM table_name_30 WHERE japan = ""august 23, 2012""" What was the venue after 2012?,SELECT venue FROM table_name_4 WHERE year > 2012 "How many products were supplied by Pavlova, Ltd.?","SELECT COUNT(T1.ProductName) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Pavlova, Ltd.'" Please list the titles of all the books that Lucas Wyldbore has ordered.,SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Lucas' AND T4.last_name = 'Wyldbore' What neon has a krypton of 213?,"SELECT neon FROM table_name_61 WHERE krypton = ""213""" What is the most points when the goals against are 354 and games less than 82?,SELECT MAX(points) FROM table_name_49 WHERE goals_against = 354 AND games < 82 "Which Mission has a Launch Date of december 30, 1970; 14:50 gmt?","SELECT mission FROM table_name_47 WHERE launch_date = ""december 30, 1970; 14:50 gmt""" What is the average fee on a CSU campus in 2005?,SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005 "Provide case numbers, aldermen's full names, and district names of the crimes that happened in 0000X N FRANCISCO AVE.","SELECT T2.case_number, T3.alderman_first_name, T3.alderman_last_name, T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN Ward AS T3 ON T2.ward_no = T3.ward_no WHERE T2.block = '0000X N FRANCISCO AVE' GROUP BY T2.case_number, T3.alderman_first_name, T3.alderman_last_name, T1.district_name" Which states have both owners and professionals living there?,SELECT state FROM Owners INTERSECT SELECT state FROM Professionals Could you narrow it down to just the names of instructors who are advisors to students from the Math department?,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' Can you please get me the types of those schools?,SELECT TYPE FROM school WHERE school_id NOT IN ( SELECT school_id FROM school_bus ) Can you tell me the average number of rooms for each apartment type code?,"SELECT apt_type_code, avg ( room_count ) FROM Apartments GROUP BY apt_type_code" Could you list the project details of the projects launched by the most popular organization?,SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count ( * ) DESC LIMIT 1 ) Find the year that has the most number of matches.,SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 "What is the name of the team with round less than 2, and the nationality is the United States?","SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = ""united states""" Which position is player bernie doan?,"SELECT position FROM table_22402438_7 WHERE player = ""Bernie Doan""" What was the date of the Paco Rabanne Open de France?,"SELECT date FROM table_name_95 WHERE tournament = ""paco rabanne open de france""" How many floors does the building on 800 Boylston Street have?,"SELECT MAX(floors) FROM table_name_52 WHERE street_address = ""800 boylston street""" What is the power output for class 5?,SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5 How many entries feature a year built of 2010?,SELECT COUNT(total) FROM table_name_24 WHERE year_built = 2010 What is the label that has the most albums?,SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1 Can you tell me the location code with the most documents?,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count ( * ) DESC LIMIT 1 "What is the median household income where the per capita is $28,789?","SELECT median_household_income FROM table_name_27 WHERE per_capita_income = ""$28,789""" "Provide the number of students enrolled in the ""Statistical Learning"" course.",SELECT COUNT(T2.student_id) FROM course AS T1 INNER JOIN registration AS T2 ON T1.course_id = T2.course_id WHERE T1.name = 'Statistical learning' What was the type that had an award for song of the year and the position of 3rd place?,"SELECT type FROM table_name_1 WHERE award = ""song of the year"" AND position = ""3rd place""" "WHat was the result of the friendly match that was played on october 8, 2012?","SELECT result FROM table_name_6 WHERE competition = ""friendly match"" AND date = ""october 8, 2012""" What is the 1989 value with F in 1990?,"SELECT 1989 FROM table_name_95 WHERE 1990 = ""f""" What is the Week of the game against Green Bay Packers?,"SELECT AVG(week) FROM table_name_71 WHERE opponent = ""green bay packers""" Count the number of voting records for each election cycle.,"SELECT Election_Cycle , count(*) FROM VOTING_RECORD GROUP BY Election_Cycle" what is their id?,SELECT T1.id FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1 "How many papers are published under the conference ""Mathematics of Program Construction ""?",SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'Mathematics of Program Construction' What is employee named Nancy Andrews phone number?,"SELECT phone FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Andrews""" "What is Total, when FA Cup is 1 0 (3)?","SELECT total FROM table_name_77 WHERE fa_cup = ""1 0 (3)""" Which country did Johanna Klum presented the show?,"SELECT country FROM table_24598274_20 WHERE presenter_s_ = ""Johanna Klum""" "I want the constructor for winning driver of jim clark, pole position of graham hill and dutch grand prix","SELECT constructor FROM table_name_34 WHERE winning_driver = ""jim clark"" AND pole_position = ""graham hill"" AND race = ""dutch grand prix""" "Among the cases dismissed by the grand jury disposition, what percentage of cases is where the subject is injured?",SELECT CAST(SUM(subject_statuses = 'Injured') AS REAL) * 100 / COUNT(case_number) FROM incidents WHERE grand_jury_disposition = 'No Bill' What date is aston villa away?,"SELECT date FROM table_name_67 WHERE away_team = ""aston villa""" What is the format for Digital 94.9?,"SELECT format FROM table_name_73 WHERE brand = ""digital 94.9""" What was Jenson Button's constructor?,"SELECT constructor FROM table_name_13 WHERE driver = ""jenson button""" "Okay, which members are there? | Do you mean which members are in United States? | Yes. Which members are in the United States?","SELECT name FROM member WHERE Country = ""United States""" What is the pick number for the player from higher than round 3 and a PI GP bigger than 0?,SELECT pick__number FROM table_name_70 WHERE rd__number > 3 AND pl_gp > 0 What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze?,SELECT MIN(gold) FROM table_name_4 WHERE silver = 4 AND bronze > 4 What year was remark #104 us?,"SELECT year FROM table_name_58 WHERE remark = ""#104 us""" What is the number of races that took place with points of 257?,SELECT SUM(races) FROM table_name_28 WHERE points = 257 "What is the average year they finished 5th in santiago, chile?","SELECT AVG(year) FROM table_name_57 WHERE position = ""5th"" AND venue = ""santiago, chile""" How many international students attended Harvard University in 2012?,SELECT CAST(T2.num_students * T2.pct_international_students AS REAL) / 100 FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'Harvard University' AND T2.year = 2012 What units of measurement are used? | can you give more information about you question? | What unit of measurement is used for seeds category?,select unit_of_measure from Ref_Product_Categories where product_category_code = 'Seeds' "What was the score for the game that attendance was 70,721?","SELECT result FROM table_name_24 WHERE attendance = ""70,721""" What are asashio's years?,"SELECT years FROM table_name_31 WHERE name = ""asashio""" "Tell me the lowest closed for capacity of 62,439",SELECT MIN(closed) FROM table_name_34 WHERE capacity = 62 OFFSET 439 Thank you! Can you update that list with the professors' names?,"SELECT id, name FROM instructor WHERE id NOT IN ( SELECT id FROM teaches ) " "Calculate the image area of the page menu for the dish named ""Baked Stuffed Mullet & Sauce Pomard"". Please include the page number and image ID.","SELECT T1.full_height * T1.full_width, T1.page_number, T1.image_id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Baked Stuffed Mullet & Sauce Pomard'" "What is Championship, when Outcome is ""runner-up"", and when Opponents In Final is ""Gigi Fernández Natalia Zvereva""?","SELECT championship FROM table_name_55 WHERE outcome = ""runner-up"" AND opponents_in_final = ""gigi fernández natalia zvereva""" What is the average number of laps that were made when the race took a time of +48.325?,"SELECT AVG(laps) FROM table_name_89 WHERE time_retired = ""+48.325""" What date has ny islanders as the visitor?,"SELECT date FROM table_name_66 WHERE visitor = ""ny islanders""" What are the most wins in 1971 in 250cc class?,"SELECT MAX(wins) FROM table_name_11 WHERE class = ""250cc"" AND year = 1971" Can you please provide me with the phone number and email addresses of these five customers?,"SELECT T1.customer_phone, T1.customer_email FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id where T2.outcome_code = ""No Response""" What were the Points on December 13?,"SELECT MAX(points) FROM table_name_63 WHERE date = ""december 13""" what's the song title with artbeingt being pat boone,"SELECT song_title FROM table_13805432_2 WHERE artist = ""Pat Boone""" What was the attendance for the game when the challenge leader was at Big East (4-2)?,"SELECT MAX(attendance) FROM table_20540006_6 WHERE challenge_leader = ""Big East (4-2)""" Who had a to par of +2 and a score of 78-69-68=215?,"SELECT player FROM table_name_22 WHERE to_par = ""+2"" AND score = 78 - 69 - 68 = 215" "Find the average age of the members in the club ""Bootup Baltimore"".","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" What country is the show aired on TVNZ?,"SELECT country FROM table_14523485_9 WHERE channel = ""TVNZ""" Show the result of the submission with the highest score.,SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1 what is the average points when played is less than 16?,SELECT AVG(points) FROM table_name_55 WHERE played < 16 Which phones does TMobile support?,"SELECT name FROM phone where carrier = ""TMobile""" What is catcher Josh Donaldson's pick number?,"SELECT pick FROM table_name_11 WHERE position = ""catcher"" AND player = ""josh donaldson""" What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)?,"SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = ""69g (4g in high oleic variety)""" Name the high assists for december 14,"SELECT high_assists FROM table_15869204_5 WHERE date = ""December 14""" Which Top Division debut for Kitazakura has Tournaments less than 88?,"SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = ""kitazakura""" What are the name and the nationality of the host of the highest age?,"SELECT Name , Nationality FROM HOST ORDER BY Age DESC LIMIT 1" What is the highest possible discount rate for 'Excess Inventory'?,SELECT DiscountPct FROM SpecialOffer WHERE Type = 'Excess Inventory' ORDER BY DiscountPct DESC LIMIT 1 Which units are commanded by Lieutenant Colonel Francis Hepburn?,"SELECT unit FROM table_11793221_2 WHERE commander = ""Lieutenant Colonel Francis Hepburn""" "What is the customer first, last name and id with least number of accounts.","SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1" On what circuit was the iii Reims Grand Prix held?,"SELECT circuit FROM table_name_43 WHERE race_name = ""iii reims grand prix""" What's the IHSAA Football Class in Decatur with an AAA IHSAA class?,"SELECT ihsaa_football_class FROM table_name_78 WHERE ihsaa_class = ""aaa"" AND location = ""decatur""" "What time has a lane less than 5, with Poland as the nationality?","SELECT time FROM table_name_63 WHERE lane < 5 AND nationality = ""poland""" Find the ids of orders which are shipped after 2000-01-01.,"SELECT order_id FROM shipments WHERE shipment_date > ""2000-01-01""" Find the name of the storm that affected both Afghanistan and Albania regions.,SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania' What is the Government the has the Kadima Party?,"SELECT governments FROM table_name_23 WHERE party = ""kadima""" Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000,SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg ( total_amount_purchased ) > 50000 OR avg ( total_amount_purchased ) < 30000 "How many people have won the gold medal of the event ""Rowing Women's Coxed Eights""?",SELECT COUNT(T1.competitor_id) FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN medal AS T3 ON T1.medal_id = T3.id WHERE T2.event_name LIKE 'Rowing Women%s Coxed Eights' AND T3.medal_name = 'Gold' "What is the total number of Byes, when South West DFL is ""Coleraine"", and when Wins is less than 12?","SELECT COUNT(byes) FROM table_name_80 WHERE south_west_dfl = ""coleraine"" AND wins < 12" Who was the husband date that was married in 1858?,"SELECT husband_dates FROM table_name_54 WHERE date_married = ""1858""" What year did the term end for those elected in 1990,SELECT term_ended FROM table_1602620_1 WHERE elected = 1990 How many residents does each property have? List property id and resident count.,"SELECT T1.property_id , count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id" List all the solutions of repositories with the Forks higher than half of the watchers.,SELECT DISTINCT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > T1.Watchers / 2 How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6?,"SELECT SUM(total_produced) FROM table_name_13 WHERE wheel_arrangement = ""b-b"" AND prr_class = ""bs6"" AND builder’s_model = ""ds-4-4-660""" What are the contact number of customer id 3?,SELECT contact_number FROM Customer_Contact_Channels WHERE customer_id = 3 "Among the vendors that sell the product Hex Nut 5, how many of them have a good credit rating?",SELECT COUNT(DISTINCT T3.Name) FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Hex Nut 5' AND T3.CreditRating = 1 AND 3 What's the percentage of votes for Tom Horner according to the poll source that claimed 31% for Matt Entenza?,"SELECT tom_horner__i_ FROM table_20032301_3 WHERE matt_entenza__dfl_ = ""31%""" Please list out the first name and last name of player who attended California college and have been selected as all stars?,"SELECT DISTINCT T1.firstName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'California'" "If the constellation is Gemini, what is the spectral type?","SELECT spectral_type FROM table_1820752_1 WHERE constellation = ""Gemini""" Which Position has a School/Club Team of stanford?,"SELECT position FROM table_name_15 WHERE school_club_team = ""stanford""" What is the number of games for Shlomi Avrahami?,"SELECT COUNT(games) FROM table_name_75 WHERE name = ""shlomi avrahami""" Show name and distance for all aircrafts.,"SELECT name , distance FROM Aircraft" How many teams eliminated when 11 teams started?,"SELECT teams_that_have_been_eliminated FROM table_23995075_2 WHERE teams_started = ""11""" Where is the free fare zone for the Arena station?,"SELECT free_fare_zone FROM table_name_65 WHERE station_name = ""arena""" What is the full name of the client whose complaint on 2017/3/27 was received by MICHAL?,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.`Date received` = '2017-03-27' AND T2.server = 'MICHAL'" What are the total number of Wickets that ranger higher than 5?,SELECT COUNT(wickets) FROM table_name_22 WHERE rank > 5 Which category does BABY HALL film belong to?,SELECT T3.`name` FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.title = 'BABY HALL' "What is Tournament, when Date is ""6 April 1992""?","SELECT tournament FROM table_name_40 WHERE date = ""6 april 1992""" What is the email of the customers who place their orders with priority method?,SELECT T1.email FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T3.method_name = 'Priority' What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?,SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010 "What is Series, when Winner is Jetmir Salaj?","SELECT series FROM table_name_54 WHERE winner = ""jetmir salaj""" what are the life spans of representatives from New York?,"SELECT Lifespan FROM representative WHERE State = ""New York""" Find the name of the employee who got the highest one time bonus.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.,"SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'" What is the average attendance for a game against Phoenix?,"SELECT AVG(attendance) FROM table_name_16 WHERE visitor = ""phoenix""" "What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?","SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = ""ホタルノヒカリ""" How many percent of Bluefish dishes are located at the center of the menu page?,SELECT CAST(SUM(CASE WHEN T2.xpos BETWEEN 0.25 AND 0.75 AND T2.ypos BETWEEN 0.25 AND 0.75 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.id) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name LIKE '%BLuefish%' how many of the storms caused damage to at least two regions?,select count ( * ) from ( SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count ( * ) > = 2 ) "What is the status code, mobile phone number and email address of the customer with last name as Kohler or first name as Marina?","SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" Show the party with drivers from Hartford and drivers older than 40.,SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40 "What is European Release Date, when North American Release Date is ""2013-03-05""?","SELECT european_release_date FROM table_name_50 WHERE north_american_release_date = ""2013-03-05""" What is the name of the team from cisne fairfield school?,"SELECT team_name FROM table_name_84 WHERE schools = ""cisne fairfield""" When 48-30 is the record who has the highest amount of points?,"SELECT high_points FROM table_23286158_10 WHERE record = ""48-30""" Calculate the percentage of legislators who are not Senator and were born before 1975.,SELECT CAST(COUNT(CASE WHEN T2.class IS NULL THEN T1.bioguide_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bioguide_id) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE CAST(T1.birthday_bio AS DATE) <= 1975 "Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?","SELECT player FROM table_name_52 WHERE round > 5 AND school_club_team = ""bethune-cookman""" "Which Award has a nominated, and outstanding choreography?","SELECT award FROM table_name_92 WHERE result = ""nominated"" AND category = ""outstanding choreography""" can you filter out the results where count less than 4 and only show more than 4,"SELECT count ( document_structure_code ) , document_type_code FROM documents GROUP BY document_type_code HAVING count ( * ) > 4" What is the average age of all males?,SELECT avg ( age ) FROM Person WHERE gender = 'male' "Find the names of all the products whose stock number starts with ""2"".","SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE ""2%""" "How many authors is affiliated to the organization ""Otterbein University""?",SELECT COUNT(Name) FROM Author WHERE Affiliation = 'Otterbein University' What year was that school founded?,SELECT founded FROM university WHERE affiliation ! = 'Public' What is the Finish of 28 Wins?,"SELECT finish FROM table_name_8 WHERE wins = ""28""" What was the away team when the game was at Princes Park?,"SELECT away_team FROM table_name_12 WHERE venue = ""princes park""" how many customers are presented on the table,SELECT COUNT ( customer_id ) FROM Customers What is the date of attack of the Circe Shell Ship?,"SELECT date FROM table_name_55 WHERE name = ""circe shell""" Who was the CM winning team when the FM winning team was #17 Elva - Ford?,"SELECT cm_winning_team FROM table_29225103_2 WHERE fm_winning_team = ""#17 Elva - Ford""" How many settlements does each claim correspond to? List the claim id and the number of settlements.,"SELECT T1.Claim_id, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id" How many spectators attended the game on 11/09/1935?,"SELECT attendance FROM table_name_22 WHERE date = ""11/09/1935""" Find the states where have some college students in tryout and their decisions are yes.,SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' Which sales channel was most preferred in commercializing products in January 2020 based on the number of orders placed?,SELECT `Sales Channel` FROM `Sales Orders` WHERE OrderDate LIKE '1/%/20' GROUP BY `Sales Channel` ORDER BY COUNT(`Sales Channel`) DESC LIMIT 1 Show the maximum scores of the team Boston Red Stockings when the team won in postseason?,SELECT max ( T1.wins ) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' "What team was the lower when the winner was the new york jets, and a Year earlier than 1994, and a Result of 37–13?","SELECT loser FROM table_name_98 WHERE winner = ""new york jets"" AND year < 1994 AND result = ""37–13""" Please list the id and detailed position of all stores in Birmingham city.,"SELECT StoreID, Latitude, Longitude FROM `Store Locations` WHERE `City Name` = 'Birmingham'" "What are the names of departments either in division AS, or in division EN and in building NEB?","SELECT DName FROM DEPARTMENT WHERE Division = ""AS"" UNION SELECT DName FROM DEPARTMENT WHERE Division = ""EN"" AND Building = ""NEB""" "Which employees have the role with code ""HR""? Find their names.","SELECT employee_name FROM Employees WHERE role_code = ""HR""" Show me the train number of all trains that go to Chennai,SELECT train_number FROM train WHERE destination = 'Chennai' Which name has an Area of kennedy bay?,"SELECT name FROM table_name_50 WHERE area = ""kennedy bay""" How many orders does Lucas Mancini has?,"SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";" Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.,"SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )" "List the violation type ID of business with business ID from 30 to 50 and located at 747 IRVING St, San Francisco.",SELECT DISTINCT T1.violation_type_id FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.business_id BETWEEN 30 AND 50 AND T2.address = '747 IRVING St' AND T2.city = 'San Francisco' "What is Pick #, when Round is ""10""?",SELECT pick__number FROM table_name_49 WHERE round = 10 What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?,"select sum(population) , avg(surfacearea) from country where continent = ""north america"" and surfacearea > 3000" "When fitzroy was the home team, how much did the away team score?","SELECT away_team AS score FROM table_name_76 WHERE home_team = ""fitzroy""" What is the name of the nurse has the most appointments?,SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1 "Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul?","SELECT label - Nr FROM table_name_78 WHERE year < 1968 AND label = ""world pacific"" AND from_album = ""chile con soul""" "Which brand has the lowest star rating with a ""Too spicy!"" review?",SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T2.BrandID = T1.BrandID WHERE T2.StarRating = 1 AND T2.Review = 'Too Spicy!' what was the away team with st kilda as the away team?,"SELECT away_team AS score FROM table_name_15 WHERE away_team = ""st kilda""" Which 2005 has a Tournament of grand slam tournaments?,"SELECT 2005 FROM table_name_52 WHERE tournament = ""grand slam tournaments""" How many tonnes of cargo did the airport have with the IATA Code IND?,"SELECT tonnes FROM table_18047346_5 WHERE iata_code = ""IND""" In what Round was a player from College of Connecticut drafted?,"SELECT round FROM table_name_1 WHERE college = ""connecticut""" What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38?,SELECT chinese_title FROM table_name_3 WHERE average = 32 AND peak < 38 AND rank = 7 "show the titles, and authors or editors for all books made after the year 1989.","SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989" List the names of 5 users followed by the largest number of other users.,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5 List all islands that are greater than the island on which Warwickshire is located.,SELECT DISTINCT Name FROM island WHERE Area > ( SELECT DISTINCT T3.Area FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Province = 'Warwickshire' ) What is the release date of the bonus interview with Peter Purves?,"SELECT release_date FROM table_1681535_1 WHERE notes = ""Bonus interview with Peter Purves""" Please provide the subject of series of Austria.,SELECT DISTINCT T3.Topic FROM CountryNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode INNER JOIN Series AS T3 ON T1.Seriescode = T3.SeriesCode WHERE T2.ShortName = 'Austria' Which minister left office the latest?,SELECT minister FROM party ORDER BY left_office DESC LIMIT 1 Find the name and training hours of players whose hours are below 1500.,"SELECT pName, HS FROM Player WHERE HS < 1500" "How many prediction classes with ""has"" captions are there for image id 3050?",SELECT COUNT(T2.PRED_CLASS_ID) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 3050 AND T2.PRED_CLASS = 'has' What venue did he play in before 2008 and finished 14th (q)?,"SELECT venue FROM table_name_71 WHERE year < 2008 AND position = ""14th (q)""" What is the title of the episode directed by Rodney Clouden? ,"SELECT title FROM table_23242958_1 WHERE directed_by = ""Rodney Clouden""" what is the highest attendance's ?,SELECT MAX ( Attendance ) FROM performance What is the highest acc percent score in the competition?,SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 What is the id of the product that is booked for 3 times?,SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*) = 3 List title of albums have the number of tracks greater than 10.,SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10; Show the role code with the least employees.,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1 Show the most frequently used carrier of the phones.,SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1 Show last names for all student who are on scholarship.,SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' "Name the object class of the image with a bounding (422, 63, 77, 363).",SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 422 AND T1.Y = 63 AND T1.W = 77 AND T1.H = 363 "Find all the songs produced by artists with first name ""Marianne"".","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = ""Marianne""" What is the product ID No.793's model name?,SELECT T1.Name FROM Product AS T1 INNER JOIN ProductModel AS T2 ON T1.ProductModelID = T2.ProductModelID WHERE T1.ProductID = 793 "How many years Joined have a Size smaller than 417, and an IHSAA Class of A, and a School of jac-cen-del?","SELECT COUNT(year_joined) FROM table_name_68 WHERE size < 417 AND ihsaa_class = ""a"" AND school = ""jac-cen-del""" What was the season when the low team is chicago sting?,"SELECT season FROM table_237757_10 WHERE low_team = ""Chicago Sting""" "What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?",SELECT MAX(fall_08) FROM table_name_96 WHERE fall_09 < 82 AND fall_06 = 5 AND fall_05 < 3 "What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?","SELECT lost FROM table_name_35 WHERE try_bonus = ""2"" AND losing_bonus = ""4""" What is the content for la sorgente sat 3?,"SELECT content FROM table_name_20 WHERE television_service = ""la sorgente sat 3""" Name the production code for 60 number in series,SELECT production_code FROM table_26702078_1 WHERE no_in_series = 60 What are the schools names?,SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING count ( * ) > 1 "List the positions of the dish ""breaded veal cutlet with peas"" on every menu where it appeared.","SELECT T2.xpos, T2.ypos FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'breaded veal cutlet with peas'" Show the id and builder of the railway that are associated with the most trains.,"SELECT T2.Railway_ID, T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1" "In reviews of product with 5 stars, what is the percentage of the reviews coming from the division of East North Central?",SELECT CAST(SUM(CASE WHEN T1.division = 'East North Central' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.division) FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T2.Stars = 5 what is the date of settlement on Overtime Meal Subsidy | Did you want the date of settlement of claim headers with a type code Overtime Meal Subsidy? | exactly,"SELECT date_of_settlement from claim_headers where claim_type_code = ""Overtime Meal Subsidy""" "If the horizontal bar is n/a and the floor is 14.175, what is the number for the parallel bars?","SELECT parallel_bars FROM table_18662026_10 WHERE floor = ""14.175"" AND horizontal_bar = ""N/A""" Show all flight numbers with aircraft Airbus A340-300.,"SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = ""Airbus A340-300""" What are the lname and fname of all authors that wrote exactly 1 paper?,"SELECT t1.lname,t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid group by t1.authID having count ( * ) = 1" "For different directors who direct well, how many of them have directed an action film?",SELECT COUNT(DISTINCT T2.directorid) FROM movies2directors AS T2 INNER JOIN directors AS T3 ON T2.directorid = T3.directorid WHERE T2.genre = 'Action' AND T3.d_quality = 4 What is the height of the highest roller coaster?,SELECT max ( height ) FROM roller_coaster Which competition has a Date of 2007-08-22?,"SELECT competition FROM table_name_55 WHERE date = ""2007-08-22""" How many devices from the list use the Android platform?,"SELECT count ( * ) FROM device where Software_Platform = ""Android""" "What 2009 has 3r as the 1999, and w as 2002?","SELECT 2009 FROM table_name_40 WHERE 1999 = ""3r"" AND 2002 = ""w""" "What is Player, when Year(s) Won is before 1961, and when To Par is 6?",SELECT player FROM table_name_42 WHERE year_s__won < 1961 AND to_par = 6 Find the number of schools that have more than one donator whose donation amount is less than 8.5.,SELECT count(*) FROM (SELECT * FROM endowment WHERE amount > 8.5 GROUP BY school_id HAVING count(*) > 1) "Where was the game located on January 23, 2008?","SELECT location FROM table_name_93 WHERE date = ""january 23, 2008""" Provide at least 5 social security numbers of patients with a prevalent disease with a prevalence percentage lower than 30% of the average prevalence percentage of conditions.,"SELECT DISTINCT T2.ssn FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN all_prevalences AS T3 ON lower(T1.DESCRIPTION) = lower(T3.ITEM) WHERE CAST(T3.""PREVALENCE PERCENTAGE"" AS REAL) * 100 / ( SELECT AVG('PREVALENCE PERCENTAGE') FROM all_prevalences ) < 30 LIMIT 5" Shawn Respert play for what school/club team?,"SELECT school_club_team FROM table_name_66 WHERE player = ""shawn respert""" How many distinct birth places are there?,SELECT COUNT(DISTINCT Birth_Place) FROM people which countries' tv channels are not playing any cartoon written by Todd Casey?,SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' What are the names of the pilots with IDs 1 and 2?,select pilot_name from pilot where pilot_ID = 1 or pilot_ID = 2 Amazing! Can you do add up the bathroom counts and bedroom counts for the department type Flat and add those to the table?,"SELECT apt_type_code , sum ( room_count ) , sum ( bathroom_count ) ,sum ( bedroom_count ) FROM Apartments WHERE apt_type_code = ""Flat""" What was the score of the game where stafford rangers was the away team?,"SELECT score FROM table_name_92 WHERE away_team = ""stafford rangers""" How many cases have been arrested among the crimes that happened in the restaurant of Englewood?,SELECT SUM(CASE WHEN T1.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Englewood' AND T1.location_description = 'RESTAURANT' What date was the game that resulted in L 30-27?,"SELECT date FROM table_name_34 WHERE result = ""l 30-27""" Where was the world race walking cup held before 2001?,"SELECT venue FROM table_name_49 WHERE year < 2001 AND competition = ""world race walking cup""" Calculate the difference in sales between the games released in 1990 and 2000.,SELECT SUM(CASE WHEN T2.release_year = 2000 THEN T1.num_sales ELSE 0 END) - SUM(CASE WHEN T2.release_year = 1990 THEN T1.num_sales ELSE 0 END) FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id What is the address for the customer Cleo?,"SELECT customer_address FROM customers WHERE customer_name = ""Cleo""" What's the smallest amount of Laps that had a finish of 7 with a start of 6?,"SELECT MIN(laps) FROM table_name_49 WHERE finish = ""7"" AND start = ""6""" What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.,"SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2;" Which unique cities are in Asian countries where Chinese is the official language ?,"select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = ""asia""" Count the number of addressed in the California district.,SELECT count(*) FROM address WHERE district = 'California' "What is the average Silver, when Rank is 5, and when Bronze is less than 1?",SELECT AVG(silver) FROM table_name_87 WHERE rank = 5 AND bronze < 1 List all titles with a 57 series number.,SELECT title FROM table_27397948_2 WHERE no_in_series = 57 Which team has Firestone Tires a Reynard 95i Chassis and is sponsored by Motorola?,"SELECT team FROM table_name_48 WHERE tire = ""firestone"" AND chassis = ""reynard 95i"" AND sponsor = ""motorola""" What is the name of the customer who has made the largest amount of claim in a single claim?,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers) Find the number and time of the train that goes from Chennai to Guruvayur.,"SELECT train_number , TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur';" Which engine finished 7th with the reynard 95i chassis?,"SELECT engine FROM table_name_51 WHERE rank = ""7th"" AND chassis = ""reynard 95i""" Who was the incumbent who was first elected in 1876?,"SELECT incumbent FROM table_name_43 WHERE first_elected = ""1876""" "When did the country that produced 1,213,000 (21st) bbl/day join Opec?","SELECT joined_opec FROM table_166346_1 WHERE production___bbl__day_ = ""1,213,000 (21st)""" On what date was the Loss by Flanagan (6-7)?,"SELECT date FROM table_name_40 WHERE loss = ""flanagan (6-7)""" "Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?","SELECT MAX(year) FROM table_name_30 WHERE reg_season = ""3rd, western"" AND division > 2" Provide the country with its full name which has the most ethnic group? List them all ethnic group together with its percentage.,"SELECT T1.Name, T2.Name, T2.Percentage FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(T2.Name) DESC LIMIT 1 ) GROUP BY T1.Name, T2.Name, T2.Percentage" "List the clubs that have at least a member with advisor ""1121"".",SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121 Which Muklom has a Halang of wɯ¹cʰi¹?,"SELECT muklom FROM table_name_23 WHERE halang = ""wɯ¹cʰi¹""" What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals?,SELECT MAX(bronze_medals) FROM table_name_77 WHERE gold_medals < 0 how many canton with commune being waldbillig,"SELECT COUNT(canton) FROM table_1417184_1 WHERE commune = ""Waldbillig""" What is the title of the employee that inspected the establishment with license number 1576687?,SELECT DISTINCT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.license_no = 1576687 Who is the candidate for the district Arkansas 2?,"SELECT candidates FROM table_1342218_5 WHERE district = ""Arkansas 2""" Which country is McMaster University located in?,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'McMaster University' Which game platform is the most popular in Europe?,"SELECT T.platform_name FROM ( SELECT T4.platform_name, SUM(T2.num_sales) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'Europe' ORDER BY T2.num_sales DESC LIMIT 1 ) t" "what are all the positions of players who's hometown is concord, california","SELECT position FROM table_11677691_12 WHERE hometown = ""Concord, California""" "In films with rental rate of 4.99, list down the inventory ID of the films starred by Lucille Dee.",SELECT T4.inventory_id FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'Lucille' AND T1.last_name = 'Dee' AND T3.rental_rate = 4.99 What are the other awards for 1995?,SELECT other_awards FROM table_name_77 WHERE year = 1995 How many years had budgets of $39 million?,"SELECT SUM(year) FROM table_name_42 WHERE budget = ""$39 million""" What was the Ravg for 2003?,"SELECT ravg FROM table_name_87 WHERE year = ""2003""" What is the transfer window for the player whose status was loan ended?,"SELECT transfer_window FROM table_name_55 WHERE status = ""loan ended""" Which flight had the aircraft avro rj-100?,"SELECT flight FROM table_name_28 WHERE aircraft = ""avro rj-100""" "What is the thumbnail photo file for the product with the id ""979""?",SELECT T2.ThumbnailPhotoFileName FROM ProductProductPhoto AS T1 INNER JOIN ProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T1.ProductID = 979 How many have a kilometers of 233?,SELECT number FROM table_16654785_2 WHERE kilometer = 233 List the name of the aircraft that has been named winning aircraft the most number of times.,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1 "Score F–A of 2–0, and a Opponents of walsall has what date?","SELECT date FROM table_name_49 WHERE score_f_a = ""2–0"" AND opponents = ""walsall""" What is the total count of teachers?,SELECT count(*) FROM teacher Show the account id with most number of transactions.,SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY COUNT(*) DESC LIMIT 1 Can you show me the carriers that have phones with memories bigger than 64?,SELECT Carrier FROM phone WHERE Memory_in_G > 64 What is the name of the state with the most counties?,SELECT T1.name FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state GROUP BY T2.state ORDER BY COUNT(T2.county) DESC LIMIT 1 What is the Nationality of the Player with Jersey Number 6?,SELECT nationality FROM table_name_13 WHERE jersey_number_s_ = 6 How many registed students do each course have? List course name and the number of their registered students?,"SELECT T3.course_name, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id" Which people severed as governor most frequently?,SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 From which club is player C. Dickinson?,"SELECT loan_club FROM table_name_35 WHERE name = ""c. dickinson""" List of high assists with high rebounds for k. mchale (10),"SELECT high_assists FROM table_17344582_11 WHERE high_rebounds = ""K. McHale (10)""" "Provide the names, cities, and countries of the customers who ordered the Plantronics single ear headset.","SELECT DISTINCT T2.`Customer Name`, T2.City, T2.Country FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Plantronics Single Ear Headset'" What was the attendance on 10/29/1932?,"SELECT attendance FROM table_name_15 WHERE date = ""10/29/1932""" "show the titles, and authors or editors for all books made after the year 1989.","SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989" List the location cities in the Western states.,"SELECT locationcity FROM location WHERE state IN ('CO', 'UT', 'CA')" "How many stars did ""Eagle Capital"" received from Little Rock on 2013/4/4?",SELECT COUNT(T1.Stars) FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Product = 'Eagle Capital' AND T2.city = 'Little Rock' AND T1.Date = '2013-04-04' How many of the cars from Japan weighed less than 3000?,SELECT COUNT(*) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' AND T4.weight < 3000 What kind of preparation is needed for apple juice to make a raspberry-pear couscous cake?,SELECT T2.preparation FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry-Pear Couscous Cake' AND T3.name = 'apple juice' What about cmi cross reference ids that not related?,SELECT cmi_cross_ref_id FROM cmi_cross_references where cmi_cross_ref_id not in ( Select T1.cmi_cross_ref_id from cmi_cross_references as T1 join Parking_Fines as T2 on T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ) What are total salaries and department id for each department that has more than 2 employees?,"SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2" What is the series score of the game on April 16?,"SELECT series FROM table_name_55 WHERE date = ""april 16""" Please list the full names of all the students who took the course Machine Learning Theory.,"SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Machine Learning Theory'" Show the most common country across members.,SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 What is the gender of the character 'USAF Master Sgt. Epps?',SELECT T2.gender FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id WHERE T1.character_name = 'USAF Master Sgt. Epps' Name the service for 7th marines rank of sergeant,"SELECT service FROM table_name_20 WHERE unit = ""7th marines"" AND rank = ""sergeant""" List the weight for 56 kilograms.,"SELECT distance FROM table_2581397_3 WHERE weight__kg_ = ""56""" "Which Wrestler has an Entered of 5, and a Pinned of mvp?","SELECT wrestler FROM table_name_23 WHERE entered = 5 AND pinned = ""mvp""" What is the name and building of the departments whose budget is more than the average budget?,"SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)" What are the full names of the non-google female entity legislators that have not been registered in Federal Election Commission data?,"SELECT first_name, last_name FROM historical WHERE gender_bio = 'F' AND google_entity_id_id IS NULL AND fec_id IS NULL" When was ron-robert zieler loaned out until ?,"SELECT date_to FROM table_name_90 WHERE name = ""ron-robert zieler""" What is the party of the district incumbent Jim Saxton?,"SELECT party FROM table_1341453_32 WHERE incumbent = ""Jim Saxton""" Which home team played against the away team Carlton?,"SELECT home_team FROM table_name_74 WHERE away_team = ""carlton""" What is the language of the pair of words numbered 1 and 616?,SELECT T2.lang FROM biwords AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.w1st = 1 AND T1.w2nd = 616 Which type of book had the most pre-paid amount?,SELECT type FROM titles ORDER BY advance DESC LIMIT 1 What are the load shapes of all the short ellipse cars?,SELECT load_shape FROM cars WHERE shape = 'ellipse' AND len = 'short' How many lanes have a Nationality of iceland?,"SELECT SUM(lane) FROM table_name_58 WHERE nationality = ""iceland""" "What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is ""Sistan and Baluchestan"", and when 2006 is greater than 567449?","SELECT COUNT(rank) FROM table_name_87 WHERE date_of_official_foundation_of_municipality > 1926 AND province = ""sistan and baluchestan"" AND 2006 > 567449" who had the high rebounds when the game number was 6?,SELECT high_rebounds FROM table_name_70 WHERE game = 6 In what place did hubert green score below 70 in the united states?,"SELECT place FROM table_name_91 WHERE score < 70 AND country = ""united states"" AND player = ""hubert green""" "How many users from the group ""F29-32"" who were active in the events on 2016/5/7?","SELECT COUNT(T1.app_id) FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id INNER JOIN gender_age AS T3 ON T2.event_id = T3.device_id WHERE SUBSTR(T2.`timestamp`, 1, 10) = '2016-05-07' AND T1.is_active = '1' AND T3.`group` = 'F29-32'" How many parties are there?,SELECT count ( * ) FROM Party How many friends does Zach have?,SELECT count ( friend ) from PersonFriend where name = 'Zach' What are the first names and country codes for players who won both the WTA Championships and the Australian Open?,"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'" What is the average rating of podcasts in comedy category?,SELECT AVG(T2.rating) FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'comedy' Count the number of classrooms in Lamberton.,SELECT count(*) FROM classroom WHERE building = 'Lamberton' Please list the full names of the customers who have purchased at least one root beer produced by AJ Stephans Beverages.,"SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T4.BreweryName = 'AJ Stephans Beverages'" What was the attendance at the Billericay Town home game?,"SELECT attendance FROM table_name_34 WHERE home_team = ""billericay town""" Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct What is the average of Fiji with t10 Finish?,"SELECT AVG(total) FROM table_name_96 WHERE finish = ""t10"" AND country = ""fiji""" Which stage number did son bou arrive at?,"SELECT COUNT(stage) FROM table_name_22 WHERE arrival = ""son bou""" What are the names of parties that have no members?,SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member) "Among all the suppliers in debt, how many of them are in Europe?",SELECT COUNT(T1.n_nationkey) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey INNER JOIN supplier AS T3 ON T1.n_nationkey = T3.s_nationkey WHERE T2.r_name = 'EUROPE' AND T3.s_acctbal < 0 who is the away team when the home team is hartlepool united?,"SELECT away_team FROM table_name_10 WHERE home_team = ""hartlepool united""" Please list any two parts that come with the wrap bag container and have a supply cost of under 10.,SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T2.ps_supplycost < 10 AND T1.p_container = 'WRAP BAG' LIMIT 2 "What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?","SELECT product, chromosome, porphyria FROM enzyme WHERE LOCATION = 'Cytosol'" List the industry shared by the most companies.,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1 Find and list the full name and email of the customers who used American Express cards in Sac State Union.,"SELECT DISTINCT T1.First, T1.Last, T1.Email FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN location AS T3 ON T2.LocationID = T3.LocationID WHERE T3.LocationName = 'Sac State Union' AND T2.CreditCardType = 'American Express'" What does the ERP W sum equal for 105.1 fm frequency?,"SELECT SUM(erp_w) FROM table_name_66 WHERE frequency_mhz = ""105.1 fm""" "Can you show the hours they each worked too, please?","SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name" How many owners have 5 or more establishments?,SELECT COUNT(T1.owner_name) FROM ( SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(owner_name) > 5 ) T1 What is the year and semester with the most courses?,"SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1" Who is the minister with a term end on 10 March 1974?,"SELECT minister FROM table_name_71 WHERE term_end = ""10 march 1974""" "Find the contact channel code that was used by the customer named ""Tillman Ernser"".","SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" Where did carlton play while away?,"SELECT venue FROM table_name_98 WHERE away_team = ""carlton""" "can you show me a list of date in location to? | Do you mean list of ""date in location to"" from the document locations table? | yes",SELECT Date_in_Locaton_To FROM Document_Locations Name the coin under the token category that gives the highest max profit.,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.category = 'token' ORDER BY T2.high - T2.low DESC LIMIT 1 What is the average height of all mountains in Nepal?,SELECT AVG(T1.Height) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T2.Province = 'Nepal' What is the average number of injuries caused each time?,SELECT avg(injured) FROM death What is the lowest Total containing a Bronze of 0 and Rank smaller than 2?,SELECT MIN(total) FROM table_name_92 WHERE bronze = 0 AND rank < 2 Operation of find-min has what binary?,"SELECT binary FROM table_name_98 WHERE operation = ""find-min""" List all the deceased goalies and the teams he had played whose birth country was in Canada.,"SELECT DISTINCT firstName, lastName, T3.name FROM Goalies AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T2.birthCountry = 'Canada' AND T2.deathYear IS NOT NULL AND T2.pos = 'G'" "What is Competition, when Date is 30 December 2005?","SELECT competition FROM table_name_96 WHERE date = ""30 december 2005""" What is the afl team of the offensive guard?,"SELECT afl_team FROM table_12165135_1 WHERE position = ""Offensive Guard""" "What is the name, city, and country of the airport with the highest elevation?","SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1" What was the result of the election in the Arkansas 4 district? ,"SELECT result FROM table_1342359_4 WHERE district = ""Arkansas 4""" Which of the airport names contains the word 'international'?,SELECT name FROM airport WHERE name LIKE '%international%' How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95?,"SELECT COUNT(year) FROM table_name_39 WHERE theme = ""toronto maple leafs"" AND issue_price = 24.95" "List the paragraph number and paragraphs said by the character named ""Sir Andrew Aguecheek"".","SELECT T2.ParagraphNum, T2.id FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Sir Andrew Aguecheek'" What is the percentage of restaurants that paid a fine of 250 among all establishments?,SELECT CAST(COUNT(CASE WHEN T3.fine = 250 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.facility_type = 'Restaurant' get the details of employees who manage a department.,SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id What is the average rating score of the 'Pavee Lackeen: The Traveller Girl' movie and what year was it released?,"SELECT AVG(T1.rating_score), T2.movie_release_year FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Pavee Lackeen: The Traveller Girl'" Name the episode summary for travis brown,"SELECT episode AS Summary FROM table_2140071_12 WHERE coach = ""Travis Brown""" Find the driver id and number of races of all drivers who have at most participated in 30 races?,"SELECT T1.driverid, COUNT(*) 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" What country did Gil play against on 21–23 september 2007?,"SELECT against FROM table_18042031_16 WHERE date = ""21–23 September 2007""" what being the maximum total passengers 2008 with change 2008/09 being 6.5%,"SELECT MAX(total_passengers_2008) FROM table_13836704_4 WHERE change_2008_09 = ""6.5%""" What is the company name of the customer who made the biggest amount of purchase in a single order before discount?,SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T3.Discount = 0 GROUP BY T1.CompanyName ORDER BY SUM(T3.UnitPrice * T3.Quantity) DESC LIMIT 1 "What are the IDs of customers who have ""Diana"" in part of their names?","SELECT customer_id FROM customers WHERE customer_name LIKE ""%Diana%""" Which state has a royal house of Jiang?,"SELECT state FROM table_name_5 WHERE royal_house = ""jiang""" What is the longest duration?,SELECT duration from files order by duration desc limit 1 What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?,SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1 Give the score and number of international students in university ID 100 in 2015.,"SELECT CAST(T1.num_students * T1.pct_international_students AS REAL) / 100, T2.score FROM university_year AS T1 INNER JOIN university_ranking_year AS T2 ON T1.university_id = T2.university_id WHERE T2.year = 2015 AND T1.university_id = 100" "For the latest passing player who could play all the positions in the court, how many points did he have in his career?","SELECT SUM(T2.points) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T1.pos = 'C-F-G' GROUP BY T2.playerID, T2.year ORDER BY T2.year DESC LIMIT 1" What is the total average movie directed by the directors who's quality and revenue is 4?,SELECT CAST(SUM(CASE WHEN T1.d_quality = 4 AND T1.avg_revenue = 4 THEN 1 ELSE 0 END) AS REAL) / COUNT(T2.movieid) FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid "In 1912 when the U.S used sapphire, what was the Hindu birthstone?","SELECT hindu FROM table_name_77 WHERE us__1912_ = ""sapphire""" Which FSB Speed has a Model Number of c7-m 765?,"SELECT fsb_speed FROM table_name_46 WHERE model_number = ""c7-m 765""" Which shop has the most employees? Give me the shop name.,SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1 Who are the nominees who have been nominated for both a Tony Award and a Drama Desk Award?,"SELECT Nominee FROM musical WHERE Award = ""Tony Award"" INTERSECT SELECT Nominee FROM musical WHERE Award = ""Drama Desk Award""" what was the primary conference when joining the csfl for the institution that joined in 2004-05? ,"SELECT primary_conference_when_joining_the_csfl FROM table_262501_1 WHERE joined = ""2004-05""" "What weight has a distance of 8F, and RRC Hill Stakes (wfa) as the race?","SELECT weight FROM table_name_7 WHERE distance = ""8f"" AND race = ""rrc hill stakes (wfa)""" What is the date of the smallest amount paid?,SELECT date_of_claim from claim_headers order by amount_claimed limit 1 Find the total number of catalog contents.,SELECT count(*) FROM catalog_contents what is the age of the oldest captain?,Select age from captain order by age desc limit 1 "Which Points have a Lost smaller than 1, and Games larger than 7?",SELECT MAX(points) FROM table_name_81 WHERE lost < 1 AND games > 7 Show me the average height of the student players from the college named 'Yale University',SELECT avg ( T1.height ) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University' How many trips are there?,SELECT count ( * ) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id How many lakes are there in the 4th most populous African country with a republican form of government?,"SELECT COUNT(*) FROM geo_lake WHERE Country = ( SELECT T4.Code FROM ( SELECT T2.Code, T2.Population FROM encompasses AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN politics AS T3 ON T1.Country = T3.Country WHERE T1.Continent = 'Africa' AND T1.Percentage = 100 AND T3.Government = 'republic' ORDER BY Population DESC LIMIT 4 ) AS T4 ORDER BY population ASC LIMIT 1 )" What about MasterCard?,"SELECT Payment_Method_Code, count ( * ) FROM Payments where Payment_Method_Code = ""MasterCard""" "How many flights are arriving in Washington DC today? | Sorry, what is the date you meant by today? | I am sorry I meant on April/12/2005","SELECT count ( * ) FROM Flight where destination = ""Washington D.C."" and arrival_date Like ""%04/12/2005%""" Who played mens doubles for the 1999 kobe tour?,"SELECT mens_doubles FROM table_28138035_20 WHERE year_location = ""1999 Kobe""" When was the release date of the latest movie in which Dariusz Wolski worked as a crew member?,SELECT T1.release_date FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Dariusz Wolski' ORDER BY T1.release_date DESC LIMIT 1 How many residences are there?,SELECT count ( distinct Residence ) FROM player "State the word ID for ""periodograma"".",SELECT wid FROM words WHERE word = 'periodograma' What is the Attendance of the game in Week 12?,SELECT MAX(attendance) FROM table_name_99 WHERE week = 12 "Thank you! Now I realize that I should probably be asking for the date assigned from values... Therefore, can you provide me with a list of all staff IDs and their corresponding ""date assigned from"" values?","SELECT staff_id, date_assigned_from from Staff_Department_Assignments" "Excellent! For each nomination can you show me the name of the artwork associated with it, and the name of the festival where it was nominated?","SELECT T2.Name , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID" "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?","SELECT job_title , max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000" Which Player has a Score of 67-72-71-75=285?,SELECT player FROM table_name_22 WHERE score = 67 - 72 - 71 - 75 = 285 "Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?","SELECT county FROM table_name_68 WHERE ihsaa_class = ""aaa"" AND enrollment < 799" "When bush# is 3907, what is Kerry#?",SELECT kerry_number FROM table_1302886_1 WHERE bush_number = 3907 "Who was the partner for the game on October 20, 2013?","SELECT partner FROM table_name_80 WHERE date = ""october 20, 2013""" Who is the co-presenter of the series Seven (2007)?,"SELECT co_presenter FROM table_14345690_15 WHERE series = ""Seven (2007)""" What is the name of the team from Derbyshire county? ,"SELECT team FROM table_18461635_1 WHERE county = ""Derbyshire""" "Calculate the percentage of paragraphs in all chapters of ""All's Well That Ends Well"".","SELECT CAST(SUM(IIF(T1.Title = 'All''s Well That Ends Well', 1, 0)) AS REAL) * 100 / COUNT(T3.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id" WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?,"SELECT city FROM table_name_6 WHERE third = ""lori olson-johns""" What is the customer id of Devin Mills.,"SELECT DISTINCT t1.customer_id FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Devin Mills""" What was the title for the project which got the biggest donation?,SELECT T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_total = ( SELECT MAX(donation_total) FROM donations ) What is the Game that came out before the year 2009 for the Playstation 3?,"SELECT game FROM table_name_39 WHERE platform_s_ = ""playstation 3"" AND year < 2009" What are the students ids of students who have more than one allergy?,SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2 What is that person's first name?,SELECT first_name FROM employees where last_name like 'J%' What are the department ids for which more than 10 employees had a commission?,SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10 What is the 2012 population of Indonesia?,"SELECT population_2012_ FROM table_28741_1 WHERE country = ""Indonesia""" "What is the Result of the game on September 1, 1996?","SELECT result FROM table_name_56 WHERE date = ""september 1, 1996""" "How many hours per week did David Shieber play? | Do you mean the total hours per week did David Shieber play? (He can play different sports) | Yes, total hours","SELECT sum ( hoursperweek ) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = ""David"" AND T2.Lname = ""Shieber""" What are the names and years released for the movies with the top 3 highest ratings?,"SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.","SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1" "Among the elite users of 10 consecutive year from 2005 to 2014, list down the user ID and their number of compliment on photos.","SELECT T2.user_id, T2.number_of_compliments FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id INNER JOIN Elite AS T3 ON T2.user_id = T3.user_id WHERE T3.year_id BETWEEN 2005 AND 2014 AND T1.compliment_type = 'photos'" João Barbosa was the winner of which event?,"SELECT event FROM table_name_93 WHERE winner = ""joão barbosa""" "How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?",SELECT COUNT(starts) FROM table_name_66 WHERE cuts_made = 2 AND top_25 > 0 AND earnings__$_ < 338 OFFSET 067 What displacement has a model of 2000?,"SELECT displacement FROM table_name_78 WHERE model = ""2000""" "How many total show when silver is 0, bronze is 1, and the rank is less than 3?",SELECT COUNT(total) FROM table_name_73 WHERE silver = 0 AND bronze = 1 AND rank < 3 What is the average GPA of all students enrolled in the course that has the code ACCT-211?,SELECT avg ( T2.stu_gpa ) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.,SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200; what is the minimum points with goals for/against being 8-5,"SELECT MIN(points) FROM table_14181578_1 WHERE goals_for_against = ""8-5""" Please give the description of the movie starring JENNIFER DAVIS.,SELECT T3.description FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T3.film_id = T2.film_id WHERE T1.first_name = 'JOHNNY' AND T1.last_name = 'DAVIS' What's the first elected year of the district whose incumbent is Jim Greenwood?,"SELECT MAX(first_elected) FROM table_1341423_38 WHERE incumbent = ""Jim Greenwood""" Give the names of people who did not participate in the candidate election.,SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate) How tall is Maksim Botin? ,"SELECT height FROM table_14038363_1 WHERE player = ""Maksim Botin""" What's Emma H Harris's Business Entity ID number?,SELECT BusinessEntityID FROM Person WHERE FirstName = 'Emma' AND LastName = 'Harris' What kind of decor has the least number of reservations?,SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1; "What are the details for statements with the details 'Private Project', and what are the names of the corresponding documents?","SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'" What are the full names of the 3 instructors who teach the most courses?,"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" Give the number of students living in either HKG or CHI.,"SELECT count(*) FROM Student WHERE city_code = ""HKG"" OR city_code = ""CHI""" "Who were the co-drivers for the Racing Organisation Course team in years before 2011, who had a position of DNF?","SELECT co_drivers FROM table_name_92 WHERE pos = ""dnf"" AND year < 2011 AND team = ""racing organisation course""" How many papers were published in International Workshop on Inductive Logic Programming from 2001 to 2009?,SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Workshop on Inductive Logic Programming' AND T1.Year BETWEEN 2001 AND 2009 What district did George Miller belong to?,"SELECT district FROM table_19753079_8 WHERE incumbent = ""George Miller""" Name the less for opponent of @cle and record of 67-29,"SELECT loss FROM table_name_44 WHERE opponent = ""@cle"" AND record = ""67-29""" What are the full names of faculty members who are a part of department 520?,"SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520" What is the total amount of grants given by each organisations? Also list the organisation id.,"SELECT sum(grant_amount) , organisation_id FROM Grants GROUP BY organisation_id" Provide all rivers name and length in USA.,"SELECT DISTINCT T3.Name, T3.Length FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T2.Country = 'USA'" Please list the assumed name of all the facilities inspected by Joshua Rosa.,SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa' Can you add in their customer IDs to the table please?,"SELECT T1.name , T2.custid FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3" What is the land area of Switzerland with a population density fewer than 188 km²?,"SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = ""switzerland"" AND population_density__pop_per_km²_ < 188" What Opponent has a Results¹ of 1:3?,"SELECT opponent FROM table_name_28 WHERE results¹ = ""1:3""" Show the flight number of flights with three lowest distances.,SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3 Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July?,"SELECT winning_driver FROM table_name_55 WHERE winning_team = ""engstler motorsport engstler motorsport"" AND date = ""22 july""" "Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees?",SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584 for the tournament of world amateur championship what was the result in 2010?,"SELECT result FROM table_name_81 WHERE year = 2010 AND tournament = ""world amateur championship""" What is the high school of the player number 5?,SELECT high_school FROM table_24055352_1 WHERE number = 5 What are all the Riders whose best-conditioned horse is Basia?,"SELECT rider_names FROM table_27833186_1 WHERE best_conditioned_horse = ""Basia""" What are the locations where the year of election is 1980?,SELECT district FROM table_1341568_24 WHERE elected = 1980 What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?,"SELECT original_title FROM table_name_72 WHERE director = ""lene grønlykke and sven grønlykke""" "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?","SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING COUNT(*) > 2" How many players have won at least 5 man of the match awards?,SELECT COUNT(Match_Id) FROM `Match` GROUP BY Man_of_the_Match HAVING COUNT(Match_Id) >= 5 "For a Lost of 10 and a Try Bonus of 4, what are the points against them?","SELECT points_against FROM table_name_54 WHERE try_bonus = ""4"" AND lost = ""10""" "Return the weights of entrepreneurs, ordered descending by amount of money requested.",SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC Please list all release titles whose tag is jazz in 2005.,SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear = 2005 AND T2.tag LIKE 'jazz' Name the most pick for evgeny korolev,"SELECT MAX(pick) FROM table_2840500_8 WHERE player = ""Evgeny Korolev""" How many inspections with critical food safety problems are under inspection point id 3?,SELECT COUNT(inspection_id) FROM violation WHERE point_id = 3 AND fine = 500 What college or club team did Steve Jones play for?,"SELECT college_junior_club_team__league_ FROM table_name_48 WHERE player = ""steve jones""" Which are made before 1980?,SELECT title FROM Movie WHERE YEAR < 1980 "List the order id, customer id for orders in Cancelled status, ordered by their order dates.","SELECT order_id, customer_id FROM customer_orders WHERE order_status_code = ""Cancelled"" ORDER BY order_date" What party was Lane Evans?,"SELECT party FROM table_1341568_14 WHERE incumbent = ""Lane Evans""" What is the attendance for the date of 11/11/01?,"SELECT attendance FROM table_name_19 WHERE date = ""11/11/01""" "Can you please list the 'building id', 'apartment type code' and 'apartment number' for all apartment IDs with more than 4 bedrooms?","select building_id,apt_type_code,apt_number from Apartments where bedroom_count > 4" Name the least attendance for 52-37 record,"SELECT MIN(attendance) FROM table_name_53 WHERE record = ""52-37""" Provide the customers' names who ordered the Fantasmas.,"SELECT T4.first_name, T4.last_name FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.title = 'Fantasmas'" How many house mascots are associated with yellow house colours?,"SELECT COUNT(house_mascot) FROM table_1942683_1 WHERE house_colour = ""Yellow""" Find the name of persons who are friends with Alice for the shortest years.,SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT MIN(YEAR) FROM PersonFriend WHERE friend = 'Alice') "Which paper published by the ""TUBERCLE LUNG DIS"" journal is the oldest?",SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.ShortName = 'TUBERCLE LUNG DIS' ORDER BY T2.Year ASC LIMIT 1 How many married male employees were born before the year 1960?,"SELECT COUNT(BusinessEntityID) FROM Employee WHERE MaritalStatus = 'M' AND STRFTIME('%Y', BirthDate) < '1960' AND Gender = 'M'" What is the code for Saint-Damien in Matawinie with a type p?,"SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = ""matawinie"" AND type = ""p"" AND name = ""saint-damien""" What FC Match was played in Darlington?,"SELECT fc_matches FROM table_name_52 WHERE location = ""darlington""" What is the location of the match against Martinis Knyzelis?,"SELECT location FROM table_name_75 WHERE opponent = ""martinis knyzelis""" What is the methyl red reading for the species that tests positive for indole?,"SELECT methyl_red FROM table_name_98 WHERE indole = ""positive""" Hi. How many different clubs are there in total?,select count ( * ) from club How many opponents fought on 1982-12-03?,"SELECT COUNT(opponent) FROM table_12206918_2 WHERE date = ""1982-12-03""" What is the lowest and highest rating star?,"SELECT max(stars) , min(stars) FROM Rating" Show the nicknames of schools that are not in division 1.,"SELECT Nickname FROM school_details WHERE Division != ""Division 1"";" "What were the locations of the events on 8th May, 2016?","SELECT longitude, latitude FROM `events` WHERE SUBSTR(`timestamp`, 1, 10) = '2016-05-08'" "What was the score of the game that took place on october 22, 1976?","SELECT score FROM table_name_53 WHERE date = ""october 22, 1976""" What is the weight of the player with the longest time on ice in the player’s first 7 years of NHL career in kilograms?,SELECT T2.weight_in_kg FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T1.sum_7yr_TOI = ( SELECT MAX(t.sum_7yr_TOI) FROM PlayerInfo t ) What is the nationality when Claude Periard is the player?,"SELECT nationality FROM table_name_33 WHERE player = ""claude periard""" "What is the smallest rank for an industry of banking, a company of bank of america, and profits (billion $) larger than 16.47?","SELECT MIN(rank) FROM table_name_36 WHERE industry = ""banking"" AND company = ""bank of america"" AND profits__billion_$_ > 16.47" "For team who has more home won than home lost more than 80%, list the team name and the offense points.","SELECT name, o_pts FROM teams WHERE CAST((homeWon - homeLost) AS REAL) * 100 / games > 80" Find the average age and experience working length of journalists working on different role type.,"SELECT avg(t1.age) , avg(Years_working) , t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type" Show all flight number from Los Angeles.,"SELECT flno FROM Flight WHERE origin = ""Los Angeles""" list all the amounts claimed,SELECT Amount_Claimed FROM Claims "Which Byes have an Against larger than 1235, and Losses smaller than 10, and Wins larger than 7?",SELECT MAX(byes) FROM table_name_87 WHERE against > 1235 AND losses < 10 AND wins > 7 How many total tours were there for each ranking date?,"SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date" What are the names of all students who successfully tried out for the position of striker?,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker' what is the song name of bangladesh,SELECT song_name from song where country = 'Bangladesh' Name the indianapolis concerts for les minski,"SELECT indianapolis_concerts FROM table_17085724_1 WHERE sarasota = ""Les Minski""" Which competition took place in Bangkok?,"SELECT competition FROM table_name_94 WHERE venue = ""bangkok""" What To par has a Score of 68-66=134?,SELECT to_par FROM table_name_15 WHERE score = 68 - 66 = 134 How many students are age 18?,SELECT COUNT(*) FROM Student WHERE age = 18 List the customers who have mortgages,select loan_ID from loan where loan_type = 'Mortgages' What is the total number of pounds being transported for S K L Enterprises Inc?,SELECT SUM(T2.weight) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc' Define the bounding box of the object sample no. 7 on image no. 42.,"SELECT X, Y, W, H FROM IMG_OBJ WHERE IMG_ID = 42 AND OBJ_SAMPLE_ID = 7" "Which player has the most all star game experiences? Give me the first name, last name and id of the player, as well as the number of times the player participated in all star game.","SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;" What country is Pierre Vermeulen from?,"SELECT nationality² FROM table_24565004_22 WHERE name = ""Pierre Vermeulen""" Who were the authors of episode having production code 3t7573?,"SELECT written_by FROM table_18274425_1 WHERE production_code = ""3T7573""" Who was the opponent in the final of the Senegal f2 tournament>,"SELECT opponent_in_the_final FROM table_name_8 WHERE tournament = ""senegal f2""" "oh, sorry, please show their names and birth places.","SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id" How many tracks are in the AAC audio file media type?,"SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = ""AAC audio file""" What is the Outcome of the Los Angeles Tournament when the Partner is Julie Halard?,"SELECT outcome FROM table_name_8 WHERE tournament = ""los angeles"" AND partner = ""julie halard""" "What is all the information about courses, ordered by credits ascending?",SELECT * FROM COURSE ORDER BY Credits "What is Location Attendance, when High Points is ""Allen Iverson (23)""?","SELECT location_attendance FROM table_name_98 WHERE high_points = ""allen iverson (23)""" What is the campus fee in the year 2000 for San Jose State University?,"SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Jose State University"" AND t1.year = 2000" What is the scoring aerage for 111419?,SELECT scoring_average FROM table_13026799_3 WHERE earnings__$_ = 111419 How many countries from the USA have an In Process order status?,SELECT COUNT(t2.orderNumber) FROM customers AS t1 INNER JOIN orders AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.status = 'On Hold' AND t1.country = 'USA' What is the total of rank when gold is 2 and total is more than 4?,SELECT SUM(rank) FROM table_name_99 WHERE gold = 2 AND total > 4 "Return the budget type codes, budget type descriptions and document ids for documents with expenses.","SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code" Which Flag did the Ship Aidavita have?,"SELECT flag FROM table_name_66 WHERE ship = ""aidavita""" How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?,"SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = ""belarus (blr)"" AND bronze > 4" "Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?","SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = ""6–4, 2–6, 6–4, 7–6(3)""" who are the candidates where the incumbent is sam m. gibbons?,"SELECT candidates FROM table_1341663_10 WHERE incumbent = ""Sam M. Gibbons""" "Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?","SELECT winner FROM table_name_56 WHERE runner_up = ""waseda"" AND title = ""32nd""" Who directed a film for Cracking Film Productions?,"SELECT director_s_ FROM table_name_80 WHERE recipient = ""cracking film productions""" Who is the driver of the entry constructed by Mercedes-Benz?,"SELECT driver FROM table_18893428_1 WHERE constructor = ""Mercedes-Benz""" What was 13's finish?,"SELECT finish FROM table_name_10 WHERE start = ""13""" What is the NOC code of the region where the tallest male Olympic competitor is from?,SELECT T1.noc 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 T3.gender = 'M' ORDER BY T3.height DESC LIMIT 1 "How many customers ordered the book titled ""Anleitung zum Zickigsein""",SELECT COUNT(*) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'Anleitung zum Zickigsein' "What is the number of floors when the r Rank larger than 41, and a City of parel?","SELECT floors FROM table_name_72 WHERE rank > 41 AND city = ""parel""" Show the names of editors and the theme of journals for which they serve on committees.,"SELECT T2.Name , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID" How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?,"SELECT AVG(extra_points) FROM table_name_35 WHERE touchdowns < 2 AND player = ""herrnstein"" AND field_goals < 0" Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.,SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 "What artist had a single called Alien Rock b/w Combat, The Remix on 12 inch Vinyl format?","SELECT artist FROM table_name_82 WHERE format = ""12 inch vinyl"" AND single = ""alien rock b/w combat, the remix""" "The episode which originally aired on February 11, 2005 had which episode # of the season?","SELECT no_in_season FROM table_228973_11 WHERE original_air_date = ""February 11, 2005""" What is the number of points of the game less than number 17 with an 11-6-0 record?,"SELECT SUM(points) FROM table_name_43 WHERE record = ""11-6-0"" AND game__number < 17" "Show the customer name, customer address city, date from, and date to for each customer address history.","SELECT T2.customer_name , T3.city , T1.date_from , T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id" what is the tries fow when losing bonus is losing bonus?,"SELECT tries_for FROM table_name_47 WHERE losing_bonus = ""losing bonus""" How many of the inspections with serious point levels have no fines?,SELECT COUNT(DISTINCT T2.inspection_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.point_level = 'Serious ' AND T2.fine = 0 Which segment a's netflix figure is s04e24?,"SELECT segment_a FROM table_name_77 WHERE netflix = ""s04e24""" Give the game name of the game ID 44.,SELECT T.game_name FROM game AS T WHERE T.id = 44 What is the kickoff time for the game that was at Ralph Wilson Stadium?,"SELECT kickoff___et__ FROM table_name_92 WHERE game_site = ""ralph wilson stadium""" How many instances were found in June 2015?,SELECT COUNT(case_number) FROM incidents WHERE date BETWEEN '2015-06-01' AND '2015-06-30' "Show all storm names affecting region ""Denmark"".",SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' List the titles of all items in alphabetic order .,SELECT title FROM item ORDER BY title Count the number of distinct delegates who are from counties with population above 50000.,SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 "Write down the call id of clients whose first name start with alphabet ""B"".",SELECT T2.call_id FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.first LIKE 'B%' What incumbent was first elected in 2009?,SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009 "What are the titles of albums by the artist ""AC/DC""?","SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""AC/DC""" what is the venue of neman,"SELECT venue FROM table_name_23 WHERE team = ""neman""" List all the cities in a decreasing order of each city's stations' highest latitude.,SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC "How many distinct characteristic names does the product ""cumin"" have?","SELECT count(DISTINCT 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""" Return the cities with more than 3 airports in the United States.,SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3 Count the albums of Billy Colham.,"SELECT count ( * ) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Billy Cobham""" What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?,"SELECT venue FROM table_name_20 WHERE competition = ""european cross country championships"" AND notes = ""junior men individual 6.595km""" list the names of the musicals with more than three actors,SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT ( * ) > 3 "How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38?",SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38 Find the average age and experience working length of journalists working on different role type.,"SELECT avg(t1.age) , avg(Years_working) , t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type" What are the engineers first names? | Do you mean the first name of all the engineers? | Yes please,SELECT first_name FROM Maintenance_Engineers List the project details of the projects which did not hire any staff for a researcher role.,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) What's the total value of សាមសិប?,"SELECT SUM(value) FROM table_name_2 WHERE word_form = ""សាមសិប""" What is the name of the entrepreneur with the greatest weight?,SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What Game had a Result of 136-112?,"SELECT game FROM table_name_9 WHERE result = ""136-112""" What is the sum of all the rounds when a Florida State player was drafted?,"SELECT COUNT(round) FROM table_name_8 WHERE college = ""florida state""" When did Hawthorn play at home?,"SELECT date FROM table_name_27 WHERE home_team = ""hawthorn""" Name the date for oliver stone,"SELECT date FROM table_1566852_5 WHERE interview_subject = ""Oliver Stone""" What is the name and country for the artist with most number of exhibitions?,"SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1" Which nation has hosts both older than 45 and younger than 35?,SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 What is the opposing team with 11 against?,SELECT opposing_teams FROM table_name_7 WHERE against = 11 What is the total goals for Mark Ward?,"SELECT MIN(total_goals) FROM table_name_64 WHERE name = ""mark ward""" How many films have the word 'Dummy' in their titles?,"SELECT COUNT(*) FROM film WHERE title LIKE ""%Dummy%""" Which policy type has the most records in the database?,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1 "What is Pick, when Player is ""Dexter Bailey""?","SELECT pick FROM table_name_34 WHERE player = ""dexter bailey""" what's the regionalliga nord with regionalliga süd being 1. fc nuremberg spvgg greuther fürth,"SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_süd = ""1. FC Nuremberg SpVgg Greuther Fürth""" What is the full name of the country with 100% Africans?,SELECT T1.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Percentage = 100 AND T1.Name = 'African' What is the average weight and year for each year?,"SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;" "Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?","SELECT driver FROM table_name_74 WHERE grid < 24 AND laps < 61 AND constructor = ""ferrari""" What was the year elected in District 15?,SELECT elected FROM table_name_56 WHERE district = 15 "For each payment method, return how many customers use it.","SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code" Show me the details of all participants.,select * from Participants_in_Events What is the city with the most customers?,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; List the id of students who registered course statistics in the order of registration date.,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.registration_date" Find the names of schools that have more than one donator with donation amount above 8.5.,SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING count(*) > 1 Find the number of matches in different competitions.,"SELECT count(*) , Competition FROM MATCH GROUP BY Competition" Name the power provided for transfer speed mb/s is 1250,"SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = ""1250""" What is the largest crowd for any game where Footscray is the home team?,"SELECT MAX(crowd) FROM table_name_9 WHERE home_team = ""footscray""" What is the Club name what shows 405 for the Points against?,"SELECT club FROM table_name_11 WHERE points_against = ""405""" "which company released audiobooks authored by day, martin martin day","SELECT company FROM table_20174050_24 WHERE author = ""Day, Martin Martin Day""" list the locations available?,SELECT Location FROM party Excellent! Can you show me a list of the event IDs and event details for each of those five events which have more than one participant?,"SELECT T1.event_id , T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING count ( * ) > 1" I want the sum of year for mark barron,"SELECT SUM(year) FROM table_name_11 WHERE player_name = ""mark barron""" In which locations are there more than one movie theater with capacity above 300?,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1 What is the US release date?,"SELECT release_date FROM table_name_5 WHERE location = ""us""" "How many ""all"" character names have the ""all"" abbreviation?",SELECT COUNT(id) FROM characters WHERE Abbrev = 'All' What country was ole ellefsæter from?,"SELECT country FROM table_name_34 WHERE winner = ""ole ellefsæter""" What is the total number of laps during the race that had a time of +9.682?,"SELECT COUNT(laps) FROM table_name_6 WHERE time_retired = ""+9.682""" What number was the game against Kansas State?,"SELECT game FROM table_21034801_1 WHERE opponent = ""Kansas State""" Show the name of the party that has at least two records.,SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 "Show the ids and details of the investors who have at least two transactions with type code ""SALE"".","SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = ""SALE"" GROUP BY T2.investor_id HAVING COUNT(*) >= 2" What is the batting style of the player born on 14 November 1971?,"SELECT batting_style FROM table_name_77 WHERE date_of_birth = ""14 november 1971""" "What is the highest played that has a position less than 17, and 63 as the goals for?",SELECT MAX(played) FROM table_name_4 WHERE position < 17 AND goals_for = 63 What is the 3 most common cloud cover rates in the region of zip code 94107?,SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3 Can you find me the average number of followers for these users?,SELECT avg ( followers ) FROM user_profiles WHERE UID IN ( SELECT UID FROM tweets ) "How many menus with the name ""Waldorf Astoria"" have 4 pages?",SELECT COUNT(*) FROM Menu WHERE name = 'Waldorf Astoria' AND page_count = 4 What season was there a 2nd place finish?,"SELECT season FROM table_name_81 WHERE position = ""2nd""" What is Nancy Edwards's address?,"SELECT address FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" Name the aspect ratio for 720,SELECT aspect_ratio FROM table_15928363_1 WHERE horizontal = 720 What is the lowest crowd size at MCG?,"SELECT MIN(crowd) FROM table_name_91 WHERE venue = ""mcg""" What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?,"SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" Which loss had a record of 79-49?,"SELECT loss FROM table_name_7 WHERE record = ""79-49""" Who is the player with a 68-67-75=210 score?,SELECT player FROM table_name_29 WHERE score = 68 - 67 - 75 = 210 What is the share count of transaction id 2?,SELECT share_count FROM TRANSACTIONS where transaction_id = 2 "For the game played on November 29, who had the highest rebounds?","SELECT high_rebounds FROM table_name_73 WHERE date = ""november 29""" List the names of disabled students enlisted in the navy.,SELECT T1.name FROM enlist AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.organ = 'navy' What is the name of the linebacker at Illinois college?,"SELECT player_name FROM table_10361625_1 WHERE position = ""Linebacker"" AND college = ""Illinois""" How many Points have a Drawn smaller than 0?,SELECT COUNT(points) FROM table_name_36 WHERE drawn < 0 How many students are enrolled in college?,SELECT sum(enr) FROM College What's the Material collected for the 978-1401209674 ISBN?,"SELECT material_collected FROM table_name_75 WHERE isbn = ""978-1401209674""" What is the average number of goals of the player with 234 apps and a rank above 8?,SELECT AVG(goals) FROM table_name_13 WHERE apps = 234 AND rank < 8 What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?,"SELECT round FROM table_name_92 WHERE race = ""int. adac-preis der tourenwagen von sachsen-anhalt""" find the names of people who are taller than 200 or lower than 190.,SELECT name FROM people WHERE height > 200 OR height < 190 "List the name, nationality and id of all male architects ordered by their names lexicographically.","SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name" What would the LCD screen size and pixels be for the coolpix 5700?,"SELECT lcd_screen_size, _pixels FROM table_name_93 WHERE model = ""coolpix 5700""" Name the category for 2013,"SELECT category FROM table_name_15 WHERE year = ""2013""" What horses does r. a. Scott own?,"SELECT horse FROM table_19624708_1 WHERE owner = ""R. A. Scott""" "How many papers are published by the institution ""Tokohu University""?","SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Tokohu University""" "How many complaints did each customer file? | Did you want the customer ids and number of complaints fold for each customer? | Yes, please.","SELECT customer_id, COUNT ( * ) FROM Complaints GROUP BY customer_id" What numbered pick attended western ontario and is an OL?,"SELECT pick__number FROM table_24540893_6 WHERE school = ""Western Ontario"" AND position = ""OL""" "What were the resources that were requested by the teacher for project ""d6ef27c07c30c81f0c16c32b6acfa2ff""? Indicate the quantities as well and whether or not the teacher acquired P.h.D or doctor degree.","SELECT DISTINCT T1.item_name, T1.item_quantity, T2.teacher_prefix FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'" Who earns the highest salary?,SELECT name FROM instructor ORDER BY salary DESC LIMIT 1 Please list the territories whose sales are taken in charge by the employees who report to Andrew Fuller.,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.ReportsTo = ( SELECT EmployeeID FROM Employees WHERE FirstName = 'Andrew' AND LastName = 'Fuller' ) How many episodes have the Netflix episode number S08E04?,"SELECT COUNT(episode) FROM table_15187735_15 WHERE netflix = ""S08E04""" "What is the longest trip duration that started and ended August 29, 2013?",SELECT MAX(duration) FROM trip WHERE start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%' How many budget record has a budget amount smaller than the invested amount?,SELECT count(*) FROM budget WHERE budgeted < invested What's the sSpec number of the processor having an ultra-low power I/O?,"SELECT sspec_number FROM table_name_57 WHERE i_o_bus = ""ultra-low power""" "Which FIFA Club World Championship has a UEFA Champions League of 0, and a Total smaller than 3, and a Name of geremi?","SELECT MIN(fifa_club_world_championship) FROM table_name_56 WHERE uefa_champions_league = 0 AND total < 3 AND name = ""geremi""" "Who was the opponent for the game on November 20, 1955?","SELECT opponent FROM table_name_35 WHERE date = ""november 20, 1955""" "What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?",SELECT AVG(total) FROM table_name_26 WHERE bronze = 4 AND silver > 2 AND gold < 7 What is the pick# from South Dakota college?,"SELECT pick__number FROM table_name_23 WHERE college = ""south dakota""" "What is the highest swimsuit score of the contestant with a higher than 9.55 interview score, and evening gown of 9.75, and an average higher than 9.67?",SELECT MAX(swimsuit) FROM table_name_63 WHERE interview > 9.55 AND evening_gown = 9.75 AND average > 9.67 "Order them by benefit ID, Please.","SELECT T1.source_system_code , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id" How many order items correspond to each order id?,"SELECT order_id , count(*) FROM Order_items GROUP BY order_id" Show each location and the number of cinemas there.,"SELECT LOCATION , count(*) FROM cinema GROUP BY LOCATION" how many Customers are there,SELECT count ( * ) from Customers What is the Frequency in Davao City?,"SELECT frequency FROM table_name_91 WHERE location = ""davao city""" "Find the name of organizations whose names contain ""Party"".","SELECT organization_name FROM organizations WHERE organization_name LIKE ""%Party%""" How many rounds did Brett go against Kevin Asplund?,"SELECT COUNT(round) FROM table_name_72 WHERE opponent = ""kevin asplund""" "What are flight numbers of flights departing from City ""Aberdeen ""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" What is the position of the player who is taller than 2.12?,SELECT position FROM table_name_30 WHERE height > 2.12 What was the speed of the rider that earned 1 point?,SELECT speed FROM table_name_24 WHERE points = 1 Show the names of products that are in at least two events in ascending alphabetical order of product name.,SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT ( * ) > = 2 ORDER BY T1.Product_Name "Who is the Pro-Administration senator that runs from March 4, 1789 to December 31, 1791?","SELECT T1.first_name, T1.last_name FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Pro-Administration' AND T2.start = '1789-03-04' AND T2.end = '1791-12-31'" Find the year that offers the largest number of courses?,"SELECT YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count ( * ) DESC LIMIT 1" What inclination has a semimajor axis of 20 au?,"SELECT inclination FROM table_name_16 WHERE semimajor_axis___au__ = ""20 au""" what is the average points when goals conceded is 14 and goals scored is less than 32?,SELECT AVG(points) FROM table_name_97 WHERE goals_conceded = 14 AND goals_scored < 32 What is the callsign of Cagayan de Oro with 5kW?,"SELECT callsign FROM table_name_81 WHERE power__kw_ = ""5kw"" AND location = ""cagayan de oro""" "For the city whose land area was 135.09, what was the total population density?","SELECT population_density__people_per_mi_2__ FROM table_22916979_1 WHERE land_area__mi_2__ = ""135.09""" What is the country of the Representative that left office as incumbent?,"SELECT country FROM table_name_29 WHERE left_office = ""incumbent""" When did the episode that had 5.09 million total viewers (both Live and SD types) first air?,"SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = ""5.09 million""" Who directed episode 11 of the season?,SELECT director FROM table_28785738_1 WHERE no_in_season = 11 "What label is released on September 20, 2005?","SELECT label FROM table_name_16 WHERE date_of_release = ""september 20, 2005""" Which region does territory id 2116 belong to?,SELECT T2.RegionDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T1.TerritoryID = 2116 What is the percentage of the most common conditions for patients age 60 and above?,"SELECT CAST(SUM(CASE WHEN T5.DESCRIPTION = T3.DESCRIPTION THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.patient) FROM ( SELECT T2.DESCRIPTION, T1.patient FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE ROUND((strftime('%J', T2.START) - strftime('%J', T1.birthdate)) / 365) > 60 GROUP BY T2.DESCRIPTION ORDER BY COUNT(T2.DESCRIPTION) DESC LIMIT 1 ) AS T3 INNER JOIN patients AS T4 ON T3.patient = T4.patient INNER JOIN conditions AS T5 ON T4.patient = T5.PATIENT WHERE ROUND((strftime('%J', T5.START) - strftime('%J', T4.birthdate)) / 365) > 60" What are the full names of the 3 instructors who teach the most courses?,"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" What is the nationality of the ship with maximum tonnage?,SELECT Nationality FROM ship order by Tonnage desc limit 1 "How many times is the number of territories in ""Eastern Region"" than ""Southern Region""?",SELECT CAST(( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' ) AS REAL) / ( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Southern' ) AS Calu "what is round1 when round3 is less than 51, total points is less than 273, round2 is less than 98 and round5 is less than 24?",SELECT AVG(round1) FROM table_name_62 WHERE round3 < 51 AND total_points < 273 AND round2 < 98 AND round5 < 24 How about cities in Texas that have post codes starting with 4?,"SELECT city FROM addresses WHERE zip_postcode LIKE ""4%"" and state_province_county = ""Texas""" List the first names of customers who have purchased products from sale person id 1.,SELECT T1.FirstName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.SalesPersonID = 1 What are years of founding for orchestras that have had more than a single performance?,SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1 Where is the IHSAA Class of aaa school with more than 590 enrolled?,"SELECT location FROM table_name_1 WHERE ihsaa_class = ""aaa"" AND enrollment > 590" What's the money ($) for the t3 place and the score of 74-74-71-69=288?,"SELECT money___$__ FROM table_name_87 WHERE place = ""t3"" AND score = 74 - 74 - 71 - 69 = 288" Calculate the percentage of the nominees who were born in USA.,SELECT CAST(SUM(CASE WHEN T1.birth_country = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Nominee'; "What's the sum of Silver with total smaller than 560, a Bronze larger than 6, and a Gold of 3?",SELECT SUM(silver) FROM table_name_70 WHERE total < 560 AND bronze > 6 AND gold = 3 What is the Standings of Eintracht Braunschweig?,"SELECT standings FROM table_name_28 WHERE champions = ""eintracht braunschweig""" What is the location of that university?,"SELECT Location FROM campuses WHERE campus = ""San Jose State University""" On what tra k was the march 19 race held? ,"SELECT track FROM table_2454550_1 WHERE date = ""March 19""" what is the age of Matthew Ritter,"select age from driver where name = ""Matthew Ritter""" how many projects are presented on the table,SELECT count ( * ) FROM projects What are the names of station with lowest lattitude?,SELECT name FROM station ORDER BY lat LIMIT 1 Who's the incumbent in the district first elected in 1976?,SELECT incumbent FROM table_1341604_19 WHERE first_elected = 1976 "Name the lowest Col (m) with a Peak of pico basilé, and a Prominence (m) smaller than 3,011?","SELECT MIN(col__m_) FROM table_name_50 WHERE peak = ""pico basilé"" AND prominence__m_ < 3 OFFSET 011" What was the smallest crowd in games at the corio oval?,"SELECT MIN(crowd) FROM table_name_13 WHERE venue = ""corio oval""" When 9386 is the undergraduate enrollment what is the nickname?,SELECT nickname FROM table_262495_1 WHERE undergraduate_enrollment = 9386 What is every song title for 2007?,SELECT song_title FROM table_21500850_1 WHERE year = 2007 What is the average age of the users who use model device of R7?,SELECT SUM(T1.age) / COUNT(T1.device_id) AS avg FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'R7' What were the max gust speed and cloud clover when the customer using bike no. 10 recorded the 386 seconds duration of the trip from MLK Library to San Salvador at 1st?,"SELECT T2.max_gust_speed_mph, T2.cloud_cover FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T1.bike_id = 10 AND T2.mean_temperature_f > 62 AND T1.subscription_type = 'Customer' AND T1.start_station_name = 'MLK Library' AND T1.end_station_name = 'San Salvador at 1st' AND T1.duration = 386" Find the details of the shops that can be reached by walk.,"SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk""" "Which Event has the Opponent, Jason Yee?","SELECT event FROM table_name_3 WHERE opponent = ""jason yee""" List out the user who is an elite user for consecutively 5 years or more and what is the user average star? How many likes does this user gets?,"SELECT T2.user_average_stars, COUNT(T3.likes) FROM Elite AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id INNER JOIN Tips AS T3 ON T3.user_id = T2.user_id GROUP BY T1.user_id HAVING COUNT(T1.user_id) > 5" What are the last names for those students?,SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' What is the name and distance for the aircraft that has an id of 12?,"SELECT name , distance FROM Aircraft WHERE aid = 12" What is the date of the away game when the team has a league position of 9th?,"SELECT date FROM table_name_34 WHERE h___a = ""a"" AND league_position = ""9th""" How many locations for name of role as Xiao Gui 小鬼?,"SELECT COUNT(location) FROM table_23379776_5 WHERE name_of_role = ""Xiao Gui 小鬼""" Who is the tallest gymnast?,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height desc limit 1 Which flight carrier operator flies from Atlantic City to Fort Lauderdale?,SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.ORIGIN = 'ACY' AND T1.DEST = 'FLL' GROUP BY T2.Description What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?,"SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" What is main presenters of La Granja?,"SELECT main_presenters FROM table_1053802_1 WHERE local_title = ""La Granja""" what are the maximum wins where the poles are 2?,SELECT MAX(wins) FROM table_2387790_1 WHERE poles = 2 How many Decembers have calgary flames as the opponent?,"SELECT COUNT(december) FROM table_name_90 WHERE opponent = ""calgary flames""" Who had the high assists when the opponent was Indiana?,"SELECT high_assists FROM table_27882867_9 WHERE team = ""Indiana""" What is the fewest number of 2005 subscribers for Vodafone?,"SELECT MIN(subscribers__2005___thousands_) FROM table_29395291_2 WHERE provider = ""Vodafone""" Calculate the total payment amount by Diane Collins.,SELECT SUM(T2.amount) FROM customer AS T1 INNER JOIN payment AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Diane' AND T1.last_name = 'Collins' Who was the winner when Niki Lauda held pole position?,"SELECT race AS Winner FROM table_name_48 WHERE pole_position = ""niki lauda""" What is the branding of the callsign DWBA-TV?,"SELECT branding FROM table_2610582_3 WHERE callsign = ""DWBA-TV""" Which opponent was played on week 9?,SELECT opponent FROM table_name_46 WHERE week = 9 What is the highest amount of order made by the sales representative in Boston? Please give the name of the product and amount.,"SELECT T2.productName, T1.quantityOrdered * T1.priceEach FROM orderdetails AS T1 INNER JOIN products AS T2 ON T1.productCode = T2.productCode INNER JOIN orders AS T3 ON T1.orderNumber = T3.orderNumber INNER JOIN customers AS T4 ON T3.customerNumber = T4.customerNumber WHERE T4.city = 'Boston' AND T4.salesRepEmployeeNumber IN ( SELECT employeeNumber FROM employees WHERE jobTitle = 'Sales Rep' ) ORDER BY T1.quantityOrdered DESC LIMIT 1" what is the order date of order id 1?,SELECT Order_Date FROM Customer_Orders where Order_ID = 1 What day did the person who finished in 12th place leave on?,"SELECT exited FROM table_name_53 WHERE finished = ""12th""" "What is Nationality, when Round is 6?",SELECT nationality FROM table_name_5 WHERE round = 6 What is the average capacity?,SELECT avg ( capacity ) from cinema How many countries using the 1993 System of National Accounts methodology?,SELECT COUNT(CountryCode) FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 1993 System of National Accounts methodology.' What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300?,"SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800"" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Airbus A340-300""" Give me the description of the service type that offers not only the photo product but also the film product.,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film' What is the channel with a 2011 rating of 8.5?,"SELECT channel FROM table_name_64 WHERE 2011 = ""8.5""" How many students in the Air Force?,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force' "Which address type does ""Fun Toys and Bikes"" fall under?",SELECT T2.Name FROM BusinessEntityAddress AS T1 INNER JOIN AddressType AS T2 ON T1.AddressTypeID = T2.AddressTypeID INNER JOIN Store AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T3.Name = 'Fun Toys and Bikes' What is the total price of Sales Order ID 46625 with Volume Discount 11 to 14 and Product ID 716?,SELECT T2.UnitPrice * T2.OrderQty FROM SpecialOffer AS T1 INNER JOIN SalesOrderDetail AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID WHERE T1.Description = 'Volume Discount 11 to 14' AND T1.SpecialOfferID = 2 AND T2.ProductID = 716 AND T2.SalesOrderID = 46625 What is the Director of the Filmography The Iceman Ducketh?,"SELECT director FROM table_name_82 WHERE title = ""the iceman ducketh""" how many afghan in banglash is hungarian,"SELECT afghan FROM table_24807774_1 WHERE bangladeshi = ""Hungarian""" Who was the opponent with a series of 1-0?,"SELECT opponent FROM table_name_79 WHERE series = ""1-0""" What are the different types of video games?,SELECT DISTINCT gtype FROM Video_games How much does each charge type costs? List both charge type and amount.,"SELECT charge_type, charge_amount FROM Charges" What set 2 has 15:33 as the time?,"SELECT set_2 FROM table_name_14 WHERE time = ""15:33""" "what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?",SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11 What are the dates of ceremony at music festivals corresponding to volumes that lasted more than 2 weeks on top?,SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 "For each player, show the team and the location of school they belong to.","SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID;" How many different outcomes did the final with Paul McNamee as a partner have?,"SELECT COUNT(outcome) FROM table_2201541_3 WHERE partner = ""Paul McNamee""" What are the names and average salaries for departments with average salary higher than 42000?,"SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000" "In the district of Pennsylvania 1, what is the total number of political parties?","SELECT COUNT(party) FROM table_1805191_39 WHERE district = ""Pennsylvania 1""" how many level 5 managers does United States have?,SELECT count ( * ) FROM manager WHERE Country = 'United States' and Level = 5 When was the private/non-sectarian school founded?,"SELECT founded FROM table_1971074_1 WHERE type = ""Private/Non-sectarian""" Give me the name for the student 1001 | Do you want the last name or first name? | first name and the last name please,"SELECT lname, fname from student where stuID = ""1001""" Who made the latest order?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?,select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582' thanks..how about one last one...what is median salary across all teams?,SELECT avg ( salary ) from salary Which rank has the smallest number of faculty members?,SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1 What was the team #1 for the match that had a result of 0-3?,"SELECT team__number1 FROM table_name_17 WHERE res = ""0-3""" What is the ISHAA class for the International School?,"SELECT ihsaa_class FROM table_name_64 WHERE school = ""international""" How many products have been discountinued by New Orleans Cajun Delights?,SELECT COUNT(T1.Discontinued) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'New Orleans Cajun Delights' What was South Melbourne's away team score?,"SELECT away_team AS score FROM table_name_7 WHERE away_team = ""south melbourne""" What is the time for 18 laps and 5 grids?,SELECT time FROM table_name_52 WHERE laps = 18 AND grid = 5 How many stations does Mountain View city has?,"SELECT COUNT(*) FROM station WHERE city = ""Mountain View""" What home team has a tie no of 20?,"SELECT home_team FROM table_name_44 WHERE tie_no = ""20""" "What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?","SELECT termination_of_mission FROM table_name_58 WHERE presentation_of_credentials = ""july 4, 1898""" Which film has a role named Taylor?,"SELECT film FROM table_name_68 WHERE role = ""taylor""" How many stadiums are there?,SELECT COUNT(*) FROM stadium "How many tracks are in the playlist ""movies""?","SELECT count ( * ) FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = ""Movies""" "What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?",SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 20 what is the minimum pick # where position is defensive tackle,"SELECT MIN(pick__number) FROM table_10650711_1 WHERE position = ""Defensive Tackle""" Which Spanish voice actor does the same character as French voice actor Véronique Desmadryl?,"SELECT spanish_voice_actor FROM table_name_4 WHERE french_voice_actor = ""véronique desmadryl""" Indicate the percentage of inactive customers at store no.1.,SELECT CAST(SUM(CASE WHEN active = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(customer_id) FROM customer WHERE store_id = 1 "for country of spain and iata of ibz, what's the city?","SELECT city FROM table_name_29 WHERE country = ""spain"" AND iata = ""ibz""" What are the dates of the exhibitions who have an attendance of more than 100?,SELECT T1.date FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 Which visitors have a leading scorer of roy : 25,"SELECT visitor FROM table_11964047_7 WHERE leading_scorer = ""Roy : 25""" What is the smallest total for a nation with more than 1 silver?,SELECT MIN(total) FROM table_name_75 WHERE silver > 1 How many students don't have a soy allergy?,"SELECT count ( * ) FROM Student WHERE StuID NOT IN ( SELECT StuID FROM Has_allergy WHERE Allergy = ""Soy"" ) " Provide the names of the students enlisted in the fire department.,SELECT name FROM enlist WHERE organ = 'fire_department' "What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?",SELECT AVG(rank__timeslot_) FROM table_name_2 WHERE rating > 2.9 AND rating / SHARE(18 - 49) = 2.6 / 8 AND rank__night_ > 5 What is number 4's title?,SELECT title FROM table_name_36 WHERE number = 4 What is the average number of attendees for performances?,SELECT avg(Attendance) FROM performance What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?,"select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';" How many customers are manufacturer?,SELECT COUNT(*) FROM customer WHERE cust_type = 'manufacturer' "what is the City of license that has a 1,400 watts Power","SELECT city_of_license FROM table_name_93 WHERE power = ""1,400 watts""" What is the s B share for Handelsbanken funds incl XACT?,"SELECT s_b_share FROM table_206419_3 WHERE shareholder = ""Handelsbanken funds incl XACT""" What is the description and film title of ID 996?,"SELECT description, title FROM film_text WHERE film_id = 996" How many times have coaches who were from CHI been awarded as NBA Coach of the Year?,SELECT COUNT(DISTINCT T2.coachID) FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T1.tmID = 'CHI' AND T2.award = 'NBA Coach of the Year' "List the object sample IDs of image ID 17 with coordinates (0,0).",SELECT OBJ_SAMPLE_ID FROM IMG_OBJ WHERE IMG_ID = 17 AND X = 0 AND Y = 0 Count the number of rooms in Lamberton with capacity lower than 50.,SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50 Which city was the host of 1936 Winter Olympic Games?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '1936 Winter' "What is the Week when the winner was mary joe fernández 6–4, 7–5?","SELECT week_of FROM table_name_88 WHERE winner = ""mary joe fernández 6–4, 7–5""" Which Home has a Visitor of nashville?,"SELECT home FROM table_name_44 WHERE visitor = ""nashville""" What is the product ID for the booked amount 102.76?,select product_id from products_booked where booked_amount = 102.76 What are the distinct names and nationalities of the architects who have ever built a mill?,"SELECT DISTINCT T1.name, T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id" What was the losing bonus that had 53 points?,"SELECT losing_bonus FROM table_17941032_2 WHERE points = ""53""" What are the first names of all the students?,SELECT DISTINCT fname FROM student What is the class of Fabuleux 5 get less than 70.277 in the freestyle test?,"SELECT class FROM table_name_11 WHERE event = ""freestyle test"" AND result < 70.277 AND horse = ""fabuleux 5""" what's the country with es mulatto being 3.5%,"SELECT country FROM table_1333612_1 WHERE es_mulatto = ""3.5%""" what are the order id and customer id of the oldest order?,"SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1" What is the name and price of the cheapest product?,"SELECT name , price FROM Products ORDER BY price ASC LIMIT 1" What is the air force cross when you recieve the Aerial achievement medal?,"SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = ""Aerial Achievement Medal""" how many years has сенки been nominated?,"SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = ""Сенки""" "OK, can you show me the first year and last year of parties with theme of both "" Spring"" and ""Teqnology""?","SELECT First_year , Last_year FROM party WHERE Party_Theme = ""Spring"" OR Party_Theme = ""Teqnology""" How many poems did Shakespeare write?,SELECT COUNT(id) FROM works WHERE GenreType = 'Poem' "Where can I find the movie list ""Short and pretty damn sweet""?",SELECT list_url FROM lists WHERE list_title = 'Short and pretty damn sweet' What about the violin player who attended the least performances?,select T1.name from member as T1 join member_attendance as T2 on T1.Member_id = T2.Member_id group by T2.Member_id order by count ( * ) asc limit 1 List the names of journalists in ascending order of years working.,SELECT Name FROM journalist ORDER BY Years_working ASC How many simplified names are there for xin county?,"SELECT COUNT(simplified) FROM table_2847477_2 WHERE english_name = ""Xin County""" "What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?",SELECT MAX(latitude) FROM table_name_69 WHERE water__sqmi_ > 0.518 AND longitude < -99.830606 AND pop__2010_ = 18 Find the location and all games score of the school that has Clemson as its team name.,"SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'" "what is the title when the rank is less than 17 and the worldwide gross is $299,288,605?","SELECT title FROM table_name_11 WHERE rank < 17 AND worldwide_gross = ""$299,288,605""" "What are all the characteristic names of product ""sesame""?","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""" Who is the manufacturer of the zip drive?,SELECT Manufacturer FROM Products where Name = 'ZIP drive' "Can you tell me the highest Lost that has the Pool/Round of pool 2, and the Played smaller than 6?","SELECT MAX(lost) FROM table_name_43 WHERE pool_round = ""pool 2"" AND played < 6" "What is Actor, when Role is ""Kate Manfredi""?","SELECT actor FROM table_name_28 WHERE role = ""kate manfredi""" How many perpetrators are there?,SELECT count(*) FROM perpetrator What date was the match on a clay surface against Andrea Hlaváčková?,"SELECT date FROM table_name_55 WHERE surface = ""clay"" AND opponent = ""andrea hlaváčková""" Show all distinct location names.,SELECT DISTINCT Location_Name FROM LOCATIONS What are the maximum and minimum age of students with major 600?,"SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600" How many players are from the country of Brazil?,"SELECT COUNT(position) FROM table_24565004_15 WHERE nationality² = ""Brazil""" Return the apartment number with the largest number of bedrooms.,SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1 "Show me the instructor ID associated with the History department. | Do you mean the ids of the instructors who advises of all students from History department? | Yes, what is the answer to your question?",SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' What is the Week with a Date of Bye?,"SELECT COUNT(week) FROM table_name_87 WHERE date = ""bye""" What was the total amount of matches for Alan Shearer?,"SELECT COUNT(matches) FROM table_name_81 WHERE name = ""alan shearer""" What is the name of the artist who joined latest?,SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 What is the description of the root beer brand A&W?,SELECT Description FROM rootbeerbrand WHERE BrandName = 'A&W' "Find the venue of the competition ""1994 FIFA World Cup qualification"" which was hosted by ""Nanjing ( Jiangsu )"".","SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = ""Nanjing ( Jiangsu )"" AND T3.competition = ""1994 FIFA World Cup qualification""" When 3 is the number what is the highest total?,SELECT MAX(total) FROM table_24781886_3 WHERE _number = 3 Who is the patient involved in the care plan with code 311791003?,"SELECT T2.first, T2.last FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.CODE = 315043002" Name the record for score of w 76-67,"SELECT record FROM table_17104539_9 WHERE score = ""W 76-67""" What is the region of the Alfa Records release with catalog ALCA-282?,"SELECT region FROM table_name_54 WHERE label = ""alfa records"" AND catalog = ""alca-282""" What are the names of the singers whose birth years are either 1948 or 1949?,SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949 What was the record in the competition in which the home team was the Mavericks?,"SELECT record FROM table_name_11 WHERE home = ""mavericks""" What are the student IDs for everybody who worked for more than 10 hours per week on all sports?,SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10 In what heat did the swimmer in Lane 6 rank higher than 7 with a time of 4:08.27?,"SELECT SUM(heat) FROM table_name_17 WHERE lane = 6 AND time = ""4:08.27"" AND rank > 7" "What is the booking status code of the apartment with apartment number ""Suite 634""?","SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" "Which Published as serial has a Published as novel of october 1917, mcclurg?","SELECT published_as_serial FROM table_name_82 WHERE published_as_novel = ""october 1917, mcclurg""" Who did the Jets play in their post-week 15 game?,SELECT opponent FROM table_name_2 WHERE week > 15 Who drove in grids more than 3 and exited in an accident?,"SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = ""accident""" How many allergies does the animal allergy type have?,select count ( Allergy ) from Allergy_Type where AllergyType = 'animal' List the educationnum and response of customers within the age of 20 to 30 that has the highest number of inhabitants among the group.,"SELECT T1.EDUCATIONNUM, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.age >= 20 AND T1.age <= 30 ORDER BY T3.INHABITANTS_K DESC LIMIT 1" List down 10 country codes and it's short names.,"SELECT CountryCode, ShortName FROM Country LIMIT 10" Name the high rebounds for record 7-1,"SELECT high_rebounds FROM table_18894744_5 WHERE record = ""7-1""" What are the names and ranks of the three youngest winners across all matches?,"SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3" hat is the Airline when the EASA (EU) is yes?,"SELECT airline FROM table_name_55 WHERE easa__eu_ = ""yes""" What was the introductory phrase on the episode production code 6101?,SELECT introductory_phrase FROM table_25691838_8 WHERE production_code = 6101 How many office supply orders were made by Cindy Stewart in the south superstore?,SELECT COUNT(*) FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.Category = 'Office Supplies' AND T2.`Customer Name` = 'Cindy Stewart' Return the names of poker players sorted by their earnings descending.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC Show the names of all of the high schooler Kyle's friends.,"SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = ""Kyle""" Which player played DB,"SELECT player FROM table_16441561_5 WHERE position = ""DB""" Can you show me a list of teachers that are not involve in detention?,SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id "Give the number of papers that were published on ""IEEE Transactions on Nuclear Science"" in 1999.",SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'IEEE Transactions on Nuclear Science' AND T2.Year = 1999 What is Another She's Label?,"SELECT label FROM table_name_41 WHERE english_title = ""another she""" What district is incumbent albert w. johnson from?,"SELECT district FROM table_1341865_40 WHERE incumbent = ""Albert W. Johnson""" "What was the date for the away team, team Southport?","SELECT date FROM table_name_80 WHERE away_team = ""southport""" In which counties can you find the restaurant with the highest number of branches?,SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city GROUP BY T2.county ORDER BY COUNT(T1.label) DESC LIMIT 1 What is the name of the parish that has a former local authority of St Neots urban district?,"SELECT name FROM table_name_71 WHERE former_local_authority = ""st neots urban district""" Which city does staff with first name as Janessa and last name as Sawayn live?,"SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" How many stations own Bounce TV?,"SELECT COUNT(station_ownership) FROM table_1404984_1 WHERE network = ""Bounce TV""" show me all advisors who does not have at least two students?,SELECT advisor FROM Student GROUP BY advisor HAVING count ( * ) < 2 What are the ids and details for each project?,"SELECT project_id , project_details FROM Projects" What is the latest year featuring candace parker?,"SELECT MAX(year) FROM table_name_47 WHERE player = ""candace parker""" How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?,"SELECT SUM(silver) FROM table_name_45 WHERE bronze < 5 AND gold > 0 AND rank = ""22""" Show names of shops and the carriers of devices they have in stock.,"SELECT T3.Shop_Name , T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID" "How many NHL teams are there in the Phoenix, Arizona area?","SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = ""Phoenix, Arizona""" Which state does congressman jim demint represent?,"SELECT state FROM table_20803065_1 WHERE senator = ""Jim DeMint""" "For each file format, return the number of artists who released songs in that format.","SELECT count(*) , formats FROM files GROUP BY formats" what is the Chinese name for Forensic heroes ii?,"SELECT chinese_title FROM table_11926114_1 WHERE english_title = ""Forensic Heroes II""" On what date was Tampa Bay's Week 4 game?,"SELECT date FROM table_name_2 WHERE week = ""4""" "Find the name and capacity of the stadium where the event named ""World Junior"" happened.","SELECT t1.name, t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id WHERE t2.name = 'World Junior'" On what track is the Argent mortgage Indy 300 held? ,"SELECT track FROM table_2454550_1 WHERE race_name = ""Argent Mortgage Indy 300""" What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?,"SELECT MAX(year) FROM table_name_67 WHERE event = ""800 m"" AND venue = ""santiago de chile""" What is the Ch1 in the region served by Central Tablelands?,"SELECT ch_1 FROM table_name_73 WHERE region_served = ""central tablelands""" Show the names of conductors and the orchestras they have conducted.,"SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID" What was the round number for March 22?,"SELECT round FROM table_name_92 WHERE date = ""march 22""" Show me the destination details of John F Kennedy International Airport,"SELECT dst_apid,dst_ap FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'" What is the name of the perpetrator with the biggest weight.,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1 What are the ids of songs that are available in either mp4 format or have resolution above 720?,"SELECT f_id FROM files WHERE formats = ""mp4"" UNION SELECT f_id FROM song WHERE resolution > 720" "What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?",SELECT MAX(total) FROM table_name_96 WHERE gold < 15 AND bronze < 5 AND rank > 10 what is the venue on 21 june 1987?,"SELECT venue FROM table_name_43 WHERE year = ""21 june 1987""" "How many matches were held at the venue named ""Newlands""?",SELECT SUM(CASE WHEN T2.Venue_Name = 'Newlands' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Venue AS T2 ON T2.Venue_Id = T1.Venue_Id "What is the name, location and seating for the most recently opened track?","SELECT name, LOCATION, seating FROM track ORDER BY year_opened DESC LIMIT 1" Name the air date for the seasons before 14 and series less than 183 with production code more than 709,SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183 What was the highest crowd in Victoria Park?,"SELECT MAX(crowd) FROM table_name_74 WHERE venue = ""victoria park""" "What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn?",SELECT MAX(lost) FROM table_name_9 WHERE against > 60 AND points < 61 AND drawn > 18 Find the number of cities in USA country?,"SELECT Number_cities FROM market where country = ""USA""" "For home of River Plate, what is the first leg listed?","SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = ""River Plate""" What are the emails and phone numbers of custoemrs who have never filed a complaint?,"SELECT email_address , phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)" What is the Tier when the runner-up is chanda rubin caroline vis?,"SELECT tier FROM table_name_95 WHERE runner_up = ""chanda rubin caroline vis""" With 42 as the match what are the runs?,"SELECT runs FROM table_name_42 WHERE match = ""42""" How many years was the individual winner from the United States was Tiger Woods?,"SELECT COUNT(year) FROM table_name_75 WHERE country = ""united states"" AND individual = ""tiger woods""" Name the total number of tracks for of the fallen angel,"SELECT COUNT(track) FROM table_name_21 WHERE translation = ""the fallen angel""" What was the race when the winner of 2nd was Voleuse?,"SELECT race FROM table_name_27 WHERE winner_or_2nd = ""voleuse""" How many students for both genders graduated from a 2-year institute in Alabama in 2011?,SELECT SUM(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.cohort = '2y all' AND T2.year = 2011 AND T1.state = 'Alabama' What are the names of all students who took a class and the corresponding course descriptions?,"SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code" What is the average price for flights from Los Angeles to Honolulu,"SELECT avg ( price ) FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" "When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there?",SELECT SUM(seats_2001) FROM table_name_30 WHERE _percentage_2001 > 61.4 AND _percentage_2006 < 54.1 What is the most byes with 11 wins and fewer than 1867 againsts?,SELECT MAX(byes) FROM table_name_95 WHERE against < 1867 AND wins = 11 What are all the song names by singers who are older than average?,SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer) What is every conflict in Iraq?,"SELECT conflict FROM table_1921_1 WHERE location = ""Iraq""" "How many Yelp_Business under the category of ""Food"" are good for kids?",SELECT COUNT(T3.stars) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Attributes AS T4 ON T3.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.category_name LIKE 'Food' AND T5.attribute_name LIKE 'Good for Kids' AND T4.attribute_value LIKE 'TRUE' Which Name has a Case Length of 73.99 (2.913)?,"SELECT name FROM table_name_16 WHERE case_length = ""73.99 (2.913)""" "Which Pick has a Round larger than 1, a School/Club Team of alcorn state, and a Position of defensive back?","SELECT SUM(pick) FROM table_name_88 WHERE round > 1 AND school_club_team = ""alcorn state"" AND position = ""defensive back""" "How many goals have Lost larger than 35, and Games smaller than 80?",SELECT COUNT(goals_for) FROM table_name_33 WHERE lost > 35 AND games < 80 How many businesses in the city of Scottsdale open on Sunday at 12PM?,SELECT COUNT(DISTINCT T2.business_id) FROM Business AS T1 INNER JOIN Business_hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city = 'Scottsdale' AND T3.day_of_week = 'Sunday' AND T2.opening_time = '12PM' What was Fitzroy score at their home stadium?,"SELECT home_team AS score FROM table_name_25 WHERE home_team = ""fitzroy""" Which Wins has a Country of new zealand and a Last title larger than 1968?,"SELECT MIN(wins) FROM table_name_25 WHERE country = ""new zealand"" AND last_title > 1968" How many male students are enrolled at OCC?,SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN male AS T2 ON T1.name = T2.name WHERE T1.school = 'occ' Show all countries and the number of singers in each country.,"SELECT country , count(*) FROM singer GROUP BY country" "What is the total population of the district of Klang, with an area larger than 636?","SELECT COUNT(2010 AS _population) FROM table_name_23 WHERE district = ""klang"" AND area__km_2__ > 636" What is the largest number of yest votes for the measure with 61307 no votes?,SELECT MAX(yes_votes) FROM table_256286_19 WHERE no_votes = 61307 What is the College of the WR Player from SWC Conf?,"SELECT college FROM table_name_70 WHERE conf = ""swc"" AND pos = ""wr""" Name the points classification for predictor-lotto and stage 1,"SELECT points_classification FROM table_name_65 WHERE team_classification = ""predictor-lotto"" AND stage = ""1""" Tell me the package for EEPROM less than 128,SELECT package FROM table_name_17 WHERE eeprom < 128 Give the title of the prerequisite to the course International Finance.,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance') What was the date of vacancy where the replacement was Albert Cartier and the manager was fired?,"SELECT date_of_vacancy FROM table_name_9 WHERE manner_of_departure = ""fired"" AND replaced_by = ""albert cartier""" What is the description for the section named h?,SELECT section_description FROM Sections WHERE section_name = 'h' Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11,SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6 How many distinct artists have volumes?,SELECT COUNT(DISTINCT Artist_ID) FROM volume How many different FDA approval statuses exist for medicines?,SELECT count(DISTINCT FDA_approved) FROM medicine How many male patients have prediabetes condition?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 WHERE T2.DESCRIPTION = 'Prediabetes' AND T1.gender = 'M' "Name the date when the surface was clay and the score was 6–1, 6–2 and runner-up","SELECT date FROM table_name_6 WHERE surface = ""clay"" AND score = ""6–1, 6–2"" AND outcome = ""runner-up""" "What are the first name, last name and id of the player with the most all star game experiences? Also list the count.","SELECT T1.name_first , T1.name_last , T1.player_id , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;" What date shows a Loss of lilly (2–2)?,"SELECT date FROM table_name_80 WHERE loss = ""lilly (2–2)""" HOw many films did martin repka category:articles with hcards direct?,"SELECT COUNT(film_title_used_in_nomination) FROM table_22032599_1 WHERE director = ""Martin Repka Category:Articles with hCards""" "How many people were not credited at the end of the ""Admissions"" episode?",SELECT COUNT(T2.person_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Admissions' AND T2.credited = 'false' What are the first name and last name of Linda Smith's advisor?,"SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = ""Linda"" AND T2.lname = ""Smith""" What are the names of all colleges that have an enrollment greater than at least one of the colleges in FL?,SELECT DISTINCT cName FROM college WHERE enr > ( SELECT min ( enr ) FROM college WHERE state = 'FL' ) What is the 2013 press freedom index of the country Egypt?,"SELECT 2013 AS _press_freedom_index FROM table_name_20 WHERE country = ""egypt""" What is the M1A1 when the M60A3 was T (Short Tons)?,"SELECT m1a1_abrams FROM table_name_8 WHERE m60a3_patton = ""t (short tons)""" Which Series has a Site of ames and a Sport of w gymnastics?,"SELECT series FROM table_name_13 WHERE site = ""ames"" AND sport = ""w gymnastics""" Who is the eldest player and where did he/she come from?,"SELECT T1.Player_Name, T2.Country_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id ORDER BY T1.DOB LIMIT 1" Who was the Class AAAA champion in 2006-07?,"SELECT class_aAAA FROM table_14603057_2 WHERE school_year = ""2006-07""" How did he pay?,SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) DESC LIMIT 1 "What type of inspection was done on July 07, 2010, involving the employee named ""Lisa Tillman""?",SELECT DISTINCT T2.inspection_type FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Lisa' AND T1.last_name = 'Tillman' AND T2.inspection_date = '2010-07-07' How many dates have silverstone circuit,"SELECT COUNT(date) FROM table_1140103_6 WHERE circuit = ""Silverstone""" Find the branch names of banks in the New York state.,SELECT bname FROM bank WHERE state = 'New York' "What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?",SELECT MIN(total_region) FROM table_name_75 WHERE year > 2001 AND broadsound > 6 OFFSET 843 Which HPFS has a no for ReFS?,"SELECT hpfs FROM table_name_51 WHERE refs = ""no""" What city is 103.3 FM licensed in?,"SELECT city_of_license FROM table_name_61 WHERE frequency = ""103.3 fm""" How many SMC's students that absent for 7 months?,SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T1.school = 'smc' AND T2.month = 7 Tell me the voting turnout for 1985 general elections,SELECT voting_turnout FROM table_name_91 WHERE general_elections = 1985 who is the writer where viewers is 5.16m,"SELECT writer FROM table_12148018_2 WHERE viewers = ""5.16m""" How many solutions whose repository's stars are a third more than forks?,SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks < T1.Stars * 1 / 3 Who was the manufacturer for the race on grid 12?,SELECT manufacturer FROM table_name_49 WHERE grid = 12 Who are the customers that had more than 1 policy? List the customer details and id.,"SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1" "What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?","SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = ""kolejarz rawicz""" Calculate the total price for products from id 400 to 500.,SELECT SUM(T1.Price * T2.quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID BETWEEN 400 AND 500 Return the names of all counties sorted by county name in descending alphabetical order.,SELECT County_name FROM county ORDER BY County_name DESC What was the result on 16 November 2003?,"SELECT result FROM table_name_34 WHERE date = ""16 november 2003""" "Find the personal name, family name, and author ID of the course author that teaches the most courses.","SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1" Which Class has a Chassis of Mazda 787B?,"SELECT class FROM table_name_16 WHERE chassis = ""mazda 787b""" What position was played by the player who was 2.12 meters tall?,"SELECT position FROM table_12962773_10 WHERE height = ""2.12""" What is the Population of Tshepiso with a Code of 70409 or smaller and an Area (km 2) smaller than 5.97?,"SELECT MIN(population) FROM table_name_66 WHERE code < 70409 AND area__km_2__ < 5.97 AND place = ""tshepiso""" "What is the lowest value for Events, when the value for Top-5 is greater than 1?",SELECT MIN(events) FROM table_name_56 WHERE top_5 > 1 What are the venues of debates on the affirmative side?,SELECT T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID How many to par in England?,"SELECT to_par FROM table_name_93 WHERE country = ""england""" How much did Hacienda Los Torres from ward 36 fine for failing an inspection?,SELECT SUM(T3.fine) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.dba_name = 'HACIENDA LOS TORRES' AND T1.ward = 36 AND T2.results = 'Fail' Give the official full names of legislators representing Virginia.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'VA' GROUP BY T1.official_full_name Return the official native languages of countries who have players from Maryland or Duke colleges.,"SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = ""Maryland"" OR T2.College = ""Duke""" List the names of alcohol free recipes.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.alcohol = 0 Can you list the names of the locations that have two or more railways?,SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT ( * ) > = 2 WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?,"SELECT team FROM table_name_98 WHERE position_in_table = ""12th"" AND replaced_by = ""ove pedersen""" How many users who created a list in the February of 2016 were eligible for trial when they created the list? Indicate the user id of the user who has the most number of followers in his list in February of 2016.,SELECT T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T1.list_id = T2.list_id WHERE T2.list_creation_date_utc BETWEEN '2016-02-01' AND '2016-02-29' AND T2.user_eligible_for_trial = 1 What is the only type of university that was founded in 1873?,SELECT control FROM table_2076463_2 WHERE founded = 1873 How many points have 88 laps and a grid of 14?,"SELECT points FROM table_name_99 WHERE laps = ""88"" AND grid = ""14""" What are the times of trains that go to chennai?,SELECT TIME FROM train WHERE destination = 'Chennai' "What are the different transaction types, and how many transactions of each have taken place?","SELECT transaction_type , count(*) FROM Financial_transactions GROUP BY transaction_type" What State/Country is Sean Langman the skipper?,"SELECT state_country FROM table_25594888_1 WHERE skipper = ""Sean Langman""" Find all the zip codes in which the max dew point have never reached 70.,SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70 What is the project id and detail for the project with at least two documents?,"SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2" When did the vice president with a vice over 6 take office?,SELECT took_office FROM table_name_53 WHERE vice > 6 What is the kit maker for team foolad?,"SELECT kit_maker FROM table_27383390_2 WHERE team = ""Foolad""" What is the average rating for each movie that has never been reviewed by Brittany Harris?,"SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris"") GROUP BY mID" "At the venue of panama city, on 11 Febrero 2006, how many goals were scored?","SELECT COUNT(goal) FROM table_name_10 WHERE venue = ""panama city"" AND date = ""11 febrero 2006""" What are the names of the schools with some players in the mid position but no goalies?,SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' "What is the main use for the structure listed in walker city, iowa?","SELECT main_use FROM table_name_25 WHERE town = ""walker city, iowa""" Which teams had an aggregate score of 3-4?,"SELECT team_1 FROM table_name_61 WHERE agg = ""3-4""" What date did episode 258 in the series originally air?,SELECT original_air_date FROM table_2221484_2 WHERE series__number = 258 "What is the cost and the product number of product with the id ""888""?","SELECT T2.StandardCost, T2.ProductNumber FROM ProductCostHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID = 888" Identify the name of the most popular dairy product in terms of reorder quantity.,SELECT T2.ProductName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.CategoryName = 'Dairy Products' AND T2.ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products ) How many countries have no GNP?,SELECT COUNT(*) FROM Country WHERE GNP = 0 What is the average ties when the team is montreal victorias and the games played is more than 8?,"SELECT AVG(ties) FROM table_name_73 WHERE team = ""montreal victorias"" AND games_played > 8" What are the apartment type codes?,SELECT apt_type_code FROM Apartments Which party had the most hosts? Give me the party location.,SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 How many users have rated the most popular movie?,SELECT COUNT(rating_id) FROM ratings WHERE movie_id = ( SELECT movie_id FROM movies ORDER BY movie_popularity DESC LIMIT 1 ) List each test result and its count in descending order of count.,"SELECT test_result , COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC" How many clients who live in Kansas City provided a 1-star review?,SELECT COUNT(T1.Stars) FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Kansas City' AND T1.Stars = 1 what is the lname of grade 2 | Do you mean what are the last names of the students in grade 2? | what is the lname of classroom 101,SELECT lastname from list where classroom = 101 What is Croatia's rank?,"SELECT rank FROM table_name_85 WHERE country = ""croatia""" What player plays for the Dakota Wizards?,"SELECT player FROM table_name_73 WHERE team = ""dakota wizards""" List member names and their party names.,"SELECT T1.member_name , T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id" Find all the name of documents without any sections.,SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections) List the first team's name in the match with the highest winning margin.,SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 ORDER BY T1.Win_Margin DESC LIMIT 1 What is the lowest number of wins for ben crenshaw?,"SELECT MIN(wins) FROM table_name_87 WHERE player = ""ben crenshaw""" "Among the customers from Chicago, Illinois, what is the highest quantity of products bought in a single order?",SELECT T1.Quantity FROM west_superstore AS T1 INNER JOIN east_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN central_superstore AS T3 ON T3.`Customer ID` = T2.`Customer ID` INNER JOIN south_superstore AS T4 ON T4.`Customer ID` = T3.`Customer ID` INNER JOIN people AS T5 ON T5.`Customer ID` = T4.`Customer ID` WHERE T5.City = 'Chicago' AND T5.State = 'Illinois' ORDER BY T1.Quantity DESC LIMIT 1 Which circuit has a length of 45 minutes and is held on August 6?,"SELECT circuit FROM table_name_78 WHERE length = ""45 minutes"" AND date = ""august 6""" Which major has the most students?,SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 Which Place has a To par of –8?,"SELECT place FROM table_name_19 WHERE to_par = ""–8""" Who were the writers when there were 27.11 million viewers?,"SELECT written_by FROM table_18217753_1 WHERE us_viewers__millions_ = ""27.11""" What are all the places where the number of perfect 40s is 0 and the average is 27.25?,"SELECT place FROM table_15988037_24 WHERE perfect_40s = 0 AND average = ""27.25""" "What are the names of the customers who bought product ""food"" at least once?","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = ""food"" GROUP BY T1.customer_id HAVING count(*) >= 1" "What are the names of Art instructors who have taught a course, and the corresponding course id?","SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'" "What is the parameter when the best fit (WMAP only) is .9 ± .1, and symbol is a?","SELECT parameter FROM table_name_94 WHERE best_fit__wmap_only_ = "".9 ± .1"" AND symbol = ""a""" How many female representatives are there in Michigan?,SELECT COUNT(T.bioguide_id) FROM ( SELECT T1.bioguide_id FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.type = 'rep' AND T2.state = 'MI' AND T1.gender_bio = 'F' GROUP BY T1.bioguide_id ) T "What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?","SELECT AVG(pass_def) FROM table_name_63 WHERE team = ""green bay packers"" AND solo = 62 AND sacks < 2" Which April has a Game of 84,SELECT MAX(april) FROM table_name_54 WHERE game = 84 "Show me the product type code of products named ""Dining""",SELECT distinct Product_Type_Code FROM Products WHERE Product_Name = 'Dinning' "What is the sum of the goals with less than 30 points, a position less than 10, and more than 57 goals against?",SELECT SUM(goals_for) FROM table_name_14 WHERE points < 30 AND position < 10 AND goals_against > 57 "What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a?","SELECT 1989 FROM table_name_56 WHERE 1984 = ""a"" AND 1985 = ""a"" AND 1990 = ""a""" What score was on 13 June 2004?,"SELECT score FROM table_name_50 WHERE date = ""13 june 2004""" what is the maximum first elected with incumbent being gus yatron,"SELECT MAX(first_elected) FROM table_1341586_39 WHERE incumbent = ""Gus Yatron""" How many episodes have Valerie?,"SELECT COUNT(episode) AS Summary FROM table_2140071_7 WHERE coach = ""Valerie""" Who directed episode 266 in the series?,SELECT directed_by FROM table_2221484_2 WHERE series__number = 266 What is the average rating of all the movies starring Tom Cruise?,SELECT AVG(T1.Rating) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Tom Cruise' What event did Soares fight against josh spearman?,"SELECT event FROM table_name_69 WHERE opponent = ""josh spearman""" Who was the leading scorer against the visiting team Bulls?,"SELECT leading_scorer FROM table_name_96 WHERE visitor = ""bulls""" Which To par has a Score of 67-72-71-75=285?,SELECT to_par FROM table_name_40 WHERE score = 67 - 72 - 71 - 75 = 285 What was the score in the game that was won by Sligo Rovers F.C.?,"SELECT score FROM table_name_32 WHERE winners = ""sligo rovers f.c.""" What is the highest grid for rider Fonsi Nieto?,"SELECT MAX(grid) FROM table_name_7 WHERE rider = ""fonsi nieto""" "What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?",SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0 "What is the sum of Height (cm), when the Weight (kg) is 90?",SELECT SUM(height__cm_) FROM table_name_13 WHERE weight__kg_ = 90 What is the ship id and name that caused most total injuries?,"SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1" How many total viewers (combined Live and SD) watched the episode with a share of 8?,"SELECT live + 7 AS _day_dvr_total_viewers FROM table_24222929_3 WHERE share = ""8""" What was the result of the Best Actor in a Musical category?,"SELECT result FROM table_name_81 WHERE category = ""best actor in a musical""" What is the average price of all products?,SELECT avg ( product_price ) from products how many artists do you have?,select count ( distinct artistid ) from artist How many nominee's had a vote to evict percentage of 3.92%,"SELECT COUNT(nominee) FROM table_15162479_8 WHERE vote_to_evict = ""3.92%""" "What is Place, when Weapon is ""35mm fire"", and when Date is ""27 May 1982""?","SELECT place FROM table_name_15 WHERE weapon = ""35mm fire"" AND date = ""27 may 1982""" What is the full name of client whose email address is emily.garcia43@outlook.com?,"SELECT first, middle, last FROM client WHERE email = 'emily.garcia43@outlook.com'" What is the fastest lap for Seiji Ara?,"SELECT fastest_lap FROM table_name_49 WHERE winning_driver = ""seiji ara""" What is the average lane for Australia?,"SELECT AVG(lane) FROM table_name_30 WHERE nationality = ""australia""" What was the time when the laps were smaller than 66 and the grid was 15?,SELECT time_retired FROM table_name_62 WHERE laps < 66 AND grid = 15 What is the highest amount of silver when gold is 1 and bronze larger than 0?,SELECT MAX(silver) FROM table_name_40 WHERE gold = 1 AND bronze > 0 What is the number of sequences for the name Alifoldz?,"SELECT number_of_sequences_number_of_sequences AS :_ FROM table_name_72 WHERE name = ""alifoldz""" "What is the start date and time of the walk that ends March 28, 2005, 11:31?","SELECT start___utc__ FROM table_22385461_6 WHERE end__utc_ = ""March 28, 2005, 11:31""" In how many years did Pat Bradley became the champion?,"SELECT COUNT(year) FROM table_229059_2 WHERE champion = ""Pat Bradley""" Show the names of members and the decoration themes they have.,"SELECT T1.Name, T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID" what cinema is in Cork county?,"SELECT Name FROM cinema WHERE Location = ""County Cork""" Mis-i is the nominative of what ergative?,"SELECT ergative FROM table_name_48 WHERE nominative = ""mis-i""" "How many clubs does ""Linda Smith"" belong to?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Linda"" AND t3.lname = ""Smith""" "What is the total number of wins of the central murray of koondrook-barham, which has more than 0 draws?","SELECT COUNT(wins) FROM table_name_70 WHERE central_murray = ""koondrook-barham"" AND draws > 0" List the names of business in AZ with a rating of 5.,SELECT business_id FROM Business WHERE state LIKE 'AZ' AND stars = 5 What percentage of patients born in 'Pembroke MA US' have 'allergy to grass pollen'?,SELECT CAST(SUM(CASE WHEN T2.DESCRIPTION = 'Allergy to grass pollen' THEN 1 ELSE 0 END) AS REL) * 100 / COUNT(T1.patient) FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.birthplace = 'Pembroke MA US' What week was the game played at Rich Stadium?,"SELECT week FROM table_name_94 WHERE game_site = ""rich stadium""" What is the accession number for Centromeric protein E?,"SELECT accession_number FROM protein where protein_name = ""Centromeric protein E, putative""" How many airports are there per country? Order the countries by decreasing number of airports.,"SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC" Who is the director of the movie Pinocchio?,SELECT director FROM director WHERE name = 'Pinocchio' Provide the facility type and license number of establishments with the lowest risk level but failed the inspection.,"SELECT DISTINCT T1.facility_type, T1.license_no FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 1 AND T2.results = 'Fail'" "WHAT OPPONENT HAD A KICKOFF OF 2007-03-06, 20:45?","SELECT opponents FROM table_name_2 WHERE kick_off = ""2007-03-06, 20:45""" What is the name of the legislator with the ID of W000059?,"SELECT first_name, last_name FROM historical WHERE bioguide_id = 'W000059'" "Great, what is the issue dates of all volumes of the artist ""Gorgoroth""","SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = ""Gorgoroth""" Which processors are supported with a PCI-express of x16: 1 slot x1: 4 slots and the nforce 550 model?,"SELECT processors_supported FROM table_name_82 WHERE pci_express = ""x16: 1 slot x1: 4 slots"" AND model = ""nforce 550""" what is the minimum vote percent of elections?,SELECT min ( Vote_Percent ) FROM election "What is Number Of Episodes, when Status is ""2001 - 2003, 2005 - 2009""?","SELECT number_of_episodes FROM table_name_86 WHERE status = ""2001 - 2003, 2005 - 2009""" What are the names of perpetrators?,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID How tall is contestant Alexandra Díaz Bello?,"SELECT height FROM table_22447251_2 WHERE contestant = ""Alexandra Díaz Bello""" what are all the companies on the table | Do you mean the companies that customers work? | exactly,SELECT company FROM customers where company ! = 'NULL' How many championships are there when there are 6 points,"SELECT series FROM table_26223231_1 WHERE points = ""6""" What are the names of all the players with an average of 15.89?,"SELECT name FROM table_2482547_5 WHERE average = ""15.89""" What circuit had 16 rounds?,SELECT circuit FROM table_name_79 WHERE round = 16 Can you show me the name of the patient who stays in room 111?,SELECT T2.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 What is the beat and location description of the case JB112212?,"SELECT beat, location_description FROM Crime WHERE case_number = 'JB112212'" how many people commentated where broadcaster is orf,"SELECT COUNT(commentator) FROM table_184803_4 WHERE broadcaster = ""ORF""" what is the transaction id of lot id 11,SELECT transaction_id FROM Transactions_Lots WHERE lot_id = 11 Excellent! Can you update this list to show many total classes were taken in Fall of 2008? | Do you mean how many total classes were taken in Fall of 2008? | Yes! That is what I meant! Sorry! How many total classes were taken in Fall of 2008?,SELECT count ( * ) FROM takes WHERE semester = 'Fall' and year = '2008' What is the average Regional Finals score when the record is 3-2 and there are more than 3 bids?,"SELECT AVG(regional_finals) FROM table_name_3 WHERE record = ""3-2"" AND _number_of_bids > 3" Who is the driver of the Chevrolet engine that is sponsored by godaddy.com?,"SELECT driver_s_ FROM table_2503102_1 WHERE engine = ""Chevrolet"" AND car_sponsor_s_ = ""GoDaddy.com""" Please list the bowling skills of all the players from Australia.,SELECT T2.Bowling_Skill FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id INNER JOIN Country AS T3 ON T1.Country_Name = T3.Country_Id WHERE T3.Country_Name = 'Australia' GROUP BY T2.Bowling_Skill Which courses have at least five enrollments?,SELECT * FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT ( * ) > = 5 Can you show me the most expensive wine made in the year 2006?,SELECT * FROM WINE WHERE year = 2006 order by price desc limit 1 What is the full name of the employee with the highest salary?,"SELECT FirstName, LastName FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees )" What was the profit before tax when the turnover was 431.06?,"SELECT profit_before_tax__£m_ FROM table_2856898_1 WHERE turnover__£m_ = ""431.06""" Which wine uses Cabernet Franc grapes,"SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Grape = ""Cabernet Franc""" What is the average grid of driver Christian Vietoris who has less than 12 laps?,"SELECT AVG(grid) FROM table_name_79 WHERE driver = ""christian vietoris"" AND laps < 12" What opponent played on 1/13/1974?,"SELECT opponent FROM table_name_6 WHERE date = ""1/13/1974""" What Rating has Viewers (m) of 2.73?,SELECT rating FROM table_name_96 WHERE viewers__m_ = 2.73 Who were the opponents in the final at Noida?,"SELECT opponents_in_the_final FROM table_name_15 WHERE tournament = ""noida""" List all the title of the paper that Jianli Hua published.,SELECT T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Jianli Hua' Name the least wins for 5 losses,SELECT MIN(wins) FROM table_18607260_6 WHERE losses = 5 Count the total number of tweet IDs in `en`.,SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Lang = 'en' Could you please show me the publishers with a book published in 1989?,SELECT publisher FROM book_club WHERE YEAR = 1989 The event that has a record of 1-0 is none of the above.,"SELECT event FROM table_name_71 WHERE record = ""1-0""" Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" Show ids for all transactions whose amounts are greater than the average.,SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT avg(transaction_amount) FROM Financial_transactions) Which state has 67% Republicans and a ratio of 24/12 of Republicans to Democrats?,"SELECT state_ranked_in_partisan_order FROM table_name_28 WHERE percentage_republicans = ""67%"" AND republican__democratic = ""24/12""" "Where in Chicago does the restaurant named ""Old Timers Rest & Lounge"" located?",SELECT address FROM establishment WHERE city = 'CHICAGO' AND dba_name = 'OLD TIMERS REST & LOUNGE' AND facility_type = 'Restaurant' "Which election has a conservative first party, Rowland Smith as first member, and Sir Henry Wilmot, Bt as second member?","SELECT election FROM table_name_11 WHERE first_party = ""conservative"" AND first_member = ""rowland smith"" AND second_member = ""sir henry wilmot, bt""" Show all card type codes and the number of customers holding cards in each type.,"SELECT card_type_code, COUNT(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code" "Can you tell me the lowest Chapter that has the Pinyin of dehua, and the Articles smaller than 16?","SELECT MIN(chapter) FROM table_name_54 WHERE pinyin = ""dehua"" AND articles < 16" "How many songs, on average, are sung by a female artist?","SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female""" What is the character of Tom Oliver?,SELECT Character FROM actor where Name = 'Tom Oliver' How many release dates are there for year of 1988 and additional rock band 3 features is none?,"SELECT COUNT(release_date) FROM table_23981741_1 WHERE year = 1988 AND additional_rock_band_3_features = ""None""" What is the player id for Charles?,"SELECT pID FROM Player WHERE pName = ""Charles""" What is the summary of the episode in which Emily Blunt is featured in?,SELECT T1.summary FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Emily Blunt'; Which of the mill names contains the french word 'Moulin'?,SELECT name FROM mill WHERE name LIKE '%Moulin%' Who won the FIS Nordic World Ski Championships in 1972?,"SELECT winner FROM table_name_4 WHERE fis_nordic_world_ski_championships = ""1972""" Which game was played at the Forum and led to a series result of 0-1?,"SELECT game FROM table_name_85 WHERE location_attendance = ""the forum"" AND series = ""0-1""" What are the product names of Exotic Liquids?,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Exotic Liquids' "What is Original title, when Film title used in nomination is Train Without A Timetable?","SELECT original_title FROM table_name_35 WHERE film_title_used_in_nomination = ""train without a timetable""" Who is the visitor on May 9?,"SELECT visitor FROM table_name_14 WHERE date = ""may 9""" Who were all candidate when incumbent was D. Wyatt Aiken?,"SELECT candidates FROM table_1431467_4 WHERE incumbent = ""D. Wyatt Aiken""" What Date has a time of (seconds) 42.172?,SELECT date FROM table_name_73 WHERE time__seconds_ = 42.172 and for aaronto01? | You mean the birth city for the player with ID aaronto01? | yes,"SELECT birth_city FROM player where player_id = ""aaronto01""" What is allergy type of a cat allergy?,"SELECT allergytype FROM Allergy_type WHERE allergy = ""Cat""" Return the number of companies created by Andy.,SELECT count(*) FROM manufacturers WHERE founder = 'Andy' list the publication dates for all catalogs,SELECT date_of_publication FROM catalogs What is the average of English books among all books published by Carole Marsh Mysteries?,SELECT CAST(SUM(CASE WHEN T1.language_name = 'English' THEN 1 ELSE 0 END) AS REAL) / COUNT(*) FROM book_language AS T1 INNER JOIN book AS T2 ON T1.language_id = T2.language_id INNER JOIN publisher AS T3 ON T3.publisher_id = T2.publisher_id WHERE T3.publisher_name = 'Carole Marsh Mysteries' "Which Rider has less than 18 laps, and a Grid of 24?",SELECT rider FROM table_name_73 WHERE laps < 18 AND grid = 24 What is the time of the swimmer in rank 40?,SELECT time FROM table_name_47 WHERE rank = 40 "Can you tell me the sum of Draws that has the Against larger than 1106, and the Wins larger than 13?",SELECT SUM(draws) FROM table_name_44 WHERE against > 1106 AND wins > 13 How many high schoolers are there?,SELECT count(*) FROM Highschooler Which home team plays at victoria park?,"SELECT home_team FROM table_name_40 WHERE venue = ""victoria park""" What is the skip that has a third of Anna Sloan in season 2012-13?,"SELECT skip FROM table_name_55 WHERE third = ""anna sloan"" AND season = ""2012-13""" When tony kanaan is the driver what is the average speed miles per hour?,"SELECT average_speed__mph_ FROM table_1771753_3 WHERE driver = ""Tony Kanaan""" Which theatre has the largest capacity?,SELECT * FROM cinema order by capacity desc limit 1 Find the first and last name of the faculty who is involved in the largest number of activities.,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1" Find the name and budget of departments whose budgets are more than the average budget.,"SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)" Find the states which do not have any employee in their record.,SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM Employees) How many players came from Los Angeles?,"SELECT COUNT(name) FROM table_24055352_1 WHERE hometown = ""Los Angeles""" Show all product sizes.,SELECT DISTINCT product_size FROM Products "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.","SELECT campus FROM campuses WHERE LOCATION = ""Northridge"" AND county = ""Los Angeles"" UNION SELECT campus FROM campuses WHERE LOCATION = ""San Francisco"" AND county = ""San Francisco""" How many times between 1975 and 1980 did the player abdulka01 play for LAL?,SELECT COUNT(DISTINCT T2.year) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'LAL' AND T2.year BETWEEN 1975 AND 1980 AND T1.playerID = 'abdulka01' Name the nationality of the player with round more than 4,SELECT nationality FROM table_name_46 WHERE round > 4 "For each semester, what is the name and id of the one with the most students registered?","SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1" What Country is Gene Littler from?,"SELECT country FROM table_name_60 WHERE player = ""gene littler""" What is the sum of qualifying scores when the final score is 16.625?,SELECT COUNT(score_qualifying) FROM table_name_7 WHERE score_final = 16.625 List the company name and rank for all companies in the decreasing order of their sales.,"SELECT company , rank FROM company ORDER BY Sales_billion DESC" "What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?","SELECT set_4 FROM table_name_37 WHERE set_1 = ""25-18"" AND date = ""jun 2""" What are the dates that have an average sea level pressure between 30.3 and 31?,SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 How similar is the genus/species sus scrofa? ,"SELECT similarity FROM table_15417439_1 WHERE genus_species = ""Sus scrofa""" Find the address and staff number of the shops that do not have any happy hour.,"SELECT address , num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)" Which Torque has a Model of s63 amg ('01)?,"SELECT torque FROM table_name_91 WHERE model = ""s63 amg ('01)""" What year did Todd Hamilton start working?,"SELECT Working_year_starts FROM manager where name = ""Todd Hamilton""" What is the production code of the episode that had 5.43 million viewers?,"SELECT production_code FROM table_24938621_3 WHERE us_viewers__million_ = ""5.43""" Which government is number 6?,SELECT government FROM table_name_63 WHERE number = 6 What is the date of the episode in which the presenter is Johnny Vaughan?,"SELECT date FROM table_20466963_4 WHERE presenter = ""Johnny Vaughan""" how many programs are broadcast in each time section of the day?,"SELECT count(*) , time_of_day FROM broadcast GROUP BY time_of_day" Who was the winner if the final venue is Kowloon Cricket Club?,"SELECT winner FROM table_22577693_1 WHERE final_venue = ""Kowloon Cricket Club""" For which season is Tim Mikkelson player of the year?,"SELECT season FROM table_name_87 WHERE player_of_the_year = ""tim mikkelson""" How many foodborne illness investigations were done in 2014?,"SELECT COUNT(business_id) FROM inspections WHERE STRFTIME('%Y', `date`) = '2014' AND type = 'Foodborne Illness Investigation'" What was the record after the game in which the Hurricanes scored 24 points?,SELECT record FROM table_20928682_1 WHERE hurricanes_points = 24 Which Incumbent has a Result of retired democratic gain?,"SELECT incumbent FROM table_name_35 WHERE result = ""retired democratic gain""" What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?,"SELECT type FROM table_256286_8 WHERE description = ""Department of Industry and Public Works Amendment""" How many clubs does the student named 'Eric TAI' belong to ?,"SELECT count ( DISTINCT t1.clubname ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Eric"" AND t3.lname = ""Tai""" How many customers do we have with the last name Almeida?,"select count ( * ) from customers where last_name = ""Almeida""" how many result with candidates being richard j. welch (r) unopposed,"SELECT COUNT(result) FROM table_1342233_6 WHERE candidates = ""Richard J. Welch (R) Unopposed""" What is the nationality of the guard who plays at Utah?,"SELECT nationality FROM table_name_96 WHERE position = ""guard"" AND school_club_team = ""utah""" WHose Name has a Region of kansai on 2012-04-01 ( core city )?,"SELECT name FROM table_name_63 WHERE region = ""kansai"" AND date_of_reclassification = ""2012-04-01 ( core city )""" "What is the Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16?",SELECT nation FROM table_name_26 WHERE bronze < 17 AND gold < 16 What kind of Replaced has a Team of gimnasia y esgrima (lp)?,"SELECT replaced_by FROM table_name_71 WHERE team = ""gimnasia y esgrima (lp)""" Which model has a top speed of 231km/h (143mph)?,"SELECT model FROM table_name_37 WHERE top_speed = ""231km/h (143mph)""" List all club names in descending alphabetical order.,SELECT name FROM club ORDER BY name DESC What is the country for the player who had a To Par of +4?,"SELECT country FROM table_name_76 WHERE to_par = ""+4""" What district did Joe Waggonner belong to?,"SELECT district FROM table_1341738_19 WHERE incumbent = ""Joe Waggonner""" Return the first names of the 5 staff members who have handled the most complaints.,SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5 "At what age did Michael Fred Phelps, II join the Olympics?","SELECT T2.age FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T1.full_name = 'Michael Fred Phelps, II' ORDER BY T2.age LIMIT 1" "Find the name, population and expected life length of asian country with the largest area?","SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = ""Asia"" ORDER BY SurfaceArea DESC LIMIT 1" I want the driver that has Laps of 10,SELECT driver FROM table_name_59 WHERE laps = 10 Which players played right wing?,"SELECT player FROM table_1473672_3 WHERE position = ""Right Wing""" What day in February had an opponent of @ Colorado Rockies?,"SELECT SUM(february) FROM table_name_57 WHERE opponent = ""@ colorado rockies""" What is the engine displacement for the engine type b5254 t?,"SELECT engine_displacement FROM table_1147705_1 WHERE engine_type = ""B5254 T""" What dated the episode written by is adam e. fierro & glen mazzara air?,"SELECT original_air_date FROM table_30030477_1 WHERE written_by = ""Adam E. Fierro & Glen Mazzara""" Name the Score of the Year larger than 2004 and a Runner-up of northeastern?,"SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = ""northeastern""" "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?","SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > ""1986-11-13"" GROUP BY T2.product_id" What are the first names and last names of the students that minor in the department with DNO 140.,"SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140" List the types of competition that have at most five competitions of that type.,SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 5 How many teachers are there?,SELECT count(*) FROM teacher How many figures are there for wheels for LMS numbers 16377-9?,"SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = ""16377-9""" Find the name and age of the person who is a friend of both Dan and Alice.,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'" What is the difference between the number of returned items and not returned items with the full price of under 16947.7?,"SELECT SUM(IIF(l_returnflag = 'A', 1, 0)) - SUM(IIF(l_returnflag = 'N', 1, 0)) AS diff FROM lineitem WHERE l_extendedprice < 16947.7" Show the stadium name and the number of concerts in each stadium.,"SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id" Name the max irish points for eastern michigan,"SELECT MAX(irish_points) FROM table_22875369_3 WHERE opponent = ""Eastern Michigan""" Which Result has a District of pennsylvania 13?,"SELECT result FROM table_name_5 WHERE district = ""pennsylvania 13""" "For the tournament played on Oct 17, 1982, what was the winning score?","SELECT winning_score FROM table_name_69 WHERE date = ""oct 17, 1982""" What is the student population of the university that scored 98 in 2013?,SELECT SUM(T1.num_students) FROM university_year AS T1 INNER JOIN university_ranking_year AS T2 ON T1.university_id = T2.university_id WHERE T2.score = 98 AND T1.year = 2013 List the name of all games published by 'Pioneer LDC'.,SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'Pioneer LDC' "What game site has december 24, 2000 as a date?","SELECT game_site FROM table_name_58 WHERE date = ""december 24, 2000""" "During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?","SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = ""port elizabeth"" AND versus = ""australia""" List at least 10 device models that male users over the age of 39 usually use.,SELECT T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T2.`group` = 'M39+' AND T2.gender = 'M' LIMIT 10 What are the first and last names of people who payed more than the rooms' base prices?,"SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0" "The man who received 87,676 votes in Queens won what percentage of the total for the election?","SELECT _percentage FROM table_1108394_47 WHERE queens = ""87,676""" List all the nations in Europe.,SELECT T2.n_name FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey WHERE T1.r_name = 'EUROPE' Show the role description and the id of the project staff involved in most number of project outcomes?,"SELECT T1.role_description , T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1;" What was the result of the week 13 game?,SELECT result FROM table_name_66 WHERE week = 13 Which establishment has the highest number of inspections done? Give the name of the establishment and calculate for its average score per inspection.,"SELECT T2.name, AVG(T1.score) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id GROUP BY T2.name ORDER BY COUNT(T2.business_id) DESC LIMIT 1" Provide the names and inspection results of the facilities located in Burnham.,"SELECT DISTINCT T1.dba_name, T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.city = 'BURNHAM'" How many districts have W. Arthur Winstead as elected official?,"SELECT COUNT(district) FROM table_1341930_24 WHERE incumbent = ""W. Arthur Winstead""" what is the address of the customer lukas?,SELECT customer_address fROM Customers where customer_name = 'Lukas' What is the rank for the city of sewri?,"SELECT COUNT(rank) FROM table_name_46 WHERE city = ""sewri""" "What percentage of upper middle income countries which have the CO2 emissions from liquid fuel consumption (% of total) less than 80%?",SELECT SUM(CASE WHEN T2.IndicatorName = 'CO2 emissions FROM liquid fuel consumption (% of total)' AND t2.Value < 80 THEN 1 ELSE 0 END) * 1.0 / COUNT(T1.CountryCode) persent FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Upper middle income' "With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.","SELECT Double AS non_suited_match FROM table_name_99 WHERE non_suited_match = ""3:1"" AND house_edge = ""3.53%""" "How many people vacated to successor Dave E. Satterfield, Jr. (d)?","SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = ""Dave E. Satterfield, Jr. (D)""" What is the Country of the Player with a To par of –1?,"SELECT country FROM table_name_69 WHERE to_par = ""–1""" When was the Jamaica Classic Tournament?,"SELECT date FROM table_name_10 WHERE tournament = ""the jamaica classic""" How many type of governments are in Africa?,"SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = ""Africa""" What is the year when Spirit Tom's Racing had more than 3 points?,"SELECT SUM(year) FROM table_name_70 WHERE entrant = ""spirit tom's racing"" AND points > 3" How many games were played in city Atlanta in 2000?,SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta'; What was launched and laid down in February 1819?,"SELECT launched FROM table_name_14 WHERE laid_down = ""february 1819""" What are the names of products that have never been ordered?,SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id Show the crime rates of counties in ascending order of number of police officers.,SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers Please list this in descending order.,"SELECT player_name, votes from player order by votes desc" Who had the highest points of the game on May 27?,"SELECT high_points FROM table_name_26 WHERE date = ""may 27""" What was the score on September 8?,"SELECT score FROM table_name_52 WHERE date = ""september 8""" When the # is 9 what is the U.S original airdate?,SELECT us_original_airdate FROM table_29475589_5 WHERE _number = 9 What country is Craig Parry from?,"SELECT country FROM table_name_59 WHERE player = ""craig parry""" Show all document names using templates with template type code BK.,"SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = ""BK""" Which city code of Smith? | Is Smith first name or last name? | first name,"SELECT city_code from Student where fname = ""Smith""" "hi,what is the president min salary?",select min_salary from jobs where JOB_TITLE = 'president' "Who was the visiting team on November 26, 2007?","SELECT visitor FROM table_name_65 WHERE date = ""november 26, 2007""" What is the average number of floors of the Venetian tower?,"SELECT AVG(floors) FROM table_name_59 WHERE name = ""venetian tower""" What country has the most height in the northwestern peak of rysy?,"SELECT country_or_region FROM table_24285393_1 WHERE highest_point = ""Northwestern peak of Rysy""" Which city does has most number of customers?,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; "Among the postal points in the District of Columbia, how many of them have an area with above 20000 black population?",SELECT COUNT(T1.zip_code) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'DISTRICT OF COLUMBIA' AND T2.black_population > 20000 How about it's enrollment number?,SELECT T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' List all cities in the Northern California Region.,SELECT city FROM geographic WHERE region = 'northern california' Which OU career [b] had Position [A] as a forward when there were 56 appearances?,"SELECT oxford_united_career_[b_] FROM table_name_40 WHERE position_[a_] = ""forward"" AND appearances = 56" "Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes?","SELECT margin FROM table_name_33 WHERE dist__f_ > 10 AND race = ""king george vi & queen elizabeth stakes""" Find the number of students taught by the teacher KAWA GORDON.,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""KAWA"" AND T2.lastname = ""GORDON""" What was the result of the performance of the song by Caetano Veloso?,"SELECT result FROM table_27616663_1 WHERE original_artist = ""Caetano Veloso""" Name the villain of the movie with Scott Weinger and Brad Kane as voice actors.,SELECT T1.villian FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Scott Weinger Brad Kane' List the name of all customers who had made orders online.,SELECT T FROM ( SELECT CASE WHEN T2.`Sales Channel` = 'Online' THEN T1.`Customer Names` ELSE NULL END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) WHERE T IS NOT NULL List all the addresses for the suppliers of the biggest parts.,SELECT T2.s_address FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey ORDER BY T3.p_size DESC LIMIT 1 What club is associated with draft number 155? ,SELECT nhl_team FROM table_2679061_8 WHERE pick__number = 155 "What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?",SELECT AVG(cuts_made) FROM table_name_17 WHERE top_5 = 3 AND top_10 < 5 "Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974?","SELECT entrant FROM table_name_7 WHERE chassis = ""march 742"" AND year > 1974" When рука / ruka is the serbo-croatian what is the macedonian?,"SELECT macedonian FROM table_26757_4 WHERE serbo_croatian = ""рука / ruka""" "How many characteristics does the product named ""sesame"" have?","SELECT count ( * ) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" Show these countries,SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count ( * ) > = 3 "What week was the Original artist, the police ?","SELECT week FROM table_name_5 WHERE original_artist = ""the police""" what is the nickname of staff id 3,SELECT nickname FROM Staff WHERE staff_id = 3 List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.,"SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" How many viewers in millions watched the episode 23:55 minutes long?,"SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = ""23:55""" What is the Place of the Player with a Score of 68-73-66-74=281?,SELECT place FROM table_name_13 WHERE score = 68 - 73 - 66 - 74 = 281 "What is ICAO, when Airport is ""Sibulan Airport""?","SELECT icao FROM table_name_90 WHERE airport = ""sibulan airport""" "What shows for notes when rank is more than 4, and country is South Korea?","SELECT notes FROM table_name_31 WHERE rank > 4 AND country = ""south korea""" Show the cinema name and location for cinemas with capacity above average.,"SELECT name , LOCATION FROM cinema WHERE capacity > (SELECT avg(capacity) FROM cinema)" Which catalog value has a region of world?,"SELECT catalog FROM table_name_34 WHERE region = ""world""" What is minimum hours of the students playing in different position?,"SELECT MIN(T2.HS), T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos" "What are the keywords of the episode ""Take My Life, Please""?","SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Take My Life, Please';" What are the names of the courses in alphabetical order?,SELECT course_name FROM courses ORDER BY course_name Calculate the average male median age of all the residential areas in Windham county.,SELECT SUM(T2.male_median_age) / COUNT(T2.median_age) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'WINDHAM' "What is the most expensive price paid by a customer for the book ""Bite Me If You Can (Argeneau #6)""?",SELECT MAX(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'Bite Me If You Can (Argeneau #6)' "What is the Unit for the Aircraft F.e.2b, located in Logeast?","SELECT SUM(unit) FROM table_name_20 WHERE aircraft = ""f.e.2b"" AND location = ""logeast""" What is the finish with 200 laps and a start of 3?,"SELECT finish FROM table_name_91 WHERE laps = 200 AND start = ""3""" What is the sum of year 1 and year 2 students?,SELECT COUNT(*) FROM person WHERE yearsInProgram = 'Year_1' OR yearsInProgram = 'Year_2' "List the title name, type, and price of the titles published by New Moon Books. Arrange the list in ascending order of price.","SELECT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'New Moon Books' ORDER BY T1.price" Can you tell me the Player that has the Score larger than 67?,SELECT player FROM table_name_60 WHERE score > 67 how about in Edmonton?,SELECT count ( * ) FROM employees WHERE title = 'IT Staff' and city = 'Edmonton' "Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?","SELECT score FROM table_name_7 WHERE couple = ""cristián & cheryl"" AND style = ""cha-cha-cha""" "When has a Record of 9–1, and a Tournament Champion of duke?","SELECT year FROM table_name_50 WHERE record = ""9–1"" AND tournament_champion = ""duke""" What is on the reverse side of the ₩500 coin?,"SELECT reverse FROM table_298883_5 WHERE value = ""₩500""" On what date was the Record of 43–35?,"SELECT date FROM table_name_25 WHERE record = ""43–35""" How many solution paths are there inside the 2nd most popular repository?,"SELECT COUNT(DISTINCT T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = ( SELECT Watchers FROM Repo ORDER BY Watchers DESC LIMIT 1, 1 )" Who directed Episode 8?,SELECT directed_by FROM table_11075747_4 WHERE episode__number = 8 Who is the Producer/Director of Political Engagement?,"SELECT producer_director FROM table_name_67 WHERE film = ""political engagement""" What position is the player from the United States play for the Grizzlies from 2000-2001?,"SELECT position FROM table_name_90 WHERE nationality = ""united states"" AND years_for_grizzlies = ""2000-2001""" What were the outcomes of matches with bill tilden florence ballin as opponents?,"SELECT outcome FROM table_2127933_3 WHERE opponents = ""Bill Tilden Florence Ballin""" How many people from Canada are nominated for an award?,SELECT COUNT(T1.person_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.birth_country = 'Canada' On what date was the match played in Victoria Park?,"SELECT date FROM table_name_78 WHERE venue = ""victoria park""" how many overall championships does concordia university have,"SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = ""Concordia University""" Who had a score of 70-73-69=212?,SELECT player FROM table_name_91 WHERE score = 70 - 73 - 69 = 212 "Among the episodes with an award nominee or winner, which has the highest percent of 5 star votes?",SELECT T1.episode_id FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 5 ORDER BY T2.percent DESC LIMIT 1; What group has a Population of see hoy?,"SELECT group FROM table_name_23 WHERE population = ""see hoy""" Name the most attendance,SELECT MIN(attendance) FROM table_26401898_2 what is the order date of order id 1,SELECT order_date from Customer_Orders WHERE order_id = 1 what is the product name? | Do you mean the product name of the product which has the highest price? | yes,SELECT product_name from products order by product_price desc limit 1 "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?",SELECT SUM(goals_against) FROM table_name_14 WHERE goals_for > 10 AND position = 3 AND wins < 6 What is the total processed time of all solutions from the repository with the most forks?,SELECT SUM(T2.ProcessedTime) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = ( SELECT MAX(Forks) FROM Repo ) List the state names and the number of customers living in each state.,"SELECT t2.state_province_county , count(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county" What is the percentage of the people who are under 35 and participated in the summer season?,SELECT CAST(COUNT(CASE WHEN T2.age < 35 THEN 1 END) AS REAL) * 100 / COUNT(T2.games_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' Name the injunctive for गर्यो garyo 'he did',"SELECT injunctive FROM table_16337329_5 WHERE past_habitual = ""गर्यो garyo 'he did'""" What is the location of the Sea Pines Heritage Classic tournament?,"SELECT location FROM table_name_68 WHERE tournament = ""sea pines heritage classic""" Find all details for each swimmer.,SELECT * FROM swimmer What's the blood type of the member from the vision factory agency?,"SELECT blood_type FROM table_name_52 WHERE agency = ""vision factory""" What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine?,"SELECT MAX(year) FROM table_name_20 WHERE engine = ""renault ef15 1.5 v6 t"" AND points > 5" Where does Carlton play?,"SELECT venue FROM table_name_82 WHERE home_team = ""carlton""" Calculate the total amount paid by Stephanie Mitchell for film rentals in June 2005.,"SELECT SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'STEPHANIE' AND T2.last_name = 'MITCHELL' AND SUBSTR(T1.payment_date, 1, 7) = '2005-06'" How many of those are going to Honolulu?,"SELECT count ( * ) FROM Flight WHERE origin = ""Los Angeles"" and destination = ""Honolulu""" What is the make of the car that won the brazilian grand prix?,"SELECT constructor FROM table_1139087_2 WHERE grand_prix = ""Brazilian grand_prix""" What are the names of the suppliers whose products have the highest user satisfaction?,SELECT DISTINCT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products ) Can you show me a list of all of the technicians names the machines they are assigned to repair? | Did you want the names of technicians and the ids of machines they are assigned to repair? | Yes! Can you show me their names and their machine ids that they are assigned to repair?,"SELECT T2.Name , T1.machine_id FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID" Name the national for rimutaka,"SELECT national FROM table_20217811_1 WHERE electorate = ""Rimutaka""" What is the elista with 1 played and 153⅓ baku?,"SELECT elista FROM table_name_14 WHERE played = 1 AND baku = ""153⅓""" What is the Age of f/c Posiiton?,"SELECT year_born__age_ FROM table_name_85 WHERE position = ""f/c""" What percent of the non volcanic islands in the Lesser Antilles group of islands have an area of no more than 300 square kilometers?,SELECT SUM(CASE WHEN Area <= 300 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM island WHERE Islands = 'Lesser Antilles' AND (Type != 'volcanic' OR Type IS NULL) List the product name with more than 5 quantity in the shopping cart.,SELECT T1.Name FROM Product AS T1 INNER JOIN ShoppingCartItem AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Quantity > 5 What is the customer ID of the customer with the most number of accounts?,SELECT T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 How many unique names in the list table have a classroom id of 108?,SELECT count ( distinct firstname ) from teachers where classroom = 108 Compare the numbers of postal points under Smith Adrian and Heck Joe.,SELECT CASE WHEN COUNT(CASE WHEN T1.first_name = 'Smith' AND T1.last_name = 'Adrian' THEN T2.zip_code ELSE NULL END) > COUNT(CASE WHEN T1.first_name = 'Heck' AND T1.last_name = 'Joe' THEN T2.zip_code ELSE NULL END) THEN 'Smith Adrian>Heck Joe' ELSE 'Smith Adrian<=Heck Joe' END AS COMPARE FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district Which Opponent has the Event of Sengoku 1?,"SELECT opponent FROM table_name_94 WHERE event = ""sengoku 1""" What is the score on May 18?,"SELECT score FROM table_name_75 WHERE date = ""may 18""" "What is the maximum number that a certain service is provided? List the service id, details and number.","SELECT T1.service_id , T1.service_details , count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1" "Overall, do you have the best ranked composer? | I do not quite understand what you mean. Do you mean rank by milliseconds? | Yes please.",select composer from tracks order by milliseconds Show the name of the shop that have the largest quantity of devices in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1 Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.,"SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation" "Which Week has an Air Date of august 30, 2008?","SELECT week FROM table_name_73 WHERE air_date = ""august 30, 2008""" find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count(*) DESC LIMIT 1" "List down all of the sales IDs for sales handled by sales people with first name starting with alphabet ""s"".","SELECT T1.SalesID FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE SUBSTR(T2.FirstName, 1, 1) = 's'" "What is High Rebounds, when Game is greater than 33, and when Score is ""W 132-101""?","SELECT high_rebounds FROM table_name_44 WHERE game > 33 AND score = ""w 132-101""" Is mt lawley day or boarding?,"SELECT day_boarding FROM table_name_84 WHERE location = ""mt lawley""" On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?,"SELECT date FROM table_name_45 WHERE venue = ""estadio alejandro villanueva"" AND season > 2003 AND competition_round = ""torneo apertura"" AND winner = ""universitario""" "Attendance larger than 55,189 is which average game?",SELECT AVG(game) FROM table_name_25 WHERE attendance > 55 OFFSET 189 What are the lowest points when the language is Portuguese?,"SELECT MIN(points) FROM table_name_87 WHERE language = ""portuguese""" "How many pages are there in the ""Emil Kuehn"" menu?",SELECT SUM(CASE WHEN T1.name = 'Emil Kuehn' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id Which sales team id has the highest number of orders in 2018?,SELECT _SalesTeamID FROM `Sales Orders` WHERE OrderDate LIKE '%/%/18' GROUP BY _SalesTeamID ORDER BY COUNT(_SalesTeamID) DESC LIMIT 1 How many products do you have?,select count ( * ) from Products How many tasks are there in total?,SELECT COUNT(*) FROM Tasks "What is Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4?","SELECT volume AS :issue FROM table_name_86 WHERE artist = ""elton john"" AND weeks_on_top = 4" Show the position of players and the corresponding number of players.,"SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION" "What is Date, when Location Attendance is ""TD Banknorth Garden 18,624""?","SELECT date FROM table_name_29 WHERE location_attendance = ""td banknorth garden 18,624""" what is the elevation of goroka airport,"SELECT elevation FROM airports WHERE name = ""Goroka Airport""" "What chassis has patrick racing as an entrant, with a start greater than 6?","SELECT chassis FROM table_name_69 WHERE entrant = ""patrick racing"" AND start > 6" The record of 7-3 had the largest attendance of what?,"SELECT MAX(attendance) FROM table_10361453_2 WHERE record = ""7-3""" what is the tournament when the country is united states?,"SELECT tournament FROM table_name_38 WHERE country = ""united states""" What are the average hours played for each game type?,"SELECT T2.GType, AVG ( T1.Hours_Played ) FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T2.GType" "Where was the game played when the opponent was Oklahoma City, and what was the attendance?","SELECT location_attendance FROM table_name_9 WHERE team = ""oklahoma city""" "List the nominee, keywords and episode ID of the title ""The Good, the Sad and the Drugly"".","SELECT T3.person, T1.keyword, T1.episode_id FROM Keyword AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Award AS T3 ON T2.episode_id = T3.episode_id WHERE T2.title = 'The Good, the Sad and the Drugly' AND T3.result = 'Nominee';" Which Score has a Competition of uefa euro 2012 qualifying?,"SELECT score FROM table_name_70 WHERE competition = ""uefa euro 2012 qualifying""" What is the average salary of employees who have a commission percentage that is not null?,"SELECT department_id , AVG(salary) FROM employees WHERE commission_pct != ""null"" GROUP BY department_id" Show details of all investors that made transactions with sgare greater than 100?,SELECT T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 Provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3.,"SELECT T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 3 AND T2.OBJ_CLASS = 'keyboard'" Find the customer id of Savannah?,"SELECT customer_id FROM customers where customer_name = ""Savannah""" "Of the movies in which Reese Kilmer acted, what percentage are action movies?","SELECT CAST(SUM(IIF(T4.name = 'Action', 1, 0)) AS REAL) * 100 / COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film_category AS T3 ON T2.film_id = T3.film_id INNER JOIN category AS T4 ON T3.category_id = T4.category_id WHERE T1.first_name = 'Reese' AND T1.last_name = 'Kilmer'" What Engine has a Power of 114hp (85kw)?,"SELECT engine FROM table_name_72 WHERE power = ""114hp (85kw)""" What is the time in Romania that has a lane larger than 4?,"SELECT time FROM table_name_4 WHERE lane > 4 AND nationality = ""romania""" How many entries are there for class when the prior experience is shasta h.s.,"SELECT COUNT(class) FROM table_14342210_13 WHERE prior_experience = ""Shasta H.S.""" Show the nations that have both hosts older than 45 and hosts younger than 35.,SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 Show the outcome details of the Table Name: Project Outcomes,SELECT outcome_details FROM project_outcomes What is the away team when solon was the home team?,"SELECT away_team FROM table_name_63 WHERE home_team = ""solon""" Which customer status code has least number of customers?,SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1; "Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?","SELECT MIN(goals) FROM table_name_92 WHERE matches = ""16"" AND scorer = ""park sang-in""" Name the hand guards for ar-15a2 government carbine and barrel twist of 1:9,"SELECT hand_guards FROM table_name_8 WHERE name = ""ar-15a2 government carbine"" AND barrel_twist = ""1:9""" What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?,"SELECT pole_position FROM table_name_30 WHERE fastest_lap = ""rubens barrichello"" AND round > 11" How many wins when the draws are less than 1 and more than 4 losses?,SELECT AVG(wins) FROM table_name_59 WHERE draws < 1 AND losses > 4 can you show me a list of share count?,SELECT share_count FROM TRANSACTIONS "Which Country has a Result of nominated, an Award of 17th bangkok critics assembly awards, and a Category of best screenplay?","SELECT country FROM table_name_75 WHERE result = ""nominated"" AND award = ""17th bangkok critics assembly awards"" AND category = ""best screenplay""" What are the full names of the patients who started taking Yaz 28 Day Pack in 2011?,"SELECT DISTINCT T1.first, T1.last, T1.suffix FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Yaz 28 Day Pack' AND strftime('%Y', T2.START) = '2011'" Name the school/club team/country for the player that is 6-5 ft,"SELECT school_club_team_country FROM table_name_11 WHERE height_in_ft = ""6-5""" What is the GDP per capita in Switzerland?,SELECT T2.GDP / T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland' What is the average price for each type of product?,"SELECT product_type_code , avg(product_price) FROM products GROUP BY product_type_code" "Is the ingredient ""graham cracker crumbs"" optional in the recipe ""Raspberry Chiffon Pie""?",SELECT T2.optional FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T3.name = 'graham cracker crumbs' What office is Jon Huntsman a candidate for?,"SELECT office FROM table_20246201_9 WHERE candidate = ""Jon Huntsman""" Show names of teachers that teach at least two courses.,SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 Find the name of bank branch that provided the greatest total amount of loans.,SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1 "What are the total number of Domestic Passengers of airports that contain the word ""London"".","SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE ""%London%""" What was the percentage of safari when internet explorer was 20.27%?,"SELECT safari FROM table_name_98 WHERE internet_explorer = ""20.27%""" List by their id all businesses that are open on Sunday.,SELECT T1.business_id FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T1.day_id = 1 What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?,"SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')" Name all the project titles whereby project materials are intended mainly for literary.,SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject = 'Literacy' Show the names of journalists and the names of the events they reported in ascending order,"SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC" "Which Points have a Drawn larger than 0, and a Lost larger than 1?",SELECT AVG(points) FROM table_name_38 WHERE drawn > 0 AND lost > 1 "List the season, home team, away team of all the games.","SELECT season , home_team , away_team FROM game" Which race did Bill Holland win in 1946?,"SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = ""bill holland""" What are all the tracks?,SELECT * FROM tracks What is the product description of the product booked with an amount of 102.76?,SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76 What is the horsepower of the car with the greatest accelerate?,SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1; "The ward represented by which alderman had more incidents in January, 2018, Pat Dowell or Sophia King?","SELECT T1.alderman_first_name, T1.alderman_last_name, COUNT(T1.ward_no) AS num FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE (SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' AND T1.alderman_first_name = 'Pat' AND T1.alderman_last_name = 'Dowell') OR (T1.alderman_first_name = 'Sophia' AND T1.alderman_last_name = 'King') GROUP BY T1.ward_no" How many winners did I Dessau Autobahnspinne have?,"SELECT COUNT(winning_driver) FROM table_1140116_6 WHERE race_name = ""I Dessau Autobahnspinne""" "What is Place, when Player is ""Ben Crenshaw""?","SELECT place FROM table_name_99 WHERE player = ""ben crenshaw""" What is the population for the place with an area of 2.33 km2?,"SELECT MAX(population__2000_census__) FROM table_2588674_1 WHERE area_km² = ""2.33""" What district did James O'Connor belong to?,"SELECT district FROM table_1342451_16 WHERE incumbent = ""James O'Connor""" Name the air date that chris long directed,"SELECT original_air_date FROM table_18569389_1 WHERE directed_by = ""Chris Long""" What is detail of the student who registered the most number of courses?,SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 What is the name of the artist with the greatest number of albums?,SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1 Which countries in europe have at least 3 car manufacturers?,SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3; "Return the completion date for all the tests that have ""Fail"" result.","SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Fail""" Name the episode number for tasers and mind erasers,"SELECT episode_number_production_number FROM table_24222929_4 WHERE title = ""Tasers and Mind Erasers""" how many region are presented on the table,select count ( * ) from region Name the poor law union for area being 332,SELECT COUNT(poor_law_union) FROM table_30120559_1 WHERE area__acres__ = 332 What is the name of the most recent movie?,SELECT title FROM Movie WHERE YEAR = (SELECT MAX(YEAR) FROM Movie) Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1,SELECT SUM(rank) FROM table_name_90 WHERE bronze < 1 AND gold = 1 AND total < 1 Can you list the student ids and their allergies?,"SELECT stuid, allergy from has_allergy" What episode number had 14.41 million viewers?,"SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = ""14.41""" Please name the latest historical work.,SELECT LongTitle FROM works WHERE GenreType = 'History' ORDER BY Date DESC LIMIT 1 Which constructor has 10-12 rounds and a M7A chassis?,"SELECT constructor FROM table_name_40 WHERE rounds = ""10-12"" AND chassis = ""m7a""" Which Season has 95 Points?,"SELECT season FROM table_name_48 WHERE points = ""95""" Who was the earliest user created a list but didn't get any followers? Give the user ID.,SELECT user_id FROM lists_users WHERE user_subscriber = 0 ORDER BY list_creation_date_utc LIMIT 1 Which brand in 2012 has the lowest star rating and contains cane sugar as well as honey?,SELECT DISTINCT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.CaneSugar = 'TRUE' AND T1.Honey = 'TRUE' AND T2.StarRating = 1 AND T2.ReviewDate LIKE '2012%' What Tournament had a Winning score of –6 (73-68-72-69=282)?,SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282) "what is the song when the points is more than 64, the national final is 4th and draw is more than 3?","SELECT song FROM table_name_50 WHERE points > 64 AND national_final = ""4th"" AND draw > 3" How many sales transactions were given by the customer named Joe L. Lopez?,SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Joe' AND T2.MiddleInitial = 'L' AND T2.LastName = 'Lopez' Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.,"SELECT T3.Pilot_name , T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank" What country was the player in t10 place with a score of 66-72-70=207?,"SELECT country FROM table_name_12 WHERE place = ""t10"" AND score = 66 - 72 - 70 = 207" Return the names and ids of customers who have TN in their address.,"SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE ""%TN%""" What is the Score that has a Player of Ernie Els?,"SELECT score FROM table_name_28 WHERE player = ""ernie els""" What are the names of instructors who earn more than at least one instructor from the Biology department?,SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology') WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?,"SELECT vale_royal FROM table_name_20 WHERE religion = ""jewish""" Please tell me the number of undergraduates from each campus in the year 2004,"SELECT t2.campus, sum ( t1.graduate ) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 group by t2.Campus" How many players are from each country?,"SELECT count(*) , country_code FROM players GROUP BY country_code" What are the sale details and dates of transactions with amount smaller than 3000?,"SELECT T1.sales_details , T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000" What is the Date for the Event ept copenhagen?,"SELECT date FROM table_name_71 WHERE event = ""ept copenhagen""" What is the state name of male graduate in 2011 from a private for profit institution with black students?,SELECT DISTINCT T1.state FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.gender = 'M' AND T2.race = 'B' AND T1.control = 'Private for-profit' AND T2.year = 2011 What are the project ids of those?,SELECT project_id FROM Documents GROUP BY project_id HAVING count ( * ) > = 3 "List the phone number of the customer who placed orders with a total price of more than $300,000.",SELECT T2.c_phone FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_totalprice > 300000 "Where was the successor formally installed on December 3, 1858?","SELECT state__class_ FROM table_1802760_3 WHERE date_of_successors_formal_installation = ""December 3, 1858""" "Among the menu pages of ""Ritz Carlton"", how many of them have a width of over 1000?",SELECT SUM(CASE WHEN T1.name = 'Ritz Carlton' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.full_width > 1000 What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?,SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000 What was the regular season name where they did not qualify for the playoffs in 2009?,"SELECT reg_season FROM table_21602734_1 WHERE playoffs = ""Did not qualify"" AND year = 2009" What is the name of the department with the most students minoring in it?,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1 The person with a Height of 6-8 went to which School?,"SELECT school FROM table_name_67 WHERE height = ""6-8""" How many districts had results related to incumbent Toby Roth?,"SELECT COUNT(result) FROM table_1341472_51 WHERE incumbent = ""Toby Roth""" How many points has more than 15 wins and less than 10 losses?,SELECT points FROM table_name_54 WHERE wins > 15 AND losses < 10 When did the United Kingdom format a stereo LP?,"SELECT date FROM table_name_29 WHERE region = ""united kingdom"" AND format = ""stereo lp""" What is the Diligence Virtues Gloss?,"SELECT gloss FROM table_name_22 WHERE virtue = ""diligence""" "What is Opponent, when Location/Attendance is ""Mellon Arena - 17,132""?","SELECT opponent FROM table_name_67 WHERE location_attendance = ""mellon arena - 17,132""" Who is the runner-up in 1901?,"SELECT runner_up FROM table_name_78 WHERE year = ""1901""" Please list the names of those clubs that do not have any players.,SELECT name FROM CLub WHERE Club_ID NOT IN ( SELECT Club_ID FROM player ) Thanks! Now can you add to that list the student capacity of each of those dormitories?,"SELECT avg ( T1.age ) , T3.dorm_name, T3.student_capacity FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" "What are the first name, last name, and phone number of all the female faculty members?","SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'" What was the title of the episode written by Robert Haywood?,"SELECT title FROM table_name_83 WHERE written_by = ""robert haywood""" What is the highest value under the column goals against?,SELECT MAX(goals_against) FROM table_1255110_7 Who were the crew for the Falcon?,"SELECT crew FROM table_name_87 WHERE lunar_lander = ""falcon""" What are the departure and arrival dates of all flights from LA to Honolulu?,"SELECT departure_date , arrival_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" What's the highest enrollment among the schools?,SELECT MAX(enrollment) FROM table_1971074_1 Who is the 92.5 with the press 282.5?,"SELECT 925 FROM table_name_44 WHERE press = ""282.5""" what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ,"SELECT telugu_name_తెలుగు FROM table_201400_2 WHERE kannada_name_ಕನ್ನಡ = ""Utthara ಉತ್ತರ""" Which production company produced the movie that made the most money at the box office?,SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id GROUP BY T1.company_id ORDER BY SUM(T3.revenue) DESC LIMIT 1 Provide the air carrier description of the flight with a tail number N922US from Phoenix.,SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T2.Code = T1.OP_CARRIER_AIRLINE_ID WHERE T1.TAIL_NUM = 'N922US' AND T1.ORIGIN = 'PHX' GROUP BY T2.Description Find all types of store and number of them.,"SELECT TYPE, COUNT(*) FROM store GROUP BY TYPE" "How many liked by people does the solution path ""ninject_Ninject\Ninject.sln "" have?",SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_NinjectNinject.sln' How many artworks are there?,SELECT count(*) FROM artwork What are the prices of them?,SELECT product_price FROM products where product_type_code = ( SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg ( product_price ) < ( SELECT avg ( product_price ) FROM products ) ) "What are the affiliations of the author ""Mark A. Musen"" written on and off paper?",SELECT T1.Affiliation FROM PaperAuthor AS T1 INNER JOIN Author AS T2 ON T1.AuthorId = T2.Id WHERE T2.Name = 'Mark A. Musen' What's Brazil's rank when it has notes of R?,"SELECT COUNT(rank) FROM table_name_4 WHERE notes = ""r"" AND country = ""brazil""" What are the notes of the patience theme?,"SELECT notes FROM table_name_76 WHERE theme = ""patience""" What is the Money ($) amount of the Player with a To par of e?,"SELECT money___$__ FROM table_name_2 WHERE to_par = ""e""" List the names of members who did not participate in any round.,SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM round) What is the current account balance for a GDP at current prices of 142.640?,"SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE gdp_at_current_prices__usd_billions_ = ""142.640""" What Frequency's Branding is Your Cure for Corporate Radio?,"SELECT frequency FROM table_name_23 WHERE branding = ""your cure for corporate radio""" What are the phones of departments in Room 268?,SELECT DPhone FROM DEPARTMENT WHERE Room = 268 "How many publishers have the word ""book"" in their name?",SELECT COUNT(*) FROM publisher WHERE publisher_name LIKE '%book%' What is the Set 5 with a Date that is jun 29?,"SELECT set_5 FROM table_name_93 WHERE date = ""jun 29""" What is the score of the game on June 25 at the mohegan sun arena?,"SELECT score FROM table_name_85 WHERE location = ""mohegan sun arena"" AND date = ""june 25""" Show the ids of the employees who don't authorize destruction for any document.,SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed What is the biggest amount of payment for a rental made by Mary Smith?,SELECT T1.amount FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' ORDER BY T1.amount DESC LIMIT 1 "What is the highest lane for Brazil, ranked less than 8?","SELECT MAX(lane) FROM table_name_85 WHERE country = ""brazil"" AND rank < 8" What is the Player with a Date with 12-03-2003?,"SELECT player FROM table_name_31 WHERE date = ""12-03-2003""" In what place did Tom Lehman finish?,"SELECT place FROM table_name_29 WHERE player = ""tom lehman""" Which chassis has 17 points?,SELECT chassis FROM table_name_30 WHERE points = 17 What is the status of Author Del Corro?,"SELECT status FROM table_name_84 WHERE authors = ""del corro""" Highest inhabitants from gela?,"SELECT MAX(inhabitants) FROM table_name_86 WHERE municipality = ""gela""" Please show the themes of competitions with host cities having populations larger than 1000.,SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000 what's the game with record being 29–3,"SELECT game FROM table_13480122_5 WHERE record = ""29–3""" What date was the week 17 game played on?,"SELECT date FROM table_name_62 WHERE week = ""17""" Which team had more than one player who grabbed more than 600 rebounds in 2011? Give the full name of the team.,SELECT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 2011 AND T2.rebounds > 600 What is the value for the League Cup when the FA Cup value is 0 13 0 (49)?,"SELECT league AS Cup FROM table_name_20 WHERE fa_cup = ""0 13 0 (49)""" What was the score for Team 1 of Stade Lavallois (d1)?,"SELECT score FROM table_name_7 WHERE team_1 = ""stade lavallois (d1)""" "How many policies are listed for the customer named ""Dayana Robel""?","SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Dayana Robel""" What place had a score of 71-70-73-71=285?,SELECT place FROM table_name_50 WHERE score = 71 - 70 - 73 - 71 = 285 Name the national rank for medical university of south carolina,"SELECT national_rank FROM table_27956_3 WHERE institution = ""Medical University of South Carolina""" Are there SPI on the number 7 cylinder?,"SELECT spi FROM table_16731248_1 WHERE number_on_cyl = ""7""" "What are the first, middle, and last names for everybody enrolled in a Bachelors program?","SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'" What is the average and maximum number of hours students who made the team practiced?,"SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" "What country in the region of Sub-Saharan Africa has a series code of ""SP.DYN.AMRT.FE""? Indicate the long name of the country",SELECT DISTINCT T3.LongName FROM SeriesNotes AS T1 INNER JOIN CountryNotes AS T2 ON T1.SeriesCode = T2.Seriescode INNER JOIN Country AS T3 ON T2.Countrycode = T3.CountryCode WHERE T3.Region = 'Sub-Saharan Africa' AND T1.SeriesCode = 'SP.DYN.AMRT.FE' Tell me the nationality of pick of 153,"SELECT nationality FROM table_name_85 WHERE pick = ""153""" What is their first name? | Do you mean their ?can you give more info? | What is the customer first name of the customer with the most number of accounts?,SELECT T2.customer_first_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 Is GV the only budget type?,SELECT distinct Budget_Type_Code FROM Documents_with_Expenses List the name of the shop with the latest open year.,SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1 Where did the west indies batting team play at?,"SELECT venue FROM table_name_23 WHERE batting_team = ""west indies""" How many crimes were Misc Non-Index Offense?,SELECT SUM(CASE WHEN T1.title = 'Misc Non-Index Offense' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no "List the 5 orders with the highest total price, indicating the delivery date.","SELECT T1.o_orderkey, T2.l_shipdate FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T1.o_totalprice DESC LIMIT 5" Who is the sponsor of menu with ID 12463?,SELECT sponsor FROM Menu WHERE id = 12463 Who was the leading scorer on April 7?,"SELECT leading_scorer FROM table_name_8 WHERE date = ""april 7""" Count the total number of counties.,SELECT count(*) FROM county What was the attendance total for week 10?,SELECT attendance FROM table_name_77 WHERE week = 10 Name the candidates for l. mendel rivers,"SELECT COUNT(candidates) FROM table_1341930_40 WHERE incumbent = ""L. Mendel Rivers""" Show the number of projects.,SELECT count(*) FROM Projects What is the name of party with most number of members?,SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 "Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.","SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC" What team did the Chicago Black Hawks visit on April 20?,"SELECT home FROM table_name_92 WHERE visitor = ""chicago black hawks"" AND date = ""april 20""" What is the number of played when points against 645?,SELECT COUNT(played) FROM table_13018116_1 WHERE pts_agst = 645 "Which player has a Club/province of direito, less than 21 caps, and a Position of lock?","SELECT player FROM table_name_99 WHERE club_province = ""direito"" AND caps < 21 AND position = ""lock""" Could you tell me how many departments have a head whose temporary acting value is 'no'?,SELECT count ( * ) from management WHERE temporary_acting = 'No' What is the year in which most ships were built?,SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1 "When Richmond had a total count of 2,293, what was the total count of Brooklyn?","SELECT brooklyn FROM table_name_53 WHERE richmond_[staten_is] = ""2,293""" Where can I find the office of the President of the company?,"SELECT t2.addressLine1, t2.addressLine2 FROM employees AS t1 INNER JOIN offices AS t2 ON t1.officeCode = t2.officeCode WHERE t1.jobTitle = 'President'" Which lap number had a grid number bigger than 9 and where the driver was Mark Webber?,"SELECT laps FROM table_name_77 WHERE grid > 9 AND driver = ""mark webber""" What order year has a 30 Length (ft.) and 05.505 model?,"SELECT order_year FROM table_name_86 WHERE length__ft_ = ""30"" AND model = ""05.505""" What are the largest ethnic groups where the cyrillic name and other names is пачир (hungarian: pacsér)?,"SELECT largest_ethnic_group__2002_ FROM table_2562572_27 WHERE cyrillic_name_other_names = ""Пачир (Hungarian: Pacsér)""" "Of the genes whose phenotype and motif are nucleic acid metabolism defects, PS00107, what percentage perform positive interaction with another gene?","SELECT CAST(SUM(IIF(T2.Expression_Corr > 0, 1, 0)) AS REAL) * 100 / COUNT(T2.GeneID1) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Phenotype = 'Nucleic acid metabolism defects' AND T1.Motif = 'PS00107'" How many reshared tweets have over 100 likes?,SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE IsReshare = 'TRUE' AND Likes > 100 What was the score for the Atlanta Thrashers?,"SELECT score FROM table_23486853_3 WHERE opponent = ""Atlanta Thrashers""" What are all the policy types of the customer that has the most policies listed?,SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1) "What is the Date when the Set 1 is 25–21, and the Score is 3–0, and the Time is 11:00?","SELECT date FROM table_name_51 WHERE set_1 = ""25–21"" AND score = ""3–0"" AND time = ""11:00""" How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?,"SELECT SUM(scored) FROM table_name_72 WHERE date = ""22 february 2006""" List the order key of the orders with a total price between 200000 and 300000.,SELECT o_orderkey FROM orders WHERE o_totalprice BETWEEN 200000 AND 300000 what is the name and nation of the singer who have a song having 'Hey' in its name?,"SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'" List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.,"SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'" What other cadidate ran against Dave Treen?,"SELECT candidates FROM table_1341663_19 WHERE incumbent = ""Dave Treen""" List the arrival date and the departure date for all the dogs.,"SELECT date_arrived , date_departed FROM Dogs" Show all locations and the total number of platforms and passengers for all train stations in each location.,"SELECT LOCATION , sum(number_of_platforms) , sum(total_passengers) FROM station GROUP BY LOCATION" "Show names of actors that have appeared in musical with name ""The Phantom of the Opera"".","SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = ""The Phantom of the Opera""" What was the TO par for the player who scored 70-68-74-70=282?,SELECT to_par FROM table_name_26 WHERE score = 70 - 68 - 74 - 70 = 282 Show all member names who are not in charge of any event.,SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id Who was the opponent when the fight had a time of 0:10?,"SELECT opponent FROM table_name_97 WHERE time = ""0:10""" Which date had a score of 5-1?,"SELECT date FROM table_name_20 WHERE score = ""5-1""" "Show gas station id, location, and manager_name for all gas stations ordered by open year.","SELECT station_id, LOCATION, manager_name FROM gas_station ORDER BY open_year" What are the dates of transactions with amount smaller than 3000?,SELECT T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 Name the least attendance for opponent of new orleans saints and week more than 2,"SELECT MIN(attendance) FROM table_name_5 WHERE week > 2 AND opponent = ""new orleans saints""" Who was in the three darts challenge that aired on 10 may 2010?,"SELECT three_darts_challenge FROM table_26733129_1 WHERE air_date = ""10 May 2010""" What is the average Isolation in the municipality of Sunndal at an elevation of more than 1850?,"SELECT AVG(isolation__km_) FROM table_name_83 WHERE municipality = ""sunndal"" AND elevation__m_ > 1850" In which year are there festivals both inside the 'United States' and outside the 'United States'?,SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION != 'United States' "What is the GDP per capita (US$) of the country that has a Population of 2,011,473?","SELECT gdp_per_capita__us$_ FROM table_name_54 WHERE population = ""2,011,473""" I want the result for team of giants,"SELECT result FROM table_name_63 WHERE team = ""giants""" The Club of Ekranas was an away with a score of what?,"SELECT away FROM table_name_28 WHERE club = ""ekranas""" How many distinct types of accounts are there?,SELECT count(DISTINCT acc_type) FROM customer What is Scott Verplank's score?,"SELECT score FROM table_name_65 WHERE player = ""scott verplank""" Which MLS team has the #41 pick?,SELECT mls_team FROM table_name_86 WHERE pick__number = 41 "Indicating the bounding box of ""kitchen"" in image id 250.","SELECT T1.X, T1.Y, T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 250 AND T2.OBJ_CLASS = 'kitchen'" List the cities located in U.A.E.,SELECT T1.City_Name FROM City AS T1 INNER JOIN Country AS T2 ON T2.Country_Id = T1.Country_id WHERE T2.Country_Name = 'U.A.E' "How many race 1's have 5 as the race 3, with points less than 59?","SELECT SUM(race_1) FROM table_name_45 WHERE race_3 = ""5"" AND points < 59" which Cover model has a Centerfold model of jennifer walcott?,"SELECT cover_model FROM table_name_77 WHERE centerfold_model = ""jennifer walcott""" "Which Surface has a Support Category of jwrc/pwrc, and a Round larger than 5?","SELECT surface FROM table_name_21 WHERE support_category = ""jwrc/pwrc"" AND round > 5" "Finally, can you provide the number of characteristics of the product with the name ""flax""?","SELECT count ( * ) 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 = ""flax""" Show names for all employees who have certificate of Boeing 737-800.,"SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800""" "Give the tokenized name for the method ""Supay.Irc.Messages.KnockMessage.GetTokens"".",SELECT NameTokenized FROM Method WHERE Name = 'Supay.Irc.Messages.KnockMessage.GetTokens' In which region can you find the top 4 most popular restaurants?,SELECT T2.region FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city ORDER BY T1.review DESC LIMIT 4 "Give the name of the movie that got the most ""5"" ratings.",SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 What notes did the creature comforts film have?,"SELECT notes FROM table_name_31 WHERE title = ""creature comforts""" Calculate the difference in the average number of vehicular hijackings and aggravated vehicular hijackings in the districts.,"SELECT ROUND(CAST(COUNT(CASE WHEN T1.secondary_description = 'VEHICULAR HIJACKING' THEN T1.iucr_no END) AS REAL) / CAST(COUNT(DISTINCT CASE WHEN T1.secondary_description = 'VEHICULAR HIJACKING' THEN T3.district_name END) AS REAL) - CAST(COUNT(CASE WHEN T1.secondary_description = 'AGGRAVATED VEHICULAR HIJACKING' THEN T1.iucr_no END) AS REAL) / CAST(COUNT(DISTINCT CASE WHEN T1.secondary_description = 'AGGRAVATED VEHICULAR HIJACKING' THEN T3.district_name END) AS REAL), 4) AS ""difference"" FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no" What is the name of the authors of papers in which conferences have been published whose full name includes the word Workshop?,SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T3.FullName LIKE '%Workshop%' What is the athlete from Edwardsville?,"SELECT athlete FROM table_1231316_7 WHERE location = ""Edwardsville""" Who is the instructor with the highest salary?,SELECT name FROM instructor ORDER BY salary DESC LIMIT 1 Please list the vendor providing resources for the projects of a school with the highest poverty level.,SELECT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.poverty_level = 'highest poverty' What is the full name of the team that has the most players from UCLA?,SELECT T3.name FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T1.college = 'UCLA' GROUP BY T3.name ORDER BY COUNT(DISTINCT T1.playerID) DESC LIMIT 1 "What is Winner, when Year is 2013?",SELECT winner FROM table_name_11 WHERE year = 2013 How many airports are in Papua New Guinea country?,SELECT count ( * ) from airports where country = 'Papua New Guinea' Who is the alderman in the ward associated with the crime with report number 23769?,"SELECT T2.alderman_first_name, T2.alderman_last_name FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.report_no = 23769" what is the nfl team where player is thane gash,"SELECT nfl_team FROM table_10650711_1 WHERE player = ""Thane Gash""" "When Estudiantes was team #2, what was their agg. value?","SELECT agg FROM table_name_28 WHERE team__number2 = ""estudiantes""" "What was the earliest year that a structure was located in gray court, south carolina?","SELECT MIN(year) FROM table_name_63 WHERE town = ""gray court, south carolina""" What was the home team that played Vancouver on April 29?,"SELECT home FROM table_name_62 WHERE visitor = ""vancouver"" AND date = ""april 29""" What is the amount of money with a score of 67-71-70-71=279?,SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279 "How many positions have figueirense as the team, with a played greater than 38?","SELECT COUNT(position) FROM table_name_39 WHERE team = ""figueirense"" AND played > 38" Name the frequency for 103.7 energy fm dipolog*,"SELECT frequency FROM table_27914076_1 WHERE branding = ""103.7 Energy FM Dipolog*""" What is the viewers where the rating is 5.3?,"SELECT viewers__m_ FROM table_11178271_1 WHERE rating = ""5.3""" List the countries more than two swimmer?,SELECT nationality FROM swimmer GROUP BY nationality HAVING count ( * ) > 2 What is the highest grade point?,SELECT max ( gradepoint ) FROM GRADECONVERSION Name the country for airline of gol,"SELECT country FROM table_name_33 WHERE airline = ""gol""" Who is the Winning Applicant of Block 10B in Derbyshire Area?,"SELECT winning_applicant FROM table_name_39 WHERE block = ""10b"" AND area = ""derbyshire""" Find name of all students? | Do you mean First or Last name of the students? | Find the average student GPA?,SELECT avg ( STU_GPA ) FROM STUDENT What is the title of the song with a track less than 8 released on 3/22/57?,"SELECT song_title FROM table_name_53 WHERE track < 8 AND release_date = ""3/22/57""" What venue had a draw?,"SELECT venue FROM table_name_77 WHERE result = ""draw""" What other details can you tell me about students in reverse alphabetical order?,SELECT other_student_details FROM Students ORDER BY other_student_details DESC How many votes were tallied in 1956 with a % of national vote larger than 11.47?,"SELECT SUM(votes) FROM table_name_66 WHERE date = ""1956"" AND _percentage_of_national_vote > 11.47" What is the attendance in week 4?,SELECT AVG(attendance) FROM table_name_57 WHERE week = 4 What is the id of the project with least number of documents?,SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1 What are the names of those cities?,SELECT city FROM city WHERE regional_population < 5000000 Name the average attendance from june 11,"SELECT AVG(attendance) FROM table_name_50 WHERE date = ""june 11""" What are the different types of forms?,SELECT DISTINCT form_type_code FROM forms What is the name of the most common genre in all tracks?,SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1 Which region has 0.6% none?,"SELECT region FROM table_25042332_26 WHERE none = ""0.6%""" What is the official language used in the country the name of whose head of state is Beatrix.,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = ""Beatrix"" AND T2.IsOfficial = ""T""" What are the country codes for countries that do not speak English?,"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""" "What's the Result listed that has a Date of June 12, 1997?","SELECT result FROM table_name_76 WHERE date = ""june 12, 1997""" "What is Qual 2, when Best is 1:27.642?","SELECT qual_2 FROM table_name_27 WHERE best = ""1:27.642""" How many free throws did Charles Pearman score?,"SELECT MAX(free_throws) FROM table_28693349_2 WHERE player = ""Charles Pearman""" What are the birth places that are shared by at least two people?,SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT ( * ) > = 2 Show me the names of the clubs that do not have any players?,SELECT name FROM CLub WHERE Club_ID NOT IN ( SELECT Club_ID FROM player ) What is the full name and id of the customer who has the lowest total amount of payment?,"SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1" "List the first name, last name and team name of players who are drafted from 'Seattle' between year 1965 to 1970.","SELECT DISTINCT T1.firstName, T1.lastName, T3.name FROM players AS T1 INNER JOIN draft AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T2.tmID = T3.tmID WHERE T2.draftFrom = 'Seattle' AND T2.draftYear BETWEEN 1965 AND 1970" What is the average rental payment in Horror movies?,SELECT AVG(T5.amount) FROM category AS T1 INNER JOIN film_category AS T2 ON T1.category_id = T2.category_id INNER JOIN inventory AS T3 ON T2.film_id = T3.film_id INNER JOIN rental AS T4 ON T3.inventory_id = T4.inventory_id INNER JOIN payment AS T5 ON T4.rental_id = T5.rental_id WHERE T1.name = 'Horror' What was the location for a year later than 2012?,SELECT location FROM table_name_82 WHERE year > 2012 What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?,"SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Latin"" OR T1.Name = ""Pop""" What are the names of airports in Aberdeen?,"SELECT AirportName FROM AIRPORTS WHERE City = ""Aberdeen""" What is the average duration of songs that have mp3 format and resolution below 800?,"SELECT avg ( T1.duration ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" Find the student ID and login name of the student with the most course enrollments,"SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" What are the details of the markets that can be accessed by walk or bus?,"SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk"" OR T2.How_to_Get_There = ""bus""" find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.,"SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY COUNT(*) DESC LIMIT 1" What is the average hexadecimal with a decimal greater than 57?,SELECT AVG(hexadecimal) FROM table_name_2 WHERE decimal > 57 Which Assist/pass has a Result of 6-2?,"SELECT assist_pass FROM table_name_73 WHERE result = ""6-2""" List the name and country of origin for all singers who have produced songs with rating above 9.,"SELECT DISTINCT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9" How much Loss has an Avg/G larger than 129.2?,SELECT COUNT(loss) FROM table_name_87 WHERE avg_g > 129.2 Which episode had celebrities Nick Hewer and Saira Khan in them?,"SELECT episode FROM table_24725951_1 WHERE celebrities = ""Nick Hewer and Saira Khan""" Who ordered the order ID CA-2011-118976 from the East region?,SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Order ID` = 'CA-2011-118976' AND T2.Region = 'East' "What is the highest goals against when points are larger than 31, the goal difference is smaller than 9, wins are 13, and draws are larger than 6?",SELECT MAX(goals_against) FROM table_name_12 WHERE points > 31 AND goal_difference < 9 AND wins = 13 AND draws > 6 What is the time for qual 2 that has the best time of 59.266?,"SELECT qual_2 FROM table_name_45 WHERE best = ""59.266""" What's the duration of the Archers with Pauline Seville acting?,"SELECT duration FROM table_name_45 WHERE soap_opera = ""the archers"" AND actor = ""pauline seville""" "Show the unique first names, last names, and phone numbers for all customers with any account.","SELECT DISTINCT T1.customer_first_name , T1.customer_last_name , T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What type of cartridge is used by a Weatherby?,"SELECT cartridge FROM table_16010376_1 WHERE source = ""Weatherby""" How many products with a thumpnail photo?,SELECT COUNT(ProductID) FROM ProductProductPhoto WHERE ProductPhotoID != 1 Who was the incumbent when the candidates were John banks (am) 52.2% samuel power (j) 47.8%?,"SELECT incumbent FROM table_2668199_2 WHERE candidates = ""John Banks (AM) 52.2% Samuel Power (J) 47.8%""" How many blocks are there when the rebounds are fewer than 5.2?,SELECT COUNT(blocks) FROM table_name_19 WHERE rebounds < 5.2 Indicate the name of the country with a population greater than 10000 in 2010.,SELECT DISTINCT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2010 > 10000 What is the total number of students enrolled in schools without any goalies?,"SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos = ""goalie"")" "How many Tries has Points for smaller than 137, and Tries against larger than 12?",SELECT COUNT(tries_for) FROM table_name_81 WHERE points_for < 137 AND tries_against > 12 Name the G. Hager of E. Greenberg of 266 (14%)?,"SELECT g_hager FROM table_name_49 WHERE e_greenberg = ""266 (14%)""" Name the number of dismissals for adam gilchrist,"SELECT COUNT(dismissals) FROM table_23316034_23 WHERE player = ""Adam Gilchrist""" What position has ronjay buenafe as the name?,"SELECT position FROM table_name_16 WHERE name = ""ronjay buenafe""" what team lost the most points,"SELECT lost FROM table_name_56 WHERE ""points"" = ""points""" Name the least f/laps,SELECT MIN(f_laps) FROM table_25375093_1 Calculate the percentage of the weight of goods being transported by Zachery Hicks to California in year 2016.,"SELECT CAST(SUM(CASE WHEN T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' THEN T1.weight ELSE 0 END) AS REAL) * 100 / SUM(T1.weight) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2016'" "Which DOB has Throws of r, and a Position of c, and a First of torey?","SELECT dob FROM table_name_25 WHERE throws = ""r"" AND position = ""c"" AND first = ""torey""" Which class has fewer than 89 points and the Honda team later than 1987?,"SELECT class FROM table_name_48 WHERE points < 89 AND team = ""honda"" AND year > 1987" What is the time with 10 grids?,SELECT time_retired FROM table_name_81 WHERE grid = 10 "How many users answered ""Yes"" to the question ""Have you had a mental health disorder in the past?"" in 3 consecutive years starting from 2016?","SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID IN (2016, 2017, 2018) AND T1.questiontext LIKE 'Have you had a mental health disorder in the past?' AND T2.AnswerText = 'Yes'" What are their names?,SELECT name FROM cinema WHERE capacity > = 300 What are their sponsor names?,SELECT T3.Sponsor_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID How many movie lists with over 100 movies had user 85981819 created when he or she was a paying subscriber?,SELECT COUNT(*) FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 85981819 AND T1.list_movie_number > 100 AND T2.user_has_payment_method = 1 What are the student IDs for everybody who worked for more than 10 hours per week on all sports?,SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10 How many times did Super Nova Racing win with a zytek engine?,"SELECT wins FROM table_name_14 WHERE engine = ""zytek"" AND racing_team = ""super nova racing""" What is the End Source from the Hartlepool United Loan Club?,"SELECT end_source FROM table_name_51 WHERE loan_club = ""hartlepool united""" Which Series are on may 18?,"SELECT series FROM table_name_86 WHERE date = ""may 18""" Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.,"SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" "How many production companies does the movie ""Four Rooms"" have?",SELECT COUNT(CNAME) FROM ( SELECT T1.company_name AS CNAME FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T3.title = 'Four Rooms' ) " how many county with per capita income being $20,101","SELECT COUNT(county) FROM table_1350350_2 WHERE per_capita_income = ""$20,101""" Give the name of venue for the game with a win margin of 138 points.,SELECT T2.Venue_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Win_Margin = 138 At which venue did the event held on 15 November 2010 occur?,"SELECT venue FROM table_name_78 WHERE date = ""15 november 2010""" What was the total effic for the quarterbacks?,"SELECT MIN(effic) FROM table_name_20 WHERE name = ""total""" How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?,"SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = ""Forest Rehabilitation Debt Limit Amendment""" "If the year is 2001, what are the non qatari female?",SELECT Non AS qatari_female FROM table_26214389_3 WHERE year = 2001 What series number is the episode with production code bdf101?,"SELECT MAX(series__number) FROM table_28019988_2 WHERE production_code = ""BDF101""" Which Interactivity support has a Format of fictionbook?,"SELECT interactivity_support FROM table_name_75 WHERE format = ""fictionbook""" What is the email and partition id of Tyler Swift?,"SELECT email,partitionid FROM user_profiles where name = ""Tyler Swift""" "What is the 2003 seat number, when seats contested was at 38.23%","SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percentage_in_seats_contested = ""38.23%""" What is the location with the most cinemas opened in year 2010 or later?,SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1 How many people are in New York City?,"SELECT count ( * ) from person where city = ""new york city""" how many capital with population census 2009 being 284657,SELECT COUNT(capital) FROM table_1404456_1 WHERE population_census_2009 = 284657 When racing engineering is the team and 2012 is the team what is the position?,"SELECT position FROM table_25352318_1 WHERE season = 2012 AND team = ""Racing Engineering""" List the first and last name of all unmarried male Production Supervisors.,"SELECT T2.FirstName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.MaritalStatus = 'S' AND T1.Gender = 'M' AND T1.JobTitle LIKE 'Production Supervisor%'" How many players were drafted by the Philadelphia Flyers?,"SELECT COUNT(nationality) FROM table_2679061_11 WHERE nhl_team = ""Philadelphia Flyers""" Find the last name of the first ever contact person of the organization with the highest UK Vat number.,SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1 Which Surface is on 23 january 2011?,"SELECT surface FROM table_name_79 WHERE date = ""23 january 2011""" "Show gas station id, location, and manager_name for all gas stations ordered by open year.","SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year" Which region is identified as 38xa-3 in the catalog?,"SELECT region FROM table_name_7 WHERE catalog = ""38xa-3""" Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.,SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000 What label is in CD format in Australia?,"SELECT label FROM table_name_14 WHERE format = ""cd"" AND region = ""australia""" How many albums does Billy Cobham has?,"SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Billy Cobham"";" "What is Ring Name, when Current Rank is E0 Maegashira 9 West?","SELECT ring_name FROM table_name_48 WHERE current_rank = ""e0 maegashira 9 west""" List all the customers in increasing order of IDs.,"SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC" What is the total to par with a total of 163?,SELECT COUNT(to_par) FROM table_name_16 WHERE total = 163 Find the last names of faculties in building Barton in alphabetic order.,"SELECT Lname FROM FACULTY WHERE Building = ""Barton"" ORDER BY Lname" What engine does Steve Chassey drive with a march chassis?,"SELECT engine FROM table_name_49 WHERE chassis = ""march"" AND drivers = ""steve chassey""" "In English speaking countries, provide the difference between the number of countries with republic and constitutional monarchy as its government form.",SELECT COUNT(T1.GovernmentForm = 'Republic') - COUNT(T1.GovernmentForm = 'ConstitutionalMonarchy') FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' What is the name of the oldest manager?,SELECT Name FROM manager ORDER BY Age DESC LIMIT 1 "What is the latitude and longitude of the school where the teacher who wrote ""Smile for the Camera!!!"" teaches?","SELECT T1.school_latitude, T1.school_longitude FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title = 'Smile for the Camera!!!'" What is the product price of men suits?,"select Product_Price from Products where Product_Name = ""Men suits""" Find the name and address of the customers who have both New and Pending orders.,"SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""New"" INTERSECT SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""Pending""" "Which Year has a Returned On of march 10, 2013?","SELECT AVG(year) FROM table_name_92 WHERE returned_on = ""march 10, 2013""" "What is To par, when Score is ""70-68-68-71=277""?",SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277 Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist?,"SELECT gagarin_cup_winner FROM table_name_17 WHERE gagarin_cup_finalist = ""avangard omsk""" "Which Gold Coast has Melbourne yes, and Auckland yes?","SELECT gold_coast FROM table_name_8 WHERE melbourne = ""yes"" AND auckland = ""yes""" Name the population 2010 census for population 2000 census of 920599,SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599 Show me the full name for the employees that get more salary then employee 163?,"SELECT first_name , last_name FROM employees WHERE salary > ( SELECT salary FROM employees WHERE employee_id = 163 ) " What is the most amount of stumpings any player had? ,SELECT MAX(stumpings) FROM table_27771406_1 "What is the name of the product the work order ""2540"" was making?",SELECT T2.Name FROM WorkOrder AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.WorkOrderID = 2540 How many ballot measures had a percentage yes of 52.11%?,"SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = ""52.11%""" which department id has the least amount of staff?,SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count ( * ) LIMIT 1 List down the countries that are located in Asia.,SELECT T1.n_name FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_name = 'ASIA' How many customers have an account?,SELECT count(DISTINCT customer_id) FROM Accounts Who is the owner?,SELECT owner FROM program ORDER BY launch DESC LIMIT 1 What is the catalogue for Harbor Lights as a title?,"SELECT catalogue FROM table_name_59 WHERE song_title = ""harbor lights""" "For the group with 1.92% population in 1981, what was their percentage of the population in 1971?","SELECT population__percentage_1971 FROM table_name_62 WHERE population__percentage_1981 = ""1.92%""" Show names for all aircraft with at least two flights.,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING count(*) >= 2 What is the Open Year of the Riverside Park?,"SELECT T1.year FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T2.park_name = ""Riverside Park""" How many shooter games are there?,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Shooter' What is the average age for all managers?,SELECT avg(Age) FROM manager What are the names of the songs without a lead vocal?,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""lead""" What about films of the genre Action?,"SELECT count ( * ) FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.name = ""Foreign"" and T3.special_features = ""Action""" List the phone numbers of customers whose order priority is urgent.,SELECT T2.c_phone FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_orderpriority = '1-URGENT' "Among the cities with a population between 140000 and 150000, list the country that has life expectancy greater than 80% life expectancy of all countries.","SELECT T2.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Population BETWEEN 140000 AND 150000 GROUP BY T2.Name, LifeExpectancy HAVING LifeExpectancy < ( SELECT AVG(LifeExpectancy) FROM Country ) * 0.8" "For each shop, return the number of employees working there and the name of the shop.","SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name" What bran is the callsign dytc-fm?,"SELECT branding FROM table_2610582_7 WHERE callsign = ""DYTC-FM""" Which rank has a total smaller than 1?,SELECT AVG(rank) FROM table_name_23 WHERE total < 1 "What is the price for the product with the id ""912""?",SELECT ListPrice FROM ProductListPriceHistory WHERE ProductID = 912 What is the founding date if the letters are κψκ?,"SELECT founding_date FROM table_2538117_7 WHERE letters = ""ΚΨΚ""" what is the number of wins the team Boston Red Stockings got in the postseasons each year in history?,"SELECT count ( * ) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year" "When did svishtov , bulgaria disband?","SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = ""Svishtov , Bulgaria""" What Brazil scorers have a 2-1 Score?,"SELECT brazil_scorers FROM table_name_35 WHERE score = ""2-1""" What rank did Myleene Klass finish?,"SELECT finished FROM table_name_77 WHERE celebrity = ""myleene klass""" List the names and phone numbers of all the distinct suppliers who supply red jeans.,"SELECT DISTINCT T1.supplier_name , T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = ""red jeans""" What is the week 5 after Dani Dior as week 1?,"SELECT week_5 FROM table_name_36 WHERE week_1 = ""dani dior""" What was the size of the crowd when Essendon was the away team?,"SELECT crowd FROM table_name_40 WHERE away_team = ""essendon""" What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?,"SELECT MIN(played_2) FROM table_name_65 WHERE lost > 83 AND seasons = 8 AND club_1 = ""chernomorets novorossiysk"" AND drawn < 65" "How many chapters include the character name ""First Witch""?",SELECT COUNT(T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'First Witch' How many rooms are there?,SELECT count(*) FROM Rooms; who is the oldest head,SELECT * FROM head order by age desc limit 1 What is average salary of the players in the team named 'Boston Red Stockings' ?,SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' Which is the email of the party that has used the services the most number of times?,SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1 What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?,"SELECT to_par FROM table_name_22 WHERE country = ""united states"" AND place = ""t6"" AND score = 70 - 73 - 68 - 73 = 284" Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?,"SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" What was the latitude that had a UTC time of 18:19:36?,"SELECT latitude FROM table_24518475_1 WHERE time__utc_ = ""18:19:36""" Can you also show me the last names of any male students (sex is M) who are below the age of 20?,SELECT Lname FROM student WHERE sex = 'M' AND age < 20 "how many times is the transfer fee £2,500,000?","SELECT COUNT(goals) FROM table_name_62 WHERE transfer_fee = ""£2,500,000""" "List all the object classes of the images that have a (5,5) coordinate.",SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.X = 5 AND T1.Y = 5 How many people are in the crowd in south melbourne?,"SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = ""south melbourne""" How many draws did Durham have?,"SELECT draws FROM table_name_72 WHERE team = ""durham""" How many against on the date of 08/06/1985?,"SELECT SUM(against) FROM table_name_64 WHERE date = ""08/06/1985""" Which customers do not have any policies? Find the details of these customers.,SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id What date was georgie stoop emily webley-smith the opponent?,"SELECT date FROM table_name_33 WHERE opponents = ""georgie stoop emily webley-smith""" "What are the names and headquarters of all manufacturers, ordered by revenue descending?","SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC" Which staff handled least number of payments? List the full name and the id.,"SELECT T1.first_name , T1.last_name , T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1" Which player plays for Illinois?,"SELECT player FROM table_name_1 WHERE school_club_team_country = ""illinois""" List the categories of inactive businesses in AZ.,SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'FALSE' AND T1.state LIKE 'AZ' What is the first and last name of all employees who live in the city Damianfort?,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = ""Damianfort"";" What years were the inactive Idaho chapter active?,"SELECT charter_range FROM table_name_99 WHERE status = ""inactive"" AND state = ""idaho""" "What season has a runner-up of waseda, and a title of 47th?","SELECT season FROM table_name_25 WHERE runner_up = ""waseda"" AND title = ""47th""" "How much Rank has a Bronze of 21, and a Silver larger than 10?",SELECT COUNT(rank) FROM table_name_41 WHERE bronze = 21 AND silver > 10 How many representatives are republicans?,"SELECT count ( * ) from representative where party = ""Republican""" What is the highest point highest point of Per Mars in the draft year?,SELECT T1.P FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Per Mars' ORDER BY T1.P DESC LIMIT 1 What did the phase 2b status target?,"SELECT indication FROM table_name_50 WHERE status = ""phase 2b""" List the name of all tracks in the playlists of Movies.,"SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = ""Movies"";" Where in New York can you locate the brewery that makes the bitterest beer? List both the brewery's name and the name of the city.,"SELECT T2.name, T2.city FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.state = 'NY' ORDER BY T1.ibu DESC LIMIT 1" "What are the names of wines, sorted by price ascending?",SELECT DISTINCT Name FROM WINE ORDER BY price "What is Points For, when Losing Bonus is ""2"", when Lost is ""8"", and when Club is ""Rhyl And District RFC""?","SELECT points_for FROM table_name_88 WHERE losing_bonus = ""2"" AND lost = ""8"" AND club = ""rhyl and district rfc""" the names of models that launched between 2002 and 2004.,SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004; What about those with at least 3 documents?,SELECT project_id FROM Documents GROUP BY project_id HAVING count ( * ) > = 3 "Which team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races?",SELECT MIN(races) FROM table_name_67 WHERE podiums < 2 AND flaps > 0 AND season > 2008 What proportion of Sub-Saharan Africa's countries have lower middle incomes?,SELECT SUM(CASE WHEN IncomeGroup = 'Lower middle income' THEN 1 ELSE 0 END) * 100.0 / COUNT(CountryCode) persentage FROM Country WHERE Region = 'Sub-Saharan Africa' Find the different first names and cities of the students who have allergy to milk or cat.,"SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = ""Milk"" OR T2.Allergy = ""Cat""" Excellent. What is their average score?,"SELECT avg ( score ) FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" What opponent has a record of 6-9?,"SELECT opponent FROM table_name_27 WHERE record = ""6-9""" What are the names of the winner and loser who played in the longest match?,"SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1" What are the names of movies whose created year is after all movies directed by Steven Spielberg?,"SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = ""Steven Spielberg"")" Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?,"SELECT runner_s__up FROM table_name_21 WHERE tournament = ""merrill lynch/golf digest commemorative pro-am""" for milan and the iata of lin what is the airport?,"SELECT airport FROM table_name_95 WHERE city = ""milan"" AND iata = ""lin""" What is the lowest series episode with a production code of 406?,SELECT MIN(series_episode) FROM table_23513241_5 WHERE prod_code = 406 What are the titles of all movies that have between 3 and 5 stars?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 "What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?","SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'" Who's the player eliminated on episode 8 of Fresh Meat?,"SELECT player FROM table_name_59 WHERE original_season = ""fresh meat"" AND eliminated = ""episode 8""" What is the sector when the population change 2002-2012 (%) is 79.6?,"SELECT sector FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = ""79.6""" Count the number of different scientists assigned to any project.,SELECT count(DISTINCT scientist) FROM assignedto What was the score of the game in which Brook Lopez (8) did the high rebounds?,"SELECT score FROM table_22879323_8 WHERE high_rebounds = ""Brook Lopez (8)""" Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?,"SELECT radio_commentator FROM table_2794180_11 WHERE television_commentator = ""Jan Gabrielsson""" Which Game 3 has a Game 1 of brett kenny?,"SELECT game_3 FROM table_name_75 WHERE game_1 = ""brett kenny""" How many companies have a revenue greater than 100.0?,SELECT count ( * ) FROM manufacturers where revenue>100.0 What was the winning % when there were 322 goals? ,SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 322 Which manufacturer made a locomotive with a type of 4-6-4t?,"SELECT manufacturer FROM table_name_40 WHERE type = ""4-6-4t""" What is the Established date of the Ontario Provincial Junior A Hockey League with more than 1 Championship?,"SELECT COUNT(established) FROM table_name_58 WHERE league = ""ontario provincial junior a hockey"" AND championships > 1" What country was Jay Haas representing?,"SELECT country FROM table_name_77 WHERE player = ""jay haas""" How many papers were presented at 'ECSQARU' in 2003?,SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.ShortName = 'ECSQARU' AND T1.Year = '2003' What years were the inactive North Carolina chapter active?,"SELECT charter_range FROM table_name_15 WHERE status = ""inactive"" AND state = ""north carolina""" Show publishers that have less than one publication?,SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT ( * ) > 1 Who was the chair of the LA Awards?,"select Chair_Name from festival_detail where festival_name = ""LA Awards""" "How tall is the player jones, major major jones?","SELECT height_in_ft FROM table_11734041_9 WHERE player = ""Jones, Major Major Jones""" can you list the products that have problems | Did you mean to ask for the product names of products that have problems? | yes,SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id How many of the 22 professors are part of the Accounting department?,"SELECT count ( * ) FROM Professor WHERE Dept_code = ""ACCT""" Can you show all rooms with a capacity larger than 50?,SELECT * FROM classroom WHERE capacity > 50 What are the last names that are used by customers and staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff "When the production (mt) is 446424, what is the value world rank ?",SELECT value_world_rank FROM table_21109892_1 WHERE production__mt_ = 446424 "Which clubs have one or more members from the city with code ""HOU""? Give me the names of the clubs.","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = ""HOU""" What is the Jump 2 of the person that has a Jump 1 of 7.14,"SELECT jump_2 FROM table_name_58 WHERE jump_1 = ""7.14""" In what City/State did John Bowe win at Phillip Island Grand Prix Circuit?,"SELECT city___state FROM table_name_12 WHERE winner = ""john bowe"" AND circuit = ""phillip island grand prix circuit""" Which year is the book title the ordinary?,"SELECT year FROM table_20193855_2 WHERE book_title = ""The Ordinary""" Which Longi- tude is on jun 6?,"SELECT longi__tude FROM table_name_28 WHERE date_³ = ""jun 6""" How many 5 star businesses have uber review votes for funny?,SELECT COUNT(business_id) FROM Reviews WHERE review_stars = 5 AND review_votes_funny = 'Uber' Who was the artist with a start date of 1966-10-23?,"SELECT artist_s_ FROM table_2560677_1 WHERE start_date = ""1966-10-23""" What are the names and year of construction for the mills of 'Grondzeiler' type?,"SELECT name, built_year FROM mill WHERE TYPE = 'Grondzeiler'" "What is the epicenter of the earthquake on March 2, 1825 with an unknown intensity?","SELECT epicenter FROM table_name_10 WHERE intensity = ""unknown"" AND date = ""march 2, 1825""" What are the names and data types of the characteristics of the 'cumin' product?,"SELECT t3.characteristic_name , t3.characteristic_data_type 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 = ""cumin""" How many statements do we have?,SELECT COUNT(*) FROM Statements Name the laps of october 26,"SELECT laps FROM table_2267857_1 WHERE date = ""October 26""" In which years does the country whose Alpha2Code is 1A have a result of the indicator Adolescent fertility rate?,"SELECT T2.Year FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'" "What Authority has a decile greater than 5, with a roll of 170?",SELECT authority FROM table_name_62 WHERE decile > 5 AND roll = 170 who is the husband when ceased to be dauphine is 22 july 1461 became queen?,"SELECT husband FROM table_name_36 WHERE ceased_to_be_dauphine = ""22 july 1461 became queen""" How many laps were done in 2012?,SELECT SUM(laps) FROM table_name_26 WHERE year = 2012 Which Set 3 has a Set 1 of 25–20?,"SELECT set_3 FROM table_name_9 WHERE set_1 = ""25–20""" "Find the number of students whose city code is NYC, please?","SELECT count ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = ""NYC""" "Which Conceded is the highest one that has Points larger than 17, and a Team of guaraní, and Losses smaller than 6?","SELECT MAX(conceded) FROM table_name_39 WHERE points > 17 AND team = ""guaraní"" AND losses < 6" "In Sub-Saharan Africa, how many female out-of-school children of primary school age are there in the country with the higest number of female out-of-school children of primary school age? Indicate the year of when it was recorded.","SELECT MAX(T1.value), T1.year FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Sub-Saharan Africa' AND T1.IndicatorName = 'Out-of-school children of primary school age, female (number)'" How many items did Customer#000021159 order? Calculate those items total charges.,"SELECT COUNT(T2.o_orderkey), SUM(T3.l_extendedprice * (1 - T3.l_discount) * (1 + T3.l_tax)) FROM customer AS T1 INNER JOIN orders AS T2 ON T1.c_custkey = T2.o_custkey INNER JOIN lineitem AS T3 ON T2.o_orderkey = T3.l_orderkey WHERE T1.c_name = 'Customer#000021159' GROUP BY T3.l_linenumber" who is the opponent in the final when the tournament is cagnes-sur-mer?,"SELECT opponent_in_the_final FROM table_name_64 WHERE tournament = ""cagnes-sur-mer""" Give the names of tracks that do not have a race in the class 'GT'.,SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT' What are there names?,SELECT pName FROM Player Who performed the most rebounds on games against the Minnesota Timberwolves?,"SELECT high_rebounds FROM table_27902171_9 WHERE team = ""Minnesota Timberwolves""" Which recipe has the highest number of ingredients? Calculate the said recipe's total time of cooking.,"SELECT T2.recipe_id, T1.prep_min + T1.cook_min + T1.stnd_min FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id GROUP BY T2.recipe_id ORDER BY COUNT(T2.ingredient_id) DESC LIMIT 1" Whose name in Polish holds the Lublin seat?,"SELECT name_in_polish FROM table_11614581_3 WHERE seat = ""Lublin""" who is the the high rebounds with team being vancouver,"SELECT high_rebounds FROM table_13557843_7 WHERE team = ""Vancouver""" The film titled Bosko's fox hunt had what as the smallest production number?,"SELECT MIN(production_num) FROM table_name_56 WHERE title = ""bosko's fox hunt""" what is the average of market value?,SELECT avg ( Market_Value ) FROM company Name the 2010 for tournament of us open,"SELECT 2010 FROM table_name_95 WHERE tournament = ""us open""" Select the names of all the products in the store.,SELECT Name FROM Products What is the average and maximum damage in millions for storms that had a max speed over 1000?,"SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000" "What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?","SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = ""coed"" AND authority = ""state integrated"" AND area = ""georgetown""" When did customer with first name as Carole and last name as Bernhard became a customer?,"SELECT date_became_customer FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard"";" "In what Week was Serena Williams 6–1, 6–7(7), 6–3 the Winner?","SELECT week FROM table_name_65 WHERE winners = ""serena williams 6–1, 6–7(7), 6–3""" What is the total number of birth/2012 for January–December 2012 in Kurgan Oblast?,"SELECT COUNT(birth_2012) FROM table_25703_2 WHERE january_december_2012 = ""Kurgan Oblast""" how many pages per minute colored in Xerox Travel Scanner 100?,"SELECT pages_per_minute_color FROM product WHERE product = ""Xerox Travel Scanner 100""" "Show card number, name, and hometown for all members in a descending order of level.","SELECT card_number , name , hometown FROM member ORDER BY LEVEL DESC" What are the highest number of points with an Entrant of warsteiner brewery?,"SELECT MAX(points) FROM table_name_8 WHERE entrant = ""warsteiner brewery""" Which year has has a Engine of maserati straight-6?,"SELECT COUNT(year) FROM table_name_31 WHERE engine = ""maserati straight-6""" what are the durations of the longest tracts?,SELECT max ( Milliseconds ) FROM TRACK In what city does Janessa Sawayn live?,"SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" "Which Competition has a Result of w, and a Score of 2-0, and a Date of may 9, 1954?","SELECT competition FROM table_name_50 WHERE result = ""w"" AND score = ""2-0"" AND date = ""may 9, 1954""" "What League position has a Result F – A of 2 – 0, and Opponents of queens park rangers?","SELECT league_position FROM table_name_31 WHERE result_f___a = ""2 – 0"" AND opponents = ""queens park rangers""" "How many faculty, in total, are there in the year 2002?",SELECT sum(faculty) FROM faculty WHERE YEAR = 2002 What year was the Beaudesert suburb club founded,"SELECT founded FROM table_name_95 WHERE suburb = ""beaudesert""" Which headquarter locations are used by more than 2 companies?,SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 2 In what week was the Result L 35-10?,"SELECT MIN(week) FROM table_name_76 WHERE result = ""l 35-10""" what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953?,"SELECT team FROM table_name_46 WHERE position > 1 AND date = ""9/1953"" AND driver = ""emmanuel de graffenried""" What is the home team for the Princes Park venue?,"SELECT home_team FROM table_name_87 WHERE venue = ""princes park""" Calculate the total purchases made by customers using their Visa credit cards in the Sac State American River Courtyard between 6/3/2014 and 11/27/2015.,SELECT SUM(T1.PurchasePrice) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State American River Courtyard' AND T1.CreditCardType = 'Visa' AND T1.TransactionDate BETWEEN '2014-06-03' AND '2015-11-27' What are names of customers who never ordered product Latte.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' How many aircrafts exist in the database?,SELECT count(*) FROM Aircraft When was the Mallala race held?,"SELECT date FROM table_name_57 WHERE race_title = ""mallala""" Calculate the percentage of Black students in all private for profit institutions.,SELECT CAST(SUM(CASE WHEN T2.race = 'B' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.race = 'B' AND T1.control = 'Private for-profit' What are the different cities listed?,SELECT DISTINCT headquarter FROM manufacturers What is the total number of wins for Darley of Ballarat FL against larger than 1055?,"SELECT COUNT(wins) FROM table_name_96 WHERE ballarat_fl = ""darley"" AND against > 1055" Which away team in the division of Bundesliga has the highest final time goals?,SELECT T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.name = 'Bundesliga' ORDER BY T1.FTAG DESC LIMIT 1 How many object samples in image no.908 are in the class of tip?,SELECT SUM(CASE WHEN T2.OBJ_CLASS = 'tip' THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 908 how many porphyria have substrate δ-aminolevulinic acid,"SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = ""δ-Aminolevulinic acid""" Find the number of routes with destination airports in Italy.,SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' How long did Berry Keebler take the Acetaminophen 160 MG when he was admitted due to acute bronchitis?,"SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS takenDays FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Berry' AND T1.last = 'Keebler' AND T2.REASONDESCRIPTION = 'Acute bronchitis (disorder)' AND T2.DESCRIPTION = 'Acetaminophen 160 MG'" "What are the white percentages of cities, and the corresponding crime rates of the counties they correspond to?","SELECT T1.White , T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" Can you list the share counts for all transactions?,SELECT share_count FROM TRANSACTIONS What record has decision (majority) as the method?,"SELECT record FROM table_name_48 WHERE method = ""decision (majority)""" "Find the names of the swimmers who have both ""win"" and ""loss"" results in the record.",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' When did Natalie Dorris buy her first root beer?,SELECT T2.TransactionDate FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Natalie' AND T1.Last = 'Dorris' ORDER BY T2.TransactionDate LIMIT 1 Can you show me a list of all the course descriptions?,SELECT CRS_DESCRIPTION from course In which state does Emily Wood work?,SELECT T2.state FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T1.firstname = 'Emily' AND T1.lastname = 'Wood' List the name of the aircraft that has been named winning aircraft the most number of times.,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1 Provide the title and total time of the recipe which has the highest possibility of gaining weight.,"SELECT T1.title, T1.prep_min + T1.cook_min + T1.stnd_min FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat DESC LIMIT 1" What are the ID of actors with quality rating of 3 acted in English USA movies?,SELECT T2.actorid FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid WHERE T3.a_quality = 3 AND T1.country = 'USA' AND T1.isEnglish = 'T' "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?","SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code" What team was 2 when Tatung was team 1 at National Pei Men Senior High School?,"SELECT team_2 FROM table_name_32 WHERE team_1 = ""tatung"" AND ground = ""national pei men senior high school""" Record of 18–15–6 belongs to what lowest attendance?,"SELECT MIN(attendance) FROM table_name_32 WHERE record = ""18–15–6""" Can you show me the insurance id of the patient who stays in room 111?,SELECT T2.InsuranceID FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 what was steve flesch's to par when he was placed at t3 in the united states?,"SELECT to_par FROM table_name_71 WHERE place = ""t3"" AND country = ""united states"" AND player = ""steve flesch""" How many crowds watched the game where the record was 1-3? ,"SELECT COUNT(attendance) FROM table_11452830_2 WHERE record = ""1-3""" What was the rating for Brisbane the week that Adelaide had 94000?,SELECT MIN(brisbane) FROM table_24291077_8 WHERE adelaide = 94000 what investors were involved with those transactions that were under 3000?,SELECT T2.investor_id FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 "What is the lowest year that has edmonton, canada as the venue with a weight class (kg) greater than 100?","SELECT MIN(year) FROM table_name_11 WHERE venue = ""edmonton, canada"" AND weight_class__kg_ > 100" What was the theme for the final showdown (week 3)?,"SELECT theme FROM table_name_93 WHERE week = ""final showdown (week 3)""" What is the high rebounds of game 68?,SELECT high_rebounds FROM table_name_46 WHERE game = 68 "For all the employees that have left the Engineering Department, what is the average time of their stay?","SELECT CAST(SUM(365 * (STRFTIME('%Y', T1.EndDate) - STRFTIME('%Y', T1.StartDate)) + 30 * (STRFTIME('%m', T1.EndDate) - STRFTIME('%m', T1.StartDate)) + STRFTIME('%d', T1.EndDate) - STRFTIME('%d', T1.StartDate)) AS REAL) / COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID WHERE T2.Name = 'Engineering' AND T1.EndDate IS NOT NULL" What is the date problem reported of w?,"SELECT T2.date_problem_reported FROM problems AS T1 JOIN Problems AS T2 WHERE T2.problem_description = ""w""" What is the name and age of the youngest winning pilot...,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1" Which club was originally named the newcastle falcons?,"SELECT original_club FROM table_26218124_1 WHERE name = ""Newcastle Falcons""" Can you show me the names and total checking and savings account balances?,"SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid" What is the name of the company that produced the game titled Adventure Time: Explore the Dungeon Because I Don't Know!?,SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!' What is the lowest figure score when the free is 556?,SELECT MIN(figures) FROM table_name_24 WHERE free = 556 What is the 2009 result when 2011 is 1R and 2007 is A?,"SELECT 2009 FROM table_name_84 WHERE 2011 = ""1r"" AND 2007 = ""a""" how many points did the argentinos juniors team score during the 1986-87 season?,"SELECT 1986 AS _87 FROM table_14489821_1 WHERE team = ""Argentinos Juniors""" "What is the Week number on October 10, 1976?","SELECT COUNT(week) FROM table_name_17 WHERE date = ""october 10, 1976""" what's the software executable space protection with dbeingtribution being gentoo,"SELECT software_executable_space_protection FROM table_1357052_6 WHERE distribution = ""Gentoo""" "In 1990, how many players whose teams had the winning rate of more than 75%?",SELECT COUNT(DISTINCT T1.playerID) FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE CAST(T2.won AS REAL) * 100 / CAST(T2.games AS REAL) > 75 AND T1.year = 1990 "For each county, find the name of the county and the number of delegates from that county.","SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id" How many different kickoffs happened when the opponent was the Scottish Claymores,"SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = ""Scottish Claymores""" What is the average speed of roller coasters?,SELECT avg(Speed) FROM roller_coaster What are the total number of students who are living in a male dorm?,SELECT 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 T3.gender = 'M' What are their opening hours?,"SELECT Name,opening_hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""shuttle""" What is the Wins of the Top-25 of 1 and 7 Events?,SELECT wins FROM table_name_66 WHERE top_25 = 1 AND events = 7 ratio of 16:13 has how many highest size (steps)?,"SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = ""16:13""" How many orders shipped via ship have a medium priority?,SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'SHIP' AND T1.o_orderpriority = '3-MEDIUM' What is the most common publication date?,SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT ( * ) DESC LIMIT 1 "What is Status, when Opposing Teams is ""Scotland""?","SELECT status FROM table_name_16 WHERE opposing_teams = ""scotland""" Tell me the ethnic group for jewish of 0.47%,"SELECT ethnic_group FROM table_name_77 WHERE jewish = ""0.47%""" What is is the number of patients who are not using Procrastin-X?,SELECT count ( * ) FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' ) How many items in inventory does store 1 have?,SELECT count(*) FROM inventory WHERE store_id = 1 What did the home team score when they played the away team of Geelong?,"SELECT home_team AS score FROM table_name_10 WHERE away_team = ""geelong""" how many customers have 7 or more orders,SELECT count ( * ) FROM ( SELECT * FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id having count ( * ) > = 7 ) "Which date has an Opponent of angels, and a Loss of sanderson (0–1)?","SELECT date FROM table_name_95 WHERE opponent = ""angels"" AND loss = ""sanderson (0–1)""" When did the Cowboys score 13 points in 1966?,SELECT date FROM table_22801165_1 WHERE cowboys_points = 13 Which of the opponents has a record of 17-25?,"SELECT opponent FROM table_name_52 WHERE record = ""17-25""" The 20th Century Fox film directed by Joel Schumacher grossed how much?,"SELECT gross FROM table_name_74 WHERE studio = ""20th century fox"" AND director_s_ = ""joel schumacher""" Which 2008 has a Career Win-Loss of 25–40?,"SELECT 2008 FROM table_name_54 WHERE career_win_loss = ""25–40""" Show the race class and number of races in each class.,"SELECT CLASS , count(*) FROM race GROUP BY CLASS" How many authors are there?,SELECT COUNT(*) FROM authors "How many reviews does ""Planet Money"" have?",SELECT COUNT(T2.podcast_id) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Planet Money' What are their names? | The table shows the first and last names of the employees who report to Nancy Edward. | Who does not report to Nancy Edwards?,"SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name ! = ""Nancy"" AND T1.last_name ! = ""Edwards""" What was the date for game 13?,"SELECT date FROM table_name_14 WHERE game = ""13""" "Name the most expensive ordered? Who, when was it ordered?","SELECT T2.OrderNumber, T1.`Customer Names`, T2.OrderDate FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products AS T3 ON T3.ProductID = T2._ProductID ORDER BY T2.`Unit Cost` DESC LIMIT 1" "Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4?","SELECT driver FROM table_name_99 WHERE laps > 78 AND time_retired = ""+ 1:09.4""" "Show the full Comment of the method ""DE2_UE_Fahrradkurier.de2_uebung_fahrradkurierDataSet1TableAdapters.TableAdapterManager.UpdateInsertedRows"".",SELECT FullComment FROM Method WHERE Name = 'DE2_UE_Fahrradkurier.de2_uebung_fahrradkurierDataSet1TableAdapters.TableAdapterManager.UpdateInsertedRows' "For the sanitarian who lives on 5000 N Wolcott Ave, how many establishments did he/she inspect in the May of 2011?","SELECT COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T2.address = '5000 N Wolcott Ave' AND T2.title = 'Sanitarian' AND strftime('%Y-%m', T1.inspection_date) = '2011-05'" What is the percentage of male clients complaining about their credit cards?,SELECT CAST(SUM(CASE WHEN T1.sex = 'Male' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card' Who is the captain of Cardiff City?,"SELECT team AS captain FROM table_26593762_2 WHERE team = ""Cardiff City""" What are the names of the other tourist?,"SELECT Tourist_Details FROM Visitors WHERE Tourist_Details ! = ""Vivian"" and Tourist_Details! = ""Vincent""" What are the tags of the top 5 least downloaded live albums?,SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched LIMIT 5 Who is every Under-15 if Under-11 is Reeham Sedky?,"SELECT under_15 FROM table_26368963_2 WHERE under_11 = ""Reeham Sedky""" What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?,"SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'" What is Tiger woods's born state,"SELECT born_state FROM head where name = ""Tiger Woods""" What are the names of the people who are in the affirmative side?,SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID what is the goals for when the club is new england revolution?,"SELECT goals_for FROM table_1246208_5 WHERE club = ""New England Revolution""" "What is the notes when the displacement is 220cid (3,604cc)?","SELECT notes FROM table_name_78 WHERE displacement = ""220cid (3,604cc)""" How many kinds of items are returned in order no.5?,SELECT COUNT(l_linenumber) FROM lineitem WHERE l_orderkey = 5 AND l_returnflag = 'R' List the names of mountains that do not have any climber.,SELECT Name FROM mountain WHERE NOT Mountain_ID IN (SELECT Mountain_ID FROM climber) What is the name and email of the staff in store ID 2?,"SELECT first_name, last_name, email FROM staff WHERE store_id = 2" Return the total and minimum enrollments across all schools.,"SELECT sum(enrollment) , min(enrollment) FROM university" Name the year that Birds of a feather category for most popular actress was nominated,"SELECT AVG(year) FROM table_name_57 WHERE category = ""most popular actress"" AND nominated_for = ""birds of a feather""" Hi can you tell me in witch city does Alice live?,"select city from person where name = ""Alice""" who is Bob's friend?,SELECT friend FROM PersonFriend where name = 'Bob' Please list any 3 product numbers with the lowest standard cost.,SELECT ProductID FROM ProductCostHistory ORDER BY StandardCost ASC LIMIT 3 What is the 1991 population for the urban settlement named Bački Jarak?,"SELECT population__1991_ FROM table_2562572_2 WHERE urban_settlement = ""Bački Jarak""" How many book clubs are there?,SELECT count(*) FROM book_club How many users are there?,SELECT count(*) FROM user_profiles "What is Points, when Points For is ""points for""?","SELECT points FROM table_name_71 WHERE points_for = ""points for""" "What is the smallest bronze with a Rank of 12, and a Silver smaller than 2?",SELECT MIN(bronze) FROM table_name_5 WHERE rank = 12 AND silver < 2 Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.,"SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800"" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Airbus A340-300""" "Find the distinct names of all the songs that have a higher resolution than some songs in English, please?","SELECT DISTINCT song_name FROM song WHERE resolution > ( SELECT min ( resolution ) FROM song WHERE languages = ""english"" ) " "What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?","SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = ""apolo anton ohno"" AND best_score > 30" How many Januarys had records of 22-15-6?,"SELECT COUNT(january) FROM table_name_14 WHERE record = ""22-15-6""" What is the tournament with a hard surface and Ruben de Kleijn as the opponent?,"SELECT tournament FROM table_name_64 WHERE surface = ""hard"" AND opponent = ""ruben de kleijn""" "What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?",SELECT years FROM table_name_82 WHERE rank < 10 AND matches > 271 AND goals = 152 What date was Rica head of household?,"SELECT date_given FROM table_name_35 WHERE head_of_household = ""rica""" What are the lowest cuts made that have events less than 4?,SELECT MIN(cuts_made) FROM table_name_84 WHERE events < 4 The driver Jacky Ickx had what time/retired?,"SELECT time_retired FROM table_name_64 WHERE driver = ""jacky ickx""" What are the total number of students in each department?,"SELECT count ( DISTINCT T2.id ) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name" Show all the activity names and the number of faculty involved in each activity.,"SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID" How many people over the age of 50 do not have HTC One M8 Eye phones?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age > 50 AND T2.device_model != 'One M8 Eye' AND T2.phone_brand != 'HTC' Which is located in Angola and entered service in 1988?,"SELECT name FROM table_name_98 WHERE location = ""angola"" AND entered_service = ""1988""" What is the average distance and average price for flights from Los Angeles.,"SELECT avg(distance) , avg(price) FROM Flight WHERE origin = ""Los Angeles""" What is the ID of actors that acted in the movies most viewed by audience with occupation 5?,SELECT T3.actorid FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid INNER JOIN movies2actors AS T3 ON T2.movieid = T3.movieid WHERE T1.occupation = 5 GROUP BY T2.movieid ORDER BY COUNT(T1.userid) DESC LIMIT 1 "What is the value for Drawn, when the value for Losing bonus is 6?","SELECT drawn FROM table_name_12 WHERE losing_bonus = ""6""" How many dates were played at the wachovia center?,"SELECT COUNT(date) FROM table_23308178_6 WHERE location = ""Wachovia Center""" "Show the distinct apartment numbers of the apartments that have bookings with status code ""Confirmed"".","SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" "Which tournament has a 2013 of 1r, and a 2012 of 1r?","SELECT tournament FROM table_name_38 WHERE 2013 = ""1r"" AND 2012 = ""1r""" What conditions had both prolonged bleeding times and prolonged partial thromboplastin times,"SELECT condition FROM table_1099080_1 WHERE partial_thromboplastin_time = ""Prolonged"" AND bleeding_time = ""Prolonged""" What team had a qual 2 time of 58.385?,"SELECT team FROM table_name_92 WHERE qual_2 = ""58.385""" What is the weight of the bullet used in a Weatherby?,"SELECT bullet_weight FROM table_16010376_1 WHERE source = ""Weatherby""" What is the home team for punt road oval?,"SELECT home_team FROM table_name_38 WHERE venue = ""punt road oval""" Give me the dates when the max temperature was higher than 85.,SELECT date FROM weather WHERE max_temperature_f > 85 How many holes does Player Vijay Singh have?,"SELECT COUNT(hole) FROM table_name_61 WHERE player = ""vijay singh""" Name the average with tally of 0-29 and total more than 29,"SELECT AVG(average) FROM table_name_40 WHERE tally = ""0-29"" AND total > 29" "Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4",SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14 Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.,"SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )" What are the full names of employees who with in department 70 or 90?,"SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90" Is the oldest device user male or female?,SELECT gender FROM gender_age WHERE age = ( SELECT MAX(age) FROM gender_age ) how many English professors there,"SELECT count ( * ) from professor where DEPT_CODE = ""ENG""" At which venue did the game on 28 october 2013 take place?,"SELECT venue FROM table_name_5 WHERE date = ""28 october 2013""" How many songs use drums as an instrument?,"SELECT count(*) FROM instruments WHERE instrument = ""drums""" Show me the name of the body builder with the most weight,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 "How many papers are published under the journal ""Software - Practice and Experience""?",SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T2.FullName = 'Software - Practice and Experience' Tell me the pts for glasgow rocks,"SELECT pts FROM table_name_96 WHERE div = ""glasgow rocks""" "What percent did RETTÖ get in the state where LINKE got 0.1%, and FRITZ got 1.3%?","SELECT rettö FROM table_name_81 WHERE linke = ""0.1%"" AND fritz = ""1.3%""" Which owner has a description of Mark 1 pos and is dated 1956?,"SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = ""mark 1 pos""" How many goals against when the draws are fewer than 3?,SELECT MAX(goals_against) FROM table_name_20 WHERE drawn < 3 Name the laps for rank of 14 and start of 16,"SELECT laps FROM table_name_67 WHERE rank = ""14"" AND start = ""16""" "Before 2007, how many wins were there when the point total was 48?","SELECT SUM(wins) FROM table_name_10 WHERE points = ""48"" AND year < 2007" what is the released when the series is sorted 6y/ai?,"SELECT released FROM table_name_68 WHERE series_sorted = ""6y/ai""" "What is Part 1, when Part 3 is ""heldu""?","SELECT part_1 FROM table_name_83 WHERE part_3 = ""heldu""" What is the number of people in attendance when Tonbridge Angels is the opponent?,"SELECT attendance FROM table_name_86 WHERE opponent = ""tonbridge angels""" Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?,"SELECT shooting_score__pts_ FROM table_name_7 WHERE total > 5464 AND athlete = ""heather fell ( gbr )""" Tell me fourth place for year of 2010,SELECT fourth_place FROM table_name_36 WHERE year = 2010 What is the sum of gold medals for the United States with silver medal count greater than 3?,"SELECT SUM(gold) FROM table_name_26 WHERE nation = ""united states"" AND silver > 3" "Which authors have first name ""Amal""? List their last names.","SELECT lname FROM authors WHERE fname = ""Amal""" What's the 1996 when 1997 is 3R?,"SELECT 1996 FROM table_name_44 WHERE 1997 = ""3r""" List all the names of the products with the price of more than 1000$.,SELECT DISTINCT T2.Name FROM ProductListPriceHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ListPrice > 1000 State the name of dbas with verified quality.,SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results LIKE '%Pass%' Who are the delegates on the Appropriations committee?,select Delegate from election where Committee = 'Appropriations' Find the name of customers whose credit score is below the average credit scores of all customers.,SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer) Name the least wins of 56.25%,"SELECT MIN(wins) FROM table_15829930_5 WHERE success_rate = ""56.25%""" "What is the highest population (2008) created earlier than 1857, and the county was Sinoe?","SELECT MAX(population__2008_) FROM table_name_69 WHERE created < 1857 AND county = ""sinoe""" "What is the most common city of all customers with the customer status code ""Bad Customer""? | What do you mean by saying the most common city? | The city name that appears the most",SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id where T1.customer_status_code = 'Bad Customer' GROUP BY T2.city ORDER BY count ( * ) LIMIT 1 Find id of the candidate who most recently accessed the course?,SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 What was the reading score in the year the science score was 96.13?,"SELECT reading FROM table_2534578_1 WHERE science = ""96.13""" What are the names of the singers and number of concerts for each person?,"SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id" What was the method of elimination in the chamber with a time of 24:02? ,"SELECT method_of_elimination FROM table_24628683_2 WHERE time = ""24:02""" How many states are in the Midwest region?,SELECT COUNT(DISTINCT T) FROM ( SELECT CASE WHEN Region = 'Midwest' THEN State ELSE NULL END AS T FROM Regions ) WHERE T IS NOT NULL Which city has the most number of customers?,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 What type of ships does United States have?,SELECT distinct Type FROM ship where Nationality = 'United States' What are the names of the students who live in the city with code HKG? | Do you mean the full name | Yes please,"SELECT fname , lname FROM student WHERE city_code = 'HKG'" "Which streak had an attendance of 33,013?","SELECT streak FROM table_name_45 WHERE attendance = ""33,013""" what is the lowest place when the language is croatian?,"SELECT MIN(place) FROM table_name_95 WHERE language = ""croatian""" What is the population of each community with city status?,"SELECT population FROM table_171361_1 WHERE status = ""City""" Find the name and attribute ID of the attribute definitions with attribute value 0.,"SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0" "What is the average of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625?","SELECT AVG(average) FROM table_name_34 WHERE swimsuit < 9.545 AND state = ""iowa"" AND evening_gown > 9.625" What was the loss from the coyotes as opponents?,"SELECT loss FROM table_name_20 WHERE opponent = ""coyotes""" What is the class of the Charlotte Camel gt 500 race?,"SELECT class FROM table_name_76 WHERE race = ""charlotte camel gt 500""" What's the decrease rate of the game plays did David Aebischer after he got traded in 2005?,SELECT CAST((SUM(CASE WHEN T1.year = 2005 THEN T1.GP ELSE 0 END) - SUM(CASE WHEN T1.year = 2006 THEN T1.GP ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T1.year = 2005 THEN T1.GP ELSE 0 END) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.firstName = 'David' AND T2.lastName = 'Aebischer' How many female students were there at Stanford University in 2011?,SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Stanford University' List down languages used in Malaysia.,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Malaysia' "What is the primary conference with a IHSAA Football Class of A, at South Decatur school?","SELECT primary_conference FROM table_name_56 WHERE ihsaa_football_class = ""a"" AND school = ""south decatur""" what day was the sandown,"SELECT date FROM table_name_56 WHERE race_title = ""sandown""" What is the crowd size of the match featuring North Melbourne as the away team?,"SELECT MIN(crowd) FROM table_name_40 WHERE away_team = ""north melbourne""" what's airdate with international destination being scotland,"SELECT airdate FROM table_13036251_1 WHERE international_destination = ""Scotland""" What is the sum of the points of the club with more than 34 played?,SELECT SUM(points) FROM table_name_68 WHERE played > 34 Which club has the most female students as their members? Give me the name of the club.,"SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = ""F"" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1" Name the enrollment with cougars,"SELECT enrollment FROM table_24216139_2 WHERE nickname = ""Cougars""" Please show me the names of all those managers,select name from manager What is the average amount of money spent by a customer in Italy on a single film rental?,SELECT AVG(T5.amount) FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN country AS T3 ON T2.country_id = T3.country_id INNER JOIN customer AS T4 ON T1.address_id = T4.address_id INNER JOIN payment AS T5 ON T4.customer_id = T5.customer_id WHERE T3.country = 'Italy' Find the entry name of the catalog with the highest price (in USD).,SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 Find number of products which Sony does not make.,SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony') Who were the guests on a show where the production code is 6152?,SELECT guest FROM table_25691838_12 WHERE production_code = 6152 What was the date of week 3?,SELECT date FROM table_name_25 WHERE week = 3 "What is Region, when Date is 2004?",SELECT region FROM table_name_61 WHERE date = 2004 "How many aldermen have ""James"" as their first name?",SELECT COUNT(*) FROM Ward WHERE alderman_first_name = 'James' What are the attribute data types that possessed more than 3 attribute definitions?,SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count ( * ) > 3 What is the name of the establishment that Joshua Rosa inspected?,SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa' "Give the section titles of the document with the name ""David CV"".","SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV""" What are all the employees without a department number?,"SELECT * FROM employees WHERE department_id = ""null""" List the name of the phone model launched in year 2002 and with the highest RAM size.,SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1; What are the first names of all students who got a grade C in a class?,SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C' What is the event of the match with a round larger than 2 and ended with a method of ko (kick)?,"SELECT event FROM table_name_39 WHERE round > 2 AND method = ""ko (kick)""" "Who is performing in the back stage position for the song ""Badlands""? Show the first name and the last name.","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Badlands"" AND T1.StagePosition = ""back""" what is the date of birth?,"SELECT T1.driverid, t1.dob FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1" what is the school for Ivey armstrong?,"SELECT school FROM table_name_90 WHERE name = ""ivey armstrong""" What are the average height and weight across males (sex is M)?,"SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'" what team has +1'25.337 for the time?,"SELECT team FROM table_name_92 WHERE time = ""+1'25.337""" Show the name of track and the number of races in each track.,"SELECT T2.name , count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id" When dietrich fischer-dieskau is the olivier who is the conductor?,"SELECT conductor FROM table_29728787_1 WHERE olivier = ""Dietrich Fischer-Dieskau""" How many candidates are there?,SELECT count(*) FROM candidate What is the lowest round for Georgia Tech?,"SELECT MIN(round) FROM table_name_2 WHERE school = ""georgia tech""" "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.","SELECT date , theme , sales FROM journal EXCEPT SELECT T1.date , T1.theme , T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID" Where was the 05/09/1973 venue?,"SELECT venue FROM table_name_63 WHERE date = ""05/09/1973""" What Money (£) has a Country of ireland?,"SELECT money___£__ FROM table_name_96 WHERE country = ""ireland""" Which player is from Northern Ireland?,"SELECT player FROM table_name_42 WHERE country = ""northern ireland""" "In 1970, how many Middle Eastern & North African countries whose value for CO2 emissions from gaseous fuel consumption (kt) indicator is more than 600?",SELECT COUNT(T2.CountryCode) FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T1.IndicatorName = 'CO2 emissions FROM gaseous fuel consumption (kt)' AND T1.Year = 1970 AND T1.Value > 600 Name the high points for april 8,"SELECT high_points FROM table_27722734_11 WHERE date = ""April 8""" Which non-playoffs team had the most points in the regular season in the year 1998?,SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 1998 AND T1.PostGP = 0 ORDER BY T1.points DESC LIMIT 1 Could you please find all the names of the students who took some course and got a C?,"SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C'" Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.,"SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2" Who is on the 2002 commission from district 3?,"SELECT 2002 AS _commission FROM table_136027_2 WHERE district = ""district 3""" What is the rating of item id 3?,select rating from review where i_id = 3 List all of the credit cards that had expired by 2007.,SELECT CardNumber FROM CreditCard WHERE ExpYear < 2007 Find the name of the source user with the highest average trust score.,SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1 "How many flights on the 1st of August 2018 were coming from Allentown, Pennsylvania?",SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' AND ORIGIN = 'ABE' Please list the titles of the films that are released in 2006 and have a rental rate of $2.99.,SELECT title FROM film WHERE release_year = 2006 AND rental_rate = 2.99 What was Spain's score?,"SELECT score FROM table_name_24 WHERE country = ""spain""" What are the names of representatives and the dates of elections they participated in.,"SELECT T2.Name , T1.Date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID" how many male students of there,"SELECT count ( * ) from student where sex = ""M""" In which streets of the city of San Francisco are there restaurants that serve seafood?,SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T2.food_type = 'seafood' AND street_name IS NOT NULL "What is the Overall Record when Since Beginning of Big 12 is ou, 27-3?","SELECT overall_record FROM table_name_11 WHERE since_beginning_of_big_12 = ""ou, 27-3""" How many cars has over 6 cylinders?,SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6; Which game has the most sales in Japan?,SELECT T5.game_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN game AS T5 ON T4.game_id = T5.id WHERE T1.region_name = 'Japan' ORDER BY T2.num_sales DESC LIMIT 1 How many picks had a round smaller than 6 and an overall bigger than 153?,SELECT SUM(pick) FROM table_name_47 WHERE round < 6 AND overall > 153 What is the LMS class of trains with numbers 14510-5?,"SELECT LMS AS class FROM table_15412381_5 WHERE lms_nos = ""14510-5""" "When Benalla DFL is swanpool with less than 16 losses, what is the sum of Byes?","SELECT COUNT(byes) FROM table_name_39 WHERE benalla_dfl = ""swanpool"" AND losses < 16" What was the price of Bitcoin when it closed at the end of the day on 2013/4/29?,SELECT T2.close FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T1.name = 'Bitcoin' What is the result when the week is greater than 6 and the Buffalo Bills are the opponent?,"SELECT result FROM table_name_43 WHERE week > 6 AND opponent = ""buffalo bills""" Tell me the category for result of won and year more than 2009,"SELECT category FROM table_name_77 WHERE result = ""won"" AND year > 2009" what is the most recent year for a ligier gitanes blondes,"SELECT MAX(year) FROM table_name_84 WHERE entrant = ""ligier gitanes blondes""" What is the description of document status code 'working'?,"SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = ""working"";" What are the room name and base price of the room with the lowest base price?,"SELECT roomName , basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;" On which date did episode # 18 air in the U.S.?,SELECT us_air_date FROM table_26464364_1 WHERE _number = 18 Name the hits for years before 1883,SELECT hits FROM table_name_86 WHERE year < 1883 How many users are there in the Home Decoration category?,SELECT COUNT(T1.app_id) FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T2.label_id = T1.label_id WHERE T2.category = 'Home Decoration' "How many proteins are associated with an institution founded after 1880 or an institution with type ""Private""?",SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private' Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?,"SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = ""bruesa gbc""" "What is the played number with points 1 is 80, and goals for is more than 77?","SELECT COUNT(played) FROM table_name_57 WHERE points_1 = ""80"" AND goals_for > 77" "Give the id of ""Center for World University Rankings"".",SELECT id FROM ranking_system WHERE system_name = 'Center for World University Rankings' What is the rank of london borough in southwark?,"SELECT rank FROM table_19149550_7 WHERE london_borough = ""Southwark""" create a table with a column for department id and a column for department name,"select DEPARTMENT_ID,DEPARTMENT_NAME from departments" Name the incelandic of the glossary for 218,"SELECT the_icelandic_of_the_glossary FROM table_13003460_1 WHERE word_number = ""218""" "Show name, country, age for all singers ordered by age from the oldest to the youngest.","SELECT name , country , age FROM singer ORDER BY age DESC" what is the heat when the athlete is anita pistone?,"SELECT SUM(heat) FROM table_name_89 WHERE athlete = ""anita pistone""" What is the first name of every student who has a dog but does not have a cat?,"SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')" Find the number of customers in total.,SELECT count(*) FROM customers What is the away team at corio oval?,"SELECT away_team FROM table_name_26 WHERE venue = ""corio oval""" What is the result of the qf round?,"SELECT result FROM table_21350934_2 WHERE round = ""QF""" How many students have cat allergies?,"SELECT COUNT(*) FROM Has_allergy WHERE Allergy = ""Cat""" What is the name of the media type that is least common across all tracks?,SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1 "What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?","SELECT week_of FROM table_name_53 WHERE semi_finalists = ""sandrine testud yone kamio""" "How many people were in attendance on the game on April 8, 2007?","SELECT attendance FROM table_name_15 WHERE date = ""april 8, 2007""" "What is the date of the label Alfa records, a CD format, and an alca-9201 catalog?","SELECT date FROM table_name_16 WHERE label = ""alfa records"" AND format = ""cd"" AND catalog = ""alca-9201""" Please give me a list of cities whose regional population is over 8000000 or under 5000000.,SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000 Is Jasper being producted?,"SELECT in_production FROM table_name_66 WHERE codename = ""jasper""" Which Ranking has a Season of 2009?,"SELECT ranking FROM table_name_14 WHERE season = ""2009""" What is the University of Southern California's highest Round?,"SELECT MAX(round) FROM table_name_92 WHERE school = ""university of southern california""" What is the second team's name in the match with the lowest winning margin?,SELECT T1.team_name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.team_2 ORDER BY T2.win_margin LIMIT 1 "Among the books ordered by Lucas Wyldbore, how many of them are over 300 pages?",SELECT COUNT(*) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Lucas' AND T4.last_name = 'Wyldbore' AND T1.num_pages > 300 In the 2010 season what club has 0 goals and more than 0 Apps?,"SELECT club FROM table_name_43 WHERE goals = 0 AND apps > 0 AND season = ""2010""" "Which Week has a TV Time of cbs 1:00pm, and an Attendance of 72,714?","SELECT week FROM table_name_44 WHERE tv_time = ""cbs 1:00pm"" AND attendance = ""72,714""" "Which vocal type did the musician with first name ""Solveig"" played in the song with title ""A Bar in Amsterdam""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = ""Solveig"" AND T2.title = ""A Bar In Amsterdam""" What is the Name of the Historic House of the 18th Century?,"SELECT name FROM table_name_79 WHERE type = ""historic house"" AND date = ""18th century""" "For the repository which got '8094' Stars, how many solutions does it contain?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 8094 What is the total number of electorates (2009) for Katol?,"SELECT COUNT(number_of_electorates__2009_) FROM table_name_57 WHERE name = ""katol""" Which staff handled payments?,SELECT * FROM staff Which city has most number of departing flights?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 What's the song of artist liam reilly?,"SELECT song FROM table_name_8 WHERE artist = ""liam reilly""" find the code of the country where has the greatest number of players.,SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1 "Which college has a Pick # 1, Overall more than one, and Round is 7?",SELECT college FROM table_name_34 WHERE pick__number = 1 AND overall > 1 AND round = 7 How many Bangladeshi artists are listed?,"SELECT count(*) FROM artist WHERE country = ""Bangladesh""" whats the average age of the hosts?,SELECT avg ( age ) FROM HOST Who won the Mixed Doubles in 2007?,"SELECT mixed_doubles FROM table_name_49 WHERE year = ""2007""" Which batter has the last name Graham?,"SELECT bats FROM table_name_61 WHERE surname = ""graham""" What was the result for director Fernando Meirelles,"SELECT result FROM table_15277629_1 WHERE director = ""Fernando Meirelles""" Who was the coach in 1953?,"SELECT coach FROM table_name_19 WHERE year = ""1953""" What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000?,SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000 Find the names of songs whose genre is modern or language is English.,"SELECT song_name FROM song WHERE genre_is = ""modern"" OR languages = ""english""" "What is the location code for the country ""Canada""?","SELECT location_code FROM Ref_locations WHERE location_name = ""Canada""" "What is the highest Km From Kingston, when Mi From Kingston is less than 108, and when Length Meters is 260.6?",SELECT MAX(km_from_kingston) FROM table_name_61 WHERE mi_from_kingston < 108 AND length_meters = 260.6 What are the distinct types of the companies that have operated any flights with velocity less than 200?,SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T2.velocity < 200 Please list any three episodes that have an excellent rating.,SELECT title FROM Episode WHERE rating BETWEEN 7 AND 10 LIMIT 3; What building has a gym? | Do you mean the building ids of buildings with apartments that have gyms? | Yes please.,"SELECT T2.building_id FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" What is the score when parkgate is at home?,"SELECT score FROM table_name_38 WHERE home_team = ""parkgate""" "From 1960 to 1965, which country has the lowest value of indicator belongs to Health: Population: Structure?",SELECT CountryName FROM Indicators WHERE Value = ( SELECT MIN(T1.Value) FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year >= 1960 AND T1.Year < 1966 AND T2.Topic = 'Health: Population: Structure' ) "Find the names of the swimmers who have both ""win"" and ""loss"" results in the record.",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' how many staff are gender 1?,select count ( * ) from staff where gender = 1 What percentage of streets named 11th Street are in Alameda County?,"SELECT CAST(SUM(IIF(T1.street_name = '11th st', 1, 0)) AS REAL) * 100 / COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.County = 'alameda county'" Which artist has the most albums?,SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT ( * ) DESC LIMIT 1 "what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?",SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38 What is the Theme Song of Iryu -Team Medical Dragon-2?,"SELECT theme_song_s_ FROM table_name_23 WHERE romaji_title = ""iryu -team medical dragon-2""" What is the maximum and minimum grade point of students who live in NYC?,"SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" What are the names of those airports?,SELECT name FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot = 'Thompson' ) What is the attendance of the match with rosso kumamoto as the away team?,"SELECT attendance FROM table_name_82 WHERE away_team = ""rosso kumamoto""" Tell me the lowest ties played with a debut of 1936,SELECT MIN(ties_played) FROM table_name_15 WHERE debut = 1936 "How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?","SELECT COUNT(voltage__kv_) FROM table_name_44 WHERE country = ""argentina"" AND power__mw_ > 30 AND supply_point = ""yacyretá""" "When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?","SELECT MAX(byes) FROM table_name_38 WHERE south_west_dfl = ""heathmere"" AND wins > 11" "Show the players and years played for players from team ""Columbus Crew"".","SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" What college or league did the round 2 pick with d position come from?,"SELECT college_junior_club_team__league_ FROM table_name_12 WHERE round = 2 AND position = ""d""" What are the ratingDate of mID 101?,SELECT ratingDate FROM Rating WHERE mID = 101 Who were Petrova's opponents with Vania King?,"SELECT opponents FROM table_27611593_5 WHERE partner = ""Vania King""" Which type of song did miriam yeung sing?,"SELECT kind_of_the_song FROM table_name_66 WHERE singer = ""miriam yeung""" Show me all the restaurants.,SELECT ResName FROM Restaurant What was the actual attendance in number? | What do you mean by actual attendance | The attendance in home games for Altoona Mountain City,SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id group by T1.team_id ORDER BY sum ( T1.attendance ) asc limit 1 what is the city of Janessa,"SELECT T1.city from addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa""" "What was the average number of people born in other EU states in millions, when the total number of foreign-born people in millions was 0.5, and when the total population in millions was less than 5.534?",SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_57 WHERE total_foreign_born__millions_ = 0.5 AND total_population__millions_ < 5.534 What are the names of games that were released in 2007?,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2007 Which driver for Maserati has more laps than 23 and a grid greater than 7?,"SELECT driver FROM table_name_61 WHERE constructor = ""maserati"" AND laps > 23 AND grid > 7" "Identify the top customer of the store located in Gilbert, Arizona based on net profit associated with the customer relationship in 2019.","SELECT T1.`Customer Names` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN `Store Locations` AS T3 ON T3.StoreID = T2._StoreID WHERE T3.`City Name` = 'Gilbert' AND T2.ProcuredDate LIKE '%/%/19' ORDER BY REPLACE(T2.`Unit Price`, ',', '') - REPLACE(T2.`Unit Cost`, ',', '') DESC LIMIT 1" and the product ID that was ordered least often?,SELECT product_id FROM order_items GROUP BY product_id ORDER BY count ( * ) LIMIT 1 Which Giro di Lombardia has a Paris–Roubaix of servais knaven ( ned )?,"SELECT giro_di_lombardia FROM table_name_38 WHERE paris_roubaix = ""servais knaven ( ned )""" What years did Eddie Hughes play for the Jazz?,"SELECT years_for_jazz FROM table_name_53 WHERE player = ""eddie hughes""" Name the engine for year less than 1977,SELECT engine FROM table_name_76 WHERE year < 1977 How many American food restaurants are unpopular in Carmel?,SELECT COUNT(id_restaurant) FROM generalinfo WHERE food_type = 'american' AND city = 'carmel' AND review = ( SELECT MIN(review) FROM generalinfo WHERE food_type = 'american' AND city = 'carmel' ) What city does Zach live in?,"select city from person where name = ""Zach""" "Now please list all colleges that have enrollment higher than the average. | LSU, OU, and FSU have enrollment higher than the average. | Please list the states where LSU, OU, and FSU are located.",SELECT DISTINCT state FROM college WHERE enr > ( SELECT avg ( enr ) FROM college ) "What is the Lead when the Second was marc kennedy, in the 2012–13 season?","SELECT lead FROM table_name_66 WHERE second = ""marc kennedy"" AND season = ""2012–13""" What is the average base price of different bed type? List bed type and average base price.,"SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;" "Which cohort had the higher percentage of students who graduated from Central Alabama Community College in 2011 within 150 percent of normal/expected time, female White students or male White students?","SELECT IIF(SUM(CASE WHEN T2.gender = 'F' THEN T2.grad_150 ELSE 0 END) > SUM(CASE WHEN T2.gender = 'M' THEN T2.grad_150 ELSE 0 END), 'female White students', 'male White students') FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Central Alabama Community College' AND T2.year = 2011 AND T2.race = 'W'" What is the lowest position for bruce taylor?,"SELECT MIN(position) FROM table_name_6 WHERE pilot = ""bruce taylor""" What are the carriers of devices that are not in stock anywhere?,SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock) What nations are considered British Overseas Territories?,SELECT name FROM country WHERE CODE IN ( SELECT country FROM politics WHERE government = 'British Overseas Territories' ) Find names and ids of all documents with document type code BK.,"SELECT document_name , document_id FROM Documents WHERE document_type_code = ""BK""" "Great, what is the average number of followers for everyone in the data set?",SELECT avg ( followers ) FROM user_profiles What was Min Patel's bowling?,"SELECT bowling FROM table_name_7 WHERE player = ""min patel""" "Among the countries with note on the series code SM.POP.TOTL, how many of them are in the low-income group?",SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SM.POP.TOTL' AND T1.IncomeGroup = 'Low income' What are the ages of Zach's friends?,"SELECT t1.name,friend,year,age from PersonFriend as t1 join Person as t2 on t1.friend = t2.name where t1.name = 'Zach'" Could you please tell me the names on all accounts in the bank?,SELECT name from ACCOUNTS How many books were ordered in the last month of the year 2020?,SELECT COUNT(*) FROM cust_order WHERE order_date LIKE '2020-12%' Can you list the ids of them by the numer of people attended? | Do you want to list them in ascending order or descending order? | Descending please,SELECT event_id FROM event ORDER BY Event_Attendance DESC List the names of aircrafts and that did not win any match.,SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH) "List the total number of years that have a score of 3–6, 4–6, 2–6.","SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_the_final = ""3–6, 4–6, 2–6""" How many first downs were there when the attendance was 13196?,SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196 What is the average review given by a subscriber?,SELECT AVG(T2.StarRating) FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.SubscribedToEmailList = 'TRUE' "What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?","SELECT COUNT(league) AS Cup FROM table_name_8 WHERE play_offs > 2 AND name = ""mitch cook category:articles with hcards""" What is the lowest drawn for entries with a lost of 13?,SELECT MIN(drawn) FROM table_name_38 WHERE lost = 13 "Great, what is the most common name?",SELECT staff_name from staff group by staff_name order by count ( * ) desc limit 1 Find the name of the stadium that has the maximum capacity.,SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1 "Which nationaly is ranked greater than 1, with a time of 59.75?","SELECT nationality FROM table_name_1 WHERE rank > 1 AND time = ""59.75""" Please list bikes id were used in trips which start station were installed in 2013.,SELECT DISTINCT T1.bike_id FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.installation_date LIKE '%2013' Please list the phone numbers of all the customers in the household segment and are in Brazil.,SELECT T1.c_phone FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_mktsegment = 'HOUSEHOLD' AND T2.n_name = 'BRAZIL' What is the total round for a wide receiver with an overall of more than 145?,"SELECT COUNT(round) FROM table_name_4 WHERE position = ""wide receiver"" AND overall > 145" "Show each school name, its budgeted amount, and invested amount in year 2002 or after.","SELECT T2.school_name , T1.budgeted , T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002" What was the lowest home attendance for the southern derby?,"SELECT MIN(home_attendance) FROM table_14302582_1 WHERE competition = ""Southern Derby""" Find the average millisecond length of Latin and Pop tracks.,"SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Latin"" OR T1.Name = ""Pop""" Please list the destination cities of all the flights that were cancelled on 2018/8/1.,SELECT DEST FROM Airlines WHERE FL_DATE = '2018/8/1' AND CANCELLED = 1 GROUP BY DEST Excellent! Thanks for that! Can you add to this list the event name associated with each member name?,"SELECT distinct member_name, T2.Event_Name FROM member as T1 join party_events as T2 on T1.Member_ID = T2.Member_in_charge_ID" What County scored with a speed of 98.09mph?,"SELECT country FROM table_name_7 WHERE speed = ""98.09mph""" List the name of stations that were installed from 8/5/2013 to 12/31/2013. Indicate their installation date and city name.,"SELECT name, installation_date, city FROM station WHERE (SUBSTR(CAST(installation_date AS TEXT), 1, INSTR(installation_date, '/') - 1) = '5' AND SUBSTR(CAST(installation_date AS TEXT), INSTR(installation_date, '/') + 1, -6) >= '8' AND SUBSTR(CAST(installation_date AS TEXT), -4) = '2013') OR (SUBSTR(CAST(installation_date AS TEXT), 1, INSTR(installation_date, '/') - 1) IN ( '6', '7', '8', '9', '10', '11', '12' ) AND SUBSTR(CAST(installation_date AS TEXT), -4) = '2013')" What away team played at Kardinia Park?,"SELECT away_team AS score FROM table_name_63 WHERE venue = ""kardinia park""" "What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?","SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = ""mercedes-benz"" AND circuit = ""hockenheimring""" "Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?","SELECT document_name , access_count FROM documents ORDER BY access_count DESC LIMIT 1" "On August 2018, which day had the highest number of cancelled flights due to the most serious reasons in Dallas/Fort Worth International?","SELECT T2.FL_DATE FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE LIKE '2018/8%' AND T1.Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International' AND T2.ORIGIN = 'DFW' AND T2.CANCELLED = 1 AND T2.CANCELLATION_CODE = 'A' GROUP BY T2.FL_DATE ORDER BY COUNT(T2.FL_DATE) DESC LIMIT 1" "What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?","SELECT MIN(year) FROM table_name_98 WHERE venue = ""berlin, germany"" AND event = ""100 m hurdles""" How many times did K Goel played as a player only?,SELECT COUNT(T1.Match_Id) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T2.Player_Name = 'K Goel' AND T3.Role_Id = 3 What is the overall length with a designation of s-8ko?,"SELECT length_overall FROM table_name_38 WHERE designation = ""s-8ko""" What is the id of the problem log that is created most recently?,SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1 "What is the content of TV Channel with serial name ""Sky Radio""?","SELECT Content FROM TV_Channel WHERE series_name = ""Sky Radio"";" WHICH ARTISTS SUNG THE SONGS?,SELECT artist_name from song What is the NOAA of the higher harmonics that have a Darwin of mn 4?,"SELECT noaa FROM table_name_49 WHERE darwin = ""mn 4""" what is the high enrollment of school | Are you asking the highest enrollment number for all schools? | exactly,SELECT max ( enrollment ) from school What did the away team score when they visited south melbourne?,"SELECT away_team AS score FROM table_name_26 WHERE home_team = ""south melbourne""" What type of institution is San Diego Christian college? ,"SELECT type FROM table_2562113_1 WHERE institution = ""San Diego Christian College""" Identify the number of movies that starred Nick Stallone.,SELECT COUNT(T1.film_id) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id AND T2.first_name = 'NICK' AND T2.last_name = 'STALLONE' What is the name of the oldest artist?,SELECT name FROM artist ORDER BY AGE DESC LIMIT 1 What is the average adolescent fertility rate of the country whose Alpha2Code is 1A over the years this indicator was calculated.,SELECT AVG(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName LIKE 'adolescent fertility rate%' How many orders in total are made by customers in Germany?,SELECT COUNT(T2.c_custkey) FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN orders AS T3 ON T2.c_custkey = T3.o_custkey WHERE T1.n_name = 'GERMANY' Name the average ERP W and call sign of w237br,"SELECT AVG(erp_w) FROM table_name_36 WHERE call_sign = ""w237br""" What is the full name of the employee who gave the highest amount of fine of all time?,"SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, SUM(T3.fine) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id GROUP BY T1.first_name, T1.last_name ORDER BY SUM(T3.fine) DESC LIMIT 1 ) t" In what Week is the Rome Tournament?,"SELECT week FROM table_name_70 WHERE tournament = ""rome""" Who was the winning team for round 3?,"SELECT winning_team FROM table_name_1 WHERE round = ""3""" In what district was the incumbent Edwin Gray? ,"SELECT district FROM table_2668401_17 WHERE incumbent = ""Edwin Gray""" List every book that Ursola Purdy has ordered.,SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Ursola' AND T4.last_name = 'Purdy' "What are the names of parties that have both delegates on ""Appropriations"" committee and","SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Appropriations"" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Economic Matters""" What is the sum of the number of wins for teams with more than 0 draws?,SELECT SUM(wins) FROM table_name_51 WHERE draws > 0 Show all track names that have had no races.,SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race) Provide the zip codes and CBSA officers of the postal point in Oxford.,"SELECT T2.zip_code, T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'Oxford'" "If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term?","SELECT start_date_of__first__term FROM table_25182437_1 WHERE date_of_birth = ""1961-08-09 9 August 1961""" Which countries have greater area than that of any country in Europe?,"SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = ""Europe"")" "Name the score for march 29, 1997","SELECT score FROM table_20745759_1 WHERE date = ""March 29, 1997""" "What are the ids, names, and descriptions for all documents?","SELECT document_id , document_name , document_description FROM Documents" What is the Site when the date is 11/11/1950?,"SELECT site FROM table_name_37 WHERE date = ""11/11/1950""" Show me the name of artist with artist id 3?,SELECT Name FROM ARTIST where ArtistId = 3 What is the Year for fleet number 5000?,"SELECT year_made FROM table_name_98 WHERE fleet_number_s_ = ""5000""" How many continents speak Chinese?,"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Chinese""" What are the revenue of manufacture name Hewlett-Packard?,"SELECT revenue from manufacturers where name = ""Hewlett-Packard""" What team did they play when the series was 1-1?,"SELECT team FROM table_name_51 WHERE series = ""1-1""" How many people have won at least 3 awards?,SELECT COUNT(T1.person_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.result = 'Winner' GROUP BY T1.person_id HAVING COUNT(T2.award_id) >= 3 "Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver?","SELECT rounds FROM table_name_72 WHERE entrant = ""automobiles talbot-darracq"" AND driver = ""pierre levegh""" what is the capacity when the acceleration 1-100km/h is 11.1 s?,"SELECT capacity FROM table_name_39 WHERE acceleration_0_100km_h = ""11.1 s""" "Hello, how are you! Can you provide me with a list of all of the email addresses in this database?",select email_address from people What are the precise locations of the cities with an area code of 787?,"SELECT T2.latitude, T2.longitude FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = '787' GROUP BY T2.latitude, T2.longitude" What week did the Seahawks play at los angeles memorial coliseum?,"SELECT MIN(week) FROM table_13258876_2 WHERE game_site = ""Los Angeles Memorial Coliseum""" "What is Score, when Player is ""Deane Beman""?","SELECT score FROM table_name_20 WHERE player = ""deane beman""" List first name and last name of customers that have more than 2 payments.,"SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2;" Find the number of rooms with more than 50 capacity for each building.,"SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building" What is the average width and height of the objects in image ID 47? List their object classes as well.,"SELECT T2.OBJ_CLASS, AVG(T1.W), AVG(T1.H) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 47 GROUP BY T2.OBJ_CLASS" How many locations was game 3 played at?,SELECT COUNT(location_attendance) FROM table_23248967_5 WHERE game = 3 Name the player who scored the most goals in a single game in the 2007-2008 season of WHL?,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2007-2008' AND T1.LEAGUE = 'WHL' ORDER BY T1.G DESC LIMIT 1 What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?,"SELECT place FROM table_name_22 WHERE to_par = ""+2"" AND score = 70 - 72 - 73 = 215" What is the average capacity of the rooms?,SELECT avg ( capacity ) FROM classroom How many items were listed under world rank under the nation of Nigeria?,"SELECT COUNT(world_rank) FROM table_2248991_2 WHERE nation = ""Nigeria""" Which country is the most award-winning player from?,SELECT T1.birthCountry FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID GROUP BY T1.birthCountry ORDER BY COUNT(T2.award) DESC LIMIT 1 Which Location Attendance has a Date of april 15?,"SELECT location_attendance FROM table_name_52 WHERE date = ""april 15""" What is the number of Silver medals with 2 Bronze and 0 Gold?,SELECT COUNT(silver) FROM table_name_78 WHERE bronze = 2 AND gold < 0 What is the most points earlier than 1953 with a Ferrari 375/50 chassis?,"SELECT MAX(points) FROM table_name_22 WHERE year < 1953 AND chassis = ""ferrari 375/50""" Which Surface has a Tournament of olbia?,"SELECT surface FROM table_name_62 WHERE tournament = ""olbia""" "What is Date, when Score is ""0-2"", and when Opponents is ""Bayer Leverkusen""?","SELECT date FROM table_name_4 WHERE score = ""0-2"" AND opponents = ""bayer leverkusen""" "What is the smallest border's length, and what form of government do the two nations bordering it have?","SELECT T1.Government, T3.Government FROM politics AS T1 INNER JOIN borders AS T2 ON T1.Country = T2.Country1 INNER JOIN politics AS T3 ON T3.Country = T2.Country2 ORDER BY T2.Length ASC LIMIT 1" Name the attendance for atlanta braves opponent for september 9,"SELECT AVG(attendance) FROM table_name_26 WHERE opponent = ""atlanta braves"" AND date = ""september 9""" "Which aircraft did not win any match? | What information do you want about the aircrafts? Their names, their ids, or all their information? | Their names.",SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN ( SELECT Winning_Aircraft FROM MATCH ) What is the name of the club with 22 points?,"SELECT club FROM table_name_2 WHERE points = ""22""" How many high risks violations did the Tiramisu Kitchen violate?,SELECT COUNT(T1.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Tiramisu Kitchen' AND T1.risk_category = 'High Risk' what is the tournament when the outcome is winner and the opponents is kerry-anne guse corina morariu?,"SELECT tournament FROM table_name_39 WHERE outcome = ""winner"" AND opponents = ""kerry-anne guse corina morariu""" How long does it take for the business to receive the item it has purchased? Who is the vendor for business number 1496?,"SELECT T1.AverageLeadTime, T2.Name FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 USING (businessentityid) WHERE T2.BusinessEntityID = 1496 GROUP BY T1.AverageLeadTime, T2.Name" Find the names of stadiums that the most swimmers have been to.,SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1 What is the title of the paper published in 1995 and whose author included Thomas Wiegand?,SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995 "For the flight with the tail number 'N702SK', which air carrier does it belong to?",SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.TAIL_NUM = 'N702SK' GROUP BY T2.Description Find the captain rank that has some captains in both Cutter and Armed schooner classes.,SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' How many released albums are there?,SELECT count ( * ) from albums What period has 0.25% as the other mozilla?,"SELECT period FROM table_name_66 WHERE other_mozilla = ""0.25%""" What is the race name in the Monza circuit?,"SELECT race_name FROM table_1140116_5 WHERE circuit = ""Monza""" When are all dates with a score of 205 (–8) in Australia?,"SELECT dates FROM table_15315816_1 WHERE score = ""205 (–8)"" AND country = ""Australia""" Who is the author of Episode 38 (16)?,"SELECT written_by FROM table_name_2 WHERE episode__number = ""38 (16)""" "How many events were participated by the users at longitude of ""-156""?",SELECT COUNT(event_id) FROM events WHERE longitude = -156 Retrieve the country that has published the most papers.,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1 "Among the low quality product, which product has the highest line total? List the product name and its line total?","SELECT T1.Name, T2.LineTotal FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE Class = 'L' ORDER BY OrderQty * UnitPrice DESC LIMIT 1" "What is the highest Played that's for the Team of Cerro Porteño, with a Position that's larger than 1?","SELECT MAX(played) FROM table_name_59 WHERE team = ""cerro porteño"" AND position > 1" Which course authors teach two or more courses? Give me their addresses and author IDs.,"SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count(*) >= 2" "Name the title with termination of mission of february 24, 1828","SELECT title FROM table_name_65 WHERE termination_of_mission = ""february 24, 1828""" How many schools have some students playing in goalie and mid positions.,SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid') What is the description of role code ED?,"SELECT role_description FROM ROLES WHERE role_code = ""ED"";" What is points diff when points against is 123?,"SELECT points_diff FROM table_name_73 WHERE points_against = ""123""" "What is Distance, when Venue is ""Belgrade""?","SELECT distance FROM table_name_39 WHERE venue = ""belgrade""" "WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?","SELECT manufacturer FROM table_name_5 WHERE year > 1966 AND start < 5 AND team = ""wood"" AND finish = 35" "Pts Agst of 572, and a Pts For larger than 346 has what total number of position?",SELECT COUNT(position) FROM table_name_22 WHERE pts_agst = 572 AND pts_for > 346 how many Organizations there,SELECT count ( * ) from Organizations What city has the highest population?,SELECT Name FROM City ORDER BY Population DESC LIMIT 1 Show the 3 counties with the smallest population.,SELECT County_name FROM county ORDER BY Population ASC LIMIT 3 What are the full names and gradepoints for all enrollments?,"SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID" What player has +2 to par?,"SELECT player FROM table_name_29 WHERE to_par = ""+2""" What are the distinct types of mills that are built by American or Canadian architects?,SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian' What kind of shop is that?,"SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk""" Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.,"SELECT Company_name , count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;" Please tell me the address of the Accounting department.,"SELECT dept_address from department where dept_name = ""Accounting""" what is the users' name?,SELECT name FROM user_profiles Find the title of course that is provided by both Statistics and Psychology departments.,SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology' "Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?","SELECT school FROM table_name_43 WHERE _number___county = ""85 wabash"" AND ihsaa_football_class = ""a"" AND mascot = ""norsemen""" What is the nationality of the event with a 1:51.51 time?,"SELECT nationality FROM table_name_66 WHERE time = ""1:51.51""" Calculate the total quantity of purchased product that has been prepared by employee number 257 and is in pending shipment status.,SELECT SUM(T2.OrderQty) FROM PurchaseOrderHeader AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.PurchaseOrderID = T2.PurchaseOrderID WHERE T1.Status = 1 In what race did Buddy Rice hav fastest lap? ,"SELECT race_name FROM table_2454550_1 WHERE fastest_lap = ""Buddy Rice""" Show all company names and headquarters in the descending order of market value.,"SELECT company, headquarters FROM company ORDER BY market_value DESC" What are the minimum and maximum vote percents of elections?,"SELECT min(Vote_Percent) , max(Vote_Percent) FROM election" Find the number of customers handled by each of the sales people.,SELECT COUNT(CustomerID) FROM Sales GROUP BY SalesPersonID How many orders has Aimee Bixby made?,SELECT COUNT(DISTINCT T2.`Order ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Aimee Bixby' When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (°c)?,"SELECT COUNT(t_c__) AS °c_ FROM table_2282444_1 WHERE magnet = ""Nd 2 Fe 14 B (bonded)""" Who was the Class A winner in 2006-07?,"SELECT class_a FROM table_14603057_2 WHERE school_year = ""2006-07""" Please show me the names of wines by Brander winery.,"SELECT Name FROM WINE WHERE Winery = ""Brander""" Who is the current manager of the team located in tubize?,"SELECT current_manager FROM table_name_15 WHERE location = ""tubize""" What director had a production number of 1490?,SELECT director FROM table_name_27 WHERE production_number = 1490 Name the time for result msst 29–24,"SELECT time FROM table_26842217_18 WHERE result = ""MSST 29–24""" "What is Score, when Place is ""T9"", and when Player is ""Jeff Sluman""?","SELECT score FROM table_name_39 WHERE place = ""t9"" AND player = ""jeff sluman""" Name the total number of fin pos for 12 points of accident,"SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = ""12"" AND time_retired = ""Accident""" Can you please provide their circuit IDs?,"SELECT circuitId FROM circuits WHERE country = ""France""" "Show the minimum amount of transactions whose type code is ""PUR"" and whose share count is bigger than 50.","SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = ""PUR"" AND share_count > 50" "and of those 41 countries, which one has the most drivers?",SELECT nationality FROM drivers group by nationality order by count ( * ) desc limit 1 What is the Place of Player with To par of +6 and Score of 78-70-74=222?,"SELECT place FROM table_name_79 WHERE to_par = ""+6"" AND score = 78 - 70 - 74 = 222" How many of them have expenses?,SELECT count ( document_id ) FROM Documents_with_expenses What year did the movie Rango come out?,"SELECT AVG(year) FROM table_name_3 WHERE film = ""rango""" "What are the dates of the projects with at least 2 documents, please? | Do you mean the projects of documents, not projects, right? | Yes",select document_date from documents where project_id in ( SELECT project_id FROM Documents GROUP BY project_id HAVING count ( * ) > = 3 ) What nation has a bronze of 2 with a total less than 5 and rank of 6?,"SELECT nation FROM table_name_84 WHERE bronze = 2 AND total < 5 AND rank = ""6""" What is the name of the most common genre in all tracks?,SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1 Find the names of the chip models that are not used by any phone with full accreditation type.,SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country.,"SELECT T2.countryname, T1.CurrencyUnit FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Adjusted net national income (annual % growth)' AND T2.Year = 1980 AND T1.CurrencyUnit != '' ORDER BY T2.Value DESC LIMIT 1" How many movies were made before 2000?,SELECT COUNT(*) FROM Movie WHERE YEAR < 2000 "Rank larger than 8, and a Rider of chris barrett is what team?","SELECT team FROM table_name_87 WHERE rank > 8 AND rider = ""chris barrett""" "Does the bike with Id number 16 making any intercity trip? If yes, calculate the total travel duration during all the intercity trip. Convert the duration to hour.","SELECT T1.end_station_name, T2.city, CAST(SUM(T1.duration) AS REAL) / 3600 FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.bike_id = 16 AND T1.start_station_name != T1.end_station_name" Hello! Can you first give me a list of all of the countries?,SELECT country FROM airlines What is the population density of the Petropavl's home country?,SELECT CAST(T1.Population AS REAL) / T1.Area FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Petropavl' Who did they play when there were only 751 in attendance?,SELECT opponent FROM table_name_78 WHERE attendance < 751 FIND THE NAME OF CUSTOMER WHO HAS THE LOWEST CREDIT SCORE,SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 Name the total number of goal difference when the position is more than 20,SELECT COUNT(goal_difference) FROM table_name_49 WHERE position > 20 What is the name of the away team with a Tie no of 7?,"SELECT away_team FROM table_name_40 WHERE tie_no = ""7""" "What is the title of the film that had a production cost of $850,000?","SELECT title FROM table_name_93 WHERE production_cost = ""$850,000""" List the file size and format for all songs that have resolution lower than 800.,"SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800" How many colors are never used by any product?,SELECT COUNT(*) FROM Ref_colors WHERE NOT color_code IN (SELECT color_code FROM products) "What's the season number of the episode originally aired on October 14, 2008?","SELECT no_in_season FROM table_19401346_1 WHERE original_air_date = ""October 14, 2008""" What is the number of products that Creative Labs does manufacture?,SELECT count ( DISTINCT name ) FROM products WHERE name IN ( SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' ) What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti?,"SELECT SUM(grid) FROM table_name_27 WHERE time_retired = ""engine"" AND laps < 45 AND driver = ""giancarlo baghetti""" Which Outcome has a Opponent of lindsay lee-waters?,"SELECT outcome FROM table_name_83 WHERE opponent = ""lindsay lee-waters""" What Venue has a Date of 17/03/1990?,"SELECT venue FROM table_name_46 WHERE date = ""17/03/1990""" How many teachers have made some type of donation for projects in Chicago?,SELECT COUNT(DISTINCT T2.teacher_acctid) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.is_teacher_acct = 't' AND T2.school_city = 'Chicago' What was the result of the game against Mississippi State?,"SELECT result FROM table_21063459_1 WHERE opponent = ""Mississippi State""" How much per unit of Konbu does Mayumi's charge?,SELECT T1.UnitPrice FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName LIKE 'Mayumi%' AND T1.ProductName = 'Konbu' How many Goals have a Result of 0 – 4?,"SELECT AVG(goals) FROM table_name_26 WHERE result = ""0 – 4""" Can I get the names of all the payment methods used?,SELECT distinct Payment_Method_Code FROM Payments Which customer made the order No. 10160? Give the contact name.,"SELECT t2.contactFirstName, t2.contactLastName FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.orderNumber = '10160'" "Among the players who have passed away, who had the most award?",SELECT T1.playerID FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE deathDate IS NOT NULL GROUP BY T1.playerID ORDER BY COUNT(award) DESC LIMIT 1 "Among the clients who did receive a timely response for their complaint, how many of them are from New York?",SELECT COUNT(T1.city) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'No' AND T1.city = 'New York City' What is the average weight of the competitors who won a silver medal?,SELECT AVG(T1.weight) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T4.medal_name = 'Silver' "How many path does the github address ""https://github.com/jeffdik/tachy.git"" have?",SELECT COUNT(DISTINCT T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/jeffdik/tachy.git' Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?,SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318 "What is Date, when Record is 12-58?","SELECT date FROM table_name_31 WHERE record = ""12-58""" "What are the years of film market estimation for the market of Japan, ordered by year descending?","SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = ""Japan"" ORDER BY T1.Year DESC" Find the wineries that have at least four wines.,SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 "What is the week with a date of October 9, 1983, and attendance smaller than 40,492?","SELECT COUNT(week) FROM table_name_27 WHERE date = ""october 9, 1983"" AND attendance < 40 OFFSET 492" What event has a 0:49 time?,"SELECT event FROM table_name_13 WHERE time = ""0:49""" "What is the record of the game with 28,135 people in attendance?","SELECT record FROM table_name_30 WHERE attendance = ""28,135""" What is the Tie no when Chester is the away team?,"SELECT tie_no FROM table_name_83 WHERE away_team = ""chester""" What is the incumbent for pennsylvania 15,"SELECT incumbent FROM table_1342013_37 WHERE district = ""Pennsylvania 15""" What is the City or Town of the monument with a Longitude of 89°11′w?,"SELECT city_or_town FROM table_name_71 WHERE longitude = ""89°11′w""" What is the name of the player with the largest number of votes?,SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1 "What Allied-Unrelated is labeled as ""common""?","SELECT allied_unrelated FROM table_name_61 WHERE allied_related = ""common""" Which towns are represented in district 31?,"SELECT towns_represented FROM table_name_65 WHERE district = ""31""" "Jim Obradovich, picked after round 2, but before pick 183, plays what position?","SELECT position FROM table_name_88 WHERE round > 2 AND pick < 183 AND player = ""jim obradovich""" List the min grade point for each letter grade?,"SELECT min ( gradepoint ) , lettergrade FROM GRADECONVERSION group by lettergrade" "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.","SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title" What is the title that has 14.59 u.s. viewers (millions)?,"SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = ""14.59""" What is the rating of artists with at least one English song?,select T2.rating from artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = 'english' group by T1.artist_name having count ( * ) > = 1 For how long did Elly Koss's cystitis last?,"SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS days FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description = 'Cystitis'" How many mixed doubles were there in the year that Olga Koseli won the women's singles?,"SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = ""Olga Koseli""" "ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)?","SELECT AVG(size__cents_) FROM table_name_40 WHERE just_ratio = ""15:14"" AND just__cents_ > 119.44" Who is Doug Basham's team?,"SELECT team FROM table_name_39 WHERE wrestler = ""doug basham""" Show the authors who have submissions to more than one workshop.,SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 What are the different album labels listed?,SELECT DISTINCT label FROM Albums Who took the loss on May 25?,"SELECT loss FROM table_name_85 WHERE date = ""may 25""" Show names of all high school students who do not have any friends.,SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id Who was the opponent when the result was w24-7?,"SELECT opponent_number FROM table_name_1 WHERE result = ""w24-7""" Who was the opponent with a 32-25 record?,"SELECT opponent FROM table_name_50 WHERE record = ""32-25""" Show me all storm ids affecting a region id of 12.,SELECT T3.storm_id FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' "List all the cagetories for all the podcasts with ""jessica"" in the title.",SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title LIKE '%jessica%' ) "Which Score has a Visitor of ny rangers, and a Record of 19–28–15?","SELECT score FROM table_name_19 WHERE visitor = ""ny rangers"" AND record = ""19–28–15""" What position for chris moreno?,"SELECT position FROM table_name_18 WHERE player = ""chris moreno""" What is the p max (bar) in the pistol where the chambering is .45 ACP?,"SELECT MAX(p_max___bar__) FROM table_26967904_1 WHERE chambering = "".45 ACP""" And the min training hours of those players?,SELECT min ( HS ) FROM Player "What is the lowest FA Cup when the league cup is 1, and the total is more than 23?",SELECT MIN(fa_cup) FROM table_name_16 WHERE league_cup = 1 AND total > 23 What is the smallest ROM size of any phone made by company Nokia?,"SELECT T1.ROM_MiB FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"" order by T1.ROM_MiB limit 1" "Find the contact channel code that was used by the customer named ""Tillman Ernser"".","SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" give me the train number,SELECT train_number FROM train WHERE name = 'Ananthapuri Express' "List down the customer company names, addresses, phones and faxes which are located in London.","SELECT CompanyName, Address, Phone, Fax FROM Customers WHERE City = 'London'" To which region does the sales team that has used the WARE-MKL1006 warehouse the most times for its shipments belong?,SELECT T2.Region FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.WarehouseCode = 'WARE-MKL1006' GROUP BY T2.Region ORDER BY COUNT(T1.OrderNumber) DESC LIMIT 1 What is the month sequence for the month name of av?,"SELECT MIN(month_sequence) FROM table_28985631_1 WHERE month_name = ""Av""" "List total amount of invoice from Chicago, IL.","SELECT sum(total) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL"";" Which Championship total is over 13?,SELECT AVG(total) FROM table_name_99 WHERE championship > 13 "What Attack has a 30,00% GERB?","SELECT attack FROM table_name_74 WHERE gerb = ""30,00%""" "Find the number of members of club ""Pen and Paper Gaming"".","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Pen and Paper Gaming""" Which Frequency MHz has a ERP W of 250?,SELECT MAX(frequency_mhz) FROM table_name_36 WHERE erp_w = 250 How many king beds are there?,SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King' Which wine has a score of 91?,SELECT * FROM WINE where score = 91 State the name of the object class that has in most images.,SELECT OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID GROUP BY T2.OBJ_CLASS ORDER BY COUNT(T1.OBJ_CLASS_ID) DESC LIMIT 1 Which Opponent is on april 28?,"SELECT opponent FROM table_name_19 WHERE date = ""april 28""" what is the attendance on the date of october 16 and the game is more than 5?,"SELECT SUM(attendance) FROM table_name_59 WHERE date = ""october 16"" AND game > 5" Name the other for chironius multiventris septentrionalis,"SELECT other FROM table_1850282_7 WHERE species = ""Chironius multiventris septentrionalis""" what is distance for the 7th position?,"SELECT COUNT(distance) FROM table_25429986_1 WHERE position = ""7th""" "How many bike stations are installed after August, 2013 in San Jose?","SELECT COUNT(installation_date) FROM station WHERE city = 'San Jose' AND (SUBSTR(CAST(installation_date AS TEXT), 1, INSTR(installation_date, '/') - 1) IN ('8', '9', '10', '11', '12') AND SUBSTR(CAST(installation_date AS TEXT), -4) = '2013') OR SUBSTR(CAST(installation_date AS TEXT), -4) > '2013'" "Among the"" Mumbai Indians"" team that played in 2009, how many percent of the matches did they win?",SELECT CAST(SUM(CASE WHEN T1.Match_Winner = T2.Team_Id THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Match_Id) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Team_1 = T2.Team_Id OR T1.Team_2 = T2.Team_Id WHERE T2.Team_Name = 'Mumbai Indians' AND T1.Match_Date LIKE '2009%' What is the attribute ID for attributes whose data type is bool?,"SELECT attribute_id FROM Attribute_Definitions WHERE attribute_data_type = ""Bool""" What is heaton chapel's capacity?,"SELECT MAX(capacity) FROM table_name_54 WHERE locality = ""heaton chapel""" "What are the ids, names and genders of the architects who built two bridges or one mill?","SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 2 UNION SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 1" "What are the different budget type codes, and how many documents are there for each?","SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code" What are the numbers of constructors for different nationalities?,"SELECT COUNT(*), nationality FROM constructors GROUP BY nationality" "What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03?","SELECT title FROM table_name_77 WHERE production_num > 6209 AND series = ""mm"" AND director = ""friz freleng"" AND release_date = ""1934-11-03""" "What is 1993, when 1992 is ""SF"", and when Tournament is ""Paris""?","SELECT 1993 FROM table_name_7 WHERE 1992 = ""sf"" AND tournament = ""paris""" "For each project id, how many tasks are there?","SELECT count(*) , T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id" show the date of registration for the student id 1,select date_of_registration from students where student_id = '1' "What date was the visiting team of Los Angeles Rams, earlier than 1958?","SELECT date FROM table_name_58 WHERE visiting_team = ""los angeles rams"" AND year < 1958" who is the player when the place is t10 and the score is 67-72-72=211?,"SELECT player FROM table_name_37 WHERE place = ""t10"" AND score = 67 - 72 - 72 = 211" How many games has each stadium held?,"SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id" Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.,"SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')" How many immunizations did the patient with the most prevalent condition that started recently get?,"SELECT COUNT(T2.patient) FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) INNER JOIN immunizations AS T3 ON T2.PATIENT = T3.PATIENT GROUP BY T2.PATIENT ORDER BY T2.START DESC, T1.""PREVALENCE RATE"" DESC LIMIT 1" How many students does LORIA ONDERSMA teaches?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""LORIA"" AND T2.lastname = ""ONDERSMA""" "What is the population where the rank is higher than 51 and the Median House-hold income is $25,250?","SELECT SUM(population) FROM table_name_50 WHERE rank > 51 AND median_house__hold_income = ""$25,250""" Who is the second performer in episode 5?,SELECT performer_2 FROM table_14934885_1 WHERE episode = 5 When collingwood played as the away team what did they score?,"SELECT away_team AS score FROM table_name_3 WHERE away_team = ""collingwood""" "What is the percentage of male characters in the movie ""Bride Wars""?",SELECT CAST(COUNT(CASE WHEN T3.gender = 'Male' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T3.gender) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T2.gender_id = T3.gender_id WHERE T1.title = 'Bride Wars' "For the game against the Washington Bullets, what was the final score?","SELECT score FROM table_name_97 WHERE opponent = ""washington bullets""" "Please list different customer names with the payment amount of over 50,000.",SELECT DISTINCT T2.customerName FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.amount > 50000 How much is the processed time of downloading the most popular repository?,SELECT ProcessedTime FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo ) What numbered game did they play chicago?,"SELECT game FROM table_27755603_11 WHERE team = ""Chicago""" "What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?",SELECT COUNT(total_atms) FROM table_name_32 WHERE off_site_atms > 3672 AND number_of_branches < 1685 "When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA?","SELECT date FROM table_name_66 WHERE casualties = ""1 wia"" AND circumstances = ""ied"" AND location = ""15km nw of pol-e khomri""" Name the maximum enrollment for st. andrews university,"SELECT MAX(enrollment) FROM table_16168849_1 WHERE institution = ""St. Andrews University""" What are the name and results of the battles when the bulgarian commander is not 'Boril',"SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'" What is the average gpa of the students enrolled in the course with code ACCT-211?,SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' Who is the Player born in 1981?,SELECT player FROM table_name_40 WHERE year_born = 1981 What was Andorra's total with less than 10 silver and more than 5 bronze?,"SELECT SUM(total) FROM table_name_97 WHERE silver < 10 AND nation = ""andorra"" AND bronze > 5" What is the score in the final in the year 1994?,SELECT score_in_the_final FROM table_22834834_2 WHERE year = 1994 Name the away team score for home team of university,"SELECT away_team AS score FROM table_name_36 WHERE home_team = ""university""" List the film with the highest budget in each genre.,"SELECT T3.genre_name, MAX(T1.budget) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id GROUP BY T3.genre_name" Can you list the location addresses?,"SELECT T1.address FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T2.how_to_get_there = ""bus""" Name the goalies with the most seasons played. State the average time he played for each season.,"SELECT T1.firstName, T1.lastName, T2.year, AVG(T2.Min) FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T1.playerID = ( SELECT playerID FROM Goalies GROUP BY playerID ORDER BY COUNT(playerID) DESC LIMIT 1 ) GROUP BY T1.firstName, T1.lastName, T2.year" And which campus had a fee of 2258 in 1996?,SELECT T1.Campus FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t2.year = 1996 AND T2.CampusFee = 2258 Name the type for headquarters principal activites.,"SELECT type FROM table_name_53 WHERE principal_activities = ""headquarters""" How many seats had a 41.2% share of votes?,"SELECT seats FROM table_name_96 WHERE share_of_votes = ""41.2%""" What was the score of the January 8 game?,"SELECT score FROM table_27712702_9 WHERE date = ""January 8""" what about general medicine?,"SELECT head FROM department where name = ""General Medicine""" Hello! Can you list the dorm names of the various different dorms?,SELECT dorm_name FROM dorm Name the voice actor of the character Calliope in the movie Hercules.,SELECT `voice-actor` FROM `voice-actors` WHERE movie = 'Hercules' AND character = 'Calliope' List max of each grade for all letter grades?,SELECT max ( gradepoint ) FROM GRADECONVERSION How many races did Cale Yarborough win at an average speed of 88.924 mph?,"SELECT COUNT(race_time) FROM table_22648285_1 WHERE driver = ""Cale Yarborough"" AND average_speed__mph_ = ""88.924""" "For the solution of the most 'sw' methods, what is its path?",SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'sw' "What is the total share for an episode with an air date of November 19, 2007?","SELECT SUM(share) FROM table_name_2 WHERE air_date = ""november 19, 2007""" WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS?,"SELECT 2010 FROM table_name_93 WHERE 2012 = ""2r"" AND tournament = ""miami masters""" What was the date of game 4?,SELECT date FROM table_name_92 WHERE game = 4 What is the student staff ratio of the university with the highest student staff ratio of all time?,SELECT MAX(student_staff_ratio) FROM university_year WHERE student_staff_ratio = ( SELECT MAX(student_staff_ratio) FROM university_year ) "Which Home has a Competition of european cup, and a Round of qf?","SELECT home FROM table_name_70 WHERE competition = ""european cup"" AND round = ""qf""" What are the top 3 artists with the largest number of songs in the language Bangla?,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""bangla"" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3" How many courses are offered?,select count ( course_id ) from course List the software platform shared by the greatest number of devices.,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1 Give the student's ID of students with 2.5 GPA and enrolled in C for Programmers.,SELECT T2.student_id FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'C for Programmers' AND T1.gpa = 2.5 Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?,"SELECT launch_site FROM table_11869952_3 WHERE mission = ""Test mission: war heads and Missile payload"" AND results = ""Partial Failure""" "One player, okay was the season 1997?",SELECT season FROM match_season where College = 'UNLV' "Among all publications containing keywords 'Turbulent Fluids', what percentage of them was published in the journal named 'Physics of Fluids'?",SELECT CAST(SUM(CASE WHEN T1.Keyword = 'Turbulent Fluids' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.FullName = 'Physics of Fluids' THEN 1 ELSE 0 END) FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id Which Goals have Apps smaller than 1?,SELECT AVG(goals) FROM table_name_41 WHERE apps < 1 list out the customers name,select customer_name from customers Give the different locations of tracks.,SELECT DISTINCT LOCATION FROM track "What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?",SELECT MIN(rank) FROM table_name_71 WHERE silver > 5 AND total = 29 AND bronze < 16 "What is the winning score of standard register ping tournament, which has Kelly Robbins as the runner-up?","SELECT winning_score FROM table_name_46 WHERE tournament = ""standard register ping"" AND runner_s__up = ""kelly robbins""" "Accumulate the budget of the movie titles with the keyword of ""video game"".",SELECT SUM(T1.budget) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'video game' Have many engineers that were contacted by each manager?,SELECT count ( T3.first_name ) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id "What is Local Mission, when Mission is ""Mauritius""?","SELECT Local AS mission FROM table_name_8 WHERE mission = ""mauritius""" List all the non-sales employees in ascending order of its business entitty ID.,"SELECT FirstName, LastName FROM Person WHERE PersonType = 'EM' ORDER BY BusinessEntityID" List the venues of debates in ascending order of the number of audience.,SELECT Venue FROM debate ORDER BY Num_of_Audience ASC How many of the customer addresses are inactive?,SELECT COUNT(*) FROM customer_address AS T1 INNER JOIN address_status AS T2 ON T1.status_id = T2.status_id WHERE T2.address_status = 'Inactive' "how many points are there for a Chassis of porsche 718, and a Year smaller than 1964?","SELECT COUNT(points) FROM table_name_34 WHERE chassis = ""porsche 718"" AND year < 1964" What is the membership card held by both members living in Hartford and ones living in Waterbury address?,SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury' Which party has a first elected number bigger than 1939.0?,SELECT party FROM table_1342233_5 WHERE first_elected > 1939.0 List all the cities in Sonoma County.,SELECT city FROM geographic WHERE county = 'sonoma county' How many documents are there?,SELECT count ( * ) FROM Documents Name the total number of director for vesničko má středisková,"SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = ""Vesničko má středisková""" Compute the average price of all products with manufacturer code equal to 2.,SELECT AVG(price) FROM products WHERE Manufacturer = 2 How many times has Mary Smith rented a film?,SELECT COUNT(T1.customer_id) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' "Among the violations in 2016, how many of them have unscheduled inspections?","SELECT COUNT(T2.business_id) FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2016' AND T2.type = 'Routine - Unscheduled'" "How much Longitude has a County of nelson, and a Latitude larger than 47.980183?","SELECT SUM(longitude) FROM table_name_87 WHERE county = ""nelson"" AND latitude > 47.980183" In season 2007–08 who is the runner-up?,"SELECT runner_up FROM table_25058269_1 WHERE season = ""2007–08""" What are the names and positions of all players who got a no for their tryout decision?,"SELECT T1.pName,T2.pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = ""no""" How many of these have a height above 5000?,SELECT count ( Name ) FROM mountain WHERE Height > 5000 What is the decision of the game larger than 6.,SELECT decision FROM table_name_82 WHERE game > 6 What was the fault log ID with the most number of faulty parts?,SELECT T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1 Which Drawn has Points for of 782?,"SELECT drawn FROM table_name_2 WHERE points_for = ""782""" How many times does M Chinnaswamy Stadium host games than Maharashtra Cricket Association Stadium?,SELECT SUM(CASE WHEN T2.Venue_Name = 'M Chinnaswamy Stadium' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.Venue_Name = 'Maharashtra Cricket Association Stadium' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4?,"SELECT visitor FROM table_name_78 WHERE home = ""montreal canadiens"" AND record = ""6–4–4""" How many players were with the school or club team La Salle?,"SELECT COUNT(player) FROM table_10015132_2 WHERE school_club_team = ""La Salle""" What are the details of the markets that can be accessed by walk or bus?,"SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk"" OR T2.How_to_Get_There = ""bus""" What is the special notes value for years under 2009?,SELECT special_notes FROM table_name_56 WHERE year < 2009 Find all stores in the Attock district | Do you want the id or the name of these stores? | The name,"SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id join district as t3 on t3.district_id = t2.district_id where t3.district_name = ""Attock District""" Kostas Bigalis & Mirella Fragkopoulou the singer had what has the jury?,"SELECT jury FROM table_name_51 WHERE singer = ""kostas bigalis & mirella fragkopoulou""" What is the Italian word for the Mexican word frijol?,"SELECT italian FROM table_name_59 WHERE mexican = ""frijol""" What is the DPhone of Biology?,"SELECT DPhone FROM DEPARTMENT WHERE DName = ""Biology""" What is the No. 1 of the person with a No. 2 of John?,"SELECT no_1 FROM table_name_26 WHERE no_2 = ""john""" What is teh born-died dates of the king with a throne name 315 and left office in 1021?,"SELECT born_died FROM table_name_74 WHERE left_office = ""1021"" AND throne_name = ""315""" Show the name and country for all people whose age is smaller than the average.,"SELECT name , country FROM people WHERE age < (SELECT avg(age) FROM people)" Find the total amount claimed in the most recently created document.,SELECT SUM(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1) which fa cups had a total of 565 (7)?,"SELECT fa_cup FROM table_14962287_1 WHERE total = ""565 (7)""" "What is the imperfect stem of the word that means 'take away, remove'?","SELECT imperfect_stem FROM table_name_74 WHERE meaning = ""'take away, remove'""" Show the ids and names of all documents.,"SELECT document_id , document_name FROM Documents" Calculate the number of products if we add the products of the accessories and components categories.,SELECT COUNT(ProductID) FROM Product WHERE Name LIKE '%accessories %' OR Name LIKE '%components%' What is the average absence period of a student?,SELECT AVG(month) FROM longest_absense_from_school Which states have renewable electricity equal to 9667 (gw×h)?,SELECT state FROM table_25244412_1 WHERE renewable_electricity__gw•h_ = 9667 "What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?",SELECT MIN(total) FROM table_name_64 WHERE bronze > 1 AND gold > 8 AND silver < 10 Show the name of the building that has the most company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 Would you show the transaction type descriptions if the share count is smaller than 10?,SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 "Which Rank has a Bronze of 1, and a Nation of lithuania?","SELECT rank FROM table_name_89 WHERE bronze = 1 AND nation = ""lithuania""" "What is Record, when H/A/N is n?","SELECT record FROM table_name_42 WHERE h_a_n = ""n""" In what nation did Darko Sovran place third?,"SELECT nation FROM table_name_19 WHERE third = ""darko sovran""" What is the average number of wins for teams with 14 losses and against over 2200?,SELECT AVG(wins) FROM table_name_41 WHERE losses = 14 AND against > 2200 "Which school is in Raleigh, NC?","SELECT school FROM table_name_23 WHERE hometown = ""raleigh, nc""" Which CFL Teams drafted an OL in 2006?,"SELECT cfl_team FROM table_10812938_4 WHERE position = ""OL""" How many CFL teams drafted someone from mount allison college?,"SELECT COUNT(cfl_team) FROM table_26996293_3 WHERE college = ""Mount Allison""" Who are the officers involved in cases that are voted as 'No Bill'. List their last name and gender.,"SELECT T2.last_name, T2.gender FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.grand_jury_disposition = 'No Bill'" What is the origin and destination for all flights whose price is higher than 300?,"SELECT origin , destination FROM Flight WHERE price > 300" How many credits does the department offer?,"SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code" "If there are 11 lifts, what is the base elevation?",SELECT MAX(base_elevation__feet_) FROM table_25762852_1 WHERE lifts = 11 Which Tournament has a Winning score of e (72-69-71-68=280)?,SELECT tournament FROM table_name_15 WHERE winning_score = E(72 - 69 - 71 - 68 = 280) What tournament that Fernando Roca is the runner-up?,"SELECT tournament FROM table_name_14 WHERE runner_s__up = ""fernando roca""" Return the name of the document that has the most sections.,SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1 How many orders in the south superstore with the fastest delivery are items of furniture?,SELECT COUNT(T1.`Order ID`) FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'First Class' AND T2.Category = 'Furniture' What are ids and total number of hours played for each game?,"SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid" Which school has the most professors?,SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count ( * ) desc LIMIT 1 What is thea year the road closed April 13?,"SELECT MAX(year) FROM table_12791809_1 WHERE road_closed = ""April 13""" What barony is Ballycunningham in?,"SELECT barony FROM table_30120566_1 WHERE townland = ""Ballycunningham""" Which school has the player Thomas Tyner?,"SELECT school FROM table_11677691_9 WHERE player = ""Thomas Tyner""" Which team got the most wins in the Stanley Cup finals?,SELECT T2.name FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year GROUP BY T2.name ORDER BY SUM(T1.W) DESC LIMIT 1 What is the date for the race that had the time of 2:43:19?,"SELECT date FROM table_2268216_1 WHERE race_time = ""2:43:19""" Name the location attendance april 5,"SELECT location_attendance FROM table_27713583_11 WHERE date = ""April 5""" Show the names of companies and that of employees in descending order of number of years working for that employee?,"SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working" Count the number of postal points in the district represented by Kirkpatrick Ann.,SELECT COUNT(T2.zip_code) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.first_name = 'Kirkpatrick' AND T1.last_name = 'Ann' Who was the girl of the week after nicole woodruff in the same month?,"SELECT week_5 FROM table_name_93 WHERE week_4 = ""nicole woodruff""" Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.,"SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30" What is the name of the artist who produced the shortest song?,SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 "What lane did Bronte Barratt, who had a rank larger than 4, swim in?","SELECT AVG(lane) FROM table_name_79 WHERE name = ""bronte barratt"" AND rank > 4" How many distinct incident type codes are there?,SELECT count(DISTINCT incident_type_code) FROM Behavior_Incident "What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?","SELECT no_7 FROM table_name_15 WHERE no_4 = ""madison"" AND no_10 = ""amelia""" "Which tournament has an opponent in the final of nadia petrova and a score of 6–3, 4–6, 6–1??","SELECT tournament FROM table_name_22 WHERE opponent_in_the_final = ""nadia petrova"" AND score = ""6–3, 4–6, 6–1""" What was the location of the match that had a result of 3-3?,"SELECT location FROM table_name_13 WHERE result = ""3-3""" What are the names of patients who are staying in room 111 and have an undergoing treatment?,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111 List all different genre types.,SELECT DISTINCT name FROM genres; "When the country of release is EU, what is the label name?","SELECT label FROM table_name_39 WHERE country_of_release = ""eu""" What is the shipment duration for order number CA-2011-134103?,"SELECT DISTINCT strftime('%J', `Ship Date`) - strftime('%J', `Order Date`) AS duration FROM central_superstore WHERE `Order ID` = 'CA-2011-134103'" What is the text tweet of Iron Man?,"SELECT T2.text FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid where T1.name = ""Iron Man""" What is the Status with a Name that is anas cheuen?,"SELECT status FROM table_name_77 WHERE name = ""anas cheuen""" Find the number of reviews.,SELECT count(*) FROM review How many different colleges were represented at tryouts?,SELECT count(DISTINCT cName) FROM tryout please check the table once more for the name of students not enrolled in any course | Do you need those students' Fname or Lname? | i need the students first name,SELECT Fname FROM STUDENT WHERE StuID NOT IN ( SELECT StuID FROM ENROLLED_IN ) "What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?","SELECT title FROM table_name_2 WHERE season < 1.8 AND first_broadcast = ""march 6, 1981""" What is the latest test completion date?,SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id order by T1.date_of_completion desc limit 1 Count the number of different complaint type codes.,SELECT count(DISTINCT complaint_type_code) FROM complaints What is the Place of the Player with a Score of 67-76-74-67=284?,SELECT place FROM table_name_37 WHERE score = 67 - 76 - 74 - 67 = 284 What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class?,"SELECT location FROM table_name_28 WHERE ihsaa_class = ""aaa"" AND mascot = ""panthers""" Which documents have more than 1 draft copies? List document id and number of draft copies.,"SELECT document_id , count(*) FROM Draft_Copies GROUP BY document_id HAVING count(*) > 1;" Who was the champion prior to Xix Xavant?,"SELECT previous_champion_s_ FROM table_1272033_1 WHERE champion_s_ = ""Xix Xavant""" In which year was the film with the highest replacement cost released?,SELECT DISTINCT release_year FROM film WHERE replacement_cost = ( SELECT MAX(replacement_cost) FROM film ) hi I was wondering how many policies Ellsworth Paucek has?,"SELECT count ( * ) FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id WHERE T1.customer_details = ""Ellsworth Paucek""" Which area has a Name of william colenso college?,"SELECT area FROM table_name_73 WHERE name = ""william colenso college""" Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.,SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith' What is the occupation of the candidate that resides in Windsor Junction?,"SELECT occupation FROM table_name_38 WHERE residence = ""windsor junction""" How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?,"SELECT COUNT(team_coxy) FROM table_25816476_2 WHERE air_date = ""24 January 2010"" AND team_guest_captain = ""Gail Porter""" What is the most frequently ordered product? Tell me the detail of the product,SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1 Show all video games with type Collectible card game.,"SELECT gname FROM Video_games WHERE gtype = ""Collectible card game""" Find the year which offers the largest number of courses.,SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 Which majors have between 2 and 20 students? Show me major and number of students,"SELECT Major , count ( * ) FROM Student GROUP BY Major HAVING count ( Major ) BETWEEN 2 AND 20" Which student visited restaurant most often? List student's first name and last name.,"SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1" Name the least lane for kasey giteau and rank less than 18,"SELECT MIN(lane) FROM table_name_31 WHERE name = ""kasey giteau"" AND rank < 18" What is the total of professional courses available at the university? List out all the course id.,SELECT COUNT(course_id) FROM course WHERE courseLevel = 'Level_500' What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?,"SELECT COUNT(Last) AS runners_up FROM table_name_42 WHERE last_win = ""1999"" AND runners_up > 1" "Show statement id, statement detail, account detail for accounts.","SELECT T1.statement_id , T2.statement_details , T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id" "What is the short name of channel 5.5, KSTC-TV?","SELECT psip_short_name FROM table_name_95 WHERE station = ""kstc-tv"" AND channel = 5.5" What description does Livery of ews have?,"SELECT description FROM table_name_61 WHERE livery = ""ews""" On April 15 who is the Home team?,"SELECT home FROM table_name_80 WHERE date = ""april 15""" "Show the nominees that have nominated musicals for both ""Tony Award"" and ""Drama Desk Award"".","SELECT Nominee FROM musical WHERE Award = ""Tony Award"" INTERSECT SELECT Nominee FROM musical WHERE Award = ""Drama Desk Award""" "Which result's venue was in Rotterdam, Netherlands?","SELECT result FROM table_name_14 WHERE venue = ""rotterdam, netherlands""" Give me the position of the member in the tennis club,"SELECT t2.Position FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" Find the name of the ship that is steered by the youngest captain.,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 What is the most frequent status of bookings?,SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1 What is the land area for the RCM that has a population of 18847?,SELECT land_area FROM table_214920_1 WHERE population_canada_2011_census = 18847 How many countries got 796.7 points?,"SELECT COUNT(rank) FROM table_1059743_2 WHERE points = ""796.7""" Which player is from Saguaro High School?,"SELECT position FROM table_11677691_7 WHERE school = ""Saguaro High school""" "What are the names of entrepreneurs whose investor is not ""Rachel Elnaugh""?","SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != ""Rachel Elnaugh""" What are the names of schools with the top 3 largest size?,SELECT cName FROM college ORDER BY enr DESC LIMIT 3 Find the names of items whose rank is higher than 3 and whose average rating is above 5.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating) > 5 Can you please filter this list to include only the rows that have 'Annual Meeting' as the Event Name?,"SELECT event_id, event_name from party_events where event_name = ""Annaual Meeting""" How many schools are there?,SELECT count(*) FROM school "What are the first names of students, ordered by age from greatest to least?",SELECT Fname FROM STUDENT ORDER BY Age DESC Count the number of invoices.,SELECT count(*) FROM Invoices "What is the campus fee of ""San Francisco State University"" in year 1996?","SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND T2.year = 1996" What home team played an away team of melbourne?,"SELECT home_team FROM table_name_28 WHERE away_team = ""melbourne""" What nationality is Rob Nicholson?,"SELECT nationality FROM table_name_19 WHERE player = ""rob nicholson""" Calculate the population density of the city as the destination of shipment no.1369.,SELECT T2.area / T2.population FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1369' How many states have a college with more students than average?,SELECT count(DISTINCT state) FROM college WHERE enr > (SELECT avg(enr) FROM college) What position is Philadelphia Fury?,"SELECT position FROM table_237757_9 WHERE nasl_club_s_ = ""Philadelphia Fury""" How many games were released in the year 2001?,SELECT COUNT(id) FROM game_platform AS T WHERE T.release_year = 2001 List the full name of all current female senators.,"SELECT T2.first_name, T2.last_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.type = 'sen' AND T2.gender_bio = 'F' GROUP BY T2.ballotpedia_id" list out the customers first name,SELECT first_name FROM customer Which student has the highest gpa? Give the full name.,"SELECT f_name, l_name FROM student WHERE gpa = ( SELECT MAX(gpa) FROM student )" How many police officers are in the police force shared by county on both sides?,"select count ( * ) from ( SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East"" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West"" ) " What was the dominant religion in 2002 in lokve?,"SELECT dominant_religion__2002_ FROM table_2562572_44 WHERE settlement = ""Lokve""" How many students have absent from school?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 1 "For each Orange county campus, report the number of degrees granted after 2000.","SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = ""Orange"" AND T2.year >= 2000 GROUP BY T1.campus" How many times did he hold 12 poles?,SELECT COUNT(f_laps) FROM table_26400438_1 WHERE poles = 12 "now, list the minimum, maximum and average age for all people","SELECT min ( age ) , max ( age ) , avg ( age ) FROM people" "Find the name, city, and country of the airport that has the highest latitude.","SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1" How tall is Dylan Postl?,"SELECT height FROM table_name_69 WHERE name = ""dylan postl""" "Which situation has an original u.s. airdate of December 5, 2007?","SELECT situation FROM table_14570857_1 WHERE original_us_airdate = ""December 5, 2007""" What was the record during the loss by key (7-11)?,"SELECT record FROM table_name_27 WHERE loss = ""key (7-11)""" can you tell me how many accelerators are not compatible?,SELECT count ( * ) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser ) How many students have a soy allergy?,"SELECT count ( * ) FROM Student WHERE StuID IN ( SELECT StuID FROM Has_allergy WHERE Allergy = ""Soy"" ) " How many actors acted in movies in the Music category?,SELECT COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN film_category AS T4 ON T3.film_id = T4.film_id INNER JOIN category AS T5 ON T4.category_id = T5.category_id WHERE T5.name = 'Music' What are the names of all stations with a latitude smaller than 37.5?,SELECT name FROM station WHERE lat < 37.5 "What is Team, when Position is ""LHP"", and when Pick is ""23""?","SELECT team FROM table_name_16 WHERE position = ""lhp"" AND pick = 23" When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?,SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer' How many males are there?,"SELECT count ( * ) from person where gender = ""male""" What are the details of those projects?,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) which person had order high amount of products | What attributes do you want to know about the customer who ordered the highest amount of products? | I want everything about it.,SELECT * FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id group by T2.customer_id order by sum ( T3.order_quantity ) desc limit 1 What is the maximum humidity in Powell Street BART when bike 496 was borrowed from the station on 8/29/2013?,SELECT T2.max_humidity FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_date LIKE '8/29/2013%' AND T1.bike_id = 496 AND T1.start_station_name = 'Powell Street BART' What is the batting team with the batting partnets of thilina kandamby and rangana herath?,"SELECT batting_team FROM table_11303072_5 WHERE batting_partners = ""Thilina Kandamby and Rangana Herath""" What is the sub-parish for the church names Høyanger Kyrkje?,"SELECT sub_parish__sogn_ FROM table_178389_1 WHERE church_name = ""Høyanger kyrkje""" Find the number of distinct room types available.,SELECT count(DISTINCT roomtype) FROM room How many different majors are there and how many different city codes are there for each student?,"SELECT count(DISTINCT major) , count(DISTINCT city_code) FROM student" What are the distinct first names and cities of the students who have allergy either to milk or to cat?,"SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = ""Milk"" OR T2.Allergy = ""Cat""" Which January has an Opponent of @ detroit red wings?,"SELECT AVG(january) FROM table_name_74 WHERE opponent = ""@ detroit red wings""" "Who had the high assists when the location attendance was Toyota Center 18,370?","SELECT high_assists FROM table_11964154_11 WHERE location_attendance = ""Toyota Center 18,370""" What is the total value purchased for supplier id 3,SELECT sum ( total_value_purchased ) from Product_Suppliers where supplier_id = 3 What Score has a Date of 11 september 2010?,"SELECT score FROM table_name_25 WHERE date = ""11 september 2010""" List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.,"SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major != 600 AND Sex = 'F';" What is the score of the game where the Rangers record was 16-8-4?,"SELECT score FROM table_name_81 WHERE record = ""16-8-4""" How many Yelp_Businesses in Arizona have a Elitestar rating of over 4?,SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND stars > 4 What is his tourist ID?,"SELECT T1.Tourist_ID FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" Show the name of colleges that have at least two players.,SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 In what location was the fastest time 1:37.071s?,"SELECT location FROM table_14884844_2 WHERE record = ""1:37.071s""" What are the birth places that are shared by at least two people?,SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2 What was the date when Chris Amon won?,"SELECT date FROM table_1140090_6 WHERE winning_driver = ""Chris Amon""" When tracy reid is the player what is the highest amount of minutes?,"SELECT MAX(minutes) FROM table_25016555_5 WHERE player = ""Tracy Reid""" What is the group C region with Illinois as group B?,"SELECT group_c FROM table_name_53 WHERE group_b = ""illinois""" "Which Week has a Date of december 3, 2001?","SELECT week FROM table_name_56 WHERE date = ""december 3, 2001""" What date was the game against Royal Antwerp?,"SELECT date FROM table_name_87 WHERE opponents = ""royal antwerp""" List all the names of schools with an endowment amount smaller than or equal to 10.,SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount) <= 10 How many orders in 1998 had a total price under 950?,"SELECT COUNT(o_orderkey) AS countorders FROM orders WHERE STRFTIME('%Y', o_orderdate) = '1998' AND o_totalprice < 950" List the basic of the institution in 2012 with race of all male students.,"SELECT DISTINCT T1.basic, T2.race FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.year = 2012 AND T2.gender = 'M' AND t2.race = 'X'" "What is Left Office, when Took Office is ""11 June 2001"", and when Minister is ""Mirko Tremaglia""?","SELECT left_office FROM table_name_47 WHERE took_office = ""11 june 2001"" AND minister = ""mirko tremaglia""" Name the team #2 for river plate,"SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = ""River Plate""" What is the title of the film with a production number of 1023?,"SELECT title FROM table_name_48 WHERE production_number = ""1023""" Name the name or route for slope length being 336,SELECT name_or_route FROM table_17814458_1 WHERE slope_length = 336 What is the average age of students?,SELECT avg ( Age ) from Student Which order deals with the most items? Return the order id.,SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1 How many cups of 1% lowfat milk should be added to no.1436 recipe?,SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = '1% lowfat milk' AND T2.unit = 'cup(s)' AND T2.recipe_id = 1436 Who sponsors Josele Garza in all rounds?,"SELECT sponsor_s_ FROM table_name_60 WHERE rounds = ""all"" AND driver_s_ = ""josele garza""" How many businesses are opened the same number of hours every day of the week?,SELECT COUNT(business_id) FROM Business_Hours WHERE opening_time = '8AM' AND closing_time = '6PM' What is the name of the youngest competitor?,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age LIMIT 1 What is the Home Team on April 13 with a Road Team of St. Louis?,"SELECT home_team FROM table_name_8 WHERE road_team = ""st. louis"" AND date = ""april 13""" What is the accreditation level for the approved (awarded 05.12.12) date?,"SELECT accreditation_level FROM table_name_72 WHERE date = ""approved (awarded 05.12.12)""" How many professors have a Ph.D. in each department?,"SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code" Show the Role_Code of roles with Role_Description.,"SELECT Role_Code,Role_Description FROM Roles" "What is the class of the qb, Josh Riddell?","SELECT class FROM table_name_45 WHERE position = ""qb"" AND name = ""josh riddell""" "For each customer who has at least two orders, find the customer name and number of orders made.","SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2" What role did John Wayne play with Verna Hillie as the leading lady?,"SELECT role FROM table_name_80 WHERE leading_lady = ""verna hillie""" What are the IDs of problems that the staff member Dameon Frami reported?,"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 = ""Dameon"" AND T2.staff_last_name = ""Frami""" Tell me the sum of earnings for rank less than 1,SELECT SUM(earnings__) AS $__ FROM table_name_63 WHERE rank < 1 What is the title of the episode directed by Rich Correll and written by Dennis Rinsler?,"SELECT title FROM table_29102100_1 WHERE directed_by = ""Rich Correll"" AND written_by = ""Dennis Rinsler""" What is the To par of the 4 Place Player?,"SELECT to_par FROM table_name_9 WHERE place = ""4""" What is the ratio male to female athletes in the 2012 Summer Olympic?,SELECT CAST(COUNT(CASE WHEN T3.gender = 'M' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T3.gender = 'F' THEN 1 ELSE NULL END) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '2012 Summer' Count the number of different affiliation types.,SELECT count(DISTINCT affiliation) FROM university "Find the id and last name of the teacher that has the most detentions with detention type code ""AFTER""?","SELECT T1.teacher_id , T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = ""AFTER"" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1" Show the organizer and name for churches that opened between 1830 and 1840.,"SELECT organized_by , name FROM church WHERE open_date BETWEEN 1830 AND 1840" "WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON?","SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = ""manalongon""" What home team played the West Coast away team?,"SELECT home_team FROM table_16388230_1 WHERE away_team = ""West Coast""" How many goals Olimpia recorded for 32 matches?,SELECT COUNT(goals_olimpia) FROM table_13688489_1 WHERE matches = 32 Show the station name with at least two trains.,SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING count(*) >= 2 What is the average capacity that has switzerland as the country?,"SELECT AVG(capacity) FROM table_name_19 WHERE country = ""switzerland""" Show each premise type and the number of premises in that type.,"SELECT premises_type , count(*) FROM premises GROUP BY premises_type" Indicate the last number of each street.,SELECT street_number FROM address "WHAT IS THE WEEK WITH AN ATTENDANCE OF 75,555?","SELECT SUM(week) FROM table_name_23 WHERE attendance = ""75,555""" "How many lanes have 2 as the heat, and susanna kallur as the name?","SELECT SUM(lane) FROM table_name_77 WHERE heat = 2 AND name = ""susanna kallur""" Give the Wikipedia IDs of historical legislators who are Readjuster Democrats.,SELECT T2.wikipedia_id FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.party = 'Readjuster Democrat' On what date did Hudswell Clarke build the locomotive with 0-6-0 ST wheel arrangements?,"SELECT date_built FROM table_1157867_2 WHERE wheel_arrangement = ""0-6-0 ST"" AND builder = ""Hudswell Clarke""" What are the wines that have prices higher than 50 and made of Red color grapes?,"SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" Name the flight up for 10 december 1982 19:02:36 utc,"SELECT flight_up FROM table_245801_1 WHERE landing_date = ""10 December 1982 19:02:36 UTC""" List at least 10 films that falls into the Horror category.,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Horror' What is the 2012 election results for locations whose representative is Barbara Lee?,"SELECT 2012 AS _election_results FROM table_19283806_4 WHERE representative = ""Barbara Lee""" "Which customers use ""Cash"" for payment method? Return the customer names.","SELECT customer_name FROM customers WHERE payment_method = ""Cash""" "Which paper is published in an institution in ""USA"" and have ""Turon"" as its second author?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""USA"" AND t2.authorder = 2 AND t1.lname = ""Turon""" "Which album is the royal g's club mix version, which is remixed by royal garden sound, from?","SELECT album FROM table_name_20 WHERE remixed_by = ""royal garden sound"" AND version = ""royal g's club mix""" How many inspections were done under the personnel category?,SELECT COUNT(T1.inspection_id) FROM violation AS T1 INNER JOIN inspection_point AS T2 ON T1.point_id = T2.point_id WHERE T2.category = 'Personnel' "How much is the processed time of the method whose tokenized name is ""about box1 dispose""? Indicate the language of the method.","SELECT DISTINCT T1.ProcessedTime, T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'about box1 dispose'" What is the to par of player hunter mahan?,"SELECT to_par FROM table_name_87 WHERE player = ""hunter mahan""" "What is the total number of Mark, when Country is ""Russia"", and when React is less than 0.165?","SELECT COUNT(mark) FROM table_name_65 WHERE country = ""russia"" AND react < 0.165" How many times did Anna Himes use her Mastercard when paying between 12/25/2014 and 5/20/2016 ?,SELECT COUNT(T2.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Anna' AND T1.Last = 'Himes' AND T2.CreditCardType = 'MasterCard' AND T2.TransactionDate BETWEEN '2014-12-25' AND '2016-05-20' Tell me the venue for score of 82-0,"SELECT venue FROM table_name_58 WHERE score = ""82-0""" How many players bowl in the legbreak style?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id WHERE T2.Bowling_skill = 'Legbreak' What is the KINKA 1.3 when the developer is yes and the support version is support mo 230?,"SELECT kinka_13 FROM table_name_11 WHERE kinka_developer = ""yes"" AND version = ""support mo 230""" "What's the game with an attendance of 71,962?",SELECT MIN(game) FROM table_name_53 WHERE attendance = 71 OFFSET 962 where is Mascot of quakers?,"SELECT location FROM table_name_35 WHERE mascot = ""quakers""" "List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2.","SELECT webkit_version FROM table_24257833_4 WHERE major_version = ""Safari 3"" AND minor_version = ""3.1.2""" Which school is student829 enrolled in?,SELECT school FROM enrolled WHERE name = 'student829' How many students enrolled in Course ID 302?,SELECT count ( * ) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = 302 Give the neighborhood name of West Englewood community.,SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.community_area_name = 'West Englewood' how many different student ids are there?,SELECT count ( distinct student_id ) from student_course_attendance What is the gearbox when the torque is torque?,"SELECT gearbox FROM table_250230_2 WHERE ""torque"" = ""torque""" "What is CFL Team, when Pick # is greater than 34, and when College is Boise State?","SELECT cfl_team FROM table_name_86 WHERE pick__number > 34 AND college = ""boise state""" What is the home team of the match with an attendance greater than 202?,SELECT home_team FROM table_name_22 WHERE attendance > 202 What is the description of role code ED?,"SELECT role_description FROM ROLES WHERE role_code = ""ED""" What tournament did Nadal win and had a nadal of 16?,"SELECT tournament FROM table_name_75 WHERE winner = ""nadal"" AND ""nadal"" = 16" What was the stage when the winner was luis león sánchez?,"SELECT stage FROM table_25580292_13 WHERE winner = ""Luis León Sánchez""" List the names of states that have more than 2 parks.,SELECT state FROM park GROUP BY state HAVING count(*) > 2; What is the difference between the hottest temperature and the coldest temperature in in Fahrenheit on 8/29/2013 for the area where the zip code is 94107?,"SELECT SUM(IIF(zip_code = 94107 AND date = '8/29/2013', max_temperature_f - min_temperature_f, 0)) FROM weather" "Which current legislator is older, Sherrod Brown or Maria Cantwell?",SELECT official_full_name FROM current WHERE official_full_name = 'Sherrod Brown' OR official_full_name = 'Maria Cantwell' ORDER BY birthday_bio LIMIT 1 Show the ids and names of festivals that have at least two nominations for artworks.,"SELECT T1.Festival_ID , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2" What is the sport with the most scholarship students?,SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1 "Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?","SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = ""england"" AND games < 5" Name the number of flaps for 63 points ,"SELECT COUNT(flaps) FROM table_16908657_1 WHERE points = ""63""" How many businesses were founded after 1960 in a nation that wasn't independent?,"SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T2.Independence = NULL AND STRFTIME('%Y', T3.Established) > '1960'" Calculate the percentage of object samples that are related to street lights.,SELECT CAST(SUM(CASE WHEN T2.OBJ_CLASS = 'street lights' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.OBJ_SAMPLE_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID On what day was the game that ended in a score of 97-38?,"SELECT date FROM table_name_1 WHERE score = ""97-38""" What is the current payrate of Rob Walters? Calculate the percentage increment from his previous payrate.,"SELECT T2.Rate , (MAX(T2.Rate) - MIN(T2.Rate)) * 100 / MAX(T2.Rate) FROM Person AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Rob' AND T1.LastName = 'Walters'" In 2011 which sport had the year award?,SELECT sport FROM table_name_92 WHERE year_of_award = 2011 Name the total number of sinhalese for indian tamil being 177,SELECT COUNT(sinhalese) FROM table_24574438_1 WHERE indian_tamil = 177 Find the id and local authority of the station whose maximum precipitation is higher than 50.,"SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50" Which call sign has a frequency of FM 105.3?,"SELECT call_sign FROM table_name_81 WHERE frequency = ""fm 105.3""" What is the home for the away of 4-0?,"SELECT home FROM table_name_1 WHERE away = ""4-0""" What is the release date for the Chinese title 摸摸瓦力欧制造?,"SELECT released_date FROM table_name_46 WHERE chinese_title = ""摸摸瓦力欧制造""" Calculate the population of Arab in each country?,SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Arab' What were phoenix's high points?,"SELECT high_points FROM table_name_83 WHERE opponent = ""phoenix""" In which city is the store with the highest sales order unit price located?,"SELECT T2.`City Name` FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE REPLACE(T1.`Unit Price`, ',', '') = ( SELECT REPLACE(T1.`Unit Price`, ',', '') FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID ORDER BY REPLACE(T1.`Unit Price`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(T1.`Unit Price`, ',', '') DESC LIMIT 1" "How many draws have 1 win, 1 loss, and a Goal Differential of +1?","SELECT SUM(draws) FROM table_name_85 WHERE wins = 1 AND losses = 1 AND goal_differential = ""+1""" Name the overall record for road record being 4-3,"SELECT overall_record FROM table_22825679_1 WHERE road_record = ""4-3""" ok. can you also please give me the name and age of the youngest editor?,"SELECT Name, age FROM editor WHERE Age = ( select min ( age ) from editor ) " List the top 5 movies from other countries which to language is not in English.,SELECT DISTINCT T1.movieid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'other' AND T2.isEnglish = 'F' LIMIT 5 What are the prices of products that have never gotten a complaint?,SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints) What commune has an area of 12.4 sq.km.?,"SELECT commune FROM table_1828368_1 WHERE area__km_2__ = ""12.4""" Name the location attendance for april 5,"SELECT location_attendance FROM table_17322817_10 WHERE date = ""April 5""" Who won the season of 1998?,SELECT winner_season FROM table_name_52 WHERE year = 1998 What years was the player Lonny Baxter in Toronto?,"SELECT years_in_toronto FROM table_10015132_2 WHERE player = ""Lonny Baxter""" What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""660 Shea Crescent"" OR T2.How_to_Get_There = ""walk""" What is the percentage of Russian players who have a height of under 200 inch?,SELECT CAST(COUNT(CASE WHEN T1.height_in_cm < 200 AND T2.nation = 'Russia' THEN T2.ELITEID ELSE NULL END) AS REAL) * 100 / COUNT(T2.ELITEID) FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height What is the name of the customer who has made the minimum amount of payment in one claim?,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers) "What was the kickoff time for the December 14, 2003 game?","SELECT kickoff_time FROM table_name_82 WHERE date = ""december 14, 2003""" How many episodes have a share of 16.2% and an episode number of less than 1?,"SELECT COUNT(total_viewers) FROM table_name_82 WHERE share = ""16.2%"" AND episode_no < 1" What are the names of the artists who sang the shortest song?,SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 "Which Studio has the Year of 2012 listed and the Movie, Dabangg?","SELECT studio_s_ FROM table_name_22 WHERE year = 2012 AND movie = ""dabangg""" How many Latin Americans were there in the Northwest Territories in 2011?,"SELECT MIN(latin_americans_2011) FROM table_1939405_2 WHERE province = ""Northwest Territories""" What was the date of the Mavericks home game?,"SELECT date FROM table_name_25 WHERE home = ""mavericks""" Which team has the highest winning rate in year 2000? State the team ID and list down the birth country of it's players.,"SELECT DISTINCT T3.tmID, T1.birthCountry FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID INNER JOIN ( SELECT year, tmID FROM Teams WHERE year = 2000 ORDER BY W / (W + L) DESC LIMIT 1 ) AS T3 ON T2.tmID = T3.tmID AND T2.year = T3.year" What is the age of the tallest person?,SELECT Age FROM people ORDER BY Height DESC LIMIT 1 Name the fa cup apps for george green,"SELECT fa_cup_apps FROM table_19730892_1 WHERE name = ""George Green""" What is the share of votes in the 2008 election?,SELECT share_of_votes FROM table_name_44 WHERE election = 2008 What the name of the school where the last win in 2007-08?,"SELECT school FROM table_14286908_1 WHERE year_of_last_win = ""2007-08""" What is the average age of all the vivo device users?,SELECT AVG(age) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' What is the home team at the venue mcg?,"SELECT home_team FROM table_name_20 WHERE venue = ""mcg""" "The stamp was 39¢, who was the printer?","SELECT printer FROM table_15635768_1 WHERE face_value = ""39¢""" Can you please list the names of all tracks in the playlists of Movies?,"SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = ""Movies""" What was South Melbourne's home team score?,"SELECT home_team AS score FROM table_name_90 WHERE home_team = ""south melbourne""" What is the name of the wrestler with the fewest days held?,SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1 List apps whose rating is 3.9 and state the translated review of each app.,"SELECT T1.App, T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Rating = 3.9" "Which type of principal activity, cargo airline or airline, operates the most flights?",SELECT Principal_activities FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY Principal_activities order by count ( * ) limit 1 how many orders there,SELECT count ( * ) FROM orders "Which surface had a partner of Sandrine Testud on November 14, 1999?","SELECT surface FROM table_name_93 WHERE partner = ""sandrine testud"" AND date = ""november 14, 1999""" Show the names of all technicians.,select name from technician How many students are in each department?,"SELECT count(*) , dept_name FROM student GROUP BY dept_name" Show me the count of students for each city,"SELECT city_code, count ( * ) FROM student group by city_code" Find the market shares and names of furnitures which no any company is producing in our records.,"SELECT Market_Rate , name FROM furniture WHERE Furniture_ID NOT IN (SELECT Furniture_ID FROM furniture_manufacte)" What is the 2 vs 3 when total is bigger than 38?,SELECT AVG(2 AS _vs_3) FROM table_name_52 WHERE total > 38 What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012?,"SELECT MAX(original_air_date) FROM table_name_17 WHERE dvd_region_2_release_date = ""23 april 2012"" AND number_of_episodes > 10" "What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?",SELECT MIN(bronze) FROM table_name_58 WHERE silver = 9 AND total > 13 AND gold > 13 "List all the paper that were under the conference homepage URL ""http://www.irma-international.org/"".",SELECT T1.Title FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.HomePage = 'http://www.irma-international.org/' What are their organization ids?,SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count ( * ) DESC LIMIT 1 Show the name of the shop that have the largest quantity of devices in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1 List the name of albums that are released by aritist whose name has 'Led',SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' What is the population density of Hanoi's home country?,SELECT T1.Population / T1.Area FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Hanoi' How many basic or medium undergraduate courses are taught by a professor?,SELECT COUNT(*) FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id INNER JOIN person AS T3 ON T3.p_id = T2.p_id WHERE T1.courseLevel = 'Level_300' AND T3.professor = 1 Which company supplies Gula Malacca?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Gula Malacca' Who was in sixth place in series 7?,SELECT sixth_place FROM table_name_34 WHERE series = 7 What is the total price of all the books ordered by Lucas Wyldbore?,SELECT SUM(T1.price) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore' What player's original team are the Buffalo Bills?,"SELECT player FROM table_name_31 WHERE original_nfl_team = ""buffalo bills""" Do they all have all amenities? | Did you mean whether all dorms have all amenities? | Yes.,SELECT DISTINCT dormid FROM Has_amenity names of buildings whose status is on-hold in ascending order | In what ascending order? | In ascending order of stories,"SELECT name FROM buildings WHERE Status = ""on-hold"" ORDER BY Stories ASC" What is the Location when the time was 11:55?,"SELECT location FROM table_name_22 WHERE time = ""11:55""" Can you tell me America Jaskolski's policy id?,"SELECT t2.policy_id FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id where t1.customer_name = ""America Jaskolski""" What is the Power (kW) for the station located in Cebu?,"SELECT power__kw_ FROM table_name_83 WHERE location = ""cebu""" What fraction has a value for dots of 0.\dot{3}?,"SELECT fraction FROM table_name_85 WHERE dots = ""0.\dot{3}""" Name the number of outgoing manager for rijeka,"SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = ""Rijeka""" Whcih was the Class AAA in school year 2006-07?,"SELECT class_aAA FROM table_name_85 WHERE school_year = ""2006-07""" What is the To Par of the player with a t8 Finish?,"SELECT to_par FROM table_name_32 WHERE finish = ""t8""" What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33?,"SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = "".47 ± .33""" "What are the employee ids of employees who report to Payam, and what are their salaries?","SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )" "What is the status of the city/state of Indor, Madhya Pradesh?","SELECT status AS Date FROM table_name_1 WHERE city_state = ""indor, madhya pradesh""" "Give the repository ID for the solution of method ""Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal"".",SELECT DISTINCT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal' What is the mean round number for center position when the pick number is less than 23?,"SELECT AVG(round) FROM table_name_39 WHERE position = ""center"" AND pick__number < 23" Find the names of employees who never won any award in the evaluation.,SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation) How much is HL Grip Tape's profit ratio?,SELECT (T1.LastReceiptCost - T1.StandardPrice) / T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'HL Grip Tape' Which school did harold duvall attend?,"SELECT college_junior_club_team FROM table_2679061_12 WHERE player = ""Harold Duvall""" "Among all players drafted by the Toronto Maple Leafs in 2008, identify the player with the highest prospects for the draft.",SELECT PlayerName FROM PlayerInfo WHERE overallby = 'Toronto Maple Leafs' AND draftyear = '2008' ORDER BY CSS_rank DESC LIMIT 1 What is the highest attendace of the game with the Lakers as the home team?,"SELECT MAX(attendance) FROM table_name_56 WHERE home = ""lakers""" What date has 136-134 as the score?,"SELECT date FROM table_name_83 WHERE score = ""136-134""" WHich states have no employees?,SELECT state_province_county FROM addresses WHERE address_id NOT IN ( SELECT employee_address_id FROM Employees ) Show the status of the city that has hosted the greatest number of competitions.,SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 what is the park name of Anaheim city | Angel Stadium of Anaheim is the name of the park in city Anaheim. | what is the state of Columbia Park,"SELECT state FROM park where park_name = ""Columbia Park""" Give the number of inactive customers.,SELECT COUNT(customer_id) FROM customer WHERE active = 0 How many male and female assistant professors do we have?,"SELECT sex , count(*) FROM Faculty WHERE rank = ""AsstProf"" GROUP BY sex" Name the total number of japanese for amagasaki,"SELECT COUNT(japanese) FROM table_1585609_2 WHERE name = ""Amagasaki""" What are the lessons thought by jenessa,"SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa""" What is its checking account balance?,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN ( SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > ( SELECT avg ( balance ) FROM savings ) ) "What is the highest Population per km² (2009) that is in western province, with an Area (km²) larger than 5,475?","SELECT MAX(population_per_km²__2009_) FROM table_name_33 WHERE province = ""western province"" AND area__km²_ > 5 OFFSET 475" How many employees work as an Account Representative?,SELECT COUNT(*) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Account Representative' What are the details of the student who registered for the most number of courses?,SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 Show me the employ id of the highest employee who doesn't have a middle name.,SELECT emp_id FROM employee WHERE minit = '' ORDER BY job_lvl DESC LIMIT 1 How many settlements does each claim correspond to? List the claim id and the number of settlements.,"SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id" What is the id of the appointment that started most recently?,SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1 What was the score on 15 march 2006?,"SELECT score FROM table_name_85 WHERE date = ""15 march 2006""" Please show me the names of editors of age 25.,SELECT Name FROM editor WHERE Age = 25 Show the names of counties that have at least two delegates.,SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 Find out the first name and last name of staff lived in city Damianfort.,"SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = ""Damianfort""" Which department has the lowest budget?,SELECT dept_name FROM department ORDER BY budget LIMIT 1 What is the total number of opponents played against the bears in game 4?,SELECT COUNT(opponents) FROM table_21035326_1 WHERE game = 4 How many throws did james get?,"SELECT throws FROM table_name_39 WHERE first = ""james""" Name the most ending with for peyalvar,"SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = ""Peyalvar""" Where has an IATA of BVA?,"SELECT city FROM table_name_69 WHERE iata = ""bva""" "What are the names of all customers, ordered by account balance?",SELECT cust_name FROM customer ORDER BY acc_bal What is the largest lap number when the time was +31.982?,"SELECT MAX(laps) FROM table_name_5 WHERE time = ""+31.982""" Compute the average number of hosts for parties.,SELECT avg(Number_of_hosts) FROM party Name the championship for 1980 hard surface,"SELECT championship FROM table_22597626_6 WHERE year = 1980 AND surface = ""Hard""" Show flight number for all flights with more than 2000 distance.,SELECT flno FROM Flight WHERE distance > 2000 What is the fastest lap of the race where Giuseppe Farina was the winning driver?,"SELECT fastest_lap FROM table_name_76 WHERE winning_driver = ""giuseppe farina""" What name is the goals of 25?,SELECT name FROM table_name_18 WHERE goals = 25 Excellent! Would you be able to provide me with a list of the names and genders of those 7 employees?,"SELECT employee_name,gender_MFU FROM Employees where role_code = ""ED""" How many venues were used on 10 Mar 2007?,"SELECT venue FROM table_14981555_3 WHERE date = ""10 Mar 2007""" What date did the Boston Celtics play at Richfield Coliseum?,"SELECT date FROM table_name_99 WHERE location = ""richfield coliseum""" What rank is Vaud with the lowest point is Lake Geneva?,"SELECT SUM(rank) FROM table_name_19 WHERE lowest_point = ""lake geneva"" AND canton = ""vaud""" "What are the highest cost, lowest cost and average cost of procedures?","SELECT MAX ( cost ) , MIN ( cost ) , AVG ( cost ) FROM procedures" "What year has a not nominated result and a nomination title of ""the color of fame""?","SELECT year__ceremony_ FROM table_name_62 WHERE result = ""not nominated"" AND film_title_used_in_nomination = ""the color of fame""" "ok, how many teams are the total in this data range? | What data range are you referring to? | Team salaries",SELECT count ( distinct team_id ) from salary "What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards?","SELECT position FROM table_name_50 WHERE nationality = ""united states"" AND jersey_number_s_ = ""12"" AND player = ""tom black category:articles with hcards""" Find the number of amenities for each of the dorms that can accommodate more than 100 students.,"SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid" "yes, i want to know about the mascots for schools. | What about the mascot for schools do you want to know? | I want to know that what are the mascots for schools with enrollments above the average?",SELECT mascot FROM school WHERE enrollment > ( SELECT avg ( enrollment ) FROM school ) "Among Frank Welker's voice-acted movies, list the movie titles and the total gross when the estimated inflation rate was less than 2.","SELECT T1.movie_title, T1.total_gross FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Frank Welker' AND CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) * 1.0 / CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) * 1.0 < 2" "What rank is the title with a gross of $26,589,355?","SELECT rank FROM table_name_21 WHERE gross = ""$26,589,355""" What is the margin of victory in a semgroup championship?,"SELECT margin_of_victory FROM table_name_39 WHERE tournament = ""semgroup championship""" I need to know the names of artists with at least one English Song,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" GROUP BY T2.artist_name HAVING count ( * ) > = 1" Which Location Attendance has a Game larger than 5?,SELECT location_attendance FROM table_name_32 WHERE game > 5 "What was the first job position that the company needed, and who was hired? Indicate his/her full name.","SELECT T1.JobTitle, T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.HireDate LIMIT 1" "Name the Runs that has a Venue of bellerive oval , hobart, and a Player of travis birt?","SELECT runs FROM table_name_2 WHERE venue = ""bellerive oval , hobart"" AND player = ""travis birt""" Who is in December when November has Alexus Winston?,"SELECT december FROM table_name_32 WHERE november = ""alexus winston""" What winning score has in-kyung kim as the runner(s)-up?,"SELECT winning_score FROM table_name_64 WHERE runner_s__up = ""in-kyung kim""" List the players' names who were born in 1971.,SELECT Player_name FROM Player WHERE DOB LIKE '1971%' What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?,SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax' how rooms are presented on the table | Did you mean to ask how many entries are in the table rooms? | exactly,SELECT COUNT ( * ) FROM Rooms How many students are there?,SELECT count(*) FROM list What Assembled has Elected of 1562/63?,"SELECT assembled FROM table_name_30 WHERE elected = ""1562/63""" "What is the Riding, when the Rank is 4th?","SELECT riding FROM table_name_47 WHERE rank = ""4th""" "Which county do the delegates on ""Appropriations"" committee belong to? Give me the county names.","SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = ""Appropriations""" "What is the first and last name of artist who performed ""Le Pop""?","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Le Pop""" what is Gold Medals that has salem blue devils and a Silver Medals less than 1?,"SELECT MIN(gold_medals) FROM table_name_18 WHERE ensemble = ""salem blue devils"" AND silver_medals < 1" Return the names of wrestlers with fewer than 100 days held.,SELECT Name FROM wrestler WHERE Days_held < 100 Which movie is the character Dr. Archibald 'Moonlight' Graham from?,SELECT T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.`Character Name` = 'Dr. Archibald ''Moonlight'' Graham' What is the word id of the catalan language that was repeated no more than 10 times in the said language?,SELECT wid FROM langs_words WHERE occurrences <= 10 "What are the titles and studios of films that have been produced by a studio whose name contains ""Universal""?","SELECT title , Studio FROM film WHERE Studio LIKE ""%Universal%""" Find the total number of students in each department.,"SELECT COUNT(*), dept_name FROM student GROUP BY dept_name" "What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?","SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = ""national bank of greece"" AND rank < 1" What was the lowest attendance for games played on december 23?,"SELECT MIN(attendance) FROM table_23308178_6 WHERE date = ""December 23""" Which customer made the smallest amount of claim in one claim? Return the customer details.,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers) "On average, how many papers are under the ML class?",SELECT CAST(COUNT(CASE WHEN class_label = 'ML' THEN paper_id ELSE NULL END) AS REAL) / COUNT(paper_id) FROM paper Who was the entrant for Gary Brabham?,"SELECT entrant FROM table_name_5 WHERE driver = ""gary brabham""" List the last name of the owner owning the youngest dog.,SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs ) What is the headquarter of the company with the largest sales?,SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1 What the score of the 1992 game?,"SELECT score FROM table_name_71 WHERE year = ""1992""" Was this complaint closed? | Do you mean whether the complaint which raised at 2007-10-14 21:50:43 was closed? | Correct. Has the complaint raised at 2007-10-14 21:50:43 been closed?,SELECT date_complaint_closed from complaints where date_complaint_raised = '2007-10-14 21:50:43' Please list the levels of the all courses taught by teacher no.79.,SELECT T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id = 79 Calculate the total net profit of the store located in highest median income city.,"SELECT SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID ORDER BY T2.`Median Income` DESC LIMIT 1" "What is the total number of words in page containing pair of word id ""100"" and ""317""?",SELECT words FROM langs WHERE lid = ( SELECT lid FROM biwords WHERE w1st = 100 AND w2nd = 317 ) When موسم زيتون is the arabic title when is the year (ceremony)?,"SELECT year__ceremony_ FROM table_26555737_1 WHERE arabic_title = ""موسم زيتون""" What are the sales reasons for order 43718?,SELECT T2.Name FROM SalesOrderHeaderSalesReason AS T1 INNER JOIN SalesReason AS T2 ON T1.SalesReasonID = T2.SalesReasonID WHERE T1.SalesOrderID = 43718 What is the average total score of body builders with height bigger than 200?,SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200 What is the Elimination for Candice?,"SELECT elimination FROM table_name_96 WHERE wrestler = ""candice""" How many customer listed ?,SELECT count ( * ) FROM customers AS t1 What is the number of affected regions for each storm?,"SELECT T1.name , count ( * ) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id" Provide the universities which got the highest scores.,SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id GROUP BY T1.university_name ORDER BY SUM(T2.score) DESC LIMIT 1 To which party does Riley Joseph Wilson belong?,"SELECT party FROM table_1342370_17 WHERE incumbent = ""Riley Joseph Wilson""" Find the state of the college which player Charles is attending.,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' What is the description of the intact software?,"SELECT description FROM table_25474825_1 WHERE software = ""IntAct""" What is the segment C of the episode where segment B is Film Digitization?,"SELECT segment_c FROM table_15187735_19 WHERE segment_b = ""Film Digitization""" Which vocal type is the most frequently appearring type?,SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 What tournament had a 1 point margin of victory?,"SELECT tournament FROM table_name_12 WHERE margin_of_victory = ""1 point""" When the losing bonus was 2 what was drawn score?,"SELECT drawn FROM table_name_97 WHERE losing_bonus = ""2""" Which network broadcast the game when the Western Bulldogs played melbourne?,"SELECT broadcaster FROM table_24919137_2 WHERE opposition = ""Melbourne""" "When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?","SELECT nupowr_183 FROM table_3002894_4 WHERE nupowr_117 = ""0,4, or 8 MB""" "What was the score on September 1, 1996?","SELECT result FROM table_name_50 WHERE date = ""september 1, 1996""" What are the full names of students minoring in department 140?,"SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140" show the number of products with category Spices?,SELECT count ( * ) FROM products WHERE product_category_code = 'Spices' "Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1?","SELECT SUM(total) FROM table_name_68 WHERE club = ""darlington"" AND league_goals = ""13"" AND league_cup_goals = ""1""" How many percent more of the stars for the repository of solution No.51424 than No.167053?,SELECT CAST(SUM(CASE WHEN T2.Id = 51424 THEN T1.Stars ELSE 0 END) - SUM(CASE WHEN T2.Id = 167053 THEN T1.Stars ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 167053 THEN T1.Stars ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId Name the gdp where gdp per capita 20200,SELECT gdp__billion_us$_ FROM table_1307842_7 WHERE gdp_per_capita__us$_ = 20200 "What is the call sign of the translator in Spring Valley, Nevada?","SELECT call_sign FROM table_name_16 WHERE city_of_license = ""spring valley, nevada""" What are the id and first name of the student whose addresses have the highest average monthly rental?,"SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1" "For the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends ID ?",SELECT T2.legendsID FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2011 ORDER BY 1 - CAST(T1.PostGA AS REAL) / T1.PostSA DESC LIMIT 1 "When was the school in Springfield, Massachusetts founded?","SELECT MAX(founded) FROM table_1974782_1 WHERE location = ""Springfield, Massachusetts""" How many total medals for the netherlands?,"SELECT SUM(total) FROM table_name_9 WHERE nation = ""netherlands""" Find the id and name of customers whose address contains WY state and do not use credit card for payment.,"SELECT customer_id, customer_name FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code <> ""Credit Card""" What player is from Fiji?,"SELECT player FROM table_name_67 WHERE country = ""fiji""" Name the lowest Round with Opponent of rolando delgado?,"SELECT MIN(round) FROM table_name_18 WHERE opponent = ""rolando delgado""" How many employees are there?,SELECT count(*) FROM Staff; "Sorry, I think I misunderstood the question. Can you display only the apartment type codes again for each entry?",SELECT apt_type_code FROM Apartments "How many outputs are there for solid state, battery operated for portable use listed in notes?","SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = ""Solid state, battery operated for portable use""" "What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000?","SELECT SUM(melbourne) FROM table_name_93 WHERE episode_number_production_number = ""19 2-06"" AND sydney < 389 OFFSET 000" List the names of departments where some physicians are primarily affiliated with.,SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1 What was the incumbent of texas 3?,"SELECT incumbent FROM table_1341663_44 WHERE district = ""Texas 3""" Calculate the total winning match for Deccan Chargers.,SELECT SUM(T2.Match_Winner) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T1.Team_Name = 'Deccan Chargers' What country does Rocco Mediate play for?,"SELECT country FROM table_name_77 WHERE player = ""rocco mediate""" Find the id of the candidate who got the lowest oppose rate.,SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 What was Ralph Shoaf's pick number?,"SELECT pick FROM table_name_39 WHERE name = ""ralph shoaf""" what is the birth date when the weight (kg) is 100 and the world rank is 2?,"SELECT birth_date FROM table_name_3 WHERE weight__kg_ = ""100"" AND world_rank = ""2""" What is the first leg score in that match where Marseille was the first team?,"SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = ""marseille""" What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?,"SELECT T1.id, T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1" What is the ratio between the number of object samples in image 1 and the number of object samples in image 6?,SELECT CAST(SUM(CASE WHEN IMG_ID = 1 THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN IMG_ID = 6 THEN 1 ELSE 0 END) FROM IMG_OBJ How many directors worked on the episode written by Brent Fletcher & Miranda Kwok?,"SELECT COUNT(directed_by) FROM table_23918997_1 WHERE written_by = ""Brent Fletcher & Miranda Kwok""" How many customers do we have?,SELECT count(*) FROM Customers Who among the players drafted by Arizona Coyotes in 2000 has committed the highest rule violations?,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.overallby = 'Arizona Coyotes' AND T2.draftyear = 2000 ORDER BY T1.PIM DESC LIMIT 1 What are all distinct country for artists?,SELECT DISTINCT country FROM artist What season has 6 races and the team is Australia?,"SELECT season FROM table_name_90 WHERE races = 6 AND team = ""australia""" "What is the highest Goals For, when Team is ""Cheadle Town"", and when Drawn is greater than 7?","SELECT MAX(goals_for) FROM table_name_2 WHERE team = ""cheadle town"" AND drawn > 7" What were Gentleman's odds of winner?,"SELECT odds_of_winner FROM table_21676617_1 WHERE horse = ""Gentleman""" What was the earliest year that Yvette Alexander took office and was up for reelection after 2016?,"SELECT MIN(took_office) FROM table_name_70 WHERE name = ""yvette alexander"" AND up_for_reelection > 2016" What is the away team where the home team is Coventry City?,"SELECT away_team FROM table_name_73 WHERE home_team = ""coventry city""" "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.","SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1" How many tasks are there?,SELECT count(*) FROM Tasks Name the gdp per capita for haiti,"SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = ""Haiti""" What is the release date of vhs super callanetics?,"SELECT release_date FROM table_name_96 WHERE format = ""vhs"" AND title = ""super callanetics""" "What is Place, when Score is ""70-68=138"", and when Player is ""Andrew Magee""?","SELECT place FROM table_name_1 WHERE score = 70 - 68 = 138 AND player = ""andrew magee""" what are the order id and customer id of the oldest order?,"SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1" "How many more movie lists were created by the user who created the movie list ""250 Favourite Films""?",SELECT COUNT(list_id) FROM lists_users WHERE user_id = ( SELECT user_id FROM lists WHERE list_title = '250 Favourite Films' ) What date was the score 29-7?,"SELECT date FROM table_name_28 WHERE score = ""29-7""" Which regio has a date of 24 march 2006?,"SELECT region FROM table_name_15 WHERE date = ""24 march 2006""" What is all the information regarding employees with salaries above the minimum and under 2500?,SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500 Find the payment method that is used most frequently.,SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 List the time of elimination of the wrestlers with largest days held.,SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 What are the average prices of products for each manufacturer?,"SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" How many U.S. air dates were from an episode in Season 4?,SELECT COUNT(us_airdate) FROM table_19422702_1 WHERE no_in_season = 4 How many films released between 1/2/1990 and 12/30/2000 starred Uma Thurman?,SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Uma Thurman' AND T1.release_date BETWEEN '1990-01-01' AND '2000-12-31' Find the names of artists that do not have any albums.,SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId What is the location of the Carousel toll plaza?,"SELECT location FROM table_1211545_2 WHERE name = ""Carousel Toll Plaza""" What percentage of the votes did Obama get in the county where McCain got 3648 votes?,SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = 3648 Who is the Director of Fish Tales?,"SELECT director FROM table_name_94 WHERE title = ""fish tales""" The school nicknamed the wildcats has what sum of enrollment?,"SELECT SUM(enrollment) FROM table_name_5 WHERE team_nickname = ""wildcats""" With a score of 68-65=133 and United States as the country what is the To par?,"SELECT to_par FROM table_name_66 WHERE country = ""united states"" AND score = 68 - 65 = 133" Which astrological sign has the Latin motto of Vita?,"SELECT sign FROM table_name_21 WHERE latin_motto = ""vita""" What semester in that year offers the largest number of courses?,SELECT semester FROM SECTION where year = 2002 GROUP BY semester ORDER BY count ( * ) DESC LIMIT 1 What is the team when player is listed as Ronjay Buenafe?,"SELECT team FROM table_28628309_8 WHERE player = ""Ronjay Buenafe""" Who directed the episode that had a production code of 2j5457?,"SELECT directed_by FROM table_25851971_1 WHERE production_code = ""2J5457""" What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?,"SELECT origin FROM table_name_82 WHERE owner = ""hunan broadcasting system (hbs)""" List the name for storms and the number of affected regions for each storm.,"SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id" "Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?","SELECT athlete FROM table_name_97 WHERE rank > 1 AND lane > 7 AND nationality = ""china""" "what is the billing address of germany | Billing address is associated with each customer, not country. Please clarify your question. | what is the address of state sp",SELECT address from customers where state = 'SP' Count the number of regions.,SELECT count(*) FROM region "If the player is William Jakes, what are the total points?","SELECT MIN(total_points) FROM table_27533947_1 WHERE players = ""William Jakes""" how many school are presented on the table,SELECT count ( * ) FROM school List the top 5 most-rented films.,"SELECT T.title FROM ( SELECT T3.title, COUNT(T2.inventory_id) AS num FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id GROUP BY T3.title ) AS T ORDER BY T.num DESC LIMIT 5" List all club names in descending alphabetical order.,SELECT name FROM club ORDER BY name DESC How long is the longest relationship?,SELECT max ( year ) FROM PersonFriend Name the lowest year for 12th position,"SELECT MIN(year) FROM table_name_4 WHERE position = ""12th""" What are the order dates of orders with a price higher than 1000?,SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 What are the names of conductors who have conducted at more than one orchestra?,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1 "Please list the titles of all the podcasts under the category ""arts-performing-arts"".",SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'arts-performing-arts' "In the 2014 Winter game, what is the percentage of competitors who age 28 years old?",SELECT CAST(COUNT(CASE WHEN T2.age = 28 THEN 1 END) AS REAL) * 100 / COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2014 Winter' What organization id Denesik and Sons Party?,"SELECT organization_id FROM Organizations where organization_details = 'Denesik and Sons Party'" how many airports in the list?,SELECT DISTINCT ( COUNT ( name ) ) FROM airports What was the average amount of losses for teams with played less than 14?,SELECT AVG(lost) FROM table_name_5 WHERE played < 14 What is the average grid for the +2.2 secs time/retired?,"SELECT AVG(grid) FROM table_name_44 WHERE time_retired = ""+2.2 secs""" What is the IATA of galeão airport?,"SELECT iata FROM table_name_58 WHERE airport = ""galeão airport""" What type had a course of Grosseto To Rieti?,"SELECT type FROM table_name_18 WHERE course = ""grosseto to rieti""" What's the hometown of the player who is 6-4?,"SELECT hometown FROM table_name_45 WHERE height = ""6-4""" "If the player is Maake Kemoeatu, what is the int maximum?","SELECT MAX(int) FROM table_25773915_11 WHERE player = ""Maake Kemoeatu""" "Which Year has a Producer of viva films, and a Title of magkapatid?","SELECT year FROM table_name_41 WHERE producer = ""viva films"" AND title = ""magkapatid""" "Can you tell me the average Points that has the Attendance of 3,806?",SELECT AVG(points) FROM table_name_42 WHERE attendance = 3 OFFSET 806 Can you provide me with the nickname of Janessa?,"SELECT nickname FROM staff where first_name = ""Janessa""" Return the famous titles for artists that have volumes that lasted more than 2 weeks on top.,SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 What are the names of the teachers whose courses have not been arranged?,SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange) How many pages does the ISBN 1-40122-328-1 have?,"SELECT SUM(pages) FROM table_name_47 WHERE isbn = ""1-40122-328-1""" Calculate the percentage of left hand batting style players among all players.,SELECT CAST(SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id "What are the visit date of the visitor whose detail is ""Vincent""?","SELECT T2.Visit_Date FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" And are there any other shops on the same street? | What street are you referring to? | The street shop 10 is on.,SELECT * from shop where address = ( select address from shop where shop_id = 10 ) and shop_id ! = 10 Which Crime film got the lowest average rating?,SELECT T2.movieid FROM u2base AS T2 INNER JOIN movies2directors AS T3 ON T2.movieid = T3.movieid WHERE T3.genre = 'Crime' GROUP BY T2.movieid ORDER BY AVG(T2.rating) LIMIT 1 What is average and maximum salary of all employees.,"SELECT avg(salary) , max(salary) FROM Employee" How many touchdowns did the player took which gained 25 points?,SELECT touchdowns FROM table_25711913_2 WHERE points = 25 What country is team ucla come from?,"SELECT nationality FROM table_name_70 WHERE school_club_team = ""ucla""" Name the director of alt i alt,"SELECT director_s_ FROM table_name_92 WHERE film = ""alt i alt""" What is the time/retired for grid 23?,SELECT time_retired FROM table_name_88 WHERE grid = 23 Name all stores and its sales representative in France territory.,"SELECT T3.Name, T4.FirstName, T4.LastName FROM SalesTerritory AS T1 INNER JOIN Customer AS T2 ON T1.TerritoryID = T2.TerritoryID INNER JOIN Store AS T3 ON T2.StoreID = T3.BusinessEntityID INNER JOIN Person AS T4 ON T2.PersonID = T4.BusinessEntityID WHERE T1.Name = 'France'" List down the business ID with a low review count in Phoenix.,SELECT business_id FROM Business WHERE city LIKE 'Phoenix' AND review_count LIKE 'Low' What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?,"SELECT T1.custid , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT max(balance) FROM checking)" "Available in 2-CD format, what is the title of story number 026?","SELECT title FROM table_name_83 WHERE format = ""2-cd"" AND story__number = ""026""" How many object elements can be detected on image no. 31?,SELECT COUNT(OBJ_CLASS_ID) FROM IMG_OBJ WHERE IMG_ID = 31 "Find the name of the artist who made the album ""Balls to the Wall"".","SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = ""Balls to the Wall""" what are the ids and names of the web accelerators that are compatible with two or more browsers?,"SELECT T1.id , T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING count ( * ) > = 2" What is the amount of discount applied to the product with the highest net profit and what is the name of the said product?,"SELECT T1.`Unit Price` * T1.`Discount Applied`, T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID ORDER BY REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') DESC LIMIT 1" How many kinds of different ratings are listed?,SELECT count(DISTINCT rating) FROM film "List all every engineer's first name, last name, details and coresponding skill description.","SELECT T1.first_name , T1.last_name , T1.other_details , T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id" How many journals don’t have a short name?,SELECT COUNT(ShortName) FROM Journal WHERE ShortName = '' "List the store ID of the film titled ""Amadeus Holy"".",SELECT T2.store_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T1.title = 'Amadeus Holy' "What are the total number of Domestic Passengers of airports that contain the word ""London"".","SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE ""%London%""" can you show me a list of login name?,SELECT login_name FROM students CAN YOU GIVE ME THE LIST OF architect NAME,SELECT name FROM architect On what date is the Score 94-109?,"SELECT date FROM table_name_54 WHERE score = ""94-109""" What is the sexual abuse rate where the conflict is the Burundi Civil War?,"SELECT MAX(sexual_abuse_1) FROM table_15652027_1 WHERE conflict = ""Burundi Civil War""" Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged,"SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = ""prolonged"" AND platelet_count = ""unaffected"" AND bleeding_time = ""prolonged""" What teams has a home of 5-0?,"SELECT teams FROM table_name_58 WHERE home = ""5-0""" What is the position for round 5 from alabama state?,"SELECT position FROM table_name_39 WHERE round = 5 AND college = ""alabama state""" "How many people have a Median household income of $37,759?","SELECT SUM(population) FROM table_name_66 WHERE median_household_income = ""$37,759""" How many episodes in the series has a production code of 111?,"SELECT COUNT(series) FROM table_24425976_2 WHERE production_code = ""111""" What's the name of the second biggest desert?,"SELECT Name FROM desert ORDER BY Area DESC LIMIT 1, 1" What trains go to station ID 1?,SELECT * FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id where T1.station_id = 1 what is the crime rate of Campbell River,"SELECT Crime_rate FROM county_public_safety WHERE Name = ""Campbell River""" What is the average ticket sales gross in dollars of films?,SELECT avg(Gross_in_dollar) FROM film What team competed in 2003?,"SELECT team FROM table_2266976_1 WHERE year = ""2003""" What was the number of seat changes when the % of votes was 23.75?,"SELECT change_in_seat FROM table_149330_1 WHERE _percentage_of_votes = ""23.75""" Name the m r romaja for kwanbuk,"SELECT m_r_romaja FROM table_160510_5 WHERE region = ""Kwanbuk""" How many documents are using the template with type code 'PPT'?,SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT' Show station names without any trains.,SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station) What are the student ids for all male students?,SELECT StuID FROM Student WHERE Sex = 'M' Who was the opponent when Richmond played as the home team?,"SELECT away_team FROM table_name_56 WHERE home_team = ""richmond""" how many English professors there,"SELECT count ( * ) from professor where DEPT_CODE = ""ENG""" Show ids for all templates not used by any document.,SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents Show all distinct product categories along with the number of mailshots in each category.,"SELECT product_category , count(*) FROM mailshot_campaigns GROUP BY product_category" What are the first names of all employees that are professors ordered by date of birth?,SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob What is the subject when the highest mark is 79?,SELECT subject FROM table_29842201_1 WHERE highest_mark = 79 Find the first name of students in the descending order of age.,SELECT Fname FROM STUDENT ORDER BY Age DESC What is the acceleration 0-100km/h that was produced in 2002-2006?,"SELECT acceleration_0_100km_h__0_62mph_ FROM table_1857216_1 WHERE production = ""2002-2006""" What is the traditional Chinese name for the record Beautiful?,"SELECT chinese__traditional_ FROM table_name_84 WHERE english_title = ""beautiful""" Who wrote the episode that is production code 202?,"SELECT written_by FROM table_26448179_3 WHERE production_code = ""202""" Find the location and all games score of the school that has Clemson as its team name.,"SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'" "What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?","SELECT MIN(game) FROM table_name_14 WHERE inning = ""6th"" AND opposing_pitcher = ""cliff curtis""" Show me the details of weight of the all body builders,SELECT T2.Weight FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID What college has the Chicago Stags?,"SELECT college FROM table_name_60 WHERE team = ""chicago stags""" What game was located at the Los Angeles Memorial Sports Arena?,"SELECT game FROM table_name_60 WHERE location_attendance = ""los angeles memorial sports arena""" On how many different dates was the episode written by Charlie Day aired for the first time?,"SELECT COUNT(original_air_date) FROM table_29273115_1 WHERE written_by = ""Charlie Day""" Who was the opponent on May 20?,"SELECT opponent FROM table_name_74 WHERE date = ""may 20""" what is the maximum booked count,SELECT max ( booked_count ) FROM products_booked Return the titles and directors of films that were never in the market of China.,"SELECT title , director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')" Find the names of users who did not leave any review.,SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review) What shows for 2010 Employees (Total) when the employer is University of Alberta?,"SELECT SUM(2010 AS _employees__total_) FROM table_name_1 WHERE employer = ""university of alberta""" Find the names of goods that receive a rating of 10.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating = 10 "What is the average land area with a density of 815.48, and a Population larger than 411?",SELECT AVG(land_area__hectares_) FROM table_name_29 WHERE density__inh_km²_ = 815.48 AND population > 411 Find the names of papers which are published in the year 1996.,SELECT Title FROM Paper WHERE year = 1996 "Among the employees who are store contacts, how many of them have a title of ""Mr.""?",SELECT COUNT(BusinessEntityID) FROM Person WHERE PersonType = 'SC' AND Title = 'Mr.' what is the place when losses is less than 12 and points is less than 19?,SELECT SUM(place) FROM table_name_12 WHERE lost < 12 AND points < 19 What is the total number of flights that have Oklahoma as their origin?,SELECT COUNT(*) AS num FROM Airlines WHERE Origin = 'OKC' "What is the average No Units, when the Name is Fung Shing Court, and when the No Blocks is fewer than 3?","SELECT AVG(no_units) FROM table_name_99 WHERE name = ""fung shing court"" AND no_blocks < 3" "In 2010, how many PS3 games were released?",SELECT 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 T1.platform_name = 'PS3' AND T2.release_year = 2010 WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?,"SELECT AVG(year) FROM table_name_88 WHERE bronze = ""valentin novikov""" How many laps did Jos Verstappen do on Grid 2?,"SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = ""jos verstappen""" What is the most common mill type?,SELECT TYPE FROM mill GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1 What number of bonus points did Stade Français?,"SELECT bonus_points FROM table_name_38 WHERE club = ""stade français""" What are the first names of all history professors who do not teach?,SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num How many elite users have reviewed Yelp_Business no.1?,SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id INNER JOIN Reviews AS T3 ON T1.user_id = T3.user_id WHERE T3.business_id = 1 Which place was earned on 12 feb 2012?,"SELECT place FROM table_name_93 WHERE date = ""12 feb 2012""" "Show template ids, version numbers, and template type codes for all templates.","SELECT template_id , version_number , template_type_code FROM Templates" "Name the date for lebron james , mo williams (21)","SELECT date FROM table_22654073_6 WHERE high_points = ""LeBron James , Mo Williams (21)""" What is the name of the club with a rank of 5?,"SELECT club FROM table_name_78 WHERE rank = ""5""" Tell me the games for men's 5000 metres,"SELECT games FROM table_name_18 WHERE event = ""men's 5000 metres""" what are the names of all catalogs,SELECT catalog_name FROM catalogs What is every weekly schedule in the country of Norway?,"SELECT weekly_schedule FROM table_18821196_1 WHERE country = ""Norway""" "In ""A Lover's Complaint"", what is the description of Act 1, Scene 1?",SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1 AND T2.Scene = 1 AND T1.Title = 'A Lover''s Complaint' who is the winners where season result is 9th,"SELECT winners FROM table_1139835_3 WHERE season_result = ""9th""" "What is Date, when Tie no is ""3""?","SELECT date FROM table_name_33 WHERE tie_no = ""3""" how many screen mode there,SELECT count ( * ) from screen_mode What's the attendance when the week was more than 16?,SELECT attendance FROM table_name_95 WHERE week > 16 Provide the number of students at Yale University in 2016.,SELECT T1.num_students FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Yale University' AND T1.year = 2016 Average length of the rivers flowing into the Donau River.,SELECT * FROM river WHERE Name = 'Donau' "Show all movie titles, years, and directors, ordered by budget.","SELECT title , YEAR , director FROM movie ORDER BY budget_million" When is the release date for a chip that has a Frequency of 2300mhz?,"SELECT release_date FROM table_name_88 WHERE frequency = ""2300mhz""" What county has a CERCLIS ID of scd037405362?,"SELECT county FROM table_name_64 WHERE cerclis_id = ""scd037405362""" List the name of the cars with model year 1975.,SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T2.model_year = 1975 Which series number has the production code 7.07?,"SELECT COUNT(no_in_series) FROM table_2226817_8 WHERE production_code = ""7.07""" what is the name of the camera lens in the mountains id 2?,SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id WHERE T1.mountain_id = 2 "Provide the inspection ID of the inspection with the comment ""MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA"" and sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A).","SELECT T2.inspection_id FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA' AND T1.code = '7-38-030, 015, 010 (A), 005 (A)'" "Can you tell me the lowest Games that has the Pts/game larger than 1.4 and the Points of 20, and the Name of susan day?","SELECT MIN(games) FROM table_name_96 WHERE pts_game > 1.4 AND points = 20 AND name = ""susan day""" Who left office in June 2011?,"SELECT name FROM table_name_1 WHERE left_office = ""june 2011""" what is its elevation?,SELECT elevation FROM airports ORDER BY elevation DESC LIMIT 1 "Show the name, open date, and organizer for all churches.","SELECT name , open_date , organized_by FROM Church" What class is the dodge dealers grand prix?,"SELECT class FROM table_name_23 WHERE race = ""the dodge dealers grand prix""" What is the name of the most common genre in all tracks?,SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1 "In the year 1958, what is the total number of players that became hall of famers?",SELECT COUNT(hofID) FROM HOF WHERE category = 'Player' AND year = 1958 What are the names and genders of staff who were assigned in 2016?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%""" "What is the Q1+Q2 time for the driver whose Q1 time was 1:14.819, ?","SELECT q1 + q2_time FROM table_name_51 WHERE q1_time = ""1:14.819""" "Points larger than 108, and a Wins of 0, and a Rank smaller than 8, and a Manufacturer of honda is what rider?","SELECT rider FROM table_name_64 WHERE points > 108 AND wins = 0 AND rank < 8 AND manufacturer = ""honda""" how many postseason on the table,SELECT count ( * ) FROM postseason "For that table, can you sort by descending count?","SELECT T1.teacher_id , count ( * ) FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id order by count ( * ) desc" What are the cities in Colorado that have post codes starting with 4.,"SELECT city FROM addresses WHERE zip_postcode LIKE ""4%"" and state_province_county = ""Colorado""" What is the margin of victory for the winning score of −10 (71-65-68-70=274)?,SELECT margin_of_victory FROM table_name_78 WHERE winning_score = −10(71 - 65 - 68 - 70 = 274) Yes,SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count ( * ) DESC LIMIT 1 Show locations and nicknames of schools.,"SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID" Show names of technicians who are assigned to repair machines with value point more than 70.,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70 Find the name of physicians who are in charge of more than one patient.,SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING count(*) > 1 May I have a list of authors?,SELECT Author FROM submission "What position does a Keith Shologan, who was picked higher than 6, play?","SELECT position FROM table_name_91 WHERE pick__number < 6 AND player = ""keith shologan""" What is the position of the 9th oldest hockey player?,"SELECT pos FROM Master WHERE birthYear IS NOT NULL ORDER BY birthYear, birthMon, birthDay LIMIT 8" What is the sources for Bandung?,"SELECT sources_of_pop___area FROM table_name_37 WHERE city = ""bandung""" Which country is University of Veterinary Medicine Vienna located in? Give its country id.,SELECT country_id FROM university WHERE university_name = 'University of Veterinary Medicine Vienna' "When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory?",SELECT margin_of_victory FROM table_name_66 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) What is the station with a number greater than 9 and a distance of 16.4 km?,SELECT station FROM table_name_10 WHERE number > 9 AND distance__km_ = 16.4 How many customers are there?,SELECT COUNT ( * ) FROM CUSTOMER "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.","SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID" what is the attendance when the home team is chester city?,"SELECT attendance FROM table_name_51 WHERE home_team = ""chester city""" What is Geelong's home team score?,"SELECT home_team AS score FROM table_name_89 WHERE home_team = ""geelong""" What was the venue of the match where team 2 was pea and the score was 1:3?,"SELECT venue FROM table_name_59 WHERE team_2 = ""pea"" AND score = ""1:3""" Which Platform is the one that has a Stop number of 99014?,"SELECT platform FROM table_name_28 WHERE stop_no = ""99014""" How many written by have wendey stanzler as the director?,"SELECT COUNT(written_by) FROM table_22570439_1 WHERE directed_by = ""Wendey Stanzler""" Who is the second when Mikkel Krause is the third?,"SELECT second FROM table_name_18 WHERE third = ""mikkel krause""" Which CFL team drafted a pick from Boston College?,"SELECT cfl_team FROM table_name_5 WHERE college = ""boston college""" Show institution names along with the number of proteins for each institution.,"SELECT T1.institution , count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id" What was the terrain for stage 10 of the tour?,"SELECT terrain FROM table_name_69 WHERE stage = ""10""" "What's the total failures among rockets that had more than 3 successes, type ariane 5 and more than 0 partial failures?","SELECT COUNT(failures) FROM table_name_92 WHERE successes > 3 AND type = ""ariane 5"" AND partial_failures > 0" What Date has the Region Europe and a Catalog of 74321 45851 2?,"SELECT date FROM table_name_33 WHERE region = ""europe"" AND catalog = ""74321 45851 2""" "List all the names of products with the special offer ""15"".",SELECT T2.Name FROM SpecialOfferProduct AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.SpecialOfferID = 15 Which continent is Anguilla in?,"SELECT Continent FROM country WHERE Name = ""Anguilla""" What is the Chinese name of the episode with 1.97 million Hong Kong viewers?,"SELECT chinese_title FROM table_24856090_1 WHERE hk_viewers = ""1.97 million""" What is the current income inequality for the country of Seychelles?,"SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = ""seychelles""" What's the Date for the Label of Bertelsmann Music group and has a Region of Europe?,"SELECT date FROM table_name_36 WHERE label = ""bertelsmann music group"" AND region = ""europe""" List all the disabled female students.,SELECT T1.name FROM disabled AS T1 INNER JOIN male AS T2 ON T1.name <> T2.name "Which Result has a Venue of home, and a Date of 3 october 1987?","SELECT result FROM table_name_54 WHERE venue = ""home"" AND date = ""3 october 1987""" "List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.","SELECT customer_name , customer_phone , customer_email FROM Customers ORDER BY date_became_customer" "Add a column for monthly rental to the table Addresses | i cannot understand your question, can you give more information? thanks | What's the highest monthly rental in the table Student Addresses?",select monthly_rental from Student_addresses order by monthly_rental desc limit 1 How many laps were ridden in the race that had a Time/Retired of +37.351?,"SELECT COUNT(laps) FROM table_name_24 WHERE time_retired = ""+37.351""" Show the different headquarters and number of companies at each headquarter.,"SELECT Headquarters , COUNT(*) FROM company GROUP BY Headquarters" What is the birth name of the person who voiced 'Helen Lovejoy?',SELECT DISTINCT T1.birth_name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.role = 'Helen Lovejoy'; "Which problems are reported by the staff with first name ""Christop""? Show the descriptions of the problems.","SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = ""Christop""" How many seats does the 6th Dail have?,"SELECT COUNT(seats) FROM table_name_72 WHERE dáil = ""6th""" "What is Date, when Athlete is ""Yussuf Alli""?","SELECT date FROM table_name_15 WHERE athlete = ""yussuf alli""" What are the formats for the songs with a resolution below 800?,SELECT T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 What was the undecided with Roy Barnes at 47%?,"SELECT undecided FROM table_name_22 WHERE roy_barnes = ""47%""" What was the result of the syracuse grand prix?,"SELECT result FROM table_name_80 WHERE event = ""syracuse grand prix""" How many cars worth greater than 40000 were from the USA?,SELECT COUNT(*) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'USA' AND T1.price > 40000 How many minority leaders have not been registered in Federal Election Commission data?,SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.title = 'Minority Leader' AND (T1.fec_id IS NULL OR T1.fec_id = '') Who was the trainer with Robert Courtney was owner?,"SELECT trainer FROM table_name_8 WHERE owner = ""robert courtney""" Which organization does student 313 belong to?,SELECT organ FROM enlist WHERE name = 'studenT113' "Who is the winner in the location of ljvm coliseum • winston-salem, nc?","SELECT winner FROM table_21330550_2 WHERE location = ""LJVM Coliseum • Winston-Salem, NC""" what is the number of attendance on june 24,"SELECT COUNT(attendance) FROM table_name_8 WHERE date = ""june 24""" What is the time for Adi Bichman?,"SELECT time FROM table_name_28 WHERE name = ""adi bichman""" What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.,"SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5" Which letter has an operator of VeriSign and an AS-number of AS26415?,"SELECT letter FROM table_name_45 WHERE operator = ""verisign"" AND as_number = ""as26415""" Find the city with the largest population that uses English.,"SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = ""English"" ORDER BY T1.Population DESC LIMIT 1" Awesome! Which of these hometowns is the most common?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT ( * ) DESC LIMIT 1 What is the average Singapore value with a London value less than 0?,SELECT AVG(singapore) FROM table_name_80 WHERE london < 0 What is the review length of user 11021 to business with business ID 3?,SELECT review_length FROM Reviews WHERE user_id = 11021 AND business_id = 3 List out the long name of countries using series code as DT.DOD.DSTC.CD,SELECT T1.LongName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'DT.DOD.DSTC.CD' How many entries are there for type for the cyrillic name other names is падина (slovak: padina)?,"SELECT COUNT(type) FROM table_2562572_43 WHERE cyrillic_name_other_names = ""Падина (Slovak: Padina)""" What is the weekly average number of fraud incidents that were reported in January 2018? Provide the description of the location where the majority of fraud incidents occurred in the said month.,"SELECT CAST(COUNT(T1.fbi_code_no) AS REAL) / 4 FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018'" WHAT IS THE HIGHEST LENGTH OF ROLL COASTER,select max ( Length ) from roller_coaster What is the zip code in which the average mean sea level pressure is the lowest?,SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1 "What is the rank of the country with more than 2 medals, and 2 gold medals?",SELECT rank FROM table_name_83 WHERE total > 2 AND gold = 2 Which Drawn is the highest one that has a Played smaller than 18?,SELECT MAX(drawn) FROM table_name_36 WHERE played < 18 "What is the title, phone number and hire date for the employee named Nancy Edwards?","SELECT title , phone , hire_date FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" Name the resolution for dish of 5270,"SELECT resolution FROM table_name_36 WHERE dish = ""5270""" What is the Location of the Mill Built in the Early 19th Century?,"SELECT location FROM table_name_50 WHERE built = ""early 19th century""" What are the names of the person that were not credited at the end of episode tt0629391?,SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.credited = 'false' AND T1.episode_id = 'tt0629391' Which wines are made of Red color grapes? | Here are the wine names for wine made of Red color grapes. | Out of them which have prices higher than 50?,"SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" What is the average age of employee in Adventure Works?,"SELECT AVG(STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', BirthDate)) FROM Employee" Who was the coach of the Pandas when their overall record was 20-6-2?,"SELECT coach FROM table_27069503_2 WHERE overall = ""20-6-2""" What office was law preservation ticket holder William E. Barron running for?,"SELECT office FROM table_name_51 WHERE law_preservation_ticket = ""william e. barron""" What is the Competition name of the competition that ended with a score of 2-1?,"SELECT competition FROM table_name_74 WHERE score = ""2-1""" Which employees do not destroy any document? Find their employee ids.,SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed Who was the developer of Call of Duty: Black Ops?,"SELECT developer_s_ FROM table_name_46 WHERE game = ""call of duty: black ops""" Which Location has a Date of 1931-02-02?,"SELECT location FROM table_name_44 WHERE date = ""1931-02-02""" List the categories of all active businesses that were not in Arizona.,SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T1.state NOT LIKE 'AZ' Name the least wins for 6 points,SELECT MIN(wins) FROM table_name_69 WHERE points = 6 Show all document ids and the number of paragraphs in each document. Order by document id.,"SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id" Show the name and phone of the customer without any mailshot.,"SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)" Find the names of the chip models that are not used by any phone with full accreditation type.,SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' "Which career win-loss record has a 1r in 2002, a 2r in 2000 and a 2r in 2001?","SELECT career_win_loss FROM table_name_75 WHERE 2002 = ""1r"" AND 2000 = ""2r"" AND 2001 = ""2r""" What is the date of the game where Collingwood was the home team?,"SELECT date FROM table_name_31 WHERE home_team = ""collingwood""" give me the age of all the people in the mangement,SELECT T1.age from head as T1 Join management as t2 on t1.head_id = t2.head_id What is them two (the two) when you and i is ngœbalngu?,"SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = ""ngœbalngu""" Which states are they from?,SELECT distinct state from WINE WHERE Score > 93 What are the names of the vendor with the second lowest minimum order quantity?,"SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.MaxOrderQty ASC LIMIT 1, 1" Who was the opponent at the game when the record was 4-5?,"SELECT opponent FROM table_name_69 WHERE record = ""4-5""" How many titles does the episode written by Joe Toplyn have?,"SELECT COUNT(title) FROM table_25716397_1 WHERE written_by = ""Joe Toplyn""" What's the name of the male candidate that has an oppose rate of 0.32?,"SELECT name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = ""M"" and oppose_rate = 0.32" Give the FBI code description of case No.JB134191.,SELECT description FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.case_number = 'JB134191' How many accounts are there in total?,SELECT count(*) FROM accounts "Which label has UK for its region, is on a CD, and is dated from 1986?","SELECT label FROM table_name_61 WHERE region = ""uk"" AND date = ""1986"" AND format = ""cd""" What town has 15 stops and a NB kind?,"SELECT town FROM table_name_82 WHERE stops = ""15"" AND kind = ""nb""" What race did Meo Constantini win at the circuit of monza ?,"SELECT name FROM table_name_36 WHERE winning_driver = ""meo constantini"" AND circuit = ""monza""" "How many dishes are there on the menu ""Zentral Theater Terrace""?",SELECT COUNT(*) FROM Menu WHERE name = 'Zentral Theater Terrace' Show the station name and number of trains in each station.,"SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id" "List the year, team and coach that with winning rate of above 75%.","SELECT DISTINCT T1.year, T2.name, T1.coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE CAST(T1.won AS REAL) / CAST((T1.won + T1.lost) AS REAL) > 0.75" What was the partnership in the season of 1928,"SELECT wicket_partnership FROM table_name_91 WHERE season = ""1928""" What date has aus by 382 runs as the result?,"SELECT date FROM table_name_25 WHERE result = ""aus by 382 runs""" What draft pick number was Andy Brereton?,"SELECT MIN(pick__number) FROM table_28059992_5 WHERE player = ""Andy Brereton""" "What is Score, when Competition is ""Euro 2004 Qualifier""?","SELECT score FROM table_name_73 WHERE competition = ""euro 2004 qualifier""" Name the common name for chironius multiventris septentrionalis,"SELECT common_name FROM table_1850282_7 WHERE species = ""Chironius multiventris septentrionalis""" What is the popularity of the professor who advises the highest number of students with the highest research ability?,"SELECT T2.popularity FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id GROUP BY T1.prof_id, T1.capability ORDER BY COUNT(T1.student_id) DESC, T1.capability DESC LIMIT 1" what is the name of Rob Dinning's marketing region?,"SELECT T1.marketing_region_name from marketing_regions as T1 join stores as T2 on T1.marketing_region_code = T2.marketing_region_code where T2.store_name = ""Rob Dinning""" When was the win/lose lose and the round a play-off?,"SELECT date FROM table_24099476_8 WHERE win_lose = ""Lose"" AND round = ""Play-off""" What are the titles of courses that are in the Statistics department but not the Psychology department?,SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' Find the first name and age of the students who are playing both Football and Lacrosse.,"SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = ""Football"" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = ""Lacrosse"")" How many methods does solution 1 have? And please tell me if solution 1 needs to be compiled.,"SELECT COUNT(T2.SolutionId) , CASE WHEN T1.WasCompiled = 0 THEN 'Needs' ELSE 'NoNeeds' END needToCompile FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 1" What is the visitor team of the game with Chicago as the home team?,"SELECT visitor FROM table_name_74 WHERE home = ""chicago""" What is the largest payment amount?,SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 What was the position of the player who played for New York Islanders NHL Team?,"SELECT position FROM table_2679061_9 WHERE nhl_team = ""New York Islanders""" Tell me the city of license for 0 106.9 fm,"SELECT city_of_license FROM table_name_1 WHERE frequency = ""0 106.9 fm""" How many train stations are there?,SELECT count(*) FROM station Can you please list all those events with their participants' names?,"SELECT T2.event_id, T1.Participant_Details FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID" "If the visiting team is Clemson, when was the time?","SELECT time FROM table_26842217_8 WHERE visiting_team = ""Clemson""" Where was the event Kage Kombat 16?,"SELECT location FROM table_name_76 WHERE event = ""kage kombat 16""" What are the types of every competition and in which countries are they located?,"SELECT Competition_type , Country FROM competition" I want to know the average crowd for away team of melbourne,"SELECT AVG(crowd) FROM table_name_43 WHERE away_team = ""melbourne""" What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081?,"SELECT qual_2 FROM table_name_31 WHERE team = ""dale coyne racing"" AND qual_1 = ""1:00.081""" What is the status of the building with less than 18 floors and later than 2013?,SELECT status FROM table_name_18 WHERE floors < 18 AND year > 2013 Which cities have regional population above 10000000?,SELECT city FROM city WHERE regional_population > 10000000 How many entries are in barony when the townland is derrigra?,"SELECT COUNT(barony) FROM table_30121075_1 WHERE townland = ""Derrigra""" What is the number of installments of the app with the highest total Sentiment polarity score?,SELECT T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App GROUP BY T1.App ORDER BY SUM(T2.Sentiment_Polarity) DESC LIMIT 1 "What are the codes of the airport found in Ankara, Turkey?","SELECT Code FROM Airports WHERE Description LIKE '%Ankara, Turkey%'" Which city is in Georgia?,"SELECT city FROM table_name_55 WHERE state = ""georgia""" Find the last and first name of students who are playing Football or Lacrosse.,"SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Football"" OR T1.SportName = ""Lacrosse""" What year featured lola motorsport as an entrant with over 0 points?,"SELECT AVG(year) FROM table_name_44 WHERE entrant = ""lola motorsport"" AND points > 0" "Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?",SELECT team FROM table_name_26 WHERE lost > 2 AND position < 7 AND drawn < 2 AND points = 22 Name the venue for collingwood home team,"SELECT venue FROM table_name_40 WHERE home_team = ""collingwood""" "What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?",SELECT SUM(total) FROM table_name_89 WHERE rank < 5 AND gold > 5 AND bronze > 8 what are all the overall with viewers (m) being 2.61,"SELECT overall FROM table_13110459_2 WHERE viewers__m_ = ""2.61""" What is the lowest wickets?,SELECT MIN(wickets) FROM table_27268238_5 Which Date has a Runner(s)-up of fred funk?,"SELECT date FROM table_name_55 WHERE runner_s__up = ""fred funk""" Give the alias of the cities with an Asian population of 7.,SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.asian_population = 7 What was the nationality of the ship named Toward?,"SELECT nationality FROM table_name_91 WHERE ship = ""toward""" What was the distance for the 11th position?,"SELECT distance FROM table_22265261_1 WHERE position = ""11th""" "What was the result on October 20, 2002?","SELECT result FROM table_name_87 WHERE date = ""october 20, 2002""" State the title and royalty percentage for title ID BU2075 between 10000 to 50000 range.,"SELECT T1.title, T2.royalty FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange > 10000 AND T2.hirange < 50000 AND T1.title_ID = 'BU2075'" What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?,SELECT MAX(other) FROM table_name_28 WHERE us_open_cup > 0 AND concacaf = 0 "What Per capita income has a Median family income of $50,755?","SELECT per_capita_income FROM table_name_38 WHERE median_family_income = ""$50,755""" How many sets of presenters are there for the version of the show named Celebrity Masterchef?,"SELECT COUNT(presenter_s_) FROM table_28190363_1 WHERE name = ""Celebrity MasterChef""" What are their ids?,SELECT wrestler_id FROM wrestler What country placed 3?,"SELECT country FROM table_name_16 WHERE place = ""3""" In how many locations was the episode with the Bailey family filmed?,"SELECT COUNT(location_s_) FROM table_19897294_10 WHERE family_families = ""The Bailey Family""" "What is the match id of the competition called ""1994 FIFA World Cup qualification""?","SELECT match_id FROM MATCH WHERE competition = ""1994 FIFA World Cup qualification""" What date was an episode with a run time of 24:30 broadcasted?,"SELECT broadcast_date FROM table_1579922_1 WHERE run_time = ""24:30""" "list together, the crime rate for Central Saanich and Campbell River counties | Would you like me to list the crime rates for counties with the name Central Saanich or Campbell River? | yes","SELECT Name, Crime_rate FROM county_public_safety WHERE Name = 'Campbell River' OR Name = 'Central Saanich'" What profit will the company gain if they sell 10 items of the product that has the lightest weight?,SELECT 10 * (ListPrice - StandardCost) FROM Product WHERE Weight IS NOT NULL ORDER BY Weight LIMIT 1 List all document ids and receipt dates of documents.,"SELECT document_id , receipt_date FROM Documents;" What dates are these apartments booked for?,"SELECT T2.apt_number, T1.booking_start_date, T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" Please list the names of customers who have total orders of over 3 in 2018.,"SELECT DISTINCT IIF(COUNT(T2.CustomerID) > 3, T2.`Customer Names`, NULL) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T1.OrderDate LIKE '%/%/18' GROUP BY T1._CustomerID HAVING COUNT(T2.CustomerID)" Find the balance of the checking account belonging to an owner whose name contains 'ee'.,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' Show the residences that have at least two players.,SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*) >= 2 What is the number of the apartment with the least number of bedrooms?,SELECT apt_number FROM Apartments ORDER BY bedroom_count LIMIT 1 What are the names and location of the shops in ascending alphabetical order of name.,"SELECT Shop_Name, LOCATION FROM shop ORDER BY Shop_Name" Which director has made the most movies?,"SELECT director, COUNT(name) FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1" What is the zip code of the hosue of the employee named Janessa Sawayn?,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" What is the frequency of the train named Garib nwaz exp?,"SELECT frequency__inbound_outbound_ FROM table_name_10 WHERE train_name = ""garib nwaz exp""" Indicate the name of the customers who have placed an order of 3 units in February 2018.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.`Order Quantity` = 3 AND T2.OrderDate LIKE '2/%/18' THEN T1.`Customer Names` END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) WHERE T IS NOT NULL "Find the start date of behavior incidents of students with the last name ""Fahey""?","SELECT T1.date_incident_start FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Fahey""" How many times was episode 20 of the Law and Order series nominated for the Primetime Emmy Awards in 1999?,SELECT COUNT(T2.award_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.year = 1999 AND T2.result = 'Nominee' AND T1.episode = 20 AND T2.organization = 'Primetime Emmy Awards' AND T1.series = 'Law and Order' How many labels of the restaurant have an unknown country?,SELECT COUNT(T1.label) FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'unknown' What are all the episodes with an episode run time of 24:01?,"SELECT episode FROM table_1429629_1 WHERE run_time = ""24:01""" What is the alderman's full name of the most crowded ward?,"SELECT alderman_name_suffix, alderman_first_name, alderman_last_name FROM Ward ORDER BY population DESC LIMIT 1" what is last name of the members in club?,SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid How many short cars are in the shape of hexagon?,SELECT COUNT(id) FROM cars WHERE shape = 'hexagon' AND len = 'short' Who is the Second when Michel Gribi is the lead?,"SELECT second FROM table_name_90 WHERE lead = ""michel gribi""" Which state has the highest number of clients who gave a 5-star review?,SELECT T2.state_abbrev FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 5 GROUP BY T2.state_abbrev ORDER BY COUNT(T2.state_abbrev) DESC LIMIT 1 How many customers are from California?,"SELECT count(*) FROM customers WHERE state = ""CA"";" "What is Directed By, when Episode # is 7?",SELECT directed_by FROM table_name_18 WHERE episode__number = 7 Which campus has the most faculties in year 2003?,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 What is the date when the opponent is the New England Patriots?,"SELECT date FROM table_18847736_2 WHERE opponent = ""New England Patriots""" Name the max game for attendance being 54774,SELECT MAX(game) FROM table_16710829_2 WHERE attendance = 54774 List the names of the disabled students who were absent from school for more than 5 months.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.month > 5 What are the names of tourist attraction that Alison visited but Rosalind did not visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Alison"" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Rosalind""" Which City or town has a Top division titles of 17,"SELECT city_or_town FROM table_name_92 WHERE top_division_titles = ""17""" List the songs with size more than 4MB ?,SELECT * FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id where file_size > 4 What is the average number of laps for grid 8?,SELECT AVG(laps) FROM table_name_69 WHERE grid = 8 What is the time/retired of the one with grid of 16?,SELECT time_retired FROM table_name_60 WHERE grid = 16 "Give all information regarding instructors, in order of salary from least to greatest.",SELECT * FROM instructor ORDER BY salary Which product received a review from Indianapolis on 2016/10/7?,SELECT T1.Product FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Indianapolis' AND T1.Date = '2016-10-07' Can you please provide the names of all courses?,SELECT course_name from Courses "Describe the birth country, height and person name who were not included in credit list with category of casting.","SELECT T1.birth_country, T1.height_meters, T1.name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Cast' AND T2.credited = 'false';" How many games were played in March 2010?,SELECT SUM(CASE WHEN Match_Date LIKE '2010-03%' THEN 1 ELSE 0 END) FROM `Match` "In what year, prior to 2009, was the Mercury Prize awarded?","SELECT result FROM table_name_50 WHERE year < 2009 AND award = ""mercury prize""" What is the number of points for the vehicle with a mp4-17d chassis earlier than 2003?,"SELECT SUM(points) FROM table_name_83 WHERE chassis = ""mp4-17d"" AND year < 2003" How many classes between senior and junior year for world history,"SELECT COUNT(senior__4th_year_) FROM table_13967239_2 WHERE junior__3rd_year_ = ""World History""" What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?,SELECT MAX(rank_by_average) FROM table_name_27 WHERE average = 25.3 AND number_of_dances > 10 "Who was the opponent in the championship in Johannesburg, South Africa?","SELECT opponent_in_the_final FROM table_name_63 WHERE championship = ""johannesburg, south africa""" How many total companies are there?,SELECT count ( * ) FROM operate_company What is the date the episode directed by rob bailey aired?,"SELECT original_air_date FROM table_26914076_3 WHERE directed_by = ""Rob Bailey""" Result of w 16-10* o.t. had what attendance?,"SELECT attendance FROM table_name_27 WHERE result = ""w 16-10* o.t.""" What surface was played on when Piet Norval was a partner?,"SELECT surface FROM table_name_24 WHERE partner = ""piet norval""" Which country has the lowest inflation rate?,SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Inflation IS NOT NULL ORDER BY T2.Inflation ASC LIMIT 1 What categories were Cleavant Derrick nominated for?,"SELECT Category FROM musical WHERE Nominee = ""Cleavant Derricks"" AND Result = ""Nominated""" Which documents have more than 1 draft copies? List document id and number of draft copies.,"SELECT document_id, COUNT(*) FROM Draft_Copies GROUP BY document_id HAVING COUNT(*) > 1" What was the final score of the game played on July 10?,"SELECT final_score FROM table_21796261_4 WHERE date = ""July 10""" Who set the record in the 500 metres event?,"SELECT name FROM table_name_14 WHERE event = ""500 metres""" What are names of stations that have average bike availability above 10 and are not located in San Jose city?,"SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = ""San Jose""" Which players won awards in both 1960 and 1961? Return their first names and last names.,"SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961" Which ingredient appeared the least in recipes?,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id GROUP BY T2.ingredient_id ORDER BY COUNT(T2.ingredient_id) ASC LIMIT 1 What was the location of the bout that lasted 5:00 and led to a 6-2-1 record?,"SELECT location FROM table_name_17 WHERE time = ""5:00"" AND record = ""6-2-1""" What are the names of tracks that belong to the genre Rock and are media type MPEG audio file?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" OR T3.name = ""MPEG audio file""" Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?,"SELECT player FROM table_name_24 WHERE college_junior_club_team__league_ = ""regina pats (whl)""" "Among professors with the highest teachability, how many of their students have high salary?",SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T1.salary = 'high' ORDER BY T2.teachingability DESC LIMIT 1 "What is the average Pct value when state champions is less than 1, MRC Championships is 10, and co-champions are greater than 4?",SELECT AVG(pct) FROM table_name_51 WHERE state_champions < 1 AND mrc_championships = 10 AND co_champions > 4 Name the game site with result of w 20-14,"SELECT game_site FROM table_name_88 WHERE result = ""w 20-14""" List the section_name in reversed lexicographical order.,SELECT section_name FROM Sections ORDER BY section_name DESC In which counties are there A&W Root Beer Restaurants?,SELECT DISTINCT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'a & w root beer' What are the ids of the students who registered for course 301 most recently?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1 What activities do Michael Goodrich and Gerald Masson participate in?,"SELECT actid FROM Faculty_Participates_in as T1 join Faculty as T2 on T1.Facid = T2.Facid where T2.Lname = ""Goodrich"" and T2.Fname = ""Michael"" UNION SELECT actid FROM Faculty_Participates_in as T1 join Faculty as T2 on T1.Facid = T2.Facid where T2.Lname = ""Masson"" and T2.Fname = ""Gerald""" Please list the ID of the movie that has been mostly rated by female users.,SELECT T1.movieid FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T2.u_gender = 'F' GROUP BY T1.movieid ORDER BY COUNT(T2.userid) DESC LIMIT 1 What are the ids of the students who either registered or attended a course?,SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance Show the names of all the activities Mark Giuliano participates in.,"SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" What Public Institution is in Black River Falls?,"SELECT institution FROM table_name_80 WHERE affiliation = ""public"" AND location = ""black river falls""" "Among the businesses within the postal code 94117, what is total number of businesses with a high risk category?",SELECT COUNT(DISTINCT T2.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.postal_code = 94117 AND T1.risk_category = 'High Risk' "Which Tie # that has an Attendance of 14 november 1998, and an Away team of hayes?","SELECT tie_no FROM table_name_62 WHERE attendance = ""14 november 1998"" AND away_team = ""hayes""" What is the total number of clubs that have less than 10 medals in total?,SELECT count(*) FROM club_rank WHERE Total < 10 What is the average draw number of an entrant with a time of 22:29?,"SELECT AVG(draw) FROM table_name_29 WHERE time = ""22:29""" How many matches were played in each year?,"SELECT count(*) , YEAR FROM matches GROUP BY YEAR" "What year was finish Toulouse, and stage was larger than 12?","SELECT SUM(year) FROM table_name_90 WHERE finish = ""toulouse"" AND stage > 12" What was the Timberwolves' record on April 3? ,"SELECT record FROM table_17058226_10 WHERE date = ""April 3""" "What is the iso code of ""Kyrgyz Republic""?",SELECT COUNTry_iso_code FROM COUNTry WHERE COUNTry_name = 'Kyrgyz Republic' how many customers are presented on the table,select count ( * ) from customers What is the name of episode 165?,SELECT title FROM table_2226817_9 WHERE no_in_series = 165 Name the venue for 19th date,"SELECT venue FROM table_17120964_5 WHERE date = ""19th""" "What were the points in the year when his Wins were 0, his Podiums were 0, and he drove in 4 races?","SELECT points FROM table_name_60 WHERE wins = ""0"" AND podiums = ""0"" AND races = ""4""" What is the description of the treatment type that costs the least money in total?,SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) LIMIT 1 "What is the name of the supplier that provides the part ""hot spring dodger dim light"" with the lowest supply cost?",SELECT T2.s_name FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_name = 'hot spring dodger dim light' ORDER BY T1.ps_supplycost LIMIT 1 Give me the name of player with the most points,SELECT name FROM player where Points = ( SELECT MAX ( Points ) FROM player ) Names the Sales Representative with the highest year to date sales.,"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM SalesPerson AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T1.SalesYTD DESC LIMIT 1" How many episodes were aired between October and November 2008?,SELECT COUNT(episode_id) FROM Episode WHERE air_date LIKE '2008-10%' OR air_date LIKE '2008-11%'; Show the party that has the most people.,SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1 "Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lacépède, 1804?","SELECT name FROM table_name_20 WHERE red_list > 0 AND species_authority = ""balaenoptera acutorostrata lacépède, 1804""" How many different cities are they from?,SELECT count(DISTINCT city) FROM Person What place is Fredrik Jacobson from?,"SELECT place FROM table_name_87 WHERE player = ""fredrik jacobson""" Which reviewer gives the biggest number of the highest rating?,SELECT ReviewerName FROM ProductReview WHERE Rating = ( SELECT Rating FROM ProductReview ORDER BY Rating DESC LIMIT 1 ) Which crytocurrency was traded in the highest value on 2016/1/8?,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2016-01-08' AND T2.volume_24h = ( SELECT MAX(volume_24h) FROM historical WHERE date = '2016-01-08' ) Count the number of different hometowns of these people.,SELECT count(DISTINCT Hometown) FROM people What are the names of all employees who are not certified to fly Boeing 737-800s?,"SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800""" "If collingwood was the Home team, what Date did they play?","SELECT date FROM table_name_71 WHERE home_team = ""collingwood""" Find the state and country of all cities with post code starting with 4.,"SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE ""4%""" How many grid numbers were there for the driver Giancarlo Fisichella?,"SELECT COUNT(grid) FROM table_name_3 WHERE driver = ""giancarlo fisichella""" "Among the independent countries, how many of them has a GDP per capita of over 5000?",SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T2.Country WHERE T2.Independence IS NOT NULL AND T3.GDP > 5000 "What is the sum of revenue in Hong Kong with a rank greater than 42, less than $3.46 billion in assets, and greater than $0.17 billion in profits?","SELECT SUM(revenue__bn) AS $_ FROM table_name_98 WHERE assets__bn$_ < 3.46 AND headquarters = ""hong kong"" AND profit__bn$_ > 0.17 AND rank > 42" Show the different countries and the number of members from each.,"SELECT Country, COUNT(*) FROM member GROUP BY Country" How many were penanced when the number with known sentences was 71 (1600–1773)?,"SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = ""71 (1600–1773)""" Which country timed at 7:03.91?,"SELECT country FROM table_name_55 WHERE time = ""7:03.91""" Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj,"SELECT COUNT(frequency_mhz) FROM table_name_22 WHERE erp_w = 1 AND call_sign = ""w215bj""" Who was the home team when FK kom were the guests?,"SELECT home FROM table_name_84 WHERE guest = ""fk kom""" "WHAT IS THE ORICON PEAK NUMBER WITH AN ATLANTIC LABEL, SUBHUMAN RACE, LATER THAN 1995?","SELECT COUNT(oricon_peak) FROM table_name_72 WHERE label = ""atlantic"" AND title = ""subhuman race"" AND date_of_release > 1995" Please name any three comedic works.,SELECT Title FROM works WHERE GenreType = 'comedy' LIMIT 3 How many master customer ID numbers are there?,SELECT count ( master_customer_id ) FROM Customer_Master_Index What is the lowest value of Points 2 when the goal average is 1.50?,"SELECT MIN(points_2) FROM table_17359181_1 WHERE goal_average_1 = ""1.50""" can you show me a list of product description?,SELECT product_description FROM Products_for_Hire Show the names of people who have been on the negative side of debates at least twice.,SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative = T2.People_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 Name results for herb wetanson,"SELECT results FROM table_27561503_2 WHERE gt_20_winning_team = ""Herb Wetanson""" Name the team for season 2010,SELECT team FROM table_24466191_1 WHERE season = 2010 What are the details of the tourist who had the earliest visit?,SELECT T1.Tourist_Details FROM Visitors AS T1 JOIN Visits AS T2 ON T1.Tourist_ID = T2.Tourist_ID ORDER BY Visit_Date LIMIT 1 What was the record on April 8?,"SELECT record FROM table_name_53 WHERE date = ""april 8""" Who is the player with a Jersey Number(s) greater than 30?,SELECT player FROM table_name_22 WHERE jersey_number_s_ > 30 WHich province has an IATA of WNZ?,"SELECT province FROM table_name_7 WHERE iata = ""wnz""" What was the record when TKO (punches and elbows) was the method?,"SELECT record FROM table_name_22 WHERE method = ""tko (punches and elbows)""" What are the names of cities in ascending alphabetical order?,SELECT Name FROM city ORDER BY Name ASC What is the average Silver with a Total that is smaller than 1?,SELECT AVG(silver) FROM table_name_97 WHERE total < 1 What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?,"SELECT SUM(reg_gp) FROM table_name_17 WHERE player = ""morgan clark"" AND rd__number < 7" "Show the name, phone, and payment method code for all customers in descending order of customer number.","SELECT customer_name , customer_phone , payment_method_code FROM customers ORDER BY customer_number DESC" what is the affiliation of the colors maroon and white? ,"SELECT affiliation FROM table_20887670_1 WHERE colors = ""Maroon and White""" What is the total number of fans or followers who received most likes of their comments in the business?,SELECT COUNT(T1.user_fans) FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id ORDER BY COUNT(T2.likes) DESC LIMIT 1 "What is Score, when Opponent is Atlanta Hawks?","SELECT score FROM table_name_44 WHERE opponent = ""atlanta hawks""" What is the id of the shortest trip?,SELECT id FROM trip ORDER BY duration LIMIT 1 "Give me the payment Id, the date and the amount for all the payments processed with Visa.","SELECT Payment_ID , Date_Payment_Made , Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'" What is the average number of people injured by all perpetrators?,SELECT avg(Injured) FROM perpetrator "What is the average room count of the apartments whose booking status code is ""Provisional""?","SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" What is the first name of the staff who did not give any lesson?,SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id Find the names of users who have more than one tweet.,SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1 "For a Team 1 of Al-Merrikh, what was the aggregate?","SELECT agg FROM table_name_47 WHERE team_1 = ""al-merrikh""" when there were 48 → 32 clubs?,"SELECT new_entries_this_round FROM table_name_82 WHERE clubs = ""48 → 32""" "Which score has an Opponent of @ athletics, and a Record of 76-57?","SELECT score FROM table_name_19 WHERE opponent = ""@ athletics"" AND record = ""76-57""" What is the inventory ID of the films starred by Russell Close with a duration between 110 to 150 minutes?,SELECT T4.inventory_id FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id WHERE T3.length BETWEEN 110 AND 150 AND T1.first_name = 'Russell' AND T1.last_name = 'Close' what is the overall number of chosen ideas where the person is scott parker,"SELECT COUNT(pick) FROM table_2840500_3 WHERE player = ""Scott Parker""" Who was the opponent when the attendance was exactly 16642?,SELECT opponent FROM table_20745685_1 WHERE attendance = 16642 How many points in 87/88 for racing de córdoba?,"SELECT 1987 AS _88 FROM table_14460085_3 WHERE team = ""Racing de Córdoba""" What is the total season number for episodes later than episode 30?,SELECT SUM(season) FROM table_name_67 WHERE episodes > 30 How much is the total goals for player with player ID aaltoan01 and how old is this person?,"SELECT SUM(T2.G), STRFTIME('%Y', CURRENT_TIMESTAMP) - T1.birthyear FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T1.playerID = 'aaltoan01' GROUP BY T1.birthyear" Please show the nominee who has been nominated the greatest number of times.,SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 what is languages for Prity and genre? | Do you mean the song with the artist name Prity? | yes,"SELECT languages, genre_is from song where artist_name = ""Prity""" Can you tell me where the history Doctorate's office is?,"SELECT prof_office from professor where dept_code = ""HIST"" and prof_high_degree = ""Ph.D.""" Which entrant had a Brabham BT10 chassis before 1965?,"SELECT entrant FROM table_name_12 WHERE year < 1965 AND chassis = ""brabham bt10""" I want the driver for ferrari who made Laps less than 26 and grids more than 9,"SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = ""ferrari""" Which poles were there for the 8th position?,"SELECT poles FROM table_name_47 WHERE position = ""8th""" How many medications are prescribed for each brand?,"SELECT count(*) , T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand" Can you tell me the Capacity that has the Position in 2005 of 8?,"SELECT capacity FROM table_name_88 WHERE position_in_2005 = ""8""" "WHAT IS THE DRAW FOR u ritmu ljubavi, POINTS LARGER THAN 87?","SELECT MAX(draw) FROM table_name_73 WHERE song = ""u ritmu ljubavi"" AND points > 87" "How many outcome have a score of 7–6 (9–7) , 6–3?","SELECT COUNT(outcome) FROM table_22834834_3 WHERE score_in_the_final = ""7–6 (9–7) , 6–3""" What is the number of nations that use English and Dutch?,"SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Dutch"")" "What is the week for the stadium that had an attendance of 22,286?","SELECT AVG(week) FROM table_name_26 WHERE attendance = ""22,286""" Name the country for pieroni,"SELECT country FROM table_name_46 WHERE name = ""pieroni""" what is the employee name of employee ID 30,SELECT Employee_Name from Employees where Employee_ID = 30 Name the 2005 for 2003 of a and 2011 of 3r,"SELECT 2005 FROM table_name_82 WHERE 2003 = ""a"" AND 2011 = ""3r""" Tell me the title for the production code less than 706 with series number more than 175,SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706 What is the postal code of the address 692 Joliet Street?,SELECT postal_code FROM address WHERE address = '692 Joliet Street' Name the number of bush % for elko,"SELECT COUNT(bush__percentage) FROM table_23014476_1 WHERE county = ""Elko""" Tell me the average spectators for 2006-06-21 and time more than 21,"SELECT AVG(spectators) FROM table_name_56 WHERE date = ""2006-06-21"" AND time_cet_ > 21" Which player's pick is 160?,SELECT player FROM table_name_48 WHERE pick = 160 "Of the customers who are from Canada, how many used Federal Shipping?",SELECT COUNT(T3.CustomerID) FROM Shippers AS T1 INNER JOIN Orders AS T2 ON T1.ShipperID = T2.ShipVia INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T2.ShipName = 'Federal Shipping' What is the most common sport name those students played?,"SELECT sportName,count ( * ) from sportsinfo where stuid in ( select stuid from student where age < 20 ) group by sportname order by count ( * ) desc limit 1" Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.,"SELECT Employees.employee_name, COUNT(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id, Circulation_History.draft_number, Circulation_History.copy_number ORDER BY COUNT(*) DESC LIMIT 1" What bridge is a pratt pony through truss tyoe bridge?,"SELECT name FROM table_name_4 WHERE type = ""pratt pony through truss""" seems like everybody will have some rain here.. then could you please let me know what is the lowest precipitation we have on the table?,SELECT min ( precipitation ) FROM weekly_weather What are the last names and ids of all drivers who had 11 pit stops and participated in more than 5 races?,"SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5" When the opposing team was SSC-R what was the statistic?,"SELECT statistic FROM table_name_79 WHERE opponent = ""ssc-r""" Where did v kent play?,"SELECT venue FROM table_name_4 WHERE opponents = ""v kent""" "How many total minutes has the Brooklyn-born player, known by the name of Superman, played during all of his NBA All-Star seasons?",SELECT SUM(T2.minutes) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Brooklyn' AND T1.nameNick LIKE '%Superman%' List the names of technicians who have not been assigned to repair machines.,SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment) "With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent?","SELECT opponent FROM table_name_69 WHERE surface = ""clay"" AND score = ""6–3, 2–6, [10–8]""" What is the Nationality of the Aracataca Ship?,"SELECT nationality FROM table_name_17 WHERE ship = ""aracataca""" "How many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck?",SELECT COUNT(*) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.weight < 1000 ORDER BY T1.model_year ASC LIMIT 1 Hello! Can you show me a list of all of the years for which there is data?,SELECT DISTINCT YEAR FROM degrees What is the birth date of Ty Conklin?,SELECT Birth_Place FROM people where Name = 'Ty Conklin' "What are their names, please?",select Name from member where level in ( SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count ( * ) DESC LIMIT 1 ) What is the try bonus when the tries against are 17? ,"SELECT try_bonus FROM table_17625749_3 WHERE tries_against = ""17""" How many businesses ID sell beer and wine?,SELECT COUNT(business_id) FROM Business_Attributes WHERE attribute_id = 1 AND attribute_value = 'beer_and_wine' How many people in total have attended games at Kardinia Park?,"SELECT SUM(crowd) FROM table_name_93 WHERE venue = ""kardinia park""" How many continents are there?,SELECT count(*) FROM CONTINENTS; What is the date of the game when the venue is Kardinia Park?,"SELECT date FROM table_name_13 WHERE venue = ""kardinia park""" What was the score of the replay at Millwall?,"SELECT score FROM table_name_23 WHERE tie_no = ""replay"" AND home_team = ""millwall""" What was the date of the home game for Colorado?,"SELECT date FROM table_name_67 WHERE home = ""colorado""" Thank you! Can you please list player ids for all of the left-footed players with heights between 180cm and 190cm?,"SELECT player_api_id FROM Player WHERE height > = 180 AND height < = 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = ""left""" "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.","SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'" How tall is the Torre Reforma?,"SELECT Stories FROM buildings where name = ""Torre Reforma""" What is the Parts-per example of 2×10 −6?,"SELECT parts_per_example FROM table_name_75 WHERE value_of_quantity = ""2×10 −6""" "When indianapolis, indiana is the location what is the institution?","SELECT institution FROM table_28211213_2 WHERE location = ""Indianapolis, Indiana""" What was the category of the award that John Frank Levey was nominated for after 1995?,"SELECT category FROM table_name_73 WHERE nominee_s_ = ""john frank levey"" AND year > 1995" Who was the opponent in week 3?,SELECT opponent FROM table_name_34 WHERE week = 3 "On episodes where guest 1 is Jim White, who was guest 3?","SELECT guest_3 FROM table_20466963_9 WHERE guest_1 = ""Jim White""" Which CBSAs have more than 10 zip codes?,SELECT T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA GROUP BY T1.CBSA HAVING COUNT(T2.zip_code) > 10 How many different degrees are offered?,SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs "If the episode is 6x03, what is the first broadcast total number?","SELECT COUNT(first_broadcast) FROM table_23575917_7 WHERE episode = ""6x03""" What is the amount difference between the bottles of root beer sold from Louisiana and Missouri?,SELECT ( SELECT COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T2.State = 'LA' AND T1.ContainerType = 'Bottle' ) - ( SELECT COUNT(T3.BrandID) FROM rootbeer AS T3 INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T4.State = 'MO' AND T3.ContainerType = 'Bottle' ) AS DIFFERENCE "What is the average assets in billions of the company Bank of America, which has less than 49.01 billions in sales?","SELECT AVG(assets__billion_) AS $_ FROM table_name_70 WHERE company = ""bank of america"" AND sales__billion_$_ < 49.01" "What is the highest average monthly rental? | what do you mean by ""highest average monthly rental"" | sorry, highest monthly rental",select max ( monthly_rental ) from student_addresses Where is Business Entity ID No.4 located at? Give the address down to street.,"SELECT AddressLine1, AddressLine2 FROM Address WHERE AddressID IN ( SELECT AddressID FROM BusinessEntityAddress WHERE BusinessEntityID = 4 )" What status is shown for Cadeby?,"SELECT status FROM table_name_17 WHERE name = ""cadeby""" "Show different builders of railways, along with the corresponding number of railways using each builder.","SELECT Builder , COUNT(*) FROM railway GROUP BY Builder" Which show director has the largest number of show times in total?,SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum ( T1.show_times_per_day ) DESC LIMIT 1 Show the number of document types.,SELECT COUNT(*) FROM Ref_document_types Which city held the game in Old Trafford before 1907 when the Opposition was sussex?,"SELECT city FROM table_name_49 WHERE year < 1907 AND venue = ""old trafford"" AND opposition = ""sussex""" Which police forces operate in both counties that are located in the East and in the West?,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East"" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West""" "What are the names of the students that have the incident type code ""VIOLENCE""? | Do you mean last name or first name? | Both, please.","SELECT T2.first_name , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T1.incident_type_code = ""VIOLENCE""" how may customer payment cash method,"SELECT count ( * ) from Customers where payment_method = ""Cash""" Name the model for specification of dl-066,"SELECT model FROM table_name_54 WHERE specification = ""dl-066""" What drug is administered more often to treat child attention deficit disorder?,SELECT DESCRIPTION FROM medications WHERE REASONDESCRIPTION = 'Child attention deficit disorder' GROUP BY DESCRIPTION ORDER BY COUNT(DESCRIPTION) DESC LIMIT 1 "Find the dates of assessment notes for students with first name ""Fanny"".","SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = ""Fanny""" Which address has members younger than 30 and older than 40?,SELECT address FROM member WHERE age < 30 INTERSECT SELECT address FROM member WHERE age > 40 What is the English title for season 6?,SELECT title__english_ FROM table_name_91 WHERE number_of_season = 6 What team has 59.372 for qual 1?,"SELECT team FROM table_name_37 WHERE qual_1 = ""59.372""" what is the age of Bob?,SELECT age FROM Person WHERE name = 'Bob' "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?","SELECT max ( product_price ) , min ( product_price ) FROM products GROUP BY product_type_code ORDER BY product_type_code" Name the pure tamil for enga athilae,"SELECT pure_tamil FROM table_name_97 WHERE how_other_iyers_say_it = ""enga athilae""" "Customer No.129301 made an order on 1996/7/27, what was the delivery time for the first part of that order?",SELECT JULIANDAY(T2.l_receiptdate) - JULIANDAY(T2.l_commitdate) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_custkey = '129301' AND T1.o_orderdate = '1996-07-27' What are the products that are supplied by Aux joyeux ecclsiastiques?,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Aux joyeux ecclsiastiques' Thank you for that! Can you filter that list to show only the rows that correspond to Fall of 2010?,SELECT * FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010 Away team Swindon Town had a Tie no listing of Replay with what as an Attendance?,"SELECT attendance FROM table_name_74 WHERE tie_no = ""replay"" AND away_team = ""swindon town""" What is the smallest number?,SELECT MIN(_number) FROM table_18424435_5 "Which Programming is on a channel less than 26.5, has a Video of 480i and a PSIP Short Name of jtv?","SELECT programming FROM table_name_89 WHERE channel < 26.5 AND video = ""480i"" AND psip_short_name = ""jtv""" "Which Name had a Games of 2008 beijing, and a Medal of gold?","SELECT name FROM table_name_37 WHERE games = ""2008 beijing"" AND medal = ""gold""" How many items did receive reviews?,select count ( distinct i_id ) from review Show the types of schools that have two schools.,SELECT TYPE FROM school GROUP BY TYPE HAVING count(*) = 2 What is the colonized date for the n/a charter range for appalachian state?,"SELECT colonized FROM table_name_61 WHERE charter_range = ""n/a"" AND school = ""appalachian state""" What are the average and maximum number of tickets bought in all visits?,"SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit" What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?,"SELECT COUNT(laps) FROM table_name_39 WHERE time = ""collision"" AND team = ""switzerland"" AND grid < 11" "Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description?","SELECT record_description FROM table_name_96 WHERE achievement = ""m (ft)"" AND type = ""mi-10r"" AND pilot = ""v.p. koloshenko"" AND date = ""28 may 1965""" Name the least amount of int yards,SELECT MIN(int) AS yards FROM table_15581223_8 Find the estimated inflation rate that was used to adjust the 1995 box office revenue for Disney's films.,"SELECT SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) / SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995' GROUP BY SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995'" "In countries where there is more than one ethnic group, name the ethnic group with the greatest presence in each country and the country to which it corresponds.","SELECT Country, Name FROM ethnicGroup AS T1 WHERE Percentage < 100 AND Percentage = ( SELECT MAX(Percentage) FROM ethnicGroup AS T2 WHERE T1.Country = T2.Country )" Give the title and credits for the course that is taught in the classroom with the greatest capacity.,"SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)" Which countries do not have a stadium that was opened after 2006?,SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006 What is theW-L of the tournament listed as A for 1976?,"SELECT career_w_l FROM table_name_82 WHERE 1976 = ""a""" Name the hebrew for tisʕ-,"SELECT hebrew FROM table_26919_6 WHERE arabic = ""tisʕ-""" What are the three journals that the papers written by Andrew Cain were published in? Please provide your answer with the full name of each journal.,SELECT T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T2.Name = 'Andrew Cain' Hello! Can you show me the top 3 school with the largest enrollment?,SELECT * FROM university ORDER BY enrollment DESC LIMIT 3 How many gas station are opened between 2000 and 2005?,SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005 How many drivers drove 300 laps at average speed of 103.594?,"SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = ""300"" AND average_speed__mph_ = ""103.594""" what is the 1st round when team 1 is stade lavallois (d2)?,"SELECT 1 AS st_round FROM table_name_56 WHERE team_1 = ""stade lavallois (d2)""" Show the statuses of roller coasters longer than 3300 or higher than 100.,SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100 Show the types of schools that have two schools.,SELECT TYPE FROM school GROUP BY TYPE HAVING count(*) = 2 What was the score for a game with the odds of p + 2 after 1847?,"SELECT score FROM table_name_36 WHERE odds = ""p + 2"" AND date > 1847" Name the most pos for west bromwich albion club,"SELECT MAX(pos) FROM table_226619_12 WHERE club = ""West Bromwich Albion""" "Return the names of countries that have players that play the Forward position, as well as players who play the Defender position.","SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Forward"" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" For player is jamal mayers mention the minimum pick,"SELECT MIN(pick) FROM table_2781227_4 WHERE player = ""Jamal Mayers""" "Show the names of pilots from team ""Bradley"" or ""Fordham"".","SELECT Pilot_name FROM pilot WHERE Team = ""Bradley"" OR Team = ""Fordham""" What is the release year of the game that gained 350000 sales in North America?,SELECT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 = 350000 AND T1.region_name = 'North America' Provide the population of Arecibo in 2020.,SELECT SUM(T2.population_2020) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'ARECIBO' What day was the visitor Chicago Black Hawks and the record 0-2?,"SELECT date FROM table_name_16 WHERE visitor = ""chicago black hawks"" AND record = ""0-2""" What are the names of all the clubs starting with the oldest?,SELECT name FROM club ORDER BY Start_year ASC "Return the minimum, maximum, and average seating across all tracks.","SELECT min(seating) , max(seating) , avg(seating) FROM track" Please list the IDs of all the faculty employees who teaches a basic or medium undergraduate course.,SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id INNER JOIN person AS T3 ON T3.p_id = T2.p_id WHERE T1.courseLevel = 'Level_300' AND T3.hasPosition = 'Faculty_eme' What are the paragraph texts for the document with the name 'Customer reviews'?,"SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = ""Customer reviews""" Name the score for 21 may 2011,"SELECT score FROM table_name_35 WHERE date = ""21 may 2011""" When did Bitcoin reach its highest price on 2013/4/29?,SELECT T2.time_high FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T1.name = 'Bitcoin' How many student are involved in any kind of accident?,SELECT count ( * ) FROM STUDENTS WHERE student_id IN ( SELECT student_id FROM Behavior_Incident ) What was the report of the Belgian Grand Prix?,"SELECT report FROM table_1132600_3 WHERE grand_prix = ""Belgian grand_prix""" Tell the weight of Dagfinn Sverre Aarskog.,SELECT weight FROM person WHERE full_name = 'Dagfinn Sverre Aarskog' include the first and last name of customers of this address in the table,"SELECT T1.Address,T1.FirstName,T1.LastName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Germany""" Who did the Cubs play when they had a record of 4-4?,"SELECT opponent FROM table_name_56 WHERE record = ""4-4""" "In Act 1 Scene 2 of the Twelfth Night, what is the total number of of lines said by Viola?",SELECT COUNT(T4.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T2.Act = 1 AND T2.Scene = 2 AND T4.id = 1238 AND T4.CharName = 'Viola' AND T1.Title = 'Twelfth Night' What are the high points that have 42 as the game?,SELECT high_points FROM table_name_65 WHERE game = 42 "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?","SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb, Becker and Wyman'" Which total number of Crowd has a Home team of melbourne?,"SELECT COUNT(crowd) FROM table_name_79 WHERE home_team = ""melbourne""" Which airport has an ICAO of RCKH?,"SELECT airport FROM table_name_81 WHERE icao = ""rckh""" "Name the date that had a score of 7–6(4), 6–1","SELECT date FROM table_name_98 WHERE score = ""7–6(4), 6–1""" How many cities are there that have more than 3 airports?,SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3) How many millions of U.S viewers watched the episode written by Liz Feldman? ,"SELECT us_viewers__million_ FROM table_29920800_1 WHERE written_by = ""Liz Feldman""" Name the number of judges for dré steemans ann van elsen,"SELECT COUNT(judges) FROM table_16884579_1 WHERE host_s_ = ""Dré Steemans Ann Van Elsen""" Find the number of settlements each claim corresponds to. Show the number together with the claim id.,"SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id" What is the maximum number of matches in a game?,SELECT MAX(matches) FROM table_28547332_4 What is the result of the game on May 14 with Philadelphia as the road team?,"SELECT result FROM table_name_48 WHERE road_team = ""philadelphia"" AND date = ""may 14""" "What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?","SELECT MIN(laps) FROM table_name_44 WHERE constructor = ""minardi - motori moderni"" AND grid < 18" Return the name of the team and the acc during the regular season for the school that was founded the earliest.,"SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1" Which browsers are compatible with firefox?,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 = 'Firefox' "Which Result has the Event Strikeforce and the Method, Ko (spinning back fist)?","SELECT result FROM table_name_15 WHERE event = ""strikeforce"" AND method = ""ko (spinning back fist)""" What's the power when the frequency is 101.5mhz?,"SELECT power__kw_ FROM table_name_26 WHERE frequency = ""101.5mhz""" How many goals when the score is 3-0 in the euro 2012 q?,"SELECT COUNT(goal) FROM table_name_61 WHERE competition = ""euro 2012 q"" AND score = ""3-0""" How many different games had David Lee (13) with High rebounds?,"SELECT COUNT(score) FROM table_17060277_6 WHERE high_rebounds = ""David Lee (13)""" What were the results of the womens u20 when the mens 45 was Sunwest Razorbacks def Northern Eagles?,"SELECT womens_u20 FROM table_16724844_1 WHERE mens_45 = ""SunWest Razorbacks def Northern Eagles""" Which builder has the least trains?,SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID order by count ( * ) asc limit 1 What score had a record of 17–18–6?,"SELECT score FROM table_name_31 WHERE record = ""17–18–6""" "What is all the information about employees with D or S in their first name, ordered by salary descending?",SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC What was the win-loss record for the player from Switzerland? ,"SELECT win_loss FROM table_25820786_2 WHERE nationality = ""Switzerland""" Name the production code for viewers for 1.69,"SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = ""1.69""" Show ids for all employees with at least 100000 salary.,SELECT eid FROM Employee WHERE salary > 100000 Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.,"SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30" How many Orange Cap awards were won by CH Gayle?,SELECT SUM(CASE WHEN T1.Player_Name = 'CH Gayle' THEN 1 ELSE 0 END) AS cnt FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Orange_Cap Return the name of the party with the most members.,SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 Show the most common apartment type code.,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 "Among the movies directed by Wolfgang Reitherman, how many of them are Comedies?",SELECT COUNT(T3.name) FROM ( SELECT T2.name FROM `movies_total_gross` AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' AND T1.genre = 'Comedy' GROUP BY T2.name ) T3 Which Horse finished in 8?,"SELECT horse FROM table_name_54 WHERE finished = ""8""" Indicate the number of authors affiliated with the organization named 'Arizona State University'.,SELECT COUNT(Name) FROM Author WHERE Affiliation = 'Arizona State University' What is the to par with the winning score of 74-67-71-73=285?,SELECT to_par FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285 What won best pc intro when my kingdom (haujobb & scoopex) won best amiga demo?,"SELECT pc_intro FROM table_2490289_1 WHERE amiga_demo = ""My Kingdom (Haujobb & Scoopex)""" Which city has the highest number of businesses in the food industry whose number of reviews is high?,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.review_count LIKE 'High' AND T3.category_name LIKE 'Food' GROUP BY T1.city What is the highest evening gown number in North Carolina with less than 9.214 interviews?,"SELECT MAX(evening_gown) FROM table_name_94 WHERE state = ""north carolina"" AND interview < 9.214" "Which ICAO has a Province of heilongjiang, and a IATA of jmu?","SELECT icao FROM table_name_34 WHERE province = ""heilongjiang"" AND iata = ""jmu""" What is the school's nickname?,SELECT nickname FROM university ORDER BY enrollment DESC LIMIT 1 How many cities in each district have a population that is above the average population across all cities?,"SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District" Which country has at most 3 stadiums listed?,SELECT country FROM stadium GROUP BY country HAVING count(*) <= 3 "How many medals under total when silver is less than 2, gold is 3, and bronze is less than 0?",SELECT SUM(total) FROM table_name_53 WHERE silver < 2 AND gold = 3 AND bronze < 0 What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran?,"SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = ""chevrolet silverado"" AND team = ""rbr enterprises""" "Among the movie in which Dariusz Wolski works as the director of photography, what is the title of the one with the highest average vote?",SELECT T1.title FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography' ORDER BY T1.vote_average DESC LIMIT 1 Please show the most common type of ships.,SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 What year was the house named gongola made?,"SELECT founded FROM table_11464746_1 WHERE house_name = ""Gongola""" What couple averaged 21.0?,"SELECT couple FROM table_25557556_5 WHERE average = ""21.0""" Who is the publisher of the game 2002 FIFA World Cup?,SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T3.game_name = '2002 FIFA World Cup' What were their birth dates?,"SELECT date_of_birth FROM Guests where gender_code = ""Unknown""" "Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?","SELECT AVG(wins) FROM table_name_59 WHERE club = ""barcelona atlètic"" AND goals_for > 56" When was the earliest year that Guillermo Vilas was the runner-up?,"SELECT MIN(year) FROM table_name_9 WHERE runner_up = ""guillermo vilas""" What is the total sum of points for songs performed by Partners in Crime?,"SELECT SUM(points) FROM table_name_16 WHERE performer = ""partners in crime""" Find the name of the user who gives the most reviews.,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1 Please just list the asset model of those assets.,Select asset_model from Assets where asset_id not in ( SELECT asset_id from Fault_Log ) "Please list the IDs of all the menus in which the dish ""Clear green turtle"" had appeared.",SELECT T1.menu_id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Clear green turtle' What is the date for the episode performed by Sue Manchester?,"SELECT first_aired FROM table_191105_4 WHERE performed_by = ""Sue Manchester""" How many high schools have storm mascots?,"SELECT high_school FROM table_22058547_1 WHERE mascot = ""Storm""" WHo Became Duchess that has a Death of 26 october 1614?,"SELECT became_duchess FROM table_name_84 WHERE death = ""26 october 1614""" what is the manner of departure when the date of vacancy is 15 september 2008?,"SELECT manner_of_departure FROM table_name_14 WHERE date_of_vacancy = ""15 september 2008""" What is the number of Apps for Internazionale Club of Brazil?,"SELECT COUNT(apps) FROM table_name_69 WHERE national_team = ""brazil"" AND club = ""internazionale""" what was the destination of flight 99 ?,SELECT destination FROM Flight WHERE flno = 99 "How many drivers are there, total?",SELECT count ( * ) FROM drivers "WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?","SELECT AVG(squad_no) FROM table_name_8 WHERE name = ""martin smith"" AND league_goals < 17" Which batter has a uni# of 31?,SELECT bats FROM table_name_17 WHERE uni_number = 31 Who was the coach for episode 15?,SELECT coach FROM table_2140071_8 WHERE episode = 15 What are the names of the product that has the lowest rating?,SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Rating = ( SELECT Rating FROM ProductReview ORDER BY Rating ASC LIMIT 1 ) Can you list all songs that were released in March? | Do you mean the songs name? | Yes,"SELECT T2.song_name FROM song AS T2 WHERE T2.releasedate LIKE ""%Mar%""" Which Pendle has a Burnley smaller than 0?,SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0 Name the mountains classification for rabobank and damiano cunego,"SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = ""Rabobank"" AND general_classification = ""Damiano Cunego""" Who wrote the episode that 2.93 million viewers?,"SELECT written_by FROM table_28019988_2 WHERE us_viewers__million_ = ""2.93""" What is the combined consumption of the engine with the code k9k 796?,"SELECT combined_consumption FROM table_name_85 WHERE code = ""k9k 796""" Which E. coli has a substrate of uracil?,"SELECT e_coli FROM table_name_22 WHERE substrates = ""uracil""" What was the rank of operator whose technology is CDMA EVDO?,"SELECT MIN(rank) FROM table_23801721_1 WHERE technology = ""CDMA EVDO""" List the names of all the distinct customers who bought a keyboard.,"SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = ""keyboard""" Who wrote the episode with the production code of 3t7255?,"SELECT written_by FROM table_27116696_1 WHERE production_code = ""3T7255""" What is the name of the war where the Ottoman sultan was Selim I?,"SELECT name_of_the_war FROM table_24706337_1 WHERE ottoman_sultan = ""Selim I""" List the name and the number of stations for all the cities that have at least 15 stations.,"SELECT city , COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15" "What was the class for Appleton, Wisconsin?","SELECT class FROM table_name_96 WHERE city_of_license = ""appleton, wisconsin""" Who were the candidates in the election where the incumbent is George M. Grant?,"SELECT candidates FROM table_1341973_3 WHERE incumbent = ""George M. Grant""" Which circuit did Michael Andretti win?,"SELECT circuit FROM table_name_66 WHERE winning_driver = ""michael andretti""" What are the platform IDs of records released in 2006?,SELECT DISTINCT T.platform_id FROM game_platform AS T WHERE T.release_year = 2006 "What is Moving From, when Ends is before 2011?",SELECT moving_from FROM table_name_65 WHERE ends < 2011 How many students from SMC are unemployed?,SELECT T2.name FROM enrolled AS T1 INNER JOIN unemployed AS T2 ON T1.`name` = T2.`name` WHERE T1.school = 'smc' List the full address of all the American restaurants with a review of 4 or more?,"SELECT T1.street_num, T1.street_name, T1.city FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.review >= 4" What is the age of student Linda Smith?,"SELECT Age FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith"";" Name the team for launceston,"SELECT team FROM table_name_60 WHERE race_title = ""launceston""" What is the nationality of the athlete with a time of 2:12.56?,"SELECT nationality FROM table_name_80 WHERE time = ""2:12.56""" How many silvers have more than 2 golds?,SELECT COUNT(silver) FROM table_name_67 WHERE gold > 2 What are the first names of these students?,SELECT Fname FROM STUDENT How many wins does he have?,SELECT MAX(wins) FROM table_2169966_1 When was the queensland reds lock player born?,"SELECT date_of_birth__age_ FROM table_name_7 WHERE position = ""lock"" AND club_province = ""queensland reds""" "Bldr of mcw&f, and a Year smaller than 1927, and a LT Nos of 9820-9821 has what type?","SELECT type FROM table_name_19 WHERE bldr = ""mcw&f"" AND year < 1927 AND lt_nos = ""9820-9821""" What year is the player whose number is 31?,SELECT year FROM table_29418619_1 WHERE _number = 31 Can any one of them be accessed by bus?,"SELECT T1.Shop_ID FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""bus""" What is the highest enrollment for rochester community school?,"SELECT MAX(enrollment) FROM table_name_66 WHERE school = ""rochester community""" "What is the country of player lee trevino, who has a to par of +2?","SELECT country FROM table_name_32 WHERE to_par = ""+2"" AND player = ""lee trevino""" Show all book categories and the number of books in each category.,"SELECT category, COUNT(*) FROM book_club GROUP BY category" "Which Goals For has a Lost of 12, and a Played larger than 34?",SELECT MAX(goals_for) FROM table_name_28 WHERE lost = 12 AND played > 34 I want the result for week larger than 10 for opponent of new england patriots,"SELECT result FROM table_name_90 WHERE week > 10 AND opponent = ""new england patriots""" What is the lane number of the swimmer with a time of 55.69?,SELECT lane FROM table_name_21 WHERE time = 55.69 Show the names of players and names of their coaches.,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID" What is the Speed at Lake Mead?,"SELECT speed FROM table_name_80 WHERE location = ""lake mead""" How old is SC Ganguly in 2008?,"SELECT 2008 - strftime('%Y', DOB) FROM Player WHERE Player_Name = 'SC Ganguly'" Find the list of cities that no customer is living in.,SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) which team has a record of 13-18?,"SELECT opponent FROM table_name_42 WHERE record = ""13-18""" What is the total number of medals by the Czech republic?,"SELECT total FROM table_name_70 WHERE nation = ""czech republic""" What is the Date with a Score that is 46-77?,"SELECT date FROM table_name_65 WHERE score = ""46-77""" What are the names of enzymes who does not produce 'Heme'?,SELECT name FROM enzyme WHERE product != 'Heme' "As of 12/31/2011, how long has the employee assigned to all pending for approval papers been working in the company from the date he was hired?","SELECT 2011 - STRFTIME('%Y', T2.HireDate) FROM Document AS T1 INNER JOIN Employee AS T2 ON T1.Owner = T2.BusinessEntityID WHERE T1.Status = 1" display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.,"SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = ""Clara"")" "In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants?","SELECT SUM(election) FROM table_name_64 WHERE mayor = ""adalberto mosaner"" AND inhabitants < 16 OFFSET 170" List the active business ID and its stars of the businesses fall under the category of Pets.,"SELECT T1.business_id, T1.stars FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T3.category_name LIKE 'Pets'" Find the number of rooms with king bed for each decor type.,"SELECT decor , count(*) FROM Rooms WHERE bedType = ""King"" GROUP BY decor;" Show the name of cities in the county that has the largest number of police officers.,SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1) What is the tallest height?,select max ( Height ) from people "What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze?","SELECT COUNT(silver) FROM table_name_81 WHERE gold > 0 AND rank = ""14"" AND bronze > 4" Name the total number of club worl cup for djibril cisse,"SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = ""Djibril Cisse""" What's the tail number of the airplane involved in the accident described as crashed?,"SELECT tail_number FROM table_229917_2 WHERE brief_description = ""Crashed""" How many to pars were won in 1993?,"SELECT COUNT(to_par) FROM table_name_86 WHERE year_s__won = ""1993""" In how many categories were podcast reviews created in the last six months of 2016? List them.,SELECT COUNT(DISTINCT T1.category) FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at BETWEEN '2016-07-01T00:00:00-07:00' AND '2016-12-31T23:59:59-07:00' What is the result of game played on 10-05-2012?,"SELECT result FROM table_name_23 WHERE date = ""10-05-2012""" What is the count of singers?,SELECT count(*) FROM singer What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?,"SELECT SUM(losses) FROM table_name_75 WHERE portland_dfl = ""westerns"" AND draws > 1" Which circuit was the atcc round 7 at?,"SELECT circuit FROM table_name_71 WHERE series = ""atcc round 7""" What is the name of the player from club Circolo Nautico Posillipo and a position of D?,"SELECT name FROM table_name_95 WHERE pos = ""d"" AND club = ""circolo nautico posillipo""" On image no. 99 identify the percentage of objects that are described as white.,SELECT CAST(SUM(CASE WHEN T2.ATT_CLASS = 'white' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(OBJ_SAMPLE_ID) FROM IMG_OBJ_ATT AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 99 What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?,"SELECT serbian_league_east FROM table_12283621_6 WHERE serbian_league_belgrade = ""Kolubara""" How many courses have more than 2 credits?,SELECT count(*) FROM COURSE WHERE Credits > 2 What date did the away team Mansfield Town play?,"SELECT date FROM table_name_56 WHERE away_team = ""mansfield town""" What is the maximum accelerate for all the different cylinders?,"SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;" What is the name of the state that Racine belongs to?,SELECT T2.Name FROM Address AS T1 INNER JOIN StateProvince AS T2 ON T1.StateProvinceID = T2.StateProvinceID WHERE T1.City = 'Racine' "How many games have a February larger than 11, and a Record of 23-7-8?","SELECT COUNT(game) FROM table_name_92 WHERE february > 11 AND record = ""23-7-8""" "What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?",SELECT COUNT(top_25) FROM table_name_23 WHERE wins = 0 AND cuts_made = 1 AND events > 5 Show the flight number of flights with three lowest distances.,SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3 Who was the visitor for the April 17 game?,"SELECT visitor FROM table_name_93 WHERE date = ""april 17""" "For the document Control Assistant who was born on 1975/12/25, how many private documents did he/she have?",SELECT COUNT(T2.BusinessEntityID) FROM Document AS T1 INNER JOIN Employee AS T2 ON T1.Owner = T2.BusinessEntityID WHERE T2.JobTitle = 'Document Control Assistant' AND T2.BirthDate = '1975-12-25' AND T1.DocumentSummary IS NULL "What is the Country of the Player with a Score of 70-72-70-73=285 and Money ( $ ) of 5,500?","SELECT country FROM table_name_10 WHERE money___$__ = ""5,500"" AND score = 70 - 72 - 70 - 73 = 285" Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?,SELECT margin_of_victory FROM table_name_71 WHERE winning_score = –10(69 - 68 - 74 - 67 = 278) Give the name of the customer who made an order with Clerk#000000803 on 1997/12/10.,SELECT T2.c_name FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_orderdate = '1997-12-10' AND T1.o_clerk = 'Clerk#000000803' Show distinct first and last names for all customers with an account.,"SELECT DISTINCT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What was the first game played on February 28?,"SELECT MIN(game) FROM table_name_95 WHERE date = ""february 28""" "Which To Par has a Score smaller than 70, and a Player of matt kowal?","SELECT to_par FROM table_name_33 WHERE score < 70 AND player = ""matt kowal""" "List down the sales, profit, and subcategories of the product ordered in the order ID US-2011-126571 in the East region.","SELECT T1.Sales, T1.Profit, T2.`Sub-Category` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'US-2011-126571' AND T2.Region = 'East'" What are all the policy types of the customer that has the most policies listed?,SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ( SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count ( * ) DESC LIMIT 1 ) What is the average price per car produced in Japan?,SELECT AVG(T1.price) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Japan' Find distinct cities of address of students?,SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id What is the maximum purse prize of the Northeast Delta Dental International Championship?,SELECT MAX(purse__) AS $_ FROM table_15315276_1 What is the frequency for the station with the branding of 94dot3 home radio Palawan?,"SELECT frequency FROM table_name_74 WHERE branding = ""94dot3 home radio palawan""" State the weight of shipments transported by Peterbilt.,SELECT T2.weight FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE make = 'Peterbilt' What is the minimum dew point?,SELECT MIN(dewpoint) FROM weather What is the number in the season of the episode with a production code of 2-05?,"SELECT COUNT(no_in_season) FROM table_234886_3 WHERE prod_code = ""2-05""" Which education App has the worst rating and state the translated review if available.,"SELECT T1.App, T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Category = 'EDUCATION' GROUP BY T1.App, T2.Translated_Review ORDER BY T1.Rating ASC LIMIT 1" who is playing for when the opponent is deportes savio and the date is 2010-03-11?,"SELECT playing_for FROM table_name_95 WHERE opponent = ""deportes savio"" AND date = ""2010-03-11""" Name the outcome for dunlop world challenge,"SELECT outcome FROM table_name_58 WHERE tournament = ""dunlop world challenge""" How many penalty minutes did the Montreal Canadiens have in the 1918's Stanley Cup Finals?,SELECT T2.PIM FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens' AND T1.year = 1918 What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?,SELECT SUM(runs) FROM table_name_65 WHERE ovrs < 2 AND wkts > 0 what's the night rank with viewers (m) of 6.63,"SELECT night_rank FROM table_11354111_3 WHERE viewers__m_ = ""6.63""" what is the highest money ($) for bernhard langer?,"SELECT MAX(money___) AS $__ FROM table_name_22 WHERE player = ""bernhard langer""" Name the number of date for dallas,"SELECT COUNT(date) FROM table_22893781_6 WHERE team = ""Dallas""" HOW MANY COUNTRIES DO NOT HAVE AN ROLLER COASTER LONGER THAN 3000?,SELECT count ( * ) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH > 3000 ) Who was the original artist when the theme was 1980s?,"SELECT original_artist FROM table_15796072_1 WHERE theme = ""1980s""" What is the maximum total wins he had for any year? ,SELECT MAX(total_wins) FROM table_22839669_12 Find the number of students taught by TARRING LEIA.,"SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""TARRING"" AND T2.lastname = ""LEIA""" Give the class of races that is most common.,SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1 Who was the winner when the runner-up was Chemnitzer FC II?,"SELECT winners FROM table_name_86 WHERE runners_up = ""chemnitzer fc ii""" What are the names of students who have taken the prerequisite for the course International Finance?,SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance') Return the primary conference of the school with the lowest acc percentage score.,SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 What are the names of the tracks that are Rock or Jazz songs?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"" OR T1.name = ""Jazz""" What place did the Sake Tuyas come in when the Denim Demons were 4th?,"SELECT sake_tuyas FROM table_29619494_2 WHERE denim_demons = ""4th""" "What is the highest birth/2013 when the death/2012 is 14,1?","SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = ""14,1""" Name the industry for revenue being 2.1,"SELECT industry FROM table_19112_3 WHERE revenue__billion_$_ = ""2.1""" "What is the full name of the customer who gave a 5-star rating and commented ""The quintessential dessert root beer. No ice cream required"" on his review?","SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.StarRating = 5 AND T2.Review = 'The quintessential dessert root beer. No ice cream required.'" Awesome! Can you show me a list that contains both the colleges in LA and those located in AZ?,"SELECT cName FROM College WHERE state = ""LA"" or state = ""AZ""" How many orders have Margaret Peacock placed?,SELECT COUNT(T2.EmployeeID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Margaret' AND T1.LastName = 'Peacock' What is the Player in T5 Place?,"SELECT player FROM table_name_71 WHERE place = ""t5""" How many members are there total?,SELECT count ( * ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid What was the third place of the performance in 2006 with the host Japan?,"SELECT third_place FROM table_name_79 WHERE host = ""japan"" AND season < 2006" What are the daily hire costs for the products with substring 'Book' in its name?,SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%' What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?,"SELECT college FROM table_10812938_3 WHERE cfl_team = ""Edmonton Eskimos (via Calgary)""" What is the grid value which has Time/Retired value of accident?,"SELECT grid FROM table_name_57 WHERE time_retired = ""accident""" Return the average money requested across all entrepreneurs.,SELECT avg(Money_Requested) FROM entrepreneur Show the names of employees with role name Editor.,"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" what's the total number of final epbeingode count with character being rick stetler,"SELECT COUNT(final_episode) AS Count FROM table_11210576_4 WHERE character = ""Rick Stetler""" What was #7 BMW's speed?,"SELECT speed FROM table_name_27 WHERE team = ""bmw"" AND rank = 7" What are the open dates and years for the shop named Apple?,"SELECT Open_Date , Open_Year FROM shop WHERE Shop_Name = ""Apple""" can you show me a list of location id?,select Location_ID from Tourist_Attractions What character does German voice actor Dirk Fenselau play?,"SELECT character FROM table_name_63 WHERE german_voice_actor = ""dirk fenselau""" Please list the titles of any three action films.,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Action' LIMIT 3 How many accounts does the customer with first name Art and last name Turcotte have?,"SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Art"" AND T2.customer_last_name = ""Turcotte""" Tell me the VIN code for compression ratio of 10.50:1,"SELECT vin_code FROM table_name_7 WHERE compression_ratio = ""10.50:1""" What is the name of the DS division where the divisional secretary is S. H. Muzammil?,"SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = ""S. H. Muzammil""" Show all cities where at least one customer lives in but no performer lives in.,SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID "Who is the author of the paper titled ""Open Sourcing Social Solutions (Building Communities of Change)""?",SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Open Sourcing Social Solutions (Building Communities of Change)' Name the total number of yards for avg of 9 and rec of 1,SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1 What is the sum total of all the years with a bell that weighed 857 kilograms?,"SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = ""857""" "In 2000, which team did the player who played the least minutes without missing a single game play in? Give the full name of the team.",SELECT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.GP = 82 AND T2.year = 2000 GROUP BY T1.tmID ORDER BY SUM(T2.PostMinutes) ASC LIMIT 1 What was the attendance of the North Melbourne's home game?,"SELECT COUNT(crowd) FROM table_name_6 WHERE home_team = ""north melbourne""" Which kind of part has the least number of faults? List the part name.,SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1 What's the genre of developer(s) Lionhead Studios?,"SELECT genre FROM table_name_41 WHERE developer_s_ = ""lionhead studios""" How long is it?,"SELECT milliseconds FROM tracks WHERE name = ""For Those About To Rock ( We Salute You ) """ What are the first names and department numbers for employees with last name McEwen?,"SELECT first_name , department_id FROM employees WHERE last_name = 'McEwen'" What is the PCT when the total number of games is less than 944?,SELECT pct FROM table_name_84 WHERE total_games < 944 "What is the date when the high points is michael beasley , martell webster (16)?","SELECT date FROM table_27756314_10 WHERE high_points = ""Michael Beasley , Martell Webster (16)""" What are the total number of games he played?,"SELECT sum ( GamesPlayed ) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = ""David"" AND T2.Lname = ""Shieber""" "How many Wikipedia pages on Catalan are there with the word ""nombre"" appearing for more than 5 times?",SELECT COUNT(T2.pid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre' AND T2.occurrences > 5 What is the percentage of the ratings were rated by user who was a subcriber?,SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings Which Founded that has a Club of no coast derby girls?,"SELECT founded FROM table_name_97 WHERE club = ""no coast derby girls""" What round was on 11/11/1992?,"SELECT round FROM table_name_91 WHERE date = ""11/11/1992""" Which college has a pick below 6 for the PBA team the Shell Turbo Chargers?,"SELECT college FROM table_name_11 WHERE pick < 6 AND pba_team = ""shell turbo chargers""" When is the club founded that founed prsl in 2008 and the home city is carolina 1?,"SELECT MAX(founded) FROM table_name_95 WHERE joined_prsl = 2008 AND home_city = ""carolina 1""" What is the number of inhabitants of the place the most customers are from?,SELECT DISTINCT T2.INHABITANTS_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID ORDER BY T2.INHABITANTS_K DESC Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000 Show the order ids and the number of invoices for each order.,"SELECT order_id , count(*) FROM Invoices GROUP BY order_id" What are the first names and last names of the employees who live in Calgary city.,"SELECT FirstName , LastName FROM EMPLOYEE WHERE City = ""Calgary""" What was the result when they played at Michigan State?,"SELECT result FROM table_name_14 WHERE opponent_number = ""at michigan state""" "How many pairs of object samples in image no.1 have the relation of ""parked on""?",SELECT SUM(CASE WHEN T1.PRED_CLASS = 'parked on' THEN 1 ELSE 0 END) FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.IMG_ID = 1 AND T2.OBJ1_SAMPLE_ID != OBJ2_SAMPLE_ID "What is the name of the series that has the episode ""A Love of a Lifetime""?","SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = ""A Love of a Lifetime"";" Who is in group a when indiana is in group d?,"SELECT group_a FROM table_15290638_1 WHERE group_d = ""Indiana""" Find the name and checking balance of the account with the lowest savings balance.,"SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" What college did steve justice attend?,"SELECT college FROM table_14999879_2 WHERE player = ""Steve Justice""" List all the names of the winning team's players in the first match of season 1.,SELECT T3.Player_Name FROM `Match` AS T1 INNER JOIN Player_Match AS T2 ON T1.Match_Winner = T2.Team_Id INNER JOIN Player AS T3 ON T2.Player_Id = T3.Player_Id WHERE T1.Season_Id = 1 ORDER BY T1.Match_Date LIMIT 1 What class is the verb wich its part 4 is frosinn,"SELECT class FROM table_1745843_10 WHERE part_4 = ""frosinn""" How many distinct nationalities are there?,SELECT COUNT(DISTINCT Nationality) FROM people "What is the average Bronze, when Nation is ""North Korea"", and when Total is greater than 5?","SELECT AVG(bronze) FROM table_name_53 WHERE nation = ""north korea"" AND total > 5" "Show the season, the player, and the name of the country that player belongs to.","SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country" Number of 13 that has what highest weight?,SELECT MAX(weight) FROM table_name_44 WHERE number = 13 Find the average number of factories for the manufacturers that have more than 20 shops.,SELECT avg(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20 Tell me the highest home runs for cleveland indians years before 1931,"SELECT MAX(home_runs) FROM table_name_92 WHERE team = ""cleveland indians"" AND year < 1931" "What opponent has a week less than 12, with November 25, 1965 as the date?","SELECT opponent FROM table_name_29 WHERE week < 12 AND date = ""november 25, 1965""" What is the name and date of the most recent race?,"SELECT name , date FROM races ORDER BY date DESC LIMIT 1" What player goes to Torrey Pines High School?,"SELECT player FROM table_11677100_3 WHERE school = ""Torrey Pines High school""" What height was the player that played for the Rockets between 1992-93?,"SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = ""1992-93""" What was the score when the opposition was West Coast in Wanganui?,"SELECT score FROM table_26847237_1 WHERE opposition = ""West Coast"" AND location = ""Wanganui""" Which allergy is the most common?,SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1 "What is the polyunsaturated fat with a smoke point of °c (), a total fat of 100g and 63g of monounsaturated fat?","SELECT polyunsaturated_fat FROM table_name_28 WHERE smoke_point = ""°c ()"" AND total_fat = ""100g"" AND monounsaturated_fat = ""63g""" What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?,"SELECT original_air_date FROM table_18712423_3 WHERE directed_by = ""Ian Barry"" AND written_by = ""Philip Dalkin""" "What is the incident type description for the incident type with code ""VIOLENCE""?","SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = ""VIOLENCE""" What s the episode number in the season that was written by Nancy Oliver?,"SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = ""Nancy Oliver""" Add up all the Ends columns that have goals smaller than 0.,SELECT SUM(ends) FROM table_name_65 WHERE goals < 0 Show member names that are not in the Progress Party.,"SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != ""Progress Party""" "What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?",SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0 Give the name of the lowest earning instructor in the Statistics department.,SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1 What school is in 36 Jackson?,"SELECT school FROM table_name_41 WHERE county = ""36 jackson""" What is the gender of the cunningham hill infant school?,"SELECT gender FROM table_28523_2 WHERE school = ""Cunningham Hill Infant school""" Pick # of 331 went to which college?,SELECT college FROM table_name_36 WHERE pick__number = 331 How many chainring bolts were sold under sales ID 551971?,SELECT T1.Quantity FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Chainring Bolts' AND T1.SalesID = 551971 What is the medicine prescribed for the patient with social security number 999-94-3751?,SELECT T1.DESCRIPTION FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.ssn = '999-94-3751' What were the difference of the CHS team's winning rate between 1946 and 1947 in the post-season series games? Please provide your answer in percentages.,SELECT CAST(SUM(CASE WHEN year = 1947 AND tmIDWinner = 'CHS' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN year = 1947 THEN 1 ELSE 0 END) - CAST(SUM(CASE WHEN year = 1946 AND tmIDWinner = 'CHS' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN year = 1946 THEN 1 ELSE 0 END) FROM series_post "Of the wickets taken in the third overs, how many are without the involvement of fielders?",SELECT SUM(CASE WHEN Fielders = '' THEN 1 ELSE 0 END) FROM Wicket_Taken WHERE Over_Id = 3 Provide the name of games released in 2015.,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2015 Name the least age for cibao central and santo domingo,"SELECT MIN(age) FROM table_21346767_3 WHERE geographical_regions = ""Cibao Central"" AND hometown = ""Santo Domingo""" "Name all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr.","SELECT candidates FROM table_1342013_10 WHERE incumbent = ""Prince Hulon Preston, Jr.""" Return the publisher that has published the most books.,SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1 What is the lowest start in a year after 2008?,SELECT MIN(start) FROM table_name_62 WHERE year > 2008 Find the name of the department that offers the largest number of credits of all classes.,SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1 What is the lowest attendance of a game that has the result of 2-0?,"SELECT MIN(attendance) FROM table_name_59 WHERE result = ""2-0""" How many movie directors are there?,SELECT COUNT(DISTINCT director) FROM movie Find the number of people who is under 40 for each gender.,"SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender" What is the title of season 3 ep# 12?,SELECT title FROM table_12451376_3 WHERE season_3_ep__number = 12 Which classrooms are used by grade 5?,SELECT DISTINCT classroom FROM list WHERE grade = 5 "What were the Opponents of the team, that made it to the third round, before 2008?","SELECT opponents FROM table_name_95 WHERE year < 2008 AND progress = ""third round""" What are the names of wines whose score is higher than 93?,SELECT Name FROM WINE WHERE Score > 93 What location had a VFL Game number of 9?,SELECT location FROM table_16527640_3 WHERE vfl_games = 9 "What are the different affiliations, and how many schools with each have an enrollment size of above 20000?","SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation" Show all statement id and the number of accounts for each statement.,"SELECT STATEMENT_ID , count(*) FROM Accounts GROUP BY STATEMENT_ID" "What was the date of the match against Jean-Julien Rojer, on a clay surface?","SELECT date FROM table_name_59 WHERE surface = ""clay"" AND opponent = ""jean-julien rojer""" How many games were played on november 27?,"SELECT COUNT(record) FROM table_25461946_5 WHERE date = ""November 27""" Which CPU chip(s) is used in the Classic type hardware?,"SELECT cpu_chip FROM table_name_71 WHERE type = ""classic""" How many teams that played won 0 games?,"SELECT played FROM table_20760802_1 WHERE won = ""0""" Can you show the average account balance of customers with credit score lower than 50 for each account type and their corresponding account types?,"SELECT avg ( acc_bal ) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type" What is the most popular activity?,SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID order by count ( * ) desc limit 1 WHAT IS THE LEAGUE WITH A ROUND LARGER THAN 6?,SELECT college_junior_club_team__league_ FROM table_name_82 WHERE round > 6 Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?,"SELECT rider FROM table_23465864_6 WHERE fri_28_aug = ""24' 23.36 92.820mph""" "Show the prices of the products named ""Dining"" or ""Trading Policy"".","SELECT Product_Price FROM Products WHERE Product_Name = ""Dining"" OR Product_Name = ""Trading Policy""" "Give the different reigns of wrestlers who are not located in Tokyo, Japan.","SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != ""Tokyo , Japan""" What was the smallest crowd size for a home game for Richmond?,"SELECT MIN(crowd) FROM table_name_47 WHERE home_team = ""richmond""" What years does the school have with a roll of 33?,SELECT years FROM table_name_85 WHERE roll = 33 What is the name of the movie produced after 2000 and directed by James Cameron?,SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 "Show the first names and last names of all the guests that have apartment bookings with status code ""Confirmed"".","SELECT T2.guest_first_name , T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Confirmed""" Which Away team has a Home team of south melbourne?,"SELECT away_team FROM table_name_63 WHERE home_team = ""south melbourne""" Which year did the school with the mascot of the Vikings join?,"SELECT year_joined FROM table_name_83 WHERE mascot = ""vikings""" "What is the sum of District, when Took Office is greater than 1981, and when Senator is Cyndi Taylor Krier?","SELECT SUM(district) FROM table_name_67 WHERE took_office > 1981 AND senator = ""cyndi taylor krier""" Which of the role codes has the most employees?,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 "What is the average points with a year higher than 1989, and a rank of 7th?","SELECT AVG(points) FROM table_name_60 WHERE year > 1989 AND rank = ""7th""" "what are the characteristic names of ""Cumin""?","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 = ""cumin""" List the titles for all Catalan language wikipedia page from revision page id 106600 to 106700.,SELECT title FROM pages WHERE revision BETWEEN 106600 AND 106700 List by their ID number the 3 longest complaints.,SELECT `Complaint ID` FROM callcenterlogs ORDER BY ser_time DESC LIMIT 3 Who directed the film 'The Chapel'?,"SELECT director_s_ FROM table_name_22 WHERE film = ""the chapel""" Find the number of times ROY SWEAZY has reserved a room.,"SELECT count(*) FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY"";" What are the districts that belong to the country with the lowest surface area?,SELECT T1.District FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T2.SurfaceArea ASC LIMIT 1 What is the name of the entrepreneur with the greatest weight?,SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 What is the total of crowd at Venue of mcg?,"SELECT SUM(crowd) FROM table_name_7 WHERE venue = ""mcg""" What genre has a station of Class 95FM?,"SELECT genre FROM table_name_53 WHERE station = ""class 95fm""" "Tell me the score for Venue of tanteen recreation ground, st. george's","SELECT score FROM table_name_43 WHERE venue = ""tanteen recreation ground, st. george's""" What is the phone number for customer id 118?,SELECT phone_number FROM customers where customer_id = 118 how many different types of apartments are there?,SELECT count ( DISTINCT apt_type_code ) FROM Apartments Who was the Class D winner in round 6?,"SELECT class_d_winner FROM table_24852622_1 WHERE round = ""6""" From what town was Steve Zakuani?,"SELECT home_town FROM table_name_7 WHERE player = ""steve zakuani""" What is the Onehunga school with a decile 3 and smaller than 310 rolls?,"SELECT name FROM table_name_17 WHERE decile = ""3"" AND roll < 310 AND area = ""onehunga""" Which region had a catalog number of 570 734-2?,"SELECT region FROM table_name_19 WHERE catalog = ""570 734-2""" How many years has 1 run?,"SELECT COUNT(year) FROM table_name_53 WHERE score = ""1 run""" "How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?","SELECT COUNT(losses) FROM table_name_12 WHERE team = ""cornwall hc"" AND goals_for > 18" "What about the account details with the value having the character '5' in it, please?","SELECT Account_details FROM Accounts WHERE Account_details LIKE ""%5%""" How many 'has' predicate classes does image ID 107 have?,SELECT COUNT(T2.PRED_CLASS) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 107 AND T2.PRED_CLASS = 'has' When were episodes first broadcast with jessica ennis as andrew and jacks guest?,"SELECT first_broadcast FROM table_29141354_5 WHERE andrew_and_jacks_guest = ""Jessica Ennis""" How many different types of rooms are there?,SELECT COUNT(DISTINCT roomtype) FROM room and can you tell me what the interaction type is for ALA synthase?,SELECT distinct ( T1.interaction_type ) FROM medicine_enzyme_interaction AS T1 JOIN enzyme AS T2 ON T1.enzyme_id = T2.id WHERE T2.name = 'ALA synthase' what is the elevation for port elizabeth?,"SELECT elevation FROM table_27708484_3 WHERE city = ""Port Elizabeth""" What is the film title and inventory id of the item in the inventory which was rented most frequently?,"SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1" What are the names of teams from universities that have a below average enrollment?,SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university) What is the result of the fight when record is 12-2?,"SELECT res FROM table_name_79 WHERE record = ""12-2""" What are the unique names of all race held between 2014 and 2017?,SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017 "How many tests have result ""Fail""?","SELECT count(*) FROM Student_Tests_Taken WHERE test_result = ""Fail""" Who are the coaches for team with winning rate of 80% and above?,"SELECT coachID FROM coaches GROUP BY tmID, coachID, won, lost HAVING CAST(won AS REAL) * 100 / (won + lost) > 80" How many years had fewer than 2089.2 pigs?,SELECT COUNT(year) FROM table_name_81 WHERE pigs < 2089.2 "when co2 is 192g/km, what is the power?","SELECT power FROM table_24729_2 WHERE co2 = ""192g/km""" Name the word with pronunciation b of *sɨks,"SELECT word FROM table_name_55 WHERE pronunciation_b = ""*sɨks""" At what event did he fight takaharu murahama?,"SELECT event FROM table_name_5 WHERE opponent = ""takaharu murahama""" "What are the order ids and customer ids for orders that have been Cancelled, sorted by their order dates?","SELECT order_id , customer_id FROM customer_orders WHERE order_status_code = ""Cancelled"" ORDER BY order_date" "How many stadiums are not in country ""Russia""?",SELECT count(*) FROM stadium WHERE country != 'Russia' What is the per capital income for Washington county?,"SELECT per_capita_income FROM table_name_12 WHERE county = ""washington""" "Which industries have both companies with headquarter in ""USA"" and companies with headquarter in ""China""?","SELECT Industry FROM Companies WHERE Headquarters = ""USA"" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = ""China""" How many female students (sex is F) whose age is below 25?,SELECT count(*) FROM student WHERE sex = 'F' AND age < 25 "Please show the names of the buildings whose status is ""on-hold"", in ascending order of stories.","SELECT name FROM buildings WHERE Status = ""on-hold"" ORDER BY Stories ASC" List down names of teams that have played as second team against Pune Warriors.,SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_2 WHERE T1.Team_1 = ( SELECT Team_Id FROM Team WHERE Team_Name = 'Pune Warriors' ) GROUP BY T2.Team_Name In which country was the xiamen international marathon?,"SELECT country FROM table_26166836_1 WHERE road_race = ""Xiamen International Marathon""" How many tweets in French were posted from Australia?,SELECT COUNT(DISTINCT T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.Lang = 'fr' AND T2.Country = 'Australia' How many sections does each course has?,"SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code" From which party is the incumbent who was first elected to office in 1990?,SELECT party FROM table_name_8 WHERE first_elected = 1990 What is the college hall of fame of the player who plays fullback?,"SELECT college_hall_of_fame FROM table_name_83 WHERE position = ""fullback""" How many students are there in each major?,"SELECT count(*) , major FROM student GROUP BY major" Which position at UCLA has a lower than 92 pick number?,"SELECT position FROM table_name_27 WHERE pick < 92 AND school_club_team = ""ucla""" What is the name of the city in English and Hanzi that hosted in 2011?,"SELECT t1.city ,t1.Hanzi FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city where t2.year = 2011" "In 1976, who was the reporter for the Belmont Stakes?",SELECT reporters FROM table_22583466_5 WHERE year = 1976 What is the full name of each student who is not allergic to any type of food.,"SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" "Yes, can you show me all the attorney generals from democratic party?",SELECT Attorney_General FROM party where Party = 'Democratic' Show the id of the employee named Ebba.,"SELECT employee_ID FROM Employees WHERE employee_name = ""Ebba""" Who was the champion for the 1998-99 season?,"SELECT champion FROM table_19651669_1 WHERE season = ""1998-99""" What competition has 41 goals?,SELECT competition FROM table_name_63 WHERE goal = 41 What is the average age of the athletes from the United States of America who competed in the 2016 Summer Olympics?,SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person_region AS T3 ON T2.person_id = T3.person_id INNER JOIN noc_region AS T4 ON T3.region_id = T4.id WHERE T1.games_name = '2016 Summer' AND T4.region_name = 'USA' A score of 71-71=142 earned what place?,SELECT place FROM table_name_11 WHERE score = 71 - 71 = 142 Where does the staff Jon Stephens live?,"SELECT T1.address, T1.address2 FROM address AS T1 INNER JOIN staff AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = 'Jon' AND T2.last_name = 'Stephens'" How many total orders do we have?,SELECT count ( * ) FROM orders And the names of the people who are not students?,"SELECT name FROM Person WHERE job ! = ""student""" Can you tell me the Record that has the Date of december 15?,"SELECT record FROM table_name_42 WHERE date = ""december 15""" "What are some parties with theme ""Spring""?","SELECT * FROM party WHERE Party_Theme = ""Spring""" Which country produced the most fuel-efficient car?,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.mpg DESC LIMIT 1 How many outcomes are listed when the final opponent was Johan Kriek? ,"SELECT COUNT(outcome) FROM table_22597626_5 WHERE opponent_in_the_final = ""Johan Kriek""" What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%?,SELECT AVG(drawn) FROM table_name_86 WHERE tries > 1 AND _percentage_won < 56.15 AND played > 16 what country is john nielsen from,"SELECT country FROM table_name_10 WHERE driver = ""john nielsen""" "Among the pairs of genes that are not from the class of motorproteins, how many of them are negatively correlated?",SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr < 0 AND T1.Class = 'Motorproteins' "And, do you also have information on the total number of instructors in each department?","SELECT count ( DISTINCT T2.id ) , count ( DISTINCT T3.id ) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name" Please list any three order numbers that have been shipped using Speedy Express.,SELECT T1.OrderID FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' LIMIT 3 "What lifespan has a majors greater than 1, and fuzzy zoeller as the name?","SELECT lifespan FROM table_name_37 WHERE majors > 1 AND name = ""fuzzy zoeller""" Give the classes that have more than two captains.,SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2 Name the champion for israel bowl of iv,"SELECT champion FROM table_name_33 WHERE israel_bowl = ""iv""" Which accounts with checking accounts have savings account balances higher than the average savings balance?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN ( SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > ( SELECT avg ( balance ) FROM savings ) ) What was the home score at the Princes Park game?,"SELECT home_team AS score FROM table_name_95 WHERE venue = ""princes park""" How many entries are shown for date of successors formal installation where successor is john w. walker (dr)?,"SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = ""John W. Walker (DR)""" What is the total of wins when the evens is less than 3?,SELECT SUM(wins) FROM table_name_66 WHERE events < 3 Which Results have a Category of the best new actor in lead role(female)?,"SELECT results FROM table_name_32 WHERE category = ""best new actor in lead role(female)""" How many umpires are from South Africa?,SELECT SUM(CASE WHEN T1.Country_Name = 'South Africa' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN Umpire AS T2 ON T1.Country_ID = T2.Umpire_Country what is the date of first flight?,SELECT Date FROM flight ORDER BY Date LIMIT 1 "What is the most common mill type, and how many are there?","SELECT TYPE , count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" How many restricted horror movies were released between 1/1/1990 to 12/31/2015?,"SELECT COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'R' AND genre = 'Horror' AND CAST(SUBSTR(release_date, INSTR(release_date, ', ') + 1) AS int) BETWEEN 1990 AND 2015" What is the yearly average review done by user ID 3?,"SELECT COUNT(review_stars) / (strftime('%Y', 'now') - T1.user_yelping_since_year) FROM Users AS T1 INNER JOIN Reviews AS T2 ON T1.user_id = T2.user_id WHERE T1.user_id = 3" Who is the oldest in the list?,SELECT name FROM captain order by age desc limit 1 How many counties have a place name of Macedonia?,"SELECT COUNT(county_ies__)[a_] FROM table_249512_2 WHERE place_name = ""Macedonia""" what are all the addresses including line 1 and line 2?,"SELECT line_1 , line_2 FROM addresses" Who is the percussionist for The Coral?,"SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = ""The Coral""" "Which game site Kickoff [a] of 1:00, and an Attendance of 63,251?","SELECT game_site FROM table_name_53 WHERE kickoff_[a_] = ""1:00"" AND attendance = ""63,251""" What are the names of people who have a height greater than 200 or less than 190?,SELECT name FROM people WHERE height > 200 OR height < 190 What is the amenity_name of Dorm_amenity? | Did you want all amenity names for dorms? | Yes,SELECT amenity_name from dorm_amenity Which wines were produced in 2007?,select winery from wine where year = 2007 "Show all artist name, age, and country ordered by the year they joined.","SELECT name , age , country FROM artist ORDER BY Year_Join" What are the names of players who participated in season year 2008?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T4.Season_Year = 2008 GROUP BY T1.Player_Name What is the highest number of games played for teams that lost over 5 games and had an against total of 228?,SELECT MAX(played) FROM table_name_52 WHERE lost > 5 AND against = 228 "Among all the production technicians, how many have a below average pay rate for a production technician?",SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle LIKE 'Production Technician%' AND T2.Rate < ( SELECT AVG(T2.Rate) FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle LIKE 'Production Technician%' ) What is the Qual listed on the Year of 1954?,"SELECT qual FROM table_name_38 WHERE year = ""1954""" "In the year 2013, what was the outcome?",SELECT outcome FROM table_2516282_3 WHERE year = 2013 WHAT IS THE DATE WITH BOSTON ROAD TEAM AND 126-105 RESULT?,"SELECT date FROM table_name_86 WHERE road_team = ""boston"" AND result = ""126-105""" "Please list the names of all the products under the type ""promo brushed steel"".",SELECT p_name FROM part WHERE p_type = 'PROMO BRUSHED STEEL' Show different hometown of teachers and the number of teachers from each hometown.,"SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown" What is the name of the product with the color description 'yellow'?,SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow' How many distinct parties are there for representatives?,SELECT count(DISTINCT Party) FROM representative What is the description of the service type which offers both the photo product and the film product?,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film' What is the injured that has skierlik as the location?,"SELECT injured FROM table_name_9 WHERE location = ""skierlik""" what is the total number of years for rockets where school/club team/country is baylor,"SELECT COUNT(years_for_rockets) FROM table_11734041_20 WHERE school_club_team_country = ""Baylor""" Which major has between 2 and 30 number of students? List major and the number of students.,"SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;" What was bruce baldwin's pick #?,"SELECT pick__number FROM table_2508633_5 WHERE player = ""Bruce Baldwin""" Please list the total number of title with the production code 211.,SELECT COUNT(title) FROM table_12451376_2 WHERE production_code = 211 What are the top 5 genres? | Do you mean sort by the id number? | Yes please,"select id,name from genres order by id desc limit 5" What territories is the Inside Sales Coordinator in charge of?,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.Title = 'Inside Sales Coordinator' Show the name of employees with three lowest salaries.,SELECT name FROM Employee ORDER BY salary ASC LIMIT 3 Which publisher had the highest job level? Give his/her full name.,"SELECT T1.fname, T1.minit, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.job_lvl DESC LIMIT 1" What date was game 37?,SELECT date FROM table_name_71 WHERE game = 37 Which country's city is Sendai?,"SELECT country FROM table_name_5 WHERE city = ""sendai""" What are the descriptions of the categories that products with product descriptions that contain the letter t are in?,SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' What's the Japanese title when the Romaji Title was Atsu-Hime?,"SELECT japanese_title FROM table_name_24 WHERE romaji_title = ""atsu-hime""" what's the position with team being skilled racing team,"SELECT position FROM table_14139408_1 WHERE team = ""Skilled Racing team""" How did he place in 1970?,SELECT result FROM table_name_58 WHERE year = 1970 Corey Maggette from the United States plays what position?,"SELECT position FROM table_name_70 WHERE nationality = ""united states"" AND player = ""corey maggette""" "Among the films directed by directors who direct the best, how many of them have an average rating of over 3.5?",SELECT COUNT(*) FROM ( SELECT DISTINCT T2.movieid FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid INNER JOIN u2base AS T3 ON T2.movieid = T3.movieid WHERE T1.d_quality = 5 GROUP BY T2.movieid HAVING AVG(T3.rating) > 3.5 ) AS T1 Number of students in each major?,"SELECT Major, count ( * ) FROM STUDENT GROUP BY major" Find the first and last name of students whose age is younger than the average age.,"SELECT fname , lname FROM student WHERE age < (SELECT avg(age) FROM student)" Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.,SELECT id FROM trip WHERE duration >= (SELECT avg(duration) FROM trip WHERE zip_code = 94103) What was the type after 2004?,SELECT type FROM table_name_14 WHERE year > 2004 "I need to know which train route passes through the most stations, please.",SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY count ( * ) DESC LIMIT 1 Give the building that the instructor who teaches the greatest number of courses lives in.,SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1 Which tournament did Patrick Rafter win?,"SELECT tournament FROM table_name_96 WHERE winner = ""patrick rafter""" "What are the name, independence year, and surface area of the country with the smallest population?","SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1" "For the university id 268, show its number of students in 2013.",SELECT num_students FROM university_year WHERE university_id = 268 AND year = 2013 "Among the English comedy movies produced in the UK, how many movies with a running time of 3 was rated the highest by users between the age 45-50? Indicate the movie names.",SELECT DISTINCT T1.movieid FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid INNER JOIN u2base AS T3 ON T1.movieid = T3.movieid INNER JOIN users AS T4 ON T3.userid = T4.userid WHERE T1.country = 'UK' AND T2.genre = 'Comedy' AND T1.runningtime = 3 AND T3.rating = 5 AND T4.age BETWEEN 45 AND 50 AND T1.isEnglish = 'T' Which business in fashion category has the most review?,SELECT T3.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Reviews AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name LIKE 'Fashion' AND T1.category_id = 7 GROUP BY T3.business_id ORDER BY COUNT(T4.user_id) DESC LIMIT 1 "Tell me the title of japan january 31, 2008","SELECT title FROM table_name_74 WHERE japan = ""january 31, 2008""" Tell me the average for 1 yards,"SELECT avg FROM table_name_65 WHERE yards = ""1""" "Which race has a winning team of Penske Racing, and a winning driver of Bobby Unser?","SELECT name FROM table_name_62 WHERE winning_team = ""penske racing"" AND winning_driver = ""bobby unser""" When were the odds of winner 16.66?,"SELECT year FROM table_21676617_1 WHERE odds_of_winner = ""16.66""" What is the number of cities in the United States with more than 3 airports?,SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3 "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.","SELECT first_name , last_name , salary , department_id , MAX(salary) FROM employees GROUP BY department_id" Show names of ships involved in a mission launched after 1928.,SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 exactly,"SELECT * from addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Kaitlin""" Return the first names and last names of all guests,"SELECT guest_first_name , guest_last_name FROM Guests" Name the score for september 11,"SELECT score FROM table_name_48 WHERE date = ""september 11""" "What was the result of the match on December 1, 1963?","SELECT result FROM table_name_43 WHERE date = ""december 1, 1963""" What were the reasons that venues closed in the 1990s?,"SELECT reason FROM table_name_59 WHERE closed = ""1990s""" "What is Away, when Home is ""marathon""?","SELECT away FROM table_name_14 WHERE home = ""marathon""" "What are the title, id, and description of the movie with the greatest number of actors?","SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1" List the maximum scores of the team Boston Red Stockings when the team won in postseason?,SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'; What is the first and last name of the student who played the most sports?,"SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1" How many region 1's did back to earth have?,"SELECT COUNT(region_1) FROM table_25721_4 WHERE release = ""Back to Earth""" What are the names of the singers who performed in a concert in 2014?,SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014 what's the status in the style of ballet/ gymnastics?,"SELECT status FROM table_name_73 WHERE style = ""ballet/ gymnastics""" What is the name of product purchased with transaction type P?,SELECT ProductID FROM Product WHERE ProductID IN ( SELECT ProductID FROM TransactionHistory WHERE TransactionType = 'P' ) What is the average capacity of the stadiums that were opened in year 2005?,SELECT avg(capacity) FROM stadium WHERE opening_year = 2005 What are the names of the top 3 expensive rooms?,SELECT roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3 What is the decile for Westminster Christian School with a state integrated authority?,"SELECT decile FROM table_name_55 WHERE authority = ""state integrated"" AND name = ""westminster christian school""" "What is the date with 68,463 in attendance?","SELECT date FROM table_name_82 WHERE attendance = ""68,463""" Show countries where a singer above age 40 and a singer below 30 are from.,SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30 Who is the winner in 2010?,SELECT winners FROM table_name_92 WHERE season = 2010 What was the date of the match played at MCG?,"SELECT date FROM table_name_86 WHERE venue = ""mcg""" What is the oldest year listed with the 1500 Louisiana Street name?,"SELECT MIN(year) FROM table_name_87 WHERE name = ""1500 louisiana street""" What is the time/retired with a toyota constructor and a 5 grid?,"SELECT time_retired FROM table_name_93 WHERE constructor = ""toyota"" AND grid = 5" "What is the ID of the longest song, please?",SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 "Among the cars over 3000lbs, how many of them cost less than $30000?",SELECT COUNT(T1.car_name) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.weight > 3000 AND T2.price < 30000 what team played on july 9,"SELECT opponent FROM table_name_72 WHERE date = ""july 9""" What date was the nascar nationwide series held?,"SELECT record FROM table_name_57 WHERE date = ""nascar nationwide series""" "Who is the ""CTO"" of club ""Hopkins Student Enterprises""? Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t2.position = ""CTO""" In which city live the most staff? List the city name and number of staff.,"SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;" What is origin country for a title that charted at 52?,SELECT origin FROM table_name_84 WHERE chart_no = 52 "Show me the ID's from the products from supplier number 2 that are more expensive than this average, please.",SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > ( SELECT avg ( T2.product_price ) FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 ) What are the names of all directors who have made one movie except for the director named NULL?,"SELECT director FROM Movie WHERE director != ""null"" GROUP BY director HAVING count(*) = 1" "Find all the songs performed by artist with last name ""Heilo""","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = ""Heilo""" Find the number of routes that list John F Kennedy International Airport as a destination.,SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport' Which planet has the transcription of wan suk?,"SELECT planet FROM table_180802_3 WHERE transcription = ""wan suk""" When did Oliver Jarvis have pole position?,"SELECT date FROM table_21321935_2 WHERE pole_position = ""Oliver Jarvis""" Give the code of the airport with the least flights.,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1 What was the total number of games where A. Johnson (6) gave the most high assists?,"SELECT COUNT(game) FROM table_11961582_4 WHERE high_assists = ""A. Johnson (6)""" "How many games were played by the team with 2 draws, less than 16 points and a position higher than 5?",SELECT COUNT(played) FROM table_name_74 WHERE drawn = 2 AND points < 16 AND position > 5 What was the Attendance at the Game with a Result of w 21–7?,"SELECT AVG(attendance) FROM table_name_71 WHERE result = ""w 21–7""" What is the oldest season that had a listed Super G score of 33?,"SELECT MIN(season) FROM table_name_34 WHERE super_g = ""33""" Find the first name of students who are living in the dorm that has most number of amenities.,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1) Tony P. Hall was the incumbent in the race between what two candidates? ,"SELECT candidates FROM table_1341453_37 WHERE incumbent = ""Tony P. Hall""" What is the denomination of the III Series?,"SELECT denomination FROM table_name_8 WHERE series = ""iii series""" What are the first names and support rep ids for employees serving 10 or more customers?,"SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10" Who won a medal at the 2008 Beijing Olympics?,"SELECT name FROM table_name_33 WHERE games = ""2008 beijing""" What are their transaction type descriptions?,SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 Find the names of all stores in Khanewal District.,"SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = ""Khanewal District""" What is the average winning margin of all the matches SC Ganguly has played in?,SELECT CAST(SUM(T3.Win_Margin) AS REAL) / COUNT(*) FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id WHERE T1.Player_Name = 'SC Ganguly' "What are ids of the all distinct orders, sorted by placement date?",SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed "Hi, can you please tell me what is the ID of the station whose maximum precipitation is higher than 50?",SELECT t2.id FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max ( t1.precipitation ) > 50 List at least 15 phone models released under the OPPO brand.,SELECT device_model FROM phone_brand_device_model2 WHERE phone_brand = 'OPPO' LIMIT 15 "What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?","SELECT MAX(lane) FROM table_name_82 WHERE mark = ""2:02.27 nr"" AND heat < 2" "which chapter was Transmitted on wednesday if the episode of ""363 the hangover part ii"" was transmitted on monday? ","SELECT wednesday FROM table_18173916_8 WHERE monday = ""363 The Hangover Part II""" and can you also show me headquarters that have companies in the oil and gas industry?,"SELECT distinct Headquarters FROM company WHERE Industry = ""Oil and gas""" which countries' tv channels are playing some cartoon written by Todd Casey?,SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' What is the mascot for South Bend Clay?,"SELECT mascot FROM table_name_8 WHERE school = ""south bend clay""" Which Team has a Score of 89-123?,"SELECT team FROM table_name_40 WHERE score = ""89-123""" Which Source has a Undecided of 2%?,"SELECT source FROM table_name_46 WHERE undecided = ""2%""" "List the name of all the distinct customers who have ordered with status ""packing""","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Packing""" Name the area km 2 for balmoral,"SELECT area_km_2 FROM table_171361_2 WHERE official_name = ""Balmoral""" How many players were in the team Boston Red Stockings in 2000?,SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000 When 22' 37.06 100.090mph is the time for Monday August 24th how many times are there for Friday August 28th?,"SELECT COUNT(fri_28_aug) FROM table_23465864_3 WHERE mon_24_aug = ""22' 37.06 100.090mph""" What is the name of the CBSA of the city with the highest average house value?,SELECT DISTINCT T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.avg_house_value = ( SELECT MAX(avg_house_value) FROM zip_data ) LIMIT 1 What is the total transaction amount?,SELECT sum ( transaction_amount ) FROM Financial_transactions How many clients who live in New York City submitted their complaints via fax?,SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'New York City' AND T2.`Submitted via` = 'Fax' Can you list the patient IDs associated with appointment IDs 93216548 and 86213939?,SELECT Patient FROM Appointment WHERE AppointmentID = 93216548 OR AppointmentID = 86213939 "Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13?","SELECT laps FROM table_name_87 WHERE points < 1 AND team = ""dale coyne racing"" AND grid > 13" What is the socket of the model atom e680t?,"SELECT socket FROM table_name_55 WHERE model_number = ""atom e680t""" What is the Score of game 35?,SELECT score FROM table_name_43 WHERE game = 35 "Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994?","SELECT opponents_in_final FROM table_name_15 WHERE outcome = ""winner"" AND surface = ""hard"" AND date = ""april 17, 1994""" List the names of buildings in descending order of building height.,SELECT name FROM buildings ORDER BY Height DESC How many losses did the Golden rivers of hay have?,"SELECT AVG(losses) FROM table_name_2 WHERE golden_rivers = ""hay""" What is maximum group equity shareholding of the companies?,SELECT MAX(group_equity_shareholding) FROM operate_company What are the authors of submissions and their colleges?,"SELECT Author, College FROM submission" List the first and last name of the students who do not have any food type allergy.,"SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" "What is the average frequency MHz for license of eastville, virginia?","SELECT AVG(frequency_mhz) FROM table_name_24 WHERE city_of_license = ""eastville, virginia""" List the names of 5 users followed by the largest number of other users.,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5 What is the smallest rank with a Lane of 1?,SELECT MIN(rank) FROM table_name_65 WHERE lane = 1 where is Chicagoland Speedway located?,SELECT T2.Location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id where T2.Name = 'Chicagoland Speedway' Which party does the incumbent first elected in 1994 belong to?,SELECT party FROM table_1341423_22 WHERE first_elected = 1994 "In Round 19, where did Tony Lockett play?","SELECT venue FROM table_name_20 WHERE round = ""19"" AND player = ""tony lockett""" "What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?","SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2" What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?,"SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = ""201ft•lbf (273 J)""" How many instructors are in the statistics department?,SELECT count ( * ) FROM instructor WHERE dept_name = 'Statistics' How many students are affected by each allergy type?,"SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype" Can you list the first and last names of employees who were hired after 1987?,"SELECT first_name,last_name FROM employees WHERE hire_date > 1987" show me the name of the restaurant with ResID 1?,select ResName from Restaurant where ResID = 1 What was the highest attendance for a game where Geelong was the home team?,"SELECT MAX(crowd) FROM table_name_25 WHERE home_team = ""geelong""" and can you show me only those headquarters that have both companies in oil and gas as well as banking industry?,"SELECT Headquarters FROM company WHERE Industry = ""Banking"" INTERSECT SELECT Headquarters FROM company WHERE Industry = ""Oil and gas""" List all of Wolfgang Reitherman's movies and their voice actors.,"SELECT T1.name, T2.`voice-actor` FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T1.name = T2.movie WHERE T1.director = 'Wolfgang Reitherman'" what is the end date of Deputy?,select end_Date from Policies where Policy_Type_Code = 'Deputy' What percentage of all tied games did the Sassuolo team play in?,SELECT CAST(SUM(CASE WHEN HomeTeam = 'Sassuolo' OR AwayTeam = 'Sassuolo' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(FTR) FROM matchs WHERE FTR = 'D' Name the first elected for re-elected and brian higgins,"SELECT first_elected FROM table_19753079_35 WHERE result = ""Re-elected"" AND incumbent = ""Brian Higgins""" What is the difference in the average GPA of students who took the hardest and easiest courses?,"SELECT AVG(T1.gpa) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.diff IN (2, 1) GROUP BY T3.diff" What place is Nolan Henke in?,"SELECT place FROM table_name_10 WHERE player = ""nolan henke""" "In businesses with a category of ""DJs"", how many businesses are rated less than 5?",SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'DJs' AND T1.stars < 5 "Please list the titles of the papers published in the journal ""Concepts in Magnetic Resonance Part A"" in 2008.",SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A' AND T2.Year = 2008 "For each country and airline name, how many routes are there?","SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name" what is the start date of Jurisdiction?,select Start_Date from Policies where Policy_Type_Code = 'Jurisdiction' "For the device with an event occurring on 2016/5/1 at 0:55:25, what is the gender of its user?",SELECT T1.gender FROM gender_age AS T1 INNER JOIN events AS T2 ON T1.device_id = T2.device_id WHERE T2.timestamp = '2016-05-01 00:55:25' What percent did GRÜNE get in the state where FRITZ got 1.3%?,"SELECT grüne FROM table_name_14 WHERE fritz = ""1.3%""" What was the rank for Great Britain?,"SELECT COUNT(rank) FROM table_name_28 WHERE country = ""great britain""" when first elected was 1898 what was the party?,"SELECT party FROM table_name_9 WHERE first_elected = ""1898""" What is the Speed for Chris Swallow?,"SELECT speed FROM table_name_13 WHERE rider = ""chris swallow""" "What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?","SELECT washington, _dc FROM table_13012165_1 WHERE new_york = ""Ramapo LL Ramapo""" What's the TDP for the 7130N model?,"SELECT MIN(tdp__w_) FROM table_269920_3 WHERE model = ""7130N""" How many exhibitions has each artist had?,"SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id" What are the maximum fastest lap speed in races held after 2014 grouped by race name and ordered by year?,"SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" Excellent! Can you update this list to show me the enrollment quantity associated with each college?,"SELECT cName, enr FROM college WHERE enr > ( SELECT max ( enr ) FROM college WHERE state = 'FL' ) " list all store email addresses,select store_email_address from Drama_Workshop_Groups "Provide the phone brands and models of the users who were at the coordinates of (80,44).","SELECT DISTINCT T1.phone_brand, T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T2.longitude = 80 AND T2.latitude = 44" What are the ids for templates that are not used in any documents?,SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents "What's the result for the clay surface edition on july 17, 1992?","SELECT result FROM table_name_97 WHERE surface = ""clay"" AND date = ""july 17, 1992""" How many tries for are there when 11 were won? ,"SELECT tries_for FROM table_17625749_3 WHERE won = ""11""" "Which products are being supplied by ""G'day, Mate""? List all of their names.","SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName LIKE 'G%day, Mate'" "Find the names of all the employees whose the role name is ""Editor"".","SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" how many followers in Iron Man,"SELECT followers FROM user_profiles WHERE name = ""Iron Man""" who was the successor for district ohio 15th?,"SELECT successor FROM table_1652224_5 WHERE district = ""Ohio 15th""" Can you tell me which instructor teaches the most number of courses?,SELECT instructor from Course group by instructor order by count ( * ) desc limit 1 Who had the high assists @ Dallas?,"SELECT high_assists FROM table_11964154_11 WHERE team = ""@ Dallas""" What are the name and phone of the customer with the most ordered product quantity?,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum ( T3.order_quantity ) DESC LIMIT 1" Name the sum of goals conceded when lost is more than 7 and points less than 26,SELECT SUM(goals_conceded) FROM table_name_60 WHERE lost > 7 AND points < 26 "Yards larger than 52, and a Opponent of san francisco 49ers is what kicker?","SELECT kicker FROM table_name_5 WHERE yards > 52 AND opponent = ""san francisco 49ers""" What nation had the athlete sebastian coe category:articles with hcards?,"SELECT nation FROM table_22355_11 WHERE athlete = ""Sebastian Coe Category:Articles with hCards""" "Show me the scores of the body builders | Which score, Snatch, Clean Jerk, or Total? | Total score",SELECT T1.Total FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID Give the name of the territory where Mr. Robert King works.,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.TitleOfCourtesy = 'Mr.' AND T1.FirstName = 'Robert' AND T1.LastName = 'King' What is the average score of submissions?,SELECT avg(Scores) FROM submission "What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?","SELECT player , number_of_matches , SOURCE FROM injury_accident WHERE injury != 'Knee problem'" "List the name, nationality and id of all male architects ordered by their names lexicographically.","SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name" show me the list of authors who have submissions to workshop.,SELECT distinct T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID What was the outcome of the game when the opponent was Magdaléna Rybáriková?,"SELECT outcome FROM table_18183850_12 WHERE opponent = ""Magdaléna Rybáriková""" Give me the names of those customers,"select T1.first_name, T1.last_name from customers as T1 join addresses as T2 on T2.address_id = T1.customer_address_id where T2.city = ( 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 ) " Where is it located?,"SELECT location FROM station where name = ""London Waterloo""" What is the Capacity of the Venue of Head Coach Ali Asghar Modir Roosta?,"SELECT MAX(capacity) FROM table_name_93 WHERE head_coach = ""ali asghar modir roosta""" Name the sum of points for chassis of brm p160e and year more than 1974,"SELECT SUM(points) FROM table_name_32 WHERE chassis = ""brm p160e"" AND year > 1974" Find the average ranking for each player and their first name.,"SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name" What are the ages of all of Zach's friends who are in the longest relationship?,SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach') What is the average number of years associated with 51 games tied and over 1184 total games?,SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184 "How many years have they each been working, please?","SELECT name,years_working from journalist" what department is McKinnon?,select dept_name from instructor where name = 'McKinnon' Which color is the background of the mandatory instructions?,"SELECT background_colour FROM table_name_43 WHERE type_of_sign = ""mandatory instructions""" "When the Loss is Johnson (4-12), what is the date?","SELECT date FROM table_name_9 WHERE loss = ""johnson (4-12)""" When were the members tenured in the Field school?,"SELECT tenure FROM table_28051859_3 WHERE school = ""Field""" When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?,"SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = ""3.69 million""" Find the official names of cities with population bigger than 1500 or smaller than 500.,SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500 Can you please show me the song name with highest resolution?,SELECT song_name from song order by resolution desc limit 1 What district re-elected a Republican?,"SELECT district FROM table_name_21 WHERE party = ""republican"" AND results = ""re-elected""" Which product did Cruz & Sons Co. ask for the biggest amount in a single order?,SELECT t4.productName FROM orderdetails AS t1 INNER JOIN orders AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN customers AS t3 ON t2.customerNumber = t3.customerNumber INNER JOIN products AS t4 ON t1.productCode = t4.productCode WHERE t3.customerName = 'Cruz & Sons Co.' ORDER BY t1.priceEach * t1.quantityOrdered DESC LIMIT 1 how many host in the id no_3?,SELECT Number_of_hosts from party where Party_ID = 3 How many of these apartments have 3 bedrooms?,"SELECT count ( * ) FROM Apartments WHERE apt_number IN ( SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed"" ) AND bedroom_count = 3" How many deserts are not located in a single country? Name them.,SELECT Desert FROM geo_desert GROUP BY Desert HAVING COUNT(DISTINCT Country) > 1 "Hi, how many people have friends with ages above 40?",SELECT COUNT ( * ) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN ( SELECT name FROM Person WHERE age > 40 ) Which side has Orcagna as the inscription?,"SELECT side FROM table_name_89 WHERE inscription = ""orcagna""" What is the name of artwork id 2?,select Name from artwork where Artwork_ID = 2 Show all church names except or those that had a wedding in year 2015.,SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.,"SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800"" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Airbus A340-300""" What is the average rank of a player with fewer than 3 matches?,SELECT AVG(rank) FROM table_name_38 WHERE matches < 3 How big is the land in square miles of Grand Forks county?,"SELECT land___sqmi__ FROM table_18600760_10 WHERE county = ""Grand Forks""" List attributes for object class 'tip' In image 1314.,SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T3.IMG_ID = 1314 AND T4.OBJ_CLASS = 'tip' What is the average height of the players from the college named 'Yale University'?,SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University'; I want to know the lowest oppose rate among the candidates.,SELECT oppose_rate FROM candidate ORDER BY oppose_rate LIMIT 1 Find the maximum age of all the students.,SELECT MAX(Age) FROM STUDENT "What are the case burdens of counties, ordered descending by population?",SELECT Case_burden FROM county_public_safety ORDER BY Population DESC What are the IDs of the aircrafts with name Airbus A340-300?,"SELECT distinct aid FROM Aircraft WHERE name = ""Airbus A340-300""" How many 6-star votes did episode 12 get? Please include the air date and rating.,"SELECT T2.air_date, T2.rating FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 6 AND T2.episode = 12" List all information in the item table.,SELECT * FROM item what is the language when the english translation is come to me?,"SELECT language FROM table_name_18 WHERE english_translation = ""come to me""" State the number of positive tweets from Ha Noi.,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Sentiment > 0 AND T2.State = 'Ha Noi' "What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?","SELECT date FROM table_name_53 WHERE winning_team = ""a.z.k./roc-compétition a.z.k./roc-compétition"" AND circuit = ""zolder""" "What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?","SELECT set_1 FROM table_name_92 WHERE score = ""3–0"" AND set_3 = ""15–12""" What track did they race on at the Fountain of Youth Stakes?,"SELECT track FROM table_name_69 WHERE race = ""fountain of youth stakes""" "Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.",SELECT CAST((SUM(T2.population_2020) - SUM(T2.population_2010)) AS REAL) * 100 / SUM(T2.population_2010) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Arroyo' What is the name and length of rivers located at 'Orleans' city?,"SELECT T3.Name, T3.Length FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T1.Name = 'Orleans'" "For what week was the attendance 40,429?",SELECT SUM(week) FROM table_name_2 WHERE attendance = 40 OFFSET 429 Show student ids who don't have any sports.,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo under which president was gunther volz executed?,"SELECT under_president FROM table_2861364_1 WHERE executed_person = ""Gunther Volz""" what is the customer name of customer id 1,SELECT customer_name FROM Customers WHERE customer_id = 1 Which Album had a bigger year than 2005 and whose country was Australia?,"SELECT album FROM table_name_32 WHERE year > 2005 AND country = ""australia""" What is last date created of votes from the state 'CA'?,SELECT max(created) FROM votes WHERE state = 'CA' What is Beohari's reserved for (SC/ST/None)?,"SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = ""beohari""" Show the record companies shared by orchestras founded before 2003 and after 2003.,SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003 What is the average of those 3 ages?,"SELECT avg ( age ) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""animal"" ) " "What is the gross of a comedy movie with a rating lower than 7 and starred by an actor with a net worth greater than $375,000,000.00?","SELECT SUM(T1.Gross) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE CAST(REPLACE(REPLACE(T3.NetWorth, ',', ''), '$', '') AS REAL) > 375000000 AND T1.Rating < 7 AND T1.Genre = 'Comedy'" Show the school name and type for schools without a school bus.,"SELECT school , TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)" "Find the details of customers which contain ""Diana""?","SELECT * from customers where customer_details like ""%Diana%""" "Find the commander's name, email address, and phone number of the Ogden district.","SELECT commander, email, phone FROM District WHERE district_name = 'Ogden'" What is the fewest number of wins that had fewer than 7 draws and more than 30 played?,SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30 Name all students enlisted in the foreign legion.,SELECT name FROM enlist WHERE organ = 'foreign_legion' Who is the visiting team when Minnesota is the home team?,"SELECT visitor FROM table_name_67 WHERE home = ""minnesota""" "What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?",SELECT nation FROM table_name_29 WHERE total > 3 AND bronze > 5 AND silver < 4 What party is this representative in?,SELECT party from representative where representative_id = ( SELECT representative_id from election order by votes asc limit 1 ) How many winners did Halcones uv xalapa have?,"SELECT winners FROM table_name_83 WHERE team = ""halcones uv xalapa""" What is the name of the movie that is rated by most of times?,"SELECT T2.title, T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY COUNT(*) DESC LIMIT 1" What is the average number of silvers for teams ranked 5 with 0 bronze?,"SELECT AVG(silver) FROM table_name_31 WHERE rank = ""5"" AND bronze < 0" Tell me the chip model which has screen mode greater than 2.0 ? And also tell me the company name of that...,"SELECT chip_model, Company_name FROM phone where screen_mode>2" List out the name of the game that the people participated in games id 13.,SELECT DISTINCT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T2.games_id = 13 What's the HR Number when the LMS number is 14757 and has a built of 9/1915?,"SELECT hr_no FROM table_name_75 WHERE built = ""9/1915"" AND lms_no = 14757" Which player played on 07/06/1997?,"SELECT player FROM table_name_41 WHERE date = ""07/06/1997""" "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'" What is the name of the publisher with publisher ID 22?,SELECT publisher_name FROM publisher WHERE publisher_id = 22 What is the verbal noun connected to the participle e-duki?,"SELECT verbal_noun FROM table_12784134_1 WHERE participle = ""e-duki""" What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?,"SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = ""Zinfandel""" Which party was Andrea Ronchi from?,"SELECT party FROM table_name_85 WHERE minister = ""andrea ronchi""" Show the name of buildings that do not have any institution.,SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution) "Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.",SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock) >= 2000 ORDER BY sum(T1.Num_of_stock) DESC what is the date when the home team is st kilda?,"SELECT date FROM table_name_26 WHERE home_team = ""st kilda""" Who are the writers for the episode number in series 129?,SELECT written_by FROM table_21312959_1 WHERE no_in_series = 129 Which customers do not have a first notification of loss record? Give me the customer names.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id How yes votes were there for measure 4? ,SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4 Find the name of the youngest organization.,SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1 what's the party with candidates being silvio conte (r) unopposed,"SELECT party FROM table_1341604_22 WHERE candidates = ""Silvio Conte (R) Unopposed""" What are the different fates of the mission that involved ships from the United States?,"SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = ""United States""" How many end somewhere else?,"SELECT count ( * ) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city ! = ""San Francisco""" Name the most founded for bison,"SELECT MAX(founded) FROM table_27378582_1 WHERE nickname = ""Bison""" "Among all the products that are manufactured in-house, how many of them are salable?",SELECT SUM(FinishedGoodsFlag) FROM Product WHERE MakeFlag = 1 which player are played in highest number of matches,SELECT Player FROM injury_accident order by Number_of_matches desc limit 1 When was the show first aired that was viewed by 3.57 million U.S. viewers?,"SELECT original_air_date FROM table_11694832_1 WHERE us_viewers__millions_ = ""3.57""" What is the language used most often in the songs?,SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 What are the earnings for jim colbert with under 4 wins?,"SELECT COUNT(earnings___) AS $__ FROM table_name_33 WHERE player = ""jim colbert"" AND wins < 4" When slblw(b1) is the sspec number what is the mult.?,"SELECT mult FROM table_18823880_10 WHERE sspec_number = ""SLBLW(B1)""" What's the total attendance for H/A of A and opponents of wolverhampton wanderers?,"SELECT COUNT(attendance) FROM table_name_42 WHERE h___a = ""a"" AND opponents = ""wolverhampton wanderers""" what was the number of candidates when Leon Sacks was incumbent?,"SELECT COUNT(candidates) FROM table_1342256_38 WHERE incumbent = ""Leon Sacks""" How many businesses have a romantic ambiance?,SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value = 'true' AND T1.attribute_name = 'ambience_romantic' what is the college of Steve Niehaus,"SELECT College FROM submission WHERE Author = ""Steve Niehaus""" What is the average selling price of different vendors of the product Hex Nut 5?,SELECT SUM(T1.StandardPrice) / COUNT(T1.BusinessEntityID) FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Hex Nut 5' "With a Time of +1:37.055, which has the lowest Grid?","SELECT MIN(grid) FROM table_name_84 WHERE time = ""+1:37.055""" What is the score when the hight points is Monta Ellis (29)?,"SELECT score FROM table_27755784_8 WHERE high_points = ""Monta Ellis (29)""" How many manhunt beauty contets have been held in france?,"SELECT manhunt_international FROM table_30018460_1 WHERE country_territory = ""France""" Which sea is the shallowest and which country surrounds it?,SELECT DISTINCT T2.Name FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE Sea = ( SELECT Name FROM sea ORDER BY Depth ASC LIMIT 1 ) What are the names of all stations that have more than 10 bikes available and are not located in San Jose?,"SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = ""San Jose""" Name the position of the player from college of virginia,"SELECT position FROM table_name_96 WHERE college = ""virginia""" "Find the object in image 5 where the object with the coordinate of (634, 468).",SELECT OBJ_SAMPLE_ID FROM IMG_OBJ WHERE IMG_ID = 5 AND X = 634 AND Y = 468 List any five female students' names who enlisted for the air force.,SELECT T1.name FROM enlist AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T2.name IS NULL AND T1.organ = 'air_force' LIMIT 5 Find the name of the customers who have at most two orders.,SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2 How about the average?,SELECT avg ( HS ) FROM Player Name the interacting for need of protection,"SELECT interacting__settings_ FROM table_name_87 WHERE need = ""protection""" What is the result at valley parade on 4/7/02?,"SELECT result FROM table_name_50 WHERE venue = ""valley parade"" AND date = ""4/7/02""" What was the score when the away team was brighton & hove albion?,"SELECT score FROM table_name_21 WHERE away_team = ""brighton & hove albion""" what is the general ratings for those movies?,"select T1.director, T1.title, T2.stars from movie as T1 join rating as T2 on T1.mid = T2.mid where T1.mid in ( SELECT mID from movie where director ! = ""Victor Fleming"" ) " What is the total number of projects that was created by the teachers that teach 3-5 grades in Boston Public School District?,SELECT COUNT(projectid) FROM projects WHERE school_district = 'Boston Public School District' AND grade_level = 'Grades 3-5' Return the names and typical buying and selling prices for products that have 'yellow' as their color description.,"SELECT t1.product_name , t1.typical_buying_price , t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""yellow""" "When they were playing the detroit lions at tampa stadium, what was the score?","SELECT result FROM table_name_49 WHERE game_site = ""tampa stadium"" AND opponent = ""detroit lions""" "Count the products that have the color description ""white"" or have the characteristic name ""hot"".","SELECT count(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""white"" OR t3.characteristic_name = ""hot""" What are the total number of the audiences who visited any of the festivals?,SELECT sum(Num_of_Audience) FROM festival_detail Can you also include the location of these circuits?,"SELECT circuitId, location FROM circuits WHERE country = ""France""" "What is the sum of Rank, when Assists is ""82""?",SELECT SUM(rank) FROM table_name_21 WHERE assists = 82 What are the names and addressed of customers who have both New and Pending orders?,"SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""New"" INTERSECT SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""Pending""" "Could you tell me what grade that is, please?","SELECT classroom, grade FROM list GROUP BY classroom ORDER BY count ( * ) DESC LIMIT 1" Please list the first names of the employees who work as Managing Editor.,SELECT T1.fname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Managing Editor' what is the arrival time where the station code is awy?,"SELECT arrival FROM table_14688744_2 WHERE station_code = ""AWY""" "What is the id, line 1, and line 2 of the address with the most students?","SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1" Find the number of funiture types produced by each manufacturer as well as the company names.,"SELECT COUNT(*), t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id" Tell me the format for european union,"SELECT format FROM table_name_99 WHERE region = ""european union""" Find the name of amenities of the dorm where the student with last name Smith is living in.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith' "Which week starts on December 28, 1997?","SELECT week FROM table_name_1 WHERE date = ""december 28, 1997""" "What date was the game that was before week 4 and was attended by over 54,015 people ?",SELECT date FROM table_name_33 WHERE week < 4 AND attendance > 54 OFFSET 015 Name all products that started selling in 2013. State its respective vendor's name.,"SELECT T1.Name, T3.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE STRFTIME('%Y', T1.SellStartDate) = '2013'" What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?,SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' "Which Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28?","SELECT SUM(points) FROM table_name_2 WHERE opponent = ""@ atlanta thrashers"" AND game < 28" what's the wine style with village being puligny-montrachet [d ],"SELECT wine_style FROM table_13981938_1 WHERE village = ""Puligny-Montrachet [d ]""" Who is the original west end performer for the character Neville Craven?,"SELECT original_west_end_performer FROM table_1901751_1 WHERE character = ""Neville Craven""" Are the customers holding coupons with amount 500 bad or good?,SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500 Find the names of all the customers and staff members.,SELECT customer_details FROM customers UNION SELECT staff_details FROM staff What are the results of the incumbent who was first elected in 1996?,SELECT results FROM table_name_79 WHERE first_elected = 1996 Name who directed the air date of 12 july 2010,"SELECT directed_by FROM table_27218002_1 WHERE originalairdate = ""12 July 2010""" What is Beohari's highest number of electorates?,"SELECT MAX(number_of_electorates__2009_) FROM table_name_81 WHERE name = ""beohari""" What was the population of a country with a population density of 14.3/km² (/sqmi)?,"SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = ""14.3/km² (/sqmi)""" What is the platform of the game built in 2006?,"SELECT platform_s_ FROM table_name_53 WHERE year = ""2006""" How many apartments have facilities?,SELECT count ( * ) FROM Apartments WHERE apt_id IN ( SELECT apt_id FROM Apartment_Facilities ) Tweets that were posted from Brazil are in what languague?,SELECT DISTINCT T1.Lang FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.Country = 'Brazil' "Among the Ivy League Schools in 2013, which schools have the highest number of Black students who graduated within 150 percent of normal/expected time who were seeking a bachelor's/equivalent cohort at 4-year institutions?","SELECT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' ) AND T2.year = 2013 AND T2.race = 'B' AND T2.cohort = '4y bach' ORDER BY T2.grad_cohort DESC LIMIT 1" "During footscray's home match, who was the away team?","SELECT away_team AS score FROM table_name_33 WHERE home_team = ""footscray""" What are the titles of segment b when segment c is standby generators (part 1)?,"SELECT segment_b FROM table_15187735_21 WHERE segment_c = ""Standby Generators (Part 1)""" What year was Wilfred Lau separated because Capital stopped recording music?,"SELECT year_separated FROM table_name_74 WHERE reason_for_separation = ""capital stopped recording music"" AND english_name = ""wilfred lau""" what is the minimum of 60 -64?,SELECT MIN(60 AS _to_64) FROM table_16457934_4 What are the names of tourist attraction that Alison visited but Rosalind did not visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Alison"" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Rosalind""" "Which highest pick number's name was Adam Podlesh, when the overall was less than 101?","SELECT MAX(pick__number) FROM table_name_2 WHERE name = ""adam podlesh"" AND overall < 101" For which league is the open cup the quarter finals,"SELECT league FROM table_1214035_1 WHERE open_cup = ""Quarter Finals""" What is the half-life discovered in 2003?,"SELECT half_life FROM table_name_22 WHERE discovery_year = ""2003""" Where is the University that is also called Hawks?,"SELECT location FROM table_19210115_1 WHERE nickname = ""Hawks""" Who is the writer for the episode with the most 10 star votes?,SELECT T1.person FROM Credit AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.role = 'Writer' AND T2.stars = 10 GROUP BY T1.person ORDER BY COUNT(*) DESC LIMIT 1; How many distinct order ids correspond to each product?,"SELECT product_id , count(DISTINCT order_id) FROM Order_items GROUP BY product_id" List the names of products that are not in any event.,SELECT Product_Name FROM Products WHERE Product_ID NOT IN (SELECT Product_ID FROM Products_in_Events) How many distinct courses are enrolled in by students?,SELECT count(course_id) FROM Student_Course_Enrolment What is the letter name for the Asomtavruli ⴙ?,"SELECT letter_name FROM table_name_74 WHERE asomtavruli = ""ⴙ""" Please list the official full names of all the current legislators who were once a senator during his or her terms.,SELECT T2.official_full_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.state_rank IS NOT NULL What about the smallest?,SELECT * FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count ( * ) LIMIT 1 Show the city and the number of branches opened before 2010 for each city,"SELECT city , count ( * ) FROM branch WHERE open_year < 2010 GROUP BY city" What is the sum of Evening Gown scores where the swimsuit score is higher than 9.4 and the average score is lower than 9.733?,SELECT SUM(evening_gown) FROM table_name_88 WHERE swimsuit > 9.4 AND average < 9.733 Show the date of the tallest perpetrator.,SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 What is the rank number for a placing of 28.5 and a total less than 92.7?,"SELECT COUNT(rank) FROM table_name_30 WHERE placings = ""28.5"" AND total < 92.7" "What is the year First Elected, when the Party is Alp, and when the State is qld?","SELECT first_elected FROM table_name_17 WHERE party = ""alp"" AND state = ""qld""" Hi there! Can you show me a list of all of the different document names and the associated access count for each of them?,"SELECT document_name, access_count FROM documents" What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio?,"SELECT elevated FROM table_name_7 WHERE elevator = ""nicholas iii"" AND cardinalatial_order_and_title = ""cardinal-deacon of s. eustachio""" Find the market shares and names of furnitures which no any company is producing in our records.,"SELECT Market_Rate , name FROM furniture WHERE Furniture_ID NOT IN (SELECT Furniture_ID FROM furniture_manufacte)" Give the number of students who enlisted in marines and have payment due.,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T1.bool = 'pos' AND T2.organ = 'marines' "Which event was in round 1, resulted in a win, and a record of 15-4?","SELECT event FROM table_name_70 WHERE round = 1 AND res = ""win"" AND record = ""15-4""" Give the total amount of rent for the movie Clockwork Paradice.,SELECT SUM(T1.amount) FROM payment AS T1 INNER JOIN rental AS T2 ON T1.rental_id = T2.rental_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T4.title = 'CLOCKWORK PARADICE' What type is the misurina to bassano del grappa course?,"SELECT type FROM table_name_24 WHERE course = ""misurina to bassano del grappa""" "What was the Peak Position on July 11, 2001?","SELECT peak_position FROM table_name_12 WHERE date = ""july 11, 2001""" How much money did the company Neurotica request?,"SELECT money_requested__£_ FROM table_name_39 WHERE company_or_product_name = ""neurotica""" "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.","SELECT avg(capacity) , min(capacity) , max(capacity) FROM cinema WHERE openning_year >= 2011" What is the name of the student with the longest duration of absence?,SELECT name FROM longest_absense_from_school WHERE month = ( SELECT MAX(month) FROM longest_absense_from_school ) what is the least gold when the rank is 10 and silver is less than 0?,"SELECT MIN(gold) FROM table_name_71 WHERE rank = ""10"" AND silver < 0" Show all party names and the number of members in each party.,"SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" Who directed the episode with 3.19 million u.s. viewers?,"SELECT directed_by FROM table_12722302_2 WHERE us_viewers__million_ = ""3.19""" What is the first name of each student enrolled in class ACCT-211?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.","SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2" How many devices are there?,SELECT count(*) FROM device What's Steve Langdon's naitionality?,"SELECT nationality FROM table_1965650_4 WHERE player = ""Steve Langdon""" How many years have a position of 2nd?,"SELECT COUNT(year) FROM table_name_86 WHERE position = ""2nd""" "Count the total number of policies used by the customer named ""Dayana Robel"".","SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Dayana Robel""" What is the Score of the Competition with a Result of 5-0?,"SELECT score FROM table_name_7 WHERE result = ""5-0""" What is the the phone number of Nancy Edwards?,"SELECT phone FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" What is the boiler pressure for the Hesperus model?,"SELECT boiler_pressure FROM table_name_58 WHERE name = ""hesperus""" What is the phone number of Kerry Pryor?,SELECT phone_number FROM student WHERE l_name = 'Pryor' AND f_name = 'Kerry' Name the Home captain for venue of the oval,"SELECT home_captain FROM table_name_14 WHERE venue = ""the oval""" "What are all the section titles of the document named ""David CV""?","SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV""" How many employees is a UK citizen and are they all covering the same region?,"SELECT COUNT(T1.EmployeeID), T3.RegionID FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.Country = 'UK' GROUP BY T3.RegionID" Which NHL team got pick 89?,"SELECT nhl_team FROM table_name_49 WHERE pick__number = ""89""" What Surface had a Rally HQ of salou?,"SELECT surface FROM table_name_58 WHERE rally_hq = ""salou""" What are the notes for the Mandarin Chinese program on CTV earlier than 2013?,"SELECT notes FROM table_name_40 WHERE year < 2013 AND language = ""mandarin chinese"" AND network = ""ctv""" "Show the station name with the greatest number of trains, please.",SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count ( * ) DESC LIMIT 1 Name the manner of departyre for 26 january date of appointment,"SELECT manner_of_departure FROM table_name_4 WHERE date_of_appointment = ""26 january""" Which grid is constructed by Maserati and driven by Oscar Alfredo Gálvez?,"SELECT grid FROM table_name_74 WHERE constructor = ""maserati"" AND driver = ""oscar alfredo gálvez""" "Among the restaurants being inspected in 2016, how many of them are in San Francisco?","SELECT COUNT(DISTINCT T2.business_id) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2016' AND T2.city IN ('San Francisco', 'SAN FRANCISCO', 'SF', 'S.F.')" How much does the dish on page 2 of menu ID 12474 cost?,SELECT T1.price FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T2.id = T1.menu_page_id WHERE T2.menu_id = 12474 AND T2.page_number = 2 Which rooms cost between 120 and 150? Give me the room names.,SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150 Name the IHSAA class with county 18 delaware and tigers mascot,"SELECT ihsaa_class FROM table_name_82 WHERE _number___county = ""18 delaware"" AND mascot = ""tigers""" Find all the players' first name and last name who have empty death record.,"SELECT name_first , name_last FROM player WHERE death_year = '';" "Hom many albums does the artist ""Metallica"" have?","SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""Metallica""" "What is the average points of players from club with name ""AIB"".","SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = ""AIB""" Show me the name of the club that has the id number 3 ?,select name from club where Club_ID = '3' "List down the DOB of players who received the ""man of the match"" award.",SELECT T2.DOB FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match "What Title has a Presentation of Credentials of October 4, 1988?","SELECT title FROM table_name_90 WHERE presentation_of_credentials = ""october 4, 1988""" What is the name and the average gpa of department whose students have the highest average gpa?,"SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1" Which retitled network has a Show of supermarket sweep?,"SELECT retitled_as_same FROM table_name_92 WHERE show = ""supermarket sweep""" What is the Record on april 13?,"SELECT record FROM table_name_32 WHERE date = ""april 13""" What is McMaster College's pick number?,"SELECT MIN(pick__number) FROM table_10960039_1 WHERE college = ""McMaster""" How much is the net profit when the revenue is 150.6 million dollars?,"SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = ""150.6""" When was incumbent John N. Tillman first elected?,"SELECT MIN(first_elected) FROM table_1346118_4 WHERE incumbent = ""John N. Tillman""" What is the 1995 value with a Jiangxi year and a 2008 value bigger than 67?,"SELECT SUM(1995) FROM table_name_7 WHERE year = ""jiangxi"" AND 2008 > 67" What Rider has a Grid of 21?,SELECT rider FROM table_name_91 WHERE grid = 21 The release from Simply Vinyl label was on what date?,"SELECT date FROM table_name_91 WHERE label = ""simply vinyl""" What is the highest rank of the athlete with a Taijiquan higher than 9.64 and a total more than 19.69?,SELECT MAX(rank) FROM table_name_95 WHERE taijiquan > 9.64 AND total > 19.69 What are the student ID and login name of the student who are enrolled in the most courses?,"SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" Write the shipping company name with the telephone number of (503) 555-9931.,SELECT CompanyName FROM Shippers WHERE Phone = '(503) 555-9931' What record has a score of 111-96?,"SELECT record FROM table_name_56 WHERE score = ""111-96""" Name the date for margalita chakhnashvili salome devidze,"SELECT date FROM table_16893837_4 WHERE opponents = ""Margalita Chakhnashvili Salome Devidze""" Name the institution for purple aces,"SELECT institution FROM table_24216139_2 WHERE nickname = ""Purple Aces""" How many are there that has made at least one payment?,select count ( * ) from ( SELECT * FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ) what is the quantity when the year of manufacture is 1900 and the class is mc?,"SELECT quantity FROM table_name_20 WHERE year_s__of_manufacture = ""1900"" AND class = ""mc""" What is the average number of students for each advisor?,SELECT CAST(COUNT(p_id) AS REAL) / COUNT(DISTINCT p_id_dummy) AS avgnum FROM advisedBy GROUP BY p_id_dummy What is the lowest population in which 28.0% are democrat?,"SELECT MIN(population) FROM table_27003223_4 WHERE democratic = ""28.0%""" What are the names of all songs that have a lower rating than some song of blues genre?,"SELECT song_name FROM song WHERE rating < (SELECT MAX(rating) FROM song WHERE genre_is = ""blues"")" How many airports has pilot Thompson driven an aircraft?,SELECT count ( * ) FROM airport WHERE id IN ( SELECT airport_id FROM flight WHERE pilot = 'Thompson' ) "Who was the actor that played in the movie ""Batman"" with the longest screentime?",SELECT T2.Name FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID INNER JOIN movie AS T3 ON T3.MovieID = T1.MovieID WHERE T3.Title = 'Batman' ORDER BY T1.screentime DESC LIMIT 1 Tell me the scoring average for year less than 1998 and wins more than 3,SELECT scoring_average FROM table_name_92 WHERE year < 1998 AND wins > 3 how about the most number of routes that an airline runs?,SELECT count ( * ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count ( * ) DESC LIMIT 1 What is the D48 when D 43 is plurality ↑??,"SELECT d_48 FROM table_name_27 WHERE d_43 = ""plurality ↑""" What is the average Rank for a lane smaller than 3 with a nationality of Australia?,"SELECT AVG(rank) FROM table_name_55 WHERE lane < 3 AND nationality = ""australia""" How many ends lost when skip is Kevin Koe and stolen ends are more than 6?,"SELECT COUNT(ends_lost) FROM table_name_62 WHERE skip = ""kevin koe"" AND stolen_ends > 6" "Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943?","SELECT country FROM table_name_36 WHERE material = ""concrete"" AND span_metres < 270 AND span_feet > 837 AND year_opened = ""1943""" "What is Winner, when Date is 5 Sep?","SELECT winner FROM table_name_43 WHERE date = ""5 sep""" How many courses were taught by more than 4 people?,SELECT COUNT(*) FROM ( SELECT COUNT(course_id) FROM taughtBy GROUP BY course_id HAVING COUNT(course_id) > 4 ) How many fourth places were there in 2003?,"SELECT COUNT(fourth_place) FROM table_1149495_1 WHERE year = ""2003""" Who had the high rebounds in the game with a final score of w 140-108?,"SELECT high_rebounds FROM table_17382360_9 WHERE score = ""W 140-108""" In which years cars were produced weighing no less than 3000 and no more than 4000 ?,select distinct year from cars_data where weight between 3000 and 4000; "When Gary Player was the runner-up, what was the margin of victory?","SELECT margin_of_victory FROM table_name_28 WHERE runner_s__up = ""gary player""" Which students have allergies? | Do you want to return their first and last names or other info? | Just names,"SELECT t2.fname , t2.lname FROM Has_allergy AS T1 JOIN Student as T2 on T1.StuID = T2.StuID" How many interactions did Lorri Simons have with medical professionals between 2010 and 2017? What percentage of encounters are attributed to prenatal visits?,"SELECT COUNT(T1.patient) , CAST(SUM(CASE WHEN T2.DESCRIPTION = 'Prenatal visit' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.patient) FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Lorri' AND T1.last = 'Simonis' AND strftime('%Y', T2.DATE) BETWEEN '2010' AND '2017'" What are the student ids for students over 20 years old?,SELECT StuID FROM Student WHERE age > 20 How many singers are from each country?,"SELECT country , count(*) FROM singer GROUP BY country" How many documents are with document type code BK for each product id?,"SELECT count(*) , project_id FROM Documents WHERE document_type_code = ""BK"" GROUP BY project_id" "What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?","SELECT score FROM table_name_81 WHERE to_par > 15 AND money___$__ > 116 AND player = ""billy burke""" Which Lead has Hans Frauenlob as a Third?,"SELECT lead FROM table_name_62 WHERE third = ""hans frauenlob""" How many customers are named Charles in Sacramento?,SELECT COUNT(CustomerID) FROM customers WHERE First = 'Charles' AND City = 'Sacramento' What are the keywords of the least popular episode?,SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id ORDER BY T1.votes LIMIT 1; how many trips started from south van ness and ended at san fransisco,"SELECT count ( * ) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""South Van Ness"" AND T3.city = ""San Fransisco""" What is the distance for the 5 September race?,"SELECT distance FROM table_name_69 WHERE date = ""5 september""" Name number first elected for tennessee 2?,"SELECT COUNT(first_elected) FROM table_1341586_43 WHERE district = ""Tennessee 2""" what records have a score of l 109–116 2 ot,"SELECT record FROM table_11964047_7 WHERE score = ""L 109–116 2 OT""" What Japanese show on NHK had average ratings of 9.2%?,"SELECT japanese_title FROM table_name_26 WHERE tv_station = ""nhk"" AND average_ratings = ""9.2%""" What is the average rating of songs for each language?,"SELECT avg(rating) , languages FROM song GROUP BY languages" "What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?","SELECT white FROM table_name_20 WHERE black = ""anand"" AND result = ""½–½"" AND moves = 39 AND opening = ""d37 queen's gambit declined""" What is the average number of students for schools with a pupil to teacher ratio of 25.1?,SELECT AVG(students) FROM table_name_25 WHERE pupil_teacher_ratio = 25.1 "Among all the customers in Brazil, how many of them have an account balance of less than 1000?",SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'BRAZIL' AND T1.c_acctbal < 1000 List the Episode of all TV series sorted by rating.,SELECT Episode FROM TV_series ORDER BY rating How many of the legislators are female?,SELECT COUNT(gender_bio) FROM current WHERE gender_bio = 'F' Give customer No.106936's region name.,SELECT T3.r_name FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN region AS T3 ON T1.n_regionkey = T3.r_regionkey WHERE T2.c_custkey = 106936 Which School's Mascot is Raiders?,"SELECT school FROM table_name_28 WHERE mascot = ""raiders""" Which stage had tabriz petrochemical team in the team classification?,"SELECT stage FROM table_name_68 WHERE team_classification = ""tabriz petrochemical team""" What is the earliest season that Pisico Bình ðinh is team 2?,"SELECT MIN(season) FROM table_name_95 WHERE team_2 = ""pisico bình ðinh""" Name the most game for record 4-0,"SELECT MAX(game) FROM table_22815259_1 WHERE record = ""4-0""" List the names of buildings with at least 200 feet of height and with at least 20 floors.,SELECT name FROM building WHERE height_feet >= 200 AND floors >= 20 "When was the outcome runner-up with a score of 4–6, 3–6?","SELECT date FROM table_name_49 WHERE outcome = ""runner-up"" AND score = ""4–6, 3–6""" What is listed for the Class that's got a Team of Cagiva and Points of 4?,"SELECT class FROM table_name_17 WHERE team = ""cagiva"" AND points = 4" Who is the most valuable player in QMJHL league during the 2004-2005 season?,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON BETWEEN '2004' AND '2005' AND T1.LEAGUE = 'QMJHL' ORDER BY T1.P DESC LIMIT 1 What is the total number of byes when the wins were 9?,SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9 What are the wines that have prices lower than 50 and have appelations in Monterey county?,"SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Monterey"" AND T2.price < 50" when was the loan ended when the country is ghana?,"SELECT ended FROM table_name_37 WHERE country = ""ghana""" "List the distinct names of the instructors, ordered by name.",SELECT DISTINCT name FROM instructor ORDER BY name What is the overall pick number that Derrick Harvey was when he was picked in a round after round 1?,"SELECT MIN(overall) FROM table_name_26 WHERE name = ""derrick harvey"" AND round > 1" Which Radon has Atomic property of outer shell electron configuration?,"SELECT radon FROM table_name_65 WHERE atomic_property = ""outer shell electron configuration""" What college did delray brooks go to?,"SELECT college FROM table_name_23 WHERE player = ""delray brooks""" Which house has an abbreviation of D?,"SELECT house FROM table_name_24 WHERE abbr = ""d""" Which college did the player who went to the Boston Patriots go to?,"SELECT college FROM table_name_8 WHERE team = ""boston patriots""" What was the session at the circuit of lowes motor speedway?,"SELECT session FROM table_name_70 WHERE circuit = ""lowes motor speedway""" "What are the first and last names of all students with the sex ""F""?","SELECT fname,lname FROM Student WHERE sex = ""F""" How many Liquidat (c) have a purpose of dual (machine & hand composition)?,"SELECT COUNT(liquidat__) AS °c_ FROM table_name_94 WHERE purpose = ""dual (machine & hand composition)""" How many reviews made by user whose ID is 3 are long?,SELECT COUNT(review_length) FROM Reviews WHERE user_id = 3 AND review_length LIKE 'Long' what's the department with incumbent being enrique ona,"SELECT department FROM table_1331313_1 WHERE incumbent = ""Enrique Ona""" Construction start of phase ii has what operation start?,"SELECT operation_start FROM table_name_51 WHERE construction_start = ""phase ii""" list the first name and last name of students with grade A,"SELECT T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN Enrolled_in AS T2 ON T1.STUID = T2.STUID WHERE T2.GRADE = ""A""" "After pick number 158, what is the next round a USC player was picked?","SELECT MIN(round) FROM table_name_20 WHERE school = ""usc"" AND pick > 158" What is the average price of cars with 8 cylinders?,SELECT AVG(T2.price) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.cylinders = 8 Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.,"SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != ""COVIN"" AND T2.lastname != ""JEROME""" "State the gender of users who use the device ""-9222956879900150000"".",SELECT gender FROM gender_age WHERE device_id = -9222956879900150000 What are the names of shops that do not have any devices in stock?,SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock) "What is Away Team, when Tie No is 4?","SELECT away_team FROM table_name_16 WHERE tie_no = ""4""" Which vocal type is the most frequently appearing type?,SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 List the project details of the projects with the research outcome described with the substring 'Published'.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%' What name has a qual 2 of 1:46.025?,"SELECT name FROM table_name_33 WHERE qual_2 = ""1:46.025""" "What is the Region that has a Total GDP (€ bn ) of €11,745.353?","SELECT region FROM table_name_58 WHERE total_gdp__€_bn__ = ""€11,745.353""" List down the districts belong to the country headed by Adolf Ogi.,SELECT T2.District FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Adolf Ogi' When jordan fa cup is the tournament how many draws?,"SELECT COUNT(draws) FROM table_2985714_2 WHERE tournament = ""Jordan FA Cup""" What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?,SELECT airdate FROM table_name_34 WHERE episode_no < 4 AND bbc_one_weekly_ranking = 6 Please show me the starting years for them,select Starting_Year from technician where Team = 'CLE' or team = 'CWS' "Among papers that were published in 2005, provide the author name of paper with key words of ""LOAD; IDE; SNP; haplotype; asso- ciation studies"".",SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 2005 AND T1.Keyword = 'KEY WORDS: LOAD IDE SNP haplotype asso- ciation studies' Name the average year for manly-warringah sea eagles,"SELECT AVG(year) FROM table_name_13 WHERE opponent = ""manly-warringah sea eagles""" "When 1 active, 1 inactive is the canadian chapters how many founding dates are there?","SELECT COUNT(founding_date) FROM table_28436909_4 WHERE canadian_chapters = ""1 Active, 1 Inactive""" What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?,"SELECT winning_score FROM table_name_42 WHERE runner_s__up = ""beth daniel"" AND margin_of_victory = ""7 strokes""" What are the names of the wrestlers and their elimination times?,"SELECT T1.Time,T2.name FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID" What business category is the Yelp business which got the most 5 star reviews in?,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Reviews AS T4 ON T3.business_id = T4.business_id WHERE T4.review_stars = 5 GROUP BY T1.category_name ORDER BY COUNT(T1.category_name) DESC LIMIT 1 Which air date has 5 for # in season?,SELECT airdate FROM table_name_50 WHERE _number_in_season = 5 Please list the names of all the suppliers for the part with the highest retail price.,SELECT T3.s_phone FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_name = 'hot spring dodger dim light' ORDER BY T1.p_size DESC LIMIT 1 Which team won by wickets in match ID 335993?,SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Player_Match AS T3 ON T1.Team_Id = T3.Team_Id INNER JOIN Win_By AS T4 ON T2.Win_Type = T4.Win_Id WHERE T2.Match_Id = '335993' GROUP BY T1.Team_Name How many percentage figures are given for the urban population when the total population number is 14685?,"SELECT COUNT(urban), __percentage FROM table_16645_1 WHERE population__000_ = 14685" Name the sum of year for 2nd position for junior race,"SELECT SUM(year) FROM table_name_40 WHERE position = ""2nd"" AND event = ""junior race""" "What is the sum of Points, when the Performer is fe-mail?","SELECT SUM(points) FROM table_name_64 WHERE performer = ""fe-mail""" What position does Eric Hosmer play?,"SELECT Position FROM player WHERE Player = ""Eric Hosmer""" Which sales person achieved the highest sales YTD? What is the projected yearly sales quota in 2011 for this person?,"SELECT T1.BusinessEntityID, SUM(T1.SalesQuota) FROM SalesPerson AS T1 INNER JOIN SalesPersonQuotaHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T2.QuotaDate) = '2011' GROUP BY T1.BusinessEntityID ORDER BY SUM(T1.SalesYTD) DESC LIMIT 1" what is the rating of resolution 512,SELECT rating from song where resolution = 512 "What is the Studio of the Film with a Gross rental of $7,500,000?","SELECT studio FROM table_name_33 WHERE gross_rental = ""$7,500,000""" What types of stations are located in Cebu?,"SELECT station_type FROM table_28794440_1 WHERE location = ""Cebu""" What about the Accounting department?,"SELECT count ( * ) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Accounting""" List the number of customers that did not have any payment history.,SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments ); what race name had a uci rating of cn?,"SELECT race_name FROM table_27887723_1 WHERE uci_rating = ""CN""" Which film was made before 2002?,SELECT film FROM table_name_1 WHERE year < 2002 What club scored 143 goals?,"SELECT club FROM table_name_71 WHERE goals = ""143""" How much is the average score for New York state?,"SELECT average FROM table_12338595_1 WHERE state = ""New York""" "When nº is 3, what are all the ministires?",SELECT COUNT(ministries) FROM table_21422977_1 WHERE nº = 3 Find the types and details for all premises and order by the premise type.,"SELECT premises_type , premise_details FROM premises ORDER BY premises_type" Who is the owner of the radio frequency of 0 101.5 fm?,"SELECT owner FROM table_name_90 WHERE frequency = ""0 101.5 fm""" Perfect! Can you tell me what is the total combined budget of these two departments?,select sum ( Budget_in_Billions ) from department where creation = ( SELECT creation FROM department GROUP BY creation ORDER BY count ( * ) DESC LIMIT 1 ) Name the numbers of the nba draft where the player went to kentucky,"SELECT nba_draft FROM table_11677760_31 WHERE college = ""Kentucky""" Who directed the episode with production code 4akj08?,"SELECT directed_by FROM table_19929970_1 WHERE production_code = ""4AKJ08""" What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM savings) List player's first name and last name who received salary from team Washington Nationals in both 2005 and 2007?,"SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'" How many airlines are there?,SELECT count ( * ) FROM airlines What's the United States team that played for the Grizzlies in 1995-1996?,"SELECT school_club_team FROM table_name_51 WHERE nationality = ""united states"" AND years_for_grizzlies = ""1995-1996""" "What is the date of enrollment in the course named ""advanced database""?","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 = ""advanced database""" Please give the order number and product name of the order which has the lowest unit price.,"SELECT T1.OrderNumber, T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE REPLACE(T1.`Unit Price`, ',', '') = ( SELECT REPLACE(T1.`Unit Price`, ',', '') FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID ORDER BY REPLACE(T1.`Unit Price`, ',', '') LIMIT 1 )" What is the highest attendance for the match against west ham united at the venue of a?,"SELECT MAX(attendance) FROM table_name_42 WHERE venue = ""a"" AND opponent = ""west ham united""" What is the elevation and height for Halfbeak?,"SELECT elevation_ + _height FROM table_name_21 WHERE name = ""halfbeak""" Which title has 147 as no. in series?,SELECT title FROM table_2818164_7 WHERE no_in_series = 147 What is the last date of the staff leaving the projects?,SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1 How many pairs of positively correlated genes are both non-essential?,SELECT COUNT(T2.GeneID2) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr > 0 AND T1.Essential = 'Non-Essential' What is the total trip duration made within Palo Alto city? Convert the duration to hour.,SELECT CAST(SUM(T1.duration) AS REAL) / 3600 FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Palo Alto' Where were less than 72 goals made and more than 40 assists made?,SELECT venue FROM table_name_74 WHERE goals < 72 AND assists > 40 Provide the ranking system ID of the Center for World University Rankings.,SELECT id FROM ranking_system WHERE system_name = 'Center for World University Rankings' what is the City Population of Attock District,"SELECT city_population FROM district where District_name = ""Attock District""" What is the venue of the match on 5 April 2000?,"SELECT venue FROM table_name_45 WHERE date = ""5 april 2000""" "What was the earliest year that had a location of Brookline, Massachusetts?","SELECT MIN(year) FROM table_name_78 WHERE location = ""brookline, massachusetts""" List all the directions of the trains that have empty cars.,SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.load_num = 0 Sort all the distinct product names in alphabetical order.,SELECT DISTINCT product_name FROM product ORDER BY product_name Which player gradyated from Florida State?,"SELECT player FROM table_name_76 WHERE school_club_team = ""florida state""" "On what Date is the Blue Coalition 8,80%?","SELECT date FROM table_name_62 WHERE blue_coalition = ""8,80%""" Under which categories is Yelp_Business no. 1?,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T2.business_id = 1 Can you display only the number of rooms currently in the table?,SELECT room_number FROM classroom WHERE capacity > 50 find the check in and out for the code 10105,"SELECT checkin, checkout FROM Reservations WHERE code = 10105" In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?,"SELECT MIN(year) FROM table_22514845_4 WHERE reporters = ""Howard Cosell and Jack Whitaker"" AND s_analyst = ""Bill Hartack""" "Find the emails of the user named ""Mary"".",SELECT email FROM user_profiles WHERE name = 'Mary' What is the minimum 2010 population of Edgewater?,"SELECT MIN(population__2010_) FROM table_249512_2 WHERE place_name = ""Edgewater""" Name the date for game 8,SELECT date FROM table_21091157_1 WHERE game = 8 "If the Original Air Date is 10January2008, what directors released on that date?","SELECT director FROM table_11642945_1 WHERE original_air_date = ""10January2008""" How many trips stated from a station in Mountain View and ended at one in Palo Alto?,"SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""Mountain View"" AND T3.city = ""Palo Alto""" How many movie lists were created by user 83373278 when he or she was a subscriber?,SELECT COUNT(*) FROM lists_users WHERE user_id = 83373278 AND user_subscriber = 1 What is the average quantity of Ikura ordered in one order?,SELECT CAST(SUM(T2.Quantity) AS REAL) / COUNT(T2.OrderID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Ikura' "Give the web site address for the school in ""PA"" state with the highest latitude.",SELECT DISTINCT T1.site FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'PA' AND T1.lat_y = ( SELECT MAX(T1.lat_y) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'PA' ) Calculate the percentage of recipes with no cholesterol included and have a cooking time less than 20 minutes among all recipes.,SELECT CAST(SUM(CASE WHEN T1.cook_min < 20 AND T2.cholestrl = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id Who was the winner of Stage 9 when then general classification was Danilo Di Luca?,"SELECT winner FROM table_name_60 WHERE general_classification = ""danilo di luca"" AND stage = ""9""" What is the position for Jani Lajunen?,"SELECT position FROM table_name_78 WHERE player = ""jani lajunen""" Calculate the percentage of country which gained independence as republic after 1970.,"SELECT CAST(SUM(CASE WHEN Government = 'republic' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Country) FROM politics WHERE STRFTIME('%Y', Independence) > '1970'" Show the status shared by cities with population bigger than 1500 and smaller than 500.,SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500 What club had 0 goals?,SELECT club FROM table_name_4 WHERE goals = 0 How many tries for did the club with a 3 losing bonus and 45 points have?,"SELECT tries_for FROM table_name_12 WHERE losing_bonus = ""3"" AND points = ""45""" what is the product type code for red jeans,"SELECT distinct ( product_type_code ) FROM products WHERE product_name = ""red jeans""" What is the maximum total amount paid by a customer? List the customer id and amount.,"SELECT customer_id , sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1" Show the different countries and the number of members from each.,"SELECT Country , COUNT(*) FROM member GROUP BY Country" Which Time has a Grid of 19?,SELECT time FROM table_name_59 WHERE grid = 19 Count the number of exhibitions that happened in or after 2005.,SELECT count(*) FROM exhibition WHERE YEAR >= 2005 How many students does LORIA ONDERSMA teaches?,"SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""LORIA"" AND T2.lastname = ""ONDERSMA""" What is the latest year when the best finish is 2 and the scoring average is less than 71.24?,"SELECT MAX(year) FROM table_name_51 WHERE best_finish = ""2"" AND scoring_average < 71.24" What was the record on the game played on July 1?,"SELECT record FROM table_18894744_6 WHERE date = ""July 1""" What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)?,"SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = ""Kansas City Spurs (110 points)""" List the names of all the distinct customers who bought a keyboard.,"SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = ""keyboard""" What year did was the Inside Soap Awards won?,"SELECT AVG(year) FROM table_name_41 WHERE result = ""won"" AND award = ""inside soap awards""" "what is the date when the location attendance is energysolutions arena 19,911?","SELECT date FROM table_27715173_8 WHERE location_attendance = ""EnergySolutions Arena 19,911""" "How many users who have joined Yelp since ""2005"" but have no fans?",SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2005 AND user_fans LIKE 'None' What is the room number of Chemistry?,"SELECT Room FROM DEPARTMENT WHERE DName = ""Chemistry""" "What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?","SELECT gdp_2012_millions_of_euro FROM table_name_51 WHERE population_in_millions < 1.3 AND gdp__nominal__per_capita_2012_euro = ""20,700(p)""" Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?,SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 what artist cam from uruguay,"SELECT artist FROM table_name_81 WHERE country = ""uruguay""" What is the evening gown score for the contestant from Mississippi?,"SELECT evening_gown FROM table_name_4 WHERE state = ""mississippi""" What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?,SELECT MAX(population__stanthorpe_) FROM table_12584173_1 WHERE population__rosenthal_ = 1548 "How many ""cute"" type of compliments does user No. 57400 get?",SELECT COUNT(T1.compliment_type) FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.compliment_type LIKE 'cute' AND T2.user_id = 57400 Name the class A with school year of 2004-05,"SELECT class_a FROM table_name_59 WHERE school_year = ""2004-05""" Position of running back involves which college?,"SELECT college FROM table_name_57 WHERE position = ""running back""" "What tournament has a 2010 of 1r, and a 2008 of 1r?","SELECT tournament FROM table_name_4 WHERE 2010 = ""1r"" AND 2008 = ""1r""" Can you tell me which one of them do not have TV Lounge?,SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' What are the distinct positions of the players from a country whose capital is Dublin?,"SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = ""Dublin""" How many nominations have Billy Kimball received in 2010 for The simpson 20s: Season 20?,"SELECT COUNT(award_id) FROM Award WHERE person = 'Billy Kimball' AND SUBSTR(year, 1, 4) = '2010' AND result = 'Nominee';" What payment method did that customer use?,SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) LIMIT 1 What player has 72-67-71=210 as the score?,SELECT player FROM table_name_41 WHERE score = 72 - 67 - 71 = 210 How many trains have 'Express' in their names?,"SELECT count(*) FROM train WHERE name LIKE ""%Express%""" List at least 10 students who have no payment due and are enlisted in Fire Department organization.,SELECT T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T1.bool = 'neg' AND T2.organ = 'fire_department' LIMIT 10 What name has 50 as the number?,"SELECT name FROM table_name_54 WHERE number = ""50""" "Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.","SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC" "Based on all user compliments, find the percentage of low number of compliments on all compliments ID.",SELECT CAST(SUM(CASE WHEN number_of_compliments = 'Low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(user_id) FROM Users_compliments How many male engineers are there?,"SELECT count ( * ) from person where gender = ""male"" and job = ""engineer""" "what was the opponent on november 14, 2005?","SELECT opponent FROM table_name_91 WHERE date = ""november 14, 2005""" List down the game ID of games with genre ID 2.,SELECT T.id FROM game AS T WHERE T.genre_id = 2 Tell me Regional Population and GDP for City ID 2 ?,"SELECT regional_population, GDP FROM city WHERE city_id = 2" Tell me the previous rank for italy with points more than 100,"SELECT Previous AS rank FROM table_name_92 WHERE nationality = ""italy"" AND points > 100" "How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?","SELECT SUM(votes) FROM table_name_93 WHERE draw < 4 AND artist = ""yvetta kadakas & ivo linna""" "what is the highest pick number of the CFL team, the winnipeg blue bombers?","SELECT MAX(pick__number) FROM table_name_42 WHERE cfl_team = ""winnipeg blue bombers""" What genders can be residents of Dorm-plex 2000?,"SELECT gender from dorm where dorm_name = ""Dorm-plex 2000""" What is the highest enrollment schools that joined the mac in 1997?,SELECT MAX(enrollment) FROM table_261906_2 WHERE joined_mac = 1997 For which tournament was the margin of victory 7 strokes?,"SELECT tournament FROM table_name_50 WHERE margin_of_victory = ""7 strokes""" "Describe the product names delivered in 2021 for the customer ""Sundial"".",SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.DeliveryDate LIKE '%/%/21' AND T1.`Customer Names` = 'Sundial ' THEN T3.`Product Name` END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products T3 ON T3.ProductID = T2._ProductID ) WHERE T IS NOT NULL what investing dragons aired on episode 10?,"SELECT investing_dragon_s_ FROM table_name_31 WHERE episode = ""episode 10""" "What Tournament had a Score of 6–3, 2–6, 6–3?","SELECT tournament FROM table_name_13 WHERE score = ""6–3, 2–6, 6–3""" What are the x and y coordinates of all the images with a prediction relationship class id of 98?,"SELECT T2.X, T2.Y FROM IMG_REL AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.IMG_ID = T2.IMG_ID WHERE T1.PRED_CLASS_ID = 98" In which county can you find the city with the highest number of females?,SELECT T4.county FROM zip_data AS T3 INNER JOIN country AS T4 ON T3.zip_code = T4.zip_code GROUP BY T4.county ORDER BY T3.female_population DESC LIMIT 1 What is the name of the menu with the highest number of pages?,SELECT T1.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id GROUP BY T2.menu_id ORDER BY COUNT(T2.page_number) DESC LIMIT 1 Which guest performer has a track length of 5:49?,"SELECT guest_performer FROM table_name_8 WHERE time = ""5:49""" and the role code with the least employees?,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count ( * ) ASC LIMIT 1 What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?,"SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = ""20' 50.62 108.608mph""" Who constructed the car that has a Time/Retired of +2:06.0?,"SELECT constructor FROM table_name_67 WHERE time_retired = ""+2:06.0""" "Of the matches in all seasons of the Bundesliga division, how many of them ended with a tie?",SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'D' "Find the names of the clubs that have at least a member from the city with city code ""HOU"".","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = ""HOU""" "What is Country , when Rider is Lindsay Porter?","SELECT country FROM table_name_63 WHERE rider = ""lindsay porter""" Count the number of climbers.,SELECT count(*) FROM climber Find the titles of all movies not reviewed by Chris Jackson.,SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' What date has the competition of uefa euro 2012 qualifying?,"SELECT date FROM table_name_77 WHERE competition = ""uefa euro 2012 qualifying""" 4512 is the enrollment what is the team nickname?,SELECT team_nickname FROM table_28211213_2 WHERE enrollment = 4512 What was the opponent at the game that had a loss of Travers (0–2)?,"SELECT opponent FROM table_name_9 WHERE loss = ""travers (0–2)""" How many people attended games at vfl park?,"SELECT SUM(crowd) FROM table_name_12 WHERE venue = ""vfl park""" "Among author ID of under 1000, who published the paper in affiliation with Zurich, ETH, provide paper ID, year and keyword if any.","SELECT T2.Id, T2.Year, T2.Keyword FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.AuthorId < 1000 AND T1.Affiliation = 'Zurich, ETH'" I need to know how many people there are whose age is greater than 30 and job is an engineer.,SELECT count ( * ) FROM Person WHERE age > 30 AND job = 'engineer' What is the current address of customer Kandy?,"SELECT T3.street_number, T3.street_name, T3.city FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id INNER JOIN address_status AS T4 ON T4.status_id = T2.status_id WHERE T1.first_name = 'Kandy'" "Name the Voltage Range which has a FSB Speed of 400 mhz, and a Clock Speed of 1 ghz?","SELECT voltage_range FROM table_name_30 WHERE fsb_speed = ""400 mhz"" AND clock_speed = ""1 ghz""" What type is shown with a moving to of valenciennes?,"SELECT type FROM table_name_7 WHERE moving_to = ""valenciennes""" How many times was frank m. clark the incumbent?,"SELECT COUNT(result) FROM table_1341865_40 WHERE incumbent = ""Frank M. Clark""" Can you list just the states which have college students in tryout and their decisions are yes?,SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' On what date did the Bills play the Houston Oilers before week 12?,"SELECT date FROM table_name_79 WHERE week < 12 AND opponent = ""houston oilers""" Which country has an IATA of gzt?,"SELECT country FROM table_name_70 WHERE iata = ""gzt""" I want the time/retired for grid of 24,SELECT time_retired FROM table_name_12 WHERE grid = 24 Who was the man of the match when the Rockets won by 9 wickets? ,"SELECT man_of_the_match FROM table_19576091_1 WHERE result = ""Rockets won by 9 wickets""" List the airport code and name in the city of Anthony.,"SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = ""Anthony""" What is the % (1960) of the county with a % (2040) of 3.4?,SELECT COUNT(_percentage__1960_) FROM table_name_98 WHERE _percentage__2040_ = 3.4 Tweet with ID tw-682723090279841798 was posted from which country?,SELECT T2.Country FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.TweetID = 'tw-682723090279841798' What is every year born for height of 1.88?,"SELECT year_born FROM table_23670057_7 WHERE height__m_ = ""1.88""" Which shops' number products is above the average? Give me the shop names.,SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop) "What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?",SELECT COUNT(november) FROM table_name_50 WHERE february > 8.53 AND march = 20.21 AND september < 7.9 Which team had a pick of 63?,SELECT school_club_team FROM table_name_93 WHERE pick = 63 "hey, which 3 players won the most player awards? list their full name and id","SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3" "Among all the trips, which day had the most bikes borrowed? What was the average coldest temperature on that day?","SELECT T2.date, AVG(T2.min_temperature_f) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code GROUP BY T2.date ORDER BY COUNT(T1.start_date) DESC LIMIT 1" Who directed the film Antonio's Breakfast?,"SELECT director_s_ FROM table_name_44 WHERE film = ""antonio's breakfast""" and how many are followed by Susan?,"SELECT count ( t2.f1 ) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Susan""" List three countries which are the origins of the least players.,SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3; What is the Original name of empire of passion?,"SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = ""empire of passion""" WHich Year has a Music director(s) of anu malik?,"SELECT SUM(year) FROM table_name_5 WHERE music_director_s_ = ""anu malik""" WHAT IS THE SHOP ID | Do you mean the shop id for the shop that has the largest quantity of devices in stock? | YES,SELECT T2.shop_id FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM ( T1.quantity ) DESC LIMIT 1 What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s?,"SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = ""05h33m30s""" Select the names and the prices of all the products in the store.,"SELECT name , price FROM products" What was the decision of the game when the Lightning had a record of 6–8–1?,"SELECT decision FROM table_name_84 WHERE record = ""6–8–1""" Show the member name and hometown who registered a branch in 2016.,"SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016" Find the first names of the faculty members who are playing Canoeing or Kayaking.,SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' What is the hometown of the pitcher who's school was Saint Joseph Regional High School?,"SELECT hometown FROM table_11677100_18 WHERE position = ""Pitcher"" AND school = ""Saint Joseph Regional High school""" Which Webcast has a Callsign of kgbt?,"SELECT webcast FROM table_name_91 WHERE callsign = ""kgbt""" What about just the ones with the transaction type code SALE?,"Select date_of_transaction from transactions where transaction_type_code = ""SALE""" Show the name of country id 66.,SELECT country_name FROM country WHERE id = 66 name the customer which have 15 as customer id?,SELECT customer_name FROM customers where customer_id = 15 What are the product ids and color descriptions for products with two or more characteristics?,"SELECT t1.product_id , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING count(*) >= 2" What genre is the game 2010 FIFA World Cup South Africa?,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2010 FIFA World Cup South Africa' Find the number of professors in accounting department.,"SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = ""Accounting""" how many schools exist in total?,SELECT count(DISTINCT school_code) FROM department Name the point with points for of 255,"SELECT points FROM table_name_67 WHERE points_for = ""255""" What are the names of students who have taken Statistics courses?,SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' What is the total number of draws when there are 1465 against matches and less than 2 byes?,SELECT COUNT(draws) FROM table_name_76 WHERE against = 1465 AND byes < 2 Which result's genre was jazz when its label was columbia and its title was requiem?,"SELECT result FROM table_name_35 WHERE genre = ""jazz"" AND label = ""columbia"" AND title = ""requiem""" Show the people that have been comptroller the most times and the corresponding number of times.,"SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1" "What is the flight number of the aircraft Thompson drove in March 1, 1963","SELECT Vehicle_Flight_number FROM flight WHERE pilot = 'Thompson' and date = 'March 1, 1963'" what is the company when the country is greece and the author is aeschylus?,"SELECT company FROM table_name_28 WHERE country = ""greece"" AND author = ""aeschylus""" what's the dbeingtribution with grsecurity being no,"SELECT distribution FROM table_1357052_6 WHERE grsecurity = ""No""" Show the names of journalists and the number of events they reported.,"SELECT T3.Name, COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name" Calculate the percentage of the winners who are higher than 1.75 meters.,SELECT CAST(SUM(CASE WHEN T1.height_meters > 1.75 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Winner'; What's the average number of silver medals when bronze is less than 0?,SELECT AVG(silver) FROM table_name_86 WHERE bronze < 0 "Whare the names, friends, and ages of all people who are older than the average age of a person?","SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)" Name the nfl team for pick number 151,SELECT nfl_team FROM table_2508633_6 WHERE pick__number = 151 What is the percentage of increase of the indicator on Adolescent fertility rate from 1960 to 1961 in the country whose Alpha2Code is 1A?,"SELECT (( SELECT T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' AND T2.Year = 1961 ) - ( SELECT T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' AND T2.Year = 1960 )) * 1.0 / ( SELECT SUM(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' AND T2.Year = 1960 )" What are the monthly rentals of student addresses in Texas state?,"SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Texas""" How many games were against Furman?,"SELECT MAX(game) FROM table_20745444_1 WHERE opponent = ""Furman""" How many villages have a density persons/ha of 5.5?,"SELECT COUNT(no_of_villages) FROM table_21302_1 WHERE density_persons___ha = ""5.5""" Show the number of projects.,SELECT count(*) FROM Projects What is the branch ID associated with Myron Pryor?,"SELECT t2.branch_id from member as t1 join purchase as t2 on t1.member_id = t2.member_id where name = ""Myron Pryor""" Find the name of persons who are friends with Bob.,SELECT name FROM PersonFriend WHERE friend = 'Bob' What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??,"SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= ""1975-01-01"" AND T1.date_order_placed <= ""1976-01-01""" What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?,"SELECT staffel_a FROM table_name_75 WHERE staffel_d = ""energie cottbus"" AND staffel_c = ""chemie leipzig"" AND staffel_b = ""1. fc union berlin""" "What is the Digital/analog signal with an Available interface with pci express, with Retail name with all-in-wonder x600 pro?","SELECT digital_analog_signal FROM table_name_71 WHERE available_interface = ""pci express"" AND retail_name = ""all-in-wonder x600 pro""" What was the total with a score in set 3 of 13–25?,"SELECT total FROM table_name_55 WHERE set_3 = ""13–25""" How many teachers does the student named MADLOCK RAY have?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""MADLOCK"" AND T1.lastname = ""RAY""" List all customer status codes and the number of customers having each status code.,"SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;" "In the 21.40km Santa Rosa 1 Stage, what was the Time?","SELECT time FROM table_name_38 WHERE length = ""21.40km"" AND name = ""santa rosa 1""" " what's the week where attendance is 77,098","SELECT week FROM table_11406866_2 WHERE attendance = ""77,098""" Find the founder of the company whose name begins with the letter 'S'.,SELECT founder FROM manufacturers WHERE name LIKE 'S%' Please list the email adresses of the reviewers who have given the lowest rating to the product HL Mountain Pedal.,SELECT T1.EmailAddress FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'HL Mountain Pedal' ORDER BY T1.Rating LIMIT 1 Name the least mister international,SELECT MIN(mister_international) FROM table_30007505_1 Who was the special guest when the category was vocal groups and the name was Romantic?,"SELECT special_guest FROM table_name_28 WHERE category = ""vocal groups"" AND name = ""romantic""" Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city Provide any 5 customers' full names who have rented from Mike Hillyer.,"SELECT T3.first_name, T3.last_name FROM staff AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id WHERE T1.first_name = 'Mike' AND T1.last_name = 'Hillyer' LIMIT 5" What is the highest In service for a vessel with a listed Unit of 12th minesweeper squadron?,"SELECT MAX(in_service) FROM table_name_37 WHERE unit = ""12th minesweeper squadron""" Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19?,"SELECT celebrity FROM table_name_53 WHERE exited = ""day 19"" AND famous_for = ""ex busted member and tv presenter""" What is the Place when Steve Pate was the player?,"SELECT place FROM table_name_52 WHERE player = ""steve pate""" Who scored 57 points?,SELECT performer FROM table_name_22 WHERE points = 57 Show customer ids who don't have an account.,SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts "What are the most goals listed when Jack Trehey was the player, with the listed debut year of 1902, games less than 1?","SELECT MAX(goals) FROM table_name_29 WHERE debut_year = 1902 AND player = ""jack trehey"" AND games < 1" How many points does driver kosuke matsuura have?,"SELECT points FROM table_name_17 WHERE driver = ""kosuke matsuura""" What event did Pakistan get the bronze medal at the 1988 Seoul Games?,"SELECT event FROM table_name_82 WHERE medal = ""bronze"" AND games = ""1988 seoul""" What are the id of the games held in London?,SELECT T1.games_id FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London' What country is the Eurasia Astana team from?,"SELECT country FROM table_name_69 WHERE team = ""eurasia astana""" Who was the home team at the game that had a score of 2 – 2?,"SELECT home FROM table_name_96 WHERE score = ""2 – 2""" "On Race 14 when the FLap is larger than 1, what is the podium number?",SELECT COUNT(podium) FROM table_name_42 WHERE race = 14 AND flap > 1 "When the transmission make/type/speed is eaton fs 5306-a manual synchromesh 6 speed, what is the value of the gcm (kg) technical capacity?","SELECT gcm__kg__technical_capacity FROM table_11497980_1 WHERE transmission_make_type_speed = ""Eaton FS 5306-A Manual Synchromesh 6 Speed""" On what circuit was the City of Ipswich 400 race held?,"SELECT circuit FROM table_14016079_1 WHERE race_title = ""City of Ipswich 400""" List the names of all the customers with the same payment method as Devin Mills.,"SELECT DISTINCT t1.customer_name FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.payment_method = ( SELECT DISTINCT t1.payment_method FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Devin Mills"" ) " What are the dates and locations of performances?,"SELECT Date , LOCATION FROM performance" How many points for the cooper car company after 1959?,"SELECT SUM(points) FROM table_name_90 WHERE entrant = ""cooper car company"" AND year > 1959" Who did the Blue Jays play against on April 11?,"SELECT opponent FROM table_name_52 WHERE date = ""april 11""" Can you list the customer names for all the customers that don't have anything listed under the customer_address column?,SELECT customer_name FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_address_history ) How many players weigh more than 90 kg?,SELECT COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 Can you show me the names of those journalists ? | Do you mean the journalists from Wales and England who have worked for over a year? | Yes,"SELECT name FROM journalist WHERE Nationality = ""Wales"" and years_working > 1 UNION SELECT name FROM journalist WHERE Nationality = ""England"" and years_working > 1" Please list the actor IDs whose movies have the newest published date.,SELECT T1.actorid FROM movies2actors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.year = 4 What are the names and descriptions for all the sections?,"SELECT section_name , section_description FROM Sections" "List the urls for all the ""fiction-science-fiction"" podcasts.",SELECT itunes_url FROM podcasts WHERE podcast_id IN ( SELECT podcast_id FROM categories WHERE category = 'fiction-science-fiction' ) Which mountain is the highest in an independent country?,SELECT T4.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_mountain AS T3 ON T3.Country = T2.Country INNER JOIN mountain AS T4 ON T4.Name = T3.Mountain WHERE T2.Independence IS NOT NULL ORDER BY T4.Height DESC LIMIT 1 Please list the top three product names with the highest unit price.,SELECT t1.productName FROM products AS t1 INNER JOIN orderdetails AS t2 ON t1.productCode = t2.productCode ORDER BY t2.priceEach DESC LIMIT 3 "Great - I forgot to ask, can you please show which countries each of the listed perpetrators are associated with?","SELECT T1.Name, T2.Country FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country ! = ""China""" What of those not operated by American Airlines?,SELECT * FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name ! = 'American Airlines' Tell me the total number of pick for university of virginia,"SELECT COUNT(pick__number) FROM table_name_78 WHERE affiliation = ""university of virginia""" What are the birth years and citizenships of the singers?,"SELECT Birth_Year , Citizenship FROM singer" what is the total number of rounds when method is tko (punches) and time is 0:40?,"SELECT COUNT(round) FROM table_name_22 WHERE method = ""tko (punches)"" AND time = ""0:40""" What is the sales revenue for item number 740?,SELECT ListPrice - StandardCost FROM Product WHERE ProductID = 740 Which brand is most common among people in their twenties?,"SELECT T.phone_brand FROM ( SELECT T2.phone_brand, COUNT(T2.phone_brand) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age BETWEEN 20 AND 30 GROUP BY T2.phone_brand ) AS T ORDER BY T.num DESC LIMIT 1" What are the first and last name of the faculty who has the most students?,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1" What is the Record at School of Tom O'Brien's team?,"SELECT record_at_school FROM table_28744929_2 WHERE head_coach = ""Tom O'Brien""" List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.,"SELECT T2.Hardware_Model_name , T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32;" What was the score of having a tie of 1?,"SELECT score FROM table_name_27 WHERE tie_no = ""1""" List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" AND T3.name = ""MPEG audio file"";" Please list the positions of the players who were born in Canada and have won the All-Rookie award.,SELECT DISTINCT T1.pos FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCountry = 'Canada' AND T2.award = 'All-Rookie' What driver had under 22 laps and a Time/Retired of ignition?,"SELECT driver FROM table_name_93 WHERE laps < 22 AND time_retired = ""ignition""" What were the points on February 10?,"SELECT points FROM table_name_15 WHERE date = ""february 10""" "What are the grapes, wineries and years for wines with price higher than 100, sorted by year?","SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR" List the distinct director of all films.,SELECT DISTINCT Director FROM film Which game type has most number of games ?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count ( * ) DESC LIMIT 1 What is the team sites entry that has a public entry of No and a developer entry of Yes?,"SELECT team_sites FROM table_name_53 WHERE public = ""no"" AND developer = ""yes""" When was the 1991 world group I with the opponent of Li Fang?,"SELECT date FROM table_name_2 WHERE edition = ""1991 world group i"" AND opponent = ""li fang""" Which Nominee has a Category of outstanding musical?,"SELECT nominee FROM table_name_88 WHERE category = ""outstanding musical""" What is the average age of competitors who participated in 1988 Winter?,SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1988 Winter' What is the highest Total when Georgia is the nation with less than 11 rank?,"SELECT MAX(total) FROM table_name_46 WHERE nation = ""georgia"" AND rank < 11" What is the height when the player is from Los Angeles?,"SELECT height FROM table_24055352_1 WHERE hometown = ""Los Angeles""" What is the total when the score for set 2 is 20–25?,"SELECT total FROM table_name_21 WHERE set_2 = ""20–25""" Tell me the high assists for orlando,"SELECT high_assists FROM table_name_46 WHERE team = ""orlando""" What are the names of patients who are not taking the medication of Procrastin-X.,SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X' What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?,"SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72" Film of um sol alaranjado director is what nationality?,"SELECT nationality_of_director FROM table_name_65 WHERE film = ""um sol alaranjado""" What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2?,"SELECT MIN(lane) FROM table_name_97 WHERE heat > 2 AND time = ""1:10.57""" What is the games average with less than 3.8 in rating and less than 9 yards?,SELECT AVG(games) FROM table_name_70 WHERE rating < 3.8 AND yards < 9 What team in France had 15 UCi points?,"SELECT team FROM table_name_81 WHERE country = ""france"" AND uci_points = ""15""" What are all role codes?,SELECT role_code FROM ROLES; Name the score on august 1,"SELECT score FROM table_name_26 WHERE date = ""august 1""" Who are the sponsors of the menu whose image full height is more than 10000 mm?,SELECT T2.sponsor FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T1.full_height = 10000 What are the names of all the dorms that can accomdate more than 300 students?,SELECT dorm_name FROM dorm WHERE student_capacity > 300 What is the reserved for (ST/ST/None) when it was Uklana?,"SELECT reserved_for___sc___st__none_ FROM table_name_40 WHERE name = ""uklana""" How many different ranks in this table?,select count ( distinct rank ) from captain What is the name of hosts of Carnival M is back?,"SELECT hosts FROM farm_competition WHERE Theme like ""%Carnival M is back%""" What are the languages that are used most often in songs?,SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 What Name has a Time of 01:56:52?,"SELECT name FROM table_name_46 WHERE time = ""01:56:52""" What position is the player Jordan Fransoo in?,"SELECT position FROM table_11803648_20 WHERE player = ""Jordan Fransoo""" "If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?","SELECT mountains_classification FROM table_15059783_1 WHERE winner = ""Alejandro Valverde"" AND points_classification = ""Erik Zabel""" What are the ids for transactions that have an amount greater than the average amount of a transaction?,SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT avg(transaction_amount) FROM Financial_transactions) What country has an IEF 2011 of 45.3?,"SELECT country FROM table_name_46 WHERE ief_2011 = ""45.3""" Name the number of first elected for kentucky 3,"SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = ""Kentucky 3""" "What is Margin, when Match Date is Oct 17, 2007?","SELECT margin FROM table_name_86 WHERE match_date = ""oct 17, 2007""" How many more territories are there in than Eastern Region than in the Southern Region?,SELECT ( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' ) - ( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Southern' ) AS Calu What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? ,"SELECT population_density___km²_2011_ FROM table_24027047_1 WHERE area__km²__2011 * * = ""684.37""" "WHAT IS THE RANK WITH A GROSS OF $96,773,200?","SELECT COUNT(rank) FROM table_name_59 WHERE gross = ""$96,773,200""" What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?,"SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = ""ultima"" AND byes < 2" What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?,"SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';" which females had a wedding in 2016?,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' Could you filter this list to show just the movie studio which has the largest number of movies?,SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT ( * ) DESC LIMIT 1 How many sports do we have?,SELECT count(DISTINCT sportname) FROM Sportsinfo "What are the names of the products that have the characteristic name ""fast""?","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t3.characteristic_name = ""fast""" "Which authors belong to the institution ""Google""? Show the first names and last names.","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" "What is Teleplay, when Season is greater than 1.1, and when First Broadcast is ""February 20, 1981""?","SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = ""february 20, 1981""" "What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?","SELECT second FROM table_name_2 WHERE fifth = ""western australia"" AND sixth = ""south australia"" AND fourth = ""tasmania""" "Give the reorder level for the products from the supplier ""Nord-Ost-Fisch Handelsgesellschaft mbH"".",SELECT T1.ReorderLevel FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Nord-Ost-Fisch Handelsgesellschaft mbH' what is the fault status of Engineer with the first name Etha?,"SELECT T2.fault_status FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 on T1.engineer_id = T2.engineer_id where T1.first_name = ""Etha""" Which Current Club has a Player of bassem balaa?,"SELECT current_club FROM table_name_97 WHERE player = ""bassem balaa""" What is the Score that has a Result of 2–1 on 5 july 2007?,"SELECT score FROM table_name_47 WHERE result = ""2–1"" AND date = ""5 july 2007""" Tell me the home team score for richmond home team,"SELECT home_team AS score FROM table_name_87 WHERE home_team = ""richmond""" Which part has the least chargeable amount ? List the part id and amount.,"SELECT part_id , chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1" How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington?,"SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = ""washington""" what are all the marketing regions?,SELECT marketing_region_name from marketing_regions What was the score for the June 22 game with attendance 0?,"SELECT score FROM table_name_44 WHERE date = ""june 22"" AND attendance = 0" How much profit can the company gained from selling two high class black Road Bikes with a size of 58?,SELECT 2 * (T1.ListPrice - T1.StandardCost) FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID WHERE T1.Class = 'H' AND T1.Color = 'Black' AND T1.Size = 58 AND T2.Name = 'Road Bikes' Calculate the average rating of the true crime category.,SELECT AVG(T2.rating) FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'true-crime' What is the highest level of job to get to for the employee who got hired the earliest?,SELECT T2.max_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id ORDER BY T1.hire_date LIMIT 1 How many times is the formula tl 2 ba 2 cuo 6?,"SELECT no_of_cu_o_planes_in_unit_cell FROM table_101336_1 WHERE formula = ""Tl 2 Ba 2 CuO 6""" "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.","SELECT Kids FROM Reservations WHERE CheckIn = ""2010-09-21"" AND FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";" What is the county for senator C. Anthony Muse?,"SELECT county_s__represented FROM table_11948857_1 WHERE member_senator = ""C. Anthony Muse""" What is the average horsepower of the cars before 1980?,SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980; List out stations number and items sold by store 17.,"SELECT T1.station_nbr, T2.item_nbr FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.store_nbr = 17 GROUP BY T1.station_nbr, T2.item_nbr" What are their names?,SELECT name FROM Employee EXCEPT SELECT eid FROM Certificate List total loses forh the tauras tauragė team.,"SELECT COUNT(loses) FROM table_18018214_2 WHERE club = ""Tauras Tauragė""" How many races did the Formula Three Euroseries signature team have?,"SELECT SUM(races) FROM table_name_2 WHERE series = ""formula three euroseries"" AND team = ""signature""" List the names of all authors affiliated with Birkbeck University of London.,SELECT Name FROM Author WHERE Affiliation = 'Birkbeck University of London' What is the first name and job id for all employees in the Finance department?,"SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'" What was the total salary of those players?,SELECT SUM ( salary ) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000 How many games had the team played after they were 40-20?,"SELECT game FROM table_13762472_7 WHERE record = ""40-20""" Which railway number has 3 quantity?,SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3 "Which is the majority of the ethnic group in country with great than 10,000,000 population","SELECT T2.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Population > 10000000 GROUP BY T2.Name, T2.Percentage ORDER BY T2.Percentage DESC LIMIT 2" What are the number of rooms for each bed type?,"SELECT bedType , count(*) FROM Rooms GROUP BY bedType;" List the nominees that have been nominated more than two musicals.,SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2 what are the highest crime rate in the county public safety table,SELECT Crime_rate FROM county_public_safety ORDER BY Crime_rate DESC LIMIT 1 What is the average chart number for 11/1965?,"SELECT AVG(chart_no) FROM table_name_97 WHERE date = ""11/1965""" What are the names of all the subjects.,SELECT subject_name FROM SUBJECTS Who's the shooter with 13 score points and 10 rank points?,"SELECT shooter FROM table_name_32 WHERE score_points = ""13"" AND rank_points = ""10""" What's the least amount of draft copies that a document has?,SELECT count ( copy_number ) FROM Draft_Copies GROUP BY document_id ORDER BY count ( copy_number ) LIMIT 1 What is the average fleet size for the Shunter type introduced in 1959?,"SELECT AVG(fleet_size) FROM table_name_3 WHERE type = ""shunter"" AND introduced = ""1959""" What tour was cancelled?,"SELECT name FROM table_name_14 WHERE date = ""cancelled""" How many members does it have?,SELECT count ( * ) FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count ( * ) ASC LIMIT 1 Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?,"SELECT pavilion_depth FROM table_name_36 WHERE brilliance_grade = ""100%"" AND pavilion_angle = ""n/a""" What is the percentage of reviews added each year of the total reviews added?,"SELECT CAST((SUM(CASE WHEN run_at LIKE '2022-%' THEN reviews_added ELSE 0 END) - SUM(CASE WHEN run_at LIKE '2021-%' THEN reviews_added ELSE 0 END)) AS REAL) * 100 / SUM(reviews_added) OR '%' ""percentage"" FROM runs" When the wallington new foresters are in division four what is the season?,"SELECT season FROM table_24575253_4 WHERE division_four = ""Wallington New Foresters""" How many apps are labeled 7?,SELECT COUNT(app_id) FROM app_labels WHERE label_id = 7 Find the the grape whose white color grapes are used to produce wines with scores higher than 90.,"SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White"" AND T2.score > 90" Who has the first leg that has a round in the semi-final?,"SELECT first_leg FROM table_name_53 WHERE round = ""semi-final""" How many schools are there?,SELECT COUNT(*) FROM school How many poles does the European F3 Open series have?,"SELECT poles FROM table_29434211_1 WHERE series = ""European F3 Open""" Could you please tell me the total amount paid in claim headers?,SELECT sum ( amount_piad ) FROM claim_headers "Which Club/province has a Position of centre, and Caps of 27?","SELECT club_province FROM table_name_75 WHERE position = ""centre"" AND caps = 27" Find the emails of parties with the most popular party form.,SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1) What district does James Humphrey represent?,"SELECT district from people where name = ""James Humphrey""" What document status codes do we have?,SELECT document_status_code FROM Ref_Document_Status; how many new points does the player roberta vinci have?,"SELECT MAX(new_points) FROM table_29572583_20 WHERE player = ""Roberta Vinci""" Who is the Lutheran representative that served in the state of Ohio for 14 years before becoming a senator?,"SELECT CASE WHEN SUM(CAST(strftime('%Y', T2.end) AS int) - CAST(strftime('%Y', T2.start) AS int)) = 14 THEN official_full_name END FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.religion_bio = 'Lutheran' AND T2.state = 'OH' AND T2.type = 'rep'" Who had the high rebounds when the score was l 122–93?,"SELECT high_rebounds FROM table_name_7 WHERE score = ""l 122–93""" How many people live in the district who's capital is héngfēng xiàn?,"SELECT population FROM table_1300525_1 WHERE pinyin = ""Héngfēng Xiàn""" "What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?","SELECT record FROM table_name_57 WHERE game < 24 AND decision = ""lundqvist"" AND november < 8 AND opponent = ""new york islanders""" Tell me the partner for opponents of anamika bhargava sylvia krywacz,"SELECT partner FROM table_name_15 WHERE opponents_in_the_final = ""anamika bhargava sylvia krywacz""" "What was the nationality of the winner on December 8, 1968?","SELECT country FROM table_name_99 WHERE date = ""december 8, 1968""" What is the High points with a Date that is january 20?,"SELECT high_points FROM table_name_35 WHERE date = ""january 20""" Provide the zip codes and area codes of the postal points with the community post office type at the elevation above 6000.,"SELECT T1.zip_code, T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.type = 'Community Post Office ' AND T2.elevation > 6000" List the country and how many customers are there.,"SELECT country, COUNT(customerNumber) FROM customers GROUP BY country" Find the name of the product that has the smallest capacity.,SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1 What date was that claim settled?,SELECT T1.Date_Claim_settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id order by T1.Amount_Claimed desc limit 1 Could you list the catalog publishers in descending order? | order by what? | Alphabetical order,SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY catalog_publisher DESC Can you just show me the first names of those customers?,SELECT first_name FROM customer WHERE customer_id NOT IN ( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' ) What is the sum of all laps with rank 3?,"SELECT COUNT(laps) FROM table_name_99 WHERE rank = ""3""" How many of the patients born in 1920s had pneumonia?,"SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE DESCRIPTION = 'Pneumonia' AND strftime('%Y', T1.birthdate) LIKE '192%'" Provide the names of bad aliases in the city of Aguadilla.,SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Aguadilla' What is the count and code of the job with the most employee?,"SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1" "For the game ending with a record of 31-43-2, what was the decision?","SELECT decision FROM table_name_10 WHERE record = ""31-43-2""" What product type is the one that has the least expensive product price? | Did you want to get Product Type Code that has the least expensive product price ? | Yes,select Product_Type_Code from Products order by Product_Price limit 1 What is the lowest played with a lost bigger than 10?,SELECT MIN(played) FROM table_name_85 WHERE lost > 10 Who wrote all the shows with 18.73 u.s. viewers?,"SELECT written_by FROM table_1130632_1 WHERE us_viewers__million_ = ""18.73""" "What is the maximum, minimum and average market share of the listed browsers?","SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser" "For the movie in which Tress MacNeille was the voice actor for its character ""Hyacinth Hippo"", what was the release date of that movie?",SELECT T1.release_date FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.movie_title WHERE T2.character = 'Hyacinth Hippo' AND T2.`voice-actor` = 'Tress MacNeille' what is the to par when the place is 8?,"SELECT to_par FROM table_name_82 WHERE place = ""8""" What is the sum of the clubs remaining with 34 new entries this round and more than 34 clubs involved?,"SELECT SUM(clubs_remaining) FROM table_name_25 WHERE new_entries_this_round = ""34"" AND clubs_involved > 34" What is the team with position G?,"SELECT team FROM table_name_94 WHERE position = ""g""" What is the name of the dorm with both a TV Lounge and Study Room listed as amenities?,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' Which lots are not used in any transactions? | do you mean the id of lots or the details of lot | The id of the lots please.,SELECT lot_id FROM Lots EXCEPT SELECT T1.lot_id FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id What is the name of the highest mountain?,SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'" Show order ids and the number of products in each order.,"SELECT order_id , count(DISTINCT product_id) FROM Order_items GROUP BY order_id" "Find the name of organizations whose names contain ""Party"".","SELECT organization_name FROM organizations WHERE organization_name LIKE ""%Party%""" Which year has the most degrees conferred?,SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1 What was the result of the game when the record was 5-1?,"SELECT result FROM table_name_21 WHERE record = ""5-1""" And what is the capacity of the Whitman room?,select capacity from classroom where building = 'Whitman' What is the smallest Alliance where the total is 25?,SELECT MIN(alliance) FROM table_28005809_2 WHERE total = 25 What is the total when the finish was t44?,"SELECT total FROM table_name_99 WHERE finish = ""t44""" "Which Player has a Nationality of united states, a Position of forward, and a School/Club Team of notre dame?","SELECT player FROM table_name_1 WHERE nationality = ""united states"" AND position = ""forward"" AND school_club_team = ""notre dame""" "List the Episode of all TV series showed on TV Channel with series name ""Sky Radio"".","SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";" "What is the Record for the game held on December 2, 2001?","SELECT record FROM table_name_52 WHERE date = ""december 2, 2001""" WHich Places have a score smaller than 69?,SELECT place FROM table_name_12 WHERE score < 69 What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?,"SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" What country is ranked #2?,SELECT country FROM table_name_68 WHERE rank = 2 Find the name and id of accounts whose checking balance is below the maximum checking balance.,"SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)" What are the different names of the product characteristics?,SELECT DISTINCT characteristic_name FROM CHARACTERISTICS Name the least podiums for 49 points,"SELECT MIN(podiums) FROM table_20398823_1 WHERE points = ""49""" Please show different software platforms and the corresponding number of devices using each.,"SELECT Software_Platform , COUNT(*) FROM device GROUP BY Software_Platform" List the document type code for the document with the id 2.,SELECT document_type_code FROM Documents WHERE document_id = 2; What is the match number that had a result of 0:5 (0:3)?,"SELECT COUNT(match) FROM table_name_20 WHERE result = ""0:5 (0:3)""" Russia has films in which category?,"SELECT category FROM table_name_45 WHERE country = ""russia""" "IN THE ISSUE WITH KARA MONACO ON THE COVER, WHO WAS THE INTERVIEW SUBJECT?","SELECT interview_subject FROM table_1566852_7 WHERE cover_model = ""Kara Monaco""" Show names of all high school students who do not have any friends.,SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id "List the names of the customers who have once bought product ""food"".","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = ""food"" GROUP BY T1.customer_id HAVING count(*) >= 1" "Among games sold in Europe, list the platform ID of games with sales lesser than 30% of the average number of sales.",SELECT DISTINCT T3.platform_id FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T1.region_name = 'Europe' AND T2.num_sales * 100 * 100000 < ( SELECT AVG(T2.num_sales * 100000) * 30 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Europe' ) What is the status for 07/01/1961?,"SELECT status FROM table_name_91 WHERE date = ""07/01/1961""" What about Salt Lake City?,SELECT count ( DISTINCT name ) FROM PersonFriend WHERE friend NOT IN ( SELECT name FROM person WHERE city = 'salt lake city' ) "What region is the catalogue released on June 8, 2004 from?","SELECT region FROM table_name_88 WHERE date = ""june 8, 2004""" Give the names of mountains in alphabetical order.,SELECT Name FROM mountain ORDER BY Name ASC What is the channel that is on digital terrestrial channel 10?,"SELECT channel FROM table_182410_10 WHERE digital_terrestrial_channel = ""10""" How many different locations does each school have?,"SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code" How many mls teams had player jamel wallace?,"SELECT COUNT(mls_team) FROM table_25518547_4 WHERE player = ""Jamel Wallace""" Find the states where have the colleges whose enrollments are less than the largest size.,SELECT DISTINCT state FROM college WHERE enr < (SELECT max(enr) FROM college) What years are listed for analogue cable with 35 channels?,"SELECT years FROM table_name_27 WHERE transmission = ""analogue cable"" AND no_of_channels = ""35""" Find the most prominent max page size among all the products.,SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1 Which player finished at +4?,"SELECT player FROM table_name_31 WHERE to_par = ""+4""" Indicate the ISBN13 of all the books that have less than 140 pages and more than 135.,SELECT isbn13 FROM book WHERE num_pages < 140 AND num_pages > 135 What is the Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more?,SELECT nationality FROM table_name_37 WHERE lane > 4 AND rank > 5 "Show the industries shared by companies whose headquarters are ""USA"" and companies whose headquarters are ""China"".","SELECT Industry FROM Companies WHERE Headquarters = ""USA"" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = ""China""" What are the first and last names of all students who are living in a dorm with a TV Lounge?,"SELECT T1.fname , T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" What title has a Label of warp records / paper bag records?,"SELECT title FROM table_name_39 WHERE label = ""warp records / paper bag records""" In which season did he have 0 Poles and 19th position in the GP2 Series?,"SELECT season FROM table_name_57 WHERE poles = ""0"" AND series = ""gp2 series"" AND position = ""19th""" "What are the earnings of poker players, ordered descending by value?",SELECT Earnings FROM poker_player ORDER BY Earnings DESC What is the singular for the Meaning of night?,"SELECT singular FROM table_name_28 WHERE meaning = ""night""" How many female mailing list subscribers from Sacramento gave a 4-star rating between 1/3/2016 and 10/26/2016?,SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.StarRating = 4 AND T1.City = 'Sacramento' AND T1.Gender = 'F' AND T1.SubscribedToEmailList = 'TRUE' AND T2.ReviewDate BETWEEN '2013-01-03' AND '2013-10-26' How many sections does each course have?,"SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code" "Among all closed businesses in Avondale, AZ what percent have obtained a 'wonderful experience' rating of the business.",SELECT CAST(SUM(CASE WHEN stars > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(stars) FROM Business WHERE city = 'Avondale' AND active = 'false' "Which Scorers have a Venue of A, and an Opponent of arsenal?","SELECT scorers FROM table_name_41 WHERE venue = ""a"" AND opponent = ""arsenal""" What is the percentage of female competitors whose heights are over 170 that participated in the game in 1988?,SELECT CAST(COUNT(CASE WHEN T3.gender = 'F' AND T3.height > 170 THEN 1 END) AS REAL) * 100 / COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_year = 1988 "What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.","SELECT address_content FROM addresses WHERE city = ""East Julianaside"" AND state_province_county = ""Texas"" UNION SELECT address_content FROM addresses WHERE city = ""Gleasonmouth"" AND state_province_county = ""Arizona""" How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.,"SELECT T1.staff_name , count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name" Now can you list the titles of the books and the prices but in descending order?,"SELECT t2.price, t1.title FROM book as t1 join publication as t2 on t1.book_id = t2.book_id order by t2.price desc" Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.,"SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30" "Among the male students, list down the names of students with payment due.",SELECT T1.name FROM male AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'pos' How many transfer fees did Afonso Alves have after 2008?,"SELECT COUNT(transfer_fee___) AS €_million_ FROM table_name_13 WHERE player = ""afonso alves"" AND year > 2008" "What are the names of the clubs that have players in the position of ""Right Wing""?","SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = ""Right Wing""" "How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?",SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1 Where was the destination city of shipment no.1701?,SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1701' Which authority has a Name of tamatea high school?,"SELECT authority FROM table_name_41 WHERE name = ""tamatea high school""" Name the english translation of giefdu mier socka bond,"SELECT english_translation FROM table_13003460_1 WHERE the_icelandic_of_the_glossary = ""giefdu mier socka bond""" "What venue has an against over 14, an opposing team of scotland, and a status of five nations?","SELECT venue FROM table_name_16 WHERE against > 14 AND opposing_teams = ""scotland"" AND status = ""five nations""" How many games feature hawthorn as the away squad?,"SELECT COUNT(crowd) FROM table_name_8 WHERE away_team = ""hawthorn""" Could you order them by order quantity? | From small to large? | large to small,SELECT * FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum ( order_quantity ) DESC Find the ward office's address and phone number of the ward where the most crimes without arrest occurred.,"SELECT T2.ward_office_address, T2.ward_office_phone FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.arrest = 'FALSE' GROUP BY T2.ward_office_address, T2.ward_office_phone ORDER BY COUNT(T1.arrest) DESC LIMIT 1" Which Attendance is the highest one that has a Record of 15-28?,"SELECT MAX(attendance) FROM table_name_24 WHERE record = ""15-28""" How many points did landskrona bois get when they were ranked below 18?,"SELECT COUNT(points) FROM table_name_68 WHERE club = ""landskrona bois"" AND rank < 18" What is the home team's score at corio oval?,"SELECT home_team AS score FROM table_name_66 WHERE venue = ""corio oval""" What of instructors?,"SELECT count ( * ) FROM Faculty WHERE Rank = ""Instructor"" AND building = ""NEB""" Eduardo Martins is a customer at which company?,"SELECT company FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins"";" How many camera lenses have a focal length longer than 15 mm?,SELECT COUNT(*) FROM camera_lens WHERE focal_length_mm > 15 "What is the scrap reason for work order ""57788""?",SELECT T2.Name FROM WorkOrder AS T1 INNER JOIN ScrapReason AS T2 ON T1.ScrapReasonID = T2.ScrapReasonID WHERE T1.WorkOrderID = 57788 What is the 3rd Liga from 2010-11?,"SELECT 3 AS rd_liga_3rd FROM table_name_41 WHERE date = ""2010-11""" "For the rides that started at Market at 10th station and ended at South Van Ness at Market station in August of 2013, which day had the coldest temperature?","SELECT T1.start_date FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T2.date LIKE '8/%/2013' AND T1.start_station_name = 'Market at 10th' AND T1.end_station_name = 'South Van Ness at Market' AND T2.min_temperature_f = ( SELECT MIN(T2.min_temperature_f) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T2.date LIKE '8/%/2013' AND T1.start_station_name = 'Market at 10th' AND T1.end_station_name = 'South Van Ness at Market' )" What are the distinct names of wines that have appellations in the North Coast area?,"SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""North Coast""" Show the average age for male and female students.,"SELECT avg(age) , sex FROM Student GROUP BY sex" "Among all the customers, what is the percentage of the customer's nation being Germany?","SELECT CAST(SUM(IIF(T2.n_name = 'GERMANY', 1, 0)) AS REAL) * 100 / COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey" what is the city of new jersey,"SELECT city from Addresses where state_province_county = ""NewJersey""" What place was the golfer with a score of 67-67-66-68=268 ranked in?,SELECT place FROM table_name_62 WHERE score = 67 - 67 - 66 - 68 = 268 What is the time of elimination for the wrestler with the most days held?,SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 What are all the school years where class AAAA is in Gregory-Portland? ,SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland "How many people were not born in Connecticut, USA?",SELECT COUNT(name) FROM Person WHERE birth_region != 'Connecticut' AND birth_country != 'USA'; How many bronzes had a rank of 10 and 0 gold?,"SELECT SUM(bronze) FROM table_name_9 WHERE rank = ""10"" AND gold < 0" Which cyclist has UCI ProTour points of 40?,SELECT cyclist FROM table_name_96 WHERE uci_protour_points = 40 Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.,"SELECT T2.name, T2.distance FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count(*) >= 5" Find the first names that are used for professionals or owners but are not used as dog names.,SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs When was the delevery date when there were 12 ways of delivery?,"SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE total_number_of_ways = ""12 ways""" What is the name of the school in Lucas ? ,"SELECT location FROM table_25987797_1 WHERE school = ""Lucas""" What is the year that has a character named Wu Ji Wei (無極威)?,"SELECT AVG(year) FROM table_name_27 WHERE character = ""wu ji wei (無極威)""" How many type catagories are listed when the percentage of yes is 68.91%?,"SELECT COUNT(type) FROM table_256286_61 WHERE _percentage_yes = ""68.91%""" What is part 1 of the verb in class 4,"SELECT part_3 FROM table_1745843_10 WHERE class = ""4""" What are the order IDs and details?,"SELECT T2.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count ( * ) > 2" Find the first and last name of all the teachers that teach EVELINA BROMLEY.,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""EVELINA"" AND T1.lastname = ""BROMLEY""" "How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?",SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0 Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.,"SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings)" Which is the station where no bike could not be borrowed form on the 2013/11/03 02:01:01? State the location of the station.,"SELECT T1.name, T1.long FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.time = '2013/11/03 02:01:01' AND T2.bikes_available = 0" Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.,"SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1" Name the number of high assists for july 1,"SELECT COUNT(high_assists) FROM table_17103645_10 WHERE date = ""July 1""" Please indicate the product name of Tokyo Traders company with order quantity greater than 40.,SELECT DISTINCT T2.ProductName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN `Order Details` AS T3 ON T2.ProductID = T3.ProductID WHERE T1.CompanyName = 'Tokyo Traders' AND T3.Quantity > 40 What is the note for Australia on the indicator SP.ADO.TFRT?,SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SP.ADO.TFRT' AND T1.ShortName = 'Australia' What is the form of government that the city of Manila has?,SELECT T1.GovernmentForm FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Manila' What are the full names of customers who have accounts?,"SELECT DISTINCT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What driver has 22 as nor 1?,"SELECT driver FROM table_name_85 WHERE nor_1 = ""22""" Please show me all customers and their contact channels | Do you want the names of customers or id? | names please,"SELECT DISTINCT customer_name, channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id" What was the surface in 1981?,SELECT surface FROM table_name_56 WHERE date = 1981 How many events had participants whose details had the substring 'Dr.',SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%' Name the length for stage of ss6,"SELECT length FROM table_name_41 WHERE stage = ""ss6""" Which districts have at least two addresses?,SELECT district FROM address GROUP BY district HAVING count(*) >= 2 "When persikos sorong city played in group 11, who played in group 7?","SELECT group_7 FROM table_19523142_5 WHERE group_11 = ""Persikos Sorong City""" What are the dates in which the mean sea level pressure was between 30.3 and 31?,SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 How many orders were made by the customers in Ireland.,SELECT COUNT(T2.OrderID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Country = 'Ireland' How many powiats have mstsislaw as a capital?,"SELECT number_of_powiats FROM table_1784514_1 WHERE capital = ""Mstsislaw""" What is Gene Sauers' to par?,"SELECT to_par FROM table_name_28 WHERE player = ""gene sauers""" When Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2?,"SELECT week_2 FROM table_name_90 WHERE week_4 = ""diane deluna""" What is the name when the country is ESP and the transfer fee is € 7m?,"SELECT name FROM table_name_20 WHERE country = ""esp"" AND transfer_fee = ""€ 7m""" "What is the category for the ""Moist Boys"" podcast?",SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title = 'Moist Boys' ) "Okay, and what genre does Michel prefer?","SELECT preferred_genre FROM artist WHERE artist_name = ""Michel""" Which genre contains the greatest number of non-English films?,SELECT T2.genre FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.isEnglish = 'F' GROUP BY T2.genre ORDER BY COUNT(T1.movieid) DESC LIMIT 1 list out the projects names,SELECT name FROM projects Please list three types of film along with their IDs and the latest update.,"SELECT DISTINCT name, category_id, last_update FROM category LIMIT 3" "Which Bronze has a Silver smaller than 1, and a Total larger than 3?",SELECT AVG(bronze) FROM table_name_94 WHERE silver < 1 AND total > 3 Which film has the longest duration?,SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film ) How many million u.s. Viewers watched season 1?,SELECT us_viewers__in_millions_ FROM table_19188562_2 WHERE season = 1 Which team names have 44.5 for tumbling?,"SELECT team_name FROM table_22014431_3 WHERE tumbling = ""44.5""" Which is Business Entity ID No.13626's phone number type?,SELECT T2.Name FROM PersonPhone AS T1 INNER JOIN PhoneNumberType AS T2 USING (PhoneNumberTypeID) WHERE T1.BusinessEntityID = 13626 How many customers are in the automobile market segment?,SELECT COUNT(c_custkey) FROM customer WHERE c_mktsegment = 'AUTOMOBILE' "When the game is listed as 2, what is the score?",SELECT score FROM table_name_81 WHERE game = 2 What are the personal names and family names of the students? Sort the result in alphabetical order of the family name.,"SELECT personal_name , family_name FROM Students ORDER BY family_name" "Who had a rank more than 48, and a last in 2005?",SELECT name FROM table_name_16 WHERE rank > 48 AND last = 2005 How many lanes have a rank greater than 8?,SELECT SUM(lane) FROM table_name_25 WHERE rank > 8 List the wheels and locations of the railways.,"SELECT Wheels , LOCATION FROM railway" Show names for all stadiums except for stadiums having a concert in year 2014.,SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014 What is the Date of the Fifa World Cup with a Score of 1-0?,"SELECT date FROM table_name_15 WHERE score = ""1-0"" AND competition = ""fifa world cup""" How many users lived in Canada according to 2018's survey?,SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2018 AND T1.questiontext = 'What country do you live in?' AND T2.AnswerText = 'Canada' Name the high points for the date of november 24,"SELECT high_points FROM table_17323529_5 WHERE date = ""November 24""" What is the name and sex of the candidate with the highest support rate?,"SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1" "Which Country has a Finish of t32, and a Year(s) won of 1996?","SELECT country FROM table_name_19 WHERE finish = ""t32"" AND year_s__won = ""1996""" How many gold medals for the nation ranked 6?,"SELECT gold FROM table_name_19 WHERE rank = ""6""" What about the city with least customers?,SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count ( * ) LIMIT 1 Which major has the highest number of students?,SELECT major FROM Student GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 How many neighborhoods are there in the community area of Lincoln Square?,SELECT COUNT(T3.community_area_no) FROM ( SELECT T1.community_area_no FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE community_area_name = 'Lincoln Square' GROUP BY T1.community_area_no ) T3 List each charge type and its amount.,"SELECT charge_type , charge_amount FROM Charges" How many rounds have a chassis of thl2?,"SELECT rounds FROM table_name_87 WHERE chassis = ""thl2""" What are the dates when customers with ids between 10 and 20 became customers?,SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 Is there any coach who has not been a player before but has won award? State the ID.,SELECT DISTINCT T2.coachID FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T1.playerID IS NULL yes | What information do you want to know about each gender? | which coach gender is much?,"SELECT Coach_name FROM coach WHERE Gender = ""M""" "Can you show me all the addresses with cities? | Did you mean the address content? | Yes, and also the cities.","SELECT address_content,city FROM addresses" What are the opening hours of those attractions?,SELECT T1.Opening_Hours FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count ( * ) = 1 "What is Home Team, when Date is ""6 December 1986"", and when Tie No is ""4""?","SELECT home_team FROM table_name_49 WHERE date = ""6 december 1986"" AND tie_no = ""4""" What is the name of browser with id 1?,select name from browser where id = 1 "what is the least silver when overall is less than 67, team is saami and gold is less than 5?","SELECT MIN(silver) FROM table_name_2 WHERE overall < 67 AND team = ""saami"" AND gold < 5" At what venue was South Melbourne the home team?,"SELECT venue FROM table_name_87 WHERE home_team = ""south melbourne""" What are the countries for each market ordered by decreasing number of cities?,SELECT Country FROM market ORDER BY Number_cities DESC What was the result and score of Game #29?,SELECT score FROM table_11964047_6 WHERE _number = 29 What are the title and issues of the books?,"SELECT Title, Issues FROM book" What period was the life expectancy at 62.4?,"SELECT period FROM table_27434_2 WHERE life_expectancy_total = ""62.4""" "What is the order price of the book ""The Servant Leader"" in 2003?","SELECT T2.price FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'The Servant Leader' AND STRFTIME('%Y', T1.publication_date) = '2003'" Return the birth date of the poker player with the lowest earnings.,SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1 "Which School has a Year Left of 1966, and a Mascot of indians?","SELECT school FROM table_name_8 WHERE year_left = 1966 AND mascot = ""indians""" What's the show that has 60 minutes as the news freq?,"SELECT show_name FROM table_name_25 WHERE news_freq = ""60 minutes""" What tournament had a black of Kramnik and an opening of B66 Sicilian Defence?,"SELECT tournament FROM table_name_28 WHERE black = ""kramnik"" AND opening = ""b66 sicilian defence""" Name the location attendance for 3 game,SELECT location_attendance FROM table_27882867_4 WHERE game = 3 What was the aggregate for a team #2 of Okk Beograd?,"SELECT agg FROM table_name_45 WHERE team__number2 = ""okk beograd""" "Which car is the cheapest? Provide its acceleration, number of cylinders, and producing year.","SELECT T1.acceleration, T1.cylinders, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN price AS T3 ON T3.ID = T2.ID ORDER BY T3.price ASC LIMIT 1" "Which Site has a Date of march 17, 2006 and an iowa state Winning team?","SELECT site FROM table_name_40 WHERE date = ""march 17, 2006"" AND winning_team = ""iowa state""" who is the away team when the tie no is 7?,"SELECT away_team FROM table_name_7 WHERE tie_no = ""7""" Name the number of womens doubles for 2011 rio de janeiro,"SELECT COUNT(womens_doubles) FROM table_28138035_4 WHERE year_location = ""2011 Rio de Janeiro""" "Which 2006 has a 2012 of a, and a 2011 of 3r?","SELECT 2006 FROM table_name_76 WHERE 2012 = ""a"" AND 2011 = ""3r""" "What is the Venue, when the Winner is iain pyman?","SELECT venue FROM table_name_19 WHERE winner = ""iain pyman""" What is the score in 1929?,"SELECT score FROM table_name_46 WHERE year = ""1929""" "Among the players from the ABA league, how many of them have the center position?",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.lgID = 'ABA' AND (T1.pos = 'C' OR T1.pos = 'F-C') What is the flight number and its distance for the one with the maximum price?,"SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1" List all company names with a book published by Alyson.,SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson' Show the locations that have at least two performances.,SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2 List the name of employees in Japan office and who are they reporting to.,"SELECT t2.firstName, t2.lastName, t2.reportsTo FROM offices AS t1 INNER JOIN employees AS t2 ON t1.officeCode = t2.officeCode WHERE t1.country = 'Japan'" When did restaurant John Schaller has its first inspection in 2010?,"SELECT MIN(T2.inspection_date) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'JOHN SCHALLER' AND strftime('%Y', T2.inspection_date) = '2010'" show me the apartment type for the 7 apartments,"SELECT t2.apt_type_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" Hello there! Can you show me a list of all of the different product type codes?,SELECT Product_Type_Code FROM Products "What is Date, when Series is ATCC Round 5?","SELECT date FROM table_name_1 WHERE series = ""atcc round 5""" Give me the detail and opening hour for each museum.,"SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID" Show the name and date for each race and its track name.,"SELECT T1.name, T1.date, T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id" "Provide the zip codes and coordinates of the postal points under Allentown-Bethlehem-Easton, PA-NJ.","SELECT T2.zip_code, T2.latitude, T2.longitude FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ'" Who was the opponent at the Football League Trophy competition?,"SELECT opponents FROM table_name_84 WHERE competition = ""football league trophy""" What is the points against when try diff is +23?,"SELECT points_against FROM table_name_67 WHERE try_diff = ""+23""" How many points does footscray score as the home side?,"SELECT home_team AS score FROM table_name_86 WHERE home_team = ""footscray""" "Which of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15?","SELECT real_betis_career FROM table_name_63 WHERE appearances < 98 AND nationality = ""spain"" AND goals > 15" What was the record on September 4?,"SELECT record FROM table_name_26 WHERE date = ""september 4""" Find the ship type that are used by both ships with Panama and Malta flags.,SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' what is the name of the most expensive hardware product?,SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1 What October has 0-2-2 as the record?,"SELECT october FROM table_name_13 WHERE record = ""0-2-2""" how many journalist there,select count ( * ) from journalist "What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12?","SELECT MAX(points) FROM table_name_88 WHERE time_retired = ""+32.256 secs"" AND grid > 12" What was the score in the game that had a record of 25-8?,"SELECT score FROM table_18904831_7 WHERE record = ""25-8""" Show the names of students who have at least 2 likes.,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2 What is the first season written by joseph hampton & dani renee?,"SELECT MIN(season_no) FROM table_11630008_4 WHERE written_by = ""Joseph Hampton & Dani Renee""" "Among the actors who starred in the movie Batman, which one of them is the tallest?",SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Batman' ORDER BY T3.`Height (Inches)` DESC LIMIT 1 what are the names of the institutions?,SELECT institution FROM institution How many people live in the area of Sorell according to the Census of 2011?,"SELECT population_2011_census FROM table_140297_1 WHERE local_government_area = ""Sorell""" "Which Outcome that has a Tournament of milan , italy?","SELECT outcome FROM table_name_19 WHERE tournament = ""milan , italy""" "Which country had the most killings and injuries? | Do you mean killings plus injuries together? | Yes, that is what I mean.",SELECT country FROM perpetrator group by country order by sum ( Killed ) +sum ( Injured ) desc limit 1 "Name the average Against that has a Venue of twickenham , london on 25 november 1978?","SELECT AVG(against) FROM table_name_73 WHERE venue = ""twickenham , london"" AND date = ""25 november 1978""" "What is Team, when High Points is ""Rashard Lewis (18)""?","SELECT team FROM table_name_58 WHERE high_points = ""rashard lewis (18)""" "What is the average attendance for the game that was after week 4 and on November 14, 1954?","SELECT AVG(attendance) FROM table_name_30 WHERE week > 4 AND date = ""november 14, 1954""" Who led sprints classification when Chris Horner led general classification?,"SELECT sprints_classification FROM table_26257223_13 WHERE general_classification = ""Chris Horner""" "what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec?","SELECT name FROM table_name_15 WHERE type = ""hydro"" AND capacity___mw__ < 478 AND rank > 85 AND province = ""quebec""" What was the score of Collingwood?,"SELECT home_team AS score FROM table_name_69 WHERE home_team = ""collingwood""" What is the zip code of staff with first name as Janessa and last name as Sawayn lived?,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" "Tell me the total quantity of products bought by the customer called ""Rodrick Heaney"".","SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" How many customers does Steve Johnson support?,"SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = ""Steve"" AND T1.last_name = ""Johnson"";" "What is every entry for epoch if periselene is 5,454.925?","SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = ""5,454.925""" Is the biggest win recorded as home or away?,"SELECT home_or_away FROM table_1233808_2 WHERE record = ""Biggest win""" What's the Street address with a Name of New York Life Insurance building?,"SELECT street_address FROM table_name_74 WHERE name = ""new york life insurance building""" What Losing bonus has a Points against of 588?,"SELECT losing_bonus FROM table_name_62 WHERE points_against = ""588""" What are the names of the publishers who published the oldest games?,SELECT DISTINCT T3.publisher_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id ORDER BY T1.release_year LIMIT 1 How many gold medals for germany (GER) having a rank less than 15?,"SELECT COUNT(gold) FROM table_name_64 WHERE nation = ""germany (ger)"" AND rank < 15" What is the average price of all products?,SELECT avg ( price ) FROM products What is her GPA?,SELECT stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1 What are the names of all the circuits that are in the UK or Malaysia?,"SELECT name FROM circuits WHERE country = ""UK"" OR country = ""Malaysia""" "What is the type of the document named ""David CV""?","SELECT document_type_code FROM documents WHERE document_name = ""David CV""" How many markets have number of cities smaller than 300?,SELECT count(*) FROM market WHERE Number_cities < 300 What title was used in the nomination for the title Biola Tak Berdawai?,"SELECT film_title_used_in_nomination FROM table_13719788_1 WHERE original_title = ""Biola tak berdawai""" What was the July 2013 population estimate of the location which had a population density larger than 14.1?,SELECT COUNT(2013 AS _population__july_est_) FROM table_name_10 WHERE population_density___km_2__ > 14.1 Find the number of users who posted some tweets.,SELECT count(DISTINCT UID) FROM tweets Out of them which ship names have more than one captain?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count ( * ) > 1 What is the 4.45 for Anna Rogowska from Poland?,"SELECT 445 FROM table_name_46 WHERE nationality = ""poland"" AND name = ""anna rogowska""" List first name and last name of customers lived in city Lockmanfurt.,"SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = ""Lockmanfurt"";" What is the modern house title of the 1st house?,"SELECT modern_title_of_house FROM table_name_27 WHERE house = ""1st""" List out the title of the word have id less than 20.,SELECT DISTINCT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid < 20 How many ships in this table?,select count ( * ) from ship List the name of actors in ascending alphabetical order.,SELECT Name FROM actor ORDER BY Name ASC What year has a genre the platform game?,"SELECT year FROM table_name_18 WHERE genre = ""platform game""" Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1; what is the right ascension (j2000) when the ngc number is 3576?,SELECT right_ascension___j2000__ FROM table_name_41 WHERE ngc_number = 3576 List all names of courses with 1 credit?,SELECT CName FROM COURSE WHERE Credits = 1 in what city is it located?,SELECT city FROM airports ORDER BY elevation DESC LIMIT 1 "Which Nationality has a Heat smaller than 2, and a Rank of 15?",SELECT nationality FROM table_name_16 WHERE heat < 2 AND rank = 15 How many losses did the team with 0 wins and more than 72 runs allowed have?,SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72 Which channels broadcast both in the morning and at night? Give me the channel names.,SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night' How many volcanic mountains are there in countries whose population is no more than 5000000?,SELECT COUNT(DISTINCT T3.Name) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Type = 'volcanic' AND T1.Population <= 5000000 "From 1960 to 1970, what is the total point of all-star players who are still alive?",SELECT SUM(T2.points) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id BETWEEN 1960 AND 1970 AND T1.deathDate = '0000-00-00' Who was in the 2005 film with the role mark cohen?,"SELECT 2005 AS _film FROM table_26436_2 WHERE role = ""Mark Cohen""" "What is the last 5 meetings that has w 5 as the current streak, and 3/18/2010 as the last meeting?","SELECT last_5_meetings FROM table_name_69 WHERE current_streak = ""w 5"" AND last_meeting = ""3/18/2010""" How many entries for highest when the low team was baltimore rays?,"SELECT COUNT(highest) FROM table_237757_10 WHERE low_team = ""Baltimore Rays""" "What is the average Frequency MHz that is on farwell, texas?","SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = ""farwell, texas""" List the publisher of the publication with the highest price.,SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1 "Who is the driver of the car manufactured by ktm, who started in grid 1.","SELECT rider FROM table_name_5 WHERE manufacturer = ""ktm"" AND grid = ""1""" Which event had a total of defending champion?,"SELECT event FROM table_name_39 WHERE total = ""defending champion""" What is the average for games Lost where the Points are 25 and games Played are more than 18?,SELECT AVG(lost) FROM table_name_28 WHERE points = 25 AND played > 18 "Which part has a bigger size, ""pink powder drab lawn cyan"" or ""cornflower sky burlywood green beige""?","SELECT T.p_name FROM ( SELECT p_name, p_size FROM part WHERE p_name IN ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige') ) AS T ORDER BY p_size DESC LIMIT 1" What is the D 46 √ when the D 50 √ is d 50 √?,"SELECT d_46_√ FROM table_name_14 WHERE d_50_√ = ""d 50 √""" Show names of teachers and the number of courses they teach.,"SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name" Please show different denominations and the corresponding number of schools.,"SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination" What is the road record for the team with an overall record of 22-11?,"SELECT road_record FROM table_23183195_2 WHERE overall_record = ""22-11""" "What are the result descriptions of the project whose detail is ""sint""?",SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' "What is the number of departments in Division ""AS""?","SELECT COUNT(*) FROM DEPARTMENT WHERE Division = ""AS""" "If the average is 45.65, what is the total number of innings?","SELECT COUNT(innings) FROM table_23316034_16 WHERE average = ""45.65""" Can you please show me the maximum damage for all storms?,SELECT max ( damage_millions_USD ) FROM storm "How many clubs does ""Linda Smith"" belong to?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Linda"" AND t3.lname = ""Smith""" On what date was Patty Fendick an opponent?,"SELECT date FROM table_name_95 WHERE opponent = ""patty fendick""" What was the attendance on September 28?,"SELECT MAX(attendance) FROM table_name_92 WHERE date = ""september 28""" "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?","SELECT MAX(product_price), MIN(product_price), product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code" What is the average height of players that have an overall rating lower than the average?,SELECT avg ( T1.height ) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating < ( SELECT avg ( overall_rating ) FROM Player_Attributes ) Great. I need to know which first name of the instructor goes with each class and class description.,"SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" How many poles has a percentage of 22.08%?,"SELECT SUM(poles) FROM table_name_57 WHERE percentage = ""22.08%""" Name the date for 2006,SELECT date FROM table_2267857_1 WHERE year = 2006 Show the average and maximum damage for all storms with max speed higher than 1000.,"SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000" Which away team had a venue of mcg?,"SELECT away_team FROM table_name_90 WHERE venue = ""mcg""" "What's the earliest year that Al Michaels was the play-by-play commentator, in which Lesley Visser and Dan Fouts were also sideline reporters?","SELECT MIN(year) FROM table_name_99 WHERE play_by_play = ""al michaels"" AND sideline_reporter_s_ = ""lesley visser and dan fouts""" Please show the categories of the music festivals with count more than 1.,SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 Which countries do not have a stadium that was opened after 2006?,SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006 What is the Name of the power station in the Field of Mokai?,"SELECT name FROM table_name_22 WHERE field = ""mokai""" Which game has the highest score in October with 9?,SELECT MAX(october) FROM table_name_41 WHERE game = 9 Find the number of followers for each user.,SELECT count(*) FROM follows GROUP BY f1 Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.,SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000 What is the Date of the Fortified House?,"SELECT date FROM table_name_39 WHERE type = ""fortified house""" What is the Essendon Home Team's venue?,"SELECT venue FROM table_name_61 WHERE home_team = ""essendon""" Who is the team that has a pick less than 154 and an offensive guard position?,"SELECT team FROM table_name_8 WHERE position = ""offensive guard"" AND pick < 154" "Province of leinster, and a County of fingal has which irish name?","SELECT irish_name FROM table_name_65 WHERE province = ""leinster"" AND county = ""fingal""" Name the term in office for liberal and state of sa for ian mclachlan,"SELECT term_in_office FROM table_name_27 WHERE party = ""liberal"" AND state = ""sa"" AND member = ""ian mclachlan""" What was the home team score when south melbourne was the home team?,"SELECT home_team AS score FROM table_name_49 WHERE home_team = ""south melbourne""" What are their respective source system codes?,"SELECT t1.master_customer_id,cmi_cross_ref_id,source_system_code FROM Customer_Master_Index as t1 join CMI_Cross_References as t2 on t1.master_customer_id = t2.master_customer_id where t1.cmi_details ! = ( 'Schmidt, Kertzmann and Lubowitz' ) " What is the an-stem for the word which has an ö-stems of siangar and an u-stem ending of syni?,"SELECT masculine_an_stems FROM table_name_18 WHERE feminine_ō_stems = ""siangar"" AND masculine_u_stems = ""syni""" "How many or women? | Did you mean to ask for the number of female assistant professors? | yes, how many are women?","SELECT count ( * ) FROM Faculty WHERE rank = ""AsstProf"" AND Sex = ""F""" "How many players, whose shooting/catching hand is both left and right, debuted their first NHL in 2011?",SELECT COUNT(playerID) FROM Master WHERE shootCatch IS NULL AND firstNHL = '2011' Who had the highest assists in game 4?,SELECT high_assists FROM table_11964154_2 WHERE game = 4 what is the minimum lowest with highest being 2363,SELECT MIN(lowest) FROM table_14003020_5 WHERE highest = 2363 What is the sum of Bronze when the total is more than 27?,SELECT SUM(bronze) FROM table_name_91 WHERE total > 27 Which orchestra has a recording year of 1951?,SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1951 What are the names and year of construction for the mills of 'Grondzeiler' type?,"SELECT name , built_year FROM mill WHERE TYPE = 'Grondzeiler'" What is the type with the fewest games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1 Show minimum ticket prices for exhibitions for all years before 2009?,SELECT min ( ticket_price ) FROM exhibition WHERE YEAR < 2009 How many available hotels are there in total?,SELECT count(*) FROM HOTELS What date has lost as the result and a competition of friendly with 1-2 as the score?,"SELECT date FROM table_name_86 WHERE result = ""lost"" AND competition = ""friendly"" AND score = ""1-2""" "List the camera lens names containing substring ""Digital"".","SELECT name FROM camera_lens WHERE name LIKE ""%Digital%""" "What is the week number with attendance of 44,132?",SELECT COUNT(week) FROM table_name_2 WHERE attendance = 44 OFFSET 132 what is the number of losses with wins less than 4 and goals against more than 39?,SELECT COUNT(losses) FROM table_name_28 WHERE goals_against > 39 AND wins < 4 What are the entry names of catalog with the attribute possessed by most entries.,SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1) What is the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan?,"SELECT rr_romaja FROM table_name_85 WHERE hangul_chosongul = ""강원도"" AND capital = ""wonsan""" Which bowling skills did the players from Zimbabwea have?,SELECT T1.Bowling_skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T3.Country_Name = 'Zimbabwea' Hello! Can you provide me with a list of all building names?,SELECT name FROM building Who were the co-drivers with more than 310 laps and team aston martin racing bms?,"SELECT co_drivers FROM table_name_42 WHERE laps > 310 AND team = ""aston martin racing bms""" How many drivers are there?,SELECT COUNT(*) FROM driver "Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?","SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = ""unaffected"" AND platelet_count = ""unaffected"" AND prothrombin_time = ""unaffected""" What is the code of airport that has fewest number of flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1 Which country does Žirovnica city belong to?,SELECT T1.country_name FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Žirovnica' "What are the numbers of episodes that were broadcast on September 1, 2003","SELECT episode__number FROM table_17481974_1 WHERE original_airdate = ""September 1, 2003""" "Show the name, home city, and age for all drivers.","SELECT name , home_city , age FROM driver" List the locations of schools in ascending order of enrollment.,SELECT LOCATION FROM school ORDER BY Enrollment ASC Which party has the largest number of delegates?,SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 "If the high points were by Anthony Morrow (24), what was the team?","SELECT team FROM table_27700375_6 WHERE high_points = ""Anthony Morrow (24)""" What school is in Brechin?,"SELECT external_link FROM table_21563298_1 WHERE location = ""Brechin""" What is the rad number for the dead end in rank 22?,"SELECT road_number FROM table_name_75 WHERE type = ""dead end"" AND rank = ""22""" "Who danced the Samba on October 14, 2008?","SELECT pair FROM table_name_14 WHERE date = ""october 14, 2008"" AND dance = ""samba""" What is the latitude of the island on which Mount Andrinjitra is located?,SELECT T1.Latitude FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island WHERE T2.Mountain = 'Andringitra' What are the names of different music genres?,SELECT Name FROM GENRE How much Rossendale has a Fylde smaller than 0?,SELECT COUNT(rossendale) FROM table_name_95 WHERE fylde < 0 "What is the Nation with less than 1 silver, and the total is 1, and bronze is less than 0?",SELECT nation FROM table_name_81 WHERE silver < 1 AND total = 1 AND bronze = 0 What is the lowest enrollment that has Lafayette as the location?,"SELECT MIN(enrollment) FROM table_name_46 WHERE location = ""lafayette""" What is the English Name of the Location in Chester?,"SELECT name__english_ FROM table_name_76 WHERE location = ""chester""" What part number(s) has a frequency of 2.4 ghz?,"SELECT part_number_s_ FROM table_name_20 WHERE frequency = ""2.4 ghz""" "What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?","SELECT MIN(electorate) FROM table_name_57 WHERE political_party = ""conservative"" AND constituency = ""south west devon"" AND ""conservative"" > 2 AND name = ""plymstock radford""" what is the owner of the callsign wliw,"SELECT owner FROM table_1979203_1 WHERE callsign = ""WLIW""" "If the team is Billy Ballew Motorsports, what is the race time?","SELECT race_time FROM table_2260452_1 WHERE team = ""Billy Ballew Motorsports""" What are the hometowns of gymnasts and the corresponding number of gymnasts?,"SELECT T2.Hometown , COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown" "State the birth place of co-executive producer for nominee of ""Outstanding Animated Program (For Programming Less Than One Hour)"" award.",SELECT T1.birth_place FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T2.role = 'co-executive producer'; What is the name of the company that has the product with the highest unit price?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) What is the marriage date for the Habsburg-Lorraine house member who died 29 December 1829?,"SELECT marriage FROM table_name_67 WHERE death = ""29 december 1829""" What is the average number of points for a song ranked 2nd with a draw greater than 3?,"SELECT AVG(points) FROM table_name_35 WHERE rank = ""2nd"" AND draw > 3" Can you tell me the organization id for the project id 1 ?,SELECT organisation_id FROM Projects WHERE project_id = 1 What is the difference in the average number of sales per day of root beer brands that contain honey and that don’t contain honey.,SELECT (CAST(SUM(CASE WHEN T1.Honey = 'TRUE' THEN 1 ELSE 0 END) AS REAL) / COUNT(DISTINCT T3.TransactionDate)) - (CAST(SUM(CASE WHEN T1.Honey <> 'TRUE' THEN 1 ELSE 0 END) AS REAL) / COUNT(DISTINCT T3.TransactionDate)) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID "What was the highest goals with fewer than 16 losses, fewer than 11 wins, and a goal difference greater than -9?",SELECT MAX(goals_for) FROM table_name_8 WHERE losses < 16 AND wins < 11 AND goal_difference > -9 "What is the highest Losses, when Wins is ""1"", and when Matches is less than 2?",SELECT MAX(losses) FROM table_name_21 WHERE wins = 1 AND matches < 2 "When was the episode with a 1,036,000 BARB rating first aired in Denmark?","SELECT first_broadcast_denmark___dr1__ FROM table_26591309_3 WHERE official_barb_ratings = ""1,036,000""" What is every value for Monday August 24 if Friday August 28 is 23' 22.25 96.864mph?,"SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = ""23' 22.25 96.864mph""" What is the score for 2004?,SELECT score FROM table_name_69 WHERE year = 2004 What was the score on October 30?,"SELECT score FROM table_name_64 WHERE date = ""october 30""" "Great! Can you list the ids of these students, and filter the list by only the students who are registered for one or more courses?",SELECT distinct T1.student_id FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id "What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5?",SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5 What team has +119 Points diff?,"SELECT team FROM table_name_83 WHERE points_diff = ""+119""" Can you list the maximum number of used kb in screen mode?,SELECT max ( used_kb ) FROM screen_mode How old is the youngest winning pilot and what is their name?,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1" "Which county has a median household income of $98,090?","SELECT county FROM table_1447085_1 WHERE median_house__hold_income = ""$98,090""" Who has the lead in Norway?,"SELECT lead FROM table_name_89 WHERE nation = ""norway""" "For each city, list their names in decreasing order by their highest station latitude.",SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC Please list the awards the coaches who are born in Canada have won.,SELECT DISTINCT T2.award FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T1.birthCountry = 'Canada' What are the categories of the top 2 oldest events?,SELECT T4.category FROM events_relevant AS T1 INNER JOIN app_events_relevant AS T2 ON T1.event_id = T2.event_id INNER JOIN app_labels AS T3 ON T3.app_id = T2.app_id INNER JOIN label_categories AS T4 ON T3.label_id = T4.label_id ORDER BY T1.timestamp LIMIT 2 * I have left the chat *,"SELECT Room FROM Faculty where Rank = ""Instructor""" How many matches are there in 2008?,SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2008%' What are the names of representatives in descending order of votes?,SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC Return the color description that is most common across all products.,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1 What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.,"SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = ""tiffany"" AND tropical_lows > 10" How many byes when the draws are fewer than 0?,SELECT AVG(byes) FROM table_name_84 WHERE draws < 0 How many of those courses are there?,select count ( * ) from course where title in ( SELECT title FROM course where dept_name = 'Mech. Eng.' and credits > 3 ) and dept_name ! = 'Mech. Eng.' What ERP W has a 95.1 MHZ frequency?,SELECT erp_w FROM table_name_62 WHERE frequency_mhz = 95.1 What is the T score of the team with an E score of 6.625?,SELECT t_score FROM table_name_52 WHERE e_score = 6.625 "Which title is about helpful hints on how to use your electronic resources, which publisher published it and what is the price of this book?","SELECT T1.title, T2.pub_name, T1.price FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.notes = 'Helpful hints on how to use your electronic resources to the best advantage.'" What is the name of the losing team during an exhibition game in 1912?,SELECT T2.name FROM SeriesPost AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND tmIDLoser = tmID WHERE T1.note = 'EX' AND T2.year = '1912' What are the names of customers who never made an order.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id "What is the Attendance for a Week earlier than 16, and a Date of bye?","SELECT attendance FROM table_name_39 WHERE week < 16 AND date = ""bye""" "Show the players and years played for players from team ""Columbus Crew"".","SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" Is (206) 555-1189 the home phone number for Laura Callahan?,SELECT CASE WHEN HomePhone = '(206) 555-1189' THEN 'YES' ELSE 'NO' END FROM Employees WHERE FirstName = 'Laura' AND LastName = 'Callahan' list the party themes available,SELECT Party_Theme FROM party "What is the per capita income of the county with a median family income of $40,492?","SELECT per_capita_income FROM table_name_61 WHERE median_family_income = ""$40,492""" What is the smallest track number?,SELECT MIN(track) FROM table_11839306_2 How many laps in total does the driver named Eddie Irvine have?,"SELECT COUNT(laps) FROM table_name_7 WHERE driver = ""eddie irvine""" Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.,"SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'" Can you tell me the Score that has the Game of 40?,SELECT score FROM table_name_33 WHERE game = 40 Find the number of distinct name of losers.,SELECT COUNT(DISTINCT loser_name) FROM matches What category was Kasautii Zindagii Kay nominated for after 2005?,"SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = ""kasautii zindagii kay""" List the city of the business where they open from 1 pm to 6 pm on Saturday.,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.closing_time LIKE '6PM' AND T2.opening_time LIKE '1PM' AND T3.day_of_week LIKE 'Saturday' "which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?","SELECT film FROM table_name_23 WHERE category = ""best actress – musical or comedy"" AND lost_to = ""nicole kidman ( moulin rouge! )""" List the student's email with grade of B in a course with difficulty greater than the 80% of average difficulty of all courses.,SELECT T2.email FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T1.course_id = T3.course_id WHERE T1.grade = 'B' GROUP BY T3.diff HAVING T3.diff > AVG(T3.diff) * 0.8 What is the total number of rounds at 5:36?,"SELECT COUNT(round) FROM table_name_29 WHERE time = ""5:36""" What is the last name of the musician who was in the most songs?,SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 What is the report corresponding to the game that had the Townsville Crocodiles as home team?,"SELECT report FROM table_name_59 WHERE home_team = ""townsville crocodiles""" "What is Wheel Arrangement, when Manufacturer is ""Baldwin"", and when Quantity Made is 12?","SELECT wheel_arrangement FROM table_name_52 WHERE manufacturer = ""baldwin"" AND quantity_made = ""12""" Tell me the wkts for econ of 4.23,"SELECT wkts FROM table_name_13 WHERE econ = ""4.23""" How many different results are there for the battles?,SELECT count(DISTINCT RESULT) FROM battle How many districts for rené l. derouen?,"SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = ""René L. DeRouen""" "Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5?","SELECT record FROM table_name_16 WHERE location = ""fleetcenter"" AND date = ""fri. apr. 5""" Tell me the venue for north melbourne,"SELECT venue FROM table_name_85 WHERE away_team = ""north melbourne""" How many candidates were elected first in 1980?,SELECT COUNT(candidates) FROM table_1341453_20 WHERE first_elected = 1980 What is the first episode with a netflix episode code of s02e20?,"SELECT MIN(episode) FROM table_15187735_4 WHERE netflix = ""S02E20""" When 1233 is the population of 2011 what is the land area in kilometers squared?,SELECT land_area__km²_ FROM table_189598_7 WHERE population__2011_ = 1233 Find the max and min grade point for all letter grade.,"SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION" What are Unit 2's dates of commissioning?,SELECT COUNT(date_of_commissioning) FROM table_28672269_1 WHERE unit_number = 2 Show ids for all documents with budget types described as 'Government'.,"SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Government""" What is the type where the name is bojan?,"SELECT type FROM table_11891841_2 WHERE name = ""Bojan""" When was a competition held at Pietermaritzburg?,"SELECT date FROM table_name_83 WHERE venue = ""pietermaritzburg""" What is the lowest swimsuit score a contestant from Rhode Island with an average larger than 9.235 has?,"SELECT MIN(swimsuit) FROM table_name_66 WHERE state = ""rhode island"" AND average > 9.235" How many goals did the club from Hawthorn score in the 1971 season?,"SELECT goals FROM table_name_5 WHERE club = ""hawthorn"" AND season = ""1971""" How many tree species are there when the total plant species is 113?,SELECT COUNT(tree_species) FROM table_16577990_1 WHERE total_plant_species = 113 "What is maximum, minimum and average amount of outstanding of customer?","SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;" Who was the opponent in the math that was played in Nice on a clay court?,"SELECT opponent FROM table_name_23 WHERE surface = ""clay"" AND tournament = ""nice""" "How many players born in USA are right-handed batters? That is, have the batter value 'R'.",SELECT COUNT(*) FROM player WHERE birth_country = 'USA' AND bats = 'R' What's the report for the Silverstone circuit?,"SELECT report FROM table_1140117_5 WHERE circuit = ""Silverstone""" Which team appointed a person on 23 December 2008?,"SELECT team FROM table_18788823_5 WHERE date_of_appointment = ""23 December 2008""" Name the high assists for may 21,"SELECT high_assists FROM table_17622423_12 WHERE date = ""May 21""" How many orders in total have the customers in the household segment made?,SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'HOUSEHOLD' "Among the authors affiliated with Soongsil University, list the authors' names and papers published during the year 2000.","SELECT T2.Title, T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'Soongsil University' AND T2.Year = 2000" What is the maximum number of wins in the season with 22 starts?,SELECT MAX(wins) FROM table_1637041_6 WHERE starts = 22 When was Color of green first issued?,"SELECT MIN(first_issued) FROM table_name_51 WHERE color = ""green""" "Provide the tokenized name of the method ""Sky.Excel.ExcelBook.TypeConvert"".",SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert' What is the surface of the tournament with a runner-up outcome and dudi sela as the opponent?,"SELECT surface FROM table_name_59 WHERE outcome = ""runner-up"" AND opponent = ""dudi sela""" What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made?,SELECT AVG(top_10) FROM table_name_31 WHERE top_25 = 2 AND cuts_made < 10 What was Barreto's song choice when the theme was samba?,"SELECT song_choice FROM table_27614571_1 WHERE theme = ""Samba""" How many entries are shown for an air date when the team guest captain was stephen k amos?,"SELECT COUNT(air_date) FROM table_25816476_2 WHERE team_guest_captain = ""Stephen K Amos""" Incumbent Tim Holden belonged to what party? ,"SELECT party FROM table_1341453_40 WHERE incumbent = ""Tim Holden""" What is the smallest Pick with Overall of 244?,SELECT MIN(pick) FROM table_name_33 WHERE overall = 244 What date did the away team Bristol Rovers play?,"SELECT date FROM table_name_63 WHERE away_team = ""bristol rovers""" List down the movie titles that were produced in Canada.,SELECT T1.title FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'Canada' "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.","SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'" "Among the teams whose shorthanded goals are between 1 to 5, which player is the most trustworthy in the critical moment?","SELECT T2.nameGiven, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.SHG BETWEEN 1 AND 5 ORDER BY T1.GWG DESC LIMIT 1" "What are the city name, id, and number of addresses corresponding to the city with the most addressed?","SELECT T2.city , count(*) , T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1" "What is Home Team, when Tie No is ""7""?","SELECT home_team FROM table_name_5 WHERE tie_no = ""7""" Who won the Suntree Seniors Classic?,"SELECT winner FROM table_11622924_1 WHERE tournament = ""Suntree Seniors Classic""" What is the height for club Havk Mladost?,"SELECT height FROM table_name_49 WHERE club = ""havk mladost""" "What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21?",SELECT name FROM table_name_10 WHERE bonus > 1 AND only_point > 7 AND total_point < 21 How many exhibition are there in year 2005 or after?,SELECT count(*) FROM exhibition WHERE YEAR >= 2005 What is the unformatted capacity per side if the size is 8in?,"SELECT unformatted_capacity_per_side FROM table_name_42 WHERE size = ""8in""" "Which league did player id""adamsja01"" play in 1920?",SELECT lgID FROM ScoringSC WHERE playerID = 'adamsja01' AND year = 1920 In which country does Roberto Almeida?,"SELECT country FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida"";" What is the id of the bike that traveled the most in 94002?,SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1 Which average attendance has stoneman (0-2) as the loss?,"SELECT AVG(attendance) FROM table_name_18 WHERE loss = ""stoneman (0-2)""" What are the titles of all movies that have rating star is between 3 and 5?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 Where is Dynamo-2 located?,"SELECT location FROM table_name_38 WHERE team = ""dynamo-2""" What round of the draft was Stan Adams selected?,"SELECT AVG(round) FROM table_name_59 WHERE player = ""stan adams""" "How many episodes aired Saturday, July 11, 2009","SELECT COUNT(episode__number) FROM table_17525955_2 WHERE us_air_date = ""Saturday, July 11, 2009""" Which building has most faculty members?,SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1 Which season was one of the players rated +98?,"SELECT season FROM table_name_6 WHERE rating = ""+98""" Who sponsors driver neil bonnett?,"SELECT sponsor FROM table_name_18 WHERE driver = ""neil bonnett""" Mention the genre of the 2Xtreme.,SELECT T2.id FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2Xtreme' How many teams are listed for 3rd wickets?,"SELECT COUNT(batting_team) FROM table_1670921_1 WHERE wicket = ""3rd""" "What is the venue for the friendly competition at Dreisamstadion, Freiburg?","SELECT score FROM table_name_52 WHERE competition = ""friendly"" AND venue = ""dreisamstadion, freiburg""" What is the role with the smallest number of employees? Find the role codes.,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1 What is the number of students playing as a goalie?,SELECT count(*) FROM tryout WHERE pPos = 'goalie' What is Astrid Gruber's email and phone number?,"SELECT email , phone FROM customers WHERE first_name = ""Astrid"" AND last_name = ""Gruber"";" How many donations of more than $100 were made for an honoree?,SELECT COUNT(donationid) FROM donations WHERE dollar_amount = '100_and_up' AND for_honoree = 't' How many white patients whose birth year is 1935 have a stroke?,"SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.patient WHERE strftime('%Y', T1.birthdate) = '1935' AND T1.race = 'white' AND T2.DESCRIPTION = 'Stroke'" What are the descriptions and names of the courses that have student enrollment bigger than 2?,"SELECT T1.course_description , T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2" Show director with the largest number of show times in total.,SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY SUM(T1.show_times_per_day) DESC LIMIT 1 Which weapon was used when the Battle of the Planets was Jason?,"SELECT weapon FROM table_name_48 WHERE battle_of_the_planets = ""jason""" What is the maximum sweep volume of a car that costs less than $30000?,SELECT MAX(T1.displacement / T1.cylinders) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price < 30000 What was the team classification where andré greipel was the winner and had the points classification?,"SELECT team_classification FROM table_25655781_17 WHERE winner = ""André Greipel"" AND points_classification = ""André Greipel""" What did the home team score at MCG?,"SELECT home_team AS score FROM table_name_39 WHERE venue = ""mcg""" What is Brendan Locke's College/Junior/Club Team (League)?,"SELECT college_junior_club_team__league_ FROM table_name_11 WHERE player = ""brendan locke""" What is the average year needed by a user with uber fans to become an elite user?,SELECT CAST(SUM(T2.year_id - T1.user_yelping_since_year) AS REAL) / COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id WHERE T1.user_fans = 'Uber' "How many customers have a credit limit of not more than 100,000 and which customer made the highest total payment amount for the year 2004?","SELECT ( SELECT COUNT(customerNumber) FROM customers WHERE creditLimit <= 100000 AND customerNumber IN ( SELECT customerNumber FROM payments WHERE STRFTIME('%Y', paymentDate) = '2004' ) ), T1.customerName FROM customers AS T1 INNER JOIN payments AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.creditLimit <= 100000 AND STRFTIME('%Y', T2.paymentDate) = '2004' GROUP BY T1.customerNumber, T1.customerName ORDER BY SUM(T2.amount) DESC LIMIT 1" In 2012 what was the average finish?,SELECT avg_finish FROM table_1012730_1 WHERE year = 2012 Who is the player in guard position from Stephen F. Austin in a round less than 8?,"SELECT player FROM table_name_60 WHERE round < 8 AND position = ""guard"" AND school_club_team = ""stephen f. austin""" Find the maximum and minimum monthly rental for all student addresses.,"SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses" How many scores have a Place of t5?,"SELECT COUNT(score) FROM table_name_2 WHERE place = ""t5""" Who was the away team that played Northampton Town at home with a tie number of replay?,"SELECT away_team FROM table_name_53 WHERE tie_no = ""replay"" AND home_team = ""northampton town""" "When John Aalberg took part in the 1994 Winter Olympic Game, how old was he?",SELECT T2.age FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'John Aalberg' AND T1.games_name = '1994 Winter' "Which Date has a Location of davos, and a Time of 45.7?","SELECT date FROM table_name_86 WHERE location = ""davos"" AND time = ""45.7""" What is the average year for the Olympic Games?,"SELECT AVG(year) FROM table_name_68 WHERE competition = ""olympic games""" Find the response status to customer whose geographic ID of 134.,SELECT T2.RESPONSE FROM Customers AS T1 INNER JOIN mailings3 AS T2 ON T1.ID = T2.REFID WHERE T1.GEOID = 134 How many architects are female?,SELECT count(*) FROM architect WHERE gender = 'female' "Return the names of conductors that do not have the nationality ""USA"".",SELECT Name FROM conductor WHERE Nationality != 'USA' How many employees in total are in charge of the sales in the Eastern Region?,SELECT COUNT(T.EmployeeID) FROM ( SELECT T3.EmployeeID FROM Region AS T1 INNER JOIN Territories AS T2 ON T1.RegionID = T2.RegionID INNER JOIN EmployeeTerritories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.RegionDescription = 'Eastern' GROUP BY T3.EmployeeID ) T Select all the data from the products and each product's manufacturer.,SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code What catalogs were done on these dates?,select catalog_name from Catalogs where date_of_latest_revision in ( SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count ( * ) > 1 ) "What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956?","SELECT MIN(points) FROM table_name_41 WHERE entrant = ""goulds' garage (bristol)"" AND engine = ""maserati straight-6"" AND year < 1956" What was the score of the game when Blackpool was away?,"SELECT score FROM table_name_77 WHERE away_team = ""blackpool""" "Which employees were hired after September 7th, 1987?",SELECT * FROM employees WHERE hire_date > '1987-09-07' "If the team is Worcestershire and the Matched had were 5, what is the highest score?","SELECT highest_score FROM table_27268238_4 WHERE matches = 5 AND team = ""Worcestershire""" When el cibao is the geographical region and the height is 1.80 who is the contestant?,"SELECT contestant FROM table_18618707_1 WHERE height = ""1.80"" AND geographical_regions = ""El Cibao""" What is the score of the game on January 12?,"SELECT score FROM table_name_46 WHERE date = ""january 12""" What is the name of the artist who joined latest?,SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 "What is the total number of Against, when Date is ""16/03/1996""?","SELECT COUNT(against) FROM table_name_88 WHERE date = ""16/03/1996""" On which date was the Dodge Dealers Grand Prix GTS class race?,"SELECT date FROM table_name_46 WHERE race = ""dodge dealers grand prix"" AND class = ""gts""" "What is Position, when Caps is Example, and When Player is Shane Kelly?","SELECT position FROM table_name_66 WHERE caps = ""example"" AND player = ""shane kelly""" WHAT ARE THE MANAGER'S FIRST NAME LAST NAME AND ID WHO WON THE MOST MANAGER AWARD,"SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count ( * ) DESC LIMIT 1" "If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?","SELECT 2 AS nd_throw FROM table_17265535_7 WHERE equation = ""1 × 9² + 4 × 9 + 0""" "What was the result of the game that took place on april 26, 2003?","SELECT result FROM table_name_83 WHERE date = ""april 26, 2003""" How many points for did the club that had 77 tries for have ?,"SELECT points_for FROM table_name_43 WHERE tries_for = ""77""" What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34?,"SELECT SUM(avg_g) FROM table_name_95 WHERE loss = 0 AND name = ""dan dierking"" AND gain > 34" What is the oldest age of male clients?,SELECT MAX(age) FROM client WHERE sex = 'Male' Whate place has 18 points with lost less than 8?,SELECT COUNT(place) FROM table_name_12 WHERE points = 18 AND lost < 8 How many games did BMG Interactive Entertainment release in 2012?,SELECT COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T3.release_year = 2012 "For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($)","SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_71 WHERE score = ""207 (-9)"" AND tournament = ""gte northwest classic""" Show me the numbers of all trains that go to Chennai,SELECT count ( * ) FROM train WHERE destination = 'Chennai' Who was the Opponent at the Game Site Indianapolis Hoosierdome?,"SELECT opponent FROM table_name_21 WHERE game_site = ""indianapolis hoosierdome""" What is the average revenue made by Latin movies?,SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin' What are the names of artists who have not released any albums?,SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId Who was the Home team at the Western Oval location?,"SELECT home_team FROM table_name_62 WHERE venue = ""western oval""" show the location name and code with the least documents.,"SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count ( * ) ASC LIMIT 1" Leeds City Council is the local authority for what type of location?,"SELECT type FROM table_2273738_1 WHERE local_authority = ""Leeds city Council""" "Where is the coordinate (41.66236555, -87.63470194) located? Give the name of the district.",SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.longitude = '-87.63470194' AND T1.latitude = '41.66236555' what are the dorm ids?,SELECT dormid FROM dorm WHERE student_capacity > 300 What are the names of all cartoons directed by Ben Jones?,"SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"";" Which Coach has a Most Improved of rory thompson?,"SELECT coach FROM table_name_75 WHERE most_improved = ""rory thompson""" What is the Player with a Pick that is 6?,SELECT player FROM table_name_15 WHERE pick = 6 What was the least amount of wins?,SELECT MIN(wins) FROM table_24937583_1 "Claim number 801 had 4 settlements, what was the largest one? | Do you mean largest in terms of the amount claimed or amount settled? | Yes, both.","SELECT T2.settlement_id,T2.amount_claimed,T2.amount_settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id where T1.claim_id = 801" What is the average price for the order line?,SELECT AVG(price) FROM order_line "What are the names of customers with accounts, and how many checking accounts do each of them have?","SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name" "What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?","SELECT MAX(draw) FROM table_name_83 WHERE points > 31 AND place > 6 AND english_translation = ""listen to me""" What explosion had an altitude of 539 km?,"SELECT explosion FROM table_148578_1 WHERE altitude__km_ = ""539""" Who was home on November 26?,"SELECT home FROM table_name_73 WHERE date = ""november 26""" How many times is the nation china and bronze more than 0?,"SELECT COUNT(rank) FROM table_name_4 WHERE nation = ""china"" AND bronze > 0" What are the enrollment and primary conference for the university which was founded the earliest?,"SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1" How many picks are there with an affiliation is the University of California Norcal Lamorinda United?,"SELECT COUNT(pick__number) FROM table_25518547_2 WHERE affiliation = ""University of California NorCal Lamorinda United""" Which address has both members younger than 30 and members older than 40?,SELECT address FROM member WHERE age < 30 INTERSECT SELECT address FROM member WHERE age > 40 What's the downstream rate for the Itu g.992.2 having a version of ADSL?,"SELECT downstream_rate FROM table_name_2 WHERE version = ""adsl"" AND standard_name = ""itu g.992.2""" List the products whereby the standard cost is $80 more than previous standard cost in history.,SELECT T1.Name FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.StandardCost - T2.StandardCost > 80 GROUP BY T1.Name What is the 1989 result of the tournament in which Katerina finished nh in 1986?,"SELECT 1989 FROM table_name_94 WHERE 1986 = ""nh""" "How much did the away team b3 score on August 12, 2014?","SELECT score FROM table_name_17 WHERE away_team = ""b3"" AND date = ""august 12, 2014""" What Score has an Opponent of @ Blue Jays with a Date of June 7?,"SELECT score FROM table_name_16 WHERE opponent = ""@ blue jays"" AND date = ""june 7""" "What is Lost, when Points For is ""205""?","SELECT lost FROM table_name_16 WHERE points_for = ""205""" What race did eugenio silvani win?,"SELECT name FROM table_name_7 WHERE winning_driver = ""eugenio silvani""" "What is the type for the Cathay Pacific Holidays company, an incorporation of Hong Kong and listed activities as Travel Agency?","SELECT type FROM table_name_42 WHERE incorporated_in = ""hong kong"" AND principal_activities = ""travel agency"" AND company = ""cathay pacific holidays""" Which country was the source of Pjandsh River? Give the full name of the country.,SELECT T1.Name FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country WHERE T2.River = 'Pjandsh' who were the candidates for district ohio 6?,"SELECT candidates FROM table_1341598_36 WHERE district = ""Ohio 6""" Who is the rider with 22 laps and a +19.435 time/retired?,"SELECT rider FROM table_name_86 WHERE laps = ""22"" AND time_retired = ""+19.435""" How many rebounds does Fedor likholitov have with a rank greater than 8?,"SELECT SUM(rebounds) FROM table_name_21 WHERE name = ""fedor likholitov"" AND rank > 8" Find the names of patients who are not using the medication of Procrastin-X.,SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X' Tell me the name for first elected more than 1988 and district of mason,"SELECT name FROM table_name_4 WHERE first_elected > 1988 AND district = ""mason""" What is the total number of points combined from the teams that played over 14 games?,SELECT COUNT(points) FROM table_name_52 WHERE played > 14 Name the outgoing manager for mutual consent and position 16th,"SELECT outgoing_manager FROM table_27225944_3 WHERE manner_of_departure = ""Mutual consent"" AND position_in_table = ""16th""" Name the lowest 2008 for guizhou when 2005 is less than 31,"SELECT MIN(2008) FROM table_name_45 WHERE year = ""guizhou"" AND 2005 < 31" "For the film made in 1964: (37th), what was the result?","SELECT result FROM table_name_11 WHERE year = ""1964: (37th)""" How much is his salary?,"SELECT salary FROM instructor where dept_name = ""Statistics"" order by salary desc limit 1" How many followers does the list created by the user whose user_avatar_image_url is https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214 have?,SELECT SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_avatar_image_url = 'https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214' "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.","SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking" "What is Swimmer, when Year is less than 2011, and when Time is ""53.06""?","SELECT swimmer FROM table_name_64 WHERE year < 2011 AND time = ""53.06""" I want to know the highest rank with placings more than 123 and points greater than 88.06,SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06 Count the number of dogs that went through a treatment.,SELECT count(DISTINCT dog_id) FROM Treatments How many regions have a capital of matanzas and a 2005 population under 670427?,"SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = ""matanzas"" AND population__2005_ < 670427" When carlton was the home team what was the lowest crowd turnout?,"SELECT MIN(crowd) FROM table_name_72 WHERE home_team = ""carlton""" Hi - can you please tell me the average room count of all Provisional bookings?,"SELECT avg ( room_count ) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" "Which Date has a Game site of shea stadium, and a Week of 5?","SELECT date FROM table_name_18 WHERE game_site = ""shea stadium"" AND week = 5" What are the names of the five cities with the greatest proportion of white people?,SELECT Name FROM city ORDER BY White DESC LIMIT 5 how many bosnian in cook islands is sri lankan,"SELECT bosnian FROM table_24807774_1 WHERE cook_islands = ""Sri Lankan""" "What is the Category of the Rodez, France Tournament?","SELECT category FROM table_name_69 WHERE tournament = ""rodez, france""" "What event has european championships as the tournament, with 2006 as the year?","SELECT event FROM table_name_61 WHERE tournament = ""european championships"" AND year = 2006" On what dates was the final score of the game L 14–24?,"SELECT date FROM table_25380472_2 WHERE final_score = ""L 14–24""" "Name the head of household that has married filing separately of $104,426–$186,475","SELECT head_of_household FROM table_name_89 WHERE married_filing_separately = ""$104,426–$186,475""" Which attraction type does the most tourist attractions belong to? Tell me its attraction type description and code.,"SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" List down the customers that purchased the product named Xerox 23 in the South region.,SELECT DISTINCT T2.`Customer Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T1.Region = 'South' AND T3.`Product Name` = 'Xerox 23' "OK,List out the all player id and college name","SELECT T1.cName, T3.pID FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID" How many models do not have the wifi function?,SELECT count(*) FROM chip_model WHERE wifi = 'No' How many cities have a population under 5000000?,SELECT count ( city ) FROM city WHERE regional_population < 5000000 "What region has the label of alfa records and the date of January 23, 1987?","SELECT region FROM table_name_46 WHERE label = ""alfa records"" AND date = ""january 23, 1987""" Calculate the percentage of sold blades in the total number of transactions.,"SELECT CAST(SUM(IIF(T1.Name = 'Blade', T2.Quantity, 0)) AS REAL) * 100 / SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID" How many overs did Oliver Hannon-Dalby have?,"SELECT overs FROM table_15893020_2 WHERE player = ""Oliver Hannon-Dalby""" What are the names of all playlists that have more than 100 tracks?,SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100; What was the average pick with Ed O'Bannon and a round smaller than 1?,"SELECT AVG(pick) FROM table_name_74 WHERE player = ""ed o'bannon"" AND round < 1" What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao?,"SELECT AVG(number_of_clubs) FROM table_name_66 WHERE fourth_placed = ""shenzhen jianlibao"" AND season < 2003" Jack Nicklaus finished in what place?,"SELECT finish FROM table_name_18 WHERE player = ""jack nicklaus""" How many mountains are there in Indonesia?,SELECT COUNT(DISTINCT T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Indonesia' "Where did the teams play on October 16, 1977?","SELECT game_site FROM table_13259034_2 WHERE date = ""October 16, 1977""" WHAT IS THE RIDER WITH A 21 GRID?,"SELECT rider FROM table_name_5 WHERE grid = ""21""" How many cities are there in the country with the surface area of 652090?,"SELECT T2.Name, COUNT(T1.Name) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea = 652090 GROUP BY T2.Name" What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?,SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.",SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year Excellent! Can you filter this list to include only the rows that contain the most common (most frequently occurring) year of creation?,"select Department_ID, Name, Creation from department where creation = ( SELECT creation FROM department GROUP BY creation ORDER BY count ( * ) DESC LIMIT 1 ) " What is the total number of tiers for the postseason of semifinalist?,"SELECT SUM(tier) FROM table_name_45 WHERE postseason = ""semifinalist""" What heat and what lane is thi hue pham in?,"SELECT heat_ & _lane FROM table_name_25 WHERE name = ""thi hue pham""" How many values of hosted have a highest value of 42659?,SELECT COUNT(hosted) FROM table_2472711_32 WHERE highest = 42659 From which hometowns did both people older than 23 and younger than 20 come from?,SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20 What is the rental price per day for Airplane Sierra?,SELECT rental_rate / rental_duration AS result FROM film WHERE title = 'AIRPLANE SIERRA' "What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1?",SELECT nation FROM table_name_62 WHERE total < 27 AND gold < 1 AND bronze > 1 What is the original title of the Gypsy Magic film title used in nomination?,"SELECT original_title FROM table_name_67 WHERE film_title_used_in_nomination = ""gypsy magic""" Show the different nationalities and the number of journalists of each nationality.,"SELECT Nationality , COUNT(*) FROM journalist GROUP BY Nationality" What is the most divisional titles won by a school with an enrollment of 30049?,SELECT MAX(divisional_titles) FROM table_20190834_1 WHERE enrollment = 30049 What is the lowest amount of bronze medals won by Music City Mystique where they won more than 3 gold medals and less than 15 total medals?,"SELECT MIN(bronze_medals) FROM table_name_27 WHERE gold_medals > 3 AND ensemble = ""music city mystique"" AND total_medals < 15" What is the average SAT value for incoming students in all of the schools located in the state with the lowest state appropriations to higher education in fiscal year 2011 per resident?,SELECT AVG(t1.med_sat_value) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON t1.state = t2.state ORDER BY t2.state_appr_value LIMIT 1 What is the average number of League Goals for palyers with 0 FA Cup Goals?,SELECT AVG(league_goals) FROM table_name_26 WHERE fa_cup_goals < 0 Hello! Can you provide me with the first and last name of the customer who has account name 900?,"SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""900""" "When Travis Lee was picked, what was the highest pick?","SELECT MAX(pick) FROM table_name_94 WHERE player = ""travis lee""" "How much is the money ($) when the country is united states, to par is e and the score is 72-75-70-71=288?","SELECT SUM(money___) AS $__ FROM table_name_59 WHERE country = ""united states"" AND to_par = ""e"" AND score = 72 - 75 - 70 - 71 = 288" What was the score of the match played on 18 January 1999?,"SELECT outcome FROM table_name_48 WHERE date = ""18 january 1999""" "Show me the departments managed by heads whose temporary acting value is 'Yes', please | The table shows the ids of departments managed by heads whose temporary acting value is 'Yes'. | Great, could you tell me the name and number of employees within those departments?","SELECT T1.name , T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'" Could you tell me the dates students with first name 'Fanny' left the university?,"SELECT date_left_university FROM Students WHERE first_name = ""Fanny""" whats is nationality of the craif colbertaldo?,"SELECT Nationality FROM swimmer where name = ""craif colbertaldo""" Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?,"SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'" Where did SB Joshi come from?,SELECT T2.Country_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T1.Player_Name = 'SB Joshi' "What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?",SELECT AVG(hexadecimal) FROM table_name_62 WHERE decimal < 53 AND octal < 61 AND glyph > 0 What is the last name of faculty partcipating in most activities?,SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count ( * ) DESC LIMIT 1 What is the transaction id of all investors that made transactions with sgare greater than 100?,SELECT t2.transaction_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 How many patients who are allergic to peanuts have asthma?,SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN allergies AS T3 ON T2.patient = T3.PATIENT WHERE T1.DESCRIPTION = 'Asthma' AND T3.DESCRIPTION = 'Allergy to peanuts' Which Driver won the Circuit of Rio de Janeiro?,"SELECT winning_driver FROM table_name_13 WHERE circuit = ""rio de janeiro""" "How much Time has a Reaction of 0.155, and an Athlete of kristof beyens, and a Rank smaller than 3?","SELECT COUNT(time) FROM table_name_15 WHERE react = 0.155 AND athlete = ""kristof beyens"" AND rank < 3" What frequency is dxec-fm?,"SELECT frequency FROM table_2610582_7 WHERE callsign = ""DXEC-FM""" What was the TV Time for opponent jacksonville jaguars?,"SELECT tv_time FROM table_name_51 WHERE opponent = ""jacksonville jaguars""" When was the date of appointment by Hugo Broos?,"SELECT date_of_appointment FROM table_27374004_4 WHERE replaced_by = ""Hugo Broos""" Which Themed Area has a Name of troublesome trucks runaway coaster?,"SELECT themed_area FROM table_name_12 WHERE name = ""troublesome trucks runaway coaster""" "What is the population density of the nation whose capital city is in the Distrito Federal province, and what portion of its gross domestic product is devoted to its industries?","SELECT T1.Population / T1.Area, T2.Industry FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Province = 'Distrito Federal'" Which campus was opened between 1935 and 1939?,SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939 What is the Date for the wgc-accenture match play championship?,"SELECT date FROM table_name_83 WHERE tournament = ""wgc-accenture match play championship""" "What is Film Title Used In Nomination, when Original Title is ""Báng-Kah (艋舺)""","SELECT film_title_used_in_nomination FROM table_name_27 WHERE original_title = ""báng-kah (艋舺)""" What was the score of game 30?,SELECT score FROM table_name_52 WHERE game = 30 What is the total Crowd with a Home team of collingwood?,"SELECT SUM(crowd) FROM table_name_98 WHERE home_team = ""collingwood""" How many wins did the team with 42 points get?,SELECT wins FROM table_16034882_4 WHERE points = 42 What is the Record with a Team that is detroit and a Date that is june 10?,"SELECT record FROM table_name_56 WHERE team = ""detroit"" AND date = ""june 10""" Count the number of wines produced at Robert Biale winery.,"SELECT count(*) FROM WINE WHERE Winery = ""Robert Biale""" "Show the names of high schoolers who have likes, and numbers of likes for each.","SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id" How many flights of air carrier called JetBlue Airways: B6 have 0 new arrival delay?,SELECT COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%JetBlue Airways: B6%' AND T2.ARR_DELAY_NEW = 0 Which city has the largest population?,SELECT `City Name` FROM `Store Locations` ORDER BY Population DESC LIMIT 1 What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?,"SELECT gdp_per_capita__nominal_ FROM table_11780179_1 WHERE gdp__nominal_ = ""$52.0 billion""" What are the names of all companies whose revenue is smaller than the revenue of all companies based in Austin?,SELECT name FROM manufacturers WHERE revenue < ( SELECT min ( revenue ) FROM manufacturers WHERE headquarter = 'Austin' ) "Give the number of territories in the ""Northern"" region.",SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Northern' How many high schoolers are there in grade 9 or 10?,SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10 "What is the lowest Game, when Date is ""April 12""?","SELECT MIN(game) FROM table_name_95 WHERE date = ""april 12""" Name the result/games for 52521,SELECT result_games FROM table_21436373_11 WHERE attendance = 52521 What are the ids and names of department stores with both marketing and managing departments?,"SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""marketing"" INTERSECT SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""managing""" What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?,"SELECT airing_date FROM table_name_50 WHERE official_website = ""official website"" AND number_of_episodes = 20 AND genre = ""modern action"" AND english_title__chinese_title_ = ""armed reaction 陀槍師姐""" What home has 122-28 as the score?,"SELECT home FROM table_name_96 WHERE score = ""122-28""" What is the number drawn when the try BP is 1?,"SELECT drawn FROM table_name_79 WHERE try_bp = ""1""" Which have more than $80k and a total percent of 2.2%?,"SELECT more_than_$80, 000 FROM table_name_60 WHERE percent_of_total = ""2.2%""" Find the accreditation level that more than 3 phones use.,SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*) > 3 What is the Main use of emley moor tower (mk.3)?,"SELECT main_use FROM table_name_54 WHERE name = ""emley moor tower (mk.3)""" List all genes whose interaction is with genes located in the nucleus in which it is positively correlated.,SELECT T1.GeneID FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr > 0 AND T1.Localization = 'nucleus' How many points were there for 15 losses?,"SELECT points_for FROM table_name_28 WHERE lost = ""15""" What was week 17's date?,SELECT date FROM table_name_21 WHERE week = 17 Name the songwriter for track number 12,SELECT songwriter_s_ FROM table_name_60 WHERE track_number = 12 "If the distance is 55.7, what is the name of the constellation?","SELECT constellation FROM table_1820752_1 WHERE distance___ly__ = ""55.7""" "What is the IATA when France was the country, and the ICAO was lfrn?","SELECT iata FROM table_name_72 WHERE country = ""france"" AND icao = ""lfrn""" "How many employees does each role have? List role description, id and number of employees.","SELECT T1.role_description , T2.role_code , count(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code;" "Please indicate the keywords of the title ""Double, Double, Boy in Trouble"".","SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Double, Double, Boy in Trouble';" Which Wikipedia page number has the highest number of words in the Catalan language?,SELECT page FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) "What is the average, maximum, and minimum for the number of hours spent training?","SELECT avg(HS) , max(HS) , min(HS) FROM Player" "When oslo is 48, what is stavanger?",SELECT MIN(stavanger) FROM table_19439864_2 WHERE oslo = 48 "Great! Finally, can you show me all other customers names (first and last) who have the same ""other account details"" details as Meaghan?","SELECT DISTINCT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.other_account_details = ( SELECT other_account_details FROM Accounts WHERE account_name = 900 ) " Which episode had Lavern Baker?,"SELECT episode FROM table_26250151_1 WHERE original_recording_artist = ""LaVern Baker""" Which Surface has a Semifinalist of stefan edberg thomas muster?,"SELECT surface FROM table_name_98 WHERE semifinalists = ""stefan edberg thomas muster""" "Of the games that sold 321,000 units in the UK, what is their average place?","SELECT AVG(place) FROM table_name_86 WHERE units_sold_in_the_uk = ""321,000""" "When was the venue mexico city, mexico with a goal of 8?","SELECT date FROM table_name_9 WHERE venue = ""mexico city, mexico"" AND goal = 8" Find the full name and popularity of the professor who advises the most number of students.,"SELECT T1.first_name, T1.last_name, T1.popularity FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id GROUP BY T1.prof_id ORDER BY COUNT(T2.student_id) DESC LIMIT 1" "Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'?","SELECT opponent_team FROM table_name_84 WHERE scorers = ""jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'""" Can you tell me the total number of Laps that has the Team of wps racing?,"SELECT COUNT(laps) FROM table_name_94 WHERE team = ""wps racing""" "What average city has a total less than 2, with a borough greater than 0?",SELECT AVG(city) FROM table_name_70 WHERE total < 2 AND borough > 0 What is the id of the pet owned by the student whose last name is 'Smith'?,SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith' Name the average for assists per game,"SELECT average FROM table_26611679_3 WHERE category = ""Assists per game""" How many artist are there?,"SELECT count ( artist_name ) from artist" "What is the highest points when the top goal scorer was Khaled Msakni (10), and the final standing is less than 12?","SELECT MAX(points) FROM table_name_95 WHERE top_goal_scorer = ""khaled msakni (10)"" AND final_standing < 12" Tell me the sum of Year for outcome of runner-up for world darts championship,"SELECT SUM(year) FROM table_name_41 WHERE outcome = ""runner-up"" AND championship = ""world darts championship""" List Aerosmith's albums.,"SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Aerosmith"";" "Which Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational?","SELECT runner_s__up FROM table_name_34 WHERE margin_of_victory = ""1 stroke"" AND tournament = ""world seniors invitational""" What was the highest number of lose for a player named Santos with more than 45 points?,"SELECT MAX(lose) FROM table_name_88 WHERE name = ""santos"" AND point > 45" What is the ratio of disable female to male students?,"SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T2.name) FROM disabled AS T1 LEFT JOIN male AS T2 ON T1.`name` = T2.`name`" How many store are located in district 15?,SELECT count ( * ) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_id = 15 List the IDs and names of the umpires from New Zealand.,"SELECT T1.Umpire_Id, T1.Umpire_Name FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'New Zealand'" "Among all the users with the average ratings of at least 4 and above of all reviews, calculate the percent that have no fans or followers.",SELECT CAST(SUM(CASE WHEN user_fans = 'None' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(user_id) FROM Users WHERE user_average_stars >= 4 What is listed for the Elevator that has the Elector of Gerardo?,"SELECT elevator FROM table_name_10 WHERE elector = ""gerardo""" What is the Team on January 20?,"SELECT team FROM table_name_97 WHERE date = ""january 20""" How many distinct locations of perpetrators are there?,SELECT count(DISTINCT LOCATION) FROM perpetrator What is the total number of overall draft picks for player whose position is C and was picked after round 9?,"SELECT COUNT(overall) FROM table_name_63 WHERE position = ""c"" AND round > 9" what is the max fs where the status is status and the method is method?,"SELECT max_fs FROM table_17157367_1 WHERE ""status"" = ""status"" AND ""method"" = ""method""" Find the number of baseball ordered in December 2017.,SELECT COUNT(T2.OrderNumber) FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID WHERE T1.`Product Name` = 'Baseball' AND T2.OrderDate LIKE '12/%/18' "For the order from ""HILAA"" on 1997/12/25, what was the total quantity of the products in that order?",SELECT SUM(T2.Quantity) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID WHERE T1.CustomerID = 'HILAA' AND T1.OrderDate LIKE '1997-12-25%' "Find papers whose second author has last name ""Turon"" and is affiliated with an institution in the country ""USA"".","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""USA"" AND t2.authorder = 2 AND t1.lname = ""Turon""" what's the percentage of votes with number of deputies being 112,SELECT percentage_of_votes FROM table_13746866_2 WHERE number_of_deputies = 112 Find the country of the airlines whose name starts with 'Orbit'.,SELECT country FROM airlines WHERE name LIKE 'Orbit%' List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.,SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids; Find the name and id of the item with the highest average rating.,"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" What nation did the speed skater that set a record in the 1000 metres event represent?,"SELECT nation FROM table_name_23 WHERE event = ""1000 metres""" What is the average attendance of the game where the home team was the Blues?,"SELECT AVG(attendance) FROM table_name_40 WHERE home = ""blues""" What is the number of lost with 2 points?,SELECT COUNT(lost) FROM table_name_70 WHERE points = 2 What is the transfer fee for rory loy?,"SELECT transfer_fee FROM table_name_23 WHERE name = ""rory loy""" "Among the people in Animation Department, who are credited for additional time in the episode titled by ""How the Test Was Won""?",SELECT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'How the Test Was Won' AND T2.role = 'additional timer' AND T2.credited = 'true' AND T2.category = 'Animation Department'; Who among the actors starred in a NC-17 rated film? Provide only the last name of the actors.,SELECT T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rating = 'NC-17' "List down the customer names and product names of the order made by ""Anthony Torres"" via distributor channel.","SELECT DISTINCT T1.`Customer Names`, T4.`Product Name` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID INNER JOIN Products AS T4 ON T4.ProductID = T2._ProductID WHERE T3.`Sales Team` = 'Anthony Torres' AND T2.`Sales Channel` = 'Distributor'" "Who did the Browns play on October 13, 1968?","SELECT opponent FROM table_name_7 WHERE date = ""october 13, 1968""" "What is the Rank of the Film with a Worldwide Gross of $183,031,272?","SELECT SUM(rank) FROM table_name_19 WHERE worldwide_gross = ""$183,031,272""" What were the amounts of those transactions?,SELECT T2.amount_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 "Please list any two clients with their full names who have been tagged as ""Older American"" by the company without seeking their permission.","SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Tags = 'Older American' AND T2.`Consumer consent provided?` IN (NULL, 'N/A', '') LIMIT 2" What is the score when november 15 is the date?,"SELECT score FROM table_name_86 WHERE date = ""november 15""" How many times was leather introduced before pedal steel guitars in episode 111?,"SELECT COUNT(segment_c) FROM table_15187735_9 WHERE segment_d = ""Pedal Steel Guitars""" Which integrated has an allied-related of some shared?,"SELECT integrated FROM table_name_40 WHERE allied_related = ""some shared""" Show the country names and the corresponding number of players.,"SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name" Which country is the director Roland Verhavert from?,"SELECT country FROM table_name_30 WHERE director = ""roland verhavert""" Find the product type whose average price is higher than the average price of all products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING AVG(product_price) > (SELECT AVG(product_price) FROM products) Which colleges do the tryout players whose name starts with letter D go to?,SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%' "Among all patients who sought medical attention in 2010 due to contact dermatitis, identify the percentage of females.","SELECT CAST(SUM(CASE WHEN T2.gender = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.PATIENT) FROM encounters AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE strftime('%Y', T1.DATE) = '2010' AND T1.REASONDESCRIPTION = 'Contact dermatitis'" What was Moe Gardner's pick?,"SELECT pick FROM table_name_36 WHERE player = ""moe gardner""" What is the lowest Loss with Gain larger than 319 for derrick locke?,"SELECT MIN(loss) FROM table_name_10 WHERE name = ""derrick locke"" AND gain > 319" What is the id of the candidate whose email is stanley.monahan@example.org?,"SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = ""stanley.monahan@example.org""" What year was the composition by Mejo Joseph?,"SELECT COUNT(year) FROM table_name_7 WHERE composer = ""mejo joseph""" "Can you list the asset ids, the fault log entry ids and the fault descriptions?","SELECT asset_id, fault_log_entry_id, fault_description from Fault_Log" What are the names of the colleges that are larger than at least one college in Florida?,SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL') Find the location of businesses that have business hours from 8 am to 9 pm every Friday.,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.closing_time LIKE '9PM' AND T2.opening_time LIKE '8AM' AND T3.day_of_week LIKE 'Friday' GROUP BY T1.city Who has a react smaller than 0.149 and a lane smaller than 6?,SELECT name FROM table_name_23 WHERE react < 0.149 AND lane < 6 Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?,"SELECT original_south_korean_performer FROM table_22460085_1 WHERE original_manchester_performer = ""Adebayo Bolaji""" Which term had a Democratic representative from district 7?,"SELECT term FROM table_name_22 WHERE district = ""7"" AND party = ""democratic""" "How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?","SELECT COUNT(position) FROM table_name_9 WHERE drawn = 9 AND difference = ""5"" AND lost < 14" Which state has the most customers?,SELECT state FROM customers GROUP BY state ORDER BY count ( * ) LIMIT 1 "From which city were more tweets posted, Bangkok or Chiang Mai?","SELECT SUM(CASE WHEN T2.City = 'Bangkok' THEN 1 ELSE 0 END) AS bNum , SUM(CASE WHEN T2.City = 'Chiang Mai' THEN 1 ELSE 0 END) AS cNum FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.City IN ('Bangkok', 'Chiang Mai')" What is the points against for the team that played 22 and lost 6?,"SELECT points_against FROM table_name_81 WHERE played = ""22"" AND lost = ""6""" Which main developer made their first release in 1991 and created the Mega Drive/Genesis console?,"SELECT main_developer FROM table_12887260_1 WHERE first_release = 1991 AND console = ""Mega Drive/Genesis""" who is the winner and score for finalist sébastien grosjean?,"SELECT winner_and_score FROM table_name_28 WHERE finalist = ""sébastien grosjean""" What is the Year of Christie Paquet with Issue Price of $34.95?,"SELECT AVG(year) FROM table_name_78 WHERE artist = ""christie paquet"" AND issue_price = ""$34.95""" How many students enrolled in 2005 at New Hampshire Institute of Art?,"SELECT enrollment__2005_ FROM table_2076490_1 WHERE school = ""New Hampshire Institute of Art""" "In which year did the Montreal Canadiens have 49 penalty minutes in the Stanley Cup finals? Was it 1924, 1923 or 1918?",SELECT T1.year FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens' AND T2.PIM = 49 What was the overall pick for the player who was a guard and had a round less than 9?,"SELECT AVG(overall) FROM table_name_4 WHERE position = ""guard"" AND round < 9" What are the descriptions of the service types with product price above 100?,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 Which first's surname is Cook?,"SELECT first FROM table_name_76 WHERE surname = ""cook""" who are the directors of the episode that had 20.5 millions of north american viewers? ,"SELECT directed_by FROM table_27714573_1 WHERE us_viewers__millions_ = ""20.5""" What about the name of the advisor for the student named Linda Smith?,"SELECT T2.fname, T2.lname FROM student as T1 JOIN faculty as T2 on T2.FacID = T1.advisor where T1.Fname = ""Linda"" and T1.Lname = ""Smith""" List the first name and last name of all customers.,"SELECT first_name , last_name FROM Customers;" What is the D 47 when the D 49 is r 32?,"SELECT d_47 FROM table_name_92 WHERE d_49 = ""r 32""" What is the brand of the device used by the youngest female user?,SELECT phone_brand FROM phone_brand_device_model2 WHERE device_id IN ( SELECT * FROM ( SELECT device_id FROM gender_age WHERE gender = 'F' ORDER BY age LIMIT 1 ) AS T ) What are the store names of drama workshop groups?,SELECT Store_Name FROM Drama_Workshop_Groups How many did he purchase?,SELECT sum ( t3.order_quantity ) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) DESC LIMIT 1 List the name of ships that are not involved in any mission,SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission) What are their names? | did you mean the names of the players who have the least common occupation? | yes,SELECT Player_name FROM player GROUP BY Occupation ORDER BY COUNT ( * ) LIMIT 1 Provide the nation and region of the customer with the address of wH55UnX7 VI?,"SELECT T1.n_name, T3.r_name FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN region AS T3 ON T1.n_regionkey = T3.r_regionkey WHERE T2.c_address = 'wH55UnX7 VI'" Which Lead has a Skip of mike mcewen?,"SELECT lead FROM table_name_73 WHERE skip = ""mike mcewen""" What date in October did the Flyers play against the Toronto Maple Leafs?,"SELECT october FROM table_name_11 WHERE opponent = ""toronto maple leafs""" WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?,"SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = ""green politics""" List the title of films that do not have any market estimation.,SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation) What are the dates of those transactions?,Select date_of_transaction from transactions "What are all the policy types of the customer named ""Dayana Robel""?","SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" what's the character with fate being deceased: knife wound,"SELECT character FROM table_11210576_4 WHERE fate = ""Deceased: Knife Wound""" How many students are there for each major?,"SELECT major , count(*) FROM Student GROUP BY major" "List all characteristics of product named ""sesame"" with type code ""Grade"".","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"" AND t3.characteristic_type_code = ""Grade""" "What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?",SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935 Who won Miss Air (1st Runner-up) when Catherine Untalan was Miss Water (2nd Runner-up) earlier than 2007?,"SELECT miss_air__1st_runner_up_ FROM table_name_35 WHERE year < 2007 AND miss_water__2nd_runner_up_ = ""catherine untalan""" What are the aircrafts with top 3 shortest lengthes? List their names.,SELECT name FROM Aircraft ORDER BY distance LIMIT 3 Please list the names of the products that have over 3 price changes.,SELECT T2.Name FROM ProductListPriceHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T2.Name ORDER BY COUNT(T1.ListPrice) > 3 Who was in control the year that Labour Party won 12 (+6) seats?,"SELECT control FROM table_name_36 WHERE labour_party = ""12 (+6)""" What was the game on April 25?,"SELECT MIN(game) FROM table_name_88 WHERE date = ""april 25""" "What is the total interviews of Iowa, and with an evening gown smaller than 9.625?","SELECT COUNT(interview) FROM table_name_23 WHERE state = ""iowa"" AND evening_gown < 9.625" What are the names of races held between 2009 and 2011?,SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011 What is the place of player john cook?,"SELECT place FROM table_name_73 WHERE player = ""john cook""" Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1,SELECT call_sign FROM table_name_83 WHERE frequency_mhz > 90.1 AND erp_w = 1 List top 10 employee work longest in the company. List employee's first and last name.,"SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;" "Who is the doctor works? | Do you mean whose job is ""doctor""? | Yes","SELECT name from person where job = ""doctor""" How many rounds did satrio hermanto go with an opc-challenge engine?,"SELECT rounds FROM table_name_84 WHERE engine = ""opc-challenge"" AND driver = ""satrio hermanto""" What is the national rank of Windstream?,"SELECT MIN(national_rank) FROM table_21926985_2 WHERE company_name = ""Windstream""" What is the result for director Said Elmarouk before 2008?,"SELECT result FROM table_name_2 WHERE director = ""said elmarouk"" AND year < 2008" Find the personal names of students not enrolled in any course.,SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id What was the temperature range of station no.1 on 2012/1/1?,SELECT tmax - tmin AS temrange FROM weather WHERE station_nbr = 1 AND `date` = '2012-01-01' Which team opposed the Milwaukee Braves?,"SELECT opponent FROM table_name_92 WHERE team = ""milwaukee braves""" Show the customer id and number of accounts with most accounts.,"SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1" "What are the first and last name of the president of the club ""Bootup Baltimore""?","SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t2.position = ""President""" "what is the first movie's year? | What do you mean by ""first""? Do you mean the earliest movie? | yes",SELECT min ( year ) FROM movie Which record has a result of loss in the Hero's 3 event?,"SELECT record FROM table_name_41 WHERE res = ""loss"" AND event = ""hero's 3""" "Can you please give me the names of all of the professors sorted in alphabetical order of their first name? | Do you want to first name of all the professors, or last name or both? | Both, please","SELECT T2.emp_fname , T2.emp_lname FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname" What are the game modes for the game released in 2007?,"SELECT game_modes FROM table_1616608_2 WHERE released_date = ""2007""" Which Olympic Games had a silver medal for the Men's Singles?,"SELECT games FROM table_name_33 WHERE event = ""men's singles"" AND medal = ""silver""" Result of 86-87 (2-4) involves what home team?,"SELECT home_team FROM table_name_38 WHERE result = ""86-87 (2-4)""" What is the name of the school with the maximum enrollment?,SELECT School_name FROM school order by Enrollment desc limit 1 "Please list the stores that ordered the book ""Life Without Fear"".",SELECT T2.stor_name FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T3.title = 'Life Without Fear' "Which Date has a Crowd smaller than 4,485?",SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485 How many yardage figures for the player with 72.3 QB rating?,"SELECT COUNT(yards) FROM table_19418696_3 WHERE qb_rating = ""72.3""" Which adventure movie has the highest average rating?,SELECT T1.movieid FROM movies2directors AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.genre = 'Adventure' GROUP BY T1.movieid ORDER BY AVG(T2.rating) DESC LIMIT 1 What is the Record that has a Nationality of new zealand?,"SELECT record FROM table_name_35 WHERE nationality = ""new zealand""" "Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?","SELECT high_assists FROM table_name_96 WHERE location_attendance = ""fleetcenter"" AND score = ""w 120-87""" Name the record for l 90–100 (ot),"SELECT record FROM table_22879323_9 WHERE score = ""L 90–100 (OT)""" What dates did Chris Bosh (18) score the high points?,"SELECT date FROM table_17323092_8 WHERE high_points = ""Chris Bosh (18)""" "Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?","SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = ""8 november 1980"" AND weight < 93" What was the scored of the Away team that played against Richmond?,"SELECT away_team AS score FROM table_name_83 WHERE home_team = ""richmond""" Which players scored highest? Give me names | Do you mean the names of player with the most points? | Yes,SELECT name FROM player where Points = ( SELECT MAX ( Points ) FROM player ) List the state names and the number of customers living in each state.,"SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county" Which model has 175 seats?,SELECT model FROM table_name_92 WHERE seats = 175 "Show the prices of the products named ""Dining"" or ""Trading Policy"".","SELECT Product_Price FROM Products WHERE Product_Name = ""Dining"" OR Product_Name = ""Trading Policy""" What is the location and number of female students in university ID 23 in 2011?,"SELECT T3.country_name, CAST(T2.num_students * T2.pct_female_students AS REAL) / 100 FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.year = 2011 AND T1.id = 23" What year or years did arnold palmer win?,"SELECT year_s__won FROM table_name_50 WHERE player = ""arnold palmer""" Show the number of transaction types.,SELECT COUNT(DISTINCT transaction_type) FROM Financial_Transactions How much is the popularity of the movie that has the highest popularity between 1920 to 1929 and when did the movie received its first rating score of 1 from the users who were a paying subscriber when they rated the movie ?,"SELECT MAX(T2.movie_popularity), MIN(T1.rating_timestamp_utc) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1920 AND 1929 AND T1.rating_score = 1 AND T1.user_has_payment_method = 1" What is the length of the gun that has a shoulder measurement of 12.18 (.480)?,"SELECT length FROM table_name_35 WHERE shoulder = ""12.18 (.480)""" "Among the players who played in OHL league during the regular season in 2007-2008, who is the player that attained the most number of assist?",SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2007-2008' AND T1.LEAGUE = 'OHL' AND T1.GAMETYPE = 'Regular Season' ORDER BY T1.A DESC LIMIT 1 Name the most series number for giula sandler,"SELECT MAX(series__number) FROM table_15838081_3 WHERE writer_s_ = ""Giula Sandler""" Find the average number of customers in all banks of Utah state.,SELECT avg(no_of_customers) FROM bank WHERE state = 'Utah' How many drama movie with the rating of 3?,SELECT COUNT(DISTINCT T2.movieid) FROM u2base AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T2.genre = 'drama' AND T1.rating = 3 What is the full name of the sanitarian who inspected Amundsen High School on 2010/5/11?,"SELECT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T2.inspection_date = '2010-05-11' AND T3.dba_name = 'AMUNDSEN HIGH SCHOOL' AND T1.title = 'Sanitarian'" What was the ranking of episode #19?,SELECT rank__week_ FROM table_26200084_1 WHERE _number = 19 "For each movie that received more than 3 reviews, what is the average rating?","SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2" Who is the author who wrote the most books?,SELECT T1.author_name FROM author AS T1 INNER JOIN book_author AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_name ORDER BY COUNT(T2.author_id) DESC LIMIT 1 When was Tomokazu Soma born who plays for the wild knights?,"SELECT date_of_birth__age_ FROM table_name_71 WHERE club_province = ""wild knights"" AND player = ""tomokazu soma""" How many losses did 12 de Octubre have ? ,"SELECT MIN(losses) FROM table_14997324_5 WHERE team = ""12 de Octubre""" who had the high points on november 20?,"SELECT high_points FROM table_name_61 WHERE date = ""november 20""" "What is Notes, when Date is 2007?","SELECT notes FROM table_name_9 WHERE date = ""2007""" What are the names of wines made from red grapes?,"SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red""" What was the outcome of the tournament with Akiko Yonemura as a partner on a hard surface?,"SELECT outcome FROM table_name_18 WHERE surface = ""hard"" AND partner = ""akiko yonemura""" "Give the number of orders that were shipped by ""Federal Shipping"".",SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Federal Shipping' "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.",SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200 "Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25?","SELECT composer_s_ FROM table_name_96 WHERE arranger_s_ = ""banana boat"" AND length = ""4:25""" When charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?,"SELECT gt4_winner FROM table_30062172_3 WHERE round = 9 AND gt3_winner = ""Charles Bateman Michael Lyons""" What is the fewest goals for when goals against is 75 and drawn is smaller than 11?,SELECT MIN(goals_for) FROM table_name_35 WHERE goals_against = 75 AND drawn < 11 What was the crowd number when the home team was Carlton?,"SELECT MIN(crowd) FROM table_name_23 WHERE home_team = ""carlton""" What's the team of the player who went to lawrence tech?,"SELECT team FROM table_name_56 WHERE college = ""lawrence tech""" "Which company in the oil and gas industry has assets (billion $) under 235.45, sales (billion $) larger than 159.29 and brings in profits (billion $) of 19.28?","SELECT company FROM table_name_86 WHERE assets__billion_$_ < 235.45 AND sales__billion_$_ > 159.29 AND industry = ""oil and gas"" AND profits__billion_$_ = 19.28" What is the 2009 estimate population of the region with Manaus as the largest city?,"SELECT population__2009_estimate_ FROM table_name_11 WHERE largest_city = ""manaus""" Who is the daughter of Capulet?,SELECT CharName FROM characters WHERE Description = 'Daughter to Capulet' How many winning constructor catagories are there when Mark Webber had the fastest lap? ,"SELECT COUNT(winning_constructor) FROM table_26258348_4 WHERE fastest_lap = ""Mark Webber""" Who was the subject of the sculpture created in 1982? ,"SELECT title_subject FROM table_20903658_1 WHERE date_painted_created = ""1982""" "What was the margin of victory on Apr 8, 1979?","SELECT margin_of_victory FROM table_name_28 WHERE date = ""apr 8, 1979""" List the full name of all patients with 'otitis media'.,"SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Otitis media'" What is the average pick number of Pennsylvania?,"SELECT AVG(pick) FROM table_name_97 WHERE school_club_team = ""pennsylvania""" List the title and author's name of papers published in the 2007 Neoplasia journal.,"SELECT T1.Title, T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T3.FullName = 'Neoplasia' AND T1.Year = 2007" What club team is Per Gustafsson play for?,"SELECT college_junior_club_team FROM table_1013129_11 WHERE player = ""Per Gustafsson""" How many episodes have been directed by David Duchovny?,"SELECT COUNT(title) FROM table_13336122_3 WHERE directed_by = ""David Duchovny""" What is the overall score when the set 2 score is 25–18?,"SELECT score FROM table_name_57 WHERE set_2 = ""25–18""" "WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?","SELECT MAX(pick) FROM table_name_11 WHERE position = ""te"" AND round < 2" What are the characters and duration of actors?,"SELECT Character , Duration FROM actor" Where did the cable-stayed Badong Bridge open in 2005?,"SELECT location FROM table_name_18 WHERE type = ""cable-stayed"" AND opened = 2005 AND name = ""badong bridge""" How many points did Donald Green score?,"SELECT COUNT(points) FROM table_25730209_2 WHERE player = ""Donald Green""" How was times was the dance the jive and the week # was 10?,"SELECT COUNT(phillips) FROM table_1276219_1 WHERE dance = ""Jive"" AND week__number = ""10""" Find the last names of all the teachers that teach GELL TAMI.,"SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""GELL"" AND T1.lastname = ""TAMI""" Find the addresses and author IDs of the course authors that teach at least two courses.,"SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count(*) >= 2" Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.,"SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""Central Coast"" AND T2.year < 2005" What were the total number of points when the amount of goals scored was less than 20?,SELECT COUNT(points) FROM table_name_39 WHERE goals_scored < 20 List players' first name and last name who have weight greater than 220 or height shorter than 75.,"SELECT name_first, name_last FROM player WHERE weight > 220 OR height < 75" What year was Otto Passman (d) unopposed first elected?,"SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = ""Otto Passman (D) Unopposed""" What is Partner Tomas Behrend's Score in the final?,"SELECT score_in_the_final FROM table_name_48 WHERE partner = ""tomas behrend""" Which 3 products are produced in greater quantity?,SELECT ProductName FROM Products ORDER BY UnitsInStock + UnitsOnOrder DESC LIMIT 3 "For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season.","SELECT T1.date , T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id ORDER BY T1.season DESC" Name the fastest lap for piquet sports and silverstone,"SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = ""Piquet Sports"" AND circuit = ""Silverstone""" What is the maximum and minimum market value of companies?,"SELECT max(Market_Value_in_Billion) , min(Market_Value_in_Billion) FROM company" Give the id and name of the staff who has been assigned for the shortest period?,"SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" What is the average balance of all accounts?,SELECT avg ( T2.balance ) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?,"SELECT T1.staff_name , T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name , T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id" Count the number of patients who stayed in room 112.,SELECT count(patient) FROM stay WHERE room = 112 Hmmm. Can you please give me the claimed amount for this customer,SELECT t1.amount_claimed FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = ( SELECT max ( amount_piad ) FROM claim_headers ) "Which Rank has a Reaction of 0.198, and a Time smaller than 46.3?",SELECT MAX(rank) FROM table_name_98 WHERE react = 0.198 AND time < 46.3 What is the average number of respondents per survey between 2014 and 2019?,SELECT CAST(COUNT(SurveyID) AS REAL) / 5 FROM Answer WHERE SurveyID BETWEEN 2014 AND 2019 What ride was manufactured by Zierer?,"SELECT ride_name FROM table_name_43 WHERE manufacturer = ""zierer""" Which Circuit is on July 24?,"SELECT circuit FROM table_name_56 WHERE date = ""july 24""" "Which Took Office that has a Party of democrat, under the name of John Hancock","SELECT took_office FROM table_name_30 WHERE party = ""democrat"" AND name = ""john hancock""" What is the average total medals of the team with 2 gold and less than 1 silver?,SELECT AVG(total) FROM table_name_93 WHERE gold = 2 AND silver < 1 What is the geographic identifier and income of the oldest customer?,"SELECT T1.GEOID, T2.INCOME_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID ORDER BY T1.age DESC LIMIT 1" What engine has more than 0 pts?,SELECT engine FROM table_name_79 WHERE pts > 0 Name the highest year with points more than 0,SELECT MAX(year) FROM table_name_90 WHERE points > 0 What 2006 has 0-0 as the 2011?,"SELECT 2006 FROM table_name_29 WHERE 2011 = ""0-0""" What were the products supplied by the company in Spain?,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Spain' "What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?","SELECT MIN(4 AS _hoops), _2_clubs FROM table_name_66 WHERE total = 38.25" "What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?",SELECT opponent FROM table_name_4 WHERE points > 5 AND attendance > 13 OFFSET 567 "Among the geographic ID which has 33.658K of inhabitants, describe the education, occupation and age of female widow.","SELECT T1.EDUCATIONNUM, T1.OCCUPATION, T1.age FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INHABITANTS_K = 33.658 AND T1.SEX = 'Female' AND T1.MARITAL_STATUS = 'Widowed'" Name the number of v core for model number mobile athlon 64 3000+,"SELECT COUNT(v_core) FROM table_27277284_8 WHERE model_number = ""Mobile Athlon 64 3000+""" What is the total value of Argentum coined traded in the past 24 hours on 2016/10/11.,SELECT T2.volume_24h FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Argentum' AND T2.date = '2016-10-11' What was the winning part in the district of South Carolina 3?,"SELECT party FROM table_1346137_4 WHERE district = ""South Carolina 3""" On what date was the opponent the White Sox and the record 18-13?,"SELECT date FROM table_name_90 WHERE opponent = ""white sox"" AND record = ""18-13""" Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city Name the state class for isaac d. barnard (j),"SELECT state__class_ FROM table_225198_3 WHERE vacator = ""Isaac D. Barnard (J)""" "What country has the latest trade data with a series code of ""SP.DYN.CDRT.IN ""? List the table name of the country.",SELECT DISTINCT T1.TableName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.LatestTradeData = 2013 AND T2.IndicatorCode = 'SP.DYN.CDRT.IN' Which PAL M has a PAL I of 50HZ?,"SELECT pal_m FROM table_name_55 WHERE pal_i = ""50hz""" Show the school name and driver name for all school buses.,"SELECT T2.school , T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id" "In 2014, what are the id and rank of the team that has the largest average number of attendance?","SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;" how many places have 17 varsity teams?,SELECT COUNT(location) FROM table_2439728_1 WHERE varsity_teams = 17 Which school years have a class a being lindsay and a class aaa being cuero? ,"SELECT school_year FROM table_14603212_1 WHERE class_a = ""Lindsay"" AND class_aAA = Cuero" What team has an incoming manager named Kenny Dalglish?,"SELECT team FROM table_24172157_3 WHERE incoming_manager = ""Kenny Dalglish""" Calculate the percentage of the employees who are Editor or Designer?,"SELECT CAST(SUM(CASE WHEN T2.job_desc IN ('Editor', 'Designer') THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id" What is the most common interaction type between enzymes and medicine? And how many are there?,"SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1" "Who is the ""CTO"" of club ""Hopkins Student Enterprises""? Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t2.position = ""CTO""" List document type codes and the number of documents in each code.,"SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code" "Select the average price of each manufacturer's products, showing only the manufacturer's code.","SELECT AVG(Price), Manufacturer FROM Products GROUP BY Manufacturer" How many different countries are all the swimmers from?,SELECT COUNT(DISTINCT nationality) FROM swimmer List the name of the most expensive car.,SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1 Where did Melbourne play as the away team?,"SELECT venue FROM table_name_95 WHERE away_team = ""melbourne""" When did the first payment happen?,SELECT payment_date FROM payment ORDER BY payment_date LIMIT 1 "What country had a r3 at 72, by Larry Mize?","SELECT country FROM table_18812411_3 WHERE r3 = 72 AND player = ""Larry Mize""" What are the names of the customers who cancelled their orders?,"SELECT distinct t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id where t2.order_status = ""Cancelled""" "Among the orders shipped in November, 1998 by air, how many orders were urgent?","SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'AIR' AND T1.o_orderpriority = '1-URGENT' AND SUBSTR(T2.l_shipdate, 1, 7) = '1998-11'" With a Championship of 1959 USAC Championship Car Season what is the event?,"SELECT event FROM table_name_32 WHERE championship = ""1959 usac championship car season""" "What is Source, when Cartridge is .375 remington ultra magnum?","SELECT source FROM table_name_67 WHERE cartridge = "".375 remington ultra magnum""" Hello there! Thank you for taking the time to work with me! Can you provide me with a list of all of the different activity names?,SELECT activity_name FROM Activity Name the number of candidates for samuel d. ingham,"SELECT COUNT(candidates) FROM table_2668347_17 WHERE incumbent = ""Samuel D. Ingham""" What designer has a restaurant named The Citizen?,"SELECT designer FROM table_name_42 WHERE restaurant_name = ""the citizen""" Which publishers published books in 1989 and 1990?,SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990 show all the start station name,SELECT start_station_name FROM trip "What are the lowest points with 2013 as the year, and goals less than 0?","SELECT MIN(points) FROM table_name_48 WHERE year = ""2013"" AND goals < 0" What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?,"SELECT venue FROM table_name_26 WHERE score = ""4-0"" AND competition = ""2002 tiger cup""" "How many Wikipedia pages are there on the language of the biwords pair ""àbac-xinès""?",SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN biwords AS T2 ON T1.lid = T2.lid WHERE T2.w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) What are the names of staff who have been assigned multiple jobs?,SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*) > 1 What race did josef newgarden have the fastest lap and lead the most laps?,"SELECT race FROM table_29690363_3 WHERE fastest_lap = ""Josef Newgarden"" AND most_laps_led = ""Josef Newgarden""" What are the prices of those flights?,"SELECT price FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" What is every equivalent for the example of asy28?,"SELECT equivalent FROM table_30011_2 WHERE example = ""ASY28""" What is the played number when the high checkout is 135?,SELECT SUM(played) FROM table_name_32 WHERE high_checkout = 135 "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.","SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'" What are the heights of all the perpetrators in Japan and China?,"SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""China"" OR T2.Country = ""Japan""" "Which Total score/week has a Status of eliminated, and Scores by each individual judge of 5 + 5 + 4 = 14?","SELECT total_score_week FROM table_name_38 WHERE status = ""eliminated"" AND scores_by_each_individual_judge = 5 + 5 + 4 = 14" What is the percentage of payment methods of donations made in March 2013?,"SELECT payment_method , CAST(COUNT(donationid) AS REAL) * 100 / 51090 FROM donations WHERE donation_timestamp LIKE '2013-03%' GROUP BY payment_method" What is the department name and corresponding building for the department with the greatest budget?,"SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1" How many points did the away team from Melbourne score?,"SELECT away_team AS score FROM table_name_40 WHERE away_team = ""melbourne""" What is slađana pejić's profession?,"SELECT profession FROM table_name_4 WHERE name = ""slađana pejić""" List the geographic id of places where the income is above average.,SELECT AVG(INCOME_K) FROM Demog "For each continent, list its id, name, and how many countries it has?","SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;" "Which High assists have a Game larger than 21, and a Record of 18-6?","SELECT high_assists FROM table_name_21 WHERE game > 21 AND record = ""18-6""" Tell me the venue with result of eng by 6 wkts,"SELECT venue FROM table_name_72 WHERE result = ""eng by 6 wkts""" Find the ids of all distinct customers who made order after some orders that were Cancelled.,"SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code = ""Cancelled"")" What is the id and name of the enzyme that can interact with the most medicines as an activator?,"SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" "What are lines 1 and 2 of the addressed of the customer with the email ""vbogisich@example.org""?","SELECT address_line_1 , address_line_2 FROM customers WHERE email_address = ""vbogisich@example.org""" Which college did Reggie Lewis graduated from,"SELECT Graduation_college FROM people WHERE name = ""Reggie Lewis""" Please list the names of all the root beer brands that are advertised on facebook.,SELECT BrandName FROM rootbeerbrand WHERE FacebookPage IS NOT NULL How many different courses offered by Physics department?,SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics' when were helena suková todd woodbridge the opponents in the final,"SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = ""Helena Suková Todd Woodbridge""" Who was the builder of Brage from Norway?,"SELECT builder FROM table_name_37 WHERE country = ""norway"" AND ship = ""brage""" How many emplyees have a good job performance?,SELECT COUNT(*) FROM employee WHERE performance = 'Good' "What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10?",SELECT SUM(bronze) FROM table_name_49 WHERE gold < 1 AND total > 1 AND rank = 10 what is the fname of class room 102,SELECT firstname from list where classroom = 102 "What is the highest amount of bronze china, which has more than 1 gold and more than 11 total, has?","SELECT MAX(bronze) FROM table_name_93 WHERE gold > 1 AND nation = ""china"" AND total > 11" How many students were advised by instructors ?,"SELECT count ( * ) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor where T1.Rank = ""Instructor""" What is the Time/Retired for emerson fittipaldi?,"SELECT time_retired FROM table_name_14 WHERE driver = ""emerson fittipaldi""" What is the full address of Albert's Café?,"SELECT T2.street_num, T2.street_name, T1.city FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.label = 'Albert''s Café'" Who came in 3rd at Venue?,"SELECT 3 AS rd_place FROM table_name_99 WHERE ""venue"" = ""venue""" List the total scores of body builders in ascending order.,SELECT Total FROM body_builder ORDER BY Total ASC What did the home team score at MCG?,"SELECT home_team AS score FROM table_name_30 WHERE venue = ""mcg""" Could you list the number of invoices grouped by country?,"SELECT billing_country, COUNT ( * ) FROM invoices group by billing_country" How many cities are in Connecticut?,SELECT COUNT(*) FROM city WHERE state = 'Connecticut' "What is the week with attendance of 73,572?","SELECT MAX(week) FROM table_name_61 WHERE attendance = ""73,572""" Who was the opponent when the record was 55-14?,"SELECT opponent FROM table_name_52 WHERE record = ""55-14""" How many inspections were sanitarian Joshua Rosa responsible for in 2010?,"SELECT COUNT(T2.inspection_id) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE strftime('%Y', T2.inspection_date) = '2010' AND T1.first_name = 'Joshua' AND T1.last_name = 'Rosa'" What is the height of the player with a first round score of 44.1?,"SELECT height FROM table_name_1 WHERE first_round = ""44.1""" What length of stay is permitted in the European Union?,"SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = ""European Union""" What is the name of the state in which there have been the largest number of complaints with priority 0?,SELECT T2.state FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id INNER JOIN state AS T4 ON T3.state_abbrev = T4.StateCode WHERE T1.priority = 0 GROUP BY T2.state ORDER BY COUNT(T2.state) DESC LIMIT 1 "What is the team when location attendance is us airways center 18,422?","SELECT team FROM table_11959669_6 WHERE location_attendance = ""US Airways Center 18,422""" What are the first names of all teachers who have taught a course and the corresponding descriptions?,"SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code" Show the names of all technicians in ascending order of quality rank assigned to the machine with ID 1.,"SELECT T3.Name, t1.machine_id, quality_rank FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID and t1.machine_id = 1 order by quality_rank" How many movies directed by Felipe Cazals was realeased on 1976?,SELECT COUNT(movie_id) FROM movies WHERE movie_release_year = 1976 AND director_name LIKE 'Felipe Cazals' List the tail numbers of all the aircraft that arrived on time at Meadows Field airport in August of 2018?,"SELECT T2.TAIL_NUM FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE LIKE '2018/8%' AND T1.Description = 'Bakersfield, CA: Meadows Field' AND T2.DEST = 'BFL' AND T2.ARR_DELAY <= 0 GROUP BY T2.TAIL_NUM" How much does the most expensive charge type costs?,SELECT max(charge_amount) FROM Charges What is the record loss of R. Springer?,"SELECT record FROM table_name_75 WHERE loss = ""r. springer""" Calculate the average game sales for the PS2 platform.,SELECT SUM(T3.num_sales * 100000) / COUNT(T1.id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN region_sales AS T3 ON T2.id = T3.game_platform_id WHERE T1.platform_name = 'PS2' What was Trevard Lindley's number?,"SELECT MAX(number) FROM table_14624447_33 WHERE name = ""Trevard Lindley""" What is Samuel Smith's party?,"SELECT party FROM table_2668329_11 WHERE incumbent = ""Samuel Smith""" Show the id and details of the investor that has the largest number of transactions.,"SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1" How many flights are there?,SELECT count ( * ) FROM Flight What are the first names of all the students aged above 22?,SELECT Fname FROM STUDENT WHERE Age > 22 Which deputy took office in 1976?,"SELECT name FROM table_name_97 WHERE took_office = ""1976""" Show names of technicians who are assigned to repair machines with value point more than 70.,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70 What is the lowest number of goals of the player with 9 (0) games and less than 0 assists?,"SELECT MIN(goals) FROM table_name_37 WHERE games = ""9 (0)"" AND assists < 0" "How many routes have a destination airport in the United States, please?",SELECT count ( * ) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'United States' What is the id of the order which has the most items?,SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1 "Among the patients with acute bronchitis, what is the percentage of Asian women?",SELECT CAST(SUM(CASE WHEN T2.gender = 'F' AND T2.race = 'asian' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.gender) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Acute bronchitis (disorder)' Provide the director's name of Wreck-It Ralph movie.,SELECT director FROM director WHERE name = 'Wreck-It Ralph' What is the name of the high schooler who has the greatest number of friends?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 "What's the romanised name of the official who was Secretary for health, welfare and food?","SELECT romanised_name FROM table_2263674_1 WHERE portfolio = ""Secretary for Health, Welfare and Food""" Which Points have a Name of denis kornilov?,"SELECT AVG(points) FROM table_name_69 WHERE name = ""denis kornilov""" What is the ID of the menu with the most number of dishes?,SELECT id FROM Menu ORDER BY dish_count DESC LIMIT 1 List the name and calculate its profit for product with the highest rating in review.,"SELECT T1.Name, T1.ListPrice - T1.StandardCost FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID ORDER BY T2.Rating DESC LIMIT 1" "What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson?","SELECT MIN(round) FROM table_name_50 WHERE position = ""linebacker"" AND player = ""thomas henderson""" What is the total urban population of the city with the pinyin translation chángchūn?,"SELECT COUNT(urban_population__2010_) FROM table_16489766_2 WHERE pinyin = ""Chángchūn""" What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?,"SELECT Name, ReorderPoint FROM Product WHERE SizeUnitMeasureCode = 'CM' ORDER BY Size DESC LIMIT 6" What is the sum of Top-25 when there are more than 0 wins?,SELECT SUM(top_25) FROM table_name_46 WHERE wins > 0 Find the founded year of the newest non public school.,SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 What was the entry for highest when average is 10295?,SELECT highest FROM table_237757_10 WHERE average = 10295 What is the value of bronze with less than 2 in total?,SELECT bronze FROM table_name_91 WHERE total < 2 What nationality is Kentucky and the player Tayshaun Prince?,"SELECT nationality FROM table_name_58 WHERE school_club_team = ""kentucky"" AND player = ""tayshaun prince""" what is the address of Aniyah | Did you mean to ask for the address of the customer with first name Aniyah? | exactly,"SELECT customer_address FROM Customers WHERE customer_first_name = ""Aniyah""" "what is the episode title on original air date of September 30, 2007?","SELECT title FROM table_23799417_2 WHERE original_airing = ""September 30, 2007""" "What is the lowest year that regular season is 4th, Rocky Mountain?","SELECT MIN(year) FROM table_1241987_1 WHERE regular_season = ""4th, Rocky Mountain""" What country was the game played in when the location was trestles?,"SELECT country FROM table_name_18 WHERE location = ""trestles""" find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.,"SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3" Which country does supplier No.34 come from?,SELECT T2.n_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_suppkey = 34 Who had the most assists and how many did they have on October 5? ,"SELECT high_assists FROM table_27704187_2 WHERE date = ""October 5""" How many films did a customer named Francis Sikes rent?,SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'FRANCIS' AND T1.last_name = 'SIKES' what is the login name of the student with the most course enrollments?,SELECT T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT ( * ) DESC LIMIT 1 "What is the average Position, when Bike No is greater than 8, and when Points is less than 240?",SELECT AVG(position) FROM table_name_16 WHERE bike_no > 8 AND points < 240 What is the lowest number of fixtures?,SELECT MIN(number_of_fixtures) FROM table_27973624_1 "What are the descriptions of the courses with name ""database""?","SELECT course_description FROM COURSES WHERE course_name = ""database""" "For each classroom, show the classroom number and count the number of distinct grades that use the room.","SELECT classroom , count(DISTINCT grade) FROM list GROUP BY classroom" "Among the papers published in 2009, pick 10 and list down the conference's short name of these papers.","SELECT T2.PaperId, T4.ShortName FROM Author AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.AuthorId INNER JOIN Paper AS T3 ON T2.PaperId = T3.Id INNER JOIN Conference AS T4 ON T3.ConferenceId = T4.Id WHERE T3.Year = 2009 LIMIT 10" What are the total number of laps for Tom Bridger?,"SELECT COUNT(laps) FROM table_name_63 WHERE driver = ""tom bridger""" How many professors make more than Valtchev?,"SELECT count ( * ) FROM instructor WHERE salary > ( SELECT salary FROM instructor WHERE name = ""Valtchev"" ) " What are total transaction amounts for each transaction type?,"SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type" What are the total weights of players for team 'ANA' as per year 1997?,SELECT SUM(T1.weight) FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1997 AND T2.tmID = 'ANA' What is the earliest rating date?,SELECT ratingDate FROM Rating where ratingDate ! = 'NULL' order by ratingdate limit 1 List the name of the shop with the latest open year.,SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1 "What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407?","SELECT MAX(year) FROM table_name_18 WHERE winners = ""hawthorn"" AND season_result = ""preliminary finalist"" AND crowd < 27 OFFSET 407" "Fine the name of the project for which a scientist whose name contains ""Smith"" is assigned to.",SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%' wich were the events when bout 2 was zhang ( chn ) l 0-5?,"SELECT event FROM table_19398910_4 WHERE bout_2 = ""Zhang ( CHN ) L 0-5""" List the case number of crimes against society that happened in June 2018.,SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T2.date LIKE '6/%/2018%' AND T1.crime_against = 'Society' List the name of albums that are released by aritist whose name has 'Led',SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' What's the average total home game attendance for the Cleveland Forest Citys for all years?,SELECT avg ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Cleveland Forest Citys' What circuit did Rupert Keegan win in round 8?,"SELECT circuit FROM table_name_21 WHERE winning_driver = ""rupert keegan"" AND round = 8" Find the first names of faculties of rank Professor in alphabetic order.,"SELECT Fname FROM FACULTY WHERE Rank = ""Professor"" ORDER BY Fname" "What is the legs when the venue is rwe-sporthalle, mülheim and the runner-up (average in final) is simon whitlock (99.59)?","SELECT legs FROM table_name_81 WHERE venue = ""rwe-sporthalle, mülheim"" AND runner_up__average_in_final_ = ""simon whitlock (99.59)""" On what date was the catalog cy-24623 for New Zealand?,"SELECT date FROM table_name_64 WHERE region = ""new zealand"" AND catalog = ""cy-24623""" "If the original air date January 19, 1992, who was the episode directed by?","SELECT directed_by FROM table_2226817_7 WHERE original_air_date = ""January 19, 1992""" List all the room names with 2 beds.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.beds = 2 "Among the countries with a population of under 1000000, how many of them have over 2 languages?",SELECT T2.Country FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T1.Population < 1000000 GROUP BY T2.Country HAVING COUNT(T1.Name) > 2 What was the attendance of the game that had a loss of Wolf (3-4)?,"SELECT attendance FROM table_name_84 WHERE loss = ""wolf (3-4)""" What are the names of the students who took classes in 2009 or 2010?,SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010 What was their record when they lost with Lilly (0-1) pitching?,"SELECT record FROM table_name_6 WHERE loss = ""lilly (0-1)""" List all the crimes of the narcotic type that exist.,SELECT secondary_description FROM IUCR WHERE primary_description = 'NARCOTICS' GROUP BY secondary_description List the phone numbers of suppliers from Japan.,SELECT T1.s_phone FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T2.n_name = 'JAPAN' Name the director of Disney's lowest grossing movie.,"SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) ASC LIMIT 1" Find the name and age of all males in order of their age.,"SELECT name, age FROM Person WHERE gender = 'male' ORDER BY age" WHERE IS THE LOCATION OF EVENTS IN JAPAN ?,"SELECT Location FROM perpetrator WHERE Country = ""Japan""" Which payment method is most comonly used by the schools in the state of Georgia for the payment of donations?,SELECT T1.payment_method FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_state = 'GA' GROUP BY T2.school_state ORDER BY COUNT(T1.payment_method) DESC LIMIT 1 "what is the number of opponents where the location is syracuse, ny?","SELECT COUNT(opponent) FROM table_23346303_3 WHERE location = ""Syracuse, NY""" When did Vijay Singh join?,SELECT year_join FROM artist WHERE Name = 'Vijay Singh' what album is 5:15 long,"SELECT version FROM table_name_60 WHERE length = ""5:15""" Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids.,SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking' Which one registered most recently for that course?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1 What are the names of all teams?,SELECT Name FROM Team Show id and location of railways that are associated with more than one train.,"SELECT T2.Railway_ID , T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 1" Where was Kristen Kirchner from?,"SELECT hometown FROM table_1289860_2 WHERE candidate = ""Kristen Kirchner""" "What major is every student who does not own a cat as a pet, and also how old are they?","SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')" which church was organized by Ezra Booth? | Did you want the name of the church organized by Ezra Booth. | yes,"SELECT name FROM church where organized_by = ""Ezra Booth""" "What is the campus fee of ""San Francisco State University"" in year 2000?","SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Francisco State University"" AND t1.year = 2000" Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?,"SELECT republican FROM table_name_47 WHERE sample_size > 1087 AND democrat = ""hillary clinton"" AND margin_of_error = 2.6" Where is the Bellerive Country Club venue located?,"SELECT location_of_venue FROM table_224616_1 WHERE venue = ""Bellerive country Club""" Tell me the zip code for bike id 454 and 574 ?,"select distinct zip_code, bike_id from trip where bike_id = 454 or bike_id = 574" What was the result of the election in the Texas 4 district? ,"SELECT result FROM table_1342149_43 WHERE district = ""Texas 4""" The player for which country had a score of 66-72=138?,SELECT country FROM table_name_90 WHERE score = 66 - 72 = 138 What about the least number of documents?,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count ( * ) asc LIMIT 1 Which countries have more than one mountain?,SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1 "Which Brazil scorers have a Result of w, and a Competition of world cup qualifying, and a Date of february 28, 1954?","SELECT brazil_scorers FROM table_name_5 WHERE result = ""w"" AND competition = ""world cup qualifying"" AND date = ""february 28, 1954""" What are the first and last name of the representatives of the house in district 9?,"SELECT T2.first_name, T2.last_name FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.district = 9" "Of the 14 ratings, what was the highest rating?",SELECT stars FROM Rating ORDER BY stars DESC LIMIT 1 What is the name of the movie that was rated recently by user 57756708?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 57756708 ORDER BY T1.rating_timestamp_utc DESC LIMIT 1 What's the nickname of the students of the school that joined the Conference in 2010?,SELECT nickname FROM table_1973842_2 WHERE joined = 2010 Which player was selected in rounds under 3?,SELECT player FROM table_name_33 WHERE round < 3 "What is the production code of the episode written by José Molina that aired on October 12, 2004?","SELECT production_code FROM table_10935548_1 WHERE written_by = ""José Molina"" AND original_air_date = ""October 12, 2004""" How many distinct companies are there?,SELECT count(DISTINCT Company) FROM entrepreneur What was the year that China will have a building completed?,"SELECT year_completion_expected FROM table_name_79 WHERE country = ""china""" "How many inspections done by Lisa Tillman ended up with the result of ""Out of Business""?",SELECT COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T2.first_name = 'Lisa' AND T2.last_name = 'Tillman' AND T1.results = 'Out of Business' Who directed episode number 23?,SELECT directed_by FROM table_21025437_6 WHERE episode_no = 23 How many students are enrolled in smc during month 1?,SELECT COUNT(name) FROM enrolled WHERE school = 'smc' AND month = 1 What is the apartment type code of the apartment with the greatest number of bathrooms?,SELECT apt_type_code FROM Apartments ORDER BY bathroom_count desc LIMIT 1 Please show the titles of films and the types of market estimations.,"SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID" what's the jurisdiction where voted no is 322971,SELECT jurisdiction FROM table_120778_2 WHERE voted_no = 322971 "What was the district when the reason for change was died January 1, 1974?","SELECT district FROM table_1134091_4 WHERE reason_for_change = ""Died January 1, 1974""" "How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?","SELECT COUNT(model) FROM table_2326823_2 WHERE max_power_output = ""162kW (220 PS) at 6,300 rpm""" "In the year 1997 allstar game, which teams did the players had the most rebounds play in? List their team ids.",SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN player_allstar AS T3 ON T3.playerID = T1.playerID WHERE T3.season_id = 1997 ORDER BY T1.rebounds DESC LIMIT 1 What's the rank of the Tau Cerámica that has 377 points and more than 21 games?,"SELECT COUNT(rank) FROM table_name_62 WHERE team = ""tau cerámica"" AND points = 377 AND games > 21" What is the NFL team for Toledo?,"SELECT nfl_team FROM table_name_23 WHERE college = ""toledo""" what is the mobile number of student id 1?,SELECT cell_mobile_number FROM students where student_id = 1 What is the category of the business with short review length and highest review stars within business ID from 7 to 14?,SELECT DISTINCT T3.category_name FROM Reviews AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T2.business_id >= 7 AND T2.business_id < 15 AND T1.review_length = 'Short' AND T1.review_stars = ( SELECT MAX(review_stars) FROM Reviews ) "What is the total quantity available by all suppliers for the part ""hot spring dodger dim light""?",SELECT SUM(T1.ps_availqty) FROM partsupp AS T1 INNER JOIN part AS T2 ON T1.ps_partkey = T2.p_partkey WHERE T2.p_name = 'hot spring dodger dim light' "What is the discount percentage of ""LL Road Frame Sale""?",SELECT DiscountPct FROM SpecialOffer WHERE Description = 'LL Road Frame Sale' What is average number of students enrolled in Florida colleges?,SELECT avg(enr) FROM College WHERE state = 'FL' "List the id, country, city and name of the airports ordered alphabetically by the name.","SELECT id , country , city , name FROM airport ORDER BY name" Which cities served as a host city after 2010?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010 How many games played for the army team with over 51 points and under 5 games drawn?,"SELECT COUNT(played) FROM table_name_81 WHERE drawn < 5 AND team = ""army"" AND points > 51" What are the years when the ranking is less than 8 with less than 66 goals and name is Paul McGee?,"SELECT years FROM table_name_38 WHERE ranking < 8 AND goals < 66 AND name = ""paul mcgee""" Which Season has Finals of out of playoffs.?,"SELECT season FROM table_name_88 WHERE finals = ""out of playoffs.""" List the ID and years in program for students taught by advisor with ID 5.,"SELECT T1.p_id, T2.yearsInProgram FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.p_id_dummy = 5" When the area sq mi (km 2 ) (rank) is sqmi (km2) (5) what is the population (2010) (rank)?,"SELECT population__2010___rank_ FROM table_14253123_1 WHERE area_sq_mi__km_2____rank_ = ""sqmi (km2) (5)""" WHich Surface has an Opponent of gustavo kuerten?,"SELECT surface FROM table_name_13 WHERE opponent = ""gustavo kuerten""" "Find the enrollment date for all the tests that have ""Pass"" result.","SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass""" Which Chart peak was Recorded on 2/19/69?,"SELECT chart_peak FROM table_name_64 WHERE recorded = ""2/19/69""" "What are each document's location code, and starting date and ending data in that location?","SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations" What are the names of regions that were not affected?,SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region) What is the African Spoonbill when the Hadeda Ibis is Flernecked Nightjar?,"SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = ""Flernecked Nightjar""" "From 1900 to 1992, how many games did London host?",SELECT COUNT(T3.id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London' AND T3.games_year BETWEEN 1900 AND 1992 What is the total ticket expense of the visitors whose membership level is 1?,SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1 How many ingredients are there in Apricot Yogurt Parfaits?,SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Apricot Yogurt Parfaits' Find the names of stadiums whose capacity is smaller than the average capacity.,SELECT name FROM stadium WHERE capacity < (SELECT avg(capacity) FROM stadium) What is the plural if the singular is nyaqot?,"SELECT plural FROM table_name_47 WHERE singular = ""nyaqot""" Which title had an audience of 4.629.000?,"SELECT title FROM table_name_68 WHERE audience = ""4.629.000""" What was the record on November 7?,"SELECT COUNT(record) FROM table_17288869_5 WHERE date = ""November 7""" Which regions are owned by estado de tabasco?,"SELECT region FROM table_2899987_2 WHERE owner = ""Estado de Tabasco""" Name the poles for avg finish is 26.8,"SELECT poles FROM table_1671401_2 WHERE avg_finish = ""26.8""" On which date was the winning driver Alain Prost and and had Damon Hill in the pole position?,"SELECT date FROM table_1137703_2 WHERE winning_driver = ""Alain Prost"" AND pole_position = ""Damon Hill""" What is the Language for Network PTC Punjabi?,"SELECT language FROM table_name_28 WHERE network = ""ptc punjabi""" What time is CDT when EDT is 4:55 a.m.?,"SELECT cdt___5_utc_ FROM table_name_71 WHERE edt___4_utc_ = ""4:55 a.m.""" How many students are advised by each rank of faculty? List the rank and the number of students.,"SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank" How many games were lost when the goals scored was 37?,SELECT COUNT(loses) FROM table_16034882_2 WHERE goals_scored = 37 Which Major League Soccer team for the 2005 season has the lowest goals?,"SELECT MIN(goals) FROM table_name_63 WHERE league = ""major league soccer"" AND season = ""2005""" Show the names of buildings except for those having an institution founded in 2003.,SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003 Please list the countries under the lending category of the International Development Associations and have a external debt reporting finished by estimation.,"SELECT ShortName, ExternalDebtReportingStatus FROM Country WHERE LendingCategory = 'IDA'" "What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?",SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 1 what about other countries?,"SELECT count ( * ) , Country FROM manager WHERE Country ! = 'Scotland' group by Country" Show the names of companies and of employees.,"SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID" Show ids for all students who have advisor 1121.,SELECT StuID FROM Student WHERE Advisor = 1121 Which player selected by Portland in 2nd draftRound won Rookie of the Year in 1971?,SELECT T1.playerID FROM draft AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Rookie of the Year' AND T1.draftYear = 1971 AND T1.draftRound = 2 In what years did Salina Kosgei compete in Singapore?,"SELECT COUNT(year) FROM table_name_70 WHERE venue = ""singapore""" How many transactions were made at Sac State Union?,SELECT COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State Union' "What week had an attendance of 27,262?","SELECT week FROM table_name_66 WHERE attendance = ""27,262""" give me the ship id,SELECT t1.Ship_ID FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' How many picks did the Chicago Black Hawks get?,"SELECT COUNT(pick__number) FROM table_2679061_11 WHERE nhl_team = ""Chicago Black Hawks""" "At which conference was the paper ""Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes"" presented?",SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes' What's the number & name for a description of lms fowler class 3f 0-6-0t?,"SELECT number_ & _name FROM table_name_10 WHERE description = ""lms fowler class 3f 0-6-0t""" What is the percentage of this constellation abbreviated as 'nor'?,"SELECT per­cent­age FROM table_177766_1 WHERE abbre­viation = ""Nor""" Show the reign and days held of wrestlers.,"SELECT Reign , Days_held FROM wrestler" How many professionals have performed any treatment to dogs?,SELECT count(DISTINCT professional_id) FROM Treatments What is the bussiness id for Mr. Hung-Fu Ting?,SELECT BusinessEntityID FROM Person WHERE Title = 'Mr.' AND FirstName = 'Hung-Fu' AND LastName = 'Ting' "What is the average played that has a drawn greater than 1, with an against greater than 16?",SELECT AVG(played) FROM table_name_17 WHERE drawn > 1 AND against > 16 "What is 1992, when 1999 is ""Year-End Championship""?","SELECT 1992 FROM table_name_74 WHERE 1999 = ""year-end championship""" Count the number of films whose title contains the word 'Dummy'.,"SELECT count(*) FROM film WHERE title LIKE ""%Dummy%""" Count the number of transactions.,SELECT count(*) FROM Financial_transactions what driver has 12 in grid?,SELECT driver FROM table_name_80 WHERE grid = 12 what is the highest customer code on the table,SELECT max ( customer_code ) FROM Customers What is the Tie number for the match that had away team of Scunthorpe & Lindsey United?,"SELECT tie_no FROM table_name_61 WHERE away_team = ""scunthorpe & lindsey united""" "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.","SELECT T2.title , T1.stars , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != ""null"" GROUP BY director" What are all the calendar dates and day Numbers?,"SELECT calendar_date , day_Number FROM Ref_calendar" what is the recnet when the city of license is peterborough?,"SELECT recnet FROM table_name_68 WHERE city_of_license = ""peterborough""" What fuel system was used in 1960-62?,"SELECT fuel_system FROM table_name_95 WHERE years = ""1960-62""" What is T7 Place Player Justin Leonard's Score?,"SELECT score FROM table_name_31 WHERE place = ""t7"" AND player = ""justin leonard""" What is the name of the person that has the highest number of nominated award but didn't win?,SELECT person FROM Award WHERE result = 'Nominee' GROUP BY person ORDER BY COUNT(person) DESC LIMIT 1; What is the selection show in 1969 when the Semi final/heat host shows there was no semi final/heat.,"SELECT selection_show FROM table_name_86 WHERE semi_final_heat_host = ""no semi final/heat"" AND year_s_ = ""1969""" what is the home city of Dan Carter,"select home_city from driver where name = ""Dan Carter""" How many game publisher IDs have published games on the X360 platform?,SELECT COUNT(T1.game_publisher_id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T2.platform_name = 'X360' Tell the attribute of the weeds in image no.2377988.,SELECT T2.ATT_CLASS FROM IMG_OBJ_att AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T4.OBJ_CLASS = 'weeds' AND T1.IMG_ID = 2377988 "Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj (dog)?","SELECT elevation_ + _height FROM table_name_96 WHERE delivery = ""barge"" AND location = ""bikini, yurochi aka irioj (dog)""" "What is the Venue when the score was 1 – 1, and the result was 2 – 2?","SELECT venue FROM table_name_87 WHERE score = ""1 – 1"" AND result = ""2 – 2""" "Great! Can you filter this list to show just the rows the coupons and coupon amounts that are associated with both values of good and bad in the ""good or bad customer"" category.","SELECT T1.coupon_id, T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_id, T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad'" "Show the average, maximum, minimum enrollment of all schools.","SELECT avg(enrollment) , max(enrollment) , min(enrollment) FROM school" What is the tourist attraction id of game2,SELECT Tourist_Attraction_ID FROM PHOTOS where Name = 'game2' What district(s) did henry clay represent?,"SELECT district FROM table_2668264_8 WHERE incumbent = ""Henry Clay""" "List the order IDs, product IDs and unit price of orders which total payment is greater than 15000.","SELECT ProductID, OrderID, UnitPrice FROM `Order Details` WHERE UnitPrice * Quantity * (1 - Discount) > 15000" Find the count of universities whose campus fee is greater than the average campus fee.,SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees) what is McKinnon salary?,select salary from instructor where name = 'McKinnon' What Title has a Role of Mylene?,"SELECT title FROM table_name_79 WHERE role = ""mylene""" What was the score of the game when the record was 28–19?,"SELECT score FROM table_name_62 WHERE record = ""28–19""" Which driver had 35+3 points?,"SELECT driver FROM table_name_77 WHERE points = ""35+3""" For how many times had Elly Koss have her Systolic Blood Pressure observed?,SELECT COUNT(T2.description) FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description = 'Systolic Blood Pressure' "Find the unit of measurement and product category code of product named ""chervil"".","SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""chervil""" On what day was the record 30-31?,"SELECT date FROM table_name_88 WHERE record = ""30-31""" What is the Studio of the Rank 10 Film?,SELECT studio FROM table_name_98 WHERE rank = 10 Which countries have notes on the indicator BX.KLT.DINV.CD.WD?,SELECT T1.ShortName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T3.Seriescode = 'BX.KLT.DINV.CD.WD' Show the name of the building that has the most company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 What is the HDTV when the content shows a timeshift +1 di disney junior?,"SELECT hdtv FROM table_name_54 WHERE content = ""timeshift +1 di disney junior""" What is the full name of the employee who handled the highest amount of orders?,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.FirstName, T1.LastName ORDER BY COUNT(*) DESC LIMIT 1" i want to learn attraction type code?,"select Location_ID,Attraction_Type_Code from Tourist_Attractions" What is the shape distortion for the range frequency of 10?,"SELECT form_factor FROM table_27615520_1 WHERE bandwidth__gb_s_ = ""10""" how many callings of trains arriving at 09.06,"SELECT COUNT(calling_at) FROM table_18333678_2 WHERE arrival = ""09.06""" WHAT WAS THE SCORE IN THE FINAL PLAYED AGAINST JOSE CHECA-CALVO IN THE SANT CUGAT TOURNAMENT ?,"SELECT score FROM table_name_80 WHERE tournament = ""sant cugat"" AND opponent_in_the_final = ""jose checa-calvo""" "Among the active customers, how many of them have Nina as their first name?",SELECT COUNT(customer_id) FROM customer WHERE first_name = 'Nina' AND active = 1 List the rider for the doncaster handicap compeition.,"SELECT jockey FROM table_30098144_2 WHERE race = ""Doncaster Handicap""" "What week had 58,025 in attendance?","SELECT SUM(week) FROM table_name_87 WHERE attendance = ""58,025""" What are the document details of each of those?,"SELECT T1.Document_Details FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Government""" The song The way was issued on what date?,"SELECT Issue_Date FROM volume WHERE Song LIKE ""%The Way%""" Name the sales team and the region of order number 'SO - 000137'.,"SELECT T2.`Sales Team`, T2.Region FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.OrderNumber = 'SO - 000137'" By how much did the indicator on Adolescent fertility rate increase from 1960 to 1961 in the country whose Alpha2Code is 1A?,"SELECT ( SELECT T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' AND T2.Year = 1961 ) - ( SELECT T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' AND T2.Year = 1960 ) DIFF" What is the lowest amount of assists for more than 5 games?,SELECT MIN(assists) FROM table_name_24 WHERE games_played > 5 Which player has a cap larger than 12 and Clubs of Toulouse?,"SELECT player FROM table_name_74 WHERE caps > 12 AND club_province = ""toulouse""" List all the event names by year from the most recent to the oldest.,SELECT name FROM event ORDER BY YEAR DESC Which year is that has a Entrant of belond equa-flow / calif. muffler?,"SELECT year FROM table_name_88 WHERE entrant = ""belond equa-flow / calif. muffler""" What is the name of the customer whose order was delivered the longest?,SELECT T3.c_name FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey INNER JOIN customer AS T3 ON T1.o_custkey = T3.c_custkey ORDER BY (JULIANDAY(T2.l_receiptdate) - JULIANDAY(T2.l_commitdate)) DESC LIMIT 1 Please list the headquarters of the store that is called Blackville?,"SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = ""Blackville""" What was the time when the score was 0–3?,"SELECT time FROM table_name_67 WHERE score = ""0–3""" Which Tie number had Fulham as the away team?,"SELECT tie_no FROM table_name_79 WHERE away_team = ""fulham""" What's the losing bonus of Crumlin RFC?,"SELECT losing_bonus FROM table_name_21 WHERE club = ""crumlin rfc""" How much was a Bitcoin on 2013/4/28?,SELECT T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T1.name = 'Bitcoin' What is the title of the representative appointed by James K. Polk?,"SELECT title FROM table_name_52 WHERE appointed_by = ""james k. polk""" How many points were there scored on October 27?,"SELECT MAX(points) FROM table_23308178_4 WHERE date = ""October 27""" "Which tournament has an Outcome of winner, and a Opponent of dia evtimova?","SELECT tournament FROM table_name_53 WHERE outcome = ""winner"" AND opponent = ""dia evtimova""" What year did the Simpsons receive its first ever award for Favorite Animated Comedy in People's Choice Award?,SELECT year FROM Award WHERE result = 'Winner' AND award = 'Favorite Animated Comedy' ORDER BY year DESC LIMIT 1; "What is the Statue, when Venue is ""Stadio Flaminio , Rome""?","SELECT status FROM table_name_63 WHERE venue = ""stadio flaminio , rome""" "What are her customer details, please?","SELECT t2.customer_id, t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1" "What is the sum of staterooms in with a year buit of 2008, and a crew less than 28?",SELECT SUM(staterooms) FROM table_name_62 WHERE year_built = 2008 AND crew < 28 how many customers are presented on the table,SELECT count ( * ) FROM Customers "What are the names and dates of races, and the names of the tracks where they are held?","SELECT T1.name , T1.date , T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id" "How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?","SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = ""alberta"" AND south_asians_2011 > 159 OFFSET 055" "Where the number of exports are 6,099.06, what is the total trade?","SELECT total_trade FROM table_26160007_1 WHERE exports = ""6,099.06""" What was the Top Gear budget in March 2013?,"SELECT budget FROM table_name_39 WHERE month_ & _year = ""march 2013""" What was the home team's score at Victoria Park?,"SELECT home_team AS score FROM table_name_27 WHERE venue = ""victoria park""" what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00,"SELECT thursday FROM table_11019212_1 WHERE sunday = ""1:00-5:00"" AND tuesday = ""1:00-7:00""" "What is the week for November 28, 1982?","SELECT MIN(week) FROM table_name_14 WHERE date = ""november 28, 1982""" How many wins when there are 4 losses and against are fewer than 1281?,SELECT AVG(wins) FROM table_name_7 WHERE losses = 4 AND against < 1281 List all the streets where pizza-serving restaurants are found in San Jose.,SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'pizza' AND T1.city = 'san jose' What is the lengths behind of Jeremy Rose?,"SELECT lengths_behind FROM table_name_73 WHERE jockey = ""jeremy rose""" What is the highest earnings for the golfer who has more than 37 wins?,SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE wins > 37 what is the minimum attendance with stadium being cotton bowl,"SELECT MIN(attendance) FROM table_14102379_4 WHERE stadium = ""Cotton Bowl""" What type of game was played in Ljubljana?,"SELECT type_of_game FROM table_name_97 WHERE city = ""ljubljana""" What is the rank of the reynard 2ki chassis before 2002?,"SELECT rank FROM table_name_50 WHERE year < 2002 AND chassis = ""reynard 2ki""" What score has a tie of 5?,"SELECT score FROM table_name_55 WHERE tie_no = ""5""" What are Doug Davis' maximum pitching stats?,"SELECT MAX(stats) FROM table_19839391_3 WHERE pitcher = ""Doug Davis""" "Show the nominees that have nominated musicals for both ""Tony Award"" and ""Drama Desk Award"".","SELECT Nominee FROM musical WHERE Award = ""Tony Award"" INTERSECT SELECT Nominee FROM musical WHERE Award = ""Drama Desk Award""" What are the names of movies that get 3 star and 4 star?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4 Find the maximum and average capacity among rooms in each building.,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building" What is the numeric ID of Chris Van Hollen on GovTrack.us?,SELECT T2.govtrack FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Chris Van Hollen' "Which outcomes have a final score of 6–3, 6–2?","SELECT outcome FROM table_22834834_3 WHERE score_in_the_final = ""6–3, 6–2""" What is the chassis more recent than 1967?,SELECT chassis FROM table_name_90 WHERE year > 1967 Name the total number of rounds for gina carano,"SELECT COUNT(round) FROM table_name_6 WHERE opponent = ""gina carano""" Name the total number of population per square km with population 1.12006 of 12.757,SELECT COUNT(population_per_square_km) FROM table_name_97 WHERE population_112006 = 12.757 List down the movie ID of movie with a budget of 15000000 and a rating between 7 to 8.,SELECT MovieID FROM movie WHERE Rating BETWEEN 7 AND 8 AND Budget = 15000000 List down the movie titles within the genre of thriller.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Thriller' "Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?","SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = ""hamilton red wings (oha)"" AND position = ""rw""" What are the titles for courses with two prerequisites?,SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2 "What is the average Laps, when Grid is 15?",SELECT AVG(laps) FROM table_name_74 WHERE grid = 15 "What is the average played value in Belgrade with attendance greater than 26,222?","SELECT AVG(played) FROM table_name_83 WHERE city = ""belgrade"" AND average_attendance > 26 OFFSET 222" "What is the average Draws, when Goal Difference is greater than -3, when Goals Against is 30, and when Points is greater than 45?",SELECT AVG(draws) FROM table_name_97 WHERE goal_difference > -3 AND goals_against = 30 AND points > 45 What rank by average has 1 dance on season 9?,"SELECT rank_by_average FROM table_name_34 WHERE number_of_dances = ""1"" AND season = ""9""" "Which Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4?","SELECT MAX(points_1) FROM table_name_36 WHERE drawn = 5 AND goal_difference = ""+58"" AND lost > 4" what is ba - running bear where ab - angry boar is os - ox soldier?,"SELECT ba___running_bear FROM table_2603017_2 WHERE ab___angry_boar = ""OS - Ox Soldier""" Show ids for all students who have advisor 1121.,SELECT StuID FROM Student WHERE Advisor = 1121 Which round has a Kick Off of 1993-02-17 20:30?,"SELECT round FROM table_name_8 WHERE kick_off = ""1993-02-17 20:30""" Which position did Michael Lee play?,"SELECT pos FROM table_name_25 WHERE name = ""michael lee""" "Which Year is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4?","SELECT MIN(year) FROM table_name_12 WHERE regular_season = ""5th, atlantic"" AND division > 4" What team acquired as a rookie draft in the position of guard Dennis Miranda?,"SELECT school_club_team FROM table_name_84 WHERE acquisition_via = ""rookie draft"" AND position = ""guard"" AND name = ""dennis miranda""" Who was the opponent with a series of 3-2?,"SELECT opponent FROM table_name_54 WHERE series = ""3-2""" "In the Year Yugoslavia won 1 Silver, how many Gold medals did they win?","SELECT gold FROM table_name_14 WHERE silver = ""1""" "What's the report in King Baudouin Stadium Brussels, Belgium?","SELECT report FROM table_name_31 WHERE venue = ""king baudouin stadium brussels, belgium""" "What are the cities for country called ""´Uman"" in local name.",SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.LocalName = '´Uman' Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz,"SELECT lmp1_winning_team FROM table_19598014_2 WHERE rnd = 2 AND lmp2_winning_team = ""Adrian Fernández Luis Díaz""" How many products sold by Adam Hernandez?,SELECT SUM(CASE WHEN T2.`Sales Team` = 'Adam Hernandez' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID What is the lengtho f track 16?,"SELECT length FROM table_name_88 WHERE track = ""16""" List the actual delivery date for all the orders with quantity 1,SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 what was the lowest number that auburn triumphed where the activities took part was 92,SELECT MIN(au_won) FROM table_2846320_4 WHERE games_played = 92 What was Yardley-BRM's points high after 1971?,"SELECT MAX(points) FROM table_name_96 WHERE entrant = ""yardley-brm"" AND year > 1971" Return the name and country corresponding to the artist who has had the most exhibitions.,"SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1" "What is the solution's path of method ""HtmlSharp.HtmlParser.Feed""?",SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'HtmlSharp.HtmlParser.Feed' What is the amount of points for the team with 13 wins?,SELECT points FROM table_16034882_4 WHERE wins = 13 "What type of school is in swarthmore, pennsylvania?","SELECT type FROM table_254776_1 WHERE location = ""Swarthmore, Pennsylvania""" What is the airport name that has nos listed as the IATA?,"SELECT airport FROM table_name_78 WHERE iata = ""nos""" How many calendar items do we have?,SELECT count(*) FROM Ref_calendar Name the year for t-10th,"SELECT year FROM table_20774360_2 WHERE standing = ""T-10th""" What's the sum of ERP W with a Frequency MHz that larger than 97.7?,SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7 in game that had a score of 7-6 what was the attendance?,"SELECT attendance FROM table_name_73 WHERE score = ""7-6""" Find the name of services that have been used for more than 2 times in first notification of loss.,SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 What is the name of each dorm that has a TV Lounge but no study rooms?,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' List the total points of gymnasts in descending order.,SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC Who was the dual television commentator in 1990?,SELECT Dual AS television_commentator FROM table_2794180_11 WHERE year_s_ = 1990 "For the goalies whose weight are above 190, who had most goal againsts in 1978 season?",SELECT T1.playerID FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = '1978' AND T2.weight > 190 ORDER BY T1.GA DESC LIMIT 1 What is the attendance total when Southend Manor is the away team and there are less than 93 ties?,"SELECT COUNT(attendance) FROM table_name_12 WHERE away_team = ""southend manor"" AND tie_no < 93" What is the number of directors for the film title Eldra?,"SELECT COUNT(director) FROM table_26385848_1 WHERE film_title = ""Eldra""" What was the high assists from a high points of dorell wright (20)?,"SELECT high_assists FROM table_name_98 WHERE high_points = ""dorell wright (20)""" What's the total of rank number 6 with more than 2 silver?,"SELECT MAX(total) FROM table_name_71 WHERE rank = ""6"" AND silver > 2" "For the problem with id 10, return the ids and dates of its problem logs.","SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10" What is the customer id for that mailshot id?,SELECT T1.customer_id FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 How many online orders were shipped during the month of June 2018?,"SELECT SUM(IIF(ShipDate LIKE '6/%/18' AND `Sales Channel` = 'Online', 1, 0)) FROM `Sales Orders`" What is the toll for light vehicles at the plaza between bela bela and modimolle?,"SELECT light_vehicle FROM table_1211545_2 WHERE location = ""between Bela Bela and Modimolle""" "Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?",SELECT MAX(males_rank) FROM table_name_93 WHERE females___percentage_ < 40 AND females_rank < 22 How many points did the opponent score on Sept. 14?,"SELECT MAX(opponents) FROM table_16677887_2 WHERE date = ""Sept. 14""" How many samples of animal objects are there in image no.660?,SELECT COUNT(T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'animal' AND T1.IMG_ID = 660 Calculate the average number of different words that appear on all pages whose title begins with A.,SELECT AVG(words) FROM pages WHERE title LIKE 'A%' Find out the first name and last name of staff lived in city Damianfort.,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = ""Damianfort"";" Which Catalogue has a Writer(s) of mark james?,"SELECT catalogue FROM table_name_60 WHERE writer_s_ = ""mark james""" Name the film title for andré téchiné category:articles with hcards,"SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = ""André Téchiné Category:Articles with hCards""" How many incumbents had a district of Arkansas 3?,"SELECT COUNT(incumbent) FROM table_1342233_5 WHERE district = ""Arkansas 3""" "What was the latest year in which she took 4th position in Budapest, Hungary?","SELECT MAX(year) FROM table_name_12 WHERE position = ""4th"" AND venue = ""budapest, hungary""" List all the countries in the continent of Asia that use English as their unofficial language.,SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' AND T2.IsOfficial = 'F' GROUP BY T1.Name What opposing team has second test as the status?,"SELECT opposing_team FROM table_name_12 WHERE status = ""second test""" "What are the ids, names and genders of the architects who built two bridges or one mill?","SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 2 UNION SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 1" What is maximum loss record when the pa record is 47?,SELECT MAX(l) FROM table_29545993_3 WHERE pa = 47 "In episode with the highest votes, list the category of awards it is nominated for.",SELECT T1.award_category FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.result = 'Nominee' ORDER BY T2.votes DESC LIMIT 1; How many missions countries have notability with president of burundi?,"SELECT COUNT(Missions) AS country FROM table_18299148_1 WHERE notability = ""President of Burundi""" "How many Extra points have Touchdowns larger than 2, and Field goals larger than 0?",SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_goals > 0 What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team?,"SELECT scores FROM table_23292220_13 WHERE seans_team = ""Russell Kane and Louise Redknapp""" in the year 1995/96 what was the reg. season,"SELECT reg_season FROM table_1908049_1 WHERE year = ""1995/96""" "Can you please tell me which ones of those have ""Turon"" as their second author?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""USA"" AND t2.authorder = 2 AND t1.lname = ""Turon""" What is the time of Troy Bayliss with less than 8 grids?,"SELECT time FROM table_name_96 WHERE grid < 8 AND rider = ""troy bayliss""" Who was the entrant for driver Giuseppe Farina when he had a Chassis of 625 555 D50 and a tyre of E?,"SELECT entrant FROM table_name_87 WHERE tyre = ""e"" AND chassis = ""625 555 d50"" AND driver = ""giuseppe farina""" What was the score for the player from the United states that was +1 to par?,"SELECT score FROM table_name_64 WHERE to_par = ""+1"" AND country = ""united states""" What year(s) was Duisburg runner-up?,"SELECT years_runner_up FROM table_name_81 WHERE team = ""duisburg""" Which American has British of ɛm?,"SELECT american FROM table_name_62 WHERE british = ""ɛm""" display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’.,"SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )" What is the average number of pages in the books written by Jennifer Crusie?,SELECT AVG(T1.num_pages) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Jennifer Crusie' Provide the countries and the zip codes in the Virgin Islands.,"SELECT T2.county, T2.zip_code FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Virgin Islands'" Which crime was committed the most by criminals?,SELECT T2.title FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no ORDER BY T2.fbi_code_no DESC LIMIT 1 What's the average year for the name aida-wedo dorsa with a diameter less than 450?,"SELECT AVG(year_named) FROM table_name_16 WHERE name = ""aida-wedo dorsa"" AND diameter__km_ < 450" What is the gender of the user who has posted the tweet that is seen by the most number of unique users?,SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID ORDER BY T1.Reach DESC LIMIT 1 What is the difference between the number of married patients and the number of single patients with diabetes?,SELECT SUM(CASE WHEN T2.marital = 'M' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.marital = 'S' THEN 1 ELSE 0 END) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Diabetes' List the state and enrollment of all the colleges where any students got accepted in the tryout decision.,"SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?,SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000 State the documentary film titles with longest length.,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'documentary' ORDER BY T1.length DESC LIMIT 1 "Can you list all of the apartments with more than 4 bedrooms? | do you mean the apartment ids of apartments with more than 4 bedrooms? | Yes, please! I believe that's the only discrete identifier of the apartments (at least that I can see)...",select apt_id from Apartments where bedroom_count > 4 What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?,"SELECT MAX(overall) FROM table_name_8 WHERE college = ""southern mississippi"" AND round < 6" Show the membership level with most number of members.,SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1 Who has 5 losses and has played 11 matches?,"SELECT name FROM table_name_47 WHERE losses = ""5"" AND matches = ""11""" What is the acceleration 1-100km/h when the name is 1.5 dci?,"SELECT acceleration_0_100km_h FROM table_name_32 WHERE name = ""1.5 dci""" What is the max fps of a camera with mpix larger than 8.4 and frame size of 4k 16:9?,"SELECT COUNT(max_fps) FROM table_name_5 WHERE mpix > 8.4 AND frame_size = ""4k 16:9""" What team ran car #24 on August 30?,"SELECT team FROM table_name_56 WHERE car__number = 24 AND date = ""august 30""" arrange the names in ascending order,"SELECT Name FROM member WHERE Country = ""United States"" OR Country = ""Canada"" order by name" What is the result of the game with a set 1 of 26-24?,"SELECT result__pts_ FROM table_name_17 WHERE set_1 = ""26-24""" What are the forename and surname of the driver who has the smallest laptime?,"SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1" Where was the home team in the game played against Chicago?,"SELECT home FROM table_name_64 WHERE visitor = ""chicago""" "In 2015, how many complaints about Billing disputes were sent by clients in Portland?",SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Portland' AND T2.`Date received` LIKE '2015%' AND T2.Issue = 'Billing disputes' Name the location attendance for january 18,"SELECT location_attendance FROM table_23286112_8 WHERE date = ""January 18""" What are the total number of credits offered by each department?,"SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code" Give the name and phone number of the customers who have more than 9000 account balance.,"SELECT c_name, c_phone FROM customer WHERE c_acctbal > 9000" Return the names of products that have had complaints filed by the customer who has filed the fewest complaints.,SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1 "What are the names of the sales teams that have served to customer Apotheca, Ltd?","SELECT DISTINCT T3.`Sales Team` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T1.`Customer Names` = 'Apotheca, Ltd'" Which player is in the position of Guard/Forward?,"SELECT name FROM table_name_67 WHERE position = ""guard/forward""" What are the distinct types of mills that are built by American or Canadian architects?,SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian' Thanks! Can you update this list to show all of the associated years for each of these festivals?,"SELECT T2.Name , T3.Festival_Name, T3.YEAR FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID" Candidate of kimmo kiljunen belongs to which municipality?,"SELECT municipality FROM table_name_88 WHERE candidate = ""kimmo kiljunen""" "WHAT IS THE LOST WITH 1 LOSING BONUS, 148 POINTS?","SELECT lost FROM table_name_32 WHERE losing_bonus = ""1"" AND points_for = ""148""" What theme has special notes from calgary flames gift set?,"SELECT theme FROM table_name_24 WHERE special_notes = ""from calgary flames gift set""" "For the movie ""Land of the Dead"", who is its director?",SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Land of the Dead' AND T2.job = 'Director' Provide the destinations of flight number 1596.,SELECT DEST FROM Airlines WHERE OP_CARRIER_FL_NUM = 1596 "Who was the opponent when the attendance was 87,453?","SELECT opponent_number FROM table_name_28 WHERE attendance = ""87,453""" How many distinct locations have the things with service detail 'Unsatisfied' been located in?,SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied' For which tournaments was the score 135 (-7)?,"SELECT tournament FROM table_11622829_1 WHERE score = ""135 (-7)""" Show me the names of all body builders,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID What was the TO par for the player who scored 68-69=137?,SELECT to_par FROM table_name_82 WHERE score = 68 - 69 = 137 What are the names of cities that are in counties that have a crime rate below 100?,SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100) "For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above.","SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(SUBSTR(T1.rating_timestamp_utc, 1, 4) AS INTEGER) = 2020 AND CAST(SUBSTR(T1.rating_timestamp_utc, 6, 2) AS INTEGER) > 4" What kind of report was for the game played on 29 November with Melbourne Tigers being the away team?,"SELECT report FROM table_name_89 WHERE date = ""29 november"" AND away_team = ""melbourne tigers""" how many orders there,SELECT count ( * ) from orders List the capability of research postgraduate students with an intellegence level of 4 and above.,SELECT T1.capability FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.type = 'RPG' AND T2.intelligence >= 4 Show all template type codes and the number of documents using each type.,"SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code" What was the 2nd leg score for Al-Merrikh as team 2?,"SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = ""al-merrikh""" "who is the opponent when the streak is won 9 on april 13, 1990?","SELECT opponent FROM table_name_3 WHERE streak = ""won 9"" AND date = ""april 13, 1990""" Which county team has jimmy finn as the player?,"SELECT county_team FROM table_name_88 WHERE player = ""jimmy finn""" What Competition had a Score of 3–3?,"SELECT competition FROM table_name_27 WHERE score = ""3–3""" How many goals were scored with a pos larger than 4 and active in 2001-?,"SELECT goals_scored FROM table_name_50 WHERE pos > 4 AND years_active = ""2001-""" What award has a year earlier than 2004 and the episode shows —?,"SELECT award FROM table_name_90 WHERE year < 2004 AND episode = ""—""" "What are the ids, scores, and dates of the games which caused at least two injury accidents?","SELECT T1.id , T1.score , T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" what are all the percent (1990) where state is mississippi,"SELECT percent__1990_ FROM table_1182314_5 WHERE state = ""Mississippi""" What is the attendance total of the game with the Lakers as the home team?,"SELECT COUNT(attendance) FROM table_name_67 WHERE home = ""lakers""" "Find the details of all the distinct customers who have orders with status ""On Road"".","SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road""" "How many times were the winnings $3,816,362?","SELECT COUNT(avg_finish) FROM table_1507423_4 WHERE winnings = ""$3,816,362""" Which Round has an Event of 200 miles of norisring?,"SELECT COUNT(round) FROM table_name_25 WHERE event = ""200 miles of norisring""" What are the details of the three most expensive hotels?,SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3 Name the hebrew for *tišʻ-,"SELECT hebrew FROM table_26919_6 WHERE proto_semitic = ""*tišʻ-""" "What is the total launch failures when there are 4 launches, and the not usable is greater than 0?",SELECT SUM(launch_failures) FROM table_name_73 WHERE launched = 4 AND not_usable > 0 Which directors with the best quality directed the most films?,SELECT T1.directorid FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 5 GROUP BY T1.directorid ORDER BY COUNT(T2.movieid) DESC LIMIT 1 What position does the College of Louisiana State have?,"SELECT position FROM table_name_89 WHERE college = ""louisiana state""" When the score was 71-71-70-70=282 what was the To par recorded?,SELECT to_par FROM table_name_94 WHERE score = 71 - 71 - 70 - 70 = 282 Which Game is the highest that has a January of 28?,SELECT MAX(game) FROM table_name_51 WHERE january = 28 What are the names of the states that have some college students playing in the positions of goalie and mid-field?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' What is the id of the driver who participated in the least races after 2010?,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 WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count ( * ) LIMIT 1 "What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3?","SELECT MAX(engine_capacity) FROM table_name_25 WHERE manufacturer = ""bmw"" AND mpg_uk_extra_urban = 52.3 AND co_2_g_km = 176 AND mpg_us_urban > 27.3" "Which Attendance has an Opponent of green bay packers, and a Week larger than 10?","SELECT MIN(attendance) FROM table_name_95 WHERE opponent = ""green bay packers"" AND week > 10" "What the full names, ids of each employee and the name of the country they are in?","SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" What is the title for season 2?,SELECT title FROM table_11630008_4 WHERE season_no = 2 How many people attended the home game against the New York Jets?,"SELECT SUM(attendance) FROM table_name_61 WHERE opponent = ""new york jets""" "What is the english (bcp) phrase ""for thine is the kingdom, the power"" in modern german with standard wording?","SELECT modern_german__standard_wording_ FROM table_181240_1 WHERE english___bcp__ = ""For thine is the kingdom, the power""" How many performances are there?,SELECT count(*) FROM performance Do any of the English professors have a PhD?,"SELECT count ( * ) from professor where dept_code = ""ENG"" and prof_high_degree = ""Ph.D.""" show the average order quantity of all invoices,SELECT avg ( Order_Quantity ) FROM INVOICES What is the high grid total for maserati with under 35 laps?,"SELECT MAX(grid) FROM table_name_64 WHERE laps < 35 AND constructor = ""maserati""" "Among the suppliers for the parts ordered in order no.4, how many of them are in debt?",SELECT COUNT(T1.l_linenumber) FROM lineitem AS T1 INNER JOIN supplier AS T2 ON T1.l_suppkey = T2.s_suppkey WHERE T1.l_orderkey = 4 AND T2.s_acctbal < 0 What is the transfer window for Hleb?,"SELECT transfer_window FROM table_name_69 WHERE name = ""hleb""" "What is the highest Rank for Jason Kreis, with less than 305 matches?","SELECT MAX(rank) FROM table_name_67 WHERE name = ""jason kreis"" AND matches < 305" How many teams does Lee Sorochan play for?,"SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = ""Lee Sorochan""" What is Policy_Type_Code of Customer_ID 3?,SELECT Policy_Type_Code FROM Customer_Policies where Customer_ID = '3' Find the last names of teachers who are not involved in any detention.,SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id How many countries have more than 1 city?,select count ( * ) from ( SELECT * FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count ( * ) > 1 ) Which state have more than 2 staff members living there?,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count ( * ) > 2 What is the 2011 Australian Open and a 2010 QF?,"SELECT 2011 FROM table_name_70 WHERE tournament = ""australian open"" AND 2010 = ""qf""" Who is the youngest competitor that participated in 2014 Winter?,SELECT T3.full_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '2014 Winter' ORDER BY T2.age LIMIT 1 What is the D 42 √ figure when D 46 √ is r 6?,"SELECT d_42_√ FROM table_name_77 WHERE d_46_√ = ""r 6""" List the name of film studio that have the most number of films.,SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1 "What is the COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket?","SELECT cospar_id FROM table_name_69 WHERE carrier_rocket = ""scout"" AND satellite = ""ariel 4""" "Please list the names of all the ingredients needed for the recipe ""Raspberry Chiffon Pie"" that do not need preprocessing.",SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T2.preparation IS NULL Return the names and ids of all products whose price is between 600 and 700.,"SELECT product_name, product_id FROM products WHERE product_price BETWEEN 600 AND 700" Away result of 1-2 has what season?,"SELECT season FROM table_name_95 WHERE away_result = ""1-2""" How many authors are there?,SELECT count(*) FROM authors What are the names and years of the movies that has the top 3 highest rating star?,"SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" What is the frequency when radio station branding is 106.3 energy fm naga?,"SELECT frequency FROM table_23915973_1 WHERE branding = ""106.3 Energy FM Naga""" What was the lowest V(mph) for a Saffir-Simpson of 4 in 2005?,SELECT MIN(v_mph_) FROM table_name_36 WHERE saffir_simpson_category = 4 AND year = 2005 What is the zip postcode where staff named Janessa Sawayn lived? | Do you mean the zip code of staff with first name Janessa and last name Sawayn lived? | Yes,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn""" What is employee Nancy Edwards's phone number?,"SELECT phone FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" What's the location when the record was 6-0-1?,"SELECT location FROM table_name_17 WHERE record = ""6-0-1""" Which courses are taught on days MTW?,"SELECT CName FROM COURSE WHERE Days = ""MTW""" "How many matched scored 3–6, 7–6(5), 6–3?","SELECT COUNT(surface) FROM table_1028356_3 WHERE score = ""3–6, 7–6(5), 6–3""" Which author is located in Mexico?,"SELECT authors FROM table_name_73 WHERE location = ""mexico""" What position did Joe Maddock play?,"SELECT position FROM table_14342367_11 WHERE player = ""Joe Maddock""" How many unique labels are there for albums?,SELECT count(DISTINCT label) FROM albums How many account types in this table?,SELECT count ( distinct acc_type ) FROM customer Calculate the average number of shipments that Zachery Hicks shipped in year 2017.,"SELECT CAST(SUM(CASE WHEN T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' THEN T1.ship_id ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017'" How many action games are there in total?,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Action' "What is the highest Position, when Pilot is ""Mario Kiessling""?","SELECT MAX(position) FROM table_name_66 WHERE pilot = ""mario kiessling""" What is the Apparent magnitude of a Declination (J2000) of °39′45″?,"SELECT MIN(apparent_magnitude) FROM table_name_67 WHERE declination___j2000__ = ""°39′45″""" Which city hosted the least number of no-result matches?,SELECT T4.City_Name FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id INNER JOIN Venue AS T3 ON T1.Venue_Id = T3.Venue_Id INNER JOIN City AS T4 ON T3.City_Id = T4.City_Id WHERE T2.Win_Type = 'NO Result' GROUP BY T4.City_Id ORDER BY COUNT(T2.Win_Type) ASC LIMIT 1 How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?,"SELECT silver FROM table_name_7 WHERE bronze > 0 AND total < 54 AND nation = ""spain""" What is the service of the network Set Max from India?,"SELECT service FROM table_name_22 WHERE origin_of_programming = ""india"" AND network = ""set max""" "Among the papers under DB classification, which paper has the highest number of words cited?",SELECT T1.paper_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'DB' GROUP BY T1.paper_id ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1 What dates does Alex Munter have 25% and the polling firm of Decima?,"SELECT polling_dates FROM table_name_41 WHERE alex_munter = ""25%"" AND polling_firm = ""decima""" Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.,"SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1" What is the to par of player peter senior?,"SELECT to_par FROM table_name_91 WHERE player = ""peter senior""" Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.,SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT avg(product_price) FROM products) What is the Political affiliation of deputy john dallat?,"SELECT political_affiliation FROM table_name_39 WHERE deputy = ""john dallat""" What is the id for HMS Gorgon? | Did you mean ship id? | yes,"SELECT Ship_ID FROM ship WHERE name = ""HMS Gorgon""" Show the names of editors and the theme of journals for which they serve on committees.,"SELECT T2.Name, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID" What Song has a Draw of less than 4 with a Percentage of 32.22%?,"SELECT song FROM table_name_72 WHERE draw < 4 AND percentage = ""32.22%""" What is the total price and the order priority of order number 33?,"SELECT o_totalprice, o_orderpriority FROM orders WHERE o_orderkey = 33" How many times did Neu-Vehlefanz occur when Schwante had 2.043?,"SELECT COUNT(Neu) - vehlefanz FROM table_11680175_1 WHERE schwante = ""2.043""" What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals?,SELECT MAX(bronze) FROM table_name_95 WHERE rank > 11 AND gold < 0 Find the first names of all instructors who have taught some course and the course description.,"SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code" List all open years when at least two shops are opened?,SELECT open_year FROM branch GROUP BY open_year HAVING count ( * ) > = 2 Which result has a Date of 2007-08-22?,"SELECT result FROM table_name_31 WHERE date = ""2007-08-22""" What club team plays at the champion window field?,"SELECT club FROM table_name_40 WHERE venue = ""champion window field""" How many different pairs of candidates were there for the district first elected in 1988?,SELECT COUNT(candidates) FROM table_19753079_12 WHERE first_elected = 1988 what is the school when the location is rochester?,"SELECT school FROM table_name_60 WHERE location = ""rochester""" List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.,"SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" What is the lowest population for the area that has a density of 36.7?,SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7 Location of the school with the nickname Mountaineers,"SELECT location FROM table_16432543_1 WHERE nickname = ""Mountaineers""" Name the total number of incumbent for first elected of 1944,SELECT COUNT(incumbent) FROM table_1341672_14 WHERE first_elected = 1944 What is the minimum sum?,SELECT MIN(total) FROM table_28068645_8 What is the total number of game played for players from USA?,SELECT COUNT(T2.GP) FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCountry = 'USA' How many eateries got highest inspection in 2013?,"SELECT COUNT(DISTINCT business_id) FROM inspections WHERE STRFTIME('%Y', `date`) = '2013' AND score = ( SELECT MAX(score) FROM inspections WHERE STRFTIME('%Y', `date`) = '2013' )" "Find the login name of the course author that teaches the course with name ""advanced database"".","SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""advanced database""" what is the play when the company is cyprus theatre organisation?,"SELECT play FROM table_name_61 WHERE company = ""cyprus theatre organisation""" Show the zip code of the county represented by Buchanan Vernon.,SELECT T2.zip_code FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.first_name = 'Buchanan' AND T1.last_name = 'Vernon' How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?,"SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE target_datum = ""Ireland 1965""" What are the names of the teachers and how many courses do they teach?,"SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name" "Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?","SELECT grid FROM table_name_61 WHERE laps > 8 AND manufacturer = ""honda"" AND time_retired = ""retirement""" What's the price (in USD) of the model whose L3 is 18 mb?,"SELECT price___usd__ FROM table_12740151_8 WHERE l3 = ""18 MB""" How many days delay for the complaint call from Mr. Brantley Julian Stanley on 2012/5/18?,"SELECT 365 * (strftime('%Y', T2.`Date sent to company`) - strftime('%Y', T2.`Date received`)) + 30 * (strftime('%M', T2.`Date sent to company`) - strftime('%M', T2.`Date received`)) + (strftime('%d', T2.`Date sent to company`) - strftime('%d', T2.`Date received`)) AS days FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2012-05-18' AND T1.sex = 'Male' AND T1.first = 'Brantley' AND T1.middle = 'Julian' AND T1.last = 'Stanley'" "Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a termination of mission of march 16, 1905?","SELECT appointed_by FROM table_name_15 WHERE title = ""envoy extraordinary and minister plenipotentiary"" AND termination_of_mission = ""march 16, 1905""" What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?,SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200) Who went to Geelong to play?,"SELECT away_team FROM table_name_61 WHERE home_team = ""geelong""" "What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?","SELECT theme FROM table_name_28 WHERE paper_type = ""tullis russell coatings"" AND date_of_issue = ""1 october 2008""" "What is the lowest MPG-US combined for a green rating of E, mpg in the UK- combined of under 42.2, manufacturer of Volkswagen, and an M6 transmission?","SELECT MIN(mpg_us_combined) FROM table_name_90 WHERE green_rating = ""e"" AND mpg_uk_combined < 42.2 AND manufacturer = ""volkswagen"" AND transmission = ""m6""" Which song was chosen during the audition week?,"SELECT song_choice FROM table_29756040_1 WHERE week__number = ""Audition""" What is their departure date and arrival date?,"SELECT departure_date , arrival_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" "What is the sum of Game, when High Points is ""D. McKey (24)"", and when Team is ""@ Dallas Mavericks""?","SELECT SUM(game) FROM table_name_35 WHERE high_points = ""d. mckey (24)"" AND team = ""@ dallas mavericks""" "When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?","SELECT points__percentage FROM table_1628607_5 WHERE foursomes_w_l_h = ""1–0–0 won w/ P. Creamer 3&2""" What were the Away team Kangaroos Crowd totals?,"SELECT SUM(crowd) FROM table_name_56 WHERE away_team = ""kangaroos""" Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.,SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f) > 60 What was the rank in the 2009 Hanoi Games?,"SELECT rank FROM table_name_75 WHERE games = ""2009 hanoi""" What is the description of the restaurant type Sandwich?,"SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = ""Sandwich"";" What is the region of the release of a CD with catalog 32xa-119?,"SELECT region FROM table_name_58 WHERE format = ""cd"" AND catalog = ""32xa-119""" What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?,SELECT AVG(start) FROM table_name_11 WHERE lost < 22 AND tries > 4 Which Country has a Score of 69-66=135?,SELECT country FROM table_name_76 WHERE score = 69 - 66 = 135 How many artists do we have?,SELECT count(*) FROM artist show the other log details,SELECT * FROM problem_log WHERE problem_category_code ! = 'Middleware' "Name the total number of total with silver of 6, bronze more than 5 and gold less than 4",SELECT COUNT(total) FROM table_name_57 WHERE silver = 6 AND bronze > 5 AND gold < 4 List the cast and the director of the movie with the id 1949144.,"SELECT T1.actorid, T2.directorid FROM movies2actors AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.movieid = 1949144" What are the student IDs and middle names of the students enrolled in at most two courses?,"SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2" Name the average Wins which has a Top 10 smaller than 0?,SELECT AVG(wins) FROM table_name_5 WHERE top_10 < 0 How many touchdowns were scored by William Cole?,"SELECT touchdowns FROM table_name_88 WHERE player = ""william cole""" "How was the native american, Wau-Bau-Ne-Me-Mee, executed?","SELECT method FROM table_name_19 WHERE race = ""native american"" AND name = ""wau-bau-ne-me-mee""" "Among the films with the longest duration, list any five title with their descriptions and special features.","SELECT title, description, special_features FROM film WHERE length = ( SELECT MAX(length) FROM film ) LIMIT 5" What is the latitude of the 0 diameter?,SELECT latitude FROM table_name_18 WHERE diameter__km_ = 0 what are the names of people who did not participate in the candidate election.,SELECT name FROM people WHERE NOT people_id IN (SELECT people_id FROM candidate) "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?","SELECT T2.created , T2.state , T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'" How large is the fleet size of the airline with the IATA code of 5j?,"SELECT COUNT(fleet_size) FROM table_15637071_1 WHERE iata = ""5J""" "What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?","SELECT T2.name , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT min(hours) FROM projects)" "Find the start and end dates of behavior incidents of students with last name ""Hansen""?","SELECT T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id where T2.last_name = ""Hansen""" Who was the actor in London in 2002 with the shipwreck of Leonty Ibayev?,"SELECT actor_in_london, _2002 FROM table_name_78 WHERE shipwreck = ""leonty ibayev""" Name the maximum number of disc for bill gereghty,"SELECT MAX(no_disc) FROM table_15430606_1 WHERE directed_by = ""Bill Gereghty""" List the names of gymnasts in ascending order by their heights.,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC Provide the name of the university with the highest number of male students.,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id ORDER BY T1.num_students * T1.pct_female_students / 100 - T1.num_students DESC LIMIT 1 List down the closing day of businesses located at SC State.,SELECT T3.day_id - T2.day_id FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.state = 'SC' How many Assists for the Player with 13 Games and a Rank less than 3?,SELECT SUM(assists) FROM table_name_29 WHERE games = 13 AND rank < 3 What home has February 10 as the date?,"SELECT home FROM table_name_67 WHERE date = ""february 10""" "What was the attendance for the game held on September 18, 1994, with a week less than 5?","SELECT attendance FROM table_name_25 WHERE week < 5 AND date = ""september 18, 1994""" What is the establishment's name with an inspection category of No Smoking Regulations?,SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T4.category = 'No Smoking Regulations' "Hmm, I want to know the number of customers each bank branch has. | Would you like both the branch name and the branch ID? | Yes please.","SELECT branch_ID, bname, no_of_customers from bank" Please provide the dates on which Elly Koss was immunized with the influenza seasonal injectable preservative-free vaccine.,SELECT T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Influenza seasonal injectable preservative free' AND T1.first = 'Elly' AND T1.last = 'Koss' What was the total number of weeks with a date of bye?,"SELECT COUNT(week) FROM table_name_14 WHERE date = ""bye""" How many women from Uruguay has become third runner-up in this pageant?,"SELECT MAX(3 AS rd_runner_up) FROM table_29942205_1 WHERE country_territory = ""Uruguay""" "Name the high points for toyota center 18,269?","SELECT high_points FROM table_11964263_13 WHERE location_attendance = ""Toyota Center 18,269""" "If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type?","SELECT engine_type FROM table_name_77 WHERE length = ""ft (m)"" AND year = ""2003"" AND numbers = ""6600-6684 (84 buses)""" List roles that have more than one employee. List the role description and number of employees.,"SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id) > 1;" "Where Result is nominated and Organization is 54th the television academy drama awards, what is the award?","SELECT award FROM table_name_80 WHERE result = ""nominated"" AND organization = ""54th the television academy drama awards""" how many height m ( ft ) with frequency mhz being 100.1,"SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE frequency_mhz = ""100.1""" List the full name and phone number of male customers from Fair Oaks who are subscribed to the email list.,"SELECT First, Last, PhoneNumber FROM customers WHERE Gender = 'M' AND City = 'Fair Oaks' AND SubscribedToEmailList = 'TRUE'" What was the party that was frist elected in 1919?,SELECT party FROM table_1342292_42 WHERE first_elected = 1919 What is the max week where kate and anton are eliminated?,"SELECT MAX(week) FROM table_12305325_4 WHERE eliminated = ""Kate and Anton""" How many customers does it have?,SELECT count ( * ) 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 "Which Score has an Attendance of 23 january 1999, and a Tie # of 6?","SELECT score FROM table_name_74 WHERE attendance = ""23 january 1999"" AND tie_no = ""6""" Return the id of the project that has the fewest corresponding documents.,SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1 on january 7 what is home?,"SELECT home FROM table_name_33 WHERE date = ""january 7""" Please list the device models of all the devices used by a user in the M23-26 user group.,SELECT T2.device_model FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'M23-26' "Find the average access counts of documents with functional area ""Acknowledgement"".","SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = ""Acknowledgement""" Find the titles of all the albums of the artist Aerosmith please?,"SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""Aerosmith""" Which Country has the Director Chen Kaige?,"SELECT country FROM table_name_79 WHERE director = ""chen kaige""" Show me all the policy types available? | Do you mean policy type code? | yes,SELECT distinct policy_type_code FROM available_policies How many routes go from the United States to Canada?,SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') Please list the phone numbers of all the suppliers in Germany.,SELECT T1.s_phone FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T2.n_name = 'Germany' How many branches are there in London?,SELECT count ( * ) FROM branch WHERE city = 'London' What is the name of the customer who has the most policies listed?,SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 What is the total number of laps associated with 8 points and a grid under 8?,"SELECT COUNT(laps) FROM table_name_9 WHERE points = ""8"" AND grid < 8" "For the business whose business certificate number is 304977, how many violations did it have on 2013/10/7?",SELECT COUNT(T1.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.business_certificate = '304977' AND T1.`date` = '2013-10-07' What is the role name and role description for employee called Ebba?,"SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = ""Ebba""" List all the coral islands along with its city and province.,"SELECT City, Province FROM locatedOn WHERE Island IN ( SELECT Name FROM island WHERE Type = 'coral' )" What percentage of people were opposed to the candidate based on the Time Poll poll that showed 6% of people were unsure?,"SELECT oppose FROM table_name_22 WHERE poll_source = ""time poll"" AND unsure = ""6%""" On which team was Robbie Earle the captain?,"SELECT team FROM table_name_5 WHERE captain = ""robbie earle""" "Which team plays in Goa, Salcette?","SELECT home_venue FROM table_name_63 WHERE state = ""goa"" AND city = ""salcette""" How many department names in this table?,SELECT count ( distinct DEPT_NAME ) FROM DEPARTMENT What is the current venue for the Miami Masters tournament?,"SELECT current_venue FROM table_14903081_1 WHERE tournament = ""Miami Masters""" What is the date with home team of Stockport County?,"SELECT date FROM table_name_35 WHERE home_team = ""stockport county""" What shows for 2005 when 2002 shows 0–1?,"SELECT 2005 FROM table_name_16 WHERE 2002 = ""0–1""" who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?,"SELECT driver FROM table_name_43 WHERE constructor = ""ferrari"" AND time_retired = ""+1:06.683""" What is the smallest number of medals a country with more than 14 silver has?,SELECT MIN(total) FROM table_name_78 WHERE silver > 14 Find the name of customer who has the highest amount of loans.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1 What are the staff ids and genders of all staffs whose job title is Department Manager?,"SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Department Manager""" can you show me a list of college name?,SELECT distinct cName FROM tryout What are the names of races held after 12:00:00 or before 09:00:00?,"SELECT name FROM races WHERE TIME > ""12:00:00"" OR TIME < ""09:00:00""" Who won Division West when Division North was won by Alumina?,"SELECT division_west FROM table_name_69 WHERE division_north = ""alumina""" "What is the height of the player, Larry Hughes?","SELECT height FROM table_name_71 WHERE player = ""larry hughes""" In which city do Dan friends reside,SELECT T1.city FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' Can you show me the number of rooms with capacity greater than 50 for each building?,"SELECT building, count ( room_number ) FROM classroom WHERE capacity > 50 group by building" Show the opening year in which at least two churches opened.,SELECT open_date FROM church GROUP BY open_date HAVING count(*) >= 2 How many PG adventure movies did Ron Clements direct?,SELECT COUNT(*) FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Ron Clements' AND T2.MPAA_rating = 'PG' AND T2.genre = 'Adventure' What event of this season had a time of 2:43?,"SELECT event FROM table_name_36 WHERE time = ""2:43""" What is the percentage of the methods' solutions that need to be compiled among the methods whose comments is XML format?,SELECT CAST(SUM(CASE WHEN T1.WasCompiled = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.CommentIsXml = 1 What is the length of the highway with junctions i-35 us 83 and named us 83 bus.?,"SELECT length FROM table_name_25 WHERE junctions = ""i-35 us 83"" AND route_name = ""us 83 bus.""" Can you tell me the Record that has the Visitor of vancouver?,"SELECT record FROM table_name_67 WHERE visitor = ""vancouver""" Return the different nominees of musicals that have an award that is not the Tony Award.,"SELECT DISTINCT Nominee FROM musical WHERE Award != ""Tony Award""" Find the first names of professors who are not playing Canoeing or Kayaking.,SELECT fname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' How many orders did Marcelia Goering place in 2021 that uses the Priority Shipping method?,"SELECT COUNT(*) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T1.first_name = 'Marcelia' AND T1.last_name = 'Goering' AND STRFTIME('%Y', T2.order_date) = '2021' AND T3.method_name = 'Priority'" "Which mean interview number had an average of more than 9.233, a swimsuit stat of more than 9.473, and an evening gown score of more than 9.671?",SELECT AVG(interview) FROM table_name_79 WHERE average > 9.233 AND swimsuit = 9.473 AND evening_gown > 9.671 which player had the status to the fourth round lost to tsvetana pironkova [32] Answers:,"SELECT player FROM table_29572583_20 WHERE status = ""Fourth round lost to Tsvetana Pironkova [32]""" "Among students with 1 month of absenses, how many of them are enlisted in the air force department?",SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T1.month = 1 AND T2.organ = 'air_force' how many runners-up with nation being india,"SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = ""India""" what is the total levels in 2007?,SELECT SUM(level) FROM table_name_7 WHERE season = 2007 "What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is ""4"", when FA Cup Apps is ""1"", and when League Cup Goals is greater than 0?","SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = ""1"" AND league_cup_goals > 0" When did the first payment happen?,SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1 How many data are on points for if the percentage is 94.29?,"SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = ""94.29""" "How many companies are in either ""Banking"" industry or ""Conglomerate"" industry?","SELECT count(*) FROM Companies WHERE Industry = ""Banking"" OR Industry = ""Conglomerate""" What activities do we have?,SELECT activity_name FROM Activity Please indicate the closing hours and business days of the businesses with the category named Doctors.,"SELECT DISTINCT T3.opening_time, T3.day_id FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T1.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T2.category_name = 'Doctors'" Name the average total for gold less than 1 and rank less than 5,SELECT AVG(total) FROM table_name_38 WHERE gold < 1 AND rank < 5 What is the title for david campbell mulford?,"SELECT title FROM table_name_90 WHERE name = ""david campbell mulford""" What's the PM for the standard with 12.3 g/kWh CO?,"SELECT pm__g_kwh_ FROM table_2780146_6 WHERE co__g_kwh_ = ""12.3""" How many schools are there in the department?,SELECT count(DISTINCT school_code) FROM department What is the rank (csa) for the percentage change (1990-2000) was a034 +8.71%?,"SELECT rank__csa_ FROM table_12720275_1 WHERE percent_change__1990_2000_ = ""A034 +8.71%""" What team did Niklas Eckerblom play in the 1997-1998 season?,SELECT T2.TEAM FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.SEASON = '1997-1998' AND T1.PlayerName = 'Niko Kapanen' "Among the films starring PENELOPE GUINESS, how many of them are in English?",SELECT COUNT(T3.film_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN language AS T4 ON T3.language_id = T4.language_id WHERE T4.name = 'English' AND T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' Which game had a record of 6-9-7?,"SELECT game FROM table_17360840_5 WHERE record = ""6-9-7""" "Which label released on February 18, 2009?","SELECT label FROM table_name_77 WHERE date = ""february 18, 2009""" What was the score of the golfer from the united states who had a To par of e?,"SELECT SUM(score) FROM table_name_96 WHERE to_par = ""e"" AND country = ""united states""" Find the names of channels that are not owned by CCTV.,SELECT name FROM channel WHERE OWNER <> 'CCTV' What opponent has final as the round?,"SELECT opponent FROM table_name_34 WHERE round = ""final""" How many restaurants failed the inspection in April 2010?,"SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-04' AND T1.facility_type = 'Restaurant' AND T2.results = 'Fail'" State the transaction date whereby DigixDAO was transacted at the hightest price.,SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'DigixDAO' ORDER BY T2.price DESC LIMIT 1 What was the record after the fight that lasted 8:17?,"SELECT record FROM table_name_35 WHERE time = ""8:17""" "What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals?","SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = ""5"" AND bronze > 0" What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?,SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000 "What is Record, when Method is ""Technical Submission (Rear Naked Choke)""?","SELECT record FROM table_name_4 WHERE method = ""technical submission (rear naked choke)""" "what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008?","SELECT date_of_vacancy FROM table_name_4 WHERE manner_of_departure = ""contract terminated"" AND position_in_table = ""23rd"" AND date_of_appointment = ""31 december 2008""" What is the lowest and highest rating star?,"SELECT max ( stars ) , min ( stars ) FROM Rating" "Among the suppliers from Middle East region, how many suppliers were in debt?",SELECT COUNT(T3.s_name) FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey INNER JOIN supplier AS T3 ON T2.n_nationkey = T3.s_nationkey WHERE T3.s_acctbal < 0 AND T1.r_name = 'MIDDLE EAST' How many patients are allergic to eggs?,SELECT COUNT(PATIENT) FROM allergies WHERE DESCRIPTION = 'Allergy to eggs' What document status codes do we have?,SELECT document_status_code FROM Ref_Document_Status; "Find all the catalog publishers whose name contains ""Murray""","SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" "What are the open and close dates of all the policies used by the customer who have ""Diana"" in part of their names?","SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE ""%Diana%""" "What is Opponent In The Final, when Date is before 1991, and when Outcome is ""Runner-Up""?","SELECT opponent_in_the_final FROM table_name_30 WHERE date < 1991 AND outcome = ""runner-up""" List the teams of the players with the top 5 largest ages.,SELECT Team FROM player ORDER BY Age DESC LIMIT 5; What is the MPAA rating and title of the movie starred by Leonardo DiCaprio with highest budget?,"SELECT T1.`MPAA Rating`, T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Leonardo DiCaprio' ORDER BY T1.Budget DESC LIMIT 1" Name the three for 16 december 1676,"SELECT three FROM table_name_83 WHERE date = ""16 december 1676""" To which country does the address '1386 Nakhon Sawan Boulevard' belong?,SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id WHERE T3.address = '1386 Nakhon Sawan Boulevard' What was the year of the competition in which Odd Grenland was the runner-up?,"SELECT years FROM table_name_57 WHERE runners_up = ""odd grenland""" "When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman?","SELECT opponents FROM table_name_10 WHERE surface = ""grass"" AND year > 1993 AND partner = ""jonas björkman""" What is the Location with a county of 30 Hancock?,"SELECT location FROM table_name_28 WHERE county = ""30 hancock""" Provide the age of the tallest competitor.,SELECT T2.age FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T1.height DESC LIMIT 1 Can you list the apartment type code for each entry?,SELECT apt_type_code FROM Apartments How many people were in the crowd at Victoria Park?,"SELECT COUNT(crowd) FROM table_name_97 WHERE venue = ""victoria park""" Who is the president of that club?,"SELECT T3.FName, T3.LName FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t2.Position = ""President""" When was the order placed whose shipment tracking number is 3452? Give me the date.,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452 Name the transfer fee with a transfer window of summer for schollen,"SELECT transfer_fee FROM table_name_88 WHERE transfer_window = ""summer"" AND name = ""schollen""" "If Arthur Albert is the director, what is the maximum series number?","SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = ""Arthur Albert""" Find all the stores in the district with the most population.,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1) Show me all the wine names that have a price higher than 200.,SELECT name FROM WINE WHERE price>200 What is listed for the Attendance that has a Tie no of 5?,"SELECT attendance FROM table_name_97 WHERE tie_no = ""5""" What was the date of the game with a result of bye before week 12?,"SELECT date FROM table_name_3 WHERE week < 12 AND result = ""bye""" Which physicians have never taken any appointment? Find their names.,SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID "Calculate the number of female patients who accepted ""HPV quadrivalent"" immunization.",SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'HPV quadrivalent' AND T1.gender = 'F' What cities in the United States have more than 4 airports?,SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count ( * ) > 4 Can you tell me the project details of the lowest numbered project id?,SELECT project_details FROM Projects order by project_id limit 1 Who was the winner when the total attendance was 16597?,SELECT winner FROM table_1672976_5 WHERE attendance = 16597 "For the genes that are located in the plasma membrane, please list their number of chromosomes.",SELECT T1.Chromosome FROM Genes AS T1 INNER JOIN Classification AS T2 ON T1.GeneID = T2.GeneID WHERE T2.Localization = 'plasma membrane' "List the order id, customer id for orders in Cancelled status, ordered by their order dates.","SELECT order_id , customer_id FROM customer_orders WHERE order_status_code = ""Cancelled"" ORDER BY order_date" "How many wins for team mv agusta, over 10 points, and after 1957?","SELECT SUM(wins) FROM table_name_59 WHERE team = ""mv agusta"" AND points > 10 AND year > 1957" Find the gdp of host city 2.,SELECT gdp FROM city where city_id = 2 How many rings points does he have?,SELECT Rings_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID where t2.Name = 'Paul Hamm' What is the sum of Attendance when macclesfield town was the way team?,"SELECT SUM(attendance) FROM table_name_22 WHERE away_team = ""macclesfield town""" Name the place for tim clark,"SELECT place FROM table_name_65 WHERE player = ""tim clark""" Provide the name of the song from the movie directed by Ben Sharpsteen.,SELECT T1.song FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Ben Sharpsteen' Show me the name of the shop that has the most devices in stock?,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT ( * ) DESC LIMIT 1 Name the home when the visitor was dallas on february 2,"SELECT home FROM table_name_12 WHERE visitor = ""dallas"" AND date = ""february 2""" Name the land for ada,"SELECT COUNT(land___sqmi__) FROM table_18600760_1 WHERE township = ""Ada""" hi. How many routes are there?,SELECT count ( * ) FROM routes AS T1 JOIN airports AS T2 Find the number of employees whose title is IT Staff from each city?,"SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city" "Among the crimes in the ward with the most population, how many of them are cases of domestic violence?",SELECT COUNT(T1.ward_no) AS num FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.domestic = 'TRUE' ORDER BY T1.Population = ( SELECT Population FROM Ward ORDER BY Population DESC LIMIT 1 ) How many states are in the central time zone? Write their full names.,SELECT SUM(CASE WHEN T1.time_zone = 'Central' THEN 1 ELSE 0 END) AS count FROM zip_data AS T1 INNER JOIN state AS T2 ON T2.abbreviation = T1.state WHERE T1.time_zone = 'Central' For how many times has SC Ganguly played as team captain in a match?,SELECT SUM(CASE WHEN T3.Role_Desc = 'Captain' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T1.Player_Name = 'SC Ganguly' "Which Visitor has a Home of vancouver, and a Decision of cloutier?","SELECT visitor FROM table_name_30 WHERE home = ""vancouver"" AND decision = ""cloutier""" how many tries against with lost being 11,"SELECT COUNT(tries_against) FROM table_14058433_4 WHERE lost = ""11""" What are the entrepreneurs names associated with those weights? Thanks.,"SELECT T2.Name, T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID" Describe the names and credits of the least difficult courses.,"SELECT name, credit FROM course WHERE diff = ( SELECT MIN(diff) FROM course )" What are the descriptions of the service types with product price above 100?,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 What department id is Steven King in?,select department_ID from employees where FIRST_NAME = 'Steven' and LAST_NAME = 'King' How many cities are there in Monterey?,SELECT COUNT(DISTINCT city) FROM geographic WHERE region = 'monterey' What is the Date of the Event in Punta del Este?,"SELECT date FROM table_name_68 WHERE city = ""punta del este""" What was the result of the los angeles rams game?,"SELECT result FROM table_name_91 WHERE opponent = ""los angeles rams""" What is the Name of draft Pick #10?,SELECT name FROM table_name_19 WHERE pick__number = 10 Name the total number of population 2011 for perlez,"SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = ""Perlez""" "List the ID, city, state and region for the store type which is fewer between borough and CDP.","SELECT DISTINCT T2.StoreID, T2.`City Name`, T1.State, T2.Type FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T2.Type = 'Borough' OR T2.Type = 'CDP'" "Among the coaches who was never a player, who has highest percentage of game winning? Provide the given name of the coach and team he coached.","SELECT T2.nameGiven, T3.name FROM Coaches AS T1 INNER JOIN Master AS T2 ON T2.coachID = T1.coachID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T1.coachID IS NOT NULL ORDER BY CAST(T1.w AS REAL) / T1.g DESC LIMIT 1" What are the names of the products that had been shipped in March 2013 at central superstore?,"SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE strftime('%Y-%m', T1.`Ship Date`) = '2013-03'" What are the names of all the storms that affected at least two regions?,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count ( * ) > = 2 What was the winning score for runnerup Greg Norman,"SELECT winning_score FROM table_name_5 WHERE runner_s__up = ""greg norman""" Which product was ordered the most in 2018?,SELECT T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T1.OrderDate LIKE '%/%/18' GROUP BY T1._ProductID ORDER BY COUNT(T1._ProductID) DESC LIMIT 1 "Give the name of the striker in the match no. 419169, over no.3, ball no.2, inning no.2.",SELECT T2.Player_Name FROM Ball_by_Ball AS T1 INNER JOIN Player AS T2 ON T1.Striker = T2.Player_Id WHERE T1.Match_Id = 419169 AND T1.Over_Id = 3 AND T1.Ball_Id = 2 AND T1.Innings_No = 2 What is the name of the team with the highest home lost rate?,SELECT name FROM teams ORDER BY CAST(homeWon AS REAL) / (homeWon + homeLost) DESC LIMIT 1 What is the home team that had an away team of lincoln city?,"SELECT home_team FROM table_name_21 WHERE away_team = ""lincoln city""" List all the ingredients for Strawberry Sorbet.,SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Strawberry Sorbet' Name the students of the Advanced Database Systems course with the highest satisfaction.,"SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Advanced Database Systems' ORDER BY T2.sat DESC LIMIT 1" When philippe gilbert is the winner who is the points classification?,"SELECT points_classification FROM table_18733814_2 WHERE winner = ""Philippe Gilbert""" "What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic?","SELECT playoffs FROM table_name_52 WHERE open_cup = ""did not qualify"" AND regular_season = ""3rd, south atlantic""" What is the Rank of the couple with less than 408.8 Points and Placings of 160?,SELECT rank FROM table_name_77 WHERE points < 408.8 AND placings = 160 What is the location and what was the attendance on those days when the score was 3-5-1?,"SELECT location_attendance FROM table_27537870_3 WHERE record = ""3-5-1""" How many products have a price higher than the average?,SELECT count ( * ) FROM products WHERE product_price > ( SELECT avg ( product_price ) FROM products ) How many respondents of the mental health survey were diagnosed with 'Substance Use Disorder'?,SELECT COUNT(AnswerText) FROM Answer WHERE AnswerText LIKE 'Substance Use Disorder' In what season was the pct % 0.552? ,"SELECT season FROM table_2110959_1 WHERE pct__percentage = ""0.552""" List out the table name and currency unit of countries using series code as FP.CPI.TOTL,"SELECT T1.TableName, T1.CurrencyUnit FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.SeriesCode = 'FP.CPI.TOTL'" List the teams of the players with the top 5 largest ages.,SELECT Team FROM player ORDER BY Age DESC LIMIT 5 Which name had more than 5 rounds and was a defensive end?,"SELECT name FROM table_name_51 WHERE round > 5 AND position = ""defensive end""" Which actor played the role of Joker in the movie Batman?,SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Batman' AND T2.`Character Name` = 'Joker' Show the names of companies and of employees.,"SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID" "What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name.","SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name" How many male employees have the job position of sales person?,SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'M' AND T2.PersonType = 'SP' Name the movie with the highest rental revenue among the shortest films.,SELECT title FROM film WHERE length = ( SELECT MIN(length) FROM film ) ORDER BY rental_duration * rental_rate DESC LIMIT 1 "In male customers ages from 30 to 50, how many of them has an income ranges from 2000 to 2300?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Male' AND T1.age >= 30 AND T1.age <= 50 AND T2.INCOME_K >= 2000 AND T2.INCOME_K <= 2300 "What is the total number of Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574?",SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574 Find average account balance?,SELECT avg ( acc_bal ) FROM customer "What is the name of the podcast in which a commentor left a comment with the title 'Long time listener, calling it quits?' Include the URL of the podcast as well.","SELECT podcast_id, itunes_url FROM podcasts WHERE podcast_id = ( SELECT podcast_id FROM reviews WHERE title = 'Long time listener, calling it quits' )" What are the distinct types of the companies that have operated any flights with velocity less than 200?,SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T2.velocity < 200 "what's the kerry # with county being ness county, kansas","SELECT kerry__number FROM table_13606924_1 WHERE county = ""Ness county, Kansas""" What is the name of the song that was released in the most recent year?,"SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1" how many were from the vice president?,"SELECT sum ( T2.Vice_President_VOTE ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" What is the capital of Australia? Is the capital a headquarter to any organization? Name the organization(s).,"SELECT T2.Capital, T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.City = T2.Capital WHERE T2.Name = 'Australia'" Which nation finished with a time of 47.049?,SELECT nation FROM table_name_56 WHERE time__sec_ = 47.049 How many years have an Original title of иваново детство?,"SELECT COUNT(year) FROM table_name_87 WHERE original_title = ""иваново детство""" Who wrote episode number 109 in the series?,SELECT written_by FROM table_26565936_2 WHERE no_in_series = 109 What train number is heading to amritsar?,"SELECT train_no FROM table_12095519_1 WHERE destination = ""Amritsar""" "What is Time, when Ground is Waverley Park, and when Away Team is Footscray?","SELECT time FROM table_name_69 WHERE ground = ""waverley park"" AND away_team = ""footscray""" Which National League is in 1969-70 season?,"SELECT national_league FROM table_name_7 WHERE season = ""1969-70""" How many players scored the most points when the opposing team was New Orleans/Oklahoma City?,"SELECT COUNT(high_points) FROM table_13762472_3 WHERE team = ""New Orleans/Oklahoma City""" What is the document id with 1 to 2 paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2 "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.","SELECT document_id , count(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id;" Which Issue Date(s) has an Artist of men at work?,"SELECT issue_date_s_ FROM table_name_32 WHERE artist = ""men at work""" Who wrote the episodes that had a viewership of 7.14?,"SELECT written_by FROM table_24910737_1 WHERE us_viewers__millions_ = ""7.14""" List the flight date of flights with air carrier described as Profit Airlines Inc.: XBH which have an actual elapsed time below 100.,SELECT T2.FL_DATE FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.ACTUAL_ELAPSED_TIME < 100 AND T1.Description = 'Profit Airlines Inc.: XBH' What is the highest number of laps for chris amon?,"SELECT MAX(laps) FROM table_name_51 WHERE driver = ""chris amon""" "What was the constructor when the laps were larger than 54, and the time/retired was +1 lap on a grid of 20?","SELECT constructor FROM table_name_28 WHERE laps > 54 AND time_retired = ""+1 lap"" AND grid = 20" Who is the away team when the home team was Fitzroy?,"SELECT away_team FROM table_name_55 WHERE home_team = ""fitzroy""" Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?,SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000 What are the names of all the games that have been played for at least 1000 hours?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000 What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?,"SELECT 2012 FROM table_name_65 WHERE 2013 = ""2r"" AND tournament = ""wimbledon""" How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?,SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859 What is the result of Waldemar 27´s freestyle test?,"SELECT COUNT(result) FROM table_name_99 WHERE horse = ""waldemar 27"" AND event = ""freestyle test""" What is the match number where the result is ICL World by 8 wickets?,"SELECT match_number FROM table_17103566_1 WHERE result = ""ICL World by 8 wickets""" Which line has the lowest amount of points and a year of 1954?,SELECT MIN(points) FROM table_name_59 WHERE year = 1954 What was the game number that took place on April 27?,"SELECT game FROM table_name_50 WHERE date = ""april 27""" What is the highest season for a bowl game of the 1993 Independence Bowl?,"SELECT MAX(season) FROM table_15647838_3 WHERE bowl_game = ""1993 Independence Bowl""" What school took 4th place in 2002?,SELECT 4 AS th_place FROM table_11577996_1 WHERE year = 2002 Name the high points for l 110–112 (ot),"SELECT high_points FROM table_27733258_6 WHERE score = ""L 110–112 (OT)""" What was the score of the team that played against Fitzroy?,"SELECT home_team AS score FROM table_name_97 WHERE away_team = ""fitzroy""" where is Sergio García born,"SELECT born_state from head where name = ""Sergio García""" Show the account id and name with at least 4 transactions.,"SELECT T1.account_id , T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING count(*) >= 4" Show the outcome code of mailshots along with the number of mailshots in each outcome code.,"SELECT outcome_code , count(*) FROM mailshot_customers GROUP BY outcome_code" What is the award for the Star Awards earlier than 2005 and the result is won?,"SELECT award FROM table_name_31 WHERE organisation = ""star awards"" AND year < 2005 AND result = ""won""" Find the names of the top 10 airlines that operate the most number of routes.,SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10 what is the minimum total,SELECT MIN(total) FROM table_1108394_43 what builder launched 20 jun 1953?,"SELECT builder FROM table_name_75 WHERE launched = ""20 jun 1953""" How many different winners both participated in the WTA Championships and were left handed?,SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L' "What are the books published by ""Harper Collins""?",SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Harper Collins' "what is the reversal symmetry when non-dictatorship is yes, consistency & participation is no, and clone independence is yes?","SELECT reversal_symmetry FROM table_name_1 WHERE non_dictatorship = ""yes"" AND consistency_ & _participation = ""no"" AND clone_independence = ""yes""" "Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171?","SELECT right_ascension___j2000__ FROM table_name_98 WHERE constellation = ""mensa"" AND ngc_number > 2171" What is first names of the top 5 staff who have handled the greatest number of complaints?,SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY COUNT(*) LIMIT 5 Find the names of the artists who are from Bangladesh and have never received rating higher than 7.,"SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7" What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?,SELECT MIN(rank__night_) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 1.3 / 4 What are their weights?,SELECT distinct T1.weight FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5 Name the number of new adherents per year for confucianism,"SELECT COUNT(new_adherents_per_year) FROM table_28137918_5 WHERE religion = ""Confucianism""" In what year did the Democratic incumbent that was re-elected first take office?,"SELECT first_elected FROM table_name_52 WHERE results = ""re-elected"" AND party = ""democratic""" Name the first match for 11 may 2008,"SELECT first_match FROM table_name_84 WHERE last_match = ""11 may 2008""" Who directed the episode with the production code 176252?,SELECT directed_by FROM table_14889988_1 WHERE production_code = 176252 What was the home team score for the game where Hawthorn is the home team?,"SELECT home_team AS score FROM table_name_83 WHERE home_team = ""hawthorn""" Tell me the winner of the comfort classic,"SELECT winner FROM table_name_97 WHERE tournament = ""comfort classic""" "which operating system has a connection of Broadband, Satellite, Wireless, Fiber, DSL?","SELECT Operating_system FROM Web_client_accelerator WHERE Connection = ""Broadband, Satellite, Wireless, Fiber, DSL""" When altos hornos zapla is the home (1st leg) what is overall amount of 1st leg?,"SELECT COUNT(1 AS st_leg) FROM table_14219514_2 WHERE home__1st_leg_ = ""Altos Hornos Zapla""" "Give the business ID and risk category of the business owned by San Francisco Madeleine, Inc.","SELECT DISTINCT T2.business_id, T1.risk_category FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_name = 'San Francisco Madeleine, Inc.'" "What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?","SELECT MAX(league_goals) FROM table_name_46 WHERE name = ""barry endean"" AND fa_cup_apps > 0" What are the average points for an engine of ford zetec-r v8?,"SELECT AVG(points) FROM table_name_63 WHERE engine = ""ford zetec-r v8""" What is the outcome of the match with opponent Jade Curtis?,"SELECT outcome FROM table_name_55 WHERE opponent = ""jade curtis""" State the number of students who filed for bankruptcy and have payment due.,SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN no_payment_due AS T2 ON T2.name = T1.name WHERE T2.bool = 'pos' Please also show me names of songs for which the format is mp3 and resolution is above 1000. | Do you mean the names of songs for which the format is mp3? | Yes,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3""" Show the transaction type and the number of transactions.,"SELECT transaction_type, COUNT(*) FROM Financial_transactions GROUP BY transaction_type" From which year is it?,SELECT year FROM WINE order by price desc limit 1 Who earned the save in the game against the Sinon Bulls when Jeriome Robertson took the loss?,"SELECT save FROM table_name_32 WHERE opponent = ""sinon bulls"" AND loss = ""jeriome robertson""" "What is the 2004 value with A in 2005, A in 2008, and lq in 2009?","SELECT 2004 FROM table_name_55 WHERE 2005 = ""a"" AND 2008 = ""a"" AND 2009 = ""lq""" What was the series number of the episode directed by Rob Bailey?,"SELECT MAX(series__number) FROM table_14346689_1 WHERE directed_by = ""Rob Bailey""" What notes does the film Touch & go have?,"SELECT notes FROM table_name_3 WHERE film = ""touch & go""" Provide the responsible person and his/her email address of Chicago Lawn.,"SELECT commander, email FROM District WHERE district_name = 'Chicago Lawn'" How many tweets in this table?,select count ( * ) from tweets What gender is more prone to 'dander (animal) allergy'?,SELECT T1.gender FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Dander (animal) allergy' GROUP BY T1.gender ORDER BY COUNT(T1.gender) DESC LIMIT 1 What College/Junior/Club Team (League) from Canada has a round smaller than 3?,"SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = ""canada"" AND round < 3" What is the owner of the channel that has the highest rating ratio?,SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1 How many quantities of Advantus plastic paper clips were ordered overall?,SELECT SUM(T1.Quantity) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Advantus Plastic Paper Clips' Which male is paired with dido in 2004?,"SELECT male FROM table_name_79 WHERE year < 2004 AND female = ""dido""" "Who was the opponent in the September 20, 2010 match?","SELECT opponent FROM table_name_49 WHERE date = ""september 20, 2010""" What is the height of the player who currently plays for Alta Gestión Fuenlabrada?,"SELECT height FROM table_name_59 WHERE current_club = ""alta gestión fuenlabrada""" The Last Metro refers to which Original Title?,"SELECT original_title FROM table_name_91 WHERE title_in_english = ""the last metro""" Find the id and address of the shops whose score is below the average score.,"SELECT shop_id , address FROM shop WHERE score < (SELECT avg(score) FROM shop)" What opponent has balboa stadium as the opponent?,"SELECT opponent FROM table_name_4 WHERE stadium = ""balboa stadium""" What is the average weeks on top of volumes associated with the artist aged 25 or younger?,SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.,"SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Meaghan"" AND T2.customer_last_name = ""Keeling""" "What is Player, when Pick is ""26""?",SELECT player FROM table_name_48 WHERE pick = 26 "Which 2009 has a 2012 larger than 9,265?",SELECT MAX(2009) FROM table_name_61 WHERE 2012 > 9 OFFSET 265 "Name the attendance for september 19, 1976","SELECT MIN(attendance) FROM table_14945881_1 WHERE date = ""September 19, 1976""" Show the range that has the most number of mountains.,SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1 What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?,"SELECT date FROM table_name_51 WHERE competition = ""emerging nations tournament"" AND result = ""scotland 34-9 russia""" How many times a year is the Brighton Marathon held?,"SELECT COUNT(month_held) FROM table_26166836_3 WHERE distance = ""Marathon"" AND location = ""Brighton""" Name the played with points against of points against,"SELECT played FROM table_name_95 WHERE points_against = ""points against""" What is the phone of Jerry Prince?,"SELECT phone FROM Faculty WHERE Fname = ""Jerry"" AND Lname = ""Prince""" Provide the zip codes and the congress representatives' names of the postal points which are affiliated with Readers Digest.,"SELECT T1.zip_code, T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.organization = 'Readers Digest'" Show the names of players and names of their coaches in descending order of the votes of players.,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC" List roles that have more than one employee. List the role description and number of employees.,"SELECT Roles.role_description , count(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING count(Employees.employee_id) > 1;" Show the maximum price of wins from the appelations in central Coast area and produced before thebyear of 2005?,"SELECT max ( T2.Price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""Central Coast"" AND T2.year < 2005" How many incumbents represent district California 34?,"SELECT COUNT(incumbent) FROM table_1341568_6 WHERE district = ""California 34""" How many customers in state of CA?,"SELECT COUNT(*) FROM customers WHERE state = ""CA""" What is the name of the wrestler with the fewest days held?,SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1 What's the lastest household survey in Angola and when did it take place?,"SELECT LatestHouseholdSurvey, PppSurveyYear FROM Country WHERE ShortName = 'Angola'" How many male stuents do not have payment due?,SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg' How many mixed doubles were won in 1996?,SELECT COUNT(mixed_doubles) FROM table_15001957_1 WHERE year = 1996 What is the largest pick number of the new york jets?,"SELECT MAX(overall_pick__number) FROM table_12165135_1 WHERE afl_team = ""New York Jets""" Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.,SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000; Show me the location ID of the Tourist Attraction ID 2113?,SELECT Location_ID FROM Tourist_Attractions WHERE Tourist_Attraction_ID = '2113' Give me the average prices of wines that are produced by appelations in Sonoma County.,"SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" Who scored the most point on December 13?,"SELECT high_points FROM table_name_28 WHERE date = ""december 13""" To which categories do the podcasts of the reviewer whose id is EFB34EAC8E9397C belong?,SELECT DISTINCT T1.category FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.author_id = 'EFB34EAC8E9397C' How many tourists didn't visit any tourist attractions?,SELECT count ( * ) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ) What is the average rank for team cle when the BB/SO is 10.89?,"SELECT AVG(rank) FROM table_name_97 WHERE team = ""cle"" AND bb_so = 10.89" Find the first name of students who are living in the Smith Hall.,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' What was the Comp on 2007-08-06?,"SELECT comp FROM table_name_16 WHERE date = ""2007-08-06""" Which Theme has a Order # of 9?,"SELECT theme FROM table_name_5 WHERE order__number = ""9""" What is the city of M Chinnaswamy Stadium?,SELECT T1.City_Name FROM City AS T1 INNER JOIN Venue AS T2 ON T2.City_Id = T1.City_Id WHERE T2.Venue_Name = 'M Chinnaswamy Stadium' november 3 where march 27-29 is 149?,"SELECT november_3 FROM table_25252080_3 WHERE march_27_29 = ""149""" Please provide the ID of the user with the most followers on the list.,SELECT user_id FROM lists ORDER BY list_followers DESC LIMIT 1 What is the Japanese name of the station with a number 3?,SELECT japanese FROM table_name_98 WHERE number = 3 what is the score for game 4?,SELECT score FROM table_name_49 WHERE game = 4 What is the English title for the official number 22 episode?,SELECT english_title FROM table_16425614_3 WHERE official__number = 22 What Date has a Winning driver of ugo sivocci?,"SELECT date FROM table_name_61 WHERE winning_driver = ""ugo sivocci""" "What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?",SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 0 How many books were published by Brava in 2006?,"SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Brava' AND STRFTIME('%Y', T1.publication_date) = '2006'" What is the average ranking episodes that are nominated for an award?,SELECT SUM(T1.rating) / COUNT(T1.episode) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id What is the title of the highest-budget film to date? Please include the revenue and name the country.,"SELECT T1.title, T1.revenue, T3.COUNTry_name FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id ORDER BY T1.budget DESC LIMIT 1" How many kinds of roles are there for the staff?,SELECT count(DISTINCT role_code) FROM Project_Staff What are the roles with three or more employees? Give me the role codes.,SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3 Which shop has the lowest number of staff? | The shop with ID 1 has the lowest number of staff. | What is the average number of workers for all the shops?,SELECT avg ( num_of_staff ) FROM shop Find the name and population of district with population between 200000 and 2000000,"SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000" "Which Constructor has a Grid smaller than 24, more than 77 laps, and a Driver of jean-pierre beltoise?","SELECT constructor FROM table_name_53 WHERE grid < 24 AND laps > 77 AND driver = ""jean-pierre beltoise""" Which employee has the highest salary? Please give his or her full name.,"SELECT FirstName, LastName FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees )" Which member has an Electorate of kennedy?,"SELECT member FROM table_name_50 WHERE electorate = ""kennedy""" "Okay, so who has a friend in Austin ?",SELECT name FROM PersonFriend WHERE friend IN ( SELECT name FROM person WHERE city = 'austin' ) What venue did mahela jayawardene and thilan samaraweera play at?,"SELECT venue FROM table_name_42 WHERE batting_partners = ""mahela jayawardene and thilan samaraweera""" "What team has over 1 tournament title, 0 in the regular season, and 2 total?","SELECT team FROM table_name_47 WHERE tournament > 1 AND regular_season = ""0"" AND total = 2" What is the %2006 when the %2001 was more than 62.5?,SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5 Count the number of students from UCSD enlisted in the peace corps.,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.`name` = T2.`name` WHERE T2.school = 'ucsd' AND T1.organ = 'peace_corps' What documents types have more than 2 corresponding documents?,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count ( * ) > 2 "What is the lowest First Elected, when District is ""Massachusetts 10""?","SELECT MIN(first_elected) FROM table_name_40 WHERE district = ""massachusetts 10""" "Hmm, can you add the production years?","SELECT Name,Year FROM WINE WHERE Winery = ""Brander""" Name the team for june 20,"SELECT team FROM table_2139390_2 WHERE date = ""June 20""" Count the number of students the teacher LORIA ONDERSMA teaches.,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""LORIA"" AND T2.lastname = ""ONDERSMA""" what is the highest length of coaster,SELECT max ( Length ) FROM roller_coaster How many neighborhoods can be found in the Forest Glen community area?,SELECT SUM(CASE WHEN T2.community_area_name = 'Forest Glen' THEN 1 ELSE 0 END) FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no "Which federal republic country in Europe has the most provinces, and what proportion of GDP is devoted to services? Calculate the population density as well.","SELECT T1.Country, T2.Service , SUM(T1.Population) / SUM(T1.Area) FROM province AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Country IN ( SELECT Country FROM encompasses WHERE Continent = 'Europe' ) GROUP BY T1.Country, T2.Service ORDER BY COUNT(T1.Name) DESC LIMIT 1" Name the date for the score of w 83-69,"SELECT date FROM table_17104539_9 WHERE score = ""W 83-69""" How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.,"SELECT T1.staff_name , count(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name" What is the first name and last name of the youngest student whose GPA is above 3?,"SELECT stu_fname , stu_lname FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1" Who were the Djurgarden scorers when the venue was Idrottsparken?,"SELECT djurgården_scorers FROM table_name_21 WHERE venue = ""idrottsparken""" How many league cups have an FA Cup less than 0?,SELECT COUNT(league_cup) FROM table_name_70 WHERE fa_cup < 0 Find the count of universities whose campus fee is greater than the average campus fee.,SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees) How many goals were scored when 158 points were collected?,"SELECT goals FROM table_name_45 WHERE points = ""158""" Tell me the block A for antonio thomas of kondo (13:24),"SELECT block_a FROM table_name_85 WHERE antonio_thomas = ""kondo (13:24)""" "What is the total number of products that are in orders with status ""Delivered""?","SELECT sum ( t2.order_quantity ) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = ""Delivered""" Which artists have released singles with the tag 1970s?,SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'single' AND T2.tag LIKE '1970s' "Give the code of the airport described as Driftwood Bay, AK: Driftwood Bay Airport.","SELECT Code FROM Airports WHERE Description = 'Driftwood Bay, AK: Driftwood Bay Airport'" Which start has 1956 as the year?,"SELECT start FROM table_name_96 WHERE year = ""1956""" Give the number of samples in image no.2377985 whose attribute is electrical.,SELECT SUM(CASE WHEN T2.ATT_CLASS = 'white' THEN 1 ELSE 0 END) FROM IMG_OBJ_ATT AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 2347915 Which country has the biggest percentage of the albanian ethnic group?,SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Albanian' ORDER BY T2.Percentage DESC LIMIT 1 What is the national share of the country whose area is 148064 km^2?,SELECT national_share___percentage_ FROM table_171666_1 WHERE area__km²_ = 148064 What is the home team score when the away team is Collingwood?,"SELECT home_team AS score FROM table_name_96 WHERE away_team = ""collingwood""" What engine with more than 2 points has Brabham bt58 as Chassis?,"SELECT engine FROM table_name_66 WHERE chassis = ""brabham bt58"" AND points > 2" What are the document id of all the location code? | Do you mean you wanna see the whole document ids or see the document id and its location codes at the same time. | Whole document ids,SELECT distinct document_id FROM Document_locations Thanks. What is the visit details of the visitor whose detail is Vincent?,"SELECT T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" List the name of the rates that apply to the provinces that are in the territory that obtained the greatest increase in sales with respect to the previous year.,SELECT T2.Name FROM SalesTerritory AS T1 INNER JOIN StateProvince AS T2 ON T1.CountryRegionCode = T2.CountryRegionCode INNER JOIN SalesTaxRate AS T3 ON T2.StateProvinceID = T3.StateProvinceID ORDER BY (T1.SalesYTD - T1.SalesLastYear) / T1.SalesLastYear DESC LIMIT 1 Which year has the most degrees conferred?,SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1 How many penalties are there when Eric Vigeanel is the rider?,"SELECT COUNT(total_penalties) FROM table_18666752_3 WHERE rider = ""Eric Vigeanel""" Please list trips id started on the hottest day.,SELECT T1.id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code ORDER BY T2.max_temperature_f DESC LIMIT 1 "Describe the paper title, published year, conference's short name and included author names in the paper ID of 15.","SELECT DISTINCT T1.Title, T1.Year, T3.ShortName, T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T1.Id = 15" How many days had both mean humidity above 50 and mean visibility above 8?,SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8 Who was the winning team in 2008?,SELECT winning_team FROM table_name_22 WHERE year = 2008 Who was the home team for the game with Platense as the away team and attendance under 529?,"SELECT home FROM table_name_67 WHERE attendance < 529 AND away = ""platense""" "How many values of periselene when epoch is November 15, 2004, 17:47:12.1?","SELECT COUNT(periselene__km_) FROM table_206217_2 WHERE epoch__utc_ = ""November 15, 2004, 17:47:12.1""" And what is the total number of RES organizations?,SELECT count ( * ) FROM Organisations where organisation_type = 'RES' "Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.","SELECT address_content FROM addresses WHERE city = ""East Julianaside"" AND state_province_county = ""Texas"" UNION SELECT address_content FROM addresses WHERE city = ""Gleasonmouth"" AND state_province_county = ""Arizona""" How many distinct teams are involved in match seasons?,SELECT count(DISTINCT Team) FROM match_season What is the average payment method used to process payments? | Sorry. Can you clarify your question? | How many payment methods were used to process payments?,SELECT count ( distinct Payment_Method_Code ) from payments What champion has 1981 as the year?,"SELECT champion FROM table_name_33 WHERE year = ""1981""" "Among the Yelp_Businesses in Arizona, how many of them do not provide alcohol?",SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name LIKE 'Alcohol' AND T2.attribute_value LIKE 'none' AND T3.state LIKE 'AZ' What are the Juntas de Regantes (WUB) within the Azua Valley?,"SELECT juntas_de_regantes__wub_ FROM table_20018310_1 WHERE irrigation_district = ""Azua Valley""" What number corresponds to the quantity of 24?,"SELECT number_s_ FROM table_name_50 WHERE quantity = ""24""" what is the average silver when the total is more than 20?,SELECT AVG(silver) FROM table_name_66 WHERE total > 20 Return the lot details and investor ids.,"SELECT lot_details , investor_id FROM LOTS" What is the maximum 2006 census population of LGA name Opobo/Nkoro?,"SELECT MAX(census_2006_population) FROM table_1966992_1 WHERE lga_name = ""Opobo/Nkoro""" List the carriers of devices in ascending alphabetical order.,SELECT Carrier FROM device ORDER BY Carrier What was the final score when the attendance was 25598?,SELECT final_score FROM table_21761882_4 WHERE attendance = 25598 Show the lieutenant governor and comptroller from the democratic party.,"SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = ""Democratic""" Identify the user who has been yelping since 2004. Is he or she an Yelp Elite member?,SELECT DISTINCT T2.user_id FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2004 What are the type codes and descriptions for all template types?,"SELECT template_type_code , template_type_description FROM Ref_template_types" "What was the name of the Team 1, where the Team 2 was Stade De Reims (d2)?","SELECT team_1 FROM table_name_93 WHERE team_2 = ""stade de reims (d2)""" Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?,"SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = ""Sean Barrett""" "Among the matches played by Royal Challengers Bangalore, what is the match ID of the match with the highest winning margin?",SELECT T2.match_id FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner WHERE T1.team_name = 'Royal Challengers Bangalore' AND T2.match_date LIKE '2012%' ORDER BY T2.win_margin DESC LIMIT 1 What is the id of every song that has a resolution higher than that of a song with a rating below 8?,SELECT f_id FROM song WHERE resolution > (SELECT max(resolution) FROM song WHERE rating < 8) Name the city of the station that trip ID 585842 borrowed a bike and indicate when that station was first installed.,"SELECT T2.city, T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 585842" What was the time of the Kentucky Derby?,"SELECT time FROM table_name_79 WHERE race = ""kentucky derby""" Which Country is listed for the Director Thomas Vinterberg?,"SELECT country FROM table_name_74 WHERE director = ""thomas vinterberg""" How many TV Channel using language English?,"SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = ""English""" At which tournament did william renshaw begin his lead when he had won 7 titles?,"SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = ""William Renshaw"" AND titles_won_at_point_of_lead = 7" List all the winds speeds in ascending order.,select wind_speed_mph from weekly_weather order by wind_speed_mph What is Tiger Woods's score?,"SELECT score FROM table_name_1 WHERE player = ""tiger woods""" "How many 2-year private nonprofit schools in ""CT"" whose graduation rate falls below the average for the state?",SELECT COUNT(DISTINCT T1.chronname) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'CT' AND T2.level = '2-year' AND T1.control = 'Private not-for-profit' AND T1.awards_per_value < T1.awards_per_natl_value Find the last names of students with major 50.,SELECT LName FROM STUDENT WHERE Major = 50 What percentages of social democratic correspond to a 5.5% left bloc?,"SELECT social_democratic FROM table_1463383_1 WHERE left_bloc = ""5.5%""" Which campus has the smallest faculty,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus where T2.faculty = ( select min ( faculty ) from faculty ) What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?,SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' What was the record when they played game 58?,SELECT record FROM table_name_59 WHERE game = 58 What is the credit card number for Michelle E Cox?,SELECT T3.CreditCardID FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN CreditCard AS T3 ON T2.CreditCardID = T3.CreditCardID WHERE T1.FirstName = 'Michelle' AND T1.MiddleName = 'E' AND T1.LastName = 'Cox' How many innings are there when the average is 32.3?,"SELECT MIN(innings) FROM table_26041144_10 WHERE average = ""32.3""" "What is the average price of all products with the type code ""clothes""?","SELECT avg ( product_price ) FROM products WHERE product_type_code = ""Clothes""" "Find the number of products with category ""Spices"" and typically sold above 1000.","SELECT COUNT(*) FROM products WHERE product_category_code = ""Spices"" AND typical_buying_price > 1000" Name the film title that was norwegian,"SELECT film_title_used_in_nomination FROM table_name_40 WHERE language = ""norwegian""" who had the high assists on march 30?,"SELECT high_assists FROM table_name_78 WHERE date = ""march 30""" Give the phone of drivers who transported shipment weight of greater than 20000 pounds.,SELECT T2.phone FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id GROUP BY T2.driver_id HAVING SUM(T1.weight) > 20000 What percentage of matches played on 2005/07/30 belong to the F1 division?,SELECT CAST(SUM(CASE WHEN Div = 'F1' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Div) FROM matchs WHERE Date = '2005-07-30' What is the highest Pick that has a round greater than 6 and an overall greater than 216?,SELECT MAX(pick) FROM table_name_46 WHERE round > 6 AND overall > 216 What is solidv4 when sequencer is data output per run?,"SELECT solidv4 FROM table_127511_1 WHERE sequencer = ""Data output per run""" what is the highest price?,SELECT max ( price ) FROM Flight Which country is t3 finisher billy mayfair from?,"SELECT country FROM table_name_37 WHERE place = ""t3"" AND player = ""billy mayfair""" Perfect! Can you tell me what the nationality or country of origin of Lewis and Hamilton is?,"SELECT nationality FROM drivers WHERE forename = ""Lewis"" and surname = ""Hamilton""" When 5a06 is the production code what is the highest episode?,"SELECT MAX(ep) FROM table_20967430_3 WHERE prod_code = ""5A06""" What is the name of the coach who started in 2011?,SELECT T1.Coach_name FROM coach AS T1 JOIN player_coach AS T2 ON T1.Coach_ID = T2.Coach_ID where T2.Starting_year = 2011 what is the make for the year 2008?,SELECT make FROM table_name_88 WHERE year = 2008 Count the number of countries for which Spanish is the predominantly spoken language.,"SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = ""Spanish"" GROUP BY CountryCode" For a total of 1 and the sport of softball what were the years?,"SELECT years FROM table_name_93 WHERE total = ""1"" AND sport = ""softball""" What are the names of all songs that are ordered by their resolution numbers?,SELECT song_name FROM song ORDER BY resolution "User No. 70271 only has given one tip to the Yelp business, which category was that business belonged to?",SELECT T4.category_name FROM Tips AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.user_id = 70271 What's the value for played when points is 8 and position is 11th?,"SELECT played FROM table_name_2 WHERE position = ""11th"" AND points = ""8""" Show the names of counties that have at least two delegates.,SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 How many persons are there?,SELECT count ( * ) from Person What was the average round for the oulton park circuit?,"SELECT AVG(round) FROM table_name_56 WHERE circuit = ""oulton park""" "With a date of 8/3/08, what was the length of the victory margin?","SELECT COUNT(victory_margin__in_lengths_) FROM table_16689920_1 WHERE date = ""8/3/08""" "How many documents are there with the document type code ""CV""?","SELECT count ( T2.Document_Date ) FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.Document_Type_Code = ""CV""" What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?,"SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = ""uttara ಉತ್ತರಾ""" Which engine scored 6 points and used the march 88c chassis?,"SELECT engine FROM table_name_51 WHERE points = 6 AND chassis = ""march 88c""" What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?,"SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)" What is the maximum diameter of the Mid West Gas Pipeline (1999)?,"SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = ""mid west gas pipeline (1999)""" What are the total account balances for each customer from Utah or Texas?,SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas' what is the total number of deaths?,SELECT SUM ( Number_Deaths ) FROM storm Please list the last names and first names of all-star players who are higher than 75 inch.,"SELECT DISTINCT T1.lastName, T1.firstName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.height > 75" List 10 cities with a median age over 40. Include their zip codes and area codes.,"SELECT T2.city, T2.zip_code, T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.median_age >= 40 LIMIT 10" "What are the Attendance numbers for november 18, 1990?","SELECT attendance FROM table_name_38 WHERE date = ""november 18, 1990""" Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.,"SELECT title , film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count(*) < 3" Find out the average rating of every user?,"SELECT T1.name , avg ( T2.rating ) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" "Find the titles of papers whose first author is affiliated with an institution in the country ""Japan"" and has last name ""Ohori""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""Japan"" AND t2.authorder = 1 AND t1.lname = ""Ohori""" What date did the Jazz play the Bulls at home?,"SELECT date FROM table_name_91 WHERE home = ""jazz"" AND visitor = ""bulls""" Name the opponent for 7-1-0,"SELECT opponent FROM table_21007907_1 WHERE record = ""7-1-0""" Which zip code in Massachusetts that have more than 1 area code?,SELECT T1.zip_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.state = 'MA' GROUP BY T1.zip_code HAVING COUNT(T1.area_code) > 1 How many flights have an origin of Los Angeles?,"SELECT count ( * ) FROM Flight WHERE origin = ""Los Angeles""" What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Romeo?,"SELECT time_retired FROM table_name_69 WHERE constructor = ""brabham - alfa romeo"" AND driver = ""carlos reutemann""" Find the ID of advisor of student ID 80 and state the level of courses taught by him/her.,"SELECT T1.p_id_dummy, T2.courseLevel FROM advisedBy AS T1 INNER JOIN course AS T2 ON T1.p_id = T2.course_id INNER JOIN taughtBy AS T3 ON T2.course_id = T3.course_id WHERE T1.p_id = 80" Name the least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45,SELECT MIN(floor_exercise) FROM table_name_58 WHERE pommel_horse < 8.45 AND parallel_bars > 9.687 What is the record of the game that has a result of w 45–17?,"SELECT record FROM table_name_31 WHERE result = ""w 45–17""" Name the coins that have three tags.,"SELECT name FROM coins WHERE LENGTH(tag_names) - LENGTH(replace(tag_names, ',', '')) = 2" What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to?,SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 1 How many points are for the Fall Bay RFC club?,"SELECT points_for FROM table_name_91 WHERE club = ""fall bay rfc""" Please list all horror films that have a rating of 1.,SELECT T1.movieid FROM u2base AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.rating = 1 AND T2.genre = 'Horror' Who are the comptroller of those individuals?,SELECT Comptroller FROM PARTY WHERE US_Senate in ( SELECT US_Senate FROM PARTY WHERE PARTY IN ( SELECT Party FROM party GROUP BY Party HAVING COUNT ( * ) > = 2 ) ) Name the Tally of an Opposition of westmeath?,"SELECT tally FROM table_name_76 WHERE opposition = ""westmeath""" Can you list the names and ids of courses?,"SELECT course_id,title FROM course" Find the number of projects which each scientist is working on and scientist's name.,"SELECT count(*), T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name" What are the public schools and what are their locations?,"SELECT school , LOCATION FROM university WHERE affiliation = 'Public'" Which Venue has a Home team of essendon?,"SELECT venue FROM table_name_47 WHERE home_team = ""essendon""" What kind of allergy is most common among white people?,SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.race = 'white' GROUP BY T2.DESCRIPTION ORDER BY COUNT(T2.DESCRIPTION) DESC LIMIT 1 What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver?,"SELECT constructor FROM table_name_26 WHERE fastest_lap = ""juan manuel fangio"" AND winning_driver = ""giuseppe farina""" What are the names of artist whose exhibitions draw over 200 attendees on average?,SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance) > 200 what is the average salary of a physics professor?,SELECT avg ( salary ) FROM instructor WHERE dept_name = 'Physics' "What is the lowest played number when goals for is 47, and wins is smaller than 14?",SELECT MIN(played) FROM table_name_48 WHERE goals_for = 47 AND wins < 14 How many events are there?,SELECT count(*) FROM event Name the report for circuit of kyalami for south african republic trophy,"SELECT report FROM table_name_8 WHERE circuit = ""kyalami"" AND race_name = ""south african republic trophy""" What was the overall record for the Pandas when their conference record was 4-1-1? ,"SELECT overall FROM table_27069503_2 WHERE conf_record = ""4-1-1""" Find the number of employees of each gender whose salary is lower than 50000.,"SELECT COUNT(*), sex FROM employee WHERE salary < 50000 GROUP BY sex" "Find the address line 1 and 2 of the customer with email ""vbogisich@example.org"".","SELECT address_line_1 , address_line_2 FROM customers WHERE email_address = ""vbogisich@example.org""" How many males were members of the current legislators?,SELECT COUNT(*) FROM current WHERE gender_bio = 'M' Which championship has a margin of 8 strokes?,"SELECT championship FROM table_name_89 WHERE margin = ""8 strokes""" Who is the player from Japan?,"SELECT player FROM table_name_9 WHERE country = ""japan""" What is the label on the United States?,"SELECT label FROM table_name_88 WHERE country = ""united states""" Which Location Attendance has a Date of february 27?,"SELECT location_attendance FROM table_name_46 WHERE date = ""february 27""" What was the score of the game that was played on a grass surface?,"SELECT score FROM table_name_24 WHERE surface = ""grass""" What's the opponent for July 2?,"SELECT opponent FROM table_name_12 WHERE date = ""july 2""" What is the maximum acceleration of a car with price over $40000?,SELECT MAX(T1.acceleration) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price > 40000 How many device users are male?,SELECT COUNT(device_id) FROM gender_age WHERE gender = 'M' What did the home team score at Lake Oval?,"SELECT home_team AS score FROM table_name_2 WHERE venue = ""lake oval""" "What are the songs in album ""A Kiss Before You Go: Live in Hamburg""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = ""A Kiss Before You Go: Live in Hamburg""" Who was the opposing team in game 6?,SELECT team FROM table_27713030_3 WHERE game = 6 List the drivers who shipped the shipments to the least populated city.,"SELECT T3.first_name, T3.last_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id ORDER BY T2.population ASC LIMIT 1" "In the year 1500s, how many tragedies did Shakespeare write?",SELECT COUNT(id) FROM works WHERE GenreType = 'Tragedy' AND Date BETWEEN 1500 AND 1599 Can you list the all addresses that have the letter S in them?,"SELECT address FROM address WHERE address LIKE ""%S%""" Who was the player in round 1?,SELECT player FROM table_name_55 WHERE round = 1 what type of Flag is used by HMS Manxman?,"SELECT Flag FROM ship WHERE name = ""HMS Manxman""" What is the prediction relationship class id of the tallest image?,SELECT T1.PRED_CLASS_ID FROM IMG_REL AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.IMG_ID = T2.IMG_ID ORDER BY T2.H DESC LIMIT 1 What is the last season that the Scottish Rocks played?,"SELECT last_season FROM table_name_90 WHERE team = ""scottish rocks""" What was the title when 1.121 million US people watched it?,"SELECT title FROM table_23513241_5 WHERE us_viewers__millions_ = ""1.121""" What is the salary range of the student with an email of grosellg@hku.hk?,SELECT T1.salary FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.email = 'grosellg@hku.hk' What is the average bike availability in stations that are not located in Palo Alto?,"SELECT AVG(bikes_available) FROM status WHERE NOT station_id IN (SELECT id FROM station WHERE city = ""Palo Alto"")" How many phones are on the list?,SELECT count ( * ) FROM phone Give the country id and corresponding count of cities in each country.,"SELECT country_id , COUNT(*) FROM locations GROUP BY country_id" List 10 students that have no due payments and are not males.,SELECT T1.name FROM no_payment_due AS T1 INNER JOIN person AS T2 ON T1.`name` = T2.`name` WHERE T2.`name` NOT IN ( SELECT name FROM male ) AND T1.bool = 'neg' Thanks! Can you filter this list to show only the rows for customers who have an address in the state of TN?,"SELECT customer_name , customer_id FROM customers WHERE customer_address LIKE ""%TN%""" Return the name of the characteristic that is most common across all products.,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 GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1 What candidate(s) ran for election when nathaniel h. claiborne was the incumbent?,"SELECT candidates FROM table_2668243_25 WHERE incumbent = ""Nathaniel H. Claiborne""" "List the all the assets make, model, details by the disposed date ascendingly.","SELECT asset_make, asset_model, asset_details FROM Assets ORDER BY asset_disposed_date" Which word has the most repetitions in the Catalan language?,SELECT T2.word FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T1.occurrences = ( SELECT MAX(occurrences) FROM langs_words ) What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?,"SELECT position FROM table_name_64 WHERE first_election = ""1988 as vice mayor 2009""" List the names of climbers whose country is not Switzerland.,"SELECT Name FROM climber WHERE Country != ""Switzerland""" Which nhl team has kris draper as the player?,"SELECT nhl_team FROM table_2897457_3 WHERE player = ""Kris Draper""" What is the scoreof the away team Collingwood?,"SELECT away_team AS score FROM table_name_83 WHERE away_team = ""collingwood""" How many free or gift products are there?,SELECT COUNT(ProductID) FROM Products WHERE Price = 0 "List down the World Bank code of the countries whose country note has described ""Data source : Human Mortality Database by University of California, Berkeley, and Max Planck Institute for Demographic Research.""? Please include their lending category.","SELECT DISTINCT T1.Wb2code, T1.LendingCategory FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data source : Human Mortality Database by University of California, Berkeley, and Max Planck Institute for Demographic Research.' AND T1.LendingCategory != ''" How many countries speak both English and Dutch?,"SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Dutch"")" Which Away team has Carlton for it's Home team?,"SELECT away_team FROM table_name_96 WHERE home_team = ""carlton""" "The person named Al Jean achieved the Primetime Emmy Award category in 2009, which episode did AI Jean achieve?","SELECT T2.episode_id FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2009' AND T1.person = 'Al Jean' AND T1.award_category = 'Primetime Emmy';" Name the start date with party of pd,"SELECT start_date FROM table_name_28 WHERE party = ""pd""" What is the Nominee from the Category that is best costume design?,"SELECT nominee FROM table_name_64 WHERE category = ""best costume design""" "how many ""no decisions"" are there with 3 wins and a win percentage of 1.000?","SELECT MIN(no_decisions) FROM table_19839391_3 WHERE winning__percentage = ""1.000"" AND wins = 3" Which tie number had an away team of the Tranmere Rovers?,"SELECT tie_no FROM table_name_44 WHERE away_team = ""tranmere rovers""" What was the result for the game against the Pittsburgh Steelers?,"SELECT result FROM table_name_85 WHERE opponent = ""pittsburgh steelers""" what is the salary of instructor in math department?,SELECT T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' Show the status of the city that has hosted the greatest number of competitions.,SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 "List the inventory ID of the film titled ""African Egg"".",SELECT T2.inventory_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T1.title = 'African Egg' Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.,"SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'" Who was the home team on March 24?,"SELECT home FROM table_name_57 WHERE date = ""march 24""" "What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?",SELECT SUM(bronze) FROM table_name_49 WHERE total < 8 AND rank = 9 AND silver < 0 What was the average price of a Bitcoin in the year 2013?,"SELECT AVG(T2.price) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE STRFTIME('%Y', T2.date) = '2013' AND T1.name = 'Bitcoin'" How many premises are there?,SELECT count(*) FROM premises Show the names of mountains with height more than 5000 or prominence more than 1000.,SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000 What is the fewest number of wins in the chart for Ayrton Senna?,"SELECT MIN(wins) FROM table_name_1 WHERE driver = ""ayrton senna""" Which venue has a Home team of south melbourne?,"SELECT venue FROM table_name_88 WHERE home_team = ""south melbourne""" What are the employee ids for those who had two or more jobs.,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 Which Game is the highest one that has a Record of 4-3-6?,"SELECT MAX(game) FROM table_name_83 WHERE record = ""4-3-6""" What score has 2000 as the year?,SELECT score FROM table_name_80 WHERE year = 2000 And men?,SELECT count ( * ) FROM people WHERE is_male = 'T' Show the name of buildings that do not have an institution.,SELECT name FROM building WHERE building_id NOT IN ( SELECT building_id FROM institution ) Find the distinct breed type and size type combinations for dogs.,"SELECT DISTINCT breed_code , size_code FROM dogs" "The team Glenn Seton Racing has a circuit at the lakeside international raceway, what is the location and state?","SELECT location___state FROM table_name_84 WHERE team = ""glenn seton racing"" AND circuit = ""lakeside international raceway""" What is the total for 10th position?,"SELECT COUNT(points) FROM table_10705060_1 WHERE position = ""10th""" What award was won after 2008?,SELECT award FROM table_name_77 WHERE year > 2008 "center-to-center distance of 6,900 to 46,300 km involves which orbital period?","SELECT orbital_period FROM table_name_69 WHERE center_to_center_distance = ""6,900 to 46,300 km""" "What is the IATA code of the Anita Bay Airport in Anita Bay, Alaska?","SELECT Code FROM Airports WHERE Description = 'Anita Bay, AK: Anita Bay Airport'" Return the ids and details corresponding to projects for which there are more than two documents.,"SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2" What is the average price of the products for each category?,"SELECT avg(product_price) , product_category_code FROM products GROUP BY product_category_code" "For each building, show the name of the building and the number of institutions in it.","SELECT T1.name , count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id" "What are the songs in album ""A Kiss Before You Go: Live in Hamburg""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = ""A Kiss Before You Go: Live in Hamburg""" List the name of the school with the highest enrollment?,SELECT school_name FROM school ORDER BY enrollment desc limit 1 What is the lowest attendance?,SELECT MIN(attendance) FROM table_25331766_3 What was the Proposed date of the entry that has a CERCLIS ID of al0001058056?,"SELECT proposed FROM table_name_56 WHERE cerclis_id = ""al0001058056""" What destination has the fewest number of flights?,SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1 How many bronzes for Iceland with over 2 silvers?,"SELECT AVG(bronze) FROM table_name_53 WHERE silver > 2 AND nation = ""iceland""" How many movies star a male African American actor?,SELECT COUNT(*) FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T2.Gender = 'Male' AND T2.Ethnicity = 'African American' What is the record for Brussels translations?,"SELECT recorded FROM table_name_84 WHERE translation = ""brussels""" what is the lowest points scored by a player who blocked 21 times,SELECT MIN(points) FROM table_19722233_5 WHERE blocks = 21 What is the Catalog number in France?,"SELECT catalog FROM table_name_19 WHERE region = ""france""" What are all info of students who registered courses but not attended courses?,SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance) Which region is Joshua Bennet located in?,SELECT T FROM ( SELECT DISTINCT CASE WHEN `Sales Team` = 'Joshua Bennett' THEN Region ELSE NULL END AS T FROM `Sales Team` ) WHERE T IS NOT NULL "WHAT IS THE LOWEST $25-1/4 OZ COIN WITH A $10-1/10 OZ OF $70,250?","SELECT MIN AS $25___1_4_oz FROM table_name_57 WHERE $10___1_10_oz = ""70,250""" "What is the eastern word for ""light""?","SELECT eastern FROM table_26614365_1 WHERE english = ""light""" Which location led to a 10-3 record?,"SELECT location FROM table_name_73 WHERE record = ""10-3""" What is the gold medal count for the country with a total greater than 32 and more than 128 silvers?,SELECT AVG(gold) FROM table_name_53 WHERE total > 32 AND silver > 128 "what is the pennant when the builder is yarrow, scotstoun?","SELECT pennant FROM table_name_23 WHERE builder = ""yarrow, scotstoun""" Which song is associated with the most popular Disney movie in 1970s?,"SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE CAST(SUBSTR(T1.release_date, INSTR(T1.release_date, ', ') + 1) AS int) BETWEEN 1970 AND 1979 ORDER BY CAST(REPLACE(SUBSTR(T1.total_gross, 2), ',', '') AS float) DESC LIMIT 1" When did the airplane with tail number RA-85282 crash?,"SELECT date__ddmmyyyy_ FROM table_229917_2 WHERE tail_number = ""RA-85282""" What is the average vacation hours taken by Sales person?,SELECT CAST(SUM(T1.VacationHours) AS REAL) / COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'SP' In how many papers and in what years was the International Conference on Database Theory published?,"SELECT COUNT(T1.Id) AS PAPER, COUNT(DISTINCT T1.Year) AS YEARS FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE year != 0 AND T2.FullName = 'International Conference on Database Theory'" How many were in attendance with a Result of l 17–10?,"SELECT attendance FROM table_name_76 WHERE result = ""l 17–10""" "What is the lowest total goals when position is df, and FA Cup Goals is smaller than 0?","SELECT MIN(total_goals) FROM table_name_89 WHERE position = ""df"" AND fa_cup_goals < 0" State the area and population of the country where Asia Pacific Economic Cooperation headquarter is located.,"SELECT T2.Name, T2.Population FROM organization AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Asia Pacific Economic Cooperation'" How many episodes was Dell Hake not included in the credit list?,SELECT COUNT(*) FROM Credit WHERE person = 'Dell Hake' AND credited = 'false'; "What is the 2nd Leg, when Team 2 is Marbella?","SELECT 2 AS nd_leg FROM table_name_65 WHERE team_2 = ""marbella""" "Who is Winners that has editions of 1992, 2003 as Not Winning","SELECT winners FROM table_name_77 WHERE not_winning_editions = ""1992, 2003""" Who is the prisoner that is older than 45 and has served less than 22 years on death row?,SELECT name FROM table_name_39 WHERE current_age > 45 AND years_on_death_row < 22 What record company has robert craft conducting?,"SELECT record_company FROM table_name_32 WHERE conductor = ""robert craft""" "What is the latitude, longitude, and city of the station from which the trip with smallest duration started?","SELECT T1.lat , T1.long , T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1" Who is the advisor for the major with the second most number of students?,select advisor from student where major in ( SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 2 ) and major ! = ( SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 ) What is the Match score when the FootyTAB winner was norths?,"SELECT match_score FROM table_name_81 WHERE footytab_winner = ""norths""" What block has a COSPAR ID of 1995-060a?,"SELECT block FROM table_name_23 WHERE cospar_id = ""1995-060a""" State the most popular movie? When was it released and who is the director for the movie?,"SELECT movie_title, movie_release_year, director_name FROM movies ORDER BY movie_popularity DESC LIMIT 1 " Which event was Tatyana Lebedeva in?,"SELECT event FROM table_name_75 WHERE athlete = ""tatyana lebedeva""" What is the title of a course that is listed in both the Statistics and Psychology departments?,SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology' How many coaches worked a temporary term in the year 2007?,SELECT COUNT(coachID) FROM Coaches WHERE year = 2007 AND notes = 'interim' "Provide the episode number, title and rating of which were aired in October, 2008.","SELECT episode, title, rating FROM Episode WHERE SUBSTR(air_date, 1, 7) LIKE '2008-10%';" Show the ids of high schoolers who have friends and are also liked by someone else.,SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes "Hi, which companies have operated more than one flight?",SELECT * FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING count ( * ) > 1 How many members have the black membership card?,SELECT count(*) FROM member WHERE Membership_card = 'Black' What are their names?,select Name from Physician And what musicals were they nominated for?,SELECT name FROM musical GROUP BY Nominee HAVING COUNT ( * ) > 1 What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?,"SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = ""Zinfandel""" "Which Home team is on Wednesday, 25 february 1998?","SELECT home_team FROM table_name_65 WHERE date = ""wednesday, 25 february 1998""" "How many users answered ""No"" to question 19?",SELECT COUNT(QuestionID) FROM Answer WHERE QuestionID = 19 AND AnswerText LIKE 'No' Has Alex purchased product with id 498?,"SELECT IIF(T1.ProductID = 498, 'YES', 'NO') FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Alex'" What is the average rank for players with under 26 events and less than 2 wins?,SELECT AVG(rank) FROM table_name_74 WHERE events < 26 AND wins < 2 What are the lowest number of followers?,SELECT min ( followers ) FROM user_profiles And can you show me how many customers there are?,SELECT Count ( * ) FROM customers List the names of journalists who have not reported any event.,SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report) "Among the stopped businesses in San Tan Valley city, list down the user ID and review length of who had great experience.","SELECT T2.user_id, T2.review_length FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'San Tan Valley' AND T1.active = 'false' AND T2.review_stars = 5" Could you tell me the names of these amenities?,select amenity_name from Dorm_amenity What nation had more than 97 Gold Medals and fewer than 332 Silver Medals?,SELECT SUM(total) FROM table_name_34 WHERE gold > 97 AND silver < 332 What is the result of the 2005 (78th) year ceremony?,"SELECT result FROM table_22073745_1 WHERE year__ceremony_ = ""2005 (78th)""" How many different industries are the companies in?,SELECT count(DISTINCT Industry) FROM Companies Who were the governors of the parties associated with delegates from district 1?,SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 What is the average price range of five star hotels that allow pets?,"SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = ""5"" AND pets_allowed_yn = 1" "What is the week 3, prior to the when the week 4 was Laura Nicole?","SELECT week_4 FROM table_name_26 WHERE week_3 = ""laura nicole""" What is the record of the game on May 30?,"SELECT record FROM table_name_36 WHERE date = ""may 30""" Which time contains the jockery of isaac murphy as well as the winner of kingman?,"SELECT time FROM table_name_39 WHERE jockey = ""isaac murphy"" AND winner = ""kingman""" Tell me the versions for czechoslovakia?,"SELECT versions FROM table_name_80 WHERE origin = ""czechoslovakia""" What is the average attendance for seasons before 1999 with pos of 8?,SELECT AVG(attendance_g) FROM table_name_93 WHERE pos = 8 AND season < 1999 Show all flight numbers with aircraft Airbus A340-300.,"SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = ""Airbus A340-300""" What is the geo id of the land at 35.999?,"SELECT MAX(geo_id) FROM table_18600760_12 WHERE land___sqmi__ = ""35.999""" "what is the nation with a total of 1, bronze smaller than 1 and a rank of 3?",SELECT nation FROM table_name_62 WHERE total = 1 AND bronze < 1 AND rank = 3 "Find all the songs produced by artists with first name ""Marianne"".","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Firstname = ""Marianne""" "Which Result has a Road Team of san francisco, and a Game of game 2?","SELECT result FROM table_name_77 WHERE road_team = ""san francisco"" AND game = ""game 2""" How many businesses id are rated more than 4?,SELECT COUNT(business_id) FROM Business WHERE stars > 4 What was the lowest attendance for the game that had a time of 3:31 and was before game 7?,"SELECT MIN(attendance) FROM table_name_58 WHERE time = ""3:31"" AND game < 7" What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?,SELECT SUM(T1.SickLeaveHours) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.EmailPromotion = 0 What were all USAF space flights when the aximum speed was 3822?,SELECT usaf_space_flights FROM table_221315_3 WHERE max_speed__mph_ = 3822 "Of courses with 3 credit, how many students have GPA of 3.2?",SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.credit = 3 AND T1.gpa = 3.2 What is the venue in 2002?,"SELECT venue FROM table_name_86 WHERE year = ""2002""" "What is the total number of bronze medals, and 4 silver medals, and 2 gold medals?",SELECT COUNT(bronze) FROM table_name_28 WHERE silver = 4 AND gold > 2 what is the capacity for England? | You mean the stadium in England? | yes,"SELECT capacity FROM stadium where country = ""England""" What position has notes of 2:12:53?,"SELECT position FROM table_name_7 WHERE notes = ""2:12:53""" How many customer names in this table?,select count ( distinct Customer_name ) from Customers "What is the year when the Winner was the new york jets, with a Result of 24–17, played at giants stadium?","SELECT SUM(year) FROM table_name_39 WHERE winner = ""new york jets"" AND result = ""24–17"" AND location = ""giants stadium""" Show all home cities except for those having a driver older than 40.,SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age > 40 Who is the opponent in game 7?,SELECT opponent FROM table_name_21 WHERE game = 7 Who has Runs of 124?,"SELECT player FROM table_name_79 WHERE runs = ""124""" What position did Marty Gateman play?,"SELECT position FROM table_1473672_5 WHERE player = ""Marty Gateman""" How many Patent outcomes are generated from all the projects?,SELECT count(*) FROM Project_outcomes WHERE outcome_code = 'Patent' What label is formatted as compact disc and has United Kingdom as its region?,"SELECT label FROM table_name_94 WHERE format = ""compact disc"" AND region = ""united kingdom""" "What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?","SELECT COUNT(fall_05) FROM table_name_31 WHERE fall_08 > 5 AND fall_06 > 7 AND states = ""maryland"" AND fall_09 > 471" "Find the name and access counts of all documents, in alphabetic order of the document name.","SELECT document_name , access_count FROM documents ORDER BY document_name" Provide the total number of the male users that use OPPO as their phone brand.,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'OPPO' AND T1.gender = 'M' What is the total revenue of companies started by founder?,"SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder" How many orders got returned in 2022?,"SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Returned' AND STRFTIME('%Y', T2.status_date) = '2022'" What is the number eliminated when kelly and brendan are safe?,"SELECT COUNT(eliminated) FROM table_12305325_4 WHERE safe = ""Kelly and Brendan""" What status has 18 as the against?,SELECT status FROM table_name_34 WHERE against = 18 "in a game against st kilda, what was the away team's score?","SELECT away_team FROM table_name_33 WHERE home_team = ""st kilda""" "Please list the id of the director of the movie ""It's Winter"".",SELECT director_id FROM movies WHERE movie_title = 'It''s Winter' Which competition has aik club?,"SELECT competition FROM table_name_32 WHERE club = ""aik""" "Hi, can you tell me in what year did the artist Gorgoroth release his first song? | 16 May - 30 May is the issue date of the song the artist Gorgoroth first released. | what is the name of the song?","SELECT T2.song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = ""Gorgoroth"" order by T2.Issue_Date limit 1" What was the score of the game against the San Diego Chargers?,"SELECT score FROM table_name_41 WHERE opponent = ""san diego chargers""" What is the average lap time for retired time of +23.707 and a Grid greater than 21?,"SELECT AVG(laps) FROM table_name_23 WHERE time_retired = ""+23.707"" AND grid > 21" "What are the manager's first name, last name and id who won the most manager award?","SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;" Who was the Centerfold model in the issue in which the Interview subject was José Napoleón Duarte?,"SELECT centerfold_model FROM table_name_96 WHERE interview_subject = ""josé napoleón duarte""" Show the team that have at least two technicians.,SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2 What city does the employee who helps the customer with postal code 70174 live in?,"SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = ""70174""" Which 3rd run has rank of 1?,SELECT 3 AS rd_run FROM table_name_97 WHERE rank = 1 What is the director name is the U.S. viewers is 2.22 million?,"SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = ""2.22""" What is the code name of the person born in Liverpool?,"SELECT code_name FROM table_name_94 WHERE birthplace = ""liverpool""" "How much Silver has a Rank of 1, and a Bronze smaller than 3?","SELECT SUM(silver) FROM table_name_29 WHERE rank = ""1"" AND bronze < 3" "Hmm, I want to know all the customer names that live in Brazil and have an invoice. | Here are the distinct first names of all the customer that live in Brazil and have an invoice. | Can you also list their customer ids?","SELECT DISTINCT T1.FirstName, T1.customerid FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Brazil""" "Which County has a Size larger than 258, and a Mascot of commodores?","SELECT county FROM table_name_95 WHERE size > 258 AND mascot = ""commodores""" Find the order dates of the orders with price above 1000.,SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 What is the highest position of the team with 24 lost and a drawn greater than 9?,SELECT MAX(position) FROM table_name_62 WHERE lost = 24 AND drawn > 9 State the county for Arecibo City.,SELECT DISTINCT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Arecibo' Show all template type codes and descriptions.,"SELECT template_type_code , template_type_description FROM Ref_template_types" What Dialcode has a location of Edmonton?,"SELECT dialcode FROM table_name_11 WHERE location = ""edmonton""" "For each sex, what is the name and sex of the candidate with the oppose rate for their sex?","SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex" "How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?","SELECT MIN(_number) FROM table_19982699_1 WHERE producer = ""Charles Salmon"" AND television_premiere = ""January 27, 2007""" "Among the crimes in Woodlawn, how many of them happened in January, 2018?",SELECT SUM(CASE WHEN T1.community_area_name = 'Woodlawn' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.date LIKE '%1/2018%' How many second place showings does snooker have?,"SELECT second_place_s_ FROM table_20823568_2 WHERE sporting_profession = ""Snooker""" How many users who are under 30 years old use device model of Galaxy Note 2?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Note 2' AND T1.age < 30 What year had 32 moves?,SELECT SUM(year) FROM table_name_23 WHERE moves = 32 "Which Week has a Date of october 4, 1992?","SELECT MAX(week) FROM table_name_52 WHERE date = ""october 4, 1992""" Please show the most common reigns of wrestlers.,SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1 Who is the player with the PBA team of Barangay Ginebra Kings?,"SELECT player FROM table_name_11 WHERE pba_team = ""barangay ginebra kings""" What is the contact name and phone number of the customer who has made the most total payment on the order to date?,"SELECT T1.ContactName, T1.Phone FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T2.OrderID, T1.ContactName, T1.Phone ORDER BY SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) DESC LIMIT 1" Can you show me their names ?,"SELECT name FROM journalist WHERE Nationality = ""England"" OR Nationality = ""Wales""" "In August of 1996, how many orders were placed by the customer with the highest amount of orders?",SELECT COUNT(OrderID) FROM Orders WHERE OrderDate LIKE '1996-08%' GROUP BY CustomerID ORDER BY COUNT(OrderID) DESC LIMIT 1 Find the name of the item with the lowest average rating.,SELECT T1.title 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) LIMIT 1 How many shows were in 1994?,SELECT COUNT(difficulty) FROM table_28140141_1 WHERE year = 1994 what city is the toamasina airport in?,"SELECT city FROM table_name_42 WHERE airport = ""toamasina airport""" "When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred?","SELECT MAX(martyred) FROM table_name_64 WHERE beatified = 1909 AND name = ""john hoan trinh doan / st. john hoan"" AND canonised > 1988" What is the assumed name of the business located at 2903 W Irving Park Rd?,SELECT DISTINCT dba_name FROM establishment WHERE address = '2903 W IRVING PARK RD ' "What is the name, account type, and account balance corresponding to the customer with the highest credit score?","SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1" "Find products with max page size as ""A4"" or pages per minute color smaller than 5.","SELECT product FROM product WHERE max_page_size = ""A4"" OR pages_per_minute_color < 5" How many people were in the Hall of Fame's Builder category?,SELECT COUNT(hofID) FROM HOF WHERE category = 'Builder' Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.,"SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )" "What is the order reference number for the ""Mountain End Caps"" product?",SELECT T2.ReferenceOrderID FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Mountain End Caps' What are the id of songs whose format is mp3.,"SELECT f_id FROM files WHERE formats = ""mp3""" what was the engine used before 1996 with 5 points?,SELECT engine FROM table_name_68 WHERE year < 1996 AND points = 5 Wonderful. And how many courses in Language?,"SELECT COUNT ( * ) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Language""" How many women need to take 'Nitroglycerin 0.4 MG/ACTUAT [Nitrolingual]'?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Nitroglycerin 0.4 MG/ACTUAT [Nitrolingual]' AND T1.gender = 'F' Find the id and name of the staff who has been assigned for the shortest period.,"SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" "Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1?","SELECT MAX(against) FROM table_name_95 WHERE team = ""flamengo"" AND lost < 1" "When the phillies 1:15 pm played on April 9, what was the attendance?","SELECT attendance FROM table_name_21 WHERE opponent = ""phillies 1:15 pm"" AND date = ""april 9""" What are the ids of the courses that are registered or attended by the student whose id is 121?,SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121 Count the number of customers that have the customer type that is most common.,SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1 What are the different models for the cards produced after 1980?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980; What's the frequency of the model with part number TT80503300?,"SELECT frequency FROM table_24096813_15 WHERE part_number_s_ = ""TT80503300""" How many draws are for the club senghenydd rfc?,"SELECT drawn FROM table_name_5 WHERE club = ""senghenydd rfc""" "Which the highest Round has a Player of mike williams, and a Pick # larger than 4?","SELECT MAX(round) FROM table_name_12 WHERE player = ""mike williams"" AND pick__number > 4" "How many paragraphs are there in Act 5 Scene 1 of ""Comedy of Errors""?",SELECT COUNT(T3.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T2.Act = 5 AND T2.Scene = 1 AND T1.Title = 'Comedy of Errors' What is the total number of hours per week and number of games played by students under 20?,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20" what is the most laps with the time/retired is differential and the grid is more than 2?,"SELECT MAX(laps) FROM table_name_35 WHERE time_retired = ""differential"" AND grid > 2" What are all the name(namesakes) for the entire chart?,SELECT name__namesake_ FROM table_29860752_11 "Which Points have a Year larger than 1966, and Wins larger than 1?",SELECT AVG(points) FROM table_name_78 WHERE year > 1966 AND wins > 1 What is the control type which was founded in 1818?,"SELECT control FROM table_2076608_3 WHERE founded = ""1818""" what tournament was on a hard surface and saw jacob adaktusson as the opponent?,"SELECT tournament FROM table_name_78 WHERE surface = ""hard"" AND opponent = ""jacob adaktusson""" "If the round is the semi-finals, what are the new entries this round?","SELECT new_entries_this_round FROM table_1859269_1 WHERE round = ""Semi-finals""" Give the percentage of Japanese suppliers whose account is in debt.,"SELECT CAST(SUM(IIF(T2.n_name = 'JAPAN', 1, 0)) AS REAL) * 100 / COUNT(T1.s_name) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0" How many unique classes are offered?,SELECT count(DISTINCT class_code) FROM CLASS What is the title of series #1?,SELECT title FROM table_14346353_1 WHERE series__number = 1 "How about date in location from, then?",select location_code from Document_Locations order by Date_in_Location_From desc limit 1 "What is the project detail for the project with document ""King Book""?","SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = ""King Book""" "what is the sum of silver when the rank is 3, nation is france and bronze is less than 0?","SELECT SUM(silver) FROM table_name_99 WHERE rank = 3 AND nation = ""france"" AND bronze < 0" State the name of all city in Maricopa County along with its latitude and longitude.,"SELECT DISTINCT `City Name`, Latitude, Longitude FROM `Store Locations` WHERE County = 'Maricopa County'" How many data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601?,SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE renewable_electricity_w_o_hydro__gw·h_ = 3601 What is the grid when the driver was Michael Schumacher?,"SELECT grid FROM table_name_20 WHERE driver = ""michael schumacher""" What CFL team got their draft pick from North Dakota?,"SELECT cfl_team FROM table_25085059_1 WHERE college = ""North Dakota""" What is the smallest finish time for a race after 1972 with a car manufactured by pontiac?,"SELECT MIN(finish) FROM table_name_69 WHERE year > 1972 AND manufacturer = ""pontiac""" "Calculate the average number of criterias among ""Times Higher Education World University Ranking"",""Shanghai Ranking"" and ""Center for World University Rankings"".",SELECT (SUM(CASE WHEN T1.system_name = 'Center for World University Rankings' THEN 1 ELSE 0 END) + SUM(CASE WHEN T1.system_name = 'Shanghai Ranking' THEN 1 ELSE 0 END) + SUM(CASE WHEN T1.system_name = 'Times Higher Education World University Ranking' THEN 1 ELSE 0 END)) / 3 FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id Name the countries' long name with national accounts base year prior to 1980.,SELECT LongName FROM Country WHERE NationalAccountsBaseYear < '1980' AND NationalAccountsBaseYear != '' "List all the product names with the color description ""white"".","SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""white""" Please name the highest Conceded which has a Played smaller than 5?,SELECT MAX(conceded) FROM table_name_4 WHERE played < 5 WHich kind of Aprende has a Centennial of 1988?,"SELECT aprende FROM table_name_35 WHERE centennial = ""1988""" What is the record on April 3?,"SELECT record FROM table_name_86 WHERE date = ""april 3""" "Who did the fastest lap in the race won by Paul Tracy, with Emerson Fittipaldi at the pole position?","SELECT fastest_lap FROM table_19908651_3 WHERE pole_position = ""Emerson Fittipaldi"" AND winning_driver = ""Paul Tracy""" "What 2012 has q2 as the 2010, and wimbledon as the tournament?","SELECT 2012 FROM table_name_31 WHERE 2010 = ""q2"" AND tournament = ""wimbledon""" "What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?","SELECT mar_24 FROM table_name_93 WHERE may_26 = ""13"" AND may_12 = ""6""" What are the months in Tamil that has an english transliteration of Mun-pani?,"SELECT tamil_months FROM table_name_89 WHERE english_transliteration = ""mun-pani""" Which game has Jessica Carolina Aguilera Aguilera participated in? Give the id of the game.,SELECT T2.games_id FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T1.full_name = 'Jessica Carolina Aguilera Aguilera' What construction has a CERCLIS ID of ard092916188?,"SELECT construction_completed FROM table_name_1 WHERE cerclis_id = ""ard092916188""" "Name the title with presentation of credentials of april 24, 1884","SELECT title FROM table_name_23 WHERE presentation_of_credentials = ""april 24, 1884""" What is the Frequency of Gosford when the Callsign of 2cfm?,"SELECT frequency FROM table_name_5 WHERE area_served = ""gosford"" AND callsign = ""2cfm""" What was the result of the game with a score of 4-1?,"SELECT result FROM table_name_65 WHERE score = ""4-1""" "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.","SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name" What are the characters of actors in descending order of age?,SELECT Character FROM actor ORDER BY age DESC what is the highest grid when the laps is less than 44 and the constructor is renault?,"SELECT MAX(grid) FROM table_name_10 WHERE laps < 44 AND constructor = ""renault""" What are the unique block codes that have available rooms?,SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 Record of 22–20 involved what score?,"SELECT score FROM table_name_46 WHERE record = ""22–20""" "Which 4-year private for-profit school in ""KY"" has the highest graudation 150 value? Give the ID for the school.","SELECT T1.chronname, T1.unitid FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'KY' AND T1.level = '4-year' AND T1.control = 'Private for-profit' GROUP BY T1.chronname ORDER BY SUM(T1.grad_150_value) DESC LIMIT 1" Where is the home on march 12?,"SELECT home FROM table_name_34 WHERE date = ""march 12""" "In 2016, which city has the highest number of establishments with the highest health and safety hazards?","SELECT T2.city FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2016' AND T1.risk_category = 'High Risk' GROUP BY T2.city ORDER BY COUNT(T2.city) DESC LIMIT 1" What are the zip codes that have an average mean humidity below 70 and had at least 100 trips come through there?,SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*) >= 100 In which city is there a greater number of schools that have received donations of less than 10 dollars?,SELECT T2.school_city FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.dollar_amount = 'under_10' GROUP BY T2.school_city ORDER BY COUNT(T2.schoolid) DESC LIMIT 1 Show the name of this student,"SELECT T1.lname, T1.fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" "Sorry, what is the id number of the instructor for psychology?","SELECT id FROM instructor WHERE dept_name = ""Psychology""" What is the country is ranked more than 4?,SELECT country FROM table_name_66 WHERE rank > 4 What are the names of enzymes that include the string 'ALA'?,"SELECT name FROM enzyme WHERE name LIKE ""%ALA%""" "How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?","SELECT COUNT(year) FROM table_name_3 WHERE award_ceremony = ""laurence olivier award"" AND result = ""won"" AND nominee = ""imelda staunton""" What is the title of the person who started their reign in 1999?,SELECT title FROM table_name_63 WHERE start_of_reign = 1999 List the description of the airports that have code that ends with number 3?,SELECT Description FROM Airports WHERE Code LIKE '%3' "What are the first names for all faculty professors, ordered by first name?","SELECT Fname FROM FACULTY WHERE Rank = ""Professor"" ORDER BY Fname" What is every company with an index weighting % of 1 and the city of Dimitrovgrad?,"SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = ""1"" AND city = ""Dimitrovgrad""" WHAT IS THE HOME TEAM WITH A TIE NUMBER OF 7?,"SELECT home_team FROM table_name_52 WHERE tie_no = ""7""" How many staff does each project has? List the project id and the number in an ascending order.,"SELECT T1.project_id , count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC;" What is the location of the match with Aron Lofton as the opponent?,"SELECT location FROM table_name_29 WHERE opponent = ""aron lofton""" Show locations and nicknames of schools.,"SELECT T1.Location, T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID" Name the population for sørvágur,"SELECT population FROM table_16278673_1 WHERE municipality = ""Sørvágur""" "Awesome, thank you. Then could you please show me the ID of the customers who have higher balance than this average?",SELECT custid from savings where balance > ( select avg ( balance ) from savings ) "Show me the teams that have wrestlers eliminated by ""Punk"".","SELECT Team FROM Elimination WHERE Eliminated_By = ""Punk""" What is the name of the co-authors of the paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'?,SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' NAME THE OVERALL FOR THE OMAHA (USHL) CLUB TEAM,"SELECT MIN(overall) FROM table_11803648_17 WHERE club_team = ""Omaha (USHL)""" "What profit can the seller Carousel DieCast Legends make from the sale of the product described as ""The perfect holiday or anniversary gift for executives""?",SELECT SUM(T2.MSRP - T2.buyPrice) FROM productlines AS T1 INNER JOIN products AS T2 ON T1.productLine = T2.productLine WHERE T2.productVendor = 'Carousel DieCast Legends' AND T1.textDescription LIKE '%perfect holiday or anniversary gift for executives%' Where are there 25 episodes in Catfights and Brawls?,"SELECT region_2 FROM table_191591_5 WHERE number_of_episodes = ""25"" AND dvd_title = ""Catfights and Brawls""" What is the Part 2 when the class is 6?,"SELECT part_2 FROM table_name_4 WHERE class = ""6""" What is the vote percentage for the couple gary and maria?,"SELECT vote_percentage FROM table_26375386_20 WHERE couple = ""Gary and Maria""" what is the lowest crowd at kardinia park,"SELECT MIN(crowd) FROM table_name_50 WHERE venue = ""kardinia park""" What are the years when the grizzlies had a point guard who attended the school/club Florida?,"SELECT years_for_grizzlies FROM table_name_56 WHERE position = ""point guard"" AND school_club_team = ""florida""" Which team was the visitor on January 10?,"SELECT visitor FROM table_name_69 WHERE date = ""january 10""" Name the book title of the bestseller.,SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id GROUP BY T1.title ORDER BY COUNT(T1.title) DESC LIMIT 1 Which formula has a thial as a chemical class?,"SELECT formula FROM table_name_13 WHERE chemical_class = ""thial""" How old is the youngest person for each job?,"SELECT min(age) , job FROM Person GROUP BY job" "Televoting of 9, and a Jury smaller than 10 had what sum of draw?",SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 10 What is the average rec that is greater than 10 and has 40 yards?,SELECT AVG(rec) FROM table_name_2 WHERE yards = 40 AND avg > 10 "Give the id of the event ""Shooting Mixed Skeet"".",SELECT id FROM event WHERE event_name = 'Shooting Mixed Skeet' Which player had the most game presentatons in 2011 NBA season.,SELECT playerID FROM players_teams WHERE year = 2011 ORDER BY GP DESC LIMIT 1 "How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?",SELECT SUM(fighting_spirit) FROM table_name_25 WHERE total = 13 AND technique < 1 find the number of players whose points are lower than 30 in each position.,"SELECT count(*) , POSITION FROM player WHERE points < 30 GROUP BY POSITION" List the languages used in Turkmenistan.,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Turkmenistan' What is the title of legislator whose birthday on 2/20/1942?,SELECT T2.title FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio = '1942-02-20' GROUP BY T2.title Which of the Worst dancer(s) has the Lowest score of 14?,SELECT worst_dancer_s_ FROM table_name_43 WHERE lowest_score = 14 Return the names of gymnasts who did not grow up in Santo Domingo.,"SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown != ""Santo Domingo""" Artist Justinas Lapatinskas with a draw of greater than 9 got what as the highest televote?,"SELECT MAX(televote) FROM table_name_64 WHERE artist = ""justinas lapatinskas"" AND draw > 9" What is the score for Greg Norman,"SELECT score FROM table_name_84 WHERE player = ""greg norman""" What is the percentage of the units of item no.5 sold among all units of items sold in store no.3 on the day with the highest max temperature in 2012?,SELECT CAST(SUM(CASE WHEN T1.item_nbr = 5 THEN units * 1 ELSE 0 END) AS REAL) * 100 / SUM(units) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.store_nbr = 3 AND T1.`date` LIKE '%2012%' AND T3.tmax = ( SELECT MAX(T3.tmax) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.store_nbr = 3 AND T1.`date` LIKE '%2012%' ) which months have more than 2 happy hours,SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count ( * ) > 2 What is the earliest episode aired on 8 June 2008?,"SELECT MIN(episode_number) FROM table_name_97 WHERE air_date = ""8 june 2008""" "What is the average Week, when Result is l 37–34?","SELECT AVG(week) FROM table_name_80 WHERE result = ""l 37–34""" "What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?",SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1 Please list the titles of all the Wikipedia pages on the Catalan language with 10 different words.,SELECT title FROM pages WHERE lid = 1 AND words = 10 LIMIT 10 What is the home team's score when the venue is princes park?,"SELECT home_team AS score FROM table_name_16 WHERE venue = ""princes park""" what is the fa trophy when the leading scorer is lee gregory (8)?,"SELECT fa_trophy FROM table_name_66 WHERE leading_scorer = ""lee gregory (8)""" what is color of mountain id no. 20 ?,SELECT DISTINCT ( color ) FROM photos where mountain_id = 20 "Find the id, forename and number of races of all drivers who have at least participated in two races?","SELECT T1.driverid , T1.forename , count(*) 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(*) >= 2" What are the behavior categories that user number -9222198347540750000 belongs to?,SELECT T3.category FROM app_all AS T1 INNER JOIN app_labels AS T2 ON T1.app_id = T2.app_id INNER JOIN label_categories AS T3 ON T2.label_id = T3.label_id WHERE T1.app_id = -9222198347540750000 What is the percentage of Glendale when Pasadena is 14%?,"SELECT glendale FROM table_name_87 WHERE pasadena = ""14%""" Return the number of flights arriving in Aberdeen.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" "What is all the information about employees hired before June 21, 2002?",SELECT * FROM employees WHERE hire_date < '2002-06-21' How many different events are there of Modern Pentathlon?,SELECT COUNT(DISTINCT T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Modern Pentathlon' What is the sum of the years when the winner was prof. priyambada mohanty hejmadi from orissa?,"SELECT SUM(year) FROM table_name_95 WHERE state = ""orissa"" AND name = ""prof. priyambada mohanty hejmadi""" Provide the ID of cars from Japan worth greater than 35000 and have an acceleration of 14.,SELECT T4.ID FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' AND T1.price > 3500 AND T4.acceleration = 14 Show the types of ships with tonnage between 3000 and 5000.,SELECT distinct TYPE FROM ship WHERE Tonnage > 3000 and Tonnage<5000 "What is the campus fee of ""San Francisco State University"" in year 1996?","SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND T2.year = 1996" Find the payment method code used by more than 3 parties.,SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3 "What is the average value for 1970, when the Region is East Europe (7 Economies), and when 2000 has a value greater than 2?","SELECT AVG(1970) FROM table_name_12 WHERE region = ""east europe (7 economies)"" AND 2000 > 2" What is minimum age for different job title?,"SELECT MIN(age), job FROM Person GROUP BY job" "With a Total of more than 149, what is Davis Love III's To par?","SELECT AVG(to_par) FROM table_name_88 WHERE player = ""davis love iii"" AND total > 149" "Which artist has the lowest albums? | Did you mean which artist has the least number of albums? | Yes, I mean it. which artist has the least number of albums?",SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT ( * ) ASC LIMIT 1 Calculate the average profit of prom brushed steel products.,SELECT SUM(T2.l_extendedprice * (1 - T2.l_discount) - T1.ps_supplycost * T2.l_quantity) / COUNT(T1.ps_partkey) FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_type = 'PROMO BRUSHED STEEL' What award was Denis Lawson nominated for in the Best Actor in a Musical category?,"SELECT award FROM table_name_95 WHERE category = ""best actor in a musical"" AND nominee = ""denis lawson""" "What shows for nationality when there is a rank larger than 6, and a Time of 2:14.95?","SELECT nationality FROM table_name_52 WHERE rank > 6 AND time = ""2:14.95""" What is the name of the player that had a debut in round 6?,"SELECT name FROM table_name_96 WHERE debut = ""round 6""" What are the id and address of the shops which have a happy hour in May?,"SELECT t1.address , t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May'" "Which name has a Roll larger than 297, and Years of 7–13?","SELECT name FROM table_name_1 WHERE roll > 297 AND years = ""7–13""" What are the ids of the faculty members who do not advise any student.,SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student What is the genre name of the film HUNGER ROOF?,SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' what's the estimated value where cover date is august 1962,"SELECT estimated_value FROM table_1217448_1 WHERE cover_date = ""August 1962""" "Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?","SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = ""Beacon Falls , Naugatuck , Middlebury , Prospect""" Show different teams in eliminations and the number of eliminations from each team.,"SELECT Team, COUNT(*) FROM elimination GROUP BY Team" Calculate the average age of employee in each department and state which department has the youngest employees.,"SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.BirthDate) + 1 , T3.Name FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 USING (BusinessEntityID) INNER JOIN Department AS T3 USING (DepartmentID) ORDER BY T1.BirthDate DESC LIMIT 1" "What is the average Points, when Date is ""February 2"", and when Attendance is less than 16,874?","SELECT AVG(points) FROM table_name_14 WHERE date = ""february 2"" AND attendance < 16 OFFSET 874" How many distinct kinds of injuries happened after season 2010?,SELECT COUNT(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.season > 2010 "How many papers were in the journal ""Iet Software/iee Proceedings - Software""?",SELECT COUNT(T1.JournalId) FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T2.FullName = 'Iet Software/iee Proceedings - Software' Show the names of customers who have at least 2 mailshots with outcome code 'Order'.,SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING count(*) >= 2 In what place was Tiger Woods of the United States?,"SELECT place FROM table_name_68 WHERE country = ""united states"" AND player = ""tiger woods""" Calculate the percentage salary of employees who handled orders shipped in 1996.,"SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', T2.ShippedDate) = '1996' THEN T1.Salary ELSE 0 END) AS REAL) * 100 / SUM(T1.Salary) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID" What is the match report for the game that was against Houston?,"SELECT match_report FROM table_name_12 WHERE opponent = ""houston""" What round was circuit Avus?,"SELECT MAX(round) FROM table_18095719_2 WHERE circuit = ""AVUS""" Show id and location of railways that are associated with more than one train.,"SELECT T2.Railway_ID , T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID HAVING COUNT(*) > 1" Who was the driver when the time in part 3 was 1:31.386?,"SELECT driver FROM table_20159025_1 WHERE part_1 = ""1:31.386""" What is the first episode number?,SELECT MIN(episode) FROM table_15187735_20 how many episodes has been directed by Mark K. Samuels ?,"SELECT COUNT(no_in_series) FROM table_2226817_12 WHERE directed_by = ""Mark K. Samuels""" Calculate the percentage of sales done at Sac State American River Courtyard.,SELECT CAST(COUNT(CASE WHEN T2.LocationName = 'Sac State American River Courtyard' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID What's the total number of gold where the total is less than 23 and the rank is over 10?,SELECT COUNT(gold) FROM table_name_96 WHERE total < 23 AND rank > 10 with a record of 63-76 what was the attendance?,"SELECT attendance FROM table_name_44 WHERE record = ""63-76""" What is team Yamaha with 3 points ranked?,"SELECT rank FROM table_name_8 WHERE team = ""yamaha"" AND points = 3" What are the id and name of the stations that have ever had more than 12 bikes available?,"SELECT DISTINCT T1.id, T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12" What is the minimum salary in each department?,"SELECT MIN(salary) , department_id FROM employees GROUP BY department_id" What is the assessment date of candidate id 121?,SELECT T2.assessment_date FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.candidate_id = 121 How many different nationalities do conductors have?,SELECT COUNT(DISTINCT Nationality) FROM conductor What is the record with the opponent as Carlton Jones?,"SELECT record FROM table_name_85 WHERE opponent = ""carlton jones""" How many churches are there?,SELECT count ( * ) from church Find the average age of students living in each dorm and the name of dorm.,"SELECT avg(T1.age) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" Tell me the 2008 for when 2001 of wta premier 5 tournaments,"SELECT 2008 FROM table_name_87 WHERE 2001 = ""wta premier 5 tournaments""" Which Title has an 1825 end term?,SELECT title FROM table_name_78 WHERE end_term = 1825 what is romanian when nuorese sardinian is [ˈkantata]?,"SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = ""[ˈkantata]""" How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?,"SELECT to_par FROM table_name_93 WHERE country = ""united states"" AND score < 72 AND place = ""t3"" AND player = ""ed furgol""" "Among the customers in Asia, how many customers are in debt?",SELECT COUNT(T1.n_name) FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN region AS T3 ON T1.n_regionkey = T3.r_regionkey WHERE T2.c_acctbal < 0 AND T3.r_name = 'ASIA' What are the ids and names for each of the documents?,"SELECT document_id , document_name FROM Documents" "What was the winning score on Aug 21, 1977?","SELECT winning_score FROM table_name_92 WHERE date = ""aug 21, 1977""" What medal was won in the 1996 Atlanta games in wrestling?,"SELECT medal FROM table_name_60 WHERE games = ""1996 atlanta"" AND sport = ""wrestling""" how many wineries have at least 4 wines?,select count ( * ) from ( SELECT Winery FROM WINE GROUP BY Winery HAVING count ( * ) > = 4 ) "Can you list all document descriptions that contain the word ""Initial""?",SELECT document_description FROM Document_Types WHERE document_description LIKE 'Initial%' When was the score 56-26?,"SELECT date FROM table_name_2 WHERE record = ""56-26""" How many countries spent $83.7 billion on international tourism in 2012?,"SELECT COUNT(_percentage_change) FROM table_29789_3 WHERE international_tourism_expenditure_2012 = ""$83.7 billion""" "In the 2008/2009 season one team had 39 tries against, how many losing bonuses did they have that year?","SELECT losing_bonus FROM table_13399573_4 WHERE tries_against = ""39""" Which cities do more than one employee under age 30 come from?,SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1 Name the total number of rank for 348cc petty manx,"SELECT COUNT(rank) FROM table_name_54 WHERE team = ""348cc petty manx""" What Stadium had a Result of w 20–16?,"SELECT stadium FROM table_name_25 WHERE result = ""w 20–16""" What is the time of the Ghantoot Racing and Polo Club?,"SELECT time FROM table_name_4 WHERE ground = ""ghantoot racing and polo club""" What are the full names and ages for all female students whose sex is F?,"SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'" Who is the original broadway performer for the character Colin Craven?,"SELECT original_broadway_performer FROM table_1901751_1 WHERE character = ""Colin Craven""" What is the school and gender of student34?,"SELECT T1.school , IIF(T3.name IS NULL, 'female', 'male') AS gender FROM enrolled AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T2.name = 'student34'" How many international and domestic passengers are there in the airport London Heathrow?,"SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = ""London Heathrow""" "what is the latest year when the venue is berlin, germany?","SELECT MAX(year) FROM table_name_35 WHERE venue = ""berlin, germany""" How many businesses from ward 42 have at least 5 failed inspection results between 1/1/2010 to 12/31/2015?,SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.inspection_date BETWEEN '2010-01-01' AND '2015-12-31' AND T1.ward = 42 AND T1.license_no IN ( SELECT license_no FROM ( SELECT license_no FROM inspection WHERE results = 'Fail' GROUP BY license_no HAVING COUNT(results) >= 5 ) ) Which gatchaman has eagle riders as lukan?,"SELECT gatchaman FROM table_17480471_3 WHERE eagle_riders = ""Lukan""" Can you tell me the Record that has the Score of 100-105?,"SELECT record FROM table_name_99 WHERE score = ""100-105""" What is the average number of stars received by the episode titled 'Wedding for Disaster.',SELECT AVG(T2.stars) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Wedding for Disaster'; "What is the area code of Bishopville, SC?",SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Bishopville' AND T2.state = 'SC' What's the name and gender of the staff with the job of Sales Person?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person""" "When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank?","SELECT MIN(rank) FROM table_name_6 WHERE nationality = ""united states"" AND time = ""58.06"" AND heat > 5" What time did the game start during week 1?,SELECT time___et__ FROM table_name_9 WHERE week = 1 What are the names of the chip models not used in full accreditation phones?,SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' Which trip started from the station with the largest dock count? Give me the trip id.,SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id = T2.id ORDER BY T2.dock_count DESC LIMIT 1 Name the channels when designation is pc700,"SELECT channels FROM table_142573_1 WHERE designation = ""PC700""" "For model volvo, how many cylinders does the car with the least accelerate have?",SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1; "What date was the score 3–3, and away team was Barnet?","SELECT date FROM table_name_96 WHERE score = ""3–3"" AND away_team = ""barnet""" How many draft picks are there at the Defensive End position?,"SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = ""Defensive End""" Which 1st prize ($) has a Winner of scott simpson (7)?,"SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = ""scott simpson (7)""" list the city of country USA?,"SELECT city from Addresses where country = ""USA""" How many vehicle theft data were recorded for a year with a population of 4465430?,SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE population = 4465430 What studio produced that movie with name 48 Hrs?,"SELECT Studio FROM film WHERE Title = ""48 Hrs""" Show me the location details,SELECT Location FROM University What is the first and last name of the faculty participating in the most activities?,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1" "Finally, which game type has the least number of games?",SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count ( * ) LIMIT 1 What are all the distinct asset models?,SELECT DISTINCT asset_model FROM Assets Tell me the number of bronze for silver of 0 and total less than 1,SELECT COUNT(bronze) FROM table_name_54 WHERE silver = 0 AND total < 1 "Yes, sorry that I didn't make it clear. I meant the corresponding name and ID of the country for Dublin as capital, in the ""country"" table.","SELECT country_name, country_id FROM country where Capital = ""Dublin""" How many cities have a regional population over 8000000?,SELECT count ( city ) FROM city WHERE regional_population > 8000000 What is the highest grid that has gregorio lavilla as the rider?,"SELECT MAX(grid) FROM table_name_89 WHERE rider = ""gregorio lavilla""" "Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?","SELECT MAX(overall) FROM table_name_19 WHERE college = ""oklahoma"" AND pick__number < 4" What are the names of the physicians who have 'senior' in their titles.,SELECT name FROM physician WHERE POSITION LIKE '%senior%' Who is listed under mens singles when the year location is 2009 doha?,"SELECT mens_singles FROM table_28138035_27 WHERE year_location = ""2009 Doha""" show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.,SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005 "On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?","SELECT deleted FROM table_name_35 WHERE listed = ""09/21/1984"" AND name = ""stauffer chemical company (lemoyne plant)""" "Who is the position for the 2009-2010 season, number 1?","SELECT position FROM table_name_26 WHERE season = ""2009-2010"" AND number = ""1""" How many manufacturers have headquarters in either Tokyo or Beijing?,SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' What are the amenities in the dorm that a student who has the last name of Smith lives in?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith' What was his record in 1987?,"SELECT record FROM table_name_79 WHERE date = ""1987""" what is the location of mr,"SELECT location from railway where Railway = ""MR""" "List all companies who worked in the movie 'Ultramarines: A Warhammer 40,000 Movie.'","SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T3.title = 'Ultramarines: A Warhammer 40,000 Movie'" "Of those three students, can you tell me which of them have more time spent in restaurants than Linda Smith?","SELECT T1.StuID, sum ( T2.Spent ) FROM Student AS T1 JOIN Visits_Restaurant AS T2 where city_code = ( select city_code from student where Fname = ""Linda"" AND Lname = ""Smith"" ) and Fname ! = ""Linda"" AND Lname ! = ""Smith"" GROUP BY T1.StuID HAVING sum ( T2.Spent ) > ( SELECT sum ( Spent ) FROM Student AS T1 JOIN Visits_Restaurant AS T2 ON T1.StuID = T2.StuID WHERE T1.Fname = ""Linda"" AND T1.Lname = ""Smith"" ) " Who has friends that are older than the average age? Print their friends and their ages as well,"SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)" Name the license for 2009-05-25 v 7.61,"SELECT license FROM table_19495707_1 WHERE latest_release_date_and_version = ""2009-05-25 v 7.61""" What was the highest assists for game 3?,SELECT high_assists FROM table_name_7 WHERE game = 3 Name the most of 2500-3000ft,SELECT MAX(2500 AS _3000ft) FROM table_1456056_1 How much is the amount to be paid by the company for the purchase order with the third highest freight amount?,"SELECT TotalDue FROM PurchaseOrderHeader ORDER BY Freight DESC LIMIT 2, 1" Which Director has a Role of melissa?,"SELECT director FROM table_name_80 WHERE role = ""melissa""" How many transaction does each account have? Show the number and account id.,"SELECT COUNT(*), account_id FROM Financial_transactions" List down all universities that scored below 50.,SELECT DISTINCT T2.university_name FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.score < 50 "List the object classes of image ID 36 with coordinates (0,0).",SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 36 AND T1.X = 0 AND T1.Y = 0 "what is the section code for the section title ""after"" for the document ""David CV""?","SELECT t2.section_code FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV"" and t2.section_title = ""after""" List the titles of the films starred by Elvis Marx.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.length BETWEEN 110 AND 150 AND T1.first_name = 'Russell' AND T1.last_name = 'Close' What is the id and last name of the driver who participated in the most races after 2010?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1" "For what grade was the project ""Too Close for Comfort"" for?",SELECT T1.grade_level FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Too Close for Comfort' "What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?",SELECT COUNT(national_university_of_ireland) FROM table_name_17 WHERE industrial_and_commercial_panel < 1 AND cultural_and_educational_panel > 0 Mention the names and credits of course registered by the students who were under the supervision of female professor with the highest teaching ability.,"SELECT T5.name, T5.credit FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T1.student_id = T3.student_id INNER JOIN registration AS T4 ON T3.student_id = T4.student_id INNER JOIN course AS T5 ON T4.course_id = T5.course_id WHERE T2.gender = 'Female' ORDER BY T2.teachingability DESC LIMIT 1" Name the first for countries of trinidad and tobago for hutchinson for years before 2004,"SELECT first FROM table_name_39 WHERE country = ""trinidad and tobago"" AND last = ""hutchinson"" AND year < 2004" What is the thai name of the transcription wan chan?,"SELECT thai_name FROM table_180802_3 WHERE transcription = ""wan chan""" What company does he work for?,"SELECT company FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida""" What is the bleeding time for the disseminated intravascular coagulation condition?,"SELECT COUNT(bleeding_time) FROM table_221653_1 WHERE condition = ""Disseminated intravascular coagulation""" What is the full name of the Document Control Manager who is in charge of all Level 1 approved documents?,"SELECT T1.FirstName, T1.MiddleName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Document AS T3 ON T3.Owner = T2.BusinessEntityID WHERE T2.JobTitle = 'Document Control Manager' AND T3.DocumentLevel = 1 AND T3.Status = 2 GROUP BY T1.FirstName, T1.MiddleName, T1.LastName" What are the countries of mountains with height bigger than 5000?,SELECT Country FROM mountain WHERE Height > 5000 What were the roles in 1961?,SELECT role FROM table_name_70 WHERE year = 1961 "What are the full names of the sales person whose bonuses are less than 1,000?","SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM SalesPerson AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Bonus < 1000" What 2007 has wimbledon as the tournament?,"SELECT 2007 FROM table_name_88 WHERE tournament = ""wimbledon""" "In widowed male customers ages from 40 to 60, how many of them has an income ranges from 3000 and above?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.age >= 40 AND T1.age <= 60 AND T1.MARITAL_STATUS = 'Widowed' AND T1.SEX = 'Male' AND T2.INCOME_K >= 2000 AND T2.INCOME_K <= 3000 "What is the name(s) of the place(s) with a population of less than 1,429?",SELECT official_name FROM table_name_38 WHERE population < 1 OFFSET 429 What are the name and publication date of the catalogs with catalog level number above 5?,"SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5" Which award category was the film series The Wire nominated for after 2005?,"SELECT category FROM table_name_20 WHERE result = ""nominated"" AND film_or_series = ""the wire"" AND year > 2005" How many faculty members participate in each activity? Return the activity names and the number of faculty members.,"SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID" "Name the date for clay surface and location of santos, brazil","SELECT date FROM table_name_84 WHERE surface = ""clay"" AND location = ""santos, brazil""" What is the role name and role description for employee called Ebba?,"SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = ""Ebba""" what's the result with district being florida 7,"SELECT result FROM table_1341604_10 WHERE district = ""Florida 7""" who was the winner /2nd for the British Champion Stakes race? ,"SELECT winner_2nd FROM table_24850630_4 WHERE race = ""British Champion Stakes""" "What 2011 has 2r as 2010, and a 2008 of A?","SELECT 2011 FROM table_name_72 WHERE 2010 = ""2r"" AND 2008 = ""a""" What was the score when the team was @ New Jersey? ,"SELECT score FROM table_22871239_5 WHERE team = ""@ New Jersey""" What is the name of all tracks in the album named Balls to the Wall?,"SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall"";" Which of the airport names contains the word 'international'?,SELECT name FROM airport WHERE name LIKE '%international%' What was the location of the game after game 6?,SELECT location FROM table_name_80 WHERE game > 6 What is the Primary Sponsor for the team owned by Randy Humphrey?,"SELECT primary_sponsor_s_ FROM table_name_4 WHERE owner_s_ = ""randy humphrey""" What is all the information regarding employees who are managers?,SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id What channel has station kdfw ++?,"SELECT channel_tv___dt__ FROM table_1353096_1 WHERE station = ""KDFW ++""" "What is Place, when Score is ""75-71-72-70=288""?",SELECT place FROM table_name_33 WHERE score = 75 - 71 - 72 - 70 = 288 "What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?","SELECT AVG(top_5) FROM table_name_72 WHERE tournament = ""u.s. open"" AND cuts_made > 10" In what year did the teams leave the conference?,SELECT MAX(left) FROM table_2419754_1 Count the number of students who did not enroll in any course.,SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment) "What to par has t5 as the place, with larry mize as the player?","SELECT to_par FROM table_name_49 WHERE place = ""t5"" AND player = ""larry mize""" Which game number was played against Georgia?,"SELECT MIN(game) FROM table_20928682_1 WHERE opponent = ""Georgia""" Can you show me the invoice numbers which are created before 1989-09-03?,"SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03""" What termini does the route with a population Area of aguilares have?,"SELECT termini FROM table_name_40 WHERE population_area = ""aguilares""" "Can you provide me with the list of id and status of orders of the customer named ""Jeramie""?","SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" "Show id, first name and last name for all customers and the number of accounts.","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name , count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" "Show the names of phones with carrier either ""Sprint"" or ""TMobile"".","SELECT Name FROM phone WHERE Carrier = ""Sprint"" OR Carrier = ""TMobile""" What was the surface in 1996?,SELECT surface FROM table_name_68 WHERE year = 1996 What is the organisation in 2011 that was nominated and the award of best info-ed programme host?,"SELECT organisation FROM table_name_8 WHERE year = 2011 AND result = ""nominated"" AND award = ""best info-ed programme host""" Show the location codes with at least 3 documents.,SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3 How many different staff ids in this table?,SELECT count ( distinct Staff_ID ) from Claims_Processing What is the Campanius term for an Unami Delaware term of palé·naxk?,"SELECT campanius__ca_1645_ FROM table_name_43 WHERE unami_delaware = ""palé·naxk""" How many video game types exist?,SELECT count(DISTINCT gtype) FROM Video_games "which episode was Transmitted on wednesday if the episode of ""307 vs."" was transmitted on friday? ","SELECT wednesday FROM table_18173916_8 WHERE friday = ""307 VS.""" What was the result for the contestant whose background was as a business major?,"SELECT result FROM table_19810459_1 WHERE background = ""Business major""" What is the total pounds of purchases in the year 2018 for all branches in London?,SELECT sum ( total_pounds ) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018 How many gold medals were awarded to teams ranked higher than 19?,SELECT COUNT(gold) FROM table_name_8 WHERE rank > 19 What is the Start Date of Policy ID 143?,SELECT Start_Date FROM Customer_Policies where Policy_ID = '143' When was the time of 12:49:08 first set?,"SELECT MIN(year) FROM table_name_7 WHERE time = ""12:49:08""" How many total rounds has lehigh as the college?,"SELECT COUNT(round) FROM table_name_90 WHERE college = ""lehigh""" What are the names of the physicians who have 'senior' in their titles.,SELECT name FROM physician WHERE POSITION LIKE '%senior%' "What is the winning score before 1959, with runner-up Jackie Pung?","SELECT winning_score FROM table_name_87 WHERE year < 1959 AND runner_s__up = ""jackie pung""" What are the last names of the teachers who teach the student called GELL TAMI?,"SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""GELL"" AND T1.lastname = ""TAMI""" "Which Player has a Round smaller than 5, and a School/Club Team of florida state?","SELECT player FROM table_name_77 WHERE round < 5 AND school_club_team = ""florida state""" How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?,"SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = ""rakuen -memorial tracks- (maxi-single)""" What is the average revenue of American movies in 2006?,"SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'United States of America' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2006" Which Track(s) is on 18 november 1985?,"SELECT track_s_ FROM table_name_86 WHERE date = ""18 november 1985""" In which country and state does staff with first name as Janessa and last name as Sawayn live?,"SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" What stadium was the 1994 Gator Bowl in?,"SELECT stadium FROM table_15190346_2 WHERE bowl_game = ""1994 Gator Bowl""" List the name and gender for all artists who released songs in March.,"SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Mar%""" "For each citizenship, how many singers are from that country?","SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship" What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20?,"SELECT AVG(pick) FROM table_name_76 WHERE player = ""marc lewis (lhp)"" AND round < 20" what is the name of the customer associated with customer ID 263?,SELECT customer_details FROM Customers WHERE Customer_ID = 263 How many types of restaurants are there in the Yosemite and Mono Lake area?,SELECT COUNT(T2.food_type) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'yosemite and mono lake area' What are the date and venue of each debate?,"SELECT Date , Venue FROM debate" Show titles of songs and names of singers.,"SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID" What was the introductory phrase for the episode with the production bode 6026?,SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026 Who was the opponent after week 16?,SELECT opponent FROM table_name_43 WHERE week > 16 Could you show me the IDs for all documents with budget types described as 'Government'?,"SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Government""" What is the category when Hy Conrad nominated in 2003?,"SELECT category FROM table_name_84 WHERE nominee_s_ = ""hy conrad"" AND year = 2003" Find the number of rooms located on each block floor.,"SELECT COUNT(*), T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor" What was the average money when the score was 74-72-75-71=292?,SELECT AVG(money___) AS $__ FROM table_name_82 WHERE score = 74 - 72 - 75 - 71 = 292 "Find the first names and last names of the authors whose institution affiliation is ""Google"".","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" What was the total number of weeks where the game played Ivor Wynne Stadium?,"SELECT COUNT(week) FROM table_21761882_4 WHERE location = ""Ivor Wynne Stadium""" How many points for 2005?,"SELECT COUNT(points) FROM table_10705060_1 WHERE season = ""2005""" What is the Opponent of the Game on October 20?,"SELECT opponent FROM table_name_50 WHERE date = ""october 20""" Who were the opposing teams on 08/02/1969?,"SELECT opposing_teams FROM table_name_83 WHERE date = ""08/02/1969""" What films did Burt Dukakis got star in?,SELECT T3.title FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.first_name = 'BURT' AND T2.last_name = 'DUKAKIS' Who had the most points and how many did they have on April 22? ,"SELECT high_points FROM table_27700530_15 WHERE date = ""April 22""" How many musicals has each nominee been nominated for?,"SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee" what is the sex of age 18,SELECT distinct sex FROM Student where age = 18 What school has the player of mike rosario?,"SELECT school FROM table_name_28 WHERE player = ""mike rosario""" What candidate is in Louisiana 6?,"SELECT candidates FROM table_1342331_18 WHERE district = ""Louisiana 6""" What country is the player moving to Hamburger SV from?,"SELECT country FROM table_name_36 WHERE moving_to = ""hamburger sv""" "Which Country has a Money ($) of 0, and a Place of t10?","SELECT country FROM table_name_93 WHERE money___$__ = 0 AND place = ""t10""" "What is Team, when Qual 1 is 1:16.417?","SELECT team FROM table_name_70 WHERE qual_1 = ""1:16.417""" What was the score on April 22?,"SELECT score FROM table_name_53 WHERE date = ""april 22""" Name all employees who were hired before year 1990.,"SELECT fname, lname FROM employee WHERE STRFTIME('%Y', hire_date) < '1990'" "WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?","SELECT AVG(votes) FROM table_name_14 WHERE constituency = ""dublin south"" AND spoilt < 3 OFFSET 387" When was steve bartalo picked?,"SELECT MAX(pick) FROM table_name_79 WHERE player = ""steve bartalo""" Which advisor has most number of students?,SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1 OK .HOW MANY ROOMS IN KING BED TYPE?,SELECT count ( * ) FROM Rooms WHERE bedtype = 'King' Which amount of lost had an against of more than 22 and 9 points?,SELECT lost FROM table_name_30 WHERE against > 22 AND points = 9 "Hom many musicians performed in the song ""Flash""?","SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = ""Flash""" What is Craig Whelihan's average when his yards are smaller than 0?,"SELECT SUM(avg) FROM table_name_76 WHERE player = ""craig whelihan"" AND yards < 0" What was week 3 score?,SELECT result FROM table_name_79 WHERE week = 3 Which Position has a Pick of 11 (via calgary)?,"SELECT position FROM table_name_8 WHERE pick = ""11 (via calgary)""" What is the airport description of the airport code A11?,SELECT Description FROM Airports WHERE Code = 'A11' What are the total number of domestic passengers at all London airports?,"SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE ""%London%""" How many general elections that have won smaller than 23 with candidates larger than 108?,SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108 "Excellent! Finally, can you show me what the ownership is of each of those stations?","SELECT t1.name,t2.Channel_ID,Owner FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'" What is the Venue of the WCQ5 Competition?,"SELECT venue FROM table_name_49 WHERE competition = ""wcq5""" What's the total sum of points scored by the Brisbane Broncos?,"SELECT SUM(points) FROM table_name_80 WHERE premiers = ""brisbane broncos""" Who was the participant or recipient for the Best Female Actor?,"SELECT participants_recipients FROM table_26282750_1 WHERE category = ""Best Female Actor""" List the course IDs and levels of person IDs from 40 to 50.,"SELECT T1.course_id, T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id BETWEEN 40 AND 50" "What were the investment earnings in a year when other local sources were $2,670,060 after 2001?","SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = ""$2,670,060""" "When west indes was a holder at the end of the series for the 1991 season with an england greater than 1, what is the smallest west indies?","SELECT MIN(west_indies) FROM table_name_92 WHERE holder_at_the_end_of_the_series = ""west indies"" AND england > 1 AND season = ""1991""" What are the purchase details of transactions with amount bigger than 10000?,SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 Compute the number of times Dennis Rodman recordedhigh rebounds given a regular season,"SELECT COUNT(rebounding_high) FROM table_25696729_8 WHERE season = ""Regular season""" "What was the April 7, 2008 score on a clay surface?","SELECT score FROM table_name_71 WHERE surface = ""clay"" AND date = ""april 7, 2008""" What tournament had an A in 2012 and Q2 in 2010?,"SELECT tournament FROM table_name_4 WHERE 2012 = ""a"" AND 2010 = ""q2""" What are all the spectral types for star mismis24-# is 1sw?,"SELECT spectral_type FROM table_10432351_1 WHERE star__pismis24__number_ = ""1SW""" "What is the bounding box of ""spoon"" in image id 1344?","SELECT T1.X, T1.Y, T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 1344 AND T2.OBJ_CLASS = 'spoon'" WHich player has the most all star games played?,SELECT * FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 1 What is the time/retired for grid 8?,SELECT time_retired FROM table_name_95 WHERE grid = 8 What is the building ID that has the most company offices?,SELECT T2.id FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT ( * ) DESC LIMIT 1 Which country has a lane greater than 6 and a mark of 6.63?,"SELECT country FROM table_name_80 WHERE lane > 6 AND mark = ""6.63""" What is the name of member in charge of greatest number of events?,SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 What is the frequency of the talk station?,"SELECT frequency FROM table_name_67 WHERE format = ""talk""" "For the tournament played on September 25, 1995, who was the Finals opponent?","SELECT opponent_in_the_final FROM table_name_15 WHERE date = ""september 25, 1995""" races held after 2017,SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T1.year > 2017 Who wore the episode with the production code of 1apx11?,"SELECT written_by FROM table_21994729_2 WHERE prod_code = ""1APX11""" What is the name of customers who do not use Cash as payment method.,SELECT customer_name FROM customers WHERE payment_method != 'Cash' How many different types of allergies are there?,SELECT count ( distinct allergy ) FROM Has_allergy What president was elected in 2010?,SELECT president FROM table_name_69 WHERE elected = 2010 "What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart?","SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = ""hank pfister sherwood stewart""" what cinema has the most showings in one day?,SELECT T2.name FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id ORDER BY sum ( T1.show_times_per_day ) DESC LIMIT 1 Which of them are higher than 100? | Do you mean among all roller costers or among the those longer than 3300? | Among those longer than 3300,SELECT Roller_Coaster_ID FROM roller_coaster WHERE LENGTH > 3300 and Height > 100 "Among the universities in United States of America, what is the percentage of female students in year 2016?",SELECT SUM(CAST(T2.pct_female_students * T2.num_students AS REAL) / 100) * 100 / SUM(T2.num_students) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'United States of America' AND T2.year = 2016 the 2010 clausura tournament?,"SELECT coefficient FROM table_30083499_1 WHERE tournament = ""2010 Clausura""" "What is 2004, when 2005 is ""Not Tier I""?","SELECT 2004 FROM table_name_31 WHERE 2005 = ""not tier i""" What was Fredrik Jacobson's score?,"SELECT score FROM table_name_88 WHERE player = ""fredrik jacobson""" Give the X and Y coordinates of the sample object of image ID 23 that has the 'cast' attribute class.,"SELECT T3.OBJ_SAMPLE_ID, T3.X, T3.Y FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID WHERE T3.IMG_ID = 23 AND T1.ATT_CLASS = 'cast'" "Which Bask has an Indoor track of 0, and a Swimming of 5?","SELECT MIN(bask) FROM table_name_73 WHERE indoor_track = ""0"" AND swimming = ""5""" Who is the senior employee and tell me first name? Tell me the hire date | What do you mean by senior employee? | What is the lowest hire date? tell me the first name.,"SELECT first_name, hire_date from employees order by hire_date limit 1" What college was founded in 1967?,SELECT main_campus_location FROM table_name_61 WHERE founded = 1967 Calculate the difference between running business in Glendale City and Mesa City.,SELECT SUM(CASE WHEN city = 'Glendale' THEN 1 ELSE 0 END) - SUM(CASE WHEN city = 'Mesa' THEN 1 ELSE 0 END) AS diff FROM Business WHERE active = 'true' How many players received Most Valuable Player award from 1969 to 1975?,SELECT COUNT(DISTINCT playerID) FROM awards_players WHERE year BETWEEN 1969 AND 1975 AND award = 'Most Valuable Player' How many tackles for the player with over 0 fumble recovries and 0 forced fumbles?,SELECT COUNT(total) FROM table_name_96 WHERE fumble_rec > 0 AND fumble_force = 0 What is the total cost for all the orders placed on 5/29/2013?,SELECT SUM(TotalDue) FROM PurchaseOrderHeader WHERE OrderDate LIKE '2013-05-29%' how many players are participated?,SELECT count ( distinct player ) from match_season Who is the composer of track Fast As a Shark?,"SELECT composer FROM tracks WHERE name = ""Fast As a Shark"";" What is the batting hand of MK Pandey?,SELECT T2.Batting_hand FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T1.Player_Name = 'MK Pandey' Please list the full names of all the sanitarians under the supervision of Darlisha Jacobs.,"SELECT first_name, last_name FROM employee WHERE title = 'Sanitarian' AND supervisor = ( SELECT employee_id FROM employee WHERE first_name = 'Darlisha' AND last_name = 'Jacobs' )" "What is the greatest position when the points are less than 21, and the played greater than 14?",SELECT MAX(position) FROM table_name_78 WHERE points < 21 AND played > 14 What is the brand name associated with the model 4x0?,"SELECT brand_name FROM table_24099628_1 WHERE model__list_ = ""4x0""" Find the country that the most papers are affiliated with.,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1 What is the i/o bus for the brand name Core i3-21xx?,"SELECT i_o_bus FROM table_24538587_11 WHERE brand_name__list_ = ""Core i3-21xx""" What is the F/Laps value associated with a position of 3rd?,"SELECT f_laps FROM table_name_97 WHERE position = ""3rd""" How many episodes were directed by Jeff Melman and 1.21million viewers?,"SELECT MIN(no_in_season) FROM table_28334498_3 WHERE directed_by = ""Jeff Melman"" AND us_viewers__millions_ = ""1.21""" Show the names of technicians in ascending order of quality rank of the machine they are assigned.,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank How many women have apps from the game-Finding fault category installed on their device?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id INNER JOIN app_events_relevant AS T3 ON T2.event_id = T3.event_id WHERE T1.age < 23 AND T1.gender = 'F' AND T3.is_active = 0 AND T3.is_installed = 1 Please list the names of the institutes with the percentage of male White students graduating in 2011 within 150 percent of normal/expected time over 20.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.grad_150 > 20 THEN T1.chronname ELSE NULL END AS T FROM institution_details T1 INNER JOIN institution_grads T2 ON T2.unitid = T1.unitid WHERE T2.year = 2011 AND T2.gender = 'M' AND T2.race = 'W' ) WHERE T IS NOT NULL Which rooms cost between 120 and 150? Give me the room names.,SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150 State the number of tweets from Michigan on Thursdays.,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Weekday = 'Thursday' AND T2.State = 'Michigan' What are the start date and end date of the booking that has booked the product named 'Book collection A'?,"SELECT T3.booking_start_date, T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'" "How many coaches does each club has? List the club id, name and the number of coaches.","SELECT T1.club_id , T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id" List the id of male users who gave ratings of less than 3 to French movies with running time of 2.,SELECT T1.userid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid INNER JOIN users AS T3 ON T1.userid = T3.userid WHERE T2.country = 'France' AND T2.runningtime = 2 AND T1.rating < 3 AND T3.u_gender = 'M' Which role have won at least two awards for the entire season and list out the name?,SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id GROUP BY T2.role HAVING COUNT(T2.award_id) > 1 I want to know the total number of national university of ireland with agricultural panel of 0 and labour panel more than 0,SELECT COUNT(national_university_of_ireland) FROM table_name_34 WHERE agricultural_panel = 0 AND labour_panel > 0 What is the Date of Tie no 3?,"SELECT date FROM table_name_67 WHERE tie_no = ""3""" Position of fullback has what highest weight?,"SELECT MAX(weight) FROM table_name_33 WHERE position = ""fullback""" Provide the ID and ISO code of Belgium.,"SELECT COUNTry_id, COUNTry_iso_code FROM COUNTry WHERE COUNTry_name = 'Belgium'" "Who is the customer with an order shipped on March 5, 2013, in the eastern region?",SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Ship Date` = '2013-03-05' How many different production codes does the episode directed by Dominic Polcino have?,"SELECT COUNT(production_code) FROM table_20613292_1 WHERE directed_by = ""Dominic Polcino""" Who drive the car that went under 60 laps and spun off?,"SELECT driver FROM table_name_25 WHERE laps < 60 AND time_retired = ""spun off""" list the life spans of all representatives,SELECT Lifespan FROM representative Find the id of songs that are available in mp4 format and have resolution lower than 1000.,"SELECT f_id FROM files WHERE formats = ""mp4"" INTERSECT SELECT f_id FROM song WHERE resolution < 1000" What are the names of artists who are Male and are from UK?,"SELECT artist_name FROM artist WHERE country = ""UK"" AND gender = ""Male""" "What is the average Attendance for the game on November 1, 1981?","SELECT AVG(attendance) FROM table_name_5 WHERE date = ""november 1, 1981""" Name the US dance when the year is more than 1985,SELECT us_dance FROM table_name_89 WHERE year > 1985 What is the full name of the instructor who has a course named COMPUTER LITERACY?,"SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = ""COMPUTER LITERACY""" What is the name of the episode written by alison cross?,"SELECT title FROM table_27969432_2 WHERE written_by = ""Alison Cross""" Which school has a Player of donte greene?,"SELECT school FROM table_name_6 WHERE player = ""donte greene""" What was the record on January 17?,"SELECT record FROM table_name_61 WHERE date = ""january 17""" What is the weekly rank where the number is 4?,SELECT weekly_rank FROM table_11753080_2 WHERE _number = 4 Who is the player for south carolina college?,"SELECT player_name FROM table_20871703_1 WHERE college = ""South Carolina""" How many times has this user logged in?,SELECT user_login FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 what is the minimum booked count for products booked,SELECT min ( booked_count ) FROM products_booked How many unemployed students are there that have been absent for 6 months?,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.`name` = T2.name WHERE T1.`month` = 6 Which class Pos has a Team of jml team panoz?,"SELECT class AS pos FROM table_name_71 WHERE team = ""jml team panoz""" what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?,SELECT MAX(floor_exercise) FROM table_name_81 WHERE pommel_horse = 9.65 AND horizontal_bar > 9.475 what's the played status when the club was banwen rfc?,"SELECT played FROM table_name_88 WHERE club = ""banwen rfc""" I'd like to know how many staff are in charge in June?,"SELECT Num_of_shaff_in_charge FROM happy_hour where Month = ""June""" In what year of school is the forward Iman McFarland?,"SELECT year FROM table_name_90 WHERE position = ""forward"" AND name = ""iman mcfarland""" How many rating stars did Avatar had?,SELECT T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.title = 'Avatar' Name the D 42 which has a D 46 of r 26,"SELECT d_42 FROM table_name_6 WHERE d_46 = ""r 26""" What is the name and salary of the employee with the id 242518965?,"SELECT name , salary FROM Employee WHERE eid = 242518965" What is the margin for the Masters Tournament (2) championship?,"SELECT margin FROM table_name_34 WHERE championship = ""masters tournament (2)""" What are the categories that business number 15 belongs to?,SELECT T2.category_name FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.business_id = 15 What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%?,"SELECT k_themistokleous FROM table_name_65 WHERE i_kasoulidis = ""30.1%""" Find the names of the items that did not receive any review.,SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review) "Which papers have ""Stephanie Weirich"" as an author?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Stephanie"" AND t1.lname = ""Weirich""" What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?,"SELECT MIN(number_of_seats) FROM table_name_21 WHERE current_status = ""retired"" AND quantity < 8" How many people were first elected when john roane was the incumbent?,"SELECT COUNT(first_elected) FROM table_2668243_25 WHERE incumbent = ""John Roane""" and which of those states has the most number of customers?,SELECT state FROM bank GROUP BY state ORDER BY sum ( no_of_customers ) DESC LIMIT 1 Which call sign has a frequency greater than 98.5MHz and ERP W under 155?,SELECT call_sign FROM table_name_41 WHERE frequency_mhz > 98.5 AND erp_w < 155 What are the different cities that have more than 100 memberships?,SELECT DISTINCT city FROM branch WHERE membership_amount >= 100 What was Head Coach Jim Morris's best finish?,"SELECT cws_best_finish FROM table_name_25 WHERE head_coach = ""jim morris""" Count the number of financial transactions that the account with the name 337 has.,"SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = ""337""" What are the first and last names of the instructors who teach the top 3 number of courses?,"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" Which year has a Round of 17?,"SELECT year FROM table_name_2 WHERE round = ""17""" What are the keywords of the episode which received the 2nd-highest number of votes?,SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.votes NOT IN ( SELECT MAX(T1.votes) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id ) ORDER BY T1.votes DESC LIMIT 1 My apologies! I meant to ask for the list to be filtered to show only the Service Names which occur more than 2 times on the First_Notification_of_Loss table?,SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count ( * ) > 2 How many universities have a campus fee higher than average?,SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees) What was the date of the game played at Victoria Park?,"SELECT date FROM table_name_80 WHERE venue = ""victoria park""" What are the countries that have cartoons on TV that were written by Todd Casey?,SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' Which series # had 0.852 U.S. viewers(millions)?,"SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = ""0.852""" Which college has fb as the position?,"SELECT college FROM table_20871703_1 WHERE position = ""FB""" What are the ids of the three least expensive rooms?,SELECT RoomId FROM Rooms ORDER BY basePrice LIMIT 3 How many advisors are in charge of advising all the students in 1st year?,SELECT COUNT(T1.p_id_dummy) FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_1' AND T2.student = 1 "Find the number of characteristics that the product ""caraway"" has.","SELECT count ( * ) 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 = ""caraway""" What are their full names?,"SELECT lname, fname FROM Student WHERE StuID NOT IN ( SELECT t2.stuid FROM Has_allergy AS T1 JOIN Student as T2 on T1.StuID = T2.StuID ) " Show director with the largest number of show times in total.,SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1 "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.","SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC" How many salespersons haven't met quota?,SELECT COUNT(BusinessEntityID) FROM SalesPerson WHERE Bonus = 0 What is the high assists score of Nick Collison (11)?,"SELECT high_assists FROM table_name_85 WHERE high_rebounds = ""nick collison (11)""" What are all the jobs of males?,SELECT job FROM Person WHERE gender = 'male' List first name and last name of customers living in city Lockmanfurt.,"SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = ""Lockmanfurt"";" What is the average number of gold medals for clubs?,SELECT avg(Gold) FROM club_rank "Can you update this list to show the Department Name, Department Address, and number of students for the 3 departments with the highest number of students?","SELECT T2.dept_name , T2.dept_address , count ( * ) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count ( * ) DESC LIMIT 3" Which building houses the room that has the minimum capacity?,SELECT building FROM classroom order by capacity limit 1 What is every entry for Atlantic Europe when Central Europe is Wisconsin stage?,"SELECT atlantic_europe FROM table_22860_1 WHERE central_europe = ""Wisconsin Stage""" What is the job title of employee who did inspection ID 52269?,SELECT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52269 What was the score of the game on February 8?,"SELECT score FROM table_name_34 WHERE date = ""february 8""" Find the country of all appelations who have at most three wines.,SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING COUNT(*) <= 3 Name the man of the maatch for sheffield scimitars,"SELECT man_of_the_match FROM table_17120964_5 WHERE opponent = ""Sheffield Scimitars""" "Among the crew members of the simpson 20s born in the New York city, how many of them were born after the year 1970?","SELECT COUNT(name) FROM Person WHERE birth_region = 'New York' AND SUBSTR(birthdate, 1, 4) > '1970';" Date of september 28 had what record?,"SELECT record FROM table_name_12 WHERE date = ""september 28""" "Among the incidents with the generic description of ""BATTERY"" in the IUCR classification, how many of them do not have arrests made?",SELECT SUM(CASE WHEN T2.arrest = 'FALSE' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.primary_description = 'BATTERY' That's great! Now can you update this list to include the total number of students for each department?,"SELECT T2.dept_name, count ( * ) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code group by T1.dept_code" How many high assists where there for the team of caja laboral?,"SELECT COUNT(high_assists) FROM table_27756474_2 WHERE team = ""Caja Laboral""" "On what surface was the game played that had a score of 4–6, 6–4, [8–10]?","SELECT surface FROM table_name_51 WHERE score = ""4–6, 6–4, [8–10]""" What is the percentage of total orders from stores in Orange County in 2018?,SELECT CAST(SUM(CASE WHEN T2.County = 'Orange County' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.OrderDate LIKE '%/%/18' Name the most events with cuts made more than 6 and top 25 more than 30,SELECT MAX(events) FROM table_name_92 WHERE cuts_made > 6 AND top_25 > 30 "Which customer has rented more movies, RUTH MARTINEZ or LINDA WILLIAMS?","SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T1.customer_id) AS num FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE (T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ') OR (T1.first_name = 'LINDA' AND T1.last_name = 'WILLIAMS') GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1" display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.,"SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )" "What previous club was born on October 22, 1993?","SELECT previous_club FROM table_name_48 WHERE date_of_birth = ""october 22, 1993""" show me the ids of the students that are both female and play football,"SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" Show the most common builder of railways.,SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1 Name the mens singles for jeliazko valkov dobrinka peneva,"SELECT mens_singles FROM table_14903491_1 WHERE mixed_doubles = ""Jeliazko Valkov Dobrinka Peneva""" List the genres of Forrest Gump movie.,SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.title = 'Forrest Gump' What is the reference for the romani title da.i.su.ki?,"SELECT reference FROM table_name_4 WHERE romaji_title = ""da.i.su.ki""" What is the home team score for St Kilda's home team?,"SELECT home_team AS score FROM table_name_27 WHERE home_team = ""st kilda""" Find the different billing countries for all invoices.,SELECT distinct(BillingCountry) FROM INVOICE Count the number of Professors who have office in building NEB.,"SELECT count(*) FROM Faculty WHERE Rank = ""Professor"" AND building = ""NEB""" What is the population of the country of McDowell?,"SELECT population FROM table_22815568_7 WHERE county = ""McDowell""" How many figures for votes Khuzestan were there when the percentage was 34.50?,"SELECT COUNT(votes_khuzestan) FROM table_1827900_1 WHERE _percentage_of_votes_khuzestan = ""34.50""" "Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches?","SELECT SUM(matches) FROM table_name_1 WHERE nationality = ""england"" AND lost > 39 AND win__percentage = 28.7 AND drawn < 37" How many instructors are there?,SELECT count ( * ) FROM instructor Name the position for british columbia,"SELECT position FROM table_28059992_2 WHERE college = ""British Columbia""" What is the aircraft for 21 crews?,"SELECT type_of_aircraft FROM table_23508196_5 WHERE number_of_crews = ""21""" What about Wales ?,"SELECT count ( * ) FROM journalist WHERE Nationality = ""Wales"" and years_working > 1" what was the crowd when the scores are 10.12 (72) – 8.11 (59)?,"SELECT MAX(crowd) FROM table_1139835_1 WHERE scores = ""10.12 (72) – 8.11 (59)""" What are the product stock numbers with the attribute processed by most entries?,SELECT t1.product_stock_number FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = ( SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count ( * ) DESC LIMIT 1 ) What is the lowest average finish having top 5s of 0?,SELECT MIN(avg_finish) FROM table_name_7 WHERE top_5 < 0 Which region do most of the athletes are from?,SELECT T2.region_name FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id GROUP BY T2.region_name ORDER BY COUNT(T1.person_id) DESC LIMIT 1 "What is the average Total with a Rank greater than 1, and a Bronze larger than 8?",SELECT AVG(total) FROM table_name_3 WHERE rank > 1 AND bronze > 8 What is the highest year with a formula of Grand Prix?,"SELECT MAX(year) FROM table_name_25 WHERE formula = ""grand prix""" "How many instruments does the song ""Le Pop"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What are the service name of booking id 2?,"SELECT service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id where t2.booking_id = ""2""" What is the Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph?,"SELECT COUNT(tues_1_june) FROM table_25220821_3 WHERE mon_31_may = ""20' 15.35 111.761mph""" Find the team names of the universities whose enrollments are smaller than the average enrollment size.,SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university) What district does Harlan Hagen represent?,"SELECT district FROM table_1342013_5 WHERE incumbent = ""Harlan Hagen""" what is the average of rating stars?,SELECT avg ( stars ) FROM Rating Which Venue was used when the Home team was geelong?,"SELECT venue FROM table_name_47 WHERE home_team = ""geelong""" "what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni?","SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = ""clay regazzoni""" List down the names of the establishments with the highest risk level and failed the inspection.,SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 3 AND T2.results = 'Fail' What were grid 7's laps?,SELECT MIN(laps) FROM table_name_72 WHERE grid = 7 Which tournament has a 2011 of 1r?,"SELECT tournament FROM table_name_88 WHERE 2011 = ""1r""" "What type is the school located in Macon, Georgia?","SELECT type FROM table_1973842_1 WHERE location = ""Macon, Georgia""" How many departments are led by heads who are not mentioned?,SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management); What is his hometown?,SELECT Hometown FROM people where name = 'Paul Hamm' How many images have objects with the attributes of polka dot?,SELECT COUNT(T2.OBJ_SAMPLE_ID) FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.ATT_CLASS = 'polka dot' "For the episode who won the award held by Jupiter Award, describe award name, aired date and rating of that episode.","SELECT T1.award, T2.air_date, T2.rating FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.organization = 'Jupiter Award' AND T1.result = 'Winner';" When Spencer is the county what is total of the population (2010) (rank)? ,"SELECT COUNT(population__2010___rank_) FROM table_14253123_1 WHERE county_name = ""Spencer""" What organization ranks 68?,"SELECT organization FROM table_name_14 WHERE rank = ""68""" Thank you! Can you please confirm the school code of the History Department?,SELECT T3.SCHOOL_CODE FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' "What is the label for October 21, 1981?","SELECT label FROM table_name_37 WHERE date = ""october 21, 1981""" Display the first name of all employees.,SELECT first_name FROM employees What are the location ids of those?,"SELECT Name,Location_ID FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""shuttle""" Show the customer id and number of accounts with most accounts.,"SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1" "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.","SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;" I want the type for host interface of pci saa7146 tmx320av7111,"SELECT type FROM table_name_89 WHERE host_interface = ""pci saa7146 tmx320av7111""" What is the district number that Chris Van Hollen serving?,SELECT T2.district FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Chris Van Hollen' AND T2.district IS NOT NULL GROUP BY T2.district How many customers are there in the country with the highest number of customers?,SELECT COUNT(CustomerID) FROM Customers GROUP BY Country ORDER BY COUNT(CustomerID) DESC LIMIT 1 How many condiments were sold in 1997?,SELECT COUNT(T2.ProductID) FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID INNER JOIN `Order Details` AS T3 ON T2.ProductID = T3.ProductID INNER JOIN Orders AS T4 ON T3.OrderID = T4.OrderID WHERE T1.CategoryName = 'Condiments' AND T1.CategoryID = 2 AND T4.OrderDate LIKE '1997%' What is the silver medal count of the team that finished with 8 bronze medals?,SELECT SUM(silver) FROM table_name_41 WHERE bronze = 8 "For each hometown, how many teachers are there?","SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown" What was the score when the Tie no was 6?,SELECT score FROM table_name_89 WHERE tie_no = 6 What team did the Montreal Canadiens visit when the record was 0-3?,"SELECT home FROM table_name_3 WHERE visitor = ""montreal canadiens"" AND record = ""0-3""" what is the salary of the the ID 78699,SELECT salary FROM instructor where id = 78699 How many 2nd legs are there where home (1st leg) is Independiente?,"SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = ""Independiente""" add a column for order id,"SELECT invoice_number, order_id from Shipments" How many departments offer any degree?,SELECT COUNT(DISTINCT department_id) FROM Degree_Programs Find the ids and names of members who are under age 30 or with black membership card.,"SELECT name , member_id FROM member WHERE Membership_card = 'Black' OR age < 30" Can you order the table by the count of photos in ascending order?,"SELECT T1.name , count ( * ) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY count ( * ) " Find the name of the nurse who has the largest number of appointments.,SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1 "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.","SELECT Kids FROM Reservations WHERE CheckIn = ""2010-09-21"" AND FirstName = ""DAMIEN"" AND LastName = ""TRACHSEL"";" Name the record for october 11,"SELECT record FROM table_name_34 WHERE date = ""october 11""" Which opponent has a week of 11?,SELECT opponent FROM table_name_49 WHERE week = 11 What season has races larger than 18 and 36 points?,SELECT season FROM table_name_35 WHERE races > 18 AND points = 36 What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?,SELECT left_office FROM table_26362472_1 WHERE election_number = 11 Can you list each student's first and last name? | Students majoring in 600? | Yes that are over 18 as well.,"SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major = 600" "What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?",SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995 "What is the zip code of the address where the teacher with first name ""Lyla"" lives?","SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = ""Lyla""" Please list the texts of the top 3 tweets with the most number of unique users seeing the tweet.,SELECT text FROM twitter ORDER BY Reach DESC LIMIT 3 "Find the name of all the cities and states. | you want the columns of town_city and state_province_county,right? | Umm. Give me the names and the states please",SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses "Hello! Can you show me a list of all of the student names and their associated addresses and cities? | Hi. The following table is a list of all the student name details and their associated addresses line 1 and cities. | Thank you! Can you filter the list to show just the rows that correspond with the 3 most recent ""date from"" values?","SELECT T3.student_details, T1.city, T1.line_1 FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id ORDER BY date_from DESC LIMIT 3" What was Shaun Murphy's outcome in the Premier League Snooker championship held before 2010?,"SELECT outcome FROM table_name_1 WHERE championship = ""premier league snooker"" AND year < 2010" Can you please show me the average damage for all storms?,SELECT avg ( damage_millions_USD ) FROM storm What is the minimum grade point of all students who live in NYC?,"SELECT min ( T2.gradepoint ) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" When has Score of 4–5 and quebec nordiques as Visitor?,"SELECT date FROM table_name_92 WHERE score = ""4–5"" AND visitor = ""quebec nordiques""" What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?,"SELECT university FROM table_27369069_4 WHERE soccer_stadium = ""terrain #2 of Complexe sportif Claude-Robillard""" "Show name, class, and date for all races.","SELECT name , CLASS , date FROM race" How many Rock Hill City School projects have teacher donors?,SELECT COUNT(DISTINCT T1.teacher_acctid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Rock Hill' AND is_teacher_acct = 't' "Among the cases reported in the ward with Edward Burke as the alderman and happened in the community area with the highest population, provide the report number of the crime with the highest beat.","SELECT T2.report_no FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T1.alderman_first_name = 'Edward' AND T1.alderman_last_name = 'Burke' ORDER BY T2.beat DESC, T3.population DESC LIMIT 1" "What was the score for a match before 13, and a home game on April 21, 2008?","SELECT score FROM table_name_11 WHERE match < 13 AND home_away = ""home"" AND date = ""april 21, 2008""" What's the nickname for Dan Castellaneta?,SELECT nickname FROM Person WHERE name = 'Dan Castellaneta'; List all females aged 24 to 26 devices' locations.,"SELECT T2.longitude, T2.latitude FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'F24-26' AND T1.gender = 'F'" What was the party of the first elected candidate in 1954?,SELECT party FROM table_1341738_36 WHERE first_elected = 1954 What was the print name in 07/87?,"SELECT print_name FROM table_name_39 WHERE date_completed = ""07/87""" Return the names of songs for which format is mp3 and resolution is below 1000.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" "Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?","SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = ""k230ap""" What is the type of loan and the transfer fee loan?,"SELECT nat FROM table_name_32 WHERE type = ""loan"" AND transfer_fee = ""loan""" "What college did the player from Fort Lauderdale, FL attend?","SELECT college FROM table_name_79 WHERE hometown = ""fort lauderdale, fl""" "What is the title of every song, and how many weeks was each song at #1 for One Direction?","SELECT song_s__—_weeks FROM table_19542477_9 WHERE artist_s_ = ""One Direction""" "What is the name, city, and country of the airport with the lowest altitude?","SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1" Please list the names of all the dishes on page 1 of menu ID12882.,SELECT T3.name FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T1.menu_id = 12882 AND T1.page_number = 1 List all the customer company names and cities located in Canada.,"SELECT CompanyName, City FROM Customers WHERE Country = 'Canada'" "which episode was Transmitted on friday if the episode of ""515 the adventures of tintin"" was transmitted on monday? ","SELECT friday FROM table_18173916_8 WHERE monday = ""515 The Adventures of Tintin""" "What is Record, when Date is 1996?","SELECT record FROM table_name_45 WHERE date = ""1996""" What are the womens singles of naoko fukuman kurumi yonao?,"SELECT womens_singles FROM table_12104319_1 WHERE womens_doubles = ""Naoko Fukuman Kurumi Yonao""" Which National team has a Year of total?,"SELECT national_team FROM table_name_6 WHERE year = ""total""" What is the minimum market share of all browsers?,SELECT min ( market_share ) FROM browser What event did Rastislav Turecek participate in?,"SELECT event FROM table_name_88 WHERE name = ""rastislav turecek""" What game modes are there when the pinyin is zhígǎn yī bǐ ?,"SELECT game_modes FROM table_1616608_2 WHERE pinyin = ""Zhígǎn Yī Bǐ""" What country was rank 1?,"SELECT country FROM table_name_68 WHERE rank = ""1""" "What is the name of the customer who was involved in the most policies, please?",SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1 What is the region id for region name Denmark?,SELECT region_id FROM region WHERE region_name = 'Denmark' What is the series number for the episode written by janet leahy?,"SELECT MIN(no_in_series) FROM table_2818164_4 WHERE written_by = ""Janet Leahy""" What was the player's result at the U.S. Open of the player who finished 6th at the Open Ch?,"SELECT us_open FROM table_1506950_9 WHERE open_ch = ""6th""" List all staff names with their gender...,"SELECT staff_name, staff_gender FROM Staff" What was the result on 27 august 2003?,"SELECT result FROM table_name_81 WHERE date = ""27 august 2003""" What is the total revue of those 3 companies?,SELECT sum ( revenue ) FROM manufacturers where revenue>100.0 "How many instruments does the song ""Badlands"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" Find the name all districts with city area greater than 10 or population larger than 100000,SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000 What is the total number of Viewers when the rank is #40?,"SELECT COUNT(viewers) FROM table_name_30 WHERE rank = ""#40""" Which date had less than 3 goals and a result of (w) 2-0?,"SELECT date FROM table_name_23 WHERE goals < 3 AND result = ""(w) 2-0""" How many series had 18.77 million viewers?,"SELECT COUNT(series__number) FROM table_14835826_1 WHERE us_viewers__millions_ = ""18.77""" Name the lowest Televotes which has monika sokolovska and a Rank larger than 15?,"SELECT MIN(televotes) FROM table_name_54 WHERE performer = ""monika sokolovska"" AND rank > 15" "In 2008, what was the world ranking that ranked 5th in L.A.?","SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = ""5th"" AND year_of_publication = ""2008""" In which cities were the 1976 winter and summer games held?,"SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name IN ('1976 Summer', '1976 Winter')" What is the Date of the Int'l Debut of 1967?,"SELECT date FROM table_name_66 WHERE year = ""1967""" Which building housed course ID 443?,SELECT building FROM SECTION WHERE course_id = 443 What is the density in Garran?,"SELECT MIN(density___km²_) FROM table_1174162_1 WHERE suburb = ""Garran""" How many classes are there? | Did you mean the number of distinct type classes of ships? | yes,select count ( distinct Class ) from Ship "What is the average length for the song ""Ma Ke Jaisi""?","SELECT length FROM table_name_53 WHERE song_title = ""ma ke jaisi""" Can you list the name and membership amount of the branch that had the least amount of memberships that were opened in the year 2017?,"SELECT name, membership_amount FROM branch where membership_amount = ( select min ( membership_amount ) from branch where open_year like ""%2017%"" ) " What is the highest number played when there were less than 13 losses and a goal difference of +46?,"SELECT MAX(played) FROM table_name_89 WHERE lost < 13 AND goal_difference = ""+46""" What are the members listed with the sorority classification,"SELECT member FROM table_10054296_1 WHERE classification = ""Sorority""" How many years was the operating profit (s$m) 717.1?,"SELECT COUNT(profit_before_taxation__s) AS $m_ FROM table_161591_2 WHERE operating_profit__s$m_ = ""717.1""" Find the names of the top 10 airlines that operate the most number of routes.,"SELECT T1.name , T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10" What was the attendance in week 8?,SELECT MAX(attendance) FROM table_14875671_1 WHERE week = 8 Calculate the percentage of medium tip length in the list. List out the time when users of medium tip length join Yelp.,"SELECT CAST(SUM(CASE WHEN T1.tip_length = 'Medium' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.tip_length), T2.user_yelping_since_year FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id" Find the id of customers whose address contains WY state and do not use credit card for payment.,"SELECT customer_id FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code ! = ""Credit Card""" What is the title of course id 787?,SELECT title from course where course_id = 787 "Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals?","SELECT SUM(game) FROM table_name_5 WHERE points < 10 AND october > 12 AND opponent = ""@ washington capitals""" Who had the best time of 1:32.269?,"SELECT name FROM table_name_21 WHERE best = ""1:32.269""" Name the home for 16 april 2008,"SELECT home FROM table_name_11 WHERE date = ""16 april 2008""" hi. How many products are there?,SELECT count ( * ) FROM Products How many years entered service when there were 13 locomotives?,"SELECT COUNT(entered_service) FROM table_name_89 WHERE locomotive = ""13""" What is the sum of total pounds of purchase in year 2018 for all branches in London?,SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018 What is the name of Member ID 4?,select Member_Name from member where Member_ID = 4 Can you tell me the Chassis that has the Entrant of trivellato racing team?,"SELECT chassis FROM table_name_61 WHERE entrant = ""trivellato racing team""" What is the nationality of the person who played small forward?,"SELECT nationality FROM table_name_82 WHERE position = ""small forward""" What are the dates of latest revision for those?,"SELECT date_of_latest_revision FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" How many cities have a branch with 100 membership?,SELECT count ( distinct city ) frOM branch WHERE membership_amount > 100 find the number of players whose points are lower than 30 in each position.,"SELECT count(*) , POSITION FROM player WHERE points < 30 GROUP BY POSITION" What are the names of body builders?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID On which day and in which zip code was the min dew point lower than any day in zip code 94107?,"SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)" "What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?","SELECT code__iata_ FROM table_name_20 WHERE total_cargo__metric_tonnes_ = ""1,838,894""" List out the series code of countries using Euro as their currency unit.,SELECT DISTINCT T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Euro' "How many papers are published in year 2000 under the conference ""SSPR""?",SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year = 2000 AND T2.ShortName = 'SSPR' How much does it cost for United States and Byron nelson?,"SELECT COUNT(money___) AS $__ FROM table_name_94 WHERE country = ""united states"" AND player = ""byron nelson""" "Which game number was located in Prudential Center 15,086?","SELECT MIN(game) FROM table_27700375_6 WHERE location_attendance = ""Prudential Center 15,086""" Where is the director Dariush Mehrjui from?,"SELECT country FROM table_name_99 WHERE director = ""dariush mehrjui""" Indicate the start date of patient Walter Bahringer's care plan.,SELECT DISTINCT T2.start FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Walter' AND T1.last = 'Bahringer' Name the item ordered by Jonathan Doherty with the highest quantity in the East region.,SELECT T3.`Product Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Jonathan Doherty' AND T2.Region = 'East' ORDER BY T1.Quantity DESC LIMIT 1 Find the addresses and author IDs of the course authors that teach at least two courses.,"SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2" What are the first names of the different drivers who won in position 1 as driver standing and had more than 20 points?,SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20 What are the id and name of the mountains that have at least 2 photos?,"SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING COUNT(*) >= 2" Name the lowest round for when pole position and winning driver is michael schumacher,"SELECT MIN(round) FROM table_name_27 WHERE fastest_lap = ""michael schumacher"" AND winning_driver = ""michael schumacher"" AND pole_position = ""michael schumacher""" Which country has the Highest mountain of rettlkirchspitze?,"SELECT country FROM table_name_68 WHERE highest_mountain = ""rettlkirchspitze""" "Which Points 1 has a Team of atherton collieries, and a Position smaller than 8?","SELECT MAX(points_1) FROM table_name_11 WHERE team = ""atherton collieries"" AND position < 8" Which show returns april 3 with a Previous Network of lifetime?,"SELECT retitled_as_same FROM table_name_44 WHERE returning = ""april 3"" AND previous_network = ""lifetime""" "What is the Score of the match on a clay surface with an outcome of winner, at the tournament ciudad juárez, and an Opponent in the final of estefania craciún?","SELECT score FROM table_name_48 WHERE surface = ""clay"" AND outcome = ""winner"" AND tournament = ""ciudad juárez"" AND opponent_in_the_final = ""estefania craciún""" How many official social media does Mark Warner have?,SELECT CASE WHEN T1.facebook IS NOT NULL THEN 1 END + CASE WHEN T1.instagram IS NOT NULL THEN 1 END + CASE WHEN T1.twitter IS NOT NULL THEN 1 END + CASE WHEN T1.youtube IS NOT NULL THEN 1 END AS COUNTSOCIAL FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.first_name = 'Mark' AND T2.last_name = 'Warner' Find the last name of the staff member who processed the complaint of the cheapest product.,SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1 Find the total number of scientists.,SELECT COUNT(*) FROM scientists "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.","SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC" What is the tie no that has southport as the away team?,"SELECT tie_no FROM table_name_28 WHERE away_team = ""southport""" what is the president max salary?,select Max_SALARY from jobs where JOB_TITLE = 'President' Which city did Victoria P Ashworth work in?,SELECT T2.city FROM employee AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.fname = 'Victoria' AND T1.minit = 'P' AND T1.lname = 'Ashworth' "From the 'Injured' statuses of the subject, what is the ratio of weapons used are knife against handgun?",SELECT CAST(SUM(T1.subject_weapon = 'Knife') AS REAL) * 100 / SUM(T1.subject_weapon = 'Handgun') FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_statuses = 'Injured' Find the name of the room with the maximum occupancy.,SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1; "What is the CBSA name and type in York, ME?","SELECT T1.CBSA_name, T1.CBSA_type FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'York' AND T2.state = 'ME'" Provide the full name of all current female legislators that chose Republican as their political party.,"SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Republican' AND T1.gender_bio = 'F' AND T2.END > DATE() GROUP BY T1.bioguide_id" What are the names of those directors?,SELECT director FROM Movie GROUP BY director HAVING count ( * ) = 1 What is the product name and price for the least expensive hardware product?,"SELECT product_name,product_price FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price asc LIMIT 1" What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?,SELECT AVG(rank) FROM table_name_97 WHERE sales__billion_$_ > 146.56 AND profits__billion_$_ = 11.68 Give the population of the country where Queimados city belongs.,SELECT T2.Population FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Name = 'Queimados' Name the week for steve toll,"SELECT week FROM table_23265433_2 WHERE transition = ""Steve Toll""" What is the ordinary income rate when short-term capital gain rate is 28%?,"SELECT ordinary_income_rate FROM table_name_42 WHERE short_term_capital_gain_rate = ""28%""" Which airport has SEB as its IATA code?,"SELECT airport FROM table_name_86 WHERE iata = ""seb""" Name the opponent with record of 38-34-10,"SELECT opponent FROM table_name_97 WHERE record = ""38-34-10""" What are the security forces when the civilians are 202?,"SELECT security_forces FROM table_21636599_2 WHERE civilians = ""202""" "For each phone, show its names and total number of stocks.","SELECT T2.Name , sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name" How many poles did David Price Racing win?,"SELECT MAX(poles) FROM table_17289224_1 WHERE team_name = ""David Price Racing""" Who was the away team at junction oval?,"SELECT away_team FROM table_name_81 WHERE venue = ""junction oval""" Which shop has the highest score?,SELECT * FROM shop order by score desc limit 1 How many students live in each city?,"SELECT city_code , count(*) FROM Student GROUP BY city_code" What is the sum of draws for teams with against of 1731 and under 10 losses?,SELECT SUM(draws) FROM table_name_67 WHERE against = 1731 AND losses < 10 How many appointments are there?,SELECT count(*) FROM appointment How about their last names?,SELECT last_name FROM employees How many schools which have suburban metro are there in Bethlehem?,SELECT COUNT(schoolid) FROM projects WHERE school_city = 'Bethlehem' AND school_metro = 'suburban' Who constructed the car that had a grid of 6?,"SELECT constructor FROM table_name_29 WHERE grid = ""6""" Which Platelet count has a Condition of factor v deficiency?,"SELECT platelet_count FROM table_name_39 WHERE condition = ""factor v deficiency""" What was the result in Illinois 7?,"SELECT results FROM table_1341453_15 WHERE district = ""Illinois 7""" Show the different statuses and the numbers of roller coasters for each status.,"SELECT Status , COUNT(*) FROM roller_coaster GROUP BY Status" What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?,"SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = ""James Cameron"")" What is the day 3 when day 4 is fr.?,"SELECT day_3 FROM table_name_45 WHERE day_4 = ""fr.""" Please list the full names of all the customers who have rented the film with the highest replacement cost.,"SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id ORDER BY T4.replacement_cost DESC LIMIT 1" Show the first name of all employees and their salary for employees whose first name does not contain the letter M.,"SELECT first_name, salary FROM employees WHERE first_name NOT LIKE '%M%'" What is the Date that has MARTIN of 7–9% and no Undecided?,"SELECT date FROM table_name_93 WHERE undecided = ""–"" AND martin = ""7–9%""" Provide the list of product IDs and names under the meat/poultry category.,"SELECT T2.ProductName, T1.CategoryName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products )" "What are the distinct names of customers with an order status of Pending, sorted by customer id?","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""Pending"" ORDER BY T2.customer_id" "Among the procedures that cost more than 1000, which were not specialized in by physician John Wen?","SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" "Tell me the lowest week for attedance less thaan 32,738",SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738 which customers placed an order,SELECT * FROM customers where customer_id in ( select customer_id from Orders ) What is the age of the student named Linda Smith?,"SELECT Age FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" Who is every driver for the location of Estoril Circuit?,"SELECT driver FROM table_23293785_2 WHERE location = ""Estoril Circuit""" Please list the names of all the products ordered in order CA-2011-112326 in superstores in the center.,SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'CA-2011-112326' Please list the Nicknames of the players who got in the Hall of Fame in 2007.,SELECT DISTINCT T1.nameNick FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T2.year = 2007 What competition did Parramatta Eels join after 1982?,"SELECT competition FROM table_name_54 WHERE year > 1982 AND opponent = ""parramatta eels""" "What is the date left university of the student with the last name ""Fahey""?","SELECT T2.date_left_university FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Fahey""" What was the date of the tournament in Scotland with a score of 270 (–18)?,"SELECT date FROM table_name_71 WHERE score = ""270 (–18)"" AND location = ""scotland""" What is the Tie no for Away Team Ipswich Town?,"SELECT tie_no FROM table_name_26 WHERE away_team = ""ipswich town""" What is the time of ufc 154?,"SELECT time FROM table_name_44 WHERE event = ""ufc 154""" In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?,"SELECT T1.season , T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'" "What is the score of the 1996 Emarate cup on March 25, 1996?","SELECT score FROM table_name_79 WHERE competition = ""1996 emarate cup"" AND date = ""march 25, 1996""" What was the away team score when the home team was the Brisbane Lions?,"SELECT away_team AS score FROM table_name_83 WHERE home_team = ""brisbane lions""" What is the built year of architect id 2?,SELECT built_year FROM mill WHERE architect_id = 2 Find the number of tweets in record.,SELECT count(*) FROM tweets "How much Gold has a Nation of mongolia, and a Total larger than 18?","SELECT SUM(gold) FROM table_name_37 WHERE nation = ""mongolia"" AND total > 18" "Which WYSIWYG Editor has a User-selectable themes of yes, and an Unread message tracking of session, and an Image attachment of plugin?","SELECT wysiwyg_editor FROM table_name_79 WHERE user_selectable_themes = ""yes"" AND unread_message_tracking = ""session"" AND image_attachment = ""plugin""" Tell me the category of na director,"SELECT category FROM table_name_75 WHERE director = ""na""" What is the symbol for Windpower in China?,"SELECT wind_power__wp_ FROM table_11347578_1 WHERE country = ""China""" What is the average number of pieces for boards that started in 1941 and were released after 2001?,"SELECT AVG(pieces) FROM table_name_14 WHERE start = ""1941"" AND release > 2001" "Find the names of all the products whose stock number starts with ""2"".","SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE ""2%""" What is the date recorded of Hate?,"SELECT recorded FROM table_name_34 WHERE translation = ""hate""" How many receptions does Chris Watton with yards of less than 1?,"SELECT COUNT(rec) FROM table_name_84 WHERE player = ""chris watton"" AND yards < 1" Which Final has a Run 2 of 1:27.58?,"SELECT final FROM table_name_50 WHERE run_2 = ""1:27.58""" What is the difference of female and male audiences in number who viewed horror movies?,"SELECT SUM(IIF(T2.u_gender = 'F', 1, 0)) - SUM(IIF(T2.u_gender = 'M', 1, 0)) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid INNER JOIN movies2directors AS T3 ON T3.movieid = T1.movieid WHERE T3.genre = 'horror'" What is the project title of the school located at latitude 42003718 and longitude -87668289?,SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_latitude = 42003718 AND T2.school_longitude = -87668289 What were the number of laps led by the driver with a finish position of 14?,"SELECT laps AS Led FROM table_name_38 WHERE fin_pos = ""14""" What is the record of the 73-82 score?,"SELECT record FROM table_name_32 WHERE score = ""73-82""" Who was the girl on week 1 that preceded week 2's Kamila Sulewska?,"SELECT week_1 FROM table_name_12 WHERE week_2 = ""kamila sulewska""" "How many bronze medals did the nation have that had less than 3 silver, 5 gold and ranked better than 31?",SELECT SUM(bronze) FROM table_name_97 WHERE silver < 3 AND rank < 31 AND gold = 5 What is the highest diff with drawn of 6 and play larger than 18?,SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6 AND played > 18 Find the checking balance of the accounts whose savings balance is higher than the average savings balance.,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM savings)) What was the mintage when the theme was Santa Claus?,"SELECT mintage FROM table_name_15 WHERE theme = ""santa claus""" "When is the birthday of the actor who played ""Sully""?",SELECT T2.`Date of Birth` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Sully' How many drivers have participated in 30 or fewer races?,SELECT COUNT ( * ) FROM ( 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 ) "What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5?",SELECT MAX(2009) FROM table_name_10 WHERE 2006 < 280.4 AND 2007 < 2.2 AND 2010 < 3.5 "What is the highest Tournaments, when Pro Debut is ""July 2002""?","SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = ""july 2002""" Show me the details of all professors | do you mean all information about them? | Yes,select * from Faculty "For each classroom, report the classroom number and the number of grades using it.","SELECT classroom , count(DISTINCT grade) FROM list GROUP BY classroom" List all the complaints narratives made by the customer named Brenda and last name Mayer.,SELECT T2.`Consumer complaint narrative` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Brenda' AND T1.last = 'Mayer' The entrepreneur Adam Weaver was featured in which episode?,"SELECT episode FROM table_name_28 WHERE entrepreneur_s_ = ""adam weaver""" What is his room number?,"SELECT room FROM Faculty WHERE Fname = ""Jerry"" AND Lname = ""Prince""" What is the IDOE Profile in North Manchester?,"SELECT idoe_profile FROM table_1984697_85 WHERE city___town = ""North Manchester""" What was the game number of the game played against Charlotte?,"SELECT COUNT(game) FROM table_name_67 WHERE team = ""charlotte""" What are the ids of the problems reported by staff first name Lacey?,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = ""Lacey""" "From 2000 to 2010, in which year did the studio entertainment segment make the most revenue?",SELECT `Year` FROM revenue WHERE `Year` BETWEEN 2000 AND 2010 ORDER BY `Studio Entertainment[NI 1]` DESC LIMIT 1 List the names of phones in ascending order of price.,SELECT Name FROM phone ORDER BY Price ASC "What are the total amount of money in the invoices billed from Chicago, Illinois?","SELECT sum(total) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL"";" How many became customers before that?,SELECT count ( * ) FROM customers where date_became_customer < ( SELECT t1.date_became_customer FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) DESC LIMIT 1 ) what is the highest number of goals did the player with 27 asists score,SELECT MAX(field_goals) FROM table_19722233_5 WHERE assists = 27 What is the size of the smallest part in a jumbo case container?,SELECT MIN(p_size) FROM part WHERE p_container = 'JUMBO CASE' Name the number of number in season for 3.09,"SELECT COUNT(no_in_season) FROM table_2226817_4 WHERE production_code = ""3.09""" Return the titles of films that include 'Deleted Scenes' in their special feature section.,SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%' What is the episode number for series 17?,SELECT episode__number FROM table_20205538_4 WHERE series__number = 17 When the team is Toronto how many times did they place third?,"SELECT COUNT(third_place) FROM table_1571238_2 WHERE team = ""Toronto""" How many different football events are there?,SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Football' What is the nationality of the Team Purdue?,"SELECT nationality FROM table_name_73 WHERE school_club_team = ""purdue""" What is the sum of all gold medals for Algeria when total medals is less than 3?,"SELECT SUM(gold) FROM table_name_98 WHERE nation = ""algeria"" AND total < 3" "Who was the centerfold model when the issue's pictorial was amanda beard, reby sky , girls of montauk ?","SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = ""Amanda Beard, Reby Sky , Girls of Montauk""" List all the attribute classes of image ID 22.,SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T2.IMG_ID = 22 what is the family name?,SELECT T1.family_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT ( * ) DESC LIMIT 1 Which company have a higher sales? | do you mean which company have a highest sales? | yes,select Name from company order by Sales_in_Billion desc limit 1 Please add their IDs into the table?,"SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 2" Which ministers are not a part of the Progress Party?,SELECT minister FROM party WHERE party_name != 'Progress Party' Find the name of accounts whose checking balance is below the average checking balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking) Which Country has a Place of 2?,"SELECT country FROM table_name_60 WHERE place = ""2""" Indicate the courtesy title of the 3 employees who have the lowest salary.,SELECT TitleOfCourtesy FROM Employees ORDER BY Salary LIMIT 3 How many patients' prescriptions are made by physician John Dorian?,"SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = ""John Dorian""" "What is the average result of the question ""What is your age?"" in 2014's survey?","SELECT CAST(SUM(T2.AnswerText) AS REAL) / COUNT(T2.UserID) AS ""avg"" FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2014 AND T1.questiontext LIKE 'What is your age?'" How many clubs are there?,SELECT count(*) FROM club what player went to ul-monroe,"SELECT player FROM table_name_7 WHERE school = ""ul-monroe""" What are the first names of all students who are older than 20?,SELECT fname FROM student WHERE age > 20 List out the total pages of Wikipedia in Catalan language.,SELECT pages FROM langs "When was the Balayan, Batangas campus founded?","SELECT founded FROM table_name_41 WHERE location = ""balayan, batangas""" What is the average number of floors at 170 Fourth Avenue North?,"SELECT AVG(floors) FROM table_name_76 WHERE street_address = ""170 fourth avenue north""" "What was the Attendance on May 12, when the New York Yankees were the Opponent?","SELECT attendance FROM table_name_71 WHERE opponent = ""new york yankees"" AND date = ""may 12""" How many publishers in Japan released a game on X360 in 2011?,SELECT COUNT(T3.game_publisher_id) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T4.platform_name = 'X360' AND T3.release_year = 2011 AND T1.region_name = 'Japan' Do both of them have doctorates?,"SELECT count ( * ) FROM professor WHERE dept_code = ""HIST"" and prof_high_degree = ""Ph.D.""" How many user profiles in this table?,select count ( * ) from user_profiles "What are the different classes of races, and how many races correspond to each?","SELECT CLASS , count(*) FROM race GROUP BY CLASS" How many movies have made at least 1 Billion at the box office?,SELECT COUNT(movie_id) FROM movie WHERE revenue > 1000000000 what is march 27-29 when november 3 is 133?,"SELECT march_27_29 FROM table_25355392_2 WHERE november_3 = ""133""" "What are the names of conductors, ordered by age?",SELECT Name FROM conductor ORDER BY Age ASC Name the product that sold the most quantity.,SELECT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID ORDER BY T1.Quantity DESC LIMIT 1 "Among the parts shipped by rail on 1st December, 1995, list part names with 10% discount.",SELECT T2.p_name FROM partsupp AS T1 INNER JOIN part AS T2 ON T1.ps_partkey = T2.p_partkey INNER JOIN lineitem AS T3 ON T1.ps_partkey = T3.l_partkey WHERE T3.l_discount = 0.1 AND T3.l_shipdate = '1995-12-01' AND T3.l_shipmode = 'RAIL' "Which player is from the United States, and played for the Bowling Green Falcons (CCHA) as their College/Junior/Club Team (League)?","SELECT player FROM table_name_38 WHERE nationality = ""united states"" AND college_junior_club_team__league_ = ""bowling green falcons (ccha)""" What is the Week number with a result of l 31–28?,"SELECT COUNT(week) FROM table_name_77 WHERE result = ""l 31–28""" What krypton has an argon of 20.85?,"SELECT krypton FROM table_name_18 WHERE argon = ""20.85""" Name the longest Catalan language Wikipedia page title and state the number of different words in this page.,"SELECT title, words FROM pages WHERE title = ( SELECT MAX(LENGTH(title)) FROM pages )" Where is the partially deleted site of fibers public supply wells located?,"SELECT partially_deleted FROM table_name_65 WHERE name = ""fibers public supply wells""" What is the least common birthplace of people?,SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT ( * ) LIMIT 1 Show all product names without an order.,SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id "For each election cycle, report the number of voting records.","SELECT Election_Cycle , count(*) FROM VOTING_RECORD GROUP BY Election_Cycle" what is the total sack for mike green when fumr is less than 0?,"SELECT SUM(sack) FROM table_name_40 WHERE player = ""mike green"" AND fumr < 0" "Who was the winner of the prize zł 1,226,711?","SELECT winner FROM table_name_39 WHERE prize = ""zł 1,226,711""" "what's the result for first elected in 1948 , 1964","SELECT result FROM table_1341472_15 WHERE first_elected = ""1948 , 1964""" Show the number of different airports which are the destinations of the American Airlines?,SELECT count ( DISTINCT dst_apid ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' "What is the gold when the total is less than 2, and rank is 3 and Canada is the nation?","SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = ""canada""" How many movies were made before 2000?,SELECT count(*) FROM Movie WHERE YEAR < 2000 What clay surface edition had an opponent of miho saeki?,"SELECT edition FROM table_name_2 WHERE surface = ""clay"" AND opponent = ""miho saeki""" Name the player for new orleans saints,"SELECT player FROM table_2508633_2 WHERE nfl_team = ""New Orleans Saints""" Which major has least number of students? List the major and the number of students.,"SELECT Major , count ( * ) FROM Student GROUP BY Major ORDER BY count ( Major ) ASC LIMIT 1" Calculate the total payment of orders for Vegie-spread product.,SELECT SUM(T2.UnitPrice * T2.Quantity * (1 - T2.Discount)) AS sum FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Vegie-spread' Which episode has ulrika jonsson and michael mcintyre on sean's team?,"SELECT episode FROM table_23292220_4 WHERE seans_team = ""Ulrika Jonsson and Michael McIntyre""" what is the built year of the ship id 3,SELECT Built_Year FROM ship where Ship_ID = 3 How long is the total lesson time took by customer with first name Rylan and last name Goodwin?,"SELECT sum ( T1.lesson_time ) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin""" What are the ids for courses in the Fall of 2009 or the Spring of 2010?,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 What year was the position 6/13?,"SELECT year FROM table_name_75 WHERE position = ""6/13""" What country has the order number 711871-711880?,"SELECT country FROM table_2351952_1 WHERE order_number = ""711871-711880""" List all the types of forms.,SELECT DISTINCT form_type_code FROM forms "Opponent of @ blue jays, and a Date of october 6 had what score?","SELECT score FROM table_name_19 WHERE opponent = ""@ blue jays"" AND date = ""october 6""" "What is the position number when there were 29 points, and less than 2 is lost?",SELECT COUNT(position) FROM table_name_86 WHERE points = 29 AND lost < 2 Find the number of airports whose name contain the word 'International'.,SELECT count(*) FROM airports WHERE name LIKE '%International%' "Which parties have delegates in both the ""Appropriations"" committee and the ""Economic Matters"" committee?","SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Appropriations"" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Economic Matters""" What's the total number of games with more than 20 points for the 1976 season?,"SELECT COUNT(games) FROM table_name_89 WHERE season = ""1976"" AND points > 20" What is the original air date in series 360?,SELECT COUNT(original_air_date) FROM table_18428024_3 WHERE no_in_series = 360 When 1 (5) is the races what is the team name?,"SELECT team_name FROM table_22737506_1 WHERE races = ""1 (5)""" What is the occupation and response of female customers within the number of inhabitants range of 20 to 25?,"SELECT DISTINCT T1.OCCUPATION, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.SEX = 'Female' AND T3.INHABITANTS_K >= 20 AND T3.INHABITANTS_K <= 25" "Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?","SELECT COUNT(total) FROM table_name_23 WHERE first_round = ""0"" AND finals < 5" Show the names of countries that have more than one roller coaster.,SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1 "What is Incumbent, when District is ""Louisiana 4""?","SELECT incumbent FROM table_name_7 WHERE district = ""louisiana 4""" "What was the Score at the Auckland, New Zealand Tournament?","SELECT score FROM table_name_7 WHERE tournament = ""auckland, new zealand""" What is the number of points when the played is less than 30?,SELECT COUNT(points) FROM table_name_42 WHERE played < 30 Show the names of students who have a grade higher than 5 and have at least 2 friends.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2 "What is the resulting loss when a save is ||12,838||48–35?","SELECT loss FROM table_name_50 WHERE save = ""||12,838||48–35""" What are the names of all aircrafts that can cover more distances than average?,SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft) What buildings have faculty offices?,SELECT DISTINCT building FROM Faculty How many data were given on 2010/2011 in Brazil?,"SELECT COUNT(2010 AS _11) FROM table_27712_2 WHERE country = ""Brazil""" "What is the restaurant's name at ""41.9532864854"" latitude and ""-87.7673790701422"" longitude?",SELECT dba_name FROM establishment WHERE latitude = 41.9532864854 AND longitude = -87.7673790701422 AND facility_type = 'Restaurant' if the bbi is 4/39 what is the average,"SELECT average FROM table_28798161_3 WHERE bbi = ""4/39""" Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent?,"SELECT pitcher FROM table_name_5 WHERE opponent = ""cleveland indians"" AND season = ""1994""" How many female Professors do we have?,"SELECT COUNT(*) FROM Faculty WHERE Sex = 'F' AND Rank = ""Professor""" What driver has a Time/Retired of 2:16:38.0?,"SELECT driver FROM table_name_19 WHERE time_retired = ""2:16:38.0""" What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?,"SELECT cName , enr FROM College WHERE enr > 10000 AND state = ""LA""" List all car plates in the capital of Wilno since the year of 1937.,"SELECT car_plates__since_1937_ FROM table_11654169_1 WHERE capital = ""Wilno""" Show all investor details.,SELECT Investor_details FROM INVESTORS How many female students were there in Pierre and Marie Curie University in 2015?,SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 AND T2.university_name = 'Pierre and Marie Curie University' What was the difference in home team and away team win percentages across all divisions in 2010?,SELECT CAST(COUNT(CASE WHEN FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(FTR) - CAST(COUNT(CASE WHEN FTR = 'A' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(FTR) DIFFERENCE FROM matchs WHERE season = 2010 What player is from Ohio State college?,"SELECT player FROM table_11677691_9 WHERE college = ""Ohio State""" "What is the region of stores which have type of ""Town"" in the list?",SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.Type = 'Town' THEN T1.Region END AS T FROM Regions T1 INNER JOIN `Store Locations` T2 ON T2.StateCode = T1.StateCode ) WHERE T IS NOT NULL What was Sony's revenue?,SELECT Revenue FROM manufacturers WHERE name = 'Sony' What are the first names of student who only took one course?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1 List all information about courses sorted by credits in the ascending order.,SELECT * FROM COURSE ORDER BY Credits What's the percentage in 2001 in Manitoba where the percentage in 2011 is 0.8%?,"SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = ""0.8%"" AND province = ""Manitoba""" "Among all asian restaurants in N. Milpitas Blvd., Milpitas, how many of them have restaurant ID greater than 385?",SELECT COUNT(T1.id_restaurant) AS num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'milpitas' AND T2.food_type = 'asian' AND T1.street_name = 'n milpitas blvd' AND T1.id_restaurant > 385 Find the average rank of winners in all matches.,SELECT AVG(winner_rank) FROM matches Show the people that have been comptroller the most times and the corresponding number of times.,"SELECT Comptroller, COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1" When was the product with the highest unit price shipped?,SELECT t1.shippedDate FROM orders AS t1 INNER JOIN orderdetails AS t2 ON t1.orderNumber = t2.orderNumber ORDER BY t2.priceEach DESC LIMIT 1 How many stations were able to sell item 5 on January 2014?,"SELECT COUNT(DISTINCT T2.station_nbr) AS number FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE SUBSTR(`date`, 1, 7) = '2014-01' AND item_nbr = 5" "Among the action movies from the USA, how many of them are not in English?",SELECT COUNT(T1.movieid) FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'USA' AND T1.isEnglish = 'F' AND T2.genre = 'Action' What are the names of artists who are Male and are from UK?,"SELECT artist_name FROM artist WHERE country = ""UK"" AND gender = ""Male""" What is the value of the Democratic Alternative for the poll released by Malta Today?,"SELECT democratic_alternative FROM table_name_31 WHERE polling_institute = ""malta today""" What time was the game in week 2?,SELECT time FROM table_name_15 WHERE week = 2 "Among the players whose short handed assists are greater or equal to 7, what is the final standing of the team with the most number of assists? Indicate the year to which the most number of assists was achieved and the name of the team.","SELECT T2.rank, T2.year, T2.name FROM Scoring AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.SHA >= 7 ORDER BY T1.A DESC LIMIT 1" Name the number of episodes for s hacksaw,"SELECT COUNT(episode) FROM table_15187735_8 WHERE segment_b = ""s Hacksaw""" What are the names of the top 3 artists with the largest number of songs?,SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count ( * ) DESC LIMIT 3 What are all of the area where distance is marathon and month held is february,"SELECT location FROM table_26166836_2 WHERE distance = ""Marathon"" AND month_held = ""February""" what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″?,"SELECT AVG(ngc_number) FROM table_name_70 WHERE constellation = ""leo"" AND declination___j2000__ = ""°42′13″""" List the name of all products along with the number of complaints that they have received.,"SELECT t1.product_name , count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name" What is the full name of the employee who was responsible for the most inspection in March 2016?,"SELECT T3.first_name, T3.last_name FROM ( SELECT T1.employee_id, COUNT(T1.inspection_id) FROM inspection AS T1 WHERE strftime('%Y-%m', T1.inspection_date) = '2016-03' GROUP BY T1.employee_id ORDER BY COUNT(T1.inspection_id) DESC LIMIT 1 ) AS T2 INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id" Thanks for that! Can you filter this list to show only the Store ID and Store Name for stores with a district name of Khanewal District?,"SELECT t1.store_id, t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = ""Khanewal District""" What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?,"SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" "Among the cars with 8 cylinders, what is the name of the one that's the most expensive?",SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.cylinders = 8 ORDER BY T2.price DESC LIMIT 1 What is the Strain name of Species Thiomicrospira crunogena?,"SELECT strain FROM table_name_24 WHERE species = ""thiomicrospira crunogena""" Which home team played against Geelong?,"SELECT home_team FROM table_name_39 WHERE away_team = ""geelong""" Return the names and template ids for documents that contain the letter w in their description.,"SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE ""%w%""" What are the phone numbers of all customers and all staff members?,SELECT phone_number FROM customers UNION SELECT phone_number FROM staff What is the opening date of the musical at the adelphi theatre?,"SELECT opening_date FROM table_name_6 WHERE classification = ""musical"" AND theatre = ""adelphi theatre""" What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7.,"SELECT SUM(rank) FROM table_name_5 WHERE name = ""fernando cavenaghi"" AND appearances < 7" "Which Total is the highest one that has a Rank of 1, and a Gold larger than 11?","SELECT MAX(total) FROM table_name_24 WHERE rank = ""1"" AND gold > 11" What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?,SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.5 What is the lowest number of people in attendance when the record was 9–26?,"SELECT MIN(attendance) FROM table_name_7 WHERE record = ""9–26""" What is the membership level with the most people?,SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1 What are the names of people who are not entrepreneurs?,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur) What time was the race for the country of france?,"SELECT time FROM table_name_37 WHERE country = ""france""" how many candidates with result being new seat democratic gain,"SELECT COUNT(candidates) FROM table_1341604_10 WHERE result = ""New seat Democratic gain""" What was the method when the time was 1:01?,"SELECT method FROM table_name_51 WHERE time = ""1:01""" Name the 20 questions when centerfold model is cherie witter,"SELECT 20 AS _questions FROM table_1566848_6 WHERE centerfold_model = ""Cherie Witter""" What are the names of the schools with the top 3 largest class sizes?,SELECT cName FROM college ORDER BY enr DESC LIMIT 3 State the publisher name for publisher ID 877? Calculate its average year to date sales.,"SELECT T2.pub_name, AVG(T1.ytd_sales) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.pub_id = '0877' GROUP BY T2.pub_name" What is the constructor for Jackie Stewart's car?,"SELECT constructor FROM table_name_3 WHERE driver = ""jackie stewart""" Who was the game played against on 2004-02-28 at Skytteholms IP?,"SELECT opponents FROM table_name_84 WHERE venue = ""skytteholms ip"" AND date = ""2004-02-28""" What is the Ratt of the year with a 78 long?,"SELECT ratt FROM table_name_97 WHERE long = ""78""" Tell me the tournament for kathy horvath opponent,"SELECT tournament FROM table_name_95 WHERE opponent = ""kathy horvath""" yes | LastName or FirstName? | lastname,"SELECT count ( distinct LastName ) FROM list" What is its id?,SELECT 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 Show the id of University of Orléans.,SELECT id FROM university WHERE university_name = 'University of Orléans' how many railway there,SELECT count ( * ) from railway Return the apartment number and the number of rooms for each apartment.,"SELECT apt_number , room_count FROM Apartments" Who was Gil's partner on 10–12 july 2009,"SELECT partnering FROM table_18042031_16 WHERE date = ""10–12 July 2009""" What is the appelation of Giana | What is Giana? | Sorry Giana is the name of wine,SELECT appelation FROM WINE where name = 'Giana' "For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score.",SELECT CAST(SUM(CASE WHEN T2.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Welcome to the Dollhouse' list results by scientists name,"SELECT T3.Code , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T1.Name" What are the profits of Wells Fargo (in billions)?,"SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = ""Wells Fargo""" "During the act, Playing on Glasses, what was the semi-final?","SELECT semi_final FROM table_23429629_4 WHERE act = ""Playing on Glasses""" What river has the 17th-longest length overall? Specify it's length.,"SELECT Name, Length FROM river ORDER BY Length DESC LIMIT 16, 1" "What was the result of the September 8, 1985 game?","SELECT result FROM table_name_3 WHERE date = ""september 8, 1985""" How many races took place on the Indianapolis Motor Speedway track?,"SELECT COUNT(race_name) FROM table_22673956_1 WHERE track = ""Indianapolis Motor Speedway""" Return all the information for all employees without any department number.,"SELECT * FROM employees WHERE department_id = ""null""" Who is the Batsman from the year 1982?,"SELECT batsmen FROM table_name_83 WHERE year = ""1982""" How many is the high assist total for players from panama?,"SELECT MAX(assists) FROM table_29743928_3 WHERE country = ""Panama""" What is the average enrollment?,SELECT avg ( enr ) FROM college How many Laps did Bob Wollek have?,"SELECT AVG(laps) FROM table_name_5 WHERE driver = ""bob wollek""" Which venue had a losing team of south sydney rabbitohs?,"SELECT venue FROM table_name_16 WHERE losing_team = ""south sydney rabbitohs""" what is the number of enrollment of the central institution?,"SELECT enrollment FROM table_20887670_1 WHERE institution = ""Central""" Provide the enlisted organizations of student160 and status of his/her payment due.,"SELECT T1.organ, T2.bool FROM enlist AS T1 INNER JOIN no_payment_due AS T2 ON T2.name = T1.name WHERE T1.name = 'student160'" Which product has the highest total amount of quantity sold? Calculate its overall total price.,"SELECT T1.Name, SUM(T2.Quantity * T1.Price) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID, T1.Name ORDER BY SUM(T2.Quantity) DESC LIMIT 1" Name the ensemble with silver medals more than 1,SELECT ensemble FROM table_name_21 WHERE silver_medals > 1 "What is the lowest week that has 51,499 as the attendance?",SELECT MIN(week) FROM table_name_66 WHERE attendance = 51 OFFSET 499 Lost of 18 had what sum of win %?,SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 18 what is the nationality of the ship appam?,"SELECT nationality FROM table_name_24 WHERE ship = ""appam""" What is the average game number that was on october 19?,SELECT AVG(game) FROM table_name_4 WHERE october = 19 Find the name of scientists who are not assigned to any project.,SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) To which party does Robert W. Edgar belong?,"SELECT party FROM table_1341598_39 WHERE incumbent = ""Robert W. Edgar""" What is the name of the season won by John Rhode?,"SELECT name FROM table_name_75 WHERE the_biggest_loser = ""john rhode""" What week was the game played at Mile High Stadium?,"SELECT week FROM table_name_85 WHERE venue = ""mile high stadium""" HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?,SELECT MIN(overall) FROM table_11803648_17 HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?,SELECT COUNT(year) FROM table_1507806_1 WHERE winning_score = (76 - 73 - 79 - 72 = 300) Which Score has a Home team of yeovil town won 5–3 on penalties?,"SELECT score FROM table_name_82 WHERE home_team = ""yeovil town won 5–3 on penalties""" What information is there on albums from 2010?,SELECT * FROM Albums WHERE YEAR = 2010 What is the city code of the city that the least students live in?,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count ( * ) LIMIT 1 List the id of students who registered some courses and the number of their registered courses?,"SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id" What is the famous release date of the artist with the oldest age?,SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 "Which enzyme names have the substring ""ALA""?","SELECT name FROM enzyme WHERE name LIKE ""%ALA%""" "What are the highest cost, lowest cost and average cost of procedures?","SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures" State the name and website of the institutes from the state with 209 graduate cohort in 2011.,"SELECT T1.chronname, T1.site FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year = 2011 AND T2.grad_cohort = 209" "What is the max of those players? | what did you mean the max ? | Sorry, the max training hours of those players.",SELECT max ( HS ) FROM Player which course has most number of registered students?,SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1 What is Fitzroy's Home team score?,"SELECT home_team AS score FROM table_name_60 WHERE home_team = ""fitzroy""" What are the facility codes of all the apartments that have more than 4 bedrooms?,SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 How many documents are there of each type?,"SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code" Which player(s) is from South Africa?,"SELECT player FROM table_name_76 WHERE country = ""south africa""" Indicate the name of the actors of the films rated as 'Parents Strongly Precautioned' with the highest replacement cost.,"SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rating = 'PG-13' ORDER BY T3.replacement_cost DESC LIMIT 1" What is the position played by the man born on 1976-09-20?,"SELECT pos FROM table_name_52 WHERE date_of_birth = ""1976-09-20""" "Which authors have written a paper with title containing the word ""Monadic""? Return their last names.","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE ""%Monadic%""" What party did the incumbent from the Arkansas 5 district belong to? ,"SELECT party FROM table_1342249_5 WHERE district = ""Arkansas 5""" What are the arriving date and the departing date of all the dogs?,"SELECT date_arrived , date_departed FROM Dogs" Can you list all the instruments used in the song Le Pop?,"SELECT DISTINCT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" How many points did the ATS Wheels entrant with an ATS D2 chassis have?,"SELECT points FROM table_name_14 WHERE entrant = ""ats wheels"" AND chassis = ""ats d2""" What is the points for a team with more than 9 wins and more than 40 goals?,SELECT SUM(points__pts_) FROM table_name_84 WHERE won__pg_ > 9 AND goals_scored__gf_ > 40 "What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?","SELECT attendance FROM table_name_1 WHERE opponent = ""montreal alouettes"" AND date = ""oct 4""" "Perfect, and who has the highest support percentage? | Do you want the people id? | Actually, just the percentage please.",SELECT max ( support_rate ) FROM candidate What is the company's second highest salary per hour for employees who are paid monthly?,"SELECT Rate FROM EmployeePayHistory WHERE PayFrequency = 1 ORDER BY Rate DESC LIMIT 1, 1" How many Israelis and or foreigners were wounded in the attack with more than 1 Israeli death?,SELECT israeli_and_or_foreigner_wounded FROM table_name_45 WHERE israeli_deaths > 1 Who is the opponent on april 16?,"SELECT opponent FROM table_name_91 WHERE date = ""april 16""" What is the last name of driver who transported shipment id 1088?,SELECT T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1088' "When the game was played at the EMCG venue, who was the away team?","SELECT away_team FROM table_name_60 WHERE venue = ""emcg""" What is the average height of players that have an overall rating higher than the average?,SELECT avg ( T1.height ) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > ( SELECT avg ( overall_rating ) FROM Player_Attributes ) Which origin has most number of flights?,SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1 What were the competition types of all the competitions Russia participated in?,"SELECT Competition_type FROM competition WHERE country = ""Russia""" "Which City has a Date on october 26, 2007","SELECT city FROM table_name_70 WHERE date = ""october 26, 2007""" "Show the players and years played for players from team ""Columbus Crew"".","SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" "What is the record that has the Rose Garden 20,126 as the attendance?","SELECT record FROM table_name_44 WHERE attendance = ""rose garden 20,126""" What is the description of the type of service that is performed the most often?,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 who directed the episode that elaine ko wrote?,"SELECT directed_by FROM table_27332038_1 WHERE written_by = ""Elaine Ko""" Return the sum and average of all settlement amounts.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements" what's the character name with voice actor (englbeingh 1997 / saban) being ian james corlett,"SELECT character_name FROM table_1410384_1 WHERE voice_actor__english_1997___saban_ = ""Ian James Corlett""" What is the visit start DateTime of Engineer with the first name Etha?,"SELECT T2.visit_start_datetime FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 on T1.engineer_id = T2.engineer_id where T1.first_name = ""Etha""" On what date was there a friendly game against Wales?,"SELECT date FROM table_name_61 WHERE type_of_game = ""friendly"" AND opponent = ""wales""" Which Race Name has Goodwood in the Curcuit?,"SELECT race_name FROM table_name_4 WHERE circuit = ""goodwood""" Which orders have shipment after 2000-01-01? Give me the order ids.,"SELECT order_id FROM shipments WHERE shipment_date > ""2000-01-01""" Which publisher has published the game 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3'?,SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' "List all the path of solution from all the ""it"" lang code method.",SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'it' What is the tag and the artist of the most downloaded single?,"SELECT T2.tag, T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'single' ORDER BY T1.totalSnatched DESC LIMIT 1" What was the losing bonus when the points against was 445?,"SELECT losing_bonus FROM table_12792876_3 WHERE points_against = ""445""" What was the transfer fee for the summer transfer involving the SCO named Crainey?,"SELECT transfer_fee FROM table_name_83 WHERE transfer_window = ""summer"" AND country = ""sco"" AND name = ""crainey""" Show me the names of those albums,SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' Show the name and phone for customers with a mailshot with outcome code 'No Response'.,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'" "List all airline names and their abbreviations in ""USA"".","SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = ""USA""" Who was the runner up in the konica san jose classic Tournament?,"SELECT runner_up FROM table_name_60 WHERE tournament = ""konica san jose classic""" What is the acronym used for Beirut Arab University?,"SELECT acronym FROM table_1160660_1 WHERE university_name = ""Beirut Arab University""" Please list the IDs of the solutions that contain files within the top 3 followed repositories.,SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId ORDER BY T1.Forks DESC LIMIT 3 what's the opponent with stadium being jeppesen stadium,"SELECT opponent FROM table_14102379_4 WHERE stadium = ""Jeppesen stadium""" How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?,"SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" What is the score of the tournament with a carpet surface and tim henman as the partnering?,"SELECT score FROM table_name_88 WHERE surface = ""carpet"" AND partnering = ""tim henman""" "Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?",SELECT AVG(extra_points_1_point) FROM table_name_22 WHERE total_points < 30 AND touchdowns__5_points_ = 5 Calculate the percentage of podcasts in the fiction-science-fiction category.,"SELECT CAST(SUM(CASE WHEN category = 'fiction-science-fiction' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(podcast_id) OR '%' ""percentage"" FROM categories" What ranking that had a start of 19?,"SELECT rank FROM table_name_72 WHERE start = ""19""" "Where did Ra'fat Ali play on August 17, 1999?","SELECT venue FROM table_name_35 WHERE date = ""august 17, 1999""" Which record has Katsuomi Inagaki as an opponent?,"SELECT record FROM table_name_51 WHERE opponent = ""katsuomi inagaki""" Calculate the GPA of the semester for Laughton Antonio.,SELECT CAST(SUM(T3.credit * CASE T1.grade WHEN 'A' THEN 4 WHEN 'B' THEN 3 WHEN 'C' THEN 2 WHEN 'D' THEN 1 ELSE 1 END) AS REAL) / COUNT(T3.credit) FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T1.course_id = T3.course_id WHERE T2.f_name = 'Laughton' AND T2.l_name = 'Antonio' How many transactions share a count smaller than 50?,SELECT count ( * ) FROM Transactions Where share_count < 50 State the object class of the image with tallest bounding box.,SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID ORDER BY T1.H DESC LIMIT 1 What Game had a Score of 129–105?,"SELECT MIN(game) FROM table_name_13 WHERE score = ""129–105""" "Among the payments made by Mary Smith, how many of them are over 4.99?",SELECT COUNT(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' AND T1.amount > 4.99 What school had an enrollment in 2005 of 69?,"SELECT school FROM table_2076490_1 WHERE enrollment__2005_ = ""69""" Count the number of distinct company industries.,SELECT count(DISTINCT Industry) FROM Companies "What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is ""4""?","SELECT total FROM table_name_81 WHERE silver < 65 AND bronze > ""4"" AND rank = ""4""" "Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?","SELECT opponent FROM table_name_67 WHERE type = ""tko"" AND round = ""2 (6)"" AND date = ""2006-09-20""" What is the role of SC Ganguly in the match on 2008/4/18?,SELECT T2.Role_Id FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id INNER JOIN Match AS T4 ON T2.Match_Id = T4.Match_Id WHERE T1.Player_Name = 'SC Ganguly' AND T4.Match_Date = '2008-04-18' "Which opponent had an attendance of 40,070?","SELECT opponent FROM table_name_48 WHERE attendance = ""40,070""" What are the first name and last name of the players who were paid salary by team Washington Nationals in both 2005 and 2007?,"SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'" How many employees have a first name of Ludie?,"SELECT count(*) FROM Staff WHERE first_name = ""Ludie"";" How many games played have 4.7 points per game?,"SELECT COUNT(games_played) FROM table_2387461_1 WHERE points_per_game = ""4.7""" "What is XIII Season, when VIII Season is 4 780 743 (2 november 2008)?","SELECT xiii_season FROM table_name_82 WHERE viii_season = ""4 780 743 (2 november 2008)""" Name the number of pinyin where simplified is 河西区,"SELECT COUNT(pinyin) FROM table_1638437_2 WHERE simplified = ""河西区""" Count the number of party events.,SELECT count(*) FROM party_events What is the name of the away team that played Melbourne?,"SELECT away_team FROM table_name_91 WHERE home_team = ""melbourne""" "What is the sum of October, when Opponent is ""Pittsburgh Penguins""?","SELECT SUM(october) FROM table_name_19 WHERE opponent = ""pittsburgh penguins""" "How many ""account representatives"" are there in Chicago with a good performance?",SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T2.locationcity = 'Chicago' AND T1.performance = 'Good' "What team played under 52 Reg GP, and picked 130?",SELECT team__league_ FROM table_name_23 WHERE reg_gp < 52 AND pick__number = 130 How many courses do not have a prerequisite?,SELECT count ( * ) FROM course WHERE course_id NOT IN ( SELECT course_id FROM prereq ) "Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0?",SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0 Please list the names of the publishers of all the puzzle games.,SELECT DISTINCT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' Show the average amount of transactions for different lots.,"SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id" "Who is the director that directed the highest number of movies in the 70s? If there are multiple directors with the same amount of movies, list all of their names and indicate the highest rating score that those movies got from the users.","SELECT T2.director_name, T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1970 AND 1979 GROUP BY T2.director_id ORDER BY COUNT(T2.movie_id) DESC LIMIT 1" What is the Version before 2001 with a Length of 7:42?,"SELECT version FROM table_name_64 WHERE year < 2001 AND length = ""7:42""" What's the score in andray blatche (17) high points?,"SELECT COUNT(score) FROM table_27721131_2 WHERE high_points = ""Andray Blatche (17)""" Which phone is sold in the most different markets?,select T1.name from phone as T1 join phone_market as T2 on T1.phone_id = T2.phone_id group by T1.phone_id order by count ( * ) desc limit 1 "Show the average amount of transactions for different lots, ordered by average amount of transactions.","SELECT T2.lot_id , avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)" "What is the processed time to download the repository whose files are contained in the solution with the path ""jeffdik_tachy\src\Tachy.sln"".",SELECT DISTINCT T2.ProcessedTime FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'jeffdik_tachysrcTachy.sln' "What are the types of vocals that the band member with the first name ""Solveig"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Solveig"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" Name the river of which Lorraine is on. Please name the mountains where to source flow from?,"SELECT T1.SourceLongitude, T1.SourceLatitude, T1.SourceAltitude FROM river AS T1 INNER JOIN geo_river AS T2 ON T2.River = T1.Name WHERE T2.Province = 'Lorraine'" Can you tell me how many unique names are currently in the table?,SELECT count ( distinct firstname ) from teachers "In sales with a quantity of 60, how many of them have a price not greater than 500?",SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.quantity = 60 AND T1.Price <= 500 Which tournament had a hard surface?,"SELECT tournament FROM table_name_22 WHERE surface = ""hard""" "What is the frequency of the newspaper, el diario de nuevo laredo in the city of nuevo laredo ?","SELECT frequency FROM table_name_70 WHERE city = ""nuevo laredo"" AND name = ""el diario de nuevo laredo""" "What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?","SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = ""richard logan"" AND play_offs < 1" List out 5 most common conditions for underweight patient.,"SELECT DISTINCT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Body Mass Index' GROUP BY T2.VALUE ORDER BY COUNT(T2.VALUE) LIMIT 5" What is the number of cartoones written by Joseph Kuhr?,"SELECT count(*) FROM Cartoon WHERE Written_by = ""Joseph Kuhr"";" What was the original air date for the episode with production code 1wab06?,"SELECT originalairdate FROM table_20726262_2 WHERE production_code = ""1WAB06""" What is the date of vacancy for 10 december 2007 when quit?,"SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = ""10 December 2007"" AND manner_of_departure = ""Quit""" What is the total number of people living in the nations that do not use English?,"SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"")" Return the codes of the document types that do not have a total access count of over 10000.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count) > 10000 What is the average attendance of all events?,SELECT avg ( Event_Attendance ) FROM event "For the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season?",SELECT SUM(T2.W) FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T2.year = 2011 GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) = 3 What is the holmenkollen for the 1982 FIS Nordic World Ski Championships?,"SELECT holmenkollen FROM table_174491_2 WHERE fis_nordic_world_ski_championships = ""1982""" How many reviews by people between 30 and 50 years include the word 'great'?,SELECT COUNT(T1.Reviews) FROM reviews AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.age BETWEEN 30 AND 50 AND T1.Reviews LIKE '%great%' Which Year(s) won has a Total smaller than 276? Question 1,SELECT year_s__won FROM table_name_71 WHERE total < 276 What is the duration of the oldest actor?,SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1 How many different chip models are there?,SELECT count ( * ) FROM chip_model Tell me the sum of total for rank of 1,SELECT SUM(total) FROM table_name_35 WHERE rank = 1 Name least series number for writers david e. kelley & jill goldsmith,"SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = ""David E. Kelley & Jill Goldsmith""" What are the names and ids of all makers with more than 3 models?,"SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;" What is the license number where the maximum diameter is 400 mm?,"SELECT licence_number FROM table_name_14 WHERE maximum_diameter = ""400 mm""" Which project made the most number of outcomes? List the project details and the project id.,"SELECT T1.project_details , T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1" During what Years of Operation was the location prospect 33 prospect ave?,"SELECT years_of_operation FROM table_name_35 WHERE location = ""prospect 33 prospect ave""" Who is the instructor of the statistics department?,"SELECT name FROM instructor WHERE dept_name = ""Statistics""" WHAT IS THE Iran OF CAPITAL | Did you mean the capital of the country named Iran? | YES EXACTLY,"SELECT capital from country where country_name = ""Iran""" What is the total number of households in Arecibo county?,SELECT SUM(T1.households) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' How many points were scored when the Chassis is BRM p25?,"SELECT pts FROM table_name_57 WHERE chassis = ""brm p25""" Return the characters and durations for each actor.,"SELECT Character , Duration FROM actor" What attendance is listed against the date of bye?,"SELECT attendance FROM table_name_4 WHERE date = ""bye""" What nationality has a pick greater than 129?,SELECT nationality FROM table_name_38 WHERE pick > 129 Name the type with M809 series of m814,"SELECT type FROM table_name_16 WHERE m809_series = ""m814""" "According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party?","SELECT liberal FROM table_name_37 WHERE new_democratic = ""36%"" AND dates = ""august 2008""" Which episode was watched by 11.75 million U.S. viewers?,"SELECT title FROM table_13301516_1 WHERE us_viewers__millions_ = ""11.75""" Which race had a distance of 4 miles where the runner-up was not known?,"SELECT race_name FROM table_name_22 WHERE dist__miles_ = ""4"" AND runner_up = ""not known""" "List the name and number of followers for each user, and sort the results by the number of followers in descending order.","SELECT name , followers FROM user_profiles ORDER BY followers DESC" Which territory has a channel of 144 and a broadcaster of Astro?,"SELECT territory FROM table_name_23 WHERE channel = 144 AND broadcaster = ""astro""" Which rebound was 8 and has and ast that was less than 57?,"SELECT AVG(reb_)[b_] FROM table_name_64 WHERE no_[a_] = ""8"" AND ast_[b_] < 57" And what are their names?,SELECT customer_name FROM Customers WHERE payment_method = 'Visa' What team is 2 when the game result is 0-4 at Pailing Sport Park?,"SELECT team_2 FROM table_name_32 WHERE ground = ""pailing sport park"" AND result = ""0-4""" What is the total time of the athlete from Canada with a lane less than 8 and a rank less than 8?,"SELECT COUNT(time) FROM table_name_52 WHERE lane < 8 AND nationality = ""canada"" AND rank < 8" Find the top 3 wineries with the greatest number of wines made of white color grapes.,"SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = ""White"" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3" What is the result for barney frank?,"SELECT result FROM table_1341598_22 WHERE incumbent = ""Barney Frank""" "The swimmer from the United States in a lane less than 5, had what as the average time?","SELECT AVG(time) FROM table_name_8 WHERE nationality = ""united states"" AND lane < 5" Which series numbers were directed by Monte Young?,"SELECT no_in_series FROM table_14724369_1 WHERE directed_by = ""Monte Young""" What is the difference of 10 stars votes between the first episode and the last episode?,SELECT SUM(CASE WHEN T2.episode = 24 THEN T1.votes ELSE 0 END) - SUM(CASE WHEN T2.episode = 1 THEN T1.votes ELSE 0 END) FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 10 "Which fault log included the most number of faulty parts? List the fault log id, description and record time.","SELECT T1.fault_log_entry_id , T1.fault_description , T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1" Which operator has a Reserve of 100 bbbl?,"SELECT operator_s_ FROM table_name_96 WHERE reserves = ""100 bbbl""" What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?,SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 6 What is the Project Name with a Country that is opec?,"SELECT project_name FROM table_name_36 WHERE country = ""opec""" How many draft copies does the document with id 2 have?,SELECT count(*) FROM Draft_Copies WHERE document_id = 2; What was the date of the Women's Individual Class 3?,"SELECT date FROM table_name_73 WHERE event = ""women's individual class 3""" What are the details of the car with id 1?,SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1; What are the goals for 8/4/04?,"SELECT goals FROM table_name_70 WHERE date = ""8/4/04""" "What is English Meaning, when Case Suffix (Case) is ""-sa (dative)""?","SELECT english_meaning FROM table_name_40 WHERE case_suffix__case_ = ""-sa (dative)""" Which room has cheapest base price? List the room's name and the base price.,"SELECT roomName , basePrice FROM Rooms ORDER BY basePrice ASC LIMIT 1;" How many characteristics are there?,SELECT COUNT(*) FROM CHARACTERISTICS "Among all customers handled by Innes E. del Castillo, how many have purchased Short-Sleeve Classic Jersey, L?","SELECT COUNT(T2.CustomerID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T3.FirstName = 'Innes' AND T3.LastName = 'del Castillo' AND T1.Name = 'Short-Sleeve Classic Jersey, L' AND T3.MiddleInitial = 'e'" "How many users in Mubi give the movie ""White Night Wedding for 5""?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 AND T2.movie_title = 'White Night Wedding' which poll source does the highest oppose rate come from?,SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 "For each user, find their name and the number of reviews written by them.","SELECT T1.name , count ( * ) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" What are these 7 different sports that have student on scholarship?,"SELECT distinct sportname FROM Sportsinfo WHERE onscholarship = ""Y""" Please list the names of all the Olympic games that John Aalberg has taken part in.,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'John Aalberg' "Among all shipments placed by Sunguard Window Tinting & Truck Accessories in 2017, identify the percentage of shipments whose weight exceeded 10,000 pounds.","SELECT CAST(SUM(CASE WHEN T1.weight >= 10000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.cust_name = 'Sunguard Window Tinting & Truck Accessories' AND STRFTIME('%Y', T1.ship_date) = '2017'" "Find all the female members of club ""Bootup Baltimore"". Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.sex = ""F""" What is the result of the ceremony in 2006 (79th)?,"SELECT result FROM table_name_1 WHERE year__ceremony_ = ""2006 (79th)""" What was the smallest crowd for the Richmond home team?,"SELECT MIN(crowd) FROM table_name_56 WHERE home_team = ""richmond""" How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?,"SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"";" How many students play each sport?,"SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname" What is the average bronze with a rank of 4 and less than 1 silver?,SELECT AVG(bronze) FROM table_name_73 WHERE rank = 4 AND silver < 1 Show the name of the documents and the count of how many times each has been accessed?,"SELECT document_name , access_count FROM documents ORDER BY access_count DESC LIMIT 1" "Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.",SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM savings) And the hire dates of those 22 employees?,select EMP_HIREDATE from employee where emp_jobcode in ( SELECT emp_jobcode FROM employee GROUP BY emp_jobcode ORDER BY count ( * ) DESC LIMIT 1 ) What was the October 22 record?,"SELECT record FROM table_27537518_4 WHERE date = ""October 22""" Find the number of distinct room types available.,SELECT count(DISTINCT roomtype) FROM room What is the average number of casts of movies that are from the USA?,SELECT AVG(T2.cast_num) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'USA' What are the names of all products with prices over 3000?,SELECT Product_Name FROM Products WHERE Product_Price > 3000 What year was the International Cup that was won by Akron Goodyear Wingfoots and had Real Madrid as runner-up?,"SELECT year FROM table_name_56 WHERE champion = ""akron goodyear wingfoots"" AND runner_up = ""real madrid""" "What is the Record of the game with an Attendance of 70,604?","SELECT record FROM table_name_92 WHERE attendance = ""70,604""" What is the number of employees that have a salary between 100000 and 200000?,SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000 On what day was the race that Cale Yarborough won in 364 laps?,"SELECT day FROM table_22298383_1 WHERE laps = ""364"" AND driver = ""Cale Yarborough""" "Among the cars originated from Japan, what is the name of the car with the highest price?",SELECT T4.car_name FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'Japan' ORDER BY T1.price DESC LIMIT 1 "How many followers did the user who posted the list ""Non-American Films about World War II"" have?",SELECT SUM(T2.list_followers) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Non-American Films about World War II' Which dates of polls occur in the Mizoram state?,"SELECT date_of_polls FROM table_15329030_1 WHERE state = ""Mizoram""" "In the WCHL League, what is the last Assists with less than 65 Goals?","SELECT MIN(assists) FROM table_name_37 WHERE league = ""wchl"" AND goals < 65" Give the city that the student whose family name is Kim lives in.,"SELECT city_code FROM Student WHERE LName = ""Kim""" Show the transaction type descriptions and dates if the share count is smaller than 10.,"SELECT T1.transaction_type_description , T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10" "where is the location of club ""Hopkins Student Enterprises""?","SELECT ClubLocation FROM Club WHERE ClubName = ""Hopkins Student Enterprises""" What's the record on May 25?,"SELECT record FROM table_name_42 WHERE date = ""may 25""" Name the report with cuban race,"SELECT report FROM table_name_16 WHERE name = ""cuban race""" "what is the competition when the result is won and the date is september 13, 1996?","SELECT competition FROM table_name_87 WHERE result = ""won"" AND date = ""september 13, 1996""" What is the id of the project with least number of documents?,SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1 what is the cfl team where college is waterloo?,"SELECT COUNT(cfl_team) FROM table_26996293_4 WHERE college = ""Waterloo""" What engine does Garvey Team Lotus use?,"SELECT engine FROM table_name_50 WHERE entrant = ""garvey team lotus""" What is the sort value that had deaths of 71?,"SELECT sort_restore FROM table_name_64 WHERE deaths = ""71""" What was the date of the game when the Canadiens had a record of 31–19–9?,"SELECT date FROM table_name_40 WHERE record = ""31–19–9""" Name the performer who won Emmy Award for Outstanding Voice-Over Performance by playing Homer simpson 20.,SELECT T1.person FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.character = 'Homer simpson 20' AND T1.organization = 'Primetime Emmy Awards' AND T1.award = 'Outstanding Voice-Over Performance' AND T1.result = 'Winner'; "Please list any two user numbers that have an ""Uber"" number of cute compliments.",SELECT T1.user_id FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.number_of_compliments LIKE 'Uber' AND T2.compliment_type LIKE 'cute' LIMIT 2 What are the names of the channels owned by CCTV or HBS?,SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS' Show all video game types.,SELECT DISTINCT gtype FROM Video_games What is the average GPA of students taking ACCT-211?,SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' What is allergy type of a cat allergy?,"SELECT allergytype FROM Allergy_type WHERE allergy = ""Cat""" Can you tell me the average checking balance of all checking accounts?,SELECT avg ( balance ) FROM checking Tell me the fastest lapf or jim clark being the winning driver for prince george,"SELECT fastest_lap FROM table_name_35 WHERE winning_driver = ""jim clark"" AND circuit = ""prince george""" "What date was the match on a hard surface with a score of 6–4, 2–6, 3–6?","SELECT date FROM table_name_83 WHERE surface = ""hard"" AND score = ""6–4, 2–6, 3–6""" What time did the game featuring the Detroit Lions at Three Rivers Stadium occur?,"SELECT time___et__ FROM table_name_38 WHERE location = ""three rivers stadium"" AND opponent = ""detroit lions""" What is the current freq for Frequency of 104.7?,"SELECT freq_currently FROM table_name_67 WHERE frequency = ""104.7""" "What is the name of the corporation that incorporated on october 15, 1955?","SELECT corporate_name FROM table_28367242_1 WHERE incorporation_date__city_ = ""October 15, 1955""" "Name the opponent on november 22, 1942","SELECT opponent FROM table_name_6 WHERE date = ""november 22, 1942""" "Which paper's title contains the word ""Database""?","SELECT title FROM papers WHERE title LIKE ""%Database%""" What was the games score on January 11?,"SELECT score FROM table_15780049_6 WHERE date = ""January 11""" "What Position is listed against a Venue of Debrecen, Hungary","SELECT position FROM table_name_64 WHERE venue = ""debrecen, hungary""" "Among the countries with a population of over 10000000, how many of them have a GDP of over 500000?",SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.GDP > 500000 AND T1.Population > 10000000 Where did the player move from that went to stuttgart?,"SELECT moving_from FROM table_name_17 WHERE moving_to = ""stuttgart""" What is the original air date of the episode directed by Jeff Melman?,"SELECT original_air_date FROM table_13477468_3 WHERE directed_by = ""Jeff Melman""" What is the position number of the club with more than 24 points and a w-l-d of 8-5-3?,"SELECT COUNT(position) FROM table_name_99 WHERE points > 24 AND w_l_d = ""8-5-3""" Name the number of assists for 321 minutes ,SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321 Tell me the result for 1979-01-17,"SELECT result FROM table_name_5 WHERE date = ""1979-01-17""" what is the year for borderlands 2?,"SELECT year FROM table_name_81 WHERE game = ""borderlands 2""" What is the birthday of the staff member with first name as Janessa and last name as Sawayn?,"SELECT date_of_birth FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" "For each party, return the name of the party and the number of delegates from that party.","SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party" What record company released a CD in 1964?,"SELECT record_company FROM table_name_48 WHERE year_of_recording = 1964 AND format = ""cd""" What are the maximum and minimum population of the counties?,"SELECT max(Population) , min(Population) FROM county" Please show me a list of the top 5 countries by number of invoices. List country name.,SELECT billing_country FROM invoices GROUP BY billing_country ORDER BY count ( * ) DESC LIMIT 5 What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?,"SELECT 2012 FROM table_name_51 WHERE 2009 = ""1r"" AND 2007 = ""2r""" What's the winner of the Painewebber Invitational tournament?,"SELECT winner FROM table_11622562_1 WHERE tournament = ""PaineWebber Invitational""" Please list the official full names of all the current legislators who do not have an account on C-SPAN's video website.,SELECT official_full_name FROM current WHERE cspan_id IS NULL OR cspan_id = '' What entrant appeared in 1969?,SELECT entrant FROM table_name_24 WHERE year = 1969 What's the platform that has Rockstar Games as the developer?,"SELECT platform_s_ FROM table_name_33 WHERE developer_s_ = ""rockstar games""" Please list the unit measure code of the component that is of the greatest need in quantity to create the assembly.,SELECT UnitMeasureCode FROM BillOfMaterials ORDER BY PerAssemblyQty DESC LIMIT 1 What is the district with the incumbent Charlie Norwood?,"SELECT district FROM table_27021001_1 WHERE incumbent = ""Charlie Norwood""" Private/Catholic school's minimum enrollment is?,"SELECT MIN(enrollment) FROM table_16403890_1 WHERE affiliation = ""Private/Catholic""" Name the date for visiting team of denver broncos,"SELECT date FROM table_name_72 WHERE visiting_team = ""denver broncos""" What was the home team's score at Corio Oval?,"SELECT home_team AS score FROM table_name_20 WHERE venue = ""corio oval""" How many races did the German racer that won less than 10 races ride?,"SELECT COUNT(races_ridden) FROM table_name_94 WHERE nationality = ""german"" AND races_won < 10" "What is Episode, when VIII Season is 5 082 535 (19 October 2008)?","SELECT episode FROM table_name_83 WHERE viii_season = ""5 082 535 (19 october 2008)""" Which competition ended with a score of 58-4?,"SELECT competition FROM table_name_64 WHERE score = ""58-4""" How many total titles did Rupesh Kumar Sanave Thomas and Jwala Gutta Ashwini Ponnappa win total?,"SELECT COUNT(womens_singles) FROM table_12194021_1 WHERE mens_doubles = ""Rupesh Kumar Sanave Thomas"" AND womens_doubles = ""Jwala Gutta Ashwini Ponnappa""" "On what date was the 4th round, with home team Itabuna, played?","SELECT date FROM table_name_4 WHERE round = ""4th"" AND home_team = ""itabuna""" "What is the title of the first episode of the season that begin on february 27, 1954?","SELECT title FROM table_15824796_3 WHERE original_air_date = ""February 27, 1954""" What are the names of the female students that are under 25?,"SELECT FName,LName FROM student WHERE sex = 'F' AND age < 25" Name the route number for rincon valley,"SELECT route_number FROM table_25692955_1 WHERE south_west_terminal = ""Rincon Valley""" can you show me a list of teachers first name that starting with 'M'?,"SELECT FirstName From teachers WHERE FirstName LIKE ""M%""" List the names of people that are not employed by any company,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment) How old is Ishan Kishan in 2022?,"SELECT 2022 - SUBSTR(DOB, 1, 4) FROM Player WHERE Player_Name = 'Ishan Kishan'" "What shows for 2011 when 2012 is q1, and a 2010 is 4r?","SELECT 2011 FROM table_name_49 WHERE 2012 = ""q1"" AND 2010 = ""4r""" what is the fa cup goals when total apps is 10 (4)?,"SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = ""10 (4)""" What year did the rank of 31 happen in?,"SELECT year FROM table_name_75 WHERE rank = ""31""" How many employees who began working in 2009 or later had night shifts?,"SELECT COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Shift AS T2 ON T1.ShiftId = T2.ShiftId WHERE T2.ShiftId = 3 AND STRFTIME('%Y', T2.StartTime) >= '2009'" Who is the Latin Commander of the Siege of Constantinople?,"SELECT latin_commander FROM table_name_88 WHERE battle = ""siege of constantinople""" List the job titles of Sally Menke in the crew.,SELECT DISTINCT T2.job FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Sally Menke' Which year had the greatest number of courses?,SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 HOW MUCH IS THE PERCENTAGE OF GLOBAL TOTAL EMISSIONS IN THE COUNTRY THAT PRODUCED 4.9 TONS PER PERSON IN 2007?,"SELECT percentage_of_global_total FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = ""4.9""" Who was the shooter for the WC Beijing event?,"SELECT shooter FROM table_name_75 WHERE event = ""wc beijing""" What was the most points for Coloni Spa?,"SELECT MAX(points) FROM table_name_78 WHERE entrant = ""coloni spa""" "Show the studios that have produced films with director ""Nicholas Meyer"" and ""Walter Hill"".","SELECT Studio FROM film WHERE Director = ""Nicholas Meyer"" INTERSECT SELECT Studio FROM film WHERE Director = ""Walter Hill""" What is the league listed that has goals of 10?,"SELECT league FROM table_name_53 WHERE goals = ""10""" How many books have been published in Japanese?,SELECT COUNT(*) FROM book_language AS T1 INNER JOIN book AS T2 ON T1.language_id = T2.language_id WHERE T1.language_name = 'Japanese' Count the number of devices.,SELECT count(*) FROM device "In businesses with a category of automotive, how many of them has an star rating below 3?",SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T3.category_name LIKE 'Automotive' AND T1.stars < 3 Which hanzi's name is nmtv mongolian satellite television?,"SELECT hanzi FROM table_name_84 WHERE name = ""nmtv mongolian satellite television""" Which sport was in the 1992 Barcelona games?,"SELECT sport FROM table_name_92 WHERE games = ""1992 barcelona""" Find the name and price of the product that has been ordered the greatest number of times.,"SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1" What is the name of the customer who has the largest number of orders?,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Name the college/junior club team for ian turnbull,"SELECT college_junior_club_team FROM table_1965650_1 WHERE player = ""Ian Turnbull""" "Please show the countries that have both managers of age above 50, and managers of age below 46",SELECT Country FROM manager WHERE Age > 50 INTERSECT SELECT Country FROM manager WHERE Age < 46 List all paper ID and its class type with more than 20 cited words.,"SELECT DISTINCT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id, T1.class_label HAVING COUNT(T2.word_cited_id) > 20" Return the maximum and minimum customer codes.,"SELECT max(customer_code) , min(customer_code) FROM Customers" "What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?","SELECT year FROM table_1939202_2 WHERE league = ""USL Second division"" AND playoffs = ""Semifinals"" AND us_open_cup = ""Quarterfinals""" "With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?","SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = ""4:1"" AND house_edge = ""3.63%""" And what about teams in elimination?,SELECT Team FROM Elimination Find the names of departments that are located in Houston.,SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston' How many sweet bottled root beers that do not contain cane sugar were purchased in 2015 through the selling company located in Sac State American River Courtyard?,SELECT COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID INNER JOIN location AS T3 ON T1.LocationID = T3.LocationID WHERE T3.LocationName = 'Sac State American River Courtyard' AND T1.PurchaseDate LIKE '2015%' AND T2.Honey = 'TRUE' AND T2.CaneSugar = 'FALSE' AND T1.ContainerType = 'Bottle' When 3 is the bbc three weekly ranking what is the airdate?,"SELECT airdate FROM table_24399615_8 WHERE bbc_three_weekly_ranking = ""3""" Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.,"SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" Which Release date has a sSpec number of sr0pk(e1)?,"SELECT release_date FROM table_name_55 WHERE sspec_number = ""sr0pk(e1)""" Which territories is the employee with a doctorate in charge of? List all of the territory descriptions.,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.TitleOfCourtesy = 'Dr.' "What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?","SELECT MAX(rank) FROM table_name_67 WHERE lane > 6 AND heat = 3 AND nationality = ""colombia""" List the distinct ranges of the mountains with the top 3 prominence.,SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3 "What is the name of the institution that ""Matthias Blume"" belongs to?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Matthias"" AND t1.lname = ""Blume""" Which Date has a Home team of st kilda?,"SELECT date FROM table_name_19 WHERE home_team = ""st kilda""" "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.","SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1" "What is the littlest round that has Matt Delahey, and a greater than 112 pick?","SELECT MIN(round) FROM table_name_58 WHERE player = ""matt delahey"" AND pick > 112" "What record label corresponds to the single ""I can't stay""?","SELECT record_label FROM table_18710512_3 WHERE single = ""I Can't Stay""" "I want the tsongas of may 22, 2007","SELECT tsongas__d_ FROM table_name_45 WHERE date = ""may 22, 2007""" Which team has 71 Points and F/Laps of 4?,"SELECT team FROM table_name_85 WHERE points = ""71"" AND f_laps = ""4""" How many female students (sex is F) live in BAL,SELECT count ( * ) FROM student WHERE sex = 'F' AND city_code = 'BAL' Which countries have at least 3 cities?,SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3 Show me the captain ranks,SELECT rank FROM captain What was the results for the district oklahoma 3?,"SELECT results FROM table_1341423_36 WHERE district = ""Oklahoma 3""" What is the scored figure when the result is 40-22?,"SELECT SUM(scored) FROM table_name_94 WHERE result = ""40-22""" how many on the customers cards table | Do you mean the amount of customer cards? | yes exactly,SELECT count ( * ) FROM Customers_cards What is the store id of the store located in the most populous county?,SELECT CASE WHEN MAX(Population) THEN StoreID END FROM `Store Locations` What's the stadium on November 8?,"SELECT home FROM table_name_26 WHERE date = ""november 8""" Name the english name for 福鼎市,"SELECT english_name FROM table_2013618_1 WHERE traditional = ""福鼎市""" How many customers are in Brazil?,SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'BRAZIL' Show the names of high schoolers who have at least 3 friends.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3 What venue featured north melbourne as the away side?,"SELECT venue FROM table_name_27 WHERE away_team = ""north melbourne""" How many of them are Ph.D. degrees?,SELECT count ( * ) FROM professor where prof_high_degree = 'Ph.D.' "Which county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?","SELECT county FROM table_name_82 WHERE _percentage__2040_ > 1.8 AND _percentage__2000_ < 4.1 AND _percentage__1960_ < 3.2 AND rank = ""13""" "Compare the number of orders between ""Platters"" and ""Serveware"" products.","SELECT SUM(CASE WHEN T2.`Product Name` = 'Platters' THEN 1 ELSE 0 END) AS num1 , SUM(CASE WHEN T2.`Product Name` = 'Serveware' THEN 1 ELSE 0 END) AS num2 FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID" Which tracking method has a latest stable release of 6.0?,"SELECT tracking_method FROM table_name_23 WHERE latest_stable_release = ""6.0""" Name the total number of series for april 26,"SELECT COUNT(series) FROM table_17621978_11 WHERE date = ""April 26""" Count the number of conductors.,SELECT count(*) FROM conductor what is the typical_selling_price of product id 1?,select typical_selling_price from Products where product_id = '1' How many award-winning films have the opening film of encounters at the end of the world?,"SELECT COUNT(award_winning_film) FROM table_18220102_1 WHERE opening_film = ""Encounters at the End of the World""" Who is the second member that is a second party Whig in the 1834 election?,"SELECT second_member FROM table_name_54 WHERE second_party = ""whig"" AND election = ""1834""" Which bicycle is the least used bike. Check if the start and end station are from the same city and calculate the total duration travelled by the bicycle in hours for a trip made within the same city.,"SELECT T2.bike_id, T2.start_station_name, T2.end_station_name, T1.city , CAST(T2.duration AS REAL) / 3600 FROM station AS T1 INNER JOIN trip AS T2 ON T1.name = T2.start_station_name GROUP BY T2.bike_id ORDER BY COUNT(T2.id) DESC LIMIT 1" "What is the short name for ""Software - Concepts and Tools / Structured Programming""?",SELECT ShortName FROM Journal WHERE FullName = 'Software - Concepts and Tools / Structured Programming' "What are the average prices of products, grouped by manufacturer name?","SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" "What are the addresses of the course authors or tutors with personal name ""Cathrine""","SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = ""Cathrine""" Name the incumbent for lost re-election democratic-republican hold,"SELECT incumbent FROM table_2668352_14 WHERE result = ""Lost re-election Democratic-Republican hold""" What is the height of Cola?,"SELECT height FROM catalog_contents WHERE catalog_entry_name = ""Cola""" "How many foundeds have stade tunisien as the club, with a capacity greater than 18,000?","SELECT SUM(founded) FROM table_name_6 WHERE club = ""stade tunisien"" AND capacity > 18 OFFSET 000" What kind of condition did Keven Kuhn have from 2016/9/24 to 2016/10/10? Describe the condition.,SELECT T2.description FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Keven' AND T1.last = 'Kuhn' AND T2.start = '2016-09-24' AND T2.stop = '2016-10-10' "When volleyball has 2 bronze, what is the total number of silver?","SELECT COUNT(silver) FROM table_name_28 WHERE bronze = 2 AND sport = ""volleyball""" What is the market share of Internet explorer,"SELECT market_share FROM browser where name = ""Internet Explorer""" What is the total donated amount for projects created by a teacher working in a school in Brooklyn?,SELECT SUM(T2.donation_total) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' List all location codes and location names.,"SELECT location_code , location_name FROM Ref_locations" What is the sum of the stages for category 1 races after the year 2003?,"SELECT SUM(stage) FROM table_name_73 WHERE category = ""1"" AND year > 2003" Tell me the distinct block codes where some rooms are available.,SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 Give the height of the tallest athlete from Portugal.,SELECT T3.height 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 = 'Portugal' ORDER BY T3.height DESC LIMIT 1 Who scored the most rebounds in the game against Chicago?,"SELECT high_rebounds FROM table_15869204_9 WHERE team = ""Chicago""" Find the names of top 3 departments? | What do you mean by top? | Top three departments that provide the largest amount of courses?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY count ( * ) DESC LIMIT 3 What Texas has Johnson from Nort Dakota?,"SELECT texas FROM table_name_92 WHERE north_dakota = ""johnson""" WHat year was north college hill high school founded?,"SELECT MAX(founded) FROM table_13456202_1 WHERE school = ""North College Hill High school""" What are names of all the wrestlers?,SELECT Name FROM wrestler What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?,"SELECT total FROM table_name_16 WHERE score = ""3-0"" AND set_3 = ""25-18"" AND set_2 = ""25-12""" What is the location code with the most documents?,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1 Name the constituted for labor and scullin ministry,"SELECT constituted FROM table_name_86 WHERE party = ""labor"" AND name = ""scullin ministry""" What cargo was contained in a ship size of aframax?,"SELECT cargo FROM table_name_40 WHERE ship_size = ""aframax""" Who are the friends of Bob?,SELECT friend FROM PersonFriend WHERE name = 'Bob' "Which Points have an Opponent of @ florida panthers, and a Game larger than 58?","SELECT MIN(points) FROM table_name_17 WHERE opponent = ""@ florida panthers"" AND game > 58" what is the title of paper ID 200,SELECT title from Papers where paperID = 200 What are the names of nations speak both English and French?,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""French""" What is the nation of the person who was from the CSC team?,"SELECT nation FROM table_name_79 WHERE team = ""csc""" "When the home team was Richmond, what was the largest crowd?","SELECT MAX(crowd) FROM table_name_49 WHERE home_team = ""richmond""" How many assessment notes are there in total?,SELECT count(*) FROM ASSESSMENT_NOTES What is the translation of chetvert?,"SELECT translation FROM table_name_81 WHERE unit = ""chetvert""" "And the club with the name ""AIB""","SELECT DISTINCT T1.start_year FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = ""AIB""" Please list the assumed name of all the facilities that failed an inspection in 2010.,"SELECT DISTINCT T2.dba_name FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE T1.results = 'Fail' AND strftime('%Y', T1.inspection_date) = '2010'" "What is the lowest geohash length when the lat bits are less than 7, and the km error of ±2500?","SELECT MIN(geohash_length) FROM table_name_94 WHERE lat_bits < 7 AND km_error = ""±2500""" What runner-up has 1925 as the year?,"SELECT runner_up FROM table_name_6 WHERE year = ""1925""" Which game was on 14 January 1973?,"SELECT game FROM table_name_31 WHERE date = ""14 january 1973""" What is the title of the episodes that were least enjoyed?,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 1 How many video games do you have?,SELECT count(*) FROM Video_games What is the name of a pick more than 5 at Washington College?,"SELECT name FROM table_name_45 WHERE pick__number > 5 AND college = ""washington""" What is the total mumber of skip (club) entries when the pf is 40?,SELECT COUNT(skip__club_) FROM table_29546218_3 WHERE pf = 40 Who is the chairman when the current manager is bob peeters?,"SELECT chairman FROM table_27374004_2 WHERE current_manager = ""Bob Peeters""" "Among the orders made by customers in Germany, which one of them has the highest priority in delivery? Please give its order key.",SELECT T3.o_orderkey FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN orders AS T3 ON T2.c_custkey = T3.o_custkey WHERE T1.n_name = 'GERMANY' ORDER BY T3.o_orderdate LIMIT 1 Show the date and id of the transcript with at least 2 course results.,"SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2" What away team played against Footscray as the home team?,"SELECT away_team FROM table_name_50 WHERE home_team = ""footscray""" What is the team captain when the shirt sponser is quick?,"SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = ""Quick""" "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.","SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1" Find the name of the customer who made the most orders.,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 What is the average rating of songs produced by female artists?,"SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female""" Which F/Laps have 27 Points?,"SELECT f_laps FROM table_name_77 WHERE points = ""27""" What is the average number of inspections did risk level 3 taverns have?,SELECT CAST(COUNT(T2.inspection_id) AS REAL) / COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 3 AND T1.facility_type = 'TAVERN' Name the number of airdates for 14,SELECT COUNT(original_air_date) FROM table_2409041_4 WHERE no_in_season = 14 And which college has the highest enrollment?,SELECT cName FROM College order by enr desc limit 1 how many passengers are in the London Waterloo?,"SELECT Total_Passengers FROM station where name = ""London Waterloo""" What is the name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock?,"SELECT original_broadway_cast FROM table_name_56 WHERE original_west_end_cast = ""sheila hancock""" what is the position is 2012 when the last title is n/a and the first season is 2011?,"SELECT position_in_2012 FROM table_name_93 WHERE last_title = ""n/a"" AND first_season = ""2011""" Who is the opponent on May 7?,"SELECT opponent FROM table_name_55 WHERE date = ""may 7""" Which state is area code 878 in? Give the name of the state.,SELECT T2.state FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 878 Which province has Michael Kirby?,"SELECT province FROM table_name_39 WHERE name = ""michael kirby""" "What is the verb meaning of the word with part 2 ""bant""?","SELECT verb_meaning FROM table_1745843_8 WHERE part_2 = ""bant""" "Count the number of tests with ""Fail"" result.","SELECT count(*) FROM Student_Tests_Taken WHERE test_result = ""Fail""" How many employees are living in Canada?,"SELECT count(*) FROM employees WHERE country = ""Canada"";" How many people attended the uefa champions league competition?,"SELECT attendance FROM table_299271_2 WHERE competition = ""UEFA Champions League""" Which wheel arrangement made in year 1900?,"SELECT wheel_arrangement FROM table_name_3 WHERE year_made = ""1900""" Final question is How many customers in the table?,SELECT COUNT ( customer_id ) FROM customers what is the number of draws when there are 4 losses and 28.6% efficiency?,"SELECT COUNT(draws) FROM table_name_11 WHERE losses = 4 AND efficiency__percentage = ""28.6%""" "Among the most rated UK movies, how many of them has running time of less than 2?",SELECT COUNT(T1.movieid) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'UK' AND T2.runningtime < 2 AND T1.rating = 5 What was the record on July 2?,"SELECT record FROM table_name_34 WHERE date = ""july 2""" Which graphics spec has a VRAM spec of 512MB?,"SELECT graphics FROM table_name_43 WHERE vram = ""512mb""" Which gender makes up the majority of the staff?,SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1 What is the Attendance of the game with a Score of 3–2?,"SELECT COUNT(attendance) FROM table_name_59 WHERE score = ""3–2""" What is the team's record on april 12?,"SELECT record FROM table_name_11 WHERE date = ""april 12""" What was the score of the game from July 18?,"SELECT score FROM table_name_30 WHERE date = ""july 18""" Who performed all the high rebounds when craig smith (4) was the lead for high assists?,"SELECT high_rebounds FROM table_17058226_5 WHERE high_assists = ""Craig Smith (4)""" "What is the sum of Total, when Player is ""Tommy Bolt""?","SELECT SUM(total) FROM table_name_4 WHERE player = ""tommy bolt""" Who was the away team when the venue was Windy Hill?,"SELECT away_team FROM table_name_59 WHERE venue = ""windy hill""" Which arena has the Milton Keynes Lions and a capacity of 800?,"SELECT arena FROM table_name_32 WHERE capacity = ""800"" AND team = ""milton keynes lions""" Which Losses have Draws larger than 0?,SELECT MAX(losses) FROM table_name_28 WHERE draws > 0 What is steven king's phone number,SELECT PHONE_NUMBER from employees where first_name = 'Steven' and last_name = 'King' what is the tournament when the court surface is clay and began in 1892?,"SELECT tournament FROM table_name_46 WHERE court_surface = ""clay"" AND began = 1892" When was Catalog CHD-9192 published?,"SELECT date FROM table_name_66 WHERE catalog = ""chd-9192""" How many airports are there per city in the US ordered from most to least?,"SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC" List the name for storms and the number of affected regions for each storm.,"SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id;" "What is the Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2?","SELECT music FROM table_name_2 WHERE score = ""25 (9, 8, 8)"" AND result = ""bottom 2""" what is his ID?,"SELECT T2.name, t2.people_id FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1" What is the station ID for London Waterloo,"SELECT station_id from station where name = ""London Waterloo""" Show the document id with paragraph text 'Brazil' and 'Ireland'.,SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland' What is the name of the customer that has purchased the most items?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1 Who is the opponent on June 6?,"SELECT opponent FROM table_name_23 WHERE date = ""june 6""" "What is the average amount of donations by people who donated in the project ""Recording Rockin' Readers""",SELECT AVG(T3.donation_to_project) FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Recording Rockin'' Readers' What is the least year when men's singles is Raju Rai?,"SELECT MIN(year) FROM table_22587192_1 WHERE mens_singles = ""Raju Rai""" Find the last name and hire date of the professor who is in office DRE 102.,"SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'" How many addresses are there in country USA?,SELECT count(*) FROM addresses WHERE country = 'USA' How many railways are there?,SELECT count(*) FROM railway "What is the highest number of matches for Australia when the wickets are more than 13, the average is less than 23.33, and the best bowling is 5/36?","SELECT MAX(matches) FROM table_name_35 WHERE wickets > 13 AND team = ""australia"" AND best_bowling = ""5/36"" AND average < 23.33" Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13?,"SELECT main_contestant FROM table_name_11 WHERE status = ""eliminated"" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13" "Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5?",SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5 What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers,"SELECT official_itv_rating__millions_ FROM table_27319183_7 WHERE total_itv_viewers__millions_ = ""8.53""" "What is Designation, when Launch Date/Time ( GMT ) is 29 June 1972, 03:47?","SELECT designation FROM table_name_73 WHERE launch_date_time___gmt__ = ""29 june 1972, 03:47""" What are each professional's first name and description of the treatment they have performed?,"SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code" "In 1939, what was the finish?","SELECT finish FROM table_name_89 WHERE year = ""1939""" Which stadium is managed by Kari Martonen?,"SELECT stadium FROM table_25129482_1 WHERE manager = ""Kari Martonen""" What was the date of appointment for the manager that replaced Simon Davies? ,"SELECT date_of_appointment FROM table_18795125_6 WHERE outgoing_manager = ""Simon Davies""" Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.,"SELECT apt_type_code , COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC" Please list different IDs of movies that are the newest and have gotten the lowest rating.,SELECT DISTINCT T1.movieid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.year = 4 AND T1.rating = 1 What is the fewest number of golds for teams with 0 silver?,SELECT MIN(gold) FROM table_name_54 WHERE silver < 0 What is the average high temperature for each day of week?,"SELECT avg(high_temperature) , day_of_week FROM weekly_weather GROUP BY day_of_week;" What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?,"SELECT location FROM table_name_19 WHERE method = ""submission (armbar)"" AND opponent = ""mayra conde""" What is the result when the visiting team is syracuse?,"SELECT result FROM table_28298589_2 WHERE visiting_team = ""Syracuse""" Is it home or away when opponent is Pride with a W 11-10 result?,"SELECT home_away FROM table_name_49 WHERE opponent = ""pride"" AND result = ""w 11-10""" What is the position that has the outgoing manager lászló Dajka?,"SELECT position_in_table FROM table_name_60 WHERE outgoing_manager = ""lászló dajka""" List the active business ID and its stars of the businesses fall under the category of Fashion.,"SELECT T1.business_id, T1.stars FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T3.category_name LIKE 'Fashion'" What's the nationality for Nicholas III?,"SELECT nationality FROM table_name_97 WHERE elevator = ""nicholas iii""" State the genre of the movie title with a runtime of only 14 minutes.,SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.runtime = 14 List the names and countries of the players from Gujarat Lions who played in the match held on 11th April 2016.,"SELECT T4.Player_Name, T5.Country_Name FROM Player_Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_Id INNER JOIN Match AS T3 ON T3.Match_Id = T1.Match_Id INNER JOIN Player AS T4 ON T4.Player_Id = T1.Player_Id INNER JOIN Country AS T5 ON T5.Country_Id = T4.Country_Name WHERE T2.Team_Name = 'Gujarat Lions' AND T3.Match_Date = '2016-04-11'" Which team does Robert Brooks play with?,"SELECT nfl_team FROM table_14649522_1 WHERE player = ""Robert Brooks""" Find the names of the artists who are from UK and have produced English songs.,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT artist_name FROM song WHERE languages = ""english""" "What is the lowest year for stage 12, category 1?","SELECT MIN(year) FROM table_name_33 WHERE category = ""1"" AND stage = 12" "What are the results for the game with 82,113 attending?","SELECT result FROM table_name_41 WHERE attendance = ""82,113""" What is the budget type code with the largest number of documents?,SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count ( * ) DESC LIMIT 1 Show names and phones of customers who do not have address information.,"SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history)" What is first names of the top 5 staff who have handled the greatest number of complaints?,SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5 Name the most appearances for bernard allou,"SELECT MAX(appearances¹) FROM table_24565004_2 WHERE name = ""Bernard Allou""" Hello. Can you give me the state in the US with most invoices?,"SELECT billing_state FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT ( * ) DESC LIMIT 1" How many episodes are credited to Jerry Orbach?,SELECT COUNT(T2.person_id) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Jerry Orbach' How many episodes are written by Lew Schneider?,"SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = ""Lew Schneider""" Give me a list of names and years of races that had any driver whose forename is Lewis?,"SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = ""Lewis""" How many people attended the game with a final score of 75-90?,"SELECT attendance FROM table_name_29 WHERE score = ""75-90""" What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?,"SELECT bulgarian_commander FROM table_name_41 WHERE battle = ""battle of thessalonica"" AND date = ""autumn 1040""" What are the ids and names of accounts with 4 or more transactions?,"SELECT T1.account_id , T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING count(*) >= 4" "In the tie where Southampton was the away team, who was the home team?","SELECT home_team FROM table_name_97 WHERE away_team = ""southampton""" What's the average number of wins for those with less than 2 byes?,SELECT AVG(wins) FROM table_name_62 WHERE byes < 2 How many likes correspond to each student id?,"SELECT student_id , count(*) FROM Likes GROUP BY student_id" How many disabled students have been absent for 3 months from school?,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.month = 3 "What is the local name of the country where ""The Valley"" city belongs?",SELECT T2.LocalName FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Name = 'The Valley' Please list the names of the countries with an inflation rate that's 30% above the average.,"SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country GROUP BY T1.Name, T2.Inflation HAVING T2.Inflation > AVG(T2.Inflation) * 1.3" How many professors are teaching class with code ACCT-211?,"SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = ""ACCT-211""" Show the code and description of the most frequent detention type?,"SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count ( * ) DESC LIMIT 1" Show all student IDs with more than total 10 hours per week on all sports played.,SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING SUM(hoursperweek) > 10 What about the ones that haven't?,"SELECT studio FROM film WHERE Director ! = ""Walter Hill""" Please list movie IDs which has the oldest publication date and the cast numbers are zero.,SELECT DISTINCT T1.movieid FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.year = 1 AND T2.cast_num = 0 How many constructors won the III Redex Trophy?,"SELECT COUNT(constructor) FROM table_1140113_5 WHERE race_name = ""III RedeX Trophy""" What district does John Cooksey represent?,"SELECT district FROM table_1341453_20 WHERE incumbent = ""John Cooksey""" How many show times does Jesus Salvador Trevino have?,SELECT sum ( T1.show_times_per_day ) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id where t2.directed_by = 'Jesus Salvador Treviño' GROUP BY T2.directed_by Name the year for open cup did not qualify and national final,"SELECT COUNT(year) FROM table_2553861_1 WHERE open_cup = ""Did not qualify"" AND playoffs = ""National Final""" What is the most common first name?,SELECT person_name FROM person GROUP BY person_name ORDER BY COUNT(person_name) DESC LIMIT 1 Which year or years did a team win 174 games and had an assist number less than 17?,SELECT years FROM table_name_40 WHERE assist < 17 AND games = 174 What party did hilda solis represent?,"SELECT party FROM table_1805191_6 WHERE incumbent = ""Hilda Solis""" How many rounds did Blane Smith play linebacker?,"SELECT COUNT(round) FROM table_name_12 WHERE position = ""linebacker"" AND player = ""blane smith""" What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?,"SELECT abb FROM table_name_30 WHERE disorder = ""carbamoyl phosphate synthetase i deficiency""" "What is Neighborhood, when Branch is Hollywood Library?","SELECT neighborhood FROM table_name_92 WHERE branch = ""hollywood library""" Which EC Comics title ran from 1950 to 1953?,"SELECT title FROM table_name_61 WHERE first_year = ""1950"" AND publisher = ""ec comics"" AND last_year = ""1953""" What is the distance for the course Civitavecchia to San Vincenzo?,"SELECT distance FROM table_name_72 WHERE course = ""civitavecchia to san vincenzo""" How many allergies does the environmental allergy type have?,select count ( Allergy ) from Allergy_Type where AllergyType = 'environmental' How many times did Viorel Moldovan replaced a manager?,"SELECT COUNT(date_of_vacancy) FROM table_17115950_2 WHERE replaced_by = ""Viorel Moldovan""" What date had a record of 43-34?,"SELECT date FROM table_name_17 WHERE record = ""43-34""" "What are the full names, departments, cities, and state provinces for each employee?","SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" What was the final score in 1986?,SELECT score_in_final FROM table_26309085_1 WHERE year = 1986 "What was the class when adt champion racing ranked 1st with an audi r8 chassis, and less than 206 points?","SELECT class FROM table_name_2 WHERE points < 206 AND chassis = ""audi r8"" AND entrant = ""adt champion racing"" AND rank = ""1st""" "What is the highest w plyf with a first yr before 1960, a G plyf greater than 0, a G > .500 less than 43, and a w-l% less than 0.578?",SELECT MAX(w_plyf) FROM table_name_99 WHERE first_yr < 1960 AND g_plyf > 0 AND g_ > _500 < 43 AND w_l_percentage < 0.578 Which projects have no outcome? List the project details.,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes ) What was the score of the game with a loss of Maholm (2–4)?,"SELECT score FROM table_name_81 WHERE loss = ""maholm (2–4)""" how many number of english when kunrei-shiki is otya,"SELECT COUNT(english) FROM table_26263954_1 WHERE kunrei_shiki = ""otya""" "For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.","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""" "Among the episodes with excellent rating which were aired in 2008, describe the title, episode's image, award name and person who were nominated.","SELECT T2.title, T2.episode_image, T1.award, T1.person FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.rating BETWEEN 7 AND 10 AND SUBSTR(T2.air_date, 1, 4) = '2008' AND T1.result = 'Nominee';" How many crew have their own nickname? List their full name along with the nickname.,SELECT COUNT(name) FROM Person WHERE nickname IS NOT NULL; "Among the rides during the rainy days, which ride was the longest? List the start station, end station, and duration of this ride.","SELECT T1.start_station_name, T1.end_station_name, T1.duration FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.events = 'Rain' OR T2.events = 'rain' ORDER BY T1.duration DESC LIMIT 1" How many students in this table?,SELECT count ( * ) FROM STUDENT How many dishes are included in the menu page ID 144?,SELECT COUNT(*) FROM MenuItem WHERE menu_page_id = 144 How many degrees does the engineering department offer?,SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer' List all budget type codes and descriptions.,"SELECT budget_type_code, budget_type_description FROM Ref_budget_codes" What was the fault log ID with the least number of faulty parts?,SELECT T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) asc LIMIT 1 What is the adjusted GDP when the population is 5.141 million?,"SELECT gdp_adjusted__$_billions_ FROM table_1610496_3 WHERE population__millions_ = ""5.141""" "No, I mean what is the maximum number of grants that APP can have?","SELECT max ( grant_id ) FROM Documents where document_type_code = ""APP""" Find the name of physicians whose position title contains the word 'senior'.,SELECT name FROM physician WHERE POSITION LIKE '%senior%' "What the Outcome for the Tournament of Johannesburg, South Africa","SELECT outcome FROM table_name_5 WHERE tournament = ""johannesburg, south africa""" "Among the students that filed for bankruptcy, how many of them have been enrolled in OCC?",SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name WHERE T2.school = 'occ' What are the terps points for the nov. 25/05 game?,"SELECT terps_points FROM table_22862203_2 WHERE date = ""Nov. 25/05""" "If the Plain stop is ㄷ, what is the Non- stop?","SELECT non__stop FROM table_name_92 WHERE plain_stop = ""ㄷ""" how many faculties?,SELECT count ( * ) FROM Faculty "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is ""LG-P760"".","SELECT T1.Char_cells , T1.Pixels , T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = ""LG-P760"";" What is the description when the reserve is Half Moon Caye?,"SELECT description FROM table_name_40 WHERE reserve = ""half moon caye""" what is the planned destruction date of document ID 11,SELECT Planned_Destruction_Date from Documents_to_be_Destroyed where Document_ID = 11 What are the states with an above-average female population?,SELECT DISTINCT T2.state FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T2.female_population > ( SELECT AVG(female_population) FROM zip_data ) "What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole?","SELECT MIN(podiums) FROM table_name_23 WHERE series = ""formula renault 2000 brazil"" AND poles < 1" Find the names of catalog entries with level number 8.,"SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" What country does robert allenby represent?,"SELECT country FROM table_18862490_2 WHERE player = ""Robert Allenby""" Which Games is the highest one that has a Drawn smaller than 0?,SELECT MAX(games) FROM table_name_26 WHERE drawn < 0 What are the names of airport which is the source for the most number of flight routes?,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count ( * ) DESC LIMIT 1 What is the document type description for document type named Film?,"SELECT document_type_description FROM Ref_document_types WHERE document_type_name = ""Film""" What is the name of the claim processing stage that most of the claims are on?,SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1 I want to know the the product names and their color descriptions.,"SELECT t1.product_name , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code" List the names of all distinct products in alphabetical order.,SELECT DISTINCT product_name FROM products ORDER BY product_name List all books written in Arabic.,SELECT T1.title FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'Arabic' How much profit did it make ?,"SELECT Profits_billion FROM Companies WHERE name = ""General Electric""" What is the total population in the city/town of Arendal?,"SELECT COUNT(population) FROM table_157826_1 WHERE city_town = ""Arendal""" What is the home of fc thun (asl) geust?,"SELECT home FROM table_name_83 WHERE geust = ""fc thun (asl)""" "What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?","SELECT elector FROM table_name_5 WHERE nationality = ""roman"" AND elevator = ""urban iv"" AND elevated = ""1261, december 17""" List down at least five publishers of the games with number of sales less than 10000.,SELECT T.publisher_name FROM ( SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T1.region_name = 'North America' AND T2.num_sales * 100000 < 10000 LIMIT 5 ) t How many types of tax did the sales happen in Quebec have?,SELECT COUNT(DISTINCT T1.Name) FROM SalesTaxRate AS T1 INNER JOIN StateProvince AS T2 ON T1.StateProvinceID = T2.StateProvinceID WHERE T2.Name = 'Quebec' What is the product name of ALA synthase?,"SELECT Product FROM enzyme WHERE name = ""ALA synthase""" "Which election has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?","SELECT election FROM table_name_40 WHERE second_member = ""charles robert colvile"" AND first_party = ""conservative"" AND first_member = ""william mundy""" Can you please update that list to show the total number of cards that each of these customers has?,"SELECT customer_id, count ( * ) FROM Customers_cards GROUP BY customer_id having count ( * ) >1" Who is the head coach for the team that plays at Altrincham Ice Dome?,"SELECT head_coach FROM table_2384331_1 WHERE arena = ""Altrincham Ice Dome""" What are the first names and ages of all students who are playing both Football and Lacrosse?,"SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = ""Football"" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = ""Lacrosse"")" How did they get to parking?,"SELECT T1.Name,T3.visit_date,T1.How_to_Get_There FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" union SELECT T1.Name,T3.VISIT_DATE,T1.How_to_Get_There FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Marcelle""" List the names of all distinct nurses ordered by alphabetical order?,SELECT DISTINCT name FROM nurse ORDER BY name Find out the language ID of the movie with the highest popularity.,SELECT T2.language_id FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.popularity DESC LIMIT 1 "What is the lowest Title Playoff, when Total is less than 3, and when League is greater than ""2""?",SELECT MIN(title_playoff) FROM table_name_93 WHERE total < 3 AND league > 2 Which Winner and score has a Finalist of aaron krickstein?,"SELECT winner_and_score FROM table_name_70 WHERE finalist = ""aaron krickstein""" Which film rated by user 59988436 that received 21 comments?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 59988436 AND T1.critic_comments = 21 "Among the students with a capability below 3, what is the difference of undergraduate students from research postgraduate students?",SELECT SUM(CASE WHEN T2.type = 'UG' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.type = 'RPG' THEN 1 ELSE 0 END) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.capability < 3 What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points?,SELECT teaching_language FROM table_name_51 WHERE duration__years_ < 2 AND ects_credit_points < 65 Return all distinct detention type codes.,SELECT DISTINCT detention_type_code FROM Detention can you show me a list of nicknames?,SELECT nickname FROM Staff What horizontal bar score also has a pommel horse score of 15.250?,"SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = ""15.250""" Who was a defensive end at California?,"SELECT player_name FROM table_name_93 WHERE position = ""defensive end"" AND college = ""california""" Count the number of courses without prerequisites.,SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) "Give the number of users who took the ""mental health survey for 2018"".",SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018' What is the stage of winner Carlos Sastre when the general classification was Denis Menchov?,"SELECT stage FROM table_name_21 WHERE general_classification = ""denis menchov"" AND winner = ""carlos sastre""" What is the manufacturer serial number of the 1963 withdrawn year?,"SELECT manufacturer_serial_numbers FROM table_name_86 WHERE year_s__withdrawn = ""1963""" What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?,"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 = ""Dameon"" AND T2.staff_last_name = ""Frami"" UNION 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 = ""Jolie"" AND T2.staff_last_name = ""Weber""" "What percentage of no comment reviews are from ""Teen"" content rating apps?",SELECT CAST(COUNT(CASE WHEN T1.`Content Rating` = 'Teen' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.App) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Translated_Review = 'nan' "What is the Week when the kick off was at 4:05 pm, and the result was w 31–14?","SELECT week FROM table_name_92 WHERE kickoff___et__ = ""4:05 pm"" AND result = ""w 31–14""" What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?,SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 1 What is the lowest game number when the team is Houston? ,"SELECT MIN(game) FROM table_17326036_7 WHERE team = ""Houston""" "What is the lowest Overall, when Player is ""Dan Jennings"", and when Round is greater than 9?","SELECT MIN(overall) FROM table_name_23 WHERE player = ""dan jennings"" AND round > 9" "Which Position has a Pick smaller than 14, and a Player of tyrone bogues?","SELECT position FROM table_name_1 WHERE pick < 14 AND player = ""tyrone bogues""" Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.,"SELECT T2.Dname, T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" Which candidate got this lowest oppose rate?,SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 "what is the built when s.r. number is less than 2033, lb&sc number is less than 18, notes is i2 and withdrawal is cannot handle non-empty timestamp argument! 1935?","SELECT built FROM table_name_48 WHERE sr_number < 2033 AND lb & sc_number < 18 AND notes = ""i2"" AND withdrawal = ""cannot handle non-empty timestamp argument! 1935""" What is the rank when 36.5 is tumbling?,"SELECT COUNT(rank) FROM table_22014431_3 WHERE tumbling = ""36.5""" "Could you please find the products with the max page size as ""A4"" and with the pages per minute color smaller than 5?","SELECT product FROM product WHERE max_page_size = ""A4"" AND pages_per_minute_color < 5" What is the full name of the customer who purchased the highest amount of total price in a single purchase?,"SELECT T2.FirstName, T2.MiddleInitial, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T1.ProductID = T3.ProductID GROUP BY T1.SalesID, T1.Quantity, T3.Price, FirstName, MiddleInitial, LastName ORDER BY T1.Quantity * T3.Price DESC LIMIT 1" "What is the Report with a Score of 3–1, and Set 1 is 19–25?","SELECT report FROM table_name_12 WHERE score = ""3–1"" AND set_1 = ""19–25""" Show the crime rates of counties in ascending order of number of police officers.,SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC What language did the word that means mahjong first come from?,"SELECT source_language FROM table_name_28 WHERE meaning = ""mahjong""" How many apartment bookings are there in total?,SELECT count(*) FROM Apartment_Bookings Please list the location coordinates of all the Galaxy Note 2 devices when an event happened.,"SELECT T1.longitude, T1.latitude FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Note 2'" Calculate the percentage of the International shipping orders on 2022/11/10.,SELECT CAST(SUM(CASE WHEN T1.method_name = 'International' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM shipping_method AS T1 INNER JOIN cust_order AS T2 ON T1.method_id = T2.shipping_method_id WHERE T2.order_date LIKE '2022-11-10%' "hi,List out the all color description",SELECT color_description FROM ref_colors Which Album has a Label of msb 801?,"SELECT album FROM table_name_87 WHERE label = ""msb 801""" "What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?","SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol'" What is the brand of the truck that is used to ship by Zachery Hicks?,SELECT DISTINCT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T3.first_name = 'Zachery' AND T3.last_name = 'Hicks' Count the number of schools that have had basketball matches.,SELECT count(DISTINCT school_id) FROM basketball_match What was the date of the series premiere whose TV network was TV3?,"SELECT series_premiere FROM table_29799700_2 WHERE tv_network_s_ = ""TV3""" "What is Record, when Location is ""Des Moines, Iowa , United States"", and when Method is ""Submission (arm-triangle choke)""?","SELECT record FROM table_name_31 WHERE location = ""des moines, iowa , united states"" AND method = ""submission (arm-triangle choke)""" What are the ship id of HM Cutter Avenger?,"SELECT ship_id FROM ship WHERE name = ""HM Cutter Avenger""" Which League from has a NHL team of san jose sharks (from carolina) 3?,"SELECT league_from FROM table_name_13 WHERE nhl_team = ""san jose sharks (from carolina) 3""" Find the name and age of the person who is a friend of both Dan and Zach,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach'" List any ten male students who enlisted for foreign legion.,SELECT T1.name FROM enlist AS T1 INNER JOIN male AS T2 ON T2.name = T1.name WHERE T1.organ = 'foreign_legion' LIMIT 10 What was the wicket ranking for the match that had a fielding team of Sri Lanka?,"SELECT wicket FROM table_name_73 WHERE fielding_team = ""sri lanka""" What is the average react for a rank more than 8?,SELECT AVG(react) FROM table_name_36 WHERE rank > 8 "What is the loss of the game with 38,062 folks in attendance?","SELECT loss FROM table_name_12 WHERE attendance = ""38,062""" Which locations are shared by more than two wrestlers?,SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2 what is the language/dialect when basikal is sepeda and boleh is bulih?,"SELECT language_dialect FROM table_name_63 WHERE basikal = ""sepeda"" AND boleh = ""bulih""" "Name the total number of opponent in the final for 6–2, 6–1, 6–3","SELECT COUNT(opponent_in_the_final) FROM table_23235767_4 WHERE score_in_the_final = ""6–2, 6–1, 6–3""" "What is Source Version, when Target Version is Java 7, 6, 5?","SELECT source_version FROM table_name_10 WHERE target_version = ""java 7, 6, 5""" "Show the names of sponsors of players whose residence is either ""Brandon"" or ""Birtle"".","SELECT Sponsor_name FROM player WHERE Residence = ""Brandon"" OR Residence = ""Birtle""" How many votes does Carlos Ferrer Eai have?,"SELECT total_votes FROM table_19763199_3 WHERE artist = ""Carlos Ferrer EAI""" What season has an episode written by john o'bryan and directed by ethan spaulding?,"SELECT no_in_season FROM table_15185133_1 WHERE written_by = ""John O'Bryan"" AND directed_by = ""Ethan Spaulding""" "What percentage of the violations for ""Melody Lounge"" are moderate risks?",SELECT CAST(SUM(CASE WHEN T2.risk_category = 'Moderate Risk' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.business_id) FROM businesses AS T1 INNER JOIN violations AS T2 ON T1.business_id = T2.business_id WHERE T1.name = 'Melody Lounge' "What club has a played number of 19, and the lost of 14?","SELECT club FROM table_name_93 WHERE played = ""19"" AND lost = ""14""" how many regional population in Hangzhou city,"SELECT Regional_Population from city WHERE City = ""Hangzhou ( Zhejiang ) """ What is the sum of laps that has a time/retired that is +19.475?,"SELECT SUM(laps) FROM table_name_6 WHERE time_retired = ""+19.475""" Who is the opponent in the fight of 1 round when the record is 18-7?,"SELECT opponent FROM table_name_81 WHERE round = ""1"" AND record = ""18-7""" which countries' tv channels are playing some cartoon written by Todd Casey?,SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' Show the names and main services for train stations that have the top three total number of passengers.,"SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3" How many total points were in 1992?,SELECT COUNT(points) FROM table_name_74 WHERE year = 1992 What are all the movies rated as R? List the titles.,SELECT title FROM film WHERE rating = 'R' What are the scores in matches against Tony Roche?,"SELECT score_in_the_final FROM table_2201724_1 WHERE opponent_in_the_final = ""Tony Roche""" "In the rock genre, how many tracks are there?","SELECT COUNT ( * ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" "Among the HTC users, calculate the percentage of female users who are over 80.","SELECT SUM(IIF(T1.gender = 'F' AND T1.age > 80, 1, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'HTC'" what is the region code of Afghanistan,"select region_code from region where region_name = ""Afghanistan""" What is the average age and how many male students are there in each city?,"SELECT count(*) , avg(age) , city_code FROM student WHERE sex = 'M' GROUP BY city_code" "How many Drawn have a Lost smaller than 25, and a Goal Difference of +7, and a Played larger than 34?","SELECT COUNT(drawn) FROM table_name_4 WHERE lost < 25 AND goal_difference = ""+7"" AND played > 34" Find the schools that were either founded after 1850 or public.,SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' What is the name of the deparment with the highest enrollment?,SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1 "Which date has a Home of washington, a Visitor of florida, and a Record of 8-15-2?","SELECT date FROM table_name_78 WHERE home = ""washington"" AND visitor = ""florida"" AND record = ""8-15-2""" Which Floors has a Location of tower hill?,"SELECT floors FROM table_name_89 WHERE location = ""tower hill""" What are the most losses when there are 5 wins and draws less than 0?,SELECT MAX(losses) FROM table_name_7 WHERE wins = 5 AND draws < 0 what is the country of zip postcode 416?,SELECT country from Addresses where zip_postcode = 416 Which Constructor won the Roussillon Grand Prix?,"SELECT winning_constructor FROM table_name_95 WHERE name = ""roussillon grand prix""" how old is dan?,"SELECT age FROM Person where name = ""Dan""" List the official names of cities that have not held any competition.,SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition) Can you show me the start date for all these grants?,SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application' "What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?","SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = ""illinois"" AND interview > 8.57" What percentage of non-domestic crimes have occurred in the Jefferson Park district?,SELECT CAST(COUNT(CASE WHEN T2.domestic = 'FALSE' THEN T2.case_number END) AS REAL) * 100 / COUNT(T2.case_number) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.district_name = 'Jefferson Park' What status has 15/04/1967 as the date?,"SELECT status FROM table_name_33 WHERE date = ""15/04/1967""" Give the match's venue and winning team for the match ID 392194.,"SELECT T1.Venue_Name, T3.Team_Name FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.venue_id = T2.venue_id INNER JOIN Team AS T3 ON T2.match_winner = T3.Team_Id WHERE T2.Match_Id = 392194" What are the movie titles and average rating of the movies with the lowest average rating?,"SELECT T2.title , avg ( T1.stars ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg ( T1.stars ) LIMIT 1" What are the customer details with those customers,SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id What season shows podium 7?,SELECT MIN(season) FROM table_29471472_1 WHERE podiums = 7 How many gold medals has the club with the most coaches won?,"SELECT T1.club_id , T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY count(*) DESC LIMIT 1" How many universities had over 30000 students in 2011?,SELECT COUNT(*) FROM university_year WHERE year = 2011 AND num_students > 30000 What was the total for the golfer who had a year won of 1987?,"SELECT total FROM table_name_20 WHERE year_s__won = ""1987""" Name the number of county for 90 population,SELECT COUNT(county) FROM table_18600760_8 WHERE pop__2010_ = 90 Find the average and oldest age for students with different sex.,"SELECT avg(age) , max(age) , sex FROM student GROUP BY sex" How many hebrew forms are there for the arabic form yuktibu يكتب?,"SELECT COUNT(hebrew_form) FROM table_2784232_1 WHERE arabic_form = ""yuktibu يكتب""" What was the payout in US dollars at the Insight Bowl?,"SELECT payout___us$__ FROM table_name_59 WHERE bowl_game = ""insight bowl""" What is the district when the first elected was in 1986?,SELECT district FROM table_1805191_14 WHERE first_elected = 1986 "How many series numbers do the episodes originally aired on October 28, 1990?","SELECT COUNT(no_in_series) FROM table_2226817_6 WHERE original_air_date = ""October 28, 1990""" How many of those movies received less than 2 ratings?,SELECT count ( * ) FROM ( SELECT * FROM Rating GROUP BY mID HAVING count ( * ) < 2 ) "Can you list the names of all the customers who have the letter ""B"" in their name, please? | The details of the customers with a letter ""B"" in their customer details are listed. | Can you list the details and IDs of all the staff in a table, please?","SELECT Staff_ID,Staff_Details from staff" What team was Andrew Ranger in?,"SELECT team FROM table_name_78 WHERE name = ""andrew ranger""" Which Names have Deciles larger than 7?,SELECT name FROM table_name_38 WHERE decile > 7 Which continent was Michael Preston born on?,SELECT birth_country FROM Person WHERE name = 'Michael Preston' What is the date of the 21:12 Set 2?,"SELECT date FROM table_name_17 WHERE set_2 = ""21:12""" What is the miles per square hour of the cheapest car produced by the USA?,SELECT T4.acceleration FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price ASC LIMIT 1 Provide medications received by patients with an allergy to mould on 6th June 2016.,SELECT T2.DESCRIPTION FROM allergies AS T1 INNER JOIN medications AS T2 ON T1.PATIENT = T2.PATIENT WHERE T1.START = '6/6/16' AND T1.DESCRIPTION = 'Allergy to mould' What shows for region when the date is february 2006?,"SELECT region FROM table_name_29 WHERE date = ""february 2006""" In which tournament was the result 25th?,"SELECT tournament FROM table_name_24 WHERE result = ""25th""" "When it is October 25, 1981 who is the opponent?","SELECT opponent FROM table_14941284_1 WHERE date = ""October 25, 1981""" How many winning drivers are there when the winning team is Bryan herta autosport?,"SELECT COUNT(winning_driver) FROM table_19850806_3 WHERE winning_team = ""Bryan Herta Autosport""" What's the score on february 18 when the visitors are the montreal canadiens?,"SELECT score FROM table_name_46 WHERE visitor = ""montreal canadiens"" AND date = ""february 18""" "If the version is 1.5b, what is the distribution mechanism?","SELECT distribution_mechanism FROM table_2263152_1 WHERE version = ""1.5b""" What are the names and main services for train stations for these?,"SELECT name, main_services FROM station ORDER BY total_passengers DESC LIMIT 3" "What is Result, when Original Title is ""Qala""?","SELECT result FROM table_name_38 WHERE original_title = ""qala""" Which Year has a Category of best performance by a leading actress in a musical?,"SELECT MAX(year) FROM table_name_72 WHERE category = ""best performance by a leading actress in a musical""" State the salary of the employee who did the most inspections.,"SELECT T1.salary FROM employee AS T1 INNER JOIN ( SELECT T.employee_id, COUNT(T.inspection_id) FROM inspection AS T GROUP BY T.employee_id ORDER BY COUNT(T.inspection_id) DESC LIMIT 1 ) AS T2 ON T1.employee_id = T2.employee_id" How people attended Victoria Park?,"SELECT AVG(crowd) FROM table_name_60 WHERE venue = ""victoria park""" Show all cities without a branch having more than 100 memberships.,SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 Give the name of the brands that brewed their first drink between 1996 and 2000 in the descending order of the date brewed.,SELECT BrandName FROM rootbeerbrand WHERE FirstBrewedYear BETWEEN '1996' AND '2000' ORDER BY FirstBrewedYear DESC What is the average rating of all the podcasts in category art?,SELECT AVG(T2.rating) FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'arts' Which fleet was named Orenburg?,"SELECT fleet FROM table_name_87 WHERE name = ""orenburg""" How many 20 years old athletes were there in the 1984 Summer Olympic Games?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1984 Summer' AND T2.age = 20 Which Principal activities have an Incorporated in of france?,"SELECT principal_activities FROM table_name_76 WHERE incorporated_in = ""france""" How many students are taught by teacher TARRING LEIA?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""TARRING"" AND T2.lastname = ""LEIA""" What are the official languages used in Greece?,SELECT T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.IsOfficial = 'T' AND T2.name = 'Greece' What is the county with an elevation of 1262?,SELECT county FROM table_12280396_1 WHERE elevation__m_ = 1262 "What is Place, when Score is ""69-69=138"", and when Country is ""United States""?","SELECT place FROM table_name_77 WHERE score = 69 - 69 = 138 AND country = ""united states""" "Mention the oldest empoyee's full name, title, salary and number of orders which were shipped to USA by him.","SELECT T1.FirstName, T1.LastName, T1.Title, T1.Salary , COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE ShipCountry = 'USA' GROUP BY T1.FirstName, T1.LastName, T1.Title, T1.Salary, T1.BirthDate ORDER BY T1.BirthDate LIMIT 1" What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?,"SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" "What are the names of the products with a profit of no less than 1,000 in one single order?",SELECT DISTINCT T2.`Product Name` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.Profit > 1000 Who is the head of this department?,SELECT distinct manager_id from employees where department_id = ( select department_id from employees where employee_id = 163 ) Which students have absents the most?,SELECT name FROM longest_absense_from_school WHERE month = ( SELECT MAX(month) FROM longest_absense_from_school ) "What is Score, when Edition is 2011, and when Surface is Hard (i)?","SELECT score FROM table_name_37 WHERE edition = 2011 AND surface = ""hard (i)""" What nationality is Larry McMorran?,"SELECT nationality FROM table_name_59 WHERE player = ""larry mcmorran""" If there were 14 in 1990 and 6 survived how many were destroyed?,SELECT destroyed FROM table_1817852_1 WHERE 1990 = 14 AND survived = 6 Great! How much total money has Lucas Mancini spent in total?,"SELECT sum ( T2.total ) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini""" How many countries in the North America Region has completed the vital registration?,SELECT COUNT(CountryCode) FROM Country WHERE VitalRegistrationComplete = 'Yes' AND Region = 'North America' What is the title of the paper that was written by Cheng Huang and affiliated with Microsoft?,SELECT T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Cheng Huang' AND T2.Affiliation = 'Microsoft' What is the staff id of Bosco?,"SELECT staff_id FROM staff where staff_last_name = ""Bosco""" what's the evening gown with swimsuit being 9.134,"SELECT evening_gown FROM table_11970261_2 WHERE swimsuit = ""9.134""" What are the apps for less than 61 goals and before rank 6?,SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61 List all the people with accounts,select name from ACCOUNTS How many tracks are in the Rock genre?,"SELECT count ( T2.id ) FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock""" "Name the least births for conversion being 26,333","SELECT MIN(births) FROM table_28137918_5 WHERE conversions = ""26,333""" "Among the casts who were born in Los Angeles, describe the name and birth date of who have 1.8 m and above in height.","SELECT name, birthdate FROM Person WHERE birth_place = 'Los Angeles' AND height_meters >= 1.8;" "How many floors have a Height m / feet of 900 / 2,952?","SELECT floors FROM table_name_58 WHERE height_m___feet = ""900 / 2,952""" "What is the highest number of successful defenses in brandon, florida and a reign less than 1?","SELECT MAX(successful_defenses) FROM table_name_13 WHERE location = ""brandon, florida"" AND reign < 1" Indicate the coordinates of all the deserts whose area is in more than one country.,"SELECT T1.Latitude, T1.Longitude FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert GROUP BY T1.Name, T1.Latitude, T1.Longitude HAVING COUNT(T1.Name) > 1" How about customers?,SELECT count ( * ) FROM customers What are the class codes for the students who took some course and got a C?,SELECT t2.class_code FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' How many products are out of stock?,SELECT COUNT(ProductID) FROM ProductVendor WHERE OnOrderQty = 0 What is the date for the winner Universitario after the 1943 season?,"SELECT date FROM table_name_99 WHERE winner = ""universitario"" AND season > 1943" Show ids for the faculty members who don't advise any student.,SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student "In zip code 94107, on which day neither Fog nor Rain was not observed?","SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS != ""Fog"" AND EVENTS != ""Rain""" The indicative of si måchan has what as the inverse subjunctive?,"SELECT inverse_subjunctive FROM table_name_8 WHERE indicative = ""si måchan""" What is the address for the school that has the coyotes mascot?,"SELECT address FROM table_name_44 WHERE mascot = ""coyotes""" How many drivers participated in the race Australian Grand Prix held in 2009?,"SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = ""Australian Grand Prix"" AND YEAR = 2009" Find the name of instructors who are advising more than one student.,SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1 And how much was their average amount purchased for each product?,"select product_id, avg ( total_amount_purchased ) from Product_Suppliers group by product_id" What was The Word for production code 6084?,SELECT the_wørd FROM table_25691838_6 WHERE production_code = 6084 "Which Year(s) of manufacture has a Quantity larger than 39, and a Type of 1′c1′ h2t?","SELECT year_s__of_manufacture FROM table_name_90 WHERE quantity > 39 AND type = ""1′c1′ h2t""" List the full name and phone number of clients who submitted the complaint via fax.,"SELECT T1.first, T1.middle, T1.last, T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Submitted via` = 'Fax'" "Which catalog publishers have substring ""Murray"" in their names?","SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" "For the orders of Customer ""WHITC"", what is the percentage of the orders were fulfilled with shipper company ""United Package""?",SELECT CAST(COUNT(CASE WHEN T2.CompanyName = 'United Package' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.CustomerID = 'WHITC' "Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears?","SELECT conference_joined FROM table_name_67 WHERE location = ""terre haute"" AND mascot = ""golden bears""" "Find the name, city, and country of the airport that has the lowest altitude.","SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1" Who was the away team at Brunswick Street Oval?,"SELECT away_team AS score FROM table_name_89 WHERE venue = ""brunswick street oval""" How many faculty lines are there in the university that conferred the least number of degrees in year 2001?,SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1 "Which Qual 1 has a Team of team player's, and a Best of 58.405?","SELECT qual_1 FROM table_name_91 WHERE team = ""team player's"" AND best = ""58.405""" What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qualifying competition?,"SELECT date FROM table_name_24 WHERE scored < 2 AND competition = ""uefa euro 2004 qualifying""" What is the social number of the client who has the longest delay in his/her complaint? Calculate the days of delay and state the company's response to the consumer.,"SELECT T1.social , 365 * (strftime('%Y', T2.`Date sent to company`) - strftime('%Y', T2.`Date received`)) + 30 * (strftime('%M', T2.`Date sent to company`) - strftime('%M', T2.`Date received`)) + (strftime('%d', T2.`Date sent to company`) - strftime('%d', T2.`Date received`)), T2.`Company response to consumer` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID ORDER BY 365 * (strftime('%Y', T2.`Date sent to company`) - strftime('%Y', T2.`Date received`)) + 30 * (strftime('%M', T2.`Date sent to company`) - strftime('%M', T2.`Date received`)) + (strftime('%d', T2.`Date sent to company`) - strftime('%d', T2.`Date received`)) DESC LIMIT 1" Whose Visitor has a Record of 10–11–5?,"SELECT visitor FROM table_name_82 WHERE record = ""10–11–5""" What is the title that was first published in February 2009 and is still ongoing?,"SELECT title FROM table_name_44 WHERE last_issue = ""ongoing"" AND first_issue = ""february 2009""" "What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?","SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" What was the finale for 潮爆大狀,"SELECT finale FROM table_10942714_1 WHERE chinese_title = ""潮爆大狀""" What is the average life expectancy in African countries that are republics?,"SELECT avg(LifeExpectancy) FROM country WHERE Continent = ""Africa"" AND GovernmentForm = ""Republic""" "What is the customer last name, id and phone number with most number of orders?","SELECT T2.customer_last_name , T1.customer_id , T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1" Tell me the part name of the part id 2 ?,"SELECT part_name FROM Parts WHERE part_id = ""2""" Name the D 41 √ when it has D 43 √ of r 18,"SELECT d_41_√ FROM table_name_35 WHERE d_43_√ = ""r 18""" Show the name of each county along with the corresponding number of delegates from that county.,"SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id" What is the charity of the celebrity with the background reality star?,"SELECT charity FROM table_12286195_1 WHERE background = ""Reality Star""" "Which current legislator has served for more terms, Sherrod Brown or Maria Cantwell?",SELECT CASE WHEN SUM(CASE WHEN T1.official_full_name = 'Maria Cantwell' THEN 1 ELSE 0 END) > SUM(CASE WHEN T1.official_full_name = 'Sherrod Brown' THEN 1 ELSE 0 END) THEN 'Maria Cantwell' ELSE 'Sherrod Brown' END FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide Which country are the majority of the suppliers located?,SELECT Country FROM Suppliers GROUP BY Country ORDER BY COUNT(SupplierID) DESC LIMIT 1 How many songs have vocals of type lead?,"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""lead""" What's the category for the tween academy: class of 2012 nomination?,"SELECT category FROM table_name_86 WHERE nominated_for = ""tween academy: class of 2012""" And in what categories were those nominations?,"SELECT name, category FROM musical where year = 1986 and nominee = ""Cleavant Derricks""" "What is Site, when Opponent is ""All times are in eastern.""?","SELECT site FROM table_name_13 WHERE opponent = ""all times are in eastern.""" "What year has an issue price over 15.95, and a special notes from edmonton oilers gift set?","SELECT COUNT(year) FROM table_name_10 WHERE issue_price > 15.95 AND special_notes = ""from edmonton oilers gift set""" Who's the Runner(s)-up with a Winning score of −19 (71-63-63-64=261)?,SELECT runner_s__up FROM table_name_97 WHERE winning_score = −19(71 - 63 - 63 - 64 = 261) What is the total number of overall figures when duke was the college and the round was higher than 7?,"SELECT SUM(overall) FROM table_name_99 WHERE college = ""duke"" AND round > 7" "On what date was the attendance 17,136?","SELECT date FROM table_name_36 WHERE attendance = ""17,136""" Find the titles of all movies that have no ratings.,SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating) Find the number of complaints with Product Failure type for each complaint status?,"SELECT complaint_status_code , count ( * ) FROM complaints WHERE complaint_type_code = ""Product Failure"" GROUP BY complaint_status_code" "What is the score of the game with 39,592 attendance?","SELECT score FROM table_name_19 WHERE attendance = ""39,592""" "What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing?","SELECT SUM(touchdowns) FROM table_name_31 WHERE field_goals = 0 AND player = ""joe maddock"" AND points < 5" Show the name of the product with product id 1?,SELECT product_name FROM products WHERE product_id = '1' What was the score on March 5 at Vancouver?,"SELECT score FROM table_name_42 WHERE date = ""march 5""" Total number of laps at a time of +56.977?,"SELECT COUNT(laps) FROM table_name_31 WHERE time = ""+56.977""" In which week # was the original artist of Barreto's song choice was Leila Pinheiro?,"SELECT week__number FROM table_27614571_1 WHERE original_artist = ""Leila Pinheiro""" Report the total number of students for each fourth-grade classroom.,"SELECT classroom , count(*) FROM list WHERE grade = ""4"" GROUP BY classroom" Which people had the best 10-year period when Capablanca had the best 15-year period?,"SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = ""Capablanca""" How many acting statuses are there?,SELECT count(DISTINCT temporary_acting) FROM management List all the distinct product names ordered by product id?,SELECT DISTINCT product_name FROM product ORDER BY product_id What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?,"SELECT karen_handel FROM table_name_78 WHERE poll_source = ""insideradvantage"" AND john_oxendine = ""15%""" What is the average that has 441 as wicket?,"SELECT average FROM table_name_31 WHERE s_wicket = ""441""" Who was crew chief for the team owned by Bob Leavine?,"SELECT crew_chief FROM table_1266602_2 WHERE owner_s_ = ""Bob Leavine""" "What was the vote tally on the episode aired May 5, 2005?","SELECT vote FROM table_1272844_2 WHERE air_date = ""May 5, 2005""" What's the total amount of Bulgaria that has more than 13 bronze?,"SELECT SUM(total) FROM table_name_2 WHERE nation = ""bulgaria"" AND bronze > 13" "Which institution does ""Katsuhiro Ueno"" belong to?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Katsuhiro"" AND t1.lname = ""Ueno""" What is the cable rank for bbc three weekly ranking of n/a?,"SELECT cable_rank FROM table_24399615_3 WHERE bbc_three_weekly_ranking = ""N/A""" What is the smallest number for Cars per Set built in 1977-1979 larger than 32?,"SELECT MIN(cars_per_set) FROM table_name_88 WHERE year_built = ""1977-1979"" AND number > 32" list the films with less than three in inventory,SELECT title FROM film INTERSECT SELECT T1.title FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count ( * ) < 3 "What is Opponents, when Partner is Vitalia Diatchenko?","SELECT opponents FROM table_name_60 WHERE partner = ""vitalia diatchenko""" "List out the editors name? | sorry, did you mean you need the Editor ID | How many editor id's in the table?",SELECT count ( Editor_ID ) FROM editor Find the code of the location with the largest number of documents.,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1 How many games were on December 5?,"SELECT SUM(game) FROM table_name_80 WHERE date = ""december 5""" What is the location when the new york jets lost earlier than 1997 and a Result of 31–28?,"SELECT location FROM table_name_20 WHERE loser = ""new york jets"" AND year < 1997 AND result = ""31–28""" what is a building that is proposed and will have 32 floors?,"SELECT building FROM table_name_22 WHERE status = ""proposed"" AND floors = 32" "List the product reviewed with 1 star on March 14, 2016 from Newton, Massachusetts.",SELECT T2.Product FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T1.city = 'Newton' AND T1.state_abbrev = 'MA' AND T2.Date = '2016-03-14' AND T2.Stars = 1 What is the current official Twitter handle of Roger F. Wicker?,SELECT T2.twitter FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Roger F. Wicker' When is the finish of the season that started on September 25?,"SELECT finish__incl_championship_ FROM table_22383603_1 WHERE start__reg_season_ = ""September 25""" What is the score for the opponent Vancouver Canucks?,"SELECT score FROM table_name_23 WHERE opponent = ""vancouver canucks""" What is her customer id?,"SELECT t2.customer_id, t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1" What is every time(cet) for the name of Lillehammer 2?,"SELECT time__cet_ FROM table_21536557_2 WHERE name = ""Lillehammer 2""" Find the name and age of the person who is a friend of Dan or Alice.,"SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'" Show names of companies and that of employees in descending order of number of years working for that employee.,"SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working" What are the title and issues of the books?,"SELECT Title , Issues FROM book" What was the population of Wilcox County in 2010?,SELECT SUM(T2.population_2010) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'WILCOX' List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.,"SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS"";" What is Justin Leonard's To par?,"SELECT to_par FROM table_name_59 WHERE player = ""justin leonard""" Name the total number of years for a 39-31 record,"SELECT COUNT(year) FROM table_name_18 WHERE record = ""39-31""" How about the names of all colleges that have an enrollment less than at least one of the colleges in OK?,SELECT DISTINCT cName FROM college WHERE enr < ( SELECT max ( enr ) FROM college WHERE state = 'OK' ) Name the opponents for record of 2-1,"SELECT opponents FROM table_21092444_1 WHERE record = ""2-1""" How many users did not leave a review?,SELECT name FROM useracct WHERE u_id NOT IN ( SELECT u_id FROM review ) What is the total number of years active listings where Asian Cup played as a captain is Japan 1992?,"SELECT COUNT(years_active) FROM table_272865_20 WHERE asian_cup_played_as_a_captain = ""Japan 1992""" "When the Home team of collingwood played, what was the opposing Away team score?","SELECT away_team AS score FROM table_name_49 WHERE home_team = ""collingwood""" Find the number of routes with destination airports in Italy?,SELECT count ( * ) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' How many roles are there?,SELECT count(*) FROM ROLES Name the most runs for wickets of 66 and matches less than 13,SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13 Provide the numbers of the menu item which includes Fresh lobsters in every style and location where that dish was used on a menu.,"SELECT T2.menu_id, T1.xpos, T1.ypos FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Fresh lobsters in every style'" Give the airline with abbreviation 'UAL'.,"SELECT Airline FROM AIRLINES WHERE Abbreviation = ""UAL""" What is the maximum horsepower and the make of the car models with 3 cylinders?,"SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;" What are the names of the festivals that occurred that year?,"SELECT Festival_Name FROM festival_detail WHERE YEAR = ""2007""" Which capacity has the class 4c3h?,"SELECT capacity FROM table_name_37 WHERE class = ""4c3h""" "What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?",SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826 "How many persons were born in New York, USA?",SELECT COUNT(name) FROM Person WHERE birth_place = 'New York City' AND birth_country = 'USA'; What are the names of tournaments that have more than 10 matches?,SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10 How many English language codes whose comments for the method are in the XML format?,SELECT COUNT(Lang) FROM Method WHERE Lang = 'en' AND CommentIsXml = 1 What bullet does the gun with a shoulder measurement of 12.5 (.491)?,"SELECT bullet FROM table_name_51 WHERE shoulder = ""12.5 (.491)""" How many departments are in the division AS?,"SELECT count(*) FROM DEPARTMENT WHERE Division = ""AS""" "Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?","SELECT method FROM table_name_33 WHERE event = ""shooto"" AND round = 2 AND opponent = ""issei tamura""" "Hi, can you tell me the name of an HR employee?","SELECT employee_name FROM Employees where Role_code = ""HR""" What was the record at the game that had a loss of Wyatt (4–4)?,"SELECT record FROM table_name_41 WHERE loss = ""wyatt (4–4)""" Who had the most rebounds in the game against New York?,"SELECT high_rebounds FROM table_name_74 WHERE opponent = ""new york""" What are the dates of ceremony and results for each music festival?,"SELECT Date_of_ceremony , RESULT FROM music_festival" "What 1998 has 2r as a 1993, and 1r as a 1990?","SELECT 1998 FROM table_name_46 WHERE 1993 = ""2r"" AND 1990 = ""1r""" "For each zip code, return the average mean temperature of August there.","SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE ""8/%"" GROUP BY zip_code" What's the diameter when longitude is 105.0e before 2003?,"SELECT SUM(diameter__km_) FROM table_name_42 WHERE longitude = ""105.0e"" AND year_named < 2003" What is the predicate class of image ID 68?,SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 68 What are the names of all the publishers who have published at least 30 books?,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name HAVING COUNT(T2.publisher_name) >= 30 "Among the episode with highest votes, what is the category credited to Carlton Batten?",SELECT T2.category FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Carlton Batten' AND T2.credited = 'true' ORDER BY T1.votes DESC LIMIT 1; "Which Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3?","SELECT MAX(pick__number) FROM table_name_14 WHERE overall > 21 AND college = ""north carolina"" AND round < 3" what is the home city for the stadion src mladost?,"SELECT home_city FROM table_name_29 WHERE stadium = ""stadion src mladost""" Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct Name the surface for nathalie tauziat,"SELECT surface FROM table_24638867_6 WHERE partner = ""Nathalie Tauziat""" Name the number of driver for fin pos of 19,SELECT COUNT(driver) FROM table_17304308_1 WHERE fin_pos = 19 Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1,"SELECT fencing_victories__pts_ FROM table_name_61 WHERE shooting_score__pts_ = ""187 (1180)"" AND total < 5640" What episode number was written by Gregg Hurwitz?,"SELECT no FROM table_24938621_3 WHERE written_by = ""Gregg Hurwitz""" How many camera lenses are not used in taking any photos?,SELECT COUNT(*) FROM camera_lens WHERE NOT id IN (SELECT camera_lens_id FROM photos) What is the most reported crime in the Northwest side?,SELECT T3.secondary_description FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T1.side = 'Northwest ' GROUP BY T3.secondary_description ORDER BY COUNT(*) DESC LIMIT 1 Name the most 3 credits,SELECT MIN(3 AS _credits) FROM table_148535_2 What was the score of the game on June 28?,"SELECT score FROM table_name_81 WHERE date = ""june 28""" What were the wins of 1983?,SELECT wins FROM table_2622469_1 WHERE year = 1983 What is the result when the score is 4-0?,"SELECT result FROM table_name_82 WHERE score = ""4-0""" How many distinct allergies are there?,SELECT count(DISTINCT allergytype) FROM Allergy_type How many different players trained for more than 1000 hours?,SELECT count(*) FROM Player WHERE HS > 1000 "How many Golds did Rank 10 get, with a Bronze larger than 2?","SELECT COUNT(gold) FROM table_name_99 WHERE rank = ""10"" AND bronze > 2" How many wins when the average start is 29.0?,"SELECT COUNT(wins) FROM table_2182562_1 WHERE avg_start = ""29.0""" What is the game number against the team Boston?,"SELECT COUNT(game) FROM table_name_3 WHERE team = ""boston""" What year had less than 36 laps?,SELECT year FROM table_name_17 WHERE laps < 36 What are the names of the songs that do not have back vocals?,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""back""" what are all the rating with viewers (m) being 2.61,"SELECT rating FROM table_13110459_2 WHERE viewers__m_ = ""2.61""" Which IHSAA class does speedway school belong to?,"SELECT ihsaa_class FROM table_name_85 WHERE school = ""speedway""" What Time has a Show Name of mornings with neil mitchell?,"SELECT time FROM table_name_44 WHERE show_name = ""mornings with neil mitchell""" Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?,"SELECT team_1 FROM table_name_2 WHERE team_2 = ""la nuova piovese (veneto a)""" "Show all titles and their instructors' names for courses in 2008, in alphabetical order by title.","SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title" "Median household income of $40,340, and a Number of households smaller than 64,767 is what average population?","SELECT AVG(population) FROM table_name_54 WHERE median_household_income = ""$40,340"" AND number_of_households < 64 OFFSET 767" How many trains have 'Express' in their names?,"SELECT count(*) FROM train WHERE name LIKE ""%Express%"";" "Where does the person with the BusinessEntityID ""5555"" live?","SELECT T3.City, T3.AddressLine1 FROM BusinessEntityAddress AS T1 INNER JOIN AddressType AS T2 ON T1.AddressTypeID = T2.AddressTypeID INNER JOIN Address AS T3 ON T1.AddressID = T3.AddressID WHERE T1.BusinessEntityID = 5555 AND T2.Name = 'Home'" What are the different allergy types?,SELECT DISTINCT allergytype FROM Allergy_type What is the last name of the staff who has handled the first ever complaint?,SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1 "What is the lowest Grid, when Laps is 21, when Manufacturer is Yamaha, and when Time is +18.802?","SELECT MIN(grid) FROM table_name_10 WHERE laps = 21 AND manufacturer = ""yamaha"" AND time = ""+18.802""" which locations of parties have hosts older than 50?,SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 Show the names of people that are on affirmative side of debates with number of audience bigger than 200.,SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 How many dates had an average speed of 102.003?,"SELECT COUNT(date) FROM table_2175858_1 WHERE average_speed__mph_ = ""102.003""" Show all publishers and the number of books for each publisher.,"SELECT publisher , count(*) FROM book_club GROUP BY publisher" What is the description of the film ACADEMY DINOSAUR?,SELECT description FROM film WHERE title = 'ACADEMY DINOSAUR' Find the titles of items whose rating is higher than the average review rating of all items.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > (SELECT avg(rating) FROM review) "What is the highest number of points team vitória, which had more than 38 played, had?","SELECT MAX(points) FROM table_name_92 WHERE team = ""vitória"" AND played > 38" Show the role description of the project staff involved in the most number of project outcomes?,SELECT T1.role_description FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count ( * ) DESC LIMIT 1 "What date was the location attendance at&t center 18,797, and a game earlier than 57?","SELECT date FROM table_name_24 WHERE location_attendance = ""at&t center 18,797"" AND game < 57" Find the number of scientists involved for each project name.,"SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name" Leading scorer during the game of 68-79?,"SELECT Leading AS scorer FROM table_name_45 WHERE score = ""68-79""" "What percentage of genes located in the cytoskeleton are of unknown class? And of these, how many are not conditional phenotypes?","SELECT SUM(Localization = 'cytoskeleton' AND Phenotype = 'Conditional phenotypes') , CAST(SUM(Localization = 'cytoskeleton') AS REAL) * 100 / COUNT(GeneID) FROM Genes;" "What is the Wins with a Top-25 of 3, and a Top-5 larger than 1?",SELECT AVG(wins) FROM table_name_86 WHERE top_25 = 3 AND top_5 > 1 How many of these drivers are also from Hartford?,SELECT count ( * ) FROM driver WHERE home_city = 'Hartford' AND age > 40 Could you also show me the total enrollment for each type of institution?,"SELECT TYPE , count ( * ) , sum ( enrollment ) FROM institution GROUP BY TYPE" List all the subject names.,SELECT subject_name FROM SUBJECTS How many games has each stadium held?,"SELECT T1.name , count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id" "What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?","SELECT MAX(games) FROM table_name_75 WHERE team = ""ciudad de la laguna"" AND points > 357" "Return the names and locations of shops, ordered by name in alphabetical order.","SELECT Shop_Name , LOCATION FROM shop ORDER BY Shop_Name ASC" Which Surface has a Score of 2009 wta tour?,"SELECT surface FROM table_name_13 WHERE score = ""2009 wta tour""" What region is Kabul in?,"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = ""Kabul""" whats the course id of statistics,"SELECT course_id FROM Courses WHERE course_name = ""statistics""" What is the first and last name of students with highest gpa?,"SELECT f_name, l_name FROM student WHERE gpa = ( SELECT MAX(gpa) FROM student )" How many Henry Weinhard's were bought by Nicholas Sparks?,SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T1.First = 'Nicholas' AND T1.Last = 'Sparks' AND T4.BrandName LIKE 'Henry Weinhard%s' "What is the lowest 1994-1995, when Points is 145, and when Played is less than 114?",SELECT MIN(1994 AS _1995) FROM table_name_2 WHERE points = 145 AND played < 114 "Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?","SELECT opponent FROM table_name_77 WHERE january > 8 AND game < 48 AND score = ""5–3""" Return the different countries for artists.,SELECT DISTINCT country FROM artist Find all the customer last names that do not have invoice totals larger than 20.,SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20 What is the greatest Wins with Losses larger than 1?,SELECT MAX(wins) FROM table_name_48 WHERE losses > 1 What is the title of the movie that was made with the most money and resources?,SELECT title FROM movie ORDER BY budget DESC LIMIT 1 What are the Odds for the Horse called Ready's Echo?,"SELECT odds FROM table_name_72 WHERE horse = ""ready's echo""" How many department stores does the store chain South have?,"SELECT count(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""South""" Who was the RF when the SP was vicente padilla?,"SELECT rightfielder FROM table_12142298_2 WHERE starting_pitcher = ""Vicente Padilla""" What was the margin of victory for Isao Aoki when he was a runner-up?,"SELECT margin_of_victory FROM table_name_12 WHERE runner_s__up = ""isao aoki""" What is the job title of the oldest employee in the company? In which department is he in?,"SELECT T2.JobTitle, T4.Name FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID INNER JOIN Department AS T4 ON T3.DepartmentID = T4.DepartmentID ORDER BY T2.HireDate LIMIT 1" What are the Chinese characters for the word that has a Rōmaji of chāshū?,"SELECT chinese FROM table_name_61 WHERE rōmaji = ""chāshū""" "Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?","SELECT format FROM table_name_22 WHERE interactivity_support = ""no"" AND word_wrap_support = ""yes"" AND image_support = ""yes"" AND open_standard = ""yes""" How many people directed the episode that Joe Toplyn wrote?,"SELECT COUNT(directed_by) FROM table_25716397_1 WHERE written_by = ""Joe Toplyn""" What platform came out before 2009 with the game wii sports?,"SELECT platform_s_ FROM table_name_38 WHERE year < 2009 AND game = ""wii sports""" Please list the brands of all the root beer that Frank-Paul Santangelo had purchased on 2014/7/7.,SELECT DISTINCT T4.BrandName FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND T2.TransactionDate = '2014-07-07' what is their unsure rate? | Do you mean the unsure rate of the people who are female? | Yes,SELECT t2.Unsure_rate FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = 'F' What date has 11 as the tie no.?,"SELECT date FROM table_name_48 WHERE tie_no = ""11""" Name the reason Walter Bahringer visited medical professionals in July 2009.,SELECT T2.REASONDESCRIPTION FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Walter' AND T1.last = 'Bahringer' AND T2.DATE LIKE '2009-07%' How many years was famas awards the award giving body?,"SELECT COUNT(year) FROM table_name_47 WHERE award_giving_body = ""famas awards""" What is the 1995 value with of the 1993 ATP Masters Series?,"SELECT 1995 FROM table_name_15 WHERE 1993 = ""atp masters series""" How many transaction does account with name 337 have?,"SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = ""337""" Who is the builder for br no. 31779?,SELECT builder FROM table_17607663_1 WHERE br_no = 31779 how many departments are in table?,SELECT count ( * ) from department what about the other visit details of engineer id 8?,SELECT other_visit_details from Engineer_Visits where engineer_id = 8 what team was the visitor in the chicago game,"SELECT visitor FROM table_name_33 WHERE home = ""chicago""" What is the mean game number when the points scored were more than 99?,SELECT AVG(game) FROM table_name_73 WHERE points > 99 what is the sorted list of total checking and savings balance by ascending order?,SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance Which problem id and log id are assigned to the staff named Rylan Homenick?,"SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = ""Rylan"" AND T1.staff_last_name = ""Homenick""" What are the names of all products?,SELECT Name FROM Products What stadium is in the city of Debrecen?,"SELECT stadium FROM table_name_81 WHERE city = ""debrecen""" On what Date was The Open Championship in Japan?,"SELECT date FROM table_name_99 WHERE major = ""the open championship"" AND country = ""japan""" How many people attended the game on May 10?,"SELECT COUNT(attendance) FROM table_name_44 WHERE date = ""may 10""" Name the avg finish for position of 70th,"SELECT avg_finish FROM table_2308381_2 WHERE position = ""70th""" Name the score for april 28,"SELECT score FROM table_name_66 WHERE date = ""april 28""" What are the titles of the films starred by Russell Close?,SELECT T3.title FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.first_name = 'Russell' AND T2.last_name = 'Close' How much money does player horton smith have?,"SELECT money___$__ FROM table_name_62 WHERE player = ""horton smith""" What is the block code for room 201?,SELECT T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode where T2.roomnumber = 201 What are the names of the pilots in alphabetical order?,SELECT Name FROM pilot ORDER BY Name ASC "Return the name, location and district of all shops in descending order of number of products.","SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC" "For the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight?",SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/1' ORDER BY T2.DEP_DELAY DESC LIMIT 1 What is the highest attandence at a Hamilton Academical game?,"SELECT MIN(highest) FROM table_11207040_5 WHERE team = ""Hamilton Academical""" On what Date was the Venue Los Angeles?,"SELECT date FROM table_name_90 WHERE venue = ""los angeles""" Running back Aaron Green went to Nebraska and what high school? ,"SELECT school FROM table_11677691_3 WHERE position = ""Running back"" AND college = ""Nebraska""" How many suppliers in Australia whose products were discontinued?,SELECT COUNT(T1.Discontinued) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.Discontinued = 1 AND T2.Country = 'Australia' How many high rebounds were there on April 7?,"SELECT COUNT(high_rebounds) FROM table_22879323_10 WHERE date = ""April 7""" How many seasons did Apocalypstix place 2nd?,"SELECT COUNT(season) FROM table_29619494_2 WHERE apocalypstix = ""2nd""" Who loss the game when the record was 3-10?,"SELECT loss FROM table_name_59 WHERE record = ""3-10""" When vince carter (24) has the highest points how many teams are there? ,"SELECT COUNT(team) FROM table_23249053_11 WHERE high_points = ""Vince Carter (24)""" What is the name of the product with the highest net profit?,"SELECT T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID ORDER BY REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') DESC LIMIT 1" What is the finish of Australia?,"SELECT finish FROM table_name_52 WHERE country = ""australia""" Find the number of customers in total.,SELECT COUNT(*) FROM customers Name the least dismissals for 4 rank,SELECT MAX(dismissals) FROM table_23316034_23 WHERE rank = 4 "Which Championship has a League Cup larger than 0, and a FA Cup larger than 0?",SELECT MIN(championship) FROM table_name_68 WHERE league_cup > 0 AND fa_cup > 0 How many trips in 2013 had durations longer than 1000 seconds?,SELECT COUNT(duration) FROM trip WHERE start_date LIKE '%/%/2013%' AND duration > 1000 Provide the number of orders that were handled by Michael Suyama.,SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama' Name the loss for the angels opponent,"SELECT loss FROM table_name_10 WHERE opponent = ""angels""" Show ids for all employees who don't have a certificate.,SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate How many performances are there?,SELECT count(*) FROM performance What was South Melbourne's score when they played as the away team?,"SELECT away_team AS score FROM table_name_5 WHERE away_team = ""south melbourne""" Name the character for sophie arthuys,"SELECT character FROM table_14960574_6 WHERE french_voice_actor = ""Sophie Arthuys""" Name the gs for points being 12.1,"SELECT gs FROM table_17309500_1 WHERE points = ""12.1""" "If the city is Santa Clara, what is the population total number?","SELECT COUNT(population) FROM table_25200461_9 WHERE city = ""Santa Clara""" What is the episode summary for episode 5?,SELECT episode AS Summary FROM table_2140071_13 WHERE episode = 5 Which Support Category had a Round score of 9?,SELECT support_category FROM table_name_67 WHERE round = 9 "What is the glucose level of the patient that lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US?","SELECT DISTINCT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Glucose' AND T1.address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US'" "Show the builder of railways associated with the trains named ""Andaman Exp"".","SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID WHERE T2.Name = ""Andaman Exp""" "Show codes and fates of missions, and names of ships involved.","SELECT T1.Code , T1.Fate , T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID" What home team played against Footscray as the away team?,"SELECT home_team FROM table_name_73 WHERE away_team = ""footscray""" On what date was the venue of Glenferrie Oval?,"SELECT date FROM table_name_12 WHERE venue = ""glenferrie oval""" How many students are there?,SELECT count ( distinct StuID ) FROM Has_allergy List the names of people that are not perpetrators.,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM perpetrator) List the full names of Republican legislators who have a nickname.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Republican' AND T1.nickname_name IS NOT NULL GROUP BY T1.official_full_name How many Restaurants are there?,SELECT count ( * ) FROM Restaurant Can you show me the club names and ids?,"SELECT name, club_id FROM CLub" What are the lengths and heights of roller coasters?,"SELECT LENGTH , Height FROM roller_coaster" Which film originated in France?,"SELECT original_name FROM table_name_27 WHERE country = ""france""" "How many students have had at least one ""B"" grade?","SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = ""B""" What is the location and name of the winning aircraft?,"SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft" What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt?,"SELECT lga_name FROM table_1966992_1 WHERE census_2006_population > 425208.9417698913 AND administrative_capital = ""Port Harcourt""" Find the names of the channels that are broadcast in the morning.,SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' "Who performed the song named ""Badlands""? Show the first name and the last name.","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Badlands""" Who is the home team with tie number 9?,"SELECT home_team FROM table_name_93 WHERE tie_no = ""9""" "What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)?","SELECT result FROM table_name_48 WHERE couple = ""kelly & alec"" AND score = ""22 (8, 7, 7)""" What is the enrollment for Ashland University?,"SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = ""Ashland""" What is the description and code of the type of service that is performed the most often?,"SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" "What are the highest matches that have points less than 88, and goals less than 0?",SELECT MAX(matches) FROM table_name_55 WHERE points < 88 AND goals < 0 "What is the original language of the ""Four Rooms"" movie?",SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id INNER JOIN language_role AS T4 ON T2.language_role_id = T4.role_id WHERE T4.language_role = 'Original' AND T1.title = 'Four Rooms' How many milliseconds is the Rock genre track Balls to the Wall?,"SELECT T2.milliseconds FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"" and T2.name = 'Balls to the Wall'" "Return the number of customers who have at least one order with ""Cancelled"" status.","SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = ""Cancelled""" Which district has the least area?,SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1 "For the pairs of genes with one having 8 chromosomes and the other having 6 chromosomes, what is the highest expression correlation score?",SELECT T2.Expression_Corr FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Chromosome = 6 OR T1.Chromosome = 8 ORDER BY T2.Expression_Corr DESC LIMIT 1 "During the Apple Bowl having 0 championships, what was the established year?","SELECT MAX(established) FROM table_name_65 WHERE championships = 0 AND venue = ""apple bowl""" what is the lowest latitude for the land sqmi less than 32.696 and a water sqmi less than 0,SELECT MIN(latitude) FROM table_name_97 WHERE land___sqmi__ < 32.696 AND water__sqmi_ < 0 what type of school is the institution nicknamed seminoles?,"SELECT school_type FROM table_28744929_1 WHERE nickname = ""Seminoles""" What race occurred on the date of 15 June?,"SELECT race FROM table_name_74 WHERE date = ""15 june""" What is the rank of Japan?,"SELECT rank FROM table_name_84 WHERE nationality = ""japan""" What are the distinct template type descriptions for the templates ever used by any document?,SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID "Which of these pages have more words, the page titled ""Afluent"" or ""Asclepi""?",SELECT CASE WHEN ( SELECT words FROM pages WHERE title = 'Asclepi' ) > ( SELECT words FROM pages WHERE title = 'Afluent' ) THEN 'Asclepi' ELSE 'Afluent' END Which English winning song had the winner aris runtuwene?,"SELECT WINNING_SONG(English AS Title) FROM table_name_7 WHERE winner = ""aris runtuwene""" Which Name has a Height (m) of 2980?,SELECT name FROM table_name_63 WHERE height__m_ = 2980 "What was the domestic box office for ""House on Haunted Hill""?","SELECT domestic_box_office FROM table_2203760_4 WHERE film = ""House on Haunted Hill""" Find the names of the artists who are from Bangladesh and have never received rating higher than 7.,"SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7" Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?,SELECT MIN(score_final) FROM table_name_26 WHERE rank_final = 7 AND year > 2009 What are the average wins that have great britain as the team?,"SELECT AVG(wins) FROM table_name_80 WHERE team = ""great britain""" Thank you! Can you show all of the names of the gymnasts for those hometowns?,"SELECT name FROM people WHERE Hometown = ""Santo Domingo"" or Hometown = ""Bonao""" What is the status where the notes are possible jr synonym of sapeornis?,"SELECT status FROM table_name_60 WHERE notes = ""possible jr synonym of sapeornis""" What is the account details of account id 61?,SELECT Account_Details from accounts where Account_ID = 61 How many persons are not body builders?,SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder) Show teams that have suffered more than three eliminations.,SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 "What is Score, when Year is before 2007, and when Tournament is ""Sydney""?","SELECT score FROM table_name_88 WHERE year < 2007 AND tournament = ""sydney""" What was the aircraft damage for the Boeing 707-320B?,"SELECT aircraft AS damage FROM table_name_51 WHERE aircraft = ""boeing 707-320b""" How many debit cards do we have?,"SELECT count(*) FROM Customers_cards WHERE card_type_code = ""Debit""" What district is Jim Moran the incumbent for.,"SELECT district FROM table_name_40 WHERE incumbent = ""jim moran""" Find the country of the airlines whose name starts with 'Orbit'.,SELECT country FROM airlines WHERE name LIKE 'Orbit%' "Which opponent has a Surface of clay, an Outcome of winner, a Tournament of bogotá, and a Score of 6–0, 6–4?","SELECT opponent FROM table_name_51 WHERE surface = ""clay"" AND outcome = ""winner"" AND tournament = ""bogotá"" AND score = ""6–0, 6–4""" Who is the GamePlan when Arabella Lazenby is the RolePlay actor?,"SELECT gameplan FROM table_name_29 WHERE roleplay = ""arabella lazenby""" "How many users belong to ""Financial Information"" category?",SELECT COUNT(T1.app_id) FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id WHERE T2.category = 'Financial Information' What is the release price for a processor with part number cy80632007227ab?,"SELECT release_price___usd__ FROM table_16729930_18 WHERE part_number_s_ = ""CY80632007227AB""" "With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?","SELECT onitoolsfiltering FROM table_name_62 WHERE fhfreepressreport = ""54"" AND onisocialfiltering = ""ne""" "What is Score, when Date is ""May 11""?","SELECT score FROM table_name_97 WHERE date = ""may 11""" Who are the actors that act in the ACADEMY DINOSAUR film?,"SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'ACADEMY DINOSAUR'" What is the highest rebounds for game 81?,SELECT high_rebounds FROM table_name_58 WHERE game = 81 "For the event which happened at 14:09:49 on 2016/5/6, in the location coordinate(116, 40), how many apps were active?",SELECT COUNT(T1.app_id) FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE T2.timestamp = '2016-05-06 14:09:49' AND T1.is_active = '1' AND T2.longitude = '116' AND T2.latitude = '40' Name the area for map # 24,SELECT area__km²_ FROM table_16278349_1 WHERE map__number = 24 How many counties are there in Alabama?,SELECT COUNT(T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Alabama' Find the id of the order which is shipped most recently.,SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments) What is the Elevation of the mountain on Route 62?,SELECT elevation FROM table_name_1 WHERE route = 62 Which complaint status has more than 3 records on file?,SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3 How many artists were there for the show thoroughly modern millie?,"SELECT COUNT(artist) FROM table_28140141_1 WHERE show = ""Thoroughly Modern Millie""" Show all distinct template type codes for all templates.,SELECT DISTINCT template_type_code FROM Templates What are the number of problems each of these had?,"SELECT count ( * ) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id" "What is the number of faculty lines in campus ""Long Beach State University"" in 2002?","SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = ""Long Beach State University""" "List the actor's last name that starred the film with the description of ""A Thoughtful Drama of a Composer And a Feminist who must Meet a Secret Agent in The Canadian Rockies"".",SELECT T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.description = 'A Thoughtful Drama of a Composer And a Feminist who must Meet a Secret Agent in The Canadian Rockies' What is the id and weight of every pet who is older than 1?,"SELECT petid , weight FROM pets WHERE pet_age > 1" How many employees earn their salaries on a monthly basis at an hourly rate of more than 50?,SELECT COUNT(BusinessEntityID) FROM EmployeePayHistory WHERE rate * PayFrequency > 50 I want to know the student names and ids who don’t play any sports.,"SELECT StuID,LName,Fname FROM Student where stuID not in ( SELECT StuID FROM Sportsinfo ) " How many stadiums does each country have?,"SELECT country, COUNT(*) FROM stadium GROUP BY country" what is the last name of room id IBS? | Do mean the last name of the reservation for the room with id IBS? | yes,"SELECT T1.LastName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.roomId = ""IBS""" "Are any of these courses offered by more than one department? | Did you mean the same course titles? | Yes are there any courses ""same title"" in the list that are offered by more than one department?",select distinct ( dept_name ) from course where title in ( SELECT title FROM course where dept_name = 'Mech. Eng.' and credits > 3 ) and dept_name ! = 'Mech. Eng.' What are the names of customers with credit score less than the average credit score across customers?,SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer) What was zach johnson's score to par?,"SELECT to_par FROM table_275162_1 WHERE player = ""Zach Johnson""" "Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit?","SELECT working_tax_credit FROM table_name_20 WHERE employment___salaries_ & _wages_ = ""64%"" AND occupational_pensions = ""6%""" What was the away score when they played at Brunswick Street Oval?,"SELECT away_team AS score FROM table_name_92 WHERE venue = ""brunswick street oval""" Find the number of rooms that do not have any reservation.,SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations) What was the attendance when they played at Dallas Cowboys?,"SELECT attendance FROM table_name_69 WHERE opponent = ""at dallas cowboys""" "Which apartments have bookings with both status codes ""Provisional"" and ""Confirmed""? Give me the apartment numbers.","SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed"" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" Which items were ordered four or more times? | There is no item that was ordered four or more times | What is the id of products supplied more than 80000?,SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum ( total_amount_purchased ) > 80000 Who are the top 3 players in terms of overall rating?,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3 Please indicate total order quantity of product Candles and calculate the percentage of such product among all the orders.,"SELECT SUM(CASE WHEN T1.`Product Name` = 'Candles' THEN T2.`Order Quantity` ELSE 0 END), CAST(SUM(CASE WHEN T1.`Product Name` = 'Candles' THEN T2.`Order Quantity` ELSE 0 END) AS REAL) * 100 / SUM(T2.`Order Quantity`) FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` AS T3 ON T3.StoreID = T2._StoreID" "When the Apps were smaller than 22, what's the lowest amount of goals scored in a game?",SELECT MIN(goals) FROM table_name_33 WHERE apps < 22 give me its project details.,"SELECT T1.organisation_id, t1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count ( * ) DESC LIMIT 1" Provide the score of the most populated university in 2011.,SELECT T2.score FROM university_year AS T1 INNER JOIN university_ranking_year AS T2 ON T1.university_id = T2.university_id WHERE T1.year = 2011 ORDER BY T1.num_students DESC LIMIT 1 Find the highest rank of losers in all matches.,SELECT MIN(loser_rank) FROM matches now tell me Rob Dinning's marketing region?,"SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = ""Rob Dinning""" Find the names of patients who are not using the medication of Procrastin-X.,SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X' "Please list the names of methods with the solution path ""wallerdev_htmlsharp\HtmlSharp.sln"".",SELECT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'wallerdev_htmlsharpHtmlSharp.sln' Which Thursday has a Wednesday of 星期三 xingqisen?,"SELECT thursday FROM table_name_51 WHERE wednesday = ""星期三 xingqisen""" "Hello, what courses are currently being taught?",SELECT * from course "Please provide the type of resource that donation ""b39547f29dfc25fb13c6e9e8d940dc43"" contain.",SELECT DISTINCT T1.project_resource_type FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T3.donationid LIKE 'b39547f29dfc25fb13c6e9e8d940dc43' Provide the ranking criteria and scores in 2005 that were received by Harvard University.,"SELECT T1.criteria_name, T2.score FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'Harvard University' AND T2.year = 2005" What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?,SELECT COUNT(byes) FROM table_name_67 WHERE draws < 1 AND wins < 8 Who was the player with a score of 70-69=139?,SELECT player FROM table_name_37 WHERE score = 70 - 69 = 139 "what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0?","SELECT SUM(bronze) FROM table_name_89 WHERE rank = 5 AND nation = ""poland"" AND gold < 0" What is the police force shared by county on both sides?,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East"" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West""" "Find the names of the companies whose headquarters are not located in ""USA"".",SELECT name FROM Companies WHERE Headquarters != 'USA' Find the community area where the least number of domestic crimes happened.,SELECT T2.community_area_no FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.domestic = 'TRUE' GROUP BY T2.community_area_no ORDER BY COUNT(T2.community_area_no) ASC LIMIT 1 How many previous years did Maebashi Ikuei high school have a total number of 1 participation?,"SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = ""Maebashi Ikuei""" What is the percentage of winning rate of improvement since Alain Vigneault became the coach of Vancouver Canucks in 2006 season?,SELECT SUM(CASE WHEN T1.year = 2006 THEN CAST(T1.W AS REAL) * 100 / (T1.W + T1.L) ELSE 0 END) - ( SELECT CAST(W AS REAL) * 100 / (W + L) FROM Teams WHERE year = '2005' AND name = 'Vancouver Canucks' ) FROM Teams AS T1 INNER JOIN Coaches AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN Master AS T3 ON T2.coachID = T3.coachID WHERE T1.name = 'Vancouver Canucks' AND T3.firstName = 'Alain' AND T3.lastName = 'Vigneault' Show the delegates and the names of county they belong to.,"SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District" how many customers are presented on the table,SELECT count ( * ) FROM Customers When 2008 t is the original number what is the lowest year?,"SELECT MIN(year) FROM table_21795986_1 WHERE original_number = ""2008 T""" What is the customer id for that complaint? | Do you mean the customer id for the complaint which raised at 2007-10-14 21:50:43? | Correct. What is the customer id for the complaint raised at 2007-10-14 21:50:43?,SELECT customer_id from complaints where date_complaint_raised = '2007-10-14 21:50:43' What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?,"SELECT county FROM table_name_25 WHERE ihsaa_football_class = ""aaaaa"" AND mascot = ""grizzly cubs""" "Which Country has a To par smaller than 7, and a Total of 148?",SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148 Please list the types of resources that the vendor Lakeshore Learning Materials has provided for the projects.,SELECT DISTINCT project_resource_type FROM resources WHERE vendor_name = 'Lakeshore Learning Materials' How many wins for bruce fleisher with over 31 events?,"SELECT AVG(wins) FROM table_name_16 WHERE player = ""bruce fleisher"" AND events > 31" Find the average age of students who are living in the dorm with the largest capacity.,SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT max(student_capacity) FROM dorm) "What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?","SELECT max(T1.duration) , max(T2.resolution) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages" What is the number of locations with the fastest times of 11.13?,"SELECT COUNT(location) FROM table_1231316_7 WHERE fastest_time__s_ = ""11.13""" What is the sum of revenue from companies with headquarters in Austin?,SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin' How many were in Attendance on October 8?,"SELECT COUNT(attendance) FROM table_name_65 WHERE date = ""october 8""" "What event has a $248,004 prize?","SELECT event FROM table_name_24 WHERE prize = ""$248,004""" What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?,"SELECT event FROM table_name_88 WHERE time = ""5:00"" AND record = ""10-4""" "What is the lowest supply cost for the part ""hot spring dodger dim light""?",SELECT MIN(T1.ps_supplycost) FROM partsupp AS T1 INNER JOIN part AS T2 ON T1.ps_partkey = T2.p_partkey WHERE T2.p_name = 'hot spring dodger dim light' What is the lowest number associated with Tonkolili?,SELECT MIN(tonkolili) FROM table_18103265_1 "In 2004, what is the Dance?",SELECT dance FROM table_name_55 WHERE year = 2004 What is the required education for the position of regional manager?,SELECT educationrequired FROM position WHERE positiontitle = 'Regional Manager' What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?,"SELECT team FROM table_name_52 WHERE position_in_table = ""pre-season"" AND manner_of_departure = ""end of tenure as caretaker""" What are the names and cities of the branches that do not have any registered members?,"SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)" what's the result with record being 0–1,"SELECT result FROM table_14984126_1 WHERE record = ""0–1""" What was the final round value for member Chris Webber?,"SELECT final_round FROM table_name_59 WHERE members = ""chris webber""" Where did Essendon play as the away team?,"SELECT venue FROM table_name_9 WHERE away_team = ""essendon""" "Which customers have ever canceled the purchase of the product ""food"" (the item status is ""Cancel"")?","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = ""Cancel"" AND T4.product_name = ""food"" GROUP BY T1.customer_id HAVING count(*) >= 1" List down the menu page IDs for menu sponsored by Occidental & Oriental?,SELECT T2.id FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.sponsor = 'Occidental & Oriental' Calculates the profit processed by Supplier No. 7414 on order No. 817154.,SELECT T1.l_extendedprice * (1 - T1.l_discount) - T2.ps_supplycost * T1.l_quantity FROM lineitem AS T1 INNER JOIN partsupp AS T2 ON T1.l_suppkey = T2.ps_suppkey WHERE T1.l_suppkey = 7414 AND T1.l_orderkey = 817154 Show the crime rate of counties with a city having white percentage more than 90.,SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90 What are the names of the states where at least 3 heads were born?,SELECT born_state FROM head GROUP BY born_state HAVING count(*) >= 3 What are all the distinct last names of all the engineers?,SELECT DISTINCT last_name FROM Maintenance_Engineers How many countries have a latest population census in 2011? Indicate their full names.,SELECT COUNT(LongName) FROM country WHERE LatestPopulationCensus = '2011' UNION ALL SELECT LongName FROM country WHERE LatestPopulationCensus = '2011' Find the location of businesses that has business hours from 9 am to 9 pm every Saturday.,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.closing_time LIKE '9PM' AND T2.opening_time LIKE '9AM' AND T3.day_of_week LIKE 'Saturday' GROUP BY T1.city What is the date for the tooheys 1000?,"SELECT date FROM table_name_44 WHERE series = ""tooheys 1000""" "Among the movies with drama genre, what is the percentage of the actors with net worth greater than $400,000,000.00?","SELECT SUM(CASE WHEN CAST(REPLACE(REPLACE(T3.NetWorth, ',', ''), '$', '') AS REAL) > 400000000 THEN 1 ELSE 0 END) - SUM(CASE WHEN CAST(REPLACE(REPLACE(T3.NetWorth, ',', ''), '$', '') AS REAL) < 400000000 THEN 1 ELSE 0 END) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Genre = 'Drama'" "What player has a To par of –2, and a Score of 73-65=138?","SELECT player FROM table_name_61 WHERE to_par = ""–2"" AND score = 73 - 65 = 138" "Okay, could you show me Zach's job?","SELECT job from person where name = ""Zach""" what's the party with opponent being marcy kaptur (d) 75.3% randy whitman (r) 24.7%,"SELECT party FROM table_1341522_38 WHERE opponent = ""Marcy Kaptur (D) 75.3% Randy Whitman (R) 24.7%""" "From 7/9/2010 to 10/29/2013, how many black patients were immunized with the meningococcal MCV4P vaccine?",SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'meningococcal MCV4P' AND T2.DATE BETWEEN '2010-07-09' AND '2013-10-29' AND T1.race = 'black' What Opponent has a 6-0 Record?,"SELECT opponent FROM table_name_54 WHERE record = ""6-0""" How many of the restaurants with the lowest risk level failed the complaint inspection type?,SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = '1' AND T2.inspection_type = 'Complaint' AND T1.facility_type = 'Restaurant' AND T2.results = 'Fail' List the region name where games reached 300000 sales and above.,SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 > 300000 "What product was ordered in the Central region on April 26, 2018, and shipped by April 27, 2018?",SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order Date` = '2018-04-26' AND T1.`Ship Date` = '2018-04-27' AND T2.Region = 'Central' "How many games are not of the genres 'Role-Playing', 'Shooter' and 'Simulation'?","SELECT COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation')" How many object classes are there in the database?,SELECT COUNT(OBJ_CLASS_ID) FROM OBJ_CLASSES What's the loss of the game with the opponent of the Nationals with a score of 7-1?,"SELECT loss FROM table_name_69 WHERE opponent = ""nationals"" AND score = ""7-1""" Can you please give the delegates name from Democratic Party in economic matters committee?,"SELECT T1.delegate FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic"" and T1.committee = ""Economic Matters""" What is the municipality that has an area of exactly 214.44 sq. km?,"SELECT municipality FROM table_255885_1 WHERE area__km²_ = ""214.44""" Find the total number of instructors who teach a course in the Spring 2010 semester.,SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 How many people voted for Obama in the county where McCain got 72.75% of the votes?,"SELECT MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = ""72.75%""" What is the location/state of the Launceston race?,"SELECT location___state FROM table_name_60 WHERE race_title = ""launceston""" What are the line 1 and average monthly rentals of all student addresses?,"SELECT T1.line_1 , avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id" How many County Kerry have 53% Irish speakers?,"SELECT COUNT(english_name) FROM table_101196_1 WHERE irish_speakers = ""53%"" AND county = ""county Kerry""" Which Surface has Semifinalists of wally masur malivai washington?,"SELECT surface FROM table_name_92 WHERE semifinalists = ""wally masur malivai washington""" Name the tier 1 ratio for irish life and permanent,"SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = ""Irish Life and Permanent""" What are the id and address of the shops which have a happy hour in May?,"SELECT t1.address , t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May'" How many seats were forfeited in the revolutionary socialist party?,"SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = ""Revolutionary Socialist party""" What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20?,SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20 Find the booking start date and end date for the apartments that have more than two bedrooms.,"SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2" What Date is Northern Spur Breeders' Cup Stakes Race?,"SELECT date FROM table_name_31 WHERE race = ""northern spur breeders' cup stakes""" What is the Date when the week is more than 3 and the attendance shows bye?,"SELECT date FROM table_name_39 WHERE week > 3 AND attendance = ""bye""" Please list the products that are out of stock and purchased in house.,SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.MakeFlag = 0 AND (T1.OnOrderQty IS NULL OR T1.OnOrderQty = 0) Who did the Rockies play at the game that had a score of 6–5 (10)?,"SELECT opponent FROM table_name_22 WHERE score = ""6–5 (10)""" Which bank branches provide business loans? | do you want the id or the name of the bank branches? | Names of the bank branches please.,SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business' "What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?",SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30 "What is City, when Prize is ""$146,000""?","SELECT city FROM table_name_18 WHERE prize = ""$146,000""" What are the ids of 3 players that won the most awards?,SELECT T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3 Which school's nationality was United States when its pick was 595?,"SELECT school FROM table_name_65 WHERE nationality = ""united states"" AND pick = ""595""" "Where is the club ""Hopkins Student Enterprises"" located?","SELECT clublocation FROM club WHERE clubname = ""Hopkins Student Enterprises""" What is the name of each aircraft and how many flights does each one complete?,"SELECT T2.name , count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid" When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there?,"SELECT COUNT(lmp1_winning_team) FROM table_19722436_2 WHERE gt1_winning_team = ""Peter Kox Roman Rusinov""" How many different products correspond to each order id?,"SELECT order_id , count(DISTINCT product_id) FROM Order_items GROUP BY order_id" "According to the February 2009 poll by the Corporate Research Associates that reported 31% Liberal., what percentage aligned with the Prog. Cons. party?","SELECT prog_cons FROM table_name_63 WHERE polling_firm = ""corporate research associates"" AND liberal = ""31%"" AND dates = ""february 2009""" Which year did Ray Crawford the Kurtis Kraft 500g chassis?,"SELECT year FROM table_name_70 WHERE chassis = ""kurtis kraft 500g""" what was the date of that transaction?,"SELECT T3.date_of_transaction FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = ""PUR"" ORDER BY T3.amount_of_transaction DESC LIMIT 1" What is the Rank of the Rowers with a Time of 7:30.92?,"SELECT SUM(rank) FROM table_name_56 WHERE time = ""7:30.92""" How many distinct governors are there?,SELECT count(DISTINCT Governor) FROM party Find the details of all the markets that are accessible by walk or bus.,"SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk"" OR T2.How_to_Get_There = ""bus""" "Oh, sorry. I meant to ask what dorm does the student with the last name of Smith live in?",SELECT T1.dorm_name FROM dorm AS T1 JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith' Who had high assists when they played against San Antonio?,"SELECT high_assists FROM table_10812293_3 WHERE team = ""San Antonio""" List 5 device models that users use to install the app and are active in using the app.,SELECT T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN events AS T2 ON T1.device_id = T2.event_id INNER JOIN app_events AS T3 ON T2.event_id = T3.event_id WHERE T3.is_active = 1 AND T3.is_installed = 1 LIMIT 5 Which lowest goals for number had a played number of less than 34?,SELECT MIN(goals_for) FROM table_name_95 WHERE played < 34 And what county is San Francisco State University in?,SELECT county FROM campuses WHERE Campus = 'San Francisco State University' List all the corresponding classes for attributes of image id 8.,SELECT T2.ATT_CLASS FROM IMG_OBJ_att AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 8 How much is the discounted price of every item that customer 111511 ordered in order 53159? List the names of the parts of every item.,"SELECT T2.l_extendedprice * (1 - T2.l_discount), T3.p_name FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey INNER JOIN part AS T3 ON T2.l_partkey = T3.p_partkey WHERE T1.o_custkey = 111511 AND T1.o_orderkey = 53159" List the universities in Denmark.,SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Denmark' what is ahli when ramtha is 0-4?,"SELECT ahli FROM table_26173063_2 WHERE ramtha = ""0-4""" "Between ""Standford University"" and ""Massachusetts Institute of Technolgy"", which organization had affiliated with more author.?","SELECT Affiliation FROM Author WHERE Affiliation IN ('Stanford University', 'Massachusetts Institute of Technology') GROUP BY Affiliation ORDER BY COUNT(Id) DESC LIMIT 1" How many games were played in city Atlanta in 2000?,SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta'; Which nation's GDP is the lowest among those that are communist states?,SELECT T2.Country FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Government = 'Communist state' ORDER BY T2.GDP ASC LIMIT 1 Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph?,"SELECT rider FROM table_name_78 WHERE speed = ""86.15mph""" "What is the main span in feet from a year of 2009 or more recent with a rank less than 94 and 1,310 main span metres?","SELECT main_span_feet FROM table_name_69 WHERE year_opened > 2009 AND rank < 94 AND main_span_metres = ""1,310""" Where did the artist All Mixed Up place?,"SELECT MIN(place) FROM table_name_4 WHERE artist = ""all mixed up""" Which actor has appeared in the most films?,SELECT actorid FROM movies2actors GROUP BY actorid ORDER BY COUNT(movieid) DESC LIMIT 1 What is the name of the person who gets the highest pct commission?,"SELECT FIRST_NAME, LAST_NAME FROM employees order by COMMISSION_PCT desc limit 1" "What region does the University of California, Los Angeles play in?","SELECT region FROM table_name_37 WHERE state = ""california"" AND host = ""university of california, los angeles""" What is the venue at Stanford University?,"SELECT venue FROM table_name_19 WHERE host = ""stanford university""" Find the total and average amount paid in claim headers.,"SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers" What is the score of the game on December 22?,"SELECT score FROM table_name_81 WHERE date = ""december 22""" "On average, how old are the members in the club ""Hopkins Student Enterprises""?","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" On what day was the order with invoice number 10 placed?,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10 who has the highest credit score?,select cust_name from customer order by credit_score desc limit 1 Does Torre Mitkah have an HSBC located in it?,"SELECT * FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id where T3.name = ""HSBC"" and T2.name = ""Torre Mitikah""" How many female players does Winnipeg have?,"SELECT count ( * ) FROM player where gender = ""F"" and residence = ""Winnipeg""" What is the time/retired for eddie irvine with a grid of greater than 3?,"SELECT time_retired FROM table_name_84 WHERE grid > 3 AND driver = ""eddie irvine""" Show the transaction type and the number of transactions.,"SELECT transaction_type , count(*) FROM Financial_transactions GROUP BY transaction_type" What is the largest ethnic group in 2002 when the population is 200?,SELECT largest_ethnic_group__2002_ FROM table_2562572_43 WHERE population__2011_ = 200 What was the record when the opposing team was the Columbus Blue Jackets at St. Pete Times Forum?,"SELECT record FROM table_17360840_9 WHERE location = ""St. Pete Times Forum"" AND opponent = ""Columbus Blue Jackets""" List the name of playlist which has number of tracks greater than 100.,SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100; What is the result of the match with a H/A of A and a kick off at 1992-10-31 16:00?,"SELECT result FROM table_name_14 WHERE h___a = ""a"" AND kick_off = ""1992-10-31 16:00""" Which students that filed for bankruptcy are also in the foreign legion?,SELECT T2.name FROM enlist AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'foreign_legion' Find the average age of female students.,"SELECT avg(Age) FROM STUDENT WHERE Sex = ""F""" "What is the value in 1990 when it is A in 1989, 1985, and 1993?","SELECT 1990 FROM table_name_45 WHERE 1989 = ""a"" AND 1985 = ""a"" AND 1993 = ""a""" What are the employee ids for each employee and final dates of employment at their last job?,"SELECT employee_id , MAX(end_date) FROM job_history GROUP BY employee_id" How many employees have the job title Manager?,"SELECT count ( * ) from employees where title like ""%manager%""" "List down the first name of patients who received ""Influenza seasonal injectable preservative free"" immunization.","SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Influenza seasonal injectable preservative free'" what parties have at least two representatives,SELECT Party FROM representative GROUP BY Party HAVING COUNT ( * ) > = 2 Return the average horizontal bar points across all gymnasts.,SELECT avg(Horizontal_Bar_Points) FROM gymnast List the names of all the physicians who prescribe Thesisin as medication.,"SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = ""Thesisin""" Find the average access count of documents with the least popular structure.,SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1 What are the years when the grizzles had a player who attended UCLA?,"SELECT years_for_grizzlies FROM table_name_71 WHERE school_club_team = ""ucla""" What was the result of the election in which Lindley Beckworth was the incumbent?,"SELECT result FROM table_1341897_45 WHERE incumbent = ""Lindley Beckworth""" Name the company where index weighting % is 11.96,"SELECT company FROM table_168274_1 WHERE index_weighting___percentage__at_17_january_2013 = ""11.96""" When was the song titled if you talk in your sleep released?,"SELECT release_date FROM table_name_34 WHERE song_title = ""if you talk in your sleep""" who is the reference when romaji title is heartbreak sniper?,"SELECT reference FROM table_10979230_5 WHERE romaji_title = ""Heartbreak Sniper""" What was the report when the average speed (mph) was 87.599?,"SELECT report FROM table_2175685_1 WHERE average_speed__mph_ = ""87.599""" "Who is the villain of the movie ""Beauty and the Beast""?",SELECT villian FROM characters WHERE movie_title = 'Beauty and the Beast' "How many ""Mountain-500 Black 42"" were sold in total?","SELECT SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Mountain-500 Black, 42'" "What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?","SELECT name FROM table_name_96 WHERE propulsion = ""turbojet"" AND year > 1985 AND launched_by = ""surface, sub""" What are the first name and gender of the students who have allergy to milk but can put up with cats?,"SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" What condition forced Mrs. Joye Homenick to seek medical attention in 2017?,"SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Joye' AND T1.last = 'Homenick' AND strftime('%Y', T2.START) = '2017'" Please list the names of the actors who played a role in the movie Batman.,SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Batman' who's the writer of The Black Lamb?,"SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = ""The Black Lamb""" What is the name of the course that has the most student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 What is the lowest Rank with a Nation that is east germany?,"SELECT MIN(rank) FROM table_name_43 WHERE nation = ""east germany""" "WHAT WAS THE OVERALL NUMBER WITH A POSITON OF DB, AND ROUND GREATER THAN 8?","SELECT COUNT(overall) FROM table_name_27 WHERE position = ""db"" AND round > 8" Count the number of different parties.,SELECT count(DISTINCT party_name) FROM party When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?,"SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = ""1st Class"" AND population__2010_ = 318676" "Who was the opponent on November 12, 1972?","SELECT opponent FROM table_name_19 WHERE date = ""november 12, 1972""" Show the station name with at least two trains.,SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING COUNT(*) >= 2 "Hi, can you tell me how many instructors there are?",SELECT count ( distinct instructor ) from Course "What is the Margin that has a Venue of bellerive oval , hobart, and a Season of 2002/03?","SELECT margin FROM table_name_4 WHERE venue = ""bellerive oval , hobart"" AND season = ""2002/03""" "Find the title of all the albums of the artist ""AC/DC"".","SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""AC/DC""" Tell me the track that has the catalogue of apbo 0280,"SELECT track FROM table_name_34 WHERE catalogue = ""apbo 0280""" "What title has lt as the series, ben hardaway as the director, with 6612 as the production num.?","SELECT title FROM table_name_66 WHERE series = ""lt"" AND director = ""ben hardaway"" AND production_num = ""6612""" what is the award for the 2009 songwriter of the year?,"SELECT award FROM table_name_24 WHERE year = 2009 AND category = ""songwriter of the year""" excellent. and how much is the cheapest priced product?,SELECT min ( Price ) FROM Products Name the high points 31-27,"SELECT high_points FROM table_22669044_9 WHERE record = ""31-27""" "Date of september 25, 1983 is what game site?","SELECT game_site FROM table_name_68 WHERE date = ""september 25, 1983""" "What is the Mach with Vehicle Flight # m2-f2 #8 and an Altitude (meters) greater than 13,716?","SELECT SUM(mach) FROM table_name_88 WHERE vehicle_flight__number = ""m2-f2 #8"" AND altitude__meters_ > 13 OFFSET 716" Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32,SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23 "Find the customer name and date of the orders that have the status ""Delivered"".","SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Delivered""" What city has a Result of brisbane broncos def. halifax blue sox?,"SELECT city FROM table_name_22 WHERE result = ""brisbane broncos def. halifax blue sox""" Find the file format that is used by the most files.,SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 "What number is the player whose hometown is Tampa, FL?","SELECT _number FROM table_29418619_1 WHERE hometown = ""Tampa, FL""" Find the players' first name and last name who won award both in 1960 and in 1961.,"SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961" Whati s the format for the catalogno of st 491?,"SELECT format FROM table_name_26 WHERE catalogno = ""st 491""" List out director names that received an award along with the episode number.,"SELECT T3.name, T1.episode_id FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T2.person_id = T3.person_id WHERE T2.role = 'director' AND T2.result = 'Winner'" "Provide Speedy Express's phone number and number of shipped orders on 30th January, 1998.","SELECT T2.Phone, COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' AND T1.ShippedDate LIKE '1998-01-30%' GROUP BY T2.Phone" How many points did car 20 score?,"SELECT points FROM table_name_65 WHERE car_no = ""20""" What year did the King team have fewer than 10 points?,"SELECT AVG(year) FROM table_name_66 WHERE team = ""king"" AND points < 10" Calculate the total price of books ordered by customer named Lucas Wyldbore.,SELECT SUM(T1.price) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore' What are the station network names?,SELECT network_name FROM station How many aircrafts have distance between 1000 and 5000?,SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 "Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72?",SELECT MIN(2005) FROM table_name_32 WHERE grade < 6 AND 2008 < 80 AND 2006 > 72 Ok. Can you please tell me which college has the lowest enrollment.,SELECT cName FROM College order by enr limit 1 Name the player who had the most goals for team Rimouski Oceanic in playoff.,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.TEAM = 'Rimouski Oceanic' AND T2.GAMETYPE = 'Playoffs' ORDER BY T2.G DESC LIMIT 1 What's the IS-2 when the KV-1S is 114?,"SELECT is_2_m1945 FROM table_name_91 WHERE kv_1s_m1942 = ""114""" What are the first names and last names of students with address in Wisconsin state?,"SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Wisconsin""" What are the maximum and minimum budget of the departments?,"SELECT max(budget_in_billions) , min(budget_in_billions) FROM department" How long was Mr. Major D'Amore prescribed with Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]?,"SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS days FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = ' Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]' AND T1.first = 'Major' AND T1.last = 'D''Amore'" What are the Minimum rooms for each Apartment type code?,"SELECT apt_type_code , min ( room_count ) FROM Apartments GROUP BY apt_type_code" What is the name of the products?,select product_name from products "Of all the classic cars, with a product scale of 1:18, which product is the most ordered product by customers?",SELECT T1.productName FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode WHERE T1.productScale = '1:18' AND T1.productLine = 'Classic Cars' GROUP BY T1.productName ORDER BY SUM(T2.quantityOrdered) DESC LIMIT 1 what is the total attempted with a total made 16,SELECT COUNT(total_attempted) FROM table_name_21 WHERE total_made = 16 What is the mountains classification when stage is 17?,"SELECT mountains_classification FROM table_name_60 WHERE stage = ""17""" "What are the states, account types, and credit scores for customers who have 0 loans?","SELECT state , acc_type , credit_score FROM customer WHERE no_of_loans = 0" What was the result of the game with more than 12 goals at Pasadena?,"SELECT result FROM table_name_80 WHERE goal > 12 AND venue = ""pasadena""" Where was the circuit for round 4?,SELECT circuit FROM table_25213146_2 WHERE round = 4 How many members are there?,SELECT COUNT(*) FROM member How many drivers did not race in 2009?,SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 ) What is the Tournament against Vladimir Zednik?,"SELECT tournament FROM table_name_67 WHERE opponent = ""vladimir zednik""" What's the Date for the Region of Europe and has the Catalog of 28765 22392 8?,"SELECT date FROM table_name_70 WHERE region = ""europe"" AND catalog = ""28765 22392 8""" "Finally, what is the most preferred genre in the entire world?",SELECT preferred_genre FROM artist Group By preferred_genre order by count ( * ) desc limit 1 "What was Rosie's winning score on Apr 29, 2001?","SELECT winning_score FROM table_name_39 WHERE date = ""apr 29, 2001""" What is the date the customer with first name Carole and last Name Bernhard become a customer?,"SELECT date_became_customer FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard""" List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.,"SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;" What is the call sign for 90.9 FM which is in Florida?,"SELECT call_sign FROM table_name_87 WHERE state = ""florida"" AND frequency = ""90.9 fm""" What spans were built in 1896?,"SELECT spans FROM table_name_73 WHERE built = ""1896""" What party does incumbent edwin reinecke represent?,"SELECT party FROM table_1341738_6 WHERE incumbent = ""Edwin Reinecke""" When has an Event of ufc 123?,"SELECT time FROM table_name_61 WHERE event = ""ufc 123""" What is the area in square kilometers of Studholm?,"SELECT COUNT(area_km_2) FROM table_name_87 WHERE official_name = ""studholm""" Awesome! Can you update this list to also include the architect ID and nationality of this individual?,"SELECT T1.id , T1.name , T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1" "How many countries have reached their Adjusted net national income per capita (constant 2005 US$) indicator value to more than 1,000 but have not finished their external debt reporting?",SELECT COUNT(T1.CountryCode) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Adjusted net national income per capita (constant 2005 US$)' AND T1.ExternalDebtReportingStatus = 'Preliminary' AND T2.Value > 1000 Which year has 112 laps?,SELECT year FROM table_name_31 WHERE laps = 112 What is the call sign for the translator with an ERP W larger than 10?,SELECT call_sign FROM table_name_38 WHERE erp_w > 10 Please list the phone numbers of all the store contacts.,SELECT T2.PhoneNumber FROM Person AS T1 INNER JOIN PersonPhone AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.PersonType = 'SC' "What is Player, when Pick is greater than 24, and when NBA years [a ] is ""9""?","SELECT player FROM table_name_2 WHERE pick > 24 AND nba_years_[a_] = ""9""" List the title of series episode 38.,SELECT title FROM table_23513241_5 WHERE series_episode = 38 What are the names of the countries and average invoice size of the top countries by size?,"SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;" Name the race time for 2002,SELECT race_time FROM table_2139390_2 WHERE year = 2002 How many males 30 or older are in the Canada,SELECT count ( * ) FROM people WHERE age > = 30 and Is_Male = 'T' and country = 'Canada' The serial numbers 713096-713119 are in which country?,"SELECT country FROM table_2351952_1 WHERE serial_numbers = ""713096-713119""" How many cartoons did each director create?,"SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by" What is the average salary of sales representatives in the United Kingdom?,SELECT AVG(Salary) FROM Employees WHERE Title = 'Sales Representative' AND Country = 'UK' Give me Brazil’s population and life expectancies.,"SELECT Population , LifeExpectancy FROM country WHERE Name = ""Brazil""" what is the date assigned to of the department managers?,select date_assigned_to from Staff_Department_Assignments where job_title_code = 'Department Manager' What are the different addresses that have students living there?,SELECT count(DISTINCT current_address_id) FROM Students which Label is in 15 december 1992?,"SELECT label FROM table_name_45 WHERE date = ""15 december 1992""" What was the score of the game with a H/A/N of H and a record of 12-24?,"SELECT score FROM table_name_12 WHERE h_a_n = ""h"" AND record = ""12-24""" What is the lowest draw that is greater than 0 and byes greater than 0?,SELECT MIN(losses) FROM table_name_8 WHERE draws > 0 AND byes > 0 Give the address location of Heather Morris.,SELECT T1.address FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = 'HEATHER' AND T2.last_name = 'MORRIS' "If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?","SELECT coordinate_velocity_v_dx_dt_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = ""Rapidity of 2 hyperbolic radians""" "What A-League has 6 (1) for the finals, and leigh broxham as the name?","SELECT a_league FROM table_name_54 WHERE finals = ""6 (1)"" AND name = ""leigh broxham""" How many employee have the ability to authorize the destruction of documents?,SELECT count ( Destruction_Authorised_by_Employee_ID ) FROM Documents_to_be_destroyed "Which dish lasted longer, Anchovies or Fresh lobsters in every style?","SELECT CASE WHEN SUM(CASE WHEN name = 'Anchovies' THEN last_appeared - first_appeared ELSE 0 END) - SUM(CASE WHEN name = 'Fresh lobsters in every style' THEN last_appeared - first_appeared ELSE 0 END) > 0 THEN 'Anchovies' ELSE 'Fresh lobsters in every style' END FROM Dish WHERE name IN ('Fresh lobsters in every style', 'Anchovies')" "In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?","SELECT CAST((SUM(CASE WHEN strftime('%J', T2.`Date sent to company`) - strftime('%J', T2.`Date received`) > 5 THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Houston' AND strftime('%Y', T2.`Date received`) = '2014'" What are the maximum and minimum budget of the departments?,"SELECT max(budget_in_billions) , min(budget_in_billions) FROM department" How many movies released in 1995 did Quentin Tarantino appear in?,"SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Quentin Tarantino' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1995" Show the company of the tallest entrepreneur.,SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1 what is the average score for søren kjeldsen?,"SELECT AVG(score) FROM table_name_71 WHERE player = ""søren kjeldsen""" How many transactions have been made to purchase a root beer brand from California?,SELECT COUNT(T3.RootBeerID) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.State = 'CA' What First game has a Lost greater than 16?,SELECT AVG(first_game) FROM table_name_16 WHERE lost > 16 What is Rice's collage score?,"SELECT overall FROM table_10361625_1 WHERE college = ""Rice""" "What is the career caps for half-back, when tests is more than 3?","SELECT career_caps FROM table_name_73 WHERE position = ""half-back"" AND tests > 3" What is tops for Folwer?,SELECT MAX(fowler) FROM table_20142629_2 "What is Score, when Date is Jun 16, and when Set 4 is 25-20?","SELECT score FROM table_name_1 WHERE date = ""jun 16"" AND set_4 = ""25-20""" How many students are not involved in any behavior incident?,SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident ) Name the pinyin for 657 date,"SELECT pinyin FROM table_16162581_1 WHERE date__ce_ = ""657""" How many losing bonus where there when points against is 439?,"SELECT COUNT(losing_bonus) FROM table_12828723_4 WHERE points_against = ""439""" "What is Tournament, when Result is 2nd, and when Year is 2009?","SELECT tournament FROM table_name_74 WHERE result = ""2nd"" AND year = 2009" Find the emails of parties with the most popular party form.,SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1) "and what states are they, please? | Do you mean the states of all the branches? | what are the four states in which there are customers ?",SELECT state FROM bank where no_of_customers>0 What is the average for the gymnast with a 9.9 start value and a total of 9.612?,SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612 When did Peercoin rank fifth?,SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Peercoin' AND T2.cmc_rank = 5 List down the name of teams that won the toss of the coin from matches with ID from 336010 to 336020.,SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Toss_Winner WHERE T1.Match_Id BETWEEN 336010 AND 336020 What year was the tournament first held in Italy?,"SELECT MIN(began) FROM table_14903081_1 WHERE country = ""Italy""" What is the platform for the latest release 8.4?,"SELECT platform FROM table_name_28 WHERE latest_stable_release = ""8.4""" "Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?","SELECT tournament FROM table_name_95 WHERE outcome = ""runner-up"" AND surface = ""hard"" AND score = ""6–4, 6–2""" List the number of acts in Two Gentlemen of Verona.,SELECT DISTINCT T1.Act FROM chapters AS T1 INNER JOIN works AS T2 ON T1.id = T1.work_id WHERE T2.LongTitle = 'Two Gentlemen of Verona' List the first and last name of the students who do not have any food type allergy.,"SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" Name the away team score for carlton,"SELECT away_team AS score FROM table_16388439_3 WHERE home_team = ""Carlton""" Which position is most popular among players in the tryout?,SELECT pPos FROM tryout GROUP BY pPos ORDER BY COUNT(*) DESC LIMIT 1 What is the city code of the city that the most students live in?,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count ( * ) DESC LIMIT 1 what are the hometowns of gymnasts,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown Find the ids of orders whose status is 'Success'.,SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success' "Name the date for air canada centre 18,736","SELECT date FROM table_23186738_9 WHERE location_attendance = ""Air Canada Centre 18,736""" "Show the first year and last year of parties with theme ""Spring"" or ""Teqnology"".","SELECT First_year , Last_year FROM party WHERE Party_Theme = ""Spring"" OR Party_Theme = ""Teqnology""" What is the record for the w 100-99 score?,"SELECT record FROM table_name_95 WHERE score = ""w 100-99""" What is title of album which track Balls to the Wall belongs to?,"SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = ""Balls to the Wall"";" "What is Date, when City is ""Punta Del Este""?","SELECT date FROM table_name_87 WHERE city = ""punta del este""" What is the IATA for the city of Amsterdam?,"SELECT iata FROM table_name_23 WHERE city = ""amsterdam""" Which city is listed first when Okinawa is listed as the second city?,"SELECT city_1 FROM table_16066063_1 WHERE city_2 = ""Okinawa""" Provide the release year of record ID 1 to 10.,SELECT T.release_year FROM game_platform AS T WHERE T.id BETWEEN 1 AND 10 What are the maximum and minimum week on top of all volumes?,"SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume" "What Race has a Purse of $300,000?","SELECT race FROM table_name_43 WHERE purse = ""$300,000""" How many matches played in the 2019 season of Scottish Championship league were ended with an equal result of 2-2?,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2019 AND T2.name = 'Scottish Championship' AND T1.FTAG = 2 AND T1.FTHG = 2 can i have their emails?,SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = ( SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count ( * ) DESC LIMIT 1 ) "How many users gave ""Pavee Lackeen: The Traveller Girl"" movie a rating score of 4?",SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'Pavee Lackeen: The Traveller Girl' AND T2.rating_score = 4 Find the average and maximum hours for the students whose tryout decision is yes.,"SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" "Which current venues location is Mason, Ohio?","SELECT current_venue FROM table_14903081_1 WHERE location = ""Mason, Ohio""" And what positions did those players play?,SELECT Position FROM player WHERE Points > 20 Find the names of products that were bought by at least two distinct customers.,SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id) >= 2 What is every weekly schedule of TV network Viasat 4?,"SELECT weekly_schedule FROM table_18821196_1 WHERE tv_network_s_ = ""Viasat 4""" order all gas station locations by the opening year.,SELECT LOCATION FROM gas_station ORDER BY open_year What is the hometown of the player who attended American Heritage School?,"SELECT hometown FROM table_11677691_11 WHERE school = ""American Heritage school""" What film did Pen-Ek Ratanaruang direct?,"SELECT title FROM table_name_62 WHERE director = ""pen-ek ratanaruang""" Which Dec. (J2000) has a Redshift (km/ s) of 1331 ± 3?,"SELECT dec___j2000__ FROM table_name_31 WHERE redshift__km__s__ = ""1331 ± 3""" WHAT ARE THE MASCOTS FOR THE SCHOOLS ENROLLMENTS ABOVE THE AVERAGE,SELECT mascot FROM school WHERE enrollment > ( SELECT avg ( enrollment ) FROM school ) What is the title of the first book that was published in 1900?,"SELECT title FROM book WHERE STRFTIME('%Y', publication_date) = '1900' ORDER BY publication_date LIMIT 1" What is the name of the most common amenity in all dorms?,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count ( * ) DESC LIMIT 1 Where was the 2013 Eaff East Asian Cup Qualifier played?,"SELECT venue FROM table_name_78 WHERE competition = ""2013 eaff east asian cup qualifier""" What was the position in 1997?,SELECT pos FROM table_name_35 WHERE year = 1997 What are the campuses that had between 600 and 1000 faculty members in 2004?,SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004 How many inspection points with serious point level that have no fine?,SELECT COUNT(DISTINCT T2.point_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.point_level = 'Serious ' AND T2.fine = 0 How many of the orders are shipped to France?,SELECT COUNT(ShipCountry) FROM Orders WHERE ShipCountry = 'France' Which school have the highest student enrollment? How many of those students are filed for bankruptcy?,"SELECT T.school, num FROM ( SELECT T1.school, COUNT(T2.name) AS num FROM enrolled AS T1 LEFT JOIN filed_for_bankrupcy AS T2 ON T2.name = T1.name GROUP BY T1.school ) T ORDER BY T.num DESC LIMIT 1" what are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?,"SELECT min ( T1.duration ) , min ( T2.rating ) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is" When did they get a policy? | Who are they? | When did the policy holders get their policy?,select start_date from policies find the name of the program that was launched most recently.,SELECT name FROM program ORDER BY launch DESC LIMIT 1 "Who is the owner before 1940, who had a number and name of no. 1222?","SELECT owner_s_ FROM table_name_60 WHERE date < 1940 AND number_ & _name = ""no. 1222""" Calculate the percentage of inspections with the fine for a minor food safety problem.,SELECT CAST(COUNT(CASE WHEN fine = 100 THEN inspection_id END) AS REAL) * 100 / COUNT(inspection_id) FROM violation What is the enrollment for OU?,SELECT enr FROM College WHERE cName = 'OU' What is the maximum and mininum number of stars a rating can receive?,"SELECT max(stars) , min(stars) FROM Rating" how many extra points were there when the score was 48,"SELECT try_bonus FROM table_14070062_4 WHERE points = ""48""" How many current legislators were born after the year 1960?,SELECT COUNT(bioguide_id) FROM current WHERE birthday_bio >= '1961-01-01' List out the stop date of the care plan of dead patients.,SELECT DISTINCT T1.STOP FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.deathdate IS NOT NULL AND T1.STOP IS NOT NULL What are their names?,SELECT railway FROM railway WHERE Railway_ID IN ( SELECT Railway_ID FROM train ) "Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?","SELECT MIN(rank) FROM table_name_16 WHERE borough = ""richmondshire"" AND population > 8 OFFSET 178" "Show the first names and last names of all the guests that have apartment bookings with status code ""Confirmed"".","SELECT T2.guest_first_name, T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Confirmed""" What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?,"SELECT free_or_pay FROM table_name_26 WHERE years = ""2006–"" AND provider = ""bt tv (formerly bt vision)""" What are the names of products whose availability equals to 1?,SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1 Name the total number of valid poll with seats more than 4 and candidates more than 9,SELECT COUNT(valid_poll) FROM table_name_67 WHERE seats > 4 AND candidates > 9 "What is the highest Runners-Up, when Champions is less than 0?",SELECT MAX(runners_up) FROM table_name_30 WHERE champions < 0 What are the names of all the Japanese constructors that have earned more than 5 points?,"SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = ""Japanese"" AND T2.points > 5" What was the date of the game when g. rivers (5) had the high assists?,"SELECT date FROM table_27882867_9 WHERE high_assists = ""G. Rivers (5)""" What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116?,"SELECT MIN(density__inhabitants_km_2__) FROM table_name_39 WHERE area__km_2__ > 16.02 AND altitude__mslm_ < 116 AND city = ""alessandria""" "List the names of all genres in alphabetical oder, together with its ratings.","SELECT g_name, rating FROM genre ORDER BY g_name" What year was Fayette operational at 46?,"SELECT MIN(year_operational) FROM table_26387382_1 WHERE location__county_ = ""Fayette"" AND capacity__mw_ = ""46""" Which actor has acted in at least 2 French films? Please list their IDs.,SELECT T2.actorid FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'France' GROUP BY T2.actorid HAVING COUNT(T1.movieid) > 2 what is the arabic capital name where the english capital name is beirut?,"SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = ""Beirut""" And on which date did it end?,"SELECT End_Date FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" Name the T. Wyka has a Precincts of 51/55?,"SELECT t_wyka FROM table_name_1 WHERE precincts = ""51/55""" What was the guage of the concessionaire ferrosur roca?,"SELECT gauge FROM table_name_8 WHERE concessionaire = ""ferrosur roca""" "Name the player who is born on July 7, 1981.",SELECT Player_name FROM Player WHERE DOB = '1981-07-07' "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.","SELECT T2.first_name , T2.last_name , T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1" How many total games were played by the team which had a total of 16 points and less than 4 draws?,SELECT SUM(played) FROM table_name_33 WHERE points = 16 AND draws < 4 "How many different answers did the question ""Describe the conversation you had with your previous employer about your mental health, including their reactions and actions taken to address your mental health issue/questions."" get?","SELECT COUNT(DISTINCT T1.AnswerText) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Describe the conversation you had with your previous employer about your mental health, including their reactions and actions taken to address your mental health issue/questions.'" What is the genre for the hot fm station?,"SELECT genre FROM table_1601792_3 WHERE station = ""Hot FM""" What is the Score of the Burnley Home game?,"SELECT score FROM table_name_57 WHERE home_team = ""burnley""" What team has 137 points?,"SELECT team FROM table_25318033_1 WHERE points = ""137""" What was the lowest no. of attendance on record?,SELECT MIN(attendance) FROM table_16119656_1 "Which elevation groundstation has a capacity in persons/hour larger than 820, and a Name or route of lager 1, and a slope length smaller than 336?","SELECT AVG(elevation_groundstation) FROM table_name_68 WHERE capacity_in_persons_hour > 820 AND name_or_route = ""lager 1"" AND slope_length < 336" List all open years when at least two shops are opened.,SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2 Which part has the least chargeable amount? List the part id and amount.,"SELECT part_id , chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1" "hi, can you list me the user name and the password of the most popular role user?","SELECT user_name , password FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1" How many problems does the product with the most problems have? List the number of the problems and product name.,"SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1" Which Week 3 has a Week 9 of ejected (day 3)?,"SELECT week_3 FROM table_name_2 WHERE week_9 = ""ejected (day 3)""" How many TV Channel using language English?,"SELECT count(*) FROM TV_Channel WHERE LANGUAGE = ""English"";" "What is College/Team, when Round is less than 2, and when Nationality is ""United States""?","SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = ""united states""" What are the names of parties that do not have delegates in election?,SELECT Party FROM party WHERE NOT Party_ID IN (SELECT Party FROM election) What position is the player who was on the Grizzlies from 1995-1996?,"SELECT position FROM table_16494599_1 WHERE years_for_grizzlies = ""1995-1996""" What is the highest number of goals scored,SELECT MAX(goals¹) FROM table_24565004_7 What is the brand and model of truck used in shipment id 1055?,"SELECT T1.make, T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1055'" What is the closing time of business id 4 on Sunday?,SELECT T2.closing_time FROM Days AS T1 INNER JOIN Business_Hours AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' AND T2.business_id = 4 Which product allows the company to make the highest profit on a single item among those that are the fastest to manufacture? Indicate the rating of the product if there any.,"SELECT T1.Name, T2.Rating FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T1.DaysToManufacture = ( SELECT DaysToManufacture FROM Product ORDER BY DaysToManufacture LIMIT 1 ) ORDER BY T1.ListPrice - T1.StandardCost DESC LIMIT 1" "Which Date has a Week smaller than 8, and an Opponent of atlanta falcons?","SELECT date FROM table_name_31 WHERE week < 8 AND opponent = ""atlanta falcons""" What round was Ken Irvin drafted?,"SELECT MAX(round) FROM table_name_54 WHERE player = ""ken irvin""" I want the plaid cymru for 4 may 2011,"SELECT plaid_cymru FROM table_name_9 WHERE date_s__conducted = ""4 may 2011""" How many images have a total of 10 attribute classes?,SELECT COUNT(IMG_ID) FROM IMG_OBJ WHERE OBJ_CLASS_ID = 10 How many students are affected by each allergy type?,"SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype" How many customers are there?,SELECT count ( * ) from customer Who won the mens doubles the year Alison Humby won the womens singles?,"SELECT mens_doubles FROM table_12163387_1 WHERE womens_singles = ""Alison Humby""" "What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?",SELECT coach FROM table_name_48 WHERE pct > 0.1 AND pts > 9 AND loss = 19 Name the number of stage winners for team columbia,"SELECT COUNT(stage__winner_) FROM table_19115414_4 WHERE team_classification = ""Team Columbia""" What is the publisher with most number of books?,SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1 Find the organisation type description of the organisation detailed as 'quo'.,SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo' Which country had the highest value of indicator belongs to Private Sector & Trade: Exports topic? Please list the country name and indicator name.,"SELECT T1.CountryName, T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T2.Topic = 'Private Sector & Trade: Exports' ORDER BY T1.Value DESC LIMIT 1" What year had a domestic cup of singapore cup?,"SELECT year FROM table_name_9 WHERE domestic_cup = ""singapore cup""" What is the ngc number when the object type is lenticular galaxy and the constellation is hydra?,"SELECT MAX(ngc_number) FROM table_name_12 WHERE object_type = ""lenticular galaxy"" AND constellation = ""hydra""" "What is the Name, when the Transfer fee is ""loan""?","SELECT name FROM table_name_80 WHERE transfer_fee = ""loan""" Could you tell me the draft pick numbers of the players from those draft classes?,"Select draft_pick_number from match_season where draft_class in ( SELECT DISTINCT draft_class FROM match_season WHERE College = ""UCLA"" OR College = ""Duke"" ) " "Which Overall has a Position of te, and a Round larger than 5?","SELECT AVG(overall) FROM table_name_82 WHERE position = ""te"" AND round > 5" what is team 2 when team 1 is fc rouen (d1)?,"SELECT team_2 FROM table_name_85 WHERE team_1 = ""fc rouen (d1)""" "Hello, I was wondering how many claims are made?",SELECT count ( * ) FROM Claims What is the Pole Position for the German Grand Prix,"SELECT pole_position FROM table_name_83 WHERE grand_prix = ""german grand prix""" What did they do against Memphis?,"SELECT result FROM table_21058823_1 WHERE opponent = ""Memphis""" What is Brendan Gaughan's Car #?,"SELECT car__number FROM table_name_72 WHERE driver = ""brendan gaughan""" "What is the full address of the customers who, having received a timely response from the company, have dispute about that response?","SELECT T1.address_1, T1.address_2 FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'Yes' AND T2.`Consumer disputed?` = 'Yes'" What is the score when the opposition is mid canterbury?,"SELECT score FROM table_26847237_3 WHERE opposition = ""Mid Canterbury""" What is the totl amount of years where avg start is 27.3?,"SELECT COUNT(year) FROM table_1458412_1 WHERE avg_start = ""27.3""" "Who played the role of a teleplay in the episode that won ""Best Television Episode""?",SELECT T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.result = 'Winner' AND T1.award = 'Best Television Episode' "Count the number of members in club ""Bootup Baltimore"" whose age is below 18.","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.age < 18" How about the rest of people?,"SELECT Name , birth_date FROM people EXCEPT SELECT T1.Name , T1.birth_date FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id" Which United States player has a To par of 14?,"SELECT player FROM table_name_2 WHERE country = ""united states"" AND to_par = 14" What are the nationalities that are shared by at least two people?,SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 "what is the 4560596484842 of customer id | The customer_id is 14 | what is the customer id with most number of cards, and how many does he have?","SELECT customer_id , count ( * ) FROM Customers_cards GROUP BY customer_id ORDER BY count ( * ) DESC LIMIT 1" "Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?","SELECT outcome FROM table_name_54 WHERE opponent = ""wendy turnbull"" AND surface = ""grass""" Show the id and details for the investors who have the top 3 number of transactions.,"SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3" Which interview score corresponds with the evening gown score of 8.977?,"SELECT interview FROM table_12338595_1 WHERE evening_gown = ""8.977""" List all the name and height of all mountains in Alaska,"SELECT T1.Name, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T2.Province = 'Alaska'" Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430,"SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = ""89.3 fm"" AND facility_id < 40430" What is the team #2 with Deport as team #1?,"SELECT team__number2 FROM table_name_31 WHERE team__number1 = ""deport""" "How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win?","SELECT silver FROM table_name_20 WHERE gold > 1 AND total < 97 AND nation = ""estonia""" Which city is the most frequent source airport?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 Find all procedures which cost more than 1000 or which physician John Wen was trained in.,"SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" "Thanks! Can you please list the part id and the corresponding price of the part with the lowest chargeable amount? | We don't have price. Do you mean want the part ids and corresponding chargeable amount of the part with the lowest chargeable amount? | I'm sorry, yes that is what I meant. The one with the lower chargeable amount!","SELECT part_id , chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1" What manufacturer made the car that won in 2004?,"SELECT manufacturer FROM table_2241841_1 WHERE year = ""2004""" What movie won with a date of 12/11/03,"SELECT recipient FROM table_name_78 WHERE date = ""12/11/03""" What language has a publication range from 1955–1999?,"SELECT language FROM table_name_85 WHERE publication_range = ""1955–1999""" List at least 3 categories with the lowest number of users.,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id ORDER BY T2.label_id LIMIT 3 What is Ryan McCay's speed that has a rank better than 8?,"SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = ""ryan mccay""" What is the score of the game on May 26?,"SELECT score FROM table_name_14 WHERE date = ""may 26""" Show the most common apartment type code among apartments with more than 1 bathroom.,SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 Show the protein name and the institution name.,"SELECT T2.protein_name , T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id" What is the genre of the Advent Rising game?,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Advent Rising' What documents types have more than 2 corresponding documents?,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count ( * ) > 2 "Which Surname has Throws of l, and a DOB of 5/02/79?","SELECT surname FROM table_name_63 WHERE throws = ""l"" AND dob = ""5/02/79""" What is the total number of customers who use banks in New York City?,SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City' Which airlines have departing flights from both APG and CVO airports?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""APG"" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""CVO""" Give me the names and prices of furnitures which some companies are manufacturing.,"SELECT t1.name , t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID" How many former athletes go on to become coaches after retiring?,SELECT COUNT(playerID) FROM Master WHERE playerID IS NOT NULL AND coachID IS NOT NULL What is the country of origin of the aircraft with a registration s5-hpb?,"SELECT origin FROM table_name_67 WHERE registration = ""s5-hpb""" "Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266?","SELECT nationality FROM table_name_80 WHERE fate = ""sunk (mine)"" AND tonnage__grt_ < 2 OFFSET 266" How many airlines do we have?,SELECT count(*) FROM AIRLINES "List the name of technicians whose team is not ""NYY"".","SELECT Name FROM technician WHERE Team != ""NYY""" Name the awardees for best special effects,"SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = ""Best Special Effects""" What is the ERP for the Mount Goonaneman transmitter?,"SELECT erp__analog__digital_ FROM table_name_6 WHERE transmitter_location = ""mount goonaneman""" Who wrote episode number 11?,SELECT written_by FROM table_29273243_1 WHERE no_in_season = 11 Name the date with loss of carman (3-12),"SELECT date FROM table_name_59 WHERE loss = ""carman (3-12)""" Which Frequency has a Call sign of kcse?,"SELECT frequency FROM table_name_93 WHERE call_sign = ""kcse""" List the school color of the school that has the largest enrollment.,SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 Name the date of appointment for sacked and 14th position replaced by marco kostmann,"SELECT date_of_appointment FROM table_17327264_3 WHERE manner_of_departure = ""Sacked"" AND position_in_table = ""14th"" AND replaced_by = ""Marco Kostmann""" Show the detail of vehicle with id 1.,SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1; "Find the city the store named ""FJA Filming"" is in.","SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = ""FJA Filming""" "Find the maximum and minimum sales of the companies that are not in the ""Banking"" industry.","SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != ""Banking""" what is the last name of state sp,"select last_name from customers where state = ""SP""" What are the ids of all students who live in CHI?,"SELECT StuID FROM Student WHERE city_code = ""CHI""" "List the name, location, mascot for all schools.","SELECT school_name , LOCATION , mascot FROM school" What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?,"SELECT MAX(draws) FROM table_name_24 WHERE ballarat_fl = ""sebastapol"" AND against < 1802" What date was the game with a record of 47–39?,"SELECT date FROM table_name_93 WHERE record = ""47–39""" how many heads from Alabama?,"SELECT count ( * ) FROM head where born_state = ""Alabama""" What are the ids of the top three products that were purchased in the largest amount?,SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3 what is the dept. name of the McKinnon,SELECT dept_name FROM instructor where name = 'McKinnon' "What is 2011, when 2009 is ""A""?","SELECT 2011 FROM table_name_59 WHERE 2009 = ""a""" "Among the USA employess, how many of them has PhD title of courtesy?",SELECT COUNT(Country) FROM Employees WHERE TitleOfCourtesy = 'Dr.' AND Country = 'USA' Which time/retired has a qual of 144.02?,SELECT time_retired FROM table_name_75 WHERE qual = 144.02 How many images have less than 15 object samples?,SELECT COUNT(IMG_ID) FROM IMG_OBJ WHERE OBJ_SAMPLE_ID < 15 What are the names of the universities that got 98 in teaching in 2011?,SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score = 98 Name the goalies who played for more than two teams from Year 2000 to 2005.,"SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year >= 2000 AND T2.year <= 2005 GROUP BY T2.playerID HAVING COUNT(DISTINCT T2.tmID) > 2" Please show the most common citizenship of singers.,SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1 What is the profit on net of the products that have exactly 200 maximum order quantity? Indicate the name of the vendors to which these products were purchased from.,"SELECT T1.LastReceiptCost - T1.StandardPrice, T2.Name FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.MaxOrderQty = 200" Find the average order quantity per order.,SELECT avg(order_quantity) FROM order_items Where was the friendly competition on 7 June 1999 played?,"SELECT venue FROM table_name_9 WHERE competition = ""friendly"" AND date = ""7 june 1999""" What was the home team when the game was at Windy Hill?,"SELECT home_team FROM table_name_36 WHERE venue = ""windy hill""" What are their names?,SELECT Name FROM player WHERE Points > 20 How many years did notre dame participate? ,"SELECT MAX(years_participated) FROM table_1571238_2 WHERE team = ""Notre Dame""" Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ?,"SELECT telugu_తెలుగు FROM table_name_87 WHERE kannada_ಕನ್ನಡ = ""chitra ಚಿತ್ತ""" Name the disposition for date built is march 1909,"SELECT disposition FROM table_1748444_1 WHERE date_built = ""March 1909""" Who had the highest points when the series was 4-2?,"SELECT high_points FROM table_name_22 WHERE series = ""4-2""" "How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?","SELECT COUNT(gold) FROM table_name_27 WHERE bronze > 1 AND nation = ""total"" AND silver < 18" What are the names of instructors who didn't teach?,SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches) Name the smoke point for monosaturated fat of 30g,"SELECT smoke_point FROM table_name_25 WHERE monounsaturated_fat = ""30g""" "Show name, address road, and city for all branches sorted by open year.","SELECT name, address_road, city FROM branch ORDER BY open_year" Please provide the full name of the customer at 692 Joliet Street.,"SELECT T2.first_name, T2.last_name FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id WHERE T1.address = '692 Joliet Street'" What venue has don bradman (nsw) as the player?,"SELECT venue FROM table_name_7 WHERE player = ""don bradman (nsw)""" What is the most common nationality of people?,SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 What is the number of invoices and total money billed in them from CA?,"SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = ""CA"";" What is the Hanzi of Phoenix Television Chinese that launched in 1996?,"SELECT hanzi FROM table_name_69 WHERE launch = ""1996"" AND name = ""phoenix television chinese""" Find the name and city of the airport which is the source for the most number of flight routes.,"SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1" "Which customers have used both the service named ""Close a policy"" and the service named ""Upgrade a policy""? Give me the customer names.","SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""Close a policy"" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""New policy application""" "List all project code name and hours worked by Scientists ssn | Do you mean list their ssn's? | yes, list the project codes, names, and hours worked by scientists by ssn","SELECT T3.Name , T3.Code , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T1.SSN" Name the total number of wins with top-25 of 10 and events less than 26,SELECT COUNT(wins) FROM table_name_67 WHERE top_25 = 10 AND events < 26 How many gains were there for the player who had a loss greater than 57 and a long less than 55?,SELECT COUNT(gain) FROM table_name_45 WHERE loss > 57 AND long < 55 Which team got the most bench minor penalties in 2006?,"SELECT name FROM Teams WHERE year = 2006 GROUP BY tmID, name ORDER BY CAST(SUM(BenchMinor) AS REAL) / 2 DESC LIMIT 1" Which year was the peter jackson classic?,"SELECT year FROM table_name_36 WHERE championship = ""peter jackson classic""" "Which Away captain has a Date of 2,3,4,5 january 1999?","SELECT away_captain FROM table_name_69 WHERE date = ""2,3,4,5 january 1999""" Show all the Store_Name of drama workshop groups.,SELECT Store_Name FROM Drama_Workshop_Groups Which document type is described with the prefix 'Initial'?,SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%' What country had a Finish of t8?,"SELECT country FROM table_name_59 WHERE finish = ""t8""" """Find the last names of all the teachers that teach GELL TAMI.","SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""GELL"" AND T1.lastname = ""TAMI""" What about FName?,"SELECT Major, FName FROM STUDENT" And how many have not filed complaints?,SELECT count ( * ) FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM complaints ) What is the title that have at least 10% royalty without minimum range amount.,SELECT T1.title FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange = 0 AND T2.royalty >= 10 "What is Score, when High Points is ""Dwight Howard (25)""?","SELECT score FROM table_name_36 WHERE high_points = ""dwight howard (25)""" What was the Average crowd when the away team was north melbourne?,"SELECT AVG(crowd) FROM table_name_17 WHERE away_team = ""north melbourne""" How many books are there?,SELECT count(*) FROM book What is the lowest overall amount of wins?,SELECT MIN(wins) FROM table_26815674_1 "How many films are there in each category? List the genre name, genre id and the count.","SELECT T2.name , T1.category_id , count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id" Calculate the percentage of male clients from Indianapolis City.,SELECT CAST(SUM(CASE WHEN sex = 'Male' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(client_id) FROM client WHERE city = 'Indianapolis' What was the winning score for the tournament where Garth Mulroy was the runner-up?,"SELECT winning_score FROM table_name_94 WHERE runner_s__up = ""garth mulroy""" What are the name and active date of the customers whose contact channel code is email?,"SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'" What about the name of the country that participated in the least number of tournaments?,SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count ( * ) asc LIMIT 1 list in alphabetic order all course names and their instructors' names in year 2008.,"SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title" What is the name for 30 september 1943?,"SELECT name FROM table_1220125_4 WHERE launched = ""30 September 1943""" Give me the age for Linda Smith,"SELECT age FROM STUDENT where lname = ""Smith"" and fname = ""Linda""" "Which tittles have an original air date of March 19, 1998","SELECT title FROM table_11951237_4 WHERE original_air_date = ""March 19, 1998""" What is the Score of the Shooter with a Comp of OG?,"SELECT score FROM table_name_9 WHERE comp = ""og""" What is the Engine with 3 as the start in the year of 2007?,"SELECT engine FROM table_name_8 WHERE start = ""3"" AND year = 2007" what is the first and last name of the profesor in biology department?,"SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = ""Biology""" "Show me how many minutes player Id ""valiqst01"" played in the game in 2007 season.",SELECT Min FROM Goalies WHERE playerID = 'valiqst01' AND year = 2007 what are all the date withdrawn for koningin beatrix,"SELECT date_withdrawn FROM table_11662133_3 WHERE ships_name = ""Koningin Beatrix""" How many people attended the LA Awards in 2010?,select Num_of_Audience from festival_detail where Festival_Name = 'LA Awards' and Year = 2010 What is the total number of poles with less than 0 wins?,SELECT COUNT(poles) FROM table_name_43 WHERE wins < 0 What is the name of the player when n is 28?,SELECT name FROM table_22810095_8 WHERE n = 28 "Among the coaches who have gotten in the Hall of Fame, how many of them have a weight of over 195?",SELECT COUNT(DISTINCT T1.coachID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.weight > 195 Show each county along with the number of schools and total enrollment in each county.,"SELECT county , count(*) , sum(enrollment) FROM school GROUP BY county" What is the latest season where he had 1 podium? ,SELECT MAX(season) FROM table_25539502_1 WHERE podiums = 1 List the name of all projects that are operated longer than the average working hours of all projects,SELECT name FROM projects WHERE hours > ( SELECT avg ( hours ) FROM projects ) How many physicians are trained in Complete Walletectomy?,SELECT count ( * ) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment where T3.Name = 'Complete Walletectomy' "What are flight numbers of flights arriving at City ""Aberdeen""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" What is the total of the team with a T score less than 6.8?,SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8 Roy Rogers play for what school/club team?,"SELECT school_club_team FROM table_name_38 WHERE player = ""roy rogers""" What is the count and code of the job with the most employee?,"SELECT emp_jobcode , count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1" what was the competitoin where the opponent is sheffield scimitars?,"SELECT competition FROM table_17120964_9 WHERE opponent = ""Sheffield Scimitars""" How economically free is the country of Armenia?,"SELECT 2013 AS _index_of_economic_freedom FROM table_1604579_2 WHERE country = ""Armenia""" Find the first names of all the authors ordered in alphabetical order.,SELECT fname FROM authors ORDER BY fname What is the height of the Forward who currently plays for the Toronto Raptors?,"SELECT height FROM table_name_1 WHERE position = ""forward"" AND current_club = ""toronto raptors""" What state/territory has lovett tower as the building?,"SELECT state___territory FROM table_name_85 WHERE building = ""lovett tower""" how many train number in the train table,SELECT count ( train_number ) FROM train Name all countries in which have border with Bulgaria.,SELECT T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 WHERE T1.Name = 'Bulgaria' Find all airlines that have flights from airport 'CVO' but not from 'APG'.,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""CVO"" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""APG""" "Who is the author of the paper titled ""Binders Unbound""? Give me the last name.","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Binders Unbound""" What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle?,"SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = ""Brown Snake Eagle""" What is the 2nd leg of the second team in the 2007 uefa intertoto cup?,"SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = ""2007 uefa intertoto cup""" what is the competition that had a final score of 6:5?,"SELECT competition FROM table_name_79 WHERE final_score = ""6:5""" How many people gave the most enjoyed episode a 10-star rating?,SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 "Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?",SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5 what is the record when the year is 2011?,SELECT record FROM table_name_45 WHERE year = 2011 What is the attendance of week 12?,SELECT MIN(attendance) FROM table_name_63 WHERE week = 12 "What is the total Money (£) with a Place of t6, and a Player of ian baker-finch?","SELECT COUNT(money___) AS £__ FROM table_name_61 WHERE place = ""t6"" AND player = ""ian baker-finch""" Count the number of different last names actors have.,SELECT count(DISTINCT last_name) FROM actor Mention the employee's full name and performance status who got the lowest in salary per year.,"SELECT firstname, lastname, performance FROM employee ORDER BY salary ASC LIMIT 1" Calculate the average price of cars from Europe.,SELECT AVG(T1.price) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Europe' How many wins in the season he finished 33rd,"SELECT winnings FROM table_1875157_1 WHERE position = ""33rd""" How much money did the player Ed Oliver win?,"SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = ""ed oliver""" What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə?,"SELECT translation FROM table_23915_4 WHERE ipa___rio_de_janeiro__ = ""ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə""" What was the result of the election in the Virginia 3 district?,"SELECT result FROM table_1341577_47 WHERE district = ""Virginia 3""" Which Score has an Away team of middlesbrough?,"SELECT score FROM table_name_98 WHERE away_team = ""middlesbrough""" List the name and phone number of all suppliers in the alphabetical order of their addresses.,"SELECT T1.supplier_name , T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details" What is the amount outstanding for this customer?,"SELECT amount_outstanding FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard""" What is the Original Airdate for the YouTube Hero greg pattillo?,"SELECT original_airdate FROM table_name_26 WHERE youtube_hero = ""greg pattillo""" Which team raced on October 19?,"SELECT team FROM table_15736385_1 WHERE date = ""October 19""" "show me the customer name of the order that have the status ""cancelled""","SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Cancelled""" what is the most money ($) when the score is 71-74-69-72=286?,SELECT MAX(money___) AS $__ FROM table_name_21 WHERE score = 71 - 74 - 69 - 72 = 286 Show the number of transaction types.,SELECT count(DISTINCT transaction_type) FROM Financial_Transactions "With a To par of –2, what is Johnny Miller's Place?","SELECT place FROM table_name_13 WHERE to_par = ""–2"" AND player = ""johnny miller""" "Find the unit of measurement and product category code of product named ""chervil"".","SELECT t2.unit_of_measure , t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""chervil""" Who was in Human Resources & Operations when David Hornsby was in Academic & University Affairs?,"SELECT human_resources_ & _operations FROM table_name_56 WHERE academic_ & _university_affairs = ""david hornsby""" How many orders does Lucas Mancini has?,"SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";" What is the party of the youngest people?,SELECT Party FROM people ORDER BY Age ASC LIMIT 1 Name the hdi 2012 for dominica,"SELECT hdi_2012 FROM table_26313243_1 WHERE country = ""Dominica""" "List the names, color descriptions and product descriptions of products with category ""Herbs"".","SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" What is the power play percentage of the team with the most number of loses?,SELECT CAST(SUM(PPG) AS REAL) * 100 / SUM(PPC) FROM Teams GROUP BY tmID ORDER BY SUM(L) DESC LIMIT 1 "what is the part number when the release date is january 2011, the frequency is 3.4 ghz and the release price (usd) is $317?","SELECT part_number_s_ FROM table_name_99 WHERE release_date = ""january 2011"" AND frequency = ""3.4 ghz"" AND release_price___usd__ = ""$317""" What are the visit date and details of the visitor whose detail is Toney?,"SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Toney""" "Which Opponents in Final has a Score in Final of 7–5, 1–6 4–6?","SELECT opponents_in_final FROM table_name_19 WHERE score_in_final = ""7–5, 1–6 4–6""" Who is the courtside reporter for the year 2009-10?,"SELECT courtside_reporter FROM table_14902507_2 WHERE year = ""2009-10""" "Find the first names of all the authors who have written a paper with title containing the word ""Functional"".","SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE ""%Functional%""" Which conference is Belmont in?,"SELECT conference FROM table_16295365_1 WHERE school = ""Belmont""" What was the Attendance of August 26?,"SELECT attendance FROM table_name_14 WHERE date = ""august 26""" List out the number of students who have the longest duration of absense from school and enlisted in the peace corps.,SELECT COUNT(T1.NAME) FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'peace_corps' ORDER BY T1.month DESC LIMIT 1 "What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?","SELECT intergiro_classification FROM table_name_16 WHERE points_classification = ""paolo bettini"" AND trofeo_super_team = ""davitamon-lotto"" AND mountains_classification = ""josé rujano""" Which movie originated in Bulgaria?,"SELECT film_title_used_in_nomination FROM table_name_9 WHERE country = ""bulgaria""" How many documents can one grant have at most? List the grant id and number.,"SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1;" "What is Country, when Player is Billy Mayfair?","SELECT country FROM table_name_50 WHERE player = ""billy mayfair""" What play has a loss of 2?,"SELECT played FROM table_name_1 WHERE lost = ""2""" What was the score of the away team when the game was played at vfl park?,"SELECT away_team AS score FROM table_name_83 WHERE venue = ""vfl park""" "what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?",SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76 How many of those are women?,SELECT count ( T2.friend ) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' How much uranium did Russia use in 2006 to 2008?,"SELECT uranium_required_2006_08 FROM table_15624586_2 WHERE country = ""Russia""" "What are the names of the songs by the artist whose last name is ""Heilo""?","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = ""Heilo""" "For the home weather station of store no.15, what was the dew point on 2012/2/18?",SELECT T1.dewpoint FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 15 AND T1.`date` = '2012-02-18' Who played River Plate?,"SELECT team__number2 FROM table_17282875_3 WHERE team__number1 = ""River Plate""" Which branding has the format of southern country?,"SELECT branding FROM table_19131921_1 WHERE format = ""Southern Country""" Which club has 1 runners-up with 0 winners and 2 third place earned?,SELECT club FROM table_name_12 WHERE runners_up = 1 AND winners = 0 AND third = 2 What is the name of the conductor who has conducted the most orchestras?,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1 Find the name of different colleges involved in the tryout in alphabetical order.,SELECT DISTINCT cName FROM tryout ORDER BY cName What player belongs to the Chicago Blackhawks?,"SELECT player FROM table_2781227_2 WHERE nhl_team = ""Chicago Blackhawks""" What are the durations of the longest and the shortest tracks in milliseconds?,"SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK" "With less than 1 Championship, what es the Established date of the Niagara Rugby Union League?","SELECT SUM(established) FROM table_name_40 WHERE championships < 1 AND league = ""niagara rugby union""" "Which pick has a Round smaller than 8, and an Overall smaller than 16, and a Name of harry gilmer?","SELECT pick FROM table_name_55 WHERE round < 8 AND overall < 16 AND name = ""harry gilmer""" what is the silver for mexico?,"SELECT silver FROM table_name_9 WHERE nation = ""mexico""" "For the older production technician who was hired in 2008/12/7, what's his/her birthday?",SELECT BirthDate FROM Employee WHERE HireDate = '2008-12-07' Which Site has a Sport of w swimming?,"SELECT site FROM table_name_38 WHERE sport = ""w swimming""" Which HMO has a conventional plan of 3% in 2005?,"SELECT hmos FROM table_name_96 WHERE conventional_plans = ""3%"" AND year = 2005" List all the room names booked with 1 adult and a check in date in October.,"SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Adults = 1 AND T1.checkin LIKE ""%OCT%""" What was willie wood's to par?,"SELECT to_par FROM table_name_15 WHERE player = ""willie wood""" What episode in the series is TV broadcast s03e20?,"SELECT no_in_series FROM table_15861776_1 WHERE tv_broadcast = ""S03E20""" "Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result?","SELECT result FROM table_name_89 WHERE week > 14 AND opponent = ""dallas cowboys""" How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?,SELECT AVG(gold) FROM table_name_73 WHERE bronze > 6 AND silver > 18 Who were the owners of eateries which had highest health hazard by improper cooking time or temperatures?,SELECT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.description = 'Improper cooking time or temperatures' "What is Winner, when Year is 2001?",SELECT winner FROM table_name_34 WHERE year = 2001 Which country has the smallest surface area?,SELECT Name FROM Country ORDER BY SurfaceArea ASC LIMIT 1 Please list the notes for Aruba on the indicators under the topic of Environment: Energy production & use.,SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T1.ShortName = 'Aruba' AND T3.Topic = 'Environment: Energy production & use' "Which Location has a PPV Buyrate of 775,000?","SELECT location FROM table_name_26 WHERE ppv_buyrate = ""775,000""" What was the highest number of points in 1966?,SELECT MAX(points) FROM table_name_99 WHERE year = 1966 Give the social security number of the female Irish patient allergic to grass pollen.,SELECT T2.ssn FROM allergies AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Allergy to grass pollen' AND T2.ethnicity = 'irish' AND T2.gender = 'F' Find the name of the swimmer who has at least 2 records.,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*) >= 2 How many orders were shipped via Federal Shipping?,SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Federal Shipping' AND T1.ShipVia = 3 On what date was the game that had a score of 7–0?,"SELECT date FROM table_name_91 WHERE score = ""7–0""" List the weight of the customer's shipment with annual revenue of 39448581.,SELECT T1.weight FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.annual_revenue = 39448581 "What are the names of all the products supplied by supplier id 3, please?",SELECT T2.product_name FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 "What is Distance, when Date is ""2008-01-12""?","SELECT distance FROM table_name_18 WHERE date = ""2008-01-12""" What tournament has a year prior to 2001?,SELECT tournament FROM table_name_26 WHERE year < 2001 "Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey?","SELECT website FROM table_name_64 WHERE city_of_license = ""monterrey"" AND webcast = ""listen live"" AND frequency < 1050" "What is the Result with a Score of 1–0, and a Date with 18 april 2009?","SELECT result FROM table_name_35 WHERE score = ""1–0"" AND date = ""18 april 2009""" Who has the fastest lap where Benoît Tréluyer got the pole position?,"SELECT fastest_lap FROM table_22379931_2 WHERE pole_position = ""Benoît Tréluyer""" What are the highest number of laps for grid 8?,SELECT MAX(laps) FROM table_name_95 WHERE grid = 8 "What was the Week on October 18, 1992?","SELECT SUM(week) FROM table_name_3 WHERE date = ""october 18, 1992""" Return the names of songs for which format is mp3 and resolution is below 1000.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" Find the number of amenities for each of the dorms that can accommodate more than 100 students.,"SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid" Show the location codes and the number of documents in each location.,"SELECT location_code , count(*) FROM Document_locations GROUP BY location_code" "Kecamatan Bogor Timur has more than 6 villages, what is the area in km²?","SELECT SUM(area_in_km²) FROM table_name_68 WHERE original_name = ""kecamatan bogor timur"" AND number_of_settlements_and_villages > 6" Can you add the songs' names and resolutions to the table?,"SELECT country,song_name, resolution FROM song WHERE resolution > ( SELECT min ( resolution ) FROM song WHERE languages = ""english"" ) " On which circuit was the lites 1 race one winning team #66 Gunnar Racing?,"SELECT circuit FROM table_26638600_3 WHERE lites_1_race_one_winning_team = ""#66 Gunnar Racing""" What is the lowest average for number 2?,SELECT MIN(average_score) FROM table_name_12 WHERE number = 2 How many locations were there when sydney was the home team?,"SELECT COUNT(ground) FROM table_16388478_2 WHERE home_team = ""Sydney""" Who's the partner that played against Alicia Molik Mara Santangelo on clay?,"SELECT partner FROM table_name_7 WHERE surface = ""clay"" AND opponents_in_the_final = ""alicia molik mara santangelo""" "Which customer ordered 'Global High-Back Leather Tilter, Burgundy' on 10/13/2013 in the East region?","SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Global High-Back Leather Tilter, Burgundy' AND T1.`Order Date` = '2013-10-13' AND T1.Region = 'East'" What is the report for the race that Ayrton Senna won on 27 August?,"SELECT report FROM table_name_84 WHERE winning_driver = ""ayrton senna"" AND date = ""27 august""" "What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?","SELECT SUM(rank) FROM table_name_52 WHERE nationality = ""japan"" AND lane < 7 AND heat < 3" Which park had most attendances in 2008?,SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1; What is the number of weeks where the result was listed at bye?,"SELECT COUNT(week) FROM table_name_12 WHERE result = ""bye""" "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.","SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS"";" How many years have HMOs been 27% and POS plans 18%?,"SELECT COUNT(year) FROM table_name_54 WHERE hmos = ""27%"" AND pos_plans = ""18%""" How many male students filed for bankruptcy as compare to female students?,"SELECT COUNT(T2.name) - SUM(IIF(T2.name IS NULL, 1, 0)) AS num FROM filed_for_bankrupcy AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name" Which Date has a Record of 6-9?,"SELECT date FROM table_name_86 WHERE record = ""6-9""" What is the lowest game number when the record was 26-24-9?,"SELECT MIN(game) FROM table_name_58 WHERE record = ""26-24-9""" How many fault logs are there in total?,SELECT count ( fault_log_entry_id ) FROM Fault_Log Select the code of the product that is cheapest in each product category.,"SELECT code , name , min(price) FROM products GROUP BY name" What kind of arch is the pont de montanges (pont-des-pierres)?,"SELECT arch_type FROM table_name_23 WHERE name = ""pont de montanges (pont-des-pierres)""" Who scored 67-73-70=210?,SELECT player FROM table_name_93 WHERE score = 67 - 73 - 70 = 210 "Can you tell me the Country that has the To par larger than 9, and the Year(s) won of 1984?","SELECT country FROM table_name_67 WHERE to_par > 9 AND year_s__won = ""1984""" what is the quantity made when the class is d-2?,"SELECT quantity_made FROM table_name_38 WHERE class = ""d-2""" Find the organisation ids and details of the organisations which are involved in more than 6000 grant amount.,"SELECT T2.organisation_id , T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount) > 6000;" Which player scored 71?,SELECT player FROM table_name_4 WHERE score = 71 Show different types of ships and the number of ships of each type.,"SELECT TYPE , COUNT(*) FROM ship GROUP BY TYPE" And product ID 15?,SELECT product_price from products where product_id = 15 Which are the years that character Mr. Burns won an award?,SELECT DISTINCT T1.year FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.character = 'Mr. Burns'; What is the weekly rank for a share of 9 and 9.42 million viewers?,SELECT weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42 Show names for all aircraft with at least two flights.,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING count(*) >= 2 Find the number of manufactures that are based in Tokyo or Beijing.,SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' Was there a decision on that position?,SELECT decision from Tryout WHERE pPos = 'striker' "What is the name of the department that offers a course that has a description including the word ""Statistics""?",SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' On what date was the total 25–45?,"SELECT date FROM table_name_50 WHERE total = ""25–45""" How many customers are in the furniture segment?,SELECT COUNT(c_custkey) FROM customer WHERE c_mktsegment = 'FURNITURE' "What is 2nd Party, when Election is ""1865""?","SELECT 2 AS nd_party FROM table_name_82 WHERE election = ""1865""" Which party is Ettore Romoli from?,"SELECT party FROM table_name_99 WHERE mayor = ""ettore romoli""" Give the publisher's name of the books authored by Alan Lee.,SELECT T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'Alan Lee' GROUP BY T4.publisher_name What is the title of the episode that featured Abbud Siddiqui?,"SELECT title FROM table_29545336_2 WHERE featured_character_s_ = ""Abbud Siddiqui""" What is Cynthia Mobumba's height?,"SELECT height__ft_ FROM table_name_83 WHERE contestant = ""cynthia mobumba""" "What is Date, when Opponent is ""Philadelphia 76ers""?","SELECT date FROM table_name_6 WHERE opponent = ""philadelphia 76ers""" "Can you filter this list so that the only rows that are displayed are those containing ""Gottlieb, Becker and Wyman""?","SELECT T1.master_customer_id, t1.cmi_details, T2.cmi_cross_ref_id FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb, Becker and Wyman'" What are the names and year of construction for the mills of 'Grondzeiler' type?,"SELECT name , built_year FROM mill WHERE TYPE = 'Grondzeiler'" Give the phone and postal code corresponding to the address '1031 Daugavpils Parkway'.,"SELECT phone , postal_code FROM address WHERE address = '1031 Daugavpils Parkway'" What is the team that lost with 77 tries against?,"SELECT lost FROM table_name_5 WHERE tries_against = ""77""" What are the amenities of the dorm that the student with the last name of Jones lives in?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Jones' Which player won in 1987 and ended with a score of +9?,"SELECT total FROM table_name_75 WHERE to_par = ""+9"" AND year_s__won = ""1987""" And the oldest song?,SELECT song_name FROM song ORDER BY releasedate LIMIT 1 How many apps that are only compatible with Android ver 8.0 and above? List down the users' sentiment of these apps.,SELECT DISTINCT Sentiment FROM user_reviews WHERE App IN ( SELECT App FROM playstore WHERE `Android Ver` = '8.0 and up' ) What was the score for south melbourne at home?,"SELECT home_team AS score FROM table_name_2 WHERE home_team = ""south melbourne""" "Among the subscriber, how many of them finished the 2nd at Folsom and Civic Center BART (7th at Market) as their start and end stations respectively for no more than 490 seconds under minimum visibility of 4 miles.",SELECT COUNT(T1.id) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.subscription_type = 'Subscriber' AND T2.min_visibility_miles = 4 AND T1.duration < 490 AND T1.start_station_name = '2nd at Folsom' AND T1.end_station_name = 'Civic Center BART (7th at Market)' How many female artists prefer pop?,"SELECT count ( * ) FROM artist WHERE preferred_genre = ""pop"" AND gender = ""Female""" What is the highest Round that lasted 1:44?,"SELECT MAX(round) FROM table_name_94 WHERE time = ""1:44""" Can you list the names of the festivals that had two or more nominations for artwork?,SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT ( * ) > = 2 What is Trevard Lindley's height?,"SELECT height FROM table_name_42 WHERE name = ""trevard lindley""" What was the outcome in 1982 with Kang Haeng-Suk as partner?,"SELECT outcome FROM table_name_88 WHERE partner = ""kang haeng-suk"" AND year = ""1982""" Kaluvanchikudy is the main town in what DS division?,"SELECT ds_division FROM table_12485020_1 WHERE main_town = ""Kaluvanchikudy""" Who was the jockey when the owner was Richard Pegum?,"SELECT jockey FROM table_name_75 WHERE owner = ""richard pegum""" List the names of all the channels owned by either CCTV or HBS,SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS' Which driver has 12 laps and a grid of less than 10?,SELECT driver FROM table_name_23 WHERE laps = 12 AND grid < 10 What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?,"SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" What is the location of the perpetrator with the largest kills.,SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1; "For the game that was played on october 22 in west side grounds, what is the total attendance","SELECT COUNT(attendance) FROM table_name_41 WHERE location = ""west side grounds"" AND date = ""october 22""" Find the names of the candidates whose support percentage is lower than their oppose rate.,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate How many artists have recorded at least one song in English?,"select count ( * ) from ( SELECT * FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" GROUP BY T2.artist_name HAVING count ( * ) > = 1 ) " Name the man of the match for 24th,"SELECT man_of_the_match FROM table_17120964_5 WHERE date = ""24th""" On what date did week 6 occur?,SELECT date FROM table_name_40 WHERE week = 6 How many universities scored 40 in teaching criteria?,SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id WHERE T2.score = 40 AND T1.criteria_name = 'Teaching' AND T2.score = 40 What is the average median income for all City type of stores?,SELECT AVG(`Median Income`) FROM `Store Locations` WHERE Type = 'City' "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?","SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code" Where does the Kuskokwim Mountains rank on the chart?,"SELECT MAX(rank) FROM table_name_5 WHERE mountain_range = ""kuskokwim mountains""" Name the stadium for regular season game,"SELECT stadium FROM table_21436373_11 WHERE type_of_record = ""Regular season game""" Which ReFS has yes v3.0 for NTFS?,"SELECT refs FROM table_name_43 WHERE ntfs = ""yes v3.0""" Name the circuit for gt3 alex mortimer bradley ellis,"SELECT circuit FROM table_14574130_3 WHERE gt3_winner = ""Alex Mortimer Bradley Ellis""" List the name of albums that are released by artist whose name has 'Led',SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' "What is Date, when Constellation is ""Delphinus""?","SELECT date_sent FROM table_name_71 WHERE constellation = ""delphinus""" "Among the customers whose first name is Cameron, who bought the product in the most quantity?","SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.FirstName = 'Cameron' ORDER BY T2.Quantity DESC LIMIT 1" "Which Format has a Catalog of 61298, and a Date of september 1984?","SELECT format FROM table_name_51 WHERE catalog = 61298 AND date = ""september 1984""" Who had to retire due to suspension?,"SELECT driver FROM table_name_65 WHERE time_retired = ""suspension""" What are the maximum and minimum salary range and position title of Bill Marlin?,"SELECT T2.maxsalary, T2.minsalary, T2.positiontitle FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'Bill' AND T1.lastname = 'Marlin'" How many photos type compliment given from users with high cool votes?,SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id INNER JOIN Compliments AS T3 ON T2.compliment_id = T3.compliment_id INNER JOIN Reviews AS T4 ON T1.user_id = T4.user_id WHERE T3.compliment_type = 'photos' AND T4.review_votes_cool = 'High' Name the played with losing bonus of 2 and points for of 706,"SELECT played FROM table_name_99 WHERE losing_bonus = ""2"" AND points_for = ""706""" What is the highest number of losses for the Cobden club when there is less than 1 win?,"SELECT MAX(losses) FROM table_name_92 WHERE club = ""cobden"" AND wins < 1" Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?,"SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = ""Lacey"" AND T3.staff_last_name = ""Bosco"" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = ""Kenton"" AND T3.staff_last_name = ""Champlin""" "Tell me the location of the club ""Hopkins Student Enterprises"".","SELECT clublocation FROM club WHERE clubname = ""Hopkins Student Enterprises""" What is the total number of ends after 2006 with a nationality of ita and 0 goals?,"SELECT COUNT(ends) FROM table_name_39 WHERE since > 2006 AND nat = ""ita"" AND goals < 0" WHAT IS THE CELL MOBILE NUMBER OF TRYSTAN ALEXANE SCHUSTER ?,SELECT cell_mobile_number FROM Teachers WHERE first_name = 'Trystan' and middle_name = 'Alexane' and last_name = 'Schuster' Mention the username of Facebook of Ralph Abraham.,SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.first_name = 'Ralph' AND T1.last_name = 'Abraham' How many different types of ships are there ?,SELECT count ( distinct type ) FROM ship How many acting statuses are there?,SELECT count(DISTINCT temporary_acting) FROM management out of those show me prices higher than 30 | The names of all wines that have prices both higher than some wines from John Anthony winery and higher than 30 are shown in the table | One last question. out of those show me cases higher than 300,"SELECT DISTINCT Name FROM WINE WHERE Price > ( SELECT min ( Price ) FROM wine WHERE Winery = ""John Anthony"" ) and Price>300" "Find the id of the customers who have order status both ""On Road"" and ""Shipped"".","SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" "Which city and state produces the most and least bitter beer, and what is the difference in bitterness between the two? List also the names of the beer.","SELECT T1.state, T1.city, T2.name, T2.ibu FROM breweries AS T1 INNER JOIN beers AS T2 ON T1.id = T2.brewery_id GROUP BY T1.state, T1.city, T2.name, T2.ibu HAVING MAX(ibu) AND MIN(ibu) LIMIT 2" "Which Score has a Game larger than 40, and a Record of 25-10-8?","SELECT score FROM table_name_81 WHERE game > 40 AND record = ""25-10-8""" What is the weight of the shortest person?,SELECT Weight FROM people ORDER BY Height ASC LIMIT 1 "Bronze of 2, and a Silver smaller than 0 then what is the sum of the gold?",SELECT SUM(gold) FROM table_name_99 WHERE bronze = 2 AND silver < 0 "What director grossed $200,512,643","SELECT director FROM table_name_96 WHERE gross = ""$200,512,643""" Which state has greater than 50 CBSA officers of metro type?,SELECT T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_type = 'Metro' GROUP BY T2.state HAVING COUNT(T1.CBSA_type) > 50 What is the average area of Asian countries?,SELECT AVG(Area) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country WHERE T2.Continent = 'Asia' Which Year has a Film of baazigar?,"SELECT MAX(year) FROM table_name_32 WHERE film = ""baazigar""" Who is the player that attended Notre Dame with a pick smaller than 304?,"SELECT player FROM table_name_76 WHERE pick__number < 304 AND college = ""notre dame""" What is the location for Yemen in 1994?,"SELECT location FROM table_name_1 WHERE year = ""1994"" AND country = ""yemen""" What's the date when the location is Berlin?,"SELECT date FROM table_name_76 WHERE location = ""berlin""" "and can you tell me, besides Alice and Zach, is there anyone else who is friends with Bob?","SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' and T1.name ! = ""Alice"" and T1.name ! = ""Zach""" Provide the number of encounters for Major D'Amore.,SELECT COUNT(T2.ID) FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Major' AND T1.last = 'D''Amore' For the game against the San Francisco 49ers what was the total attendance?,"SELECT SUM(attendance) FROM table_name_12 WHERE opponent = ""san francisco 49ers""" Can you tell me how many teachers teach fifth grade?,SELECT count ( distinct T2.lastname ) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 "Name the average Blank Ends which has a Shot % smaller than 78, and a Ends Won larger than 43?",SELECT AVG(blank_ends) FROM table_name_80 WHERE shot__percentage < 78 AND ends_won > 43 "Show the employee ids for all employees with role name ""Human Resource"" or ""Manager"".","SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource"" OR T2.role_name = ""Manager""" How many different types of sports do we offer?,SELECT count(DISTINCT sportname) FROM Sportsinfo Can you show me the postal codes for these countries.,"SELECT billing_country,billing_postal_code FROM invoices GROUP BY billing_country ORDER BY count ( * ) LIMIT 5" "Which Tournament is in 1993 with a Score in the final of 6–2, 2–6, 7–5?","SELECT tournament FROM table_name_13 WHERE date = 1993 AND score_in_the_final = ""6–2, 2–6, 7–5""" List the numer of miles for 2010.,SELECT miles__km_ FROM table_28178756_1 WHERE year = 2010 How many car models were produced by the maker with full name American Motor Company?,SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company' "Among the products that are no longer in continuous production, how many of them have their supplier in the USA?",SELECT COUNT(T1.Discontinued) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'USA' AND T1.Discontinued = 1 "What instrument did the musician with last name ""Heilo"" use in the song ""Le Pop""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Le Pop""" "What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?",SELECT MIN(goals_for) FROM table_name_32 WHERE draws < 4 AND points < 27 "Of the players drafted in NBA between 1990 and 2000, who has the most points in all-star? List the player's first name and last name.","SELECT T3.firstname, T3.lastname FROM player_allstar AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID INNER JOIN draft AS T3 ON T1.playerID = T3.playerID WHERE T2.year BETWEEN 1990 AND 2000 ORDER BY T1.points DESC LIMIT 1" What page size do those products use?,SELECT max_page_size FROM product WHERE max_page_size ! = 'A4' How about those with only 1 loan?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count ( * ) = 1 Please calculate the percentage of Sub-Saharan African countries which are in the Special trade system.,SELECT CAST(SUM(CASE WHEN Region = 'Sub-Saharan Africa' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(CountryCode) FROM Country WHERE SystemOfTrade = 'Special trade system' include the year in the table,"SELECT Competition_ID, year FROM competition WHERE country = ""Russia""" Find the number of professors with a Ph.D. degree in each department.,"SELECT count(*) , dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code" What is its color code?,SELECT color_code from products where typical_buying_price = 352447.2874677 What was the round number when Michael Hjalm played?,"SELECT round FROM table_name_27 WHERE player = ""michael hjalm""" what form of payment method did customer ID 1 Use?,SELECT payment_method FROM customers WHERE customer_id = 1 Provide the brand of the truck and the name of the driver that transported goods in Klett & Sons Repair.,"SELECT T3.make, T4.first_name, T4.last_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN truck AS T3 ON T3.truck_id = T2.truck_id INNER JOIN driver AS T4 ON T4.driver_id = T2.driver_id WHERE T1.cust_name = 'Klett & Sons Repair'" "What is the number of reviews from user No. ""21679""?",SELECT COUNT(review_length) FROM Reviews WHERE user_id = 21679 What are the sources for the data of children who finished primary school education in Latin America & Caribbean countries?,"SELECT DISTINCT T2.Source FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode INNER JOIN Country AS T3 ON T1.Countrycode = T3.CountryCode WHERE T3.Region = 'Latin America & Caribbean' AND T2.IndicatorName = 'Children out of school, primary'" What route has termini of fm 1472 sh 255?,"SELECT route_name FROM table_name_49 WHERE termini = ""fm 1472 sh 255""" Which restaurant had the least amount of time spent?,"SELECT Restaurant.ResName , sum ( Visits_Restaurant.Spent ) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum ( Visits_Restaurant.Spent ) ASC LIMIT 1" "What is the mascot with an enrollment (2010) less than 980, and heritage as the school?","SELECT mascot FROM table_name_20 WHERE enrollment__2010_ < 980 AND school = ""heritage""" Which Second has a Third of athanassios pantios?,"SELECT second FROM table_name_56 WHERE third = ""athanassios pantios""" what is the league when the fa cup is qr4 and the fa trophy is qf?,"SELECT league FROM table_name_46 WHERE fa_cup = ""qr4"" AND fa_trophy = ""qf""" What is the name of this constellation with an area of 245.375 sq. deg.?,"SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = ""245.375""" Can you filter that list to show only the staff with the letter 'a' in their names?,"SELECT first_name FROM Staff where first_name LIKE ""%a%""" Show the number of customer cards.,SELECT count(*) FROM Customers_cards "In 1994 which title had less order quanty than the average order quantity? Find the title name, type and price.","SELECT DISTINCT T1.title, T1.type, T1.price FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE T2.ord_date LIKE '1994%' AND T2.Qty < ( SELECT CAST(SUM(T4.qty) AS REAL) / COUNT(T3.title_id) FROM titles AS T3 INNER JOIN sales AS T4 ON T3.title_id = T4.title_id )" What is the average number of stars given by Oregon clients in their reviews?,SELECT CAST(SUM(T3.Stars) AS REAL) / COUNT(T3.Stars) AS average FROM state AS T1 INNER JOIN district AS T2 ON T1.StateCode = T2.state_abbrev INNER JOIN reviews AS T3 ON T2.district_id = T3.district_id WHERE T1.State = 'Oregon' Find the the name of the customers who have a loan with amount more than 3000.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?,"SELECT sat_20_aug FROM table_30058355_2 WHERE fri_26_aug = ""19' 30.70 116.023mph""" "List the author's and publisher's name of the book published on July 10, 1997.","SELECT T3.author_name, T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T1.publication_date = '1997-07-10'" "List all information about customer master index, and sort them by details in descending order.",SELECT * FROM customer_master_index ORDER BY cmi_details DESC Who was the Leading Scorer in the Game with a Score of 96-87?,"SELECT Leading AS scorer FROM table_name_90 WHERE score = ""96-87""" What was the away team's score at the venue football park?,"SELECT away_team AS score FROM table_16387953_1 WHERE ground = ""Football Park""" Name all the person who involved in the making of simpson 20s episode that aired between October to November.,"SELECT DISTINCT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.air_date, 6, 2) BETWEEN '10' AND '11';" What team was in position OL?,"SELECT cfl_team FROM table_20170644_1 WHERE position = ""OL""" What is the Plyff team that plays the Billings Outlaws?,"SELECT plyff FROM table_name_21 WHERE opponent = ""billings outlaws""" Show me the names of the physician who prescribed the highest dose?,SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 How many artists from the USA joined after 1993?,SELECT count ( Artist_ID ) FROM artist WHERE country = 'United States' and Year_Join>1993 "Which Runner(s)-up has a Date of may 19, 1973?","SELECT runner_s__up FROM table_name_21 WHERE date = ""may 19, 1973""" "Which Drawn has a Lost larger than 8, and Points smaller than 7?",SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7 Can you list the states of those colleges?,"SELECT cname, state FROM college WHERE enr < ( SELECT max ( enr ) FROM college ) " Who is the most productive director?,SELECT director FROM director GROUP BY director ORDER BY COUNT(name) DESC LIMIT 1 Find the names of instructors who didn't each any courses in any Spring semester.,SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring') "Who was the vacator when the date successor seated was august 21, 1973?","SELECT vacator FROM table_1134091_4 WHERE date_successor_seated = ""August 21, 1973""" What in the series number of the episode written by Lauren Gussis?,"SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = ""Lauren Gussis""" What K League classic had less than 10 teams?,SELECT k_league_classic FROM table_name_3 WHERE teams < 10 Who is the player who went to school at Tampa?,"SELECT player FROM table_name_91 WHERE school_club_team = ""tampa""" "list the name, job title of all people ordered by their names.","SELECT name , job FROM Person ORDER BY name" What is his customer id?,SELECT T1.custid FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid order by T2.balance desc limit 1 What party is Sanford Bishop a member of?,"SELECT party FROM table_1341522_13 WHERE incumbent = ""Sanford Bishop""" Show different citizenship of singers and the number of singers of each citizenship.,"SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship" What is the customer last name of the customer with the most number of accounts?,SELECT T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 Enumerate the footnote narratives of The Bahamas under the series code SH.DTH.IMRT in the year 1984.,SELECT DISTINCT T1.Description FROM FootNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Year = 'YR1984' AND T2.ShortName = 'The Bahamas' AND T1.Seriescode = 'SH.DTH.IMRT' What is listed for the 2005 that has a 2012 of 4.2%?,"SELECT 2005 FROM table_name_35 WHERE 2012 = ""4.2%""" Which country has the most crowded city in the world?,SELECT T1.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1 What are their opening years?,"SELECT T4.name, T4.Open_Date FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30" Name the si prefix for thousand chuquet,"SELECT si_prefix FROM table_260938_1 WHERE chuquet = ""thousand""" What is the date when Richmond was the home team?,"SELECT date FROM table_name_66 WHERE home_team = ""richmond""" what is the customer id of order id 3,SELECT customer_id from orders where order_id = 3 What are the names of the tourist attractions that can be accessed by shuttle?,"SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""shuttle""" What was the time for the match with away team Mutual Team B?,"SELECT time FROM table_name_28 WHERE away_team = ""mutual team b""" "Name the youngest player who ever won ""Rookie of the Year"".","SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Rookie of the Year' ORDER BY T1.birthDate DESC LIMIT 1" what is the rank of Captain Gilbert Pears?,"select rank from captain where name = ""Captain Gilbert Pears""" Name the Sales (billion $) which have a Company of exxonmobil?,"SELECT sales__billion_$_ FROM table_name_70 WHERE company = ""exxonmobil""" "What amount of prize money was there when the rank was less than 7, there were more than 6 events, and the country was Fiji?","SELECT prize_money___$__ FROM table_name_94 WHERE rank < 7 AND events > 6 AND country = ""fiji""" Who was the visiting team on November 10?,"SELECT visiting_team FROM table_name_28 WHERE date = ""november 10""" "What is the lowest U Wins, when Alianza Wins is greater than 0, when Alianza Goals is greater than 25, and when Draws is ""99""?",SELECT MIN(u_wins) FROM table_name_52 WHERE alianza_wins > 0 AND alianza_goals > 25 AND draws = 99 What is Park Tae-Hwan's final time?,"SELECT time FROM table_name_3 WHERE name = ""park tae-hwan""" "Calculate the percentage of congress representatives from the Democrat party. Among them, how many postal points are in the Hawaii state?","SELECT CAST(SUM(CASE WHEN T1.party = 'Democrat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*), SUM(CASE WHEN T1.state = 'Hawaii' THEN 1 ELSE 0 END) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district" find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.,SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010) What's the location that has a total of 149?,"SELECT location FROM table_name_28 WHERE total_score = ""149""" "What is the highest capacity for the venue of the club, vihren?","SELECT MAX(capacity) FROM table_name_19 WHERE club = ""vihren""" "How much higher is the average rating score of the movie ""Innocence Unprotected"" than the movie ""When Will I Be Loved""?",SELECT SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'Innocence Unprotected' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN T1.rating_score ELSE 0 END) / SUM(CASE WHEN T2.movie_title = 'When Will I Be Loved' THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id Find distinct cities of addresses of people?,SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id Tell me the player from dallas burn,"SELECT player FROM table_name_64 WHERE mls_team = ""dallas burn""" "How many releases are tagged ""1980s""?",SELECT COUNT(id) FROM tags WHERE tag LIKE '1980s' "What is the minimum, mean, and maximum age across all students?","SELECT min(age) , avg(age) , max(age) FROM Student" How many tasks does each project have? List the task count and the project detail.,"SELECT count(*) , T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id" "What are the first names of all players, and their average rankings?","SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name" "What is the name that has a debut round over 14, games under 2, and a club of Melbourne?","SELECT name FROM table_name_93 WHERE debut_round > 14 AND games__2008_ < 2 AND club = ""melbourne""" What are the names and location of the wrestlers?,"SELECT Name , LOCATION FROM wrestler" What is the affiliation of a location called Issaquah?,"SELECT affiliation FROM table_name_51 WHERE location = ""issaquah""" When did the first payment happen?,SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1 What is the Score of the Toronto Maple Leafs home game on February 1?,"SELECT score FROM table_name_99 WHERE home = ""toronto maple leafs"" AND date = ""february 1""" Who has friends that are younger than the average age?,SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person) What is the range of ratings for those songs?,"SELECT min ( rating ) , max ( rating ) FROM song" Had Bitcoin's price increased or decreased on 2013/5/5 compared with the price 7 days before?,SELECT (CASE WHEN T2.percent_change_7d > 0 THEN 'INCREASED' ELSE 'DECREASED' END) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-05-05' AND T1.name = 'Bitcoin' What company does Simon Stone direct earlier than 2011?,"SELECT company FROM table_name_14 WHERE director = ""simon stone"" AND year < 2011" "Which restaurant had more low risk violation in inspections, Tiramisu Kitchen or OMNI S.F. Hotel - 2nd Floor Pantry?",SELECT CASE WHEN SUM(CASE WHEN T2.name = 'OMNI S.F. Hotel - 2nd Floor Pantry' THEN 1 ELSE 0 END) > SUM(CASE WHEN T2.name = 'Tiramisu Kitchen' THEN 1 ELSE 0 END) THEN 'OMNI S.F. Hotel - 2nd Floor Pantry' ELSE 'Tiramisu Kitchen' END AS result FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'Low Risk' Find the milliseconds of Track id 1?,SELECT Milliseconds from Track where TrackId = 1 Thank you for that information! Can you filter that list to show just the hometowns for gymnasts whose total points are more than 57.5?,SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5 Could you please show me the publishers with a book published in 1990?,SELECT publisher FROM book_club WHERE YEAR = 1990 How many students are voting in the spring election cycle?,"SELECT COUNT ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T2.Election_Cycle = ""Spring""" What is the fastest lap for the european grand prix?,"SELECT fastest_lap FROM table_1132588_3 WHERE grand_prix = ""European grand_prix""" "Find the names of the customers who have order status both ""On Road"" and ""Shipped"".","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" Which Score has High assists of rodriguez (8)?,"SELECT score FROM table_name_6 WHERE high_assists = ""rodriguez (8)""" Show the lowest low temperature and the highest wind speed in miles per hour.,"select min ( wind_speed_mph ) , max ( wind_speed_mph ) from weekly_weather order by wind_speed_mph" What is the complete description of the job of a researcher?,SELECT role_description FROM Staff_Roles WHERE role_code = 'researcher' What is every school with stunts of 48?,"SELECT school FROM table_21995420_6 WHERE stunts = ""48""" List the name of persons who were not included in the credit for the 'How the Test Was Won' episode.,SELECT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'How the Test Was Won' AND T2.credited = 'false'; What was the highest match when the away opponent was Dalian Shide Siwu?,"SELECT MAX(match) FROM table_name_53 WHERE opponent_team = ""dalian shide siwu"" AND home_away = ""away""" What is the average Cuts that were made with a Top-10 that is larger than 9?,SELECT AVG(cuts_made) FROM table_name_15 WHERE top_10 > 9 What is the maximum number of blocks where rebounds equal 35?,SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35 who is the manufacturer for the order year 1998?,"SELECT manufacturer FROM table_10007452_3 WHERE order_year = ""1998""" How many of the books authored by Al Gore have less than 400 pages?,SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Al Gore' AND T1.num_pages < 400 Which document type is described with the prefix 'Initial'?,SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'; when was the building withdrawn when the builder was ac cars and was introduced before 1958?,"SELECT SUM(withdrawn) FROM table_name_78 WHERE builder = ""ac cars"" AND introduced < 1958" Please list the business IDs of all the Yelp_Businesses that are good for kids.,SELECT T2.business_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Good for Kids' AND T2.attribute_value LIKE 'TRUE' What is the mascot with the colors green and navy?,"SELECT mascot FROM table_15873547_1 WHERE colors = ""Green and Navy""" "What was the result of the game prior to week 9 with an attendance of 49,970?","SELECT result FROM table_name_23 WHERE week < 9 AND attendance = ""49,970""" On what date did Epic label start its release?,"SELECT SUM(release_date) FROM table_name_3 WHERE label = ""epic""" How about the total number of block codes?,select count ( distinct blockcode ) from room Name the max for prohibition.,SELECT MAX(for_prohibition) FROM table_120778_1 How many cars running east have double-sided tail cars?,"SELECT COUNT(T1.id) FROM trains AS T1 INNER JOIN cars AS T2 ON T1.id = T2.train_id INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T3 ON T1.id = T3.train_id WHERE T1.direction = 'east' AND T2.position = T3.trailPosi AND T2.sides = 'double'" What team played in game 39?,SELECT team FROM table_name_79 WHERE game = 39 What was the name of the couple if the number of dances is 6?,SELECT couple FROM table_23662272_4 WHERE number_of_dances = 6 Name the language for sopachuy 10,SELECT language FROM table_2509350_3 WHERE sopachuy_municipality = 10 "what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb","SELECT torque FROM table_1373768_1 WHERE fuel_mileage__latest_epa_mpg___us__ = ""22 city, 30 hwy, 25 comb""" What's the record for a game past 44 against the Dallas Stars with more than 54 points?,"SELECT record FROM table_name_25 WHERE points > 54 AND game > 44 AND opponent = ""dallas stars""" What is the 2010 value in the Australian Open?,"SELECT 2010 FROM table_name_60 WHERE tournament = ""australian open""" Show me all the claims that are documents.,"SELECT t1.claim_header_id FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.document_type_code = ""Document""" How many instructors advising of students from the history department?,SELECT count ( i_id ) FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' What is the number of states that has some college whose enrollment is larger than the average enrollment?,SELECT count(DISTINCT state) FROM college WHERE enr > (SELECT avg(enr) FROM college) How many other students belong in 0 clubs?,select count ( * ) from student where stuid not in ( SELECT t3.stuid FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid ) Who is the player from La Costa Canyon High School?,"SELECT player FROM table_name_79 WHERE school = ""la costa canyon high school""" Give the detailed description of all the crimes against society.,SELECT description FROM FBI_Code WHERE crime_against = 'Society' Find the number of cities in each district whose population is greater than the average population of cities?,"SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District" Thank you. Then could you please show me the positions of players from Ireland? So country ID 4,SELECT position FROM match_season where country = 4 What were the dates he prescribed those medications?,"SELECT DISTINCT T2.date FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" "on week of february 12, in the west division, what is the position?","SELECT position FROM table_name_16 WHERE division = ""west"" AND week = ""february 12""" "What was the result of the game on December 22, 1991?","SELECT result FROM table_name_37 WHERE date = ""december 22, 1991""" How many different frequencies does the model with part number ado540biaa5do? ,"SELECT COUNT(frequency) FROM table_13869651_3 WHERE part_number_s_ = ""ADO540BIAA5DO""" Name the sum of gold when Bronze is less than 0,SELECT SUM(gold) FROM table_name_19 WHERE bronze < 0 What location was the event ufc: fight for the troops?,"SELECT location FROM table_name_91 WHERE event = ""ufc: fight for the troops""" What is the highest number of ties?,SELECT MAX(ties) FROM table_11233358_2 What is Graham Gooch's nationality?,"SELECT nationality FROM table_name_87 WHERE player = ""graham gooch""" What is the Qaxmuğal village with a Fistiqli village keşqutan?,"SELECT qaxmuğal FROM table_name_81 WHERE fıstıqlı = ""keşqutan""" what game was played on june 14,"SELECT type_of_game FROM table_name_27 WHERE date = ""june 14""" What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell?,"SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_15 WHERE country = ""united states"" AND score < 271 AND year > 1964 AND winner = ""bobby mitchell""" Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security?,"SELECT bulletins_to_all_contacts FROM table_name_43 WHERE transport_layer_security = ""no"" AND license = ""proprietary"" AND creator = ""microsoft""" How many athletes from region 151 have won a medal?,SELECT COUNT(T3.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN person_region AS T3 ON T2.person_id = T3.person_id WHERE T3.region_id = 151 AND T1.medal_id != 4 Which Round has a College of arizona?,"SELECT MIN(round) FROM table_name_26 WHERE college = ""arizona""" show the name of the customer who has the most orders,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 Who was the spokesperson for France in 1970?,SELECT spokesperson FROM table_1368649_9 WHERE year_s_ = 1970 What is the last date of the staff leaving the projects?,SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1 Please list the countries on the European Continent that have a population growth of more than 3%.,SELECT T2.Country FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN population AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' AND T4.Population_Growth > 0.03 Please list the names of all the products whose supplier is in Japan.,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Japan' Which Mountains classification has a Team classification of quick step?,"SELECT mountains_classification FROM table_name_81 WHERE team_classification = ""quick step""" How many opponents did the team play in week 13?,SELECT COUNT(opponents) FROM table_16677874_2 WHERE game = 13 How many points is there when the lost is 6 and the try bonus is 9?,"SELECT points_for FROM table_name_24 WHERE lost = ""6"" AND try_bonus = ""9""" What County has Dublin as the Opposition?,"SELECT county FROM table_name_78 WHERE opposition = ""dublin""" " what's the date of completion where deadline for completion is september 30, 2007","SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = ""September 30, 2007""" Which district has the largest population?,SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1 Name the 2010 for 2006 of 2r,"SELECT 2010 FROM table_name_9 WHERE 2006 = ""2r""" In which county is East Providence?,"SELECT county FROM table_name_55 WHERE location = ""east providence""" Tell me the nomination for ukraine,"SELECT nomination FROM table_name_17 WHERE country = ""ukraine""" List member names and their party names.,"SELECT T1.member_name, T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id" How many votes did each player receive?,"SELECT player_name, votes from player" "Name the partner for may 2, 1993","SELECT partner FROM table_name_8 WHERE date = ""may 2, 1993""" What country is Paul Runyan from?,"SELECT country FROM table_name_6 WHERE name = ""paul runyan""" List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.,"SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;" "What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts?",SELECT MIN(tourist_arrivals__2011___millions_) FROM table_name_95 WHERE tourism_receipts__2011___us$_per_arrival_ = 507 AND tourism_receipts__2011___millions_of_us$_ < 11 OFFSET 869 "Hello, how many customers are there?",SELECT count ( * ) FROM Customers How many of them are women?,SELECT count ( * ) FROM people WHERE is_male = 'F' AND age > 30 What event had Wang Bingyu for the skip?,"SELECT event FROM table_name_14 WHERE skip = ""wang bingyu""" Hello! Can you provide me with a list of all the names and ids for all tourist attractions?,"SELECT Name , Tourist_Attraction_ID FROM Tourist_Attractions" Which tournament had a 2010 finish of 4R?,"SELECT tournament FROM table_name_42 WHERE 2010 = ""4r""" "What is the highest, lowest, and average student GPA for every department?","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code" What is the period for Ben Eager?,"SELECT period FROM table_name_49 WHERE player = ""ben eager""" Give the name of the No.1 character in the credit list from the highest rating thriller movie.,SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.creditOrder = '1' AND T1.Genre = 'Thriller' ORDER BY T1.Rating DESC LIMIT 1 How many games that ended in a draw were played by a team with more than 15 total games?,SELECT COUNT(drawn) FROM table_name_78 WHERE played > 15 How many friends does Dan have?,SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are from a place with more than 30,000 inhabitants?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T3.INHABITANTS_K > 30 AND T2.RESPONSE = 'true' Where is California Lutheran University located?,"SELECT COUNT(location) FROM table_14976504_2 WHERE institution = ""California Lutheran University""" How many students are disabled?,SELECT COUNT(name) FROM disabled What was the date for morocco when the year was lerger than 1981?,"SELECT date FROM table_name_34 WHERE year > 1981 AND location = ""morocco""" Which tourist attractions do the tourists Vincent and Marcelle visit? Tell me the names of the attractions.,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Marcelle""" "Which of the customers, whose Tokyo-based sales representative reports to the Vice President of Sales whose employee number is 1056, has paid the highest payment? List the customer's name, the contact person and calculate the total amount of that customer's total payments.","SELECT T2.customerName, T2.contactFirstName, T2.contactLastName, SUM(T3.amount) FROM employees AS T1 INNER JOIN customers AS T2 ON T2.salesRepEmployeeNumber = T1.employeeNumber INNER JOIN payments AS T3 ON T2.customerNumber = T3.customerNumber INNER JOIN offices AS T4 ON T1.officeCode = T4.officeCode WHERE T4.city = 'Tokyo' AND T1.reportsTo = 1056 GROUP BY T2.customerName, T2.contactFirstName, T2.contactLastName ORDER BY amount DESC LIMIT 1" "WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?","SELECT grid FROM table_name_22 WHERE manufacturer = ""honda"" AND laps = ""24"" AND time_retired = ""+13.997""" Which Binibining Pilipinas International has a Binibining Pilipinas-World of sharmaine gutierrez?,"SELECT binibining_pilipinas_international FROM table_name_24 WHERE binibining_pilipinas_world = ""sharmaine gutierrez""" "In the United Kingdom, what company has an unknown date and is an energy business?","SELECT company FROM table_name_35 WHERE business = ""energy"" AND date = ""unknown"" AND country = ""united kingdom""" How many departments offer any degree?,SELECT count(DISTINCT department_id) FROM Degree_Programs How many games does the player with 1 (0) finals and a w-league of 28 (1) have?,"SELECT games FROM table_name_12 WHERE finals = ""1 (0)"" AND w_league = ""28 (1)""" What type is the 105/107e Block from a year prior to 1960?,"SELECT type FROM table_name_50 WHERE block = ""105/107e"" AND year < 1960" How many lessons did the customer Ryan Goodwin complete?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"" AND T1.lesson_status_code = ""Completed"";" Please check if student 124 is disabled male.,"SELECT IIF(T2.name IS NULL, 'female', 'male') FROM male AS T1 LEFT JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.name = 'student124'" "What is the average quantities ordered with payment method code ""MasterCard"" on invoices?","SELECT AVG(Order_Quantity) FROM Invoices WHERE payment_method_code = ""MasterCard""" What rider is on an aprilia that went under 18 laps with a grid total of 17?,"SELECT rider FROM table_name_14 WHERE manufacturer = ""aprilia"" AND laps < 18 AND grid = 17" On which date did Richmond play as an away team?,"SELECT date FROM table_name_4 WHERE away_team = ""richmond""" What race even has NASCAR Featherlite Modified Series as the championship?,"SELECT event FROM table_name_26 WHERE championship = ""nascar featherlite modified series""" "What constructor has a grid less than 21, and time/retired of engine?","SELECT constructor FROM table_name_64 WHERE grid < 21 AND time_retired = ""engine""" "For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded?",SELECT MAX(top_10) FROM table_name_9 WHERE cuts_made > 1 AND events = 8 Display all the information about the department Marketing.,SELECT * FROM departments WHERE department_name = 'Marketing' "When there was a draw, what was the time?","SELECT time FROM table_name_43 WHERE res = ""draw""" What are the dominant religions in the place with a population of 83?,"SELECT dominant_religion__2002_ FROM table_2562572_27 WHERE population__2011_ = ""83""" What is the November 3 result when June 10-11 is 147?,"SELECT november_3 FROM table_25284864_3 WHERE june_10_11 = ""147""" What about the membership level with the least number of members?,SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count ( * ) ASC LIMIT 1 How many rounds did shirley van der lof go?,"SELECT rounds FROM table_name_46 WHERE driver = ""shirley van der lof""" How many Silver medals did the Nation with a Rank of less than 1 receive?,SELECT AVG(silver) FROM table_name_37 WHERE rank < 1 Who are the scientists who are not assigned to the project Bte2?,SELECT Scientist from AssignedTo where Project ! = 'Bte2' Who was the opponent for game 73?,"SELECT opponent FROM table_name_10 WHERE game = ""73""" Name the number of high rebounds for l 92–96 (ot),"SELECT COUNT(high_rebounds) FROM table_22879262_14 WHERE score = ""L 92–96 (OT)""" "Among the males, list the region name of people with height greater than 87% of the average height of all people listed.",SELECT DISTINCT T1.region_name 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 T3.gender = 'M' AND T3.height * 100 > ( SELECT AVG(height) FROM person WHERE gender = 'M' ) * 87 What is the maximum and minimum temperature for station number 1 on 15 January 2012?,"SELECT tmax, tmin FROM weather WHERE station_nbr = 1 AND `date` = '2012-01-15'" What is the name of the author who teaches the most courses? | Which kinds of names do you prefer? | personal name,SELECT T1.personal_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT ( * ) DESC LIMIT 1 In what conflicts was the Italian Navy Combatants B?,"SELECT conflict FROM table_26977890_1 WHERE combatants_b = ""Italian Navy""" Find the name of the candidates whose oppose percentage is the lowest for each sex.,"SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex" How many class AA in the year 2002-03,"SELECT COUNT(class_aA) FROM table_14747043_1 WHERE school_year = ""2002-03""" "What is the maximum level of managers in countries that are not ""Australia""?","SELECT max(LEVEL) FROM manager WHERE Country != ""Australia """ Which Score has an Opponent in the final of mehdi tahiri?,"SELECT score FROM table_name_96 WHERE opponent_in_the_final = ""mehdi tahiri""" What is the name of the character played by Tom Cruise in the movie Born on the Fourth of July?,SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Tom Cruise' AND T1.Title = 'Born on the Fourth of July' What is Lawson Little's Money ($) amount?,"SELECT money___$__ FROM table_name_30 WHERE player = ""lawson little""" "Among the trains that have at least one non-regular shaped car, what is the percentage of it running in the east direction?","SELECT CAST(COUNT(DISTINCT CASE WHEN T2.direction = 'east' THEN T1.train_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.shape IN ('bucket', 'ellipse')" When was the episode number 2 originally aired?,SELECT original_air_date FROM table_19632728_1 WHERE episode__number = 2 "Yes, what are their locations?","SELECT name,location FROM track WHERE year_opened > 2000" "How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0?","SELECT COUNT(total) FROM table_name_16 WHERE nation = ""kazakhstan (kaz)"" AND gold > 0" How many products are never booked with amount higher than 200?,SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount > 200 ) What is the lowest Bronze with a 17 Rank and a Total less than 5,"SELECT MIN(bronze) FROM table_name_30 WHERE rank = ""17"" AND total < 5" What are the bed type and name of all the rooms with traditional decor?,"SELECT roomName , bedType FROM Rooms WHERE decor = ""traditional"";" What is the hd designation for arrival date of February 2070?,"SELECT COUNT(hd_designation) FROM table_1820752_1 WHERE arrival_date = ""February 2070""" What are the project details of all of those project ids?,"SELECT T2.project_id, T3.project_details FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T2.outcome_code = 'Patent'" "What is the total sales of 'Avery Hi-Liter EverBold Pen Style Fluorescent Highlighters, 4/Pack' in the Central region?","SELECT SUM(T1.Sales) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Avery Hi-Liter EverBold Pen Style Fluorescent Highlighters, 4/Pack' AND T2.Region = 'Central'" What Full Back Player has 0 Apps?,"SELECT player FROM table_name_32 WHERE position = ""full back"" AND apps = 0" "What is Prize, when Rank is ""2nd""?","SELECT prize FROM table_name_2 WHERE rank = ""2nd""" "What is the Season with an Acquisition via of rookie draft, and the number is 15?","SELECT season FROM table_name_50 WHERE acquisition_via = ""rookie draft"" AND number = ""15""" Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.,SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20 What team was the loser when the result was 119–113?,"SELECT loser FROM table_name_83 WHERE result = ""119–113""" What was the result in a week lower than 10 with an opponent of Chicago Bears?,"SELECT result FROM table_name_21 WHERE week < 10 AND opponent = ""chicago bears""" What are the names of wines produced before any wine from the Brander winery?,"SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = ""Brander"")" How many papers are published in total?,SELECT count(*) FROM papers Who is the club that has 30 points?,"SELECT club FROM table_13564637_5 WHERE points = ""30""" Who is the writer with the ratings 14.8?,"SELECT writer FROM table_26591434_1 WHERE ratings__kanto_ = ""14.8""" Show the people that have been governor the most times.,SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 "Which highest overall has a College of idaho, and a Round smaller than 1?","SELECT MAX(overall) FROM table_name_31 WHERE college = ""idaho"" AND round < 1" What is the highest scored in the 2010 east asian football championship?,"SELECT MAX(scored) FROM table_name_66 WHERE competition = ""2010 east asian football championship""" What is the team id for Boston Red Stockings?,"SELECT distinct ( team_id ) FROM team where name = ""Boston Red Stockings""" What is the Name with Goals that are 135?,SELECT name FROM table_name_61 WHERE goals = 135 Who had the most assists and how many did they have in the game against Miami? ,"SELECT high_assists FROM table_17001658_5 WHERE team = ""Miami""" When svein tuft is the winner what is the highest stage?,"SELECT MAX(stage) FROM table_28298471_14 WHERE winner = ""Svein Tuft""" WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO?,"SELECT mens_doubles FROM table_14903627_1 WHERE womens_doubles = ""Piret Hamer Helen Reino""" "Which vocal type has the band mate with first name ""Marianne"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Marianne"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" What round did he win rof 29: aftershock in?,"SELECT round FROM table_name_3 WHERE res = ""win"" AND event = ""rof 29: aftershock""" What digital channel corresponds to virtual channel 23.2?,"SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = ""23.2""" How many residents per officer are there in Aibonito?,SELECT Residents_per_officer FROM county_public_safety WHERE County_ID = ( select County_ID from city where Name = 'Aibonito' ) "On the episode that had a run time of 24:57, how many million viewers were there?","SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = ""24:57""" Find the name of the department that has no students minored in?,SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO With a Launched of 3 July 1998 what is the Closest approach?,"SELECT closest_approach FROM table_name_54 WHERE launched = ""3 july 1998""" Find the names and publication dates of all catalogs that have catalog level number greater than 5.,"SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5" What was the average unit price of products shipped via United Package in 1997?,SELECT AVG(T2.UnitPrice) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Shippers AS T3 ON T1.ShipVia = T3.ShipperID WHERE T1.OrderDate LIKE '1997%' AND T3.CompanyName = 'United Package' "What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?","SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = ""ng"" AND points_for_foundation < 0" "List the name of ships whose nationality is not ""United States"".","SELECT Name FROM ship WHERE Nationality <> ""United States""" What day(s) did they play on week 2?,SELECT date FROM table_1639689_2 WHERE week = 2 What is the sum grid number when the driver was Luciano Burti?,"SELECT COUNT(grid) FROM table_name_55 WHERE driver = ""luciano burti""" What is the name of the Senator in the O District who assumed office in 2013?,"SELECT name FROM table_name_81 WHERE assumed_office = 2013 AND district = ""o""" What dates had matches at the venue Sabina Park?,"SELECT date FROM table_name_50 WHERE venue = ""sabina park""" Which of the app is the best selling app and what is the sentiments polarity of it?,"SELECT T1.App, T2.Sentiment_Polarity FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App ORDER BY T1.Price * CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER) DESC LIMIT 1" What team owns the car owned by chip ganassi?,"SELECT team FROM table_2503102_2 WHERE listed_owner_s_ = ""Chip Ganassi""" What is the dirty electric grid rocky mountains (denver) for the vehicle with the clean electric grid california (san francisco) of 160 g/mi (99 g/km)?,"SELECT dirty_electric_grid_rocky_mountains__denver_ FROM table_23840623_4 WHERE clean_electric_grid_california__san_francisco_ = ""160 g/mi (99 g/km)""" What is total amount of points of entrants with a ford cosworth engine and a year later than 1991?,"SELECT COUNT(points) FROM table_name_21 WHERE engine = ""ford cosworth"" AND year > 1991" What's the part 3 of the verb with part 4 gelopen?,"SELECT part_3 FROM table_1745843_7 WHERE part_4 = ""gelopen""" Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.,SELECT T1.employeeNumber FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T1.reportsTo = 1143 AND T2.city = 'NYC' What is the 2011 value with nms in 2008?,"SELECT 2011 FROM table_name_54 WHERE 2008 = ""nms""" How many tries does Fakahau Valu have?,"SELECT tries FROM table_name_83 WHERE player = ""fakahau valu""" "Find the last name of the latest contact individual of the organization ""Labour Party"".","SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = ""Labour Party"" ORDER BY t2.date_contact_to DESC LIMIT 1" How many people attended the game at Junction Oval?,"SELECT crowd FROM table_name_77 WHERE venue = ""junction oval""" what is the date when the venue is junction oval?,"SELECT date FROM table_name_47 WHERE venue = ""junction oval""" "Please provide the name of businesses with user id ""16328"".",SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Tips AS T3 ON T2.business_id = T3.business_id WHERE T3.user_id = 16328 Show the number of customers.,SELECT count(*) FROM Customers "What is the sum of March, when Score is ""2 - 2"", and when Game is greater than 67?","SELECT SUM(march) FROM table_name_56 WHERE score = ""2 - 2"" AND game > 67" "Show the teams that have both wrestlers eliminated by ""Orton"" and wrestlers eliminated by ""Benjamin"".","SELECT Team FROM Elimination WHERE Eliminated_By = ""Orton"" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = ""Benjamin""" "What is the most points for a vehicle with a lola thl1, chassis later than 1986?","SELECT MAX(points) FROM table_name_54 WHERE chassis = ""lola thl1"" AND year > 1986" What is the total home game attendance of all teams from 2000 to 2010?,SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year BETWEEN 2000 AND 2010 How many episodes were written only by William N. Fordes?,"SELECT COUNT(series__number) FROM table_12159115_3 WHERE written_by = ""William N. Fordes""" What years does Goreville High School have members?,"SELECT years_member FROM table_name_62 WHERE school = ""goreville high school""" What is the visiting team that has a home team related to footscray?,"SELECT away_team FROM table_name_24 WHERE home_team = ""footscray""" what is the average number of gold when the rank is more than 5?,SELECT AVG(gold) FROM table_name_5 WHERE rank > 5 "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.","SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3" What are the conference name and journal name of paper written by Shueh-Lin Yau? List down the name of co-authors and provide the title of that paper.,"SELECT T1.ConferenceId, T1.JournalId, T2.Name, T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id INNER JOIN Journal AS T4 ON T1.JournalId = T4.Id WHERE T2.Name = 'Shueh-Lin Yau'" "Provide the zip codes and their affiliated organization for the postal point under Kingsport-Bristol, TN-VA.","SELECT T2.zip_code, T2.organization FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Kingsport-Bristol, TN-VA'" "How many Passengers that have an Airport in indonesia, denpasar?","SELECT AVG(passengers) FROM table_name_31 WHERE airport = ""indonesia, denpasar""" Show all advisors who have at least two students.,SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2 What is the name of the department htat has no students minoring in it?,SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.,"SELECT email FROM employees WHERE commission_pct = ""null"" AND salary BETWEEN 7000 AND 12000 AND department_id = 50" "Which Manufacturer has a Quantity of 1, and has the LMMR name Great Mountain?","SELECT manufacturer FROM table_name_85 WHERE quantity = 1 AND lmmr_name = ""great mountain""" Hi who made the latest order?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 Which railway had a loco name of Pyramus and a build date of 1911?,"SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = ""pyramus""" What is the date where the record was 18–12?,"SELECT date FROM table_27700530_10 WHERE record = ""18–12""" What is the country with the most number of TV Channels and how many does it have?,"SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;" "Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?",SELECT SUM(points_2) FROM table_name_64 WHERE goal_average_1 > 1.17 AND goals_against > 48 AND position > 6 What was the venue of the game on 27 April 1964?,"SELECT venue FROM table_name_33 WHERE date = ""27 april 1964""" "What is the value of D 45 O, when the value of D 41 √ is r 41 √?","SELECT d_45_o FROM table_name_60 WHERE d_41_√ = ""r 41 √""" What country won in 2004?,"SELECT country FROM table_name_74 WHERE year_s__won = ""2004""" "When assists is more than 32 and total blocks is more than 88, what is the total of block assists?",SELECT SUM(Block) AS assists FROM table_name_12 WHERE assists > 32 AND total_blocks > 88 What is the prevalence rate of the patients' diseases started on 9th May 2014?,"SELECT T2.""PREVALENCE RATE"" FROM conditions AS T1 INNER JOIN all_prevalences AS T2 ON lower(T1.DESCRIPTION) = lower(T2.ITEM) WHERE T1.START = '2014-05-09'" Which product has been ordered most number of times?,SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1 "Among the lists created by user 4208563, which one has the highest number of followers? Indicate how many followers it has and whether the user was a subscriber or not when he created the list.","SELECT T1.list_followers, T2.user_subscriber = 1 FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id AND T2.list_id = T2.list_id WHERE T2.user_id = 4208563 ORDER BY T1.list_followers DESC LIMIT 1" What is the status of the city that has hosted the most competitions?,SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 Who were the scorers in the game against neuchâtel xamax played on 10 December 1985?,"SELECT scorers FROM table_name_64 WHERE opponent = ""neuchâtel xamax"" AND date = ""10 december 1985""" What league does the team with the nickname Cavaliers belong to,"SELECT league FROM table_15475116_1 WHERE nickname = ""Cavaliers""" How many breweries are located in North America?,SELECT COUNT(BrandID) FROM rootbeerbrand WHERE Country = 'United States' Name Tonnage on 27 september 1941 and a Ship of hmsspringbank?,"SELECT tonnage FROM table_name_81 WHERE date = ""27 september 1941"" AND ship = ""hmsspringbank""" what's the points with tries for being 64,"SELECT points FROM table_13758945_3 WHERE tries_for = ""64""" "What is the average, highest and lowest annual payments collected between 1/1/2003 to 12/31/2005?","SELECT CAST(SUM(T1.amount) AS REAL) / 3, MAX(T1.amount) , MIN(T1.amount) FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.paymentDate BETWEEN '2003-01-01' AND '2005-12-31'" What was the Score in Final of the Eckerd Open Tournament?,"SELECT score_in_final FROM table_name_21 WHERE tournament_name = ""eckerd open""" What is the average age of all the students?,SELECT avg ( Age ) FROM STUDENT What college/junior/club team played right wing position with NHL team Chicago Black Hawks?,"SELECT college_junior_club_team FROM table_2850912_5 WHERE position = ""Right Wing"" AND nhl_team = ""Chicago Black Hawks""" "When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?","SELECT no_5 FROM table_name_76 WHERE no_8 = ""chloe"" AND no_2 = ""olivia"" AND no_1 = ""emma"" AND no_4 = ""ava""" What are the full names of all the people with unknown genders?,"SELECT guest_first_name, guest_last_name FROM Guests where gender_code = ""Unknown""" What are the average scores of contestants whose home state is Pennsylvania?,"SELECT average FROM table_16390001_2 WHERE country = ""Pennsylvania""" "Who was the visiting team on October 15, 2006?","SELECT visiting_team FROM table_name_59 WHERE date = ""october 15, 2006""" What is the district address associated with the case JB107731?,SELECT T1.address FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T2.case_number = 'JB107731' Who are the congress representatives of the postal points in Garfield?,"SELECT T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.city = 'Garfield'" How many customers are active?,SELECT COUNT(customer_id) FROM customer WHERE active = 1 show the total no. of ID,SELECT count ( ID ) FROM instructor Name the total number of seans team being 7x04,"SELECT COUNT(seans_team) FROM table_23292220_7 WHERE episode = ""7x04""" HOW MANY ROUNDS HAD A PICK OF 7?,"SELECT COUNT(round) FROM table_name_11 WHERE pick = ""7""" Find the name of scientists who are not assigned to any project.,SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) What kind of Prohibition ticket that has a Office of lieutenant governor?,"SELECT prohibition_ticket FROM table_name_91 WHERE office = ""lieutenant governor""" Who was the team 2 in the game with a team 1 of Liege Basket?,"SELECT team__number2 FROM table_name_88 WHERE team__number1 = ""liege basket""" What's the average hours per week all students played Lacrosse?,select avg ( HoursPerWeek ) from SportsInfo where SportName = 'Lacrosse' What is the average of points for 8th place with draw more than 8?,"SELECT AVG(points) FROM table_name_55 WHERE place = ""8th"" AND draw > 8" Show the ids of all employees who have destroyed a document.,SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed What is the money rank of the tallest poker player?,SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 Which country has the highest population in largest city for 19 consecutive years starting from 1960? Indicate the region to which the country is located.,"SELECT T2.CountryCode, T2.Region FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Population in largest city' AND T1.Year >= 1960 AND T1.Year < 1980 ORDER BY T2.Region DESC LIMIT 1" Find the names of the candidates whose support percentage is lower than their oppose rate.,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate What was the name listed for the royal house of jiang and a title of duke?,"SELECT name FROM table_name_96 WHERE title = ""duke"" AND royal_house = ""jiang""" What was the date of the match against western province?,"SELECT date FROM table_name_52 WHERE opposing_team = ""western province""" "From 1961 to 1980, what was the highest percentage of land used for agriculture in the Republic of Benin?",SELECT MAX(T1.Value) FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Year >= 1961 AND T1.Year < 1981 AND T1.IndicatorName LIKE 'Agricultural land (% of land area)' AND T2.LongName = 'Republic of Benin' List all books authored by Tom Clancy.,SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Tom Clancy' List all the runners-up on 16 October 2012?,"SELECT runners_up FROM table_28962227_1 WHERE finale = ""16 October 2012""" How many years was he car number 92?,SELECT COUNT(speed_rank) FROM table_181892_4 WHERE car_number = 92 List first name and last name of customers that have more than 2 payments.,"SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2" What country parred E and scored 71-73-70-74=288?,"SELECT country FROM table_name_19 WHERE to_par = ""e"" AND score = 71 - 73 - 70 - 74 = 288" what is the color description of it?,"SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" How many route names in this table?,SELECT count ( route_name ) FROM Delivery_Routes Which award is for the category Best New Artist?,"SELECT award FROM table_name_55 WHERE category = ""best new artist""" Provide the name of the contact person who made the orders that shipped to Switzerland.,SELECT T1.ContactName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.ShipCountry = 'Switzerland' GROUP BY T1.ContactName Name the publisher of the oldest book.,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id ORDER BY T1.publication_date ASC LIMIT 1 Name the top five titles that sold more than average and list them in descending order of the number of sales in California stores?,SELECT T1.title FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id INNER JOIN publishers AS T3 ON T1.pub_id = T3.pub_id WHERE T2.qty > ( SELECT CAST(SUM(qty) AS REAL) / COUNT(title_id) FROM sales ) AND T3.state = 'CA' ORDER BY T2.qty DESC LIMIT 5 "Among all the solution of the 'zh-cn' methods, which path is most often used?",SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'zh-cn' GROUP BY T1.Path ORDER BY COUNT(T1.Path) DESC LIMIT 1 Who had the most touchdowns with more than 0 Field goals?,SELECT MAX(touchdowns) FROM table_name_71 WHERE field_goals > 0 How many camera lenses are not used in taking any photos?,SELECT count ( * ) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos ) How many countries do not have an roller coaster longer than 3000?,SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH > 3000 ) What competition has the club villareal?,"SELECT competition FROM table_name_89 WHERE club = ""villareal""" Who was South Melbourne's away opponents?,"SELECT away_team FROM table_name_18 WHERE home_team = ""south melbourne""" What is the Date of Week 5?,SELECT date FROM table_name_3 WHERE week = 5 What is the smallest top 10 figure?,SELECT MIN(top_10) FROM table_26609690_1 What IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot?,"SELECT ihsaa_class FROM table_name_80 WHERE _number___county = ""12 clinton"" AND mascot = ""hornets""" "What is the first name, last name, and phone of the customer with card 4560596484842.","SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = ""4560596484842""" I want to know the pens with conv of 6,"SELECT pens FROM table_name_10 WHERE conv = ""6""" Name the segment c for pottery,"SELECT segment_c FROM table_15187735_3 WHERE segment_b = ""Pottery""" Name the number of vocalists for which one ~ is it?,"SELECT COUNT(vocalist) FROM table_2144389_8 WHERE japanese_translation = ""Which One ~ Is It?""" Show each gender code and the corresponding count of guests sorted by the count in descending order.,"SELECT gender_code , COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC" "What is the average rating score of the movie ""The Crowd"" and who was its director?","SELECT AVG(T2.rating_score), T1.director_name FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Crowd'" Which tier is for football at Tianhe Stadium?,"SELECT tier FROM table_name_62 WHERE sport = ""football"" AND stadium = ""tianhe stadium""" Find the number of routes that have destination John F Kennedy International Airport.,SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport' Name th country of origin for journey,"SELECT country_of_origin FROM table_name_81 WHERE artist = ""journey""" What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?,SELECT MAX(latitude) FROM table_name_4 WHERE ansi_code > 1759541 AND pop__2010_ = 72 What is the couples name where the average is 15.9?,"SELECT couple FROM table_19744915_14 WHERE average = ""15.9""" Which home team played in the matchup with an away team of Liverpool?,"SELECT home_team FROM table_name_27 WHERE away_team = ""liverpool""" "Which Date of Birth (Age) has a Club/province of blues, and Caps larger than 0, and a Player of tom james?","SELECT date_of_birth__age_ FROM table_name_47 WHERE club_province = ""blues"" AND caps > 0 AND player = ""tom james""" Which club is in the First division?,"SELECT club FROM table_name_14 WHERE league_division = ""first division""" What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?,"SELECT pressure FROM table_10602294_1 WHERE deaths = ""95km/h (60mph)""" Show different locations of railways along with the corresponding number of railways at each location.,"SELECT LOCATION, COUNT(*) FROM railway GROUP BY LOCATION" When was the latest date the items of order no.1 were shipped?,SELECT MAX(l_shipdate) FROM lineitem WHERE l_orderkey = 1 Show the draft pick numbers and draft classes of players whose positions are defenders.,"SELECT Draft_Pick_Number, Draft_Class FROM match_season WHERE POSITION = ""Defender""" How many complaints from customers with a gmail.com email were received by the company in February 2017?,SELECT COUNT(T1.email) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE (T2.`Date received` LIKE '2017-02%' OR T2.`Date received` LIKE '2017-01%') AND T1.email LIKE '%@gmail.com' What is the id and type code for the template used by the most documents?,"SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1" "What is the name of the staff that is in charge of the attraction named ""US museum""?","SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = ""US museum""" What are the salaries and manager ids for employees who have managers?,"SELECT salary , manager_id FROM employees WHERE manager_id != ""null""" What grade is Kyle in?,"SELECT grade FROM Highschooler WHERE name = ""Kyle""" "What are the ids, scores, and dates of the games which caused at most two injury accidents?","SELECT T1.id , T1.score , T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING count ( * ) < = 2" Name the avg start for avg finish of 18.3,"SELECT avg_start FROM table_2187333_1 WHERE avg_finish = ""18.3""" how many areas have townland as kilgilky north?,"SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = ""Kilgilky North""" Name the latitude for deer lake,"SELECT latitude FROM table_18600760_4 WHERE township = ""Deer Lake""" What is the score of the game with 22 points and the capitals as the opponent?,"SELECT score FROM table_name_37 WHERE points = 22 AND opponent = ""capitals""" Which sporting location is where Richmond plays?,"SELECT venue FROM table_name_69 WHERE home_team = ""richmond""" How many female representatives served in the state of California for at least 10 years?,"SELECT SUM(T3.result) FROM ( SELECT CASE WHEN SUM(CAST(strftime('%Y', T2.`end`) AS int) - CAST(strftime('%Y', T2.start) AS int)) > 10 THEN 1 ELSE 0 END AS result FROM current AS T1 INNER JOIN ""current-terms"" AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' AND T2.state = 'CA' AND T2.type = 'rep' ) AS T3" Show the name of technicians aged either 36 or 37,SELECT Name FROM technician WHERE Age = 36 OR Age = 37 Name the game site for week 6,SELECT game_site FROM table_14984103_1 WHERE week = 6 Calculate the average number of the word occurrences in which ‘system’ appeared as the first word in the pair.,SELECT AVG(T2.occurrences) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w1st = ( SELECT wid FROM words WHERE word = 'sistema' ) Describe the ingredients in the recipe with the highest vitamin that helps vision in dim light.,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id ORDER BY T3.vitamin_a DESC LIMIT 1 "Among the customers with an account balance lower than 4000, what is the percentage of the customers in the US?","SELECT CAST(SUM(IIF(T2.n_name = 'United States', 1, 0)) AS REAL) * 100 / COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal < 4000" Show me the company details,SELECT Company FROM entrepreneur who are the females in canada?,"SELECT name FROM people WHERE country = ""Canada"" AND is_male = ""F""" Which Tournament has a Partner of karel nováček?,"SELECT tournament FROM table_name_19 WHERE partner = ""karel nováček""" What was the highest pick for Penn State?,"SELECT MAX(pick__number) FROM table_name_57 WHERE college = ""penn state""" "Which city has the least number of customers whose type code is ""Good Credit Rating""?","SELECT town_city FROM customers WHERE customer_type_code = ""Good Credit Rating"" GROUP BY town_city ORDER BY COUNT(*) LIMIT 1" How many routes does American Airlines operate?,SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' State the country where the most positive sentiment tweets were posted.,"SELECT T.Country FROM ( SELECT T2.Country, SUM(T1.Sentiment) AS num FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.Sentiment > 0 GROUP BY T2.Country ) T ORDER BY T.num DESC LIMIT 1" Find the id of users who are followed by Mary or Susan.,"SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" OR T1.name = ""Susan""" Find the number of activities Mark Giuliano is involved in.,"SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" What driver had a total time of 16:58?,"SELECT driver FROM table_name_66 WHERE total_time = ""16:58""" "What is the average rating of the podcast ""Please Excuse My Dead Aunt Sally""?",SELECT AVG(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Please Excuse My Dead Aunt Sally' What are the Notes of the Country of finland?,"SELECT notes FROM table_name_16 WHERE country = ""finland""" How many patients immunized against 'monovalent rotavirus' ceased their care plan on 11/23/2013?,SELECT COUNT(DISTINCT T1.patient) FROM careplans AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'rotavirus monovalent' AND T1.STOP = '2013-11-23' Jason Romano played for what team?,"SELECT team FROM table_name_9 WHERE player = ""jason romano""" What's the name of the award given to Team number 23?,SELECT award_name FROM table_name_77 WHERE team_number = 23 "Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.","SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars" Show the headquarters that have both companies in banking industry and companies in oil and gas industry.,"SELECT Headquarters FROM company WHERE Industry = ""Banking"" INTERSECT SELECT Headquarters FROM company WHERE Industry = ""Oil and gas""" "What is the github address of the ""nofear_Mara\Mara.sln"" solution path?",SELECT Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE Path = 'nofear_MaraMara.sln' In which state is the college that Charles attends?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' What nurses are on call with block floor 1 and block code 1? Tell me their names.,SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1 Show the top 3 apartment type codes sorted by the average number of rooms in descending order.,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3 "Player of corey pavin, and a To par larger than 5 has what average total?","SELECT AVG(total) FROM table_name_41 WHERE player = ""corey pavin"" AND to_par > 5" can you show me a list of checking balance?,SELECT * FROM CHECKING Who was the away captain with a result of Eng by 1 wkt?,"SELECT away_captain FROM table_name_43 WHERE result = ""eng by 1 wkt""" What is the car specs for team Airwaves BMW's driver Rob Collard?,"SELECT car_spec FROM table_name_68 WHERE team = ""airwaves bmw"" AND drivers = ""rob collard""" What is the smallest fleet size with a type of shunter introduced in 1953?,"SELECT MIN(fleet_size) FROM table_name_87 WHERE type = ""shunter"" AND introduced = ""1953""" How many policies does Ellsworth Paucek have listed?,"SELECT count ( * ) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Ellsworth Paucek""" What was the tie number with the home team of Swindon Town?,"SELECT tie_no FROM table_name_13 WHERE home_team = ""swindon town""" When was the game played at Moorabbin Oval?,"SELECT date FROM table_name_59 WHERE venue = ""moorabbin oval""" On what date was the ship with a Pennant number of Q144 commissioned?,"SELECT commissioned FROM table_name_8 WHERE pennant_number = ""q144""" How many businesses in Tempe are rated as 'Wonderful experience?,SELECT COUNT(business_id) FROM Business WHERE city = 'Phoenix' AND stars > 3 List the names of aircrafts and the number of times it won matches.,"SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft" "Among the players from the NBL league, how many of them were born in Spencer?",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Spencer' AND T2.lgID = 'NBL' How many postal points are there under the congress representative from the House of Representatives in Mississippi?,SELECT COUNT(T2.zip_code) FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.state = 'Mississippi' What is the average Decile with a state authority and a Name of mapiu school?,"SELECT AVG(decile) FROM table_name_16 WHERE authority = ""state"" AND name = ""mapiu school""" What's the game date for week 7?,SELECT date FROM table_name_32 WHERE week = 7 Find the first names of professors who are teaching more than one class.,SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1 "What are the names of wrestlers and their teams in elimination, ordered descending by days held?","SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC" "In 2019, how many orders were shipped by the sales team with the highest number of orders in the said year? Provide the name of the sales team.","SELECT COUNT(T1.OrderNumber), T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.OrderDate LIKE '%/%/19' AND T1.ShipDate LIKE '%/%/19' GROUP BY T2.`Sales Team` ORDER BY COUNT(T1.OrderNumber) DESC LIMIT 1" What are the first and last names of people who payed more than the rooms' base prices?,"SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0" Return the different classes of races.,SELECT DISTINCT CLASS FROM race Show aircraft names and number of flights for each aircraft.,"SELECT T2.name , count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid" Provide at least 5 ward office addresses associated with the crimes that happened in the community of Montclare.,SELECT T3.ward_office_address FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Ward AS T3 ON T2.ward_no = T3.ward_no WHERE T1.community_area_name = 'Montclare' GROUP BY T3.ward_office_address LIMIT 5 What was the attendance at the game that had a score of 16–7?,"SELECT attendance FROM table_name_8 WHERE score = ""16–7""" How many papers does Mathias Blume have authorship of?,"SELECT COUNT ( t1.authID ) FROM authorship as t1 join authors as t2 on t1.authID = t2.authID where t2.fname = ""Matthias"" AND t2.lname = ""Blume""" What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?,"SELECT content FROM table_name_13 WHERE package_option = ""qualsiasi"" AND television_service = ""sky primafila 14""" Who had the high point total on october 20?,"SELECT high_points FROM table_27700530_5 WHERE date = ""October 20""" Which host team won on a final scoreline of 13-10?,"SELECT host_team FROM table_name_55 WHERE final_score = ""13-10""" How many female actors acted in the movies of year 4?,SELECT COUNT(T2.actorid) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid WHERE T3.a_gender = 'F' AND T1.year = 4 List album titles for albums containing Reggae genre tracks. | Did you mean both contain 'Reggae' and 'Rock' genre tracks? | yes,SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock' Show names for all employees who do not have certificate of Boeing 737-800.,"SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800""" "In year 1999, list the titles and conference's short name of paper authored by someone named ""Philip"".","SELECT T1.Title, T3.ShortName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T1.Year = 1999 AND T2.Name LIKE 'Philip%'" When was the game with a result of w 27-24 (ot)?,"SELECT date FROM table_name_26 WHERE result = ""w 27-24 (ot)""" What are the the file size and fomats of songs grouped and ordered by country for each file?,"SELECT file_size,formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.country ORDER BY T2.country" "What is the average Rebounds, when Minutes Played is ""113"", and when Games Played is greater than ""18""?",SELECT AVG(rebounds) FROM table_name_4 WHERE minutes_played = 113 AND games_played > 18 Can you list their names?,SELECT dorm_name FROM dorm What is the diameter in km of t'ien hu colles?,"SELECT diameter__km_ FROM table_name_62 WHERE name = ""t'ien hu colles""" What time was the game during week 5?,SELECT time___et__ FROM table_name_14 WHERE week = 5 Which chapter has the most paragraphs? Give the description of the chapter.,SELECT T1.Description FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id ORDER BY T2.ParagraphNum DESC LIMIT 1 What is the name of each course and the corresponding number of student enrollment?,"SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name" When was pedro rodríguez the winning driver?,"SELECT date FROM table_name_77 WHERE winning_driver = ""pedro rodríguez""" which Province has a ICAO of vmmc?,"SELECT province FROM table_name_56 WHERE icao = ""vmmc""" Identify all installed and activated apps by their id.,SELECT app_id FROM app_events WHERE is_active = 1 AND is_installed = 1 List all schools and their nicknames in the order of founded year.,"SELECT school , nickname FROM university ORDER BY founded" "Which Venue has Attendances of 11,045?","SELECT venue FROM table_name_97 WHERE attendance = ""11,045""" "Who order from the west region on August 12, 2013, and received a discount of 0.2?",SELECT DISTINCT T2.`Customer Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Order Date` = '2013-08-12' AND T1.Discount = 0.2 AND T1.Region = 'West' "Show id, first name and last name for all customers and the number of accounts.","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name , count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" What is the name and city of the airport from most of the routes start?,"SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1" Who is the player who's number is 3?,"SELECT player FROM table_11734041_11 WHERE no_s_ = ""3""" "What is the sum of all attendance on November 17, 1961?","SELECT SUM(attendance) FROM table_name_40 WHERE date = ""november 17, 1961""" "What position is played by farmar, jordan jordan farmar?","SELECT position FROM table_name_29 WHERE player = ""farmar, jordan jordan farmar""" Find the players' first name and last name who won award both in 1960 and in 1961.,"SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961" What is activity name of activity id 770?,SELECT activity_name FROM Activity WHERE actid = 770 Who is the June playmate with the November playmate Lorraine Olivia?,"SELECT june FROM table_name_3 WHERE november = ""lorraine olivia""" What were the scores for matches with irving wright hazel hotchkiss wightman?,"SELECT score FROM table_2127933_3 WHERE opponents = ""Irving Wright Hazel Hotchkiss Wightman""" "What name has an overall less than 268, and 1 as the round?",SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1 who directed s01e13,"SELECT directed_by FROM table_20360535_2 WHERE television_order = ""S01E13""" What is their name?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' What rank did actor Aaron Pedersen's character have?,"SELECT rank FROM table_name_44 WHERE actor_actress = ""aaron pedersen""" What is the name of the organization that published the greatest number of papers?,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count ( * ) DESC LIMIT 1 Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.,"SELECT T1.company_id , T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING count(*) >= 2 UNION SELECT T3.company_id , T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*) >= 2" What is the least total that had more Bronzes than 1 and more silvers than 2?,SELECT MIN(total) FROM table_name_82 WHERE bronze > 1 AND silver > 2 "What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land?",SELECT SUM(pop__2010_) FROM table_name_64 WHERE latitude > 47.710905 AND longitude = -101.79876 AND land___sqmi__ < 35.695 What is the first and last name of all students who are younger than average?,"SELECT fname , lname FROM student WHERE age < (SELECT avg(age) FROM student)" What is the name of the ship with 3146 tonnage ?,"SELECT name FROM ship WHERE tonnage = ""3146""" What position did he finish in the year his average start was 16.8?,"SELECT position FROM table_2169966_2 WHERE avg_start = ""16.8""" Who was the home team for the match against Arsenal?,"SELECT home_team FROM table_name_2 WHERE away_team = ""arsenal""" "What are the Facebook, Twitter and YouTube usernames of Adam Kinzinger?",SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Adam Kinzinger' What is the lowest salary of the instructors in the statistics department?,SELECT min ( salary ) FROM instructor WHERE dept_name = 'Statistics' What's Lynn N Tsoflias's job title?,SELECT T2.JobTitle FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Lynn' AND T1.MiddleName = 'N' AND T1.LastName = 'Tsoflias' How many official languages are spoken in Afghanistan?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Afghanistan"" AND IsOfficial = ""T""" Can you please tell me who the friends of Alice's friends are?,SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name ! = 'Alice' What are the cyrillic and other names of the settlement whose population is 6591?,SELECT cyrillic_name_other_names FROM table_2562572_26 WHERE population__2011_ = 6591 "Among all the tweets with a positive sentiment, how many of them were posted by male users in Australia?",SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T3.UserID = T1.UserID WHERE T2.Country = 'Australia' AND T3.Gender = 'Male' AND T1.Sentiment > 0 WHICH PUBLISHER HAS PUBLISHED MORE CATALOGS,"select catalog_publisher,count ( * ) from Catalogs group by catalog_publisher order by count ( * ) desc" "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?","SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count(*) > 2" Which city does the address 1623 Kingstown Drive belong to?,SELECT T1.city FROM city AS T1 INNER JOIN address AS T2 ON T2.city_id = T1.city_id WHERE T2.address = '1623 Kingstown Drive' Tell the resultant wind speed of station no.9 on 2014/1/15.,SELECT resultspeed FROM weather WHERE `date` = '2014-01-15' AND station_nbr = 9 "Which Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59?",SELECT AVG(played) FROM table_name_70 WHERE drawn = 4 AND position = 9 AND goals_against > 59 "List the names of countries whose language is not ""German"".","SELECT Name FROM country WHERE Languages != ""German""" How many acres is the townland of Maddenstown Middle?,"SELECT s_acre FROM table_28802165_1 WHERE townland = ""Maddenstown Middle""" "What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?","SELECT april_14 FROM table_name_78 WHERE mar_3 = ""nr"" AND april_21 = ""13""" What's the departed date that the HMS Leith of the Royal Navy?,"SELECT date_departed FROM table_name_51 WHERE navy = ""royal navy"" AND name = ""hms leith""" list out the airport names,SELECT name FROM airport What are the names and budgets of departments with budgets greater than the average?,"SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)" "Which league did not qualify for the Playoffs, and had a Year larger than 2008?","SELECT league FROM table_name_59 WHERE playoffs = ""did not qualify"" AND the_year > 2008" Who is the original artist with a theme of N/A?,"SELECT original_artist FROM table_21501565_1 WHERE theme = ""N/A""" Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.,"SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = ""Astrid"" AND LastName = ""Gruber""" When +20.3 is the ± yes side 2008 (%) what is the for percentage?,"SELECT for___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = ""+20.3""" what was the overall pick number for rich dobbert?,"SELECT AVG(overall) FROM table_name_36 WHERE name = ""rich dobbert""" Calculate the average score of university ID 79 between year 2013 to 2015.,SELECT AVG(score) FROM university_ranking_year WHERE year BETWEEN 2013 AND 2015 AND university_id = 79 Which Branding has a frequency of 1080khz?,"SELECT branding FROM table_name_27 WHERE frequency = ""1080khz""" "Find the state, account type, and credit score of the customer whose number of loan is 0.","SELECT state , acc_type , credit_score FROM customer WHERE no_of_loans = 0" What year did the player with a t3 finish win?,"SELECT year_s__won FROM table_name_84 WHERE finish = ""t3""" How many transactions do we have?,SELECT count(*) FROM Financial_transactions "For the repository which got '189' Stars, how many solutions which needs to be compiled does it contain?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 189 AND T2.WasCompiled = 0 What is the event where there are 10 score points?,"SELECT event FROM table_name_10 WHERE score_points = ""10""" Write down the website address which stores the episode image of episode 5.,SELECT episode_image FROM Episode WHERE episode = 5; Which products were purchased in the largest amount? | 4 is the id of product that was purchased in the largest amount. | What about top 3 largest?,SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3 WHo is Player that has a Place of t9 in united states?,"SELECT player FROM table_name_74 WHERE place = ""t9"" AND country = ""united states""" What are the emails of the customers who filed a complaint of this product?,SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id WHERE T2.product_id = 117 Return the names of entrepreneurs.,SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID Show different parties of people along with the number of people in each party.,"SELECT Party , COUNT(*) FROM people GROUP BY Party" Could you only show the counties that have at least two delegates?,SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT ( * ) > = 2 Which virtue is Invidia(Latin)?,SELECT virtue FROM table_name_20 WHERE (latin) = invidia What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?,"SELECT nationalist FROM table_name_8 WHERE undecided__no_answer = ""29.2%""" "What is the Season when league shows bundesliga, and a European competition of played korac cup?","SELECT season FROM table_name_25 WHERE league = ""bundesliga"" AND european_competitions = ""played korac cup""" "Can you tell me the lowest Played that has the Position larger than 2, and the Draws smaller than 2, and the Goals against smaller than 18?",SELECT MIN(played) FROM table_name_90 WHERE position > 2 AND draws < 2 AND goals_against < 18 Which entrant had a chassis of March CG891?,"SELECT entrant FROM table_name_20 WHERE chassis = ""march cg891""" Show the names of all technicians and the machines they are assigned to.,"SELECT T3.Name, t1.machine_id FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID" how many games with high rebounds where in february 26,"SELECT COUNT(high_rebounds) FROM table_19169116_6 WHERE date = ""February 26""" "Tell the genre of the game ""Resident Evil: Revelations"".",SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Resident Evil: Revelations' What are the different positions for match season?,SELECT DISTINCT POSITION FROM match_season "What are the total goals against the winner with less than 5 wins, and less than 5 plays?",SELECT COUNT(goals_against) FROM table_name_89 WHERE wins < 5 AND played < 5 How many couples have an average of 25.3?,"SELECT COUNT(couple) FROM table_20424140_3 WHERE average = ""25.3""" Hello there! Can you provide me with a list of all customer names and addresses?,"select customer_name,customer_address from Customers" What kind of Week 2 that has a Week 1 of mandy ashford?,"SELECT week_2 FROM table_name_91 WHERE week_1 = ""mandy ashford""" How many Product events in this table?,SELECT count ( * ) FROM Products_in_Events Who is the runner-up for the season 2008-09?,"SELECT runner_up FROM table_2429942_2 WHERE season = ""2008-09""" What is the id of the semester that had both Masters and Bachelors students enrolled?,SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor' Which opponent led to a record of 10-6?,"SELECT opponent FROM table_name_94 WHERE record = ""10-6""" What are the names of the ingredients that need to be cook in beef broth?,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T2.preparation = 'cooked in beef broth' "Which Rank has a Name of john curry, and Points larger than 338.43?","SELECT MAX(rank) FROM table_name_8 WHERE name = ""john curry"" AND points > 338.43" What is the height of the player that weighs 240?,SELECT height FROM table_name_56 WHERE weight = 240 "On the day with the hottest temperature ever in 2014, how many bike trips started from the station 2nd at Folsom?",SELECT COUNT(T1.start_station_name) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2014%' AND T2.zip_code = 94107 AND T1.start_station_name = '2nd at Folsom' ORDER BY T2.max_temperature_f DESC LIMIT 1 List the store ID of the films starred by Reese West with a duration of 100 minutes and below?,SELECT T4.store_id FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id WHERE T3.length < 100 AND T1.first_name = 'Reese' AND T1.last_name = 'West' "Show the average share count of transactions made by each investor, ordered by average share count.","SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)" What is the count of states with college students playing in the mid position but not as goalies?,SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') What is the player from England's To Par?,"SELECT to_par FROM table_name_68 WHERE country = ""england""" Which race is located in kyalami?,"SELECT race FROM table_1140073_2 WHERE location = ""Kyalami""" What is the lowest time for Paulo Villar in lane 9?,"SELECT MIN(time) FROM table_name_85 WHERE athlete = ""paulo villar"" AND lane < 9" Name the least points for daniël willemsen / kenny van gaalen,"SELECT MIN(points) FROM table_16729457_17 WHERE driver___passenger = ""Daniël Willemsen / Kenny van Gaalen""" How many power stations are connected to grid at Heysham 2,"SELECT COUNT(connected_to_grid) FROM table_143352_1 WHERE agr_power_station = ""Heysham 2""" show the party names and the number of events for party id 2,"SELECT T2.party_name , count ( * ) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id where T1.party_id = 2 GROUP BY T1.party_id" Who is the winning driver that has a construction of brm?,"SELECT winning_driver FROM table_name_27 WHERE constructor = ""brm""" "What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?",SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3 Which rank is the most common among captains?,SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1 Which volumes have more than 2 weeks on top?,SELECT * FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 What is the date in location to date?,"SELECT T2.Date_in_Locaton_To from all_documents as T1 join Document_Locations as T2 on T1.document_id = T2.document_id where T1.document_name = ""Robin CV""" Name the position for judy-ann ramirez,"SELECT position FROM table_15463188_1 WHERE name = ""judy-ann ramirez""" Name the party for jack thomas brinkley,"SELECT party FROM table_1341604_11 WHERE incumbent = ""Jack Thomas Brinkley""" "What was the free agent class, with a pick less than 38?",SELECT free_agent_class FROM table_name_22 WHERE pick < 38 What is the program id and the summary of the degree that has the most students enrolled?,"SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1" Which employee has been in the Engineering Department the longest? Please give his or her firstname and lastname.,"SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T3.Name = 'Engineering' ORDER BY T2.EndDate - T2.StartDate DESC LIMIT 1" Can you tell me the artist ID number of the Aaron Copland & London Symphony Orchestra.,SELECT T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT ( * ) ASC LIMIT 1 What is the party that has the largest number of representatives?,"SELECT Party, COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1" What is the most populated city of the 12th highest density country?,"SELECT T2.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT Name FROM country ORDER BY CAST(Population AS REAL) / Area LIMIT 11, 1 ) ORDER BY T2.Population DESC LIMIT 1" What is the average capability of students with less than a 2.5 GPA?,SELECT CAST(SUM(T1.capability) AS REAL) / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.gpa < 2.5 How many different industries are the companies in?,SELECT COUNT(DISTINCT Industry) FROM Companies "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.","SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;" What are the games that were released in 2006?,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2006 show me a list of check in?,SELECT CheckIn FROM Reservations How many adventure movies are there that were released in 2000?,"SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Adventure' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2000" Find the total saving balance for each account name.,"SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name" what is the maximum number in the season wher the us viewers is 2.59?,"SELECT MAX(no_in_season) FROM table_20726262_4 WHERE usviewers__million_ = ""2.59""" What is the average population for all cities location at Baltic Sea?,SELECT AVG(T1.Population) FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN sea AS T3 ON T3.Name = T2.Sea WHERE T3.Name = 'Baltic Sea' "For each payment method, return how many customers use it.","SELECT payment_method_code , count(*) FROM customers GROUP BY payment_method_code" "Who is the oldest person? | What attributes do you want for this person, name or something else? | name",SELECT Name FROM Person ORDER BY AGE DESC LIMIT 1 What are their preferred genres?,"SELECT T1.preferred_genre FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""bangla"" GROUP BY T2.artist_name ORDER BY count ( * ) DESC LIMIT 3" What is the average price of the products that Roussanne is in?,SELECT avg ( price ) FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG ( Price ) DESC LIMIT 1 Please list the teams that have played in 1922's Stanley Cup finals.,SELECT T2.name FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = '1922' "What is Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?","SELECT home_captain FROM table_name_48 WHERE date = ""23,24,26,27,28,29 feb, 1 mar 1912""" What is the average age of the people who participated in the winter season?,SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Winter' What is Reuben Foster's college?,"SELECT college FROM table_name_59 WHERE player = ""reuben foster""" On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?,"SELECT date FROM table_name_54 WHERE week > 4 AND opponent = ""new york giants""" Name the stops for stations 36,SELECT stops FROM table_2385460_1 WHERE stations = 36 What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?,"SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = ""4.5%""" How many labels belong to the game-card category?,SELECT COUNT(label_id) FROM label_categories WHERE category = 'game-card' "What is the release price for the GPU frequency of standard power, embedded?","SELECT release_price___usd__ FROM table_name_96 WHERE gpu_frequency = ""standard power, embedded""" What year did the oldest movie come out?,SELECT year FROM Movie order by year limit 1 Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described,SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research' How many positions are associated with the St. Louis Blues?,"SELECT COUNT(position) FROM table_2850912_4 WHERE nhl_team = ""St. Louis Blues""" What type of restaurant is most common in Monterey county?,SELECT T2.food_type FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.county = 'Monterey' GROUP BY T2.food_type ORDER BY COUNT(T2.food_type) DESC LIMIT 1 "how many notes were read by reader varma, idria indira varma?","SELECT COUNT(notes) FROM table_20174050_23 WHERE reader = ""Varma, Idria Indira Varma""" "What is Primary Language(s), when Director is ""Ilgar Safat Category:Articles With hCards""?","SELECT primary_language_s_ FROM table_name_59 WHERE director = ""ilgar safat category:articles with hcards""" What shows for the Longitude when there is a Diameter (km) of 31km?,"SELECT longitude FROM table_name_54 WHERE diameter__km_ = ""31km""" Find the name of account that has the lowest total checking and saving balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1 "What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is ""Benzodiazepines""?","SELECT COUNT(pleasure) FROM table_name_69 WHERE psychological_dependence > 1.9 AND drug = ""benzodiazepines""" which postseason are highest wins | Would you like all information for the entry in postseason with the highest value for wins? | exactly,SELECT * FROM postseason ORDER BY wins DESC LIMIT 1 How many total transactions does that account have?,"SELECT count ( * ) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = ""337""" "Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?","SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = ""17"" AND nation = ""china""" COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?,SELECT COUNT(ebit__us_) AS $m_ FROM table_name_35 WHERE revenue__us_$million_ > 434.8 AND net_profit__us_$m_ > 96.4 How many department stores does the store chain South have?,"SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""South""" What party was first elected in 1974?,SELECT party FROM table_1341453_7 WHERE first_elected = 1974 Name the rank on channel mooning and crooning,"SELECT rank_on_channel FROM table_24222929_4 WHERE title = ""Mooning and Crooning""" How many Extra Points were scored by the Player who had 5 Points and less than 1 Touchdowns?,SELECT MIN(extra_points) FROM table_name_6 WHERE points = 5 AND touchdowns < 1 List the position of players with average number of points scored by players of that position bigger than 20.,SELECT POSITION FROM player GROUP BY name HAVING avg(Points) >= 20 Hello there! Can you tell me what is the sum total of the populations of the three districts with the largest area?,SELECT sum ( city_population ) FROM district ORDER BY city_area DESC LIMIT 3 Now show me the movie id and rating dates of the movie with 2 stars?,"SELECT mID , ratingDate FROM Rating where stars = 2" How many teachers are faculty employees?,SELECT COUNT(*) FROM person WHERE hasPosition = 'Faculty_eme' Find the name of amenities of the dorm where the student with last name Smith is living in.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith' Please list the texts of all the tweets posted by male users from Buenos Aires.,SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T2 ON T2.UserID = T1.UserID INNER JOIN user AS T3 ON T1.UserID = T3.UserID WHERE T2.City = 'Buenos Aires' AND T3.Gender = 'Male' What are the IDs and resolutions of all the songs with resolutions higher than or equal to 1080?,"SELECT f_id,resolution FROM song WHERE resolution > = 1080" "Show the faculty id of each faculty member, along with the number of students he or she advises.","SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID" Who was the opponent at the game with a score of 6–5 (10)?,"SELECT opponent FROM table_name_47 WHERE score = ""6–5 (10)""" "Which Week has Attendance of 71,740?","SELECT SUM(week) FROM table_name_97 WHERE attendance = ""71,740""" In which city was the 1992 Summer Olympic Games held?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '1992 Summer' What is the sum of silver medals for teams with more than 14 total medals and more than 16 golds?,SELECT SUM(silver) FROM table_name_14 WHERE total > 14 AND gold > 16 Find the total savings balance of all accounts except the account with name ‘Brown’.,SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != 'Brown' What is the men's nickname at the school that has the lady wildcats women's nickname?,"SELECT men’s_nickname FROM table_10577579_3 WHERE women’s_nickname = ""Lady Wildcats""" Who were the candidates for election that had a result of a retired jacksonian gain?,"SELECT candidates FROM table_2668264_8 WHERE result = ""Retired Jacksonian gain""" Show theme and year for all exhibitions in an descending order of ticket price.,"SELECT theme , YEAR FROM exhibition ORDER BY ticket_price DESC" How many hotels have a price of over 10000?,select count ( * ) from hotels WHERE price_range > 10000 Show the total number of employee ids for each department id,"select T1.DEPARTMENT_ID, count ( * ) from departments AS T1 JOIN employees AS T2 where T1.DEPARTMENT_ID = T2.DEPARTMENT_ID group by T1.DEPARTMENT_ID" Which Draws have Wins larger than 14?,SELECT SUM(draws) FROM table_name_23 WHERE wins > 14 "What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4?","SELECT COUNT(pick__number) FROM table_name_55 WHERE college = ""oklahoma"" AND round < 4" List the names of wrestlers and the teams in elimination in descending order of days held.,"SELECT T2.Name, T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC" "What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson?","SELECT years_in_orlando FROM table_name_7 WHERE nationality = ""united states"" AND school_club_team = ""clemson""" Show all distinct publishers for books.,SELECT DISTINCT publisher FROM book_club Find college names with students playing in the goalie position,"SELECT cName from Tryout where pPos = ""goalie""" What is the district of the incumbent Thomas Larkin Thompson?,"SELECT district FROM table_name_37 WHERE incumbent = ""thomas larkin thompson""" What is the Original Title of the movie directed by Aigars Grauba?,"SELECT original_title FROM table_name_36 WHERE director = ""aigars grauba""" Count the total venues located in Pune City.,SELECT SUM(T1.Venue_Name) FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id WHERE T2.City_Name = 'Pune' How many users manage to get uber votes for all of the review category? Find out what are the user average star.,"SELECT COUNT(T2.user_id) AS USER_IDS, T2.user_average_stars FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.review_votes_funny = 'Uber' AND T1.review_votes_useful = 'Uber' AND T1.review_votes_cool = 'Uber'" Where did Wales play?,"SELECT venue FROM table_name_39 WHERE opposing_teams = ""wales""" what are the names of the buildings with institutions founded after 2003?,SELECT T1.name from building as T1 JOIN institution as T2 on T1.building_id = T2.building_id WHERE T2.founded > 2003 What is Jeremy Duchesne's position?,"SELECT position FROM table_name_67 WHERE player = ""jeremy duchesne""" "Latest cap of september 5, 2011 had how many goals?","SELECT goals FROM table_name_39 WHERE latest_cap = ""september 5, 2011""" Calculate the average weight of male athletes from Tonga.,SELECT AVG(T3.weight) 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 = 'Tonga' AND T3.gender = 'M' Who was the 1st member that was elected in 1541/42?,"SELECT 1 AS st_member FROM table_name_44 WHERE elected = ""1541/42""" Provide the ranking system of the ranking criteria named Quality of Education Rank.,SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Quality of Education Rank' "What country has a total greater than 270, with sandy lyle as the player?","SELECT country FROM table_name_94 WHERE total > 270 AND player = ""sandy lyle""" What nationality is Erin Donohue?,"SELECT nationality FROM table_name_12 WHERE name = ""erin donohue""" "What is Finish, when Country is ""United States"", and when Player is ""Julius Boros""?","SELECT finish FROM table_name_37 WHERE country = ""united states"" AND player = ""julius boros""" What model year of truck delivered the ship ID 1233?,SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1233' "Which Points is the highest one that has a Position of 5, and a Played smaller than 18?",SELECT MAX(points) FROM table_name_80 WHERE position = 5 AND played < 18 "What is the Area KM 2 of the place that has a Census ranking of 1,016 of 5,008?","SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = ""1,016 of 5,008""" Tell me the chief judge which has reason for termination of retirement,"SELECT chief_judge FROM table_name_35 WHERE reason_for_termination = ""retirement""" Which episodes are nominated for an awards but not win?,SELECT T1.episode FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.result = 'Nominee' Name the name of administrative unit for 3464 people,SELECT name_of_administrative_unit FROM table_14465924_1 WHERE population__people_ = 3464 What is the location where shocker was the winner?,"SELECT location FROM table_name_14 WHERE winner = ""shocker""" What document type codes do we have?,SELECT document_type_code FROM Ref_Document_Types; How many friends does Bob have?,select count ( * ) from ( SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob' ) "While the original 1st us tour cast included nicci claspell, who was in the original tokyo/seoul tour cast?","SELECT original_tokyo___seoul_tour_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = ""Nicci Claspell""" "Return the the ""active to date"" of the latest contact channel used by the customer named ""Tillman Ernser"".","SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" And what are their number of accounts?,SELECT count ( * ) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id Which ICB Sector had a ticker symbol of pp?,"SELECT icb_sector FROM table_name_47 WHERE ticker_symbol = ""pp""" What is the total pick with Bill Duffy?,"SELECT SUM(pick) FROM table_name_12 WHERE player = ""bill duffy""" What are the losses of the playoffs season?,"SELECT losses FROM table_name_56 WHERE season = ""playoffs""" Which dogs are of the rarest breed? Show their names and treatment dates.,"SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )" Where was the game played when the record was 16–11?,"SELECT location_attendance FROM table_27723228_8 WHERE record = ""16–11""" "Which date has a Result of won, and a Score of 1-0?","SELECT date FROM table_name_23 WHERE result = ""won"" AND score = ""1-0""" Which product of Exotic Liquids company that have the highest reorder levels?,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Exotic Liquids' ORDER BY T1.ReorderLevel DESC LIMIT 1 Which of them have mortgage loans?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' What position did the celebrity finish that entered on day 1 and exited on day 15?,"SELECT finished FROM table_name_41 WHERE entered = ""day 1"" AND exited = ""day 15""" Who played against Save Of Ni Fu-Deh?,"SELECT opponent FROM table_name_4 WHERE save = ""ni fu-deh""" What are the different types of player positions?,SELECT count(DISTINCT pPos) FROM tryout Tell me the date with result of l 13–9,"SELECT date FROM table_name_94 WHERE result = ""l 13–9""" Which county and region does the street E. El Camino Real belong to?,"SELECT DISTINCT T2.county, T2.region FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_name = 'E. El Camino Real'" Which Earnings ($) is the lowest one that has a Rank smaller than 1?,SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 1 Give the full name and capability of students who failed in any courses.,"SELECT T2.f_name, T2.l_name, T1.capability FROM RA AS T1 INNER JOIN student AS T2 ON T2.student_id = T1.student_id INNER JOIN registration AS T3 ON T2.student_id = T3.student_id WHERE T3.grade IS NULL OR T3.grade = ''" How many of the patients who have stopped taking medication for 'coronary heart disease' are still alive?,SELECT COUNT(DISTINCT T2.patient) FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.REASONDESCRIPTION = 'Coronary Heart Disease' AND T1.STOP IS NOT NULL AND T2.deathdate IS NULL What is the production code for the number 5 series ? ,SELECT production_code FROM table_26801821_1 WHERE no_in_series = 5 "what's the bleeding time with condition being liver failure, end-stage","SELECT bleeding_time FROM table_14006_1 WHERE condition = ""Liver failure, end-stage""" What is the name of the nurse has the most appointments?,SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1 What player had a To par smaller than 9 and won in 1985?,"SELECT player FROM table_name_9 WHERE to_par < 9 AND year_s__won = ""1985""" What is the average year for Maserati Straight-4 Engines?,"SELECT AVG(year) FROM table_name_86 WHERE engine = ""maserati straight-4""" What positions correspond to the name Thierry Morin?,"SELECT position FROM table_24565004_14 WHERE name = ""Thierry Morin""" When did the company hired its first Accountant?,SELECT MIN(HireDate) FROM Employee WHERE JobTitle = 'Accountant' "What is the year opened for Chicagoland Speedway with a seating smaller than 75,000?","SELECT AVG(year_opened) FROM table_name_17 WHERE track_name = ""chicagoland speedway"" AND seating < 75 OFFSET 000" How many people are there in Fareham's mother country?,SELECT T1.Population FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Fareham' What age of the competitors is the most numerous?,SELECT age FROM games_competitor GROUP BY age ORDER BY COUNT(person_id) DESC LIMIT 1 "What is the name, location and seating for the most recently opened track?","SELECT name , LOCATION , seating FROM track ORDER BY year_opened DESC LIMIT 1" "When middle prut valley is the land formation what is the highest of which currently forests, km² ?","SELECT MAX(of_which_currently_forests), _km² FROM table_19242_5 WHERE land_formation = ""Middle Prut Valley""" "What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91?",SELECT SUM(Away) AS losses FROM table_name_64 WHERE no_result > 0 AND losses > 6 AND matches > 91 Mention all the applicable team who are replaced by gianluca atzori,"SELECT team FROM table_27114708_2 WHERE replaced_by = ""Gianluca Atzori""" What are the names and cities of bank branches that offer loans for business?,"SELECT T1.bname , T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'" What is the title of episode 2?,SELECT title FROM table_2430014_8 WHERE episode_no = 2 "Among all the tweets that have a positive sentiment, how many of them are posted on Thursday?",SELECT COUNT(TweetID) AS tweet_number FROM twitter WHERE Sentiment > 0 AND Weekday = 'Thursday' What are names and savings balances of the three accounts with the highest savings balances?,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3" A list of the top 10 countries by average invoice size. List country name and average invoice size.,"SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;" What is the average price range of hotels for each each star rating code?,"SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code" What is the Location and Attendance with a Record of 21–22?,"SELECT location_attendance FROM table_name_16 WHERE record = ""21–22""" Compare the numbers of orders between the Eastern and Western stores in 2015.,"SELECT east, west FROM ( SELECT COUNT(`Order ID`) AS east , ( SELECT COUNT(`Order ID`) FROM west_superstore WHERE `Order Date` LIKE '2015%' ) AS west FROM east_superstore WHERE `Order Date` LIKE '2015%' )" Name the organizations with the most members.,SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code GROUP BY T1.Name ORDER BY COUNT(T3.Name) DESC LIMIT 1 Tell me the Draft Class for the season 1996.0 ?,SELECT Draft_Class from match_season WHERE season = 1996.0 How many acres does the area of Lissagroom with Bandon as its poor law union cover?,"SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = ""Bandon"" AND townland = ""Lissagroom""" What is the broadcast date when 8.3 million viewers watched?,"SELECT broadcast_date FROM table_1785117_1 WHERE viewers__in_millions_ = ""8.3""" Show the school name and driver name for all school buses.,"SELECT T2.school , T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id" What are the names of artist who have the letter 'a' in their names?,"SELECT Name FROM ARTIST WHERE Name LIKE ""%a%""" What is the mascot at Hamilton Community?,"SELECT mascot FROM table_name_62 WHERE school = ""hamilton community""" Can you show me the total number of problem logs?,SELECT COUNT ( * ) FROM problem_log "What is the Date of the game with a Score of 4–6, 4–6?","SELECT date FROM table_name_36 WHERE score = ""4–6, 4–6""" "For the goalkeeper that became a coach than a Hall of Famer, who played for BOS in 1972?","SELECT T2.firstName, T2.lastName , IIF(T1.tmID = 'BOS', 'YES', 'NO') FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 1972 AND T1.tmID = 'BOS' AND T2.coachID IS NOT NULL AND T2.hofID IS NULL" What date did the Bulls play the LA Lakers?,"SELECT date FROM table_11960610_7 WHERE team = ""LA Lakers""" What is the lowest enrollment at the pioneer school?,"SELECT MIN(enrollment) FROM table_name_39 WHERE school = ""pioneer""" Could you tell me the names of both advisors with the most and the least number of students?,SELECT advisor FROM Student WHERE advisor = ( SELECT advisor FROM Student GROUP BY advisor ORDER BY count ( * ) asc LIMIT 1 ) OR advisor = ( SELECT advisor FROM Student GROUP BY advisor ORDER BY count ( * ) desc LIMIT 1 ) GROUP BY advisor On which day was the order placed whose shipment tracking number is 3452?,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452 Please show the employee first names and ids of employees who serve at least 10 customers?,"SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT ( * ) > = 10" What is the average price for flights from Los Angeles to Honolulu.,"SELECT avg(price) FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" From where did the train that arrived in the Anand Vihar Terminal originate?,"SELECT origin FROM table_name_29 WHERE destination = ""anand vihar terminal""" "What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?","SELECT AVG(issue_price) FROM table_name_73 WHERE special_notes = ""from toronto maple leafs gift set"" AND mintage = ""3527""" Where did the episode rank that was written by thomas l. moran?,"SELECT rank__week_ FROM table_28026156_1 WHERE written_by = ""Thomas L. Moran""" What is the Date for Catalog of lp 5060?,"SELECT date FROM table_name_65 WHERE catalog = ""lp 5060""" What is the venue where Collingwood played as the home team?,"SELECT venue FROM table_name_60 WHERE home_team = ""collingwood""" What is the score having a runner-up of Magdalena Maleeva?,"SELECT score FROM table_name_45 WHERE runner_up = ""magdalena maleeva""" "Name the film for award of £3,386","SELECT film FROM table_name_66 WHERE award = ""£3,386""" What is the horsepower of the car with the largest accelerate?,SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1; What year was Hazel Grove the constituent for the liberal party?,"SELECT year FROM table_name_15 WHERE party = ""liberal"" AND constituency = ""hazel grove""" What is the score when the record is 5-4-1?,"SELECT score FROM table_name_52 WHERE record = ""5-4-1""" "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.","SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name" ok .Who is the number one customer? | Do you mean the customer with id 1 | yes,SELECT * from Customers Where customer_id = 1 Who had the highest assists on the l.a. lakers?,"SELECT high_assists FROM table_name_21 WHERE team = ""l.a. lakers""" What is the Set 5 if Set 2 is 25-20?,"SELECT set_5 FROM table_name_44 WHERE set_2 = ""25-20""" "What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861?","SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = ""8,861""" List the dates and vote percents of elections.,"SELECT Date, Vote_Percent FROM election" Find the first names of all the teachers that teach in classroom 110.,SELECT firstname FROM teachers WHERE classroom = 110 What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?,"SELECT volume FROM table_name_38 WHERE isbn = ""978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)""" What rank has a Time of 4:00.191?,"SELECT rank FROM table_name_94 WHERE time = ""4:00.191""" What is the number of dances for the team that averages 20.6?,"SELECT number_of_dances FROM table_25391981_3 WHERE average = ""20.6""" What was the air date of the episode with the production code of 322?,SELECT original_air_date FROM table_2818164_4 WHERE production_code = 322 Which browsers are compatible with both?,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' List the name and cost of all procedures sorted by the cost from the highest to the lowest.,"SELECT name , cost FROM procedures ORDER BY cost DESC" What was the location on October 16?,"SELECT location FROM table_name_29 WHERE date = ""october 16""" What date did the Ravens play the buffalo bills?,"SELECT date FROM table_name_97 WHERE opponent = ""buffalo bills""" On what Date is West Ham United the Home team?,"SELECT date FROM table_name_35 WHERE home_team = ""west ham united""" Whose reign began in Vietnam and ended in October 1005?,"SELECT reign_began FROM table_name_79 WHERE country = ""vietnam"" AND reign_ended = ""october 1005""" On what date does Watford have a Tie no of 2?,"SELECT date FROM table_name_45 WHERE home_team = ""watford"" AND tie_no = ""2""" Find the score of all wines that have prices higher than some wines from John Anthony winery.,"SELECT Score FROM WINE WHERE Price > ( SELECT min ( Price ) FROM wine WHERE Winery = ""John Anthony"" ) " Name the volume line for number 8,SELECT volume_line FROM table_19534677_1 WHERE _number = 8 "For all the movies that were released in 1995, how many lower than 3 ratings did the most popularity movie had?",SELECT COUNT(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score < 3 AND T2.movie_release_year = 1995 AND T2.movie_popularity = ( SELECT MAX(movie_popularity) FROM movies WHERE movie_release_year = 1995 ) List the names of pilots in ascending order of rank.,SELECT Pilot_name FROM pilot ORDER BY Rank ASC Name the score for columbus visitor,"SELECT score FROM table_name_73 WHERE visitor = ""columbus""" who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?,"SELECT pole_position FROM table_name_10 WHERE fastest_lap = ""adam christodoulou"" AND circuit = ""rockingham""" When did the earliest complaint start on 2017/3/22?,SELECT MIN(ser_time) FROM callcenterlogs WHERE `Date received` = '2017-03-22' Which player has the score 72-67-69=208?,SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208 Name the total number of total for rank of 7 and bronze less than 1,"SELECT COUNT(total) FROM table_name_68 WHERE rank = ""7"" AND bronze < 1" "what is the product id of ""cumin""?",select product_id from Products where product_name = 'cumin' When east carolina university is the school what is the highest year founded?,"SELECT MAX(founded) FROM table_2076516_1 WHERE school = ""East Carolina University""" What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls?,"SELECT kentucky FROM table_18461045_1 WHERE illinois = ""Rock Falls LL Rock Falls""" "How many phone hardware models are produced by the company named ""Nokia Corporation""?","SELECT count(*) FROM phone WHERE Company_name = ""Nokia Corporation"";" Show all information on the airport that has the largest number of international passengers.,SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 What is atacama's percentage of solar panels?,"SELECT solar_panel FROM table_25042332_26 WHERE region = ""Atacama""" What is the average duration of all songs?,SELECT avg ( duration ) FROM files Name the sum of year for connaught engineering and points less than 0,"SELECT SUM(year) FROM table_name_49 WHERE entrant = ""connaught engineering"" AND points < 0" Which 2012 has a 2007 of 1r?,"SELECT 2012 FROM table_name_51 WHERE 2007 = ""1r""" what is the type when the year(s) is 1982?,"SELECT type FROM table_name_23 WHERE year_s_ = ""1982""" "Show the names of all the employees with role ""HR"".","SELECT employee_name FROM Employees WHERE role_code = ""HR""" What is the issue price of a voyageur before 2006?,"SELECT issue_price FROM table_name_89 WHERE year < 2006 AND theme = ""voyageur""" What is Segment B for series episode 12-08?,"SELECT segment_b FROM table_15187735_12 WHERE series_ep = ""12-08""" What horse was at the Badminton Horse Trials?,"SELECT horse FROM table_name_54 WHERE competition = ""badminton horse trials""" Name the Status with an Against larger than 15?,SELECT status FROM table_name_98 WHERE against > 15 Show all distinct cities in the address record.,SELECT DISTINCT city FROM addresses "What're the names of the enzymes in the medicine ""Amisulpride""?",SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' What are the names of customers using the most popular payment method?,SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1) What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?,"SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = ""north america"" AND surfacearea > 3000" Name the further cities for slovakia and west direction,"SELECT further_cities FROM table_197286_4 WHERE country = ""Slovakia"" AND direction = ""West""" Can you also tell me the name of the tourist attraction that is at address 254 Ottilie Junction?,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""254 Ottilie Junction""" Could you please list the devices that use the Android platform?,"SELECT device FROM device where Software_Platform = ""Android""" List the locations of schools in ascending order of enrollment.,SELECT LOCATION FROM school ORDER BY Enrollment How many clubs were involved in the second round?,"SELECT clubs_involved FROM table_28039032_1 WHERE round = ""Second round""" What are the names of every person who has a friend over 40 and under 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) "What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?","SELECT engine FROM table_name_1 WHERE tyres = ""g"" AND chassis = ""d3 d4"" AND driver = ""jan lammers"" AND rounds = ""4-6""" what's the game site with result being l 24–34,"SELECT game_site FROM table_14984126_1 WHERE result = ""L 24–34""" How many images have an x-coordinate of 5 and y-coordinate of 5?,SELECT COUNT(IMG_ID) FROM IMG_OBJ WHERE X = 5 AND Y = 5 Name the least year for start of 17th,"SELECT MIN(year) FROM table_name_13 WHERE start = ""17th""" "Which Rank has a Total larger than 9, and a Gold larger than 6?",SELECT rank FROM table_name_24 WHERE total > 9 AND gold > 6 Name the least valid poll for munster,"SELECT MIN(valid_poll) FROM table_name_50 WHERE constituency = ""munster""" "Which authors belong to the institution ""Google""? Show the first names and last names?","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" What college did Calvin McCarty play at?,"SELECT college FROM table_10812403_4 WHERE player = ""Calvin McCarty""" "What is the date, average temperature and mean humidity for the days with the 3 largest maximum gust speeds?","SELECT date , mean_temperature_f , mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3" What are the names and number of works for all artists who have sung at least one song in English?,"SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" GROUP BY T2.artist_name HAVING count(*) >= 1" Show the region name with at least two storms.,SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2; Find the names of top 3 departments that provide the lowest amount of courses?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY count ( * ) LIMIT 3 How big (in km2) is the district with a code BW?,"SELECT MIN(area__km²_) FROM table_2801442_1 WHERE code = ""BW""" and the Boeing 737-800? | And what do you want to know about the Boeing 737-800? | What is the distance of the Boeing 737-800?,"SELECT distance from Aircraft where name = ""Boeing 737-800""" What is the number of losses when the ties are lesser than 0?,SELECT COUNT(losses) FROM table_name_59 WHERE ties < 0 "What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?","SELECT player, number_of_matches, SOURCE FROM injury_accident WHERE injury <> 'Knee problem'" What home team has a record of 4-3?,"SELECT home FROM table_name_7 WHERE record = ""4-3""" "What is the format of the date February 14, 2002?","SELECT format FROM table_name_53 WHERE date = ""february 14, 2002""" "Who performed the song named ""Le Pop""?","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Le Pop""" "What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.","SELECT address_content FROM addresses WHERE city = ""East Julianaside"" AND state_province_county = ""Texas"" UNION SELECT address_content FROM addresses WHERE city = ""Gleasonmouth"" AND state_province_county = ""Arizona""" Who are the different directors of films which had market estimation in 1995?,SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995 Find the name of bank branches that provided some loans.,SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id "Can you tell me what is the total number of airlines in the United States that have an active status of ""Y""?","SELECT COUNT ( * ) FROM airlines WHERE active = 'Y' AND country = ""United States""" What is the losses in the NFL in the 2011 season with less than 13 wins?,"SELECT AVG(losses) FROM table_name_81 WHERE league = ""nfl"" AND season = 2011 AND wins < 13" "Who did the Texans play when there were 70,724 people in attendance?","SELECT opponent FROM table_name_11 WHERE attendance = ""70,724""" Please list the departments the students are absent from school for 9 months are in.,SELECT T2.organ FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` = 9 "What is the Nation - athlete(s), when the Sport is luge - men's singles, and when the Record is, ""track""?","SELECT nation___athlete_s_ FROM table_name_12 WHERE sport = ""luge - men's singles"" AND record = ""track""" Show the name and the nationality of the oldest host.,"SELECT Name , Nationality FROM HOST ORDER BY Age DESC LIMIT 1" Which person whose friends have the oldest average age?,"SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1" "What is the highest week that has September 14, 2003 as the date?","SELECT MAX(week) FROM table_name_81 WHERE date = ""september 14, 2003""" What chassis doe Ross Davis use?,"SELECT chassis FROM table_name_51 WHERE drivers = ""ross davis""" Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .,"select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;" "Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher?","SELECT time FROM table_name_83 WHERE laps = 19 AND grid > 19 AND manufacturer = ""ktm"" AND rider = ""randy krummenacher""" "Among the users who use OPPO, calculate the percentage of those who are under 50 years old.","SELECT SUM(IIF(T1.age < 50, 1, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'OPPO'" HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?,"SELECT MAX(silver) FROM table_name_43 WHERE nation = ""south korea"" AND gold > 2" Which school comes from Brookville?,"SELECT school FROM table_name_57 WHERE city = ""brookville""" how many hours does each player get to be active for?,"SELECT pID,HS FROM Player" do you know how many total customers had more than 1 policy?,"SELECT count ( * ) FROM ( SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count ( * ) > 1 ) " What is the date of the poll where Murray had 11% from the Suffolk University source?,"SELECT date FROM table_name_1 WHERE source = ""suffolk university"" AND murray = ""11%""" Who was Hawthorn's away opponent?,"SELECT away_team FROM table_name_68 WHERE home_team = ""hawthorn""" What is the Index number of Chen Bangjun Andie from Singapore?,"SELECT index FROM table_name_23 WHERE country = ""singapore"" AND name = ""chen bangjun andie""" Which label is from Spain?,"SELECT label FROM table_name_31 WHERE country = ""spain""" In which day of a week the course introduction to computer science is taught?,"SELECT days from course where cname = ""INTRODUCTION TO COMPUTER SCIENCE""" What are the issue dates of volumes associated with the artist aged 24 or older?,SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age > = 24 Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity.,SELECT movie_title FROM movies WHERE movie_release_year = 1945 ORDER BY movie_popularity DESC LIMIT 1 "Which Total has a Score of 1–3, and a Set 1 of 29–31?","SELECT total FROM table_name_9 WHERE score = ""1–3"" AND set_1 = ""29–31""" "What is the name of the institution the author ""Katsuhiro Ueno"" belongs to?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Katsuhiro"" AND t1.lname = ""Ueno""" Which Bolton Wanderers career has 293 Apps?,SELECT bolton_wanderers_career FROM table_name_77 WHERE apps = 293 What was the population of сурдук in 2011?,"SELECT COUNT(population__2011_) FROM table_2562572_53 WHERE cyrillic_name = ""Сурдук""" "What is Race 1, when Race 4 is 1?","SELECT race_1 FROM table_name_85 WHERE race_4 = ""1""" What is the customer id of the customer who has the most orders?,SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 "Find the ""date became customers"" of the customers whose ID is between 10 and 20.",SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 How many races are there?,SELECT count(*) FROM race What are the consider rates of those?,SELECT Consider_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.,SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*) >= 100 "What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42?","SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = ""42""" what is the total scored for the 8th position and a score more than 6.6,"SELECT MAX(total) FROM table_name_8 WHERE position = ""8th"" AND a_score > 6.6" "Find the phone number of performer ""Ashley"".","SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = ""Ashley""" What is the shortest Time for David Neville when his React time was greater than 0.183?,"SELECT MIN(time) FROM table_name_35 WHERE react > 0.183 AND athlete = ""david neville""" Tell me the ships in classs for kuha class,"SELECT ships_in_class FROM table_name_52 WHERE class = ""kuha class""" what is the race on 23 october?,"SELECT race FROM table_name_81 WHERE date = ""23 october""" Can you show me all the course ids and enrollments?,"SELECT T1.cID, COUNT ( * ) FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID" What is the average silver medals a team ranked 12 with less than 2 bronze has?,SELECT AVG(silver) FROM table_name_28 WHERE rank = 12 AND bronze < 2 List the names of all songs that have 4 minute duration or are in English.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""4:%"" UNION SELECT song_name FROM song WHERE languages = ""english""" how many accelerators on the table,SELECT COUNT ( * ) FROM web_client_accelerator State the locations of all Pet Services business.,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Pet Services' How much was the minimum renewable electricity (GW-h) that is ranked 36?,SELECT MIN(renewable_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE rank = 36 How many songs are there?,SELECT count ( * ) FROM files What is the 2010 entry for the row that has a 2009 entry of 270?,"SELECT 2010 FROM table_name_35 WHERE 2009 = ""270""" What is the Lead for the 1999–00 season?,"SELECT lead FROM table_name_87 WHERE season = ""1999–00""" Name the lost for % won of 55.37,"SELECT lost FROM table_name_46 WHERE _percentage_won = ""55.37""" "Please list the names of the production company of the movie ""Four Rooms"".",SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T3.title = 'Four Rooms' Name the most runs scored,SELECT MAX(runs_scored) FROM table_21486890_1 In what event is the opponent Joe Nameth?,"SELECT event FROM table_name_25 WHERE opponent = ""joe nameth""" What year did the sound of music come out and who was the director? | Do you mean the year of the movie whose title is The Sound of Music came out and the director of it? | yes,"SELECT year , director FROM Movie where title = 'The Sound of Music'" What country has an ICAO of ENZV?,"SELECT country FROM table_name_85 WHERE icao = ""enzv""" How many tasks are there in total?,SELECT count(*) FROM Tasks How many community areas are there in Central Chicago?,SELECT COUNT(*) FROM Community_Area WHERE side = 'Central' What was the result of the Competition of friendly?,"SELECT result FROM table_name_61 WHERE competition = ""friendly""" What is the location of that station?,SELECT T2.Location FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count ( * ) DESC LIMIT 1 Name the Qual 2 which has the name of katherine legge,"SELECT qual_2 FROM table_name_40 WHERE name = ""katherine legge""" List the all the distinct names of the products with the characteristic name 'warm'.,"SELECT DISTINCT t1.product_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 t3.characteristic_name = ""warm""" "What is the bathroom count for ""Suite 643""?","SELECT T2.bathroom_count FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" What is the average when the highest score is 151?,"SELECT average FROM table_28846752_4 WHERE highest_score = ""151""" "If the catches is 131, what is the rank total number?",SELECT COUNT(rank) FROM table_26041144_16 WHERE catches = 131 "In the violations in 2014, how many of them have a low risk category?","SELECT COUNT(risk_category) FROM violations WHERE STRFTIME('%Y', `date`) = '2014' AND risk_category = 'Low Risk'" "What was the state (class) where the new successor was formally installed on May 11, 1966?","SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = ""May 11, 1966""" How many project members were leaders or started working before '1989-04-24 23:51:54'?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54' Which Kickoff had a Game Site of bank of america stadium?,"SELECT kickoff FROM table_name_5 WHERE game_site = ""bank of america stadium""" Which Current Club has a Rank of 4?,SELECT current_club FROM table_name_20 WHERE rank = 4 What party did the incumbent from the Illinois 1 district belong to? ,"SELECT party FROM table_1341707_15 WHERE district = ""Illinois 1""" What are the names of the events under Art Competitions?,SELECT T2.event_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Art Competitions' "What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?","SELECT COUNT(grid) FROM table_name_71 WHERE time_retired = ""+1:03.741"" AND laps > 44" Name the hull number of Commissioned– Decommissioned of 1973–1996,"SELECT hull_no FROM table_name_29 WHERE commissioned__decommissioned = ""1973–1996""" "When the runner-up is listed as Gigi Fernández Natalia Zvereva and the week is 26 June 2 weeks, who are the semi finalists?","SELECT semi_finalists FROM table_name_25 WHERE runner_up = ""gigi fernández natalia zvereva"" AND week_of = ""26 june 2 weeks""" "What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?","SELECT COUNT(year) FROM table_name_82 WHERE title = ""the queen"" AND award = ""british academy film award"" AND result = ""won""" WHAT IS THE ID OF THESE STUDENTS,"SELECT Stuid FROM enrolled_in WHERE Grade = ""A""" Which region has the lowest number of countries?,"SELECT T.r_name FROM ( SELECT T1.r_name, COUNT(T2.n_name) AS num FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey GROUP BY T1.r_name ) AS T ORDER BY T.num LIMIT 1" What are the names of wines made from red grapes and with prices above 50?,"SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" What are the names of the courses that have exactly 1 student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1 What are the code and description of the least frequent detention type ?,"SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1" "Great, can you list the names of the gymnasts in ascending order by their heights?",SELECT t2.name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height How many female users reshared their tweets?,SELECT COUNT(T1.UserID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Female' AND T1.IsReshare = 'TRUE' "What is the nhl team when the college, junior, club team is toronto marlboros (ohl) and the position is centre?","SELECT nhl_team FROM table_2679061_2 WHERE college_junior_club_team = ""Toronto Marlboros (OHL)"" AND position = ""Centre""" list all the phone numbers,select distinct phone_number from employees "Which nation, with a population ranging from 60,000,000 to 99,000,000, has the greatest gross domestic product?","SELECT T1.Name, T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Population BETWEEN 60000000 AND 90000000 ORDER BY T2.GDP DESC LIMIT 1" What is the price for the manufacturer LETech?,"SELECT price FROM table_29778616_1 WHERE manufacturer = ""LETech""" When gray wolves is the team nickname how many institutions are there?,"SELECT COUNT(institution) FROM table_28211213_2 WHERE team_nickname = ""Gray Wolves""" Which near-death incident did a policeman by the name of Ruben Fredirick look into? What is the victim in this incident's race and gender?,"SELECT T1.case_number, T3.race, T3.gender FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number INNER JOIN subjects AS T3 ON T1.case_number = T3.case_number WHERE T2.first_name = 'Fredirick' AND T2.last_name = 'Ruben'" what are all the playoffs for u.s. open cup in 1st round,"SELECT playoffs FROM table_1046170_5 WHERE us_open_cup = ""1st Round""" "What shirt No has a Birth Date of April 12, 1986 (age27)?","SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = ""april 12, 1986 (age27)""" "What is Final round, when Player is Danilo Gallinari?","SELECT final_round FROM table_name_50 WHERE player = ""danilo gallinari""" What segment A is associated with a Segment D of manual motorcycle transmissions?,"SELECT segment_a FROM table_name_76 WHERE segment_d = ""manual motorcycle transmissions""" "What is the pick number for the player playing tackle position, and a round less than 15?","SELECT SUM(pick) FROM table_name_97 WHERE position = ""tackle"" AND round < 15" Show the name of aircrafts with top three lowest distances.,SELECT name FROM Aircraft ORDER BY distance LIMIT 3 What report happened on 22 september?,"SELECT report FROM table_name_25 WHERE date = ""22 september""" "What is the description of chapter 18706 in ""All's Well That Ends Well""?",SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.id = 18706 AND T1.Title = 'All''s Well That Ends Well' How many customers did not have any event?,SELECT COUNT(*) FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_events) "In the Stanley Cup finals history, how many games did player id ""broadpu01"" play in 1922?",SELECT GP FROM ScoringSC WHERE playerID = 'broadpu01' AND YEAR = 1922 What are the different years for all competitions that are not of type equal to tournament?,"SELECT DISTINCT YEAR FROM competition WHERE Competition_type != ""Tournament""" What is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds?,SELECT CAST(SUM(CASE WHEN T2.weight < 70000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_type = 'wholesaler' What is the shipping method ordered by Nicolette Sadler at 6/29/2020 7:40:07 PM?,SELECT T3.method_name FROM cust_order AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T1.shipping_method_id WHERE T2.first_name = 'Nicolette' AND T2.last_name = 'Sadler' AND T1.order_date = '2020-06-29 19:40:07' What are airlines that have some flight departing from airport 'AHD'?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""AHD""" What is the most recent rating date?,SELECT ratingDate FROM Rating order by ratingdate desc limit 1 "Which tournament was played on September 25, 1995?","SELECT tournament FROM table_name_46 WHERE date = ""september 25, 1995""" What type of 3D game was released between 2008-2011?,"SELECT genre FROM table_name_87 WHERE type = ""3d"" AND release_date = ""2008-2011""" List the names and buildings of all departments sorted by the budget from large to small.,"SELECT dept_name, building FROM department ORDER BY budget DESC" How many directors directed episode 3 of the season?,SELECT COUNT(directed_by) FROM table_23097214_1 WHERE season__number = 3 "What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games?","SELECT MIN(lost) FROM table_name_3 WHERE points_difference = ""40 - 17"" AND games > 6" What is the cost of an Open Source that is no?,"SELECT cost___us$__ FROM table_name_66 WHERE open_source = ""no""" What was Kim Kirchen's team classification?,"SELECT team_classification FROM table_name_21 WHERE general_classification = ""kim kirchen""" "How many different roles are there in the club ""Bootup Baltimore""?","SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = ""Bootup Baltimore""" Which Game has a Score of 101-109 (ot)?,"SELECT AVG(game) FROM table_name_28 WHERE score = ""101-109 (ot)""" How many students whose are playing the role of goalie?,SELECT count(*) FROM tryout WHERE pPos = 'goalie' "Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1?",SELECT MIN(top_10) FROM table_name_95 WHERE cuts_made = 10 AND top_5 > 1 How many organizations are established in the country with the most ethnic groups?,SELECT COUNT(T2.Province) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country INNER JOIN ethnicGroup AS T3 ON T3.Country = T2.Country GROUP BY T1.Name ORDER BY COUNT(T3.Name) DESC LIMIT 1 display the emails of the employees who have no commission percentage,"SELECT email FROM employees WHERE commission_pct = ""null""" What is the Name of the Players with a Rank of 18?,SELECT name FROM table_name_67 WHERE rank = 18 Which allergy type has least number of allergies?,SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1 What is the lowest Score when the Country is canada?,"SELECT MIN(score) FROM table_name_77 WHERE country = ""canada""" What are the types and nationalities of every ship?,"SELECT TYPE , Nationality FROM ship" "What is the name, city, country, and elevation for every airport in the city of New York?","SELECT name , city , country , elevation FROM airports WHERE city = 'New York'" "Does disable students join organization. If yes, please indicate the organization joined by the students.",SELECT DISTINCT T2.organ FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.","SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1" How many points does the player with 2 steals have?,SELECT points FROM table_24912693_4 WHERE steals = 2 Which female students had never been absent?,SELECT T2.name FROM male AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name <> T2.name WHERE T2.month = 0 Did the number of cases with Vehicle as subject weapon increase or decrease from year 2007 to 2008. State the difference.,"SELECT SUM(IIF(STRFTIME('%Y', date) = '2007', 1, 0)) - SUM(IIF(STRFTIME('%Y', date) = '2008', 1, 0)) FROM incidents WHERE subject_weapon = 'Vehicle'" "when notes are prima italica:raised for aborted caucasus war, when was that founded?","SELECT date_founded__founder FROM table_242785_1 WHERE notes = ""prima Italica:raised for aborted Caucasus war""" Name the engine for years before 1990 and chassis of eurobrun er189,"SELECT engine FROM table_name_57 WHERE year < 1990 AND chassis = ""eurobrun er189""" Can you also list the tryout decision they got please?,"SELECT T1.pName,T2.decision FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.pPos = 'striker'" "Show the apartment numbers, start dates, and end dates of all the apartment bookings.","SELECT T2.apt_number , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id" What school did the 7-4 player attend?,"SELECT school_club_team_country FROM table_11734041_17 WHERE height_in_ft = ""7-4""" Which Class is Peak Sail when it has a Prom larger than 30?,"SELECT class FROM table_name_34 WHERE prom__m_ > 30 AND peak = ""sail""" "What's the highest week for the day of October 21, 1956?","SELECT MAX(week) FROM table_name_66 WHERE date = ""october 21, 1956""" What is the english title with a lp format and an Original title of то ли ещё будет?,"SELECT title_in_english FROM table_name_49 WHERE format = ""lp"" AND original_title = ""то ли ещё будет""" Calculate the total price of items for menu with ID 12882.,SELECT SUM(T2.price) FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id WHERE T1.menu_id = 12882 "What are the results for a game with an attendance of 41,429?","SELECT result FROM table_name_70 WHERE attendance = ""41,429""" Name who drected the episode written by george tibbles,"SELECT directed_by FROM table_2342078_6 WHERE written_by = ""George Tibbles""" What is the total number of players who had a money list rank of 96?,SELECT COUNT(best_finish) FROM table_20590020_2 WHERE money_list_rank = 96 "Thank you, for the journalist with the ID of 4, what is his name?",SELECT Name FROM journalist where journalist_ID = 4 What campuses opened before 1800?,SELECT campus FROM campuses WHERE YEAR < 1800 List the nations that have journalists with more than 10 years of working and journalists with less than 3 years of working.,SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3 Which member is from the state of SA and the grey electorate?,"SELECT member FROM table_name_74 WHERE state = ""sa"" AND electorate = ""grey""" What shows for Tie no when Sheffield United was the Away team?,"SELECT tie_no FROM table_name_10 WHERE away_team = ""sheffield united""" What is the email address to contact the administrator of Central Chicago?,SELECT email FROM District WHERE district_name = 'Central' Find the total and average amount paid in claim headers.,"SELECT SUM(amount_piad), AVG(amount_piad) FROM claim_headers" Who has exactly 342 spikes?,SELECT name FROM table_name_68 WHERE spike = 342 What is the lowest number of seasons that the head coach of 1982 had with larger than 9 losses?,"SELECT MIN(seasons) FROM table_name_36 WHERE years = ""1982"" AND lost > 9" "With a Mark of 46.47, What is the lowest Heat?","SELECT MIN(heat) FROM table_name_57 WHERE mark = ""46.47""" Show the employee ids and the number of documents destroyed by each employee.,"SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID" What was the altitude of the yield of 1.4 megatons?,"SELECT altitude__km_ FROM table_148578_1 WHERE yield__approximate_ = ""1.4 megatons""" How many players were in the team Boston Red Stockings in 2000?,SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000 List all the counties in Georgia.,SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Georgia' GROUP BY T2.county What is the highest pos for a driver with 1 podium?,SELECT MAX(pos) FROM table_18811741_15 WHERE podiums = 1 What was the result for the match held in Boston?,"SELECT result FROM table_name_97 WHERE location = ""boston""" How many did alco -schenectady preserve of class b-3?,"SELECT quantity_preserved FROM table_name_68 WHERE manufacturer = ""alco -schenectady"" AND class = ""b-3""" "Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?","SELECT MIN(year) FROM table_name_3 WHERE result = ""1st"" AND extra = ""4 x 400 m relay""" What company makes the Nokia 700?,"SELECT company_name FROM table_name_31 WHERE hardware_model = ""nokia 700""" "What are the issue dates of volumes associated with the artist ""Gorgoroth""?","SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = ""Gorgoroth""" Which method did pride bushido 10 have ?,"SELECT method FROM table_name_56 WHERE event = ""pride bushido 10""" "Return the minimum, average and maximum distances traveled across all aircrafts.","SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft" "What series has a season after 2008, super leg final as the format, and conference v as the conference?","SELECT series FROM table_name_39 WHERE season > 2008 AND format = ""super leg final"" AND conference = ""conference v""" How many documents can one grant have at most? List the grant id and number.,"SELECT grant_id , count(*) FROM Documents GROUP BY grant_id ORDER BY count(*) DESC LIMIT 1" What school is nicknamed the panthers?,"SELECT school FROM table_24935743_2 WHERE nickname = ""Panthers""" Return the description of the document type name 'Film'.,"SELECT document_type_description FROM Ref_document_types WHERE document_type_name = ""Film""" Which artist created coins before 2010?,SELECT artist FROM table_name_40 WHERE year < 2010 Which result has a Venue of ulsan?,"SELECT result FROM table_name_27 WHERE venue = ""ulsan""" What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?,"SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = ""andy kindler"" AND ties < 0" What were the January (°F) temperatures in the Corner Brook location?,"SELECT january__°f_ FROM table_21980_1 WHERE location = ""Corner Brook""" "When was there a crowd larger than 23,000?",SELECT date FROM table_name_63 WHERE crowd > 23 OFFSET 000 Name the country in which the topic is about Poverty: Shared Prosperity. Indicate the long name of the country.,SELECT DISTINCT T1.LongName FROM Country AS T1 INNER JOIN footnotes AS T2 ON T1.CountryCode = T2.Countrycode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T3.Topic = 'Poverty: Shared prosperity' Show ids for all documents in type CV without expense budgets.,"SELECT document_id FROM Documents WHERE document_type_code = ""CV"" EXCEPT SELECT document_id FROM Documents_with_expenses" What is the western title of the pinyin new chāojí mǎlìōu xiōngdì?,"SELECT western_title FROM table_name_92 WHERE pinyin = ""new chāojí mǎlìōu xiōngdì""" Show the top 3 most common colleges of players in match seasons.,SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3 "What are the template ids with template type description ""Presentation"".","SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = ""Presentation""" what is the capacity percentage of FedExField,"SELECT Capacity_Percentage FROM stadium WHERE name = ""FedExField""" how many products on the table,SELECT count ( * ) FROM products List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta',"SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'" "According to 2016's survey, what is the number of users with a mental health disorder in the past?",SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Have you had a mental health disorder in the past?' AND T2.AnswerText = 'Yes' Which Ratio has a Similar ISO A size of a3?,"SELECT AVG(ratio) FROM table_name_76 WHERE similar_iso_a_size = ""a3""" What is the 2000 value if the 1998 value is 1.5?,"SELECT 2000 FROM table_name_67 WHERE 1998 = ""1.5""" How many professors teaches no more than two high-level or harder undergraduate courses?,SELECT COUNT(*) FROM ( SELECT COUNT(T2.p_id) FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_400' GROUP BY T2.p_id HAVING COUNT(DISTINCT T1.course_id) <= 2 ) What are full names and salaries of employees working in the city of London?,"SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'" Who was the driver when there were 35 laps?,"SELECT driver FROM table_name_10 WHERE laps = ""35""" What were the points against in a game that was played correct as of 2009-05-16?,"SELECT points_against FROM table_name_99 WHERE played = ""correct as of 2009-05-16""" What are the names of the mills which are not located in 'Donceel'?,SELECT name FROM mill WHERE LOCATION <> 'Donceel' Which season has Losses of 30?,"SELECT season FROM table_name_65 WHERE losses = ""30""" What is the location of the Conquista Fight 1?,"SELECT location FROM table_name_11 WHERE event = ""conquista fight 1""" "What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?","SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009" List all the name of products with the ID of 30 to 40.,SELECT T FROM ( SELECT CASE WHEN ProductID BETWEEN 30 AND 40 THEN `Product Name` ELSE NULL END AS T FROM Products ) WHERE T IS NOT NULL "From all the movies that got more than 13000 popularity number, which one had the least ratings.",SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_popularity > 13000 ORDER BY T1.rating_score LIMIT 1 What player had a total less than 277?,SELECT player FROM table_name_34 WHERE total < 277 When did the w 20-19 happen?,"SELECT date FROM table_name_72 WHERE result = ""w 20-19""" What are their specific locations?,SELECT LOCATION FROM cinema WHERE capacity > = 300 Name the date of appointment for petrik sander,"SELECT date_of_appointment FROM table_17327264_3 WHERE replaced_by = ""Petrik Sander""" Give the Title and author's name of the books that were preprint in 1997.,"SELECT DISTINCT T2.Name, T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.ConferenceId = 0 AND T1.JournalId = 0 AND T1.Year = 1997 AND T1.Title <> ''" What was the firefox % was chrome was 25.08%?,"SELECT firefox FROM table_name_86 WHERE chrome = ""25.08%""" What is the name of the staff member who reported problem id 1?,"SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id where T1.problem_id = 1" Where was the game against Detroit played?,"SELECT location_attendance FROM table_27704187_7 WHERE team = ""Detroit""" Hello! Can you provide me with a list of Instructor IDs for those who did not teach any courses?,SELECT ID FROM instructor WHERE id NOT IN ( SELECT id FROM teaches ) How many paragraphs are there in the chapter with the highest amount of scenes in act 1?,SELECT T1.ParagraphNum FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id WHERE T2.Act = 1 ORDER BY T2.Scene DESC LIMIT 1 Venue of Pepsi arena involved what club?,"SELECT club FROM table_name_34 WHERE venue = ""pepsi arena""" "What is Draws, when Losses is ""Did Not Qualify""?","SELECT draws FROM table_name_76 WHERE losses = ""did not qualify""" "What is the document date for the project with document ""King Book""?","SELECT T2.Document_Date FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = ""King Book""" "Which Year has an Award of 17th bangkok critics assembly awards, and a Category of best original score?","SELECT year FROM table_name_7 WHERE award = ""17th bangkok critics assembly awards"" AND category = ""best original score""" What is the smallest crowd at princes park?,"SELECT MIN(crowd) FROM table_name_57 WHERE venue = ""princes park""" Show the name of employees with three lowest salaries.,SELECT name FROM Employee ORDER BY salary LIMIT 3 What is the 2010 when the 2009 shows Q1?,"SELECT 2010 FROM table_name_50 WHERE 2009 = ""q1""" "What is the description of Act 1, Scene 2 in Twelfth Night?",SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Twelfth Night' AND T2.Act = 1 AND T2.Scene = 2 What is the opponent played on October 4?,"SELECT opponent FROM table_17972136_1 WHERE date = ""October 4""" What is the 1993 value of the 1994 atp masters series?,"SELECT 1993 FROM table_name_59 WHERE 1994 = ""atp masters series""" What is the placement date of the order whose invoice number is 10?,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10 List the count and id of each product in all the orders.,"SELECT COUNT(*), T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" What are the names and players of all the clubs?,"SELECT T1.name , T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID" How many customers who live in California that are retailers?,SELECT COUNT(*) FROM customer WHERE cust_type = 'retailer' AND state = 'CA' "Among all the residential areas in Delaware, how many of them implement daylight saving?",SELECT COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'DELAWARE' AND T1.daylight_savings = 'Yes' What is the average transcript date?,SELECT avg(transcript_date) FROM Transcripts What date has a status of 1995 rugby world cup and an against of 20?,"SELECT date FROM table_name_21 WHERE status = ""1995 rugby world cup"" AND against = 20" What championship had a margin of playoff 2?,"SELECT championship FROM table_13026799_1 WHERE margin = ""Playoff 2""" "Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003?","SELECT venue FROM table_name_11 WHERE competition = ""2004 afc asian cup qualification"" AND date = ""november 18, 2003""" "Which team won the match in the EC division on January 20, 2008 at home?",SELECT HomeTeam FROM matchs WHERE Div = 'EC' AND Date = '2008-01-20' AND FTR = 'H' what's the score where record is 35–33,"SELECT score FROM table_11964047_9 WHERE record = ""35–33""" What is the method of resolution for the fight against akihiro gono?,"SELECT method FROM table_name_31 WHERE opponent = ""akihiro gono""" Name all person in the individual retail whose last name is 'Anderson'.,"SELECT FirstName, MiddleName, LastName FROM Person WHERE LastName = 'Anderson' AND PersonType = 'IN'" Name the most rank for 2 gold,SELECT MIN(rank) FROM table_22355_68 WHERE gold = 2 Find the names of all distinct wines that have appellations in North Coast area.,"SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""North Coast""" What are the average and minimum age of captains in different class?,"SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS" Find the year and semester when offers the largest number of courses.,"SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1" "What was the percentage in 1980 that had less than 37.8% in 2006, more than 29.4% in 2000, and more than 18.2% in 1970?",SELECT MIN(1980) FROM table_name_30 WHERE 2006 < 37.8 AND 2000 > 29.4 AND 1970 > 18.2 Which actor acted in the most films?,"SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, SUM(T1.film_id) AS num FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.first_name, T2.last_name ) AS T ORDER BY T.num DESC LIMIT 1" When 4.5 is the percentage of change how many population counts were made for 2011?,"SELECT COUNT(population__2011_) FROM table_189598_7 WHERE change___percentage_ = ""4.5""" Show the id and details of the investor that has the largest number of transactions.,"SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1" What year was the locomotive withdrawn that was made in 1876?,"SELECT year_s__withdrawn FROM table_name_90 WHERE year_made = ""1876""" Who is the patient portrayer of the episode with the production code 3T5004?,"SELECT patient_portrayer FROM table_26561509_1 WHERE production_code = ""3T5004""" "Among the airports whose destination is Logan International, what is the airline id of the carrier operator with the highest delay in minutes due to security?","SELECT T2.OP_CARRIER_AIRLINE_ID FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T1.Description = 'Boston, MA: Logan International' AND T2.DEST = 'BOS' ORDER BY T2.SECURITY_DELAY DESC LIMIT 1" How often does a train leave sealdah?,"SELECT frequency FROM table_12095519_1 WHERE origin = ""Sealdah""" How many artists do not have any album?,SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM) How many of these occur at least 200 times?,SELECT count ( DISTINCT start_station_id ) FROM trip WHERE start_station_id IN ( SELECT start_station_id FROM trip GROUP BY start_station_name HAVING COUNT ( * ) > = 200 ) Find the number of routes operated by American Airlines.,SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' Name the most ceiling temperature for intermediate,"SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = ""Intermediate""" Show white percentages of cities and the crime rates of counties they are in.,"SELECT T1.White , T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" What is its headquartered city?,SELECT Headquartered_City FROM district ORDER BY city_population DESC LIMIT 1 what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?,"SELECT MIN(rank) FROM table_name_61 WHERE constituency = ""edinburgh northern and leith"" AND swing_to_gain < 4.16" Which Series has an Actor of tom ward?,"SELECT series FROM table_name_92 WHERE actor = ""tom ward""" What is the average actual profit by 1937 Lincoln Berline?,SELECT SUM(T1.priceEach - T2.buyPrice) / COUNT(*) FROM orderdetails AS T1 INNER JOIN products AS T2 ON T1.productCode = T2.productCode WHERE T2.productName = '1937 Lincoln Berline' "What are the name and assets of each company, sorted in ascending order of company name?","SELECT name, Assets_billion FROM Companies ORDER BY name" Show each gender code and the corresponding count of guests sorted by the count in descending order.,"SELECT gender_code , COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC" Who was the team on March 18?,"SELECT team FROM table_27755603_10 WHERE date = ""March 18""" How much is the total quantity of items from the East region shipped on 3/25/2015? Name the products.,"SELECT SUM(T1.Quantity), T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Date` = '2015-03-25' AND T2.Region = 'East'" How many bronze medals for the United Kingdom when the silver was less than 0?,"SELECT AVG(bronze) FROM table_name_18 WHERE nation = ""united kingdom"" AND silver < 0" Name the number of stacks for 1 & 2 235 mw 3 & 4 88.2 mw,"SELECT COUNT(stacks) FROM table_23958917_1 WHERE unit_capacity__2009_ = ""1 & 2 235 MW 3 & 4 88.2 MW""" Wjich city had a date of october 13?,"SELECT city FROM table_name_65 WHERE date = ""october 13""" Which Sail number has a Position smaller than 2?,SELECT sail_number FROM table_name_47 WHERE position < 2 Who wrote the last episode (episode 15) of season 3?,SELECT written_by FROM table_17861265_1 WHERE no_in_season = 15 Who is the player that has the highest number of roles as a captain for Deccan Chargers?,SELECT T4.Player_Name FROM Team AS T1 INNER JOIN Player_Match AS T2 ON T1.Team_id = T2.Team_id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id INNER JOIN Player AS T4 ON T2.Player_Id = T4.Player_Id WHERE T1.Team_Name = 'Deccan Chargers' AND T1.Team_Id = 8 AND T3.Role_Desc = 'Captain' AND T3.Role_Id = 1 GROUP BY T4.Player_Id ORDER BY COUNT(T3.Role_Id) DESC LIMIT 1 List the total number of records from Lambeau Field.,"SELECT COUNT(record) FROM table_14477002_1 WHERE location = ""Lambeau Field""" How many total pounds were purchased in the year 2018 at all London branches?,SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018 What is the length of the highway with remarks that it was replaced by lp 20?,"SELECT length FROM table_name_28 WHERE remarks = ""replaced by lp 20""" What are the distinct salaries of all instructors who earned less than the maximum salary?,SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor) What is the letter for the Brisish ɒ?,"SELECT letter FROM table_name_74 WHERE british = ""ɒ""" "What is Event, when Position is 6th, and when Year is after 2006?","SELECT event FROM table_name_97 WHERE position = ""6th"" AND year > 2006" Which Location has an Event of king of the cage: flash point?,"SELECT location FROM table_name_16 WHERE event = ""king of the cage: flash point""" Return the average and minimum ages across artists from the United States.,"SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'" What is the transaction type code that occurs least often?,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT ( * ) LIMIT 1 What are the different ids and names of the battles that lost any 'Brig' type shipes?,"SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'" What is the name of the product that Aimee Bixby bought?,SELECT DISTINCT T3.`Product Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Aimee Bixby' WHAT WEEK HAS A TV TIME OF BYE?,"SELECT week FROM table_name_37 WHERE tv_time = ""bye""" What is the players name in the guard position?,"SELECT name FROM table_name_95 WHERE position = ""guard""" "For each product, show its name and the number of times it was ordered.","SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" what is the largest city where the province is eastern cape?,"SELECT largest_city FROM table_17416221_1 WHERE province = ""Eastern Cape""" Tell me the lowest edition for winner of arsenal and third of celtic,"SELECT MIN(edition) FROM table_name_13 WHERE winner = ""arsenal"" AND third = ""celtic""" Please give me Placed order date of customer id 12?,select date_order_placed from Orders where customer_id = 12 What is the average election that has monza as the municipality?,"SELECT AVG(election) FROM table_name_30 WHERE municipality = ""monza""" Tell me the D 41 for D 43 of d 18,"SELECT d_41 FROM table_name_63 WHERE d_43 = ""d 18""" What's the date that Morocco has an Against along with a surface of hard?,"SELECT date FROM table_name_46 WHERE against = ""morocco"" AND surface = ""hard""" List down the first name of patients who have cystitis condition.,SELECT DISTINCT T1.first FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Cystitis' List the names of members in ascending alphabetical order.,SELECT Name FROM member ORDER BY Name How many students are not involved in any behavior incident?,SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident ) What percentage of students who enlisted in the navy make up the number of students enrolled in OCC?,"SELECT CAST(SUM(IIF(T1.school = 'occ', 1.0, 0)) AS REAL) * 100 / COUNT(T1.name) FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'navy'" What is the date of the game where Essendon is the away team?,"SELECT date FROM table_name_36 WHERE away_team = ""essendon""" What was the round in 1968?,SELECT round FROM table_name_43 WHERE year = 1968 On what date was the game more than 5?,SELECT date FROM table_name_23 WHERE game > 5 Find the policy type the most customers choose.,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1 What are the names of departments that have at least one employee.,SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id Compute the average number of sales in region ID 3.,SELECT AVG(T.num_sales * 100000) FROM region_sales AS T WHERE T.region_id = 3 "What are the names and genders of staff who have held the title Sales Person, but never Clerical Staff?","SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" what are all the client accelerators on the table,SELECT name FROM web_client_accelerator "Which Date has an Attendance of 9,535?","SELECT date FROM table_name_73 WHERE attendance = ""9,535""" How many counties are there?,SELECT count(*) FROM county_public_safety "How many credits is the course that the student with the last name Smithson took, and what is its description?","SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'" What is the main spoken language in MNE?,SELECT Name FROM language WHERE Country = 'MNE' ORDER BY Percentage DESC LIMIT 1 "What is the Doha, Qatar when the snatch is clean & jerk?","SELECT doha_, _qatar FROM table_name_93 WHERE snatch = ""clean & jerk""" "What is the average Season, when F/Laps is 1, and when Poles is less than 0?",SELECT AVG(season) FROM table_name_14 WHERE f_laps = 1 AND poles < 0 how many times is the country united states and the score 72-71-73-73=289?,"SELECT COUNT(to_par) FROM table_name_93 WHERE country = ""united states"" AND score = 72 - 71 - 73 - 73 = 289" What are the ids and details of events that have more than one participants?,"SELECT T1.event_id, T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING COUNT(*) > 1" List the types of competition and the number of competitions of each type.,"SELECT Competition_type , COUNT(*) FROM competition GROUP BY Competition_type" How many Yelp_Businesses are there in Arizona in total?,SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' What is the tournament surface at Aptos?,"SELECT surface FROM table_name_88 WHERE tournament = ""aptos""" What's the diameter of kaiwan fluctus?,"SELECT diameter__km_ FROM table_name_30 WHERE name = ""kaiwan fluctus""" Which venue had an extra of Team Competition and a result of 1st?,"SELECT venue FROM table_name_48 WHERE extra = ""team competition"" AND result = ""1st""" What city in Svalbard has a longitude of 15°39′e?,"SELECT city FROM table_name_77 WHERE state = ""svalbard"" AND longitude = ""15°39′e""" What is average age of male for different job title?,"SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job" "On average, when were the transcripts printed?",SELECT avg(transcript_date) FROM Transcripts Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types.,SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full' Name the launched for 13 september 1934 completion,"SELECT launched FROM table_name_91 WHERE completed = ""13 september 1934""" How many parts have more than 2 faults?,"SELECT COUNT ( * ) FROM ( SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count ( * ) > 2 ) " Name the result for arrowhead stadium,"SELECT result FROM table_name_45 WHERE game_site = ""arrowhead stadium""" "If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)?","SELECT winner__number_of_titles_ FROM table_237757_3 WHERE runners_up = ""Fort Lauderdale Strikers""" Find the name and flag of ships that are not steered by any captain with Midshipman rank.,"SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')" "Great! Can I see the description for that movie, in addition to its rating and special features?","SELECT T1.description, T1.rating,T1.special_features FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count ( * ) DESC LIMIT 1" "Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?","SELECT tournament FROM table_name_3 WHERE score = ""6–7 (0–7) , 6–2, 4–6""" Name the segment c for paint rollers,"SELECT segment_c FROM table_15187735_8 WHERE segment_b = ""Paint Rollers""" Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?,"SELECT particle FROM table_name_11 WHERE rest_mass_mev___c_2 = ""1383.7±1.0""" how many drivers driving toyota corolla,"SELECT COUNT(driver) FROM table_20090682_4 WHERE vehicle = ""Toyota Corolla""" What number episode in the series had a production code of 110?,"SELECT no_in_series FROM table_25246990_2 WHERE prod_code = ""110""" In which country do most of the customers come from?,"SELECT T.n_name FROM ( SELECT T2.n_name, COUNT(T1.c_custkey) AS num FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey GROUP BY T2.n_name ) AS T ORDER BY T.num DESC LIMIT 1" Which region had a catalogue number of 9362482872?,"SELECT region FROM table_name_89 WHERE catalogue = ""9362482872""" Show the first name of all employees and list their salary in descending order for employees whose first name does not contain the letter M.,"SELECT first_name, salary FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY salary DESC" What are the names of all females who are friends with Zach?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female' Who is the player who has had 7 first team appearances?,"SELECT player FROM table_name_79 WHERE first_team_appearances = ""7""" "Show all document type codes, document type names, document type descriptions.","SELECT document_type_code, document_type_name, document_type_description FROM Ref_document_types" What district is St Martin's Without parish in with a population less than 75?,"SELECT district FROM table_name_73 WHERE population < 75 AND name = ""st martin's without""" Return the name and gender of the staff who was assigned in 2016.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%""" "what driver has a team of officine alfieri maserati and belongs to the class of non-championship f2 and has a position of 2, as well as a date of 9/1952?","SELECT driver FROM table_name_51 WHERE team = ""officine alfieri maserati"" AND class = ""non-championship f2"" AND position = 2 AND date = ""9/1952""" What is the average and minimum age of all artists from United States.,"SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'" Who was the cover model when the issue's pictorials was pmoy - sara jean underwood?,"SELECT cover_model FROM table_1566852_8 WHERE pictorials = ""PMOY - Sara Jean Underwood""" How much more is the Florida store's computer product unit price than the Texas store?,SELECT SUM(CASE WHEN T3.State = 'Florida' THEN T2.`Unit Price` ELSE 0 END) - SUM(CASE WHEN T3.State = 'Texas' THEN T2.`Unit Price` ELSE 0 END) FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` AS T3 ON T3.StoreID = T2._StoreID WHERE T1.`Product Name` = 'Computers' Name the dishes that were on the menu page ID 174.,SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T1.menu_page_id = 174 What is the entry for Part 1 for class 7d?,"SELECT part_1 FROM table_name_81 WHERE class = ""7d""" What is the number of professors who are in the Accounting or Biology departments?,SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' What college had the 93 pick?,SELECT college FROM table_name_50 WHERE pick = 93 Show the name of the shop that has the most kind of devices in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1 Which country has the city of 114339 in population? Give the full name of the country.,SELECT T1.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Population = 114339 "Please list the players who received the ""Most Valuable Player"" award in the NBA league after the year of 1990, along with their IDs.",SELECT playerID FROM awards_players WHERE year > 1990 AND award = 'Most Valuable Player' AND lgID = 'NBA' Show me the prices of Business Policy,"SELECT Product_Price FROM Products WHERE Product_Name = ""Business Policy""" What was the average attendance when the record was 58–49?,"SELECT AVG(attendance) FROM table_name_63 WHERE record = ""58–49""" Which label's year is 1993?,"SELECT label FROM table_name_45 WHERE year = ""1993""" What's the RECNet when the identifier is cbf-fm-20?,"SELECT recnet FROM table_name_38 WHERE identifier = ""cbf-fm-20""" "Which Home Team has a Road Team of rochester, and a Result of 71-78?","SELECT home_team FROM table_name_97 WHERE road_team = ""rochester"" AND result = ""71-78""" Where was the fight that lasted 5:00 when Yundt's record was 8-4?,"SELECT location FROM table_name_39 WHERE time = ""5:00"" AND record = ""8-4""" How many students are advised to teach by a professor teaching basic or medium undergraduate courses?,SELECT COUNT(DISTINCT T4.p_id) FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id INNER JOIN advisedBy AS T4 ON T4.p_id = T1.p_id WHERE T1.professor = 1 AND T3.courseLevel = 'Level_300' Which Venue has a Against smaller than 7?,SELECT venue FROM table_name_31 WHERE against < 7 What is the birth date of the youngest client?,"SELECT day, month, year FROM client ORDER BY year DESC, month DESC, day DESC LIMIT 1" Name the 2011 when 2010 is 2r,"SELECT 2011 FROM table_name_94 WHERE 2010 = ""2r""" What is the rank of mark?,"SELECT rank from faculty where fname = ""Mark""" What are the distinct types of the companies that have operated any flights with velocity less than 200?,SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T2.velocity < 200 What is the maximum stars and year for the most recent movie?,"SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)" What is the sequence identity to human protein value associated with accession number XP_002429877.1,"SELECT sequence_identity_to_human_protein FROM protein where accession_number = ""XP_002429877.1""" What is the Party of District of Illinois 19 with an Incumbent First elected in 1996?,"SELECT party FROM table_name_37 WHERE first_elected = 1996 AND district = ""illinois 19""" Find the names of all instructors in the Art department,select name from instructor where dept_name = 'Art' what's the districtwith party being democratic,"SELECT district FROM table_1342359_5 WHERE party = ""Democratic""" What was the total rating on week 3? ,SELECT total FROM table_24291077_8 WHERE week = 3 Calculate the number of customers who did not respond in February of 2007.,SELECT COUNT(REFID) custmoer_number FROM Mailings1_2 WHERE RESPONSE = 'false' AND REF_DATE BETWEEN '2007-02-01' AND '2007-02-28' give me the airline id to that,"SELECT t3.aid FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = ""John Williams""" "What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?","SELECT MAX(current_branch_opened) FROM table_name_79 WHERE neighborhood = ""w. portland park""" Thank you so much! Can you filter this list to show only the patients who had more than one appointment?,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) > 1 What is the Result of Game 3?,"SELECT result FROM table_name_16 WHERE game = ""game 3""" Was there PPV when the service was SCT?,"SELECT ppv FROM table_15887683_19 WHERE television_service = ""SCT""" What is the price of a Chevrolet Bel Air?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'chevrolet bel air' Hmmm. What is title of album which track Fast as a Shark belong to?,"SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = ""Fast As a Shark""" "Provide the zip codes, cities, and locations of the postal points that have Shared Reshipper as a bad alias.","SELECT T1.zip_code, T2.city, T2.latitude, T2.longitude FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Shared Reshipper'" "What is the former school of the player from North Port, FL? ","SELECT former_school FROM table_29418619_1 WHERE hometown = ""North Port, FL""" Name the score for game 66,SELECT score FROM table_17288845_9 WHERE game = 66 "What was the game result on November 29, 1959?","SELECT result FROM table_name_14 WHERE date = ""november 29, 1959""" What is the toll for light vehicles at the plaza where the toll for heavy vehicles with 2 axles is r87.00?,"SELECT light_vehicle FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = ""R87.00""" "On what dates did the student with family name ""Zieme"" and personal name ""Bernie"" enroll in and complete the courses?","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = ""Zieme"" AND T2.personal_name = ""Bernie""" Give me the years and episode IDs in which Constantine Makris was the winner of the Television Silver Gavel Award at the American Bar Association Silver Gavel Awards for Media and the Arts for two consecutive years.,"SELECT t3.years, t3.episode_id FROM ( SELECT DISTINCT T2.year AS years, T2.episode_id, row_number() OVER (PARTITION BY T2.episode_id ORDER BY T2.year) AS rm FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award = 'Television' AND T2.award_category = 'Silver Gavel Award' AND T1.name = 'Constantine Makris' AND T2.result = 'Winner' AND T2.organization = 'American Bar Association Silver Gavel Awards for Media and the Arts' ) AS T3 GROUP BY t3.episode_id HAVING COUNT(t3.years - t3.rm) >= 2" When did the staff member with first name as Janessa and last name as Sawayn join the company?,"SELECT date_joined_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games?,"SELECT COUNT(points) FROM table_name_18 WHERE losses < 9 AND games > 24 AND team_name = ""vancouver burrards""" Which last names are both used by customers and by staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff How many payment methods has American Express processed?,"SELECT Payment_Method_Code, count ( * ) FROM Payments GROUP BY Payment_Method_Code having Payment_Method_Code = ""American Express""" What is the highest numbered event?,SELECT MAX(event) FROM table_30060356_3 "What is the average Season, when First Broadcast is January 23, 1981?","SELECT AVG(season) FROM table_name_14 WHERE first_broadcast = ""january 23, 1981""" When the network mask is 255.255.255.252 what is the prefix size?,"SELECT prefix_size FROM table_149426_4 WHERE network_mask = ""255.255.255.252""" Tell the wet-bulb temperature of the weather station which contained store no.6 on 2012/2/15.,SELECT T1.wetbulb FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 14 AND T1.`date` = '2012-02-15' who is the grand finalist where scores is 8.9 (57) – 7.12 (54),"SELECT grand_finalist FROM table_1139835_3 WHERE scores = ""8.9 (57) – 7.12 (54)""" How about with job title code Clerical Staff?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" Name the james e. holmes for joe baez,"SELECT james_e_holmes FROM table_25330991_3 WHERE rockingham_county = ""Joe Baez""" What Player had a Score of 70-71=141?,SELECT player FROM table_name_80 WHERE score = 70 - 71 = 141 Name the Mountain Peak which has a Rank of 62?,SELECT mountain_peak FROM table_name_2 WHERE rank = 62 Who were the governors of the parties associated with delegates from district 1?,SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 "When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?","SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = ""mark o'meara""" Name the least established,SELECT MIN(established) FROM table_1641054_2 show the number of all customers without an account,SELECT count ( * ) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Accounts ) During what period did Dell Curry play for Toronto?,"SELECT years_in_toronto FROM table_10015132_3 WHERE player = ""Dell Curry""" Identify the names of the top 3 customers with the highest number of orders of all time and calculate for the average total price per order of each customers.,"SELECT T.c_name, T.res FROM ( SELECT T2.c_name, SUM(T1.o_totalprice) / COUNT(T1.o_orderkey) AS res , COUNT(T1.o_orderkey) AS num FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey GROUP BY T1.o_custkey ) AS T ORDER BY T.num DESC LIMIT 3" Describe the care plans received by the patient with secondary malignant neoplasm of the colon.,SELECT DISTINCT T1.DESCRIPTION FROM careplans AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Secondary malignant neoplasm of colon' who is the candidate where district is louisiana 3?,"SELECT candidates FROM table_1342198_18 WHERE district = ""Louisiana 3""" Please list the top three shortest black players.,"SELECT firstName, lastName FROM players WHERE race = 'B' AND height > 0 ORDER BY height ASC LIMIT 3" How many branches have the number of members in each branch registered after 2015? | Did you mean the number of branches which have some members registered after 2015? | Thanks!,select count ( * ) from ( SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id ) What is the average sales for each categories?,SELECT AVG(ProductSales) FROM `Sales by Category` GROUP BY CategoryName Show me all the types of competitions?,SELECT DISTINCT ( competition_type ) FROM competition what is the lowest capacity in grodno,"SELECT MIN(capacity) FROM table_name_79 WHERE location = ""grodno""" What is the round for marcus howard?,"SELECT SUM(round) FROM table_name_32 WHERE name = ""marcus howard""" "Among the vendors with an average credit rating, what is the overall total due amount of purchases made by the company to the vendor that isn't preferrerd if another vendor is available?",SELECT SUM(T2.TotalDue) FROM Vendor AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.BusinessEntityID = T2.VendorID WHERE T1.CreditRating = 4 AND T1.PreferredVendorStatus = 0 List out dates when haze is recorded in store 35.,SELECT T1.`date` FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 35 AND T1.codesum LIKE '%' OR 'HZ' OR '%' Who played in group 12 when persikutim east kutai played in group 10?,"SELECT group_12 FROM table_19523142_5 WHERE group_10 = ""Persikutim East Kutai""" "What are the average, maximum, and minimum number of floors for all buildings?","SELECT avg(floors) , max(floors) , min(floors) FROM building" What is the nationality of the HMS Cheshire?,"SELECT nationality FROM table_name_32 WHERE name = ""hms cheshire""" What city does the business have a business hour from 10 am to 12 pm on Sunday?,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time LIKE '10AM' AND T2.closing_time LIKE '12PM' AND T3.day_of_week LIKE 'Sunday' Find the average unit price for a track.,SELECT AVG(UnitPrice) FROM TRACK What date was the most recent complaint raised?,SELECT date_complaint_raised from complaints order by date_complaint_raised desc limit 1 "What is the biggest roll number of Sylvia Park School, which has a state authority?","SELECT MAX(roll) FROM table_name_12 WHERE authority = ""state"" AND name = ""sylvia park school""" Name the railway when class is j19,"SELECT railway FROM table_15608800_2 WHERE class = ""J19""" Name the bowling style of the player born 16 march 1974,"SELECT bowling_style FROM table_name_10 WHERE date_of_birth = ""16 march 1974""" How many white patients have the reason code of 10509002?,SELECT COUNT(DISTINCT T1.PATIENT) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.race = 'white' AND T1.REASONCODE = '10509002' What is the sum of wins against the smaller score 1148?,SELECT SUM(wins) FROM table_name_80 WHERE against < 1148 "Okay, I see. Which complaint status code has more than 3 records on this list?",SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count ( * ) > 3 List the names of gymnasts in ascending order by their heights.,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC What was the away team's score in the match at Victoria Park?,"SELECT away_team AS score FROM table_name_77 WHERE venue = ""victoria park""" Show the transaction type code that occurs the fewest times.,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1 How many points did art renner have?,"SELECT COUNT(points) FROM table_25647137_2 WHERE player = ""Art Renner""" Which player had a round of 27?,SELECT player FROM table_name_4 WHERE round = 27 "What league apps with 1 flt apps, 0 goals, and more than 1 league goals?","SELECT league_apps FROM table_name_38 WHERE flt_apps = ""1"" AND total_goals > 0 AND league_goals > 1" "Among the person nominated for the Comedy Series Award in 2009, how many of them were born in California?",SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.year = 2009 AND T2.award = 'Comedy Series' AND T1.birth_region = 'California'; How many field goals did the player who had 8 blocks have? ,SELECT MIN(field_goals) FROM table_24850487_5 WHERE blocks = 8 What is a highest time for the heat smaller than 1?,SELECT MAX(time) FROM table_name_39 WHERE heat < 1 Enumerate the paper and author ID of authors with affiliation with Cairo Microsoft Innovation Lab.,"SELECT PaperId, AuthorId FROM PaperAuthor WHERE Affiliation LIKE 'Cairo Microsoft Innovation Lab%'" Who is the player with a pick less than 234 and a quarterback position?,"SELECT player FROM table_name_55 WHERE pick < 234 AND position = ""quarterback""" What is the musical id of Lou Carpenter?,"SELECT T2.musical_id FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID where T1.Character = ""Lou Carpenter""" How many rushing yards where there when the opponent was Indiana and there was 503 passing yards?,"SELECT rushing_yards FROM table_26108103_2 WHERE opponent = ""Indiana"" AND passing_yards = 503" Name the original air date for number in season being 1,SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 1 "How many weeks had an Attendance of 43,272?","SELECT COUNT(week) FROM table_name_30 WHERE attendance = ""43,272""" What is the description of the marketing region China?,"SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = ""China""" What is the organisation ID of the organisation with grant amount of 4094.542??,SELECT organisation_id from grants where grant_amount = 4094.542 How many attributes are related to the object sample no. 7 on image no. 4?,SELECT COUNT(ATT_CLASS_ID) FROM IMG_OBJ_ATT WHERE IMG_ID = 4 AND OBJ_SAMPLE_ID = 7 Find the last name of female (sex is F) students in the descending order of age.,"SELECT LName FROM STUDENT WHERE Sex = ""F"" ORDER BY Age DESC" How many different forms of governments are there in Africa?,"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = ""Africa""" How old was Mrs. Laronda Bernier at the time of her most recent medical encounter?,SELECT T2.DATE - T1.birthdate AS age FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Laronda' AND T1.last = 'Bernier' ORDER BY T2.DATE DESC LIMIT 1 "Among the public institutes in the state of Alabama, how many of them have over 30 students who graduated within 100 percent of normal/expected time in 2011?",SELECT COUNT(T1.chronname) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.state = 'Alabama' AND T1.control = 'Public' AND T2.year = 2011 AND T2.grad_100 > 30 What are the distinct billing countries of the invoices?,SELECT distinct(BillingCountry) FROM INVOICE How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54'; "For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?","SELECT year_8_1st_quad FROM table_name_5 WHERE year_9_2nd_quad = ""stm"" AND year_9_1st_quad = ""som"" AND year_8_3rd_quad = ""sta""" "On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?","SELECT date FROM table_26267607_2 WHERE winning_team = ""Abt Sportsline"" AND pole_position = ""Mattias Ekström"" AND circuit = ""circuit Ricardo Tormo , Valencia""" What are the dates for the documents with both 'GV' type and 'SF' type expenses?,SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF' "What is the task method of the tokenized name ""string extensions to pascal case ""?","SELECT DISTINCT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE NameTokenized = 'string extensions to pascal case'" "List out the star scores of episode which has title of ""How the Test Was Won"".",SELECT T2.stars FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'How the Test Was Won'; Which aircraft has 148/9 seating?,"SELECT aircraft FROM table_name_88 WHERE seating = ""148/9""" How many businesses are actively running in Gilbert City?,SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Gilbert' AND active LIKE 'True' List the full name of players who are born outside USA.,"SELECT firstName, middleName, lastName FROM players WHERE birthCountry != 'USA'" List the names of editors that are not on any journal committee.,SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee) What is the percentage of female patients who started the care plan in 2010?,"SELECT CAST(SUM(CASE WHEN T2.gender = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.PATIENT) AS percentage FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE strftime('%Y', T1.START) = '2010'" What is the away team for the tie no. 29?,"SELECT away_team FROM table_name_81 WHERE tie_no = ""29""" Name the language for el villar 1264,SELECT language FROM table_2509350_3 WHERE el_villar_municipality = 1264 What is the total number of ends when the transfer fee was dkk 14m?,"SELECT COUNT(ends) FROM table_name_80 WHERE transfer_fee = ""dkk 14m""" How many reviews does 'LifeAfter/The Message' have which were rated below 3?,SELECT COUNT(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'LifeAfter/The Message' AND T2.rating <= 3 What was the lesson date,SELECT lesson_date from Lessons where lesson_id = 4 "Which category is the podcast ""Scaling Global"" under?",SELECT category FROM categories WHERE podcast_id IN ( SELECT podcast_id FROM podcasts WHERE title = 'Scaling Global' ) Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?,"SELECT driver FROM table_name_34 WHERE constructor = ""maserati"" AND laps < 18 AND grid < 14 AND time_retired = ""oil leak""" and the males? | Do you mean the unsure rate of the people who are male? | yes,SELECT t2.Unsure_rate FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = 'M' Which eagle riders have battle of the planets as zoltar?,"SELECT eagle_riders FROM table_17480471_3 WHERE battle_of_the_planets = ""Zoltar""" "For the Cage Combat Fighting Championships: Mayhem, what was the record?","SELECT record FROM table_name_13 WHERE event = ""cage combat fighting championships: mayhem""" What is the result of the choice tv actor: drama category?,"SELECT result FROM table_name_22 WHERE category = ""choice tv actor: drama""" How many addresses are in the district of California?,SELECT COUNT(*) FROM address WHERE district = 'California' What was the F/Laps when the Wins were 0 and the Position was 4th?,"SELECT f_laps FROM table_name_97 WHERE wins = ""0"" AND position = ""4th""" "how many titles have the name ""quick callanetics""?","SELECT COUNT(catalog_number) FROM table_11222744_3 WHERE title = ""Quick Callanetics""" What are the first names of all students who got a grade C in a class?,SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C' Which Year that has Notes of dnf?,"SELECT MIN(year) FROM table_name_17 WHERE notes = ""dnf""" What is the percentage of user not becoming an elite user?,SELECT CAST((( SELECT COUNT(user_id) FROM Users ) - ( SELECT COUNT(DISTINCT user_id) FROM Elite )) AS REAL) * 100 / ( SELECT COUNT(user_id) FROM Users ) "List the inspection dates, scores and inspection types for the eateries with tax code AA.","SELECT T1.`date`, T1.score, T1.type FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.tax_code = 'AA'" "What is Bids, when Champions is ""1""?","SELECT bids FROM table_name_34 WHERE champions = ""1""" On what dates were books ordered at a price of 16.54?,SELECT T1.order_date FROM cust_order AS T1 INNER JOIN order_line AS T2 ON T1.order_id = T2.order_id WHERE T2.price = 16.54 What is the total amount of money loaned by banks in New York state?,SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' During which years did Jim Farmer play for Jazz?,"SELECT years_for_jazz FROM table_11545282_6 WHERE player = ""Jim Farmer""" What date did the Milton Keynes Dons appoint?,"SELECT date_of_appointment FROM table_18788823_5 WHERE team = ""Milton Keynes Dons""" Show total hours per week and number of games played for students under 20.,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20" What is the highest total with a t12 finish?,"SELECT MAX(total) FROM table_name_61 WHERE finish = ""t12""" Name the last title for cuenca,"SELECT last_title FROM table_2454589_1 WHERE home_city = ""Cuenca""" Which country is the airport that has the highest altitude located in?,SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 Which campus was opened between 1935 and 1939?,SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939 What is the average number of people injured by all perpetrators?,SELECT avg(Injured) FROM perpetrator; What is the sum of % for 2001 if 2001 seats equals 7?,SELECT COUNT(_percentage_2001) FROM table_name_32 WHERE seats_2001 = 7 When are the birthdays of customer who are classified as 'Good Customer' status?,SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer' What is the education required to be account representative? Mention account representative full name and salary who got poor in performance status.,"SELECT T2.educationrequired, T1.firstname, T1.lastname, T1.salary FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Account Representative'" List the names of counties that do not have any cities.,SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city) How many acts are there in Sonnets?,SELECT SUM(DISTINCT T2.Act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Sonnets' "What are the delegate and name of the county they belong to, for each county?","SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District" How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored?,SELECT SUM(PostGA) FROM Goalies WHERE lgID = 'WCHL' AND year = '1924' GROUP BY playerID ORDER BY SUM(PostGA) DESC LIMIT 1 What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps?,"SELECT MIN(grid) FROM table_name_74 WHERE manufacturer = ""ktm"" AND laps > 20" "How many watchers does the path ""maff_se3ue7\US7.sln"" have?",SELECT T1.Watchers FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'maff_se3ue7US7.sln' "What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and when Name is Theodoros Baev?","SELECT COUNT(block) FROM table_name_41 WHERE spike < 341 AND weight > 82 AND name = ""theodoros baev""" What School Year has a Class AAAA of Dickinson?,SELECT school_year FROM table_name_61 WHERE class_aAAA = dickinson Compute the total amount of settlement across all the settlements.,SELECT sum(Amount_Settled) FROM Settlements Name the most games for eredivisie when jurrie koolhof is manager when goals are less than 10,"SELECT MAX(games) FROM table_name_25 WHERE league = ""eredivisie"" AND manager = ""jurrie koolhof"" AND goals < 10" Show storm name with at least two regions and 10 cities affected.,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10 Give the codes of document types that have more than 2 corresponding documents.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 2 Which country does FC Atyrau represent after the 2006 season?,"SELECT country FROM table_name_67 WHERE season > 2006 AND team = ""fc atyrau""" Show all origins and the number of flights from each origin.,"SELECT origin , count(*) FROM Flight GROUP BY origin" Which province is Parun in?,"SELECT province FROM table_name_98 WHERE centers = ""parun""" "What is the fax number for the district with the most number of crimes in January, 2018?",SELECT T1.fax FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.date LIKE '%1/2018%' GROUP BY T2.district_no ORDER BY COUNT(case_number) DESC LIMIT 1 "Hello, which films where made in 1995?",SELECT * FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995 Which chicken restaurant has the highest review?,SELECT label FROM generalinfo WHERE food_type = 'chicken' ORDER BY review DESC LIMIT 1 how many millions of north american viewers had the episode whose director was Michael Lembeck? ,"SELECT us_viewers__millions_ FROM table_27714573_1 WHERE directed_by = ""Michael Lembeck""" What was the record on December 3?,SELECT record FROM table_name_40 WHERE december = 3 How many prizes were available in the competition where 696 people entered?,SELECT COUNT(winners) AS Prize FROM table_2715355_1 WHERE entrants = 696 "In games where st kilda was the away team, what was the smallest crowd?","SELECT MIN(crowd) FROM table_name_68 WHERE away_team = ""st kilda""" What is the highest acc percent score in the competition?,SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1 "when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? ","SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = ""5.28""" What was the score on August 8?,"SELECT score FROM table_name_82 WHERE date = ""august 8""" "List the name of technicians whose team is not ""NYY"".","SELECT Name FROM technician WHERE Team <> ""NYY""" "What are the type codes of the policies used by the customer ""Dayana Robel""?","SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" List major and number of students for majors with 2 to 30 number of students,"SELECT Major , count ( * ) FROM Student GROUP BY Major HAVING count ( Major ) BETWEEN 2 AND 30" WHAT IS THE WORST SCORE WHEN THE BEST SCORE WAS 8.8 AND AVERAGE WAS LARGER THAN 6.2?,SELECT COUNT(worst_score) FROM table_name_72 WHERE best_score = 8.8 AND average > 6.2 Who was the winner with the loser being russia-2?,"SELECT winner FROM table_name_66 WHERE loser = ""russia-2""" how many seating does Chicagoland Speedway have?,SELECT T2.Seating FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id where T2.Name = 'Chicagoland Speedway' What are the durations of the longest and the shortest tracks in milliseconds?,"SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK" what is the home team when the opposition is east coast?,"SELECT home_team FROM table_26847237_3 WHERE opposition = ""East Coast""" what is country for Shrikanta?,"SELECT T2.country from files as T1 join song as T2 on T1.f_id = T2.f_id where T1.artist_name = ""Shrikanta""" "Which journal was the paper ""Education, democracy and growth"" published on? Give the full name of the journal.","SELECT T1.FullName FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Title = 'Education, democracy and growth'" "Among the orders made by Aimee Bixby, how many of them included at least one kind of product under the category ""Furniture""?",SELECT COUNT(DISTINCT T2.`Order ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T3.Category = 'Furniture' AND T1.`Customer Name` = 'Aimee Bixby' Which Year has a Match of 63?,SELECT year FROM table_name_82 WHERE match = 63 List the locations of schools in descending order of founded year.,SELECT LOCATION FROM school ORDER BY Founded DESC; Return all the apartment numbers sorted by the room count in ascending order.,SELECT apt_number FROM Apartments ORDER BY room_count ASC can you show me a list of college name?,SELECT cName from College "What's the overall average that has a round less than 7, and a Pick # of 4?",SELECT AVG(overall) FROM table_name_63 WHERE round < 7 AND pick__number = 4 What day did the episode with a production code of 218 originally air?,"SELECT original_air_date FROM table_22265225_1 WHERE production_code = ""218""" What is the name of the founder of the manufacturer that has the highest revenue?,SELECT founder FROM manufacturers ORDER BY revenue DESC LIMIT 1 what is the total number of showtimes at each cinema?,"SELECT T2.name , sum ( T1.show_times_per_day ) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id" are there any other enzymes that are not in the cytosol that have the name Aripiprazole?,"SELECT T3.name FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T2.name = 'Aripiprazole' and T3.location ! = ""Cytosol""" Who has the city Santiago?,"SELECT name FROM table_name_41 WHERE city = ""santiago""" "How many rounds have an Overall larger than 17, and a Position of quarterback?","SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = ""quarterback""" Who played home team at the Arden Street Oval game?,"SELECT home_team FROM table_name_99 WHERE venue = ""arden street oval""" Show me the name of the building with building id 1?,SELECT name FROM building where building_id = '1' What was the launch date the satellite with cospar ID is 2008-033A?,"SELECT launch_date FROM table_18161217_2 WHERE cospar_id = ""2008-033A""" What are the percentage of hispanics in cities with the black percentage higher than 10?,SELECT Hispanic FROM city WHERE Black > 10 Find the common personal name of course authors and students.,SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students "What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?","SELECT i_o_bus FROM table_24538587_11 WHERE socket = ""LGA 1155"" AND codename__main_article_ = ""Sandy Bridge (Desktop)"" AND brand_name__list_ = ""Core i3-21xx""" What is the home team score when st kilda is the away team?,"SELECT home_team AS score FROM table_name_64 WHERE away_team = ""st kilda""" How many female students are not joining any of the organization?,SELECT COUNT(name) FROM person WHERE name NOT IN ( SELECT name FROM male ) AND name NOT IN ( SELECT name FROM enrolled ) What is the length in feet of the Jiangzhou arch?,"SELECT length___ft__ FROM table_name_7 WHERE name = ""jiangzhou arch""" What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?,"SELECT race FROM table_name_99 WHERE tyre = ""p"" AND winning_driver = ""juan manuel fangio""" "What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?","SELECT cardinalatial_title FROM table_name_40 WHERE elevated = ""december 18, 1182"" AND place_of_birth = ""lucca"" AND elector = ""pandolfo""" What are the Indicator names and aggregation methods when the topic is Economic Policy & Debt: Balance of payments: Capital & financial account?,"SELECT IndicatorName, AggregationMethod FROM Series WHERE Topic = 'Economic Policy & Debt: Balance of payments: Capital & financial account'" "Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?","SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = ""sc forst"" AND drawn < 0" Which carriers are active in Alberta?,"SELECT T3.carrier FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID where T2.District = ""Alberta""" "Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?","SELECT author FROM table_name_62 WHERE role = ""narrator"" AND year > 2009 AND release_air_date = ""7 october 2010""" "How many times has the release ""city funk"" been downloaded?",SELECT totalSnatched FROM torrents WHERE groupName LIKE 'city funk' What is the segment B of episode 242?,SELECT segment_b FROM table_15187735_19 WHERE episode = 242 "What is Label, when Date is 1987?","SELECT label FROM table_name_57 WHERE date = ""1987""" "What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?",SELECT AVG(plaxo) FROM table_name_63 WHERE myspace > 64 AND bebo > 3 AND friendster = 4 Ram Vaswani was a winner on what date?,"SELECT date FROM table_name_91 WHERE winner = ""ram vaswani""" Show the role code of the project staff involved in the most number of project outcomes,SELECT T1.role_code FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count ( * ) DESC LIMIT 1 What is the number reference for LIE?,"SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = ""LIE""" What are the names of climbers who are not from the country of Switzerland?,"SELECT Name FROM climber WHERE Country != ""Switzerland""" "Among the artists with the id from 10 to 30. Which artist released the product with the tag ""funk"" in 1980?",SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'funk' AND T1.groupYear = 1980 AND T1.id BETWEEN 10 AND 30 Tell me the runner-up for majorca,"SELECT runner_up FROM table_name_30 WHERE tournament = ""majorca""" Who does pádraig harrington play for?,"SELECT country FROM table_name_72 WHERE player = ""pádraig harrington""" "Out of those customers, who has spent the least amount of money? | Do you want the first and last names and id of the customer who has spent the least amount of money? | Yes please","SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum ( amount ) ASC LIMIT 1" Name the driver/passenger for 6 position,SELECT driver___passenger FROM table_16729457_16 WHERE position = 6 Where did robert nkemdiche ‡ go to college,"SELECT college FROM table_11677691_8 WHERE player = ""Robert Nkemdiche ‡""" "What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?","SELECT MAX(laps) FROM table_name_42 WHERE constructor = ""tyrrell - yamaha"" AND time_retired = ""+ 1 lap""" How many disabled students have zero absences?,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0 List all the cities where Shawn Torres sells Audio products.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T4.`Product Name` = 'Audio' AND T3.`Sales Team` = 'Shawn Torres' THEN T1.`City Name` ELSE NULL END AS T FROM `Store Locations` T1 INNER JOIN `Sales Orders` T2 ON T2._StoreID = T1.StoreID INNER JOIN `Sales Team` T3 ON T3.SalesTeamID = T2._SalesTeamID INNER JOIN Products T4 ON T4.ProductID = T2._ProductID ) WHERE T IS NOT NULL What is the largest number for bronze with a rank of 19?,"SELECT MAX(bronze) FROM table_name_61 WHERE rank = ""19""" How many games tied for the air force with over 57 years participating?,"SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = ""air force"" AND years > 57" What is Fiji's lowest total?,"SELECT MIN(total) FROM table_name_63 WHERE country = ""fiji""" What are the distinct types of mills that are built by American or Canadian architects?,SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian' The Ring of Steel possesses what ISBN?,"SELECT isbn FROM table_2950964_5 WHERE title = ""The Ring Of Steel""" What is the custody level of the facility in Shelton?,"SELECT custody_level_s_ FROM table_25346763_1 WHERE location = ""Shelton""" What is the ID of the item that sold the best on 2012/1/1 in store no.1?,SELECT item_nbr FROM sales_in_weather WHERE `date` = '2012-01-01' AND store_nbr = 1 ORDER BY units DESC LIMIT 1 "Which user made a critic for the film ""When Will I Be Loved"" and got 2 comments for the critic?",SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.critic_comments = 2 What is the work number for Victor?,"SELECT works_number FROM table_name_80 WHERE name = ""victor""" What is Brian Gay's place?,"SELECT place FROM table_name_77 WHERE player = ""brian gay""" How many businesses are registered in the database under 'Banks & Credit Unions' category?,SELECT COUNT(T2.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name = 'Banks & Credit Unions' Which report is where rd. is 9?,"SELECT report FROM table_19850806_3 WHERE rd = ""9""" "Among the employees who handled orders to Brazil, who has the highest salary and calculate the average salary of them.","SELECT T1.FirstName, T1.LastName, AVG(T1.Salary) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.ShipCountry = 'Brazil' GROUP BY T1.FirstName, T1.LastName ORDER BY SUM(T1.Salary) DESC LIMIT 1" In what year was Leo E. Allen first elected?,"SELECT first_elected FROM table_1342249_13 WHERE incumbent = ""Leo E. Allen""" Which Position has a Player of patrick macdonald?,"SELECT position FROM table_name_35 WHERE player = ""patrick macdonald""" Which Department has the least number of employee? tell me the rank and creation year.,"SELECT ranking, creation from department where num_employees = ( select min ( num_employees ) from department ) " What is the occasion for menu with ID 12463?,SELECT occasion FROM Menu WHERE id = 12463 List down the image IDs for menu located at Manhattan Hotel.,SELECT T1.image_id FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.location = 'Manhattan Hotel' About how many settlements does each claim correspond to?,"SELECT T1.Claim_id , count ( * ) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id" What is the german total population after 1910 with an other total of 143 and 32 hungarians?,"SELECT german FROM table_name_59 WHERE year > 1910 AND other = ""143"" AND hungarian = ""32""" list out the airports names,select name from airports What was the highest number of starts in 2007 when the average start was over 17.6?,SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.6 Find the branch name of the bank that has the most number of customers.,SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 Find the number of distinct bed types available in this inn.,SELECT count(DISTINCT bedType) FROM Rooms; What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg,"SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = ""6.0""" Tell me the installation date for the station id 4 ?,SELECT installation_date FROM station WHERE id = 4 "What is Country, when HDTV is yes, and when Content is cinema?","SELECT country FROM table_name_29 WHERE hdtv = ""yes"" AND content = ""cinema""" List the name of all playlist.,SELECT name FROM playlists; Please show the categories of the music festivals and the count.,"SELECT Category , COUNT(*) FROM music_festival GROUP BY Category" How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?,"SELECT seating FROM table_name_6 WHERE notes = ""in service"" AND introduced = 2008" Who made the car that Alberto Ascari went more than 35 laps on a grid less than 7?,"SELECT constructor FROM table_name_4 WHERE grid < 7 AND laps > 35 AND driver = ""alberto ascari""" Which manager sponsor arke shirt?,"SELECT manager FROM table_name_90 WHERE shirt_sponsor = ""arke""" What Team had 40 Laps in C1 Class?,"SELECT team FROM table_name_46 WHERE class = ""c1"" AND laps = 40" "What is Position, when Overall is less than 590, and when Round is 3?",SELECT position FROM table_name_6 WHERE overall < 590 AND round = 3 Who had the challenge of night driving?,"SELECT test_taker FROM table_10749367_3 WHERE challenge = ""Night Driving""" Please show the name of the conductor that has conducted orchestras founded after 2008.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008 What are the total quantities of the items ordered by customer 101660 on 10/5/1995?,SELECT SUM(T2.l_quantity) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderdate = '1995-10-05' AND T1.o_custkey = 101660 "What week has a Date of October 4, 1992?","SELECT SUM(week) FROM table_name_78 WHERE date = ""october 4, 1992""" "What is the average for all movies? | average what? | Sorry, the average budget for all movies?",SELECT avg ( budget_million ) FROM movie Find the number of students in total.,SELECT count(*) FROM list who is the the incumbent with opponent being anthony weiner (d) unopposed,"SELECT incumbent FROM table_13833770_3 WHERE opponent = ""Anthony Weiner (D) unopposed""" Which team had 1 position?,SELECT team FROM table_name_65 WHERE position = 1 Find the ids of orders which are shipped after 2000-01-01.,"SELECT order_id FROM shipments WHERE shipment_date > ""2000-01-01""" "Where attendance is 79,431 what is date?","SELECT date FROM table_name_61 WHERE attendance = ""79,431""" "For the Yelp business in ""Tempe"" city which got ""3.5"" stars and review count as ""Uber"", how many ""long"" reviews did it get?",SELECT COUNT(T2.review_length) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Tempe' AND T1.stars = '3.5' AND T1.review_count = 'Uber' AND T2.review_length = 'Long' Which is located in Nigeria?,"SELECT name FROM table_name_72 WHERE location = ""nigeria""" Can you list them by the number of rooms in decending order? | Do you mean roomnumber? | Yes,select blockcode from room order by RoomNumber desc "What is the average To Par, when Player is ""Billy Casper""?","SELECT AVG(to_par) FROM table_name_20 WHERE player = ""billy casper""" What is the average Year when Australia was the runner-up at victoria golf club?,"SELECT AVG(year) FROM table_name_8 WHERE runners_up = ""australia"" AND venue = ""victoria golf club""" Which Zaire region is home to the country's deepest lake's Name it and list its depth.,"SELECT T3.Name, T1.Name, T1.Depth FROM lake AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T4.Name = 'Zaire'" List the names of mountains that do not have any climber.,SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber) How many unemployed disabled students have been absent for 8 months from school?,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name INNER JOIN disabled AS T3 ON T2.name = T3.name WHERE T1.month = 8 What's Matts Nilsson's team that's ranked better than 7?,"SELECT team FROM table_name_81 WHERE rank < 7 AND rider = ""matts nilsson""" Who was the builder for joffre,"SELECT builder FROM table_name_60 WHERE name_number = ""joffre""" find the names of states that have some collage plating in goalie and mid positions.,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' "What are the names and buildings of the deparments, sorted by budget descending?","SELECT dept_name , building FROM department ORDER BY budget DESC" How many films in the horror category were included in PG-13-rated?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Horror' AND T1.rating = 'PG-13' Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.,SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id "Find the titles of all the papers written by ""Aaron Turon"".","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Aaron"" AND t1.lname = ""Turon""" Calculate the average review star from users in businesses located in South Carolina and California state.,SELECT 1.0 * (( SELECT SUM(T1.stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.state = 'SC' ) + ( SELECT SUM(T1.stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.state = 'CA' )) / ( SELECT SUM(T1.stars) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id ) AS reslut How many events resulted in a top-25 less than 2?,SELECT COUNT(events) FROM table_name_13 WHERE top_25 < 2 Who were the candidates in the Louisiana 4 district?,"SELECT candidates FROM table_1341604_19 WHERE district = ""Louisiana 4""" How many different classes of verbs are there whose part 3 is lucon?,"SELECT COUNT(class) FROM table_1745843_6 WHERE part_3 = ""lucon""" What is the highest salary in the company?,SELECT max ( salary ) FROM Employee How many documents were shipped by USPS?,"SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS"";" What is the number of deputies with 94.2% of the votes?,"SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = ""94.2%""" What are the country codes for countries that do not speak English?,"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""" What are the match IDs that were played at Brabourne Stadium?,SELECT T1.Match_Id FROM Match AS T1 INNER JOIN Venue AS T2 ON T2.Venue_Id = T1.Venue_Id WHERE T2.Venue_Name = 'Brabourne Stadium' Which Tournament has a Score of 3–6 6–4 4–6?,"SELECT tournament FROM table_name_43 WHERE score = ""3–6 6–4 4–6""" Which polling institute has a 30.7% for social democratic?,"SELECT polling_institute FROM table_name_81 WHERE social_democratic = ""30.7%""" What is the highest episode number in which Jamie Oliver guest-hosted?,"SELECT MAX(episode_number) FROM table_name_89 WHERE guest_host = ""jamie oliver""" What's the location for men's speed skating?,"SELECT location FROM table_name_70 WHERE distance = ""men's speed skating""" how many class with poles being bigger than 1.0,SELECT COUNT(class) FROM table_14139408_1 WHERE poles > 1.0 What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?,"SELECT AVG(grid) FROM table_name_2 WHERE manufacturer = ""aprilia"" AND laps > 16" "In 2016, what is the name of the university in Australia with the highest score in Citations criteria?",SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id INNER JOIN country AS T4 ON T4.id = T3.country_id WHERE T1.criteria_name = 'Citations' AND T2.year = 2016 AND T1.id = 4 AND T4.country_name = 'Australia' ORDER BY T2.score DESC LIMIT 1 "What instrument did the musician with last name ""Heilo"" use in the song ""Badlands""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Badlands""" "Which Attendance has a Date of september 29, 1968, and a Week smaller than 3?","SELECT MIN(attendance) FROM table_name_17 WHERE date = ""september 29, 1968"" AND week < 3" What is the overall record of the Ravens?,"SELECT overall_record FROM table_name_16 WHERE team = ""ravens""" "Among the title with single digit word count, list down 5 revision page ID of these titles.",SELECT revision FROM pages WHERE words < 10 LIMIT 5 Which Series has a Score of 0–6?,"SELECT series FROM table_name_99 WHERE score = ""0–6""" WHAT IS THE RECORD FOR THE GAME SMALLER THAN 31?,SELECT record FROM table_name_36 WHERE game < 31 Name the degree for otorhinolaryngology,"SELECT degree_diploma FROM table_19304764_2 WHERE discipline = ""Otorhinolaryngology""" List out the names of the awarded character in the awards held in 2009.,SELECT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.year = 2009; Find the appelations that produce wines after the year of 2008 but not in Central Coast area.,"SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast""" Show the countries that have both managers of age above 50 and managers of age below 46.,SELECT Country FROM manager WHERE Age > 50 INTERSECT SELECT Country FROM manager WHERE Age < 46 Show all allergies with type food.,"SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = ""food""" What was the location and attendance for game 60?,SELECT location_attendance FROM table_17121262_9 WHERE game = 60 What is the exit at kilometer (Rizal Park-basis) 164?,"SELECT exit FROM table_name_57 WHERE kilometer_no__rizal_park_basis_ = ""164""" Describe the course level and list of person IDs who taught course ID of 147.,"SELECT T1.courseLevel, T1.course_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id = 141" List all the cities that belong to United Arab Emirates.,SELECT T1.city FROM city AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE country = 'United Arab Emirates' "What type of food is served at the restaurant located at 3140, Alpine Road at San Mateo County?",SELECT T2.food_type FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T3.County = 'san mateo county' AND T1.street_name = 'alpine rd' AND T1.street_num = 3140 What is the population for County Mayo with the English Name Carrowteige?,"SELECT population FROM table_101196_1 WHERE county = ""county Mayo"" AND english_name = ""Carrowteige""" What state or province has the most staff living in it?,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county ORDER BY count ( * ) DESC LIMIT 1 What is the attendance of the game that has the opponent of The Nationals with a record of 68-51?,"SELECT SUM(attendance) FROM table_name_42 WHERE opponent = ""nationals"" AND record = ""68-51""" "What is Rank Points, when Event is ""WC Milan"", and when Shooter is ""Lalita Yauhleuskaya ( AUS )""?","SELECT rank_points FROM table_name_77 WHERE event = ""wc milan"" AND shooter = ""lalita yauhleuskaya ( aus )""" "When John Mcenroe won at Montreal, what was the score?","SELECT score FROM table_name_43 WHERE location = ""montreal"" AND champion = ""john mcenroe""" How many artists are there?,SELECT count(*) FROM artist What is the GDP of the city Shanghai in the table?,"SELECT GDP FROM city WHERE city = ""Shanghai""" What is the building name of division AS? | Do you mean DName? | Nope building name,"SELECT Building FROM DEPARTMENT WHERE Division = ""AS""" Name the english title for zhang yimou,"SELECT english_title FROM table_name_18 WHERE director = ""zhang yimou""" Who's the writer of the episode seen by 3.25 million people in the US?,"SELECT written_by FROM table_18268826_1 WHERE us_viewers__million_ = ""3.25""" What tyres have 1 point and an ensign n177 chassis?,"SELECT tyres FROM table_name_15 WHERE points = ""1"" AND chassis = ""ensign n177""" What is the smallest value of population if the value for Serbs is 73.53%?,"SELECT MIN(population) FROM table_2374338_2 WHERE serbs = ""73.53%""" What is the effective date of the claim that has the largest amount of total settlement?,SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 "Which tournament has 1r in 2011, 1r in 2012, A in 2005, and 1r in 2010?","SELECT tournament FROM table_name_62 WHERE 2011 = ""1r"" AND 2012 = ""1r"" AND 2005 = ""a"" AND 2010 = ""1r""" What was the resolution for KO opposing Cliff Beckett?,"SELECT res FROM table_name_81 WHERE type = ""ko"" AND opponent = ""cliff beckett""" How many books written by Akira Watanabe are available on Gravity?,SELECT COUNT(*) FROM author AS T1 INNER JOIN book_author AS T2 ON T1.author_id = T2.author_id WHERE T1.author_name = 'Akira Watanabe' What are the actors that have the same forename as Johnny? Please include in your answer the full names of these actors.,"SELECT first_name, last_name FROM actor WHERE first_name = 'Johnny'" "Which episode was nominated for the award for ""Outstanding Costume Design for a Series""?",SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Outstanding Costume Design for a Series' Give the names of the courses with at least five enrollments.,SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5 Name the date of vacancy for fabio brini,"SELECT date_of_vacancy FROM table_17275810_7 WHERE replaced_by = ""Fabio Brini""" "What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?","SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = ""pembroke"" AND laid_down = ""may 1825""" How many drivers were in the Australian Grand Prix held in 2009?,"SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = ""Australian Grand Prix"" AND YEAR = 2009" Who directed episode number 18 in the series?,SELECT directed_by FROM table_25668962_1 WHERE no_in_series = 18 Calculate the total number of IDs for the game published by Capcom and Sony Computer Entertainment.,"SELECT COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name IN ('Capcom', 'Sony Computer Entertainment')" How many American comedies are there?,SELECT COUNT(T1.movieid) FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'USA' AND T2.genre = 'comedy' What Poles have Races smaller than 4?,SELECT AVG(poles) FROM table_name_59 WHERE races < 4 What is the sum of all silver medals with more than 2 bronze?,SELECT SUM(silver) FROM table_name_82 WHERE bronze > 2 Find the name of the youngest organization.,SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1 What is Japan's Area km²?,"SELECT area_km² FROM table_name_45 WHERE country = ""japan""" What is the product name of that?,SELECT product_name FROM products where product_type_code = ( SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg ( product_price ) > ( SELECT avg ( product_price ) FROM products ) ) Which event in 2007 had a position of 5th?,"SELECT event FROM table_name_87 WHERE year = 2007 AND position = ""5th""" "Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?","SELECT team FROM table_name_29 WHERE location_attendance = ""staples center 18,997"" AND series = ""1–0""" "GREAT, CAN YOU GIVE ME THE DETAILS OF AMERICAN ARCHITECT NAMES",SELECT * FROM architect where nationality = 'American' "what is the tournament when 2011 is a, 2009 is lq and 2012 is 1r?","SELECT tournament FROM table_name_65 WHERE 2011 = ""a"" AND 2009 = ""lq"" AND 2012 = ""1r""" How do you say Friday in Polish?,"SELECT friday_fifth_day FROM table_1277350_5 WHERE day__see_irregularities__ = ""Polish""" How many people had high rebounds in game 14?,SELECT COUNT(high_rebounds) FROM table_28220778_21 WHERE game = 14 what is the average top-5 when the cuts made is more than 34?,SELECT AVG(top_5) FROM table_name_1 WHERE cuts_made > 34 What number episode in the series was written by David Zuckerman? ,"SELECT no_in_series FROM table_23242958_1 WHERE written_by = ""David Zuckerman""" Which appelation produces the most expensive wine?,SELECT T1.appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.price = ( select max ( price ) from wine ) "What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928?","SELECT opponent_number FROM table_name_25 WHERE site = ""memorial stadium • minneapolis, mn"" AND date = ""10/20/1928""" Who drove a race car with a Mercedes IC 108e engine and has an 8-10 record?,"SELECT drivers FROM table_name_28 WHERE engine = ""mercedes ic 108e"" AND races = ""8-10""" How much does the gross domestic products goes to the industry sector for Singapore?,SELECT T2.GDP * T2.Industry FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Singapore' List the employees who have not showed up in any circulation history of documents. List the employee's name.,SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id Which Year has a Rank of 25?,"SELECT year FROM table_name_64 WHERE rank = ""25""" "Show the shipping charge and customer id for customer orders with order status ""Paid""","SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Paid'" "Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?","SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = ""february 28, 2005""" What was the name of the storm that affected Afghanistan and Albania between May 19 and May 25?,"SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' AND T3.Dates_active = ""May19–May25"" INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania' AND T3.Dates_active = ""May19–May25""" What was the away team at mcg?,"SELECT away_team FROM table_name_44 WHERE venue = ""mcg""" "Which accelerator name contains substring ""Opera""?","SELECT name FROM web_client_accelerator WHERE name LIKE ""%Opera%""" Name the starter for schulte,"SELECT starter FROM table_14342592_4 WHERE player = ""Schulte""" who write the episode 5 in no. in season,SELECT written_by FROM table_19417244_2 WHERE no_in_season = 5 What is the 2008 result when 2006 is Year-End Championship?,"SELECT 2008 FROM table_name_89 WHERE 2006 = ""year-end championship""" "Which date had 67,472 in attendance?","SELECT date FROM table_name_73 WHERE attendance = ""67,472""" What is the Dolphins Group?,"SELECT group FROM table_name_42 WHERE team = ""dolphins""" How many rooms does the Lamberton building have?,SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton' "On 1 september 2007, at the Venue A, what was the average attendance?","SELECT AVG(attendance) FROM table_name_45 WHERE venue = ""a"" AND date = ""1 september 2007""" List the height and net worth of actors starred in Three Men and a Little Lady.,"SELECT T3.`Height (Inches)`, T3.NetWorth FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Three Men and a Little Lady'" How tall is the contestant from Honduras?,"SELECT height__ft_ FROM table_20754016_2 WHERE country = ""Honduras""" which order has high quantity,"SELECT order_id, from Order_Items group by order_id order by sum ( order_quantity ) desc limit 1" What is the user id of Helen,"SELECT u_id FROM useracct where name = ""Helen""" What is the code of Mississippi Valley Airlines?,SELECT Code FROM `Air Carriers` WHERE Description LIKE 'Mississippi Valley Airlines%' In which area was there a score of 68?,SELECT place FROM table_name_42 WHERE score = 68 Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?,"SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = ""bob anderson"" AND production_code = ""kabf16""" "What is the first name, last name, and phone of the customer with card 4560596484842.","SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = ""4560596484842""" "What are the distinct years in which the competitions type is not ""Tournament""?","SELECT DISTINCT YEAR FROM competition WHERE Competition_type != ""Tournament""" List the name of the county with the largest population.,SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1 what is customer Wendell address? | Do you mean the customer address of Wendell | what is the customer address of Wendell?,"SELECT customer_address FROM customers WHERE customer_name = ""Wendell""" In what category was character Jacqui Mcqueen nominated before 2011?,"SELECT category FROM table_name_67 WHERE character = ""jacqui mcqueen"" AND year < 2011" What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research?,SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research' List down the owner's name with a zip code 94104.,SELECT DISTINCT owner_name FROM businesses WHERE owner_zip = '94104' Where was the game on November 20?,"SELECT location_attendance FROM table_10812293_3 WHERE date = ""November 20""" What grand prix was held at Granollers?,"SELECT designated_grand_prix FROM table_name_32 WHERE track = ""granollers""" "What are the names of customers who use payment method ""Cash""?","SELECT customer_name FROM customers WHERE payment_method = ""Cash""" What chasis did the maserati l6s have?,"SELECT chassis FROM table_21977627_1 WHERE engine = ""Maserati L6s""" Which pre-season has May 5 of 21?,"SELECT pre__season FROM table_name_21 WHERE may_5 = ""21""" When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?,"SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = ""N/A"" AND cash_fare = ""N/A""" "No problem, what is the average amount of days for a claim to be settled?",SELECT avg ( Date_Claim_Settled - Date_Claim_Made ) from Claims What is the id of the department store that has both marketing and managing department?,"SELECT T2.dept_store_id FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""marketing"" INTERSECT SELECT T2.dept_store_id FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""managing""" What are the names of poker players whose earnings is higher than 300000?,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000 How many albums are there,SELECT count ( * ) from albums Find the name of the ships that have more than one captain.,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1 What was the score when they had 62 points?,SELECT score FROM table_23453931_8 WHERE points = 62 "What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e?","SELECT diameter__km_ FROM table_name_66 WHERE diameter__mi_ = ""8mi"" AND gill = ""e""" what is the place when the score is 70-70=140?,SELECT place FROM table_name_53 WHERE score = 70 - 70 = 140 What are the interaction types between enzymes and medicine?,SELECT distinct interaction_type FROM medicine_enzyme_interaction What tournament took place on Ground A with 8 rounds?,"SELECT tournament FROM table_name_80 WHERE ground = ""a"" AND round = ""8""" How much does the most recent treatment cost?,SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1 Which week has a record of 5-7-1?,"SELECT week FROM table_name_58 WHERE record = ""5-7-1""" "Among the menus that include milk, what is the menu page id of the menu that has the highest price?",SELECT T1.menu_page_id FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.name = 'Milk' ORDER BY T1.price DESC LIMIT 1 How many kids stay in the rooms reserved by ROY SWEAZY?,"SELECT kids FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY"";" List the active business ID and its stars of the businesses fall under the category of Food.,"SELECT DISTINCT T1.business_id, T1.stars FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' AND T1.active = 'true'" "Hello! Can you provide me with a list of all paper IDs and paper titles that correspond to ""Indiana University""?","SELECT distinct t1.title,t1.paperID FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University""" What is the score of the game with tie number 65?,"SELECT score FROM table_name_23 WHERE tie_no = ""65""" What is the highest heat for a lane past 1 and mark of 1:48.61?,"SELECT MAX(heat) FROM table_name_79 WHERE lane > 1 AND mark = ""1:48.61""" Show the names of products that are in at least two events in ascending alphabetical order of product name.,SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name Which chapter was active from 1906-1991?,"SELECT chapter FROM table_name_5 WHERE charter_range = ""1906-1991""" "What are the names of the workshop groups that have bookings with status code ""stop""?","SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop""" What is the col (m) of the Bewani Mountains High Point peak? ,"SELECT MIN(col__m_) FROM table_18946749_2 WHERE peak = ""Bewani Mountains High Point""" Which Country has a Catalogue number(s) of eredv711?,"SELECT country FROM table_name_94 WHERE catalogue_number_s_ = ""eredv711""" what are the names of people who did not participate in the candidate election.,SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate) What's the title of the episode with production code 104?,SELECT title FROM table_2818164_2 WHERE production_code = 104 What are the unit measure codes for product ID No.762?,"SELECT T2.UnitMeasureCode FROM Product AS T1 INNER JOIN UnitMeasure AS T2 ON T1.SizeUnitMeasureCode = T2.UnitMeasureCode OR T1.WeightUnitMeasureCode = T2.UnitMeasureCode WHERE T1.ProductID = 762 GROUP BY T1.ProductID, T2.UnitMeasureCode" Who was in Lane 5 and had a heat of 7?,SELECT name FROM table_name_32 WHERE heat = 7 AND lane = 5 What are the maximum and minimum settlement amount on record?,"SELECT max(settlement_amount) , min(settlement_amount) FROM settlements" What is the value for 2005 when A is 2009 and 2000?,"SELECT 2005 FROM table_name_98 WHERE 2009 = ""a"" AND 2000 = ""a""" When did the Sunrisers Hyderabad win their first match?,SELECT T1.Match_Date FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Match_Winner = T2.Team_Id WHERE T2.Team_Name = 'Sunrisers Hyderabad' What are all the employee ids and the names of the countries in which they work?,"SELECT employee_id , country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" What is the Place of the Player with a Score of 70-75-70-74=289?,SELECT place FROM table_name_60 WHERE score = 70 - 75 - 70 - 74 = 289 Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.,SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25 What was the away team for the game in Slough Town?,"SELECT away_team FROM table_name_75 WHERE home_team = ""slough town""" Fantastic - what was the total number of perpetrators in China?,"SELECT count ( * ) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""China""" What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?,"SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000" "What are the names of the directors who created a movie with a 5 star rating, and what was the name of those movies?","SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5" "Find the product category description of the product category with code ""Spices"".","SELECT product_category_description FROM ref_product_categories WHERE product_category_code = ""Spices""" Calculate the total sales in all regions with game platform ID 66.,SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.game_platform_id = 66 Where was the singer from? | Do you mean Enrique? | Yes,"SELECT country from song where artist_name = ""Enrique""" How many instructors teach a course in the Spring of 2010?,SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 "What is the division of the review of 5 stars received on December 17, 2017 for the product Eagle National Mortgage?",SELECT T1.division FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T2.Stars = 5 AND T2.Date = '2017-12-17' AND T2.Product = 'Eagle National Mortgage' What is the name of episode # 10a?,"SELECT title FROM table_2701851_2 WHERE no_in_series = ""10a""" Select the names of all the products in the store.,SELECT Name FROM Products What are the ids and names of the web accelerators that are compatible with two or more browsers?,"SELECT T1.id , T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" Which home team score has an Away team of melbourne?,"SELECT home_team AS score FROM table_name_71 WHERE away_team = ""melbourne""" "What game id did the player Walter Samuel get injured during, please?",SELECT game_id FROM injury_accident where Player = 'Walter Samuel' How about students who play sports?,SELECT distinct StuID FROM Sportsinfo Who was the nominee playing the role of Katrina Ludlow in the Law & Order series?,SELECT T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.result = 'Nominee' AND T1.role = 'Katrina Ludlow' AND T1.series = 'Law and Order' List out the discount levels applied for all orders from Ole Group.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T1.`Customer Names` = 'Ole Group' THEN T2.`Discount Applied` END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) WHERE T IS NOT NULL What is the carrier of the most expensive phone?,SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1 What score is the team of charlotte?,"SELECT score FROM table_name_48 WHERE team = ""charlotte""" What is the GDP for Service of the country with Fuenlabrada as its city.,SELECT T4.Service * T4.GDP FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name INNER JOIN economy AS T4 ON T4.Country = T2.Country WHERE T3.Name = 'Fuenlabrada' Who is the author of Bludgeoning Angel Dokuro-Chan?,"SELECT author FROM table_name_49 WHERE title = ""bludgeoning angel dokuro-chan""" What is the first and last name of all students who play Football or Lacrosse?,"SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Football"" OR T1.SportName = ""Lacrosse""" How many accounts does the customer with first name Art and last name Turcotte have?,"SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Art"" AND T2.customer_last_name = ""Turcotte""" Find the first and last name of all the students of age 18 who have vice president votes.,"SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18" What is the fewest points that has more than 29 goals?,SELECT MIN(points) FROM table_name_42 WHERE goal_difference > 29 "Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.","SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC" Name the least rank when games are more than 34 and the season is 2009-10,"SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = ""2009-10""" What was the result on September 20?,"SELECT result FROM table_name_99 WHERE date = ""september 20""" Name the reason for change pennsylvania 13th,"SELECT reason_for_change FROM table_225102_4 WHERE district = ""Pennsylvania 13th""" Name the most number for steve stricker,"SELECT MAX(_number) FROM table_24108789_6 WHERE player = ""Steve Stricker""" "Who authored the paper titled ""Testing timed automata ""?",SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Testing timed automata' What is the median household income for Woodside?,"SELECT median_house__hold_income FROM table_1447085_1 WHERE place = ""Woodside""" "Which Total has a Bronze larger than 1, and a Gold larger than 0?",SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0 Find the first name of students who have cat or dog pet.,SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog' What is the ratio of male and female users of vivo X5pro model?,"SELECT SUM(IIF(T1.gender = 'M', 1, 0)) / SUM(IIF(T1.gender = 'F', 1, 0)) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' AND T2.device_model = 'X5Pro'" What is the name of the recipient when the director was Susan Jacobson?,"SELECT recipient FROM table_name_31 WHERE director_s_ = ""susan jacobson""" What are the URL to the list page on Mubi of the lists with followers between 1-2 and whose last update timestamp was on 2012?,SELECT list_url FROM lists WHERE list_update_timestamp_utc LIKE '2012%' AND list_followers BETWEEN 1 AND 2 ORDER BY list_update_timestamp_utc DESC LIMIT 1 What is the zan 1 that has 11 as the nor 1?,"SELECT zan_1 FROM table_name_34 WHERE nor_1 = ""11""" "Which Races has a T.C. of 3rd, and a D.C. of 7th?","SELECT MIN(races) FROM table_name_14 WHERE tc = ""3rd"" AND dc = ""7th""" what's the home team where streak is l3 and leading scorer is roy : 23,"SELECT home FROM table_11964047_5 WHERE streak = ""L3"" AND leading_scorer = ""Roy : 23""" Show all church names except for those that had a wedding in year 2015.,SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 Which Wrestler has an Elimination of 5?,"SELECT wrestler FROM table_name_63 WHERE elimination = ""5""" What is the quantity of the mountains does Japan have?,SELECT COUNT(DISTINCT T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' What date shows Binia Feltscher-Beeli as the runner-up skip?,"SELECT date FROM table_name_68 WHERE runner_up_skip = ""binia feltscher-beeli""" Who are the lieutenant governor and comptroller from the democratic party?,"SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = ""Democratic""" "Which Player had a Date of 31 jan. 2008, and a Transfer fee of £3.87m?","SELECT player FROM table_name_44 WHERE date = ""31 jan. 2008"" AND transfer_fee = ""£3.87m""" How many airports haven't the pilot 'Thompson' driven an aircraft?,SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot = 'Thompson' ); what's the ungen for ត្រីទស?,"SELECT ungegn FROM table_name_70 WHERE word_form = ""ត្រីទស""" "Which Office has a Party of dem, and a First Elected of 1991†?","SELECT office FROM table_name_2 WHERE party = ""dem"" AND first_elected = ""1991†""" Which category has the highest number of users?,"SELECT T.category FROM ( SELECT T2.category, COUNT(T1.app_id) AS num FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T2.label_id = T1.label_id GROUP BY T1.app_id, T2.category ) AS T ORDER BY T.num DESC LIMIT 1" Which player was a running back from San Jose State?,"SELECT player FROM table_name_94 WHERE position = ""running back"" AND college = ""san jose state""" How many orders each customer have?,"SELECT customer_id, count ( * ) from orders group by customer_id" What was the score in game 81?,SELECT score FROM table_name_60 WHERE game__number = 81 What was the record on december 8 when the boston bruins visited?,"SELECT record FROM table_name_49 WHERE visitor = ""boston bruins"" AND date = ""december 8""" What is the percentage difference of English and non-English-language crime movies in other countries in year 3?,"SELECT CAST(SUM(IIF(T1.isEnglish = 'T', 1, 0)) - SUM(IIF(T1.isEnglish = 'F', 1, 0)) AS REAL) * 100 / COUNT(T1.movieid) FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'other' AND T1.year = 3" "When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?","SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = ""johnson & johnson 156,515.9""" "How many Pos have a Driver of todd bodine, and a Car # larger than 30?","SELECT COUNT(pos) FROM table_name_49 WHERE driver = ""todd bodine"" AND car__number > 30" "What is Date, when Home Team is ""Chester City""?","SELECT date FROM table_name_18 WHERE home_team = ""chester city""" What is the average crowd size at glenferrie oval?,"SELECT AVG(crowd) FROM table_name_16 WHERE venue = ""glenferrie oval""" Who was the director of Pecado Mortal,"SELECT director FROM table_15277629_1 WHERE original_title = ""Pecado Mortal""" Name th margin of victory when date is 10 jul 2011,"SELECT margin_of_victory FROM table_1590652_4 WHERE date = ""10 Jul 2011""" Who was the road team on May 2?,"SELECT road_team FROM table_name_24 WHERE date = ""may 2""" What was the time for a grid less than 6 for Noriyuki Haga?,"SELECT time FROM table_name_55 WHERE grid < 6 AND rider = ""noriyuki haga""" Show student ids who are on scholarship and have major 600.,SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' What is the dutch word for one?,"SELECT dutch FROM table_name_18 WHERE english = ""one""" "Who was the opponent on May 8, 2006?","SELECT opponent_in_the_final FROM table_name_75 WHERE date = ""may 8, 2006""" "What is the lowest Minutes Played, when Rebounds is 25, and when Field Goal % is less than ""0.315""?",SELECT MIN(minutes_played) FROM table_name_95 WHERE rebounds = 25 AND field_goal__percentage < 0.315 What is the time for stage ss18?,"SELECT time FROM table_13050822_2 WHERE stage = ""SS18""" Do you know the mills built by architects who also built a bridge longer than 80 meters?,SELECT * FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80 How many total games did she play?,select sum ( Gamesplayed ) from sportsinfo group by stuid order by sum ( hoursperweek ) desc limit 1 "What venue has a weight (kg) greater than 55, and won as the result?","SELECT venue FROM table_name_64 WHERE weight__kg_ > 55 AND result = ""won""" which # / county is correct for year less than 1981 and chalmers as location?,"SELECT _number___county FROM table_name_90 WHERE year_joined < 1981 AND location = ""chalmers""" How many doubles champions were there for the Serbia f6 Futures tournament?,"SELECT COUNT(doubles_champions) FROM table_11900378_1 WHERE tournament = ""Serbia F6 Futures""" Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.,SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' What is the average number of employees of the departments whose rank is between 10 and 15?,SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15 Show the name of each county along with the corresponding number of delegates from that county.,"SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id" "How many track numbers were recorded on November 16, 1959 for the title of I Couldn't Hear Nobody Pray?","SELECT COUNT(track_number) FROM table_name_58 WHERE recording_date = ""november 16, 1959"" AND title = ""i couldn't hear nobody pray""" Name the score for opponents of nathan healey igor kunitsyn,"SELECT score FROM table_name_57 WHERE opponents_in_the_final = ""nathan healey igor kunitsyn""" Describe the device user gender and age of the event ID of 15251.,"SELECT T1.gender, T1.age FROM gender_age AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T2.event_id = 15251" What was the record on April 7?,"SELECT record FROM table_name_63 WHERE date = ""april 7""" "Provide the title, total gross, and MPAA rating of the movie which has a hero named Elsa.","SELECT T1.movie_title, T1.total_gross, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T3.name = T1.movie_title WHERE T2.hero = 'Elsa'" What is guido bontempi's general classification when he has a stage of 6?,"SELECT general_classification FROM table_name_51 WHERE winner = ""guido bontempi"" AND stage = ""6""" "For students who have pets , how many pets does each student have ? list their ids instead of names .","select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid" Please list all first and last names of clients who live in New York city.,"SELECT first, last FROM client WHERE city = 'New York City'" Give the names of wines with prices above any wine produced in 2006.,SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006) "Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back?","SELECT AVG(round) FROM table_name_52 WHERE pick__number > 26 AND position = ""defensive back""" What is the average length in feet of the bridges?,SELECT avg(length_feet) FROM bridge Show the most common nationality of hosts.,SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 "What are the maximum and minimum sales of the companies whose industries are not ""Banking"".","SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> ""Banking""" Who made the challenge in the Australian Grand Prix?,"SELECT challenge FROM table_25531112_2 WHERE event = ""Australian Grand Prix""" What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games?,SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022 What is the smallest decile with a Name of st mary's catholic school?,"SELECT MIN(decile) FROM table_name_70 WHERE name = ""st mary's catholic school""" What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins?,SELECT MAX(losses) FROM table_name_52 WHERE against > 1427 AND wins > 5 Which project made the most number of outcomes? List the project details and the project id.,"SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1" Sort the names of all counties in descending alphabetical order.,SELECT County_name FROM county ORDER BY County_name DESC Return the claim start date for the claims whose claimed amount is no more than the average,SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims ) Find the last names of faculties who are members of computer science department.,"SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = ""Computer Science""" Show the number of products with category Spices and typically sold above 1000?,"SELECT count ( * ) FROM products WHERE product_category_code = ""Spices"" AND typical_buying_price > 1000" What campuses are located in the county of Los Angeles?,"SELECT campus FROM campuses WHERE county = ""Los Angeles""" "What are the names of the county that the delegates on ""Appropriations"" committee belong to?","SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = ""Appropriations""" "Who was the visitor on december 15, 1976?","SELECT visitor FROM table_name_94 WHERE date = ""december 15, 1976""" What is the donor payment in Belgium?,"SELECT donor_payment FROM table_16175217_1 WHERE country = ""Belgium""" Count the number of races.,SELECT count(*) FROM race List the official names of cities that have not held any competition.,SELECT Official_Name FROM city WHERE NOT City_ID IN (SELECT Host_city_ID FROM farm_competition) How many parties are there?,SELECT count ( * ) FROM party "What is Place, when Player is ""Mike Souchak""?","SELECT place FROM table_name_68 WHERE player = ""mike souchak""" Which European countries had the highest private expenditure on health in 2005? List the top ten countries in descending order and find the source of the data.,"SELECT DISTINCT T1.CountryCode, T3.Description FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T1.CountryCode = T3.Countrycode WHERE T2.IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)' AND T2.Value > 0 AND T2.year = 2005 ORDER BY T2.Value DESC LIMIT 10" How many games did they play in 1905?,"SELECT AVG(played) FROM table_name_83 WHERE years = ""1905""" What is the format for Catalog CL 2372?,"SELECT format FROM table_name_96 WHERE catalog = ""cl 2372""" "Among the trips in August 2013, how many bikes were borrowed from Redwood City.",SELECT COUNT(T2.start_date) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T2.start_date LIKE '8/%/2013%' AND T1.city = 'Redwood City' What team did Derek Black Play for prior to being drafted?,"SELECT college_junior_club_team FROM table_1473672_6 WHERE player = ""Derek Black""" "Among the players who won an award in the year 1983, how many of them play the position of goalie?",SELECT COUNT(playerID) FROM AwardsPlayers WHERE pos = 'G' AND year = 1983 How many routes are there in the United States ?,select count ( * ) from routes AS T1 JOIN airlines AS T2 ON T2.alid = T1.alid WHERE T2.country = 'United States' Show the member name and hometown who registered a branch in 2016.,"SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016" What date did Adriano Buzaid have the pole position?,"SELECT date FROM table_21373283_3 WHERE pole_position = ""Adriano Buzaid""" What is the Gecko value for the item that has a Trident value of 'font'?,"SELECT gecko FROM table_name_34 WHERE trident = ""font""" What is the publisher name of the book titled The Illuminati?,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Illuminati' Which airport did Republic Airline fly the most from?,SELECT T2.DEST FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Republic Airline: YX' GROUP BY T2.DEST ORDER BY COUNT(T2.DEST) DESC LIMIT 1 How many territory fall into region 1?,SELECT COUNT(TerritoryID) FROM Territories WHERE RegionID = 1 What are the ids of all students who don't play sports?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo "Thanks, can you just show the number of different departments in the table?","SELECT count ( DISTINCT dept_name ) , school_code FROM department GROUP BY school_code HAVING count ( DISTINCT dept_name ) < 5" What pick did Clemson choose?,"SELECT pick FROM table_name_38 WHERE school = ""clemson""" "Who is the ""CTO"" of club ""Hopkins Student Enterprises""? show the first name and the last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t2.position = ""CTO""" "From 2016 to 2019, how many users each year were asked the question 13?","SELECT SurveyID, COUNT(UserID) FROM Answer WHERE QuestionID = 13 AND SurveyID BETWEEN 2016 AND 2019 GROUP BY SurveyID" Find the names of all English songs.,"SELECT song_name FROM song WHERE languages = ""english""" What is the Head Coach of Novy Urengoy?,"SELECT head_coach FROM table_name_43 WHERE town = ""novy urengoy""" What is the description for the livery Br Grey?,"SELECT description FROM table_name_81 WHERE livery = ""br grey""" What is the away team score when the home team is North Melbourne?,"SELECT away_team AS score FROM table_name_52 WHERE home_team = ""north melbourne""" What circuit was after round 2 in Victoria?,"SELECT circuit FROM table_name_64 WHERE round > 2 AND state_territory = ""victoria""" "Provide the number of users who took part in the ""mental health survey for 2016"".",SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2016' Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.,"SELECT T1.firstName, T1.lastName, T1.reportsTo FROM employees AS T1 INNER JOIN customers AS T2 ON T1.employeeNumber = T2.salesRepEmployeeNumber INNER JOIN payments AS T3 ON T2.customerNumber = T3.customerNumber ORDER BY T3.amount DESC LIMIT 1" What day was the record 14-27?,"SELECT date FROM table_23274514_6 WHERE record = ""14-27""" What was Week 15 when Week 12 was Notre Dame (7-2)?,"SELECT week_15__final__dec_3 FROM table_name_50 WHERE week_12_nov_13 = ""notre dame (7-2)""" What show was played on ABC laster after 2002?,"SELECT show FROM table_name_15 WHERE network__last_aired_ = ""abc"" AND last_aired > 2002" What episode premier received 0.680 million viewers?,"SELECT original_airdate FROM table_23392257_4 WHERE viewers__millions_ = ""0.680""" "What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation?","SELECT total FROM table_name_2 WHERE gold = 2 AND nation = ""brazil (bra)""" "What is Party, when Left Office is ""23 April 2005"", when Portfolio is ""Minister of Reforms and Devolutions""?","SELECT party FROM table_name_17 WHERE left_office = ""23 april 2005"" AND portfolio = ""minister of reforms and devolutions""" What is the Place that has a Date of 4 august 2012?,"SELECT place FROM table_name_13 WHERE date = ""4 august 2012""" "How many nominations did Law and Order season 9, episode 20 get?",SELECT COUNT(T2.award_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.series = 'Law and Order' AND T1.season = 9 AND T1.episode = 20 Which track does the Woodward Stakes race take place on?,"SELECT track FROM table_name_72 WHERE race = ""woodward stakes""" How many provinces have evening gown score of 8.49,"SELECT COUNT(province) FROM table_15081939_4 WHERE evening_gown = ""8.49""" "How many calories does the recipe ""Raspberry Chiffon Pie"" contain?",SELECT T2.calories FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' List all the MCs with 5 appearances who were inducted in 2007?,SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007 Which Share of seats has a European election (UK) of 2009?,SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = 2009 How many customers gave a product the best possible rating? Please list their names.,SELECT ReviewerName FROM ProductReview WHERE Rating = 5 What is the largest silver value associated with 0 golds?,SELECT MAX(silver) FROM table_name_42 WHERE gold < 0 Who had the most assists in the game against Indiana?,"SELECT high_assists FROM table_name_57 WHERE team = ""indiana""" What is the country of Ericamouth?,SELECT country from Addresses where city = 'Ericamouth' How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?,"SELECT SUM(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn""" Which district does Maria Miller live in?,SELECT T2.district FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller' Who is the co-contestant (yaar vs. Pyaar) with Vishal Singh as the main contestant?,"SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_90 WHERE main_contestant = ""vishal singh""" Which city has most number of customers?,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 "For the Akinator app, how many reviews have sentiment subjectivity of no more than 0.5 and what is its current version?","SELECT COUNT(T2.Sentiment_Subjectivity), T1.""Current Ver"" FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Akinator' AND T2.Sentiment_Subjectivity < 0.5" "Which day in the month of November, 2014 have a foggy weather in the zip code 94301 and in total, how many bikes were borrowed by subscribers from all of the stations in the said day?","SELECT T2.date, COUNT(T1.start_station_name) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '11/%/2014%' AND T2.zip_code = 94301 AND T2.events = 'Fog' AND T1.subscription_type = 'Subscriber'" give the total attendance Cowboys Stadium,"SELECT Total_Attendance FROM stadium where name = ""Cowboys Stadium""" What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?,"SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = ""holinshed"" AND bob_chiarelli = ""22.5%""" What is the 2008 result where 2003 is 325?,"SELECT 2008 FROM table_name_34 WHERE 2003 = ""325""" What was the constructor in 1975?,SELECT constructor FROM table_23548160_1 WHERE year = 1975 "Of all the lakes in Bolivia, which is the deepest?",SELECT T1.Name FROM lake AS T1 INNER JOIN geo_lake AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T4.Name = 'Bolivia' ORDER BY T1.Depth DESC LIMIT 1 List all the distinct cities,SELECT DISTINCT city FROM addresses Return the full name of the customer who made the first rental.,"SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1" Show the cinema name and location for cinemas with capacity above average.,"SELECT name , LOCATION FROM cinema WHERE capacity > (SELECT avg(capacity) FROM cinema)" What is the lowest round number for the fight that had a time of 1:09?,"SELECT MIN(round) FROM table_name_12 WHERE time = ""1:09""" "What venue did the game on september 5, 1998 take place at?","SELECT venue FROM table_name_71 WHERE date = ""september 5, 1998""" State the coordinate of Sac State American River Courtyard.,"SELECT T2.Latitude, T2.Longitude FROM location AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID WHERE T1.LocationName = 'Sac State American River Courtyard'" what is the date that the claim was settled?,SELECT T2.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count ( * ) DESC LIMIT 1 Tell me the 2012 when 2005 is 314,"SELECT 2012 FROM table_name_82 WHERE 2005 = ""314""" what year was it opened?,"SELECT openning_year from cinema where name = ""Codling""" Name the date for princes park,"SELECT date FROM table_name_87 WHERE venue = ""princes park""" "Among the matches of Delhi Daredevils in 2014, how many won matches are there?",SELECT COUNT(T1.Match_Winner) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 OR T2.Team_Id = T1.Team_2 WHERE T2.team_name = 'Delhi Daredevils' AND T1.Match_Date LIKE '2014%' "What is the rank of Lee Trevino, who had less than 27 wins?","SELECT SUM(rank) FROM table_name_89 WHERE player = ""lee trevino"" AND wins < 27" What is the the average percentage of profit for the all the product?,SELECT AVG((T1.ListPrice - T2.StandardCost) * 100 / T2.StandardCost) FROM ProductListPriceHistory AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID What Player is from the Southern Illinois team?,"SELECT player FROM table_name_96 WHERE school_club_team = ""southern illinois""" "WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?","SELECT manufacturer FROM table_name_44 WHERE laps = ""24"" AND time_retired = ""+1.965""" What is the average number of pages per minute color?,SELECT avg(pages_per_minute_color) FROM product Name the party for the pennsylvania 25,"SELECT party FROM table_1342013_37 WHERE district = ""Pennsylvania 25""" What is the goal difference for the team from Chorley?,"SELECT goal_difference FROM table_name_99 WHERE team = ""chorley""" "What is the venue on October 13, 2007?","SELECT venue FROM table_name_60 WHERE date = ""october 13, 2007""" What was Parker Moloney's party affiliation when he was the Minister for Markets?,"SELECT party FROM table_name_3 WHERE minister = ""parker moloney"" AND title = ""minister for markets""" Who is the captain of Dave Jones' team?,"SELECT team AS captain FROM table_26593762_2 WHERE manager = ""Dave Jones""" how many ref colors are on the table,SELECT COUNT ( DISTINCT color_description ) FROM Ref_Colors What opponent has a loss of McCaskill (9-11)?,"SELECT opponent FROM table_name_10 WHERE loss = ""mccaskill (9-11)""" What is the last name of every student who is either female or living in a city with the code BAL or male and under 20?,SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20 How many eateries had low risk for violation with unpermitted food facility description?,SELECT COUNT(DISTINCT business_id) FROM violations WHERE risk_category = 'Low Risk' AND description = 'Unpermitted food facility' What was the date of the game when the record was 66-38?,"SELECT date FROM table_name_54 WHERE record = ""66-38""" "What are the famous titles of the artist ""Triumfall""?","SELECT Famous_Title FROM artist WHERE Artist = ""Triumfall""" List the date of perpetrators in descending order of the number of people killed.,SELECT Date FROM perpetrator ORDER BY Killed DESC; Who is the investor that has invested in the most number of entrepreneurs?,SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1 "Which city has more Yelp_Business that's more appealing to users, Scottsdale or Anthem?",SELECT city FROM Business ORDER BY review_count DESC LIMIT 1 Please list the names of the male students that belong to the navy department.,SELECT T1.name FROM enlist AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy' Find the maximum and total number of followers of all users.,"SELECT max(followers) , sum(followers) FROM user_profiles" What's the result at psinet stadium when the cincinnati bengals are the opponent?,"SELECT result FROM table_name_39 WHERE game_site = ""psinet stadium"" AND opponent = ""cincinnati bengals""" Show the id of each employee and the number of document destruction authorised by that employee.,"SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID" What is the poor law union on Marshalstown?,"SELECT poor_law_union FROM table_28802165_1 WHERE townland = ""Marshalstown""" List the software platform shared by the greatest number of devices.,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT ( * ) DESC LIMIT 1 "What is the average Goals, when Team is ""Rah Ahan"", and when Division is less than 1?","SELECT AVG(goals) FROM table_name_81 WHERE team = ""rah ahan"" AND division < 1" What cub team or college did Bob Law come from?,"SELECT college_junior_club_team FROM table_1965650_8 WHERE player = ""Bob Law""" What are the first names and last names of all the guests?,"SELECT guest_first_name , guest_last_name FROM Guests" "When the blank ends at 1, what is the PA?",SELECT COUNT(pa) FROM table_17012578_6 WHERE blank_ends = 1 "Who was the opponent at the game held on December 24, 2005?","SELECT opponent FROM table_name_16 WHERE date = ""december 24, 2005""" "What are the average, minimum, and max ages for each of the different majors?","SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major" "What about classes with the course description ""Statistics""?",SELECT * FROM course WHERE crs_description LIKE '%Statistics%' "Hi, could you please let me know the list of all female students who are older than 18 and not majoring in 600? | what did you want to get about female students who are older than 18 and not majoring in 600? | Oh sorry for the confusion, it would be great if I can see their first and last name.","SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major ! = 600 AND Sex = 'F'" In which year were most departments established?,SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1 What is the average price across all products?,SELECT avg(price) FROM products Find the total saving balance for each account name.,"SELECT SUM(T2.balance), T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name" Calculate the average net profit of bar tools which has ordered quantity exceed 5.,"SELECT SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T2.`Product Name` = 'Bar Tools' AND T1.`Order Quantity` > 5" Return the name of each physician and the number of patients he or she treats.,"SELECT T1.name , count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid" What is the average age for all journalists from England.,"SELECT avg ( age ) FROM journalist WHERE Nationality = ""England""" How many Sales Manager who are working in Sydney? List out their email.,SELECT T1.email FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T1.jobTitle LIKE '%Sales Manager%' AND T2.city = 'Sydney' Which year did Europe produce the most cars?,SELECT T1.model_year FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'Europe' GROUP BY T1.model_year ORDER BY COUNT(T1.model_year) DESC LIMIT 1 What is the gender of the user who tweeted `tw-715909161071091712`?,SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.TweetID = 'tw-715909161071091712' What are the bad aliases of the postal points from East Setauket?,SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'East Setauket' Which country is umpire TH Wijewardene from?,SELECT T2.Country_Name FROM Umpire AS T1 INNER JOIN country AS T2 ON T2.Country_Id = T1.Umpire_Country WHERE T1.Umpire_Name = 'TH Wijewardene' What are the maximum price and score of wines produced by St. Helena appelation?,"SELECT MAX(Price), MAX(Score) FROM WINE WHERE Appelation = ""St. Helena""" List down the MapLight ID of the representatives in Maine.,SELECT T1.maplight_id FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.type = 'rep' AND T2.state = 'ME' GROUP BY T1.maplight_id What is every value for Italian when the part is English?,"SELECT italian FROM table_25401_15 WHERE english = ""part""" What is the lowest Rank for a Guam Player?,"SELECT MIN(rank) FROM table_name_77 WHERE country = ""guam""" Name the office running for for anthony mussara,"SELECT office_running_for FROM table_1855841_1 WHERE candidate = ""Anthony Mussara""" Hello! Can you show me a list of all of the shop names?,SELECT Shop_Name FROM shop Name the speed for 1:36.46.93,"SELECT speed FROM table_name_13 WHERE time = ""1:36.46.93""" What are the districts of the addresses?,SELECT district FROM address What Location Attendance has an Opponent of at denver nuggets?,"SELECT location_attendance FROM table_name_66 WHERE opponent = ""at denver nuggets""" which one of these rooms has reservations?,SELECT * FROM rooms WHERE roomid IN ( SELECT DISTINCT room FROM reservations ) What is the maximum market share of the browsers?,SELECT max ( market_share ) FROM browser Return the different names of cities that are in Asia and for which Chinese is the official language.,"SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = ""Asia""" "What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4?","SELECT shooter FROM table_name_21 WHERE event = ""wc beijing"" AND total = ""16"" AND rank_points = ""4""" How much Overall has a Pick # of 26?,SELECT SUM(overall) FROM table_name_25 WHERE pick__number = 26 Calculate the average quantity per sales from sales id 20 to 30.,SELECT AVG(Quantity) FROM Sales WHERE SalesID BETWEEN 20 AND 30 "Of the students with high salaries, how many took the computer vision course?",SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN registration AS T2 ON T2.student_id = T1.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.salary = 'high' AND T3.name = 'Computer Vision' What type has rest day as a course and was on 21 may?,"SELECT type FROM table_name_83 WHERE course = ""rest day"" AND date = ""21 may""" "In how many different years did schools located in Logan Township, Pennsylvania join the Conference?","SELECT COUNT(joined) FROM table_1971074_1 WHERE location = ""Logan Township, Pennsylvania""" How many different team captains does the club Sliven 2000 have?,"SELECT COUNT(team_captain) FROM table_23214833_1 WHERE club = ""Sliven 2000""" Give the names of wrestlers and their elimination moves.,"SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID" List all employees in the circulation history of the document with id 1. List the employee's name.,SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1; What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check',SELECT payment_date FROM payments WHERE amount_paid > 300 OR payment_type_code = 'Check' What were the bowling figures for the competition at Pietermaritzburg?,"SELECT bowling_figures_wickets_runs__overs_ FROM table_name_19 WHERE venue = ""pietermaritzburg""" When did the game at Arden Street Oval occur?,"SELECT date FROM table_name_7 WHERE venue = ""arden street oval""" Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?,"SELECT compression_ratio FROM table_name_57 WHERE dx_10_name = ""(none)"" AND fourcc = ""dxt4""" List ids for all student who are on scholarship.,SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' Which vehicle has a class 6c3g?,"SELECT vehicle FROM table_name_20 WHERE class = ""6c3g""" Name the last time for club of newell's old boys,"SELECT last_title FROM table_name_11 WHERE club = ""newell's old boys""" "Show the times of elimination by ""Punk"" or ""Orton"".","SELECT TIME FROM elimination WHERE Eliminated_By = ""Punk"" OR Eliminated_By = ""Orton""" "Name the Result on october 15, 1995?","SELECT result FROM table_name_71 WHERE date = ""october 15, 1995""" What is the average weight of players who have height greater than 72 inches.,SELECT AVG(weight) FROM Master WHERE height > 72 What place has a to par of E?,"SELECT place FROM table_name_46 WHERE to_par = ""e""" "Great! Can you update this list to show their address content, city, and zip code?","SELECT t1.customer_name, t3.address_content, t3.city, t3.zip_postcode FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = ""Colorado""" How many totals does pádraig harrington have?,"SELECT COUNT(total) FROM table_name_83 WHERE player = ""pádraig harrington""" What are the names of the courses,SELECT course_name FROM Courses What is the highest Amerindian (Hispanic/Non-Hispanic) value having a Black (Hispanic/Non-Hispanic) of 15.7 and White (Hispanic/Non-Hispanic) over 69.5?,SELECT MAX(amerindian__both_hispanic_and_non_hispanic_) FROM table_name_67 WHERE black__both_hispanic_and_non_hispanic_ = 15.7 AND white__both_hispanic_and_non_hispanic_ > 69.5 Show the names for all females from Canada having a wedding in year 2016.,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' list the name of the employees with the lowest salaries,SELECT name FROM Employee ORDER BY salary ASC limit 1 What is the name of the school in Hillcrest?,"SELECT name FROM table_name_12 WHERE area = ""hillcrest""" How long was the longest minute delay caused by a weather problem in airport id 12264?,SELECT WEATHER_DELAY FROM Airlines WHERE ORIGIN_AIRPORT_ID = 12264 ORDER BY WEATHER_DELAY DESC LIMIT 1 How many years have a Position of 17th (q)?,"SELECT COUNT(year) FROM table_name_41 WHERE position = ""17th (q)""" What is the nt identity when the species is drosophilia melanogaster?,"SELECT nt_identity FROM table_26708105_5 WHERE species = ""Drosophilia melanogaster""" "OK, I will like to know the billing city of the names customers please.","SELECT T1.FirstName, T1.lastname, T2.billingcity FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId" How many stars did most of the voters give in star score for the episode Lost Verizon?,SELECT T2.stars FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon' ORDER BY T2.votes DESC LIMIT 1; "If the rings are 60.500, what is the parallel bars number?","SELECT parallel_bars FROM table_18662026_1 WHERE rings = ""60.500""" What is the English name for the Chinese name of 蘇永康 later than 1974?,"SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = ""蘇永康""" Name the venue for geelong away team,"SELECT venue FROM table_name_54 WHERE away_team = ""geelong""" What is the type of the organization with the most research staff?,SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY count(*) DESC LIMIT 1 "What is the first, last name, gpa of the youngest one among students whose GPA is above 3?","SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1" Which runner-up has a 10 strokes margin of victory?,"SELECT runner_up FROM table_name_12 WHERE margin_of_victory = ""10 strokes""" What was the score when the team played at the bobcats?,"SELECT score FROM table_name_92 WHERE home = ""bobcats""" Please list the emails of the clients whose complaint date received is 7/3/2014.,SELECT T1.email FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2014-07-03' Show the team_id with highest rank?,SELECT team_id FROM team ORDER BY rank ASC LIMIT 1 How many of those players have a yes card?,"SELECT count ( * ) FROM Player WHERE pName LIKE '%a%' and yCard = ""yes""" Tell me the average year for my queen,"SELECT AVG(year) FROM table_name_65 WHERE english_title = ""my queen""" Find the names of customers who have bought at least three distinct products.,SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id) >= 3 What is the region 1 date for series 4,"SELECT region_1 FROM table_15823956_1 WHERE series = ""4""" Who was the winning driver of the Savio Circuit with the constructor Itala?,"SELECT winning_driver FROM table_name_5 WHERE winning_constructor = ""itala"" AND name = ""savio circuit""" What is the location code with the most documents?,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1 Please list the departments that are part of the Executive General and Administration group.,SELECT Name FROM Department WHERE GroupName = 'Executive General and Administration' List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.,"SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS""" Please calculate the number of clients by each division.,"SELECT T2.division, COUNT(T2.division) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id GROUP BY T2.division" "How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?","SELECT COUNT(grid) FROM table_name_20 WHERE constructor = ""talbot-lago - talbot"" AND laps < 83 AND driver = ""johnny claes""" What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?,"SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus"" OR How_to_Get_There = ""walk""" What is the accelerate of the car make amc hornet sportabout (sw)?,SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'; What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?,"SELECT COUNT(episode) FROM table_name_78 WHERE performer_1 = ""jim sweeney"" AND performer_2 = ""steve steen""" What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?,"SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000" What was his record when the match went for 3:05?,"SELECT record FROM table_name_62 WHERE time = ""3:05""" Select the project names which are not assigned yet.,SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo) What are their preferred genres?,"select preferred_genre from artist where artist_name in ( SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7 ) " "When the money list rank was n/a, what was the scoring average?","SELECT scoring_average FROM table_10021158_3 WHERE money_list_rank = ""n/a""" what is the date of the earliest contract?,SELECT T2.contract_start_date FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1 Name the international tourist arrivals for arrivals 2011 for 8.1 million,"SELECT international_tourist_arrivals__2010_ FROM table_14752049_3 WHERE international_tourist_arrivals__2011_ = ""8.1 million""" Find the number of rooms for each bed type.,"SELECT bedType , count(*) FROM Rooms GROUP BY bedType;" What are the names and years of all races that had a driver with the last name Lewis?,"SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = ""Lewis""" Find the name of the most expensive product.,SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1 "Among all indian restaurants in Castro St., Mountainview, how many of them is about cookhouse in their label?",SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'castro st' AND T1.city = 'mountain view' AND T2.food_type = 'indian' AND T2.label LIKE '%cookhouse%' What is the shipping cost for order number 10692 from the company Alfreds Futterkiste?,SELECT T2.Freight FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10692 AND T1.CompanyName = 'Alfreds Futterkiste' "Find the name, checking balance and saving balance of all accounts in the bank.","SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid" what race did Dominican win with a distance of 1-1/16 miles?,"SELECT race FROM table_name_57 WHERE winning_horse = ""dominican"" AND distance = ""1-1/16 miles""" How many different provinces is Baghaberd the center of?,"SELECT COUNT(province__ashkharh_) FROM table_23887174_1 WHERE center = ""Baghaberd""" What was the date when the Twins had a record of 44-37?,"SELECT date FROM table_name_93 WHERE record = ""44-37""" What is the phone of goodrich,"SELECT phone FROM Faculty WHERE Lname = ""Goodrich""" who is the the high points with score being w 117–93,"SELECT high_points FROM table_13480122_5 WHERE score = ""W 117–93""" "What province does the 4th most populous city in the United Kingdom belong to, and how many people live there?","SELECT T1.Province, T1.Population FROM city AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United Kingdom' ORDER BY T1.Population DESC LIMIT 3, 1" What are the first names of staff who did not give any lesson?,SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id What is the lowest game number with Aris Thessaloniki with points smaller than 120?,"SELECT MIN(games) FROM table_name_70 WHERE team = ""aris thessaloniki"" AND points < 120" "What is the Package Option of TV Channel with serial name ""Sky Radio""?","SELECT Package_Option FROM TV_Channel WHERE series_name = ""Sky Radio"";" How about their phone numbers?,"SELECT customer_phone FROM Customers where payment_method = ""Visa""" "Who attended the school in 2008, that Brikajdri Wilson attended in 2006?","SELECT 2008 FROM table_name_42 WHERE 2006 = ""brikajdri wilson""" Which Wins has a Byes larger than 0?,SELECT MAX(wins) FROM table_name_65 WHERE byes > 0 Show the height of the mountain climbed by the climber with the maximum points.,SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1 When was the employee who handled order id 10281 hired?,SELECT T1.HireDate FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10281 "Show the minimum, maximum, average price for all products.","SELECT min(product_price) , max(product_price) , avg(product_price) FROM products" How many staffs are working as Sales Person or Clerical Staff?,"SELECT count ( * ) FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id Where T2.job_title_code = ""Sales Person"" OR T2.job_title_code = ""Clerical Staff""" What is every high score for a strike rate of 84.88?,"SELECT high_score FROM table_2985664_8 WHERE strike_rate = ""84.88""" What was the score when Flavia Pennetta won the championship?,"SELECT score FROM table_name_67 WHERE champion = ""flavia pennetta""" What is the Year for Supplier Kooga?,"SELECT year FROM table_name_97 WHERE supplier = ""kooga""" What successful defenses has 126 days held and a Reigns of 3?,"SELECT successful_defenses FROM table_name_89 WHERE days_held = 126 AND reigns = ""3""" What is the id of the trip that has the shortest duration?,SELECT id FROM trip ORDER BY duration LIMIT 1 "Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122?","SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = ""1st"" AND altitude__mslm_ < 122" Calculate the percentage of customers' accounts in debt.,"SELECT CAST(SUM(IIF(c_acctbal < 0, 1, 0)) AS REAL) * 100 / COUNT(c_custkey) FROM customer" What is the least amount of total medals won?,SELECT MIN(total_min_2_medals_) FROM table_22355_23 What are the names and descriptions of all the sections?,"SELECT section_name , section_description FROM Sections" How many floors are in the 274 (84) ft (m) building that is ranked number 1?,"SELECT AVG(floors__stories_) FROM table_name_99 WHERE height_ft__m_ = ""274 (84)"" AND rank > 1" What was the Record for the game on October 30?,"SELECT record FROM table_name_8 WHERE date = ""october 30""" "How many years had scores of 10–12, 6–1, 6–3?","SELECT COUNT(year) FROM table_2127933_3 WHERE score = ""10–12, 6–1, 6–3""" "How many acts can be found in the comedy ""Two Gentlemen of Verona""?",SELECT COUNT(T1.ACT) FROM chapters AS T1 LEFT JOIN works AS T2 ON T1.work_id = T2.id WHERE T2.GenreType = 'Comedy' AND T2.Title = 'Two Gentlemen of Verona' Which Notes has a Competition of venice marathon?,"SELECT notes FROM table_name_78 WHERE competition = ""venice marathon""" And which Event Details have more than one participant? | Do you mean the Event Details of the event? | I mean the details of the events that have more than one participant.,SELECT T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING count ( * ) > 1 what team scored in gomel,"SELECT team FROM table_name_10 WHERE location = ""gomel""" "Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?","SELECT year FROM table_name_59 WHERE borough = ""harrogate"" AND rank < 6 AND definition = ""civil parish""" how many students are living in each state province county?,"SELECT COUNT ( * ) , state_province_county FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id GROUP BY state_province_county" What are the titles of all the Aerosmith albums?,"SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Aerosmith"";" List out student IDs that have the longest absence duration from school.,SELECT name FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school ) "Which Events has Earnings of $113,259, and an Average larger than 229.5?","SELECT MAX(events) FROM table_name_22 WHERE earnings = ""$113,259"" AND average > 229.5" Show the ids for all the faculty members who have at least 2 students.,SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2 List all ship names in the order of built year and class.,"SELECT name FROM ship ORDER BY built_year , CLASS" What team did carlos cardus drive for in 1983 when he got less than 21 points?,SELECT team FROM table_name_69 WHERE points < 21 AND year = 1983 Olga Blahotová was the opponent in the final at what tournament?,"SELECT tournament FROM table_name_42 WHERE opponent_in_the_final = ""olga blahotová""" What tyre had Sergio Mantovani as a driver?,"SELECT tyre FROM table_name_91 WHERE driver = ""sergio mantovani""" Calculate the difference between the total number of students and the number of international international students in Univeristy of Tokyo from 2011 to 2014.,SELECT SUM(T1.num_students) - SUM(CAST(T1.num_students * T1.pct_international_students AS REAL) / 100) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year BETWEEN 2011 AND 2014 AND T2.university_name = 'University of Tokyo' What was the score at the game earlier than 66?,SELECT score FROM table_name_56 WHERE game < 66 Show the team that have at least two technicians.,SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2 What is the architecture version of Model 1b?,"SELECT architecture_version FROM table_name_10 WHERE model = ""1b""" Where are all the 1485khz frequency located?,"SELECT location FROM table_28794440_1 WHERE frequency = ""1485kHz""" "What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?","SELECT nation FROM table_name_48 WHERE year = 2012 AND competition = ""preseason"" AND result = ""w 0–3""" Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?,"SELECT T1.name , T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'" List the distinct region of clubs in ascending alphabetical order.,SELECT DISTINCT Region FROM club ORDER BY Region ASC "What tournament was played on May 29, 2010?","SELECT tournament FROM table_name_8 WHERE date = ""may 29, 2010""" What is the name of the marketing region that the store Rob Dinning belongs to?,"SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = ""Rob Dinning""" What are the networks whose version of the show includes the judges batuhan zeynioğlu piatti murat bozok erol kaynar?,"SELECT network FROM table_28190363_1 WHERE judges = ""Batuhan Zeynioğlu Piatti Murat Bozok Erol Kaynar""" Sate the order number and calculate the net profit for each order under Joshua Bennett.,"SELECT T1.OrderNumber , REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.`Sales Team` = 'Joshua Bennett'" can you show me class of race?,SELECT class FROM race What was the score of the Kings game when they had a record of 8–11–1?,"SELECT score FROM table_name_27 WHERE record = ""8–11–1""" What was the original air date of the episode with production code 2395120?,"SELECT original_air_date FROM table_name_55 WHERE production_code = ""2395120""" "Which Result has a First elected of 1876, and a District of south carolina 3?","SELECT result FROM table_name_6 WHERE first_elected = 1876 AND district = ""south carolina 3""" How many pets are owned by students that have an age greater 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 maximum points for higher when the points for foundation is less than 0?,SELECT MAX(points_for_higher) FROM table_name_66 WHERE points_for_foundation < 0 What was the two-round score for Bob Tway?,"SELECT score FROM table_name_45 WHERE player = ""bob tway""" List down the geographic identifier with an number of inhabitants less than 30.,SELECT GEOID FROM Demog WHERE INHABITANTS_K < 30 Show all storm names except for those with at least two affected regions.,SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 What is the average distance and average price for flights from Los Angeles.,"SELECT avg(distance) , avg(price) FROM Flight WHERE origin = ""Los Angeles""" What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver?,"SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = ""reine wisell""" Name the cast members of the movie 'African Egg'.,"SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'AFRICAN EGG'" Find the names of the top 3 departments that provide the largest amount of courses?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3 How much money did the customer No.297 pay for the rental which happened at 12:27:27 on 2005/7/28?,SELECT T1.amount FROM payment AS T1 INNER JOIN rental AS T2 ON T1.rental_id = T2.rental_id WHERE T2.rental_date = '2005-07-28 12:27:27' AND T2.customer_id = 297 What document types do have more than 10000 total access number.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count) > 10000 Show the names and ids of tourist attractions that are visited at most once.,"SELECT T1.Name , T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) <= 1" What are the distinct types of mills that are built by American or Canadian architects?,SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian' "Which Opposition has a Year smaller than 1977, and a City of manchester?","SELECT opposition FROM table_name_53 WHERE year < 1977 AND city = ""manchester""" "For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?","SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = ""83.4-84.4"" AND debt_held_by_public__$billions_ < 7 OFFSET 552" What are the emails of customers who have filed complaints on the product which has had the greatest number of complaints?,SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1 What is the average money ($) that Tom Weiskopf made?,"SELECT AVG(money___) AS $__ FROM table_name_54 WHERE player = ""tom weiskopf""" What horse did not start and had a total of over 16.16?,"SELECT horse FROM table_name_10 WHERE faults = ""did not start"" AND total > 16.16" "Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12?","SELECT AVG(money___) AS $__ FROM table_name_76 WHERE place = ""t10"" AND player = ""denny shute"" AND to_par > 12" What is every construction date for the registration of HB-HOS?,"SELECT construction AS date FROM table_22180353_1 WHERE registration = ""HB-HOS""" What is the first name of students who got grade C in any class?,SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C' List the amount and donor name for the largest amount of donation.,"SELECT amount , donator_name FROM endowment ORDER BY amount DESC LIMIT 1" "Among the films with a rental duration of 7 days, how many are comedies?",SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.rental_duration = 7 AND T3.name = 'Comedy' What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?,SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0 How many mills are built by American architects?,SELECT count ( * ) FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' What was the outcome before 1997?,SELECT outcome FROM table_name_93 WHERE year < 1997 find the id of users who are followed by mary and susan.,"SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Susan""" "Among customers with the last name of Valdez, who purchased the highest quantity?",SELECT T1.FirstName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.LastName = 'Valdez' ORDER BY T2.Quantity DESC LIMIT 1 Which template type code is used by most number of documents?,SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1 "What is the name of the player from purcell, ok?","SELECT name FROM table_26916717_1 WHERE home_town = ""Purcell, OK""" Show the denomination of the school that has the most players.,SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1; What is the average annual amount of shipped sales from 1997 to 1998?,SELECT SUM(T2.UnitPrice * T2.Quantity * (1 - T2.Discount)) / 3 FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID WHERE T1.ShippedDate BETWEEN '1996-01-01 00:00:00' AND '1998-12-31 23:59:59' What source of wealth has a value of £5726m?,"SELECT source_of_wealth FROM table_name_51 WHERE value = ""£5726m""" what is the college when the overall is more than 76 for brian mitchell?,"SELECT college FROM table_name_98 WHERE overall > 76 AND name = ""brian mitchell""" How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?,"SELECT wounded FROM table_name_24 WHERE killed = ""0 off 0 men"" AND unit = ""artillery corps""" Name the 2008 for 2012 being a and tournament of australian open,"SELECT 2008 FROM table_name_20 WHERE 2012 = ""a"" AND tournament = ""australian open""" "Who are the captains? | Do you mean you want the name of captain? | Yes, what are the captains names",SELECT t1.name FROM captain as t1 Name the number of womens singles for 1999 rio de janeiro,"SELECT COUNT(womens_singles) FROM table_28138035_4 WHERE year_location = ""1999 Rio de Janeiro""" Which city does the address id 547 belong to?,SELECT city FROM address WHERE address_id = 547 Name the team for january 17,"SELECT team FROM table_27733909_7 WHERE date = ""January 17""" What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth?,"SELECT race_name FROM table_name_16 WHERE winning_team = ""mi-jack conquest racing"" AND pole_position = ""andreas wirth""" "Among the employees working at the office in New York, how many of them have a good job performance?",SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.state = 'NY' AND T1.performance = 'Good' Who was in 1963?,SELECT entrant FROM table_name_87 WHERE year = 1963 Which Result has a Category of outstanding actor (drama)?,"SELECT result FROM table_name_82 WHERE category = ""outstanding actor (drama)""" Can you list all of the grant start dates of those documents please?,SELECT T3.grant_start_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Initial Application' If you get a ranking as major in the english military then what would the spanish military address you as? ,"SELECT rank_in_spanish FROM table_1015521_2 WHERE rank_in_english = ""Major""" What Percentage has a Place of 5?,SELECT percentage FROM table_name_73 WHERE place = 5 Who gave the most reviews,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count ( * ) DESC LIMIT 1 What is the percentage of offense rebounds from the total rebounds of the players in year 2000.,SELECT CAST(SUM(T2.o_rebounds) AS REAL) * 100 / SUM(T2.rebounds) FROM players_teams AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2000 How many points does Draw 5 have?,SELECT points FROM table_name_67 WHERE draw = 5 "What was the final score of the game on October 4, 1970?","SELECT result FROM table_14966537_1 WHERE date = ""October 4, 1970""" Please show the categories of the music festivals with count more than 1.,SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 what is the total sack when totaltk is 1 and asst. is more than 0?,SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0 "What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37?","SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = ""2"" AND silver < 37" List the name of teachers whose hometown is not `` Little Lever Urban District '' .,"select name from teacher where hometown != ""little lever urban district""" What is the currency of Brazil?,SELECT T1.Name FROM Currency AS T1 INNER JOIN CountryRegionCurrency AS T2 ON T1.CurrencyCode = T2.CurrencyCode INNER JOIN CountryRegion AS T3 ON T2.CountryRegionCode = T3.CountryRegionCode WHERE T3.Name = 'Brazil' "What is the class time of ACCT-211? | There are multiple class times for ACCT-211, would you like all of them? | Yes","SELECT CLASS_TIME FROM CLASS WHERE CRS_CODE = ""ACCT-211""" Find the name of the target user with the lowest trust score.,SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1 How many addresses have zip code 197?,"SELECT count(*) FROM ADDRESSES WHERE zip_postcode = ""197""" To which categories does app user no.1977658975649780000 belong?,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 1977658975649780000 Name the runners for longchamp,"SELECT runners FROM table_name_88 WHERE course = ""longchamp""" List the name of browsers in descending order by market share.,SELECT name FROM browser ORDER BY market_share DESC "What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985?",SELECT AVG(goal_ratio) FROM table_name_71 WHERE goals > 1 AND games > 161 AND debut_in_europe < 1985 "What is the sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284?","SELECT COUNT(poverty__2009__hpi_1__percentage) FROM table_name_69 WHERE gdp__ppp___2012__us$_per_capita = ""11,284""" "Hello, can you provide me with the names of the donors?",SELECT donator_name FROM endowment "Find the name, type, and flag of the ships that were built in the most recent year.","SELECT name, type, flag from ship where built_year in (SELECT max(built_year) from ship)" Which region had a life expectancy at birth of 77.9 from 2001-2002?,"SELECT region FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = ""77.9""" What customer IDs have those order IDs?,select T3.customer_id from Products as T1 join Order_Items as T2 join Orders as T3 where T1.product_id = T2.product_id and T1.product_name = 'food' and T3.order_id = T2.order_id What class has over 0 wins and 42 points?,SELECT class FROM table_name_13 WHERE wins > 0 AND points = 42 What year for geelong player john roberts?,"SELECT year FROM table_name_77 WHERE opponent = ""geelong"" AND player = ""john roberts""" Now just the info for Suite 634,"SELECT * FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" "Who did ""The Tiny Canadian"" play as in the show?",SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.nickname = 'The Tiny Canadian'; Which venue has more than 9 against and a status of second test?,"SELECT venue FROM table_name_90 WHERE against > 9 AND status = ""second test""" What is the launch date of 栗?,"SELECT launched FROM table_name_70 WHERE kanji = ""栗""" How many drivers are from Hartford city or younger than 40?,SELECT count(*) FROM driver WHERE home_city = 'Hartford' OR age < 40 What are the login names used both by some course authors and some students?,SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students How many entries for number in series when director is Bryan Cranston?,"SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = ""Bryan Cranston""" What number game was it that the Spurs were @ Miami?,"SELECT SUM(game) FROM table_name_82 WHERE team = ""@ miami""" "How many times was the date october 3, 2010?","SELECT COUNT(player) FROM table_27552095_27 WHERE date = ""October 3, 2010""" Who directed episode 28 in the series?,SELECT directed_by FROM table_24132054_1 WHERE no_in_series = 28 What is the sum of the areas for populations of 542?,SELECT SUM(area_km_2) FROM table_name_66 WHERE population = 542 Who is the kitmaker for the team that Uwe Rapolder is the head coach of.,"SELECT kitmaker FROM table_name_84 WHERE head_coach = ""uwe rapolder""" What is all the customer information for customers in NY state?,"SELECT * FROM CUSTOMER WHERE State = ""NY""" Who was the home team at the Nuggets game that had a score of 116–105?,"SELECT home FROM table_name_24 WHERE score = ""116–105""" "What is the Player that has a To standard of –1, and a Score of 71-68-76=215?","SELECT player FROM table_name_60 WHERE to_par = ""–1"" AND score = 71 - 68 - 76 = 215" What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?,SELECT MIN(winning__percentage) FROM table_name_95 WHERE lost > 23 AND goals_for > 386 What department is the Introduction to Computer Science course in?,"SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" What team was the home team when Luton Town was the home team?,"SELECT home_team FROM table_name_49 WHERE away_team = ""luton town""" Find the total amount of loans provided by bank branches in the state of New York.,SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' "On October 24, who played at home when there was a decision of Ward?","SELECT home FROM table_name_95 WHERE decision = ""ward"" AND date = ""october 24""" List the phone numbers of all employees.,SELECT Phone FROM EMPLOYEE What is the Rank of the Maccabi Tel Aviv Player with 25 Games?,"SELECT COUNT(rank) FROM table_name_82 WHERE games = 25 AND team = ""maccabi tel aviv""" Which of the American customers have experienced a delay in the shipment and how long was the longest?,"SELECT T1.CompanyName, TIMESTAMPDIFF(DAY, T2.ShippedDate, T2.RequiredDate) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Country = 'USA' AND TIMESTAMPDIFF(DAY, T2.ShippedDate, T2.RequiredDate) < 0" On what day was there a Home game for Gillingham?,"SELECT attendance FROM table_name_4 WHERE home_team = ""gillingham""" What is the price for the AWC Logo Cap?,SELECT T2.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'AWC Logo Cap' How many airlines operate out of each country in descending order?,"SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC" I want to know what is the greatest amount of loan to customers that each bank branch has made.,"SELECT T2.bname, max ( T1.amount ) FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id GROUP BY T2.bname" What is the event average for a top-25 smaller than 0?,SELECT AVG(events) FROM table_name_84 WHERE top_25 < 0 What are the employee ids for those who had two or more jobs.,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 "How many RolePlay actors played the role requiring a ""male, younger"" actor?","SELECT COUNT(roleplay) FROM table_17827271_1 WHERE actor_required = ""Male, younger""" Which years did the Rockets number 6 play?,"SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = ""6""" Name the total number of luna blastoff date for apollo 11,"SELECT COUNT(lunar_blastoff_date) FROM table_1558077_8 WHERE mission_name = ""Apollo 11""" How many stages did Team Sky lead the teams classification?,"SELECT MAX(stage) FROM table_26010857_13 WHERE teams_classification = ""Team Sky""" Show all city with a branch opened in 2001 and a branch with more than 100 membership.,SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100 With a 2008 result of 153 what is the result for 2007?,"SELECT 2007 FROM table_name_23 WHERE 2008 = ""153""" When richmond was the Away team what was the score of the home team?,"SELECT home_team AS score FROM table_name_37 WHERE away_team = ""richmond""" What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?,SELECT AVG(population__2006_) FROM table_name_14 WHERE population__2011_ > 5 AND area__km_2__ = 5.84 What was the score of the game against Divij Sharan?,"SELECT score FROM table_name_56 WHERE opponent_in_the_final = ""divij sharan""" How many employees live in Canada?,"SELECT count(*) FROM employees WHERE country = ""Canada"";" Which season has rank 2?,"SELECT season FROM table_name_35 WHERE rank = ""2""" Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.,"SELECT apt_type_code , COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC" How many power kw have a frequency of 93.7 mhz?,"SELECT COUNT(power_kw) FROM table_23915973_1 WHERE frequency = ""93.7 MHz""" "What is the highest value for Ties, when Losses is less than 8?",SELECT MAX(ties) FROM table_name_72 WHERE losses < 8 When is Biddle's DOB?,"SELECT dob FROM table_name_5 WHERE surname = ""biddle""" List all the information about course authors and tutors in alphabetical order of the personal name.,SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name Show all party names and their region names.,"SELECT T1.party_name , T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id" List the names of recipes that can lead to constipation.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.iron > 20 Name the date which has type of plain stage,"SELECT date FROM table_name_2 WHERE type = ""plain stage""" "What is the year joined with a Conference championships of 5, and a Nickname of wolfpack?","SELECT joined FROM table_name_15 WHERE conference_championships = 5 AND nickname = ""wolfpack""" What did the home team of essendon score?,"SELECT home_team AS score FROM table_name_78 WHERE home_team = ""essendon""" Which date had a home team of the Wizards?,"SELECT date FROM table_name_15 WHERE home = ""wizards""" What is the home field of the South Melbourne team?,"SELECT venue FROM table_name_19 WHERE home_team = ""south melbourne""" How many timeslots received a rating of 5.7?,"SELECT COUNT(timeslot__est_) FROM table_24910733_2 WHERE rating = ""5.7""" "List the full name of customers who spend more than 50,000 in descending order the amount spend.","SELECT DISTINCT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T2.Quantity * T1.Price > 50000" "Please check is ""limbo dancing"" the keyword for title ""Dangerous Curves""?",SELECT CASE WHEN T2.Keyword = 'limbo dancing' THEN 'Yes' ELSE 'No' END AS result FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Dangerous Curves'; Which city has the least number of businesses whose amount of funny votes is low?,SELECT T1.city FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_votes_funny LIKE 'low' GROUP BY T1.city Show the names of high school students and their corresponding number of friends.,"SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id" What is the name of the team with a finish of 19?,"SELECT team FROM table_name_48 WHERE finish = ""19""" How many names in this table?,SELECT count ( distinct Name ) FROM ship How many airports have a code starting with the letter C?,SELECT COUNT(*) FROM Airports WHERE Code LIKE 'C%' Which artist made the most songs? | did you want to return his/her name? | Yes,SELECT artist_name FROM song GROUP BY artist_name ORDER BY count ( * ) desc LIMIT 1 Find the number of customers who live in the city called Lake Geovannyton.,"SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = ""Lake Geovannyton""" Name the class for schliefen,"SELECT class FROM table_1745843_9 WHERE part_3 = ""schliefen""" What are the ids and names of all start stations that were the beginning of at least 200 trips?,"SELECT start_station_id , start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200" Qhat was the position of sail 6606?,"SELECT position FROM table_1858574_3 WHERE sail_number = ""6606""" "What are the lowest matches that have wickets greater than 16, 3/15 as the best, and an econ less than 8?","SELECT MIN(matches) FROM table_name_19 WHERE wickets > 16 AND best = ""3/15"" AND econ < 8" What are the names of parties with at least 2 events?,SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2 "What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103?","SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = ""england"" AND operating_income_$m_ > -5 AND revenue__$m_ < 103" What are the student IDs of those students?,SELECT StuID FROM Sportsinfo "What soap opera has a rank larger than 1, and a Character named Emily Bishop?","SELECT soap_opera FROM table_name_81 WHERE rank > 1 AND character = ""emily bishop""" What is the record of the game where the visitor team is the Edmonton Oilers?,"SELECT record FROM table_name_50 WHERE visitor = ""edmonton oilers""" What location and attendance were there for game 5?,SELECT location_attendance FROM table_27756474_2 WHERE game = 5 What is the venue of the match with a w result on 3 March 2010?,"SELECT venue FROM table_name_61 WHERE result = ""w"" AND date = ""3 march 2010""" What date did customer with ID 11 place an order?,SELECT date_order_placed FROM orders where customer_id = 11 What is the Player from McGill?,"SELECT player FROM table_name_30 WHERE school_club_team = ""mcgill""" Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.,SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008 "Find the description of the club ""Pen and Paper Gaming"".","SELECT clubdesc FROM club WHERE clubname = ""Pen and Paper Gaming""" State the number of stores that belongs to the weather station which recorded the deepest snowfall.,SELECT T2.store_nbr FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr ORDER BY snowfall DESC LIMIT 1 Could you add the product type codes to the table please?,"SELECT T1.product_name , sum ( T2.order_quantity ) ,T1.product_type_code FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id" "What are the types of vocals that the musician with the last name ""Heilo"" played in ""Der Kapitan""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = ""Heilo"" AND T2.title = ""Der Kapitan""" What is the total number of the established club of Lehigh Valley Storm?,"SELECT COUNT(established) FROM table_name_86 WHERE club = ""lehigh valley storm""" "What is the average points of players from club with name ""AIB"".","SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = ""AIB""" What is the name of the publisher that has published the most number of books?,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name ORDER BY COUNT(T1.book_id) DESC LIMIT 1 Which District was the incumbent Julius Kahn from? Answer: California 4th district,"SELECT COUNT(district) FROM table_1346118_5 WHERE incumbent = ""Julius Kahn""" What was reserved in the district that has 169 constituents?,"SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = ""169""" How many menus were used in Dutcher House?,SELECT COUNT(*) FROM Menu WHERE location = 'Dutcher House' How many students are affected by cat allergies?,"SELECT count(*) FROM Has_allergy WHERE Allergy = ""Cat""" When is Home of chicago black hawks has a Record of 0–1?,"SELECT date FROM table_name_57 WHERE home = ""chicago black hawks"" AND record = ""0–1""" What is the lowest total from slovenia with a Gold smaller than 0?,"SELECT MIN(total) FROM table_name_79 WHERE nation = ""slovenia"" AND gold < 0" "Which papers were published in an institution in the ""USA"" please?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""USA""" What team had Pick 2?,"SELECT team FROM table_name_27 WHERE pick = ""2""" Which person whose friends have the oldest average age?,"SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1" Which tournament had a 2012 of a and a 2011 of 2r?,"SELECT tournament FROM table_name_25 WHERE 2012 = ""a"" AND 2011 = ""2r""" Name the change for english democrats,"SELECT change FROM table_name_78 WHERE party = ""english democrats""" What are the inspection results for Xando Coffee & Bar / Cosi Sandwich Bar?,SELECT DISTINCT T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR' "How many subscribers, in 2006, does Glo Mobile have?","SELECT subscribers__2006___thousands_ FROM table_29395291_2 WHERE provider = ""Glo Mobile""" List the final tables made and the best finishes of poker players.,"SELECT Final_Table_Made , Best_Finish FROM poker_player" "What is the heat number at 7.63, and a reaction less than 0.229?","SELECT COUNT(heat) FROM table_name_4 WHERE mark = ""7.63"" AND react < 0.229" Name the constructor for number 10,SELECT constructor FROM table_28190534_1 WHERE no = 10 Count the number of budgets in year 2001 or before whose budgeted amount is greater than 3000,SELECT count(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001 What is the IHSAA Football Class for county 67 putnam at Greencastle?,"SELECT ihsaa_football_class FROM table_name_16 WHERE county = ""67 putnam"" AND school = ""greencastle""" "What is the Date for the game at michie stadium • west point, ny?","SELECT date FROM table_name_80 WHERE location = ""michie stadium • west point, ny""" How many rounds were there an offensive tackle position?,"SELECT COUNT(round) FROM table_name_66 WHERE position = ""offensive tackle""" What did the home team score at Windy Hill?,"SELECT home_team AS score FROM table_name_92 WHERE venue = ""windy hill""" "What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e?","SELECT MAX(year) FROM table_name_81 WHERE engine = ""cosworth v8"" AND chassis = ""hesketh 308e""" "Who played on December 25, 1925?","SELECT competition FROM table_name_56 WHERE date = ""december 25, 1925""" what is the english version that is buena vista edition is daisuke gouri?,"SELECT english_version FROM table_25173505_13 WHERE buena_vista_edition = ""Daisuke Gouri""" Who had high points when high rebound is gray (8)?,"SELECT high_points FROM table_11960610_10 WHERE high_rebounds = ""Gray (8)""" "For R. Magjistari scores over 12, what is the highest number of points?",SELECT MAX(points) FROM table_name_33 WHERE r_magjistari > 12 Can you please list the product which has the lowest value for product price?,SELECT * FROM products ORDER BY product_price LIMIT 1 Hmmm. Please list the name of the company that produces only one phone model.,SELECT Company_name FROM phone GROUP BY Company_name HAVING count ( * ) = 1 "What poll source administered their poll on June 14-16, 2010?","SELECT poll_source FROM table_20032301_3 WHERE dates_administered = ""June 14-16, 2010""" When was the premiere of the show that had a rank of #7?,"SELECT premiere FROM table_name_30 WHERE rank = ""#7""" Please list all the keywords for the episodes with a rating of over 8.,SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.rating > 8 When did Brendan Rodgers depart his position?,"SELECT date_of_departure FROM table_name_46 WHERE name = ""brendan rodgers""" What was the circuit in round 2?,"SELECT circuit FROM table_24852622_1 WHERE round = ""2""" What was the average temperature differences during May 2012 for store number 6 and 7?,SELECT ( SELECT CAST(SUM(tavg) AS REAL) / COUNT(`date`) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr AND T1.`date` LIKE '%2012-05%' AND T2.store_nbr = 6 ) - ( SELECT CAST(SUM(tavg) AS REAL) / COUNT(`date`) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` LIKE '%2012-05%' AND T2.store_nbr = 7 ) How many long range shots did tonya edwards make.,"SELECT COUNT(field_goals) FROM table_24906653_5 WHERE player = ""Tonya Edwards""" "What was the enrollment (2005) for baccalaureate colleges , for Granite State College?","SELECT enrollment__2005_ FROM table_2076490_1 WHERE type = ""Baccalaureate college"" AND school = ""Granite State College""" Indicates the title of all podcasts in the fiction category.,SELECT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'fiction' What song did Robin perform with a result of 4.0?,"SELECT song FROM table_21234111_10 WHERE robin = ""4.0""" Return the name of each physician and the number of patients he or she treats.,"SELECT T1.name , count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid" "In total, how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?","SELECT COUNT(earnings__) AS $__ FROM table_name_28 WHERE country = ""united states"" AND wins < 24 AND player = ""george archer"" AND rank > 5" Please list the names of all the teams that have played against the Buffalo Sabres.,SELECT DISTINCT T3.name FROM TeamVsTeam AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.oppID = T2.tmID INNER JOIN Teams AS T3 ON T1.year = T3.year AND T1.tmID = T3.tmID WHERE T2.name = 'Buffalo Sabres' "Which Party has a First elected smaller than 1878, and a District of south carolina 3?","SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = ""south carolina 3""" Show all school names in alphabetical order.,SELECT school_name FROM school ORDER BY school_name Name the sumof points for year less than 1994 and chassis of lola lc89b,"SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = ""lola lc89b""" what is the class when part 2 is bond?,"SELECT class FROM table_name_33 WHERE part_2 = ""bond""" Return the names of all regions other than Denmark.,SELECT region_name FROM region WHERE region_name != 'Denmark' How many gold medals does the Choctawhatchee High School have?,"SELECT MAX(gold_medals) FROM table_1305623_12 WHERE ensemble = ""Choctawhatchee High School""" Which Score has a Place of t2?,"SELECT score FROM table_name_95 WHERE place = ""t2""" What is the Location of the Event with a Time of 2:22.32?,"SELECT location FROM table_name_93 WHERE time = ""2:22.32""" Which locations contains both shops that opened after the year 2012 and shops that opened before 2008?,SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008 "What is the greatest CCBs with a Payload to GTO of –, and an Upper stage of sec?","SELECT MAX(ccbs) FROM table_name_13 WHERE payload_to_gto = ""–"" AND upper_stage = ""sec""" What report has a score of 0-0 with Sydney FC?,"SELECT report FROM table_name_49 WHERE score = ""0-0"" AND away_team = ""sydney fc""" How much did the away team score at Victoria park?,"SELECT away_team AS score FROM table_name_84 WHERE venue = ""victoria park""" "Which country has three different religions-Anglicanism, Christianity, and Roman Catholicism and uses 100% English?",SELECT T2.Country FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T3.Country = T2.Country WHERE (T2.Name = 'Anglican' OR T2.Name = 'Christian' OR T2.Name = 'Roman Catholic') AND T3.Name = 'English' AND T3.Percentage = 100 GROUP BY T1.Name HAVING COUNT(T1.Name) = 3 How many editors are older then 25 and younger than 45?,SELECT count ( * ) FROM editor WHERE Age>25 and age<45 Which Royal house is named Elah?,"SELECT royal_house FROM table_name_34 WHERE name = ""elah""" "Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?","SELECT time_retired FROM table_name_16 WHERE grid < 9 AND constructor = ""ferrari"" AND driver = ""rubens barrichello""" Give the ids of the three products purchased in the largest amounts.,SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3 What day does the team play at punt road oval?,"SELECT date FROM table_name_51 WHERE venue = ""punt road oval""" Who is the opponent in week 15?,SELECT opponent FROM table_name_65 WHERE week = 15 "Which guests have apartment bookings with status code ""Confirmed""? Return their first names and last names.","SELECT T2.guest_first_name , T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Confirmed""" Who was the away team when Queensland Roar was the home team in the round less than 3?,"SELECT away_team FROM table_name_80 WHERE round < 3 AND home_team = ""queensland roar""" What was the score when the home team was Stockport County?,"SELECT score FROM table_name_73 WHERE home_team = ""stockport county""" How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?,"SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = ""Joaquin Rodriguez""" Tell me the lowest # of bids for win percent of .667,"SELECT MIN(_number_of_bids) FROM table_name_38 WHERE win__percentage = "".667""" What is the time when the set 3 score is 31–29?,"SELECT time FROM table_name_23 WHERE set_3 = ""31–29""" State the courses and level of courses by professors who are faculty employees.,"SELECT T3.course_id, T3.courseLevel FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T1.course_id WHERE T2.hasPosition = 'Faculty_eme'" What is the project in which 320 students will be impacted if the project is funded? Name the project and state the project cost.,"SELECT T1.title, T2.total_price_excluding_optional_support FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.students_reached = 320" what are the employee ids and job titles for employees in department 80?,"SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80" "What is the 2011 number (,000) when the status is separated?","SELECT 2011 AS _number__, 000 AS _ FROM table_273617_6 WHERE status = ""Separated""" What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?,"SELECT wheels FROM table_name_99 WHERE builder = ""baldwin locomotive works""" "What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?","SELECT MAX(international_mail) FROM table_name_45 WHERE change = ""+0,2%"" AND domestic_mail < 0" What is the lowest number of silver owned by a nation that is not ranked number 1?,SELECT MIN(silver) FROM table_name_41 WHERE rank < 1 List down film titles from id 1 to 10.,SELECT title FROM film WHERE film_id BETWEEN 1 AND 10 Which movie has the lowest rating?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID where T1.stars = ( select min ( stars ) from Rating ) "Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738","SELECT MIN(date_commissioned) FROM table_name_69 WHERE material = ""iron"" AND ship = ""rmsrhone"" AND gross_tonnage < 2 OFFSET 738" what is the identifier when the power is 22500 watts?,"SELECT identifier FROM table_name_17 WHERE power = ""22500 watts""" who are the awardees when the name of award is best agricultural film?,"SELECT awardee_s_ FROM table_25926120_7 WHERE name_of_award = ""Best Agricultural Film""" what's the race winner with date being 12 june,"SELECT race AS Winner FROM table_1140074_2 WHERE date = ""12 June""" What home team score has a Away team of melbourne?,"SELECT home_team AS score FROM table_name_63 WHERE away_team = ""melbourne""" Show different locations of railways along with the corresponding number of railways at each location.,"SELECT LOCATION , COUNT(*) FROM railway GROUP BY LOCATION" How many menus were created for lunch?,SELECT COUNT(*) FROM Menu WHERE event = 'LUNCH' What are id and name of the products whose price is higher than 900?,"SELECT product_id , product_name FROM products WHERE product_price > 900" How many gold medals were won in 1970?,"SELECT gold FROM table_name_61 WHERE year = ""1970""" Who was featured in 20 questions when the subject of the interview was Mike Piazza?,"SELECT 20 AS _questions FROM table_1566852_4 WHERE interview_subject = ""Mike Piazza""" Which category was Gene Barry nominated in?,"SELECT category FROM table_name_54 WHERE result = ""nominated"" AND nominee = ""gene barry""" What is the first name and gender of the all the students who have more than one pet?,"SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1" When were the callback auditions at Hilton Riverside Hotel held?,"SELECT callback_audition_date FROM table_27455867_1 WHERE callback_venue = ""Hilton Riverside Hotel""" What is the average salary of the worst performing managers?,"SELECT AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Manager'" What is the date of the match for the lineal super lightweight (140)?,"SELECT date FROM table_12262182_2 WHERE titles = ""Lineal Super lightweight (140)""" "Please list the title of the pages on which the word ""grec"" occurred for over 20 times.",SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences > 20 "Among the bakeries, what is total number of bakery located at University Avenue, Palo Alto?",SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.food_type = 'bakery' AND T2.city = 'palo alto' AND T1.street_name = 'university ave.' "Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game?","SELECT game FROM table_name_33 WHERE home_team = ""chicago bulls"" AND result = ""81-83 (3-2)""" "Among the legislators who started a term on 2nd December 1793, how many of them were males?",SELECT COUNT(T1.bioguide_id) FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND T2.start = '1793-12-02' "How many years have an accolade of 50 best albums of the year, with #3 as the rank?","SELECT SUM(year) FROM table_name_6 WHERE accolade = ""50 best albums of the year"" AND rank = ""#3""" Tell me the sum of yards for jason campbell and long less than 23,"SELECT SUM(yards) FROM table_name_29 WHERE player = ""jason campbell"" AND long < 23" What is the Finish of the Player with a Total of 273?,SELECT finish FROM table_name_20 WHERE total = 273 Which business had the lowest score for the unscheduled routine inspection on 2016/9/26? Give the name of the business.,SELECT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE score = ( SELECT MIN(score) FROM inspections WHERE `date` = '2016-09-26' AND type = 'Routine - Unscheduled' ) AND T1.`date` = '2016-09-26' AND T1.type = 'Routine - Unscheduled' "Who are the members of the club named ""Hopkins Student Enterprises""? Show the last name.","SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" What are the opening years in which at least two shops opened?,SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2 "What is the average Year that has a Quantity of 10, and a GWR Numbers of 409, 290, 315, 317–321, 324, 333?","SELECT AVG(year) FROM table_name_49 WHERE quantity = 10 AND gwr_numbers = ""409, 290, 315, 317–321, 324, 333""" "Among the flights on 2018/8/1, how many of them departed from an airport in New York?",SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' AND ORIGIN = 'JFK' What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?,"SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = ""1.452""" can you show me companies name?,SELECT company_name from Third_Party_Companies Which year did USA undergo a disaster?,"SELECT year FROM table_name_15 WHERE countries_affected = ""usa""" "What is the highest Pick, when Round is greater than 15, and when College is ""Tennessee""?","SELECT MAX(pick) FROM table_name_19 WHERE round > 15 AND college = ""tennessee""" Thanks! What is the name of the artist who produced the song with the lowest resolution?,SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 How many U.S. viewers were there for the number 4 episode in season?,SELECT us_viewers__millions_ FROM table_25246990_5 WHERE no_in_season = 4 "What is Lowest Crowd, when Home Team is Brisbane Lions?","SELECT MIN(crowd) FROM table_name_5 WHERE home_team = ""brisbane lions""" What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?,"SELECT sensor FROM table_name_53 WHERE sensor_resolution = ""355x288"" AND camera = ""naturalpoint trackir 3""" Return the names of the regions affected by storms that had a death count of at least 10.,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 "What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?","SELECT COUNT(goals__2008_) FROM table_name_86 WHERE games__2008_ < 11 AND debut_round > 15 AND age_at_debut = ""20 years, 71 days""" "Which player has a Position of fly-half, and a Caps of 3?","SELECT player FROM table_name_41 WHERE position = ""fly-half"" AND caps = 3" What is the latest year that has ferrari 166 fl as the winning constructor?,"SELECT MAX(year) FROM table_name_7 WHERE winning_constructor = ""ferrari 166 fl""" "Which Draw has a Performer of jenny newman, and Points smaller than 77?","SELECT AVG(draw) FROM table_name_67 WHERE performer = ""jenny newman"" AND points < 77" Please list the phone numbers of the suppliers of the products that have a higher units on order than units in stock.,SELECT DISTINCT T2.Phone FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitsInStock < T1.UnitsOnOrder What are the titles of films that are either longer than 100 minutes or rated PG other than those that cost more than 200 to replace?,SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200 What is the name of the language that the film 'AIRPORT POLLOCK' is in?,SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK' "What is the average number of rooms of apartments with type code ""Studio""?","SELECT AVG(room_count) FROM Apartments WHERE apt_type_code = ""Studio""" "How many faculty were at California State University-Channel Islands, in the year of 2002?","SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 AND t1.campus = ""California State University-Channel Islands""" what is the to par for geoff ogilvy?,"SELECT to_par FROM table_name_65 WHERE player = ""geoff ogilvy""" Name the representative appointed by george w. bush with presentation of credentials 9 november 2007,"SELECT representative FROM table_name_65 WHERE appointed_by = ""george w. bush"" AND presentation_of_credentials = ""9 november 2007""" What is the name of the city with the most addresses?,SELECT T2.city FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count ( * ) DESC LIMIT 1 Show the names of trains and locations of railways they are in.,"SELECT T2.Name, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID" What is the transaction type code that occurs most often?,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT ( * ) DESC LIMIT 1 What's the power output for channel tv-29?,"SELECT power__kw_ FROM table_2523809_1 WHERE channel = ""TV-29""" What party established in 1797 won an election in 2007?,SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007 What was the season record when the team played against Milwaukee?,"SELECT record FROM table_27704187_10 WHERE team = ""Milwaukee""" "If funded, which are the projects that could impact at least 600 students for a school with moderate level of poverty? Name the projects and state the project cost.","SELECT DISTINCT T2.title, T1.total_price_excluding_optional_support FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.students_reached >= 600 AND T1.poverty_level LIKE 'moderate poverty'" What is the Pick # for brent meeke?,"SELECT pick__number FROM table_name_45 WHERE player = ""brent meeke""" What is every date with a record of 30–34–12?,"SELECT date FROM table_23486853_8 WHERE record = ""30–34–12""" Who was the opponent for the game with a score of w 94–88 (ot)?,"SELECT team FROM table_27713030_11 WHERE score = ""W 94–88 (OT)""" What is the Release date of the Filmography directed by Robert McKimson in MM Series with Production Number 1665?,"SELECT release_date FROM table_name_16 WHERE director = ""robert mckimson"" AND series = ""mm"" AND production_number = ""1665""" "Retrieve the open and close dates of all the policies associated with the customer whose name contains ""Diana""","SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE ""%Diana%""" Which country does Mary Smith live in?,SELECT T3.country FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN country AS T3 ON T2.country_id = T3.country_id INNER JOIN customer AS T4 ON T1.address_id = T4.address_id WHERE T4.first_name = 'MARY' AND T4.last_name = 'SMITH' What Country has the Play The Libation Bearers a Base of Mecklenburg?,"SELECT country FROM table_name_52 WHERE base = ""mecklenburg"" AND play = ""the libation bearers""" Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine?,"SELECT engine FROM table_name_21 WHERE displacement = ""4.4l (4423cc/269in³)"" AND power = ""220kw (299hp) @ 4000""" What is the count of distinct employees with certificates?,SELECT count(DISTINCT eid) FROM Certificate Name the high assists for 29 game,SELECT high_assists FROM table_17355408_5 WHERE game = 29 Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.,SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT AVG(product_price) FROM products) Show all distinct cities in the address record.,SELECT DISTINCT city FROM addresses Which flight numbers correspond to United Airlines flights?,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = ""United Airlines""" "What is Language, when Content is Sport, when HDTV is No, and when Television Service is ESPN America?","SELECT language FROM table_name_71 WHERE content = ""sport"" AND hdtv = ""no"" AND television_service = ""espn america""" "What is the lowest Kerry#, when Others# is ""106"", and when Bush# is less than 3,188?",SELECT MIN(kerry_number) FROM table_name_38 WHERE others_number = 106 AND bush_number < 3 OFFSET 188 "Based on image 5, what is the percentage of images that belong windows object class?",SELECT CAST(COUNT(T1.OBJ_SAMPLE_ID) AS REAL) * 100 / COUNT(CASE WHEN T1.IMG_ID = 5 THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'windows' Who the founder of Sony? | Did you mean the founder of the manufacturer named Sony? | Yes,"SELECT founder from manufacturers where name = ""Sony""" What is the Year(s) won of the Player with a To par of 5?,SELECT year_s__won FROM table_name_4 WHERE to_par = 5 Which service id and type has the least number of participants?,"SELECT T3.service_id , T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1" Name the record for march 16,"SELECT record FROM table_22871239_9 WHERE date = ""March 16""" Are the there macros in the Tabula software?,"SELECT macros FROM table_name_65 WHERE software = ""tabula""" "How many proteins are associated with an institution founded after 1880 or an institution with type ""Private""?",SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private' Name the singer for bruce forsyth,"SELECT singer_s_ FROM table_29135051_2 WHERE guest_s_ = ""Bruce Forsyth""" What is the average of the player with 124 yards and less than 13 rec.?,SELECT AVG(avg) FROM table_name_16 WHERE yards = 124 AND rec < 13 What episode did John Rogers direct?,"SELECT title FROM table_20704243_6 WHERE directed_by = ""John Rogers""" What is the highest FLap by a Honda NSR500 bike after Race 16?,"SELECT MAX(flap) FROM table_name_97 WHERE bike = ""honda nsr500"" AND race > 16" What shows for 2011 at the French open?,"SELECT 2011 FROM table_name_82 WHERE tournament = ""french open""" Which product has been ordered most number of times?,SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1 Find distinct cities of address of students?,SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id Provide the criteria name of the ranking criteria ID 13.,SELECT criteria_name FROM ranking_criteria WHERE id = 13 "For the team which had the most postseason shutouts in 1995, how many points did they have that year?",SELECT SUM(T2.SHO) FROM Scoring AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1995 GROUP BY T2.tmID ORDER BY SUM(T2.PostSHO) DESC LIMIT 1 Mention the name of disabled students who have never been absent from school.,SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0 What are the birth date of patients who took outpatient encounter care plan?,SELECT DISTINCT T1.birthdate FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Outpatient Encounter' How many people live in Gelderland district?,"SELECT sum(Population) FROM city WHERE District = ""Gelderland""" List out the title of Catalan language Wikipedia page that has wikipedia revision page id as 106601.,SELECT title FROM pages WHERE revision = 106601 What are the different product sizes?,SELECT DISTINCT product_size FROM Products "Among the cars produced in year 1973, how many of the cars have horsepower less than 100?",SELECT COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T2.model_year = 1973 AND T1.horsepower < 100 what is the last name of mark,"SELECT Lname FROM Faculty WHERE Fname = ""Mark""" What was the score for the game when West Ham United was the away team?,"SELECT score FROM table_name_84 WHERE away_team = ""west ham united""" "Where was the game on September 11, 2004?","SELECT venue FROM table_name_95 WHERE date = ""september 11, 2004""" Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.,"SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1" How many teams in the NBA which has at least 3 all-star players?,SELECT COUNT(*) FROM ( SELECT tmID FROM players_teams AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NBA' GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) > 3 ) AS T3 "From the Spanish LaLiga division in the 2017 season, which team won the most times as a local team and by what percentage?","SELECT T1.HomeTeam HWHT , CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga' AND T2.country = 'Spain' AND T1.season = 2017" What are the distinct hometowns of gymnasts with total points more than 57.5?,SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5 Retrieve all the first and last names of authors in the alphabetical order of last names.,"SELECT fname , lname FROM authors ORDER BY lname" Find the name and position of the head of the department with the least employees.,"SELECT T2.name , T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;" What is the average price for each type of product?,"SELECT product_type_code, AVG(product_price) FROM products GROUP BY product_type_code" "Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006–2009?","SELECT nationality FROM table_name_57 WHERE player = ""keith bogans"" AND years_in_orlando = ""2006–2009""" What are the accountant name of customer id 3?,SELECT name from accounts where custid = 3 Give the name of the venue where the most number of matches are held.,SELECT T2.Venue_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id GROUP BY T2.Venue_Name ORDER BY COUNT(T2.Venue_Id) DESC LIMIT 1 Find the the grape whose white color grapes are used to produce wines with scores higher than 90.,"SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White"" AND T2.score > 90" Which Score has a Place of 4?,"SELECT score FROM table_name_78 WHERE place = ""4""" "Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March?",SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthMon = 3 "List the names of all distinct medications, ordered in an alphabetical order.",SELECT DISTINCT name FROM medication ORDER BY name What is the name of department where has the smallest number of professors?,SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1 Which model has a frequency of 750 mhz and a socket of bga2μpga2?,"SELECT model_number FROM table_name_19 WHERE frequency = ""750 mhz"" AND socket = ""bga2μpga2""" List ids and details for all projects.,"SELECT project_id , project_details FROM Projects" What is the average rank for players with less than 2.9 Assists per game?,SELECT AVG(rank) FROM table_name_35 WHERE ast_avg < 2.9 What school does Kerry Wood play for?,"SELECT school FROM table_11677100_3 WHERE player = ""Kerry Wood""" Show all church names that have hosted least two weddings.,SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING count(*) >= 2 How many accelerators are not compatible with the browsers listed ?,SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser ); How many events are there?,SELECT count ( * ) FROM event What is the intergiro classification of stage 21?,SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21 What is the Q1 order for Felipe Massa?,"SELECT MAX(q1_order) FROM table_1706942_1 WHERE driver = ""Felipe Massa""" who is the home team when the away team is rivercity rage?,"SELECT home_team FROM table_name_91 WHERE away_team = ""rivercity rage""" What is the name of the item with the highest average rating?,SELECT T1.title 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 What is the to par when the after is 33?,SELECT to_par FROM table_28498999_3 WHERE after = 33 Name the election for the percent of popular vote being 4.48%,"SELECT election FROM table_286271_1 WHERE _percentage_of_popular_vote = ""4.48%""" What is the name of the opponent for the Sutton tournament?,"SELECT opponents FROM table_name_19 WHERE tournament = ""sutton""" "What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?","SELECT gzip FROM table_name_90 WHERE stuffit = ""no"" AND bzip2 = ""no"" AND lha_lzh = ""no""" Can you find the name and age of the oldest manager?,"SELECT Name,age FROM manager ORDER BY Age DESC LIMIT 1" List the person who owns a distinguish credt card.,"SELECT T3.FirstName, T3.LastName FROM CreditCard AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.CardType = 'Distinguish'" What is the population of the country with the highest infant mortality rate?,SELECT T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country ORDER BY T2.Infant_Mortality DESC LIMIT 1 What are the residences of the players?,SELECT Residence FROM player "Which Title has a Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?","SELECT title FROM table_name_72 WHERE songwriter_s_ = ""hadise açıkgöz, stefaan fernande, elio deepcore""" What is the Pashto word for the Malayalam word വ്യാഴം vyazham?,"SELECT pashto FROM table_name_76 WHERE malayalam = ""വ്യാഴം vyazham""" WHere is the friends' school?,"SELECT location FROM table_name_65 WHERE school = ""the friends' school""" What's the voltage of the model with part number TT80503300?,"SELECT voltage FROM table_24096813_15 WHERE part_number_s_ = ""TT80503300""" "Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?","SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = ""ashley callus""" "What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?","SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = ""june 30, 2005""" Which movie got the most critic comments? Give the name of the movie.,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id GROUP BY T2.movie_title ORDER BY COUNT(T1.critic_comments) DESC LIMIT 1 Which original artist had 5 as their order #?,SELECT original_artist FROM table_name_89 WHERE order__number = 5 How many students does MIN MACROSTIE teaches?,"SELECT count ( * ) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname like ""%MIN%"" AND T2.lastname like ""%MACROSTIE%""" What is the venue where the melbourne tigers play their home games?,"SELECT venue FROM table_name_26 WHERE home_team = ""melbourne tigers""" Show all distinct product categories along with the number of mailshots in each category.,"SELECT product_category , count(*) FROM mailshot_campaigns GROUP BY product_category" Show the types of schools that have two schools.,SELECT TYPE FROM school GROUP BY TYPE HAVING COUNT(*) = 2 What is the full name of the Vice President of Production?,"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle = 'Vice President of Production'" "Among courses with difficulty of 3, how many students have intellegence level of 2?",SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.diff = 3 AND T1.intelligence = 2 Show the account id and the number of transactions for each account,"SELECT account_id , count(*) FROM Financial_transactions GROUP BY account_id" What is the name of the only route that runs to bhavnagar?,"SELECT vivek_express__15905_15906 FROM table_26745820_5 WHERE kanyakumari = ""Bhavnagar""" What is the most common major among female (sex is F) students?,"SELECT Major FROM STUDENT WHERE Sex = ""F"" GROUP BY major ORDER BY count(*) DESC LIMIT 1" What is the maximum weight of USA all-star players?,SELECT MAX(T1.weight) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCountry = 'USA' Please list all the models of the devices used by a female user.,SELECT T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T2.gender = 'F' How many parties are there?,SELECT count(*) FROM party what's the name of the dorm with the highest amenities?,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count ( * ) DESC LIMIT 1 Who was the winner/2nd place finisher in the Caulfield Guineas?,"SELECT winner_2nd FROM table_name_18 WHERE race = ""caulfield guineas""" What is the percentage of others when McCain is at 57.7%,"SELECT others_percentage FROM table_20573232_1 WHERE mccain_percentage = ""57.7%""" Who was the Winner when Selby Riddle came in Fourth?,"SELECT winner FROM table_name_26 WHERE fourth = ""selby riddle""" "What are the names and ids of artists with 3 or more albums, listed in alphabetical order?","SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name" What was the altitude of the event on 1962-07-09?,"SELECT altitude__km_ FROM table_148578_1 WHERE date = ""1962-07-09""" "Which part is ordered in a bigger amount in order no.1, ""burnished seashell gainsboro navajo chocolate"" or ""salmon white grey tan navy""?","SELECT T.p_name FROM ( SELECT T2.p_name, SUM(T1.l_quantity) AS num FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name IN ('salmon white grey tan navy', 'burnished seashell gainsboro navajo chocolate') GROUP BY T1.l_partkey ) AS T ORDER BY T.num DESC LIMIT 1" When was the game at the boulevard that ended with an 8-8 score?,"SELECT date FROM table_name_72 WHERE venue = ""the boulevard"" AND score = ""8-8""" What is the title of the episode that got the most 10-star votes?,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 ORDER BY T2.votes DESC LIMIT 1 How many canned A&W were purchased in 2016?,SELECT COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T1.ContainerType = 'Can' AND T2.BrandName = 'A&W' AND T1.PurchaseDate LIKE '2016%' "For each airport name, how many routes start at that airport, ordered from most to least?","SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC" What is the least amount of field goals made by a player?,SELECT MIN(field_goals) FROM table_14342210_6 and can you please tell me their names?,SELECT Name FROM manager WHERE Country = 'United States' and Level = 5 Show all artist names and the year joined who are not from United States.,"SELECT name , year_join FROM artist WHERE country != 'United States'" Which student are enrolled in at least two courses? Give me the student ID and personal name.,"SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2" Avg/G of 2.7 is what effic?,SELECT effic FROM table_name_54 WHERE avg_g = 2.7 Which player scored highest in dribbling?,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY dribbling DESC LIMIT 1 What are the notes in 1981?,"SELECT notes FROM table_name_99 WHERE year = ""1981""" Calculate the total sales made by the games released in 2000.,SELECT SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id WHERE T2.release_year = 2000 Name the NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5,SELECT np___nnp FROM table_name_73 WHERE acdp = 1 AND others = 1 AND dp___da = 5 "Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?","SELECT minister , took_office , left_office FROM party ORDER BY left_office" "Can you tell me the Score that has the Country of united states, and the To par of 8?","SELECT score FROM table_name_45 WHERE country = ""united states"" AND to_par = 8" Can you give me the student ID of registration ID 19?,SELECT student_id FROM Student_Course_Enrolment where registration_id = 19 Find the number of distinct bed types available in this inn.,SELECT count(DISTINCT bedType) FROM Rooms; What are the checking and savings balances in accounts belonging to Brown?,"SELECT T2.balance , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'" "Total larger than 285, and a Finish of t30 belongs to what player?","SELECT player FROM table_name_83 WHERE total > 285 AND finish = ""t30""" Give the title of the prerequisite to the course International Finance.,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance') Great! Can you please tell me what is the total number of orders that used MasterCard?,"SELECT count ( * ) FROM INVOICES where payment_method_code = ""MasterCard""" Which rider had less than 342 points in no more than 76 rides in 7 matches with more than 2 bonus points?,SELECT rider FROM table_name_37 WHERE total_points < 342 AND rides < 76 AND matches = 7 AND bonus_pts > 2 what is the tyre when the entrant is scuderia milano?,"SELECT tyre FROM table_name_81 WHERE entrant = ""scuderia milano""" "How many head coaches are there for the website, http://www.burleighbulldogs.org/?","SELECT COUNT(head_coach) FROM table_11365528_2 WHERE website = ""http://www.burleighbulldogs.org/""" When was a game won with more than 11 to par?,SELECT year_s__won FROM table_name_6 WHERE to_par > 11 What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?,"SELECT cross_section_area__cm_2__ FROM table_2071644_1 WHERE moment_of_inertia_in_torsion__j___cm_4__ = ""2.54""" "When 4th, great lakes is the regular season what is the league?","SELECT league FROM table_1939235_1 WHERE regular_season = ""4th, Great Lakes""" available subnets leading total is?,SELECT MAX(available_subnets) FROM table_149426_4 How many unemployed and bankrupt students that have payment dues?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name INNER JOIN no_payment_due AS T3 ON T2.name = T3.name WHERE T3.bool = 'pos' Which building houses the room that has the maximum capacity?,SELECT building FROM classroom order by capacity desc limit 1 "Which Position has a League from of western hockey league, and a Team from of everett silvertips?","SELECT position FROM table_name_90 WHERE league_from = ""western hockey league"" AND team_from = ""everett silvertips""" What was the result of the game in halifax?,"SELECT result FROM table_name_34 WHERE city = ""halifax""" "What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom?","SELECT MIN(year) FROM table_name_8 WHERE event = ""50km"" AND result = ""2nd"" AND venue = ""london, united kingdom""" How many courses are there in Computer Science?,"SELECT COUNT ( * ) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Computer Science""" What was the tie number for the round against visiting opponent Newcastle United?,"SELECT tie_no FROM table_name_53 WHERE away_team = ""newcastle united""" What is the id of the candidate with the lowest oppose rate?,SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 "What is the difference between the number of communities that are located on the north and south sides with a population of more than 30,000?",SELECT SUM(CASE WHEN side = 'South ' THEN 1 ELSE 0 END) - SUM(CASE WHEN side = 'North' THEN 1 ELSE 0 END) AS DIFF FROM Community_Area WHERE population > 300000 What platform is the game 3Xtreme available on?,SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = '3Xtreme' Which product has the highest net profit in 2019?,"SELECT T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T1.OrderDate LIKE '%/%/19' ORDER BY REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') DESC LIMIT 1" How many students got accepted after the tryout?,SELECT count(*) FROM tryout WHERE decision = 'yes' Name the shipper which had the most shipments in first quarter of 1998.,"SELECT T1.CompanyName FROM Shippers AS T1 INNER JOIN Orders AS T2 ON T1.ShipperID = T2.ShipVia WHERE STRFTIME('%Y', T2.ShippedDate) = '1998' GROUP BY T1.CompanyName ORDER BY COUNT(T2.OrderID) DESC LIMIT 1" What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?,"SELECT MIN(total_population_2001) FROM table_19589113_5 WHERE growth_rate_1991_01 = ""33.08""" "How many times does the biwords ""que gregorio"" appear in the language?",SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'que' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'gregorio' ) Who was the original artist of the group performance theme?,"SELECT original_artist FROM table_26250155_1 WHERE theme = ""Group Performance""" "List the number of invoices from the US, grouped by state.","SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state;" "List the hardware model name for the phones that were produced by ""Nokia Corporation"" but whose screen mode type is not Text.","SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = ""Nokia Corporation"" AND T1.Type != ""Text"";" Name the city for athous lavrensis,"SELECT city FROM table_name_22 WHERE name = ""athous lavrensis""" "What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?","SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = ""primary"" AND faith = ""ce"" AND intake = 30 AND dcsf_number < 3349" How many games are held after season 2007?,SELECT COUNT(*) FROM game WHERE season > 2007 What is the total rank with more than 392 total points and an 24.8 average?,SELECT COUNT(rank_by_average) FROM table_name_12 WHERE total_points > 392 AND average = 24.8 Show the addresses of the buildings that have apartments with more than 2 bathrooms.,SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2 "Which customers use ""Cash"" for payment method? Return the customer names.","SELECT customer_name FROM customers WHERE payment_method = ""Cash""" What round on average was a defensive tackle selected?,"SELECT AVG(round) FROM table_name_87 WHERE position = ""defensive tackle""" "Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann?","SELECT Vice AS president FROM table_name_29 WHERE president = ""daniel masny"" AND treasurer = ""rebecca t. altmann""" Find the locations that have more than one movie theater with capacity above 300.,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1 What are the maximum and minimum resolution of songs whose duration in 3 minutes?,"SELECT max ( T2.resolution ) , min ( T2.resolution ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""" How many episodes had 16.03 million viewers?,"SELECT COUNT(no_in_series) FROM table_11058032_1 WHERE us_viewers__millions_ = ""16.03""" Find out the difference between the number of publishers who released the games on the PS3 and X360.,SELECT COUNT(CASE WHEN T2.platform_name = 'PS3' THEN T1.game_publisher_id ELSE NULL END) - COUNT(CASE WHEN T2.platform_name = 'X360' THEN T1.game_publisher_id ELSE NULL END) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id What is the blocks total number if the points is 4?,SELECT COUNT(blocks) FROM table_23346303_5 WHERE points = 4 What are the phones and emails of workshop groups in which services are performed?,"SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID" Name the former name for 49 rank,SELECT Former AS name FROM table_name_79 WHERE rank = 49 What 2009 has 39th as the 2011?,"SELECT 2009 FROM table_name_45 WHERE 2011 = ""39th""" Show first name and last name for all students.,"SELECT Fname, Lname FROM Student" What is the top Points Allowed?,SELECT MAX(pa) FROM table_17012578_6 What is all the job history info done by employees earning a salary greater than or equal to 12000?,SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000 "What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?","SELECT name_v_t_e FROM table_name_32 WHERE weight__kg_ = 84 AND position = ""d"" AND jersey_number = 2" Show the name and location of track with 1 race.,"SELECT T2.name , T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING count(*) = 1" What are the names of the games that were published by 505 Games?,SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = '505 Games' "What is Local Position, when Mission is ""Paraguay""?","SELECT local_position FROM table_name_92 WHERE mission = ""paraguay""" List the description of all aircrafts.,SELECT Description FROM aircraft How many films are in English?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.name = 'English' How about for the Duke school?,SELECT t2.All_Games FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Duke' How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?,"SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Show the id and salary of Mark Young.,"SELECT eid, salary FROM Employee WHERE name = 'Mark Young'" Find the stories of the building with the largest height.,SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1 "Which Round has a School/Club Team of arizona, and a Pick smaller than 298?","SELECT MAX(round) FROM table_name_68 WHERE school_club_team = ""arizona"" AND pick < 298" Find the driver id and number of races of all drivers who have at most participated in 30 races?,"SELECT T1.driverid , count(*) 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" "How many overalls have E as the position, buddy payne as the name, and a pick less than 5?","SELECT COUNT(overall) FROM table_name_29 WHERE position = ""e"" AND name = ""buddy payne"" AND pick < 5" How many samples were taken of 嬰幼兒配方乳粉2段基粉 ?,"SELECT COUNT(samples_taken) FROM table_18943444_1 WHERE product = ""嬰幼兒配方乳粉2段基粉""" What was the least amount of points scored?,SELECT MIN(extra_points) FROM table_25730209_2 Return the apartment number with the largest number of bedrooms.,SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1 What was marlboro brm's lowest points by using brm p160b?,"SELECT MIN(points) FROM table_name_60 WHERE entrant = ""marlboro brm"" AND chassis = ""brm p160b""" How many names correspond to the value 101 for appearances?,SELECT COUNT(name) FROM table_24565004_14 WHERE appearances¹ = 101 Does Green Bay have a golf team?,"SELECT golf FROM table_name_66 WHERE school = ""green bay""" "Among the countries that officially use the English language, what country has the highest capital?",SELECT T1.Code FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' ORDER BY T1.Capital DESC LIMIT 1 Which letter has the British aɪ?,"SELECT letter FROM table_name_40 WHERE british = ""aɪ""" What score has Toronto Eagles as the home?,"SELECT score FROM table_name_57 WHERE home = ""toronto eagles""" Indicates groups with id from 10 to 20 with singles downloaded at least 20.,SELECT groupName FROM torrents WHERE totalSnatched >= 20 AND releaseType LIKE 'single' AND id BETWEEN 10 AND 20 What are the names of the teachers who teach at least two courses?,SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 Find the saving balance of the account with the highest checking balance.,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 Calculate the total rental rate for animation film titles.,SELECT SUM(T1.rental_rate) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Animation' What is the lowest number of field goals when the points were less than 5?,SELECT MIN(field_goals) FROM table_name_53 WHERE points < 5 What is the name of the course with the most registered students?,SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1 How many countries do not have an roller coaster longer than 3000?,SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH > 3000 ) What is the score of Colorado when they were a visitor and had a Smith decision?,"SELECT score FROM table_name_32 WHERE decision = ""smith"" AND visitor = ""colorado""" Show all flight number from Los Angeles.,"SELECT flno FROM Flight WHERE origin = ""Los Angeles""" How many races were for a distance of 2020 m?,"SELECT COUNT(group) FROM table_1358608_4 WHERE distance = ""2020 m""" What was the home team's record when they played the Twins on September 25?,"SELECT record FROM table_name_57 WHERE opponent = ""twins"" AND date = ""september 25""" Which district did the review on 2018/9/11 come from? Give the name of the city.,"SELECT T2.district_id, T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Date = '2018-09-11'" Find Alice's friends of friends.,SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name != 'Alice' what are the times where the play is 5,SELECT date FROM table_27733909_1 WHERE game = 5 Thank you! Can you update this filtered list to show the total population of this county?,SELECT T1.population FROM county_public_safety as T1 join city as T2 on T1.County_ID = T2.County_ID order by Population desc limit 1 How many people lived in bulac in the year 2000?,"SELECT MAX(population__2000_) FROM table_2004733_2 WHERE barangay = ""Bulac""" How many weeks in total were games played at Cleveland Browns Stadium?,"SELECT COUNT(week) FROM table_name_81 WHERE stadium = ""cleveland browns stadium""" "What is Television Service, when Content is Presentazione?","SELECT television_service FROM table_name_90 WHERE content = ""presentazione""" On which date was the score 0 - 0?,"SELECT date FROM table_name_54 WHERE score = ""0 - 0""" How many crime against society were reported in Englewood?,SELECT SUM(CASE WHEN T3.community_area_name = 'Englewood' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.crime_against = 'Society' "How many products have the characteristic named ""hot""","SELECT count ( * ) 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 t3.characteristic_name = ""hot""" What away team played at Brunswick Street Oval?,"SELECT away_team FROM table_name_23 WHERE venue = ""brunswick street oval""" What team did the manager come from who departed due to an end of tenure as caretaker?,"SELECT team FROM table_name_56 WHERE manner_of_departure = ""end of tenure as caretaker""" Please write down the trip IDs which ended on the days when the minimum temperature is less than 45 degrees Fahrenheit.,SELECT T1.id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.min_temperature_f < 45 What are the start date and end date of the booking that has booked the product named 'Book collection A'?,"SELECT T3.booking_start_date , T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'" "Which Points have a Score of 4–1, and a Game smaller than 39?","SELECT SUM(points) FROM table_name_91 WHERE score = ""4–1"" AND game < 39" Find the total revenue created by the companies whose headquarter is located at Austin.,SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin' "what are all the playoffs for regular season is 1st, atlantic division","SELECT playoffs FROM table_1046170_5 WHERE regular_season = ""1st, Atlantic division""" What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from?,"SELECT city FROM table_name_84 WHERE entered_the_house = ""day 1"" AND profession = ""tv presenter""" What venue has 19 against?,SELECT venue FROM table_name_47 WHERE against = 19 How many countries have more than one roller coaster?,select count ( * ) from ( SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT ( * ) > 1 ) Who is the hero character of the Disney movie directed by Will Finn?,SELECT T1.hero FROM characters AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Will Finn' "Find the code of the document type ""Paper"".","SELECT document_type_code FROM Ref_document_types WHERE document_type_name = ""Paper""" Which colleges does each player with a name that starts with the letter D who tried out go to?,SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%' "What is the sum of the poles of Team la filière, which has less than 162 points?","SELECT SUM(poles) FROM table_name_13 WHERE team = ""la filière"" AND points < 162" Which trip id had the longest duration and the start station is in Redwood City?,SELECT T1.id FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Redwood City' AND T1.duration = ( SELECT MAX(T1.duration) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Redwood City' ) Which Entrepreneur(s) first aired on 24 August 2006?,"SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = ""24 august 2006""" What is the id of the customer with at least 3 events?,SELECT ( T1.customer_id ) FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 3 "What is the Rank of the Film with a Worldwide Gross of $914,691,118?","SELECT rank FROM table_name_42 WHERE worldwide_gross = ""$914,691,118""" How many word appeared 8 times? State the language id of the page.,"SELECT COUNT(T2.wid), T1.lid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.occurrences = 8" What is the percentage of restaurants in the Bay Area region that scored over 4 for the review rating?,"SELECT CAST(SUM(IIF(T2.review > 4, 1, 0)) AS REAL) * 100 / COUNT(T2.id_restaurant) FROM geographic AS T1 RIGHT JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area'" "what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31?","SELECT name FROM table_name_64 WHERE heat < 3 AND rank < 18 AND nationality = ""east germany"" AND time = ""2:35.31""" find the name of physician who have seen the patient 100000001,SELECT DISTINCT Physician FROM Undergoes WHERE patient = 100000001 What are the region and population of Angola?,"SELECT Population , Region FROM country WHERE Name = ""Angola""" How many capitals had brest litovsk voivodeship as voivodeship after 1569?,"SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = ""Brest Litovsk Voivodeship""" What was the score for the player from Scotland?,"SELECT score FROM table_name_76 WHERE country = ""scotland""" Date of april 9 had what score?,"SELECT score FROM table_name_11 WHERE date = ""april 9""" What are the company that Adventure Works deal with that have poor credit rating? Please provide their business number.,SELECT BusinessEntityID FROM Vendor WHERE CreditRating = ( SELECT CreditRating FROM Vendor ORDER BY CreditRating DESC LIMIT 1 ) For what country does the golfer play who has a score of 72-65=137?,SELECT country FROM table_name_47 WHERE score = 72 - 65 = 137 Provide the students' names and schools who enrolled for 15 months.,"SELECT name, school FROM enrolled WHERE month = 15" what is the lowest number of blocks,SELECT MIN(blocks) FROM table_19722233_5 Name the outgoing manager for esteban vigo,"SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE replaced_by = ""Esteban Vigo""" "Which Game has a Record of 8–2–0, and Points larger than 16?","SELECT SUM(game) FROM table_name_43 WHERE record = ""8–2–0"" AND points > 16" And how about the least common type of company?,SELECT TYPE FROM operate_company GROUP BY TYPE ORDER BY count ( * ) ASC LIMIT 1 What is the category of the product that has the highest number of discontinued products?,SELECT T2.CategoryName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.Discontinued = 1 GROUP BY T2.CategoryName ORDER BY COUNT(T1.ProductID) DESC LIMIT 1 What was the name for the row with Date From of 2008-02-21?,"SELECT name FROM table_name_86 WHERE date_from = ""2008-02-21""" How many first tournaments were winter sports with exactly 1 division?,"SELECT COUNT(1 AS st_tournament) FROM table_2849652_2 WHERE season = ""Winter"" AND _number_of_divisions = 1" how many times is the name Derek Smith when the round is higher than 3?,"SELECT COUNT(overall) FROM table_name_63 WHERE name = ""derek smith"" AND round > 3" What team was the visitor on 3/2?,"SELECT visitor FROM table_name_72 WHERE date = ""3/2""" What is the total of TCKL in 2000 with a P/KO RET less than 14?,"SELECT COUNT(tckl) FROM table_name_9 WHERE year = ""2000"" AND p_ko_ret < 14" Which film actors and actresses played a role in more than 30 films? List their first and last names.,"SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count ( * ) > 30" What is its description? | Did you also want to konw the description the attraction type most tourist attractions belong to? | yes,SELECT T1.Attraction_Type_Description FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 "What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?","SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = ""45,653"" AND tonkolili > 113 OFFSET 926" Where was the 'A context-based navigation paradigm for accessing Web data' paper published? State the name of the conference.,SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'A context-based navigation paradigm for accessing Web data' What is the total number of widowed customers with an age below 50?,SELECT COUNT(ID) FROM Customers WHERE MARITAL_STATUS = 'Widowed' AND age < 50 Which city of license has the Kyli call sign?,"SELECT city_of_license FROM table_name_98 WHERE call_sign = ""kyli""" What is the total number of seats of the Christian Democratic Union (CDU) party?,"SELECT total_seats FROM table_name_34 WHERE party = ""christian democratic union (cdu)""" What position does the player from the MLS New England Revolution team hold?,"SELECT position FROM table_name_35 WHERE mls_team = ""new england revolution""" "List down the official language of the countries which declared independence after 1990,","SELECT T1.Name, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear > 1990 AND T2.IsOfficial = 'T'" What is the maximum enrollment across all schools?,SELECT max(Enrollment) FROM university "What is the Length, when the Composer(s) is Sakdatorn, and when the Arranger(s) is Jitrakorn Mongkoltham?","SELECT length FROM table_name_4 WHERE composer_s_ = ""sakdatorn"" AND arranger_s_ = ""jitrakorn mongkoltham""" Identify the cost difference between Priority and Express shipping methods.,SELECT SUM(CASE WHEN method_name = 'Priority' THEN cost ELSE 0 END) - SUM(CASE WHEN method_name = 'Express' THEN cost ELSE 0 END) FROM shipping_method Provide the origin of the flight that has the shortest actual elapsed time.,SELECT ORIGIN FROM Airlines ORDER BY ACTUAL_ELAPSED_TIME ASC LIMIT 1 What is the order priority of the order with the highest total price?,SELECT o_orderpriority FROM orders WHERE o_totalprice = ( SELECT MAX(o_totalprice) FROM orders ) "What are the maximum, minimum, and average booked count for the products booked?","SELECT max(booked_count) , min(booked_count) , avg(booked_count) FROM products_booked" What is the longitude of the island on which Mount Olympos is located?,SELECT T3.Longitude FROM mountain AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Mountain INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Name = 'Olympos' Which teams had the 1st position and entered 1 race?,"SELECT team FROM table_name_42 WHERE races = ""1"" AND position = ""1st""" What is the number of March that has 25-10-9 record and a Game more than 44?,"SELECT COUNT(march) FROM table_name_94 WHERE record = ""25-10-9"" AND game > 44" Which season has Caps lower than 36 for the Club of NAC Breda?,"SELECT season FROM table_name_35 WHERE caps < 36 AND club = ""nac breda""" Which driver had less than 65 laps for Sigma Autosport?,"SELECT driver FROM table_name_64 WHERE laps < 65 AND team = ""sigma autosport""" What are the first and last names of the instructors who teach the top 3 number of courses?,"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" "Among the actors born in New York City, list the genre of their movie with a rating greater than 5.",SELECT T1.Genre FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.`Birth City` = 'New York City' AND T1.Rating > 5 What was the race time of the horse with jockey Ramon Dominguez?,"SELECT time FROM table_name_73 WHERE jockey = ""ramon dominguez""" Find the names of departments that are either in division AS or in division EN and in Building NEB.,"SELECT DName FROM DEPARTMENT WHERE Division = ""AS"" UNION SELECT DName FROM DEPARTMENT WHERE Division = ""EN"" AND Building = ""NEB""" Where is the University that is also called Owls?,"SELECT location FROM table_19210115_1 WHERE nickname = ""Owls""" List the carriers of devices in ascending alphabetical order.,SELECT Carrier FROM device ORDER BY Carrier ASC Give me the names of the English Artist,"SELECT DISTINCT artist_name FROM song WHERE languages = ""english""" list the name of programme that broadcast frequently | Do you mean the name of the program that is broadcast most frequently? | yes,SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count ( * ) DESC LIMIT 1 "What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?","SELECT aam_member FROM table_name_21 WHERE aam_accredited = ""no"" AND state = ""california"" AND astc_member = ""yes"" AND city = ""sacramento""" List the names of pilots that do not have any record.,SELECT Pilot_name FROM pilot WHERE Pilot_ID NOT IN (SELECT Pilot_ID FROM pilot_record) "which department has most number of head? tell me department ID,",select departmentid from department order by head desc limit 1 List the name and phone number of customers in India who have an above-average account balance.,"SELECT T1.c_name, T1.c_phone FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal > ( SELECT AVG(c_acctbal) FROM customer ) ORDER BY T1.c_name" what is the power when the name is 1.2 16v lpg?,"SELECT power FROM table_name_13 WHERE name = ""1.2 16v lpg""" "Can you update this list to show both the heights for each player, as well as each of their overall scores?","SELECT T1.player_api_id, T1.player_name, T1.height, T2.overall_rating FROM Player as T1 JOIN Player_Attributes AS T2 ON T1.player_fifa_api_id = T2.player_fifa_api_id" What is the genre of the movie whose villain is Commander Rourke?,SELECT T2.genre FROM characters AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie_title WHERE T1.villian = 'Commander Rourke' WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?,"SELECT transfer_window FROM table_name_12 WHERE country = ""bra""" How many students does KAWA GORDON teaches?,"SELECT count ( * ) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""KAWA"" AND T2.lastname = ""GORDON""" "What is the phone number of the person with id ""12597""?",SELECT PhoneNumber FROM PersonPhone WHERE BusinessEntityID = 12597 Who wrote the episode with the production code 519?,SELECT written_by FROM table_21550897_1 WHERE production_code = 519 "The part ""hot spring dodger dim light"" is ordered in how many orders?",SELECT COUNT(T1.p_partkey) FROM part AS T1 INNER JOIN lineitem AS T2 ON T1.p_partkey = T2.l_partkey WHERE T1.p_name = 'hot spring dodger dim light' how many of those votes were from the secretary?,"SELECT sum ( T2.Secretary_VOTE ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" "ok, which team offering the highest salary? | OK, do you want me to show the team name or id? Also, are you asking about average salary? | please give me the name. Yes!",SELECT T1.name FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg ( T2.salary ) DESC LIMIT 1 What date had a margin victory of 2 strokes?,"SELECT date FROM table_name_91 WHERE margin_of_victory = ""2 strokes""" Find the number of different products that are produced by companies at different headquarter cities.,"SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter" "What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995?","SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = ""september 21, 1995""" What is the To par value that goes with a Score of 70-69=139?,SELECT to_par FROM table_name_78 WHERE score = 70 - 69 = 139 How high is the Attendance with a Record of 29-25?,"SELECT MAX(attendance) FROM table_name_68 WHERE record = ""29-25""" How many neighborhoods have a station proposed at a Hospital?,"SELECT COUNT(city_neighborhood) FROM table_22771048_4 WHERE station = ""Hospital""" Which date has a round more than 9?,SELECT date FROM table_name_85 WHERE round > 9 What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?,SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' What is the minimum area id the 2011 population is 3067549?,SELECT MIN(area__km²_) FROM table_2168295_1 WHERE population__2011_ = 3067549 Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?,"SELECT home_team FROM table_name_81 WHERE tie_no = ""replay"" AND away_team = ""bolton wanderers""" How many budget types do we have?,SELECT COUNT(*) FROM Ref_budget_codes Name the motogp winner for 6 may,"SELECT motogp_winner FROM table_27948565_1 WHERE date = ""6 May""" what is the to par for retief goosen?,"SELECT to_par FROM table_name_93 WHERE player = ""retief goosen""" What are all the different food allergies?,"SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = ""food""" Which Skip has a Second of vicki adams?,"SELECT skip FROM table_name_21 WHERE second = ""vicki adams""" Which Player has a CFL Team of montreal alouettes (via hamilton via winnipeg)?,"SELECT player FROM table_name_23 WHERE cfl_team = ""montreal alouettes (via hamilton via winnipeg)""" "What Catalog released on June 29, 1999 has a Digipak Album Format?","SELECT catalog FROM table_name_8 WHERE format = ""digipak album"" AND date = ""june 29, 1999""" "Date of april 3, 2007 had what score?","SELECT score FROM table_name_2 WHERE date = ""april 3, 2007""" "When against is 797 and wins is more than 10, what is the sum of draws?",SELECT COUNT(draws) FROM table_name_28 WHERE against = 797 AND wins > 10 How many parks is Zippin Pippin located in,"SELECT COUNT(park) FROM table_2665085_1 WHERE name = ""Zippin Pippin""" "What is Score, when Game is greater than 49, and when Opponent is ""Pittsburgh Ironmen""?","SELECT score FROM table_name_10 WHERE game > 49 AND opponent = ""pittsburgh ironmen""" Indicate the name of the country where Leka Trading supplies Ipoh Coffee product.,SELECT T2.Country FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Ipoh Coffee' AND T2.CompanyName = 'Leka Trading' "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.","SELECT brand , name FROM camera_lens ORDER BY max_aperture DESC" Which project have no outcome? | so what would you want to know about the project have no outcome | List the project details of above?,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_outcomes ) Which winning team beat the New York Yankees?,"SELECT winning_team FROM table_10548224_1 WHERE losing_team = ""New York Yankees""" Name the record for arizona,"SELECT record FROM table_22815259_1 WHERE opponent = ""Arizona""" In 2004 who was favourite maa?,"SELECT character FROM table_name_6 WHERE category = ""favourite maa"" AND year = 2004" "What is Away Team, when Home Team is ""Sheffield Wednesday""?","SELECT away_team FROM table_name_65 WHERE home_team = ""sheffield wednesday""" How many films are there in total?,SELECT COUNT ( DISTINCT Title ) FROM film How many different levels do members have?,SELECT COUNT(DISTINCT LEVEL) FROM member What are the numbers of all flights that can cover a distance of more than 2000?,SELECT flno FROM Flight WHERE distance > 2000 Find the title and score of the movie with the lowest rating among all movies directed by each director.,"SELECT T2.title, T1.stars, T2.director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director" "How many rating/share values does the episode aired on Saturday, May 9, 2009?","SELECT COUNT(rating) / SHARE(18 AS –49) FROM table_17525955_2 WHERE us_air_date = ""Saturday, May 9, 2009""" How many orders were returned in the year 2020?,"SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Returned' AND STRFTIME('%Y', T2.status_date) = '2020'" how much budget is taking biology department?,"SELECT budget from department where dept_name = ""Biology""" What is the average decile for te puru school?,"SELECT AVG(decile) FROM table_name_84 WHERE name = ""te puru school""" What were the years of senior status for active service in 1972–1995?,"SELECT senior_status FROM table_name_53 WHERE active_service = ""1972–1995""" "Does Yelp business No.""11825"" have a ""parking lot""?",SELECT T1.attribute_value FROM Business_Attributes AS T1 INNER JOIN Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.business_id = 11825 AND T2.attribute_name = 'parking_lot' Who was the away team when the home team was South Melbourne?,"SELECT away_team FROM table_name_7 WHERE home_team = ""south melbourne""" What district is Henry Hyde in,"SELECT district FROM table_1341423_13 WHERE incumbent = ""Henry Hyde""" What year did Bangkok University and Chunnam Dragons have a score of 0-0?,"SELECT SUM(season) FROM table_name_31 WHERE team_1 = ""bangkok university"" AND score = ""0-0"" AND team_2 = ""chunnam dragons""" How many documents are with document type code BK for each product id?,"SELECT COUNT(*), project_id FROM Documents WHERE document_type_code = ""BK"" GROUP BY project_id" "What is Result, when Extra is ""Heptathlon"", and when Venue is ""Götzis , Austria""?","SELECT result FROM table_name_62 WHERE extra = ""heptathlon"" AND venue = ""götzis , austria""" "Are there any other categories? | Do you mean the other category has books after year 1989? Gay SF/F is the only one category has books after year 1989 | Yes, that's what I meant. How many books does Gay SF/F have after 1989?",select count ( * ) from book_club where Category = 'Gay SF/F' and year>'1989' What is the card type with the most number of cards?,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count ( * ) DESC LIMIT 1 How many students does one classroom have?,"SELECT count(*) , classroom FROM list GROUP BY classroom" "What is Tries Against, when Try Diff is +15?","SELECT tries_against FROM table_name_34 WHERE try_diff = ""+15""" What is the brigade Tall Al-Shawk shows for the name?,"SELECT brigade FROM table_name_68 WHERE name = ""tall al-shawk""" "The column ""product_id "" in Table: ""problems"" refers to column ""product_id"" in Table: "" product"" | could give more info about this question? | List the ids of the problem from the product ''voluptatem'' that are reported after 1995?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"" AND T1.date_problem_reported > ""1995""" What is the GDP % of EU in 2012 of the country with a GDP in billions of USD in 2012 of 256.3?,SELECT gdp__percentage_of_eu__2012_ FROM table_name_19 WHERE gdp_in_s_billion_of_usd__2012_ = 256.3 What is the first name of the oldest employee?,SELECT emp_fname FROM employee ORDER BY emp_dob LIMIT 1 Find the number and average age of students living in each city.,"SELECT count(*) , avg(age) , city_code FROM student GROUP BY city_code" Find the average price of wines that are not produced from Sonoma county.,SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') What is the time in week 3?,SELECT tv_time FROM table_name_29 WHERE week = 3 "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.","SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )" How many losses were there when the record was 4-0?,"SELECT MAX(opponents) FROM table_20745444_1 WHERE record = ""4-0""" Find out the yearly income of geographic ID when the customer is female and occupation as sales.,SELECT T2.INHABITANTS_K * T2.INCOME_K * 12 FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.OCCUPATION = 'Sales' Name the cancelable for onmouseover,"SELECT cancelable FROM table_name_25 WHERE attribute = ""onmouseover""" Crockett High School had which number(#)?,"SELECT _number FROM table_12032893_1 WHERE high_school = ""Crockett""" Which power output had a Build date of 1951–1956?,"SELECT power_output FROM table_name_23 WHERE build_date = ""1951–1956""" How many students enlisted in the navy?,SELECT COUNT(name) FROM enlist WHERE organ = 'navy' What was the original US Tour cast when the original broadway was Kevin Chamberlin?,"SELECT original_us_tour_cast FROM table_name_75 WHERE original_broadway_cast = ""kevin chamberlin""" How much dollars was a Bitcoin worth on 2013/4/28 according to the coin market?,SELECT T2.market_cap FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T1.name = 'Bitcoin' And what is the average price for each company?,"SELECT avg ( price ) , manufacturer FROM products group by manufacturer" who was the commentator when spokesperson was claude darget,"SELECT commentator FROM table_184803_4 WHERE spokespersons = ""Claude Darget""" "Calculate the average number of images with an attribute class of ""keyboard"".",SELECT AVG(T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'keyboard' "What is the Label of the September 20, 2008 release with Catalog number RTRADCD491?","SELECT label FROM table_name_22 WHERE catalog = ""rtradcd491"" AND date = ""september 20, 2008""" What are the years of participation for central crossing school?,"SELECT years_of_participation FROM table_17429402_7 WHERE school = ""Central Crossing""" "What team has an against more than 8, lost of 7, and the position is 5?",SELECT team FROM table_name_13 WHERE against > 8 AND lost = 7 AND position = 5 "Yes, what's the name of the county with the biggest population?",SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 How many customers from the furniture segments come from Iraq?,SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_mktsegment = 'FURNITURE' AND T2.n_name = 'IRAQ' "How many different lens are there? | Did you mean the different brand of lens are there | No, I meant the total number of lenses",SELECT count ( * ) from camera_lens Which year Star Wars movie is released?,SELECT year FROM Movie WHERE title = 'Star Wars' What was the order date of items with the highest total price?,SELECT o_orderdate FROM orders WHERE o_totalprice = ( SELECT MAX(o_totalprice) FROM orders ) Can you provide a count of assessment notes by teacher id?,"SELECT T1.teacher_id , count ( * ) FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id" Who captains Portsmouth?,"SELECT captain FROM table_name_9 WHERE team = ""portsmouth""" "What is Pick, when Round is ""6"", when Nationality is ""Canada"", when Draft is greater than 1983, and when Player is ""Ed Ward Category:Articles with hCards""?","SELECT pick FROM table_name_37 WHERE round = ""6"" AND nationality = ""canada"" AND draft > 1983 AND player = ""ed ward category:articles with hcards""" what is the least booked amount,SELECT min ( booked_amount ) FROM products_booked Return the positions of players on the team Ryley Goldner.,"SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Ryley Goldner""" Show all distinct region names ordered by their labels.,SELECT DISTINCT region_name FROM region ORDER BY Label What is the name of the oldest student?,"SELECT fname,lname FROM Student order by age desc limit 1" What is the book with the most orders?,SELECT T2.title FROM order_line AS T1 INNER JOIN book AS T2 ON T1.book_id = T2.book_id GROUP BY T2.title ORDER BY COUNT(T1.book_id) DESC LIMIT 1 What is the frequency where the power is 25kw?,"SELECT frequency FROM table_name_10 WHERE power__kw_ = ""25kw""" What Japanese title had average ratings at 9.1%?,"SELECT japanese_title FROM table_name_67 WHERE average_ratings = ""9.1%""" How many people graduated from San Francisco State University in 2004?,"SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Francisco State University""" What kind of payment methods are there? | Do you mean the number of payment kinds? | yes,SELECT Count ( distinct payment_method ) FROM customers What was the score of the game when the record was 35-47?,"SELECT score FROM table_name_76 WHERE record = ""35-47""" Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.,SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin') "How many cities are there in state ""Colorado""?","SELECT count(*) FROM addresses WHERE state_province_county = ""Colorado""" "Find the number of trains for each station, as well as the station network name and services.","SELECT count(*) , t1.network_name , t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id" What role did Jean-Luc Bouvier serve?,"SELECT function__figure_ FROM table_name_30 WHERE real_name = ""jean-luc bouvier""" List all the platform games.,SELECT T2.game_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name = 'Platform' Find the total passengers of London Waterloo?,"select total_passengers from station where name = ""London Waterloo""" What is the average number of dishes per menu in the Souper de Luxe menus? Identify what is the name of the dish that appeared the most in all of its menus.,"SELECT COUNT(*), T1.dish_id FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Souper de Luxe' GROUP BY T3.id ORDER BY COUNT(T1.dish_id) DESC LIMIT 1" Opponents of sebastián decoud santiago giraldo had what surface?,"SELECT surface FROM table_name_71 WHERE opponents = ""sebastián decoud santiago giraldo""" Can you tell me the course code for the class with the Intro. to Statistics description?,SELECT CRS_CODE from course where CRS_DESCRIPTION = 'Intro. to Statistics' Indicate the category name of the product name with the highest units on order.,SELECT T2.CategoryName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.UnitsOnOrder = ( SELECT MAX(T1.UnitsOnOrder) FROM Products ) "Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291?","SELECT player FROM table_name_33 WHERE place = ""t5"" AND score = 73 - 72 - 71 - 75 = 291" List all of the books that were published in 1995.,"SELECT title FROM book WHERE STRFTIME('%Y', publication_date) = '1995'" What is the store and inventory ID of the film with the longest duration?,"SELECT T2.store_id, T2.inventory_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id ORDER BY T1.length DESC LIMIT 1" Count the number of male students who belong to foreign legion.,SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'foreign_legion' What are the names of the instructors in the Comp. Sci. department who earn more than 80000?,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 How many friends does each student have?,"SELECT student_id , count(*) FROM Friend GROUP BY student_id" "What is Tournament, when Black is ""Kramnik"", when Result is ""½–½"", and when Moves is ""40""?","SELECT tournament FROM table_name_46 WHERE black = ""kramnik"" AND result = ""½–½"" AND moves = 40" Which project have the highest total price including optional support? Indicate the project id.,SELECT projectid FROM projects ORDER BY total_price_including_optional_support DESC LIMIT 1 How many times more was the number of students of University of Ottawa than Joseph Fourier University in 2013?,SELECT CAST(SUM(CASE WHEN T2.university_name = 'University of Ottawa' THEN T1.num_students ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.university_name = 'Joseph Fourier University' THEN T1.num_students ELSE 0 END) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013 How many people voted for Kerry in the county where 8 voted for others?,SELECT MIN(kerry_number) FROM table_2401326_1 WHERE others_number = 8 How many sales channels does the sales team have in the Midwest?,SELECT COUNT(T1.`Sales Channel`) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.Region = 'Midwest' What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?,"SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos" Find the address of all customers that live in Germany and have invoice.,"SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Germany""" Which label has a year older than 2004 and a 2xcd detail as well as the sonic seducer cold hands seduction vol. 69 title?,"SELECT label FROM table_name_88 WHERE year > 2004 AND details = ""2xcd"" AND title = ""sonic seducer cold hands seduction vol. 69""" "What is the number for the University of Dublin with their Cultural and Educational Panel of 5, and an Industrial and Commercial Panel with less than 9?",SELECT COUNT(university_of_dublin) FROM table_name_46 WHERE cultural_and_educational_panel = 5 AND industrial_and_commercial_panel < 9 What event had zhamash l 1–2 in the quarterfinal?,"SELECT event FROM table_name_88 WHERE quarterfinal = ""zhamash l 1–2""" Show the number of documents with document type code CV or BK.,"SELECT count(*) FROM All_documents WHERE document_type_code = ""CV"" OR document_type_code = ""BK""" Find the name of the stadium that has the maximum capacity.,SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1 Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?,"SELECT competition FROM table_name_85 WHERE result = ""2-0"" AND location = ""ferreiras"" AND assist_pass = ""casey nogueira""" What is the Netflix where Segment D is pressure gauges ?,"SELECT netflix FROM table_15187735_12 WHERE segment_d = ""Pressure Gauges""" "Who is the third member of the third conservative party, and the second liberal party?","SELECT third_member FROM table_name_30 WHERE third_party = ""conservative"" AND second_party = ""liberal""" Please list the departure airports of the flights on 2018/8/1 that were delayed.,SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T2.DEP_DELAY > 0 GROUP BY T1.Description "List all the keyword for 'Take My Life, Please' episode.","SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Take My Life, Please';" Can you list the phones with carrier either Sprint or TMobile?,select phone_id from phone where Carrier = 'Sprint' or Carrier = 'TMobile' Find the number of different product types.,SELECT count(DISTINCT product_type_code) FROM products What are the distinct payment method codes in all the invoices?,SELECT DISTINCT payment_method_code FROM INVOICES How many millions of viewers did watch Episode 5?,"SELECT viewers_millions_ FROM table_12919003_3 WHERE episode = ""episode 5""" "In businesses with a category of food, how many of them have a star rating below 3?",SELECT COUNT(DISTINCT T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' AND T1.stars < 3 What product ids are never booked with amount higher than 200?,SELECT product_id FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount > 200 ) what is the callsign whtat uses 7bu?,"SELECT callsign FROM table_name_9 WHERE on_air_id = ""7bu""" What are all of the scientists' names please?,SELECT Name FROM Scientists What position was the draft pick that came from Langston?,"SELECT position FROM table_2508633_9 WHERE college = ""Langston""" What are the states and names of the colleges that all the goalies tried out for?,"SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = ""goalie""" What is Henri Crockett's highest overall with more than 3 picks?,"SELECT MAX(overall) FROM table_name_65 WHERE pick__number > 3 AND name = ""henri crockett""" What is the season # for a teleplay by Richard Price and the director is Steve Shill?,"SELECT season__number FROM table_14346950_1 WHERE teleplay_by = ""Richard Price"" AND directed_by = ""Steve Shill""" Which country had a contestant that was 1.76 meters tall?,"SELECT represent FROM table_23495048_2 WHERE height__mtr_ = ""1.76""" "Which money has a Country of united states, and a Place of t6?","SELECT AVG(money___) AS $__ FROM table_name_23 WHERE country = ""united states"" AND place = ""t6""" Please list the full names of all the male clients born after the year 1990.,"SELECT first, middle, last FROM client WHERE year > 1990" "What are the notes for the person ranked larger than 2, and a time of 1:48.179?","SELECT notes FROM table_name_48 WHERE rank > 2 AND time = ""1:48.179""" What is its parent service type code?,SELECT T1.Parent_Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 How many different professors are there for the different schools?,"SELECT count(*) , T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code" What is the visit end datetime of Engineer with the first name Etha?,"SELECT T2.visit_end_datetime FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 on T1.engineer_id = T2.engineer_id where T1.first_name = ""Etha""" How many faults does the middle have?,"SELECT T1.part_name, count ( * ) FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id where T1.part_name = ""middle""" "Who is the first student to register? List the first name, middle name and last name.","SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1" What is the 35mm EFL and the equivalent aperture of the lens(es) with a maximum aperture of f /2.5?,"SELECT 35 AS mm_efl_and_equivalent_aperture FROM table_name_67 WHERE max_aperture = ""f /2.5""" "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?","SELECT date , mean_temperature_f , mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3" How many figures are named for security forces in 1998?,SELECT COUNT(security_forces) FROM table_21636599_2 WHERE period = 1998 Which celebrity was raised 03?,"SELECT celebrity FROM table_12286195_1 WHERE raised = ""03""" Find the average and minimum weight for each gender.,"SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex" What is the largest total price for an order?,SELECT SUM(UnitPrice) FROM `Order Details` GROUP BY OrderID ORDER BY SUM(UnitPrice) DESC LIMIT 1 What is the shipment id for the shipment with this shipment date?,SELECT shipment_id FROM shipments WHERE shipment_date = ( SELECT max ( shipment_date ) FROM shipments ) What is the location of the game with a 115-105 score?,"SELECT location FROM table_name_35 WHERE score = ""115-105""" Please list the shapes of all the head cars on the trains that run in the east direction.,SELECT T1.shape FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' AND T1.position = 1 GROUP BY T1.shape What is the name of the competition that has a score of 2-0?,"SELECT competition FROM table_name_91 WHERE score = ""2-0""" What is the label for catalogue of RT-346-5?,"SELECT label FROM table_name_93 WHERE catalogue = ""rt-346-5""" What was the number of location of nickname cbsua formerly known cssac?,"SELECT COUNT(location) FROM table_11604804_5 WHERE nickname = ""CBSUA formerly known CSSAC""" how many person there,SELECT count ( * ) FROM Person "Which heat, semifinal or final has a time of 48.97?","SELECT heat_semifinal_final FROM table_name_41 WHERE time = ""48.97""" Which mountain does the river source Blue Nile located? State the height of the mountain.,"SELECT T1.Name, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN geo_source AS T4 ON T4.Province = T3.Name WHERE T4.River = 'Blue Nile'" "when Casey Martin's best finish was t-65, where did he land in the money list rankings?","SELECT money_list_rank FROM table_1697190_2 WHERE best_finish = ""T-65""" When did they play against West Virginia?,"SELECT date FROM table_20850339_1 WHERE opponent = ""West Virginia""" Which books were released by Orson Scott Card in 2001?,"SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card' AND STRFTIME('%Y', T1.publication_date) = '2001'" Find the distinct names of wines produced before the year of 2000 or after the year of 2010.,SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 "From which country does the most umpires are from? How many of them are from the mentioned country? ","SELECT T2.Country_Id, COUNT(T1.Umpire_Id) FROM Umpire AS T1 INNER JOIN Country AS T2 ON T2.Country_Id = T1.Umpire_Country GROUP BY T2.Country_Id ORDER BY COUNT(T1.Umpire_Id) DESC LIMIT 1" Which character was in the sexiest female category of the British Soap Awards?,"SELECT character FROM table_name_59 WHERE category = ""sexiest female"" AND award = ""british soap awards""" "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.","SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion" Which Rank has a Scorer of lee sang-cheol?,"SELECT rank FROM table_name_69 WHERE scorer = ""lee sang-cheol""" "Among episodes from 10 to 20, which episode has more than 200 votes?",SELECT DISTINCT T1.episode FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.episode BETWEEN 10 AND 20 AND T2.votes > 200; Who is the most aged captain in this table?,select Captain_id from captain order by age desc limit 1 What was the biggest crowd when South Melbourne was an away team?,"SELECT MAX(crowd) FROM table_name_94 WHERE away_team = ""south melbourne""" Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?,"SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" What day were the Denver Broncos the opponent?,"SELECT date FROM table_14655917_1 WHERE opponent = ""Denver Broncos""" What is the name of the ship sunk by U-305 on 17 March 1943?,"SELECT name FROM table_name_84 WHERE date = ""17 march 1943"" AND sunk_by = ""u-305""" what is the name and age of the oldest winning pilot,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age desc LIMIT 1" Which year did they join?,"SELECT pilot_ID , join_year FROM pilot where pilot_ID = 1 or pilot_id = 2" Which venue has a Date of 28 july 2007?,"SELECT venue FROM table_name_68 WHERE date = ""28 july 2007""" What civil paris appears when Ballynamona is the townland with 126 acres?,"SELECT civil_parish FROM table_30120556_1 WHERE townland = ""Ballynamona"" AND area__acres__ = 126" What is the average number of likes for a tweet posted by a male user on Mondays?,SELECT SUM(T1.Likes) / COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' AND T1.Weekday = 'Monday' How many different cities have these stations?,SELECT count(DISTINCT city) FROM station What is every pregame analyst with Chris Rose as trophy presenter?,"SELECT pregame_analysts FROM table_2941848_2 WHERE trophy_presentation = ""Chris Rose""" When 1:34:01 is the race time what is the miles in kilometers?,"SELECT miles__km_ FROM table_1771753_3 WHERE race_time = ""1:34:01""" "Among the businesses with score that ranges from 70 to 80, list their violation type ID and risk category.","SELECT DISTINCT T1.violation_type_id, T1.risk_category FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id INNER JOIN inspections AS T3 ON T2.business_id = T3.business_id WHERE T3.score BETWEEN 70 AND 80" Show the names of products that are in at least two events.,SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 Which category was william ivey long a nominee and nominated in?,"SELECT category FROM table_name_55 WHERE result = ""nominated"" AND nominee = ""william ivey long""" Tell me the payment method used by the customer who ordered the least amount of goods in total.,SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1 What is the score for the game where Birmingham City was the home team on 10 March 1984?,"SELECT score FROM table_name_86 WHERE date = ""10 march 1984"" AND home_team = ""birmingham city""" What city did Yugoslavia play Norway in?,"SELECT city FROM table_name_2 WHERE opponent = ""norway""" "Find all the songs produced by artists with first name ""Marianne"".","SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = ""Marianne""" Who plays linebacker?,"SELECT player FROM table_name_99 WHERE position = ""linebacker""" Find out the first name and last name of staff living in city Damianfort.,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = ""Damianfort"";" "What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly?","SELECT parent_magazine FROM table_name_6 WHERE frequency = ""bimonthly"" AND magazine_type = ""manga"" AND title = ""dengeki moeoh""" How many 07 A points for the team with 1.4902 average?,"SELECT MAX(07 AS _a_pts) FROM table_25887826_17 WHERE avg = ""1.4902""" Which district has the least area?,SELECT district_name FROM district ORDER BY city_area LIMIT 1 List the ID of all images with objects that have multiple relations.,SELECT IMG_ID FROM IMG_REL GROUP BY PRED_CLASS_ID HAVING COUNT(DISTINCT OBJ1_SAMPLE_ID) != 0 AND COUNT(DISTINCT OBJ2_SAMPLE_ID) != 0 How many businesses of Yelp are in Scottsdale?,SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale' How many titles were directed by Alex Chapple?,"SELECT COUNT(title) FROM table_21002034_4 WHERE director = ""Alex Chapple""" Find the country of the airlines whose name starts with 'Orbit'.,SELECT country FROM airlines WHERE name LIKE 'Orbit%' How many directors with average revenue of 4 have made either action or adventure films?,SELECT COUNT(T1.directorid) FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.avg_revenue = 4 AND (T2.genre = 'Adventure' OR T2.genre = 'Action') What date did South Melbourne play as the Away team?,"SELECT date FROM table_name_79 WHERE away_team = ""south melbourne""" Which Total has a Year(s) won of 1991?,"SELECT MIN(total) FROM table_name_9 WHERE year_s__won = ""1991""" "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.","SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"" AND nickname LIKE ""%s%"";" Name the typed for formed from 6-pul trailer third in res unit,"SELECT type FROM table_name_40 WHERE formed_from = ""6-pul trailer third in res unit""" Show the name of the document that has been accessed the greatest number of times?,SELECT document_name FROM documents ORDER BY access_count DESC LIMIT 1 show all locations with only 1 station.,SELECT LOCATION FROM station GROUP BY LOCATION HAVING count ( * ) = 1 What is the total number of purchases for members with level 6?,SELECT count ( * ) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 show the minimum order quality of all invoices,SELECT min ( Order_Quantity ) FROM INVOICES Which player has a 1 February 1982 birthday and more than 16 caps?,"SELECT player FROM table_name_61 WHERE caps > 16 AND date_of_birth__age_ = ""1 february 1982""" What is the fewest episodes with the Romaji title Regatta~Kimi to Ita Eien~?,"SELECT MIN(episodes) FROM table_name_40 WHERE romaji_title = ""regatta~kimi to ita eien~""" What is the density of San Sebastián?,"SELECT density__hab_km²_ FROM table_name_72 WHERE city_district = ""san sebastián""" Find the maximum weight for each type of pet. List the maximum weight and pet type.,"SELECT max(weight) , petType FROM pets GROUP BY petType" Who were the partners in 2012?,SELECT partner FROM table_2259502_2 WHERE year = 2012 what is the highest wickets when the best bowling is 2/32 and matches is less than 5?,"SELECT MAX(wickets) FROM table_name_33 WHERE best_bowling = ""2/32"" AND matches < 5" "What are the names and ids of the different categories, and how many films are in each?","SELECT T2.name , T1.category_id , count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id" "How many executive producers are the nominees for the award of ""Outstanding Animated Program (For Programming Less Than One Hour)""?",SELECT COUNT(*) FROM Award WHERE role = 'executive producer' AND result = 'Nominee' AND award = 'Outstanding Animated Program (For Programming Less Than One Hour)'; "For the root beer brand with the most 5 star ratings, what is the name of the brewery?",SELECT T1.BreweryName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 GROUP BY T1.BrandID ORDER BY COUNT(T2.StarRating) DESC LIMIT 1 What was location and attendance for the game where the Celtics played San Antonio? ,"SELECT location_attendance FROM table_27722408_8 WHERE team = ""San Antonio""" what is the name of the episode which the production code is 62015-08-162,"SELECT title FROM table_21313498_1 WHERE production_code = ""62015-08-162""" Find the name of the organization that has published the largest number of papers.,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY COUNT(*) DESC LIMIT 1 How many of these have more than 2 outcomes?,select count ( * ) from ( SELECT T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' intersect SELECT T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count ( * ) > 2 ) What was the overall pick number of the player selected before round 3?,SELECT COUNT(overall_pick) FROM table_name_40 WHERE round < 3 What is the prize money for Virginia?,"SELECT 1 AS st_prize__$__ FROM table_11622496_1 WHERE location = ""Virginia""" How many of those projects did not hire anyone for a researcher role?,SELECT count ( project_id ) FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) what is the rank when heat is 9 and the nation is great britain?,"SELECT SUM(rank) FROM table_name_21 WHERE heat = 9 AND nation = ""great britain""" Which university is in Los Angeles county and opened after 1950?,"SELECT campus FROM campuses WHERE county = ""Los Angeles"" AND YEAR > 1950" Find the total number of students in each department.,"SELECT count(*) , dept_name FROM student GROUP BY dept_name" What is the position of Robert King?,SELECT Title FROM Employees WHERE FirstName = 'Robert' AND LastName = 'King' "For the goalie whose last name is ""Young"", how many teams did he play in?",SELECT COUNT(DISTINCT T1.tmID) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.lastName = 'Young' Give the Mauritius Rupee's currency code.,SELECT CurrencyCode FROM Currency WHERE Name = 'Mauritius Rupee' What date did NY Rangers play at home?,"SELECT date FROM table_name_12 WHERE home = ""ny rangers""" What are the names of all the video games and their types in alphabetical order?,"SELECT gname , gtype FROM Video_games ORDER BY gname" Who is the person who appeared the most in the series? Calculate in percentage how many times he or she appeared.,"SELECT T2.person_id, CAST(COUNT(T2.person_id) AS REAL) * 100 / ( SELECT COUNT(T2.person_id) AS num FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id ) AS per FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id GROUP BY T2.person_id ORDER BY COUNT(T2.person_id) DESC LIMIT 1" What is the location and attendance for the Orlando team?,"SELECT location_attendance FROM table_17323092_6 WHERE team = ""Orlando""" Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name List the file size and format for all songs that have resolution lower than 800.,"SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800" What are the notes for the shirt that said Pavv before 2005?,"SELECT notes FROM table_name_57 WHERE shirt_printing = ""pavv"" AND year < 2005" How many customers are there?,SELECT sum(no_of_customers) FROM bank Who won the 1973 democratic initial primary for queens of 19%?,"SELECT 1973 AS _democratic_initial_primary FROM table_1108394_24 WHERE queens = ""19_percentage""" "If the Venue is brunswick street oval, what date was the game played ?","SELECT date FROM table_name_81 WHERE venue = ""brunswick street oval""" Who was the opponent at the match smaller than 3?,SELECT opponent_team FROM table_name_31 WHERE match < 3 Who are the voice actors for all the heroes?,SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.character = T1.hero WHERE T2.movie = T1.movie_title "Find the the date of enrollment of the ""Spanish"" course.","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 is the position in the faculty of the professor who teaches the highest number of courses?,SELECT T1.hasPosition FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 GROUP BY T1.p_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1 What is the hometown for the player that went to the college of washington,"SELECT hometown FROM table_name_54 WHERE college = ""washington""" "For demo 1.6/5, what is the title?","SELECT title FROM table_name_37 WHERE demo = ""1.6/5""" "How many episodes were in the season that ended on April 29, 1986?","SELECT AVG(episodes) FROM table_name_65 WHERE last_airdate = ""april 29, 1986""" when is the hire date for those employees whose first name does not containing the letter M?,SELECT hire_date FROM employees WHERE NOT first_name LIKE '%M%' Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000.,SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000 "Show id, first and last names for all customers with at least two cards.","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2" "How many HC climbs had 1 visit more recently than 1984, a first HC climb before 1994, and a height of 1900?","SELECT no_of_hc_climbs FROM table_name_35 WHERE no_of_times_visited = 1 AND most_recent > 1984 AND first_time_as_hc_climb < 1994 AND height__m_ = ""1900""" How many players named Dean Kirkland were picked,"SELECT COUNT(pick__number) FROM table_15353123_1 WHERE player = ""Dean Kirkland""" How many customers ordered the oldest book?,SELECT COUNT(*) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id GROUP BY T1.publication_date ORDER BY T1.publication_date ASC LIMIT 1 What's listed for Departure that has 1676 listed for the Kilometers?,SELECT departure FROM table_name_88 WHERE kilometers = 1676 What 1st leg has Alense Vivaldi (Trentino) as Agg.?,"SELECT 1 AS st_leg FROM table_name_58 WHERE agg = ""alense vivaldi (trentino)""" What number of words are there on revision page 27457362?,SELECT words FROM pages WHERE revision = 27457362 How many played has an against greater than 57 and a lost bigger than 14?,SELECT COUNT(played) FROM table_name_83 WHERE against > 57 AND lost > 14 What was the date of the week 16 game?,SELECT date FROM table_name_79 WHERE week = 16 What is the name of user id 3?,SELECT name FROM useracct WHERE u_id = 3 "Which rank has a smaller area (sq mi) than 48, and an area (km2) greater than 104, and an island of sula, sogn og fjordane?","SELECT rank FROM table_name_12 WHERE area__sq_mi_ < 48 AND area__km²_ > 104 AND island = ""sula, sogn og fjordane""" list out the problem logs,SELECT * FROM problem_log What is the end (UTC) for spacecraft STS-114 Eva 3?,"SELECT end__utc_ FROM table_22385461_6 WHERE spacecraft = ""STS-114 EVA 3""" Who was the visitor on March 27?,"SELECT visitor FROM table_name_59 WHERE date = ""march 27""" What is the order year of obi builder and 05.505 model that is 30 feet long?,"SELECT order_year FROM table_name_89 WHERE builder = ""obi"" AND length__ft_ = ""30"" AND model = ""05.505""" What were the supersonics record at game 2?,SELECT record FROM table_28768469_5 WHERE game = 2 What is the name of the student who has the highest total credits in the History department.,SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1 "What is the container type, brand name and star rating for root beer ID 10054?","SELECT T4.ContainerType, T3.BrandName, T1.StarRating FROM rootbeerreview AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID INNER JOIN rootbeer AS T4 ON T2.RootBeerID = T4.RootBeerID WHERE T2.RootBeerID = 100054" Calculate the percentage of directors whose films grossed over $100 million.,"SELECT CAST(COUNT(DISTINCT CASE WHEN CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) > 100000000 THEN T3.director ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T3.director) FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T1.movie_title = T3.name" "What was the score when the location attendance was Air Canada Centre 18,067?","SELECT score FROM table_11960407_4 WHERE location_attendance = ""Air Canada Centre 18,067""" Hello! Can you provide me with a list of all of the colleges located in the state of LA?,"SELECT cName FROM College WHERE state = ""LA""" What is the rank number with 562-506 goals before season 13?,"SELECT COUNT(rank) FROM table_name_88 WHERE goals = ""562-506"" AND seasons < 13" What is the average unit price of tracks that belong to Jazz genre?,"SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Jazz""" List the movies in the Somali language.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Somali' Which patient is undergoing the most recent treatment?,SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1 How many schools do not participate in the basketball match?,SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match) What is the Country of the Player with a To par of +1?,"SELECT country FROM table_name_59 WHERE to_par = ""+1""" Who was in the original 3rd us tour cast while scott j. campbell was in the original 1st us tour cast? ,"SELECT original_3rd_us_tour_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = ""Scott J. Campbell""" What was the score when the Shingo Kunieda Satoshi Saida were the opponents?,"SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = ""shingo kunieda satoshi saida""" Provide email and phone number of Astrid Gruber's?,"SELECT email,phone FROM customers WHERE first_name = ""Astrid"" and last_name = ""Gruber""" What are the average rating and resolution of songs that are in Bangla?,"SELECT avg(rating) , avg(resolution) FROM song WHERE languages = ""bangla""" What is the origin airport id that recorded the longest delay due to a late aircraft?,SELECT ORIGIN_AIRPORT_ID FROM Airlines ORDER BY LATE_AIRCRAFT_DELAY DESC LIMIT 1 "which engineer made the least number of visits? | Here are the id, first, and last names of the engineer who has the least number of visits. | how many visits did each engineer have?","SELECT count ( * ) ,T1.engineer_id FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id" what are the top 3 highest support rates?,SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 "Out of the rating of 6.8 scored by title ""No Loan Again, Naturally"", how many percent of it consists of scores 5 to 10?","SELECT SUM(T2.percent) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'No Loan Again, Naturally' AND T1.rating = 6.8 AND T2.stars BETWEEN 5 AND 10;" what is the name and age of the youngest winning pilot?,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1" "In the state where Lisa Murkowski is the representative, how many cities have zero employees?",SELECT COUNT(T3.city) FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T1.first_name = 'Murkowski' AND T1.last_name = 'Lisa' AND T3.employees = 0 which player played on Team Hamilton?,"SELECT player FROM table_name_33 WHERE cfl_team = ""hamilton""" "Which Payments were processed with Visa? List the payment Id, the date and the amount.","SELECT Payment_ID , Date_Payment_Made , Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'" Who left a position on 29 May?,"SELECT outgoing_manager FROM table_17327458_1 WHERE date_of_vacancy = ""29 May""" What was the score for the date of 15/6/03,"SELECT score FROM table_name_84 WHERE date = ""15/6/03""" How much money requested of people id 2?,"SELECT Money_Requested FROM entrepreneur where People_ID = ""2""" Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Rylan"" AND T4.staff_last_name = ""Homenick"" )" What country was the Paris Masters tournament played in?,"SELECT country FROM table_name_83 WHERE tournament = ""paris masters""" How many male Regional Managers are there?,SELECT COUNT(*) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Regional Manager' AND T1.gender = 'M' "What is Award, when Result is ""Nominated"", and when Film is ""Sankranthi""?","SELECT award FROM table_name_66 WHERE result = ""nominated"" AND film = ""sankranthi""" Who was the candidate when the incumbent was Richard C. White?,"SELECT candidates FROM table_1341843_44 WHERE incumbent = ""Richard C. White""" Which Ratio has an in × in of 17 × 22?,"SELECT ratio FROM table_name_2 WHERE in_×_in = ""17 × 22""" What was the points with 7 races?,"SELECT points FROM table_name_34 WHERE races = ""7""" How about for California State University-chico? | Do you mean in the year 2002? | Yes,"SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 AND t1.campus = ""California State University-Chico""" List names of conductors in descending order of years of work.,SELECT Name FROM conductor ORDER BY Year_of_Work DESC but i want above average list only.,SELECT mascot FROM school WHERE enrollment > ( SELECT avg ( enrollment ) FROM school ) Can you tell me the document details for the highest numbered document id please?,SELECT Document_Details FROM Documents_with_expenses order by Document_ID desc limit 1 "What is the method of the match with a win res., 1 round, and a 3-2 record?","SELECT method FROM table_name_44 WHERE res = ""win"" AND round = 1 AND record = ""3-2""" What are the names of regions that were affected by the storm in which the most people died?,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 What is the earliest year with a label-Nr of st-43?,SELECT MIN(year) FROM table_name_37 WHERE label - Nr = st - 43 What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17?,SELECT MAX(wins) FROM table_name_29 WHERE against > 1249 AND losses < 17 How many sales representatives who have office code is 1?,SELECT COUNT(officeCode) FROM employees WHERE jobTitle = 'Sales Rep' AND officeCode = 1 What Character has a Rank of intelligence officer?,"SELECT character FROM table_name_3 WHERE rank = ""intelligence officer""" Who was the winner in stage 3?,"SELECT winner FROM table_name_49 WHERE stage = ""3""" What year(s) was the race status piston?,"SELECT year FROM table_181892_4 WHERE race_status = ""Piston""" What is the score of the game with the streak l5,"SELECT score FROM table_11964047_10 WHERE streak = ""L5""" "If a team had a percentage of games won recorded as .429, what Championship Game was played?","SELECT championship_game FROM table_name_82 WHERE win__percentage = "".429""" How many organizations are there?,select count ( organization_id ) from Organizations How many different nationalities do the players of New Jersey Devils come from?,"SELECT COUNT(nationality) FROM table_1013129_3 WHERE nhl_team = ""New Jersey Devils""" Which Player has a To par of –4?,"SELECT player FROM table_name_93 WHERE to_par = ""–4""" what is the average of artist ages?,SELECT avg ( age ) FROM artist What are the ids of courses without prerequisites?,SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq Show the case burden of counties in descending order of population.,SELECT Case_burden FROM county_public_safety ORDER BY Population DESC What is the campus id of San Jose State University?,"SELECT id FROM campuses WHERE campus = ""San Jose State University""" What is the per capita income for Fayette County?,"SELECT per_capita_income FROM table_1447085_1 WHERE county = ""Fayette county""" What is chris jones' location?,"SELECT location FROM table_name_77 WHERE wrestler = ""chris jones""" What is the date for proposed for revere textile prints corporation,"SELECT proposed FROM table_name_40 WHERE name = ""revere textile prints corporation""" "What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?","SELECT cospar_id FROM table_18161217_2 WHERE estimated_operational_life = ""2 months"" AND satellite = ""Kosmos 2397""" What is the number of counties with population greater than 100000?,SELECT COUNT ( County_name ) FROM county WHERE Population > 100000 What is GTO Winning Team Mike Keyser's RND number?,"SELECT rnd FROM table_13657749_2 WHERE gto_winning_team = ""Mike Keyser""" what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s?,"SELECT declination___j2000__ FROM table_name_77 WHERE constellation = ""hydra"" AND right_ascension___j2000__ = ""10h46m44.9s""" "What are the names of the different customers who have taken out a loan, ordered by the total amount that they have taken?",SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) What are the names of representatives with more than 10000 votes in election?,SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE Votes > 10000 Please mention those appointment dates those are replaced by alfredo aglietti,"SELECT date_of_appointment FROM table_27114708_2 WHERE replaced_by = ""Alfredo Aglietti""" "Which Drawn has a Played of 20, and a Club of rhigos rfc?","SELECT drawn FROM table_name_78 WHERE played = ""20"" AND club = ""rhigos rfc""" What is the name of the youngest editor?,SELECT Name FROM editor ORDER BY Age ASC LIMIT 1 what is the collegiate institution in queens,"SELECT collegiate_institution FROM table_18159601_1 WHERE city = ""Queens""" "When Pat Robertson was at 16%, what did Pete du Pont have?","SELECT pete_du_pont FROM table_name_13 WHERE pat_robertson = ""16%""" What's the unsure rate of those?,SELECT Unsure_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 How many players were born in 1970?,SELECT COUNT(Player_Name) FROM Player WHERE DOB LIKE '1970%' "Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.","SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC" What musicals were they nominated for?,"SELECT name FROM musical where year = 1986 and nominee = ""Cleavant Derricks""" Who are the customers that had more than 1 policy? List the customer details and id.,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1" What country is Larry Mize from?,"SELECT country FROM table_name_21 WHERE player = ""larry mize""" Give the title of the course offered in Chandler during the Fall of 2010.,SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010 What is the name of the candidate where the incumbent is named James P. Buchanan?,"SELECT candidates FROM table_1342331_43 WHERE incumbent = ""James P. Buchanan""" List the character's name of actress born in Sherman Oaks and starred in the movie Bruce Almighty with height greater than the 50% of average height of all actors listed.,SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Gender = 'Female' AND T1.Title = 'Godzilla' AND T3.`Birth City` = 'Sherman Oaks' AND T3.`Height (Inches)` * 100 > ( SELECT AVG(`Height (Inches)`) FROM actor ) * 50 Where were the 2009 and 2011 Grand Slam Tournaments?,"SELECT 2011 FROM table_name_86 WHERE 2009 = ""grand slam tournaments""" How many times the number of adults and kids staying in a room reached the maximum capacity of the room?,SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids; What are his tweets? | do you mean the text of tweets | Yes,"SELECT T1.name, T2.text FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1" How many tasks does each project have? List the task count and the project detail.,"SELECT COUNT(*), T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id" when was the ship completed when laid down is 21 august 1925?,"SELECT completed FROM table_name_32 WHERE laid_down = ""21 august 1925""" Tell me the timeslot of calls of wrko,"SELECT timeslot FROM table_name_21 WHERE calls = ""wrko""" What is the average crowd to watch Hawthorn as the away team?,"SELECT AVG(crowd) FROM table_name_29 WHERE away_team = ""hawthorn""" How many basic and medium undergraduate courses are there?,SELECT COUNT(*) FROM course WHERE courseLevel = 'Level_300' "Who was the opposition at 11,682 excl. exhibition match?","SELECT opposition FROM table_name_39 WHERE stadium = ""11,682 excl. exhibition match""" What is the id of the patient who has the longest allergy period?,"SELECT PATIENT FROM allergies WHERE STOP IS NOT NULL GROUP BY PATIENT ORDER BY CASE WHEN SUBSTR(STOP, -2, 1) != '9' THEN SUBSTR(STOP, LENGTH(STOP) - 1) + 2000 END - CASE WHEN SUBSTR(START, -2, 1) = '9' THEN SUBSTR(START, LENGTH(START) - 1) + 1900 ELSE SUBSTR(START, LENGTH(START) - 1) + 2000 END LIMIT 1" "Great, how many males friends does she have?",SELECT count ( * ) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' Return the issue date of the volume that has spent the fewest weeks on top.,SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1 In which municipality is Barangay Poblacion?,"SELECT municipality FROM table_name_42 WHERE barangay = ""poblacion""" What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?,"SELECT city___state FROM table_name_45 WHERE winner = ""darren hossack"" AND circuit = ""phillip island grand prix circuit""" What are the total points for the team that averages 17.8?,"SELECT total_points FROM table_17862135_3 WHERE average = ""17.8""" Show the name of the conductor that has conducted the most number of orchestras.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1 which playoffs took place during 2011?,"SELECT playoffs FROM table_name_88 WHERE year = ""2011""" "Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?",SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 USING (ProductID) WHERE T2.FinishedGoodsFlag = 1 AND T2.MakeFlag = 1 GROUP BY T2.Name ORDER BY COUNT(T1.COMMENTS) > 10 What's the record during 1925?,SELECT record FROM table_name_99 WHERE year = 1925 Which year had the greatest number of courses?,SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 What is the type and id of the organization that has the most research staff?,"SELECT T1.organisation_type , T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1" Find the number of female students (with F sex) living in Smith Hall,SELECT 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 T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' How many Indian cities are there in the database?,SELECT SUM(CASE WHEN T2.Country_Name = 'India' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN Country AS T2 ON T1.Country_Id = T2.Country_Id what is the average of altitude?,SELECT AVG ( Altitude ) FROM flight "Among the lists created in 2016, which is the list that was updated most recently.","SELECT list_title FROM lists WHERE strftime('%Y', list_update_timestamp_utc) = '2016' ORDER BY list_update_timestamp_utc DESC LIMIT 1" "Find the first names of students whose first names contain letter ""a"".",SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' "What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?",SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1 What is the location when 2-1 is the score?,"SELECT location FROM table_22165661_3 WHERE score = ""2-1""" What is the least total number with a rank of 4 and a total silver number bigger than 3?,SELECT MIN(total) FROM table_name_99 WHERE rank = 4 AND silver > 3 Who wrote the episode with series number 45?,"SELECT written_by FROM table_20046379_3 WHERE no_in_series = ""45""" What is the name of the swimmer who has the greatest number of records?,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count ( * ) DESC LIMIT 1 What is the Mountain Pass with a 21 Rank?,SELECT mountain_pass FROM table_name_87 WHERE rank = 21 What was the score of the game when Sheffield Wednesday was the home team?,"SELECT score FROM table_name_32 WHERE home_team = ""sheffield wednesday""" Which townland has an area of 165 acres?,SELECT townland FROM table_30120619_1 WHERE area__acres__ = 165 "What round was held at Knowsley Road, resulting in a lose.","SELECT round FROM table_13328239_4 WHERE venue = ""Knowsley Road"" AND result = ""Lose""" "How many books were published by publisher ""Thomas Nelson""?",SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Thomas Nelson' Who is the away team at western oval?,"SELECT away_team AS score FROM table_name_84 WHERE venue = ""western oval""" WHAT IS THE IN MALAYALAM WITH kartika–agrahayana?,"SELECT in_malayalam FROM table_name_61 WHERE saka_era = ""kartika–agrahayana""" What is the Score of West Asian Games 2005 on 10 dec 2005?,"SELECT score FROM table_name_44 WHERE competition = ""west asian games 2005"" AND date = ""10 dec 2005""" What was the last year that incumbent joseph t. deal was first elected?,"SELECT MAX(first_elected) FROM table_1342379_45 WHERE incumbent = ""Joseph T. Deal""" Find the names of all races held in 2017.,SELECT name FROM races WHERE YEAR = 2017 what is the name of the country that participated in the most tournament competitions?,SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1 "What are the enrollment dates of all the tests that have result ""Pass""?","SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass""" How many units of item no.5 were sold in store no.3 on the day in 2012 when the max temperature was the highest?,"SELECT T1.units FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.item_nbr = 5 ORDER BY tmax DESC LIMIT 1" can you show a list of categories?,SELECT distinct category FROM music_festival List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.,"SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = ""DDR3-1333"" AND frequency = ""2.66-2.8GHz""" What is the title of the episode directed by Christopher Petry with the production cod 3x6006?,"SELECT title FROM table_26464364_1 WHERE directed_by = ""Christopher Petry"" AND production_code = ""3X6006""" What category was Brian D'arcy James nominated for?,"SELECT category FROM table_name_6 WHERE nominee = ""brian d'arcy james"" AND result = ""nominated""" What is the date where john wall (11) had the high assists?,"SELECT date FROM table_27721131_6 WHERE high_assists = ""John Wall (11)""" How many suppliers does Northwind have in USA?,SELECT COUNT(SupplierID) FROM Suppliers WHERE Country = 'USA' What are the names and average prices of products for manufacturers whose products cost on average 150 or more?,"SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150" who is number 98?,"SELECT name FROM table_14966667_19 WHERE number = ""98""" "What is Mean Free Path, when Vacuum Range is ""medium vacuum""?","SELECT mean_free_path FROM table_name_25 WHERE vacuum_range = ""medium vacuum""" What is the number of papers published by Tokohu University,"SELECT count ( DISTINCT t1.title ) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Tokohu University""" What is the hometown of Myron Pryor?,"SELECT hometown from member where name = ""Myron Pryor""" List the page number for Catalan language wikipedia pages containing the word 'Art' in the page title.,SELECT page FROM pages WHERE title LIKE 'Art%' OR title LIKE '%Art%' OR title LIKE '%Art' How many Ratings did the 2013 Year have?,SELECT ratings FROM table_name_23 WHERE year = 2013 "Among the players who use the right hand as their batting hand, how many of them were born after 1985?","SELECT SUM(CASE WHEN SUBSTR(T1.DOB, 1, 4) > 1985 THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_Hand = 'Right-hand bat'" Find the names of furnitures whose prices are lower than the highest price.,SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT max(Price_in_Dollar) FROM furniture_manufacte) How many dishes have appeared on the menu in less than 5 years?,SELECT COUNT(*) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.last_appeared - T1.first_appeared < 5 Where tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m).,"SELECT focal_plane_in_ft__m_ FROM table_25597136_1 WHERE tower_height_in_ft__m_ = ""46ft (14.0m)""" hi. I would like to know how many users are followed by Mary?,"SELECT count ( t2.f1 ) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary""" "What is Title, when Doctor is 06 Sixth Doctor, and when Company is Big Finish?","SELECT title FROM table_name_87 WHERE doctor = ""06 sixth doctor"" AND company = ""big finish""" "What is Country, when Television Service is Eurosport 2?","SELECT country FROM table_name_50 WHERE television_service = ""eurosport 2""" List the names of all songs that have 4 minute duration or are in English.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""4:%"" UNION SELECT song_name FROM song WHERE languages = ""english""" What is the location of the perpetrator with the largest kills.,SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1 Find the names of the artists who are from UK and have produced English songs.,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT artist_name FROM song WHERE languages = ""english""" "What are the name of rooms booked by customers whose first name has ""ROY"" in part?",SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%' "Among the recipes that take more than 10 minutes to prepare, what is the title of the one with the most calories?",SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.prep_min > 10 ORDER BY T2.calories DESC LIMIT 1 List the top three popular responses to the question of the survey in 2017 with the question ID no.85.,SELECT AnswerText FROM Answer WHERE QuestionID = 85 AND SurveyID = 2017 GROUP BY AnswerText ORDER BY COUNT(AnswerText) DESC LIMIT 3 "For all the goalies born in year 1987, who are good in both right hand and left hand? Calculate his percentage of winning for every season he played.","SELECT T1.firstName, T1.lastName, T2.year, CAST(T2.W AS REAL) / T2.GP FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T1.birthYear = 1987 AND T1.shootCatch IS NULL" List the person IDs of the second film editors in Movie No. 12.,SELECT person_id FROM movie_crew WHERE movie_id = 12 AND job = 'Second Film Editor' Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.,SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING AVG(T2.mean_temperature_f) > 60 what are all the date withdrawn for twin screw ro-ro motorship,"SELECT date_withdrawn FROM table_11662133_3 WHERE type_of_ship = ""Twin Screw Ro-Ro Motorship""" What surface did hayley ericksen play on?,"SELECT surface FROM table_name_85 WHERE partner = ""hayley ericksen""" What are the top three apartment types in terms of the average room count? Give me the,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3 Name the most legs for steinlager 2,"SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = ""Steinlager 2""" What is the lowest number of wins where the byes are less than 0?,SELECT MIN(wins) FROM table_name_15 WHERE byes < 0 "Who was the opponent with attendance at 64,002?","SELECT opponent FROM table_name_87 WHERE attendance = ""64,002""" "What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)?","SELECT surface FROM table_name_75 WHERE score = ""4–6, 6–3, 6–7 (5–7)""" How many students have 5 enrollments?,select count ( * ) from ( SELECT * FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id having count ( * ) = 5 ) Show the maximum and minimum share count of different transaction types.,"SELECT transaction_type_code , max(share_count) , min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code" What is the mean number of goals against when there were fewer than 8 games played?,SELECT AVG(goals_against) FROM table_name_39 WHERE games_played < 8 What is the pluperfect for the perfect si bio/la; bio/la si?,"SELECT pluperfect FROM table_27298240_26 WHERE perfect = ""si bio/la; bio/la si""" Name the most challenge cup for damon gray,"SELECT MAX(challenge_cup) FROM table_17598822_11 WHERE player = ""Damon Gray""" What is the lowest number of bronze medals for nations with over 6 total and 2 golds?,SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 6 Which bodyweight has a Total (kg) of 145.0?,"SELECT bodyweight FROM table_name_18 WHERE total__kg_ = ""145.0""" What is the party for district 27? ,SELECT party FROM table_26129220_2 WHERE district = 27 What are the character names for a senator of Venice?,SELECT CharName FROM characters WHERE Description = 'a senator of Venice' when indiana pacers were the opponent what was the date?,"SELECT date FROM table_name_89 WHERE opponent = ""indiana pacers""" Hi there! Can you show me a list of all of the customer IDs and the corresponding customer names?,"SELECT customer_name , customer_id FROM customers" How many products with the highest expected profits were sold in total?,SELECT SUM(t2.quantityOrdered) FROM orderdetails AS t2 INNER JOIN ( SELECT t1.productCode FROM products AS t1 ORDER BY t1.MSRP - t1.buyPrice DESC LIMIT 1 ) AS t3 ON t2.productCode = t3.productCode "List the names of countries whose language is not ""German"".","SELECT Name FROM country WHERE Languages <> ""German""" What is the age when the result is fired in week 8,"SELECT MIN(age) FROM table_26263322_1 WHERE result = ""Fired in week 8""" What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?,"SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is" "What is the inspection ID of the inspection with critical point level, $500 fine, and inspector comment ""CDI ON 5-17-10""?",SELECT T2.inspection_id FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.fine = 500 AND T1.point_level = 'Critical' AND T2.inspector_comment = 'CDI ON 5-17-10' "What's the number of users gave the movie ""Downfall"" a rating of ""4""?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Downfall' AND T1.rating_score = 4 list scientists names by ssn,SELECT Name FROM Scientists ORDER BY SSN What is the average miles per gallon(mpg) of the cars with 4 cylinders?,SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4; list out the company name,SELECT Company_name FROM phone Which team was Roy de Walt a player on?,"SELECT school_club_team FROM table_name_20 WHERE player = ""roy de walt""" How many 'United Airlines' flights depart from Airport 'AHD'?,"SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.SourceAirport = ""AHD""" Show the name of cities in the county that has the largest number of police officers.,SELECT name FROM city WHERE county_ID = ( SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1 ) How many of the players are from Sri Lanka?,SELECT COUNT(*) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'Sri Lanka' "How many winners have been awarded a Television award by the ""American Bar Association Silver Gavel Awards for Media and the Arts""?",SELECT COUNT(award_id) FROM Award WHERE result = 'Winner' AND award = 'Television' AND organization = 'American Bar Association Silver Gavel Awards for Media and the Arts' What is the largest amount of horsepower for the models with 3 cylinders and what make is it?,"SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;" How many author are in the workshop altogether,select count ( distinct author ) from submission What is the average fastest lap speed for the Monaco Grand Prix in 2008?,"SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" Where was the fight against Gray Maynard?,"SELECT location FROM table_name_63 WHERE opponent = ""gray maynard""" "How much gold when silver, bronze and total is smaller than 1?",SELECT MAX(gold) FROM table_name_27 WHERE silver < 1 AND bronze = 1 AND total < 1 What years had 134 orbital flights? ,"SELECT years FROM table_179174_2 WHERE flights = ""134 Orbital""" "What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27?",SELECT MAX(built) FROM table_name_44 WHERE entered_service > 2003 AND knots < 27 Find the total access count of all documents in the most popular document type.,SELECT SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1 When is the first transcript released? List the date and details.,"SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1" what is the score when the opponent is fernando vicente?,"SELECT score FROM table_name_9 WHERE opponent = ""fernando vicente""" What are the ids of those particular employees?,SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed Who was the class AAAA when class AAAAA was Weslaco in 1994-95,"SELECT class_aAAA FROM table_14747043_1 WHERE class_aAAAA = Weslaco AND school_year = ""1994-95""" What was the result when the method was submission (kimura)?,"SELECT res FROM table_name_72 WHERE method = ""submission (kimura)""" How many ends won catagories are listed when there are 8 stolen ends? ,SELECT COUNT(Ends) AS won FROM table_25714995_2 WHERE stolen_ends = 8 What title was released on August 27?,"SELECT title FROM table_1322904_1 WHERE release = ""August 27""" What are all the course names of the courses which ever have students enrolled in?,SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id Can you tell me the name of the oldest manager please?,SELECT Name FROM manager ORDER BY Age DESC LIMIT 1 Find the name of the dorm with the largest capacity.,SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1 What are the names of the 4 clubs?,select clubName from club what is the longitude in 35.992 sqmi,"SELECT longitude FROM table_18600760_2 WHERE land___sqmi__ = ""35.992""" "What is the total word of title ""Adam"" and ""Acampada""?","SELECT SUM(words) FROM pages WHERE title IN ('Adam', 'Acampada')" What is the largest population among the cities?,SELECT regional_population FROM city ORDER BY Regional_Population DESC LIMIT 1 What is the torque of the 1.6 petrol with daewoo power?,"SELECT torque FROM table_name_49 WHERE name = ""1.6 petrol"" AND power = ""daewoo""" What are the first name and last name of the players who have weight above 220 or height below 75?,"SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75" "What is the name of the country with less than 9.033 for swimsuit, 8.611 for interview and preliminary is less than 8.87?",SELECT country FROM table_name_50 WHERE swimsuit < 9.033 AND interview = 8.611 AND preliminary < 8.87 What is the total number of branches?,SELECT count ( distinct branch_id ) FROM membership_register_branch Find the types of documents with more than 4 documents.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 4 What is the name of the organization that was formed most recently?,SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1 How many instructors in the physics department make less than that?,Select count ( * ) from instructor where dept_name = 'Physics' and salary < ( SELECT avg ( salary ) FROM instructor WHERE dept_name = 'Physics' ) What is the area code in which the most voters voted?,SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1 What is the Result with a Location of brussels?,"SELECT COUNT(result) FROM table_name_96 WHERE location = ""brussels""" Which commander has had to deal with more cases of criminal sexual abuse?,SELECT T3.commander FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.secondary_description = 'CRIMINAL SEXUAL ABUSE' GROUP BY T3.commander ORDER BY COUNT(T1.secondary_description) DESC LIMIT 1 Which Tournament was on 2 October 2006?,"SELECT tournament FROM table_name_98 WHERE date = ""2 october 2006""" What are the names and number of hours spent training for each player who trains for less than 1500 hours?,"SELECT pName , HS FROM Player WHERE HS < 1500" How many resulted in a loss with 479 points against?,"SELECT lost FROM table_name_52 WHERE points_against = ""479""" Who is the tallest camera operator?,SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.role = 'camera operator' ORDER BY T2.height_meters DESC LIMIT 1 Marat Safin is the opponent in the final in what championship?,"SELECT championship FROM table_26202788_7 WHERE opponent_in_the_final = ""Marat Safin""" List all statement ids and statement details.,"SELECT STATEMENT_ID , statement_details FROM Statements" Name the score when the home is ny islanders and the visitor is montreal,"SELECT score FROM table_name_86 WHERE home = ""ny islanders"" AND visitor = ""montreal""" Name where bethany college is,"SELECT location FROM table_262476_1 WHERE institution = ""Bethany College""" What venue was round 20 held at?,SELECT venue FROM table_name_11 WHERE round = 20 What portion of the nations in Latin America and the Caribbean had more than 50% of their land used for agriculture in 1961?,SELECT CAST(SUM(CASE WHEN T1.Value > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.CountryCode) FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Year = 1961 AND T2.Region = 'Latin America & Caribbean' AND indicatorname = 'Agricultural land (% of land area)' What date did episode 4 in the season originally air?,SELECT original_air_date FROM table_24425976_7 WHERE season = 4 What is the driver reference and nationality of Fernando? | Do you mean the driver reference and nationality of the driver whose forename is Fernando? | Yes,"SELECT driverRef , nationality FROM drivers where forename = 'Fernando'" How many players are Indians?,SELECT COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'India' Name the latitude for 3810536900,SELECT latitude FROM table_18600760_8 WHERE geo_id = 3810536900 What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?,"SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" "What is the episode number of the episode that originally aired on February 4, 2008?","SELECT episode_no FROM table_name_23 WHERE original_airdate = ""february 4, 2008""" On what date is the winning score –8 (70-71-67=208)?,SELECT date FROM table_name_54 WHERE winning_score = –8(70 - 71 - 67 = 208) "Who is the opponent of the match with an attendance larger than 59,000?",SELECT opponent FROM table_name_89 WHERE attendance > 59 OFFSET 000 What is the bronze with more than 2 gold and less than 14 total and 4 silver?,SELECT AVG(bronze) FROM table_name_86 WHERE gold > 2 AND total < 14 AND silver = 4 List all document ids and receipt dates of documents.,"SELECT document_id, receipt_date FROM Documents" Which Category in Brown has a Frequency of 0.08%?,"SELECT brown FROM table_name_84 WHERE frequency = ""0.08%""" What is the name of the community that has the highest number of crimes related to prostitution?,SELECT T3.community_area_name FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T1.community_area_no = T3.community_area_no WHERE T2.primary_description = 'PROSTITUTION' GROUP BY T1.iucr_no ORDER BY T1.case_number DESC LIMIT 1 What are the name and primarily affiliated department name of each physician?,"SELECT T1.name , T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1" Which room has the largest number of reservations?,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1; What is the difference in the number of cities with P.O. box only and cities with Post Office among the cities with area code 787?,SELECT COUNT(CASE WHEN T2.type = 'P.O. Box Only' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.type = 'Post Office' THEN 1 ELSE NULL END) AS DIFFERENCE FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 787 Show distinct types of artworks that are nominated in festivals in 2007.,SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007 "Provide the names, risk categories and descriptions for the eateries with violation type ID of 103111.","SELECT T2.name, T1.risk_category, T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.violation_type_id = '103111'" "How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?","SELECT us_viewers__million_ FROM table_11111116_8 WHERE original_air_date = ""March 31, 2013""" "WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrative district of seungju?","SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = ""south jeolla"" AND administrative_district = ""seungju""" "When the new orleans saints were visiting texas stadium, what was the final score?","SELECT final_score FROM table_name_94 WHERE stadium = ""texas stadium"" AND visiting_team = ""new orleans saints""" "What is the position of the team that played at the venue, Central, Gomel?","SELECT position_in_1999 FROM table_name_71 WHERE venue = ""central, gomel""" "Which Appointed has Termination of Mission on april 7, 2005?","SELECT appointed_by FROM table_name_40 WHERE termination_of_mission = ""april 7, 2005""" * I have left the chat *,SELECT count ( * ) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id What are all the friends of Alice who are female?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' Which of the people with job title code Sales Person are not Clerical Staff?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" what is the type when the bie recognised is yes and year(s) is 1960?,"SELECT type FROM table_name_62 WHERE bie_recognised = ""yes"" AND year_s_ = ""1960""" What is the sum of core# with a TDP less than 85.3?,SELECT SUM(core__number) FROM table_name_62 WHERE tdp__w_ < 85.3 Can you filter that list of customers to show only those who have 'No Response' as their outcome code?,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id where T2.outcome_code = ""No Response""" How many different nationalities do conductors have?,SELECT count(DISTINCT Nationality) FROM conductor Who was the opponent when the Seattle Seahawks had a record of 8-7?,"SELECT opponent FROM table_name_87 WHERE record = ""8-7""" Please show different denominations and the corresponding number of schools in descending order.,"SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC" Which Record has a Score of 111–101?,"SELECT record FROM table_name_69 WHERE score = ""111–101""" What are their cmi cross reference IDs?,"SELECT t1.master_customer_id,cmi_cross_ref_id FROM Customer_Master_Index as t1 join CMI_Cross_References as t2 on t1.master_customer_id = t2.master_customer_id where t1.cmi_details not in ( 'Schmidt, Kertzmann and Lubowitz' ) " What is the percentage calories protein of Raspberry Chiffon Pie?,SELECT pcnt_cal_prot FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' What are the names of the singers that have more than one songs?,SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1 What are the names for the top three membership branches,SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 What Tries against has a Losing bonus of 7?,"SELECT tries_against FROM table_name_43 WHERE losing_bonus = ""7""" Which College/Junior/Club Team (League) did the player in round 6 play for?,"SELECT college_junior_club_team__league_ FROM table_name_98 WHERE round = ""6""" How many allergy entries are there?,SELECT count(DISTINCT allergy) FROM Allergy_type What is the original artist that has 11 as the order number?,"SELECT original_artist FROM table_name_69 WHERE order__number = ""11""" Show the people that have been governor the most times.,SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz?,"SELECT l2_cache FROM table_name_96 WHERE gpu_model = ""iris pro graphics 5200"" AND frequency = ""2.6 ghz""" What Champion had a Score of 9–1?,"SELECT champion FROM table_name_82 WHERE score = ""9–1""" What is the Away team score when they played Geelong as the Home team?,"SELECT away_team AS score FROM table_name_15 WHERE home_team = ""geelong""" What is the population if the city is Gilroy?,"SELECT population FROM table_25200461_9 WHERE city = ""Gilroy""" Which customer had at least 2 policies but did not file any claims? List the customer details and id.,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id" Please list the titles of the episodes that have over 200 voters voting a 10 in star score.,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.votes > 200 AND T2.stars = 10; "ok,list out the all team id loser",SELECT team_id_loser FROM postseason Who has an overall greater than 414 with a pick# bigger than 9?,SELECT name FROM table_name_81 WHERE overall > 414 AND pick__number > 9 How many airports do we have?,SELECT COUNT(*) FROM AIRPORTS Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID.,"SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0" What are the invoice numbers created before 1989-09-03 or after 2007-12-25?,"SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" "Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?",SELECT riaa_sales_certification FROM table_name_50 WHERE billboard_200_peak < 18 AND year < 1972 "What is the document type code for document type ""Paper""?","SELECT document_type_code FROM Ref_document_types WHERE document_type_name = ""Paper""" Who had the time of 1:23.32.41?,"SELECT rider FROM table_name_17 WHERE time = ""1:23.32.41""" "What is the average overall of Ken Whisenhunt, who has a pick # of 5?","SELECT AVG(overall) FROM table_name_77 WHERE pick__number = 5 AND name = ""ken whisenhunt""" Name the M939 series with M809 series of m817 and M39 series of m51,"SELECT m939_series FROM table_name_54 WHERE m809_series = ""m817"" AND m39_series = ""m51""" "Who is the director with the Min Dally Nseek title, and won?","SELECT director FROM table_name_57 WHERE title = ""min dally nseek"" AND result = ""won""" What was the record after the game against the Sharks at Arrowhead Pond of Anaheim?,"SELECT record FROM table_name_72 WHERE arena = ""arrowhead pond of anaheim"" AND opponent = ""sharks""" Who had the most rebounds in the game against Chicago?,"SELECT high_rebounds FROM table_name_52 WHERE team = ""chicago""" What is the name of the country that participated in the greatest number of tournaments?,SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count ( * ) DESC LIMIT 1 Which caps was in scotland in 1920–1923?,"SELECT caps FROM table_name_20 WHERE scotland_career = ""1920–1923""" Show the names of employees that work for companies with sales bigger than 200.,SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200 Who is the director for diary for my loves?,"SELECT director FROM table_14975415_1 WHERE english_title = ""Diary for My Loves""" What are the student ids of all students who registered for statistics?,SELECT T2.student_id FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id where T3.course_name = 'statistics' "Hello, how many circuits belong to France?","SELECT count ( * ) FROM circuits WHERE country = ""France""" How many classes are professor whose last name is Graztevski has?,SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski' "When the value of ""since beginning of big 12"" is synonymous with its' category, what are the in Ames values?","SELECT in_ames FROM table_10429820_13 WHERE ""since_beginning_of_big_12"" = ""since_beginning_of_big_12""" How about the school with the least amount of professors?,SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count ( * ) LIMIT 1 "What is the highest rank with the notes of sa/b, and a time of 6:39.07?","SELECT MAX(rank) FROM table_name_56 WHERE notes = ""sa/b"" AND time = ""6:39.07""" What finish has a start smaller than 25?,SELECT finish FROM table_name_73 WHERE start < 25 What was the highest attendance on December 23?,"SELECT MAX(attendance) FROM table_name_91 WHERE date = ""december 23""" "Which violin player attended the most? | Do you mean the name of the violin player that attended the most number of performances? | Yes, what is the name of the violin player who attended the most number of performances?",select T1.name from member as T1 join member_attendance as T2 on T1.Member_id = T2.Member_id group by T2.Member_id order by count ( * ) desc limit 1 "Which player has 0 goals, 1 tries, 4 points, and plays in the Prop position?","SELECT player FROM table_name_19 WHERE goals = 0 AND tries = 1 AND points = 4 AND position = ""prop""" "What is the premiere rating for a Chinese title of 野蠻奶奶大戰戈師奶, and a Peak smaller than 41?","SELECT SUM(premiere) FROM table_name_59 WHERE chinese_title = ""野蠻奶奶大戰戈師奶"" AND peak < 41" "What is Against, when Venue is ""Twickenham , London"", and when Date is ""04/03/2000""?","SELECT against FROM table_name_55 WHERE venue = ""twickenham , london"" AND date = ""04/03/2000""" What year was the year of the pig theme?,"SELECT year FROM table_name_43 WHERE theme = ""year of the pig""" What is the average satisfying degree of the course Machine Learning Theory?,SELECT CAST(SUM(T1.sat) AS REAL) / COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.name = 'Machine Learning Theory' What's the total of Water (sqmi) with a Land (sqmi) of 35.918 and has a Longitude that is smaller than -97.115459?,SELECT SUM(water__sqmi_) FROM table_name_68 WHERE land___sqmi__ = 35.918 AND longitude < -97.115459 What were the casualties of the ship sunk by u-125?,"SELECT casualties FROM table_name_33 WHERE sunk_by… = ""u-125""" What is the full name of the journals that are published in the database papers whose topic is Sustainability?,SELECT T2.FullName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Keyword = 'Sustainability' List the titles of movies directed by Jack Kinney that were released before 1947.,"SELECT T1.movie_title FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Jack Kinney' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 1, LENGTH(T1.release_date)) < '47'" how many customers are presented on the table | Did you mean to ask how many entries there are in the table customer? | exactly,SELECT COUNT ( * ) FROM customer Which player is the 24 pick?,"SELECT player FROM table_name_16 WHERE pick = ""24""" Is the teacher who teaches course no.9 a faculty member?,SELECT T2.hasPosition FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.course_id = 9 What are their first and last names?,"SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Lacrosse""" Give me the inventory id and title of the film that was most frequently rented,"SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY count ( * ) DESC LIMIT 1" How many sacks have 72 as the solo and a TTkl less than 112?,SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112 What Turbo has the Release price (USD) of $583?,"SELECT turbo FROM table_name_29 WHERE release_price___usd__ = ""$583""" What are the names and average salaries for departments with average salary higher than 42000?,"SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000" Show the avatar of the user who gave the rating at 2019/10/17 1:36:36.,SELECT T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id WHERE T1.rating_timestamp_utc LIKE '2019-10-17 01:36:36' What are the names and location of the shops in ascending alphabetical order of name.,"SELECT Shop_Name , LOCATION FROM shop ORDER BY Shop_Name ASC" "What is the venue of the competition ""1994 FIFA World Cup qualification"" hosted by ""Nanjing ( Jiangsu )""?","SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = ""Nanjing ( Jiangsu )"" AND T3.competition = ""1994 FIFA World Cup qualification""" "Tell me the date of stade des martyrs, dr congo","SELECT date FROM table_name_89 WHERE venue = ""stade des martyrs, dr congo""" What is the average duration of trips for the starting station of Santa Clara at Almaden and what is the latitude and longitude of this station?,"SELECT AVG(T1.duration), T2.lat, T2.long FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name LEFT JOIN station AS T3 ON T3.name = T1.end_station_name WHERE T1.start_station_name = 'Santa Clara at Almaden'" On which date is Taylor Field the location?,"SELECT date FROM table_23612439_2 WHERE location = ""Taylor Field""" To which city did donor “22cbc920c9b5fa08dfb331422f5926b5” donate?,SELECT DISTINCT donor_city FROM donations WHERE donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5' What is the qual 2 with a 1:10.949 best?,"SELECT qual_2 FROM table_name_65 WHERE best = ""1:10.949""" What is the Draw that has Points larger than 44 and a Place larger than 1?,SELECT AVG(draw) FROM table_name_92 WHERE points > 44 AND place > 1 "Which artist has released the most singles with the tag ""soul""?",SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'soul' AND T1.releaseType = 'single' GROUP BY T1.artist ORDER BY COUNT(T1.releaseType) DESC LIMIT 1 Name the result for dolly parton,"SELECT result FROM table_19508635_1 WHERE original_artist = ""Dolly Parton""" what year was the opponent caroline garcia?,"SELECT SUM(year) FROM table_name_22 WHERE opponent = ""caroline garcia""" What are the weights of entrepreneurs in descending order of money requested?,SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC How many wins did the Philadelphia Flyers have over the Boston Bruins in 1985?,SELECT T1.W FROM TeamVsTeam AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 1985 AND T1.tmID = ( SELECT DISTINCT tmID FROM Teams WHERE name = 'Philadelphia Flyers' ) AND T1.oppID = ( SELECT DISTINCT tmID FROM Teams WHERE name = 'Boston Bruins' ) Thanks can you find me the names of the furniture with more then 10 components?,SELECT name FROM furniture where Num_of_Component > 10 What was the extra info for the Commonwealth Games?,"SELECT extra FROM table_name_90 WHERE tournament = ""commonwealth games""" How many regions were affected by the first storm?,"select T1.name,count ( * ) from storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id limit 1" What was the result of the game hosted at Queen's Park Oval?,"SELECT result FROM table_name_30 WHERE venue = ""queen's park oval""" "How many starts were there when the winnings are $690,321?","SELECT MIN(starts) FROM table_1875157_2 WHERE winnings = ""$690,321""" What attendance does 1-6 record have?,"SELECT SUM(attendance) FROM table_name_46 WHERE record = ""1-6""" "For each course id, how many students are registered and what are the course names?","SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id" What is the IATA for Beijing Capital International Airport?,"SELECT iata FROM table_name_14 WHERE airport = ""beijing capital international airport""" "Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els?","SELECT money___£__ FROM table_name_50 WHERE country = ""south africa"" AND to_par = ""+1"" AND player = ""ernie els""" What was the score when St Kilda played as the home team?,"SELECT home_team AS score FROM table_name_59 WHERE home_team = ""st kilda""" What is the player from England's score?,"SELECT score FROM table_name_98 WHERE country = ""england""" What day did Phoenix play?,"SELECT date FROM table_name_32 WHERE team = ""phoenix""" What is orthodoxy when x is wehdat?,"SELECT orthodoxy FROM table_26173063_2 WHERE × = ""wehdat""" What are the different countries with singers above age 20?,SELECT DISTINCT country FROM singer WHERE age > 20 What is the verb for the Proto-Polynesian word *mohe?,"SELECT verb FROM table_name_43 WHERE proto_polynesian = ""*mohe""" "For each building, show the name of the building and the number of institutions in it.","SELECT T1.name, COUNT(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id" Give the country codes for countries in which people speak langauges that are not English.,"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != ""English""" What is the 1st leg where Team 1 is C.D. Plaza Amador?,"SELECT 1 AS st_leg FROM table_name_48 WHERE team_1 = ""c.d. plaza amador""" how many arabic in colobians is finnish,"SELECT arabic FROM table_24807774_1 WHERE colombian = ""Finnish""" Count the number of flights departing from 'APG'.,"SELECT count(*) FROM FLIGHTS WHERE SourceAirport = ""APG""" What is the winning span of the name martin kaymer?,"SELECT winning_span FROM table_1953516_1 WHERE name = ""Martin Kaymer""" What is the name of the entrepreneur with the greatest weight?,SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 The race tony bettenhausen 200 has what smallest rd?,"SELECT MIN(rd) FROM table_10706879_3 WHERE name = ""Tony Bettenhausen 200""" Show the billing country with the total amount of invoice 3.96?,SELECT billing_country FROM invoices WHERE total = 3.96 What is her employee ID?,SELECT EmployeeID FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count ( * ) DESC LIMIT 1 When colgate is the team how many times did they place fourth?,"SELECT COUNT(fourth_place) FROM table_1571238_2 WHERE team = ""Colgate""" Who was the away team at Arden Street Oval?,"SELECT away_team FROM table_name_20 WHERE venue = ""arden street oval""" what is the maximum pick # where player is anthony blaylock,"SELECT MAX(pick__number) FROM table_10650711_1 WHERE player = ""Anthony Blaylock""" What is the smallest grid for Ayrton Senna?,"SELECT MIN(grid) FROM table_name_21 WHERE driver = ""ayrton senna""" "Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?","SELECT opposing_pitcher FROM table_name_37 WHERE team = ""phillies"" AND location = ""pittsburgh"" AND inning = ""8th""" What are the names of singers ordered by ascending net worth?,SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC What is the average winning margin of the matches held in Newlands?,SELECT AVG(T1.win_margin) FROM Match AS T1 INNER JOIN Venue AS T2 ON T1.venue_id = T2.venue_id WHERE T2.venue_name = 'Newlands' What was the number of the game played on February 24?,"SELECT SUM(game) FROM table_name_29 WHERE date = ""february 24""" Who is the captain in Chaguaramas?,"SELECT captain FROM table_24039173_1 WHERE location = ""Chaguaramas""" How many rebounds does Ann Wauters have?,"SELECT COUNT(rebounds) FROM table_name_89 WHERE name = ""ann wauters""" Can you tell me the artist ID number of the Iron Maiden?,SELECT T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT ( * ) DESC LIMIT 1 "What was Goal that where Competition of international friendly, and a Result of 2–1?","SELECT goal FROM table_name_65 WHERE competition = ""international friendly"" AND result = ""2–1""" Return the number of flights departing from Aberdeen.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" How many total laps were ridden when the grid was 7 and the rider rode the Honda CBR600RR?,"SELECT SUM(laps) FROM table_name_96 WHERE bike = ""honda cbr600rr"" AND grid = 7" What is the lowest Goals Against by a team with more than 5 wins?,SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5 "When Karaorman is Team 1, what is the Agg.?","SELECT agg FROM table_name_48 WHERE team_1 = ""karaorman""" "List all the attribute classes of the image ID ""15"".",SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T2.IMG_ID = 15 What is the low silver total for switzerland with over 0 golds?,"SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = ""switzerland""" List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.,"SELECT t5.firstName, t5.lastName, SUM(t2.quantityOrdered) FROM products AS t1 INNER JOIN orderdetails AS t2 ON t1.productCode = t2.productCode INNER JOIN orders AS t3 ON t2.orderNumber = t3.orderNumber INNER JOIN customers AS t4 ON t3.customerNumber = t4.customerNumber INNER JOIN employees AS t5 ON t4.salesRepEmployeeNumber = t5.employeeNumber WHERE t1.productName = '1969 Harley Davidson Ultimate Chopper' GROUP BY t5.lastName, t5.firstName" Show the description and code of the attraction type most tourist attractions belong to.,"SELECT T1.Attraction_Type_Description, T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" What date had an opponent of Sweden and a friendly type game?,"SELECT date FROM table_name_44 WHERE type_of_game = ""friendly"" AND opponent = ""sweden""" what's the height with current club being dkv joventut,"SELECT height FROM table_12962773_5 WHERE current_club = ""DKV Joventut""" What kind of institute is in Indiana?,"SELECT affiliation FROM table_27961684_1 WHERE state = ""Indiana""" What is the Proto-Austronesian word for the Proto-Polynesian word *tui?,"SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = ""*tui""" What are the name and primarily affiliated department name of each physician?,"SELECT T1.name , T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1" what are all the channel are presented on the table,SELECT * from channel What is the number of seats in congress when the electoral district is Ucayali?,"SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE electoral_district = ""Ucayali""" What is the total point count of the youngest gymnast?,SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC LIMIT 1 State the event name of Basketball.,SELECT T2.event_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Basketball' What was the largest crowd that was in attendance for fitzroy?,"SELECT MAX(crowd) FROM table_name_58 WHERE home_team = ""fitzroy""" What is the year with a kurtis kraft 500a chassis?,"SELECT SUM(year) FROM table_name_86 WHERE chassis = ""kurtis kraft 500a""" Who is the tallest player in team USA U20?,"SELECT T.PlayerName FROM ( SELECT T1.PlayerName, T3.height_in_cm FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T1.height = T3.height_id WHERE T2.TEAM = 'USA U20' ORDER BY T3.height_in_cm DESC ) AS T WHERE T.height_in_cm = ( SELECT MAX(T3.height_in_cm) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T1.height = T3.height_id WHERE T2.TEAM = 'USA U20' )" "What is the main use of the structure that was in redfield, arkansas before 2004?","SELECT main_use FROM table_name_77 WHERE year < 2004 AND town = ""redfield, arkansas""" "What are the completion dates of all the tests that have result ""Fail""?","SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Fail""" How about the names of all artists that prefer the genre folk?,"SELECT artist_name FROM artist WHERE preferred_genre = ""folk""" How many unemployed students still have payment due?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'pos' What are the ids of courses offered in Fall of 2009 but not in Spring of 2010?,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 Find the number of routes with destination airports in Italy.,SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' "What is Date, when Competition is ""F"", and when Opponents is ""FC Astoria Walldorf""?","SELECT date FROM table_name_28 WHERE competition = ""f"" AND opponents = ""fc astoria walldorf""" Name the 2006 when the 2010 is 27,"SELECT 2006 FROM table_name_26 WHERE 2010 = ""27""" "Show the minimum amount of transactions whose type code is ""PUR"" and whose share count is bigger than 50.","SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = ""PUR"" AND share_count > 50" Count the number of distinct artists who have volumes.,SELECT COUNT(DISTINCT Artist_ID) FROM volume Which Comparative has a Name of pictar?,"SELECT comparative FROM table_name_71 WHERE name = ""pictar""" "For the University of Southampton in 2015, on which criteria did it score the best?",SELECT T1.criteria_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'University of Southampton' AND T2.year = 2015 ORDER BY T2.score DESC LIMIT 1 What Year had a Runner(s)-up of flory van donck?,"SELECT year FROM table_name_64 WHERE runner_s__up = ""flory van donck""" What is the highest pay rate of the employees who are exempt from collective bargaining?,SELECT T1.Rate FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.SalariedFlag = 1 ORDER BY T1.Rate DESC LIMIT 1 What is the finish of Mclaren chassis?,"SELECT finish FROM table_name_7 WHERE chassis = ""mclaren""" What is the lowest share count?,"SELECT share_count FROM TRANSACTIONS where share_count ! = """" order by share_count limit 1" Find the first name and office of history professor who did not get a Ph.D. degree.,"SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.'" Eduardo Martins is a customer at which company?,"SELECT company FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins"";" What is the series number of the episode watched by 10.89 million viewers?,"SELECT MAX(series__number) FROM table_12146637_1 WHERE us_viewers__millions_ = ""10.89""" What is the last name of the artist who sang the most songs?,SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 "Who was the opponent on september 10, 1979?","SELECT opponent FROM table_name_28 WHERE date = ""september 10, 1979""" In which season was Jeanne d'Arc (Bamako) the runner-up?,"SELECT season FROM table_12444503_1 WHERE runner_up = ""Jeanne d'Arc (Bamako)""" Who is second on the team with Euan Byers at lead?,"SELECT second FROM table_name_38 WHERE lead = ""euan byers""" What is the most common singer citizenship ?,select citizenship from singer group by citizenship order by count(*) desc limit 1 "What are the players who played for Columbus Crew, and how many years did each play for?","SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" "What is To Par, when Score is ""69-72=141""",SELECT to_par FROM table_name_31 WHERE score = 69 - 72 = 141 Who is the customer from the West region that received the highest discount?,SELECT T2.`Customer Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'West' ORDER BY T1.Discount DESC LIMIT 1 Provide the full names of patients who have been taking Penicillin V Potassium 250 MG since 1948.,"SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Penicillin V Potassium 250 MG' AND strftime('%Y', T2.START) >= '1948'" What is the sum of the game with the boston bruins as the opponent?,"SELECT SUM(game) FROM table_name_84 WHERE opponent = ""boston bruins""" What is the title of the newest movie?,SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie) On what team did John Bowe round winner at Winton Motor Raceway belong to?,"SELECT team FROM table_name_44 WHERE round_winner = ""john bowe"" AND circuit = ""winton motor raceway""" What was the decision of the Kings game when Chicago was the visiting team?,"SELECT decision FROM table_name_71 WHERE visitor = ""chicago""" How many games resulted in a loss?,"SELECT _number FROM table_20745746_1 WHERE record = ""Loss""" What was the margin of the match on 19 Jan 2002?,"SELECT margin FROM table_22384475_1 WHERE match_date = ""19 Jan 2002""" What date did Carlton play as the away team?,"SELECT date FROM table_name_54 WHERE away_team = ""carlton""" Alright! Can you please show me a list of all member names who are not associated with any event?,SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id "What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?","SELECT MAX(bronze) FROM table_name_58 WHERE silver > 2 AND sport = ""cycling"" AND gold < 16" "What is the sum of cuts made when the top-5 is 2, and there are 12 events?",SELECT COUNT(cuts_made) FROM table_name_45 WHERE top_5 = 2 AND events = 12 Which street in San Francisco has the most burger restaurants?,SELECT T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.food_type = 'burgers' GROUP BY T2.street_name ORDER BY COUNT(T2.id_restaurant) DESC LIMIT 1 "Hi, what are some tourist attractions that tourist visit? | do you want the name of the tourist attractions that tourist visit? | Yes please.",SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID Which wines were produced before 2000?,SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 "Which date has a Race Leader of hermann buse ( ger ), and a Stage of 5?","SELECT date FROM table_name_83 WHERE race_leader = ""hermann buse ( ger )"" AND stage = ""5""" What is the Frequency for Model Number c3 850?,"SELECT frequency FROM table_name_99 WHERE model_number = ""c3 850""" Can you list out their names?,SELECT name FROM useracct WHERE u_id NOT IN ( SELECT u_id FROM review ) "What are flight numbers of Airline ""United Airlines""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = ""United Airlines""" Which types of policy are chosen by more than 2 customers? Give me the policy type codes.,SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2 "show me the name of persons | The names of persons are Alice, Bob, Dan and Zach | Who has a friend from New York?",SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city' What are the ids of all female students who play football?,"SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" What is the weight in kilograms of the player with the highest number of goal differential of all time?,SELECT T3.weight_in_kg FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN weight_info AS T3 ON T2.weight = T3.weight_id ORDER BY T1.PLUSMINUS DESC LIMIT 1 What are the IDs of problems that the staff member Jolie Weber reported?,"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 = ""Jolie"" AND T2.staff_last_name = ""Weber""" What proteins are associated with Lindenwood University-Belleville?,"SELECT T2.protein_name FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id where T1.institution = ""Lindenwood University–Belleville""" Which team did CK Kapugedera belong to? How many matches did he play?,"SELECT T3.Team_Name, COUNT(T2.Match_Id) FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T2.Player_Id = T1.Player_Id INNER JOIN Team AS T3 ON T3.Team_Id = T2.Team_Id WHERE T1.Player_Name = 'CK Kapugedera'" Which airlines have less than 200 flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200 What is the average rank of gol on airlines?,"SELECT AVG(rank) FROM table_name_45 WHERE airline = ""gol""" How many friends does the high school student Kyle have?,"SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""" what's the tries against with try bonus being 10,"SELECT tries_against FROM table_13940275_5 WHERE try_bonus = ""10""" Which catalogue has a date of 1987?,"SELECT catalogue FROM table_name_63 WHERE date = ""1987""" What is the record for the result w 33-3?,"SELECT record FROM table_name_4 WHERE result = ""w 33-3""" "Now please show the names of all members, and the locations of the colleges they go to","SELECT T2.Name, T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID" "In 2013, what are the names of the establishments with contaminated or adulterated food?","SELECT T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2013' AND T1.description = 'Contaminated or adulterated food'" How many laps did Jacques Villeneuve have?,"SELECT laps FROM table_name_60 WHERE driver = ""jacques villeneuve""" Which Zone has a Champion of surozh sudak?,"SELECT SUM(zone) FROM table_name_30 WHERE champion = ""surozh sudak""" What's the name of the episode associated with Nick production number 342? ,SELECT episode_title FROM table_2655016_4 WHERE nick_prod__number = 342 What is the sum of the total of the player who won in 1979?,"SELECT SUM(total) FROM table_name_90 WHERE year_s__won = ""1979""" Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?,"SELECT award FROM table_name_54 WHERE category = ""teen pick show: comedy""" Name the sum of long for avg less than 6 and rec less than 2,SELECT SUM(long) FROM table_name_24 WHERE avg < 6 AND rec < 2 Return the title and inventory id of the film that is rented most often.,"SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1" "For all transactions for WRAP in August 2016, list the time to achieve highest price and the time to achieve the lowest price.","SELECT T2.time_high, T2.time_low, T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'WARP' AND STRFTIME('%Y-%m', T2.date) = '2016-08'" Who were the candidates when the winner was first elected in 1910?,"SELECT candidates FROM table_1346137_4 WHERE first_elected = ""1910""" "What 1995 has 1r as the 1999, and a 1998 of 4r?","SELECT 1995 FROM table_name_48 WHERE 1999 = ""1r"" AND 1998 = ""4r""" Which weddings took place after 2014?,select * from wedding where year > 2014 "what is the pick when the school is jasper hs (jasper, texas)?","SELECT pick FROM table_name_63 WHERE school = ""jasper hs (jasper, texas)""" what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?,"SELECT MIN(year) FROM table_28232443_1 WHERE artist = ""Kid Creole and the Coconuts""" Give the cohort name for the school with biggest cohort size.,SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.cohort_size = ( SELECT MAX(T1.cohort_size) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid ) In which stadium is the week 5 game played?,SELECT stadium FROM table_10647401_1 WHERE week = 5 Which Run has an Opponent of Canterbury?,"SELECT runs FROM table_name_52 WHERE opponent = ""canterbury""" What are the titles of all the albums?,SELECT title FROM albums; What is the average Year with a Veritas rs chassis and more than 0 points?,"SELECT AVG(year) FROM table_name_73 WHERE chassis = ""veritas rs"" AND points > 0" How did Cleveland do in the regular season in 2006?,SELECT regular_season FROM table_2357201_1 WHERE year = 2006 List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.,SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta' "How many credits is the course that the student with the last name Smithson took, and what is its description?","SELECT T4.crs_description , T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'" How many people had high rebounds during the game with a record of 34-32?,"SELECT COUNT(high_rebounds) FROM table_23248940_10 WHERE record = ""34-32""" "Which Location has Notes of eisstadion, and a Date of 1930-01-11?","SELECT location FROM table_name_5 WHERE notes = ""eisstadion"" AND date = ""1930-01-11""" "What value can you find under the column ""august 21-22"" and the row of June 11, 1983?","SELECT august_21_22 FROM table_22651355_3 WHERE june_10_11 = ""June 11, 1983""" What are the results in the county with Peter Deutsch as a candidate?,"SELECT results FROM table_1341453_11 WHERE incumbent = ""Peter Deutsch""" What are their employee IDs?,SELECT T1.EMPLOYEE_ID FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance' Show the names of companies in the banking or retailing industry?,"SELECT Name FROM company WHERE Industry = ""Banking"" OR Industry = ""Retailing""" List the names of the dogs of the rarest breed and the treatment dates of them.,"SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )" "Which station was opened in 2013, with no park & ride lot?","SELECT station_name FROM table_name_99 WHERE opening_year = ""2013"" AND park_and_ride_lot = ""no""" "Out of all the short form complaint inspections done by David Hodges, how many businesses passed?",SELECT COUNT(DISTINCT T2.license_no) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'David' AND T1.last_name = 'Hodges' AND T1.employee_id = 153225 AND T2.inspection_type = 'Short Form Complaint' AND T2.results = 'Pass' What was Thierry Henry's average goal when his rank was higher than 7?,"SELECT AVG(goals) FROM table_name_17 WHERE player = ""thierry henry"" AND rank > 7" What is the software platform that is most common amongst all devices?,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1 How many wins did they have at Richmond Cricket Ground Stadium?,"SELECT wins FROM table_name_20 WHERE stadium = ""richmond cricket ground""" "Can you tell me the Series that has the Wins of 0, and the Season of a 2002?","SELECT series FROM table_name_63 WHERE wins = 0 AND season = ""2002""" Which tier has a division of LEB 2 and Cup Competitions of Copa LEB Plata runner-up?,"SELECT tier FROM table_name_91 WHERE division = ""leb 2"" AND cup_competitions = ""copa leb plata runner-up""" Which flag is most widely used among all ships?,SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1 What is the role of the employee named Koby?,"SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = ""Koby"";" List the first name of all the professionals along with the description of the treatment they have done.,"SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code" "Among the products sold in Maricopa County, which was the least sold?",SELECT T1.`Product Name` FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` AS T3 ON T3.StoreID = T2._StoreID WHERE T3.County = 'Maricopa County' ORDER BY T2.`Order Quantity` ASC LIMIT 1 Show the name of the shop that has the most kind of devices in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1 Through which companies have products been shipped the most times to the city of Aachen?,SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.ShipCity = 'Aachen' GROUP BY T2.CompanyName ORDER BY COUNT(T1.ShipVia) DESC LIMIT 1 "Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?","SELECT section FROM table_name_74 WHERE level = ""tier 3"" AND position = ""6th"" AND season = ""1937-38""" How many players who were born in 1980 weigh 185 in pounds?,"SELECT COUNT(T2.ELITEID) FROM weight_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.weight_id = T2.weight WHERE T1.weight_in_lbs = 185 AND strftime('%Y', T2.birthdate) = '1980'" And what are policy type code associated with this id?,"SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" Find the first names of the faculty members who participate in Canoeing and Kayaking.,SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking' what is the number of different channel owners?,SELECT COUNT(DISTINCT OWNER) FROM channel What is the lowest Height (m) on the island of Burray?,"SELECT MIN(height__m_) FROM table_name_22 WHERE island = ""burray""" What is the Player in the Int'l Debut of 1974?,"SELECT player FROM table_name_41 WHERE year = ""1974""" What role does the tallest person play?,SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id INNER JOIN Award AS T3 ON T2.episode_id = T3.episode_id ORDER BY T1.height_meters DESC LIMIT 1 Which wineries produce at least four wines?,SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 Show the maximum amount of transaction.,SELECT max(amount_of_transaction) FROM TRANSACTIONS Find the maximum and minimum millisecond lengths of pop tracks.,"SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Pop""" "Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.","SELECT T2.building, T2.room_number, T2.semester, T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title" What are the names of all singers that are from the UK and released a song in English?,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english""" Which NHL award was most frequently won by the coach with the most wins?,"SELECT award FROM Teams AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.lgID = T2.lgID WHERE T1.lgID = 'NHL' GROUP BY T2.coachID, T2.award ORDER BY COUNT(T2.award) DESC LIMIT 1" List the race class with at least two races.,SELECT CLASS FROM race GROUP BY CLASS HAVING count(*) >= 2 list the year each movie was released,"SELECT title, year FROM Movie" where was the location that had game 19?,SELECT location_attendance FROM table_27756314_7 WHERE game = 19 "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are divorced males?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.SEX = 'Male' AND T1.MARITAL_STATUS = 'Divorced' AND T2.RESPONSE = 'true' and what is the name of that tryout player from OU?,"SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = ""OU""" What is the criteria name of the university ID 32 in 2015?,SELECT T1.criteria_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id WHERE T2.university_id = 32 AND T2.year = 2015 List out the country name of lower earning countries,SELECT DISTINCT T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Low income' what is the date of vacancy when the position in table is 10th and the team is balboa?,"SELECT date_of_vacancy FROM table_name_70 WHERE position_in_table = ""10th"" AND team = ""balboa""" Which year was the third movie directed by Quentin Tarantino released? Indicate the user ids of the user who gave it a rating score of 4.,"SELECT T2.movie_release_year, T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_id = ( SELECT movie_id FROM movies WHERE director_name = 'Quentin Tarantino' ORDER BY movie_release_year ASC LIMIT 2, 1 ) AND T1.rating_score = 4" Give the head of the state of the country with the lowest percentage use of English as their language.,SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T2.Percentage LIMIT 1 Name the Nationality / Opponent of rosario?,"SELECT competition FROM table_name_64 WHERE nationality___opponent = ""rosario""" How many athletes competed in the 1992 Summer Olympics?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1928 Summer' Which lyricist has a song with a length of 6:14?,"SELECT lyricist FROM table_10848177_1 WHERE length = ""6:14""" What is the highest roll number of the school in Te puna with a decile larger than 2?,"SELECT MAX(roll) FROM table_name_85 WHERE decile > 2 AND area = ""te puna""" What is the average high temperature for each day of week?,"SELECT AVG(high_temperature), day_of_week FROM weekly_weather GROUP BY day_of_week" What is the capacity of Bandırma Banvit?,"SELECT AVG(capacity) FROM table_name_28 WHERE club = ""bandırma banvit""" How many credits does the department offer?,"SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code" List name and damage for all storms in a descending order of max speed.,"SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC" What was the draw for Lpż Gdańsk with a match of 8?,"SELECT draw FROM table_name_57 WHERE match = ""8"" AND team = ""lpż gdańsk""" List the resource types available at Sax Arts & Crafts.,SELECT DISTINCT project_resource_type FROM resources WHERE vendor_name = 'Sax Arts & Crafts' What are the file sizes of those songs?,SELECT T1.file_size FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 What is the Attendance on august 15?,"SELECT attendance FROM table_name_99 WHERE date = ""august 15""" "When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?","SELECT MAX(grid) FROM table_name_44 WHERE laps < 39 AND driver = ""juan manuel fangio""" "Among the app users who were not active when event no.2 happened, how many of them belong to the category Property Industry 1.0?",SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id INNER JOIN app_events AS T3 ON T2.app_id = T3.app_id WHERE T3.is_active = 0 AND T1.category = 'Property Industry 1.0' AND T3.event_id = 2 What the smallest version number and its template type code?,"SELECT min(Version_Number) , template_type_code FROM Templates" Which Record has an Event of inoki bom-ba-ye 2002?,"SELECT record FROM table_name_1 WHERE event = ""inoki bom-ba-ye 2002""" Which cities have more than one airport?,SELECT city FROM airports GROUP BY city HAVING count ( * ) > 1 How many counties are there in total?,SELECT count(*) FROM county Count the number of distinct governors.,SELECT count(DISTINCT Governor) FROM party Who won the mens singles when lau sui fei won the womens singles?,"SELECT mens_singles FROM table_28138035_26 WHERE womens_singles = ""Lau Sui Fei""" How many museums were opened after 2013 or before 2008?,SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year < 2008 What is the name of the game that has been played the most?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1 What is the Finished place for da'tara trained by Nick zito?,"SELECT finished FROM table_name_3 WHERE trainer = ""nick zito"" AND horse = ""da'tara""" "Fantastic! Between Hangzhou and Nantong, which city has the cooler weather? | Did you mean what time to compare the weather ? | Oh, sorry! Yes, which city has the lowest temperature in March?","SELECT T2.Mar,T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.City = ""Hangzhou ( Zhejiang ) "" or T1.City = ""Nantong ( Jiangsu ) """ Show the police force shared by counties with location on the east and west.,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East"" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West""" Find the names of students who have taken any course in the fall semester of year 2003.,SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003) What are the ids for courses in the Fall of 2009 or the Spring of 2010?,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 How many total yards for Bobby Layne?,"SELECT MAX(yards) FROM table_19418696_3 WHERE name = ""Bobby Layne""" How many votes did the episode titled Juvenile get?,SELECT SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Juvenile' Where does the home team fitzroy play?,"SELECT venue FROM table_name_78 WHERE home_team = ""fitzroy""" Which Round has kim eun-ha as an Opponent?,"SELECT round FROM table_name_37 WHERE opponent = ""kim eun-ha""" Provide match ID which had the extra type of penalty.,SELECT T1.Match_Id FROM Extra_Runs AS T1 INNER JOIN Extra_Type AS T2 ON T1.Extra_Type_Id = T2.Extra_Id WHERE T2.Extra_Name = 'penalty' How many stores are headquarted in each city?,"SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city" What are the names of actors and the musicals that they are in?,"SELECT T1.Name , T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID" "Among the students being advised by advisors, which students' year in the program do the advisors advise the majority of?",SELECT T2.yearsInProgram FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.student = 1 GROUP BY T2.yearsInProgram ORDER BY COUNT(T1.p_id_dummy) DESC LIMIT 1 "Among the items shipped in 1994 via truck, how many items were returned?","SELECT COUNT(l_orderkey) FROM lineitem WHERE STRFTIME('%Y', l_shipdate) = '1994' AND l_returnflag = 'R' AND l_shipmode = 'TRUCK'" Show the names of the drivers without a school bus.,SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus) What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?,"SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)" In what round was the circuit Eastern Creek Raceway?,"SELECT rd FROM table_25531112_2 WHERE circuit = ""Eastern Creek Raceway""" What is the protein name when the e-value is 2.50e-41?,"SELECT protein_name FROM table_26708105_5 WHERE e_value = ""2.50E-41""" List all of the restaurant addresses from an unknown region.,SELECT T2.street_name FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'unknown' Find the name of captains whose rank are either Midshipman or Lieutenant.,SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant' "Show each school name, its budgeted amount, and invested amount in year 2002 or after.","SELECT T2.school_name , T1.budgeted , T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002" What is the score of the game against the baltimore bullets on March 14?,"SELECT score FROM table_name_4 WHERE opponent = ""baltimore bullets"" AND date = ""march 14""" What is Zimbabwe's rank?,"SELECT rank FROM table_name_33 WHERE nationality = ""zimbabwe""" How many king beds are there?,SELECT sum(beds) FROM Rooms WHERE bedtype = 'King'; "Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?",SELECT college FROM table_name_6 WHERE round < 7 AND overall < 186 AND pick = 13 What are the names of all the countries that became independent after 1950?,SELECT Name FROM country WHERE IndepYear > 1950 Who did they play against in game 7?,"SELECT opponent FROM table_20745754_1 WHERE _number = ""7""" What happened in week 14 when week 11's result was Michigan (7-2)?,"SELECT week_14_dec_3 FROM table_name_17 WHERE week_11_nov_12 = ""michigan (7-2)""" "When Douglas Soares had the fastest lap, what was the report?","SELECT report FROM table_name_39 WHERE fastest_lap = ""douglas soares""" "Among id from 10 to 50. Which artist tagged as ""new.york"" has the most downloads?",SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.id BETWEEN 10 AND 50 AND T2.tag LIKE 'new.york' ORDER BY T1.totalSnatched DESC LIMIT 1 Show the year of postseason with equal wins and loses?,SELECT year FROM postseason WHERE wins = losses "List the name and residence for players whose occupation is not ""Researcher"".","SELECT Player_name, residence FROM player WHERE Occupation <> ""Researcher""" "What is the Version of the CD release on June 12, 2008 in Cyprus?","SELECT version FROM table_name_82 WHERE format = ""cd"" AND date = ""june 12, 2008"" AND region = ""cyprus""" Could you please list the first and last names of all the customers that have at least two cards?,"SELECT T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 2" List all names of courses with 1 credit?,SELECT CName FROM COURSE WHERE Credits = 1 Which deliver has 16 and a standing more than 128?,SELECT delivery FROM table_name_93 WHERE quantity = 16 AND standing > 128 Find the average unit price of jazz tracks.,"SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Jazz""" What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.,"SELECT T1.director, T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5" which was k. annamalai´s party a?,"SELECT party AS a FROM table_22757733_4 WHERE runner_up_a = ""K. Annamalai""" What is the average age of all artists?,SELECT avg(Age) FROM artist "Where does the employee named ""Standard Murray"" live?","SELECT address, city, state FROM employee WHERE first_name = 'Standard' AND last_name = 'Murray'" For which state did current legislator Sherrod Brown serve during his term that started on 1993/1/5?,SELECT T1.state FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.start = '1993-01-05' AND T2.official_full_name = 'Sherrod Brown' Who was the republican candidate in the race with incumbent thelma drake?,"SELECT republican FROM table_17503169_1 WHERE incumbent = ""Thelma Drake""" What is the average number of attendees for performances?,SELECT AVG(Attendance) FROM performance Show the name of ships whose nationality is either United States or United Kingdom.,"SELECT Name FROM ship WHERE Nationality = ""United States"" OR Nationality = ""United Kingdom""" List from which date and to which date these staff work: project staff of the project which hires the most staffs,"SELECT date_from , date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'leader'" List at least 5 students who has the longest absense from schoool?,SELECT name FROM longest_absense_from_school ORDER BY month DESC LIMIT 5 How many schools in the West New York School District have the highest poverty level?,SELECT COUNT(poverty_level) FROM projects WHERE school_district = 'West New York School District' AND poverty_level = 'highest poverty' What is the lowest #?,SELECT MIN(_number) FROM table_11964047_10 What was the game record if Marcus Camby (13) got the high rebounds?,"SELECT record FROM table_27734769_9 WHERE high_rebounds = ""Marcus Camby (13)""" Who was the GTU winning team when the TO winning team was Steve Ross? ,"SELECT gtu_winning_team FROM table_13642023_2 WHERE to_winning_team = ""Steve Ross""" Name the julys,SELECT july FROM table_1539201_1 "Who played the Rams on October 2, 2005?","SELECT opponent FROM table_name_22 WHERE date = ""october 2, 2005""" What is the nickname of the team who was in the GFL from 1986-1988?,"SELECT nickname FROM table_name_25 WHERE years_in_gfl = ""1986-1988""" find the college id for the college location Ottawa,select college_id from college where college_location = 'Ottawa' Name the most extra points for right halfback,"SELECT MAX(extra_points) FROM table_14342480_5 WHERE position = ""Right halfback""" Which grade is studying in classroom 103?,SELECT DISTINCT grade FROM list WHERE classroom = 103 What is the name of the head coach of 1974?,"SELECT name FROM table_name_96 WHERE years = ""1974""" How many people attended the game played with the New England Patriots as opponents?,"SELECT attendance FROM table_name_53 WHERE opponent = ""new england patriots""" "Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007?","SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = ""Alan Degroote"" AND gorham_principal = ""Paul Lahue"" AND year = ""2006-2007""" What rank did the time of 7:31.90 receive?,"SELECT COUNT(rank) FROM table_name_62 WHERE time = ""7:31.90""" What's the call sign of The Q?,"SELECT call_sign FROM table_name_43 WHERE branding = ""the q""" "What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?","SELECT score FROM table_name_24 WHERE competition = ""1996 asian cup qualification"" AND date = ""june 29, 1996""" "Which Total is the lowest one that has a Rank smaller than 2, and a Silver smaller than 15?",SELECT MIN(total) FROM table_name_23 WHERE rank < 2 AND silver < 15 Name the package/option for giappone,"SELECT package_option FROM table_15887683_8 WHERE country = ""Giappone""" What place is Fred Funk in?,"SELECT place FROM table_name_30 WHERE player = ""fred funk""" Name the broadcast date for 6.0 viewers,"SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = ""6.0""" How many yards lost by the player with more gained than 51 and average/g of 3.6?,"SELECT COUNT(loss) FROM table_name_97 WHERE avg_g = ""3.6"" AND gain > 51" Find the captain rank that has no captain in Third-rate ship of the line class.,SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' List the service id and details for the events.,"SELECT service_id , event_details FROM EVENTS" Which campus has the most degrees conferred in all times?,SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1 "what's the frequency mhz with city of license being chattanooga, tennessee","SELECT frequency_mhz FROM table_13998897_1 WHERE city_of_license = ""Chattanooga, Tennessee""" What was the result in the Golden Reel Awards?,"SELECT result FROM table_name_38 WHERE event = ""golden reel awards""" Please list the app IDs of all the users in the Securities category.,SELECT T2.app_id FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'Securities' "With 100$, how many Cable Lock can you buy?",SELECT 100 / T2.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Cable Lock' Which club was founded after 1998?,SELECT club FROM table_name_49 WHERE founded > 1998 Find the total hours of all projects.,SELECT SUM(hours) FROM projects What is the name of the train station in londom?,select Name from station where Location = 'London' Find out the send dates of the documents with the grant amount of more than 5000 which were granted by organisation type described research.,SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research' What types of ships were made at the Froemming Brothers ship yard?,"SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = ""froemming brothers""" Which teams have had a player awarded the Purple Cap and another with the Orange Cap in the same season?,"SELECT T5.Team_Name, T1.Orange_Cap, T1.Purple_Cap FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Season_Id = T2.Season_Id INNER JOIN Player_Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Player AS T4 ON T3.Player_Id = T4.Player_Id INNER JOIN Team AS T5 ON T3.Team_Id = T5.Team_Id GROUP BY T5.Team_Name, T1.Orange_Cap, T1.Purple_Cap" "What is the height of the player from Gulfport, MS?","SELECT height FROM table_20785990_2 WHERE home_town = ""Gulfport, MS""" On the Date of 15 June 1992 what is the Score that is listed?,"SELECT score FROM table_name_73 WHERE date = ""15 june 1992""" How many students have each different allergy?,"SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy" What is the Name of the Building at 100 North Tampa Street?,"SELECT name FROM table_name_28 WHERE street_address = ""100 north tampa street""" What is the rate limit when budget plans (£m) is limit agreed?,"SELECT rate_limit__p_ FROM table_25316812_1 WHERE budget_plans__£m_ = ""limit agreed""" Show the average ticket prices for exhibitions for all years before 2009?,SELECT avg ( ticket_price ) FROM exhibition WHERE YEAR < 2009 what is the parent entry id of cola,"SELECT parent_entry_id FROM catalog_contents where catalog_entry_name = ""Cola""" What was the title of the episode with 5.04 million viewers?,"SELECT original_title FROM table_17641206_4 WHERE viewership = ""5.04 million""" Find the total budgets of the Marketing or Finance department.,SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance' "What was the Surface in the match with a Score of 7–5, 6–7, 4–6?","SELECT surface FROM table_name_40 WHERE score = ""7–5, 6–7, 4–6""" "Where was the game site on October 29, 1989?","SELECT game_site FROM table_16028499_2 WHERE date = ""October 29, 1989""" "Find all the female members of club ""Bootup Baltimore"". Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.sex = ""F""" What is the attendance for the game against the Kansas City Chiefs earlier than week 13?,"SELECT AVG(attendance) FROM table_name_32 WHERE opponent = ""kansas city chiefs"" AND week < 13" "With the lost of 3, how many points?","SELECT points_against FROM table_name_9 WHERE lost = ""3""" Which Super Ghas a missed season due to injury?,"SELECT super_g FROM table_name_50 WHERE overall = ""missed season due to injury""" What is the win percentage for the 2012 of olympic games?,"SELECT win__percentage FROM table_name_19 WHERE 2012 = ""olympic games""" What is the Area KM 2 of Rothesay?,"SELECT COUNT(area_km_2) FROM table_171236_2 WHERE official_name = ""Rothesay""" Which Start has a Duration of 6 months 2 days?,"SELECT start FROM table_name_55 WHERE duration = ""6 months 2 days""" "State the table name of country with description of ""Covers mainland Tanzania only"".",SELECT DISTINCT T1.TableName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Covers mainland Tanzania only.' What is the order date of each booking?,SELECT Order_Date FROM BOOKINGS What are the enrollments of all colleges in the state of FL?,SELECT SUM ( enr ) FROM college WHERE state = 'FL' What is the total number of ranks that had vestron as the studio?,"SELECT COUNT(rank) FROM table_name_48 WHERE studio = ""vestron""" "How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?",SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2 What is the score for the away team at Essendon?,"SELECT away_team AS score FROM table_name_19 WHERE away_team = ""essendon""" Can you list the number of amenity ids associated with each distinct dorm id and display both of those results (dorm id and number of amenity ids)?,"SELECT T3.dormid, count ( T4.amenid ) FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid" "If the playoff berth is 17, what is the AFC championship number?",SELECT afc_championships FROM table_1952057_5 WHERE playoff_berths = 17 How many parts have a jumbo case container?,SELECT COUNT(p_partkey) FROM part WHERE p_container = 'JUMBO CASE' Name the total number of teams for top 10 being 5,SELECT COUNT(team_s_) FROM table_1671401_2 WHERE top_10 = 5 Who is the oldest person?,SELECT name FROM Person WHERE age = (SELECT max(age) FROM person) What is the minimum pick of a centre from the Czech Republic?,"SELECT MIN(pick) FROM table_2840500_2 WHERE position = ""Centre"" AND nationality = ""Czech Republic""" What is the customer status code for this customer?,"SELECT customer_status_code FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard""" List the all the institutes from the state with the most number of American Indian in 2007.,SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year = 2007 AND T2.race = 'Ai' GROUP BY T1.chronname ORDER BY COUNT(T1.chronname) DESC LIMIT 1 Please indicate total order quantity of product Geitost and calculate the percentage of such product among all the order quantity.,"SELECT SUM(IF(T1.ProductName = 'Geitost', 1, 0)) AS sum , CAST(SUM(IF(T1.ProductName = 'Geitost', 1, 0)) AS REAL) / COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID" How many drivers are there?,SELECT count(*) FROM driver How large a crowd did the Fitzroy Away team draw?,"SELECT SUM(crowd) FROM table_name_15 WHERE away_team = ""fitzroy""" How long did Austin Cintron take to return the movie 'Destiny Saturday'?,SELECT T2.rental_date - T2.return_date FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'AUSTIN' AND T4.title = 'DESTINY SATURDAY' What rank was Peter Schmeichel?,"SELECT SUM(rank) FROM table_name_89 WHERE name = ""peter schmeichel""" "What is Votes (%), when First Broadcast is ""13 March 1998""?","SELECT votes___percentage_ FROM table_name_41 WHERE first_broadcast = ""13 march 1998""" show the count of all adults and kids,"SELECT count ( adults ) , count ( kids ) FROM Reservations" How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?,"SELECT COUNT(upstream) FROM table_17304621_14 WHERE downstream = ""20 Mbit/s"" AND bandwidth = ""40 GB""" With Olympic Bronze Medalist as the total what are the score points?,"SELECT score_points FROM table_name_65 WHERE total = ""olympic bronze medalist""" How many distinct students have been in detention?,SELECT count(DISTINCT student_id) FROM Students_in_Detention How many different models does the HTC brand have?,SELECT COUNT(device_model) FROM phone_brand_device_model2 WHERE phone_brand = 'HTC' "What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath?","SELECT score FROM table_name_39 WHERE winner = ""sanyo wild knights"" AND runner_up = ""suntory sungoliath""" What is the last episode which has segment d as blown glass?,"SELECT MAX(episode) FROM table_15187735_4 WHERE segment_d = ""Blown Glass""" Which word that has 274499 repetitions in the Catalan language?,SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 274499 AND T2.lid = 1 What is the general and specific description of incident 275?,"SELECT primary_description, secondary_description FROM IUCR WHERE iucr_no = 275" Count the number of flights into ATO.,"SELECT count(*) FROM FLIGHTS WHERE DestAirport = ""ATO""" "Of the projects whose resources are provided by the vendor Lakeshore Learning Materials, the school of which project has the highest cost of labor fulfillment? Please give its school ID.",SELECT T2.schoolid FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name = 'Lakeshore Learning Materials' ORDER BY T2.fulfillment_labor_materials DESC LIMIT 1 "what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun?","SELECT country FROM table_name_55 WHERE notes = ""sa/b"" AND rank > 1 AND athlete = ""zhang xiuyun""" WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?,"SELECT high_points FROM table_name_89 WHERE opponent = ""los angeles""" Which ICB Sector belongs to vallourec?,"SELECT icb_sector FROM table_name_81 WHERE company = ""vallourec""" What type of work does Kamila Porczyk do?,"SELECT T2.work_type FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID where T1.name = ""Kamila Porczyk""" what is the total number of round where opponents is haugar,"SELECT COUNT(round) FROM table_1061075_1 WHERE opponents = ""Haugar""" "Who was the opponent when the attendance was 80,079?","SELECT opponent FROM table_name_99 WHERE attendance = ""80,079""" "Which party belongs to district 41, and is delegated by Jill P. Carter?","SELECT party FROM table_name_61 WHERE district = 41 AND delegate = ""jill p. carter""" "How many people with sex ""M"" and sex ""F"" are in that club?","SELECT count ( * ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" "On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?","SELECT outcome FROM table_name_77 WHERE score = ""7–5, 6–3"" AND date = ""27 july 2003""" Show all student ids and the number of hours played.,"SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid" What is the enrollment for the hawks? ,"SELECT MAX(enrollment) FROM table_2562113_1 WHERE nickname = ""Hawks""" What is the length for a diameter totaling 450 mm?,"SELECT length FROM table_17918238_1 WHERE maximum_diameter = ""450 mm""" A list of the top 5 countries by number of invoices. List country name and number of invoices.,"SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;" Who were the champions in 1988?,SELECT champion FROM table_name_26 WHERE year = 1988 who is the driver when grid is 11?,SELECT driver FROM table_name_81 WHERE grid = 11 How many customers in the Northeast use Microsoft email?,SELECT COUNT(T1.email) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Northeast' AND T1.email LIKE '%@outlook.com' What are the names of the high schoolers and how many friends does each have?,"SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id" Who had the highest number of rebounds on February 14?,"SELECT high_rebounds FROM table_name_42 WHERE date = ""february 14""" Find the total savings balance of all accounts except the account with name ‘Brown’.,SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != 'Brown' what is the venue when the competition is friendly on 26 may 1999?,"SELECT venue FROM table_name_37 WHERE competition = ""friendly"" AND date = ""26 may 1999""" Which player has a PBA team of Red Bull Thunder?,"SELECT player FROM table_name_5 WHERE pba_team = ""red bull thunder""" What is the average rating stars and title for the oldest movie?,"SELECT avg ( T1.stars ) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = ( SELECT min ( YEAR ) FROM Movie ) " What is the average shipment weight carried by the oldest Mack?,SELECT AVG(T2.weight) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Mack' List the names of perpetrators in descending order of the year.,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Year DESC how many flights have pilot Thompson flown?,SELECT count ( * ) FROM flight WHERE pilot = 'Thompson' List out all the coach ID who have served more than 2 different teams.,SELECT coachID FROM coaches GROUP BY coachID HAVING COUNT(DISTINCT tmID) > 2 Compute the average active time span of contact channels.,SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels On what date were the opponents the Bayhawks at a home game?,"SELECT date FROM table_name_17 WHERE home_away = ""home"" AND opponent = ""bayhawks""" Give me the name and menu price of dishes that were free.,"SELECT T2.name, T1.price FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.lowest_price = 0" "Of the deserts on the America Continent, which one covers the greatest area?",SELECT T5.Name FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN geo_desert AS T4 ON T4.Country = T1.Code INNER JOIN desert AS T5 ON T5.Name = T4.Desert WHERE T3.Name = 'America' ORDER BY T5.Area DESC LIMIT 1 What is the address ID of that rental?,select address_id from student_addresses order by monthly_rental desc limit 1 How many festivals were there in 2008?,SELECT count ( * ) FROM festival_detail group by year having year = 2008 Which player went to college at Laval?,"SELECT player FROM table_10812938_3 WHERE college = ""Laval""" How many episodes have the production code ip04004?,"SELECT COUNT(title) FROM table_29273243_1 WHERE production_code = ""IP04004""" Could you please tell me the names of the people that have not been on the affirmative side of all debates?,SELECT Name FROM people WHERE People_id NOT IN ( SELECT Affirmative FROM debate_people ) Show the pair of male and female names in all weddings after year 2014,"SELECT T2.name , T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014" What is the name and the position of the CBSA officer in the city of Cabo Rojo?,"SELECT T1.CBSA_name, T1.CBSA_type FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'Cabo Rojo' GROUP BY T1.CBSA_name, T1.CBSA_type" Show the name and location for all tracks.,"SELECT name , LOCATION FROM track" List the movies and genres released in 2016.,"SELECT movie_title, genre FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '2016'" What is the genre of 3D Lemmings?,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '3D Lemmings' How many museums were opened after 2013 or before 2008?,SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008 Show all opening years and the number of churches that opened in that year.,"SELECT open_date , count(*) FROM church GROUP BY open_date" State the order number where Qualitest ordered the highest product quantity.,SELECT T1.OrderNumber FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T2.`Customer Names` = 'Qualitest ' ORDER BY T1.`Order Quantity` DESC LIMIT 1 What are the type codes and descriptions of each budget type?,"SELECT budget_type_code , budget_type_description FROM Ref_budget_codes" What are the SSN and names of scientists working on the project with the most hours?,"SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)" What Lane has a 0.209 React entered with a Rank entry that is larger than 6?,SELECT lane FROM table_name_84 WHERE react > 0.209 AND rank > 6 Name the product that was registered in the sales order 'SO - 0005951'.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.OrderNumber = 'SO - 0005951' THEN T1.`Product Name` ELSE NULL END AS T FROM Products T1 INNER JOIN `Sales Orders` T2 ON T2._ProductID = T1.ProductID ) WHERE T IS NOT NULL with games more than 22 what is the rebound total?,SELECT SUM(rebounds) FROM table_name_12 WHERE games > 22 WHAT WAS THE ATTENDANCE FOR WEEK 15?,SELECT attendance FROM table_name_17 WHERE week = 15 When did the callbacks from rancho bernardo inn air,"SELECT episode_air_date FROM table_11129123_1 WHERE callback_venue = ""Rancho Bernardo Inn""" "Among all the tweets posted on Mondays, how many of them are reshared?",SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Weekday = 'Monday' AND IsReshare = 'TRUE' What was the record when chicago was the visiting team?,"SELECT record FROM table_name_98 WHERE visitor = ""chicago""" What is the highest final-time score across all divisions in the 2021 season? Which team was the team that made up that score?,"SELECT ( SELECT MAX(MAX(FTAG), MAX(FTHG)) FROM matchs WHERE season = 2021 ) AS T1, AwayTeam FROM matchs WHERE season = 2021 AND FTHG = T1 OR FTAG = T1" What is the name and location of the 2 cinemas with above average capacity?,"SELECT name, location from cinema where capacity > ( select avg ( capacity ) from cinema ) " What stadium was used on November 13?,"SELECT stadium FROM table_name_45 WHERE date = ""november 13""" What is the earliest season with more than 14 races and more than 4 podiums?,SELECT MIN(season) FROM table_name_72 WHERE races > 14 AND podiums > 4 Which car consumes fuel the most and has the highest price?,"SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T1.mpg DESC, T2.price DESC LIMIT 1" What is the number of silver when the total is less than 1?,SELECT COUNT(silver) FROM table_name_35 WHERE total < 1 Can you tell me the average Against thaylt has the Date of 23/03/2002?,"SELECT AVG(against) FROM table_name_44 WHERE date = ""23/03/2002""" Which of the mill names contains the french word 'Moulin'?,SELECT name FROM mill WHERE name LIKE '%Moulin%' Which college with a position of rb had a pick larger than 6 in round 28?,"SELECT college FROM table_name_19 WHERE pick > 6 AND position = ""rb"" AND round = 28" List the description of all the colors.,SELECT color_description FROM ref_colors What is the highest Draws for a season later than 1926 with less than 0 wins?,SELECT MAX(draws) FROM table_name_63 WHERE season > 1926 AND wins < 0 What is the minimum inventory quantity of Chainring Bolts?,SELECT SafetyStockLevel FROM Product WHERE Name = 'Chainring Bolts' Thank you! Can you provide me with the paper title of PaperID 204?,SELECT title FROM Papers where paperID = 204 how much prize money (in USD) did bob lutz win,"SELECT MAX(prize_money__usd_) FROM table_29302711_12 WHERE name = ""Bob Lutz""" "Name the outcome with tournament of mexico f12, obregón","SELECT outcome FROM table_name_57 WHERE tournament = ""mexico f12, obregón""" What is Melbourne's home venue?,"SELECT venue FROM table_name_32 WHERE home_team = ""melbourne""" "What was the record when the attendance was 22,713?","SELECT record FROM table_name_9 WHERE attendance = ""22,713""" Provide the number of games sold in North America on the PS4 platform.,SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'North America' AND T4.platform_name = 'PS4' What was the date when South Melbourne was the home team?,"SELECT date FROM table_name_14 WHERE home_team = ""south melbourne""" How old is each student and how many students are each age?,"SELECT age , count(*) FROM Student GROUP BY age" What week did they have a bye?,"SELECT week FROM table_name_52 WHERE date = ""bye""" How many orders purchased by Aaron Bergman have been delivered with the slowest shipping speed?,SELECT COUNT(*) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Aaron Bergman' AND T2.`Ship Mode` = 'Standard Class' "What are the names of all people, ordered by their date of birth?",SELECT name FROM people ORDER BY date_of_birth What lane did the swimmer with a time of 52.84 have?,SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84 What was the tail number of the aircraft that had 5/30 fatalities?,"SELECT tail_number FROM table_name_86 WHERE fatalities = ""5/30""" "What is Median Family Income, when Median Household Income is ""$50,717""?","SELECT median_family_income FROM table_name_76 WHERE median_household_income = ""$50,717""" What Label released a CD single in 1993?,"SELECT label FROM table_name_5 WHERE format = ""cd single"" AND date = ""1993""" what are those types?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code What was the date of the game when Atlanta was the home team?,"SELECT date FROM table_name_81 WHERE home = ""atlanta""" "What is Date, when Result is Loss, and when Method is Submission (Armbar)?","SELECT date FROM table_name_8 WHERE result = ""loss"" AND method = ""submission (armbar)""" "What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?","SELECT SUM(total_as) FROM table_name_81 WHERE team = ""bucheon sk"" AND opponent = ""chunnam dragons"" AND venue = ""bucheon""" What are the invoice dates for customers with the first name Astrid and the last name Gruber?,"SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = ""Astrid"" AND LastName = ""Gruber""" Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.,SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin') "What was the average attendance on October 30, 1938?","SELECT AVG(attendance) FROM table_name_33 WHERE date = ""october 30, 1938""" "What is the highest Rank, when Publication is Dagsavisen, and when Year is less than 2005?","SELECT MAX(rank) FROM table_name_81 WHERE publication = ""dagsavisen"" AND year < 2005" What is the 2007 rating of the channel with a position of 6?,SELECT 2007 FROM table_name_28 WHERE position = 6 What are the names of the patients who had more than one appointment?,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) > 1 Which cities have 2 to 4 parks?,SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; What is the Time of the Rowers in Rank 1?,SELECT time FROM table_name_7 WHERE rank = 1 How many regions do we have?,SELECT count(*) FROM region Which city has most number of arriving flights?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 What was the score when the record was 18–14–4 with a toivonen decision?,"SELECT score FROM table_name_11 WHERE decision = ""toivonen"" AND record = ""18–14–4""" List the snatch score and clean jerk score of body builders in ascending order of snatch score.,"SELECT Snatch , Clean_Jerk FROM body_builder ORDER BY Snatch ASC" How many Italian patients have the care plan code of 304510005?,SELECT COUNT(DISTINCT T2.patient) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.ethnicity = 'italian' AND T1.CODE = '304510005' Who is the manager of the store with the largest collection of films?,"SELECT T.first_name, T.last_name FROM ( SELECT T3.first_name, T3.last_name, COUNT(T1.film_id) AS num FROM inventory AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN staff AS T3 ON T2.manager_staff_id = T3.staff_id GROUP BY T3.first_name, T3.last_name ) AS T ORDER BY T.num DESC LIMIT 1" Who was the home team in the match against Luton Town?,"SELECT home_team FROM table_name_21 WHERE away_team = ""luton town""" List all the products that were shipped to Starenweg 5.,SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.ShipAddress = 'Starenweg 5' GROUP BY T3.ProductName What is the percentage difference between the attendence of disabled and non-disable students? Do the disable students show better attendance than non-disable students?,"SELECT CAST((SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0))) AS REAL) * 100 / COUNT(T1.name), IIF(SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0)) > 0, 'YES', 'NO') AS isHigh FROM longest_absense_from_school AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name" WHAT YEAR WAS IT WHEN THE SCORE WAS 3 & 2?,"SELECT year FROM table_1507806_1 WHERE winning_score = ""3 & 2""" What was the depravitiy of earnings where international sales was 2470?,SELECT income_poverty_f FROM table_13618358_1 WHERE exports__usd_mn__2011 = 2470 "What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?","SELECT language FROM table_name_23 WHERE hdtv = ""no"" AND package_option = ""sky famiglia"" AND television_service = ""national geographic channel""" "What is the record for the game that shows the Rose Garden 20,126 as attendance?","SELECT record FROM table_name_96 WHERE attendance = ""rose garden 20,126""" What is the bad alias of the residential area with the highest average house value?,SELECT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.avg_house_value = ( SELECT MAX(avg_house_value) FROM zip_data ) LIMIT 1 What are each owner's first name and their dogs's name?,"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id" How many laps did Yannick Dalmas do?,"SELECT laps FROM table_name_59 WHERE driver = ""yannick dalmas""" Show the most common type code across products.,SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1 Name the airport in Madang city?,SELECT name from airports where city = 'Madang' What is the full name of clients who have issue about balance transfer?,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Issue = 'Balance transfer'" Name the poles for 2011,SELECT poles FROM table_15327489_1 WHERE year = 2011 Find the first and last names of people who payed more than the rooms' base prices.,"SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0" Show me the cities | Do you mean you want the cities where there are branches there? | yes,SELECT distinct city FROM branch What is the toatl number of caps where the name is Hans Blume?,"SELECT COUNT(number_of_caps) FROM table_11585313_1 WHERE name = ""Hans Blume""" "If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals?",SELECT COUNT(total) FROM table_name_43 WHERE silver > 0 AND gold < 5 AND bronze < 0 Compute the number of products with a price larger than or equal to $180.,SELECT count(*) FROM products WHERE price >= 180 How many products that take more than 2 days to make are out of stock?,SELECT COUNT(T2.ProductID) FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.OnOrderQty IS NULL OR T1.OnOrderQty = 0 What are the main industries of the companies without gas stations and what are the companies?,"SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)" show all the locations where no cinema has capacity over 800.,SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800 Who was the home team on 8 January 1946 with a tie no of 4?,"SELECT home_team FROM table_name_71 WHERE date = ""8 january 1946"" AND tie_no = ""4""" When was the school with the largest enrollment founded?,SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 Which name had 6 goals?,SELECT name FROM table_name_49 WHERE goals = 6 Who was the opponent in round 2 of the UFC 49 event?,"SELECT opponent FROM table_name_1 WHERE round = ""2"" AND event = ""ufc 49""" What's the year of the first election of the district whose incumbent is Edwin E. Willis?,"SELECT first_elected FROM table_1341843_19 WHERE incumbent = ""Edwin E. Willis""" What are the most points listed?,SELECT MAX(points) FROM table_25730123_2 "Among all the orders made by Aimee Bixby, what was the longest shipment time?","SELECT MAX(strftime('%J', `Ship Date`) - strftime('%J', `Order Date`)) AS longestTimeDays FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Aimee Bixby'" "Among the unemployed students, how many of them have no payment due?",SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg' What is the birth place of the cast or crew member who won the Best Voice-Over Performance in Online Film & Television Association in 2009?,SELECT T1.birth_place FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award = 'Best Voice-Over Performance' AND T2.organization = 'Online Film & Television Association' AND T2.year = 2009; How many hectares of land area is Landsbro?,"SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = ""Landsbro""" With a date of Aldershot and Aldershot as the away team what was the score of the game?,"SELECT score FROM table_name_27 WHERE away_team = ""aldershot"" AND date = ""aldershot""" Which of the root beer brand have the lowest purchase?,SELECT T2.BrandName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID GROUP BY T2.BrandID ORDER BY COUNT(T1.BrandID) LIMIT 1 Which movie is the character Robin Hood in?,SELECT movie_title FROM characters WHERE hero = 'Robin Hood' Show the apartment numbers of apartments with unit status availability of both 0 and 1.,SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1 "What is the smallest number of ""goals for"" out of the clubs where there were 18 wins and fewer than 38 ""goals against""?",SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38 The Crvena Zvezda club has what aggregate?,"SELECT aggregate FROM table_name_58 WHERE club = ""crvena zvezda""" Who played the home team at Windy Hill?,"SELECT home_team FROM table_name_3 WHERE venue = ""windy hill""" what is the account type? | Would you like a list of all the account types? | yes,SELECT acc_type from customer What are the name and description for location code x?,"SELECT location_name , location_description FROM Ref_locations WHERE location_code = ""x""" Which James Bond 007: Agent Under Fire from Electronic Arts is compatible with 60 gb pal/80 gb NTSC PS3 (CECHC/CECHE)?,"SELECT compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ FROM table_10875694_11 WHERE publisher = ""Electronic Arts"" AND title = ""James Bond 007: Agent Under Fire""" what are the name of players who get more than the average points.,SELECT name FROM player WHERE points > (SELECT avg(points) FROM player) Find id of the candidate who most recently accessed the course?,SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 How many female students are enlisted in the Navy organization?,SELECT COUNT(name) FROM enlist WHERE organ = 'navy' AND name NOT IN ( SELECT name FROM male ) What is the date of Competition of 2008 africa cup of nations?,"SELECT date FROM table_name_37 WHERE competition = ""2008 africa cup of nations""" I want to know the date for western oval venue,"SELECT date FROM table_name_31 WHERE venue = ""western oval""" how many park there,SELECT count ( * ) FROM park What is the location of the festival with the largest number of audience?,SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1 "For the player who scored 7 shorthanded goals in 1989, what's his dominant hand?",SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1989 GROUP BY T2.playerID HAVING SUM(T2.SHG) = 7 How many products are there?,SELECT count ( * ) FROM products Which airport's ICAO is rpvi?,"SELECT airport FROM table_name_61 WHERE icao = ""rpvi""" What are all the course names of the courses which ever have students enrolled in?,SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id "Which average Against has a Difference of 10, and a Lost smaller than 2?","SELECT AVG(against) FROM table_name_24 WHERE difference = ""10"" AND lost < 2" "What are the hosts of competitions whose theme is not ""Aliens""?",SELECT Hosts FROM farm_competition WHERE Theme != 'Aliens' how many membership cards? | There are 2 different membership cards. | what is age of Ashby Lazale,"SELECT age from member where name = 'Ashby, Lazale'" "What are the building full names that contain the word ""court""?","SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE ""%court%""" What is the chassis when the rank is 3rd?,"SELECT chassis FROM table_name_25 WHERE rank = ""3rd""" "Which Score has a Money ( £ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1","SELECT score FROM table_name_38 WHERE money___£__ = ""90,400"" AND country = ""south africa"" AND player = ""thomas aiken""" Give me the first names and last names of all the members of the tennis club,"SELECT t3.Fname, t3.Lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" "Which Lane has a Country of united states, and a Time smaller than 22.01, and a Reaction Time smaller than 0.193?","SELECT MIN(lane) FROM table_name_95 WHERE country = ""united states"" AND time < 22.01 AND reaction_time < 0.193" List the forenames of all distinct drivers in alphabetical order?,SELECT DISTINCT forename FROM drivers ORDER BY forename ASC "What is the lowest Draft, when Nationality is ""Canada"", when Player is ""Shane Doan Category:Articles with hCards"", and when Round is less than 1?","SELECT MIN(draft) FROM table_name_7 WHERE nationality = ""canada"" AND player = ""shane doan category:articles with hcards"" AND round < 1" What is the average speed of roller coasters?,SELECT AVG(Speed) FROM roller_coaster The To par of +14 was won in what year(s)?,"SELECT year_s__won FROM table_name_17 WHERE to_par = ""+14""" Which country has the most of TV Channels? List the country and number of TV Channels it has.,"SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;" What was the rating of the episode with an overall ranking of 190?,"SELECT rating FROM table_16993379_1 WHERE rank__overall_ = ""190""" What is the maximum length in meters for the bridges and what are the architects' names?,"SELECT max(T1.length_meters) , T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id = T2.id" What is the time of the peachtree road race in kenya?,"SELECT time FROM table_name_57 WHERE nation = ""kenya"" AND race = ""peachtree road race""" What is the percentage of the total products ordered were not rejected by Drill size?,SELECT CAST(SUM(CASE WHEN T2.VacationHours > 20 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.CurrentFlag = 1 AND T2.SickLeaveHours > 10 "What is Tournament, when Runner(s)-Up is Garth Mulroy?","SELECT tournament FROM table_name_70 WHERE runner_s__up = ""garth mulroy""" can you tell me what the lowest acc percent score is?,SELECT acc_percent FROM basketball_match order by acc_percent limit 1 Please show the industries of companies in descending order of the number of companies.,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC What attendance is dated february 27?,"SELECT AVG(attendance) FROM table_name_66 WHERE date = ""february 27""" What is the listing for 2009 when 1989 is less than 0?,SELECT SUM(2009) FROM table_name_5 WHERE 1989 < 0 What is the Tries against for the team that has 207 points for?,"SELECT tries_against FROM table_name_4 WHERE points_for = ""207""" List the full name and social security number of the account representative with average performance.,"SELECT T1.firstname, T1.lastname, T1.ssn FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Average'" what's the party with opponent being mike oxley (r) unopposed,"SELECT party FROM table_1341522_38 WHERE opponent = ""Mike Oxley (R) unopposed""" what is the full name and id of the college with the largest number of baseball players?,"SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;" "Give the number of ""4"" stars Yelp businesses in ""Mesa"" city.",SELECT COUNT(business_id) FROM Business WHERE stars = 4 AND city = 'Mesa' "Among the flights of the air carrier described as American Airlines, what is the percentage of the flights with earlier departure?",SELECT CAST(SUM(CASE WHEN T2.DEP_DELAY < 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%American Airlines%' What is the name and open year for the branch with most number of memberships registered in 2016?,"SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1" What is the name of the customer who has made the minimum amount of payment in one claim?,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers) How many people whose age is greater 30 and job is engineer?,SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer' "What venue was the match against the guest team, FK ibar, played at?","SELECT venue FROM table_name_65 WHERE guest = ""fk ibar""" What was the final score of Game #4?,SELECT score FROM table_name_14 WHERE game = 4 what is the name of all males?,SELECT name FROM Person WHERE gender = 'male' What is the area when the Iga name is Ahoada East?,"SELECT MAX(area__km_2__) FROM table_28891101_3 WHERE lga_name = ""Ahoada East""" find the student id and personal name of the student whose course id is 2,"SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id where T1.course_id = '2'" What was the date for no. 7?,SELECT date FROM table_247955_2 WHERE no = 7 What are their details?,SELECT Tourist_Details FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ) Find the schools that were either founded after 1850 or public.,SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' How many candidates were first elected in 1972?,SELECT COUNT(candidates) FROM table_1341640_11 WHERE first_elected = 1972 Which team has the # 64 pick?,"SELECT college_junior_club_team FROM table_name_13 WHERE pick__number = ""64""" When playing at the Kardinia Park; what was the home teams score?,"SELECT home_team AS score FROM table_name_39 WHERE venue = ""kardinia park""" What is the sum of hours for projects that scientists with the name Michael Rogers or Carol Smith are assigned to?,SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith' What were the events in the 1976 Innsbruck Games?,"SELECT event FROM table_name_60 WHERE games = ""1976 innsbruck""" how many millions of North American people saw the episode whose director was Ed Sherin? ,"SELECT us_viewers__millions_ FROM table_2791668_1 WHERE directed_by = ""Ed Sherin""" great - do you know what its status is?,SELECT status FROM roller_coaster order BY speed desc limit 1 "What is the total number of Years when the LLWS is 4th place, and when the City is Westport?","SELECT COUNT(year) FROM table_name_19 WHERE llws = ""4th place"" AND city = ""westport""" On what date was Richmond hosted as the away team?,"SELECT date FROM table_name_50 WHERE away_team = ""richmond""" What rowers have a 6:29.56 time?,"SELECT rowers FROM table_name_64 WHERE time = ""6:29.56""" Which Position has a Pick # smaller than 26 and a Player of jack campbell?,"SELECT position FROM table_name_61 WHERE pick__number < 26 AND player = ""jack campbell""" Who had highest assists at the game against Houston?,"SELECT high_assists FROM table_27700530_11 WHERE team = ""Houston""" What percentage of wins has 48 losses?,"SELECT win__percentage FROM table_name_4 WHERE losses = ""48""" All high points were record by corey maggette (25).,"SELECT record FROM table_17080868_8 WHERE high_points = ""Corey Maggette (25)""" Which college has any student who is a goalie and succeeded in the tryout.,SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie' What about the invoice numbers which are created after 2007-12-25?,"SELECT invoice_number FROM invoices WHERE invoice_date > ""2007-12-25""" list names of all departments ordered by their names.,SELECT dept_name FROM department ORDER BY dept_name When 3rd is the position what is the lowest amount of points?,"SELECT MIN(points) FROM table_25352318_1 WHERE position = ""3rd""" Who was the winner of the tre valli varesine race?,"SELECT winner FROM table_name_60 WHERE race_name = ""tre valli varesine""" What are the names of all the video games and their types in alphabetical order?,"SELECT gname , gtype FROM Video_games ORDER BY gname" "What is the average Attendance, when Venue is ""A"", and when Date is ""5 January 2005""?","SELECT AVG(attendance) FROM table_name_65 WHERE venue = ""a"" AND date = ""5 january 2005""" "Can you sort the table by phone id, but still retain all information within the table?","SELECT t2.market_id, t2.district,t1.phone_id,t3.name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID order by t1.phone_id" What are the names of documents that do not have any sections?,SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections) What are the comments when vendor and type is enterasys switches?,"SELECT comments FROM table_1206114_2 WHERE vendor_and_type = ""Enterasys Switches""" What are the average and minimum price (in Euro) of all products?,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents" Find the name of the club that has the most female students.,"SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = ""F"" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1" What was the attendance at the Kardinia Park game?,"SELECT crowd FROM table_name_25 WHERE venue = ""kardinia park""" Which Political Party has a Name of ibrahim bej biçakçiu?,"SELECT political_party FROM table_name_72 WHERE name = ""ibrahim bej biçakçiu""" What is the transfer window in esp with promoted type and more than 2010 ends?,"SELECT transfer_window FROM table_name_85 WHERE country = ""esp"" AND type = ""promoted"" AND ends > 2010" "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.","SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1" What was the method for opponent of Ivan Serati?,"SELECT method FROM table_name_94 WHERE opponent = ""ivan serati""" Who is team 1 when team 2 is koper?,"SELECT team_1 FROM table_19294812_2 WHERE team_2 = ""Koper""" How many restaurants can we find at number 871 on its street?,SELECT COUNT(id_restaurant) FROM location WHERE street_num = 871 Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?,"SELECT partner FROM table_name_74 WHERE outcome = ""runner-up"" AND surface = ""clay"" AND opponents = ""marco chiudinelli michael lammer""" Please provide the title of the list with the most comments on the list.,SELECT list_title FROM lists GROUP BY list_title ORDER BY COUNT(list_comments) DESC LIMIT 1 How many proteins are associated with an institution in a building with at least 20 floors?,SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id JOIN building AS T3 ON T3.building_id = T1.building_id WHERE T3.floors >= 20 What was the result of week 2?,SELECT result FROM table_16028499_2 WHERE week = 2 How many of the businesses are active?,SELECT COUNT(business_id) FROM Business WHERE active LIKE 'True' Name the california where alaska tennessee,"SELECT california FROM table_17425749_1 WHERE alaska = ""Tennessee""" Please list the IDs of the universities with a student staff ratio of over 15 in 2011.,SELECT university_id FROM university_year WHERE year = 2011 AND student_staff_ratio > 15 What's the format of the audio book titled The Mind Robber?,"SELECT format FROM table_20174050_1 WHERE title = ""The Mind Robber""" How many totals does cork have whose rank is larger than 2?,"SELECT SUM(total) FROM table_name_27 WHERE county = ""cork"" AND rank > 2" What is the iHeartRadio of the Bronson and Christine Show?,"SELECT iheartradio FROM table_name_74 WHERE show = ""bronson and christine""" What is the to par for the player with fewer than 148 total points?,SELECT SUM(to_par) FROM table_name_53 WHERE total < 148 What Project has the Shortest time?,SELECT name FROM projects ORDER BY hours LIMIT 1 Show the names of products and the number of events they are in.,"SELECT T1.Product_Name , COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name" Show the id and builder of the railway that are associated with the most trains.,"SELECT T2.Railway_ID , T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1" What is the number of titles written by Charleen Easton?,"SELECT COUNT(title) FROM table_2623498_5 WHERE written_by = ""Charleen Easton""" "Among the active businesses located at Chandler, AZ, list the category and atrributes of business with a medium review count.","SELECT T3.category_name, T5.attribute_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id INNER JOIN Business_Attributes AS T4 ON T1.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.active LIKE 'TRUE' AND T1.state LIKE 'AZ' AND T1.city LIKE 'Chandler' AND T1.review_count LIKE 'Medium'" What is the average occupation of users whose ratings are not more than 2 ?,SELECT AVG(T2.occupation) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating < 2 Who held the pole position in SPA-Francorchamps?,"SELECT pole_position FROM table_name_41 WHERE location = ""spa-francorchamps""" "Return the dates of ceremony corresponding to music festivals that had the category ""Best Song"" and result ""Awarded"".","SELECT Date_of_ceremony FROM music_festival WHERE Category = ""Best Song"" AND RESULT = ""Awarded""" What are the id and name of the mountains that have at least 2 photos?,"SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING count(*) >= 2" Provide the names of the products with a profit greater than 98% of the average profit of all products in the East region.,SELECT DISTINCT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'East' AND T1.Profit > ( SELECT AVG(Profit) * 0.98 FROM east_superstore ) How many total losses have teams that played more than 30 games?,SELECT COUNT(lost) FROM table_name_34 WHERE played > 30 What is the developer when the 1.2 is 341s0297 thru 300?,"SELECT kinka_developer FROM table_name_70 WHERE kinka_12 = ""341s0297 thru 300""" "Which closed/not running Yelp business in ""Sun City"" has got the most reviews? Give the business id.",SELECT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Sun City' AND T1.active LIKE 'FALSE' GROUP BY T1.business_id ORDER BY COUNT(T2.review_length) DESC LIMIT 1 Name the object class of the image with lowest bounding box.,SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID ORDER BY T1.H LIMIT 1 Return the name and gender of the staff who was assigned in 2016.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%""" What are the titles of the top 3 episodes that received no less than 30 votes in its 10-star rating?,SELECT T2.title FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.votes >= 30 AND T1.stars = 10 ORDER BY T1.votes DESC LIMIT 3 "What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?","SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2" "Which Wikipedia page number does the Catalan language's name, Acampada, appear on?",SELECT page FROM pages WHERE title = 'Acampada' When was the movie Cops released?,SELECT movie_release_year FROM movies WHERE movie_title = 'Cops' What's the rank of the Province-Level Municipality?,"SELECT rank FROM table_name_14 WHERE definition = ""province-level municipality""" "Among all universities, how many female students were there in 2011?",SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year = 2011 what is the part number that has a turbo of low power?,"SELECT part_number_s_ FROM table_name_85 WHERE turbo = ""low power""" "Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger than 30?","SELECT AVG(wins) FROM table_name_91 WHERE goal_difference > 12 AND club = ""granada cf"" AND played > 30" What is the storm name and max speed which affected the greatest number of regions?,"SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1" "Which competition had a 4-1 result, and a score of 4-1?","SELECT competition FROM table_name_19 WHERE result = ""4-1"" AND score = ""4-1""" Which 2008 has an Airport of julius nyerere international airport?,"SELECT AVG(2008) FROM table_name_74 WHERE airport = ""julius nyerere international airport""" "Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db?","SELECT player FROM table_name_23 WHERE round < 9 AND overall > 143 AND position = ""db""" Find the three most expensive procedures.,SELECT name FROM procedures ORDER BY cost LIMIT 3 What is the result of the home game on August 14?,"SELECT result FROM table_name_25 WHERE home_away = ""home"" AND date = ""august 14""" how many records were made on the game that ended with score w 121–119 (ot),"SELECT COUNT(record) FROM table_17190012_7 WHERE score = ""W 121–119 (OT)""" what is the weight of John Danks,"select weight from people where name = ""John Danks""" Who had a date of 19-02-2003?,"SELECT player FROM table_name_23 WHERE date = ""19-02-2003""" What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5?,"SELECT SUM(attendance) FROM table_name_51 WHERE opponent = ""dallas cowboys"" AND week > 5" "What is the type of Leader for the Royal House of Baasha, who is named Elah.","SELECT type FROM table_name_96 WHERE royal_house = ""baasha"" AND name = ""elah""" "Among the movie lists created after 2010/1/1, how many of them have over 200 followers?",SELECT COUNT(*) FROM lists WHERE list_followers > 200 AND list_update_timestamp_utc > '2010-01-01' Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= ""2009-01-01"" AND T2.date_order_placed <= ""2010-01-01""" What score did John Mahaffey have?,"SELECT score FROM table_name_52 WHERE player = ""john mahaffey""" "What division was the regular season 5th, Northeast?","SELECT division FROM table_name_97 WHERE regular_season = ""5th, northeast""" "How many dishes are there in total in the menus with the name ""Waldorf Astoria""?",SELECT SUM(CASE WHEN T3.name = 'Waldorf Astoria' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id List the air carrier's description with arrival time lower than the 40% of the average arrival time of flights that flew to Phoenix.,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.DEST = 'PHX' AND T2.ARR_TIME < ( SELECT AVG(ARR_TIME) * 0.4 FROM Airlines ) GROUP BY T1.Description "What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?","SELECT cName FROM College WHERE enr < 13000 AND state = ""AZ"" UNION SELECT cName FROM College WHERE enr > 15000 AND state = ""LA""" What language is telemarket for you with a content of televendita?,"SELECT language FROM table_name_59 WHERE content = ""televendita"" AND television_service = ""telemarket for you""" Which of the participating clubs had 73 tries for?,"SELECT club FROM table_name_73 WHERE tries_for = ""73""" What are the ids of instructors who didnt' teach?,SELECT id FROM instructor EXCEPT SELECT id FROM teaches What is the score if the Tie no is 32?,"SELECT score FROM table_name_99 WHERE tie_no = ""32""" What channel has a description of the public broadcaster?,"SELECT channel FROM table_name_82 WHERE description = ""public broadcaster""" Tell me the college for jason holland,"SELECT college_junior_club_team FROM table_name_2 WHERE player = ""jason holland""" What is the name of the movie produced after 2000 and directed by James Cameron?,SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 When was roshan mahanama born?,"SELECT date_of_birth FROM table_name_71 WHERE player = ""roshan mahanama""" What is the height of Jack Campbell?,"SELECT HEIGHT FROM PEOPLE WHERE NAME = ""Jack Campbell""" Count the number of distinct instructors who have taught a course.,SELECT COUNT (DISTINCT id) FROM teaches At what location was the March 17 race held?,"SELECT location FROM table_29285076_2 WHERE date = ""March 17""" What was the retired time for someone who was on grid 18?,"SELECT time_retired FROM table_name_76 WHERE grid = ""18""" "What are the names of entrepreneurs whose investor is not ""Rachel Elnaugh""?","SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != ""Rachel Elnaugh""" What is the average rank for winners in all matches?,SELECT avg(winner_rank) FROM matches How many complaints from female clients born in the year 2000 were not sent through the web?,SELECT COUNT(T2.`Submitted via`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Female' AND T1.year = 2000 AND T2.`Submitted via` != 'Web' List down all of the winning teams' IDs that played in St George's Park.,SELECT T2.Match_Winner FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Venue_Name LIKE 'St George%' What is the Branding of the Iloilo City Frequency with a Power of 10 Kw?,"SELECT branding FROM table_name_38 WHERE power = ""10 kw"" AND location = ""iloilo city""" And in what country is that?,SELECT country FROM airports ORDER BY elevation LIMIT 1 What was Olga Govortsova's goal when she played on a clay surface on 26 May 2012?,"SELECT score FROM table_name_84 WHERE surface = ""clay"" AND date = ""26 may 2012""" Who's the character when Margot Boyd was acting?,"SELECT character FROM table_name_34 WHERE actor = ""margot boyd""" "What is the title of the episode with the keyword ""laundering money""?",SELECT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword = 'laundering money' "What is Sum of Score, when Player is Vijay Singh?","SELECT SUM(score) FROM table_name_18 WHERE player = ""vijay singh""" find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.,SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010) "What is the lowest Goal Difference, when Position is ""7"", and when Played is greater than 30?",SELECT MIN(goal_difference) FROM table_name_1 WHERE position = 7 AND played > 30 Which against has the lowest when byes are larger than 0?,SELECT MIN(against) FROM table_name_99 WHERE byes > 0 What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.,"SELECT Nationality , COUNT(*) FROM pilot GROUP BY Nationality" What country is Jetblue Airways affiliated with?,"SELECT Country FROM AIRLINES WHERE Airline = ""JetBlue Airways""" Find average GDP of this table?,SELECT avg ( GDP ) from city "What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13?","SELECT height__m_ft_ FROM table_name_47 WHERE city = ""bucharest"" AND built = 2009 AND rank = 13" How many students took the hardest course?,SELECT COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.diff = 5 What about jazz?,"SELECT COUNT ( * ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Jazz""" Name all goalies with 10 or more empty net goals. Name the players and season where he played.,"SELECT T1.firstName, T1.lastName , T2.year FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.ENG >= 10" What date had the Houston Texans as visitors?,"SELECT date FROM table_name_75 WHERE visiting_team = ""houston texans""" What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?,"SELECT intercontinental_cup_1999 FROM table_name_48 WHERE copa_libertadores_1999 = ""did not qualify"" AND copa_mercosur_1999 = ""quarterfinals""" "What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?","SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = ""valverde"" AND area > 823" what amount of try bonus where the game was won by 11?,"SELECT COUNT(try_bonus) FROM table_13564637_3 WHERE won = ""11""" Which cities have 2 to 4 parks?,SELECT city FROM park GROUP BY city HAVING count ( * ) BETWEEN 2 AND 4 Find the country of all appelations who have at most three wines.,SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 What nation has a time of 51.35 in the final heat?,"SELECT nation FROM table_name_89 WHERE time = ""51.35"" AND heat_semifinal_final = ""final""" what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?,"SELECT college_junior_club_team__league_ FROM table_name_52 WHERE position = ""(c)"" AND round > 2" What year was the most recent US Open championship?,"SELECT MAX(year) FROM table_1514559_1 WHERE championship = ""US Open""" What is every class with a position of guard and Tal Brody as the player?,"SELECT class FROM table_22824297_1 WHERE position = ""Guard"" AND player = ""Tal Brody""" Show the manager name for gas stations belonging to the ExxonMobil company.,SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil' "For the attribute of onpointerout, what is the cancelable?","SELECT cancelable FROM table_name_75 WHERE attribute = ""onpointerout""" "How many chapters have the name Gratiano as a character for ""friend to Antonio and Bassiano""?",SELECT COUNT(DISTINCT T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Gratiano' AND T1.Description = 'friend to Antonio and Bassiano' Show me the classrooms grade 5 is using.,SELECT DISTINCT classroom FROM list WHERE grade = 5 Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name "What is the level when points are larger than 25, and goals are 64–31?","SELECT level FROM table_name_43 WHERE points > 25 AND goals = ""64–31""" What is the name of the album that has the track Ball to the Wall?,"SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = ""Balls to the Wall"";" What position has less than 343 laps in 2010?,SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010 What was the first leg score during the quarter-final game?,"SELECT first_leg FROM table_name_16 WHERE round = ""quarter-final""" "What is the latest year when Neal Baer was a nominee, and the result was nominated?","SELECT MAX(year) FROM table_name_38 WHERE result = ""nominated"" AND nominee_s_ = ""neal baer""" Name who wrote the episode directed by pam cooke & jansen yee,"SELECT written_by FROM table_23235679_1 WHERE directed_by = ""Pam Cooke & Jansen Yee""" "Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?","SELECT out_of FROM table_name_31 WHERE source = ""united nations"" AND rank > 47 AND year < 2003" "Leland W. Schubert, Free Libertarian ticket, had who listed on the Democratic ticket?","SELECT democratic_ticket FROM table_name_56 WHERE free_libertarian_ticket = ""leland w. schubert""" What are the original air date(s) for episodes with production code ipea345a?,"SELECT original_airdate FROM table_2501754_2 WHERE prod_code = ""IPEA345A""" Who constructed Aguri Suzuki's car?,"SELECT constructor FROM table_name_4 WHERE driver = ""aguri suzuki""" What's the oil rig of the song that ended on 7th place?,"SELECT oil_rig FROM table_20183474_1 WHERE place = ""7th""" Find out which business is opened for 24/7 and list out what is the business attribute.,SELECT T5.attribute_name FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id INNER JOIN Business_Attributes AS T4 ON T3.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T2.day_id LIKE '1' AND '2' AND '3' AND '4' AND '5' AND '6' AND '7' AND T1.opening_time = T1.closing_time GROUP BY T5.attribute_name How many customers have an active value of 1?,SELECT COUNT(*) FROM customer WHERE active = '1' "How much time does it take to update the status of order ""2398""?","SELECT strftime('%J', T2.status_date) - strftime('%J', T1.order_date) FROM cust_order AS T1 INNER JOIN order_history AS T2 ON T1.order_id = T2.order_id WHERE T1.order_id = 2398" How many products are not made by Sony?,SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony') What was the score when Montreal was home?,"SELECT score FROM table_name_94 WHERE home = ""montreal""" "In the venue of Glenferrie Oval, what is the home team score?","SELECT home_team AS score FROM table_name_38 WHERE venue = ""glenferrie oval""" find the names of people who are taller than 200 or lower than 190.,SELECT name FROM people WHERE height > 200 OR height < 190 How many songs have 4 minute duration?,"SELECT count(*) FROM files WHERE duration LIKE ""4:%""" What are the department ids for which more than 10 employees had a commission?,SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10 What is the most cited word? How many papers was that word cited in?,"SELECT word_cited_id, COUNT(paper_id) FROM content GROUP BY word_cited_id ORDER BY COUNT(word_cited_id) DESC LIMIT 1" "List the authors and journal short name of the papers with ""chemiluminescence"" in its title and has a journal ID from 245 to 250.","SELECT T2.Name, T3.ShortName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.JournalId BETWEEN 245 AND 250 AND T1.Title LIKE '%chemiluminescence%'" What is the max speed when the vessel is gallion?,"SELECT max_speed FROM table_28132970_5 WHERE vessel = ""Gallion""" "Which Opponent has a Location/Attendance of delta center/19,911 on dec 6?","SELECT opponent FROM table_name_63 WHERE location_attendance = ""delta center/19,911"" AND date = ""dec 6""" What are the Maximum rooms for each Apartment type code?,"SELECT apt_type_code , max ( room_count ) FROM Apartments GROUP BY apt_type_code" What is the number of the grid for mika häkkinen and more than 45 laps?,"SELECT COUNT(grid) FROM table_name_65 WHERE driver = ""mika häkkinen"" AND laps > 45" What was the score of the game where the home team was the cairns taipans?,"SELECT score FROM table_name_85 WHERE home_team = ""cairns taipans""" List all employees working for publisher 'GGG&G'. State their name and job description.,"SELECT T1.fname, T1.lname, T3.job_desc FROM employee AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id INNER JOIN jobs AS T3 ON T1.job_id = T3.job_id WHERE T2.pub_name = 'GGG&G'" What is the group of ESPN International Sports?,"SELECT group FROM table_name_70 WHERE name = ""espn international sports""" What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?,"SELECT date FROM table_name_43 WHERE pole_position = ""jack brabham"" AND circuit = ""spa-francorchamps""" What is the average salary of the employees who work as a Trainee?,"SELECT AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) AS avg FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'" "What is the average total number of passengers of airports that are associated with aircraft ""Robinson R-22""?","SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = ""Robinson R-22""" Which Large end has a Taper/ft smaller than 0.6000000000000001?,SELECT COUNT(large_end) FROM table_name_5 WHERE taper / ft < 0.6000000000000001 "Who is the voice actor of the character ""Binkie Muddlefoot""?",SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Binkie Muddlefoot' What are the names and id of courses having at most 2 sections?,"SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2" Find the first name of students who have both cat and dog pets .,select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog' How many years was the building with 24 floors the tallest?,SELECT years_as_tallest FROM table_name_14 WHERE floors = 24 What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?,"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 = ""Dameon"" AND T2.staff_last_name = ""Frami"" UNION 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 = ""Jolie"" AND T2.staff_last_name = ""Weber""" "Tell me the result for attendance of 54,462","SELECT result FROM table_name_32 WHERE attendance = ""54,462""" Which department has the most professors with a Ph.D.?,"SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1" What is the mascot whose school opened in 1970?,"SELECT mascot FROM table_name_51 WHERE year_opened = ""1970""" What are the students' first names who have both cats and dogs as pets?,SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' Which sales areas are expected to have the highest yearly sales quota?,SELECT T2.Name FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 ON T1.TerritoryID = T2.TerritoryID GROUP BY T1.TerritoryID ORDER BY SUM(T1.SalesQuota) DESC LIMIT 1 What episode number of the season did Tony Basgallop write?,"SELECT MIN(_number) FROM table_25737761_4 WHERE writer = ""Tony Basgallop""" Please name any three restaurants that have an unidentified region.,SELECT T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T3.region = 'unknown' LIMIT 3 What is the Date of the RCA release with Catalog number SF-7635?,"SELECT date FROM table_name_57 WHERE label = ""rca"" AND catalog = ""sf-7635""" What is the name of the semester with no students enrolled?,SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment ) Name the miles for june 7,"SELECT miles__km_ FROM table_16493961_1 WHERE date = ""June 7""" What's the version of Itu g.992.3 Annex J?,"SELECT version FROM table_name_97 WHERE standard_name = ""itu g.992.3 annex j""" "Name the number of surfaces for 4-6, 2-6","SELECT COUNT(surface) FROM table_23944006_4 WHERE score = ""4-6, 2-6""" What team did the Hornets play in game 4?,SELECT team FROM table_27723228_3 WHERE game = 4 "Among the flights with air carrier described as Asap Air Inc.: ASP, what is the tail number of the flight with the longest departure delay?",SELECT T2.TAIL_NUM FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Asap Air Inc.: ASP' ORDER BY T2.DEP_DELAY DESC LIMIT 1 "Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0",SELECT SUM(silver) FROM table_name_92 WHERE total > 1 AND bronze = 1 AND gold < 0 "Hmm, I also want to know the population of this country.","select T2.name, T2.population from roller_coaster as T1 join country as T2 on T1.country_id = T2.country_id where T1.height = ( SELECT max ( height ) FROM roller_coaster ) " What's the finish for the total 288?,SELECT finish FROM table_name_96 WHERE total = 288 When is Collins' DOB?,"SELECT dob FROM table_name_22 WHERE surname = ""collins""" "What is the average processed time of the solution paths inside the ""https://github.com/zphingphong/DiscardCustomerApp.git""?",SELECT CAST(SUM(T2.ProcessedTime) AS REAL) / COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/zphingphong/DiscardCustomerApp.git' What are the names of the enzymes used in the medicine Amisulpride that acts as inhibitors?,SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' "Which country's indicator for Adolescent fertility rate is the highest in 1960, please give its special notes.","SELECT DISTINCT T1.CountryCode, T1.SpecialNotes FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Value = ( SELECT Value FROM Indicators WHERE IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' AND Year = 1960 ORDER BY Value DESC LIMIT 1 )" Tell me the sum of laps with a time/retired of +13 laps with grid more than 18,"SELECT SUM(laps) FROM table_name_21 WHERE time_retired = ""+13 laps"" AND grid > 18" What position does the winner from Ohio State with 412 points play?,"SELECT position FROM table_name_38 WHERE school = ""ohio state"" AND points = ""412""" "Which March is the lowest one that has a Score of 5–6, and Points smaller than 100?","SELECT MIN(march) FROM table_name_88 WHERE score = ""5–6"" AND points < 100" I need a list of the titles of books.,SELECT Title FROM book "What is the rating and the total Sentiment subjectivity score of ""Onefootball - Soccer Scores""?","SELECT T1.Rating, SUM(T2.Sentiment_Subjectivity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Onefootball - Soccer Scores'" Election results of 1976,SELECT result FROM table_1341640_43 WHERE first_elected = 1976 List the locations of schools that do not have any player.,SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player) What is the home team of the April 14 game?,"SELECT home FROM table_name_27 WHERE date = ""april 14""" "For the year won of 2001, what is the To Par?","SELECT to_par FROM table_name_29 WHERE year_s__won = ""2001""" How many dates have a Match number of 5?,SELECT COUNT(date) FROM table_17103566_1 WHERE match_number = 5 Give me the start station and end station for the trips with the three oldest id.,"SELECT start_station_name , end_station_name FROM trip ORDER BY id LIMIT 3" How many mothers have taken immunization during prenatal visit?,SELECT COUNT(DISTINCT T2.PATIENT) FROM encounters AS T1 INNER JOIN immunizations AS T2 ON T1.PATIENT = T2.PATIENT WHERE T1.REASONDESCRIPTION = 'Normal pregnancy' AND T1.DATE = T2.DATE What was john huston's score?,"SELECT score FROM table_name_56 WHERE player = ""john huston""" What was the result when home was fc luzern (asl)?,"SELECT result FROM table_name_22 WHERE home = ""fc luzern (asl)""" What's the average Played for a draw of 5 and more than 43 points?,SELECT AVG(played) FROM table_name_68 WHERE draw = 5 AND points > 43 "What is every value for Russian when value for Bulgarian is пес, куче?","SELECT russian FROM table_25008327_8 WHERE bulgarian = ""пес, куче""" What is the average sentiment polarity score of the Cooking Fever app? Indicate the age group that the app is targeted at.,"SELECT AVG(T2.Sentiment_Polarity), T1.""Content Rating"" FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Cooking Fever'" Who had the pole position at the German Grand Prix?,"SELECT pole_position FROM table_1137718_2 WHERE grand_prix = ""German grand_prix""" What are the room numbers for Block Code 1?,SELECT T2.roomnumber FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode where T1.blockcode = 1 What was the date with a winner of km (mi)?,"SELECT date FROM table_name_20 WHERE winner = ""km (mi)""" When did Uganda declare independence?,SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Uganda' Which High assists has a Score of w 71-56?,"SELECT high_assists FROM table_name_85 WHERE score = ""w 71-56""" "What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?","SELECT party FROM table_name_22 WHERE district < 10 AND took_office < 1991 AND home_town = ""mount pleasant""" On what date was a two-way tie (8) the high rebound?,"SELECT date FROM table_name_3 WHERE high_rebounds = ""two-way tie (8)""" Find the ids and names of members who are under age 30 or with black membership card.,"SELECT name , member_id FROM member WHERE Membership_card = 'Black' OR age < 30" What is the production code for Episode 153 in the series?,SELECT MIN(production_code) FROM table_23097214_1 WHERE series__number = 153 Find the number of records of each policy type and its type code.,"SELECT policy_type_code , count(*) FROM policies GROUP BY policy_type_code" Who is the away team at Windy Hill?,"SELECT away_team FROM table_name_69 WHERE venue = ""windy hill""" "What is the minimum, maximum, and average seating for all tracks.","SELECT min(seating) , max(seating) , avg(seating) FROM track" Find the email and phone number of the customers who have never filed a complaint before.,"SELECT email_address , phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)" find the department name which has the lowest average salary of professors,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg ( salary ) ASC LIMIT 1 How many losses have draw values under 1?,SELECT COUNT(lost) FROM table_name_36 WHERE drawn < 1 Which races have #2 podiums?,"SELECT races FROM table_name_6 WHERE podiums = ""2""" What Ratio has a Unit of zolotnik?,"SELECT ratio FROM table_name_57 WHERE unit = ""zolotnik""" What was the percent of slovenes 1951 for bach?,"SELECT percent_of_slovenes_1951 FROM table_10797636_1 WHERE village__german_ = ""Bach""" Show names for artists without any exhibition.,SELECT name FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM exhibition) How many laps had a constructor of toyota and a Time/Retired of +13.409?,"SELECT COUNT(laps) FROM table_name_3 WHERE constructor = ""toyota"" AND time_retired = ""+13.409""" What is the score of the friendly competition with 1 goal?,"SELECT score FROM table_name_25 WHERE competition = ""friendly"" AND goal = 1" "For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?","SELECT episode FROM table_name_52 WHERE result = ""nominated"" AND nominee_s_ = ""walon green, joe sachs""" Which player is in round 5?,SELECT player FROM table_11803648_20 WHERE round = 5 What is the parent magazine for Dengeki 5pb.?,"SELECT parent_magazine FROM table_name_42 WHERE title = ""dengeki 5pb.""" Could you list all the cities in ascending alphabetical order?,select city from city order by city asc "Which employee's job position requires a higher education level, Jose Rodriguez or Sandy Adams?","SELECT T1.firstname, T1.lastname FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE (T1.lastname = 'Adams' AND T1.firstname = 'Sandy') OR (T1.lastname = 'Rodriguez' AND T1.firstname = 'Jose') ORDER BY T2.educationrequired DESC LIMIT 1" What Player's had a To par of +1 and a Score of 73-71-73=217?,"SELECT player FROM table_name_12 WHERE to_par = ""+1"" AND score = 73 - 71 - 73 = 217" "Among the female clients, how many of them have a complaint with a priority of 1?",SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.sex = 'Female' AND T2.priority = 1 How many rivers belong to more than one country? Name the provinces where we can find them.,"SELECT River, GROUP_CONCAT(Province) FROM geo_river GROUP BY River HAVING COUNT(DISTINCT Country) > 1" "Which Cover model has a Pictorials of brande roderick-pmoy, naked news?","SELECT cover_model FROM table_name_56 WHERE pictorials = ""brande roderick-pmoy, naked news""" "What's the average rating score of the movie ""A Way of Life""?",SELECT AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' "What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?","SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC" When dwhr-tv is the call sign how many station types are there?,"SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = ""DWHR-TV""" Name the vacator for wisconsin 1st,"SELECT vacator FROM table_1958768_3 WHERE district = ""Wisconsin 1st""" How many hall of famers both played and coached in the league?,SELECT COUNT(playerID) FROM Master WHERE hofID IS NOT NULL AND playerID IS NOT NULL AND coachID IS NOT NULL How many restaurants with the highest risk level still passed the inspection?,SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.risk_level = 3 AND T2.results = 'Pass' AND T1.facility_type = 'Restaurant' "Which Laps have a Time of +23.002, and a Grid smaller than 11?","SELECT AVG(laps) FROM table_name_5 WHERE time = ""+23.002"" AND grid < 11" "Who was the opponent with the loss in Westbury, NY?","SELECT opponent FROM table_name_37 WHERE result = ""loss"" AND location = ""westbury, ny""" "Give me the times and numbers of all trains that go to Chennai, ordered by time.","SELECT TIME , train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME;" Excellent! Can you filter this list to show only the names of artists above the age of 46?,SELECT Name FROM artist WHERE age > 46 How many class sections?,SELECT COUNT ( DISTINCT CLASS_SECTION ) FROM CLASS Show the names of singers and the total sales of their songs.,"SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name" What departments are those courses in?,"SELECT T1.dept_name,T1.course_id FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count ( * ) > 1" What are the names of representatives in descending order of votes please?,SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC State the inspection pass rate of Pockets Restaurant.,SELECT CAST(COUNT(CASE WHEN T2.results = 'Pass' THEN T2.inspection_id ELSE NULL END) AS REAL) * 100 / COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'POCKETS' AND T1.facility_type = 'Restaurant' "For the ship that was a brig and located in the English Channel, what was the disposition of ship?","SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = ""brig"" AND location = ""english channel""" what is the date for the week larger than 1 and the opponent detroit lions?,"SELECT date FROM table_name_23 WHERE week > 1 AND opponent = ""detroit lions""" Return the address of customer 10.,SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10 "For the goalie whose legendsID is ""P196402"" , how many games did he play in the league?",SELECT SUM(T1.GP) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.legendsID = 'P196402' Can you tell me the id of the students who registered for course 301?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 Show all information about each body builder.,SELECT * FROM body_builder How many accounts does each customer have? List the number and customer id.,"SELECT COUNT(*), customer_id FROM Accounts GROUP BY customer_id" Which film has the most copies in the inventory? List both title and id.,"SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1" Calculate the average age of the persons who participated in the 1992 Summer Games.,SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1992 Summer' "How many events did the 88-years-old male users participate on 4th May,2016?","SELECT COUNT(T2.event_id) FROM gender_age AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T1.gender = 'M' AND SUBSTR(`timestamp`, 1, 10) = '2016-05-04' AND T1.age = 88" Identify the store location and sales team who processed the sales order 'SO - 0001004'.,"SELECT T3.`Sales Team`, T1.`City Name` FROM `Store Locations` AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._StoreID = T1.StoreID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T2.OrderNumber = 'SO - 0001004'" What are the name and id of the team offering the lowest average salary?,"SELECT T1.name, T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY AVG(T2.salary) LIMIT 1" also give me their driver ids,"SELECT name, driver_id FROM driver" "What are the date of ceremony of music festivals with category ""Best Song"" and result ""Awarded""?","SELECT Date_of_ceremony FROM music_festival WHERE Category = ""Best Song"" AND RESULT = ""Awarded""" What are the names of players who won in both 2013 and 2016?,SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016 "Who is the creator when the view happens to gddm, afp viewer?","SELECT creator FROM table_1574968_1 WHERE viewer = ""GDDM, AFP viewer""" Which country is ranked 24?,"SELECT country FROM table_name_57 WHERE rank = ""24""" What were the high assists when the score was l 86–94 (ot)?,"SELECT high_assists FROM table_name_62 WHERE score = ""l 86–94 (ot)""" What are the wines that have prices lower than 50 and have appelations in Monterey county?,"SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Monterey"" AND T2.price < 50" How many cover models were on the edition that featured Jennifer Pershing as the centerfold?,"SELECT COUNT(cover_model) FROM table_1566852_10 WHERE centerfold_model = ""Jennifer Pershing""" Show all majors.,SELECT DISTINCT Major FROM Student What school/club team did the center Rafael Araújo play for?,"SELECT school_club_team FROM table_name_78 WHERE position = ""center"" AND player = ""rafael araújo""" What is the 2007 Team with player Deshaun Foster?,"SELECT 2007 AS _team FROM table_name_30 WHERE player = ""deshaun foster""" What are the items sold by the store during the day whose station recorded the thickest snowfall?,"SELECT T1.item_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN ( SELECT station_nbr, `date` FROM weather ORDER BY snowfall DESC LIMIT 1 ) AS T3 ON T2.station_nbr = T3.station_nbr" "What is Mark, when Lane is less than 5, and when React is 0.217?",SELECT mark FROM table_name_88 WHERE lane < 5 AND react = 0.217 What is the lowest round for a player selected from a college of New Hampshire?,"SELECT MIN(round) FROM table_name_64 WHERE college_junior_club_team__league_ = ""new hampshire""" What is the average 2006 value for wheat with a 2005 value greater than 7340?,"SELECT AVG(2006) FROM table_name_47 WHERE production_year = ""wheat"" AND 2005 > 7340" find the full name of employees who report to Nancy Edwards?,"SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = ""Nancy"" AND T1.last_name = ""Edwards"";" Which nationality has rank 4?,SELECT nationality FROM table_name_90 WHERE rank = 4 What player belongs to Northwestern College?,"SELECT player FROM table_name_34 WHERE college = ""northwestern""" What is the percentage of the Labour Party on the Harris Poll,"SELECT harris FROM table_159614_2 WHERE party = ""Labour""" Please list the top ten teams with the highest scores in 2000.,SELECT tmID FROM players_teams WHERE year = 2000 GROUP BY tmID ORDER BY SUM(PostPoints) DESC LIMIT 10 "How many transactions had Frank-Paul Santangelo made in July, 2014?","SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND STRFTIME('%Y-%m', T2.TransactionDate) = '2014-07'" How many allergies are there?,SELECT count ( distinct allergy ) FROM Has_allergy Find names of all students who took some course and got A or C.,"SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'" What format was conductor Erich Leinsdorf's album released on?,"SELECT format FROM table_name_34 WHERE conductor = ""erich leinsdorf""" Which item provided for projects with Mathematics as a primary subject is the most expensive?,SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject = 'Mathematics' ORDER BY T1.item_unit_price DESC LIMIT 1 What were the location and attendance for the game against New Jersey?,"SELECT location_attendance FROM table_name_33 WHERE team = ""new jersey""" What are the names of the players who were coached by Jameson Tomas?,"SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID where t2.coach_name = ""Jameson Tomas""" "What is Country, when Player is ""Hale Irwin""?","SELECT country FROM table_name_96 WHERE player = ""hale irwin""" Tell me the discovery/publication for red deer cave people,"SELECT discovery___publication_of_name FROM table_name_69 WHERE species = ""red deer cave people""" What are the names of students who took a course in the Fall of 2003?,SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003) What is the highest attendance rate at Milwaukee County Stadium?,"SELECT MAX(attendance) FROM table_name_61 WHERE game_site = ""milwaukee county stadium""" Where did St Kilda play as the away team?,"SELECT venue FROM table_name_50 WHERE away_team = ""st kilda""" Name the number of ratings for bruce forsyth,"SELECT COUNT(ratings) FROM table_29135051_2 WHERE guest_s_ = ""Bruce Forsyth""" List the name of the colleges whose enrollment is greater 18000 sorted by the college's name.,SELECT cName FROM College WHERE enr > 18000 ORDER BY cName What was the nickname of the team in the Geelong West Cricket & Football Club?,"SELECT nickname FROM table_name_59 WHERE club = ""geelong west cricket & football club""" What are the names of members who are not in charge of any events?,SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id Who was the manager that was positioned 11th in table and resigned in departure?,"SELECT replaced_by FROM table_name_30 WHERE position_in_table = ""11th"" AND manner_of_departure = ""resigned""" Show the locations of parties and the names of the party hosts in ascending order of the age of the host.,"SELECT T3.Location , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age" What is the maximum number of final tables made among poker players with earnings less than 200000?,SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 How many percent of points were scored by NBA players who belonged to 'LAL' team and had performed steals movement.,"SELECT CAST(SUM(IIF(T2.steals IS NOT NULL AND T1.tmID = 'LAL', 1, 0)) AS REAL) * 100 / COUNT(T1.tmID) FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year" Show the budget type code and description and the corresponding document id.,"SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code" Which of the entrants had Luigi Fagioli as a driver?,"SELECT entrant FROM table_name_79 WHERE driver = ""luigi fagioli""" What is the Record of the Game on January 20 with Visitor Toronto Maple Leafs with a Score of 3–1?,"SELECT record FROM table_name_63 WHERE score = ""3–1"" AND visitor = ""toronto maple leafs"" AND date = ""january 20""" Which club was originally named hapoel katamon jerusalem f.c.?,"SELECT original_club FROM table_26218124_1 WHERE name = ""Hapoel Katamon Jerusalem F.C.""" What is the location for the club trophy from the year 1867 only?,"SELECT location FROM table_name_52 WHERE type = ""club trophy"" AND years = ""1867 only""" "What is the sum of Round, when Nationality is ""United States"", and when Pick is ""125""?","SELECT SUM(round) FROM table_name_91 WHERE nationality = ""united states"" AND pick = 125" What is the name of the home captain when the result was Aus by 229 runs?,"SELECT home_captain FROM table_name_83 WHERE result = ""aus by 229 runs""" Can you tell me which room number has a capacity higher than the average capacity?,SELECT room_number FROM classroom WHERE capacity > ( SELECT avg ( capacity ) FROM classroom ) Give the ids for documents that have the budget description 'Government'.,"SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Government""" "Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average.","SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )" When was the order placed whose shipment tracking number is 3452? Give me the date.,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452 What was the episode that had Jack Dee and Stacey Solomon on Sean's team?,"SELECT episode FROM table_23292220_13 WHERE seans_team = ""Jack Dee and Stacey Solomon""" What are the names of managers in ascending order of level?,SELECT Name FROM manager ORDER BY LEVEL ASC "Winchester Community school, which plays IHSAA class AA football, is located where?","SELECT location FROM table_name_99 WHERE ihsaa_football_class = ""aa"" AND school = ""winchester community""" When were they trained in that procedure? | Do you mean the certification date and the expired date of the procedure named Complete Walletectomy? | The certification date.,SELECT T2.CertificationDate FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment where T3.Name = 'Complete Walletectomy' WHat about with 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 = 'Fasterfox' Which election had the most votes?,select election_id from election where votes = ( SELECT max ( votes ) FROM election ) How many trademarks list a molecular target of minor groove of dna and a clinical status value of phase i?,"SELECT COUNT(trademark) FROM table_12715053_1 WHERE molecular_target = ""Minor Groove of DNA"" AND clinical_status = ""Phase I""" What is the LMS number of the trains built by G&SWR Kilmarnock?,"SELECT lms_nos FROM table_15412381_5 WHERE builder = ""G&SWR Kilmarnock""" What was the highest week when the record was 1-3?,"SELECT MAX(week) FROM table_name_48 WHERE record = ""1-3""" What decision had a Record of 3–5–0?,"SELECT decision FROM table_name_17 WHERE record = ""3–5–0""" What is the number of the acquisition of import in the 2002 season?,"SELECT number FROM table_name_19 WHERE acquisition_via = ""import"" AND season = ""2002""" Name the current club for number 6,SELECT current_club FROM table_12962773_13 WHERE no = 6 "What is the previous experience of the player from East Jordan, Michigan?","SELECT previous_experience FROM table_14342367_13 WHERE hometown = ""East Jordan, Michigan""" "Return the number of customers who have at least one order with ""Cancelled"" status.","SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = ""Cancelled""" Could you tell me the account ids of those accounts too?,"SELECT Account_ID FROM Accounts WHERE Account_details LIKE ""%9%""" Show the times used by climbers to climb mountains in Country Uganda.,"SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = ""Uganda""" "What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988?","SELECT win_percentage FROM table_name_88 WHERE games = 80 AND Pwin_percentage = — AND term_[c_] = ""1987–1988""" "What is the smallest Class Position that has drivers Les Palmer, Terry Morris, and a Position larger than 23?","SELECT MIN(class) AS position FROM table_name_59 WHERE drivers = ""les palmer, terry morris"" AND position > 23" Find the most prominent max page size among all the products.,SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1 What are the regions with Greek restaurants?,SELECT DISTINCT T1.region FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'greek' "When the team is @ Milwaukee, what is the name of the location where the game is played?","SELECT location_attendance FROM table_name_78 WHERE team = ""@ milwaukee""" Find the address and staff number of the shops that do not have any happy hour.,"SELECT address , num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)" Show me the events they reported | which columuns to return | date,"SELECT T1.Event_ID,T1.Date from event as T1 join news_report as T2 on T1.Event_ID = T2.Event_ID" what is the location of bremen,"SELECT location FROM school where school_name = ""Bremen""" Can you list only the product id and the product type please?,"SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1" Find the names for all the customers and staff members,SELECT customer_details FROM customers UNION SELECT staff_details FROM staff Which was the most recently opened track?,SELECT name FROM track ORDER BY year_opened DESC LIMIT 1 Name the original title directed by sudhendu roy,"SELECT original_title FROM table_name_79 WHERE director = ""sudhendu roy""" "Who is from flower mound, tx?","SELECT player FROM table_name_47 WHERE hometown = ""flower mound, tx""" Name the D 42 √ for when it has D 49 √ of r 12,"SELECT d_42_√ FROM table_name_58 WHERE d_49_√ = ""r 12""" How many different numbers of people in the US who'd seen the episode with a season number 8 are there?,SELECT COUNT(us_viewers__millions_) FROM table_19925114_1 WHERE no_in_season = 8 What are the names of all movies made before 1980 or had James Cameron as the director?,"SELECT title FROM Movie WHERE director = ""James Cameron"" OR YEAR < 1980" What was the attendance when Collingwood was the away team?,"SELECT MIN(crowd) FROM table_name_45 WHERE away_team = ""collingwood""" What is the phone and email for customer with first name Aniyah and last name Feest?,"SELECT customer_phone , customer_email FROM Customers WHERE customer_first_name = ""Aniyah"" AND customer_last_name = ""Feest""" How many inspections were done in January 2011?,"SELECT COUNT(inspection_id) FROM inspection WHERE strftime('%Y-%m', inspection_date) = '2011-01'" "Tell me the types of the policy used by the customer named ""Dayana Robel"".","SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.,SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200; Who opposed Marty Meehan in each election?,"SELECT opponent FROM table_1341522_24 WHERE incumbent = ""Marty Meehan""" Can you list the names and velocities of all pilots who flew out of Ted Stevens Airport?,"SELECT T2.pilot, T2.velocity FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.name = 'Ted Stevens Airport'" What is the smallest total that has 11 golds and bronzes over 2?,SELECT MIN(total) FROM table_name_42 WHERE gold = 11 AND bronze > 2 What Gender are the schools that have a Roll of 135?,"SELECT gender FROM table_name_62 WHERE roll = ""135""" What is the total number of companies?,SELECT count(*) FROM company How many games include the word 'Box' in their name?,SELECT COUNT(*) FROM ( SELECT T.game_name FROM game AS T WHERE T.game_name LIKE '%Box%' ) Write down the title and summary of the episode with the keyword 'eviction.',"SELECT T1.title, T1.summary FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword = 'eviction';" How many goals did the player with 229 club apps have?,"SELECT goals FROM table_name_69 WHERE club_apps = ""229""" Show the denomination shared by more than one school?,SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT ( * ) > 1 List all the names of podcasts under the 'true crime' category.,SELECT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'true-crime' How many bathrooms do each of those have?,SELECT T2.bathroom_count FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500?,"SELECT MIN(year) FROM table_name_55 WHERE torque = ""330n·m (243lb·ft) @ 2000-2500""" How many directors of episode 55?,SELECT COUNT(directed_by) FROM table_25716397_1 WHERE series_no = 55 "On what Date in Stade Leopold Senghor, Dakar was the Score 4–0?","SELECT date FROM table_name_93 WHERE score = ""4–0"" AND venue = ""stade leopold senghor, dakar""" How many donations were paid via credit card to Memphis City School District?,SELECT COUNT(T1.projectid) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.payment_method = 'creditcard' AND T2.school_district = 'Memphis City School District' What is the contact form of the legislator named Rick Crawford?,SELECT T2.contact_form FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Rick Crawford' What is the result/score for the match report recap on week 14?,"SELECT result_score FROM table_name_25 WHERE match_report = ""recap"" AND week = 14" Which company name in London city has the most stocked products?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.City = 'London' ORDER BY T1.UnitsInStock DESC LIMIT 1 What is the average student capacity of all dorms?,SELECT avg ( student_capacity ) FROM dorm What customers don't have a policy?,SELECT * FROM customers EXCEPT SELECT * FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id How many flights depart to Hartsfield-Jackson Atlanta International from Chicago O'Hare International?,"SELECT COUNT(FL_DATE) FROM Airlines WHERE ORIGIN = ( SELECT T2.ORIGIN FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'Chicago, IL: Chicago O''Hare International' ) AND DEST = ( SELECT T4.DEST FROM Airports AS T3 INNER JOIN Airlines AS T4 ON T3.Code = T4.DEST WHERE T3.Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International' )" "What is the nationality with less than 9 heat, and a time of 1:01.87?","SELECT nationality FROM table_name_3 WHERE heat < 9 AND time = ""1:01.87""" "What was the total number of matches for Nat Lofthouse, ranking higher than 7?","SELECT COUNT(matches) FROM table_name_55 WHERE name = ""nat lofthouse"" AND rank > 7" how many names or student in the table | Do you mean the LName or Fname ? | how many count in male or female in the student table,"SELECT count ( * ) , sex FROM Student GROUP BY sex" What is the tier IV year for the tournament held in Tampa?,"SELECT tier_iv_in FROM table_20630462_1 WHERE tournament = ""Tampa""" "What Catalog has a label of Alfa records and a date of November 21, 1980?","SELECT catalog FROM table_name_31 WHERE label = ""alfa records"" AND date = ""november 21, 1980""" "Who was the vacator when the successor was formally installed on February 1, 1871?","SELECT vacator FROM table_2417345_3 WHERE date_of_successors_formal_installation = ""February 1, 1871""" What's the descripition of BitBar?,SELECT description FROM coins WHERE name = 'BitBar' What is the average when interview is 9.465 and evening gown is less than 9.454?,SELECT SUM(average) FROM table_name_28 WHERE interview = 9.465 AND evening_gown < 9.454 "What is the total tenure rank of the person with an uninterrupted time of 49 years, 349 days?","SELECT total_tenure_rank FROM table_name_6 WHERE uninterrupted_time = ""49 years, 349 days""" When was successor George E. Harris (R) seated?,"SELECT date_successor_seated FROM table_2417345_4 WHERE successor = ""George E. Harris (R)""" What year was the school opened that has a size of 10 acres and students of na?,"SELECT year_opened FROM table_name_76 WHERE students = ""na"" AND size = ""10 acres""" "Is ""c02c9a3b-6881-7080-e040-e00a180631aa"" the uuid for menu called ""The Biltmore""?",SELECT CASE WHEN T2.uuid = 'c02c9a3b-6881-7080-e040-e00a180631aa' THEN 'yes' ELSE 'no' END AS yn FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.name = 'The Biltmore' AND T2.uuid = 'c02c9a3b-6881-7080-e040-e00a180631aa' What is the fewest number of laps completed by a rank 32?,"SELECT MIN(laps) FROM table_name_12 WHERE rank = ""32""" "What model has a number built smaller than 6.526, and the Chassis code w109.015?","SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = ""w109.015""" How many professors teaches basic or medium undergraduate courses?,SELECT COUNT(*) FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_300' What rank was caerphilly with a Swing smaller than 6.92?,"SELECT COUNT(rank) FROM table_name_25 WHERE swing_to_gain < 6.92 AND constituency = ""caerphilly""" What are the distinct billing countries of the invoices?,SELECT DISTINCT (BillingCountry) FROM INVOICE "Calculate the total beat of the crimes reported in a community area in the central side with population of 50,000 and above.",SELECT 1.0 * SUM(CASE WHEN T1.population > 50000 THEN T2.beat ELSE 0 END) AS sum FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Central' Which Virtue has a (vice) of lust?,"SELECT virtue FROM table_name_31 WHERE _vice_ = ""lust""" What stamp design has a denomination of $1.18?,"SELECT design FROM table_name_33 WHERE denomination = ""$1.18""" What seat has a vote percentage of 100.0%,"SELECT seat_percentage FROM table_name_41 WHERE vote_percentage = ""100.0%""" "For week 15, what was the total number of attendance recorded?",SELECT COUNT(attendance) FROM table_name_66 WHERE week = 15 Who was the builder of Xian Ren Qiao (Fairy Bridge)?,"SELECT T1.name from architect as T1 join bridge as T2 on T1.id = T2.architect_id where T2.name = ""Xian Ren Qiao ( Fairy Bridge ) """ What is the average popularity of each movie that was directed by Christopher Nolan? Indicate which movie directed by him has received the highest number of 5 rating scores.,SELECT AVG(T2.movie_popularity) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Christopher Nolan' How many February days have Points of 63 and a Score of 1–2?,"SELECT COUNT(february) FROM table_name_40 WHERE points = 63 AND score = ""1–2""" "What are the department names, cities, and state provinces for each department?","SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id" What is the most common major among female (sex is F) students?,"SELECT Major FROM STUDENT WHERE Sex = ""F"" GROUP BY major ORDER BY count(*) DESC LIMIT 1" What are the names of all songs that are approximately 4 minutes long or are in English?,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""4:%"" UNION SELECT song_name FROM song WHERE languages = ""english""" Show card type codes with at least 5 cards.,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*) >= 5 A Pick # larger than 339 and the College that has a Round of 14 is what?,SELECT college FROM table_name_52 WHERE round = 14 AND pick__number > 339 What is the low score for TO par +2 in japan?,"SELECT MIN(score) FROM table_name_5 WHERE to_par = ""+2"" AND country = ""japan""" "For each company id, what are the companies and how many gas stations does each one operate?","SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id" Which Eviction result has a Net vote of 31.86%?,"SELECT eviction_result FROM table_name_10 WHERE net_vote = ""31.86%""" "What is the ministries number when duration is 4 years, 4 days (1,465 days)?","SELECT ministries FROM table_21422977_2 WHERE duration = ""4 years, 4 days (1,465 days)""" How many release dates has Canada had?,"SELECT COUNT(release_date) FROM table_name_7 WHERE country = ""canada""" Find the name of the person who has friends with age above 40 but not under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) What average goals have matches less than 228?,SELECT AVG(goals) FROM table_name_68 WHERE matches < 228 What is the id and name of the aircraft that can cover the maximum distance?,"SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1" How many addresses are there in country USA?,SELECT count(*) FROM addresses WHERE country = 'USA' "At what Location was the Attendance 70,283?","SELECT location FROM table_name_48 WHERE attendance = ""70,283""" Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2,SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 2 Can you tell me which companies are located at the Torre KOI building? | What attributes of these companies do you want to know? | The names of the companies that are present in that building.,"SELECT T3.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id where T2.name = ""Torre KOI""" When arthur heinemann is the writer who is the director?,"SELECT directed_by FROM table_1854728_2 WHERE written_by = ""Arthur Heinemann""" What are the notes during 57 bc caesar?,"SELECT notes FROM table_242785_3 WHERE date_founded__founder = ""57 BC Caesar""" "ok,list out the body builder name",SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID What is the lest amount of bronzes that ranked 2 and has less silvers than 0?,SELECT MIN(bronze) FROM table_name_79 WHERE rank = 2 AND silver < 0 How many friends does Dan have?,SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' Compute the average height of competitors whose age ranges from 22 to 28.,SELECT AVG(T1.height) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.age BETWEEN 22 AND 28 What are the pilot names of those 3 nationalities?,"SELECT Nationality,Pilot_name FROM pilot" Who was from Morocco and scored 6 goals?,"SELECT name FROM table_name_57 WHERE goals = 6 AND nationality = ""morocco""" What are the different product names? What is the average product price for each of them?,"SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name" Name the most kirdistan list for diyala,"SELECT MAX(total_kurdistan_list) FROM table_24440361_1 WHERE governorate = ""Diyala""" What teams did the player vadim sharifijanov play for?,"SELECT college_junior_club_team FROM table_1013129_1 WHERE player = ""Vadim Sharifijanov""" What is the customer ID who is associated with the latest policy?,SELECT t2.customer_ID FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = ( SELECT max ( start_date ) FROM policies ) What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?,SELECT MAX(1987) FROM table_name_48 WHERE 1995 < 1995 AND 1999 < 9 What is the date of the match for the wbc flyweight (112) title?,"SELECT date FROM table_12262182_2 WHERE titles = ""WBC Flyweight (112)""" Who was the winner with the 24-21 result?,"SELECT winner FROM table_name_60 WHERE result = ""24-21""" Find the name and price of the product that has been ordered the greatest number of times.,"SELECT t1.product_name , t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count(*) DESC LIMIT 1" What is the year elected for incumbent Cynthia Mckinney?,"SELECT elected FROM table_27021001_1 WHERE incumbent = ""Cynthia McKinney""" What is the pay frequency of the oldest employee?,SELECT T1.PayFrequency FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T2.BirthDate ASC LIMIT 1 What is the date for CBS label?,"SELECT date FROM table_name_48 WHERE label = ""cbs""" How many players went to depaul?,"SELECT COUNT(player) FROM table_16494599_2 WHERE school_club_team = ""DePaul""" What is the total number of E edges of the polyhedra with vertices V greater than 20?,SELECT COUNT(edges_e) FROM table_name_32 WHERE vertices_v > 20 Who is the patient with a body weight of 61.97 kg?,"SELECT T2.first, T2.last FROM observations AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Body Weight' AND T1.UNITS = 'kg' AND T1.VALUE = 61.97" Please list the character names of all the characters from the work Twelfth Night.,SELECT DISTINCT T4.CharName FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.Title = 'Twelfth Night' "Which District has a First elected of 1856, and an Incumbent of william kellogg?","SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = ""william kellogg""" How many elections are there?,SELECT count(*) FROM election Find the titles of items that received any rating below 5.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 Who is the incumbent for the Colorado 4 district?,"SELECT incumbent FROM table_name_95 WHERE district = ""colorado 4""" What is the largest 1st LBSC number with a LBSC Name of northcote?,"SELECT MAX(1 AS st_lbsc_no) FROM table_name_23 WHERE lbsc_name = ""northcote""" What is the friendly game for Germany of France?,"SELECT friendly FROM table_name_58 WHERE germany = ""france""" From what Country is Gary Evans?,"SELECT country FROM table_name_81 WHERE player = ""gary evans""" list out the player,SELECT Player FROM player How many number of paragraphs are there in chapter ID 18881?,SELECT COUNT(ParagraphNum) FROM paragraphs WHERE chapter_id = 18881 Which Location has a Frequency of 102.5 fm?,"SELECT location FROM table_name_4 WHERE frequency = ""102.5 fm""" what is item id 4?,SELECT title FROM item where i_id = 4 What are the visit date and details of the visitor whose detail is 'Vincent'?,"SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" Find the number of patients who are not using the medication of Procrastin-X.,SELECT COUNT(*) FROM patient WHERE NOT SSN IN (SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X') Which 2007 had a 2009 taht was qf when its 2000 was a?,"SELECT 2007 FROM table_name_60 WHERE 2009 = ""qf"" AND 2000 = ""a""" "What is Money ( $ ), when Score is ""75-71-72-70=288""?",SELECT money___$__ FROM table_name_35 WHERE score = 75 - 71 - 72 - 70 = 288 What is the highest amount of plays for fluminense?,"SELECT MAX(played) FROM table_name_97 WHERE team = ""fluminense""" "What is the total Goals with a Rank smaller than 10, a Name of nicolas anelka, and Appearances larger than 9?","SELECT SUM(goals) FROM table_name_7 WHERE rank < 10 AND name = ""nicolas anelka"" AND appearances > 9" What is the affiliation when the institution was ohio christian university?,"SELECT affiliation FROM table_24195232_1 WHERE institution = ""Ohio Christian University""" Which pick's player was Marc Lewis (lhp)?,"SELECT pick FROM table_name_76 WHERE player = ""marc lewis (lhp)""" "On channel 32, when the power is 32 kW horizontal, what is the modulation?","SELECT modulation FROM table_name_91 WHERE power = ""32 kw horizontal"" AND channel = 32" What is the name of the opponent when anastasia pivovarova was the partner?,"SELECT opponents FROM table_name_15 WHERE partner = ""anastasia pivovarova""" In which year were most departments established?,SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1 What was the little league team from Ohio when the little league team from Kentucky was Warren County South LL Bowling Green?,"SELECT ohio FROM table_18461045_1 WHERE kentucky = ""Warren County South LL Bowling Green""" What is the name of the home team that played away team Footscray?,"SELECT home_team FROM table_name_46 WHERE away_team = ""footscray""" how many different languages do countries speak?,SELECT count ( distinct Official_native_language ) FROM country How many laps recorded in 2001?,SELECT laps FROM table_17802778_1 WHERE year = 2001 "What is the highest position for Nelson, with a played entry of more than 24?","SELECT MAX(position) FROM table_name_10 WHERE team = ""nelson"" AND played > 24" "Count the number of different positions in the club ""Bootup Baltimore"".","SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = ""Bootup Baltimore""" What are the names of some public parks in the United States?,SELECT park_name FROM park where country = 'US' What Championship had a Winning score of 6 & 5?,"SELECT championship FROM table_name_31 WHERE winning_score = ""6 & 5""" Find the average number of followers for the users who do not have any tweet.,SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets) "Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?","SELECT MAX(inns) FROM table_name_64 WHERE seasons = ""1987–2007"" AND runs > 11622" How many different carriers are there on the list?,SELECT count ( distinct carrier ) FROM device What venue features collingwood as the home side?,"SELECT venue FROM table_name_47 WHERE home_team = ""collingwood""" What is the maximum total amount paid by a customer? List the customer id and amount.,"SELECT customer_id , sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1" Count the number of songs.,SELECT count(*) FROM Songs "What round has an attendance of 12,127?","SELECT round FROM table_name_55 WHERE attendance = ""12,127""" Name the number of record for week 11,SELECT COUNT(record) FROM table_24126518_2 WHERE week = 11 Show me the captain rank that has no captain in Third-rate ship of the line class,"SELECT Rank FROM captain where class ! = ""Third-rate ship of the line""" "Of all the countries that share territory with more than one continent, in which of them does the average population not exceed 10 inhabitants per square kilometer?",SELECT NAME FROM country WHERE CODE IN ( SELECT country FROM encompasses GROUP BY country HAVING COUNT(continent) > 1 ) AND population / Area <= 10 How many brands of root beers are available in cans and contain corn syrup and artificial sweeteners?,SELECT COUNT(BrandID) FROM rootbeerbrand WHERE CornSyrup = 'TRUE' AND ArtificialSweetener = 'TRUE' AND AvailableInCans = 'TRUE' Find the last names of faculties who are members of computer science department.,"SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = ""Computer Science""" What are the lifespans of representatives in descending order of vote percent?,SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC How many of them have a coupon amount of 500,SELECT count ( * ) FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500 Which Position has a College of colorado?,"SELECT position FROM table_name_31 WHERE college = ""colorado""" Name the most april with record of 38-33-10,"SELECT MAX(april) FROM table_name_19 WHERE record = ""38-33-10""" Where is the headquarters of the getinge group located?,"SELECT headquarters FROM table_name_26 WHERE company = ""getinge group""" What is the Translated Title of Steinulven?,"SELECT translated_title FROM table_name_31 WHERE norwegian_title = ""steinulven""" Name the sum of votes % more than 19.5,SELECT SUM(votes) FROM table_name_26 WHERE vote__percentage > 19.5 What is the precise location of the place where Tommy Kono made a purchase in 2014?,"SELECT DISTINCT T1.Latitude, T1.Longitude FROM geolocation AS T1 INNER JOIN `transaction` AS T2 ON T2.LocationID = T1.LocationID INNER JOIN customers AS T3 ON T3.CustomerID = T2.CustomerID WHERE T3.First = 'Tommy' AND T3.Last = 'Kono' AND T2.TransactionDate LIKE '2014%'" Which date has rich stadium as the game site for week 1?,"SELECT date FROM table_name_13 WHERE game_site = ""rich stadium"" AND week = 1" List the candidates in district Maryland 1 where the republican party won.,"SELECT candidates FROM table_1341453_22 WHERE party = ""Republican"" AND district = ""Maryland 1""" Which course has a flat stage on 4 September?,"SELECT course FROM table_name_21 WHERE type = ""flat stage"" AND date = ""4 september""" What is the precise coordinate of Sac State Union?,"SELECT T2.Latitude, T2.Longitude FROM location AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID WHERE T1.LocationName = 'Sac State Union'" Who won the 250 cc in 1987?,"SELECT 250 AS _cc FROM table_name_31 WHERE year = ""1987""" Who is responsible for crime cases in district Lincoln?,SELECT commander FROM District WHERE district_name = 'Lincoln' What is the Record with a Date with december 9?,"SELECT record FROM table_name_97 WHERE date = ""december 9""" "WHAT IS THE TO PAR WITH T5 PLACE, AND PLAYER MARK MCCUMBER?","SELECT to_par FROM table_name_68 WHERE place = ""t5"" AND player = ""mark mccumber""" How many votes did Jim receive?,"SELECT votes from player WHERE Player_name LIKE ""Jim%""" how many of them are some form of English?,"SELECT count ( distinct Official_native_language ) FROM country WHERE Official_native_language LIKE ""%English%""" What are the low and high estimates of film markets?,"SELECT Low_Estimate , High_Estimate FROM film_market_estimation" What are the names of all students who took any course in the fall semester of the year 2003?,SELECT name FROM student WHERE id IN ( SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003 ) "Which customers have an insurance policy with the type code ""Deputy"" or ""Uniform""? Return the customer details.","SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy"" OR t1.policy_type_code = ""Uniform""" "The new entries this round was shown to be 12, in which phase would you find this?","SELECT phase FROM table_1281200_1 WHERE new_entries_this_round = ""12""" What the result for the hypo-meeting tournament in 1994?,"SELECT result FROM table_name_81 WHERE year = 1994 AND tournament = ""hypo-meeting""" Which park had most attendances in 2008?,SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1 Show the product type codes which have at least two products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING count(*) >= 2 Calculate the total amount of fine under the food equipment and utensil category.,SELECT SUM(T2.fine) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Food Equipment and Utensil' In 1990-2005 what is the lowest Start with Convs smaller than 2?,"SELECT MIN(start) FROM table_name_93 WHERE span = ""1990-2005"" AND conv < 2" "For the player who was drafted in the 1st round, 6th position in 1976, which team did he play in that year?",SELECT T2.tmID FROM draft AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.draftYear = T2.year WHERE T1.draftRound = 1 AND T1.draftSelection = 6 AND T1.draftYear = 1976 Why did Elly Koss need to take Acetaminophen?,SELECT T2.REASONDESCRIPTION FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description LIKE 'Acetaminophen%' Can you list the names of all the tourist attractions?,SELECT name from tourist_attractions What is the description of document type 'Paper'?,"SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = ""Paper"";" "What is the booking status code of the apartment with apartment number ""Suite 634""?","SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" What was the role in 1996?,"SELECT role FROM table_name_80 WHERE year = ""1996""" THE FIRST NAME OF THE STAFF WHO HAS HANDLED THE LAST COMPLAINT,SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised desc LIMIT 1 What was the ticket price of that party?,SELECT Ticket_Price FROM exhibition order by Year desc limit 1 What studio is director Reginald Hudlin from?,"SELECT studio FROM table_name_85 WHERE director = ""reginald hudlin""" Find the distinct first names of the students who have class senator votes.,SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE Provide the ID of professors who teach in both harder undergraduate course and master/graduate courses.,SELECT DISTINCT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_400' OR T1.courseLevel = 'Level_500' What is the Week of the game against Minnesota Vikings?,"SELECT MAX(week) FROM table_name_10 WHERE opponent = ""minnesota vikings""" "Which player is associated with the date June 14, 1969?","SELECT player FROM table_name_63 WHERE date = ""june 14, 1969""" Name the team for scott dixon,"SELECT team FROM table_17271495_1 WHERE driver = ""Scott Dixon""" What is the result for the year 1999?,SELECT result FROM table_name_56 WHERE year = 1999 How many distinct president votes are recorded?,SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD What is the sum of the all around with a 37.75 total?,SELECT SUM(all_around) FROM table_name_68 WHERE total = 37.75 List the name of artworks that are not nominated.,SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination) How many yachts had a position of 3?,SELECT COUNT(yacht) FROM table_14882588_3 WHERE position = 3 What is the Catch-up period for UTV?,"SELECT catch_up_period FROM table_name_30 WHERE owner = ""utv""" What is the name of the country where moving from is listed as bristol city?,"SELECT country FROM table_17634290_7 WHERE moving_from = ""Bristol City""" What is the candidate whose age is 27?,SELECT candidate FROM table_26263322_1 WHERE age = 27 What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?,"SELECT MIN(year) FROM table_name_97 WHERE team = ""baltimore ravens"" AND games < 15" "In 2006, how many trips ended at stations in Mountain View?",SELECT COUNT(T2.city) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.end_station_name WHERE T2.city = 'Mountain View' AND T1.start_date LIKE '%2006%' "What is the chapter description where the paragraph ""What, wilt thou hear some music, my sweet love?"" belongs?","SELECT T1.id, T1.Description FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id WHERE T2.PlainText = 'What, wilt thou hear some music, my sweet love?'" What is the average duration of trips which are started at Adobe on Almaden station to Ryland Park?,SELECT AVG(duration) FROM trip WHERE start_station_name = 'Adobe on Almaden' AND end_station_name = 'Ryland Park' And who scored the highest points out of them?,SELECT Name FROM player WHERE Points = ( Select max ( Points ) FROM player ) What is the average expected life expectancy for countries in the region of Central Africa?,"SELECT avg(LifeExpectancy) FROM country WHERE Region = ""Central Africa""" Who wrote the episode that received 1.83 million U.S. viewers?,"SELECT written_by FROM table_13477468_3 WHERE us_viewers__millions_ = ""1.83""" "Which organisation hired the most number of research staff? List the organisation id, type and detail.","SELECT T1.organisation_id , T1.organisation_type , T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;" What is the largest and smallest customer codes?,"SELECT max(customer_code) , min(customer_code) FROM Customers" How many students whose are playing the role of goalie?,SELECT COUNT(*) FROM tryout WHERE pPos = 'goalie' "What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?","SELECT MAX(points) FROM table_name_56 WHERE team = ""tacuary"" AND losses < 4" Show the outcome description of the Table Name: Research Outcomes,SELECT outcome_description FROM research_outcomes "List all keywords associated with the episode 'Take My Life, Please'.","SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Take My Life, Please';" Which team recorded the most number of road victories in 2005? Indicate the team ID.,SELECT tmID FROM TeamSplits WHERE YEAR = '2005' ORDER BY rW DESC LIMIT 1 "Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, and Mai governing body?","SELECT tuner FROM table_name_86 WHERE season > 2004 AND driver = ""gaurav gill"" AND team = ""team mrf"" AND governing_body = ""mai""" What is the country and state of the city named Dalton?,SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T3.city = 'Dalton' GROUP BY T2.county How severe was case JB296775? Give the index code for severity.,SELECT T2.iucr_no FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.case_number = 'JB296775' "What are the names of colleges that have two or more players, listed in descending alphabetical order?",SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC "What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?","SELECT date FROM table_name_7 WHERE site = ""memorial stadium • minneapolis, mn"" AND attendance = ""20,000"" AND result = ""w52-0""" Where did jamie cox & daniel marsh play against queensland?,"SELECT venue FROM table_name_71 WHERE opponent = ""queensland"" AND batsmen = ""jamie cox & daniel marsh""" When was nese malifa born?,"SELECT date_of_birth__age_ FROM table_name_19 WHERE player = ""nese malifa""" "When bergen is 88, what is the alesund?",SELECT MIN(ålesund) FROM table_19439864_2 WHERE bergen = 88 What is the largest numbered?,SELECT MAX(division) FROM table_14723382_1 Excellent! Can you filter this list to remove all professors who are associated with either Canoeing or Kayaking?,"SELECT T1.Fname, T1.Lname, T1.FacID, T3.activity_name from Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T3.actid WHERE T3.activity_name ! = 'Canoeing' OR T3.activity_name ! = 'Kayaking'" Which businesses with the category name Accessories have opening hours before 7AM?,"SELECT T1.business_id FROM Business_Hours AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Accessories' AND SUBSTR(T1.opening_time, -4, 2) * 1 < 7 AND T1.opening_time LIKE '%AM'" What is the total grant amount of the organisations described as research?,SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' How may players played for the Grizzlies from 2000-2002?,"SELECT COUNT(no) FROM table_16494599_1 WHERE years_for_grizzlies = ""2000-2002""" Calculate the average usage of each bike in the third quarter of year 2013. Find the average wind direction within the same period.,"SELECT AVG(T1.duration), AVG(T2.wind_dir_degrees) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), 1, INSTR(T2.date, '/') - 1) IN ('7', '8', '9') AND SUBSTR(CAST(T2.date AS TEXT), -4) = '2013'" Who owns the youngest dog? Give me his or her last name.,SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs ) "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.","SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2" Find the code of city where most of students are living in.,SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 What pick was Scott Glennie from the Western hockey league,"SELECT pick__number FROM table_name_62 WHERE league_from = ""western hockey league"" AND player = ""scott glennie""" What's the total number of Heat recorded for the british virgin islands?,"SELECT COUNT(heat) FROM table_name_5 WHERE country = ""british virgin islands""" Name the lowest version with a code of u+1034a that began after 2001.,"SELECT MIN(version) FROM table_name_85 WHERE code = ""u+1034a"" AND year > 2001" List the service id and details for the events.,"SELECT service_id , event_details FROM EVENTS" Which river with its mouth in the Donau River and a length greater than 500 km is located in Slovenia?,SELECT T2.River FROM country AS T1 INNER JOIN geo_river AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Slovenia' AND T2.River IN ( SELECT NAME FROM river WHERE Length > 500 AND River = 'Donau' ) Who wrote the episode that had a production code of 3ajn20?,"SELECT written_by FROM table_23242968_1 WHERE production_code = ""3AJN20""" what is the value when the british name is maxima?,"SELECT value FROM table_name_40 WHERE british_name = ""maxima""" How many tweets have the male users posted in total?,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' Find the name of companies that do not make DVD drive.,SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive' "what's the primary payload(s) with launch date being july 8, 1994","SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = ""July 8, 1994""" Find the city and name of bank branches that provide business loans.,"SELECT T1.bname , T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'" "What year (s) won was +2 the To par, and t22 the finish?","SELECT year_s__won FROM table_name_5 WHERE to_par = ""+2"" AND finish = ""t22""" What is the id of the product that is booked for 3 times?,SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*) = 3 Which school has the highest number of disabled students?,"SELECT T.school FROM ( SELECT T2.school, COUNT(T2.name) AS num FROM disabled AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name GROUP BY T2.school ) T ORDER BY T.num DESC LIMIT 1" What is the High rebounds of washington Team?,"SELECT high_rebounds FROM table_name_43 WHERE team = ""washington""" "What is the aveage Egypt Cup value for players with 0 CAF Champions League goals, 6 Egyptian Premier League goals, and totals under 6?",SELECT AVG(egypt_cup) FROM table_name_93 WHERE caf_champions_league = 0 AND egyptian_premier_league = 6 AND total < 6 What was the method for the resolution of nc where the fight lasted less than 3 rounds?,"SELECT method FROM table_name_72 WHERE round < 3 AND res = ""nc""" Please list the names of all the car models whose origin country is the USA.,SELECT DISTINCT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T2.country = T3.origin WHERE T3.country = 'USA' What was the result on september 26?,"SELECT result FROM table_name_43 WHERE date = ""september 26""" What county does Roberto Almeida live in?,"SELECT country FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida""" What is the occupation of the person with a hometown of Hampshire?,"SELECT occupation FROM table_name_17 WHERE hometown = ""hampshire""" "What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?","SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""Central Coast"" AND T2.year < 2005" Return the cell phone number and email address for all students.,"SELECT cell_mobile_number , email_address FROM STUDENTS" How many Laps does Eddie Cheever have?,"SELECT laps FROM table_name_39 WHERE driver = ""eddie cheever""" "What is the 2006 value of the 2009 A value, 2011 A value, and A as the 2007 value?","SELECT 2006 FROM table_name_68 WHERE 2009 = ""a"" AND 2011 = ""a"" AND 2007 = ""a""" Show the manager name with most number of gas stations opened after 2000.,SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1 "When rider John Hopkins had 21 laps, what was the grid?","SELECT grid FROM table_name_20 WHERE laps = ""21"" AND rider = ""john hopkins""" Which divisions have 565 as the number of winning tickets?,SELECT divisions FROM table_20195922_3 WHERE number_of_winning_tickets = 565 "Find the texts of assessment notes for teachers with last name ""Schuster"".","SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = ""Schuster""" What is the highest number of Played games with a Position smaller than 2 and Drawn games less than 4?,SELECT MAX(played) FROM table_name_13 WHERE position < 2 AND drawn < 4 What is title of album which track Balls to the Wall belong to?,"SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = ""Balls to the Wall""" In which year were most of ships built?,SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1 Which county has 728 (43%) listed under C. Abate?,"SELECT county FROM table_name_4 WHERE c_abate = ""728 (43%)""" How many goals did the player with less than 4 points have?,SELECT COUNT(goals) FROM table_name_74 WHERE points < 4 Which year did enrolled Gambier members leave?,"SELECT MIN(left) FROM table_261946_3 WHERE location__all_in_ohio_ = ""Gambier""" What are the ids of documents with letter 's' in the name with any expense budgets.,SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' Find the average fee on a CSU campus in 1996,SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996 Give the total money requested by entrepreneurs who are taller than 1.85.,SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85 how many residents does each property have?list property id,"SELECT T1.property_id , count ( * ) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id" "Among the players, what percentage are both captain and keeper?",SELECT CAST(SUM(CASE WHEN T2.Role_Desc = 'CaptainKeeper' THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Player_Id) FROM Player_Match AS T1 INNER JOIN Rolee AS T2 ON T1.Role_Id = T2.Role_Id "What are the vocal types used in song ""Badlands""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" Name the number of party for richard l. hanna (r) 53.1% mike arcuri (d) 46.9%,"SELECT COUNT(party) FROM table_19753079_35 WHERE candidates = ""Richard L. Hanna (R) 53.1% Mike Arcuri (D) 46.9%""" "Which game had an attendance of 5,000 and was away?","SELECT AVG(game) FROM table_name_23 WHERE venue = ""away"" AND attendance = 5 OFFSET 000" "Hi there! Can you tell me which three cities have the highest regional populations, and list the population totals too?","SELECT city, regional_population FROM city ORDER BY regional_population DESC LIMIT 3" List the major of each male student.,"SELECT Major FROM STUDENT WHERE Sex = ""M""" What is the debut for the person born in Poole?,"SELECT debut FROM table_name_82 WHERE born = ""poole""" "No worries, are there any other product details that I should know about?","SELECT other_product_details FROM products WHERE product_name = ""chervil""" Please list the dates on which the temperature of station no.2 was above the 30-year normal.,SELECT `date` FROM weather WHERE station_nbr = 2 AND depart > 0 Who constructed the car in round 1 with a Chassis of 250F?,"SELECT constructor FROM table_name_86 WHERE chassis = ""250f"" AND rounds = ""1""" How many heats does Julia Wilkinson have?,"SELECT COUNT(heat) FROM table_name_88 WHERE name = ""julia wilkinson""" Which country had a release of 1 VCD titled Martial Law: Substitutes?,"SELECT country FROM table_name_93 WHERE notes = ""1 vcd"" AND release_title = ""martial law: substitutes""" How many customers does Steve Johnson support?,"SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = ""Steve"" AND T1.last_name = ""Johnson"";" "What's the average bronze with a total number of medals being 1, with more than 0 silvers?",SELECT AVG(bronze) FROM table_name_25 WHERE total = 1 AND silver > 0 How many books were published by Ace Hardcover?,SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Ace Hardcover' "Find the names of all the products whose stock number starts with ""2"".","SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE ""2%""" Show the distinct position of players from college UCLA or Duke.,"SELECT DISTINCT POSITION FROM match_season WHERE College = ""UCLA"" OR College = ""Duke""" What are all the instruments used?,SELECT DISTINCT instrument FROM Instruments Can you add their positions into the table please?,"SELECT T1.pName,T2.cName,T2.pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 700" What is the number of air carriers in the database?,SELECT COUNT(Code) FROM `Air Carriers` "Please list the IDs of the menus that are DIYs of the restaurant and have the dish ""Clear green turtle"".",SELECT T2.menu_id FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Clear green turtle' AND T3.sponsor IS NULL Show the number of trains,SELECT count(*) FROM train "In 1997, how many orders were shipped via mail?","SELECT COUNT(l_orderkey) FROM lineitem WHERE STRFTIME('%Y', l_shipdate) = '1997' AND l_shipmode = 'MAIL'" "If the speaker is R. Muthiah, what is the election year maximum?","SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = ""R. Muthiah""" What are the grades served at Manchester Junior-Senior High School?,"SELECT grades FROM table_1984697_85 WHERE school = ""Manchester Junior-Senior High school""" "Tell me the tournament for score in the final of 1–6, 3–6","SELECT tournament FROM table_name_20 WHERE score_in_the_final = ""1–6, 3–6""" Name the year when start was 32,SELECT year FROM table_name_78 WHERE start = 32 What Game site has an Opponent of Miami Dolphins?,"SELECT game_site FROM table_name_90 WHERE opponent = ""miami dolphins""" What tournament took place on 7 Aug 2011?,"SELECT tournament FROM table_name_87 WHERE date = ""7 aug 2011""" Which Crowd has a Venue of princes park?,"SELECT MIN(crowd) FROM table_name_25 WHERE venue = ""princes park""" who was the opponent where the game is 14?,SELECT opponent FROM table_27539272_5 WHERE game = 14 What is the description of the type of the company who concluded its contracts most recently?,SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1 What was the highest crowd size at Windy Hill?,"SELECT MAX(crowd) FROM table_name_50 WHERE venue = ""windy hill""" What is the distance of the Sam's town 250 race?,"SELECT distance FROM table_name_24 WHERE race = ""sam's town 250""" "Among the shipments delivered by Maria Craft, how many shipments were delivered in 2017?","SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Maria' AND T2.last_name = 'Craft' AND STRFTIME('%Y', T1.ship_date) = '2017'" Who were all of the opponents in 1984?,"SELECT opponents FROM table_1399994_5 WHERE year = ""1984""" Find the name of the courses that do not have any prerequisite?,SELECT title FROM course WHERE NOT course_id IN (SELECT course_id FROM prereq) Return the prices of wines produced before 2010.,SELECT Price FROM WINE WHERE YEAR < 2010 "Show the census ranking of cities whose status are not ""Village"".","SELECT Census_Ranking FROM city WHERE Status != ""Village""" What time was the kickoff when the miami dolphins were the opponent?,"SELECT kickoff___et__ FROM table_name_31 WHERE opponent = ""miami dolphins""" "How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?","SELECT AVG(popular_votes) FROM table_name_2 WHERE office = ""us representative 4"" AND percentage = ""1.59%"" AND year > 1992" "From 1950 to 1970, how many coaches who received more than 1 award?",SELECT COUNT(coachID) FROM awards_coaches WHERE year BETWEEN 1950 AND 1970 GROUP BY coachID HAVING COUNT(coachID) > 1 How many Spins sources have a CCM Chart of CHR with a peak position less than 1?,"SELECT COUNT(spins__since_1998__source) AS :_mediabase FROM table_name_61 WHERE ccm_chart = ""chr"" AND peak_pos < 1" What NFL team was the player with pick number 28 drafted to?,SELECT nfl_team FROM table_20996923_25 WHERE pick__number = 28 How many bicycle trip were made within San Jose city during August 2013?,SELECT COUNT(T2.id) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T1.city = 'San Jose' AND T2.start_date LIKE '8/%/2013%' AND T2.start_station_name LIKE 'San Jose%' AND T2.end_station_name LIKE 'San Jose%' How many stations have fox as the primary affiliation and have been owned since 1986?,"SELECT COUNT(station) FROM table_1353096_1 WHERE primary_affiliation = ""Fox"" AND owned_since = ""1986""" Show the customer id and number of accounts with most accounts.,"SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1" Please list the full names of all the sanitarians who have inspected the facility Burbank.,"SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T3.dba_name = 'Burbank' AND T1.title = 'Sanitarian'" "Within the user who joined Yelp in 2004, explore the user ID with average star of 5 and it's review length on the business.","SELECT T2.user_id, T2.review_length FROM Users AS T1 INNER JOIN Reviews AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2004 AND T1.user_average_stars = 5" List all the customers' phone numbers from Ethiopia.,SELECT T1.c_phone FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'Ethiopia' "What are the other sub strings, that do not contain 'en'?",SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code not LIKE '%en%' How many transactions have the type code PUR and a share count larger than 50?,"SELECT count ( * ) FROM TRANSACTIONS WHERE transaction_type_code = ""PUR"" AND share_count > 50" Who is the oldest person whose job is student?,SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' ) "Which area has Years of 1–8, and a Name of broomfield school?","SELECT area FROM table_name_9 WHERE years = ""1–8"" AND name = ""broomfield school""" Name the explanation by rank is 10,SELECT explanation FROM table_2026548_1 WHERE rank_by_time_in_office = 10 "Who was the artist after 2012 with CD, LP as the format?","SELECT artist FROM table_name_64 WHERE year > 2012 AND format = ""cd, lp""" What is the Sipe Sipe Municipality minimum if the language is Quechua?,"SELECT MIN(sipe_sipe_municipality) FROM table_2509113_2 WHERE language = ""Quechua""" What are the names and account balances for customers who have taken a total amount of more than 5000 in loans?,"SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount) > 5000" Which show has a character of Rohan?,"SELECT show FROM table_name_89 WHERE character = ""rohan""" Which IHSAA Class is located in charlottesville?,"SELECT ihsaa_class FROM table_name_24 WHERE location = ""charlottesville""" What is the average rating stars and title for the oldest movie?,"SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)" Show me the name of the physician with employee id 2?,SELECT name FROM physician where EmployeeID = 2 "What time did the season finale air on May 20, 2003?","SELECT timeslot FROM table_name_43 WHERE finale = ""may 20, 2003""" What season had the Roma-Napoli match on 12 September 1993?,"SELECT season FROM table_name_1 WHERE match = ""roma-napoli"" AND date = ""12 september 1993""" What dates were the Don't Lie To Your Life Coach podcast reviews created?,SELECT created_at FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'Don''t Lie To Your Life Coach' ) "How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?","SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = ""botafogo"" AND position < 2" How many million U.S. viewers watched episode number 6 in the series?,SELECT us_viewers__million_ FROM table_25668962_1 WHERE no_in_series = 6 "Tally the player IDs of ""Man of the Series"" awardees for the seasons from 2011 to 2015.",SELECT Man_of_the_Series FROM Season WHERE 2011 < Season_Year < 2015 "How big is Africa, and how many nations make up the continent?","SELECT T1.Area, COUNT(T3.Name) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Asia' GROUP BY T1.Name, T1.Area" What is the plural if the singular is awu?,"SELECT plural FROM table_name_60 WHERE singular = ""awu""" What are the three countries that the least players are from?,SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3; Which products has been complained by the customer who has filed least amount of complaints?,SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1 What is the power play chances of New York Rangers in 2009?,SELECT CAST(PPG AS REAL) / PPC FROM Teams WHERE year = 2009 AND name = 'New York Rangers' How many orders were delivered in December 2019?,"SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Delivered' AND STRFTIME('%Y', T2.status_date) = '2019'" What are the full names of faculties with sex M and who live in building NEB?,"SELECT Fname , Lname FROM FACULTY WHERE sex = ""M"" AND Building = ""NEB""" Who is the player who received the man of the match award during the last match of Season 9?,SELECT T1.Player_name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match WHERE T2.Season_Id = 9 ORDER BY T2.Match_Date DESC LIMIT 1 Find the cities which were once a host city after 2010?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010 Find the student ID and personal name of the student with at least two enrollments.,"SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2" What is the address road of Stanley?,"SELECT Address_road FROM branch WHERE name = ""Stanley""" What is the 12th business's first line address?,SELECT T1.AddressLine1 FROM Address AS T1 INNER JOIN BusinessEntityAddress AS T2 ON T1.AddressID = T2.AddressID WHERE T2.BusinessEntityID = 12 When did channel 83 in singapore launch?,"SELECT launched FROM table_name_81 WHERE territory = ""singapore"" AND channel = 83" What's the date of Bahrain International Circuit?,"SELECT date FROM table_name_95 WHERE circuit = ""bahrain international circuit""" How many points on average are there for less than 5 games played?,SELECT AVG(points) FROM table_name_84 WHERE games_played < 5 Find the number of different products that are produced by companies at different headquarter cities.,"SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter" Who is the advisor of the youngest student?,SELECT Advisor FROM Student ORDER BY age LIMIT 1 How many companies have an industry of banking?,"SELECT count ( * ) FROM Companies WHERE Industry = ""Banking""" what is Armani's customer address? | Do you mean the address of the customer with a first name Armani? | yes,"SELECT customer_address FROM Customers WHERE customer_first_name = ""Armani""" "List name, dates active, and number of deaths for all storms with at least 1 death.","SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1;" Show the name of the customer who has the most orders.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 How many trips did not end in San Francisco?,"SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city != ""San Francisco""" What date did the show air when Sean Lock was the headliner?,"SELECT airdate FROM table_23122988_1 WHERE headliner = ""Sean Lock""" What are the names of races held between 2009 and 2011?,SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011 Which of the films directed by Álex de la Iclesia is the most popular among Mubi users?,SELECT movie_title FROM movies WHERE director_name = 'Åke Sandgren' ORDER BY movie_popularity DESC LIMIT 1 "What is Pos., when Player is ""Nigel De Jong""?","SELECT pos FROM table_name_33 WHERE player = ""nigel de jong""" Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.,SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology') How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?,SELECT COUNT(cultural_and_educational_panel) FROM table_name_41 WHERE university_of_dublin = 3 AND labour_panel > 11 Find all the songs that do not have a lead vocal.,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""lead""" What is the T8 Place Player with a Score of 68-74=142?,"SELECT player FROM table_name_67 WHERE place = ""t8"" AND score = 68 - 74 = 142" What year saw a score of 8-5?,"SELECT year FROM table_name_9 WHERE score = ""8-5""" What date has 10 for the week?,SELECT date FROM table_name_66 WHERE week = 10 How about Tyler Swift?,"SELECT followers FROM user_profiles where name = ""Tyler Swift""" What district is incumbent melvin price from?,"SELECT district FROM table_1342233_13 WHERE incumbent = ""Melvin Price""" How many schools are located in South Brisbane?,"SELECT COUNT(school) FROM table_11318462_29 WHERE location = ""South Brisbane""" Find each target user's name and average trust score.,"SELECT T1.name , avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id" How many movie ratings have more than 3 stars?,SELECT count(*) FROM Rating WHERE stars > 3 What prefecture is listed in the map as number 39?,"SELECT prefecture FROM table_221398_1 WHERE number_in_map = ""39""" Which city has the most frequent destination airport?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1 Who was the driver in 1964?,"SELECT driver FROM table_name_83 WHERE year = ""1964""" What was the record after the January 6 game?,"SELECT record FROM table_name_44 WHERE date = ""january 6""" what is the id of cup,SELECT i_id from item where title = 'cup' give the least number of times an episode was shown from 1997-1998,SELECT MIN(no_in_season) FROM table_10953197_6 "What is the product category description and unit of measurement of category ""Herbs""?","SELECT product_category_description , unit_of_measure FROM ref_product_categories WHERE product_category_code = ""Herbs""" How much does each charge type costs? List both charge type and amount.,"SELECT charge_type , charge_amount FROM Charges" What is the total number of businesses with a tax code H25?,SELECT COUNT(tax_code) FROM businesses WHERE tax_code = 'H25' "What is the value of the points column when the value of the column lost is ""lost""","SELECT points FROM table_13564702_4 WHERE ""lost"" = ""lost""" What 1935 has 4 as a 1953?,"SELECT 1935 FROM table_name_6 WHERE 1953 = ""4""" What is the product with the highest height? Give me the catalog entry name.,SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 What is the source for Zares at 8.6%?,"SELECT source FROM table_name_12 WHERE zares = ""8.6%""" Tell me the Host interface for digital of dvb-t (cx22702) and model of nova-t pci (90002),"SELECT host_interface FROM table_name_34 WHERE digital = ""dvb-t (cx22702)"" AND model = ""nova-t pci (90002)""" how many accounts on the table,SELECT count ( * ) FROM Accounts In which condition(s) is bleeding time prolonged and prothrombin time unaffected?,"SELECT condition FROM table_1555308_1 WHERE bleeding_time = ""Prolonged"" AND prothrombin_time = ""Unaffected""" Which Position has a Player of bernard thompson?,"SELECT position FROM table_name_64 WHERE player = ""bernard thompson""" Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.,"SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'" What are the names of customers with a higher checking balance than savings balance?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance What is the home team score that played at windy hill?,"SELECT home_team AS score FROM table_name_81 WHERE venue = ""windy hill""" How many reviewers listed?,SELECT count(*) FROM Reviewer Who are the quarterfinalists for runner-up jimmy connors?,"SELECT quarterfinalists FROM table_21584646_10 WHERE runner_up = ""Jimmy Connors""" Name the total number of r for coppa italia larger than 1.0,SELECT COUNT(r) FROM table WHERE coppa_italia > 1.0 Could you please organize those in ascending order?,"SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC" What was the result of the Oregon 5 District incumbent who was first elected in 1996?,"SELECT results FROM table_name_18 WHERE first_elected = 1996 AND district = ""oregon 5""" which one is the longest distance?,SELECT max ( distance ) FROM Flight "What is the highest gold when bronze is 1, and rank is 5?",SELECT MAX(gold) FROM table_name_93 WHERE bronze = 1 AND rank = 5 List them please,SELECT Studio FROM film GROUP BY Studio HAVING avg ( Gross_in_dollar ) > = 4500000 what is the name of the constructor that has the circuit zeltweg airfield?,"SELECT constructor FROM table_1140105_6 WHERE circuit = ""Zeltweg Airfield""" Provide the competitors' names who joined the 2000 Summer.,SELECT T3.full_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '2000 Summer' Who is the player from a round larger than 5 and the college/junior/club team of Leningrad SKA (russia)?,"SELECT player FROM table_name_94 WHERE round > 5 AND college_junior_club_team = ""leningrad ska (russia)""" Can you list the names and nationalities of the swimmers who have never won?,"SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' except SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING count ( * ) > 1" HOW MANY DIRECTORE IN MOVIE TABLE ? List them.,SELECT distinct Director FROM movie group by Director Which university had the highest reputation in 2012?,SELECT T2.university_name FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2012 ORDER BY T1.score DESC LIMIT 1 "How much is the total gross of the movie with a song titled ""Little Wonders""?",SELECT T1.total_gross FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie_title WHERE T2.song = 'Little Wonders' How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?,"SELECT us_viewers__million_ FROM table_28037619_2 WHERE directed_by = ""Roger Young"" AND written_by = ""Debra J. Fisher""" What are the least losses of Mortlake having less than 970 against?,"SELECT MIN(losses) FROM table_name_96 WHERE club = ""mortlake"" AND against < 970" Find the name of all the cities and states.,SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses How many films were released in 2007?,SELECT COUNT(*) FROM movies WHERE movie_release_year = 2007 "On image no. 20, identify the attribute ID that is composed of the highest number of objects.",SELECT ATT_CLASS_ID FROM IMG_OBJ_ATT WHERE IMG_ID = 20 GROUP BY ATT_CLASS_ID ORDER BY COUNT(ATT_CLASS_ID) DESC LIMIT 1 Find the branch name of the bank that has the most number of customers.,SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 What is the average bike availablility for stations not in Palo Alto?,"SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city = ""Palo Alto"")" How many events are there for each party?,"SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" How many NHL teams does Terry French play for?,"SELECT COUNT(nhl_team) FROM table_1213511_2 WHERE player = ""Terry French""" can you show me a list of saving balance?,SELECT * FROM SAVINGS what are the previous performance details for games involving the montreal canadiens?,"SELECT record FROM table_23308178_7 WHERE opponent = ""Montreal Canadiens""" Show the ids of all employees who have destroyed a document.,SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed "What opponent has october less than 20, and 8 for points?",SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8 Name the outcome for wimbledon,"SELECT outcome FROM table_2009095_2 WHERE championship = ""Wimbledon""" What game number did the Wildcats play Purdue?,"SELECT game FROM table_20850527_1 WHERE opponent = ""Purdue""" "What Rank has a gold smaller than 1, and a silver larger than 0?",SELECT rank FROM table_name_25 WHERE gold < 1 AND silver > 0 "Where was the game held when the attendance was 56,770?","SELECT game_site FROM table_name_63 WHERE attendance = ""56,770""" Tell me the season for quarter-final position of 4th,"SELECT season FROM table_name_97 WHERE play_offs = ""quarter-final"" AND pos = ""4th""" What is the name of the most expensive car?,SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1 "Which location names contain the word ""film""?","SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE ""%film%""" What is the time with fewer than 5 lanes for the United States?,"SELECT SUM(time) FROM table_name_82 WHERE lane < 5 AND nationality = ""united states""" "Among the active businesses in Ahwatukee, which of them are still open in Sunday?",SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Ahwatukee' AND T1.active LIKE 'TRUE' AND T3.day_of_week LIKE 'Sunday' Name the money spent for 2Q having candidate of john mccain,"SELECT money_spent, _2q FROM table_name_84 WHERE candidate = ""john mccain""" Name the decease spouse for carol deluise,"SELECT deceased_spouse FROM table_24143253_1 WHERE name = ""Carol DeLuise""" what is the club id of stud 1001,select clubid from Member_of_club where stuid = 1001 What are the Notes when the Method is decision?,"SELECT notes FROM table_name_74 WHERE method = ""decision""" What is the shop name corresponding to the shop that opened in the most recent year?,SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1 "For each account type, find the average account balance of customers with credit score lower than 50.","SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type" What is the first yar that someone won with a score of 68-66-68-71=273?,SELECT MIN(year) FROM table_18862490_2 WHERE score = 68 - 66 - 68 - 71 = 273 What is the total number of years Andy Murray was at Wimbledon?,"SELECT COUNT(year) FROM table_name_27 WHERE wimbledon = ""andy murray""" "What is the description of the club named ""Tennis Club""?","SELECT clubdesc FROM club WHERE clubname = ""Tennis Club""" "What is the Score when the winner was suntory sungoliath, and the number attendance was n/a?","SELECT score FROM table_name_86 WHERE winner = ""suntory sungoliath"" AND attendance = ""n/a""" What are the details for all the engineers? | Do you mean the other details for all the engineers? | Yes please,SELECT other_details from Maintenance_Engineers can you please show me all the advisors?,SELECT advisor FROM Student How many events had participants whose details had the substring 'Dr.',SELECT count(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%' Which Type has a Name of edson ratinho?,"SELECT type FROM table_name_14 WHERE name = ""edson ratinho""" "What authors have clarno formation as the unit, actinidia oregonensis as the name?","SELECT authors FROM table_name_55 WHERE unit = ""clarno formation"" AND name = ""actinidia oregonensis""" how many staff are not gender 1?,select count ( * ) from staff where gender ! = 1 How many times has Eunice Morar placed an order,"SELECT count ( * ) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id where t1.customer_name = ""Eunice Morar""" "What are the name, latitude, and city of the station with the lowest latitude?","SELECT name , lat , city FROM station ORDER BY lat LIMIT 1" Sort employee names by their age in ascending order.,SELECT name FROM employee ORDER BY age Which University students and adults have minimum diameter of Sakigawa for female gender?,"SELECT university_students_and_adults__18yrs + _ FROM table_name_86 WHERE specification = ""minimum diameter of sakigawa"" AND gender = ""female""" what is email id of Mary | Did you mean what is the email of Mary or uid or her? | yes user profiles email id of mary,"SELECT email FROM user_profiles WHERE name = ""Mary""" What year was Kirkland founded?,"SELECT founded FROM table_13759592_2 WHERE location = ""Kirkland""" What is the total price of items brought from ABC School Supply with a listed type of Other? Also include the list of the buyers' coordinates and school districts they belong to.,"SELECT T2.item_unit_price * T2.item_quantity price, T1.school_latitude, T1.school_longitude FROM projects AS T1 INNER JOIN resources AS T2 ON T1.projectid = T2.projectid WHERE T2.vendor_name = 'ABC School Supply' AND T2.project_resource_type = 'Other' AND T1.school_district = 'Hillsborough Co Pub Sch Dist'" "Other than the Chief Executive Officer, who is the employee who has the highest payrate? State the rate.","SELECT T2.FirstName, T2.LastName FROM EmployeePayHistory AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Employee AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T3.JobTitle NOT LIKE 'Chief Executive Officer' ORDER BY T1.Rate DESC LIMIT 1" Who is the golfer that golfs for Northern Ireland?,"SELECT player FROM table_name_54 WHERE country = ""northern ireland""" What is the IATA for Korla Airport.,"SELECT iata FROM table_name_33 WHERE airport = ""korla airport""" "What is Event, when Viewers is 2.4 Million, and when Rating is 1.4?","SELECT event FROM table_name_49 WHERE viewers = ""2.4 million"" AND rating = ""1.4""" What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?,"SELECT 2008 AS _candidates FROM table_name_18 WHERE elected < 1994 AND incumbent = ""jim mcdermott""" How many courses are offered?,SELECT count(DISTINCT crs_code) FROM CLASS Do you have the best composer of each top 5 genre by number of tracks?,"SELECT t1.id,T2.composer FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 5" Where is wang li duan cheng located?,"SELECT location FROM table_name_3 WHERE authors = ""wang li duan cheng""" What is the maximum sales of those companies?,"SELECT max ( sales_billion ) FROM Companies WHERE Industry ! = ""Banking""" What are the ids of all students who are not video game players?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games How many states have smaller colleges than average?,SELECT count(DISTINCT state) FROM college WHERE enr < (SELECT avg(enr) FROM college) Which loss had a player lower than 18?,SELECT MIN(lost) FROM table_name_63 WHERE played < 18 "where is Flamengo Beach , Rio de Janeiro situated ? | did you want to return its country? | where its located ?","SELECT country FROM MATCH where location = 'Flamengo Beach , Rio de Janeiro'" how many papers are presented on the table,SELECT count ( * ) FROM papers How many male users have the log of events at the same longitude of 114?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T2.longitude = 114 AND T1.gender = 'M' Which player scored the most points and how many were scored on November 6?,"SELECT high_points FROM table_27744844_5 WHERE date = ""November 6""" What genders did Lynmore Primary School take?,"SELECT gender FROM table_name_68 WHERE name = ""lynmore primary school""" Calculate the average crime rate per month in the highest populous area.,SELECT CAST(COUNT(T2.report_no) AS REAL) / 12 FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no GROUP BY T1.community_area_no HAVING COUNT(T1.population) ORDER BY COUNT(T1.population) LIMIT 1 Please list the birth cities of the players who have won an award in the year 1970.,SELECT DISTINCT T1.birthCity FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1970 "If the opponent is Kristian Pless, who was it against?","SELECT against FROM table_23314951_4 WHERE opponent = ""Kristian Pless""" When was the project with the highest quantity went live on the site? Indicate the grade level for which the project materials are intended.,"SELECT T2.date_posted, T2.grade_level FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid ORDER BY T1.item_quantity DESC LIMIT 1" List all the languages used in Europe.,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Europe' Which award was given in 2012?,"SELECT award FROM table_name_16 WHERE year = ""2012""" What is the rd for the canadian grand prix?,"SELECT rd FROM table_1132588_3 WHERE grand_prix = ""Canadian grand_prix""" What is the poison/klesha word for moha avijja in pali?,"SELECT poison_klesha FROM table_name_29 WHERE pali = ""moha avijja""" Who had a best time of 1:00.870?,"SELECT name FROM table_name_24 WHERE best = ""1:00.870""" What is the description of the film Artist Coldblooded?,SELECT description FROM film WHERE title = 'ARTIST COLDBLOODED' Name the total number of draw for played more than 18,SELECT COUNT(draw) FROM table_name_47 WHERE played > 18 When chris konopka category:articles with hcards is the name what is the year?,"SELECT years FROM table_29743928_4 WHERE name = ""Chris Konopka Category:Articles with hCards""" "What is the competition that was at serravalle, san marino?","SELECT competition FROM table_name_80 WHERE venue = ""serravalle, san marino""" "Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?","SELECT college FROM table_name_90 WHERE round > 4 AND overall < 237 AND name = ""ted cottrell""" Show the ids of all employees who have authorized destruction.,SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed Select the name of each manufacturer along with the name and price of its most expensive product.,"SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" What was the attendance on July 30?,"SELECT AVG(attendance) FROM table_name_77 WHERE date = ""july 30""" "If the school is John A. Logan College, what are the colors?","SELECT colors FROM table_22319599_1 WHERE school = ""John A. Logan College""" "What is the booking status code of the apartment with apartment number ""Suite 634""?","SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" What are the names of the cameras that have taken picture of the most mountains?,SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1 List all movie id associated with Brittany Harris.,"SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" How many employees have certificate.,SELECT count(DISTINCT eid) FROM Certificate How long was Kendall Allen's complaint about her credit card?,SELECT T3.ser_time FROM events AS T1 INNER JOIN client AS T2 ON T1.Client_ID = T2.client_id INNER JOIN callcenterlogs AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.first = 'Kendall' AND T2.last = 'Allen' AND T2.sex = 'Female' AND T1.Product = 'Credit card' Name the most overall for dwight freeney with round less than 1,"SELECT MAX(overall) FROM table_name_8 WHERE name = ""dwight freeney"" AND round < 1" "What is the title of all the cartools that are on the TV Channel with the series name ""Sky Radio""?","SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";" Which product line has the most products that are salable?,SELECT ProductLine FROM Product WHERE FinishedGoodsFlag = 1 GROUP BY ProductLine ORDER BY COUNT(FinishedGoodsFlag) DESC LIMIT 1 In which class would the vessel Hyundai Tenacity be placed?,"SELECT class FROM table_name_77 WHERE vessel_name = ""hyundai tenacity""" How many distinct official languages are there among countries of players whose positions are defenders.,"SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" What was the score on November 25?,"SELECT score FROM table_13762472_3 WHERE date = ""November 25""" What are the names of customers who never made an order.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id Provide the games that can be played on the SCD platform.,SELECT T4.game_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T2.platform_name = 'SCD' what is the borough or A[›] Census area when the Name A[›] is jerome lake dam?,"SELECT borough_or_a[›_] AS _census_area FROM table_name_81 WHERE name_a[›_] = ""jerome lake dam""" what was the attendance at the home venue with result w 3-1?,"SELECT MAX(attendance) FROM table_name_99 WHERE venue = ""home"" AND result = ""w 3-1""" How many million U.s. Viewers watched episode 12 in the season?,"SELECT us_viewers__millions_ FROM table_22265225_1 WHERE no_in_season = ""12""" "What opponent has December 6, 1964 as the date?","SELECT opponent FROM table_name_40 WHERE date = ""december 6, 1964""" "Where was a game played on 23,24,25,26 july 1992?","SELECT venue FROM table_name_13 WHERE date = ""23,24,25,26 july 1992""" Show all student IDs with more than total 10 hours per week on all sports played.,SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10 How many simple assaults happened on 2018/9/8?,SELECT SUM(CASE WHEN T2.secondary_description = 'SIMPLE' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.date LIKE '%9/8/2018%' AND T2.primary_description = 'ASSAULT' Who was the away team when Carlton was the home team?,"SELECT away_team FROM table_14312471_1 WHERE home_team = ""Carlton""" How many customers rented for an above-average period?,SELECT COUNT(customer_id) FROM rental WHERE return_date - rental_date > ( SELECT AVG(return_date - rental_date) FROM rental ) Please list annual indicator names which have values of more than 100 in 1965.,SELECT DISTINCT T2.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year = 1965 AND T1.Value > 100 AND T2.Periodicity = 'Annual' What rank is He Yingqin who was born before 1890?,"SELECT AVG(rank) FROM table_name_75 WHERE name = ""he yingqin"" AND birth < 1890" What are names for top three branches with most number of membership?,SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 What's the status of the lesson by the customer with first name Rylan and last name Goodwin,"SELECT T1.lesson_status_code FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin""" What are the maximum and minimum number of silver medals for all the clubs?,"SELECT max(Silver) , min(Silver) FROM club_rank" Name the most time for katrin meißner and rank less than 5,"SELECT MAX(time) FROM table_name_71 WHERE name = ""katrin meißner"" AND rank < 5" How many overalls has 1 combined and 24 downhills?,"SELECT overall FROM table_name_9 WHERE combined = ""1"" AND downhill = ""24""" "What is the shipping address for the sales order ""43873""?",SELECT T1.ShipToAddressID FROM SalesOrderHeader AS T1 INNER JOIN Address AS T2 ON T1.BillToAddressID = T2.AddressID WHERE T1.SalesOrderID = 43873 GROUP BY T1.ShipToAddressID What was the score of the league cup in the 2007-08 season?,"SELECT score FROM table_name_90 WHERE competition = ""league cup"" AND season = ""2007-08""" "for which user id rating is high | did you mean for which user id is the rating highest? | ok, find user id who gives the rating 10",SELECT T1.u_id FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id WHERE T2.rating = 10 How many professors attained either Ph.D. or Masters degrees?,SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' "What are their student details, please?",SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id where T3.course_name = 'statistics' what is the average level of membership?,SELECT avg ( level_of_membership ) FROM member What is Diego Junqueira Gabriel Trujillo-Soler's opponent's score?,"SELECT score FROM table_name_35 WHERE opponents = ""diego junqueira gabriel trujillo-soler""" "Among the white patients, what is the average body height of the patients?",SELECT AVG(T1.VALUE) FROM observations AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.race = 'white' AND T1.DESCRIPTION = 'Body Height' Who was the first elected incumbent in the 1946 election?,"SELECT incumbent FROM table_1342149_6 WHERE first_elected = ""1946""" How much did the win rate increase for the team after getting the No.1 NBA draft pick in the 2003 season than previous season?,SELECT (CAST(SUM(CASE WHEN T1.year = 2004 THEN T1.won ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.year = 2004 THEN T1.won + T1.lost ELSE 0 END)) - (CAST(SUM(CASE WHEN T1.year = 2003 THEN T1.won ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.year = 2003 THEN T1.won + T1.lost ELSE 0 END)) FROM teams AS T1 INNER JOIN draft AS T2 ON T1.tmID = T2.tmID WHERE T2.draftRound = 1 AND T2.draftYear = 2003 In which Wikipedia page does the word ID No. 174 have the most appearances? Give the title.,SELECT title FROM pages WHERE pid = ( SELECT pid FROM pages_words WHERE wid = 174 ORDER BY occurrences DESC LIMIT 1 ) "Who were the partners in games where the score was 7-5, 2-6, [6-10]?","SELECT partner FROM table_2259502_2 WHERE score = ""7-5, 2-6, [6-10]""" "Who's the Winning team with a Pole position of robby gordon, and a Date of june 11?","SELECT winning_team FROM table_name_81 WHERE pole_position = ""robby gordon"" AND date = ""june 11""" What car does Scott Deware own that has rounds under 12?,"SELECT car_s_ FROM table_name_24 WHERE rounds < 12 AND owner_s_ = ""scott deware""" "What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?","SELECT make_and_model FROM table_name_67 WHERE fuel_propulsion = ""diesel"" AND floor_type = ""high"" AND bicycle_capacity† < 3 AND quantity = 4" Provide the phone number of the customer with the highest total price in an order.,SELECT T2.c_phone FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey ORDER BY T1.o_totalprice DESC LIMIT 1 Name the platforms for cityengine,"SELECT platforms FROM table_19495707_1 WHERE application = ""CityEngine""" How many outcomes were there for matches played with Chuck McKinley on grass in 1962?,"SELECT COUNT(outcome) FROM table_2215159_2 WHERE surface = ""Grass"" AND partner = ""Chuck McKinley"" AND year = 1962" Who were the candidates in districk Pennsylvania 12?,"SELECT candidates FROM table_2668199_2 WHERE district = ""Pennsylvania 12""" "What is the total number of attendence has points greater than 40, and detroit as the home?","SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = ""detroit""" How many authors are affiliated with University of California Berkeley?,SELECT COUNT(Id) FROM Author WHERE Affiliation = 'University of California Berkeley' Which record has a Visitor of magic?,"SELECT record FROM table_name_89 WHERE visitor = ""magic""" List the most common type of artworks.,SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 How many customers do we have?,SELECT COUNT(*) FROM Customers What is the email address of the customer who made a purchase in transaction 100016?,SELECT T1.Email FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.TransactionID = '100016' "What is the Athlete from Riverbank, California?","SELECT athlete FROM table_name_67 WHERE city = ""riverbank, california""" What year before 1980 has is the highest Inflation Index (2000=100)?,SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_34 WHERE year < 1980 What was the nationality of the athlete that ran the 10000 m event?,"SELECT nationality FROM table_name_75 WHERE event = ""10000 m""" What place in Lon Hinkle in?,"SELECT place FROM table_name_18 WHERE player = ""lon hinkle""" "who is the opponent when the score is 3–6, 6–1, 7–5?","SELECT opponent FROM table_name_22 WHERE score = ""3–6, 6–1, 7–5""" What are the coupon amount of the coupons owned by both good and bad customers?,SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad' What was the result of Game 3 of this searson?,"SELECT result FROM table_name_95 WHERE game = ""game 3""" "Find the last names of all the authors that have written a paper with title containing the word ""Monadic"".","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE ""%Monadic%""" Show different nationalities along with the number of hosts of each nationality.,"SELECT Nationality , COUNT(*) FROM HOST GROUP BY Nationality" Describe the capital city and languages used in the country with the shortest life expectancy.,"SELECT T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode ORDER BY T1.LifeExpectancy LIMIT 1" When is the completed date of the destroyer with a pennant number h63?,"SELECT completed FROM table_name_91 WHERE pennant_number = ""h63""" Can I have the dates for all the shipments?,SELECT shipment_date FROM shipments "What is the total number of Against, when Date is ""27/02/2005""?","SELECT COUNT(against) FROM table_name_63 WHERE date = ""27/02/2005""" What is the least number of penalties he got when his point total was over 1419 in more than 98 games?,SELECT MIN(penalties) FROM table_name_45 WHERE points_total = 1419 AND played > 98 What class year was the player whose highlights were 35 career INTs from?,"SELECT MIN(class_year) FROM table_22982552_9 WHERE highlight_s_ = ""35 career INTs""" What is the average work number of Snowdon Ranger with the builder Vulcan Foundry?,"SELECT AVG(works_number) FROM table_name_57 WHERE builder = ""vulcan foundry"" AND name = ""snowdon ranger""" Which player is from Murray State college?,"SELECT player FROM table_name_9 WHERE college = ""murray state""" How many years were there with 348 attempts?,SELECT COUNT(yards) FROM table_1037590_1 WHERE attempts = 348 Which NHL team has a Player of steve durbano?,"SELECT nhl_team FROM table_name_97 WHERE player = ""steve durbano""" Who was ashley sampi's opponent?,"SELECT opponent FROM table_name_71 WHERE player = ""ashley sampi""" Find the number and averaged salary of all instructors who are in the department with the highest budget.,"SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1" Name the year for points less than 20 and chassis of dallara 3087,"SELECT year FROM table_name_62 WHERE points < 20 AND chassis = ""dallara 3087""" Name the bleeding time with platelet count of unaffected and condition of factor xii deficiency,"SELECT bleeding_time FROM table_name_83 WHERE platelet_count = ""unaffected"" AND condition = ""factor xii deficiency""" "Which workshop groups have bookings with status code ""stop""? Give me the names.","SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop""" "Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?",SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2 Which Result has a Captain 2 of louis burger?,"SELECT result FROM table_name_81 WHERE captain_2 = ""louis burger""" which country has miss universe Hungary as former pageant?,"SELECT country_territory FROM table_14308895_2 WHERE former_pageant = ""Miss Universe Hungary""" Name the qual for rank of 9,"SELECT qual FROM table_name_78 WHERE rank = ""9""" "Show the description for role name ""Proof Reader"".","SELECT role_description FROM ROLES WHERE role_name = ""Proof Reader""" What was Peter Woolfolk's Total Rebound average?,"SELECT SUM(total_rebounds) FROM table_name_59 WHERE player = ""peter woolfolk""" What is the Original title for an Episode Actor role which was Directed by Géza Bereményi?,"SELECT original_title FROM table_name_59 WHERE role = ""episode actor"" AND directed_by = ""géza bereményi""" Which actor plays Optimus Prime?,SELECT DISTINCT T1.person_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T2.character_name = 'Optimus Prime (voice)' Please indicate the business id have the closing time with the category of Arts & Entertainment on Sunday.,"SELECT T1.business_id, T3.closing_time FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T1.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T2.category_name = 'Arts & Entertainment' AND T4.day_of_week = 'Sunday'" What are the advisors,SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2 "At a longitude of 293.0e, what is the diameter, in km?","SELECT diameter__km_ FROM table_16799784_9 WHERE longitude = ""293.0E""" How many cases of billing dispute issues occurred in the Mountain division?,SELECT COUNT(T1.Issue) FROM events AS T1 INNER JOIN client AS T2 ON T1.Client_ID = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.Issue = 'Billing disputes' AND T3.division = 'Mountain' "Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?","SELECT winning_driver FROM table_name_13 WHERE fastest_lap = ""michael schumacher"" AND constructor = ""ferrari"" AND pole_position = ""jenson button""" what position is number 22?,SELECT position FROM table_25429986_1 WHERE number = 22 Which does the lhp player with the first name lachlan bat?,"SELECT bats FROM table_name_9 WHERE position = ""lhp"" AND first = ""lachlan""" How many students does KAWA GORDON teaches?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""KAWA"" AND T2.lastname = ""GORDON""" What was John Watson's time/retired?,"SELECT time_retired FROM table_name_46 WHERE driver = ""john watson""" What is the Stadium that hosts the team Jacksonville Jaguars?,"SELECT stadium FROM table_name_1 WHERE host_team = ""jacksonville jaguars""" What league did they play in 2001?,SELECT league FROM table_name_39 WHERE year = 2001 What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame?,"SELECT nationality FROM table_name_59 WHERE position = ""guard"" AND school_club_team = ""notre dame""" Can you tell which product has been ordered the most number of times?,SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count ( * ) DESC LIMIT 1 List the customers first and last name of 10 least expensive invoices.,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;" List the names of coins that cannot be traded in 2014.,SELECT name FROM coins WHERE date_added LIKE '2014%' AND status = 'untracked' What engine does driver james hunt have?,"SELECT engine FROM table_name_94 WHERE driver = ""james hunt""" What is the smallest weight of the car produced with 8 cylinders on 1974 ?,select min(weight) from cars_data where cylinders = 8 and year = 1974 What country does Round 4 come from?,SELECT nationality FROM table_name_12 WHERE round = 4 "Where is the first day cover cancellation for the 3 April 2008 IIHF World Championships, Quebec City stamp?","SELECT first_day_cover_cancellation FROM table_11900773_6 WHERE date_of_issue = ""3 April 2008"" AND theme = ""IIHF World Championships, Quebec City""" How many million viewers watched episodes prior to episode 2.0?,SELECT viewers__millions_ FROM table_27927185_1 WHERE episode__number < 2.0 "For the non-essential genes whose functions are transcription, how many of them are not located in the cytoplasm?",SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Localization != 'cytoplasm' AND T1.Function = 'TRANSCRIPTION' AND T1.Essential = 'NON-Essential' What is the money rank of the poker player with the highest earnings?,SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 "What is the total number of Wins, when Draws is less than 2?",SELECT COUNT(wins) FROM table_name_48 WHERE draws < 2 How many hours does A Magnetic Primer Designer have?,SELECT Hours FROM projects where Name = 'A Magnetic Primer Designer' Give the phones for departments in room 268.,SELECT DPhone FROM DEPARTMENT WHERE Room = 268 Whose address of operation was the Echirax Concession? ,"SELECT client FROM table_13150274_1 WHERE area_of_operation = ""EchiraX Concession""" What is the average rating for each episode in season 9?,SELECT SUM(rating) / COUNT(episode_id) FROM Episode WHERE season = 9 What are the names of all races held after 2000 in Spain?,"SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2000" List priority 2 complaints by date received.,SELECT DISTINCT `Complaint ID` FROM callcenterlogs WHERE priority = 2 ORDER BY `Date received` DESC "If the world record is the African record, what is the 1:53.28 total number?","SELECT COUNT(1) AS :5328 FROM table_24001246_2 WHERE world_record = ""African record""" how many first elected with incumbent being charles edward bennett,"SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = ""Charles Edward Bennett""" Calculate the yearly average user who started using Yelp from the year of 2005 to 2014.,SELECT AVG(user_id) FROM Users WHERE user_yelping_since_year >= 2005 AND user_yelping_since_year <= 2015 Nigeria had the fastest time once.,"SELECT COUNT(fastest_time__s_) FROM table_1231316_5 WHERE nation = ""Nigeria""" Name the successor for north carolina 13th,"SELECT successor FROM table_225204_4 WHERE district = ""North Carolina 13th""" Show the official names of the cities that have hosted more than one competition.,SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1 What is the Pole Position of the Portuguese Grand Prix?,"SELECT pole_position FROM table_name_98 WHERE grand_prix = ""portuguese grand prix""" "What is High Rebounds, when Location Attendance is ""Time Warner Cable Arena 10,848""?","SELECT high_rebounds FROM table_name_14 WHERE location_attendance = ""time warner cable arena 10,848""" How many parties won the election in the Louisiana 5 district?,"SELECT COUNT(party) FROM table_1341865_20 WHERE district = ""Louisiana 5""" What was the venue when the home team was Fitzroy?,"SELECT venue FROM table_name_76 WHERE home_team = ""fitzroy""" what is the bristol & n. som where the somerset is ashcott and shapwick?,"SELECT bristol_ & _n_som FROM table_12043148_2 WHERE somerset = ""Ashcott and Shapwick""" List the platform ID of the game titled Airborne Troops: Countdown to D-Day.,SELECT T1.platform_id FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Airborne Troops: Countdown to D-Day' What is the location and attendance of game 70?,SELECT location_attendance FROM table_27733909_9 WHERE game = 70 "How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?",SELECT SUM(events) FROM table_name_66 WHERE cuts_made > 12 AND top_5 > 2 AND top_10 > 11 what is the total amount of tries where the points were 325?,"SELECT COUNT(tries_against) FROM table_13564637_3 WHERE points_for = ""325""" What is the IUPAC name for chloroform?,"SELECT iupac_name FROM table_name_44 WHERE common_name = ""chloroform""" In the election earlier than 2012 how many Inhabitants had a Party of five star movement?,"SELECT SUM(inhabitants) FROM table_name_57 WHERE party = ""five star movement"" AND election < 2012" What is the enrollment for the AAAA class in IHSAA?,"SELECT SUM(enrollment) FROM table_name_85 WHERE ihsaa_football_class = ""aaaa""" What are the different majors?,SELECT DISTINCT Major FROM Student How many Olympic competitors are from Finland?,SELECT COUNT(T1.person_id) FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Finland' What party is the member that has an electorate of Lindsay?,"SELECT party FROM table_name_34 WHERE electorate = ""lindsay""" Most GDP in this table? | Do you mean the max GDP | Yes.,SELECT max ( GDP ) from city Return the number of airports.,SELECT count(*) FROM AIRPORTS Who were the winners in 2010-2011?,"SELECT winners FROM table_name_4 WHERE year = ""2010-2011""" What is the total for 3rd place on season 9?,"SELECT total FROM table_name_41 WHERE place = ""3rd"" AND season = ""9""" "Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea?","SELECT AVG(total) FROM table_name_60 WHERE to_par < 10 AND country = ""south korea""" What were the dates of the latest revisions?,SELECT date_of_latest_revision FROM Catalogs What is the department name of course id 787?,SELECT dept_name from course where course_id = 787 Name the D 42 which has a D 44 of d 44,"SELECT d_42 FROM table_name_29 WHERE d_44 = ""d 44""" list out the staff first name on the table,SELECT first_name from staff Count the number of tracks.,SELECT count(*) FROM track Which friendly competition took place on 19 April 1979?,"SELECT score FROM table_name_37 WHERE competition = ""friendly"" AND date = ""19 april 1979""" What are the hometowns that are shared by at least two gymnasts?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2 What is the name of the station that is less used by customers who borrow bikes from? Indicate when was the station installed.,"SELECT T1.start_station_name, T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.subscription_type = 'Customer' GROUP BY T1.start_station_name ORDER BY COUNT(T1.subscription_type) LIMIT 1" What is the average age of clients in South Atlantic?,SELECT AVG(T1.age) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'South Atlantic' What's the weight of the player who had the most Power Play Goals in the 21st century?,"SELECT T1.weight FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year > 2000 GROUP BY T1.playerID, T1.weight ORDER BY SUM(T2.PPG) DESC LIMIT 1" "Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4?","SELECT COUNT(rank_final) FROM table_name_68 WHERE year > 2008 AND apparatus = ""balance beam"" AND rank_qualifying > 4" Name the time for saturday 4 march 1995,"SELECT time FROM table_16388047_1 WHERE date = ""Saturday 4 March 1995""" Give the first name and job id for all employees in the Finance department.,"SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'" List the number of people injured by perpetrators in ascending order.,SELECT Injured FROM perpetrator ORDER BY Injured ASC What was the minimum property crimes stats if the burglary committed was 45350?,SELECT MIN(property_crimes) FROM table_26060884_2 WHERE burglary = 45350 MADANG CITY SITUATED IN WHICH COUNTRY? IN AIRPORT TABLE,select country from airports where city = 'Madang' What are the names and hours spent practicing of every student who received a yes at tryouts?,"SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" "What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?","SELECT year FROM table_name_20 WHERE weight < 230 AND home_town = ""san antonio, texas""" What are the names of ships that were involved in a mission launched after 1928?,SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 include sales and purchase id in the list,"SELECT sales_transaction_id, sales_details FROM sales UNION SELECT purchase_transaction_id, purchase_details FROM purchases" How many stations are called radyo5 101.9 news fm?,"SELECT COUNT(location) FROM table_17822401_1 WHERE branding = ""Radyo5 101.9 News FM""" What is the average bike availability in stations that are not located in Palo Alto?,"SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city = ""Palo Alto"")" Can you list all events that happened in 2018?,SELECT name FROM event where year = 2018 Tell me the sum of Grid for giancarlo fisichella,"SELECT SUM(grid) FROM table_name_84 WHERE driver = ""giancarlo fisichella""" Which opponent has a record of 44-28?,"SELECT opponent FROM table_name_2 WHERE record = ""44-28""" "For each classroom, show the classroom number and find how many students are using it.","SELECT classroom , count(*) FROM list GROUP BY classroom" What are the notes for 6:31.16?,"SELECT notes FROM table_name_85 WHERE time = ""6:31.16""" Show all the buildings along with the number of faculty members the buildings have.,"SELECT building , count(*) FROM Faculty GROUP BY building" What is the most purchased products during the rainy days in June 2013 in weather station 9?,SELECT T1.item_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T3.station_nbr = 9 AND T1.`date` LIKE '%2013-06%' AND codesum = 'RA' ORDER BY T1.units DESC LIMIT 1 Which claim processing stage has the most claims? Show the claim status name.,SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1 Who is the composer on the tracks less than 4?,SELECT composer FROM table_name_36 WHERE track < 4 order all gas station locations by the opening year.,SELECT LOCATION FROM gas_station ORDER BY open_year Which Model has hybrid propulsion?,"SELECT model FROM table_name_59 WHERE propulsion = ""hybrid""" What are the ids of the students who registered for some courses but had the least number of courses for all students?,SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1 What digital reaction has a hot 100 reaction of 4 (+4)?,"SELECT hot_digital_songs_reaction FROM table_name_81 WHERE hot_100_reaction = ""4 (+4)""" Show budget type codes and the number of documents in each budget type.,"SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code" Who vacated the Pennsylvania 6th district?,"SELECT vacator FROM table_225098_4 WHERE district = ""Pennsylvania 6th""" What is the Years as tallest of the Building with a Height ft (m) of 145 (44)?,"SELECT years_as_tallest FROM table_name_55 WHERE height_ft__m_ = ""145 (44)""" Find the city with post code 255.,SELECT city FROM addresses WHERE zip_postcode = 255 Which type of policy is most frequently used? Give me the policy type code.,SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1 What is the team when alvin williams (6) has the high assists?,"SELECT team FROM table_name_29 WHERE high_assists = ""alvin williams (6)""" What Week 5 has a Week 1 of mysti sherwood?,"SELECT week_5 FROM table_name_10 WHERE week_1 = ""mysti sherwood""" What is the name of the constructor for Grid 1?,"SELECT constructor FROM table_name_11 WHERE grid = ""1""" "List the poverty level of all the schools that received donations with the zip code ""7079"".",SELECT DISTINCT T2.poverty_level FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.donor_zip = 7079 In what year did the team from the Western school join the conference?,"SELECT year_joined FROM table_name_10 WHERE school = ""western""" Which continent is the mother country of Clarksville city in?,SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Clarksville' "For each room, find its name and the number of times reservations were made for it.","SELECT T2.roomName , count(*) , T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room" Which language is 'El plan infinito' written in?,SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'El plan infinito' Which party has two or more records?,SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 Who is the Director of the Olsen Gang Sees Red?,"SELECT director FROM table_name_11 WHERE english_title = ""the olsen gang sees red""" Find the titles of all movies not reviewed by Chris Jackson.,SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' When did they play against Wales?,"SELECT date FROM table_name_41 WHERE opponent = ""wales""" Which skipper has 78 points?,"SELECT skipper FROM table_name_90 WHERE points = ""78""" How many orders did George make?,"SELECT count ( * ) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id where T2.customer_name = ""George""" Find the number of distinct gender for dorms.,SELECT count(DISTINCT gender) FROM dorm What is the characteristic name of the product with the highest typical selling price?,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 order by t1.typical_selling_price desc limit 1 Which committees have delegates from the liberal party?,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal""" How many rooms does the Lamberton building have?,SELECT count(*) FROM classroom WHERE building = 'Lamberton' "What are the names of actors, ordered alphabetically?",SELECT Name FROM actor ORDER BY Name ASC Please provide the address of the customer whose first name is SUSAN with the postal code 77948.,SELECT T1.address FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = 'SUSAN' AND T1.postal_code = 77948 "Which country is home to the world's tiniest desert, and what are its longitude and latitude?","SELECT T2.Country, T1.Latitude, T1.Longitude FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert WHERE T1.Name = ( SELECT Name FROM desert ORDER BY Area ASC LIMIT 1 )" what is the division north when division south was kožuf and division southwest was ilinden velmej,"SELECT division_north FROM table_17881033_1 WHERE division_south = ""Kožuf"" AND division_southwest = ""Ilinden Velmej""" Which class has less than 3 in quantity with a type of 4-6-0?,"SELECT class FROM table_name_70 WHERE type = ""4-6-0"" AND quantity < 3" What is the crystal structure for the formula yba 2 cu 3 o 7?,"SELECT crystal_structure FROM table_101336_1 WHERE formula = ""YBa 2 Cu 3 O 7""" "Which Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?","SELECT SUM(avg_g) FROM table_name_63 WHERE effic > 129.73 AND cmp_att_int = ""333-500-13""" Find the names and average salaries of all departments whose average salary is greater than 42000.,"SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000" "How many kinds of products are there in the the category of ""dairy products""?",SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.CategoryName = 'Dairy Products' what is 1976 when 1977 is 3.5?,"SELECT 1976 FROM table_name_96 WHERE 1977 = ""3.5""" "Who is the sales representative that made the order which was sent to 25 Maiden Lane, Floor No. 4?","SELECT T2.firstName, T2.lastName FROM customers AS T1 INNER JOIN employees AS T2 ON T1.salesRepEmployeeNumber = T2.employeeNumber WHERE T1.addressLine1 = '25 Maiden Lane' AND T1.addressLine2 = 'Floor No. 4'" What is the low attendance rate against buffalo bills?,"SELECT MIN(attendance) FROM table_name_98 WHERE opponent = ""buffalo bills""" When 3 - 1 hughes 64' is the score what is the stadium?,"SELECT stadium FROM table_21377473_7 WHERE score = ""3 - 1 Hughes 64'""" What is the sum of points values that are associated with 0 losses and more than 8 games?,SELECT SUM(points) FROM table_name_67 WHERE lost = 0 AND games > 8 How many different heights are there for the contestants from Warsaw?,"SELECT COUNT(height__ft_) FROM table_20669355_2 WHERE hometown = ""Warsaw""" List the names of all routes in alphabetic order.,SELECT route_name FROM Delivery_Routes ORDER BY route_name What is the name of the youngest male?,SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' ) Which conventional plan has a POS of 13%?,"SELECT conventional_plans FROM table_name_55 WHERE pos_plans = ""13%""" Show the name and population of the country that has the highest roller coaster.,"SELECT T1.Name , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1" "List down the top 3 Latin American & Caribbean countries with the highest average value in ""CO2 emissions (kt)"" indicator since 1965. Give their highest value and in what year.","SELECT DISTINCT T1.CountryCode, T1.Year, T1.Value FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Latin America & Caribbean' AND T1.IndicatorName = 'CO2 emissions (kt)' AND T1.Year > 1965 AND T1.Year < 1980 ORDER BY T1.Value DESC LIMIT 3" Which Seattle quarterback has more than 81 career wins and less than 70 team wins?,"SELECT quarterback FROM table_name_33 WHERE career_wins > 81 AND teams = ""seattle"" AND team_wins < 70" "how many times were high rebounds mehmet okur , paul millsap (6)","SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = ""Mehmet Okur , Paul Millsap (6)""" What is the major instrument of the song that lasts 4:32? ,"SELECT major_instrument_s_ FROM table_10416547_1 WHERE duration = ""4:32""" "Who is the candidate in Race for State representative, hd18?","SELECT candidate FROM table_name_57 WHERE race = ""state representative, hd18""" "in addition to Rick Ferrell, Lefty Gomez, and player ID gehrilo01, can you tell me the first and last names of the other players participating in 1998 all star game?","SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998 and name_first ! = ""Rick"" or name_last ! = ""Ferrell"" INTERSECT SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998 and name_first ! = ""Lefty"" or name_last ! = ""Gomez"" INTERSECT SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998 and T1.player_id ! = ""gehrilo01""" Which positions are suitable with 4 years degree education?,SELECT positiontitle FROM position WHERE educationrequired = '4 year degree' "Show institution types, along with the number of institutions and total enrollment for each type.","SELECT TYPE , count(*) , sum(enrollment) FROM institution GROUP BY TYPE" What is the census ranking of Perth-Andover?,"SELECT census_ranking FROM city WHERE official_name = ""Perth-Andover""" What Tournament has a Partner of tom gorman?,"SELECT tournament FROM table_name_65 WHERE partner = ""tom gorman""" What is the average weight of all players?,SELECT avg(weight) FROM Player What is the game number for the game with a score of l 90–106 (ot)?,"SELECT game FROM table_27698941_6 WHERE score = ""L 90–106 (OT)""" From which region is the album with release date of 19 June 2007?,"SELECT region FROM table_name_7 WHERE date = ""19 june 2007""" How many storms occured in each region?,"SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id" "For each account type, find the average account balance of customers with credit score lower than 50.","SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type" "Among all orders updated in 2022, identify the percentage that has been returned.","SELECT CAST(SUM(CASE WHEN T1.status_value = 'Returned' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE STRFTIME('%Y', T2.status_date) = '2022'" List the id of students who never attends courses?,SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance) What was the score when Pittsburgh was the visitor?,"SELECT score FROM table_name_42 WHERE visitor = ""pittsburgh""" Find the names of the artists who have produced English songs but have never received rating higher than 8.,"SELECT DISTINCT artist_name FROM song WHERE languages = ""english"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8" Report the total number of students for each fourth-grade classroom.,"SELECT classroom , count(*) FROM list WHERE grade = ""4"" GROUP BY classroom" "What are the codes and names for all regions, sorted by codes?","SELECT region_code , region_name FROM region ORDER BY region_code" What is the score for the away team at Victoria Park?,"SELECT away_team AS score FROM table_name_24 WHERE venue = ""victoria park""" How many days was the fastest shipping of Berglunds snabbkp's order?,"SELECT datediff(T2.ShippedDate, T2.OrderDate) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.CompanyName = 'Berglunds snabbkp' ORDER BY datediff(T2.ShippedDate, T2.OrderDate) LIMIT 1" "Which Opponents in the final have a Score of 4–6, 6–4, 2–6, 4–6?","SELECT opponents_in_the_final FROM table_name_18 WHERE score = ""4–6, 6–4, 2–6, 4–6""" How many years was the record 3:40.8?,"SELECT COUNT(year) FROM table_name_28 WHERE record = ""3:40.8""" "What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47?","SELECT AVG(tries) FROM table_name_22 WHERE start > 32 AND player = ""seremaia bai"" AND conv > 47" " how many primary payload(s) with shuttle being columbia and duration being 13 days, 19 hours, 30 minutes, 4 seconds","SELECT COUNT(primary_payload_s_) FROM table_14118521_1 WHERE shuttle = ""Columbia"" AND duration = ""13 days, 19 hours, 30 minutes, 4 seconds""" What is the run time for the episode with 7.9 million viewers?,"SELECT run_time FROM table_2108684_1 WHERE viewers__in_millions_ = ""7.9""" "Find the match ids of the cities that hosted competition ""1994 FIFA World Cup qualification""?","SELECT match_id FROM MATCH WHERE competition = ""1994 FIFA World Cup qualification""" What is the name of the activity that has the most faculty members involved in?,SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1 How many position does Teodor Salparov play on? ,"SELECT COUNT(position) FROM table_14038363_1 WHERE player = ""Teodor Salparov""" what's the party with incumbent being herbert covington bonner,"SELECT party FROM table_1341930_33 WHERE incumbent = ""Herbert Covington Bonner""" "What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?","SELECT away_captain FROM table_name_38 WHERE date = ""30 dec, 1,2,3 jan 1911/2""" How many results of the count of Latin Americans in Yukon in 2001 are there?,"SELECT COUNT(latin_americans_2001) FROM table_1939405_2 WHERE province = ""Yukon""" What is the lowest Year with an Album that is live love in London?,"SELECT MIN(year) FROM table_name_34 WHERE album = ""live love in london""" "Please list the page IDs of all the Wikipedia pages that have the word ""nombre"" appeared on it.",SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre' "what is the name when death is november 10, 1842?","SELECT name FROM table_name_80 WHERE death = ""november 10, 1842""" What are the id and name of the stadium where the most injury accidents happened?,"SELECT T1.id , T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" Find courses that ran in Fall 2009 but not in Spring 2010.,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 "What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne?","SELECT sprints_classification FROM table_name_18 WHERE points_classification = ""mark cavendish"" AND team_classification = ""caisse d'epargne""" "Is the phone number ""114-555-0100"" a work number or a home number?",SELECT T2.Name FROM PersonPhone AS T1 INNER JOIN PhoneNumberType AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID WHERE T1.PhoneNumber = '114-555-0100' what is the latitude of the feature of longitude 80.0e,"SELECT latitude FROM table_16799784_7 WHERE longitude = ""80.0E""" What was the venue where there were 55 runs?,"SELECT venue FROM table_name_12 WHERE runs = ""55""" "What is the average density with a land area of 123.02, and a Code larger than 2356?",SELECT AVG(density__inh_km²_) FROM table_name_33 WHERE land_area__hectares_ = 123.02 AND code > 2356 "great, I also need to know the first name of each instructor with the course name, and where their office is located.","SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" How many attribute classes are there for image id 5?,SELECT COUNT(ATT_CLASS_ID) FROM IMG_OBJ_ATT WHERE IMG_ID = 5 What college did Byron Williams attend?,"SELECT college FROM table_14655757_1 WHERE player = ""Byron Williams""" "What are the days that had the smallest temperature range, and what was that range?","SELECT date , max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1" How many games did team of the scoring champion win in 2001 NBA season?,SELECT T2.W FROM teams AS T1 INNER JOIN series_post AS T2 ON T1.tmID = T2.tmIDLoser AND T1.year = T2.year WHERE T2.year = 2001 ORDER BY T1.o_fgm DESC LIMIT 1 Who was the team when the category is field goal percentage?,"SELECT team FROM table_28628309_6 WHERE category = ""Field goal percentage""" What percentage of sell orders on 04/04/2020 were for the state of New York?,SELECT CAST(SUM(CASE WHEN T2.State = 'New York' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.OrderDate = '4/4/20' Which team won at winton motor raceway?,"SELECT team FROM table_name_5 WHERE circuit = ""winton motor raceway""" For how long can you rent the movie 'Dirty Ace'?,SELECT rental_duration FROM film WHERE title = 'DIRTY ACE' What is the average age of all students.,SELECT avg ( age ) FROM STUDENT How many participants belong to the type 'Organizer'?,SELECT count(*) FROM participants WHERE participant_type_code = 'Organizer' "what is the date of birth for the player with goals less than 4, games more than 1, years at club, 1945 and named jim young?","SELECT date_of_birth FROM table_name_66 WHERE goals < 4 AND games > 1 AND years_at_club = ""1945"" AND player = ""jim young""" What episode title had a production code of 3x6306?,"SELECT title FROM table_28116528_1 WHERE production_code = ""3X6306""" What was the court surface on year 1971?,SELECT surface FROM table_2112025_3 WHERE year = 1971 List the company names of customers from the city with the most customers.,SELECT CompanyName FROM `Customer and Suppliers by City` WHERE CITY = ( SELECT City FROM `Customer and Suppliers by City` GROUP BY City ORDER BY COUNT(Relationship) DESC LIMIT 1 ) Hi - can you please list the names of perpetrators in all countries except for China?,"SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country ! = ""China""" What is the note section for the role with a language of hindi and a title of miley naa miley hum?,"SELECT notes FROM table_name_30 WHERE language = ""hindi"" AND title = ""miley naa miley hum""" What is the average year Rich Beem had a to par less than 17?,"SELECT AVG(year_won) FROM table_name_20 WHERE player = ""rich beem"" AND to_par < 17" "Return the maximum and minimum shares for performances that do not have the type ""Live final"".","SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""" Can you tell me the titles of those courses?,SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count ( * ) > 1 What is the launch date odds of winning 1 in 4.44?,"SELECT launch_date FROM table_name_92 WHERE odds_of_winning = ""1 in 4.44""" what is the team nickname that joined tschl after 2010?,SELECT team_nickname FROM table_name_78 WHERE joined_tschl > 2010 find the total account balance of each customer from Utah or Texas,SELECT sum ( acc_bal ) FROM customer WHERE state = 'Utah' OR state = 'Texas' How many times did Bob Peterson appear in the movie credits?,SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Bob Peterson' What Episode has a Share of tba?,"SELECT episode FROM table_name_17 WHERE share = ""tba""" Which match where Hawthorn was the away team had the largest crowd?,"SELECT MAX(crowd) FROM table_name_58 WHERE away_team = ""hawthorn""" How many active employees do not wish to receive e-mail promotions?,SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.CurrentFlag = 1 AND T2.EmailPromotion = 1 How much is the Volkswagen Dasher with 14.1 mph acceleration?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'volkswagen dasher' AND T1.acceleration = '14.1' what are the names of the channels that broadcast in both morning and night?,SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night' what is the rank when the heat is more than 4?,SELECT SUM(rank) FROM table_name_66 WHERE heat > 4 "What is the high rank for players earning over $533,929?",SELECT MAX(rank) FROM table_name_13 WHERE earnings___$__ > 533 OFFSET 929 "What was the Venue on June 8, 2005?","SELECT venue FROM table_name_9 WHERE date = ""june 8, 2005""" Which Power has a Name of 9 ad?,"SELECT power FROM table_name_25 WHERE name = ""9 ad""" Where is the ballpark of the Twins?,"SELECT location FROM table_1987995_5 WHERE team = ""Twins""" What are their names?,SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE t2.year = 1986 and t2.category = 'Best Book of a Musical' and t2.Result = 'Nominated' Which ERP W is the highest one that has a Call sign of w255bi?,"SELECT MAX(erp_w) FROM table_name_3 WHERE call_sign = ""w255bi""" What type has a GNIS ID of 1139805,SELECT type FROM table_name_15 WHERE gnis_id = 1139805 What is the segment A for the episode with Children's Ride-on Cars for segment D?,"SELECT segment_a FROM table_name_10 WHERE segment_d = ""children's ride-on cars""" How many miss universes did south africa have?,"SELECT COUNT(miss_universe) FROM table_28634206_1 WHERE country = ""South Africa""" How many stages of the rally took 14:33.9 for the leader to finish?,"SELECT COUNT(length) FROM table_21326205_2 WHERE time = ""14:33.9""" Yes.,"SELECT T2.party_name , count ( * ) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" "Which commander received complement larger than 240 , guns of 66 and ship of revolutie?","SELECT commander FROM table_name_62 WHERE complement > 240 AND guns = ""66"" AND ship = ""revolutie""" "Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?",SELECT MIN(number__map_) FROM table_name_71 WHERE area_in_km² = 9.7 AND population_canada_2011_census > 66 OFFSET 158 What constructor is grid 1 with a time/retired of engine?,"SELECT constructor FROM table_name_67 WHERE time_retired = ""engine"" AND grid = 1" What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015?,SELECT AVG(T2.StarRating) FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.BrandID = 10018 AND T1.Gender = 'F' AND T2.ReviewDate BETWEEN '2013-01-25' AND '2015-03-10' What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?,SELECT MIN(lost) FROM table_name_4 WHERE position > 2 AND points = 4 AND drawn > 2 What are the names of teams that do no have match season record?,SELECT Name FROM team WHERE NOT Team_id IN (SELECT Team FROM match_season) Find the year that has the most number of matches.,SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 Which works number has a class of 15th and year of 1940?,"SELECT works_no FROM table_name_69 WHERE class = ""15th"" AND year = ""1940""" Who was the brother of Edward VIII?,"SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = ""brother of edward viii""" List the names of all the publishers who published one game only.,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name HAVING COUNT(DISTINCT T1.game_id) = 1 ) t" Who is the supplier of the product with the highest unit price?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) Where is longitude 202.9e?,"SELECT name FROM table_16799784_4 WHERE longitude = ""202.9E""" Which nation has a rank of 7?,"SELECT nation FROM table_name_52 WHERE rank = ""7""" "Who are the different players, what season do they play in, and what is the name of the team they are on?","SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id" How many golds does Germany have?,"SELECT gold FROM table_name_45 WHERE nation = ""germany""" Give the years and official names of the cities of each competition.,"SELECT T2.Year , T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID" "What is the torque of the xdrive20d model, which has a power of ps (kw; hp)@4000?","SELECT torque FROM table_name_60 WHERE power = ""ps (kw; hp)@4000"" AND model = ""xdrive20d""" "Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?","SELECT surface FROM table_name_87 WHERE outcome = ""runner-up"" AND score_in_the_final = ""4–6, 6–7, 6–2, 2–6""" Name the sec wins for .357 percentage and 4-3 home record,"SELECT sec_wins FROM table_22825679_1 WHERE percentage = "".357"" AND home_record = ""4-3""" When toronto blue jays are the mlb team who are the fscl team?,"SELECT fcsl_team FROM table_18373863_2 WHERE mlb_team = ""Toronto Blue Jays""" Calculate the average period of Mr. Wesley Lemke's care plans.,"SELECT CAST(SUM(strftime('%J', T2.STOP) - strftime('%J', T2.START)) AS REAL) / COUNT(T1.patient) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mr.' AND T1.first = 'Wesley' AND T1.last = 'Lemke'" How many times was tues 24 aug 19' 19.83 117.110mph?,"SELECT COUNT(rank) FROM table_26986076_2 WHERE tues_24_aug = ""19' 19.83 117.110mph""" What is the title of the most expensive book?,SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id ORDER BY T2.price DESC LIMIT 1 Who was the away team during the game when the home team was the new zealand breakers?,"SELECT away_team FROM table_name_36 WHERE home_team = ""new zealand breakers""" "What is Run 1, when Athletes is ""Theo Kitt & Friedrich Kuhn""?","SELECT run_1 FROM table_name_89 WHERE athletes = ""theo kitt & friedrich kuhn""" How many juries are there when the draw is 3?,SELECT MAX(juries) FROM table_27994983_8 WHERE draw = 3 Name the number of women's doubles for 1986,"SELECT COUNT(womens_doubles) FROM table_13845918_3 WHERE year = ""1986""" Return all the information for each election record.,SELECT * FROM election Tell me the laps for 3 grids,SELECT laps FROM table_name_67 WHERE grid = 3 Who was the driver in round 4?,SELECT driver FROM table_27913160_3 WHERE round = 4 "display those employees who joined after 7th September, 1987.",SELECT * FROM employees WHERE hire_date > '1987-09-07' "How many different items appear in the television column when the results where Iowa State 14, Minnesota 13?","SELECT COUNT(television) FROM table_23718905_6 WHERE matchup_results = ""Iowa State 14, Minnesota 13""" What nationality is Daryn Fersovich?,"SELECT nationality FROM table_name_47 WHERE player = ""daryn fersovich""" "In students with a grade of B, how many of them have an intellegence level of 3?",SELECT COUNT(T1.student_id) FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.grade = 'B' AND T2.intelligence = 3 How many albums and Single-Tables were released by the artist named '50 cent' between 2010 and 2015?,"SELECT COUNT(id), ( SELECT COUNT(id) FROM torrents WHERE groupYear BETWEEN 2010 AND 2015 AND artist LIKE '50 cent' AND releaseType LIKE 'album' ) FROM torrents WHERE groupYear BETWEEN 2010 AND 2015 AND artist LIKE '50 cent' AND releaseType LIKE 'Single'" "plese list me about airports | Do you mean the airport ids of all the airports? | Yes, I just needs the name of aircrafts in airports",SELECT Aircraft FROM aircraft What was the record on January 4?,"SELECT record FROM table_name_13 WHERE date = ""january 4""" "Give me a list of id and status of orders which belong to the customer named ""Jeramie"".","SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" In which country does Polish found least in?,"SELECT T2.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Polish' GROUP BY T2.Name, T1.Percentage ORDER BY T1.Percentage ASC LIMIT 1" What was the previous school of the ft7in (m) tall player?,"SELECT previous_school FROM table_24925945_3 WHERE height = ""ft7in (m)""" How many visitors below age 30 are there?,SELECT count(*) FROM visitor WHERE age < 30 "What is the first and last name of the artist who performed back stage for the song ""Der Kapitan""?","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Der Kapitan"" AND T1.StagePosition = ""back""" In which province is city Glenrothes located? What is the capital of the province?,"SELECT T2.Province, T1.Capital FROM province AS T1 INNER JOIN city AS T2 ON T1.Name = T2.Province AND T1.Country = T2.Country WHERE T2.Name = 'Glenrothes'" Can you tell me what is the average precipitation at the Amersham station?,"SELECT avg ( t1.precipitation ) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = ""Amersham""" find the event names that have more than 2 records.,SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2 "How many different publishers have published a game that starts with ""Marvel""?",SELECT COUNT(DISTINCT T1.publisher_id) FROM game_publisher AS T1 INNER JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.game_name LIKE 'Marvel%' Can you please include their names?,"select phone_id, Name from phone where Carrier = 'Sprint' or Carrier = 'TMobile'" "How many Uni numbers have Bats of s, and a Position of utl?","SELECT COUNT(uni_number) FROM table_name_31 WHERE bats = ""s"" AND position = ""utl""" Who is the director that made the most movies? Give the director's id.,SELECT director_id FROM movies GROUP BY director_id ORDER BY COUNT(movie_id) DESC LIMIT 1 "In the parts shipped by rail, how many are of medium priority?",SELECT COUNT(T2.l_partkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'RAIL' AND T1.o_orderpriority = '3-MEDIUM' How many Away Victories happened on 2016/3/27 in the LaLiga 2 division?,SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga 2' AND T1.Date = '2016-03-27' AND T1.FTR = 'A' In which round is pick number 242?,"SELECT COUNT(round) FROM table_name_92 WHERE pick = ""242""" What is the region of the Catalog that is in cd format and has a label a&m/canyon?,"SELECT region FROM table_name_49 WHERE format = ""cd"" AND label = ""a&m/canyon""" Can you also show me the lowest oppose rate that female candidates have?,"SELECT min ( oppose_rate ) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = ""F""" Please list the years in which the NHL League had shots recorded while the goalie was on the ice.,SELECT DISTINCT year FROM Goalies WHERE lgID = 'NHL' AND SA IS NOT NULL What number of Fatalities did the Epicenter Māzandarān have?,"SELECT fatalities FROM table_name_79 WHERE epicenter = ""māzandarān""" what are their birth dates?,"SELECT DISTINCT T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = ""ACCT-211""" "How many papers were published in the journal ""Concepts in Magnetic Resonance Part A""?",SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A' What's the CR number that has an LMS number less than 14761 and works of Hawthorn Leslie 3100?,"SELECT AVG(cr_no) FROM table_name_23 WHERE works = ""hawthorn leslie 3100"" AND lms_no < 14761" Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.,SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*) >= 100 "What is Position, when Overallis less than 314, and when Pick is less than 8?",SELECT position FROM table_name_84 WHERE overall < 314 AND pick < 8 "Among the cars from Asia, list the IDs of cars that were introduced in 1979.",SELECT T1.ID FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'Japan' AND T1.model_year = 1979 What is the skip when Tony Angiboust was a lead?,"SELECT skip FROM table_name_40 WHERE lead = ""tony angiboust""" Which Hometown/School has a Team of atlanta braves?,"SELECT hometown_school FROM table_name_74 WHERE team = ""atlanta braves""" What is the final for middleweight –75 kg?,"SELECT final FROM table_name_88 WHERE event = ""middleweight –75 kg""" What theme name has the original artist of Dolly Parton?,"SELECT theme FROM table_15796100_1 WHERE original_artist = ""Dolly Parton""" "For countries with area between 500000 to 1000000, state the country and infant mortality rate.","SELECT T1.Name, T2.Infant_Mortality FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Area BETWEEN 500000 AND 1000000" What is the district that has a republican?,"SELECT district FROM table_1341930_21 WHERE party = ""Republican""" List the names of members who did not attend any performance.,SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM member_attendance) "Which game site has a Week bigger than 13, and a Result of l 20–0?","SELECT game_site FROM table_name_76 WHERE week > 13 AND result = ""l 20–0""" How many separate 35 year-old uesers have rated the movie from UK?,SELECT COUNT(DISTINCT T2.userid) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid INNER JOIN users AS T3 ON T2.userid = T3.userid WHERE T1.country = 'UK' AND T3.age = 35 What is the oldest age among the students?,SELECT max(Age) FROM STUDENT Where is Iomega located?,SELECT Headquarter FROM manufacturers where name = 'Iomega' Name the ethnic group with a buddhist of 0.19%,"SELECT ethnic_group FROM table_name_94 WHERE buddhist = ""0.19%""" "Among the cars introduced in 1977, provide the names and the horse powers of cars from Europe.","SELECT T1.car_name, T1.horsepower FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T2.model_year = 1977 AND T3.country = 'Europe'" Show the names of artworks in ascending order of the year they are nominated in.,SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year How many self-relations are there between the object samples in image no.5?,SELECT SUM(CASE WHEN IMG_ID = 5 THEN 1 ELSE 0 END) FROM IMG_REL WHERE OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID How many music entries are there when tor floysvik is 3?,SELECT COUNT(music) FROM table_28677723_10 WHERE tor_fløysvik = 3 "Find the name of all customers whose name contains ""Alex"".","SELECT customer_name FROM customers WHERE customer_name LIKE ""%Alex%""" What is the time/retired for thierry boutsen?,"SELECT time_retired FROM table_name_92 WHERE driver = ""thierry boutsen""" What is the average size (cents) with an interval of major third and size (steps) more than 5,"SELECT AVG(size__cents_) FROM table_name_33 WHERE interval_name = ""major third"" AND size__steps_ > 5" What are the names and salaries of the instructors who are advisors to students from the History department?,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'" Which of the H. Rempel has J. J. Neufeld of Sajen?,"SELECT h_rempel FROM table_name_31 WHERE j_j_neufeld = ""sajen""" What are the country codes of countries where people use languages other than English?,"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != ""English""" Find the names of stadiums that the least swimmers have been to?,SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count ( * ) DESC LIMIT 1 What is the maximum point for climbers whose country is United Kingdom?,"SELECT max(Points) FROM climber WHERE Country = ""United Kingdom""" "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.","SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'" What is the average age for all person?,SELECT avg(age) FROM Person k. Who is the composer for Balls to the Wall ?,SELECT distinct T2.Composer FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId where t1.title = 'Balls to the Wall' Show the ids of high schoolers who have friends and are also liked by someone else.,SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes Hmmm. Can you also show me the ids and names of members who are over age 30?,"SELECT name , member_id FROM member WHERE Membership_card = 'Black' OR age > 30" What are the GPAs of the unpaid Research Assistants?,SELECT T2.gpa FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'free' What is the additional major sponsor(s) that has red as its main color after 1991?,"SELECT additional_major_sponsor_s_ FROM table_name_91 WHERE main_colour_s_ = ""red"" AND year > 1991" How many students are there?,SELECT count ( * ) FROM STUDENT Show names for all employees with salary more than the average.,SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee) How many points against has team Cardiff had when there were less than 7 tries?,"SELECT COUNT(points_against) FROM table_name_97 WHERE team = ""cardiff"" AND tries_against < 7" Which season played the highest number of matches at M Chinnaswamy Stadium?,SELECT T1.Season_Id FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T2.Venue_Name = 'M Chinnaswamy Stadium' GROUP BY T1.Season_Id ORDER BY COUNT(T1.Season_Id) DESC LIMIT 1 Was the sounddock series I v2 iphone certified?,"SELECT iphone_certified FROM table_24384861_1 WHERE version = ""SoundDock series I v2""" Tell me the week for record of 0-1,"SELECT week FROM table_name_19 WHERE record = ""0-1""" List all the sales people in the Northwest US.,SELECT T2.BusinessEntityID FROM SalesTerritory AS T1 INNER JOIN SalesPerson AS T2 ON T1.TerritoryID = T2.TerritoryID WHERE T1.Name = 'Northwest' AND T1.CountryRegionCode = 'US' "Return the distinct name of customers whose order status is Pending, in the order of customer id.","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""Pending"" ORDER BY T2.customer_id" Determine the average gross for Disney's PG-13-rated action movies.,"SELECT SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) / COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'PG-13'" What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817?,SELECT census_ranking FROM table_name_93 WHERE area_km_2 < 9.94 AND population < 817 what is the base price of Recluse and defiance,"SELECT basePrice FROM Rooms WHERE roomName = ""Recluse and defiance""" What round was Bill Hill drafted?,"SELECT choice FROM table_10360656_1 WHERE player_name = ""Bill Hill""" what is the sport for wolfgang schattauer?,"SELECT sport FROM table_name_69 WHERE name = ""wolfgang schattauer""" Who scored more than 20 points?,SELECT * FROM player WHERE Points > 20 What is the Time on july 18 that has a Loss of lilly (3-3)?,"SELECT time FROM table_name_34 WHERE date = ""july 18"" AND loss = ""lilly (3-3)""" What was date was the attendance larger than 875 against Platense?,"SELECT date FROM table_name_26 WHERE attendance > 875 AND home = ""platense""" Show the average share count of transactions for different investors.,"SELECT investor_id , avg(share_count) FROM TRANSACTIONS GROUP BY investor_id" How many storms had death records?,SELECT count(*) FROM storm WHERE Number_Deaths > 0 Can you list the dates of transactions for all of them?,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > = 100 OR amount_of_transaction > 100 "List the name of all the distinct customers who have orders with status ""Packing"".","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Packing""" what is the english word for cavallo,"SELECT english FROM table_name_61 WHERE italian = ""cavallo""" What is the level name of the cheapest catalog (in USD)?,SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 "Find the name, city, and country of the airport that has the lowest altitude.","SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1" Return the phone number of the customer who filed the complaint that was raised most recently.,SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1 Who was the winner when Katsuyuki Hiranaka had the fastest lap?,"SELECT winner FROM table_name_89 WHERE fastest_lap = ""katsuyuki hiranaka""" "Among the businesses in Scottsdale, list the attribute of the business with a high review count.",SELECT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.review_count LIKE 'High' AND T1.city LIKE 'Scottsdale' GROUP BY T3.attribute_name What team did the home team play on September 4?,"SELECT opponent FROM table_name_2 WHERE date = ""september 4""" Who wrote Fast As a Shark,"SELECT composer FROM tracks WHERE name = ""Fast As a Shark""" What is the name of the department store that has both marketing and managing department?,"SELECT T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""marketing"" INTERSECT SELECT T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""managing""" "What is the average wins of the team with more than 13 draws, a goal difference of -14, and losses less than 14?",SELECT AVG(wins) FROM table_name_15 WHERE draws > 13 AND goal_difference = -14 AND losses < 14 Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.,"SELECT dorm_name, gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100" Where does the staff member with the first name Elsa live?,SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa' can you show me a list of teacchers first name?,SELECT FirstName From teachers Hello! Can you please list the different interaction types for me?,SELECT DISTINCT interaction_type from medicine_enzyme_interaction Count the number of submissions.,SELECT count(*) FROM submission What is the average land area of ​​the cities in which stores that purchased products for a unit price of 998.30 are located?,SELECT AVG(T2.`Land Area`) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.`Unit Price` = '998.30' Which episode has the highest total number of viewer votes?,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id GROUP BY T1.title ORDER BY SUM(T1.votes) DESC LIMIT 1 What are the names of all friends who are from New York?,SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city' "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is ""PUR""?","SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = ""PUR""" Find the names and number of works of all artists who have at least one English songs.,"SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" GROUP BY T2.artist_name HAVING count(*) >= 1" What was the title of the first list created by a user 85981819? And please provide the user_avatar_image_url.,"SELECT T2.list_title, T1.user_avatar_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_id = 85981819 ORDER BY T2.list_creation_timestamp_utc LIMIT 1" "What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october?","SELECT president FROM table_name_22 WHERE location = ""justus lipsius building, brussels"" AND type = ""scheduled"" AND year > 2011 AND date = ""18–19 october""" What is the Mary Davis with a Gay Mitchell that is 4.6%?,"SELECT mary_davis FROM table_name_96 WHERE gay_mitchell = ""4.6%""" What was the away team score at Brunswick Street Oval?,"SELECT away_team AS score FROM table_name_82 WHERE venue = ""brunswick street oval""" What is the regular season vacated for the Record as played of 12–19?,"SELECT regular_season_vacated FROM table_name_14 WHERE record_as_played = ""12–19""" How many of the legislators are male?,SELECT COUNT(*) FROM current WHERE gender_bio = 'M' Can you list the policy type codes of all the policies used?,SELECT Policy_Type_Code FROM policies What was week 5's result?,SELECT result FROM table_name_81 WHERE week = 5 What is the number of bonus points when there are 2 drawn and the points against is 599?,"SELECT bonus_points FROM table_name_83 WHERE drawn = ""2"" AND points_against = ""599""" List the type of the services in alphabetical order.,SELECT service_type_code FROM services ORDER BY service_type_code How many Olympics games were held during the 90s?,SELECT COUNT(games_year) FROM games WHERE games_year BETWEEN '1990' AND '1999' WHAT IS NO TIE FROM brighton & hove albion?,"SELECT tie_no FROM table_name_52 WHERE home_team = ""brighton & hove albion""" How much would you expect the enrollment to be in Springfield?,"SELECT MIN(enrollment) FROM table_2076463_2 WHERE location_s_ = ""Springfield""" In which venue was the result a draw?,"SELECT venue FROM table_name_67 WHERE result = ""draw""" What is the most popular first name of the actors?,SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1 What are the emails of the students with the first name Emma?,"SELECT email_address FROM Students WHERE first_name = ""Emma""" What is the smallest round to have a record of 4-0?,"SELECT MIN(round) FROM table_name_95 WHERE record = ""4-0""" What was the tie number for the round against visiting opponent Chelsea?,"SELECT SUM(tie_no) FROM table_name_89 WHERE away_team = ""chelsea""" Which song garnered an advanced result during top 20 week ?,"SELECT song_choice FROM table_name_38 WHERE result = ""advanced"" AND week = ""top 20""" What is the average body weight of Asian patients?,SELECT SUM(T2.VALUE) / COUNT(T1.patient) FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.race = 'asian' AND T2.DESCRIPTION = 'Body Weight' AND T2.UNITS = 'kg' What were the Bills points on Nov. 11?,"SELECT SUM(bills_points) FROM table_name_54 WHERE date = ""nov. 11""" How many parties are hosted in Hemkade 48 Zaandam?,"SELECT count ( * ) from party where location = ""Hemkade 48 Zaandam""" Find the names of customers who have no policies associated.,SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id Which residential area in Arecibo county has the highest average house value? Please give its zip_code.,SELECT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' ORDER BY T1.avg_house_value DESC LIMIT 1 Name the stolen ends for germany,SELECT MIN(stolen_ends) FROM table_25107064_2 WHERE country = Germany How many people were in attendance at St Kilda's away match?,"SELECT crowd FROM table_name_18 WHERE away_team = ""st kilda""" How many chips is that which are never used by any phone?,SELECT count ( * ) FROM chip_model WHERE model_name NOT IN ( SELECT chip_model FROM phone ) "In male customers with an occupation handlers or cleaners, what is the percentage of customers with a true response?",SELECT CAST(SUM(CASE WHEN T2.RESPONSE = 'true' THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.REFID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.OCCUPATION = 'Handlers-cleaners' AND T1.SEX = 'Male' How many registed students do each course have? List course name and the number of their registered students?,"SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id" "What products are available at store named ""Miramichi""?","SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = ""Miramichi""" For which countries are there more than four distinct addresses listed?,SELECT country FROM addresses GROUP BY country HAVING count(address_id) > 4 Who directed the episode written cyrus nowrasteh?,"SELECT directed_by FROM table_name_85 WHERE written_by = ""cyrus nowrasteh""" Gemma Spofforth has what time?,"SELECT time FROM table_name_56 WHERE name = ""gemma spofforth""" Identify the allergy period for Isadora Moen and what triggered it.,"SELECT T2.START, T2.STOP, T2.DESCRIPTION FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Isadora' AND T1.last = 'Moen'" "how many customer list ? | Do you want the number of documents in the list? | No, and what is the location shared by the least counties?",SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT ( * ) LIMIT 1 "Yes, what type of accounts are there?",SELECT distinct other_account_details FROM Accounts What year had the largest number of laps over 196?,SELECT year FROM table_name_52 WHERE laps > 196 Find the total amount of products ordered before 2018-03-17 07:13:53.,"SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < ""2018-03-17 07:13:53""" Which home team had a visitor of Ottawa Senators with a score of 1–5?,"SELECT home FROM table_name_61 WHERE visitor = ""ottawa senators"" AND score = ""1–5""" How many Olympic Games has London hosted?,SELECT COUNT(T3.id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London' "Who was the winner of seat no 4 for the election on January 25, 1967","SELECT seat_no_4 FROM table_2231241_1 WHERE election = ""January 25, 1967""" What is the monetary sum with a score of 75-71-75-72=293?,SELECT SUM(money___) AS $__ FROM table_name_12 WHERE score = 75 - 71 - 75 - 72 = 293 What are the id and name of the photos for mountains?,"SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000" What is the customer number for customer name Cleo?,"SELECT customer_number FROM customers WHERE customer_name = ""Cleo""" What venue is home for the Melbourne team?,"SELECT venue FROM table_name_60 WHERE home_team = ""melbourne""" What is the average population across the counties?,SELECT avg ( Population ) FROM county What was the average number of starts Michael Henig had in a year when he had more than 1201 yards?,SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201 What is the tournament with A in 2011?,"SELECT tournament FROM table_name_77 WHERE 2011 = ""a""" What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?,"SELECT product FROM product WHERE max_page_size = ""A4"" AND pages_per_minute_color < 5" show the lowest low temperature and highest wind speed in miles per hour.,"SELECT min(low_temperature) , max(wind_speed_mph) FROM weekly_weather" "What is the largest attendance on august 10, 1963, and a week larger than 1?","SELECT MAX(attendance) FROM table_name_75 WHERE date = ""august 10, 1963"" AND week > 1" How many transactions were made in Sac State Union using the American Express credit card in 2014?,SELECT COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State Union' AND T1.CreditCardType = 'American Express' AND T1.TransactionDate BETWEEN '2014-01-01' AND '2014-12-31' What was the sample size for the poll featuring Republican Ron Paul?,"SELECT sample_size FROM table_name_80 WHERE republican = ""ron paul""" "Which Fleet Series (Quantity) that has a Builder of mci, and an Order Year of 2002?","SELECT fleet_series__quantity_ FROM table_name_23 WHERE builder = ""mci"" AND order_year = ""2002""" "What is Date, when Status is Second Test?","SELECT date FROM table_name_34 WHERE status = ""second test""" When 82.74 is the area in kilometers squared what is the pop.density (per km2)?,"SELECT pop_density__per_km²_ FROM table_29289372_1 WHERE area__km²_ = ""82.74""" How many architects haven't built a mill before year 1850?,SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year < 1850 ); "What is the NVR Page of the ship with a Home Port of Sasebo, Japan?","SELECT nvr_page FROM table_name_6 WHERE home_port = ""sasebo, japan""" What was the outcome for the India Open?,"SELECT outcome FROM table_name_34 WHERE venue = ""india open""" Show the names of customers who use Credit Card payment method and have more than 2 orders.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING count(*) > 2 "How many of the employees have the last name ""Ringer"" ?",SELECT COUNT(LastName) FROM Employees WHERE LastName = 'Ringer' How many apps have rating of 5?,SELECT COUNT(App) FROM playstore WHERE Rating = 5 Name the least age for the 1st dose for 3 doses of 2-3 drops,"SELECT minimum_age_at_1st_dose FROM table_name_28 WHERE number_of_doses = ""3 doses"" AND dose = ""2-3 drops""" "Name the number of record for united center 18,838","SELECT COUNT(record) FROM table_22669044_8 WHERE location_attendance = ""United Center 18,838""" How many French movies got the highest ranking?,SELECT COUNT(movieid) FROM movies WHERE country = 'France' AND movieid IN ( SELECT movieid FROM u2base WHERE rating = ( SELECT MAX(rating) FROM u2base ) ) What was the final score on 1 August 2008?,"SELECT score FROM table_name_65 WHERE date = ""1 august 2008""" How many athletes playing in Canoeing fall into overweight BMI category in the 2008 Summer games?,SELECT COUNT(T5.id) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id INNER JOIN games AS T6 ON T4.games_id = T6.id WHERE T1.sport_name = 'Canoeing' AND T6.games_name = '2008 Summer' AND T5.weight * 10000.0 / (T5.height * T5.height) BETWEEN 25.0 AND 30 What date was Notts County the opponent and the league position was 1st?,"SELECT date FROM table_name_96 WHERE opponents = ""notts county"" AND league_position = ""1st""" Which label's year was 1990?,"SELECT label FROM table_name_74 WHERE year = ""1990""" "What is the rank when there was less than 1 gold, 0 bronze, and more than 1 total?",SELECT SUM(rank) FROM table_name_23 WHERE gold < 1 AND bronze = 0 AND total > 1 How many flights do we have?,SELECT COUNT(*) FROM Flight Find the name and account balance of the customers who have loans with a total amount of more than 5000.,"SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount) > 5000" What is the level of the course with the most number of teachers?,SELECT T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id ORDER BY COUNT(T2.p_id) DESC LIMIT 1 what is the verb meaning when the part 1 is lopen?,"SELECT verb_meaning FROM table_name_53 WHERE part_1 = ""lopen""" What's Yotam Halperin's position?,"SELECT position FROM table_12962773_2 WHERE player = ""Yotam Halperin""" "yankee stadium (i), and a Time of 3:00 has what attendance for this location?","SELECT attendance FROM table_name_56 WHERE location = ""yankee stadium (i)"" AND time = ""3:00""" What is the status of the orders placed on 04/10/2022?,SELECT DISTINCT T1.status_value FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id WHERE T3.order_date LIKE '2022-04-10%' What is the Lineup from a Match that is 27?,"SELECT lineup FROM table_name_12 WHERE match = ""27""" Tell me the name of the most pricy product.,SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1 How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?,"SELECT AVG(winners) FROM table_name_2 WHERE wins = 1 AND country = ""fiji"" AND first_title < 2004" What is the organization enlisted by student168?,SELECT organ FROM enlist WHERE name = 'student168' What win method has a time of 2:32?,"SELECT method FROM table_name_71 WHERE time = ""2:32""" How many hosts have the nationality united states?,"SELECT count ( * ) from host where nationality = ""United States""" "Player of mike o'quinn, and a Round smaller than 15 had what lowest pick?","SELECT MIN(pick) FROM table_name_30 WHERE player = ""mike o'quinn"" AND round < 15" WHAT DATE HAS A CATALOG OF 486553.4?,"SELECT MAX(date) FROM table_name_70 WHERE catalog = ""486553.4""" ok good!.what is last update in qld district?,"SELECT distinct last_update from address where district = ""QLD""" Show order ids and the number of products in each order.,"SELECT order_id , count(DISTINCT product_id) FROM Order_items GROUP BY order_id" Who is first elected when Kentucky 6 is the district?,"SELECT first_elected FROM table_2668352_5 WHERE district = ""Kentucky 6""" What Report has a Winning driver of mario razzauti?,"SELECT report FROM table_name_72 WHERE winning_driver = ""mario razzauti""" "What is Position, when Laps is 156?",SELECT position FROM table_name_90 WHERE laps = 156 "What tournament had a Score of 6–3, 2–6, [10–8]?","SELECT tournament FROM table_name_90 WHERE score = ""6–3, 2–6, [10–8]""" How many earnings have Wins larger than 3?,SELECT SUM(earnings___) AS $__ FROM table_name_70 WHERE wins > 3 When was the game titled 3DS Classic Collection released?,SELECT T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = '3DS Classic Collection' What Venue held the Olympic games in 2012?,"SELECT venue FROM table_name_12 WHERE tournament = ""olympic games"" AND year = 2012" What is the record of the game on March 21?,"SELECT record FROM table_name_38 WHERE date = ""march 21""" What was the minimum vertical measurement if the aspect ratio is 16:9 and scanning is interlaced?,"SELECT MIN(vertical) FROM table_272313_1 WHERE aspect_ratio = ""16:9"" AND scanning = ""interlaced""" How many country's located in the world?,SELECT count ( country ) FROM market WHat is the highest difference?,SELECT MAX(difference) FROM table_26677836_1 What was the date of the game that had a loss of Johnson (9-8)?,"SELECT date FROM table_name_30 WHERE loss = ""johnson (9-8)""" Who was the champion of the Philips Open with a runner-up of Javier Sánchez?,"SELECT champion FROM table_name_3 WHERE name = ""philips open"" AND runner_up = ""javier sánchez""" What are the pixels of those?,"SELECT DISTINCT T1.pixels FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = ""Nokia Corporation"" AND T1.Type ! = ""Text""" What are the template ids of any templates used in more than a single document?,SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1 Who did the fastest lap when pole position was damon hill and the location was magny-cours?,"SELECT fastest_lap FROM table_name_33 WHERE pole_position = ""damon hill"" AND location = ""magny-cours""" What home has 46 points?,SELECT home FROM table_name_2 WHERE points = 46 Please list the full names of all the customers who live in Italy.,"SELECT T4.first_name, T4.last_name FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN country AS T3 ON T2.country_id = T3.country_id INNER JOIN customer AS T4 ON T1.address_id = T4.address_id WHERE T3.country = 'Italy'" What is the Original artist when the week number is top 9?,"SELECT original_artist FROM table_name_39 WHERE week__number = ""top 9""" "Who were the opponents for the event in Milan, Italy?","SELECT opponent FROM table_name_78 WHERE tournament = ""milan, italy""" Awesome! Can you show me a list of all people names that are associated with Santo Domingo?,"select name from people where hometown = ""Santo Domingo""" Who had the high rebounds of the game that Deron Williams (5) had the high assists?,"SELECT high_rebounds FROM table_name_4 WHERE high_assists = ""deron williams (5)""" Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?,SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279) Name the wraps per inch for 120-240,"SELECT wraps_per_inch__wpi_ FROM table_20297668_1 WHERE m_100g = ""120-240""" How many different positions are there?,SELECT count ( distinct pPos ) from tryout Which country does customer with first name as Carole and last name as Bernhard live in?,"SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" List the name of the school with the smallest enrollment.,SELECT school_name FROM school ORDER BY enrollment LIMIT 1 Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.,"SELECT departure_date, arrival_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" What is the date of the last performance for Liam Mower?,"SELECT last_performance FROM table_name_11 WHERE name = ""liam mower""" "Which Visitor has a Home of calgary, and a Date of april 17?","SELECT visitor FROM table_name_72 WHERE home = ""calgary"" AND date = ""april 17""" Who directed the film that Avie Luthra received an award for?,"SELECT director_s_ FROM table_name_63 WHERE recipient = ""avie luthra""" On what date were less than 10 built with a locomotive number of 31-35?,"SELECT date FROM table_name_48 WHERE no_built < 10 AND loco_nos = ""31-35""" What is the largest average for the episode with 1.97 million Hong Kong viewers?,"SELECT MAX(average) FROM table_24856090_1 WHERE hk_viewers = ""1.97 million""" What is the home team of the game with a 2-0 record?,"SELECT home FROM table_name_89 WHERE record = ""2-0""" "What date was the attendance 82,500?","SELECT date FROM table_name_81 WHERE attendance = ""82,500""" What date was that claim made?,SELECT T1.Date_Claim_made FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id order by T1.Amount_Claimed desc limit 1 "Among the products with an average lead time of 60, which vendor has the highest profit on net? Indicate the credit rating of such vendor.","SELECT T2.Name, T2.CreditRating FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.AverageLeadTime = 60 ORDER BY T1.LastReceiptCost - T1.StandardPrice DESC LIMIT 1" How about the record time?,"SELECT T1.fault_log_entry_id , T1.fault_description , T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1" What is the percentage of application with 4.7 rating having more positives sentiment than negative sentiment?,SELECT CAST(COUNT(CASE WHEN ( SELECT COUNT(CASE WHEN Sentiment = 'Positive' THEN 1 ELSE NULL END) - COUNT(CASE WHEN Sentiment = 'Negative' THEN 1 ELSE NULL END) FROM user_reviews GROUP BY App ) > 0 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Rating = 4.7 What is the D44 when D41 is D 16?,"SELECT d_44 FROM table_name_70 WHERE d_41 = ""d 16""" What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check',SELECT payment_date FROM payments WHERE amount_paid > 300 OR payment_type_code = 'Check' What engine was for the vehicle with a cooper t43 chassis?,"SELECT engine FROM table_name_19 WHERE chassis = ""cooper t43""" What was Austria's lowest total when the gold was more than 3?,"SELECT MIN(total) FROM table_name_84 WHERE nation = ""austria"" AND gold > 3" How many races is different distances does Rosehill Guineas compete in? ,"SELECT COUNT(distance) FROM table_1284347_2 WHERE race = ""Rosehill Guineas""" List the states which have between 2 to 4 staffs living there.,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4; How many students graduated from Central Alabama Community College in 2011 in total?,SELECT T2.grad_cohort FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T1.chronname = 'Central Alabama Community College' AND T2.year = 2011 Thanks. What are those professors' degree?,"SELECT T1.emp_lname , T2.prof_high_degree FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'" How many exhibitions have a attendance more than 100 or have a ticket price below 10?,SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10 What was the total unit sold for item 10 when the average temperature was below the median temperature?,SELECT SUM(T5.units) FROM weather AS T4 INNER JOIN sales_in_weather AS T5 ON T4.`date` = T5.`date` INNER JOIN relation AS T6 ON T5.store_nbr = T6.store_nbr WHERE T5.item_nbr = 10 AND T4.tavg < ( SELECT AVG(T1.tavg) FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 10 ) Which Overall is the lowest one that has a Position of offensive tackle?,"SELECT MIN(overall) FROM table_name_33 WHERE position = ""offensive tackle""" "What score has vancouver as the home, and february 16 as the date?","SELECT score FROM table_name_81 WHERE home = ""vancouver"" AND date = ""february 16""" How many episodes in the series are also episode 18 in the season?,SELECT COUNT(no_in_series) FROM table_23492454_1 WHERE no_in_season = 18 What are all of the episodes ordered by ratings?,SELECT Episode FROM TV_series ORDER BY rating What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?,"SELECT competition FROM table_name_26 WHERE opponent = ""peterborough phantoms"" AND date = 2" find average of the price?,SELECT avg ( Product_Price ) FROM Products Name the team for june 16 jeff gordon,"SELECT team FROM table_2150776_1 WHERE date = ""June 16"" AND driver = ""Jeff Gordon""" Count the number of programs.,SELECT count(*) FROM program How many time was the distance Abu Dhabi?,"SELECT COUNT(sanya) FROM table_26894949_2 WHERE distance = ""abu_dhabi""" What are the region names affected by the storm with a number of deaths of least 10?,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 What are the most popular confections product and calculate the total sales generated by this product?,SELECT COUNT(T1.UnitPrice * T3.Quantity) FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID INNER JOIN `Order Details` AS T3 ON T1.ProductID = T3.ProductID WHERE T2.CategoryName = 'Confections' GROUP BY T3.Quantity ORDER BY T3.Quantity DESC LIMIT 1 "What was the playoff apps for Thomas Heary, that had the position df?","SELECT playoff_apps FROM table_name_10 WHERE position = ""df"" AND name = ""thomas heary""" "display the department name, city, and state province for each department.","SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id" How many tournament titles for iowa state with 3 total titles?,"SELECT MAX(tournament) FROM table_name_90 WHERE total = 3 AND team = ""iowa state""" What is the average attendance after week 16?,SELECT AVG(attendance) FROM table_name_10 WHERE week > 16 Did the Falcons have a win or loss in the game when their record was 3-7?,"SELECT result FROM table_16710742_3 WHERE record = ""3-7""" What is the average number of years spent working as a journalist?,SELECT avg(Years_working) FROM journalist Name the catalogue that has tracks less than 13 and the release date of 10/31/72,"SELECT catalogue FROM table_name_28 WHERE track < 13 AND release_date = ""10/31/72""" "List the duration, file size and format of songs whose genre is pop, ordered by title?","SELECT T1.duration , T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = ""pop"" ORDER BY T2.song_name" What brands of beer has Peg Winchester consumed?,SELECT T3.BrandName FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Peg' AND T1.Last = 'Winchester' "When has a Score of 0–1, and a Tie no of 3?","SELECT date FROM table_name_12 WHERE score = ""0–1"" AND tie_no = ""3""" How many users installed the app but are not active?,SELECT COUNT(app_id) FROM app_events WHERE is_installed = 1 AND is_active = 0 How many winning drivers were there in the race that had a fastest lap time of 56.920?,"SELECT COUNT(winning_driver) FROM table_10706961_2 WHERE fastest_lap = ""56.920""" "Among the male customer in their twenties, how many are from places where the average income is more than 3000?",SELECT COUNT(T2.GEOID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Male' AND T2.INCOME_K > 3000 AND T1.age >= 20 AND T1.age <= 29 "What is the sum of FA cups of club Stalybridge Celtic, which has more than 0 FA trophies and a total less than 20?","SELECT SUM(fa_cup) FROM table_name_50 WHERE fa_trophy > 0 AND club = ""stalybridge celtic"" AND total < 20" Name the tries against for drawn,"SELECT COUNT(tries_against) FROM table_12792876_4 WHERE ""drawn"" = ""drawn""" Users in which city of Argentina post the most tweets?,SELECT T2.City FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.Country = 'Argentina' GROUP BY T2.City ORDER BY COUNT(T1.TweetID) DESC LIMIT 1 What is every candidate for the Cardiff Central constituency?,"SELECT candidate FROM table_25818630_1 WHERE constituency = ""Cardiff Central""" What is the result of the away game played on August 4?,"SELECT result FROM table_name_15 WHERE home_away = ""away"" AND date = ""august 4""" How many total points does he have?,SELECT sum ( Total_Points ) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID where t2.Name = 'Paul Hamm' can you show me a list of where i can go on bus? | do you want the id of location or tourist attraction or the name? | yes,"select Tourist_Attraction_ID,Location_ID,Name from Tourist_Attractions where How_to_Get_There = 'bus'" Name the top 10 most reviewed apps.,SELECT DISTINCT App FROM playstore ORDER BY Reviews DESC LIMIT 10 And for horses? | Do you mean total horses or working horses? | total horses,"SELECT max ( Total_Horses ) , min ( Total_Horses ) FROM farm" How many episodes had 11.86 million US viewers?,"SELECT COUNT(no_in_series) FROM table_28215780_4 WHERE us_viewers__millions_ = ""11.86""" Find the names of customers who are not living in the state of California.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' What is the ID of marshall landfill on 09/08/1983?,"SELECT cerclis_id FROM table_name_98 WHERE listed = ""09/08/1983"" AND name = ""marshall landfill""" What is the highest grid when the time is +45.162?,"SELECT MAX(grid) FROM table_name_65 WHERE time = ""+45.162""" Date of december 29 has what visitor?,"SELECT visitor FROM table_name_9 WHERE date = ""december 29""" "Name the high rebounds for wells fargo center 16,695","SELECT high_rebounds FROM table_27700375_11 WHERE location_attendance = ""Wells Fargo Center 16,695""" What was the score of the game on May 26?,"SELECT score FROM table_name_24 WHERE date = ""may 26""" What's the name of the player in 1996 who had the most steals that didn't play in the playoffs?,SELECT T1.playerID FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1996 AND T2.PostGP = 0 ORDER BY T2.steals DESC LIMIT 1 Name the goaltenders who had played in both PCHA and NHL league.,"SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.lgID IN ('PCHA', 'NHL') GROUP BY T2.playerID HAVING COUNT(DISTINCT T2.lgID) > 1" What is the average number of yards on a red tee that has a hole of 1 and a par above 4?,"SELECT AVG(yards__red_tees_) FROM table_name_27 WHERE hole = ""1"" AND par__white_tees_ > 4" "What is the total number drawn with goals against less than 55, and a total of 14 losses?",SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 14 What is the Nationality of the id number 4.,SELECT Nationality FROM member where member_id = 4 What's the grade of 10838?,SELECT grade FROM takes WHERE semester = 'Spring' AND YEAR = 2004 and id = 10838 What is the success rate for the year 2012?,"SELECT success_rate FROM table_name_52 WHERE year = ""2012""" What is the date of birth for basket baller called ido kozikaro,"SELECT MAX(year_born) FROM table_23670057_4 WHERE player = ""Ido Kozikaro""" How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? ,"SELECT COUNT(margin) FROM table_22753245_1 WHERE party = ""Indian National Congress"" AND winner = ""L. Adaikalaraj c""" What is the population density of Caramoran?,"SELECT pop_density__per_km_2__ FROM table_255829_1 WHERE municipality = ""Caramoran""" Where are the ship countries of orders placed by Janet Leverling?,SELECT DISTINCT T2.ShipCountry FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Janet' AND T1.LastName = 'Leverling' For how many times was Park Dietz credited?,SELECT COUNT(T3.person_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T2.credited = 'true' AND T3.name = 'Park Dietz' "What Date has a Score in the final of 3–6, 2–6, 4–6?","SELECT date FROM table_name_4 WHERE score_in_the_final = ""3–6, 2–6, 4–6""" Show storm name with at least two regions and 10 cities affected.,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10; What are the ids and durations of the trips with the top 3 durations?,"SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3" "Among divergent movies that got the highest rating, how many of them are from the UK?",SELECT COUNT(DISTINCT T1.movieid) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'UK' AND T1.rating = 5 "How many reactions have an Athlete of alleyne francique, and a Lane larger than 9?","SELECT COUNT(react) FROM table_name_24 WHERE athlete = ""alleyne francique"" AND lane > 9" What are the grade number and classroom number of each class in the list?,"SELECT DISTINCT classroom , grade FROM list" "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.","SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id" What is the description for the budget type with code ORG?,"SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = ""ORG""" What was the highest front row starts for Alain Prost?,"SELECT MAX(front_row_starts) FROM table_name_52 WHERE driver = ""alain prost""" "Which enzyme names have the substring ""PBG""?","SELECT name FROM enzyme WHERE name LIKE ""%PBG%""" What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?,"SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_supporters_shield_runner_up = ""Chivas USA""" How many friends are there?,SELECT count ( distinct friend ) from PersonFriend Which station sold the highest quantity of item number 5 overall?,SELECT T2.station_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.item_nbr = 5 GROUP BY T2.station_nbr ORDER BY SUM(T1.units) DESC LIMIT 1 What was the tie number with the away team of Sheffield Wednesday?,"SELECT tie_no FROM table_name_63 WHERE away_team = ""sheffield wednesday""" Return the names of teams that have no match season record.,SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season) Please list the names of the players who use the right hand as their batting hand and are from Australia.,SELECT T2.Player_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T2.Country_Name = T1.Country_id INNER JOIN Batting_Style AS T3 ON T2.Batting_hand = T3.Batting_Id WHERE T1.Country_Name = 'Australia' AND T3.Batting_Hand = 'Right-hand bat' What is the maximum elevation in netherlands?,"SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = ""Netherlands""" What did they do against Villanova?,"SELECT result FROM table_21058823_1 WHERE opponent = ""Villanova""" Which actors are from Ukraine?,"SELECT actors_name FROM table_10236830_4 WHERE country = ""Ukraine""" Give the state and name of institutions in year of data release from 2010 to 2012 with black students.,"SELECT DISTINCT T1.state, T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'B' AND T2.year BETWEEN 2010 AND 2012" Who won the spanish grand prix?,"SELECT 250 AS cc_winner FROM table_15299235_1 WHERE grand_prix = ""Spanish grand_prix""" What country does Roberto Almeida live?,"SELECT country FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida"";" What is the salary and name of the employee who has the most number of certificates on aircraft with distance less than 5000?,"SELECT T1.salary, T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance < 5000 GROUP BY T1.eid ORDER BY count ( * ) DESC LIMIT 1" Count the number of departments which offer courses.,SELECT count(DISTINCT dept_name) FROM course Which package/option has sky wwe 24/7 television service?,"SELECT package_option FROM table_name_99 WHERE television_service = ""sky wwe 24/7""" Find the first and last name of students who are living in the dorms that have amenity TV Lounge.,"SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" How many Italian film titles were special featured with deleted scenes?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'Italian' AND T1.special_features = 'deleted scenes' Find the number of manufactures that are based in Tokyo or Beijing.,SELECT count ( * ) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' What is the average fee for a CSU campus in the year of 2005?,SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005 What position does John Carlson play?,"SELECT position FROM table_name_15 WHERE player = ""john carlson""" Find the distinct locations that has a cinema.,SELECT DISTINCT LOCATION FROM cinema What week did the contestant finish in the bottom 2 with a Celine Dion song?,"SELECT week FROM table_name_41 WHERE status = ""bottom 2"" AND artist = ""celine dion""" How many credit cards does Blanche Huels have?,"SELECT count ( * ) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Blanche"" AND T2.customer_last_name = ""Huels"" AND T1.card_type_code = ""Credit""" How many goals were scored when there were 73 caps?,"SELECT goals FROM table_name_63 WHERE caps = ""73""" Which European election (UK) has a Share of votes of 19%?,"SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = ""19%""" "What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?","SELECT rd, _time FROM table_name_43 WHERE res = ""win"" AND type = ""tko"" AND opponent = ""carlos molina""" Which player has 68 as the score and canada as the country?,"SELECT player FROM table_name_35 WHERE score = 68 AND country = ""canada""" Count the number of different payment method codes used by parties.,SELECT count(DISTINCT payment_method_code) FROM parties Show the transportation method least people choose to get to tourist attractions.,SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT ( * ) LIMIT 1 "What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?",SELECT cooper FROM table_name_43 WHERE ashmolean < 21 AND hahland < 4 "What is Record, when Team is ""@ Atlanta""?","SELECT record FROM table_name_78 WHERE team = ""@ atlanta""" "Name the total number of written by for original air date for may 8, 2005","SELECT COUNT(written_by) FROM table_1876825_7 WHERE original_air_date = ""May 8, 2005""" Name the entrant for chassis of gh1,"SELECT entrant FROM table_name_27 WHERE chassis = ""gh1""" Find the names of all students who took some course and the course description?,"SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code" "What is the lowest number of participants in 2013 when there were more than 5 participants in 2010, less than 4 participants in 2012 and country was germany?","SELECT MIN(2013) FROM table_name_34 WHERE 2010 > 5 AND country = ""germany"" AND 2012 < 4" What is the name of the community with the highest population?,SELECT community_area_name FROM Community_Area ORDER BY population DESC LIMIT 1 What is the ratio of American casts on episode 2 of the series? Please include their roles.,"SELECT CAST(SUM(CASE WHEN T2.category = 'Cast' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.category), T1.role FROM Award AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Episode AS T3 ON T2.episode_id = T3.episode_id INNER JOIN Person AS T4 ON T2.person_id = T4.person_id WHERE T3.episode = 2 AND T4.birth_country = 'USA'" What is the category of businesses with highest star rating?,SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id ORDER BY T1.stars DESC LIMIT 1 "Which Tournament has an Outcome of winner, and a Surface of hard (i)?","SELECT tournament FROM table_name_4 WHERE outcome = ""winner"" AND surface = ""hard (i)""" How many people at Arden Street Oval?,"SELECT COUNT(crowd) FROM table_name_21 WHERE venue = ""arden street oval""" Who were the candidates that ran when Jim Moody was up for reelection after 1982?,SELECT candidates FROM table_1341577_50 WHERE first_elected = 1982 What is the caption for the prediction class id 12?,SELECT PRED_CLASS FROM PRED_CLASSES WHERE PRED_CLASS_ID = 12 Find the names of stadiums whose capacity is smaller than the average capacity.,SELECT name FROM stadium WHERE capacity < (SELECT avg(capacity) FROM stadium) "Which studios have produced films with the director ""Walter Hill""?","SELECT studio FROM film WHERE Director = ""Walter Hill""" "Show the birth city of the actor who played ""Gabriel Martin"".",SELECT T2.`Birth City` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Gabriel Martin' What is that student's Id?,SELECT StuID FROM Student WHERE age = ( SELECT max ( age ) FROM Student ) What are the positions of each of those players?,"Select position, player, draft_pick_number from match_season where draft_class in ( SELECT DISTINCT draft_class FROM match_season WHERE College = ""UCLA"" OR College = ""Duke"" ) " "When Brett Lancaster won the general classification, who won the team calssification?","SELECT team_classification FROM table_25055040_22 WHERE general_classification = ""Brett Lancaster""" "What shows for 2002 when the 2004 is A, and the 2005 is 1r?","SELECT 2002 FROM table_name_40 WHERE 2004 = ""a"" AND 2005 = ""1r""" "What are the official names of cities, ordered descending by population?",SELECT Official_Name FROM city ORDER BY Population DESC "Okay, and where are the locations of each school?","SELECT T2.School, T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT ( * ) > 1" How many login names are there? | Did you mean the login names for all students? | How many login names are there for the students?,SELECT count ( distinct login_name ) FROM Students "What is the rank number that aired october 26, 2007?","SELECT RANK(_number) FROM table_11251109_3 WHERE air_date = ""October 26, 2007""" What is the average unit price of rock tracks?,"SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" What is the document status description of the document with id 1?,SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1; "How many Points have a Home of pittsburgh, and a Score of 1–7?","SELECT SUM(points) FROM table_name_11 WHERE home = ""pittsburgh"" AND score = ""1–7""" Which location was won by George Heath?,"SELECT location FROM table_name_15 WHERE driver = ""george heath""" What is under segment C when s cuckoo clock is under segment B?,"SELECT segment_c FROM table_name_22 WHERE segment_b = ""s cuckoo clock""" What is the type of the document whose description starts with the word 'Initial'?,SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%' Which round did Dundee United end in?,"SELECT round FROM table_name_11 WHERE club = ""dundee united""" List the companies and the investors of entrepreneurs.,"SELECT Company , Investor FROM entrepreneur" What was the minimum time spent on top?,SELECT min ( Weeks_on_Top ) FROM volume "How much February has a Game larger than 37, and an Opponent of chicago black hawks?","SELECT COUNT(february) FROM table_name_95 WHERE game > 37 AND opponent = ""chicago black hawks""" What are the title and rental rate of the film with the highest rental rate?,"SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1" "What is the sum of Year, when Result is 9th?","SELECT SUM(year) FROM table_name_10 WHERE result = ""9th""" Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in.,"SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" "What is Win %, when Conference Titles is 0, and when Win-Loss is 20-10?","SELECT win__percentage FROM table_name_68 WHERE conference_titles = ""0"" AND win_loss = ""20-10""" What is the power of the 3.2i v8 32v?,"SELECT power FROM table_1245350_1 WHERE quattroporte_iv = ""3.2i V8 32v""" "What is the highest price of the dish ""Chicken gumbo"" on a menu page?",SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Chicken gumbo' ORDER BY T2.price DESC LIMIT 1 Which paper has the most authors? Give me the paper title.,SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship) Who wrote episode number 18?,SELECT written_by FROM table_28196105_1 WHERE _number = 18 Bowler of shane bond has what lowest overall number?,"SELECT MIN(over_no) FROM table_name_37 WHERE bowler = ""shane bond""" Find all the customer last names that do not have invoice totals larger than 20.,SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20 "What was the elimination move when the wrestlers in team Batista were eliminated by ""Benjamin"".","SELECT Elimination_Move FROM Elimination WHERE Eliminated_By = ""Benjamin"" and team = 'Team Batista'" "Name the podcast title, rating and review content created by '76A4C24B6038145'.","SELECT T2.title, T2.rating, T2.content FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.author_id = '76A4C24B6038145'" Please list the IDs of the object samples in class no. 297 in image no.1.,SELECT OBJ_SAMPLE_ID FROM IMG_OBJ WHERE IMG_ID = 1 AND OBJ_CLASS_ID = 297 Show all the information about election.,SELECT * FROM election What's the IS-3 when the KV-1S is 45?,"SELECT is_3_m1945 FROM table_name_72 WHERE kv_1s_m1942 = ""45""" "Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3?",SELECT call_sign FROM table_name_3 WHERE erp_w > 250 AND frequency_mhz < 99.3 What position has 2008 as the season?,"SELECT position FROM table_name_11 WHERE season = ""2008""" What is the maximumum number of wins?,SELECT MIN(wins) FROM table_1507423_4 "It has fa cup goals larger than 0 and total goals of 0, what is the average total apps?",SELECT AVG(total_apps) FROM table_name_41 WHERE total_goals = 0 AND fa_cup_goals > 0 What was Footscray's score as the home team?,"SELECT home_team AS score FROM table_name_15 WHERE home_team = ""footscray""" What driver has 19 as the zan 1?,"SELECT driver FROM table_name_13 WHERE zan_1 = ""19""" "In the tournament that has 15 events, and less than 6 top-25's, how many top-5's did he have?",SELECT SUM(top_5) FROM table_name_76 WHERE events = 15 AND top_25 < 6 how many documents are there?,SELECT count ( * ) FROM Draft_Copies Name the 2001 with 2007 of sf,"SELECT 2001 FROM table_name_2 WHERE 2007 = ""sf""" Which position is the most popular among players in the tryout?,SELECT pPos FROM tryout GROUP BY pPos ORDER BY count ( * ) DESC LIMIT 1 What's Blanco Encalada's main artillery?,"SELECT main_artillery FROM table_23614702_1 WHERE warship = ""Blanco Encalada""" "If the college is SMU, what is the position?","SELECT position FROM table_27132791_3 WHERE college = ""SMU""" "Return the different statuses of cities, ascending by frequency.",SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC Find the last name of Mr.STORMY,"SELECT Lastname from list where FirstName like ""%STORMY%""" Which attractions did Vivian visit?,"SELECT * FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vivian""" HOW MANY TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN?,"SELECT COUNT(20 AS _questions) FROM table_1566852_7 WHERE interview_subject = ""Ludacris""" Give me the cities where the state is Colorado,SELECT town_city FROM addresses where state_province_county = 'Colorado' Which co-driver was part of team Martini Lancia earlier than 1986?,"SELECT co_drivers FROM table_name_14 WHERE year < 1986 AND team = ""martini lancia""" Which 1989's 1991 and 1994 stats were 1r?,"SELECT 1989 FROM table_name_81 WHERE 1991 = ""1r"" AND 1994 = ""1r""" How many transactions payment made by customer that is lower than 10000. Group the result by year.,"SELECT STRFTIME('%Y', t1.paymentDate), COUNT(t1.customerNumber) FROM payments AS t1 WHERE t1.amount < 10000 GROUP BY STRFTIME('%Y', t1.paymentDate)" What are the region names affected by the storm with a number of deaths of least 10?,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 What is the total number of ranking criteria under the ranking system called Shanghai Ranking?,SELECT COUNT(*) FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T1.system_name = 'Shanghai Ranking' "Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514?","SELECT driver FROM table_name_15 WHERE laps < 498 AND points < 58 AND car__number > 22 AND winnings = ""$93,514""" Which visitor has a record of 2-4?,"SELECT visitor FROM table_name_39 WHERE record = ""2-4""" What was the bleeding time for factor xii deficiency,"SELECT bleeding_time FROM table_1099080_1 WHERE condition = ""Factor XII deficiency""" Which contact channel codes were used less than 5 times?,SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5 Can you please also provide the number of followers for the remaining users?,"SELECT followers FROM user_profiles WHERE name ! = ""Tyler Swift""" "Among the long reviews made by user ID 3, how many of them have received a medium number of useful votes?",SELECT COUNT(review_length) FROM Reviews WHERE user_id = 3 AND review_length LIKE 'Long' AND review_votes_useful LIKE 'Medium' "What is the Date with a Result of 8–2, and a Score with 6–2?","SELECT date FROM table_name_99 WHERE result = ""8–2"" AND score = ""6–2""" Find the full names of employees who help customers with the first name Leonie.,"SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = ""Leonie""" what's the party with candidates  jerry weller (r) 51.77% clem balanoff (d) 48.23%,"SELECT party FROM table_1341472_15 WHERE candidates = ""Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%""" Can you give me just the organization id?,SELECT T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count ( * ) DESC LIMIT 1 "Among the employees with poor performance, provide the managers' full names, location city, address and its zip code.","SELECT T1.firstname, T1.lastname, T2.locationcity, T2.address, T2.zipcode FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Manager' AND T1.performance = 'Poor'" What is the name of the event where competitors received the most gold medals?,SELECT T2.event_name FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN medal AS T3 ON T1.medal_id = T3.id WHERE T3.medal_name = 'Gold' GROUP BY T2.id ORDER BY COUNT(T1.event_id) DESC LIMIT 1 How many recipients of the Primetime Emmy Award category that were born in the USA? Find the percentage of Americans in the total number of the country.,"SELECT SUM(CASE WHEN T1.birth_country = 'USA' THEN 1 ELSE 0 END) AS num , CAST(SUM(CASE WHEN T1.birth_country = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award_category = 'Primetime Emmy' AND T2.person = 'Dan Castellaneta';" What are the top 3 states with the highest Asian population? List the full names of all the representatives in the said states.,"SELECT t.state, T1.first_name, T1.last_name FROM zip_data AS T INNER JOIN congress AS T1 ON t.state = T1.abbreviation GROUP BY t.state ORDER BY SUM(t.asian_population) DESC LIMIT 3" "Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?","SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = ""moncalieri""" Thank you! Can you show include the flim's title to that list?,"SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count ( * ) DESC LIMIT 1" How many airports haven't the pilot 'Thompson' driven an aircraft?,SELECT COUNT(*) FROM airport WHERE NOT id IN (SELECT airport_id FROM flight WHERE pilot = 'Thompson') Show the titles of books in descending order of publication price.,SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC What is the 1.93 that is 2.05 in height?,SELECT 193 FROM table_name_77 WHERE height = 2.05 When did Wing Hung Chop Suey Restaurant have its first inspection?,SELECT MIN(T2.inspection_date) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.aka_name = 'WING HUNG CHOP SUEY RESTAURANT' Who is the head of state of the country where the city of Pyongyang is under?,SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Pyongyang' "What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?","SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = ""October 30, 2007 15:53""" Name the state with the most number of graduate cohort in 2012 from private institute for profit? List all such institutes in the mentioned state.,"SELECT T1.state, T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year = 2012 AND T1.control = 'Private for-profit' GROUP BY T2.grad_cohort ORDER BY COUNT(T2.grad_cohort) DESC LIMIT 1" Name the original air date for series number 15,SELECT original_air_date FROM table_26261072_1 WHERE series__number = 15 What was the resolution for the match that ended by Submission (armbar)?,"SELECT res FROM table_name_91 WHERE method = ""submission (armbar)""" What are the ids and names of the architects who built at least 3 bridges ?,"SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) >= 3" Find the first name and office of history professor who did not get a Ph.D. degree.,"SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree <> 'Ph.D.'" What is the date of the performance with the highest number of attendees?,SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1 list the local authorities and services provided by all stations.,"SELECT local_authority , services FROM station" What is the name of the winner with a type of plain stage and a Course of nola to sora?,"SELECT winner FROM table_name_35 WHERE type = ""plain stage"" AND course = ""nola to sora""" What was the crowd numbers when the VFL played Victoria Park?,"SELECT SUM(crowd) FROM table_name_50 WHERE venue = ""victoria park""" Find the name of companies whose revenue is greater than the average revenue of all companies.,SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers) Return the id of the staff whose Staff Department Assignment was earlier than that of any Clerical Staff.,SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to < (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code = 'Clerical Staff') Find the patient who has the most recent undergoing treatment?,SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1 In what counties is the 2011 population 17908?,SELECT county FROM table_1940144_1 WHERE population_2011 = 17908 "What is Score, when Date is ""2000-05-23""?","SELECT score FROM table_name_93 WHERE date = ""2000-05-23""" Name the least flaps,SELECT MIN(flaps) FROM table_24466191_1 Which teams were in the 2006-07 season?,"SELECT teams FROM table_name_41 WHERE season = ""2006-07""" "Among the works of Shakespeare, how many of them have the word ""Henry"" on its title?",SELECT COUNT(id) FROM works WHERE Title LIKE '%Henry%' "What is the average year of events that took place in Antwerp, Belgium?","SELECT AVG(year) FROM table_name_97 WHERE venue = ""antwerp, belgium""" "What is Date, when Team is ""Orlando""?","SELECT date FROM table_name_72 WHERE team = ""orlando""" Who were candidates in Florida 10 district?,"SELECT candidates FROM table_19753079_12 WHERE district = ""Florida 10""" Tell me the total for silver more than 0 for italy with gold less than 29,"SELECT MIN(total) FROM table_name_26 WHERE silver > 0 AND nation = ""italy"" AND gold < 29" Alright! Can you filter that list to show only the individual who is the oldest?,"SELECT name, job FROM Person WHERE job = 'student' ORDER BY age DESC LIMIT 1" When were the successor/s seated for Ohio 10th?,"SELECT date_successor_seated FROM table_2417345_4 WHERE district = ""Ohio 10th""" "Which Arena has Points larger than 28, and a Date of december 14?","SELECT arena FROM table_name_2 WHERE points > 28 AND date = ""december 14""" What date was the 1500 m freestyle competition?,"SELECT date FROM table_name_97 WHERE event = ""1500 m freestyle""" What was the result of match 25?,"SELECT result FROM table_name_97 WHERE match = ""25""" 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 How many total laps for a grid of 3?,SELECT COUNT(laps) FROM table_name_42 WHERE grid = 3 List the branch name and city without any registered members.,"SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)" Which region has the most athletes?,SELECT T2.region_name FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id GROUP BY T2.region_name ORDER BY COUNT(T1.person_id) DESC LIMIT 1 Add the total profit of Patrick Gardner in the Central region.,SELECT SUM(T2.Profit) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Patrick Gardner' AND T1.Region = 'Central' List title of albums have the number of tracks greater than 10.,SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10; Name the date of birth for 27/07/86,"SELECT name FROM table_22705586_1 WHERE date_of_birth = ""27/07/86""" What was the venue for the game on 10-09-2012?,"SELECT venue FROM table_name_71 WHERE date = ""10-09-2012""" Which parts have more than 2 faults? Show the part name and id.,"SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count(*) > 2" "What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?","SELECT MAX(markatal) FROM table_name_69 WHERE municipality = ""leirvík"" AND inhabitants_per_km² > 79" "Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?","SELECT servedby FROM table_name_1 WHERE local_authority_[a_] = ""thurrock"" AND station = ""ockendon""" Show company name and main industry without a gas station.,"SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)" How did the election in the Florida 14 district end?,"SELECT results FROM table_1341423_9 WHERE district = ""Florida 14""" What bridge is in Mcville?,"SELECT name FROM table_name_69 WHERE location = ""mcville""" What is the call sign for Thunder 106.1?,"SELECT call_sign FROM table_name_62 WHERE name = ""thunder 106.1""" When was terry cook picked?,"SELECT AVG(pick) FROM table_name_92 WHERE player = ""terry cook""" Which 2005 has a 1999 of 0–0?,"SELECT 2005 FROM table_name_37 WHERE 1999 = ""0–0""" Who was in lane 6 with a mark of 2:05.58 SB?,"SELECT name FROM table_name_84 WHERE lane = 6 AND mark = ""2:05.58 sb""" How many students were there in university ID 1 in 2011?,SELECT num_students FROM university_year WHERE year = 2011 AND university_id = 1 what is the average rating?,SELECT avg ( rating ) FROM review What won the Best Female Artist if Best Lyrical Record won the Best Male Artist?,"SELECT best_female_artist FROM table_22546460_4 WHERE best_male_artist = ""Best Lyrical Record""" What is the police force of counties on the west side?,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West""" "What is the Interregnum ended for the person with a Duration of 3 months, 6 days?","SELECT interregnum_ended FROM table_name_78 WHERE duration = ""3 months, 6 days""" Which player had 9 blocks?,SELECT player FROM table_25353861_5 WHERE blocks = 9 What is the name of the race in the Modena circuit?,"SELECT race_name FROM table_1140116_5 WHERE circuit = ""Modena""" What is the power of the Type R?,"SELECT power FROM table_250230_2 WHERE model = ""Type R""" On what date was the I Dessau Autobahnspinne race?,"SELECT date FROM table_name_66 WHERE race_name = ""i dessau autobahnspinne""" What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.,"SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'" Which Goals have a Date of 7 february 2010?,"SELECT MAX(goals) FROM table_name_45 WHERE date = ""7 february 2010""" "Who gave a ""4"" rating to the movie ""Freaks"" at 2013/5/4 6:33:32? Give his/her user id.",SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE rating_score = 4 AND rating_timestamp_utc LIKE '2013-05-04 06:33:32' AND T2.movie_title LIKE 'Freaks' "Find the average age of members of the club ""Hopkins Student Enterprises"".","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" What is the total number of residents for the districts with the 3 largest areas?,SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3 Count the number of different statuses.,SELECT count(DISTINCT Status) FROM city List the carriers of devices that have no devices in stock.,SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock) Last what is the phone number?,"SELECT Store_Phone FROM Stores WHERE Store_Name = ""FJA Filming""" What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?,"SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"" OR Directed_by = ""Brandon Vietti"";" What are the swimsuit scores of participants with score 9.366 in interview,"SELECT swimsuit FROM table_17088705_2 WHERE interview = ""9.366""" Hi there! Whew! That was a long wait to join the chat! Can you please show me what the largest single payment amount is?,SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 How many orders that the employees who are located in Tacoma handled?,SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.City = 'Tacoma' Team of Honda and a point total of 238 is what highest year?,"SELECT MAX(year) FROM table_name_69 WHERE team = ""honda"" AND points = 238" What is the oldest log id and its corresponding problem id?,"SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1" Please provide the ages of the two members.,"SELECT T3.age from Club as T1 join member_of_club as T2 on T1.clubid = T2.clubid join student as T3 on T2.stuid = T3.stuid where T1.clubname = ""Bootup Baltimore""" What was the result of the game against Luxembourg?,"SELECT results¹ FROM table_name_97 WHERE opponent = ""luxembourg""" "Check the invoices record and compute the average quantities ordered with the payment method ""MasterCard"".","SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = ""MasterCard""" "What score was given at the August 17, 2005 match?","SELECT score FROM table_name_47 WHERE date = ""august 17, 2005""" How many awards did simpson 20 won in 2009?,"SELECT COUNT(award_id) FROM Award WHERE SUBSTR(year, 1, 4) = '2009' AND result = 'Winner';" What is the title of that course?,SELECT title FROM course WHERE course_id IN ( SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance' ) Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.,SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200) Which business ID have the shortest business operating hours?,SELECT business_id FROM Business_Hours ORDER BY closing_time - opening_time LIMIT 1 "Can you show me the policy ids, customer ids and policy type codes of all policies?","SELECT Policy_ID,Customer_ID,Policy_Type_Code FROM policies" What is the gender of the user who has posted the tweet that got the most likes?,SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID ORDER BY T1.Likes DESC LIMIT 1 What day of the week has the lowest low temperature.,"select day_of_week, min ( wind_speed_mph ) from weekly_weather order by wind_speed_mph" How many staff does each project has? List the project id and the number in an ascending order.,"SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*)" What is the Country of the T8 Place Player with a Score of 70-67-71=208?,"SELECT country FROM table_name_60 WHERE place = ""t8"" AND score = 70 - 67 - 71 = 208" what is the name of the wrestler with the fewest days held,SELECT name FROM wrestler order by Days_held limit 1 Which of the highest pick numbers had a round of less than 2?,SELECT MAX(pick__number) FROM table_name_81 WHERE round < 2 Which region has the highest medal number?,SELECT T5.region_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person_region AS T4 ON T3.person_id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T1.id != 4 GROUP BY T5.region_name ORDER BY COUNT(T2.competitor_id) DESC LIMIT 1 Name the period for michel prost,"SELECT period FROM table_24565004_17 WHERE name = ""Michel Prost""" What is the title of the album that was released by the artist whose name has the phrase 'Led'?,SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' How many bankrupt students are there in the Marines?,SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'marines' Show different carriers of phones together with the number of phones with each carrier.,"SELECT Carrier , COUNT(*) FROM phone GROUP BY Carrier" How many films have the word 'Dummy' in their titles?,"SELECT count(*) FROM film WHERE title LIKE ""%Dummy%""" What is the average age for all people in the table?,SELECT avg(age) FROM Person What venue has 7964 pb notes?,"SELECT venue FROM table_name_81 WHERE notes = ""7964 pb""" What is the method of the match with chris ade as the opponent?,"SELECT method FROM table_name_70 WHERE opponent = ""chris ade""" When did the 55 kg participant race?,"SELECT date FROM table_14981555_1 WHERE weight__kg_ = ""55""" What years did J. Smith Young serve as a Representative?,"SELECT years FROM table_name_36 WHERE representative = ""j. smith young""" What is the weight of the player with a height of 2.00m?,"SELECT weight FROM table_name_58 WHERE height = ""2.00""" How many different colleges are there?,SELECT COUNT(*) FROM College What is the total number of students in the school?,SELECT COUNT(name) FROM person "Show the distinct names of mountains climbed by climbers from country ""West Germany"".","SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = ""West Germany""" What was the final score for the date of December 30?,"SELECT final_score FROM table_name_99 WHERE date = ""december 30""" How many games were published by Activision?,SELECT COUNT(DISTINCT T3.id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T2.publisher_name = 'Activision' How many locations where cinemas were opened in both year 2010 and 2011?,"select count ( * ) from ( SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011 ) " "Great, what about all the headquarters with both a company in oil and gas and a company in banking?",SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' What is the Home team of Tie no 11?,"SELECT home_team FROM table_name_66 WHERE tie_no = ""11""" "Which Definition has a Rank smaller than 12, and a Town of tadcaster?","SELECT definition FROM table_name_63 WHERE rank < 12 AND town = ""tadcaster""" On which date was the manager fired and replaced by Albert Cartier?,"SELECT date_of_vacancy FROM table_name_70 WHERE manner_of_departure = ""fired"" AND replaced_by = ""albert cartier""" What are the names of people in ascending order of height?,SELECT Name FROM People ORDER BY Height ASC; "what is the lowest rank when the peak position is 2, certification is platinum and the album is my december?","SELECT MIN(rank) FROM table_name_82 WHERE peak_position = ""2"" AND certification = ""platinum"" AND album = ""my december""" Give the maximum and minimum gradepoints for students living in NYC?,"SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" What is the description of game2?,SELECT Description FROM PHOTOS where name = 'game2' Which college has the most authors with submissions?,SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1 What is the average rank for a building with 24 floors?,SELECT AVG(rank) FROM table_name_84 WHERE floors = 24 Find the names of all the catalog entries.,SELECT DISTINCT (catalog_entry_name) FROM catalog_contents Which Opponent has a Game of 33?,SELECT opponent FROM table_name_10 WHERE game = 33 what is the most recent date founded in elk county?,"SELECT MAX(date_founded) FROM table_name_6 WHERE county_or_counties = ""elk county""" List all candidates in elections where the incumbent politician is Goodloe Byron.,"SELECT candidates FROM table_1341690_20 WHERE incumbent = ""Goodloe Byron""" What is the voltage when the L2 cache is 2 × 256 kb and the turbo is 5/8?,"SELECT voltage FROM table_name_71 WHERE l2_cache = ""2 × 256 kb"" AND turbo = ""5/8""" What team has a title of calder?,"SELECT team FROM table_name_5 WHERE race_title = ""calder""" in april 13 what was the streak,"SELECT streak FROM table_30047613_12 WHERE date = ""April 13""" Show the names of the drivers without a school bus.,SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus) What are the names of all schools that have students trying out for the position of goal and 'mid'-field.,SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid' Find the checking balance and saving balance in the Brown’s account.,"SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'" What is the season of the game which causes the player 'Walter Samuel' to get injured?,SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel' "Where the length is 91', what is the year built?","SELECT year_built FROM table_name_38 WHERE length = ""91'""" how many series had 6.55 u.s. viewers (million) and were directed by pete michels,"SELECT COUNT(no_in_series) FROM table_26259391_1 WHERE us_viewers__million_ = ""6.55"" AND directed_by = ""Pete Michels""" Show names for all regions except for Denmark.,SELECT region_name FROM region WHERE region_name <> 'Denmark' WHAT IS THE NAME OF PARTY WITH MOST NUMBER OF MEMBERS,SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count ( * ) DESC LIMIT 1 "Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5?","SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = ""américa"" AND points < 5" Please list the order keys of all the orders made by a customer whose account is in debt.,SELECT T1.o_orderkey FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_acctbal < 0 What is the id of the student who most recently attended course is 301?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1 When was the score 5-31?,"SELECT date FROM table_name_20 WHERE record = ""5-31""" What are the actual delivery dates of orders with quantity 1?,SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 "What is the result of the game when the attendance is 62,078?","SELECT result FROM table_name_6 WHERE attendance = ""62,078""" What are the first names and last names of the students who are 18 years old and have vice president votes.,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18" how many airports are presented on the table,select count ( * ) from airports What are the names of the states where at least 3 heads were born?,SELECT born_state FROM head GROUP BY born_state HAVING count(*) >= 3 Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.,SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000 What is the name of the activity with the most students?,SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1 Who are the different players and how many years has each played?,"SELECT Player , Years_Played FROM player" What is the yam amount with amount of soybean 0 and potato of 0.01?,"SELECT yam_[y_] FROM table_name_48 WHERE soybean__green__[f_] = ""0"" AND potato_[d_] = ""0.01""" "what is the points when the entrant is brabham racing organisation, the year is 1964 and the chassis is brabham bt7?","SELECT points FROM table_name_17 WHERE entrant = ""brabham racing organisation"" AND year = 1964 AND chassis = ""brabham bt7""" Find the number of funiture types produced by each manufacturer as well as the company names.,"SELECT count(*) , t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id" Which events only have 1 note?,SELECT T1.Customer_Event_ID FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count ( * ) = 1 What event had a record of 8–5–1?,"SELECT event FROM table_name_33 WHERE record = ""8–5–1""" "Return the name, rate, check in and check out date for the room with the highest rate.","SELECT T2.roomName , T1.Rate , T1.CheckIn , T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;" "yes | What information do you want to know about the author? The ID, first, or last name? | first and last name","SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Nameless , Painless""" Give the phones for departments in room 268.,SELECT DPhone FROM DEPARTMENT WHERE Room = 268 Opponents of sheffield wednesday had what date?,"SELECT date FROM table_name_81 WHERE opponents = ""sheffield wednesday""" Please list the countries that share the shortest border.,SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 ORDER BY T2.Length ASC LIMIT 1 "For case number '134472-2015', list the last name of the officers involved and state the subject statuses.","SELECT T2.last_name, T1.subject_statuses FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.case_number = '134472-2015'" "Who were the Paraguay scorers on June 15, 2008?","SELECT paraguay_scorers FROM table_name_1 WHERE date = ""june 15, 2008""" What is the number of finish of the Qual of 159.384?,"SELECT finish FROM table_name_11 WHERE qual = ""159.384""" How many products with the highest unit price were ordered?,SELECT OrderQty FROM PurchaseOrderDetail ORDER BY UnitPrice DESC LIMIT 1 "How many Females (%) have Females Rank smaller than 21, and a State of kerala, and Males Rank larger than 1?","SELECT COUNT(females___percentage_) FROM table_name_1 WHERE females_rank < 21 AND state = ""kerala"" AND males_rank > 1" What is the lowest amount of floors after rank 1 in the Trillium (residential) building?,"SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = ""the trillium (residential)""" What is the average weight of cars each year?,"SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;" what is the name of the custid 2 in Table name: ACCOUNTS,SELECT name FROM accounts WHERE custid = 2 How many patients with care plan for 'concussion with loss of consciousness' are married?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.marital = 'M' AND T2.REASONDESCRIPTION = 'Concussion with loss of consciousness' What are the names of documents that have both one of the three most common types and one of three most common structures?,SELECT document_name FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY count(*) DESC LIMIT 3 What is the Phoneme symbol for the letter name zɛn?,"SELECT phoneme FROM table_name_18 WHERE letter_name = ""zɛn""" Find the ship type that are used by both ships with Panama and Malta flags.,SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' Show all advisors and corresponding number of students.,"SELECT advisor , count(*) FROM Student GROUP BY advisor" How many directors for #15?,SELECT COUNT(directed_by) FROM table_20942925_1 WHERE _number = 15 What college did the defensive back attend?,"SELECT college FROM table_14650162_1 WHERE position = ""Defensive Back""" What is the total number of wins when casey mears ranked 36th and had more than 0 top fives?,"SELECT COUNT(wins) FROM table_name_62 WHERE rank = ""36th"" AND top_fives > 0" Which film has the highest rental rate? And what is the rate?,"SELECT title, rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1" where cfl team is edmonton (2) what are all the position,"SELECT position FROM table_26996293_2 WHERE cfl_team = ""Edmonton (2)""" Say the frequency of 1290 khz,"SELECT format FROM table_name_31 WHERE frequency = ""1290 khz""" State the number of votes for episode with rating of 7 and above.,SELECT votes FROM Episode WHERE rating > 7; Can you tell me the Matches that has the Rank of 1?,SELECT matches FROM table_name_89 WHERE rank = 1 "With the Winter Olympics was 1960, what was the country?","SELECT country FROM table_name_53 WHERE winter_olympics = ""1960""" In what position did the winning driver finish at Chicagoland?,"SELECT COUNT(winning_driver) FROM table_16099880_5 WHERE race = ""Chicagoland""" What is the average crowd size for the home team hawthorn?,"SELECT AVG(crowd) FROM table_name_13 WHERE home_team = ""hawthorn""" Which Score has a Total of 80–72?,"SELECT score FROM table_name_55 WHERE total = ""80–72""" "Which customers have both ""On Road"" and ""Shipped"" as order status? List the customer names.","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" In which Country is the second highest volcanic mountain located in? Give the code of the country.,"SELECT T3.Country FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province ORDER BY T1.Height DESC LIMIT 1, 1" How many people who were born after 1970 are animation executive producer?,SELECT COUNT(*) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE STRFTIME(T1.birthdate) > '1970' AND T2.role = 'animation executive producer'; Which 1995 has a 1993 of 3r?,"SELECT 1995 FROM table_name_86 WHERE 1993 = ""3r""" What is the most frequent status of bookings?,SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1 List the names of players in ascending order of votes.,SELECT Player_name FROM player ORDER BY Votes ASC what is the title when the writer(s) is jack turley?,"SELECT title FROM table_21146729_6 WHERE writer_s_ = ""Jack Turley""" List the branding for krca-tv.,"SELECT branding FROM table_2523809_1 WHERE callsign = ""KRCA-TV""" List the case numbers of domestic violence crimes reported in Lincoln Square.,SELECT T2.case_number FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Lincoln Square' AND T2.domestic = 'TRUE' What is the code of the category that the product with the name 'flax' belongs to?,"SELECT product_category_code FROM products WHERE product_name = ""flax""" "In drug abuse crimes, what percentage is related to cannabis?",SELECT CAST(COUNT(CASE WHEN T1.secondary_description LIKE '%CANNABIS%' THEN T1.secondary_description END) AS REAL) * 100 / COUNT(T1.secondary_description) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T3.title = 'Drug Abuse' Who is the Runner-up in Tournament of seiersberg,"SELECT runner_up FROM table_name_95 WHERE tournament = ""seiersberg""" What is the keyword for episodes with stars score of 10 at 30% and above?,SELECT T1.keyword FROM Keyword AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 AND T2.percent > 29; What player has a round larger than 1 in Austria?,"SELECT player FROM table_name_6 WHERE round > 1 AND nationality = ""austria""" "For the countries founded before 1930, what is the total number of distinct official languages?","SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = ""T""" What was the Attendance when the Result was L 31–23?,"SELECT attendance FROM table_name_33 WHERE result = ""l 31–23""" What are all the names of the people?,SELECT name from people "Where the displacement(s) is 10.5L is, what is the engine family?","SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = ""10.5L""" what's the mascot for 66 pulaski 2?,"SELECT mascot FROM table_name_39 WHERE _number___county = ""66 pulaski 2""" What are the names of the mills which are not located in 'Donceel'?,SELECT name FROM mill WHERE LOCATION != 'Donceel' What is the translation of the sign of Aquarius?,"SELECT translation FROM table_name_15 WHERE sign = ""aquarius""" "Indicate the location of all the events that occurred on April 30, 2016.","SELECT longitude, latitude FROM events WHERE date(timestamp) = '2016-04-30'" I want the D 47 for D 41 being r 21,"SELECT d_47 FROM table_name_78 WHERE d_41 = ""r 21""" With the cultural and educational panel less than 0 what is the average industrial and commercial panel?,SELECT AVG(industrial_and_commercial_panel) FROM table_name_22 WHERE cultural_and_educational_panel < 0 what will be the population of Africa when Oceania is 67 (0.6%),"SELECT africa FROM table_19017269_5 WHERE oceania = ""67 (0.6%)""" Name the total apps for eddie carr,"SELECT MAX(total_apps) FROM table_19730892_1 WHERE name = ""Eddie Carr""" What is the average age of students who are living in the dorm with the largest capacity?,SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT max(student_capacity) FROM dorm) Show names of teachers and the number of courses they teach.,"SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name" What is the average number lost when the PCT is more than 0.7334 and the total number of games is larger than 48?,SELECT AVG(lost) FROM table_name_22 WHERE pct > 0.7334 AND total_games > 48 What is the fewest minutes played for the player with exactly 638 good passes?,SELECT MIN(mins_played) FROM table_28461589_2 WHERE good_passes = 638 What is the name of the customer who purchased the product with the highest net profiit?,"SELECT `Customer Names` FROM ( SELECT T1.`Customer Names`, T2.`Unit Price` - T2.`Unit Cost` AS ""net profit"" FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) ORDER BY `net profit` DESC LIMIT 1" What is the total grant amount of the organisations described as research?,SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' What is the year of entry for the University of Essex?,"SELECT year_entered_league FROM table_name_70 WHERE university = ""university of essex""" "After 1979, where was the European Indoor Championships held?","SELECT venue FROM table_name_27 WHERE competition = ""european indoor championships"" AND year > 1979" What is the code of the product type with an average price higher than the average price of all products?,SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products) List the name of all products that Cindy Stewart ordered in the east superstore.,SELECT T3.`Product Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Cindy Stewart' WHAT WAS THE YEAR WHEN THE RUNNER-UP WAS WILLIAM MEHLHORN?,"SELECT MAX(year) FROM table_1507806_1 WHERE runner_up = ""William Mehlhorn""" "When the share of votes equals 21.8%, what's the sum of the total amount of seats?","SELECT SUM(total_seats) FROM table_name_61 WHERE share_of_votes = ""21.8%""" Which team has Ali Daei as head coach?,"SELECT team FROM table_27383390_2 WHERE head_coach = ""Ali Daei""" Calculate the difference between the number of root beers sold that use cane sugar and corn syrup.,SELECT COUNT(CASE WHEN T3.CaneSugar = 'TRUE' THEN T1.BrandID ELSE NULL END) - COUNT(CASE WHEN T3.CornSyrup = 'TRUE' THEN T1.BrandID ELSE NULL END) AS DIFFERENCE FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID How many tweets in total were posted by a user in Argentina?,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.Country = 'Argentina' LIMIT 1 What was the margin of victory for the Mississippi Gulf Resort Classic?,"SELECT margin_of_victory FROM table_name_77 WHERE tournament = ""mississippi gulf resort classic""" Name the races for the prada challenge,"SELECT races FROM table_21471897_2 WHERE team_name = ""Prada Challenge""" of the players with an overall rating greater than 80 how many are left-footed?,SELECT count ( * ) FROM Player_Attributes WHERE overall_rating > 80 and preferred_foot = 'left' What are the optional ingredients for Warm Chinese Chicken Salad?,SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Warm Chinese Chicken Salad' AND T2.optional = 'TRUE' "What is Name, when Location is ""DZ""?","SELECT name FROM table_name_23 WHERE location = ""dz""" Which Designation has a Quantity of 52?,SELECT designation FROM table_name_84 WHERE quantity = 52 What is every entry on Monday August 22 when the entry for Wednesday August 24 is 22' 50.05 99.141mph?,"SELECT mon_22_aug FROM table_30058355_3 WHERE wed_24_aug = ""22' 50.05 99.141mph""" What visitor has tim duncan (16) as the leading scorer?,"SELECT visitor FROM table_name_18 WHERE leading_scorer = ""tim duncan (16)""" What are the names of poker players?,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID In which nation is Harvard University located?,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'Harvard University' What are the sales tax records charged by multiple types of tax?,SELECT SalesTaxRateID FROM SalesTaxRate WHERE Name LIKE '%+%' Which player has the highest salary on the list?,select player_id from salary order by salary desc limit 1 What is the time (GMT) for the 4A Serial?,"SELECT time___gmt__ FROM table_name_66 WHERE serial = ""4a""" what is the most amount of cattle where they live in british columbia,"SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = ""British Columbia""" What's the height of the player who went to oak hill academy?,"SELECT height FROM table_name_64 WHERE school = ""oak hill academy""" How many swimmers are there with record?,select count ( distinct Swimmer_ID ) from record What is the number of brand where the power is 5kw?,"SELECT COUNT(branding) FROM table_17822401_1 WHERE power__kw_ = ""5kW""" List the school color of the school that has the largest enrollment.,SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 "What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?",SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1 What is the maximum and minimum market value of companies?,"SELECT max(Market_Value_in_Billion) , min(Market_Value_in_Billion) FROM company" How many times was Plan B 4th place?,"SELECT COUNT(winner) FROM table_17111812_1 WHERE fourth = ""Plan B""" How many orders when the species is Pavo Cristatus?,"SELECT COUNT(order) FROM table_1818471_1 WHERE species = ""Pavo cristatus""" What are the dates and locations of performances?,"SELECT Date , LOCATION FROM performance" "What score has january 3, 2005 as the date?","SELECT score FROM table_name_98 WHERE date = ""january 3, 2005""" What is the name of the national final main host when the semi final/heat host shows internal selection in 2011?,"SELECT national_final_main_host FROM table_name_83 WHERE semi_final_heat_host = ""internal selection"" AND year_s_ = ""2011""" Who is the captain of the team in Essex county? ,"SELECT captain FROM table_18461635_1 WHERE county = ""Essex""" What is the total number of episode with a rating below 7?,SELECT COUNT(episode_id) FROM Episode WHERE rating < 7; What manufacturer has the highest revenue?,SELECT Name FROM manufacturers order by revenue desc limit 1 What is the title with the production number greater than 1334 released on 1955-08-27?,"SELECT title FROM table_name_65 WHERE production_number > 1334 AND release_date = ""1955-08-27""" show me the id of courses registered or attended by student whose id is 121,SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121 Which title was directed by Joyce Bernal?,"SELECT title FROM table_name_76 WHERE director = ""joyce bernal""" Please list the location of the genes that have the most chromosomes.,SELECT T2.Localization FROM Genes AS T1 INNER JOIN Classification AS T2 ON T1.GeneID = T2.GeneID ORDER BY T1.Chromosome DESC LIMIT 1 How many times was the background self-employed - media agency?,"SELECT COUNT(candidate) FROM table_26263322_1 WHERE background = ""Self-employed - media agency""" What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?,"SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = ""227.5 (19)""" Find the physician who prescribed the highest dose. What is his or her name?,SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 What is the name of author with the ID of 1722?,SELECT Name FROM Author WHERE Id = 1722 Who was the host country in 2007?,"SELECT host_country___countries FROM table_name_3 WHERE year = ""2007""" "Which papers were written by authors from the institution ""Google""?","SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" What is the average latitude and longitude of the starting points of all trips?,"SELECT avg(T1.lat) , avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id" What is the full name of the oldest legislator?,"SELECT first_name, last_name FROM historical ORDER BY birthday_bio LIMIT 1" "What is the total number of Gold, when Silver is 2, and when Total is less than 7?",SELECT COUNT(gold) FROM table_name_34 WHERE silver = 2 AND total < 7 What are the different types of player positions?,SELECT count(DISTINCT pPos) FROM tryout what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?,"SELECT asia FROM table_19017269_5 WHERE latin_america_caribbean = ""783 (7.5%)""" What league was involved in 2008?,SELECT league FROM table_21602734_1 WHERE year = 2008 What are the comments of the inspector during the inspection of Taqueria La Fiesta on 1/25/2010?,SELECT T3.inspector_comment FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T2.inspection_date = '2010-01-25' AND T1.dba_name = 'TAQUERIA LA FIESTA' On what date was a record set in the team pursuit (8 laps) event?,"SELECT date FROM table_name_75 WHERE event = ""team pursuit (8 laps)""" "What player has defensive back as the position, with a round less than 2?","SELECT player FROM table_name_19 WHERE position = ""defensive back"" AND round < 2" what is the to par when the score is 69-70-72-72=283?,SELECT to_par FROM table_name_56 WHERE score = 69 - 70 - 72 - 72 = 283 Name all the categories for podcast titled 'I Heart My Life Show'.,SELECT T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'I Heart My Life Show' Hello! Can you provide me with a list of all product IDs and the associated product titles? | Are you asking for all item IDs and their corresponding item titles? | Yes! That is correct!,"SELECT i_id, title FROM item" how many employees does Psychiatry have?,"SELECT head FROM department where name = ""Psychiatry""" "For each fourth-grade classroom, show the classroom number and the total number of students using it.","SELECT classroom , count(*) FROM list WHERE grade = ""4"" GROUP BY classroom" What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?,SELECT AVG(top_5) FROM table_name_61 WHERE top_25 = 1 AND wins < 0 How many stores are there?,SELECT count(*) FROM store What is the average games a player born on 17 March 1915 and debut before 1935 had?,"SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = ""17 march 1915"" AND debut_year < 1935" Which country has the banglavision Network?,"SELECT origin_of_programming FROM table_name_85 WHERE network = ""banglavision""" who were the writers of the episode that had 5.56 millions of north american viewers? ,"SELECT written_by FROM table_27914606_1 WHERE us_viewers__millions_ = ""5.56""" When were they hired?,SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%' List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.,SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss' List the name of the company that produced more than one phone model.,SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*) > 1; What was the score of the game when their record was 62-67,"SELECT score FROM table_name_46 WHERE record = ""62-67""" what are the name of the countries who have participated in both the friendly and tournament type competitions,SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' What are the details of all organizations that are described as Sponsors and sort the results in ascending order?,SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details The Away High Park Demons was which Ground?,"SELECT ground FROM table_name_83 WHERE away = ""high park demons""" How many states have smaller colleges than average?,SELECT count(DISTINCT state) FROM college WHERE enr < (SELECT avg(enr) FROM college) Who is the team that has played more than 18 games and has 6 losses?,SELECT team_name FROM table_name_97 WHERE losses = 6 AND games > 18 Which studio has the highest gross?,SELECT Studio FROM film order by Gross_in_dollar DESC limit 1 What are the drivers' last names who had 11 pit stops?,"SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count ( * ) = 11" What are the episodes Oscar Cervantes is credited with?,SELECT episode_id FROM Credit WHERE person = 'Oscar Cervantes' AND credited = 'true'; before 1995 waht is the aveage pts for a mclaren mp4/10b chassis,"SELECT AVG(pts) FROM table_name_58 WHERE chassis = ""mclaren mp4/10b"" AND year < 1995" What was the Sp of the 2nd Position?,"SELECT COUNT(sp) FROM table_22265261_1 WHERE position = ""2nd""" When real holmesdale reserves is division four who is in division one?,"SELECT division_one FROM table_24575253_4 WHERE division_four = ""Real Holmesdale Reserves""" To which current legislator does twitter ID234128524 belong? Please give his or her full official name.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T2.twitter_id = 234128524 What is the to par when the tournament involved was the Transitions Championship?,"SELECT to_par FROM table_name_45 WHERE tournament = ""transitions championship""" Who was the 4 lane person from Canada?,"SELECT MIN(heat) FROM table_name_9 WHERE lane = 4 AND nationality = ""canada""" What is the role of the employee named Koby?,"SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = ""Koby"";" What is the score of the game played on october 16?,"SELECT score FROM table_27756014_1 WHERE date = ""October 16""" What is the smallest number of wins for a top-25 value greater than 5 and more than 38 cuts?,SELECT MIN(wins) FROM table_name_52 WHERE top_25 > 5 AND cuts_made > 38 Please show the industries of companies in descending order of the number of companies.,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC How many classes exist for each school?,"SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code" "What competition listed is dated November 17, 2003?","SELECT competition FROM table_name_32 WHERE date = ""november 17, 2003""" Find the first names and offices of all instructors who have taught some course and the course description and the department name.,"SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code" Which region had a release format of CD Maxi?,"SELECT region FROM table_name_8 WHERE format = ""cd maxi""" Identify the most popular and appealing active business in Gilbert based on users' reviews.,SELECT business_id FROM Business WHERE city = 'Gilbert' AND active = 'true' AND review_count = 'High' ORDER BY stars DESC LIMIT 1 "List the method, date and amount of all the payments, in ascending order of date.","SELECT Payment_Method_Code , Date_Payment_Made , Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC" "What is the modern equivalent of the former kingdom ""silla"" with the hanja 尙州?","SELECT COUNT(modern_equivalent) FROM table_160510_1 WHERE former_kingdom = ""Silla"" AND hanja = ""尙州""" "Who was credited as ""technical advisor"" in the episode titled ""Cherished""?",SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.title = 'Cherished' AND T2.credited = 'true' AND T2.role = 'technical advisor' What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?,"SELECT week_11_nov_16 FROM table_name_50 WHERE week_13_nov_30 = ""wisconsin (10-1)""" Hmmm. Can you also give me the maximum and the minimum tonnage for a battle ship?,"SELECT max ( Tonnage ) ,min ( Tonnage ) FROM ship WHERE Type = 'Battle ship'" Find the last names of students studying in room 111.,SELECT lastname FROM list WHERE classroom = 111 What was Anders Forsbrand's score when the TO par is +4?,"SELECT score FROM table_name_65 WHERE to_par = ""+4"" AND player = ""anders forsbrand""" What was the high assists on April 7?,"SELECT high_assists FROM table_17288825_10 WHERE date = ""April 7""" Which Navigator has a Total Time of 08:29?,"SELECT navigator FROM table_name_37 WHERE total_time = ""08:29""" How many losing points does Llandudno RFC have?,"SELECT losing_bonus FROM table_14058433_3 WHERE club = ""Llandudno RFC""" "What's the worst score for the worst dancer(s) john barnes, with a best score of 36?","SELECT worst_score FROM table_name_95 WHERE best_score = 36 AND worst_dancer_s_ = ""john barnes""" "What is Power HP (kW), when First Year is greater than 1965, when Distribution is ""International"", when Engine is V6 Biturbo, and when Model is ""425""?","SELECT power_hp__kw_ FROM table_name_60 WHERE first_year > 1965 AND distribution = ""international"" AND engine = ""v6 biturbo"" AND model = ""425""" Opponent of Philadelphia eagles had what attendance?,"SELECT attendance FROM table_name_38 WHERE opponent = ""philadelphia eagles""" Tell me the highest Laps for grid less than 22 and riderS of ruben xaus,"SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = ""ruben xaus""" When did the term end for the person who started their term on 28 November 1912?,"SELECT term_end FROM table_name_89 WHERE term_start = ""28 november 1912""" tell me the type that has the marostica to bibione course.,"SELECT type FROM table_name_44 WHERE course = ""marostica to bibione""" What was the away team's score in Junction Oval?,"SELECT away_team AS score FROM table_name_38 WHERE venue = ""junction oval""" Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.,SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20 What location had 1:59:12 in time?,"SELECT location FROM table_name_1 WHERE time = ""1:59:12""" What is the cable rank for episode no. 4?,SELECT cable_rank FROM table_24399615_3 WHERE episode_no = 4 "What are the last names of the author of the paper titled ""Binders Unbound""?","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Binders Unbound""" Name the date for grass surface for quarterfinal at the nsw building society open tournament,"SELECT date FROM table_name_36 WHERE surface = ""grass"" AND round = ""quarterfinal"" AND tournament = ""nsw building society open""" What is the total number of laps for the time of +7.277 and the grid number of more than 6?,"SELECT SUM(laps) FROM table_name_56 WHERE time = ""+7.277"" AND grid > 6" How many episodes did Cliff Bole directed in season 3?,"SELECT COUNT(title) FROM table_17861265_1 WHERE directed_by = ""Cliff Bole""" Which crytocurrency was ranked the first by CoinMarketCap on 2013/4/28?,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T2.cmc_rank = 1 What are the average score and average staff number of all shops?,"SELECT avg ( num_of_staff ) , avg ( score ) FROM shop" Find the busiest destination airport that runs most number of routes in China.,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 "Among the titles with royalty percentage, which title has the greatest royalty percentage. State it's minimum range to enjoy this royalty percentage.","SELECT T1.title, T2.lorange FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id ORDER BY T2.royalty DESC LIMIT 1" What is the average total that is 1st in 2010?,"SELECT AVG(total) FROM table_name_8 WHERE 2010 = ""1st""" "Among the menus in which the dish ""Clear green turtle"" had appeared, how many of them used the dollar as their currency?",SELECT SUM(CASE WHEN T3.currency = 'Dollars' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Clear green turtle' Who is the manufacturer for the date of June 22?,"SELECT manufacturer FROM table_2226343_1 WHERE date = ""June 22""" "How many characteristics does the product named ""sesame"" have?","SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" "Show the ids and details of the investors who have at least two transactions with type code ""SALE"".","SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = ""SALE"" GROUP BY T2.investor_id HAVING COUNT(*) >= 2" what's the health score with justice being 80.7,"SELECT health FROM table_145439_1 WHERE justice = ""80.7""" Tell me the race name where stirling moss won on 16 april,"SELECT race_name FROM table_name_61 WHERE winning_driver = ""stirling moss"" AND date = ""16 april""" What is the language of the smallest population country?,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.Population ASC LIMIT 1 Name the height for the player born in 1980 and center?,"SELECT height FROM table_12962773_13 WHERE year_born = 1980 AND position = ""Center""" Find the id and surname of the driver who participated the most number of races?,"SELECT T1.driverid , T1.surname 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 ORDER BY count(*) DESC LIMIT 1" What is the 2009 value with q1 in 2010?,"SELECT 2009 FROM table_name_60 WHERE 2010 = ""q1""" Give me a list of all the channel names sorted by the channel rating in descending order.,SELECT name FROM channel ORDER BY rating_in_percent DESC What is the away team score when the away team is Essendon?,"SELECT away_team AS score FROM table_name_16 WHERE away_team = ""essendon""" Can you please tell me the full names of all faculty who are members of department number 520?,"SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520" What is the lowest pick with fewer than 3 rounds and more than 4 overall?,SELECT MIN(pick) FROM table_name_15 WHERE round < 3 AND overall > 4 What is the document type description for document type named Film?,"SELECT document_type_description FROM Ref_document_types WHERE document_type_name = ""Film""" How many FIFA games are there across all platforms?,SELECT COUNT(*) FROM ( SELECT T.game_name FROM game AS T WHERE T.game_name LIKE '%FIFA%' ) "And what about guests with ""Provisional"" status?","SELECT T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Provisional""" "What is the sum of To Par, when Country is ""United States"", and when Year(s) Won is ""1973""?","SELECT SUM(to_par) FROM table_name_23 WHERE country = ""united states"" AND year_s__won = ""1973""" "Among the movies directed by Wolfgang Reitherman, how many of them were released in December?","SELECT COUNT(movie_title) FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(release_date, INSTR(release_date, '-') + 1, 3) = 'Dec' AND T2.director = 'Wolfgang Reitherman'" What are the maximum and minimum number of transit passengers of all airports.,"SELECT max(Transit_Passengers), min(Transit_Passengers) FROM airport" What was the method used when the opponent was Tyson Griffin?,"SELECT method FROM table_name_75 WHERE opponent = ""tyson griffin""" What is the region 2 for the complete fifth series?,"SELECT region_2 FROM table_1337525_1 WHERE complete_series = ""The Complete Fifth Series""" What was the finish for the golfer with a total of 285?,SELECT finish FROM table_name_4 WHERE total = 285 Show the id and name of the employee with maximum salary.,"SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1" How many years saw 3 hurricanes wherein the strongest storm was level three?,"SELECT COUNT(year) FROM table_2930244_2 WHERE number_of_hurricanes = 3 AND strongest_storm = ""Three""" "What is the position of the player from Beaumont, Texas?","SELECT position FROM table_name_83 WHERE hometown = ""beaumont, texas""" What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?,"SELECT MAX(rank) FROM table_name_35 WHERE time = ""1:47.65"" AND lane > 3" What party has the district Georgia 7?,"SELECT party FROM table_name_46 WHERE district = ""georgia 7""" Find the number of albums.,SELECT count(*) FROM ALBUM What is the total number of people who has no friend living in the city of Austin.,SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin') report the total number of degrees granted between 1998 and 2002.,"SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus" Where was the 1920 Summer held?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '1920 Summer' Find the number of female students (with F sex) living in Smith Hall,SELECT 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 T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' What is the student staff ratio of Harvard University in 2012?,SELECT T1.student_staff_ratio FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Harvard University' AND T1.year = 2012 What was the top score for grier jones?,"SELECT MAX(score) FROM table_name_59 WHERE player = ""grier jones""" Which team has the most ties with fewer than 4 losses and GA smaller than 20?,SELECT MAX(ties) FROM table_name_56 WHERE losses < 4 AND goals_against < 20 What is the name of the airport located in Russia with an IATA of KRR?,"SELECT airport FROM table_name_30 WHERE country = ""russia"" AND iata = ""krr""" Return the founder of Sony.,SELECT founder FROM manufacturers WHERE name = 'Sony' List out the state of businesses which have opening time at 1AM.,SELECT DISTINCT T1.state FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T2.opening_time = '1AM' What are the films that are least rented by the customers?,"SELECT T.title FROM ( SELECT T3.title, COUNT(T1.customer_id) AS num FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id GROUP BY T3.title ) AS T ORDER BY T.num DESC LIMIT 1" "Can you show me how many departments there are? | Did you mean the number of distinct department names? | Yes, please",SELECT count ( distinct dept_name ) from student "What was the contact name for the check ""NR157385""?","SELECT t2.contactFirstName, t2.contactLastName FROM payments AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.checkNumber = 'NR157385'" How many points were won in 1996?,"SELECT MAX(points_won) FROM table_name_14 WHERE year = ""1996""" What nurses are on call with block floor 1 and block code 1? Tell me their names.,SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1 "How many year was the venue in stockholm, sweden used?","SELECT COUNT(year) FROM table_name_65 WHERE venue = ""stockholm, sweden""" Find the id and weight of all pets whose age is older than 1.,"SELECT petid , weight FROM pets WHERE pet_age > 1" What's the rank when the start is 10 and the laps are fewer than 192?,"SELECT rank FROM table_name_90 WHERE start = ""10"" AND laps < 192" What are the details of all sales and purchases?,SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases What is the HT value of threw Athlon x2 5200b model? ,"SELECT ht FROM table_13869651_3 WHERE model_number = ""Athlon X2 5200B""" What are the claim dates and settlement dates of all the settlements?,"SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements" What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21',"SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'" WHAT WAS THE SCORE IN THE FINAL AGAINST RABIE CHAKI?,"SELECT score FROM table_name_92 WHERE opponent_in_the_final = ""rabie chaki""" how many instructors have taught ACCT-211?,"SELECT count ( distinct PROF_NUM ) FROM CLASS WHERE CRS_CODE = ""ACCT-211""" What is the average number of games published by a publisher?,SELECT CAST(COUNT(T.game_id) AS REAL) / COUNT(DISTINCT T.publisher_id) FROM game_publisher AS T List the full name of all employees who work in the Northern region.,"SELECT DISTINCT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T4.RegionDescription = 'Northern'" "Which tournament has a Score of 6-4, 6-4?","SELECT tournament FROM table_name_30 WHERE score = ""6-4, 6-4""" What is the most common country of all of those airports?,SELECT country FROM airports GROUP BY country ORDER BY count ( * ) DESC LIMIT 1 what are the average and maximum attendances of all events?,"SELECT avg(Event_Attendance) , max(Event_Attendance) FROM event" "Which city is the headquarter of the store named ""Blackville"" in?","SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = ""Blackville""" Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.,"SELECT T2.name , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT min(hours) FROM projects)" Calculate the percentage of Asian students among students of other races who graduated from institution in Alabama in year 2013 within 100 percent of normal / expected time.,SELECT CAST(SUM(CASE WHEN T2.race = 'A' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.year = 2013 AND T1.state = 'Alabama' What college did the player with a school of crete-monee high school go to?,"SELECT college FROM table_name_83 WHERE school = ""crete-monee high school""" How many film are there?,SELECT count(*) FROM film How many orders were made by Maxwell Schwartz in 2015?,"SELECT COUNT(DISTINCT T1.`Order ID`) FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.`Customer Name` = 'Maxwell Schwartz' AND STRFTIME('%Y', T1.`Order Date`) = '2015'" What is every date of Mark Taylor as winning driver?,"SELECT date FROM table_26137666_3 WHERE winning_driver = ""Mark Taylor""" Give the name of each department and the number of employees in each.,"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" What is the home team score when the home team is Essendon?,"SELECT home_team AS score FROM table_name_80 WHERE home_team = ""essendon""" Name the 18-49 rating for weekly rank of 30,"SELECT 18 AS _49__rating_share_ FROM table_name_1 WHERE weekly_rank___number_ = ""30""" "What is the theme and artist name for the exhibition with a ticket price higher than the average?""","SELECT T1.theme , T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > ( SELECT avg ( ticket_price ) FROM exhibition ) " Where did the game on March 11 take place and how many people attended?,"SELECT location_attendance FROM table_name_68 WHERE date = ""march 11""" Find all the phone numbers.,SELECT customer_phone FROM available_policies What is the most popular company?,SELECT Company FROM CUSTOMER group by Company order by count ( * ) desc limit 1 When was Southend United the home team?,"SELECT date FROM table_name_44 WHERE home_team = ""southend united""" What is the total number of McCain vote totals where Obama percentages was 17.34%?,"SELECT COUNT(mccain_number) FROM table_20684390_1 WHERE obama_percentage = ""17.34%""" How many rounds were won with James Hunt as pole position and John Watson as fastest lap?,"SELECT COUNT(rnd) FROM table_1140083_2 WHERE pole_position = ""James Hunt"" AND fastest_lap = ""John Watson""" Name the administrative division for 95391,SELECT administrative_division FROM table_14986292_1 WHERE population__2010_census_ = 95391 What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?,"SELECT COUNT(bronze) FROM table_name_34 WHERE gold < 2 AND nation = ""uganda"" AND total > 2" How many students got an A in Applied Deep Learning?,SELECT COUNT(T2.student_id) FROM course AS T1 INNER JOIN registration AS T2 ON T1.course_id = T2.course_id WHERE T2.grade = 'A' AND T1.name = 'Applied Deep Learning ' What was the record at the game that had a loss of Blyleven (4-5)?,"SELECT record FROM table_name_55 WHERE loss = ""blyleven (4-5)""" "Which winning team in the 1947 playoff quarterfinals managed to score 3,513 defensive points that same year?",SELECT T2.tmID FROM series_post AS T1 INNER JOIN teams AS T2 ON T1.tmIDWinner = T2.tmID WHERE T1.year = 1947 AND T1.round = 'QF' AND T2.d_pts = 3513 What is the GDP of the European Continent?,SELECT SUM(T4.GDP) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN economy AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' Give the names of characteristics that are in two or more products?,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 GROUP BY t3.characteristic_name HAVING count(*) >= 2 What was the arrival time of the train that departed at 18.16?,"SELECT arrival FROM table_18365784_3 WHERE departure = ""18.16""" "When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?","SELECT conference AS Tournament FROM table_24160890_3 WHERE tournament_venue__city_ = ""Madison Square Garden ( New York City, New York )""" Name the written by for 16.32 million viewers,"SELECT written_by FROM table_14845640_1 WHERE us_viewers__millions_ = ""16.32""" What was the rating for the episode with 1.83 viewers (millions)?,"SELECT rating FROM table_11238597_4 WHERE viewers__millions_ = ""1.83""" Who won the season with Africa as its destination?,"SELECT winner FROM table_20026849_1 WHERE destination = ""Africa""" Please list the categories of the app users who are not active when event no.2 happened.,SELECT DISTINCT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id INNER JOIN app_events AS T3 ON T2.app_id = T3.app_id WHERE T3.event_id = 2 AND T3.is_active = 0 "What are the names of perpetrators whose country is not ""China""?","SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country != ""China""" What is the Origin of Programming for the Network MTV India?,"SELECT origin_of_programming FROM table_name_43 WHERE network = ""mtv india""" What is the name of the singer with the largest net worth?,SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 "What is the role in an original play, comedy in 1938?","SELECT role FROM table_name_77 WHERE format_genre = ""original play, comedy"" AND year = 1938" What is the 2010 population of the municipality with 31 barangays?,SELECT population__2010_ FROM table_255829_1 WHERE no_of_barangays = 31 What is the store phone of the store chain West?,"SELECT T1.store_phone FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""West""" "Which artist does the album ""Balls to the Wall"" belong to?","SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = ""Balls to the Wall""" What was the score of the French Open?,"SELECT score_in_the_final FROM table_name_7 WHERE championship = ""french open""" How many were won when the points were 12? ,"SELECT COUNT(won) FROM table_17369472_2 WHERE points = ""12""" Find the first names of students with age above 22.,SELECT Fname FROM STUDENT WHERE Age > 22 what was the score on 6 june 2010?,"SELECT score FROM table_name_82 WHERE date = ""6 june 2010""" What percentage of women do not have applications installed on their mobile with respect to men?,"SELECT SUM(IIF(T1.gender = 'F', 1, 0)) / SUM(IIF(T1.gender = 'M', 1, 0)) AS per FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id INNER JOIN app_events_relevant AS T3 ON T2.event_id = T3.event_id WHERE T3.is_installed = 0" "Among the flights on 2018/8/1, how many of them were scheduled to depart from John F. Kennedy International in New York?","SELECT COUNT(T1.Code) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T1.Description = 'New York, NY: John F. Kennedy International'" "List down the email of client whose complaint is type ""PS"".",SELECT T1.email FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.type = 'PS' Can you please tell me the names of the items that did not receive any reviews?,SELECT title FROM item WHERE i_id NOT IN ( SELECT i_id FROM review ) List at least 3 cities under the country of Philippines.,SELECT T1.city FROM city AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE country = 'Philippines' List out all bankrupt students that are able to make payment before due?,SELECT T1.name FROM filed_for_bankrupcy AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg' What is the latitude of the station with the lowest latitude?,SELECT lat FROM station ORDER BY lat LIMIT 1 What are the names of the airlines ?,select name from airlines What is the opponent of the game with a w 87-64 score?,"SELECT opponent FROM table_name_88 WHERE score = ""w 87-64""" What is the average age of female (sex is F) students?,"SELECT avg(Age) FROM STUDENT WHERE Sex = ""F""" What was the crowd attendance in the match at punt road oval?,"SELECT SUM(crowd) FROM table_name_58 WHERE venue = ""punt road oval""" "What about the number of people with occupations? | By occupations, do you mean people who are not students? | Yes","SELECT count ( * ) FROM Person WHERE job ! = ""student""" "NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013?","SELECT playoffs FROM table_name_8 WHERE league = ""npsl"" AND open_cup = ""did not enter"" AND year = ""2013""" Which Decision has a Series of 3 – 3?,"SELECT decision FROM table_name_42 WHERE series = ""3 – 3""" "What is the gender of the teacher with last name ""Medhurst""?","SELECT gender FROM TEACHERS WHERE last_name = ""Medhurst""" What was the loss of the game with a record of 77-65?,"SELECT loss FROM table_name_96 WHERE record = ""77-65""" What is the Score with a Winning team that is san antonio spurs?,"SELECT score FROM table_name_48 WHERE winning_team = ""san antonio spurs""" What are the ids of all tv channels that have more than 2 TV channels?,SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2 Which award did Scream receive a nomination and/or win for in 1997?,"SELECT award FROM table_name_27 WHERE work = ""scream"" AND year = 1997" Show the name of the competitor id 90991.,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.id = 90991 What was nominee nominated for outstanding featured actor in a musical?,"SELECT nominee FROM table_name_65 WHERE category = ""outstanding featured actor in a musical"" AND result = ""nominated""" "What is Set 1, when Set 2 is ""21:18""?","SELECT set_1 FROM table_name_48 WHERE set_2 = ""21:18""" What was the outcome for Rik de Voest as opponent?,"SELECT outcome FROM table_name_98 WHERE opponent = ""rik de voest""" "For that Customer with ID 12, what was the amount they spend?",SELECT sum ( amount_paid ) FROM Payments WHERE customer_id = 12 What is the word that occurs the most in the Catalan language?,SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words ) What place did Keith Clearwater get?,"SELECT place FROM table_name_99 WHERE player = ""keith clearwater""" What is the title when 18.58 u.s. viewers (millions) watched?,"SELECT title FROM table_18217741_1 WHERE us_viewers__millions_ = ""18.58""" What is the name of the person who reported a problem on 1976-12-18 23:54:41? | Here are the first and last names of the staff who reported a problem on 1976-12-18 23:54:41. | What are her other staff details?,SELECT T1.other_staff_details FROM problems AS T2 JOIN Staff AS T1 WHERE T2.date_problem_reported = '1976-12-18 23:54:41' and T2.reported_by_staff_id = T1.staff_id What country or territory is małgorzata rożniecka from?,"SELECT country_territory FROM table_name_33 WHERE miss_international = ""małgorzata rożniecka""" What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486dx4wb-100?,"SELECT COUNT(voltage_range__v_) FROM table_15261_1 WHERE clock_multiplier = ""3X or 2X mode"" AND part_number = ""A80486DX4WB-100""" Which of those were just football?,SELECT StuID FROM Sportsinfo where SportName = 'Football' What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? ,"SELECT market_income_per_capita FROM table_22815568_3 WHERE status = ""Distressed"" AND unemployment_rate = ""10.5%""" "What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?",SELECT COUNT(2011) FROM table_name_45 WHERE 2008 > 346.5 AND 2009 = 392 AND 2010 > 354.6 What is Dave Rummells's to par?,"SELECT to_par FROM table_name_22 WHERE player = ""dave rummells""" what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)?,SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) What is the On-air ID of the broadcaster at frequency 0 801?,"SELECT on_air_id FROM table_name_13 WHERE frequency = ""0 801""" Find the school that was either founded after 1850 or public.,SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' Provide the businesses name in Tempe city whose opening hours are earlier than 8AM.,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T3.city LIKE 'Tempe' AND T4.opening_time < '8AM' What is the name of the college whos size is bigger than 10000?,SELECT cName FROM College WHERE enr > 10000 who made the recovers where the score is 12-30,"SELECT high_rebounds FROM table_13464416_6 WHERE record = ""12-30""" Show the route id of the destination airport id 2990?,select rid from routes where dst_apid = '2990' What is the most common birth place of people?,SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1 Which tourist attractions does the visitor with detail 'Vincent' visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = ""Vincent""" What is the average total score of body builders with height bigger than 200?,SELECT AVG(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200 Hey there! How're you! Can you provide me with a list of all of the different movie studios?,SELECT distinct Studio FROM film How many movies did Harrison Ford appear in total?,SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Harrison Ford' what is the year when the role/episode is david duchovny?,"SELECT year FROM table_name_82 WHERE role_episode = ""david duchovny""" Who led the score on April 9?,"SELECT leading_scorer FROM table_name_54 WHERE date = ""april 9""" what are using CProxy in Operating system?,"SELECT operating_system from Web_client_accelerator where name = ""CProxy""" "For the male users no older than 18, how many times have they given the highest rating?",SELECT COUNT(T1.movieid) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating = 5 AND T2.age < 18 AND T2.u_gender = 'M' What year did Martina Navratilova win Wimbledon?,"SELECT wimbledon FROM table_2092557_12 WHERE player = ""Martina Navratilova""" Find the name and partition id for users who tweeted less than twice.,"SELECT T1.name , T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) < 2" give me all the problem ids,SELECT T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id How many of the users who use a high number of compliments do not have any fans?,SELECT COUNT(T2.user_id) FROM Users_Compliments AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.number_of_compliments = 'High' AND T2.user_fans = 'None' Where is the German Grand Prix?,"SELECT location FROM table_1140082_2 WHERE race = ""German Grand Prix""" When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?,"SELECT engine FROM table_22915134_2 WHERE example = ""Shinya Nakano's Kawasaki Ninja ZX-RR""" What year had a race with 301* laps?,"SELECT year FROM table_22648285_1 WHERE laps = ""301*""" Name the min total pts for team dennis conner,"SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = ""Team Dennis Conner""" Can you show the ids of songs that are available in either mp4 format or have resolution above 720?,"SELECT f_id FROM files WHERE formats = ""mp4"" UNION SELECT f_id FROM song WHERE resolution > 720" Show the most common nationality for journalists.,SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 What is the name and detail of each staff member?,"SELECT Name , Other_Details FROM Staff" "Show the names of sponsors of players whose residence is either ""Brandon"" or ""Birtle"".","SELECT Sponsor_name FROM player WHERE Residence = ""Brandon"" OR Residence = ""Birtle""" What is Zoe and Matt's result?,"SELECT result FROM table_19744915_16 WHERE couple = ""Zoe and Matt""" How many users used Vivo Xplay3S model?,SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE device_model = 'Xplay3S' AND phone_brand = 'vivo' "Name the bad alias of Geneva, AL.",SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Geneva' AND T2.state = 'AL' Rich round has an H/A of A and the opponent Sheffield United?,"SELECT round FROM table_name_83 WHERE h___a = ""a"" AND opponents = ""sheffield united""" Which of Cooperativa de Quesos 'Las Cabras' products have a unit price greater than 20?,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName LIKE 'Cooperativa de Quesos%' AND T1.UnitPrice > 20 Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.,SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20 "Which To par has a Country of australia, and a Year(s) won of 1990?","SELECT MIN(to_par) FROM table_name_42 WHERE country = ""australia"" AND year_s__won = ""1990""" What is the full address of Rattlesnake Canyon Grocery?,"SELECT DISTINCT ShipAddress, ShipCity, ShipRegion, ShipPostalCode, ShipCountry FROM Orders WHERE ShipName = 'Rattlesnake Canyon Grocery'" Which 1988 movie got the most ratings?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 1988 ORDER BY T1.rating_score DESC LIMIT 1 List all church names in descending order of opening date.,SELECT name FROM church ORDER BY open_date DESC Which year's rank was #4 when the country was the US?,"SELECT year FROM table_name_55 WHERE rank = ""#4"" AND country = ""us""" "On average, when were the transcripts printed?",SELECT AVG(transcript_date) FROM Transcripts What is the sum of Against when the lost is more than 7?,SELECT SUM(against) FROM table_name_45 WHERE lost > 7 "What is Position, when College is ""Houston""?","SELECT position FROM table_name_97 WHERE college = ""houston""" "What are the official native languages that contain the string ""English"".","SELECT Official_native_language FROM country WHERE Official_native_language LIKE ""%English%""" What is the name of the technician whose team is not 'NYY'?,"SELECT Name FROM technician WHERE Team != ""NYY""" Who is the artist where the vocal percussionist is Benjamin Holder?,"SELECT original_artist FROM table_28715942_6 WHERE vocal_percussionist = ""Benjamin Holder""" what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?,"SELECT COUNT(lane) FROM table_name_29 WHERE heat = 3 AND name = ""cxhristy ekpukhon ihunaegbo""" "What year is the founding year, for the school that had an enrollment in 2005 of 963?","SELECT founded FROM table_2076490_1 WHERE enrollment__2005_ = ""963""" "What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?","SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC" "What is Date of Appointment, when Outgoing Manager is ""Hakan Kutlu""?","SELECT date_of_appointment FROM table_name_42 WHERE outgoing_manager = ""hakan kutlu""" what is the branding when the owner is jim pattison group and the frequency is fm 94.5?,"SELECT branding FROM table_name_55 WHERE owner = ""jim pattison group"" AND frequency = ""fm 94.5""" What was the lowest lost entry for a team with fewer than 21 goals for?,SELECT MIN(lost) FROM table_name_39 WHERE goals_for < 21 Show the status of the city that has hosted the greatest number of competitions.,SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 What is the name of the race held most recently?,SELECT name FROM races ORDER BY date DESC LIMIT 1 What district is Mac Collins an incumbent in?,"SELECT district FROM table_1341472_12 WHERE incumbent = ""Mac Collins""" "For the customer who leaves the review content of ""Tastes like Australia."", when was his/her first purchase date?",SELECT T1.FirstPurchaseDate FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Review = 'Tastes like Australia.' "How many crime cases have been classified as ""Weapons Violation"" by the FBI?",SELECT SUM(CASE WHEN T2.title = 'Weapons Violation' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no Return the distinct customer details.,SELECT DISTINCT customer_details FROM Customers What is the name of the round against the opponents jesse huta galung peter wessels?,"SELECT round FROM table_16741821_9 WHERE opponents = ""Jesse Huta Galung Peter Wessels""" Show the transaction types and the total amount of transactions.,"SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type" How old is he?,SELECT age FROM people ORDER BY Height DESC LIMIT 1 Who sings the song with a length of 5minutes and 23 seconds?,"SELECT artist_name FROM files where duration = ""5:23""" List the first name middle name and last name of all staff.,"SELECT first_name , middle_name , last_name FROM Staff;" Who are the entrepreneurs requesting money | What attributes would you like to know about the entrepreneurs raising money? | What are the entrepreneur's weights,SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID "Show the id, the date of account opened, the account name, and other account detail for all accounts.","SELECT account_id, date_account_opened, account_name, other_account_details FROM Accounts" Name the sum of points for 1992,SELECT SUM(points) FROM table_name_38 WHERE year = 1992 What is the percentage of female clients in the Middle Atlantic?,SELECT CAST(SUM(CASE WHEN T1.sex = 'Female' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'South Atlantic' List all document type codes and document type names.,"SELECT document_type_code , document_type_name FROM Ref_document_types" "What are the distinct first names, last names, and phone numbers for customers with accounts?","SELECT DISTINCT T1.customer_first_name , T1.customer_last_name , T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" Tell the number of reviews given by James House.,SELECT COUNT(T2.CustomerID) FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'James' AND T1.Last = 'House' What sport was played before 2006 with a loser of france b?,"SELECT sport FROM table_name_93 WHERE date < 2006 AND loser = ""france b""" "Show the id and star rating of each hotel, ordered by its price from low to high.","SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC" What are the countries that belong to Africa?,SELECT T2.n_name FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey WHERE T1.r_name = 'Africa' Show theme and year for all exhibitions with ticket prices lower than 15.,"SELECT theme , YEAR FROM exhibition WHERE ticket_price < 15" What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?,"SELECT winning_score FROM table_name_67 WHERE margin_of_victory = ""1 stroke"" AND tournament = ""linde german masters""" "Which team wins the toss during the match ID 336011, and can you tell me whether they decided to bat or field?","SELECT T2.Toss_Name, T1.Toss_Decide, T1.Toss_Winner FROM `Match` AS T1 INNER JOIN Toss_Decision AS T2 ON T1.Toss_Decide = T2.Toss_Id WHERE T1.Match_Id = '336011'" How many more followers in percentage are there for the repository used by solution ID 18 than solution ID19?,SELECT CAST((SUM(CASE WHEN T2.Id = 18 THEN T1.Forks ELSE 0 END) - SUM(CASE WHEN T2.Id = 19 THEN T1.Forks ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 19 THEN T1.Forks ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId What are the times used by climbers who climbed mountains in the country of Uganda?,"SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = ""Uganda""" Name the cyrillic name for melenci,"SELECT cyrillic_name_other_names FROM table_2562572_35 WHERE settlement = ""Melenci""" "For each project id, how many staff does it have? List them in increasing order.","SELECT T1.project_id , count(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) ASC" What is the precise location of Sac State Union?,"SELECT T2.Latitude, T2.Longitude FROM location AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID WHERE T1.LocationName = 'Sac State Union'" What is the best finish record for Sean O'hair?,"SELECT best_finish FROM table_29504351_2 WHERE player = ""Sean O'Hair""" List by its ID number all restaurants on 11th Street in Oakland.,SELECT id_restaurant FROM location WHERE city = 'oakland' AND street_name = '11th street' How many object samples are there in image no.1?,SELECT COUNT(OBJ_SAMPLE_ID) FROM IMG_OBJ WHERE IMG_ID = 1 "What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?","SELECT MIN(goals) FROM table_name_84 WHERE years = ""2007/08"" AND name = ""joe keenan"" AND assists > 1" How many Catalan language wikipedia pages have between 1000 to 2000 number of different words?,SELECT COUNT(pid) FROM pages WHERE words BETWEEN 1000 AND 2000 Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.,"SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" "Find the names of all the tracks that contain the word ""you"".",SELECT Name FROM TRACK WHERE Name LIKE '%you%' Give me total passengers on each station,SELECT Total_Passengers FROM station Which major has most number of students?,SELECT major FROM Student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1 "ok, list the name of the person who has no student friend in ascending order",SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend order by name desc "Party of republican, and a District of 7th is what elected?","SELECT elected FROM table_name_81 WHERE party = ""republican"" AND district = ""7th""" What racing team/s had the 92nd position?,"SELECT team_s_ FROM table_2190919_1 WHERE position = ""92nd""" Name the new entries this round for third round,"SELECT new_entries_this_round FROM table_19089486_1 WHERE round = ""Third round""" What year did the the school with the nickname eagles join the mac?,"SELECT MIN(joined_mac) FROM table_261906_2 WHERE nickname = ""Eagles""" how many customers are there,select count ( * ) from Customer How many employees do we have?,SELECT count(*) FROM Employee What are the student ids of students who don't have any allergies?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy "Can you tell me the average Money ($) that has the To par larger than 14, and the Player of ed dudley?","SELECT AVG(money___) AS $__ FROM table_name_87 WHERE to_par > 14 AND player = ""ed dudley""" What is the id and detail of the vehicle used in lessons for most of the times ?,"SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count ( * ) DESC LIMIT 1" How many CDP stores are there in California?,SELECT SUM(CASE WHEN State = 'California' AND Type = 'CDP' THEN 1 ELSE 0 END) FROM `Store Locations` what is the winning driver in taunus,"SELECT winning_driver FROM table_name_19 WHERE circuit = ""taunus""" How many laps had a qualification of 136.168?,"SELECT COUNT(laps) FROM table_name_50 WHERE qual = ""136.168""" What was the attendance on location when the record was 3–16?,"SELECT location_attendance FROM table_name_86 WHERE record = ""3–16""" When the score is 71 and the player is from United States what is the place?,"SELECT place FROM table_name_89 WHERE score = 71 AND country = ""united states""" how many cities have stadiums?,SELECT count ( DISTINCT city ) FROM stadium "What is the list of program names, sorted by the order of launch date?",SELECT name FROM program ORDER BY launch "What is the average Round, when Player is ""Gurnest Brown"", and when Pick # is greater than 180?","SELECT AVG(round) FROM table_name_84 WHERE player = ""gurnest brown"" AND pick__number > 180" What is the sum of caps for players with less than 9 goals ranked below 8?,SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8 How many bronze medals for West Germany having a total more than 2?,"SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nation = ""west germany""" "What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]?","SELECT s_registered_user FROM table_name_98 WHERE userpics_free = ""6 [free] or 15 [plus]""" "Among the cities with an area code 939, which city has the highest Asian population?",SELECT T2.city FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 939 ORDER BY T2.asian_population DESC LIMIT 1 What is the to par when the score is 73-69-67-74=283?,SELECT to_par FROM table_name_40 WHERE score = 73 - 69 - 67 - 74 = 283 What's the season number of the episode originally seen by 6.64 million people in the US?,"SELECT MIN(no_in_season) FROM table_23242950_1 WHERE us_viewers__millions_ = ""6.64""" List the name of the top ten most ordered product's names in descending order of the number of orders.,SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID GROUP BY T3.ProductName ORDER BY COUNT(*) DESC LIMIT 10 "What is the highest FLT goals with 0 league cup goals, a GK position, and 2 league cup apps?","SELECT MAX(flt_goals) FROM table_name_3 WHERE league_cup_goals = 0 AND position = ""gk"" AND league_cup_apps = ""2""" Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.,"SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000" "What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?","SELECT stuffit FROM table_name_75 WHERE gzip = ""yes"" AND iso_cd_image = ""no"" AND lha_lzh = ""no""" What are the full names and salaries for any employees earning less than 6000?,"SELECT first_name , last_name , salary FROM employees WHERE salary < 6000" What is the dorm name of the dorm with the smallest capacity?,SELECT dorm_name FROM dorm order by student_capacity desc limit 1 "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.","SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title" What is the date when Canada played?,"SELECT date FROM table_name_68 WHERE opponent = ""canada""" What is total number of wins for England?,"SELECT SUM(total) FROM table_name_59 WHERE nation = ""england""" What date did the episode with a production code of 2j5356 originally air?,"SELECT original_air_date FROM table_24625467_1 WHERE production_code = ""2J5356""" Who is the opponent with a score of 5–4?,"SELECT opponent FROM table_name_36 WHERE score = ""5–4""" "Which Topinka happened on january 22, 2006?","SELECT topinka__r_ FROM table_name_11 WHERE date = ""january 22, 2006""" What categories of offers qualify for group discounts for resellers?,SELECT Type FROM SpecialOffer WHERE Category = 'Reseller' Find the product type whose average price is higher than the average price of all products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products) What product category got the highest profit in the south superstore?,SELECT T2.Category FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` ORDER BY T1.Profit DESC LIMIT 1 Show the church names for the weddings of all people older than 30.,SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30 "Which department has more than 1 head at a time? List the id, name and the number of heads.","SELECT T1.department_id , T1.name , count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING count(*) > 1" what are the names of products whose availability equals to 1 ?,SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1 Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.,"SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)" What was the difference of number of units sold in station number 1 and number 2 on year 2012?,SELECT SUM(CASE WHEN T1.station_nbr = 1 THEN units ELSE 0 END) - SUM(CASE WHEN T1.station_nbr = 2 THEN units ELSE 0 END) FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE T2.`date` LIKE '%2012%' "That's a big list, thank you. Then could you please let me know which of these stations has more than 10 bikes available?","SELECT id FROM station WHERE city = ""San Francisco"" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING bikes_available > 10" What was the score of the game that Washington played at home against Florida?,"SELECT score FROM table_name_23 WHERE home = ""washington"" AND visitor = ""florida""" "What are the cell phone numbers of the candidates that received an assessment code of ""Fail""?","SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = ""Fail""" What are the student ids for those on scholarship in major number 600?,SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' Which airlines have a flight with source airport AHD?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""AHD""" Please calculate the average duration of trips started at South Van Ness at Market in 2015.,SELECT AVG(duration) FROM trip WHERE start_date LIKE '%2015%' AND start_station_name = 'South Van Ness at Market' Which Record has an Opponent of milwaukee bucks?,"SELECT record FROM table_name_93 WHERE opponent = ""milwaukee bucks""" "Show the names of people, and dates and venues of debates they are on the affirmative side.","SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID" Find the physicians who are trained in a procedure that costs more than 5000.,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000 How many times was the motorcycle ducati 916 2nd place when wins is less than 7?,"SELECT SUM(2 AS nd_pl) FROM table_name_14 WHERE motorcycle = ""ducati 916"" AND wins < 7" What is province of community with height larger than 1.8 and is in el cibao region?,"SELECT province, _community FROM table_name_82 WHERE geographical_regions = ""el cibao"" AND height > 1.8" "Calculate the average sales of """"Sharp AL-1530CS Digital Copier in the east and the west superstore.",SELECT AVG(T1.Sales) FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Sharp AL-1530CS Digital Copier' What are the ID of actors that had worked together with director 22397? What was the genre of that movie?,"SELECT T2.actorid, T4.genre FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid INNER JOIN movies2directors AS T4 ON T1.movieid = T4.movieid WHERE T4.directorid = 22397" What is the most points for South Ossetia?,"SELECT highest_point FROM table_name_46 WHERE country = ""south ossetia""" How many different types of beds are there?,SELECT COUNT(DISTINCT bedType) FROM Rooms Tell me the part name of the part id 3 ?,"SELECT part_name FROM Parts WHERE part_id = ""3""" What was the score for the game on November 1?,"SELECT score FROM table_name_25 WHERE date = ""november 1""" What is zip postcode of the lucasville city?,SELECT zip_postcode FROM addresses where city = 'Lucasville' Which race has D. Beadman for the jockey and a 4th place result?,"SELECT race FROM table_name_27 WHERE jockey = ""d. beadman"" AND result = ""4th""" The Dallas Burn had a 12-9-7 record and what number of goals for? ,"SELECT goals_for FROM table_1253396_5 WHERE overall_record = ""12-9-7""" "Of those apartments, which ones have more than 2 bedrooms?",SELECT count ( * ) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2 Hello! How many technicians are there in total?,SELECT count ( * ) from technician "What's the Wednesday, June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday, June 2?","SELECT wed_1_june FROM table_29218221_3 WHERE thurs_2_june = ""21' 05.87 107.300mph""" "What is the Club, when the value for Lost is 9, and when the value for Tries is 55?","SELECT club FROM table_name_8 WHERE lost = ""9"" AND tries_for = ""55""" What date was the game with loss of Aker (3–8)?,"SELECT date FROM table_name_4 WHERE loss = ""aker (3–8)""" What is the number of commanders that had 0 off 63 men killed?,"SELECT COUNT(commander) FROM table_2596811_12 WHERE killed = ""0 off 63 men""" What is the name and date of the race that occurred most recently?,"SELECT name , date FROM races ORDER BY date DESC LIMIT 1" Which Extra points 1 point is the highest one that has a Total Points smaller than 8?,SELECT MAX(extra_points_1_point) FROM table_name_59 WHERE total_points < 8 Find the number of users who did not write any review.,SELECT count(*) FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review) What is the sum of points for a position over 5 with more than 2 draws?,SELECT SUM(points) FROM table_name_79 WHERE drawn > 2 AND position > 5 What is the average gradepoint for students with the last name Smith?,"SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = ""Smith""" "What name was used for nomination for the film with an original title of ""The Black Tulip""? ","SELECT film_title_used_in_nomination FROM table_17155250_1 WHERE original_title = ""The Black Tulip""" Name the reporters for dave johnson for eddie arcaro and howard cosell,"SELECT reporters FROM table_22514845_5 WHERE race_caller = ""Dave Johnson"" AND s_analyst = ""Eddie Arcaro and Howard Cosell""" What's the most recent claim date?,SELECT Date_Claim_Settled FROM Claims ORDER BY Date_Claim_Settled DESC LIMIT 1 Which result was in the district of ohio 6?,"SELECT result FROM table_name_15 WHERE district = ""ohio 6""" Who was the visitor in the game that had Ottawa as the home team?,"SELECT visitor FROM table_name_29 WHERE home = ""ottawa""" What were the circumstances of the Hostile incident on the road to Jalalabad?,"SELECT circumstances FROM table_name_18 WHERE nature_of_incident = ""hostile"" AND location = ""road to jalalabad""" What is the release date of part 80525py500512bx80525u500512bx80525u500512e?,"SELECT release_date FROM table_16400024_1 WHERE part_number_s_ = ""80525PY500512BX80525U500512BX80525U500512E""" How many original airdates did season 20 have?,SELECT COUNT(original_air_date) FROM table_22181917_2 WHERE season__number = 20 What is the total Sentiment polarity score of the most expensive app?,SELECT SUM(T2.Sentiment_Polarity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Price = ( SELECT MAX(Price) FROM playstore ) List the maximum scores of the team Boston Red Stockings when the team won in postseason?,SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'; When did Kim Thompson win with 278 score?,"SELECT SUM(year) FROM table_name_87 WHERE score = ""278"" AND champion = ""kim thompson""" "In district New York 10th, what was the reason for change?","SELECT reason_for_change FROM table_1694492_2 WHERE district = ""New York 10th""" Who are the players from UCLA?,"SELECT Player FROM match_season WHERE College = ""UCLA""" What is the average decimal with a 110010 binary and a glyph greater than 2?,SELECT AVG(decimal) FROM table_name_12 WHERE binary = 110010 AND glyph > 2 "What is the average February that has 18-26-10 as the record, with a game less than 54?","SELECT AVG(february) FROM table_name_11 WHERE record = ""18-26-10"" AND game < 54" "On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map?","SELECT memory_map FROM table_name_68 WHERE byte_string = ""standard"" AND max_memory__kwords_ > 128 AND model = ""sigma 9""" How many territories are there in the region with the highest number of territories?,"SELECT COUNT(T2.RegionDescription), T1.TerritoryDescription, COUNT(*) AS num FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID GROUP BY T1.TerritoryDescription ORDER BY num DESC LIMIT 1" List the marital status of customers within the age of 40 to 60 that has the highest income among the group.,SELECT T1.MARITAL_STATUS FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.age >= 40 AND T1.age <= 60 ORDER BY T2.INCOME_K DESC LIMIT 1 Which years have a rank less than 2?,SELECT years FROM table_name_88 WHERE rank < 2 Can you show me their ids?,SELECT T1.cid FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT ( * ) > = 5 what are the event details of the services that have the type code 'Marriage'?,SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' What was Stockholm's score when Malmo scored 2?,"SELECT stockholm FROM table_name_54 WHERE malmö = ""2""" What are the names of cities in Europe for which English is not the official language?,SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English') Please list the name and phone number of the customer whose order was cancelled.,"SELECT T2.customerName, T2.phone FROM orders AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.status = 'Cancelled'" What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1?,"SELECT maximum_fps AS HDRx FROM table_name_47 WHERE height > 1080 AND least_compression_at_24_fps = ""6:1"" AND least_compression_at_maximum_fps = ""7:1""" Find the name all districts with city area greater than 10 or population larger than 100000,SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000 Who has participated in the most Olympic Games in the database?,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id GROUP BY T2.person_id ORDER BY COUNT(T2.person_id) DESC LIMIT 1 How many singers are there?,SELECT count(*) FROM singer "Of the first 60,000 customers' responses to the incentive mailing sent by the marketing department, how many of them are considered a true response?",SELECT COUNT(REFID) custmoer_number FROM Mailings1_2 WHERE RESPONSE = 'true' Find the average rating star for each movie that received at least 2 ratings.,"SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2" What is Helen rating?,SELECT T2.rating FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id where T1.name = 'Helen' What is the highest average of goals less than 45 for team Real Sociedad?,"SELECT MAX(average) FROM table_name_3 WHERE goals < 45 AND team = ""real sociedad""" "List benefit ID, please.","SELECT T1.source_system_code , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id" How many scenes are there on average in one act in Twelfth Night?,SELECT SUM(T2.Scene) / COUNT(T2.Act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Twelfth Night' "How many undergraduates are there in ""San Jose State University"" in year 2004?","SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Jose State University""" How many coins were added in May 2013? Please list the names of coins.,"SELECT COUNT(id) num FROM coins WHERE STRFTIME('%Y-%m', date_added) = '2013-05' UNION ALL SELECT name FROM coins WHERE STRFTIME('%Y-%m', date_added) = '2013-05'" "What are the titles, years, and directors of all movies, ordered by budget in millions?","SELECT title , YEAR , director FROM movie ORDER BY budget_million" "What is the ""active to date"" of the latest contact channel used by ""Tillman Ernser""?","SELECT max ( t2.active_to_date ) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" Name the nat for total apps for 27,SELECT nat FROM table_19018191_5 WHERE total_apps = 27 Name the date successor seated is south carolina 3rd,"SELECT date_successor_seated FROM table_224837_4 WHERE district = ""South Carolina 3rd""" Show all account ids and account details.,"SELECT account_id , account_details FROM Accounts" what is bronze when the rank is 3 and the total is more than 2?,"SELECT SUM(bronze) FROM table_name_24 WHERE rank = ""3"" AND total > 2" "Who is the candidate with 73,494 votes?","SELECT candidate FROM table_name_41 WHERE number_of_votes = ""73,494""" What nationality is the pick from round 7?,SELECT nationality FROM table_name_9 WHERE round = 7 Write down the summary of episode whereby it has crew members that are not included in the credit list.,SELECT T1.summary FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.credited = 'false'; "state the institution in glenside, pennsylvania","SELECT institution FROM table_1974632_1 WHERE location = ""Glenside, Pennsylvania""" What is the short name having video of 720p and programming of Main KSTC-TV programming?,"SELECT psip_short_name FROM table_name_19 WHERE video = ""720p"" AND programming = ""main kstc-tv programming""" What is the Venue of Game 41 with a Score F–A of 1–2?,"SELECT venue FROM table_name_91 WHERE score_f_a = ""1–2"" AND game = 41" What is the score for the away team of Grimsby Town?,"SELECT score FROM table_name_41 WHERE away_team = ""grimsby town""" How many restaurants in the city of Richmond serve Mediterranean food?,SELECT COUNT(id_restaurant) FROM generalinfo WHERE food_type = 'mediterranean' AND city = 'richmond' what is the title when the citation is honor and the narrator is lincoln hoppe?,"SELECT title FROM table_name_94 WHERE citation = ""honor"" AND narrator = ""lincoln hoppe""" List the position of players and the average number of points of players of each position.,"SELECT POSITION , avg(Points) FROM player GROUP BY POSITION" "Which 1,000,000,000+ intalls apps has the most no comment reviews?","SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Installs = '1,000,000+' AND T2.Translated_Review = 'nan' GROUP BY T1.App ORDER BY COUNT(T2.Translated_Review) DESC LIMIT 1" "Round of 2r, and a Home result of 0-0 has what season?","SELECT season FROM table_name_24 WHERE round = ""2r"" AND home_result = ""0-0""" On what date did the home team Essendon play?,"SELECT date FROM table_name_50 WHERE home_team = ""essendon""" How many distinct kinds of injuries happened after season 2010?,SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.season > 2010 What team did the player represent that was picked after 196?,SELECT nfl_club FROM table_name_35 WHERE pick > 196 Find the names of all instructors who have taught some course and the course_id.,"SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID" "Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?","SELECT works_number FROM table_name_76 WHERE builder = ""avonside engine company"" AND type = ""4-6-0"" AND number < 12 AND date = ""december 1871""" List the most common type of competition.,SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1 How many cities are there in the country with the largest surface area?,SELECT T2.ID FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.SurfaceArea = ( SELECT MAX(SurfaceArea) FROM Country ) What is the To par of the Player wtih Year(s) won of 1983?,"SELECT AVG(to_par) FROM table_name_11 WHERE year_s__won = ""1983""" "What January 15-16 is is that corresponds to November 3, 2013?","SELECT january_15_16 FROM table_25284864_3 WHERE november_3 = ""november_3, 2013""" What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1?,"SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1" Who was the professional partner in season 4?,SELECT professional_partner FROM table_name_29 WHERE season = 4 How many mountains are there in the country with the greatest population?,SELECT COUNT(T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY T1.Population DESC LIMIT 1 What is the greatest money list ranking that has a Top 25 higher than 2?,SELECT MAX(money_list_rank) FROM table_name_44 WHERE top_25 < 2 "List all the negative comments on the ""Dog Run - Pet Dog Simulator"" app.",SELECT Translated_Review FROM user_reviews WHERE App = 'Dog Run - Pet Dog Simulator' AND Sentiment = 'Negative' How many writers are listed when the U.S viewers are 11.21 million?,"SELECT COUNT(written_by) FROM table_24910733_1 WHERE us_viewers__millions_ = ""11.21""" "What is the full name of the journal that published the paper ""Multiple paternity in a natural population of a salamander with long-term sperm storage""?",SELECT T2.FullName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage' Which Season has a Year of 2005–06?,"SELECT season FROM table_name_63 WHERE year = ""2005–06""" Which division of the Brewers had a 5th place ranking and a loss record of 87?,"SELECT division FROM table_name_98 WHERE finish = ""5th"" AND losses = ""87""" What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?,SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0 What was the largest attended game?,SELECT MAX(attendance) FROM table_23486853_5 How many movies were produced in Canada?,SELECT COUNT(T2.movie_id) FROM COUNTry AS T1 INNER JOIN production_COUNTry AS T2 ON T1.COUNTry_id = T2.COUNTry_id WHERE T1.COUNTry_name = 'Canada' What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?,"SELECT MIN(rank) FROM table_name_50 WHERE goals > 124 AND name = ""jeff cunningham""" Show the document type code with fewer than 3 documents.,SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3 Which Region has a Date of early september 1999?,"SELECT region FROM table_name_67 WHERE date = ""early september 1999""" how many authorship there,SELECT count ( * ) from authors What country has the Sky Calcio 2 tv service?,"SELECT country FROM table_15887683_4 WHERE television_service = ""Sky Calcio 2""" What country won in 1977?,"SELECT country FROM table_name_46 WHERE year_s__won = ""1977""" What's the first elected year of the district that Ed Towns is an incumbent of?,"SELECT first_elected FROM table_1341453_34 WHERE incumbent = ""Ed Towns""" Show the number of all customers without an account.,SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts) "What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.?","SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = ""n/a"" AND timeslot = ""8:30 p.m.""" What score has an opponent gan teik chai lin woon fui?,"SELECT score FROM table_name_6 WHERE opponent = ""gan teik chai lin woon fui""" Which league has a pick number larger than 204 from Canada and LW as the position?,"SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = ""canada"" AND position = ""lw""" What is the length of the First Union six hours at the Glen?,"SELECT length FROM table_name_95 WHERE race = ""first union six hours at the glen""" "What was the value in 2011 when value in 2009 was 82,003?","SELECT 2011 FROM table_name_45 WHERE 2009 = ""82,003""" What's the total when A Score was less than 6.9?,SELECT AVG(total) FROM table_name_98 WHERE a_score < 6.9 What is the record of game 7?,SELECT record FROM table_name_4 WHERE game = 7 what is the average attendance of Cowboys Stadium?,"SELECT Average_Attendance FROM stadium where name = ""Cowboys Stadium""" "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.","SELECT Adults FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG"";" For the game played on 31 July 2007 on clay what was the score?,"SELECT score FROM table_name_42 WHERE surface = ""clay"" AND date = ""31 july 2007""" What home team has 16 as the tie no.?,"SELECT home_team FROM table_name_83 WHERE tie_no = ""16""" How many active businesses from Casa Grande are registered in the database?,SELECT COUNT(business_id) FROM Business WHERE active = 'true' AND city = 'Casa Grande' What 2006 has grand slam tournaments of 2010?,"SELECT 2006 FROM table_name_95 WHERE 2010 = ""grand slam tournaments""" what kinds of shops are they?,SELECT Shop_Details FROM SHOPS What is the least amount of transactions that have both a type code of PUR and a share count larger than 50?,"SELECT min ( amount_of_transaction ) FROM TRANSACTIONS WHERE transaction_type_code = ""PUR"" AND share_count > 50" "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?",SELECT COUNT(performance_return_on_capital__score_) FROM table_name_11 WHERE score__iran_ < 3 AND score__global_ = 266 "What is the TV Channel of TV series with Episode ""A Love of a Lifetime""? List the TV Channel's series name.","SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = ""A Love of a Lifetime"";" What are the name and ID of the product bought the most.,"SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1" What was the label in 1969?,SELECT label FROM table_name_18 WHERE date = 1969 What Grid has Driver Cristiano da Matta?,"SELECT grid FROM table_name_10 WHERE driver = ""cristiano da matta""" Find the first name and office of the professor who is in the history department and has a Ph.D. degree.,"SELECT T1.emp_fname, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'" What are the characteristic ids of those? Sorry!,"SELECT characteristic_id FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" Name the result for 19 black knights points,SELECT result FROM table_21091145_1 WHERE black_knights_points = 19 How many air dates are there for production code 206?,SELECT COUNT(original_air_date) FROM table_11630008_4 WHERE production_code = 206 What were the complaint outcome code of each of those claims? | Here are the complaint outcome codes of each of Product Failure type claims. | What is the complaint status code of each of those claims?,"SELECT complaint_status_code FROM complaints WHERE complaint_type_code = ""Product Failure""" "Which event is located in Northfield, Mn?","SELECT event FROM table_name_94 WHERE location = ""northfield, mn""" What is the name of the MySpace Band with an Original Airdate of 19 february 2008?,"SELECT myspace_band FROM table_name_38 WHERE original_airdate = ""19 february 2008""" What season had Marcio Lassiter?,"SELECT season FROM table_name_97 WHERE name = ""marcio lassiter""" How many athletes were named federico muller?,"SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = ""Federico Muller""" "What are the guest first name, start date, and end date of each apartment booking?","SELECT T2.guest_first_name , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id" What is the first name of clients who have the highest priority?,SELECT T1.first FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.priority = ( SELECT MAX(priority) FROM callcenterlogs ) How many paragraphs for the document with name 'Summer Show'?,SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show' What is the average and minimum age of all artists from United States.,"SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'" What is the Maltese word for the Malay word rabu?,"SELECT maltese FROM table_name_6 WHERE malay = ""rabu""" What was the attendance when the record was 77-54?,"SELECT MIN(attendance) FROM table_name_90 WHERE record = ""77-54""" What is Angola's airport and ICAO of fnsa?,"SELECT airport FROM table_name_75 WHERE country = ""angola"" AND icao = ""fnsa""" "Which Partner has a Score of 7–6, 6–3?","SELECT partner FROM table_name_38 WHERE score = ""7–6, 6–3""" what is the id of the product that is booked for 5 times?,SELECT product_id FROM Products_Booked WHERE booked_count = 5 what is the total number of nicknames for southwestern college?,"SELECT COUNT(nickname) FROM table_262527_1 WHERE institution = ""Southwestern College""" What is the Score that has an Attendance of 4 679?,"SELECT score FROM table_name_52 WHERE attendance = ""4 679""" What level is course 165? List the professors who teach the course.,"SELECT T1.courseLevel, T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = 165" find the program owners that have some programs in both morning and night time.,"SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning"" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Night""" Who made the decision in the game played on December 26?,"SELECT decision FROM table_27537518_6 WHERE date = ""December 26""" "Name the rank on channel for january 21, 2011","SELECT rank_on_channel FROM table_26493520_3 WHERE original_air_date = ""January 21, 2011""" List the descriptions of movies under the category Travel.,SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Travel' "Find the name, account type, and account balance of the customer who has the highest credit score.","SELECT cust_name , acc_type , acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1" "Provide eateries' IDs, names and addresses which were inspected on 30th July, 2016.","SELECT DISTINCT T2.business_id, T2.name, T2.address FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.date = '2016-07-30'" "Describe the phone brands and models of the users who participated in events on 5th May, 2016 at the coordinates of (112,44).","SELECT DISTINCT T2.phone_brand, T2.device_model FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T2.device_id = T1.device_id WHERE T1.timestamp LIKE '2016-05-05%' AND T1.longitude = 112 AND T1.latitude = 44" Name the date for loss of ruffin (3-5),"SELECT date FROM table_name_44 WHERE loss = ""ruffin (3-5)""" Name the total number of bronze with rank of 5 and silver more than 1,"SELECT COUNT(bronze) FROM table_name_39 WHERE rank = ""5"" AND silver > 1" What score has jim courier as the opponent in the final?,"SELECT score FROM table_name_86 WHERE opponent_in_the_final = ""jim courier""" What are the names of the businesses that passed with conditions in May 2012?,"SELECT DISTINCT T2.dba_name FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T1.inspection_date) = '2012-05' AND T1.results = 'Pass w/ Conditions'" What is the average salary for the physics department?,SELECT avg ( salary ) FROM instructor WHERE dept_name = 'Physics' how many albums does AC/DC have?,"SELECT COUNT ( * ) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""AC/DC""" Name the segment D for umbrellas,"SELECT segment_d FROM table_name_60 WHERE segment_a = ""umbrellas""" "The match played July 8, 2007 had what outcome?","SELECT outcome FROM table_name_54 WHERE date = ""july 8, 2007""" Which album had a release of heavenly (hvn95)?,"SELECT album FROM table_name_56 WHERE release_info = ""heavenly (hvn95)""" Which member names are shared among members in the party with the id 3 and the party with the id 1?,SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 What is the average year founded that is located in Broken Hill and has school years of k-6?,"SELECT AVG(founded) FROM table_name_31 WHERE years = ""k-6"" AND suburb_town = ""broken hill""" "Show the unique first names, last names, and phone numbers for all customers with any account.","SELECT DISTINCT T1.customer_first_name, T1.customer_last_name, T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What is the amount of assists for richmond kickers and points larger than 24,"SELECT SUM(assists) FROM table_name_32 WHERE club = ""richmond kickers"" AND points > 24" "What is the rating/share for 18-49 for Week 6, Part 1?","SELECT rating / SHARE(18 AS –49) FROM table_25391981_20 WHERE episode = ""Week 6, Part 1""" "In Harvard University, which year recorded the highest number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions?",SELECT T2.year FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Harvard University' GROUP BY T2.year ORDER BY SUM(T2.grad_cohort) DESC LIMIT 1 What player has a score of 79?,"SELECT player FROM table_name_53 WHERE score = ""79""" What are all values for Womens Doubles in the year 2000/2001?,"SELECT womens_doubles FROM table_14903841_1 WHERE year = ""2000/2001""" "For the coach who won Second Team All-Star in 1933, how many wins did he have that year?",SELECT SUM(T1.W) FROM Coaches AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 1933 AND T2.award = 'Second Team All-Star' When was the Australian open?,SELECT MAX(australian_open) FROM table_197638_7 What is the first name and country code of the player with the most tours?,"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1" What are the names of the technicians by ascending order of age?,SELECT Name FROM technician ORDER BY Age ASC What are the ids of the trips that lasted the longest and how long did they last?,"SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3" "Which week was the October 17, 2004 game played?","SELECT week FROM table_name_76 WHERE date = ""october 17, 2004""" How many times does ROY SWEAZY has reserved a room.,"SELECT count(*) FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY"";" "How many biwords pairs are there whose second word is ""grec""?",SELECT COUNT(T2.w1st) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T1.word = 'grec' How many SportName on scholarship?,"SELECT count ( distinct sportname ) FROM Sportsinfo WHERE onscholarship = ""Y""" What is the name of the 24 hour diner at San Francisco?,SELECT label FROM generalinfo WHERE food_type = '24 hour diner' AND city = 'san francisco' What is the San Antonio's team score?,"SELECT score FROM table_17288825_5 WHERE team = ""San Antonio""" What was the ladder position when the score was 15.9 (99)–14.6 (90)?,"SELECT ladder_position FROM table_24919137_2 WHERE score = ""15.9 (99)–14.6 (90)""" "For the pairs of genes both from the class ATPases, what is the average expression correlation score?",SELECT AVG(T2.Expression_Corr) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Class = 'ATPases' "List the names of the top five coins traded on January 1, 2014.",SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2014-01-01' AND T2.cmc_rank <= 5 How many different shareholders have 2.39 % of capital?,"SELECT COUNT(shareholder_name) FROM table_206359_1 WHERE _percentage_of_capital = ""2.39""" What is the number range for the 56 quantity?,"SELECT number_range FROM table_name_60 WHERE quantity = ""56""" What is the detailed coordinates of the store where the product with the 4th highest profit were purchased from?,"SELECT T2.Latitude, T2.Longitude FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID ORDER BY REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') DESC LIMIT 3, 1" Identify by publication year in the paper database all journals that don't have short name.,"SELECT DISTINCT T2.Year, FullName FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.ShortName = ''" What is the average price of all products?,SELECT avg ( product_price ) FROM products "What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82?","SELECT name FROM table_name_3 WHERE team = ""detroit pistons"" AND wsu_year_s_ = ""1979-82""" Tell me the average goals for losses of 19 and goals against more than 59,SELECT AVG(goals_for) FROM table_name_77 WHERE losses = 19 AND goals_against > 59 Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?,"SELECT intergiro_classification FROM table_name_29 WHERE trofeo_fast_team = ""gb-mg maglificio""" "When sylvania, oh is the location what is the team nickname?","SELECT team_nickname FROM table_28211213_2 WHERE location = ""Sylvania, OH""" find the name of pilots who did not win the matches held in the country of Australia.,SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') What are the names of shops that have more than a single kind of device in stock?,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1 "Find the name and description of the role with code ""MG"".","SELECT role_name , role_description FROM ROLES WHERE role_code = ""MG""" How many episodes had 11.47 million viewers? ,"SELECT COUNT(episode) FROM table_24689168_5 WHERE viewers__millions_ = ""11.47""" How many members are they in total?,SELECT COUNT ( * ) FROM member "Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?",SELECT SUM(density__2005_) FROM table_name_25 WHERE area__km²_ = 340086.7 AND population__2005_ < 5926300 What is the highest Laps with a Time/Retired Wheel?,"SELECT MAX(laps) FROM table_name_80 WHERE time_retired = ""wheel""" "How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?","SELECT AVG(attendance) FROM table_name_76 WHERE tie_no < 8 AND away_team = ""eastwood town""" Who directed episode number 2?,SELECT director FROM table_25737761_3 WHERE no = 2 Count the number of paragraphs.,SELECT count(*) FROM Paragraphs What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast?,"SELECT isbn FROM table_name_75 WHERE series = ""conan the barbarian"" AND title = ""queen of the black coast""" "What is Highest Days, when Launch Date is 23 January 2010?","SELECT MAX(days) FROM table_name_16 WHERE launch_date = ""23 january 2010""" How many drawn have points of 6 and lost by fewer than 4?,SELECT COUNT(drawn) FROM table_name_53 WHERE points = 6 AND lost < 4 Can you tell me the Class (old) to 1868 that has the Quantity larger than 8?,SELECT class__old__to_1868 FROM table_name_47 WHERE quantity > 8 What date was Movistar accredited?,"SELECT date FROM table_name_6 WHERE network_brand_name = ""movistar""" when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso?,"SELECT year FROM table_name_44 WHERE venue = ""nikos goumas stadium"" AND score = ""2–2 4–4 a.e.t. 6–5 pso""" What is the team 2 with a team 1 us gorée?,"SELECT team_2 FROM table_name_88 WHERE team_1 = ""us gorée""" What is the station station and end station for the trips with the three smallest ids?,"SELECT start_station_name , end_station_name FROM trip ORDER BY id LIMIT 3" When did Orville H. Browning (r) succeed?,"SELECT date_of_successors_formal_installation FROM table_2417330_3 WHERE successor = ""Orville H. Browning (R)""" What are the names of rooms that have either king or queen bed?,"SELECT roomName FROM Rooms WHERE bedType = ""King"" OR bedType = ""Queen"";" "What is the temperature of ""Shanghai"" city in January?","SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = ""Shanghai""" What were the dates that APP sent their grants?,"SELECT sent_date FROM Documents where document_type_code = ""APP""" How many female students are disabled?,SELECT COUNT(name) FROM disabled WHERE name NOT IN ( SELECT name FROM male ) What was Melbourne's away team score?,"SELECT away_team AS score FROM table_name_20 WHERE away_team = ""melbourne""" Which date has a Record of 41-46?,"SELECT date FROM table_name_55 WHERE record = ""41-46""" What about their IDs?,SELECT organisation_id FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details How many different kinds of information sources are there for injury accidents?,SELECT count(DISTINCT SOURCE) FROM injury_accident Show the price ranges of hotels with 5 star ratings.,"SELECT price_range FROM HOTELS WHERE star_rating_code = ""5""" Which band serves darwin for commercial purpose?,"SELECT band FROM table_name_61 WHERE area_served = ""darwin"" AND purpose = ""commercial""" What is the grid with a yamaha manufacturer and a +19.435 time/retired?,"SELECT grid FROM table_name_65 WHERE manufacturer = ""yamaha"" AND time_retired = ""+19.435""" "What is the smallest withdrawn value with a GNRI greater than 172, name of Croagh Patrick and was rebuilt before 1939?","SELECT MIN(withdrawn) FROM table_name_10 WHERE gnri_no > 172 AND name = ""croagh patrick"" AND rebuilt < 1939" "What is Tennis, when School Year is 2004-05?","SELECT tennis FROM table_name_29 WHERE school_year = ""2004-05""" Who had the decision when buffalo was the visitor?,"SELECT decision FROM table_name_99 WHERE visitor = ""buffalo""" What is the code of the course which the student whose last name is Smithson took?,SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson' What is the starting year of the oldest technician?,SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1 "Can you list the highest dose prescribed for any medication? | What information do you want for the prescriptions? Do you want all information or just the dose amount? | I wanted the name of the physician that prescribed the highest dose, but I believe you've already provided that information?",SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 HOw many engineers are older than 30?,SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer' What was the name of the show that had 10.47 million total viewers?,"SELECT title FROM table_23793770_2 WHERE total_viewers__in_millions_ = ""10.47""" "Of these cities, which do not also appear on the customer cities list?",SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID how many student played the game? | Would you like to know how many entries in the plays games table correspond to The Vanishing of Eric Calder? | yes,SELECT count ( * ) FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid WHERE GName = 'The Vanishing of Eric Calder' What are the duration of the longest and shortest pop tracks in milliseconds?,"SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Pop""" Provide the full names of employees earning more than the employee with id 163.,"SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )" "In 2012, how many complaints about Credit card product came from clients in Omaha?","SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'Omaha' AND strftime('%Y', T2.`Date received`) = '2012' AND T2.Product = 'Credit card'" How about customer number 6?,SELECT card_type_code FROM Customers_cards where customer_id = 6 What amount had all played that lost were 8?,"SELECT played FROM table_13564637_3 WHERE lost = ""8""" Who was the loss in the game with the record of 65-53?,"SELECT loss FROM table_name_25 WHERE record = ""65-53""" How many customers do we have?,SELECT count(*) FROM CUSTOMERS whats the student capacity?,SELECT student_capacity FROM dorm WHERE student_capacity > 300 What was the surface when the opponent was sergiy stakhovsky mikhail youzhny?,"SELECT surface FROM table_name_24 WHERE opponents = ""sergiy stakhovsky mikhail youzhny""" "What is the result for Chicago, Illinois?","SELECT result FROM table_name_60 WHERE hometown = ""chicago, illinois""" What is the highest Number of seasons in Liga MX for Club cruz azul?,"SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_27 WHERE club = ""cruz azul""" "What is the template type code for template type description ""Book"".","SELECT template_type_code FROM Ref_template_types WHERE template_type_description = ""Book""" "For all the users who gave ""A Shot in the Dark"" a rating, how many percent of them is a paying subscriber?",SELECT CAST(SUM(CASE WHEN T1.user_has_payment_method = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'A Shot in the Dark' "What country has t6 as the place, with seve ballesteros as the player?","SELECT country FROM table_name_2 WHERE place = ""t6"" AND player = ""seve ballesteros""" What was the product id for the customer that ordered the most product quantity?,SELECT T1.customer_id FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum ( T3.order_quantity ) DESC LIMIT 1 "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.","SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009" List the name of universities located in Spain.,SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Spain' Thank you! Can you update this list to include how many degrees were conferred each year?,"SELECT sum ( degrees ) , YEAR FROM degrees GROUP BY YEAR" What is the Result with a Venue that is filbert street?,"SELECT result FROM table_name_16 WHERE venue = ""filbert street""" What is the market for the 11pm-1am Saturday game?,"SELECT market_market_rank FROM table_name_3 WHERE saturday = ""11pm-1am""" "Among all the DB class type citation, which word is the most frequently cited?",SELECT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'DB' GROUP BY T2.word_cited_id ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1 What is the average PI GP of the player from round 5 with a pick # larger than 151?,SELECT AVG(pl_gp) FROM table_name_19 WHERE rd__number = 5 AND pick__number > 151 How many points did Carlin have when they had 3 wins?,"SELECT points FROM table_name_90 WHERE wins = ""3"" AND team = ""carlin""" List out the name of players who weight 190 lbs.,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_lbs = 190 "List the maximum, minimum and average number of used kb in screen mode.","SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;" Please list all the vendors' usual selling prices of the product Hex Nut 5.,SELECT T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Hex Nut 5' GROUP BY T1.StandardPrice ORDER BY COUNT(T1.StandardPrice) DESC LIMIT 1 "Wat was the result for the 20 km after 2008 when the venue was Metz, France?","SELECT result FROM table_name_13 WHERE year > 2008 AND event = ""20 km"" AND venue = ""metz, france""" "Write down the full name, performance status and located city of the employee who's social security number is ""767-74-7373"".","SELECT T1.firstname, T1.lastname, T2.state, T2.locationcity FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T1.ssn = '767-74-7373'" "What is SECOND, when SIXTH is Victoria?","SELECT second FROM table_name_18 WHERE sixth = ""victoria""" what is the tournament when the winning score is 2 and 1?,"SELECT tournament FROM table_name_29 WHERE winning_score = ""2 and 1""" Show all locations and the number of gas stations in each location ordered by the count.,"SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)" Show the names of trains and locations of railways they are in.,"SELECT T2.Name , T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID" Show the names of all technicians assigned to the machine with ID 2.,"SELECT T3.Name, t1.machine_id FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID and t1.machine_id = 2" How many employees do we have?,SELECT count(*) FROM Employees What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?,"SELECT tracks FROM table_name_20 WHERE catalog = ""ba 222304"" AND length = ""2:57""" Name the engine with entrant of larrousse f1,"SELECT engine FROM table_name_59 WHERE entrant = ""larrousse f1""" Name the slope length for gondola,"SELECT MIN(slope_length) FROM table_17814458_1 WHERE type = ""gondola""" What is the number of aircraft?,SELECT count(*) FROM aircraft What is the money rank of the poker player with the highest earnings?,SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 What is the total student capacity of all dorms?,SELECT sum(student_capacity) FROM dorm List the names of clubs that do not have any players.,SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player) "What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?",SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 7 "And what is the average gender wise? | sorry,i cant understand your question | What is the average age of students as per the ""Sex"" of the students?","SELECT sex,avg ( Age ) FROM student group by Sex" List down all of the texts posted on Twitter on Thursday.,SELECT text FROM twitter WHERE Weekday = 'Thursday' "What is the URL to the rating on Mubi made by user 45579900 for the movie ""The Vertical Ray of the Sun"" that received 20 likes?",SELECT T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_id = 45579900 AND T1.movie_title = 'The Vertical Ray of the Sun' AND T2.critic_likes = 20 "When they played San Lorenzo, what was the score of the second leg?","SELECT 2 AS nd_leg FROM table_17282875_3 WHERE team__number1 = ""San Lorenzo""" Count the number of classrooms in Lamberton.,SELECT count(*) FROM classroom WHERE building = 'Lamberton' How many loan types in this table?,SELECT count ( loan_type ) FROM loan What was the connection speed when launched on 07.06.2005?,"SELECT connection_speed FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = ""07.06.2005""" What was the attendance like for week 8?,SELECT attendance FROM table_name_45 WHERE week = 8 List the names of all the distinct product names in alphabetical order?,SELECT DISTINCT product_name FROM product ORDER BY product_name What was the crowd size at Victoria Park?,"SELECT crowd FROM table_name_18 WHERE venue = ""victoria park""" "What are the names of musicals with nominee ""Bob Fosse""?","SELECT Name FROM musical WHERE Nominee = ""Bob Fosse""" What are the name and active date of the customers whose contact channel code is email?,"SELECT t1.customer_name , t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'" "What's the sum of the points when attendance is 8,000 on february 22?","SELECT SUM(points) FROM table_name_41 WHERE attendance = ""8,000"" AND date = ""february 22""" "What is the language of the method ''PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn""?",SELECT Lang FROM Method WHERE Name = 'PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn' What loss has 10-16 as the record?,"SELECT loss FROM table_name_83 WHERE record = ""10-16""" What was the margin of victory over Steve Rintoul?,"SELECT margin_of_victory FROM table_name_61 WHERE runner_s__up = ""steve rintoul""" Write down the name of products whose sale quantity is more than 950.,SELECT DISTINCT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Quantity > 950 Which team won against the New England Patriots 40-21?,"SELECT winner FROM table_name_14 WHERE loser = ""new england patriots"" AND result = ""40-21""" What are the names of the regions in alphabetical order?,SELECT region_name FROM region ORDER BY region_name List the name of artworks that are not nominated.,SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination) What are the distinct secretary votes in the fall election cycle?,"SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = ""Fall""" What is the name of the claim processing stage that most of the claims are on?,SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1 What was the earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles,"SELECT MIN(year) FROM table_14903999_1 WHERE mixed_doubles = ""Þorvaldur Ásgeirsson Lovísa Sigurðardóttir""" Show all artist names with an average exhibition attendance over 200.,SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200 "Show the studios that have produced films with director ""Nicholas Meyer"" and ""Walter Hill"".","SELECT Studio FROM film WHERE Director = ""Nicholas Meyer"" INTERSECT SELECT Studio FROM film WHERE Director = ""Walter Hill""" "What is Userpics Free, when Monthly Cost For Paid Account is ""unknown"", and when S Registered User is 2340?","SELECT userpics_free FROM table_name_89 WHERE monthly_cost_for_paid_account = ""unknown"" AND s_registered_user = ""2340""" What's on the notes for the order happened on 1994/9/14?,"SELECT T1.notes FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y-%m-%d', T2.ord_date) = '1994-09-14'" "What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?","SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = ""ktm"" AND time_retired = ""+56.440"" AND grid < 11" who is the driver that has laps more than 35 and the constructor is ferrari?,"SELECT driver FROM table_name_51 WHERE laps > 35 AND constructor = ""ferrari""" What is the nationality of player Jani Hakanpaa?,"SELECT nationality FROM table_name_65 WHERE player = ""jani hakanpaa""" What was the result of the Australian Championships?,"SELECT outcome FROM table_2139023_2 WHERE championship = ""Australian championships""" What is the average climb for Tenbosse?,"SELECT MIN(average_climb___percentage_) FROM table_16654785_2 WHERE name = ""Tenbosse""" How many athletes are there in the region where Clara Hughes is from?,SELECT COUNT(person_id) FROM person_region WHERE region_id = ( SELECT T1.region_id FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T2.full_name = 'Clara Hughes' ) What is the total for set 2 17-25?,"SELECT total FROM table_name_80 WHERE set_2 = ""17-25""" What is the common name for the creature with darker colors?,"SELECT common_name FROM table_name_18 WHERE color = ""darker colors""" Show the denomination of the school that has the most players.,SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1 What were the candidates in the district that first elected in 1980?,"SELECT candidates FROM table_1341453_34 WHERE first_elected = ""1980""" "Among the female clients that age between 20 to 40, list the date when their complaints were received.",SELECT DISTINCT T3.`Date received` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID INNER JOIN callcenterlogs AS T3 ON T2.`Complaint ID` = T3.`Complaint ID` WHERE T1.age BETWEEN 20 AND 40 AND T1.sex = 'Female' How many games were there in the 1966 season?,SELECT MAX(game) FROM table_20849830_1 How many 'United Airlines' flights go to Airport 'ASY'?,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.DestAirport = ""ASY""" What was the number of viewers in millions for the broadcast from 2010? ,SELECT viewers__millions_ FROM table_24212608_1 WHERE broadcast_date = 2010 "Who won an award of £3,000 on 4/9/02?","SELECT recipient FROM table_name_37 WHERE date = ""4/9/02"" AND award = ""£3,000""" "What is the zip code the county named ""Howard"" is located in?","SELECT Zip_code FROM county WHERE County_name = ""Howard""" How many schools do not participate in the basketball match?,SELECT COUNT(*) FROM university WHERE NOT school_id IN (SELECT school_id FROM basketball_match) What is the barrell profile that goes with the gas piston carbine?,"SELECT barrel_profile FROM table_12834315_5 WHERE name = ""Gas Piston Carbine""" What day was the total smaller than 19 at Venue of anz stadium?,"SELECT date FROM table_name_42 WHERE total < 19 AND venue = ""anz stadium""" Were there any other position in the try outs other than goalie position?,"SELECT pPos FROM tryout where pPos ! = ""goalie""" What is the title of the 8th doctor published in January 2003?,"SELECT title FROM table_name_74 WHERE doctor = ""8th"" AND published = ""january 2003""" What teams does jim mcinally manage?,"SELECT team FROM table_11207040_6 WHERE outgoing_manager = ""Jim McInally""" Show names of climbers and the names of mountains they climb.,"SELECT T1.Name, T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" "Points difference of 18 - 33, and a Points smaller than 4 is the total of what sum of games?","SELECT SUM(games) FROM table_name_10 WHERE points_difference = ""18 - 33"" AND points < 4" who is the winner and score for the week of august 9?,"SELECT winner_and_score FROM table_name_6 WHERE week = ""august 9""" Who had a score of 68-67=135?,SELECT player FROM table_name_98 WHERE score = 68 - 67 = 135 What is the score on December 31?,"SELECT score FROM table_name_13 WHERE date = ""december 31""" Please calculate the total number of orders by each city in 2019.,SELECT COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.OrderDate LIKE '%/%/19' GROUP BY T2.`City Name` HAVING COUNT(T1.OrderNumber) "For each trip, return its ending station's installation date.","SELECT T1.id , T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id" Name the macedonian for il/elle avait entendu,"SELECT macedonian FROM table_1841901_1 WHERE french = ""il/elle avait entendu""" find the training hours for the player id 10001,"SELECT hs FROM PLAYER WHERE pID = ""10001""" What nation was the film from that was in english and had a Literary tradition of canadian literature?,"SELECT country FROM table_name_99 WHERE language_s_ = ""english"" AND literary_tradition = ""canadian literature""" what is the purchase investor Id?,SELECT investor_id FROM TRANSACTIONS "What is Record, when Date is November 23?","SELECT record FROM table_name_16 WHERE date = ""november 23""" what date was the claim made?,SELECT date_claim_made FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1 Which festival name was associated with program talent show?,"SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = ""Program Talent Show""" How many times was the album released by blowfly in 1980 downloaded?,SELECT totalSnatched FROM torrents WHERE artist LIKE 'blowfly' AND groupYear = 1980 Which country has the University of São Paulo?,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'University of São Paulo' "List the report number of crimes reported in a community area in the far north side with a population greater than 60,000.",SELECT SUM(CASE WHEN T1.population > 60000 THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Far North ' Which city in Japan has the most people in the country?,SELECT T2.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' ORDER BY T2.Population DESC LIMIT 1 What is the lowest amount of money a player from South Africa with a to par less than 8 has?,"SELECT MIN(money___) AS $__ FROM table_name_13 WHERE country = ""south africa"" AND to_par < 8" List top 10 employee work longest in the company. List employee's first and last name.,"SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;" What campuses are in Los Angeles county?,"SELECT campus FROM campuses WHERE county = ""Los Angeles""" What are the names of companies with revenue between 100 and 150?,SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 What was the end time of that appointment?,SELECT End FROM appointment ORDER BY START DESC LIMIT 1 What is every value for Polish when Balarusian is ноч?,"SELECT polish FROM table_25008327_8 WHERE belarusian = ""ноч""" How many different FSB are there for the 7140N model?,"SELECT COUNT(fsb__mhz_) FROM table_269920_3 WHERE model = ""7140N""" What is the id of the account with the most transactions?,SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1 In which city is the company 'Woodstock Discos' located?,"SELECT city FROM customers WHERE company = ""Woodstock Discos""" "What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?","SELECT city FROM table_name_30 WHERE state = ""california"" AND aam_accredited = ""no"" AND astc_member = ""yes"" AND aam_member = ""no""" What body styles have 6/75 as the model?,"SELECT body_styles FROM table_name_4 WHERE model = ""6/75""" find the name and city of the airport which is the destination of the most number of route.,"SELECT T1.name , T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count ( * ) DESC LIMIT 1" What was the finishing place for 1953?,"SELECT finish FROM table_name_95 WHERE year = ""1953""" "Can you show me the resolution for song name ""Aj ei Akash""?",SELECT resolution from song where song_name = 'Aj ei akash' Name the studio for super callanetics,"SELECT studio FROM table_27303975_2 WHERE title = ""Super Callanetics""" What was the score for game 2?,SELECT score FROM table_name_82 WHERE game = 2 How many cop apps in the season with fewer than 12 league apps?,SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12 What is Natalya's Time?,"SELECT time FROM table_name_86 WHERE wrestler = ""natalya""" "Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A?","SELECT previous_conference FROM table_name_23 WHERE year_joined < 1976 AND ihsaa_class = ""a""" Provide the product's name of the product with the highest sales in the South region.,SELECT T2.`Product Name` FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'South' ORDER BY T1.Sales DESC LIMIT 1 What is the score of the game with the chicago black hawks as the visitor and a 3-1 record?,"SELECT score FROM table_name_45 WHERE visitor = ""chicago black hawks"" AND record = ""3-1""" What is the Venue of the Friendly Competition with a Score of 1–4?,"SELECT venue FROM table_name_58 WHERE competition = ""friendly"" AND score = ""1–4""" Who drove the grid 10 car?,SELECT driver FROM table_name_3 WHERE grid = 10 What is the gender of the legislator whose address at 317 Russell Senate Office Building Washington DC 20510?,SELECT T1.gender_bio FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.address = '317 Russell Senate Office Building Washington DC 20510' Show name and salary for all employees sorted by salary.,"SELECT name , salary FROM Employee ORDER BY salary" When the time/retired is electrical how many laps did Rubens Barrichello have?,"SELECT laps FROM table_name_53 WHERE time_retired = ""electrical"" AND driver = ""rubens barrichello""" What is the date before week 13 and Miami Dolphins as an opponent?,"SELECT date FROM table_name_48 WHERE week < 13 AND opponent = ""miami dolphins""" "Find the total quantity of products associated with the orders in the ""Cancelled"" status.","SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = ""Cancelled""" What is the name of the Leading scorer when the Score was 89–102?,"SELECT leading_scorer FROM table_name_59 WHERE score = ""89–102""" "Which Nickname has an Enrollment smaller than 501, and a Location of clarkesville?","SELECT nickname FROM table_name_37 WHERE enrollment < 501 AND location = ""clarkesville""" "What are the names of the counties of public safety, ordered by population descending?",SELECT Name FROM county_public_safety ORDER BY Population DESC What is the total number of gentle personalities?,"SELECT COUNT(方位_direction) FROM table_1912713_2 WHERE 性情_personality = ""Gentle""" What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.,"SELECT T1.cmi_cross_ref_id , T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*) >= 1" Which range contains the most mountains?,SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1 How many reviews did we receive?,SELECT count ( * ) FROM review How many locations are listed for the Big 12 Conference?,"SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE conference = ""Big 12 conference""" "What was the result of the game from September 10, 2000?","SELECT result FROM table_name_68 WHERE date = ""september 10, 2000""" what is the least silver when gold is 0?,SELECT MIN(silver) FROM table_name_93 WHERE gold < 0 What was the score for set 3 when set 1 was 14–25?,"SELECT set_3 FROM table_name_1 WHERE set_1 = ""14–25""" What is the start of stage 11?,SELECT start FROM table_name_8 WHERE stage = 11 When was the score l 111–122 (ot)?,"SELECT date FROM table_name_84 WHERE score = ""l 111–122 (ot)""" what is the venue when the home team is melbourne?,"SELECT venue FROM table_name_67 WHERE home_team = ""melbourne""" Name the frequency for community purpose and callsign of 1vfm,"SELECT frequency FROM table_name_79 WHERE purpose = ""community"" AND callsign = ""1vfm""" "On 10 November 2007, what was the venue?","SELECT venue FROM table_name_60 WHERE date = ""10 november 2007""" Who was the winning constructor of the Grand Prix Du Salon ?,"SELECT winning_constructor FROM table_name_24 WHERE name = ""grand prix du salon""" What is Jon Thorne's average speed?,"SELECT average_speed__mph_ FROM table_1963459_2 WHERE team = ""Jon Thorne""" What was the name for the race in the Miramas circuit?,"SELECT name FROM table_name_31 WHERE circuit = ""miramas""" and how many of those 8 hosts are younger than 40?,"SELECT count ( * ) FROM HOST where Nationality = ""United States"" and age < 40" Which opponent has a date of July 7?,"SELECT opponent FROM table_name_35 WHERE date = ""july 7""" What is long-term C PK when the short-term C PK is 2.00?,"SELECT long_term_c_pk FROM table_222448_1 WHERE short_term_c_pk = ""2.00""" What's the total number that had a rank larger than 17 and a gold greater than 0?,SELECT COUNT(total) FROM table_name_73 WHERE rank > 17 AND gold > 0 What is the number of gold for the country ranked 19?,"SELECT SUM(gold) FROM table_name_19 WHERE rank = ""19""" Please provide a gender breakdown for each organization.,"SELECT IIF(T2.name IS NULL, 'female', 'male') AS gender FROM enlist AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name GROUP BY T1.organ" What was the district of the incumbent Mathias Morris?,"SELECT district FROM table_2668173_4 WHERE incumbent = ""Mathias Morris""" What is the y = 2008 when y = 2011 is a = 3?,SELECT y_ = _2008 FROM table_214479_8 WHERE y_ = _2011 = a = 3 What's Kevin A Wright's email address?,SELECT T2.EmailAddress FROM Person AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Kevin' AND T1.MiddleName = 'A' AND T1.LastName = 'Wright' can you tell me their names?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3 "In the Georgia 6 district, what is the elected party?","SELECT party FROM table_1341663_11 WHERE district = ""Georgia 6""" How many Latin Americans lived in 2011 in Saskatchewan?,"SELECT MIN(latin_americans_2011) FROM table_1939405_2 WHERE province = ""Saskatchewan""" What is the format of code 9 40231-2 (us only)?,"SELECT format FROM table_name_83 WHERE code = ""9 40231-2 (us only)""" What is the new membership total if the members lost is bigger than 1.0?,SELECT MAX(new_membership_total) FROM table_27671835_3 WHERE members_lost > 1.0 What percentage of customers from France is in the automobile segment?,"SELECT CAST(SUM(IIF(T1.c_mktsegment = 'AUTOMOBILE', 1, 0)) AS REAL) * 100 / COUNT(T1.c_name) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'FRANCE'" When shaun maloney is the player what is the lowest p?,"SELECT MIN(p) FROM table_18254488_2 WHERE player = ""Shaun Maloney""" Name how other lyers say enga ullale,"SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = ""enga ullale""" Tell me the sum of round for record of 6-3,"SELECT SUM(round) FROM table_name_41 WHERE record = ""6-3""" "What is the average base price of rooms, for each bed type?","SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;" Name the 2004 results for npa,"SELECT results_2004 FROM table_name_18 WHERE party = ""npa""" What is the id and market share of the browser Safari?,"SELECT id, market_share FROM browser WHERE name = 'Safari'" What is the job position currently occupied by Ken J Sánchez?,SELECT T1.JobTitle FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.FirstName = 'Ken' AND T2.MiddleName = 'J' AND T2.LastName = 'Sánchez' What is the smallest average for the player with 13 matches and fewer than 7 catches?,SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7 could add the right-footed and left-footed players that have an overall rating greater than 80 together?,"SELECT preferred_foot , count ( * ) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot" OK! Can you also show me the number of invoices for these 5 countries.,"SELECT billing_country,COUNT ( * ) FROM invoices GROUP BY billing_country ORDER BY count ( * ) DESC LIMIT 5" Who directed the title written by cherry chevapravatdumrong?,"SELECT directed_by FROM table_22269839_1 WHERE written_by = ""Cherry Chevapravatdumrong""" What won best pc demo when tower power (camelot) won best c64 demo?,"SELECT pc_demo FROM table_2490289_1 WHERE c64_demo = ""Tower Power (Camelot)""" "Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms.","SELECT apt_type_code , bathroom_count , bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1" What is the Asian population in the city with the alias Leeds?,SELECT SUM(T2.asian_population) FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'Leeds' What are all of her visit start datetimes and visit end datetimes?,"select visit_start_datetime, visit_end_datetime from engineer_visits where engineer_id = ( SELECT T1.engineer_id FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count ( * ) DESC LIMIT 1 ) " How many students are enlisted in the Peace Corps organization are enrolled in UCSD school?,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name WHERE T1.organ = 'peace_corps' AND T2.school = 'ucsd' "What country was the golfer from who had a money amount of 45,000?","SELECT country FROM table_name_39 WHERE money___$__ = ""45,000""" "list the first and last names, and the addresses of all employees in the ascending order of their birth date.","SELECT fname, lname, address FROM employee ORDER BY Bdate" What league had a finish of 2nd and 3 losses?,"SELECT league FROM table_name_74 WHERE finish = ""2nd"" AND losses = 3" When was the appointment date for VFL Wolfsburg?,"SELECT date_of_appointment FROM table_name_72 WHERE team = ""vfl wolfsburg""" what's the report with location  österreichring,"SELECT report FROM table_1140080_2 WHERE location = ""Österreichring""" "What class has a MHZ frequency under 103.1 licensed in morro bay, california?","SELECT class FROM table_name_4 WHERE frequency_mhz < 103.1 AND city_of_license = ""morro bay, california""" "Who is the Driver, when the Date is October 6?","SELECT driver FROM table_name_98 WHERE date = ""october 6""" Show the apartment types codes in buildings managed by Kyle?,"SELECT T2.apt_type_code FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = ""Kyle""" What is the smallest number of assists for Ben Duggan with less than 7 points?,"SELECT MIN(assists) FROM table_name_17 WHERE name = ""ben duggan"" AND points < 7" What was the away team that played at Princes Park?,"SELECT away_team FROM table_name_17 WHERE venue = ""princes park""" Provide the list of products ordered by ID 10979 and calculate its total payment.,"SELECT T1.ProductName , SUM(T2.UnitPrice * T2.Quantity * (1 - T2.Discount)) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10979 GROUP BY T1.ProductName" Which countries has the most number of airlines?,SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1 Tell me the type for category of mouse and attribute of ondblclick,"SELECT type FROM table_name_49 WHERE category = ""mouse"" AND attribute = ""ondblclick""" What are the names of tracks that are Rock or MPEG media type?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" OR T3.name = ""MPEG audio file""" What are the first and last names of all the female students who have president votes?,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" How many tourists visited more than one tourist attraction?,select count ( * ) from ( SELECT * FROM Visits as T1 join Visitors as T2 on T1.tourist_id = T2.tourist_id group by T1.tourist_id having count ( * ) >1 ) "Find the location of the club ""Pen and Paper Gaming"".","SELECT clublocation FROM club WHERE clubname = ""Pen and Paper Gaming""" "Please list the models of all the devices with an event under the location coordinates (121, 31).",SELECT T2.device_model FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.longitude = 121 AND T1.latitude = 31 "For each user, find their name and the number of reviews written by them.","SELECT T1.name , count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" Mention the group of age of users who use phone brand of LG.,SELECT T1.`group` FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'LG' Which opponent was present on March 28?,SELECT opponent FROM table_name_40 WHERE march = 28 "When was the microprocessor with 1.65–1.7 v, a mult of 4.5×, and a slot 1 socket released?","SELECT release_date FROM table_name_43 WHERE voltage = ""1.65–1.7 v"" AND mult = ""4.5×"" AND socket = ""slot 1""" List the campus that have between 600 and 1000 faculty lines in year 2004.,SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T2.year = 2004 What is the color of the grape whose wine products has the highest average price?,SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1 Who is the winner of the race in Burkina Faso?,"SELECT winner FROM table_name_60 WHERE location = ""burkina faso""" Which baseball team is class AAA?,"SELECT team FROM table_name_75 WHERE sport = ""baseball"" AND class = ""aaa""" What is the most common participant type?,SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY COUNT(*) DESC LIMIT 1 What are the names of races held between 2009 and 2011?,SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011 What category was Scream nominated for at the International Horror Guild?,"SELECT category FROM table_name_52 WHERE work = ""scream"" AND award = ""international horror guild""" What was the home team that played Collingwood?,"SELECT home_team FROM table_name_73 WHERE away_team = ""collingwood""" Who moved from Northampton Town?,"SELECT name FROM table_22810095_8 WHERE moving_from = ""northampton Town""" What is the birth date of the person who died on 18 October 1335?,"SELECT birth FROM table_name_94 WHERE death = ""18 october 1335""" Provide the genre name of the genre ID 3.,SELECT T.genre_name FROM genre AS T WHERE T.id = 3 "Which Week has an Attendance larger than 65,070?",SELECT MAX(week) FROM table_name_57 WHERE attendance > 65 OFFSET 070 What year had cargo tonnes of 13 585?,"SELECT AVG(year) FROM table_name_32 WHERE cargo__tonnes_ = ""13 585""" What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?,SELECT MAX(total) FROM table_name_43 WHERE bronze = 7 AND silver > 12 what's the turbo where trim is 2.0 20v,"SELECT turbo FROM table_11167610_1 WHERE trim = ""2.0 20v""" What is the maximum accelerate for different number of cylinders?,"SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;" And how many products have a price lower than the average?,SELECT count ( * ) FROM products WHERE product_price < ( SELECT avg ( product_price ) FROM products ) "Hello, can you tell me the tourist attraction id for the photo name ""game1""?","SELECT T2.Tourist_Attraction_ID FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" "What is the name of the Home Captain for 23,24,25,26 july 1992?","SELECT home_captain FROM table_name_7 WHERE date = ""23,24,25,26 july 1992""" Find the total rating ratio for each channel owner.,"SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER" What was the competition on 29 November 1997 that resulted in a draw?,"SELECT competition FROM table_name_97 WHERE result = ""draw"" AND date = ""29 november 1997""" List the companies of entrepreneurs in descending order of money requested.,SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC "How much did the girl, nicknamed Chidi, weigh at birth?","SELECT weight_at_birth FROM table_name_2 WHERE gender = ""girl"" AND nickname = ""chidi""" What is the latest year of last final for the club whose last title was in 1994?,"SELECT MAX(last_final) FROM table_2869837_1 WHERE last_title = ""1994""" Show the locations of parties and the names of the party hosts in ascending order of the age of the host.,"SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age" "Show all dates of transactions whose type code is ""SALE"".","SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = ""SALE""" Which advisors are advising more than 2 students?,SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2 How about the lowest?,select min ( balance ) from savings Who has a Record of 5-2?,"SELECT opponent FROM table_name_2 WHERE record = ""5-2""" "How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?","SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = ""November 13, 2007""" What is the most common year of production?,select year from wine group by year order by count ( * ) desc limit 1 What is the engine for year 2012-?,"SELECT engine FROM table_name_52 WHERE years = ""2012-""" Name the number of stations for 15 minutes travel time,"SELECT COUNT(stations) FROM table_2385460_1 WHERE travel_time = ""15 minutes""" "What is the maximum, minimum, and average price of these wines?","SELECT max ( price ) , min ( price ) ,avg ( price ) FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" And democrats?,"SELECT count ( * ) from representative where party = ""Democratic""" What are the different location codes for documents?,SELECT DISTINCT location_code FROM Document_locations From which series is the title Barbary Coast Bunny?,"SELECT series FROM table_name_85 WHERE title = ""barbary coast bunny""" What are the product types of those?,SELECT T2.product_type_code FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 What are the names of all the songs?,SELECT song_name FROM song Can you the artist name of Song Tum robe nirobe?,select artist_name from song where song_name = 'Tumi robe nirobe' How many priority urgent complaints were received in march of 2017? List the complaint ID of these complaints.,SELECT COUNT(`Complaint ID`) FROM callcenterlogs WHERE `Date received` LIKE '2017-01%' AND priority = ( SELECT MAX(priority) FROM callcenterlogs ) Name the score for when the opponent in the final is shiho hisamatsu,"SELECT score FROM table_name_43 WHERE opponent_in_the_final = ""shiho hisamatsu""" What is the percentage of the tweets from California are positive?,SELECT SUM(CASE WHEN T1.Sentiment > 0 THEN 1.0 ELSE 0 END) / COUNT(T1.TweetID) AS percentage FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE State = 'California' How many total states are in the table?,SELECT count ( DISTINCT state ) FROM college WHERE enr > ( SELECT avg ( enr ) FROM college ) What day did they play on week 4?,SELECT date FROM table_name_25 WHERE week = 4 List down the address of employees who did inspection dated 11/5/2010.,SELECT DISTINCT T1.address FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-11-05' Name the goalie and the season he played where he had 5% shutouts among the number of goals recorded while the goalie was on the ice.,"SELECT DISTINCT T1.firstName, T1.lastName, T2.year FROM Master AS T1 INNER JOIN ( SELECT playerID, year FROM Goalies WHERE CAST(SHO AS REAL) / GA > 0.05 ) AS T2 ON T2.playerID = T1.playerID" Show their names.,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC Write down the ID and opening day of a week for the business which are running in Black Canyon City.,"SELECT T2.business_id, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city = 'Black Canyon City' AND T1.active = 'true'" What Title has a Version of 1.0.0.3?,"SELECT title FROM table_name_83 WHERE version = ""1.0.0.3""" tell the mean of the times competition for the 7 jigs,SELECT rank_by_average FROM table_1354805_6 WHERE number_of_dances = 7 What is the staff ID of the staff with the first name Christop?,"SELECT staff_id from staff where staff_first_name = ""Christop""" "How many company commanders were commissioned or elected on November 12, 1861?","SELECT COUNT(company) AS Commander FROM table_29023680_2 WHERE date_of_election_commission = ""November 12, 1861""" Find the distinct unit prices for tracks.,SELECT distinct(UnitPrice) FROM TRACK Which Rank has a Finish of 8?,"SELECT rank FROM table_name_11 WHERE finish = ""8""" What kind of Episode Number has a Air Date on 29 june 2007?,"SELECT AVG(episode_number) FROM table_name_41 WHERE air_date = ""29 june 2007""" What is the name of the country that has the highest roller coaster?,select T2.name from roller_coaster as T1 join country as T2 on T1.country_id = T2.country_id where T1.height = ( SELECT max ( height ) FROM roller_coaster ) Where was the game played when the team's record was 1-3? ,"SELECT game_site FROM table_11452830_2 WHERE record = ""1-3""" Can you also show me their addresses ? | Here are the addresses of shops that have happy hours in may | Can you show me them with their corresponding shop ids?,"SELECT t1.address , t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May'" What was the Attendance during the Tamworth Away game?,"SELECT COUNT(attendance) FROM table_name_9 WHERE away_team = ""tamworth""" What is the number of branches that have more than the average number of memberships?,SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch) List the name of tracks belongs to genre Rock or genre Jazz.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"" OR T1.name = ""Jazz""" What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs?,"SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = ""b5252 fs""" "What is the Type, when Callsign is ""Xetam""?","SELECT type FROM table_name_50 WHERE callsign = ""xetam""" "Among the menus sponsored by Pacific Mail Steamship Company, how many menus have no more than 2 pages?",SELECT COUNT(*) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.sponsor = 'PACIFIC MAIL STEAMSHIP COMPANY' GROUP BY T2.menu_id HAVING COUNT(T2.page_number) <= 2 Which Week has a Result of l 41-14?,"SELECT MIN(week) FROM table_name_89 WHERE result = ""l 41-14""" "For all the games which were published by Namco Bandai Games, what percentage of them were adventure games?",SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Adventure' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = 'Namco Bandai Games' How many staffs are on the list?,SELECT count ( * ) from Staff How about more than 2 bathrooms?,SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2 What is the total number of live births in 2006 with 98.40% of the population as Whites and has more than 2 for the TFR?,"SELECT SUM(live_births_2006) FROM table_name_94 WHERE whites_as__percentage_of_pop = ""98.40%"" AND tfr_2006 > 2" Which ingredient appeared the most in recipes? Calculate its amount of appearance in percentage.,"SELECT T1.name, CAST(COUNT(T2.ingredient_id) AS FLOAT) * 100 / ( SELECT COUNT(T2.ingredient_id) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id ) AS ""percentage"" FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id GROUP BY T2.ingredient_id ORDER BY COUNT(T2.ingredient_id) DESC LIMIT 1" Name the laps for ryan newman,"SELECT laps FROM table_2144863_1 WHERE driver = ""Ryan Newman""" How many movie directors are there?,SELECT COUNT (DISTINCT director) FROM movie What 1976 has a Tournament of overall win – loss?,"SELECT 1976 FROM table_name_67 WHERE tournament = ""overall win – loss""" What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?,"select name from teacher where hometown != ""little lever urban district""" What is all the information about hiring?,SELECT * FROM hiring Find the name of dorms which have TV Lounge but no Study Room as amenity.,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' "Which Nationality has a 2.24 of xo, and a 2.20 of xo?","SELECT nationality FROM table_name_35 WHERE 224 = ""xo"" AND 220 = ""xo""" how many distinct delegates are from counties with population larger than 50000,SELECT count ( DISTINCT T2.Delegate ) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 How many Total that has a FA Trophy of 0 and a Player of charlie butler?,"SELECT COUNT(total) FROM table_name_99 WHERE fa_trophy = 0 AND player = ""charlie butler""" Which album debuted in season 2 (2005)?,"SELECT debut_album FROM table_name_93 WHERE season = ""season 2 (2005)""" What is the Country of T6 Place Player Ben Crenshaw?,"SELECT country FROM table_name_57 WHERE place = ""t6"" AND player = ""ben crenshaw""" Show the theme for exhibitions with records of an attendance above 500,SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 Can you list all product ids and their associated product category codes that have a color code value of 2?,"select product_id,product_category_code from Products where color_code = '2'" "Find the names of customers whose name contains ""Diana"".","SELECT customer_details FROM customers WHERE customer_details LIKE ""%Diana%""" "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?","SELECT preferred_foot , count(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot" What is item number 4?,SELECT * FROM item WHERE i_id = 4 What is the number of female graduate for all students cohort from Oakwood University in 2013?,SELECT COUNT(*) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.year = 2013 AND T2.gender = 'F' AND T2.race = 'X' AND T1.chronname = 'Oakwood University' Return all the apartment numbers sorted by the room count in ascending order.,SELECT apt_number FROM Apartments ORDER BY room_count ASC Could you please show me the ids of the projects with at least 2 documents?,SELECT project_id FROM Documents GROUP BY project_id HAVING count ( * ) > = 2 Where is the frequency 102.3mhz and 5kw power?,"SELECT location FROM table_19215259_1 WHERE power__kw_ = ""5kW"" AND frequency = ""102.3MHz""" How many different neighborhoods are there in Roseland community?,SELECT SUM(CASE WHEN T1.community_area_name = 'Roseland' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no What is the result of the week 1 game?,SELECT result FROM table_name_91 WHERE week = 1 Which rank has a team of Suzuki with under 16 points?,"SELECT rank FROM table_name_96 WHERE team = ""suzuki"" AND points < 16" What is the total rank for the athlete that had a race time of 7:34.24?,"SELECT COUNT(rank) FROM table_name_56 WHERE time = ""7:34.24""" What is the run 2 of the athlete from Australia with a run 1 less than 53.75?,"SELECT run_2 FROM table_name_73 WHERE country = ""australia"" AND run_1 < 53.75" "What was the finish associated with under 11 starts, a honda engine, before 2003?","SELECT AVG(finish) FROM table_name_19 WHERE start < 11 AND engine = ""honda"" AND year < 2003" In how many counties is there a street called Appian Way?,SELECT COUNT(DISTINCT T2.county) FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_name = 'appian way' "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?","SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code" What is the number of played games a club with more than 71 points and less than 8 losses has?,SELECT SUM(played) FROM table_name_50 WHERE points > 71 AND losses < 8 "Ok, than show all companies headquarters",SELECT Headquarter FROM manufacturers "Describe the full names and cities of the customers who rented ""DREAM PICKUP"".","SELECT T4.first_name, T4.last_name, T6.city FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN customer AS T4 ON T3.customer_id = T4.customer_id INNER JOIN address AS T5 ON T4.address_id = T5.address_id INNER JOIN city AS T6 ON T5.city_id = T6.city_id WHERE T1.title = 'DREAM PICKUP'" What is the To par when Lanny Wadkins is the player?,"SELECT to_par FROM table_name_66 WHERE player = ""lanny wadkins""" How many values for winnings correspond to average start of 19.0?,"SELECT COUNT(winnings) FROM table_2597876_2 WHERE avg_start = ""19.0""" "Which state can address ""6862 Kaitlyn Knolls"" possibly be in?","SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE ""%6862 Kaitlyn Knolls%""" How many episodes have a share bigger than 7.0?,SELECT COUNT(_number) FROM table_16072430_1 WHERE share > 7.0 List the character names played by Catherine Deneuve.,SELECT T2.character_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Catherine Deneuve' How many drama workshop groups are in Feliciaberg City?,"SELECT count ( * ) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" "List the name, born state and age of the heads of departments ordered by age.","SELECT name , born_state , age FROM head ORDER BY age" "How many stores procured products on October 27, 2018, in the city of Oregon?",SELECT SUM(CASE WHEN T1.ProcuredDate = '10/27/18' AND T2.`City Name` = 'Orlando' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID Show the working years of managers in descending order of their level.,SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC what was the ACC home game record for the team who's ACC winning percentage was .813?,"SELECT acc_home FROM table_16372911_1 WHERE acc__percentage = "".813""" List the movies released in 1945.,"SELECT title FROM movie WHERE CAST(STRFTIME('%Y', release_date) AS INT) = 1945" "Which format has january 21, 2002 as the date?","SELECT format FROM table_name_11 WHERE date = ""january 21, 2002""" What's the sum of total where the rank is over 9 and the gold is less than 1?,SELECT COUNT(total) FROM table_name_58 WHERE rank > 9 AND gold < 1 Who was the girl on week 1 that was previous to week 3's Ava Hart?,"SELECT week_1 FROM table_name_23 WHERE week_3 = ""ava hart""" "Find the id, forename and number of races of all drivers who have at least participated in two races?","SELECT T1.driverid , T1.forename , count ( * ) 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 ( * ) > = 2" What was the rating for the episode that had 5.90 million viewers? ,"SELECT rating FROM table_23730973_5 WHERE viewers__millions_ = ""5.90""" "In what format was the release from the Nebt068 catalog on April 11, 2005 in?","SELECT format FROM table_name_62 WHERE date = ""april 11, 2005"" AND catalog = ""nebt068""" Describe the year in program and in phase status for the student with most number in advisor.,"SELECT T2.yearsInProgram, T2.inPhase FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id GROUP BY T1.p_id ORDER BY COUNT(*) DESC LIMIT 1" "For a volvo model, how many cylinders does the version with least accelerate have?",SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1; What is the number of the crowd for the home team of South Melbourne?,"SELECT SUM(crowd) FROM table_name_18 WHERE home_team = ""south melbourne""" "Among the trains running west, how many trains have no more than one car with an open roof?","SELECT SUM(CASE WHEN T1.direction = 'west' THEN 1 ELSE 0 END)as count FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) FROM cars WHERE roof = 'none' GROUP BY train_id HAVING COUNT(id) = 1 ) AS T2 ON T1.id = T2.train_id " What is the average rating and resolution of all bangla songs?,"SELECT avg(rating) , avg(resolution) FROM song WHERE languages = ""bangla""" State name of female students who filed for bankruptcy.,SELECT T1.name FROM person AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T1.name = T3.name WHERE T3.name IS NULL How many players are there?,SELECT count ( * ) FROM Player What was Cal State-Los Angeles' position with an Overall above 22?,"SELECT position FROM table_name_77 WHERE overall > 22 AND school_club_team = ""cal state-los angeles""" Find the number of patients' prescriptions physician John Dorian made.,"SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = ""John Dorian""" What are the countries for appelations with at most 3 wines?,SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 "What is the Prize, when the Event is Ept Sanremo?","SELECT prize FROM table_name_11 WHERE event = ""ept sanremo""" on january 7 what is the record?,"SELECT record FROM table_name_63 WHERE date = ""january 7""" What is Damien Martyn's bowling style?,"SELECT bowling_style FROM table_name_49 WHERE player = ""damien martyn""" What are the Poor Law Unions when the area (in acres) is 142?,SELECT poor_law_union FROM table_30121082_1 WHERE area__acres__ = 142 Find the average ram mib size of the chip models that are never used by any phone,SELECT avg ( RAM_MiB ) FROM chip_model WHERE model_name NOT IN ( SELECT chip_model FROM phone ) Name the writers for 46 in series,SELECT writer_s_ FROM table_26702078_1 WHERE no_in_series = 46 Which city does student Linda Smith live in?,"SELECT city_code FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith"";" What is the average crowd size for games with hawthorn as the home side?,"SELECT AVG(crowd) FROM table_name_8 WHERE home_team = ""hawthorn""" What is the average roll for Fairfield school?,"SELECT AVG(roll) FROM table_name_18 WHERE name = ""fairfield school""" "Show the album names, ids and the number of tracks for each album.","SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID" "Which Event is in chandigarh , india?","SELECT event FROM table_name_62 WHERE location = ""chandigarh , india""" How many regions are affected?,SELECT count(DISTINCT region_id) FROM affected_region What's the production time with more than 2.737 built and a 280s model?,"SELECT production_time FROM table_name_59 WHERE number_built > 2.737 AND model = ""280s""" Can you tell me the player id of each player with the letter 'a' in their name?,SELECT pid FROM Player WHERE pName LIKE '%a%' Write down the top ten menus with the highest dish count.,SELECT name FROM Menu GROUP BY name ORDER BY dish_count DESC LIMIT 10 "What are their names, please?","select LName,Fname from student where major in ( SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 ) " "Which Draws has a Wins smaller than 17, and an Against smaller than 1158?",SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158 What is the location of the school named Brisbane Girls' Grammar School?,"SELECT location FROM table_11318462_29 WHERE school = ""Brisbane Girls' Grammar school""" Find and list the full name of customers who bought products above-average quantity.,"SELECT T2.FirstName, T2.MiddleInitial, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID GROUP BY T1.Quantity HAVING T1.Quantity > ( SELECT AVG(Quantity) FROM Sales )" What is the L2 cache of the microprocessor with model number pentium dual-core t3400?,"SELECT l2_cache FROM table_name_91 WHERE model_number = ""pentium dual-core t3400""" Which institution is private/catholic?,"SELECT institution FROM table_name_55 WHERE affiliation = ""private/catholic""" What is the name of the university that has the lowest number of students of all time?,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id ORDER BY T1.num_students LIMIT 1 What are the titles and authors or editors that correspond to books made after 1989?,"SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989" "How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored?",SELECT SUM(innings) FROM table_name_35 WHERE average < 6.33 AND sr < 71.43 AND balls_faced > 36 AND runs_scored < 19 In what district was incumbent Russ Carnahan elected after 2000?,"SELECT district FROM table_name_99 WHERE first_elected > 2000 AND incumbent = ""russ carnahan""" "show me the journalists from England | Do you want their names? | Yes, I do","SELECT Name FROM journalist WHERE Nationality = ""England""" "what is the Check of service_id | Do you mean the service_id of all services with service_type_code ""Check""? | ok","SELECT service_id from Services where service_type_code = ""Check""" What did the customer say in his or her review of Bulldog root beer on 7/26/2013?,SELECT T2.Review FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BrandName = 'Bulldog' AND T2.ReviewDate = '2013-07-26' give me the organization id then,SELECT T1.organisation_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count ( * ) DESC LIMIT 1 Municipality of tampere involves which party?,"SELECT party FROM table_name_1 WHERE municipality = ""tampere""" How many silver medals were won the year 7 gold medals were won?,"SELECT silver FROM table_name_43 WHERE gold = ""7""" What is the name of the department with an instructure who has a name like 'Soisalon'?,SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' What are the names of the establishments that met all of the required standards in 2013?,"SELECT DISTINCT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) = '2013' AND T1.score = 100" How many architects haven't built a mill before year 1850?,SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year < 1850 ); Which Competition had a Result of 3-0 and VEnue of Suwon?,"SELECT competition FROM table_name_75 WHERE result = ""3-0"" AND venue = ""suwon""" What is the official name of the municipality whose name in Basque is Bilar?,"SELECT official_name FROM table_300283_1 WHERE name_in_basque = ""Bilar""" How about the total number of rooms it has?,SELECT sum ( room_count ) FROM Apartments WHERE building_id = 808 "Show names of actors that have appeared in musical with name ""The Phantom of the Opera"".","SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = ""The Phantom of the Opera""" Which away team played at western oval?,"SELECT away_team FROM table_name_16 WHERE venue = ""western oval""" Which Republican ran against the American Labor candidate Matthew J. Merritt?,"SELECT republican_ticket FROM table_name_5 WHERE american_labor_ticket = ""matthew j. merritt""" What was the start date of the most recent appointment?,SELECT Start FROM Appointment ORDER BY Start asc LIMIT 1 What is the title of the film with the longest duration time and stars PENELOPE GUINESS?,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' ORDER BY T3.length DESC LIMIT 1 What was the home team score when North Melbourne was the away team?,"SELECT home_team AS score FROM table_name_8 WHERE away_team = ""north melbourne""" How many sources are there for south africa?,"SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = ""South Africa""" How many starts for an average finish greater than 43?,SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43 What is the description of the license for GNU GPL v2 or Ruby license?,"SELECT description FROM table_25474825_1 WHERE license = ""GNU GPL v2 or Ruby license""" "List total amount of invoice from Chicago, IL.","SELECT sum(total) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL"";" "What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL Cup goals, and fewer than 39 League goals?",SELECT AVG(fa_cup_goals) FROM table_name_33 WHERE other_goals = 0 AND fl_cup_goals = 0 AND league_goals < 39 What is the frequency with 900w power?,"SELECT frequency FROM table_name_81 WHERE power = ""900w""" In which month was the player who has won the most awards born?,SELECT T1.birthMon FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID GROUP BY T2.playerID ORDER BY COUNT(T2.award) DESC LIMIT 1 "What is the highest Money ( $ ), when Score is ""69-71-70-74=284""?",SELECT MAX(money___) AS $__ FROM table_name_65 WHERE score = 69 - 71 - 70 - 74 = 284 "Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?","SELECT championship FROM table_name_89 WHERE outcome = ""runner-up"" AND surface = ""clay"" AND opponent_in_the_final = ""ivan lendl""" "Thank you for that! Can you filter this list to show the rows and associated Claim IDs and amounts for the claims with a higher than average amount? | Hi sorry, can you ask this question again. | Sorry! I'll ask it a different way... Can you please list all claim ids which have a higher than average claim amount?",SELECT claim_id FROM Claims WHERE Amount_Claimed > ( SELECT avg ( Amount_Claimed ) FROM Claims ) Show the product name and total order quantity for each product.,"SELECT T1.product_name , sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id" "And how about the detail ""Karlee Batz""?",SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Karlee Batz' On which date did this policy start?,"SELECT Start_Date FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" What venue had an event on 17 November 1963?,"SELECT venue FROM table_name_16 WHERE season = 1963 AND date = ""17 november 1963""" "Hello, I was wondering how many accounts are listed under the first name of John?",select count ( distinct account_id ) from Customers AS T1 JOIN Accounts AS T2 ON T2.customer_id = T1.customer_id WHERE customer_first_name = 'John' "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?","SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1" Which Score had an Opponent of chris evert-lloyd?,"SELECT score FROM table_name_53 WHERE opponent = ""chris evert-lloyd""" In what round was a defensive tackle drafted with an overall pick smaller than 149?,"SELECT COUNT(round) FROM table_name_25 WHERE position = ""defensive tackle"" AND overall < 149" how many times is the seasons 2 and the coach guy lowman?,"SELECT COUNT(winning__percentage) FROM table_name_92 WHERE seasons = 2 AND coach = ""guy lowman""" What was the winning score of the Valero Texas Open?,"SELECT winning_score FROM table_name_99 WHERE tournament = ""valero texas open""" "What team plays at Spartak, Mogilev?","SELECT team FROM table_name_26 WHERE venue = ""spartak, mogilev""" Name of customers who have ordered Cocktail Glasses by online sales channel.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T3.`Product Name` = 'Cocktail Glasses' AND T2.`Sales Channel` = 'Online' THEN T1.`Customer Names` END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products T3 ON T3.ProductID = T2._ProductID ) WHERE T IS NOT NULL "What is the number of wins associated with 1 point, more than 1 start, and under 7 finishes?",SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1 What was the score on February 17?,"SELECT score FROM table_name_77 WHERE date = ""february 17""" Who had the high point total when dee brown (5) had the high assist total?,"SELECT high_points FROM table_13619105_4 WHERE high_assists = ""Dee Brown (5)""" Name the bubbles for onscroll,"SELECT bubbles FROM table_name_12 WHERE attribute = ""onscroll""" Find the average order quantity per order.,SELECT avg(order_quantity) FROM order_items What is the starting year for the oldest technician?,SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1 "What is the sum of the round of the new york jets NFL club, which has a pick less than 166?","SELECT SUM(round) FROM table_name_60 WHERE nfl_club = ""new york jets"" AND pick < 166" How many cities are there in Australia?,SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' In which state is the Petrie electorate?,"SELECT state FROM table_name_39 WHERE electorate = ""petrie""" What is in the notes for men's speed skating?,"SELECT notes FROM table_name_17 WHERE time = ""men's speed skating""" How many games were not won by runs?,SELECT SUM(CASE WHEN T2.Win_Type != 'runs' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id What was the lesson timing,SELECT lesson_time from Lessons where lesson_id = 4 "Among all the parts under the type ""promo brushed steel"", how many of them have a total available quantity from all suppliers of under 5000?",SELECT SUM(num) FROM ( SELECT COUNT(T3.s_name) AS num FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_type = 'PROMO BRUSHED STEEL' GROUP BY T2.ps_partkey HAVING SUM(T2.ps_availqty) < 5000 ) T "What is Place, when Score is ""71-71-69-71=282""?",SELECT place FROM table_name_3 WHERE score = 71 - 71 - 69 - 71 = 282 Name the customers from the Eastern region whose orders cost above 80000.,SELECT DISTINCT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'East' AND T1.Sales / (1 - T1.Discount) * T1.Quantity - T1.Profit > 80000 "Which Team classification has a Combination classification of egoi martínez, and a Winner of tom boonen?","SELECT team_classification FROM table_name_28 WHERE combination_classification = ""egoi martínez"" AND winner = ""tom boonen""" List the companies of entrepreneurs in descending order of money requested.,SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC Where does he live?,"SELECT city from person where name = ""Bob""" How many tries for does the team with 263 points against have?,"SELECT tries_for FROM table_name_13 WHERE points_against = ""263""" Count the number of tracks that are part of the rock genre.,"SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" "What is To Par, when Country is ""United States"", when Place is ""T4"", and when Player is ""Arnold Palmer""?","SELECT to_par FROM table_name_96 WHERE country = ""united states"" AND place = ""t4"" AND player = ""arnold palmer""" "How many ""cool"" type compliments does user No. 41717 get?",SELECT COUNT(T2.number_of_compliments) FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.compliment_type = 'cool' AND T2.user_id = 41717 "In 1937, how many teams whose players got at least 500 points?","SELECT COUNT(*) FROM ( SELECT T2.name, SUM(T1.points) FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 1937 GROUP BY T2.name HAVING SUM(points) >= 500 ) AS T3" How many products supplied by Plutzer Lebensmittelgromrkte AG that is currently out of stock and on order?,SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Plutzer Lebensmittelgromrkte AG' AND T1.UnitsInStock = 0 AND T1.UnitsOnOrder = 0 How many different total results are there for the model with parchment/black interior/roof?,"SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = ""Parchment/black""" "What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík?","SELECT SUM(population) FROM table_name_57 WHERE markatal > 48 AND inhabitants_per_km² > 24 AND municipality = ""runavík""" "What is the RYds when the RAtt was 2, and the comp is 41?","SELECT ryds FROM table_name_35 WHERE ratt = ""2"" AND comp = ""41""" What are the first and last names of employees in department id 90?,"SELECT FIRST_NAME , LAST_NAME FROM employees where department_id = 90" What is the week 2 with daniella mugnolo in week 1?,"SELECT week_2 FROM table_name_83 WHERE week_1 = ""daniella mugnolo""" which university is founded first,select Institution from Institution order by Founded limit 1 What is the highest total for evm votes,SELECT MAX(total_evm_votes) FROM table_24051013_3 Name the least population 2007 for barangay is poblacion ii,"SELECT MIN(population__2007_) FROM table_1686313_1 WHERE barangay = ""Poblacion II""" Name the points with grid more than 8 and time/retired of +47.487 secs,"SELECT points FROM table_name_74 WHERE grid > 8 AND time_retired = ""+47.487 secs""" When was the game on Taylor Field played?,"SELECT date FROM table_21796261_4 WHERE location = ""Taylor Field""" "What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?",SELECT COUNT(total) FROM table_name_98 WHERE bronze < 2 AND rank < 4 AND silver < 1 "what is the result on september 10, 2008?","SELECT result FROM table_name_43 WHERE date = ""september 10, 2008""" "Which Year has a Competition of olympic games, and a Venue of atlanta, united states?","SELECT AVG(year) FROM table_name_93 WHERE competition = ""olympic games"" AND venue = ""atlanta, united states""" "Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?","SELECT country FROM table_name_95 WHERE place = ""t9"" AND score = 71 - 71 - 72 = 214 AND player = ""ernie els""" Describe the care plans of patient Major D'Amore's plan of care.,SELECT DISTINCT T2.DESCRIPTION FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Major' AND T1.last = 'D''Amore' what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165,SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE numer_of_jamaicans_granted_british_citizenship = 3165 What is the total for New York's game?,"SELECT SUM(game) FROM table_name_39 WHERE team = ""new york""" Which Chart peak has a Time of 3:11?,"SELECT chart_peak FROM table_name_30 WHERE time = ""3:11""" "Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00?","SELECT athlete FROM table_name_97 WHERE place = 1 AND year < 1988 AND country = ""gre"" AND time = ""21:57:00""" What is the total rating of channel for each channel owner?,"SELECT sum(Rating_in_percent) , OWNER FROM channel GROUP BY OWNER" Give the hours played by Kim Tracy?,SELECT Hours_Played FROM student as T1 JOIN Plays_Games AS T2 WHERE Lname = 'Kim' and Fname = 'Tracy' Show the order ids and the number of invoices for each order.,"SELECT order_id , count(*) FROM Invoices GROUP BY order_id" Show the id and salary of Mark Young.,"SELECT eid , salary FROM Employee WHERE name = 'Mark Young'" What are the ages of all music artists?,SELECT Age FROM artist and Lebanon Valley College?,SELECT founded FROM university WHERE school = 'Lebanon Valley College' What was the round when the home team was chornomorets odessa?,"SELECT round FROM table_name_55 WHERE home_team = ""chornomorets odessa""" What information do you have on colleges sorted by increasing enrollment numbers?,SELECT * FROM College ORDER BY enr How many episodes was Jimmy Mulville performer 4?,"SELECT COUNT(episode) FROM table_14934885_1 WHERE performer_4 = ""Jimmy Mulville""" List the names of the stations within Mountain View that were installed on 12/31/2013.,SELECT name FROM station WHERE installation_date = '12/31/2013' AND city = 'Mountain View' What type of engine does a 1951 alfa romeo 159m chasis have?,"SELECT engine FROM table_name_44 WHERE year = 1951 AND chassis = ""alfa romeo 159m""" What is the minimum and maximum number of bathrooms of all the apartments?,"SELECT MIN(bathroom_count), MAX(bathroom_count) FROM Apartments" Thank you so much for that! Can you filter this list to show only the rows in which the employee works in a department which has an employee with the letter J in their name?,"SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG ( salary ) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%' ) " "What are the course names, ordered by credits?",SELECT CName FROM COURSE ORDER BY Credits What was the lowest attendance at Windy Hill?,"SELECT MIN(crowd) FROM table_name_77 WHERE venue = ""windy hill""" What is the genre for the year 2012 (16th)?,"SELECT genre FROM table_name_44 WHERE year = ""2012 (16th)""" When did the home team of Richmond play?,"SELECT date FROM table_name_89 WHERE home_team = ""richmond""" In what year was cumulus founded?,"SELECT MIN(start) FROM table_25034983_2 WHERE owner = ""Cumulus""" What was the title for the episode with the production code 404a?,"SELECT title FROM table_2701851_5 WHERE production_code = ""404a""" Provide the salary range of the employee involved in the inspection ID 58424.,"SELECT T1.salary, T3.salary FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN employee AS T3 WHERE T2.inspection_id = 58424 ORDER BY T1.salary, T3.salary DESC LIMIT 1" "Find the number of vocal types used in song ""Le Pop""","SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What is the final record for the Philadelphia 76ers?,"SELECT record FROM table_name_58 WHERE opponent = ""philadelphia 76ers""" What document type codes do we have?,SELECT document_type_code FROM Ref_Document_Types; On what date was there a draw at Sydney Cricket Ground?,"SELECT date FROM table_name_83 WHERE result = ""draw"" AND venue = ""sydney cricket ground""" Name the english title for album # 2nd,"SELECT english_title FROM table_1893815_1 WHERE album_number = ""2nd""" In how many matches in the Seria A division did both teams have equal goals?,SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Seria A' AND T1.FTR = 'D' How many population values are listed for the community with an area of 10.25 sq.km.?,"SELECT COUNT(population) FROM table_171361_1 WHERE area_km_2 = ""10.25""" what is the nationality when the ship is willerby?,"SELECT nationality FROM table_name_64 WHERE ship = ""willerby""" Which planet has an orbital period of 11.86 years?,"SELECT planet FROM table_10932739_2 WHERE orbital_period = ""11.86 years""" what is the pick # for william loftus?,"SELECT pick__number FROM table_name_68 WHERE player = ""william loftus""" Determine the number of action movies available for rent.,SELECT COUNT(T2.film_id) FROM category AS T1 INNER JOIN film_category AS T2 ON T1.category_id = T2.category_id WHERE T1.name = 'Action' State the width and height of the object with the class of 'van' in image 1.,"SELECT T1.H, T1.W FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 1 AND T2.OBJ_CLASS = 'van'" What was the production code for the episode with 3.38 million viewers?,"SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = ""3.38""" Show the details and star ratings of the 3 least expensive hotels.,"SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3" Which position has won the most awards and who is the most recent player that was awarded with an award in that position? Indicate the name of the award and the full name of the player.,"SELECT T1.pos, T2.award, T1.nameGiven, T1.lastName FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T2.coachID = T1.coachID GROUP BY T1.pos, T2.award, T1.nameGiven, T1.lastName ORDER BY COUNT(T2.award) LIMIT 1" Show the park of the roller coaster with the highest speed.,SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1 Show all the low temperatures.,select low_temperature from weekly_weather "What were the last 5 meetings when Columbia was mu, 4-2?","SELECT last_5_meetings FROM table_name_6 WHERE at_columbia = ""mu, 4-2""" What is the ID of the oldest customer?,SELECT customer_id FROM orders ORDER BY date_order_placed LIMIT 1 what are the total number of student addresses in Texas state?,"SELECT count ( T2.student_id ) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Texas""" Give the name of the country that has the most universities.,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id GROUP BY T2.country_name ORDER BY COUNT(T1.university_name) DESC LIMIT 1 how many employees there,SELECT count ( * ) FROM employee Which physicians are in charge of more than one patient? Give me their names.,SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING count(*) > 1 "What is the id for those users? | Do you mean users followed by only Mary, or only Susan, or by either? | I mean the users followed by either.","SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" OR T1.name = ""Susan""" What college was picked later than 122 by the Boston Patriots?,"SELECT college FROM table_name_88 WHERE pick > 122 AND team = ""boston patriots""" Can you tell me the number of Professors in the building NEB?,"SELECT count ( * ) FROM Faculty WHERE Rank = ""Professor"" AND building = ""NEB""" What is the monto where the total region is 11230?,SELECT COUNT(monto) FROM table_12526990_1 WHERE total_region = 11230 What conference is Tennessee?,"SELECT conference FROM table_26423157_2 WHERE school = ""Tennessee""" What is the total number of PLD for Team Arsenal?,"SELECT COUNT(total_pld) FROM table_name_14 WHERE team = ""arsenal""" how old is Luther C. Carter?,"SELECT Age FROM people WHERE name = ""Luther C. Carter""" What was the Tyre for 19 January?,"SELECT tyre FROM table_name_95 WHERE date = ""19 january""" "If the equation is all equal, what is the 3rd throw?","SELECT 3 AS rd_throw FROM table_17265535_6 WHERE equation = ""all equal""" What is the location of the the game on december 10,"SELECT location_attendance FROM table_17340355_6 WHERE date = ""December 10""" Record of 6–8 had what attendance?,"SELECT attendance FROM table_name_33 WHERE record = ""6–8""" Which episode had Hoagy carmichael safe with an order of 5?,"SELECT episode FROM table_name_10 WHERE result = ""safe"" AND order__number = ""5"" AND original_artist = ""hoagy carmichael""" What is the location of Fightin' Blue Hens?,"SELECT location FROM university WHERE Nickname = ""Fightin Blue Hens""" "When was the archbishop that was born on February 10, 1858 ordained a bishop?","SELECT ordained_bishop FROM table_name_80 WHERE born = ""february 10, 1858""" "What is the address of the location ""UK Gallery""?","SELECT Address FROM LOCATIONS WHERE Location_Name = ""UK Gallery""" What is the Torque of the Model 320td (diesel)?,"SELECT torque FROM table_name_27 WHERE model = ""320td (diesel)""" Give the name of the student with the most likes.,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 How many books were published in Japanese?,SELECT COUNT(T2.book_id) FROM book_language AS T1 INNER JOIN book AS T2 ON T1.language_id = T2.language_id WHERE T1.language_name = 'Japanese' How many students did not have any course enrollment?,SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment) What was the attendance when the score was 88-98?,"SELECT attendance FROM table_name_20 WHERE score = ""88-98""" what fleet is associated with the number L4?,"SELECT fleet FROM table_name_61 WHERE number = ""l4""" Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?,"SELECT monday_mona__máni FROM table_name_84 WHERE thursday_thunor___thor = ""tongersdei""" Show the locations that have more than one railways.,SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*) > 1 Name the tie that has 71 drawn,"SELECT tied FROM table_name_1 WHERE drawn = ""71""" Return the names and ids of all products whose price is between 600 and 700.,"SELECT product_name , product_id FROM products WHERE product_price BETWEEN 600 AND 700" Name the loss with record of 14-19,"SELECT loss FROM table_name_68 WHERE record = ""14-19""" What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?,"SELECT episodes FROM table_18173916_6 WHERE tuesday = ""224 Assassin's Creed: Brotherhood Circus Training""" How many different titles are there of episodes that have been seen by 7.84 million people in the US/,"SELECT COUNT(title) FROM table_23242933_2 WHERE us_viewers__millions_ = ""7.84""" How many gas companies are there?,SELECT count(*) FROM company Who has the highest salary? Please give their first name.,"SELECT FirstName, LastName FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees )" "What is the name of the player from Malaysia, Kuala Lumpur in Index f8?","SELECT name FROM table_name_67 WHERE country = ""malaysia, kuala lumpur"" AND index = ""f8""" Show the names of all buildings that have an institution.,SELECT name FROM building WHERE building_id IN ( SELECT building_id FROM institution ) Name who wrote the episode directed by arthur albert,"SELECT written_by FROM table_17356042_1 WHERE directed_by = ""Arthur Albert""" What was the score on october 23?,"SELECT score FROM table_name_33 WHERE date = ""october 23""" How many locations are listed in the database?,SELECT count(*) FROM Ref_locations How many total number of attendance were there when the game was held in Anaheim Stadium?,"SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = ""Anaheim Stadium""" "Name the person, award, organization, result and credited status of the assistant director in S20-E13.","SELECT T1.person, T1.award, T1.organization, T1.result, T2.credited FROM Award AS T1 INNER JOIN Credit AS T2 ON T2.episode_id = T1.episode_id WHERE T2.episode_id = 'S20-E13' AND T2.role = 'assistant director';" What is the number of neutral comments from all the weather apps?,SELECT COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Weather' AND T2.Sentiment = 'Neutral' How many male patients are diagnosed with hypertension as compared to female patients?,"SELECT COUNT(DISTINCT CASE WHEN T2.gender = 'M' THEN T2.patient END) AS Male , COUNT(DISTINCT CASE WHEN T2.gender = 'F' THEN T2.patient END) AS Female FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Hypertension'" How many tourists visited the country that had 2.5 million tourists in 2011?,"SELECT international_tourist_arrivals__2012_ FROM table_name_38 WHERE international_tourist_arrivals__2011_ = ""2.5 million""" "What is the average base price of rooms, for each bed type?","SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;" Which team has 7757 as the average?,SELECT team FROM table_21824695_8 WHERE average = 7757 Which match did FCR 2001 Duisburg participate as the opponent?,"SELECT SUM(match) FROM table_name_39 WHERE opponent = ""fcr 2001 duisburg""" What is the name of the episode written by Michael Price?,"SELECT title FROM table_2701851_2 WHERE written_by = ""Michael Price""" On what date do others have 5% with an SZDSZ of 5%?,"SELECT date FROM table_name_14 WHERE others = ""5%"" AND szdsz = ""5%""" What is the fewest number of points associated with more than 8 games?,SELECT MIN(points) FROM table_name_95 WHERE games > 8 Which book by Hirohiko Araki was published on 6/6/2006?,SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Hirohiko Araki' AND T1.publication_date = '2006-06-06' WHAT IS THE STUDIO WITH THE TITLE MASK?,"SELECT studio FROM table_name_41 WHERE title = ""mask""" "What is Date, when Round is ""2""?",SELECT date FROM table_name_38 WHERE round = 2 "Name the melbourne with perth, adelaide and auckland of no with sydney of yes","SELECT melbourne FROM table_name_38 WHERE perth = ""no"" AND adelaide = ""no"" AND auckland = ""no"" AND sydney = ""yes""" "For the 2001 rebounds leader in the league, when was his birthday?",SELECT birthDate FROM players WHERE playerID = ( SELECT playerID FROM players_teams WHERE year = 2001 GROUP BY playerID ORDER BY SUM(rebounds + dRebounds) DESC LIMIT 1 ) What are the id of all the objects belonging to the transportation class?,"SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS IN ('bus', 'train', 'aeroplane', 'car', 'etc')" What is the height in meters for a building in Frankfurt that is 850 feet tall?,"SELECT height__m_ FROM table_name_66 WHERE city = ""frankfurt"" AND height__ft_ = 850" In which district is Robert W. Edgar the incumbent?,"SELECT district FROM table_1341598_39 WHERE incumbent = ""Robert W. Edgar""" Give me the average prices of wines that are produced by appellations in Sonoma County.,"SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" How many different products are produced in each headquarter city?,"SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter" Give the building that the instructor who teaches the greatest number of courses lives in.,SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1 "If the opponent was @ Boston Bruins, what was the Location/Attendance?","SELECT location_attendance FROM table_27537870_6 WHERE opponent = ""@ Boston Bruins""" Who was the builder of the ship INS Rana?,"SELECT builder FROM table_name_69 WHERE name = ""ins rana""" When 43.048° n is the latitude what is the magnitude?,"SELECT magnitude FROM table_24192190_1 WHERE latitude = ""43.048° N""" "What is Date, when Points is 13, and when Location is RBC Center?","SELECT date FROM table_name_58 WHERE points = 13 AND location = ""rbc center""" What is the first and last name of the faculty participating in the most activities?,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1" display job title and average salary of employees.,"SELECT job_title, AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title" "What is the description of the product named ""Chocolate""?","SELECT product_description FROM products WHERE product_name = ""Chocolate""" What was the highest season number?,SELECT MAX(season__number) FROM table_19632728_1 "Who is performer 4 on episode 3, where Jim Sweeney was performer 1?","SELECT performer_4 FROM table_name_86 WHERE performer_1 = ""jim sweeney"" AND episode = 3" "What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?",SELECT MAX(total_foreign_born__1000_) FROM table_name_53 WHERE born_in_a_non_eu_state__1000_ = 685 AND total_population__1000_ > 10 OFFSET 666 Show the names of all the clients with no booking.,SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID What projects are detailed as 'omnis'?,SELECT * FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' Who is in the high points in the @ l.a. clippers team?,"SELECT high_points FROM table_27734286_1 WHERE team = ""@ L.A. Clippers""" how about the total number of different carriers?,SELECT count ( distinct carrier ) from phone List down any 5 titles in the history genre.,SELECT Title FROM works WHERE GenreType = 'History' LIMIT 5 "Out of all the incidents of domestic violence reported at the ward represented by alderman Walter Burnett Jr., how many were arrested?",SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Walter' AND T1.alderman_last_name = 'Burnett' AND alderman_name_suffix = 'Jr.' AND T2.domestic = 'TRUE' Which country is Wellington located in?,"SELECT country FROM table_name_48 WHERE city = ""wellington""" What is the height of the mountain climbined by the climbing who had the most points?,SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1 For mid-hill zone what is the altitude?,"SELECT mid_hill_zone FROM table_10638523_1 WHERE particulars_and_characteristics = ""Altitude""" What are the distinct states and create time of all votes?,"SELECT DISTINCT state , created FROM votes" What's the latest episode in a season where the U.S. viewers totaled 14.37 million?,"SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = ""14.37""" Who was the 2nd member of the parliament that was assembled on 3 november 1529?,"SELECT 2 AS nd_member FROM table_name_19 WHERE assembled = ""3 november 1529""" What are the names of body builders whose total score is higher than 300?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300 What is the title of the episode with the highest number of keywords?,SELECT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id GROUP BY T1.episode_id ORDER BY COUNT(T2.keyword) DESC LIMIT 1 "Jean Alesi, drives the Acer 01A engine for which team?","SELECT team FROM table_name_68 WHERE driver = ""jean alesi"" AND engine_† = ""acer 01a""" "When there was a bye in the round of 32, what was the result in the round of 16?","SELECT semifinals FROM table_1745820_5 WHERE round_of_32 = ""Bye""" list the forename of all races,SELECT name FROM races Please list all business IDs in Mesa city that review stars of over 3.,SELECT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Mesa' AND T2.review_stars > 3 GROUP BY T1.business_id What is the name of the episode that William M. Finkelstein wrote?,"SELECT title FROM table_25604014_8 WHERE written_by = ""William M. Finkelstein""" List the branch name and city without any registered members.,"SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)" What course id were offered in that semester?,SELECT distinct id FROM takes WHERE semester = 'Spring' AND YEAR = 2004 "What's the score for $22,500?","SELECT score FROM table_name_62 WHERE money___$__ = ""22,500""" What is the most distinct rated movie with a running time of 0?,SELECT DISTINCT T1.movieid FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.runningtime = 0 AND T2.rating = ( SELECT MAX(rating) FROM u2base ) Which model has the most version(make) of cars?,SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1; "Find all the product whose name contains the word ""Scanner"".","SELECT product FROM product WHERE product LIKE ""%Scanner%""" What bit depth has 4:1:1 as the color sampling?,"SELECT SUM(bit_depth) FROM table_name_38 WHERE color_sampling = ""4:1:1""" How many characters are there in Titus Andronicus?,SELECT COUNT(DISTINCT T3.character_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T1.Title = 'Titus Andronicus' During the Mid-American Conference who is listed as the tournament winner?,"SELECT tournament_winner FROM table_28365816_2 WHERE conference = ""Mid-American conference""" What is the Callsign with an Area of tamworth and frequency of 0 88.9?,"SELECT callsign FROM table_name_8 WHERE area_served = ""tamworth"" AND frequency = ""0 88.9""" find the names of loser and winner who played in the match with greatest number of minutes.,"SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1" What is the product with the highest height ? Give me the catalog entry name.,SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 "What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959?","SELECT class FROM table_name_72 WHERE manufacturer = ""eastleigh works"" AND year_made = ""1914"" AND year_s__withdrawn = ""1959""" What is the debut album for the artist with the winning song kemenangan hati?,"SELECT debut_album FROM table_1646960_3 WHERE winning_song = ""Kemenangan Hati""" Street Address of 980 n. michigan avenue is what name?,"SELECT name FROM table_name_46 WHERE street_address = ""980 n. michigan avenue""" What percentage of Slovenes lived in the village of Roach in 1951?,"SELECT percent_of_slovenes_1951 FROM table_name_31 WHERE village__german_ = ""roach""" Name of the highest Pick is also a Round greater than 5 and Player as Tom Ivey?,"SELECT MAX(pick) FROM table_name_9 WHERE round > 5 AND player = ""tom ivey""" where is the location of the conference? | What conference? | Do you know any name of the pilot that provides cargo?,SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' Provide the full name of the customers who have ordered the book The Sorrows of Young Werther.,"SELECT T4.first_name, T4.last_name FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.title = 'The Sorrows of Young Werther'" Can you list all other related information for Sigrid Schmeler?,"SELECT * FROM Customers where first_name = ""Sigrid"" and last_name = ""Schmeler""" Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.,"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name" WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0?,SELECT COUNT(total) FROM table_name_80 WHERE ward < 0 What is the crowd size when Geelong is the away team?,"SELECT crowd FROM table_name_57 WHERE away_team = ""geelong""" Show the names of people aged either 35 or 36.,SELECT Name FROM people WHERE Age = 35 OR Age = 36 What college has a student who successfully made the team in the role of a goalie?,SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie' What's the record of the game that Leandro Barbosa (32) had the high points?,"SELECT record FROM table_name_12 WHERE high_points = ""leandro barbosa (32)""" What instrument is used the most?,SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1 what is the city of the station from which the shortest trip started? | trip cannot be described by distance | what is the latitude of San Jose Diridon Caltrain Station?,SELECT distinct T1.lat FROM station AS T1 JOIN trip AS T2 where T1.name = 'San Jose Diridon Caltrain Station' How many teachers does the student named MADLOCK RAY have?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""MADLOCK"" AND T1.lastname = ""RAY""" Write down the email addresses of active customers who rented between 5/25/2005 at 7:37:47 PM and 5/26/2005 at 10:06:49 AM.,SELECT T2.email FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.rental_date BETWEEN '2005-5-25 07:37:47' AND '2005-5-26 10:06:49' AND T2.active = 1 Name the number of wins for michele rugolo category:articles with hcards,"SELECT COUNT(wins) FROM table_19001175_1 WHERE name = ""Michele Rugolo Category:Articles with hCards""" Which sign has a red border and a warning sign?,"SELECT text_symbol FROM table_name_68 WHERE border = ""red"" AND type_of_sign = ""warning""" What was the home team score at Melbourne's away match?,"SELECT home_team AS score FROM table_name_77 WHERE away_team = ""melbourne""" Which company was started by the entrepreneur with the greatest height?,SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1 Which ground is match 4 held on?,SELECT ground FROM table_name_49 WHERE match = 4 What is the percentage of all right-handed batting players among all the other players?,SELECT CAST(SUM(CASE WHEN T1.Batting_hand = 'Right-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Player_Id) FROM Batting_Style AS T1 INNER JOIN Player AS T2 ON T2.Batting_hand = T1.Batting_Id What is the traffic direction of 70th street?,"SELECT traffic_direction FROM table_name_88 WHERE street = ""70th street""" What are the genres of all the English-language foreign films having a runtime of two hours or less? List each one.,SELECT T2.genre FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.runningtime <= 2 AND T1.isEnglish = 'T' AND T1.country = 'other' When did alfonse d'amore compete?,"SELECT date FROM table_name_59 WHERE opponent = ""alfonse d'amore""" How many stores belong to the most windy station?,SELECT COUNT(store_nbr) FROM relation WHERE station_nbr = ( SELECT station_nbr FROM weather ORDER BY avgspeed DESC LIMIT 1 ) "What is the category of film titled ""BLADE POLISH""?",SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.title = 'BLADE POLISH' Name the result for cowboys points being 23,SELECT COUNT(result) FROM table_22815259_1 WHERE cowboys_points = 23 Name the date which has a home team of north melbourne,"SELECT date FROM table_name_3 WHERE home_team = ""north melbourne""" What is Zach age?,"SELECT age from person where name = ""Zach""" what's the record with date being january 13,"SELECT record FROM table_13480122_5 WHERE date = ""January 13""" "At least how many cups of graham cracker crumbs does the recipe ""Raspberry Chiffon Pie"" need?",SELECT T2.min_qty FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Raspberry Chiffon Pie' AND T3.name = 'graham cracker crumbs' What is the pole position for the ferrari at the austrian grand prix?,"SELECT pole_position FROM table_1132588_3 WHERE constructor = ""Ferrari"" AND grand_prix = ""Austrian grand_prix""" Show me other details of the project staff involved in the most number of project outcomes,SELECT T2.other_details FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count ( * ) DESC LIMIT 1 "Among the games published by 10TACLE Studios, how many of them are puzzles?",SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' AND T3.publisher_name = '10TACLE Studios' What is average and maximum salary of all employees.,"SELECT avg(salary) , max(salary) FROM Employee" Which track in Austria has Bobsleigh-skeleton curves with a grade of 14%?,"SELECT track FROM table_name_82 WHERE bobsleigh_skeleton_curves = ""14"" AND country = ""austria""" What are the dates of enrollment and completion for each of those students? Please list it in the table.,"SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT ( * ) < = 2" What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Lysanne"" AND T4.staff_last_name = ""Turcotte"" )" "Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?","SELECT third_member FROM table_name_2 WHERE second_party = ""liberal"" AND third_party = ""conservative"" AND second_member = ""humphrey mildmay""" What was the enrollment of the school founded in 1846?,SELECT enrollment FROM table_16381914_1 WHERE founded = 1846 What was the time of sportfight 10?,"SELECT time FROM table_name_45 WHERE event = ""sportfight 10""" What is the order status of the order for customer with ID 11,SELECT order_status FROM orders where customer_id = 11 How many Haileybury Hockey Club goalies became a hall of famer?,SELECT COUNT(DISTINCT T1.playerID) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T1.tmID = T3.tmID AND T1.year = T3.year WHERE T3.name = 'Haileybury Hockey Club' AND T2.hofID IS NOT NULL What is the number of games sold in Europe for game platform ID 26?,SELECT T2.num_sales * 100000 AS nums_eur FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.game_platform_id = 26 AND T1.region_name = 'Europe' "What is the vocal type of the band mate whose first name is ""Marianne"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Marianne"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" "WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7?","SELECT SUM(pick) FROM table_name_82 WHERE name = ""david terrell"" AND round < 7" "How many genes are in species burkholderia pseudomallei with 4,126,292 base pairs?","SELECT genes FROM table_name_13 WHERE species = ""burkholderia pseudomallei"" AND base_pairs = ""4,126,292""" "What are the enrollments of schools whose denomination is not ""Catholic""?","SELECT Enrollment FROM school WHERE Denomination <> ""Catholic""" Which geographic area does the city with the second lowest tax rate belongs to? Indicate the name of the state or province as well.,"SELECT T3.'Group', T2.Name FROM SalesTaxRate AS T1 INNER JOIN StateProvince AS T2 ON T1.StateProvinceID = T2.StateProvinceID INNER JOIN SalesTerritory AS T3 ON T2.TerritoryID = T3.TerritoryID ORDER BY T1.TaxRate LIMIT 1, 1" What is the party that has the largest number of representatives?,"SELECT Party , COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1" Where did the Vitória de Setúbal club place in the 2006-2007 season?,"SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = ""vitória de setúbal""" Show total hours per week and number of games played for student David Shieber.,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = ""David"" AND T2.Lname = ""Shieber""" What is the population in стари жедник (croatian: stari žednik)?,"SELECT population__2011_ FROM table_2562572_26 WHERE cyrillic_name_other_names = ""Стари Жедник (Croatian: Stari Žednik)""" Find number of products which Sony does not make.,SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony') Which cities are in European countries where English is not the official language?,SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English') What is Loris Capirossi's time?,"SELECT time FROM table_name_30 WHERE rider = ""loris capirossi""" How many drivers were there for Samax Motorsport?,"SELECT COUNT(driver) FROM table_17319931_1 WHERE team = ""SAMAX Motorsport""" "What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?","SELECT opponent FROM table_name_13 WHERE score = ""3 - 2"" AND decision = ""raycroft"" AND record = ""25-29-1""" which CFL team has a player called Peter Hogarth?,"SELECT cfl_team FROM table_name_23 WHERE player = ""peter hogarth""" What is the name of the room with the largest max occupancy?,SELECT roomName FROM Rooms order by maxOccupancy desc limit 1 List the id of students who attended statistics courses in the order of attendance date.,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.date_of_attendance" On what date is Isabel cueto the opponent in the final?,"SELECT date FROM table_name_78 WHERE opponent_in_the_final = ""isabel cueto""" "During the loss on march 26, 2005, what was the venue where the match was played?","SELECT venue FROM table_name_10 WHERE result = ""loss"" AND date = ""march 26, 2005""" "What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?","SELECT date FROM table_name_70 WHERE venue = ""hrazdan stadium, yerevan, armenia""" Which musician has the most number of actors who have appeared in the musicals? | Did you want the name of the musical? | Yes,SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID order by count ( * ) desc limit 1 What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has?,"SELECT MIN(laps) FROM table_name_62 WHERE driver = ""christian vietoris"" AND grid < 6" What is the lowest Pick # with michael grabner and less than 20 Reg GP?,"SELECT MIN(pick__number) FROM table_name_90 WHERE player = ""michael grabner"" AND reg_gp < 20" How many draft copies does the document with id 2 have?,SELECT COUNT(*) FROM Draft_Copies WHERE document_id = 2 Which Hereditary peers have a Total of 1?,SELECT hereditary_peers FROM table_name_15 WHERE total = 1 What race did Glenn Seton win on the Sandown International Raceway circuit?,"SELECT race_title FROM table_name_81 WHERE winner = ""glenn seton"" AND circuit = ""sandown international raceway""" What is South Africa's to par?,"SELECT to_par FROM table_name_35 WHERE country = ""south africa""" What is Steven King Employee ID number,SELECT EMPLOYEE_ID from employees where first_name = 'Steven' and last_name = 'King' How many faculty lines are there in the university that conferred the most number of degrees in year 2002?,SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1 What unit is in Argentina?,"SELECT unit FROM table_name_94 WHERE location = ""argentina""" Calculate the percentage of female students.,"SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name" What are the opening year and staff number of the museum named Plaza Museum?,"SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'" Who is the sales representative of the customer who has made the highest payment? Include the full name of employee and his/her supervisor.,"SELECT T4.LastName, T4.FirstName, T4.ReportsTo , T1.Quantity * T1.UnitPrice * (1 - T1.Discount) AS payment FROM `Order Details` AS T1 INNER JOIN Orders AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID INNER JOIN Employees AS T4 ON T2.EmployeeID = T4.EmployeeID ORDER BY payment DESC LIMIT 1" "Is the donor of the project 'Calculate, Financial Security For Tomorrow Starts Today! ' a teacher?","SELECT T2.is_teacher_acct FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Calculate, Financial Security For Tomorrow Starts Today! '" When 27585 is the attendance what are the results of the games?,SELECT result_games FROM table_21436373_7 WHERE attendance = 27585 "What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?","SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = ""dorado"" AND declination___j2000__ = ""°12′43″""" Name all the candidates vying for Albert Bustamante's seat.,"SELECT candidates FROM table_1341586_44 WHERE incumbent = ""Albert Bustamante""" What are the start date and end date of the booking that has booked the product named 'Book collection A'?,"SELECT T3.booking_start_date , T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id = T2.product_id JOIN bookings AS T3 ON T2.booking_id = T3.booking_id WHERE T1.product_name = 'Book collection A'" Can you tell me the highest Capacity that has the Team of torpedo?,"SELECT MAX(capacity) FROM table_name_66 WHERE team = ""torpedo""" "What rank has a gross of $35,976,000?","SELECT rank FROM table_name_44 WHERE gross = ""$35,976,000""" What are the life spans of representatives from New York state or Indiana state?,"SELECT Lifespan FROM representative WHERE State = ""New York"" OR State = ""Indiana""" What is the distinct service type that are provided by the organization which has detail 'Denesik and Sons Party'?,SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' When 2005 is the season how many drivers are there?,"SELECT COUNT(driver) FROM table_1771753_3 WHERE season = ""2005""" Find the cities corresponding to employees who help customers with the postal code 70174.,"SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = ""70174""" can you show me useracct name? | Would you like a list of the names of the users? | yes,SELECT name from useracct What is the score in game 3?,SELECT score FROM table_23286158_11 WHERE game = 3 Name the number of episodes for alan nourse,"SELECT COUNT(episode) FROM table_15739098_1 WHERE story = ""Alan Nourse""" Calculate the percentage of the total number of current female legislators and past female legislators. State which one has the highest value.,SELECT CAST(COUNT(CASE WHEN current.gender_bio = 'F' THEN current.bioguide_id ELSE NULL END) AS REAL) * 100 / ( SELECT COUNT(CASE WHEN historical.gender_bio = 'F' THEN historical.bioguide_id ELSE NULL END) FROM historical ) FROM current What is the college/junior/club team (league) of left wing Ondrej Roman?,"SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = ""left wing"" AND player = ""ondrej roman""" "How many trains are there for the route via trivandrum, ernakulam, newdelhi?","SELECT COUNT(train_number) FROM table_29770377_1 WHERE route_via = ""Trivandrum, Ernakulam, NewDelhi""" Which Yelp_Business in Arizona gets the most number of reviews?,SELECT T1.user_id FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.state LIKE 'AZ' GROUP BY T1.user_id ORDER BY COUNT(T1.user_id) DESC LIMIT 1 "What is 2007, when Tournament is ""Madrid""?","SELECT 2007 FROM table_name_27 WHERE tournament = ""madrid""" "What is the total number of Game, when Attendance is ""18,568""?",SELECT COUNT(game) FROM table_name_7 WHERE attendance = 18 OFFSET 568 Give the full name and phone of the customer who has the account name 162.,"SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""162""" "What is Date, when Opponent is ""Chicago Stags""?","SELECT date FROM table_name_39 WHERE opponent = ""chicago stags""" When is the best time to purchase Bitcoin?,SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Bitcoin' ORDER BY T2.low LIMIT 1 What is the name and country for the artist with most number of exhibitions?,"SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1" "What is the provincial capital of the province with a population of less than 80,000 that has the highest average population per area?",SELECT CapProv FROM province WHERE Population < 80000 ORDER BY Population / Area DESC LIMIT 1 Which Away team did West Ham United play against?,"SELECT away_team FROM table_name_95 WHERE home_team = ""west ham united""" What is the average Apps of indonesia with Goals smaller than 1000?,"SELECT AVG(apps) FROM table_name_64 WHERE country = ""indonesia"" AND goals < 1000" Find the names of the campus which has more faculties in 2002 than every campus in Orange county.,"SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = ""Orange"")" What is the prediction class between object class 'chain' and 'label' in image 2360078?,SELECT DISTINCT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T2.PRED_CLASS_ID = T1.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T1.IMG_ID = T3.IMG_ID AND T1.OBJ1_SAMPLE_ID = T3.OBJ_SAMPLE_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.IMG_ID = 2360078 AND T1.OBJ1_SAMPLE_ID = 15 OR T1.OBJ2_SAMPLE_ID = 18 What records are hit where the opponent is Aylesbury United?,"SELECT record FROM table_1233808_2 WHERE opponent = ""Aylesbury United""" What date did a game have a time of 3:44?,"SELECT date FROM table_name_55 WHERE time = ""3:44""" "How many countries does each continent have? List the continent id, continent name and the number of countries.","SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId" Show the names of all the donors except those whose donation amount less than 9.,SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9 Wich rank is given to the Canton of Schaffhausen?,"SELECT SUM(rank) FROM table_name_4 WHERE canton = ""schaffhausen""" What is the district of Zaanstad?,SELECT District FROM City WHERE name = 'Zaanstad' What are the names of products with 'white' as their color description?,"SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""white""" How many apartment type codes are there?,SELECT count ( DISTINCT apt_type_code ) FROM Apartments "Of all the shipments made by United Package throughout the year 1996, what percentage correspond to the month of September?",SELECT CAST(COUNT(CASE WHEN T1.ShippedDate LIKE '1996-09%' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.ShipVia) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package' AND T1.ShippedDate LIKE '1996%' "for the shows featuring beet sugar, what was on before that","SELECT segment_b FROM table_15187735_17 WHERE segment_c = ""Beet Sugar""" What is the lowest interview of the contestant with an evening gown bigger than 9.343?,SELECT MIN(interview) FROM table_name_4 WHERE evening_gown > 9.343 "What is To par, when Country is ""United States"", and when Player is ""Jay Haas""?","SELECT to_par FROM table_name_85 WHERE country = ""united states"" AND player = ""jay haas""" Who was the opponent at Lindsey Nelson Stadium?,"SELECT opponent FROM table_name_73 WHERE site_stadium = ""lindsey nelson stadium""" list the branch for registered members? | did you mean the ids of branches with registered members? | yes,SELECT branch_id FROM membership_register_branch "In which lake flows the river that is, in turn, the mouth of the Manicouagan River?",SELECT NAME FROM lake WHERE river = ( SELECT river FROM river WHERE NAME = 'Manicouagan' ) "Which Score has a Visitor of montreal canadiens, and Points of 5?","SELECT score FROM table_name_93 WHERE visitor = ""montreal canadiens"" AND points = 5" What is the result when you play at home against Pride,"SELECT result FROM table_name_73 WHERE home_away = ""home"" AND opponent = ""pride""" How many silver medals were won when there were 4 gold and 22 in total?,SELECT MIN(silver) FROM table_name_26 WHERE gold = 4 AND total = 22 Find the name of the customer who made the order of the largest amount of goods.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items) List out the root beers bought by Tim Ocel and Dawn Childress.,SELECT T2.RootBeerID FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T2.CustomerID = T1.CustomerID WHERE (T1.First = 'Tim' AND T1.Last = 'Ocel') OR (T1.First = 'Dawn' AND T1.Last = 'Childress') What are the movie titles and average rating of the movies with the lowest average rating?,"SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1" Hello! Can you please show me a list of all of the product names and their associated product IDs?,"SELECT t1.product_id,t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code" Which of those cmi cross reference ids are related to parking taxes?,SELECT T1.cmi_cross_ref_id FROM cmi_cross_references as T1 join Parking_Fines as T2 on T1.cmi_cross_ref_id = T2.cmi_cross_ref_id what is the amount of silver when gold is 2 and the rank is more than 1?,SELECT AVG(silver) FROM table_name_6 WHERE gold = 2 AND rank > 1 Give the name of the youngest player.,SELECT Player_Name FROM Player ORDER BY DOB DESC LIMIT 1 How much is the total rental payment for the first 10 rentals?,SELECT SUM(amount) FROM payment WHERE rental_id BETWEEN 1 AND 10 "Among the employees, give me the full names of those who have less than 4 territories.","SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.EmployeeID < 4" Show all director names who have a movie in both year 1999 and 2000.,SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999 Name the coin that has the highest market capitalization for all transactions in 2018.,"SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date LIKE '2018%' AND T2.market_cap = ( SELECT MAX(market_cap) FROM historical WHERE STRFTIME('%Y', date) = '2018' )" What year had a total of 2 and LA matches of 0?,"SELECT year FROM table_name_35 WHERE total = ""2"" AND la_matches = ""0""" To which community area does the neighborhood Albany Park belong?,SELECT T2.community_area_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.neighborhood_name = 'Albany Park' How many names are listed for the player with 50 points?,SELECT COUNT(name) FROM table_25401874_1 WHERE points = 50 Which type of policy is most frequently used? Give me the policy type code.,SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1 What is the Score of the Player from South Africa?,"SELECT score FROM table_name_64 WHERE country = ""south africa""" "How many victors where there in the War of 1730–1736 , first stage?","SELECT COUNT(victor) FROM table_24706337_1 WHERE name_of_the_war = ""War of 1730–1736 , first stage""" "What are the ids, full names, and phones of each customer?","SELECT customer_id , customer_first_name , customer_last_name , customer_phone FROM Customers" Name the area for District of córdoba,"SELECT area_province FROM table_name_64 WHERE district = ""córdoba""" What is the name of the country whose citizens have the lowest purchasing power?,SELECT T2.Name FROM economy AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Inflation DESC LIMIT 1 what is the original channel when the year is before 2006 and the note is supporting?,"SELECT original_channel FROM table_name_67 WHERE year < 2006 AND note = ""supporting""" How many years did the school have a mathetmatics score of 98.02?,"SELECT COUNT(science) FROM table_2534578_1 WHERE mathematics = ""98.02""" what is BP's market value?,"SELECT market_value FROM company WHERE Company = ""BP""" Who are all the candidates when Sam Rayburn was incumbent?,"SELECT candidates FROM table_1342292_42 WHERE incumbent = ""Sam Rayburn""" Show the names of singers and the total sales of their songs.,"SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name" Which of these 3 mountains is the tallest?,SELECT Name FROM mountain WHERE Height > 5000 and Prominence > 1000 order by height desc limit 1 "What is Director, when Primary Language(s) is ""Azerbaijani"", and when Original Title is ""Buta""?","SELECT director FROM table_name_90 WHERE primary_language_s_ = ""azerbaijani"" AND original_title = ""buta""" How many low income countries are there in South Asia?,SELECT COUNT(CountryCode) FROM Country WHERE Region = 'South Asia' AND IncomeGroup = 'Low income' What was the sum for a top-10 U.S. open that had a top-25 bigger than 0?,"SELECT SUM(top_10) FROM table_name_83 WHERE tournament = ""u.s. open"" AND top_25 > 0" "What is the third entry in the row with a first entry of ""club""?","SELECT won FROM table_12792876_2 WHERE ""club"" = ""club""" What is the Attendance of the game against Jacksonville Jaguars?,"SELECT attendance FROM table_name_53 WHERE opponent = ""jacksonville jaguars""" How many universities had above 30% of international students in 2013?,SELECT COUNT(*) FROM university_year WHERE pct_international_students > 30 AND year = 2013 What was the second qualification time for Dale Coyne Racing with a best of 1:03.757?,"SELECT qual_2 FROM table_name_39 WHERE team = ""dale coyne racing"" AND best = ""1:03.757""" List all free sports Apps and their translated review.,"SELECT T1.App, T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Type = 'Free' AND T1.Category = 'SPORTS'" What is the average rating for the podcast that is most reviewed?,SELECT AVG(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id GROUP BY T1.podcast_id ORDER BY COUNT(T2.content) DESC LIMIT 1 How many Volume Numbers have the title of Darkness Falls?,"SELECT SUM(vol__number) FROM table_name_64 WHERE title = ""darkness falls""" "Who was the previous champion of the title won on July 7, 2010?","SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = ""july 7, 2010""" What are the names of projects that have not been assigned?,SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo) Can you give me the name of the counties with population between 50000 and 100000?,SELECT County_name FROM county WHERE Population < 100000 AND Population > 50000 What is the total units of products sold on the day with the highest max temperature in store no.3 in 2012?,SELECT SUM(units) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND T1.`date` LIKE '%2012%' GROUP BY T3.tmax ORDER BY T3.tmax DESC LIMIT 1 What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?,"SELECT AVG(gold) FROM table_name_90 WHERE total > 1 AND bronze < 10 AND nation = ""switzerland"" AND silver > 1" Does the S90i model have bluetooth?,"SELECT bluetooth FROM table_name_31 WHERE model = ""s90i""" Which event was Ye Shiwen in?,"SELECT event FROM table_name_23 WHERE name = ""ye shiwen""" How many male faculties live in NEB?,"SELECT COUNT ( * ) FROM FACULTY WHERE sex = ""M"" AND Building = ""NEB""" How many heads of the departments are older than 56 ?,SELECT count(*) FROM head WHERE age > 56 Return the issue dates of volumes by artists who are at most 23 years old?,SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23 "What is the average, maximum, and minimum for the number of hours spent training?","SELECT avg(HS) , max(HS) , min(HS) FROM Player" In what week was the Result L 15-13?,"SELECT AVG(week) FROM table_name_91 WHERE result = ""l 15-13""" On how many days with the max temperature over 90 did the sale of item no.5 in store no.3 exceed 100?,"SELECT SUM(CASE WHEN units > 100 THEN 1 ELSE 0 END) AS count FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.item_nbr = 5 AND tmax > 90" how many trips started from there?,"SELECT count ( * ) FROM trip WHERE start_station_name = ( SELECT start_station_name FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT ( * ) DESC LIMIT 1 ) " "Provide the zip code, city, and congress representative's full names of the area which has highest population in 2020.","SELECT T1.zip_code, T1.city, T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id GROUP BY T2.district ORDER BY T1.population_2020 DESC LIMIT 1" "For all phone numbers, what percentage of the total is cell phone?",SELECT CAST(SUM(CASE WHEN T2.Name = 'Cell' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Name) FROM PersonPhone AS T1 INNER JOIN PhoneNumberType AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID "List the name of all awards along with the award category, nominated by Marc Wilmore.","SELECT award_id, award_category FROM Award WHERE person = 'Marc Wilmore';" "How many people tuned in to the finale on May 16, 2007?","SELECT COUNT(viewers__in_millions_) FROM table_name_27 WHERE finale = ""may 16, 2007""" HOW MANY ON THE TABLE | did you mean HOW MANY player ON THE TABLE ? | YES EXACTLY,SELECT count ( distinct player_id ) from player What is the lowest rank has 7:09.06 as the time?,"SELECT MIN(rank) FROM table_name_81 WHERE time = ""7:09.06""" Who lost when the mariners played on September 12?,"SELECT loss FROM table_name_37 WHERE opponent = ""mariners"" AND date = ""september 12""" What was the total number of votes in the 2005 elections?,"SELECT MIN(total_votes) FROM table_19698421_1 WHERE year = ""2005""" From which country is the player that won in 1998?,"SELECT country FROM table_name_78 WHERE year_s__won = ""1998""" what is the number of the episode in the season that had 7.19 millions of north american viewers? ,"SELECT season__number FROM table_27914606_1 WHERE us_viewers__millions_ = ""7.19""" Find the average grade point of student whose last name is Smith.,"SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = ""Smith""" What is the Venue of the 2002 World Cup Qualification?,"SELECT venue FROM table_name_48 WHERE competition = ""2002 world cup qualification""" Show each location and the number of cinemas there.,"SELECT LOCATION , count(*) FROM cinema GROUP BY LOCATION" What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?,SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16'; what is the name and position of the head whose department has least number of employees?,"SELECT T2.name , T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;" Show the country of appelations Alexander Valley?,SELECT county FROM APPELLATIONS WHERE appelation = 'Alexander Valley' What type of car has the v16 engine?,"SELECT type FROM table_name_40 WHERE engine = ""v16""" Which Record has a Location of madison square garden?,"SELECT record FROM table_name_8 WHERE location = ""madison square garden""" How many years have claudia beni as the artist?,"SELECT SUM(year) FROM table_name_3 WHERE artist = ""claudia beni""" What township is located at longitude -99.287270?,"SELECT township FROM table_18600760_9 WHERE longitude = ""-99.287270""" "Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.","SELECT T1.account_id , T1.date_account_opened , T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'" What is the difference in the average number of films rented each day in Australia and Canada?,"SELECT AVG(IIF(T4.country = 'Australia', 1, 0)) - AVG(IIF(T4.country = 'Canada', 1, 0)) AS diff FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id INNER JOIN city AS T3 ON T2.city_id = T3.city_id INNER JOIN country AS T4 ON T3.country_id = T4.country_id" What is the transfer fee of the move from Port Vale?,"SELECT transfer_fee FROM table_name_34 WHERE moving_from = ""port vale""" What about the most common budget type code?,SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count ( * ) DESC LIMIT 1 "Which director had a worldwide gross of $30,471?","SELECT director FROM table_name_97 WHERE gross__worldwide_ = ""$30,471""" Name the Event of sudesh peiris?,"SELECT event FROM table_name_93 WHERE name = ""sudesh peiris""" What is the average Grid for the Rider Toni Elias with Laps more than 30?,"SELECT AVG(grid) FROM table_name_62 WHERE rider = ""toni elias"" AND laps > 30" What is the highest attendance for the game after week 1 against the New York Jets?,"SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = ""new york jets""" "What are the census rankings of cities that do not have the status ""Village""?","SELECT Census_Ranking FROM city WHERE Status != ""Village""" How many ends were lost by the country whose points for (PF) was 87?,SELECT MAX(Ends) AS lost FROM table_1644857_2 WHERE pf = 87 Find the name of the train whose route runs through greatest number of stations.,SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY count(*) DESC LIMIT 1 Customer id of order id 1,SELECT Customer_ID FROM Customer_Orders where Order_ID = 1 how many new managers replaced manager(s) who resigned? ,"SELECT COUNT(incoming_manager) FROM table_28164986_4 WHERE manner_of_departure = ""Resigned""" "For each payment method, how many payments were made?","SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;" What is the geographic location of Aarhus city? Please provide the answer with the coordinates of the location.,"SELECT Longitude, Latitude FROM city WHERE Name = 'Aarhus'" Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?,"SELECT stage FROM table_name_57 WHERE points_classification = ""francesco moser"" AND general_classification = ""bernard hinault""" What is the product complained by Alexander Bronx Lewis?,SELECT DISTINCT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Alexander' AND T1.middle = 'Bronx' AND T1.last = 'Lewis' What seasons had 288 games and more than 100 goals?,SELECT seasons FROM table_name_88 WHERE goals > 100 AND games = 288 "Show the guest first names, start dates, and end dates of all the apartment bookings.","SELECT T2.guest_first_name , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id" Show the name and the nationality of the oldest host.,"SELECT Name , Nationality FROM HOST ORDER BY Age DESC LIMIT 1" Who's the Republican ticket with a Socialist ticket of edna mitchell blue?,"SELECT republican_ticket FROM table_name_46 WHERE socialist_ticket = ""edna mitchell blue""" How many employees first names contain the letter M?,SELECT count ( * ) FROM employees WHERE first_name LIKE '%M%' Who is the opponent at Bishop Kearney Field?,"SELECT opponent FROM table_name_19 WHERE field = ""bishop kearney field""" Show me the region of the club BK Slide?,select Region from club where name = 'BK Slide' What is the top grid that roger williamson lapped less than 7?,"SELECT MAX(grid) FROM table_name_73 WHERE driver = ""roger williamson"" AND laps < 7" What is the original title of Madame Rosa?,"SELECT original_title FROM table_name_83 WHERE english_title = ""madame rosa""" List all the Jewish current legislators that had served in Florida.,"SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.religion_bio = 'Jewish' AND T2.state = 'FL' GROUP BY T1.first_name, T1.last_name" What is the smallest number of poles when the fastest laps are less than 0?,SELECT MIN(poles) FROM table_name_52 WHERE fastest_laps < 0 The country of Laos is in what region?,"SELECT region FROM table_name_77 WHERE country = ""laos""" "Provide details of review from reviewer whose name begin with letter 'J'. State the product ID, rating and comments.","SELECT ProductID, Rating, Comments FROM ProductReview WHERE ReviewerName LIKE 'J%'" what is the elevation of Madang Airport?,SELECT elevation FROM airports where name = 'Madang Airport' What is the most popular file format?,SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 Find the program which most number of students are enrolled in. List both the id and the summary.,"SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1" What is the NCBI Accession Number (mRNA/Protein) for the mus musculus Species?,"SELECT ncbi_accession_number__mrna_protein_ FROM table_name_36 WHERE species = ""mus musculus""" List the state in the US with the most invoices.,"SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;" Which two countries have the border in length of 803 km? Give the full names of the countries.,"SELECT T1.Name, T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 WHERE T2.Length = 803" "Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?","SELECT viavoice_5_15_09 FROM table_name_96 WHERE csa_5_14_09 = ""5%"" AND tns_sofres_5_28_09 = ""4.5%""" Show all storm names except for those with at least two affected regions.,SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 Count different addresses of each school.,"SELECT count(DISTINCT dept_address) , school_code FROM department GROUP BY school_code" "What is the maximum salary of position ""Trainer""?",SELECT maxsalary FROM position WHERE positiontitle = 'Trainee' What are their names?,SELECT cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum ( T2.amount ) > 5000 In which championship was the partner Jie Zheng?,"SELECT championship FROM table_2516282_3 WHERE partner = ""Jie Zheng""" "How many points have @ new york islanders as the opponent, with a game greater than 35?","SELECT COUNT(points) FROM table_name_64 WHERE opponent = ""@ new york islanders"" AND game > 35" What's the school that played for the Grizzlie from 1995-1998?,"SELECT school_club_team FROM table_name_10 WHERE years_for_grizzlies = ""1995-1998""" "What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A?","SELECT total FROM table_name_91 WHERE coppa_italia = 0 AND champions_league = 1 AND serie_a < 2 AND name = ""mauro camoranesi""" Which Game has a November of 29?,SELECT SUM(game) FROM table_name_63 WHERE november = 29 Name thedistrict for 1994,SELECT district FROM table_1341472_34 WHERE first_elected = 1994 What is the batting style of the person who has a right arm medium pace bowling style and a birth date of 10 February 1910 (aged 29)?,"SELECT batting_style FROM table_name_75 WHERE bowling_style = ""right arm medium pace"" AND birth_date = ""10 february 1910 (aged 29)""" What was the report in the race where the winning team was Roush Fenway Racing? ,"SELECT report FROM table_2220432_1 WHERE team = ""Roush Fenway Racing""" Find the name of department has the highest amount of students?,SELECT dept_name FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 1 Which city is Townsend at 7th Station located and how many bikes could it hold?,"SELECT city, SUM(dock_count) FROM station WHERE name = 'Townsend at 7th'" Name the captain for emile heskey,"SELECT captain FROM table_1301373_7 WHERE international_marquee = ""Emile Heskey""" Show the invoice number and the number of transactions for each invoice.,"SELECT invoice_number , count(*) FROM Financial_transactions GROUP BY invoice_number" What is the production code for the episode written by J. H. Wyman & Jeff Pinkner?,"SELECT production_code FROM table_24649082_1 WHERE written_by = ""J. H. Wyman & Jeff Pinkner""" Which game had less than 270 rebounds and a rank lower than 5?,SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5 "Which Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?","SELECT mountain_range FROM table_name_82 WHERE region = ""haiti"" AND location = ""18.3601°n 71.9764°w""" How many dorms do not have a TV lounge?,SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge' What are the districts that belong to the country with the largest surface area?,SELECT T1.District FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = ( SELECT Name FROM Country ORDER BY SurfaceArea DESC LIMIT 1 ) Hmmm. And what was the elimination move used?,"SELECT Elimination_Move FROM Elimination WHERE Eliminated_By = ""Punk""" What country does Gary Koch play for?,"SELECT country FROM table_name_15 WHERE player = ""gary koch""" How many inspections did All Style Buffet Restaurant have?,SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.facility_type = 'Restaurant' AND T1.dba_name = 'All Style Buffet' "What proportion of rivers have a length of more than 3,000 miles? Please provide the name of a Russian river that is more than 3,000 miles long.",SELECT CAST(SUM(CASE WHEN T1.Length > 3000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Name) FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN country AS T3 ON T3.Code = T2.Country What is the average pick with 85 overall in a round lower than 3?,SELECT AVG(pick) FROM table_name_36 WHERE overall = 85 AND round < 3 What is the fastest lap with pole position of gilles villeneuve?,"SELECT fastest_lap FROM table_1140077_2 WHERE pole_position = ""Gilles Villeneuve""" "Which population areas have ""replaced by us 83"" listed in their remarks section?","SELECT population_area FROM table_11336756_6 WHERE remarks = ""Replaced by US 83""" which transactions were sales?,select transaction_id from Transactions where transaction_type_code = 'SALE' What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?,"SELECT cName , enr FROM College WHERE enr > 10000 AND state = ""LA""" "Playoffs of league champs, and a Record of 77-63 is in what league?","SELECT league FROM table_name_63 WHERE playoffs = ""league champs"" AND record = ""77-63""" How many movies were released by Disney between 2010 and 2016?,"SELECT COUNT(movie_title) FROM characters WHERE SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) BETWEEN '10' AND '16'" Find the city that hosted some events in the most recent year. What is the id of this city?,SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1 List first name and last name of customers that have more than 2 payments.,"SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2;" What is the ethernet ports of the u10 appliance?,"SELECT ethernet_ports FROM table_name_51 WHERE name = ""u10""" "What is the total occurrence of the biwords pairs with ""àbac"" as its first word?",SELECT COUNT(T2.w1st) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'àbac' What is the Authority for Kuranui Primary School that is located in the Area of Tirau?,"SELECT authority FROM table_name_82 WHERE area = ""tirau"" AND name = ""kuranui primary school""" The person who had 0 WSOP earnings had how man WSOP cashes?,"SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = ""0""" What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.,"SELECT T1.Allergy , T1.AllergyType 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"" ORDER BY T1.Allergy" Name the number of crews for light bombardment group,"SELECT number_of_crews FROM table_23508196_5 WHERE type_of_unit = ""Light bombardment group""" Who were the candidates in district Wisconsin 1?,"SELECT candidates FROM table_1341472_51 WHERE district = ""Wisconsin 1""" What is the sum of bronze when silver is greater than 3?,SELECT SUM(bronze) FROM table_name_45 WHERE silver > 3 "Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?",SELECT CAST(SUM(CASE WHEN T1.Gender = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.EmailPromotion = 1 Find the names of procedures which physician John Wen was trained in.,"SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" Find out 5 customers who most recently purchased something. List customers' first and last name.,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;" Show the ids for all the faculty members who have at least 2 students.,SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2 in which year costela01 obtained the best balance of games won as a coach?,SELECT year FROM coaches WHERE coachID = 'costela01' ORDER BY CAST(won AS REAL) / (won + lost) DESC LIMIT 1 what ist he country where the loan club is fulham?,"SELECT country FROM table_17596418_5 WHERE loan_club = ""Fulham""" Name the number of wheel arrangement when class is d14,"SELECT COUNT(wheel_arrangement) FROM table_15608800_2 WHERE class = ""D14""" "Find the number of vocal types used in song ""Le Pop""","SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What is the home team of the UEFA cup in the 2000-2001 season with a second round?,"SELECT home FROM table_name_93 WHERE competition = ""uefa cup"" AND season = ""2000-2001"" AND round = ""second round""" How many faculty members did the university that conferred the most degrees in 2002 have?,SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1 What is the average for the top five having a number of 42 cuts made.,SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42 "If the team is união de leiria, what is the date of appointment?","SELECT date_of_appointment FROM table_27133147_3 WHERE team = ""União de Leiria""" What is the title of the paper that has the smallest number of authors?,SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = ( SELECT min ( authorder ) FROM authorship ) Name the 2nd runner-up for yuming lai (賴銘偉),"SELECT 2 AS nd_runner_up FROM table_name_89 WHERE winner = ""yuming lai (賴銘偉)""" What is the bore of the boat howitzers with a 12-pdr heavy designation?,"SELECT bore FROM table_name_8 WHERE designation = ""12-pdr heavy""" What is the name of the country of the supplier with the highest debt?,SELECT T2.n_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey ORDER BY T1.s_suppkey DESC LIMIT 1 "What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?","SELECT COUNT(18 AS _49) FROM table_name_1 WHERE air_date = ""july 2, 2009"" AND viewers > 3.5" Who has the lowest laps with 29 points on 1 grid?,SELECT MIN(laps) FROM table_name_16 WHERE points = 29 AND grid < 1 Show me the names of students | Do you mean full names of all the students? | Yes,"SELECT fname , lname FROM student" What series episode has deli meats under segment B?,"SELECT series_ep FROM table_name_98 WHERE segment_b = ""deli meats""" What is the crowd total at mcg?,"SELECT COUNT(crowd) FROM table_name_45 WHERE venue = ""mcg""" can you show a list of customer phone?,SELECT customer_phone FROM customers What are the names of high schoolers who have 3 or more friends?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3 list the name of the colleges whose enrollment is lesser than 18000 sorted by the college's name?,SELECT cName FROM College WHERE enr > 18000 ORDER BY cName "The actor Dan Harris played in a 77 minute film with replacement cost of 9.99, what was the rating for that film?",SELECT T3.rating FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'DAN' AND T1.last_name = 'HARRIS' AND T3.length = 77 AND T3.replacement_cost = '9.99' "What is the content of the review under the title ""really interesting!"" and is created on 2018-04-24 at 12:05:16?",SELECT content FROM reviews WHERE title = 'really interesting!' AND created_at = '2018-04-24T12:05:16-07:00' What party was Tony P. Hall affiliated with?,"SELECT party FROM table_1341586_36 WHERE incumbent = ""Tony P. Hall""" What is the average Points when the engine was a climax straight-4 earlier than 1958?,"SELECT AVG(points) FROM table_name_4 WHERE engine = ""climax straight-4"" AND year < 1958" How many distinct students are enrolled in courses?,SELECT COUNT(DISTINCT student_id) FROM Student_Course_Enrolment On which date did the Winfield Triple Challenge series take place?,"SELECT date FROM table_name_61 WHERE series = ""winfield triple challenge""" List down all ratings of action film titles.,SELECT T1.description FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'action' "What is the lowest Pick #, when College is ""Louisville"", and when Round is less than 10?","SELECT MIN(pick__number) FROM table_name_6 WHERE college = ""louisville"" AND round < 10" "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?","SELECT job_title , max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000" Return the descriptions and names of the courses that have more than two students enrolled in.,"SELECT T1.course_description , T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2" Name the total number of points for chassis of bmw t269 (f2),"SELECT COUNT(points) FROM table_name_2 WHERE chassis = ""bmw t269 (f2)""" "For person id No.2054, is his/her vendor still active?",SELECT T1.ActiveFlag FROM Vendor AS T1 INNER JOIN BusinessEntityContact AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonID = 2054 Which repository has the longest amount of processed time of downloading? Indicate whether the solution paths in the repository can be implemented without needs of compilation.,"SELECT DISTINCT T1.id, T2.WasCompiled FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Repo )" Please list any 3 vendors that are not recommended by Adventure Works.,SELECT Name FROM Vendor WHERE PreferredVendorStatus = 0 LIMIT 3 Name the least series number with production code of 717 and season number less than 17,SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17 What gender is Quentin?,"SELECT gender FROM table_2933761_1 WHERE name = ""Quentin""" Find the description of the most popular role among the users that have logged in.,SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY count(*) DESC LIMIT 1) who was the opponent with round 17?,"SELECT opponent FROM table_name_64 WHERE round = ""17""" What is the duration of the oldest actor?,SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1 What about its organization ID?,SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations List the customer event id and the corresponding move in date and property id.,"SELECT customer_event_id , date_moved_in , property_id FROM customer_events" "What is the score for a report of AFC on April 4, 2008?","SELECT score FROM table_name_18 WHERE report = ""afc"" AND date = ""april 4, 2008""" How much is the part supply cost for the medium metallic grey dodger linen?,SELECT T2.ps_supplycost FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T1.p_name = 'medium metallic grey dodger linen' Show all companies with Headquarters USA? | Did you mean to show the company IDs? | yes,"SELECT Company_ID from company where Headquarters = ""USA""" Give me the theme and location of each party.,"SELECT Party_Theme , LOCATION FROM party" what is the order when public vote was 18.155%,"SELECT order FROM table_19744915_3 WHERE public_vote = ""18.155%""" Which chassis did fondmetal f1 spa use after 1990?,"SELECT chassis FROM table_name_32 WHERE year > 1990 AND entrant = ""fondmetal f1 spa""" Give the color description that is least common across products.,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1 What is the lowest number of bronze medals for a country with less than 1 gold and 0 silver?,SELECT MIN(bronze) FROM table_name_70 WHERE gold = 1 AND silver < 0 Which metal has a size that is 26mm (across scallops)?,"SELECT metal FROM table_name_56 WHERE size = ""26mm (across scallops)""" List the stadium and number of people in attendance when the team record was 45-22.,"SELECT COUNT(location_attendance) FROM table_23284271_9 WHERE record = ""45-22""" How many documents can one grant have at most? List the grant id and number.,"SELECT grant_id, COUNT(*) FROM Documents GROUP BY grant_id ORDER BY COUNT(*) DESC LIMIT 1" What signatory has a purpose of police security and Infotalent payee?,"SELECT signatories FROM table_name_71 WHERE purpose = ""police security"" AND payee = ""infotalent""" How many departments offer courses?,SELECT count(DISTINCT dept_name) FROM course "What is the highest salary among each team? List the team name, id and maximum salary.","SELECT T1.name , T1.team_id , max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id;" How many 10 star votes did the top 4 episodes with the highest rating received?,SELECT SUM(T1.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 10 ORDER BY T1.rating DESC LIMIT 4; "What is the task number on January 22, 2010 (day 111)?","SELECT MAX(task_no) FROM table_name_94 WHERE date_given = ""january 22, 2010 (day 111)""" What was the home team score against Collingwood?,"SELECT home_team AS score FROM table_16387653_1 WHERE away_team = ""Collingwood""" What are the minimum and maximum crime rate of counties?,"SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety" What are the names of all districts with a city area greater than 10 or have more than 100000 people living there?,SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000 which of them has the highest days held,SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT ( * ) > 2 ORDER BY days_held DESC LIMIT 1 Show ids of students who don't play video game.,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games "List the name of singers whose citizenship is not ""France"".","SELECT Name FROM singer WHERE Citizenship <> ""France""" Name the 2008 for 2012 f,"SELECT 2008 FROM table_name_37 WHERE 2012 = ""f""" Find the number of different states which banks are located at.,SELECT count(DISTINCT state) FROM bank What is the class of the team when less than 6 laps were completed?,SELECT class FROM table_name_31 WHERE laps < 6 Name the date for raymond james stadium,"SELECT date FROM table_24427210_1 WHERE stadium = ""Raymond James stadium""" Please list the names of the movies that user 94978 scored as 5.,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5 AND T1.user_id = 94978 What is the official language of China?,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'China' AND T2.IsOfficial = 'T' "Show the distinct apartment numbers of the apartments that have bookings with status code ""Confirmed"".","SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" What is the count of states with college students playing in the mid position but not as goalies?,SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') What is the total number of rooms in those buildings?,"SELECT sum ( T2.room_count ) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" "Thank you! That's all I needed, but I'm also curious, how many journalists are from England?",SELECT count ( journalist_ID ) FROM journalist where Nationality = 'England' What competition had a score of 8-1?,"SELECT competition FROM table_name_78 WHERE score = ""8-1""" what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248,SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248 Which tournament had the result with 2009 was F and 2010 was F?,"SELECT tournament FROM table_name_61 WHERE 2009 = ""f"" AND 2010 = ""f""" What is the Competition On 26 jan 2005,"SELECT competition FROM table_name_43 WHERE date = ""26 jan 2005""" when was the customer with the most order's last order placed?,select date_order_placed from Orders where customer_id in ( SELECT T1.customer_id FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 ) order by date_order_placed desc limit 1 Find the patient who most recently stayed in room 111.,SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1 "How many businesses in Phoenix, Arizona is attributed to waiter service?",SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city LIKE 'Phoenix' AND T3.attribute_name LIKE 'waiter_service' AND T2.attribute_id = 2 How many females are under age 40?,select count ( * ) from person where gender = 'female' and age < 40 What are the work numbers that are related to King Henry?,SELECT id FROM works WHERE Title LIKE '%Henry%' "What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2?",SELECT SUM(events) FROM table_name_88 WHERE top_25 > 5 AND top_10 < 4 AND wins > 2 From what series is Peck Up Your Troubles?,"SELECT series FROM table_name_66 WHERE title = ""peck up your troubles""" How many faculty do we have?,SELECT count(*) FROM Faculty How many millions viewers watched the episode that ran 23:25?,"SELECT viewers__in_millions_ FROM table_2101431_1 WHERE run_time = ""23:25""" What is the difference between the number of children's films and action films?,"SELECT SUM(IIF(T2.name = 'Children', 1, 0)) - SUM(IIF(T2.name = 'Action', 1, 0)) AS diff FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id" "Of the people who earn the smallest salary in each department, who has the highest salary? | do you mean the first name and last name and department id for the people? | yes","select FIRST_NAME,LAST_NAME from employees order by salary desc limit 1" How many billing countries in this invoice? | Do you mean the types of billing countries in this invoice | Yes.,SELECT count ( distinct billing_country ) FROM invoices "What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?","SELECT AVG(last_cf) FROM table_name_44 WHERE cf_appearances < 4 AND cf_wins < 1 AND team = ""st. louis blues""" Which is least lap is mika salo in?,"SELECT MIN(laps) FROM table_name_64 WHERE driver = ""mika salo""" What type of game was held against France with the results of 3:1?,"SELECT type_of_game FROM table_name_20 WHERE results¹ = ""3:1"" AND opponent = ""france""" List the number of customers that did not have any payment history.,SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments ); Please list the names of the top 3 suppliers with the most amount of money in their accounts.,SELECT s_name FROM supplier ORDER BY s_acctbal DESC LIMIT 3 What is the subject of the series SP.DYN.AMRT.MA and what does it pertain to?,"SELECT DISTINCT T1.Topic, T2.Description FROM Series AS T1 INNER JOIN SeriesNotes AS T2 ON T1.SeriesCode = T2.Seriescode WHERE T1.SeriesCode = 'SP.DYN.AMRT.MA'" Show the shop addresses ordered by their opening year.,SELECT address FROM shop ORDER BY open_year How many cities are there in the United States?,SELECT COUNT(T2.city) FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T1.country = 'United States' How many shipments were shipped to the least populated city in California?,SELECT COUNT(T3.city_name) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T3.state = 'California' ORDER BY T3.population ASC LIMIT 1 What's the mountains classification of Stage 7 when Kim Kirchen was the general classification?,"SELECT mountains_classification FROM table_name_82 WHERE general_classification = ""kim kirchen"" AND stage = ""7""" "Who was the songwriter for Track 4, produced by nigel wright and john smits?","SELECT songwriter_s_ FROM table_name_84 WHERE production_credits = ""nigel wright and john smits"" AND track = 4" "How many more ""Chinese"" than ""Filipino"" Yelp businesses?",SELECT SUM(CASE WHEN T1.category_name LIKE 'Chinese' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.category_name LIKE 'Filipino' THEN 1 ELSE 0 END) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id What are the characters and duration of actors?,"SELECT Character, Duration FROM actor" Which movies had the main character named Donald Duck and who directed them?,"SELECT T1.movie_title, T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.hero = 'Donald Duck'" Find the total number of hours have done for all students in each department.,"SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code" Who is every young rider classification when Jelle Vanendert is the winner?,"SELECT young_rider_classification FROM table_25999087_2 WHERE winner = ""Jelle Vanendert""" "What is Home Team, when Date is ""28 January 1984"", and when Tie No is ""4""?","SELECT home_team FROM table_name_65 WHERE date = ""28 january 1984"" AND tie_no = ""4""" Can you tell me the first name and office of the professor in the history department who has a Ph.D. degree?,"SELECT T1.emp_fname, T2.prof_office from employee as T1 join professor as T2 on T1.emp_num = T2.emp_num where T2.dept_code = 'HIST' and T2.PROF_HIGH_DEGREE = 'Ph.D.'" What is the number of students playing as a goalie?,SELECT count(*) FROM tryout WHERE pPos = 'goalie' "Is the payment in mastercard possible for the Yelp business No.""12476""?",SELECT T1.attribute_value FROM Business_Attributes AS T1 INNER JOIN Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.business_id = 12476 AND T2.attribute_name = 'payment_types_mastercard' Name the Weight which has a Name of balázs hárai category:articles with hcards?,"SELECT weight FROM table_name_10 WHERE name = ""balázs hárai category:articles with hcards""" "What is the zip code of the address where the teacher with first name ""Lyla"" lives?","SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = ""Lyla""" What are the names and ratings of all songs of the blues genre?,"SELECT song_name,rating FROM song WHERE genre_is = ""blues""" What was Larry Nelson's final score?,"SELECT score FROM table_name_39 WHERE player = ""larry nelson""" "Which Season has Podiums of 0, and Races of 16?","SELECT MAX(season) FROM table_name_44 WHERE podiums = ""0"" AND races = ""16""" Can you show only the first names?,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid = 160 In what Tournament was Janet Young a Partner?,"SELECT tournament FROM table_name_18 WHERE partner = ""janet young""" Find the name of companies whose revenue is between 100 and 150.,SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 What is the name of the customer who has the most orders?,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Name the points for when points against is of 450,"SELECT points_for FROM table_name_97 WHERE points_against = ""450""" "How many actors played a role in the 2006 film whose rental duration is 7 days, rental rate is 4.99 and is 98 minutes duration?",SELECT COUNT(T1.actor_id) FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id WHERE T2.release_year = 2006 AND T2.rental_duration = 7 AND T2.rental_duration = 4.99 AND T2.length = 98 In how many stages did Jose Vicente Garcia Acosta won?,"SELECT COUNT(stage) FROM table_15088557_1 WHERE winner = ""Jose Vicente Garcia Acosta""" Name the enrollment for tomcats,"SELECT enrollment FROM table_262476_1 WHERE nickname = ""Tomcats""" What year has a result of 3 in the venue of Jarama.,"SELECT MIN(year) FROM table_name_25 WHERE result = ""3"" AND venue = ""jarama""" what is the average capacity,SELECT AVG ( Capacity ) FROM cinema Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city Which Nominated work has a Year of 1997?,SELECT nominated_work FROM table_name_96 WHERE year = 1997 Show the names of roller coasters and names of country they are in.,"SELECT T2.Name , T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID" Give the color description for the product 'catnip'.,"SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""catnip""" What are the names of climbers and the corresponding heights of the mountains that they climb?,"SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" What is the venue where Collingwood played as the away team?,"SELECT venue FROM table_name_26 WHERE away_team = ""collingwood""" Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980?,"SELECT winner FROM table_name_34 WHERE fis_nordic_world_ski_championships = ""1980""" What are the main indstries and total market value for each industry?,"SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry" How many lessons have been cancelled?,"SELECT count(*) FROM Lessons WHERE lesson_status_code = ""Cancelled"";" Do you have a comparison of how many papers were published by each institution?,"SELECT t3.name,count ( DISTINCT t1.title ) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid group by t3.name" Which Examples has Australian of əm?,"SELECT examples FROM table_name_10 WHERE australian = ""əm""" How many different locations does the school with code BUS has?,SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS' Show the name and age for all male people who don't have a wedding.,"SELECT name , age FROM people WHERE is_male = 'T' AND people_id NOT IN (SELECT male_id FROM wedding)" "what is the document code for the section title ""after"" for the document ""David CV""?","SELECT t2.document_code FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV"" and t2.section_title = ""after""" Count the number of financial transactions that correspond to each account id.,"SELECT count(*) , account_id FROM Financial_transactions" can you please list the document types with the count of document structure code?,"SELECT count ( document_structure_code ) , document_type_code FROM documents GROUP BY document_type_code" "Which recipe is more beneficial in wound healing, ""Raspberry Chiffon Pie"" or ""Fresh Apricot Bavarian""?","SELECT DISTINCT CASE WHEN CASE WHEN T2.title = 'Raspberry Chiffon Pie' THEN T1.vitamin_c END > CASE WHEN T2.title = 'Fresh Apricot Bavarian' THEN T1.vitamin_c END THEN 'Raspberry Chiffon Pie' ELSE 'Fresh Apricot Bavarian' END AS ""vitamin_c is higher"" FROM Nutrition T1 INNER JOIN Recipe T2 ON T2.recipe_id = T1.recipe_id" "What is the highest price of the dish ""Clear green turtle"" on a menu page?",SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle' ORDER BY T2.price DESC LIMIT 1 List the name and tonnage ordered by in descending alphaetical order for the names.,"SELECT name , tonnage FROM ship ORDER BY name DESC" Which services type had successful event details?,SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' What are the most yards for 2 sacks and an average greater than 0?,SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 0 How many students have more than 1000 hours of training?,SELECT * from player where hs > 1000 list out the chip models on the table,select chip_model from phone "What is the Round when the series shows 5th place, and a Season of 2006–07?","SELECT round FROM table_name_86 WHERE series = ""5th place"" AND season = ""2006–07""" What song is done by Terence Trent D'Arby?,"SELECT song FROM table_name_24 WHERE artist = ""terence trent d'arby""" "What is the score of the FIFA report on October 13, 2007?","SELECT score FROM table_name_97 WHERE report = ""fifa"" AND date = ""october 13, 2007""" WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?,SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.9 Which year had a transmission of Voith D863.4 and a Cummins ISM engine?,"SELECT year FROM table_19643196_1 WHERE transmission = ""Voith D863.4"" AND engine = ""Cummins ISM""" How many million viewers watched the episode with a run time of 25:22?,"SELECT viewers__in_millions_ FROM table_2108684_1 WHERE run_time = ""25:22""" List the 3 highest salaries of players in the NL in 2001.,"SELECT salary FROM salary WHERE YEAR = 2001 and league_id = ""NL"" ORDER BY salary DESC LIMIT 3" " what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)","SELECT torque FROM table_11167610_1 WHERE performance = ""0–100km/h: 7.5s auto, VMax: km/h (mph)""" What are the cities no customers live in?,SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) What is the name of the Team with the most number of value points?,SELECT team from machine order by value_points DESC limit 1 Find the total amount claimed in the most recently created document.,SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1) Name the number of number in season for 26,SELECT COUNT(no_in_season) FROM table_22347090_5 WHERE no_in_series = 26 "When did the school from Logan Township, Pennsylvania join the Conference?","SELECT joined FROM table_1971074_1 WHERE location = ""Logan Township, Pennsylvania""" "Find the number of products for each manufacturer, showing the name of each company.","SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" "Show the distinct names of mountains climbed by climbers from country ""West Germany"".","SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = ""West Germany""" How old is the doctor named Zach?,"SELECT age from person where name = ""Zach""" What is the average number of draws for losses over 8 and Against values under 1344?,SELECT AVG(draws) FROM table_name_9 WHERE losses > 8 AND against < 1344 Which method took place against Chris Herring?,"SELECT method FROM table_name_73 WHERE opponent = ""chris herring""" Who was the director that worked with Dana Dorian as the writer?,"SELECT director_s_ FROM table_name_44 WHERE writer_s_ = ""dana dorian""" "What is the total number of Game, when High Assists is ""Rajon Rondo (6)""?","SELECT COUNT(game) FROM table_name_83 WHERE high_assists = ""rajon rondo (6)""" In which year is Nerida Gregory listed as the loser?,"SELECT AVG(year) FROM table_name_13 WHERE loser = ""nerida gregory""" In what year was the rank less than 6 for Damac Heights?,"SELECT year FROM table_name_10 WHERE rank < 6 AND name = ""damac heights""" Who had the highest assists on November 4,"SELECT high_assists FROM table_11959669_3 WHERE date = ""November 4""" What is the no party preference when the city is murrieta?,"SELECT no_party_preference FROM table_27003186_3 WHERE city = ""Murrieta""" How many dates was knockhill?,"SELECT COUNT(date) FROM table_24547593_1 WHERE circuit = ""Knockhill""" How many female students are allergic to cats?,"SELECT count ( * ) FROM Has_allergy AS T1 JOIN Student as T2 on T2.StuID = T1.StuID WHERE T1.Allergy = ""Cat"" and T2.sex = 'F'" What year were the retired serial numbers 27317–27336?,"SELECT year_s__retired FROM table_name_32 WHERE serial_numbers = ""27317–27336""" How many invoices are from the US?,"SELECT COUNT ( * ) FROM invoices WHERE billing_country = ""USA""" "Among the best actors, how many of them got a rating of 5 to the movies they starred?",SELECT COUNT(T1.actorid) FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid INNER JOIN u2base AS T3 ON T2.movieid = T3.movieid WHERE T1.a_quality = 5 AND T3.rating = 5 List the smallest possible spoilt vote with the sør-trøndelag constituency.,"SELECT MIN(s_spoilt_vote) FROM table_1289762_1 WHERE constituency = ""Sør-Trøndelag""" What is the average rating for right-footed players and left-footed players?,"SELECT preferred_foot , avg(overall_rating) FROM Player_Attributes GROUP BY preferred_foot" "Who was the partner when the final score was 7–6, 3–6, 6–7?","SELECT partner FROM table_name_48 WHERE score_in_the_final = ""7–6, 3–6, 6–7""" How many languages for the 2001 (74th) awards?,"SELECT COUNT(language_s_) FROM table_16254861_1 WHERE year__ceremony_ = ""2001 (74th)""" "Opponent of edmonton oilers, and a Game of 3 is what series?","SELECT series FROM table_name_95 WHERE opponent = ""edmonton oilers"" AND game = 3" Tell me the total number of date for carpet,"SELECT COUNT(date) FROM table_name_94 WHERE surface = ""carpet""" Name the vote % for seats of 9,SELECT vote__percentage FROM table_name_92 WHERE seats = 9 How many games had been played when the Mavericks had a 46-22 record?,"SELECT MAX(game) FROM table_23284271_9 WHERE record = ""46-22""" What are the last name and office of all history professors?,"SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'" What tournament what held in Cincinnati in 2009?,"SELECT 2009 FROM table_name_53 WHERE tournament = ""cincinnati""" "For the player in 2011 who started every game he played, which team had the player who had the most steals?","SELECT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 2011 AND T2.GP = T2.GS GROUP BY T1.tmID, T2.steals ORDER BY T2.steals DESC LIMIT 1" "1950 larger than 80, and a 1960 of 196, and a 1990 larger than 131 what is the lowest 1996[2]?",SELECT MIN(1996)[2] FROM table_name_80 WHERE 1950 > 80 AND 1960 = 196 AND 1990 > 131 how many professors there,SELECT count ( * ) from professor What is the attendance for No. 15 tie?,"SELECT attendance FROM table_name_72 WHERE tie_no = ""15""" What's the name and gender of the staff who was never assigned to Clerical Staff.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" What is the maximum capacity and the average of all stadiums ?,"select max(capacity), average from stadium" What is the total number of staff members?,SELECT count ( * ) from staff What is the name of airport in the city Goroka?,"SELECT name FROM airports WHERE city = ""Goroka""" List the name of all products along with the number of complaints that they have received.,"SELECT t1.product_name , count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name" Show all member names who are not in charge of any event.,SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id Which Oil Pattern has a Winner (Title #) of mike wolfe (3)?,"SELECT oil_pattern FROM table_name_58 WHERE winner__title__number_ = ""mike wolfe (3)""" What was the score when the away team was norwich city?,"SELECT score_1 FROM table_24887326_8 WHERE away_team = ""Norwich City""" Show aircraft names and number of flights for each aircraft.,"SELECT T2.name , count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid" What are the lot details of lots associated with transactions with share count smaller than 50?,SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 Provide a list of all organisations with headquarters in London?,SELECT Name FROM organization WHERE City = 'London' The winner Arnfinn Bergmann has what under country?,"SELECT country FROM table_name_45 WHERE winner = ""arnfinn bergmann""" Who was the singer for the song My love?,"SELECT artist_name from song where song_name = ""My love""" How many people rated 5 for the podcast which title contains the word 'spoiler' under the 'art' category '?,SELECT COUNT(T3.podcast_id) FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T2.title LIKE '%spoilers%' AND T1.category = 'arts' AND T3.rating = 5 List the industry shared by the most companies.,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1 What is the team for the position in table 19th?,"SELECT team FROM table_24231638_3 WHERE position_in_table = ""19th""" What was the grid for suspension time/retired?,"SELECT grid FROM table_name_8 WHERE time_retired = ""suspension""" How many available hotels are there in total?,SELECT COUNT(*) FROM HOTELS Can you list the artist ids and their volume issues?,"SELECT T1.artist_id, T2.volume_issue FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID" What Date has a Rank of 2?,SELECT date FROM table_name_23 WHERE rank = 2 "What is Date, when Outcome is ""Winner"", and when Opponents is ""Paul Haarhuis Sandon Stolle""?","SELECT date FROM table_name_48 WHERE outcome = ""winner"" AND opponents = ""paul haarhuis sandon stolle""" Who is the player with a FB position?,"SELECT player FROM table_name_2 WHERE position = ""fb""" When did they play at Candlestick Park?,"SELECT date FROM table_name_25 WHERE game_site = ""candlestick park""" Calculate the percentage of the surface area of all countries that uses Chinese as one of their languages.,"SELECT CAST(SUM(IIF(T2.Language = 'Chinese', T1.SurfaceArea, 0)) AS REAL) * 100 / SUM(T1.SurfaceArea) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode" What date was the game against Toronto which had a game number higher than 53?,"SELECT date FROM table_name_68 WHERE game > 53 AND team = ""toronto""" What is its grant start date?,SELECT grant_start_date from grants where grant_amount = 4094.542 Which manufacturer does Loris Capirossi ride for?,"SELECT manufacturer FROM table_name_13 WHERE rider = ""loris capirossi""" "Which Competition has a Score of 0-1, and Opponents of pkns fc?","SELECT competition FROM table_name_33 WHERE score = ""0-1"" AND opponents = ""pkns fc""" Which school was in Toronto in 2001-02?,"SELECT school_club_team FROM table_10015132_14 WHERE years_in_toronto = ""2001-02""" Name the Rider which has a Time of +59.304?,"SELECT rider FROM table_name_33 WHERE time = ""+59.304""" List all the users with average star less than 3 stars in 2012,SELECT user_id FROM Users WHERE user_yelping_since_year = 2012 AND user_average_stars < 3 What number pick was Paul Seymour in round 1?,"SELECT SUM(pick) FROM table_name_31 WHERE round = 1 AND player = ""paul seymour""" What is the average age of Norwalk clients?,SELECT CAST(SUM(T1.age) AS REAL) / COUNT(T1.age) AS average FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Norwalk' what is the age of linda,SELECT Age FROM Student where Fname = 'Linda' Show the name of storms which don't have affected region in record.,SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region); Who was the parter against Marin čilić lovro Zovko?,"SELECT partnering FROM table_name_41 WHERE opponents = ""marin čilić lovro zovko""" Who constructed the car with a grid over 19 that retired due to suspension?,"SELECT constructor FROM table_name_49 WHERE grid > 19 AND time_retired = ""suspension""" What position(s) drafted by the montreal alouettes?,"SELECT position FROM table_20170644_5 WHERE cfl_team = ""Montreal Alouettes""" What player had numbers of 20,"SELECT player FROM table_name_67 WHERE no_s_ = ""20""" Find the average elevation of all airports for each country.,"SELECT avg(elevation) , country FROM airports GROUP BY country" What is the Musical Guest (Song performed) for the episode aired on 13 july 2008?,"SELECT musical_guest__song_performed_ FROM table_name_2 WHERE air_date = ""13 july 2008""" "Hello! Can you show me a list of all courses that were offered in the Chandler building? | Do you want just their titles, or all the course information? | I would like both please!",SELECT * FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' Tell me the role for tea and sympathy,"SELECT role FROM table_name_83 WHERE play = ""tea and sympathy""" How many T-260 EU aircrafts are currently in service?,"SELECT in_service FROM table_name_64 WHERE versions = ""t-260 eu""" What Driver has 28 Laps and a Grid greater than 5?,SELECT driver FROM table_name_91 WHERE grid > 5 AND laps = 28 What are the product names with average product price smaller than 1000000?,SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000 When fm 97.3 is the frequency how many formats are there?,"SELECT COUNT(format) FROM table_18536769_1 WHERE frequency = ""FM 97.3""" "Show the unique first names, last names, and phone numbers for all customers with any account.","SELECT DISTINCT T1.customer_first_name , T1.customer_last_name , T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What is the name of the product that is most sold by sale person id 20?,SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.SalesPersonID = 20 ORDER BY T2.Quantity DESC LIMIT 1 Which wheel arrangement had a Specification of dl-700?,"SELECT wheel_arrangement FROM table_name_9 WHERE specification = ""dl-700""" What was Home team Footscray's score?,"SELECT home_team AS score FROM table_name_52 WHERE home_team = ""footscray""" What is the name of the singer who is worth the most?,SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 That is the value for Try bonus when the value for Points is 418?,"SELECT try_bonus FROM table_name_82 WHERE points_for = ""418""" Which of these have bikes?,"SELECT id FROM station WHERE city = ""San Francisco"" INTERSECT SELECT station_id FROM status where bikes_available > 0" What is the grid for the Minardi Team USA with laps smaller than 90?,"SELECT grid FROM table_name_42 WHERE laps < 90 AND team = ""minardi team usa""" How many white objects are there in image no.2347915?,SELECT SUM(CASE WHEN T2.ATT_CLASS = 'white' THEN 1 ELSE 0 END) FROM IMG_OBJ_ATT AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 2347915 List all products with minimum order quantity of 100 and order them by product name in descending order.,SELECT DISTINCT T1.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID WHERE T2.MinOrderQty = 100 ORDER BY T1.Name DESC "What are the vocal types used in song ""Le Pop""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What was the highest rank of an area with a population density larger than 5.7 and a 2006–2011 percentage growth of 5.7%?,"SELECT MAX(rank) FROM table_name_45 WHERE population_density___km_2__ > 5.7 AND _percentage_growth__2006_11_ = ""5.7%""" Calculate the average of the total ordered quantity of products purchased whose shipping method was Cargo Transport 5.,"SELECT CAST(SUM(IIF(T1.ShipMethodID = 5, T3.OrderQty, 0)) AS REAL) / COUNT(T3.ProductID) FROM ShipMethod AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.ShipMethodID = T2.ShipMethodID INNER JOIN PurchaseOrderDetail AS T3 ON T2.PurchaseOrderID = T3.PurchaseOrderID" "On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?","SELECT outcome FROM table_name_74 WHERE partner = ""dora djilianova"" AND date = ""october 1, 1995""" List down the name of strategy games.,SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Strategy' What was the score for the game in which Samir Nasri played?,"SELECT score FROM table_24765815_2 WHERE player = ""Samir Nasri""" Who were the rowers from china wh had a rank smaller than 4?,"SELECT rowers FROM table_name_51 WHERE rank < 4 AND country = ""china""" "What is the name when born is december 30, 1957 detroit, mi?","SELECT name FROM table_1198175_1 WHERE born = ""December 30, 1957 Detroit, MI""" List all the ids of the images that have a self-relation relationship.,SELECT DISTINCT IMG_ID FROM IMG_REL WHERE OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID Give the product id for the product that was ordered most frequently.,SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1 add a column for track name,"select track_id,name from track" Who were the Opponents in the final that played on a carpet (i) Surface?,"SELECT opponents_in_the_final FROM table_name_62 WHERE surface = ""carpet (i)""" What was the average speed for a racetime of 3:08:08?,"SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = ""3:08:08""" What are the names of the dishes with a stable price that were created in April of 2011?,"SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE SUBSTR(T2.created_at, 1, 4) = '2011' AND SUBSTR(T2.created_at, 7, 1) = '4' AND T1.highest_price IS NULL" Mention the violation type ID and description of high risk category for STARBUCKS.,"SELECT DISTINCT T1.violation_type_id, T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'STARBUCKS' AND T1.risk_category = 'High Risk'" Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.,SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008 What day is carlton the home side?,"SELECT date FROM table_name_87 WHERE home_team = ""carlton""" What were the points per game in the selection where the rebounds per game were 15.0?,"SELECT points_per_game FROM table_25774493_3 WHERE rebounds_per_game = ""15.0""" What is the win percentage when 2010 was 98?,"SELECT win__percentage FROM table_name_74 WHERE 2010 = ""98""" Can you list all companies whose revenue is less than 100?,select Name from Manufacturers where Revenue<100 State the name of menu with the longest full height.,SELECT T2.name FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id ORDER BY T1.full_height DESC LIMIT 1 Return the description of the budget type that has the code ORG.,"SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = ""ORG""" "Among the players out in match ID 392187, calculate the percentage of players out by bowl.",SELECT CAST(SUM(CASE WHEN T2.Out_Name = 'bowled' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Player_Out) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T2.Out_Id = T1.Kind_Out WHERE T1.Match_Id = 392187 What is the oldest published book?,SELECT Title FROM Paper WHERE Year > 0 ORDER BY Year ASC LIMIT 1 what is the tournament when the performance in 2012 is 3r and 2011 is qf?,"SELECT tournament FROM table_name_77 WHERE 2012 = ""3r"" AND 2011 = ""qf""" "Find the titles of the papers that contain the word ""ML"".","SELECT title FROM papers WHERE title LIKE ""%ML%""" What is the male incarceration rate of maule?,"SELECT MAX(incarceration_rate_male) FROM table_25042332_31 WHERE region = ""Maule""" "Return the themes, dates, and attendance for exhibitions that happened in 2004.","SELECT T2.theme , T1.date , T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004" What was the Tie no when Manchester United was the home team?,"SELECT tie_no FROM table_name_51 WHERE home_team = ""manchester united""" Show the denomination shared by more than one school.,SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1 What was the position in 1981?,SELECT position FROM table_name_55 WHERE year = 1981 At what time was the game when they played the White Sox and had a record of 63-70?,"SELECT time FROM table_name_81 WHERE opponent = ""white sox"" AND record = ""63-70""" Find the name of the program that is broadcast most frequently.,SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1 What school did draft pick from round 3 go to?,SELECT school FROM table_name_6 WHERE round = 3 "What is the sum of the races in the 2007 season, which has more than 4 podiums?","SELECT SUM(races) FROM table_name_40 WHERE podiums > 4 AND season = ""2007""" How many followers does Tyler Swift have?,"SELECT followers FROM user_profiles where name = ""Tyler Swift""" Tell me the the claim date and settlement date for each settlement case.,"SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements" What is the average unit profit for wholesalers of canned beers?,SELECT AVG(T2.CurrentRetailPrice - T2.WholesaleCost) FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T1.ContainerType = 'Can' How many participants are there?,SELECT count ( * ) FROM participants How about for the year 1965?,"SELECT DISTINCT T1.location FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t1.year = 1965 AND t1.campus = ""California State University-Bakersfield""" What is the finish with 51 laps?,SELECT finish FROM table_name_98 WHERE laps = 51 Which Date has Result of 86-87?,"SELECT date FROM table_name_58 WHERE result = ""86-87""" When did the staff member with first name as Janessa and last name as Sawayn join the company?,"SELECT date_joined_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" How many saves did the player with a 92.3% save rate and 217 goals have?,"SELECT SUM(saves) FROM table_name_10 WHERE save__percentage = ""92.3%"" AND goals_against > 217" The main character Elsa is voiced by which actor and who is the director of the movie?,"SELECT T1.`voice-actor`, T3.director FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title INNER JOIN director AS T3 ON T2.movie_title = T3.name WHERE T2.hero = 'Elsa'" What is the lowest capacity that has stadion mladina as the stadium?,"SELECT MIN(capacity) FROM table_name_96 WHERE stadium = ""stadion mladina""" What are the womens singles of imam sodikin irawan andi tandaputra?,"SELECT womens_singles FROM table_12104319_1 WHERE mens_doubles = ""Imam Sodikin Irawan Andi Tandaputra""" "When the average ratings is 10.3%, what is the average episodes?","SELECT AVG(episodes) FROM table_name_32 WHERE average_ratings = ""10.3%""" "Among all the dishes that were once free, what is the name of the dish that had appeared on most menus?",SELECT name FROM Dish WHERE lowest_price = 0 ORDER BY menus_appeared DESC LIMIT 1 What were the years that the building at 200 sw harrison was considered to be the tallest building?,"SELECT years_as_tallest FROM table_name_3 WHERE street_address = ""200 sw harrison""" What is the highest number of points for a position less than 3 and less than 1 loss?,SELECT MAX(points) FROM table_name_19 WHERE position < 3 AND lost < 1 "What score has a year later than 1974, with hawthorn as the champion?","SELECT score FROM table_name_31 WHERE year > 1974 AND champion = ""hawthorn""" What is the nationality of the guard for the chool/Club Team in Virginia?,"SELECT nationality FROM table_name_34 WHERE position = ""guard"" AND school_club_team = ""virginia""" "Please list the years of film market estimations when the market is in country ""Japan"" in descending order.","SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = ""Japan"" ORDER BY T1.Year DESC" who wrote the episode having joe daniello as director with production code 6ajn05?,"SELECT written_by FROM table_26409328_1 WHERE directed_by = ""Joe Daniello"" AND production_code = ""6AJN05""" "Among the countries that use Italian as their language, what is the percentage of republic countries?",SELECT CAST(SUM(CASE WHEN T2.GovernmentForm = 'Republic' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Language = 'Italian' "What is the implementation when the netflow version is v5, v8, v9, ipfix?","SELECT implementation FROM table_1206114_2 WHERE netflow_version = ""v5, v8, v9, IPFIX""" Find names of the document without any images.,SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id How many position did a player took while weighing 170?,SELECT COUNT(position) FROM table_25177625_1 WHERE weight = 170 "find the customer date of the orders that have the status"" delivered"" | did you mean the order date? | yes","SELECT t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Delivered""" What is the total diagram for builder york?,"SELECT SUM(diagram) FROM table_name_2 WHERE builder = ""york""" Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.,SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology') "Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131?","SELECT name FROM table_name_35 WHERE gender = ""coed"" AND decile > 5 AND roll = 131" What is the segment A on episode 237?,SELECT segment_a FROM table_15187735_19 WHERE episode = 237 What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000?,"SELECT f_id FROM files WHERE formats = ""mp4"" INTERSECT SELECT f_id FROM song WHERE resolution < 1000" What are the names of storms which don't have affected region in record?,SELECT name FROM storm WHERE storm_id NOT IN ( SELECT storm_id FROM affected_region ) How many furniture components are there in total?,SELECT sum(num_of_component) FROM furniture "For all the complaint callers on 2017/3/27, what percentage of the clients are females?",SELECT CAST(SUM(CASE WHEN T1.sex = 'Female' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2017-03-27' What was the reanking of Hamid Veisi?,"SELECT rank FROM table_name_44 WHERE athlete = ""hamid veisi""" When does week 1 start?,"SELECT date FROM table_name_54 WHERE week = ""1""" Take the average of the school enrollment.,SELECT avg(Enrollment) FROM school How many wins does Greg Norman have?,"SELECT SUM(wins) FROM table_name_15 WHERE player = ""greg norman""" What is the total number of times points were listed when the distance was 41.05 metres?,"SELECT COUNT(points) FROM table_26454128_9 WHERE distance__metres_ = ""41.05""" How many students participated in tryouts for each college by descennding count?,"SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC" Tell me the born state and age for head id 3,"SELECT born_state, age FROM head WHERE head_ID = 3" Find the busiest source airport that runs most number of routes in China.,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 How many bank branches are there?,SELECT count(*) FROM bank What is the department id for the Finance department?,SELECT DEPARTMENT_ID FROM departments where department_name = 'Finance' In which buildings are there at least ten professors?,"SELECT building FROM Faculty WHERE rank = ""Professor"" GROUP BY building HAVING count(*) >= 10" List the names of all distinct wines ordered by price.,SELECT DISTINCT Name FROM WINE ORDER BY price Name the the average Lib Dem with Conservative smaller than 0?,SELECT AVG(lib_dem) FROM table_name_87 WHERE conservative < 0 What is the innovation when the economic incentive grime is 7.14? ,"SELECT innovation FROM table_23050383_1 WHERE economic_incentive_regime = ""7.14""" Which finalist played in the week of October 21?,"SELECT finalist FROM table_name_38 WHERE week = ""october 21""" "Find the last names of the members of the club ""Bootup Baltimore"".","SELECT t3.Lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubName = ""Bootup Baltimore""" "Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?","SELECT zx_spectrum FROM table_name_92 WHERE year > 1984 AND genre = ""arcade/strategy""" What proportion of orders are taken by the Sales Representative?,SELECT CAST(COUNT(CASE WHEN T1.Title = 'Sales Representative' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID What was the players position in 2013 who had 29 seasons in the second tier,"SELECT position_in_2013 FROM table_1560673_1 WHERE number_of_seasons_in_second_tier = ""29""" In which country do most players have the 'slow left-arm chinaman' bowling style?,SELECT T3.Country_Name FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Bowling_skill = 'Slow left-arm chinaman' Which ordinary value has a Russian value of унция?,"SELECT ordinary_value FROM table_name_64 WHERE russian = ""унция""" "Name the title that aired for november 08, 1985","SELECT title FROM table_20967430_2 WHERE original_air_date = ""November 08, 1985""" What is the date of vacancy for the Liverpool team with a table named pre-season?,"SELECT date_of_vacancy FROM table_24172157_3 WHERE table = ""Pre-season"" AND team = ""Liverpool""" "If the number of police officers is 94, what is the lowest population number?",SELECT MIN(population) FROM table_12340907_1 WHERE police_officers = 94 "Who was driving the Maserati with a Grid smaller than 6, and a Time/Retired of +2 laps?","SELECT driver FROM table_name_39 WHERE constructor = ""maserati"" AND grid < 6 AND time_retired = ""+2 laps""" What is the date of vacancy when the team is manchester city and replaced by is mark hughes?,"SELECT date_of_vacancy FROM table_10592536_8 WHERE team = ""Manchester City"" AND replaced_by = ""Mark Hughes""" Name the catalog number for am/pm callanetics,"SELECT catalog_number FROM table_27303975_2 WHERE title = ""AM/PM Callanetics""" "What is Tournament, when 2000 is ""A""?","SELECT tournament FROM table_name_60 WHERE 2000 = ""a""" "What are the maximum, minimum and average home games each stadium held?","SELECT max(home_games) , min(home_games) , avg(home_games) FROM stadium" "What is the minimum, maximum, and average seating for all tracks.","SELECT min(seating) , max(seating) , avg(seating) FROM track" In which categories does the only business located in the city of Arcadia appear?,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.city = 'Arcadia' What place was Gary Player after two rounds?,"SELECT place FROM table_name_27 WHERE player = ""gary player""" Count the number of documents.,SELECT count(*) FROM Documents "Find products with max page size as ""A4"" and pages per minute color smaller than 5.","SELECT product FROM product WHERE max_page_size = ""A4"" AND pages_per_minute_color < 5" What was the lowest pick for the RHP position and player Mike Biko?,"SELECT MIN(pick) FROM table_name_67 WHERE position = ""rhp"" AND player = ""mike biko""" How many units are being sold for item 1 when the average temperature is 83?,SELECT SUM(units) FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 1 AND T1.tavg = 83 Find all the albums in 2012.,SELECT * FROM Albums WHERE YEAR = 2012 "What is Status, when Newspaper/Magazine is Al-Thawra?","SELECT status FROM table_name_24 WHERE newspaper_magazine = ""al-thawra""" what is the daily hire cost of the product id 1,SELECT daily_hire_cost FROM Products_for_Hire where product_id = 1 What Are the source system code of CMI_Cross_References,SELECT source_system_code FROM CMI_Cross_References What is the area of the country which became independent in 1921/3/13?,SELECT T1.Area FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Independence = '1921-03-13' What was their most recent date_supplied_to?,select date_supplied_to from Product_Suppliers order by date_supplied_to desc limit 1 how many country there,SELECT count ( * ) from country What is the label that has the most albums?,SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1 "Which Water (sqmi) has a County of benson, and an ANSI code smaller than 1759243?","SELECT MIN(water__sqmi_) FROM table_name_13 WHERE county = ""benson"" AND ansi_code < 1759243" Please name any two products that have the highest satisfaction levels among users of Heli Swaren GmbH & Co. KG.,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Heli Swaren GmbH & Co. KG' ORDER BY T1.ReorderLevel DESC LIMIT 2 How many employees first names do not contain the letter M?,SELECT count ( * ) FROM employees WHERE first_name NOT LIKE '%M%' Hello! How are you! Can you tell me how many missions there are in total?,SELECT count ( * ) FROM mission What is the total number of active businesses in AZ with a medium review count?,SELECT COUNT(business_id) FROM Business WHERE review_count = 'Medium' AND state = 'AZ' AND active = 'true' what is the average age,SELECT avg ( age ) FROM HOST How many companies named cenovus energy?,"SELECT COUNT(rank__all__2013) FROM table_23950611_2 WHERE name = ""Cenovus Energy""" Show the name and service for all trains in order by time.,"SELECT name , service FROM train ORDER BY TIME" How many different customers are there?,SELECT count ( * ) FROM Customers Please list the credit card IDs of the employees who work as store contact.,SELECT T2.CreditCardID FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.PersonType = 'SC' What is the average of Indian players that were born between 1975 and 1985 among all players?,"SELECT CAST(SUM(CASE WHEN T2.Country_Name = 'India' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE strftime('%Y', T1.DOB) BETWEEN '1975' AND '1985'" What is the language spoken by the largest percentage of people in each country?,"SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode" List all open years when at least two shops are opened.,SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2 "What is the document type name for the document with name ""How to read a book""?","SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = ""How to read a book""" Name the location for 2007,SELECT location FROM table_23379776_6 WHERE year = 2007 "Provide the github address with the summary of method ""A test for Decompose "".",SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T3.Summary = 'A test for Decompose' Please list the male students that are disabled and have filed for bankruptcy.,"SELECT T1.name, T2.name, T3.name FROM disabled AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` INNER JOIN filed_for_bankrupcy AS T3 ON T1.`name` = T3.`name`" How many medications are prescribed for each brand?,"SELECT count(*) , T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand" What's the most points for Ea Schongau with more than 1 drawn?,"SELECT MAX(points) FROM table_name_38 WHERE name = ""ea schongau"" AND drawn > 1" what is the apparent magnitude of the constellation sculptor,"SELECT COUNT(apparent_magnitude) FROM table_name_24 WHERE constellation = ""sculptor""" What is the ratio between business in shopping category and business in pets category?,SELECT CAST(SUM(CASE WHEN T2.category_name = 'Shopping' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.category_name = 'Pets' THEN 1 ELSE 0 END) AS radio FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id Show the highest low temperature.,select max ( low_temperature ) from weekly_weather What is the total number of points for ray agius,"SELECT SUM(points) FROM table_name_15 WHERE lyricist = ""ray agius""" Which room has the highest base price?,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;" Who is the Delegate for the election id 1 ?,"SELECT Delegate FROM election WHERE Election_ID = ""1""" "Show the residences that have both a player of gender ""M"" and a player of gender ""F"".","SELECT Residence FROM player WHERE gender = ""M"" INTERSECT SELECT Residence FROM player WHERE gender = ""F""" "For short patent type of protections, what type of PCT route is available?","SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = ""short patent""" "What is the genre name of the film HUNGER ROOF, please?",SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF' What is the load bearing capacity when the name is Camelus Dromedarius,"SELECT load_bearing_capacity FROM table_1427868_1 WHERE scientific_name = ""Camelus dromedarius""" "When the USA's captain was Beth Daniel, who was the winning team?","SELECT winning_team FROM table_name_99 WHERE usa_captain = ""beth daniel""" Name the total number of value for revenue more than 193 and rank less than 12 for manchester united,"SELECT COUNT(value__) AS $m_ FROM table_name_21 WHERE revenue__$m_ > 193 AND rank < 12 AND team = ""manchester united""" Please list the businesses along with their numbers that have their accounts located in Duvall.,SELECT T2.BusinessEntityID FROM Address AS T1 INNER JOIN BusinessEntityAddress AS T2 ON T1.AddressID = T2.AddressID WHERE T1.City = 'Duvall' List the name of musicals that do not have actors.,SELECT Name FROM musical WHERE NOT Musical_ID IN (SELECT Musical_ID FROM actor) What is the number of games for a club that has 34 match points?,"SELECT games FROM table_name_39 WHERE match_points = ""34""" "Among the establishments that paid a 500 fine, what is the percentage of restaurants?",SELECT CAST(COUNT(CASE WHEN T1.facility_type = 'Restaurant' THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.facility_type) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T3.fine = 500 What is the total number of rooms available in this inn?,SELECT count(*) FROM Rooms; How many stadiums are there with a capacity of 7500?,SELECT COUNT(stadium) FROM table_11208143_9 WHERE capacity = 7500 "Among the customers in the furniture market segment, how many of them have a nation key of 1?",SELECT COUNT(c_custkey) FROM customer WHERE c_mktsegment = 'FURNITURE' AND c_nationkey = 1 Who is the head of the country where Santa Catarina district belongs?,SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.District = 'Santa Catarina' "With a Rank of 19, and a Start of 14, what was the finish?","SELECT finish FROM table_name_41 WHERE rank = ""19"" AND start = ""14""" Can you tell me which customers placed orders between 2009-01-01 and 2010-0101? | do you want the id or the name of the customer? | The names,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed > = ""2009-01-01"" AND T2.date_order_placed < = ""2010-01-01""" Compare the number of legislators who started the term in 1875 and 2005.,SELECT SUM(CASE WHEN `current-terms`.start LIKE '2005%' THEN 1 ELSE 0 END) - ( SELECT SUM(CASE WHEN start LIKE '1875%' THEN 1 ELSE 0 END) FROM `historical-terms` ) FROM `current-terms` "Among the authors of the paper ""Stitching videos streamed by mobile phones in real-time"", how many of them are affiliated with Cairo Microsoft Innovation Lab?",SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'University of Tokyo' AND T2.Title = 'FIBER: A Generalized Framework for Auto-tuning Software' In what year was The House of Blue Leaves nominated for outstanding actress in a play?,"SELECT SUM(year) FROM table_name_62 WHERE nominated_work = ""the house of blue leaves"" AND category = ""outstanding actress in a play""" "Lastly, i will like to know the last name of all the engineers?",SELECT last_name from Maintenance_Engineers "Which movie was awarded Film of the Year on May 8, 1964?","SELECT film_of_the_year FROM table_name_2 WHERE date = ""may 8, 1964""" what is the date assigned from sales person?,select date_assigned_from from Staff_Department_Assignments where job_title_code = 'Sales Person' WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist?,"SELECT lkf_cup FROM table_name_69 WHERE europe = ""euroleague group stage"" AND regional_competitions = ""bbl elite division finalist""" "What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?","SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = ""state"" AND area = ""macraes flat""" "What is the highest Position when the against is less than 41, and lost is more than 7?",SELECT MAX(position) FROM table_name_23 WHERE against < 41 AND lost > 7 Name the insurgents for civilians being 49,"SELECT insurgents FROM table_name_75 WHERE civilians = ""49""" What is the name of the product that has the highest original price?,SELECT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` ORDER BY (T1.Sales / (1 - T1.Discount)) DESC LIMIT 1 When was the game played if the attendance is less than 6427.0?,SELECT date FROM table_16119656_1 WHERE attendance < 6427.0 How many workshops did each author submitted to,"SELECT T2.Author , COUNT ( DISTINCT T1.workshop_id ) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author" What date had a catalog of kicp-1321?,"SELECT date FROM table_name_61 WHERE catalog = ""kicp-1321""" What are the genres of games published by the publisher with an ID of 464?,SELECT DISTINCT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id INNER JOIN game_publisher AS T3 ON T1.id = T3.game_id WHERE T3.publisher_id = 464 Now show narrow down the list to just those who have not been involved in an election,SELECT Name FROM representative WHERE Representative_ID NOT IN ( SELECT Representative_ID FROM election ) On what date is there an assist/pass by Shannon Boxx?,"SELECT date FROM table_name_92 WHERE assist_pass = ""shannon boxx""" what are all the record where date is january 21,"SELECT record FROM table_13480122_5 WHERE date = ""January 21""" What were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4?,SELECT COUNT(cuts_made) FROM table_name_17 WHERE events > 4 AND top_10 < 4 How many laps did the rider Alex Baldolini take?,"SELECT SUM(laps) FROM table_name_94 WHERE rider = ""alex baldolini""" What are the top 3 categories with the most app users?,"SELECT T.category FROM ( SELECT T2.category, COUNT(T1.app_id) AS num FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id GROUP BY T2.category ) AS T ORDER BY T.num DESC LIMIT 3" In which city did the heaviest shipment transported?,SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T1.weight DESC LIMIT 1 How many wrestlers are there?,SELECT count ( * ) FROM wrestler What are the subjects of series that have a restricted type of license?,SELECT DISTINCT Topic FROM Series WHERE LicenseType = 'Restricted' What are the ids of all students and number of hours played?,"SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid" How many days did Hawthorn play as a home team?,"SELECT COUNT(date) FROM table_16388230_1 WHERE home_team = ""Hawthorn""" Can you display all student IDs with at least two allergies?,SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count ( * ) > = 2 What is the average money requested by all entrepreneurs?,SELECT avg(Money_Requested) FROM entrepreneur Show publishers that have more than one publication.,SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1 "What is the lowest total of player tommy ring, who has a rank greater than 1?","SELECT MIN(total) FROM table_name_62 WHERE player = ""tommy ring"" AND rank > 1" What's the singer part number of the buttonholer whose storage case is a green plastic box?,"SELECT singer_part_number FROM table_28652521_1 WHERE storage_case = ""green plastic box""" What is the latest November date with an Opponent of @ Pittsburgh Pirates and the game is more than 3?,"SELECT MAX(november) FROM table_name_55 WHERE opponent = ""@ pittsburgh pirates"" AND game > 3" Find the name of scientists who are not assigned to any project.,SELECT Name FROM scientists WHERE NOT ssn IN (SELECT scientist FROM AssignedTo) What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?,"SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" How many athletes completed a trans 1 within 0:26?,"SELECT COUNT(athlete) FROM table_17085947_32 WHERE trans_1 = ""0:26""" "What are the employee ids of employees who report to Payam, and what are their salaries?","SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )" "What was the phone of number of the client who made the complaint call ""CR0100432"" ?",SELECT T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Complaint ID` = 'CR0100432' List the name of tracks belongs to genre Rock or genre Jazz.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"" OR T1.name = ""Jazz""" Find the total ranking points for each player and their first name.,"SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name" Which Advisor has most of students? List advisor and the number of students.,"SELECT Advisor , count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;" Who is the winning party/coalition name in election year 1980?,SELECT winning_party_coalition FROM table_23512864_4 WHERE election_year = 1980 What is the title of a course that is listed in both the Statistics and Psychology departments?,SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology' Name the store with the highest quantity in sales? What is the least quantity title from the store's sale?,"SELECT T3.stor_id, T2.title FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id INNER JOIN stores AS T3 ON T3.stor_id = T1.stor_id WHERE T3.stor_id = ( SELECT stor_id FROM sales GROUP BY stor_id ORDER BY SUM(qty) DESC LIMIT 1 ) GROUP BY T3.stor_id, T2.title ORDER BY SUM(T1.qty) ASC LIMIT 1" Show me the price for each of those tracks | Do you mean unit price? | Yes,select unit_price from tracks Which song was released 12/8/70 with a time of 2:54?,"SELECT song_title FROM table_name_19 WHERE release_date = ""12/8/70"" AND time = ""2:54""" "What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15?","SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = ""19 2"" AND goals_against < 65" How about their cities and states?,"SELECT T1.first_name , T1.last_name, T1.city, T1.state FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5" "Was user 39115684 a trialist when he or she rated the movie ""A Way of Life""?",SELECT T1.user_trialist FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.user_id = 39115684 Find the title of the course that is offered by more than one department.,SELECT title FROM course GROUP BY title HAVING count(*) > 1 find the id of tv channels that do not play any cartoon directed by Ben Jones.,SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' "What record has candlestick park as the game site, and october 12, 2008 as the date?","SELECT record FROM table_name_36 WHERE game_site = ""candlestick park"" AND date = ""october 12, 2008""" How many directors are there?,SELECT COUNT ( DISTINCT director ) FROM Movie Return the characteristic names of the 'sesame' product.,"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""" Show names of technicians and the number of machines they are assigned to repair.,"SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name" What are the ids of all the employees who have destroyed documents?,SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed What type of settlement has a population of 1441?,SELECT type FROM table_2562572_26 WHERE population__2011_ = 1441 what is the grid when the time/retired is 1:46:42.3?,"SELECT SUM(grid) FROM table_name_61 WHERE time_retired = ""1:46:42.3""" Provide the type and end date of the term of the legislator named John Vining.,"SELECT T2.type, T2.end FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'John' AND T1.last_name = 'Vining'" What are the names of artists who did not have an exhibition in 2004?,SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004 which country did participated in the most number of Tournament competitions?,SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1 What is the least total?,SELECT MIN(total) FROM table_28723146_2 "For the third largest country, which ethinic group has the most population?","SELECT T2.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT Name FROM country ORDER BY Area DESC LIMIT 2, 1 ) GROUP BY T2.Name ORDER BY T2.Percentage * T1.Population DESC LIMIT 1" What was the score when the Blue Jays had a record of 39-20?,"SELECT score FROM table_name_56 WHERE record = ""39-20""" What is the percentage ratio between Democrats and Republicans in Indiana? List the zip codes belonging to Democrats.,SELECT CAST(COUNT(CASE WHEN T2.party = 'Democrat' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.party = 'Republican' THEN 1 ELSE NULL END)FROM zip_congress AS T1 INNER JOIN congress AS T2 ON T2.cognress_rep_id = T1.district Please list the first names of the coaches whose team played in 1922's Stanley Cup finals.,SELECT T3.firstName FROM Coaches AS T1 INNER JOIN TeamsSC AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.year = 1922 Sort all the industries in descending order of the count of companies in each industry,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC "What is the average rank of Roman Koudelka, who has less than 274.4 points?","SELECT AVG(rank) FROM table_name_41 WHERE points < 274.4 AND name = ""roman koudelka""" Which department IDs have manager ids that are from 0-100?,SELECT department_id FROM departments where manager_id > = 0 and manager_id < = 100 Name the power for 1.8 duratorq,"SELECT power_rpm FROM table_name_91 WHERE model_engine = ""1.8 duratorq""" Where did the ol go to college?,"SELECT college FROM table_20649850_1 WHERE position = ""OL""" What's the date of the new orleans team ?,"SELECT date FROM table_27734577_8 WHERE team = ""New Orleans""" Find the names of songs whose genre is modern or language is English.,"SELECT song_name FROM song WHERE genre_is = ""modern"" OR languages = ""english""" How many object dates have origin in Samoa?,"SELECT COUNT(object_date) FROM table_29635868_1 WHERE origin = ""Samoa""" What was the final score for the game played at 7:00 pm?,"SELECT result FROM table_name_16 WHERE time = ""7:00 pm""" Describe the students' full names and GPAs under the supervision of the most popular professor.,"SELECT T3.f_name, T3.l_name, T3.gpa FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id ORDER BY T1.popularity DESC LIMIT 1" What is the address for the customer with id 10?,SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10 What is the 2012 Employees (Total) when the rank (2012) is 7?,SELECT 2012 AS _employees__total_ FROM table_name_63 WHERE rank__2012_ = 7 What is the name of the song that was released in the most recent year?,"SELECT song_name, releasedate FROM song ORDER BY releasedate DESC LIMIT 1" How many seasons have an Actual adjusted record of 0–19?,"SELECT COUNT(season) FROM table_name_13 WHERE actual_adjusted_record = ""0–19""" "Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final?","SELECT date FROM table_name_65 WHERE opponents_in_the_final = ""akgul amanmuradova nina bratchikova""" How many points were won where new points was 1680?,SELECT MIN(points) AS won FROM table_27615896_18 WHERE new_points = 1680 Which round has the scorer of Di Matteo?,"SELECT round FROM table_name_56 WHERE scorers = ""di matteo""" What is the sum of the bronze medals of the nation with less than 0 silvers?,SELECT SUM(bronze) FROM table_name_42 WHERE silver < 0 Show ids for the faculty members who don't advise any student.,SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student What is the Location of the Stadium where Job Dragtsma is Manager?,"SELECT location FROM table_name_5 WHERE manager = ""job dragtsma""" Which yacht name has a Combined elapsed time of 179d 11h 58m 14s?,"SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = ""179d 11h 58m 14s""" What was the HT for the game at Stadio Luigi Ferraris?,"SELECT ht FROM table_name_31 WHERE venue = ""stadio luigi ferraris""" Which tournament has a clay surface and partner henri leconte in 1983?,"SELECT tournament FROM table_name_29 WHERE surface = ""clay"" AND partner = ""henri leconte"" AND date = 1983" Can I see that list in a descending order based on student count?,"SELECT count ( * ) , cName FROM tryout GROUP BY cName ORDER BY count ( * ) DESC" What is the lowest number of participants in 2012 when there were 72 in 2010 and less than 56 in 2013?,SELECT MIN(2012) FROM table_name_17 WHERE 2010 = 72 AND 2013 < 56 What PRR class has a Wheel arrangement of a1a-a1a?,"SELECT prr_class FROM table_name_33 WHERE wheel_arrangement = ""a1a-a1a""" What is the average number of Gold when the total is 11 with more than 2 silver?,SELECT AVG(gold) FROM table_name_3 WHERE total = 11 AND silver > 2 "Which vocal type did the musician with first name ""Solveig"" played in the song with title ""A Bar in Amsterdam""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = ""Solveig"" AND T2.title = ""A Bar In Amsterdam""" For which network was Chris Walby the color commentator after 1990?,"SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = ""chris walby""" "Among the suppliers providing parts under the type ""promo brushed steel"", how many of them are in debt?",SELECT COUNT(T3.s_name) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T3.s_acctbal < 0 AND T1.p_type = 'PROMO BRUSHED STEEL' What are the birth dates of all guests with the letter M in their first or last name?,SELECT date_of_birth FROM Guests where guest_first_name like '%M%' or guest_last_name like '%M%' What is sheffield united's away team?,"SELECT away_team FROM table_name_74 WHERE home_team = ""sheffield united""" Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.,"SELECT name , operating_system FROM web_client_accelerator EXCEPT SELECT T1.name , T1.operating_system 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 T3.name = 'Opera'" "For the method has the summary of ""Refetches the Entity from the persistent storage. Refetch is used to re-load an Entity which is marked ""Out-of-sync"", due to a save action. Refetching an empty Entity has no effect."", what is its solution path?","SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Summary = 'Refetches the Entity FROM the persistent storage. Refetch is used to re-load an Entity which is marked ""Out-of-sync"", due to a save action. Refetching an empty Entity has no effect.'" "What player's hometown is Abilene, Texas? ","SELECT player FROM table_11677691_3 WHERE hometown = ""Abilene, Texas""" "Which is the smallest First year when the population is 32,645?",SELECT MIN(first_year) FROM table_name_33 WHERE population = 32 OFFSET 645 What is the Tie no of the game with a Score of 1–1?,"SELECT tie_no FROM table_name_39 WHERE score = ""1–1""" What rank is the airport whose IATA Code is JFK?,"SELECT rank FROM table_18047346_5 WHERE iata_code = ""JFK""" Who has a friend that is from new york city?,SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city' Give me the star rating descriptions of the hotels that cost more than 10000.,SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 What is the name and distance for aircraft with id 12?,"SELECT name , distance FROM Aircraft WHERE aid = 12" Which recipe in the database contains the most total fat? Give its title.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat DESC LIMIT 1 Please list the country of the movie that stars an actress who acts the worse.,SELECT T3.country FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T1.a_gender = 'F' AND T1.a_quality = 0 "and how many in city code ""HHH""",select count ( ClubID ) from Club where ClubLocation = 'HHH' Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.,"SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid'" What was the rank of the swimmer with a time of 1:55.40?,"SELECT rank FROM table_name_23 WHERE time = ""1:55.40""" "Which Country has a FIS Nordic World Ski Championships of 1948, 1950?","SELECT country FROM table_name_96 WHERE fis_nordic_world_ski_championships = ""1948, 1950""" How many devices are there?,SELECT count(*) FROM device How many rounds have a position of C?,"SELECT COUNT(round) FROM table_name_95 WHERE position = ""c""" "Who is the Opponent on December 7, 2003?","SELECT opponent FROM table_name_22 WHERE date = ""december 7, 2003""" What grid is Ducati with fewer than 22 laps?,"SELECT grid FROM table_name_96 WHERE manufacturer = ""ducati"" AND laps < 22" What score has january 19 as the date?,"SELECT score FROM table_name_65 WHERE date = ""january 19""" What is the Date of Issue with a Theme with mental health?,"SELECT date_of_issue FROM table_name_3 WHERE theme = ""mental health""" "Among the customers over 30, how many of them are Machine-op-inspcts?",SELECT COUNT(ID) FROM Customers WHERE OCCUPATION = 'Machine-op-inspct' AND age > 30 Nusa Ina only played once while group 7 played.,"SELECT COUNT(group_7) FROM table_19523142_5 WHERE group_12 = ""Nusa Ina""" Find all the zip codes in which the max dew point have never reached 70.,SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70 "How many episode titles aired on September 25, 1967?","SELECT COUNT(title) FROM table_25800134_12 WHERE airdate = ""September 25, 1967""" "What is the Area of the Parish with a Population of 2,113?",SELECT COUNT(area_km_2) FROM table_name_58 WHERE population = 2 OFFSET 113 What are the points if the goals against were 260?,"SELECT points FROM table_name_95 WHERE goals_against = ""260""" Which lot has the highest average transaction amount?,"SELECT T2.lot_id , avg ( amount_of_transaction ) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg ( amount_of_transaction ) desc limit 1" "What is the average, minimum, and maximum age for all French singers?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'" Who is the auther when the english name was histories and eulogies of the sovereigns?,"SELECT author FROM table_22464685_1 WHERE english_name = ""Histories and Eulogies of the Sovereigns""" List the type of the book for the order which was sold on 1993/5/29.,"SELECT DISTINCT T1.type FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y-%m-%d', T2.ord_date) = '1993-05-29'" "What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club Denver Nuggets?","SELECT SUM(pick) FROM table_name_95 WHERE year = 2009 AND round < 2 AND nba_club = ""denver nuggets""" Find the location and all games score of the school that has Clemson as its team name.,"SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'" which city has most hispanic population?,SELECT Name FROM city ORDER BY Hispanic DESC LIMIT 1 What circuit features the placemakers v8 supercars race?,"SELECT circuit FROM table_20884163_2 WHERE race_title = ""PlaceMakers V8 Supercars""" what is the heat when the country is united kingdom and react is less than 0.232?,"SELECT MAX(heat) FROM table_name_91 WHERE country = ""united kingdom"" AND react < 0.232" What year was Metroid Prime Hunters 5 released?,"SELECT SUM(year) FROM table_name_7 WHERE title = ""metroid prime hunters 5""" What are the different states that had students successfully try out?,SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35?,SELECT MIN(run_2) FROM table_name_90 WHERE run_1 = 52.44 AND run_3 < 52.35 What is the highest number of laps for the driver with 5 points?,"SELECT MAX(laps) FROM table_name_41 WHERE points = ""5""" "What is the percentage of ""surface"" object samples in image No.2654?",SELECT CAST(SUM(CASE WHEN T2.OBJ_CLASS = 'surface' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.OBJ_CLASS_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 2654 Please list the full names of any three countries that have their series code with a description of UN Energy Statistics (2014).,SELECT DISTINCT T2.LongName FROM CountryNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Description = 'Sources: UN Energy Statistics (2014)' LIMIT 3 Give me the average and minimum price (in Euro) of the products.,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents" What is the payment method code used by the most orders?,SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1 In which district is the incumbent a republican first elected in 1998?,"SELECT district FROM table_name_33 WHERE party = ""republican"" AND first_elected = 1998" What country is Chad Campbell from?,"SELECT country FROM table_name_49 WHERE player = ""chad campbell""" What is Sandy Lyle's To Par?,"SELECT to_par FROM table_name_76 WHERE player = ""sandy lyle""" Who was the incumbent in Virginia 3?,"SELECT incumbent FROM table_2668374_18 WHERE district = ""Virginia 3""" Return the party email that has used party services the greatest number of times.,SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1 What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer?,"SELECT primary_sponsor_s_ FROM table_name_34 WHERE car_s_ = ""ford fusion"" AND crew_chief = ""drew blickensderfer""" Who is the opponent from September 28?,"SELECT opponent FROM table_name_13 WHERE date = ""september 28""" What is the record for April 8?,"SELECT record FROM table_name_5 WHERE date = ""april 8""" Which is the largest capacity of cinema?,SELECT max ( capacity ) FROM cinema What is the Enrollment where Cougars is a Mascot?,"SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = ""cougars""" What is the total number of Against that were played in the H Venue on 26 february 1949?,"SELECT COUNT(against) FROM table_name_59 WHERE venue = ""h"" AND date = ""26 february 1949""" Name the 2012 for when 2010 is q3,"SELECT 2012 FROM table_name_94 WHERE 2010 = ""q3""" What are all the catalog entry names?,SELECT distinct(catalog_entry_name) FROM catalog_contents "Which Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march?","SELECT circuit FROM table_name_93 WHERE winning_team = ""carlin motorsport"" AND winning_driver = ""oliver turvey"" AND date = ""24 march""" How many to par has the winning score of 69-66-68=203.,SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203 "What is the total number for Capacity at city stadium, borisov?","SELECT COUNT(capacity) FROM table_name_28 WHERE venue = ""city stadium, borisov""" Please provide the gender of at least one user who owns an HTC Desire 826 device.,SELECT T1.gender FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Desire 826' AND T2.phone_brand = 'HTC' "Hmm, I want to know the number of followers of each user.","SELECT name, followers FROM user_profiles" Which title has a translation of I know in it?,"SELECT title FROM table_name_76 WHERE translation = ""i know""" Who was the away team when the home team was Norwich City?,"SELECT away_team FROM table_name_83 WHERE home_team = ""norwich city""" Can you tell me the Played that has the Club of club?,"SELECT played FROM table_name_15 WHERE ""club"" = ""club""" Which country do most players of team Plymouth Whalers come from?,"SELECT T.nation FROM ( SELECT T1.nation, COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.TEAM = 'Plymouth Whalers' GROUP BY T1.nation ORDER BY COUNT(T1.ELITEID) DESC LIMIT 1 ) AS T" Return the ids of all products that were ordered more than three times or supplied more than 80000.,SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000 What is the total number of customers with an age below 30?,SELECT COUNT(ID) FROM Customers WHERE age < 30 "Among the menus that include baked apples with cream, who is the sponsor of the menu with the highest price?",SELECT T4.sponsor FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id INNER JOIN Menu AS T4 ON T4.id = T1.menu_id WHERE T3.name = 'Baked apples with cream' AND T3.id = 107 ORDER BY T2.price DESC LIMIT 1 What are the job ids for jobs done more than once for a period of more than 300 days?,SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2 "What is Division One's average Other Apps, with a League Goal less than 1?","SELECT AVG(other_apps) FROM table_name_76 WHERE division = ""one"" AND league_goals < 1" Find the name of the user who gives the most reviews.,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1 What is the To Par of Fredrik Jacobson?,"SELECT to_par FROM table_name_64 WHERE player = ""fredrik jacobson""" What categories did Bob Fosse win in?,"SELECT Category FROM musical WHERE Nominee = ""Bob Fosse"" AND Result = ""Won""" What was the name of the player that had a vote percentage of 7.85%?,"SELECT player FROM table_24765815_1 WHERE vote_percentage = ""7.85%""" "In the state with the highest number of schools, how many institutions have a percentage of no less than 90 of undergraduates who attend full-time? List all of the institutions' names.","SELECT COUNT(t1.unitid), t1.chronname FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON t1.state = t2.state WHERE t1.ft_pct > 90 ORDER BY t2.schools_count DESC LIMIT 1" "With the given loss of 4, what was the number of tries?","SELECT COUNT(tries_for) FROM table_17675675_2 WHERE lost = ""4""" How many Turkish universities are there in the database?,SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey' "What is the total number of Rating(s), when Weekly Rank is 76/88?","SELECT COUNT(rating) FROM table_name_7 WHERE weekly_rank = ""76/88""" What is the score of the Home team of geelong?,"SELECT home_team AS score FROM table_name_74 WHERE home_team = ""geelong""" How many viewers watched the episode written by shana goldberg-meehan & greg malins? ,"SELECT us_viewers__million_ FROM table_27403436_1 WHERE written_by = ""Shana Goldberg-Meehan & Greg Malins""" "What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?","SELECT flno , origin , destination FROM Flight ORDER BY origin" "In 1960, what is largest population for country with upper middle income?","SELECT MAX(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Upper middle income' AND T2.Year = 1960 AND T2.IndicatorName = 'Population, total'" Which date was the x gran premio di napoli?,"SELECT date FROM table_name_7 WHERE race_name = ""x gran premio di napoli""" How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million? ,"SELECT annual_interchanges__millions__2011_12 FROM table_18118221_1 WHERE annual_entry_exit__millions__2011_12 = ""36.609""" List all restaurant types.,SELECT ResTypeName FROM Restaurant_Type; "What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?","SELECT score FROM table_name_67 WHERE location = ""clemson, sc"" AND winner = ""clemson"" AND date = ""november 11, 2006""" What was the score of the game against montreal canadiens after game 26?,"SELECT score FROM table_name_59 WHERE game > 26 AND opponent = ""montreal canadiens""" "Who is the Winner, when the Surface is Carpet (i)?","SELECT winner FROM table_name_80 WHERE surface = ""carpet (i)""" What are their prices?,SELECT baseprice FROM Rooms What ingredients does the longest cooking time recipe have?,SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id ORDER BY T1.cook_min DESC LIMIT 1 What is the Studio of the Film with Director Gregory Ratoff after 1933?,"SELECT studio FROM table_name_38 WHERE year > 1933 AND director = ""gregory ratoff""" What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?,"SELECT first_name , last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163 )" What is the country of cordier?,"SELECT country FROM table_name_70 WHERE name = ""cordier""" What are the distinct Famous release dates?,SELECT distinct(Famous_Release_date) FROM artist Which nhl team has the player kevin mckay?,"SELECT nhl_team FROM table_2886617_3 WHERE player = ""Kevin McKay""" "In the match against Marcus Aurélio with a method of decision (unanimous), what was the results?","SELECT res FROM table_name_6 WHERE method = ""decision (unanimous)"" AND opponent = ""marcus aurélio""" What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?,SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' Name the city with Feb of 66 °f / 18.9 °c,"SELECT city FROM table_name_63 WHERE feb = ""66 °f / 18.9 °c""" What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?,SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 Who is the artist of the album Soul?,"SELECT artist FROM table_name_18 WHERE album = ""soul""" Name the result for goal # more than 4,SELECT result FROM table_name_92 WHERE goal__number > 4 "What are the total occurence of words that paired with ""nombre""?",SELECT SUM(T2.occurrences) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st IN (( SELECT wid FROM words WHERE word = 'nombre' ) OR T2.w2nd IN ( SELECT wid FROM words WHERE word = 'nombre' )) What are the product names that have a price higher than the average?,SELECT product_name FROM products WHERE product_price > ( SELECT avg ( product_price ) FROM products ) List the dates of debates with number of audience bigger than 150,SELECT Date FROM debate WHERE Num_of_Audience > 150 Find the total and average amount of settlements.,"SELECT SUM(settlement_amount), AVG(settlement_amount) FROM settlements" How many boxes of 'Pavlova' did Northwind sell?,SELECT COUNT(T2.Quantity) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Pavlova' "Identify the full name of the customer, who has the following email address: SHEILA.WELLS@sakilacustomer.org.","SELECT first_name, last_name FROM customer WHERE email = 'SHEILA.WELLS@sakilacustomer.org'" "Everything, please. I can see it in the table there. It's correct. Can you order it by salary in descending order? | Do you mean the employees who have the letters D or S in their first names? | In their first name, yes. Sorry. I misunderstood.",SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' How many different statuses do cities have?,SELECT count(DISTINCT Status) FROM city How many records have black knights points as 17?,SELECT COUNT(record) FROM table_21091162_1 WHERE black_knights_points = 17 Which service id and type has the least number of participants?,"SELECT T3.service_id , T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY count(*) ASC LIMIT 1" In what year was the church located in florø built?,"SELECT year_built FROM table_name_29 WHERE location_of_the_church = ""florø""" List album titles for albums containing Metal genre tracks,SELECT distinct T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Metal' Where there any Draws with 45 tries against?,"SELECT drawn FROM table_name_56 WHERE tries_against = ""45""" What is the largest value for lost with a position greater than 10?,SELECT MAX(lost) FROM table_name_89 WHERE position > 10 What are the descriptions and names of the courses that have student enrollment bigger than 2?,"SELECT T1.course_description , T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2" Return the nationalities for which there are two or more people.,SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 How about the location code with the least documents?,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count ( * ) LIMIT 1 "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?","SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" Find the first name of students living in city PHL whose age is between 20 and 25.,SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 "In businesses with an owner address 500 California St, 2nd Floor of Silicon Valley, list the type of inspection of the business with the highest score.","SELECT T1.type FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_address = '500 California St, 2nd Floor' AND T2.owner_city = 'SAN FRANCISCO' ORDER BY T1.score DESC LIMIT 1" Which Passengers have Carriers of air canada?,"SELECT passengers FROM table_name_65 WHERE carriers = ""air canada""" What are the average amount purchased and value purchased for the supplier who supplies the most products.,"SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)" Name the builder for 4/1906 and works number more than 199,"SELECT builder FROM table_name_90 WHERE works_number > 199 AND date = ""4/1906""" How many placed 4th on April 25?,"SELECT COUNT(4 AS th_placed) FROM table_19317584_2 WHERE date = ""April 25""" How many research assistants does the female professor with the lowest teaching ability have?,SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.teachingability = '1' AND T2.gender = 'Female' What are the names of wrestlers and the elimination moves?,"SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID" How many songs appear in studio albums?,"SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = ""Studio""" How many assets does each third party company supply? List the count and the company id.,"SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id" what is the total number of points when the constructor is citroën total world rally team and the wins is less than 7?,"SELECT COUNT(points) FROM table_name_72 WHERE constructor = ""citroën total world rally team"" AND wins < 7" "What kind of ""wi-fi"" does Yelp business No.""10172"" have?",SELECT T2.attribute_value FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.business_id = 10172 AND T1.attribute_name LIKE 'wi-fi' what is the age of smith | Do you mean the age of the student whose last name is Smith? | exactly,"SELECT Age FROM Student WHERE LName = ""Smith""" Please give the height of the tallest coach of the Montreal Canadiens.,SELECT T3.height FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Montreal Canadiens' AND T3.coachID IS NOT NULL ORDER BY T3.height DESC LIMIT 1 How many students are there?,SELECT count ( * ) FROM STUDENT what is the phone number of 102,select PHONE_NUMBER from employees where EMPLOYEE_ID = 102 "okay, can you show me all the names of dorm with male only students?","SELECT * FROM dorm where gender = ""M""" What is the torque of the 5.8l v12 engine?,"SELECT torque FROM table_name_15 WHERE engine = ""5.8l v12""" In which period did Stanislav Chistov get a penalty?,"SELECT period FROM table_name_9 WHERE player = ""stanislav chistov""" "Which opponent's event was sb 24 - return of the heavyweights 2, and had a method of TKO (knee and punches)?","SELECT opponent FROM table_name_2 WHERE event = ""sb 24 - return of the heavyweights 2"" AND method = ""tko (knee and punches)""" What are the code and description of the least frequent detention type ?,"SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1" What is the average price for a lesson taught by Janessa Sawayn?,"SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" What is the place of the Pinyin transcription Xi Wangri?,"SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = ""Xi Wangri""" What are the names of artists that have not had any exhibitions?,SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition) List down the issues for complaint with server time of below 10 minutes.,"SELECT T2.Issue FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%M', T1.ser_time) < '10'" List the names of universities with a score less than 28% of the average score of all universities in 2015.,SELECT T2.university_name FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 AND T1.score * 100 < ( SELECT AVG(score) * 28 FROM university_ranking_year WHERE year = 2015 ) What are the forename and surname of the driver who has the smallest laptime?,"SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1" "Calculate the average production rate per year from 1971 to 1980. Among them, name the cars with a weight of fewer than 1800 lbs.",SELECT CAST(COUNT(T1.ID) AS REAL) / 9 FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 UNION ALL SELECT DISTINCT T2.car_name FROM production AS T1 INNER JOIN data AS T2 ON T2.ID = T1.ID WHERE T1.model_year BETWEEN 1971 AND 1980 AND T2.weight < 1800 Find the numbers of different majors and cities.,"SELECT count(DISTINCT major) , count(DISTINCT city_code) FROM student" What is the name of each continent and how many car makers are there in each one?,"SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;" I want to know the home team for mcg venue,"SELECT home_team FROM table_name_71 WHERE venue = ""mcg""" Name the season outcome for smyrna,"SELECT season_outcome FROM table_name_89 WHERE school = ""smyrna""" What are the lot details of lots associated with transactions with share count smaller than 50?,SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50 Which countries have either English or Dutch as an official language?,"SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" AND IsOfficial = ""T"" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""Dutch"" AND IsOfficial = ""T""" What is the lowest Top-25 that has 3 Events and Wins greater than 0?,SELECT MIN(top_25) FROM table_name_94 WHERE events = 3 AND wins > 0 What is the largest population count in any of the census divisions in 2006?,SELECT MAX(pop__2006_) FROM table_2134521_1 What are the maximum price and score of wines produced by St. Helena appelation?,"SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = ""St. Helena""" What is the highest number of interceptions?,SELECT MAX(interceptions) FROM table_19418696_3 List all public schools and their locations.,"SELECT school , LOCATION FROM university WHERE affiliation = 'Public'" "What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player?","SELECT nationality FROM table_name_75 WHERE position = ""left wing"" AND round > 4 AND player = ""mattia baldi""" "List the research staff details, and order in ascending order.",SELECT staff_details FROM Research_Staff ORDER BY staff_details ASC Which campus has the most faculties in year 2003?,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 Name the number of conference tournament for james madison,"SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = ""James Madison""" "What is Tournament, when 2006 is ""A"", and when 2009 is ""A""?","SELECT tournament FROM table_name_93 WHERE 2006 = ""a"" AND 2009 = ""a""" "How many goals that were scored had a place of more than 5, a lost of 11, and goals conceded of less than 45?",SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45 What are the top 10 oldest movies and what are the average rating score for each movie? Indicate the name of the director and when the movies were released.,"SELECT T2.movie_id, AVG(T1.rating_score), T2.director_name, T2.movie_release_year FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.rating_timestamp_utc ASC LIMIT 10" Name the athlete for bulgaria with rank less than 22,"SELECT athlete FROM table_name_46 WHERE rank < 22 AND nation = ""bulgaria""" "oh that's a bit surprising, maybe this person is elevating the average a lot. Thank you, then could you please show me this customer's balance on both CHECKING and SAVINGS table?","SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > ( SELECT avg ( balance ) FROM savings ) " "How many people attended the September 14, 1968 game?","SELECT COUNT(attendance) FROM table_name_28 WHERE date = ""september 14, 1968""" List all points against with a 0 try bonus and points for of 150.,"SELECT points_against FROM table_17941032_2 WHERE try_bonus = ""0"" AND points_for = ""150""" "Who played the role of the ""president of NBC West Coast"" in the first episode?",SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE T3.episode = 1 AND T1.role = 'president of NBC West Coast' "What are the countries for each market, ordered alphabetically?",SELECT Country FROM market ORDER BY Country ASC What is the email for Customer name of Cleo with phone number 1-202-928-5395?,"SELECT customer_email FROM customers WHERE customer_name = ""Cleo"" AND customer_phone = ""1-202-928-5395""" Which gender makes up the majority of the staff?,SELECT gender FROM staff GROUP BY gender ORDER BY count ( * ) DESC LIMIT 1 "5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?",SELECT SUM(5 AS _hoops) FROM table_name_83 WHERE place > 7 AND total > 38.525 "Which Series has a Home of 2–0, and an Opponent of panathinaikos?","SELECT series FROM table_name_96 WHERE home = ""2–0"" AND opponent = ""panathinaikos""" What are the different first names and ages of the students who do have pets?,"SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid" What day is south melbourne the away side?,"SELECT date FROM table_name_21 WHERE away_team = ""south melbourne""" What was the purse when the trainer was Aidan O'Brien?,"SELECT purse FROM table_name_21 WHERE trainer = ""aidan o'brien""" Name the player and his team who made the playoffs in the 2006-2007 season of SuperElit league with the highest points.,"SELECT T2.PlayerName, T1.TEAM FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2006-2007' AND T1.GAMETYPE = 'Playoffs' AND T1.LEAGUE = 'SuperElit' ORDER BY T1.P DESC LIMIT 1" Show all origins and the number of flights from each origin.,"SELECT origin , count(*) FROM Flight GROUP BY origin" What team has a home of 2-3?,"SELECT teams FROM table_name_75 WHERE home = ""2-3""" "Among the winning game from the team, what is the percentage of the winning was home game.",SELECT CAST(homeWon AS REAL) * 100 / won FROM teams List the names of hosts who did not serve as a host of any party in our record.,SELECT Name FROM HOST WHERE Host_ID NOT IN (SELECT Host_ID FROM party_host) "In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?","SELECT tyre FROM table_name_50 WHERE pole_position = ""jacky ickx"" AND race = ""canadian grand prix""" Which is the Authority that has a Roll of 70?,"SELECT authority FROM table_name_4 WHERE roll = ""70""" What was the maximum number in written when the standard was 2? ,SELECT MAX(written) FROM table_19534874_2 WHERE standard = 2 "If Socialist is at 46.1%, what are all percentages for social democratic?","SELECT social_democratic FROM table_1463383_1 WHERE socialist = ""46.1%""" "State the last name and job title of owner for document ""Crank Arm and Tire Maintenance"".","SELECT T1.LastName, T3.JobTitle FROM Person AS T1 INNER JOIN Document AS T2 ON T1.BusinessEntityID = T2.Owner INNER JOIN Employee AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Title = 'Crank Arm and Tire Maintenance'" The match that was held at Club Med Sandpiper has what method?,"SELECT method FROM table_name_54 WHERE venue = ""club med sandpiper""" What is the Chinese name that has a 31 average?,SELECT chinese_title FROM table_11926114_1 WHERE average = 31 "What is the revision page ID of title ""Aigua dolça""?",SELECT revision FROM pages WHERE title = 'Aigua dolça' How many matches where played with Jim Pugh?,"SELECT COUNT(opponents) FROM table_1028356_3 WHERE partner = ""Jim Pugh""" What is the song for Dixie Chicks?,"SELECT song_title FROM table_23981771_1 WHERE artist = ""Dixie Chicks""" "Which manager won the most manager award? Give me the manager's first name, last name and id.","SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;" "Which episode has the two keywords ""nun"" and ""priest""?","SELECT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword IN ('nun', 'priest')" list the names of all movies,SELECT title FROM Movie What is the last name of the student who has a cat that is 3 years old?,SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat' What are the names of the representatives from those states?,select name from representative where state in ( SELECT state FROM representative GROUP BY State HAVING COUNT ( * ) > = 2 ) What is the represent province for the contestant whose hometown is Woerden? ,"SELECT represent_province FROM table_27946889_2 WHERE hometown = ""Woerden""" What is the signal power for JOAB-DTV?,"SELECT signal_power FROM table_2638104_1 WHERE callsign = ""JOAB-DTV""" "What is the title of the latest released movie produced by production company ""Universal Pictures""?",SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Universal Pictures' ORDER BY T3.release_date DESC LIMIT 1 What is the televote points for 0 jury points and 23 draws?,"SELECT televote_points FROM table_name_49 WHERE jury_points = ""0"" AND draw = 23" Can you show me the first names of customers and the number of accounts they have?,"SELECT T2.customer_first_name, count ( * ) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" How many years have an Opponent in the final of welby van horn?,"SELECT SUM(year) FROM table_name_74 WHERE opponent_in_the_final = ""welby van horn""" How many post offices are there in New York?,SELECT COUNT(DISTINCT T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.abbreviation = 'NY' AND T2.type = 'Post Office' What is name of the country that speaks the largest number of languages?,SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1 Find the full names of employees living in the city of Calgary.,"SELECT FirstName , LastName FROM EMPLOYEE WHERE City = ""Calgary""" Find the number of service members who complained in Syracuse.,SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Tags = 'Servicemember' AND T1.city = 'Syracuse' "ok,what is the maximum duration of trip with bike id 454?",SELECT max ( duration ) FROM trip WHERE bike_id = 454 Name the home with chicago visiting,"SELECT home FROM table_name_76 WHERE visitor = ""chicago""" In which country was the winner of the Outstanding Voice-Over Performance award of 2009 born?,SELECT T1.birth_country FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award = 'Outstanding Voice-Over Performance' AND T2.year = 2009 AND T2.result = 'Winner'; What is the result for the Green-Communist party when the Left Bloc has 3.0%?,"SELECT green_communist FROM table_name_87 WHERE left_bloc = ""3.0%""" "How many basketball arenas are there that belong to a school with a capacity of 3,000?","SELECT COUNT(basketball_arena) FROM table_1974545_3 WHERE capacity = ""3,000""" What is the type of allergy Cat?,"SELECT allergytype FROM Allergy_type WHERE allergy = ""Cat""" What is the diameter of the Archery Reverse coin?,"SELECT diameter FROM table_name_46 WHERE reverse = ""archery""" What was the result on 8 October 1961?,"SELECT result FROM table_name_26 WHERE date = ""8 october 1961""" What is the smallest game number with a record of 16-7-2?,"SELECT MIN(game) FROM table_name_44 WHERE record = ""16-7-2""" Whats the title of the episode with production code 109,SELECT title FROM table_15938543_1 WHERE production_code = 109 What is the aspect ratio of the DVD released on 12/10/2009?,"SELECT aspect_ratio FROM table_1180228_1 WHERE released = ""12/10/2009""" "Find all the papers published by ""Aaron Turon"".","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Aaron"" AND t1.lname = ""Turon""" What wast the percent cut for the nation with an 80% full gas storage?,"SELECT _percentage_cut FROM table_21690339_1 WHERE gas_storage = ""80% full""" Excellent! Would you be able to update that list to also include the year each film was released?,"SELECT T1.title , T1.director, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title ORDER BY T1.director , T1.title" how many employees there,SELECT count ( * ) from Employees What's the city/state of Hidden Valley Raceway?,"SELECT city___state FROM table_name_16 WHERE circuit = ""hidden valley raceway""" Which Points have an Opponent of @ pittsburgh penguins?,"SELECT MAX(points) FROM table_name_86 WHERE opponent = ""@ pittsburgh penguins""" how many people are there,select count ( * ) from people What parishes are in Solvorn? ,"SELECT parish__prestegjeld_ FROM table_178398_1 WHERE location_of_the_church = ""Solvorn""" How many friends does Alice have?,SELECT count ( T2.friend ) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' What is the salary of that employee?,SELECT salary FROM employees WHERE job_id = 'PU_MAN' "What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0?","SELECT MIN(losses) FROM table_name_24 WHERE wins < 15 AND golden_rivers = ""quambatook"" AND draws > 0" What are the birth places that are shared by at least two people?,SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2 "What attendance has October 16, 2005 as the date?","SELECT attendance FROM table_name_81 WHERE date = ""october 16, 2005""" what are the average and maximum attendances of all events?,"SELECT avg(Event_Attendance) , max(Event_Attendance) FROM event" What is Robert Dirk's team?,"SELECT college_junior_club_team FROM table_2850912_3 WHERE player = ""Robert Dirk""" What player has +21 as the to par?,"SELECT player FROM table_name_36 WHERE to_par = ""+21""" What events took place in episode 12?,SELECT events FROM table_24051050_1 WHERE episode = 12 What is the average earnings made by Greg Norman?,"SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = ""greg norman""" how many phones are presented on the table | Did you mean to ask for the number of entries in the table phone? | exactly,SELECT COUNT ( * ) FROM phone What's the exponent field that has 255 exp and value of +∞?,"SELECT exponent_field FROM table_name_93 WHERE exp__biased_ = ""255"" AND value = ""+∞""" Find the name of the department that has the biggest number of students minored in?,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1 What is the average age of Argentina's athletes who participated in the Summer Olympics in 2012?,SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person_region AS T3 ON T2.person_id = T3.person_id INNER JOIN noc_region AS T4 ON T3.region_id = T4.id WHERE T1.games_name = '2012 Summer' AND T4.region_name = 'Argentina' What are the dates and locations of performances?,"SELECT Date, LOCATION FROM performance" How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina?,"SELECT COUNT(runner_up) FROM table_11214772_2 WHERE semi_finalist__number1 = ""Western Carolina"" AND year = 2005" "what is the rank for the city of cologne, floors is 34 and height (ft) is more than 452.8?","SELECT COUNT(rank) FROM table_name_90 WHERE city = ""cologne"" AND floors = 34 AND height__ft_ > 452.8" What is the average balance in checking accounts?,SELECT avg(balance) FROM checking What are the songs in volumes associated with the artist aged 32 or older?,SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 How many contestants of whatever age are there whose hometown of Andujar?,"SELECT COUNT(age) FROM table_23476629_2 WHERE hometown = ""Andujar""" Which athlete had a score of 236.023?,"SELECT athlete FROM table_name_55 WHERE score = ""236.023""" "Please give the name of the director who achieved the Outstanding Animated Program (For Programming Less Than One Hour) award whose episode title is ""No Loan Again, Naturally"".","SELECT T1.person FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.role = 'director' AND T1.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T2.title = 'No Loan Again, Naturally';" What is the title of the episode with series number 14?,SELECT episode_title FROM table_28967275_2 WHERE series__number = 14 What team has more than 32 games and 311 rebounds?,SELECT team FROM table_name_27 WHERE games > 32 AND rebounds = 311 Which venue was used for the game whose score was 2:3?,"SELECT venue FROM table_name_25 WHERE score = ""2:3""" What is the average number of attendance at home games for each year?,"SELECT YEAR , avg(attendance) FROM home_game GROUP BY YEAR;" Which patient is undergoing the most recent treatment?,SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1 How many capacities are given for FF Jaro club?,"SELECT COUNT(capacity) FROM table_25129482_1 WHERE club = ""FF Jaro""" How many flights of Endeavor Air Inc. were faster than scheduled on 2018/8/31?,SELECT SUM(CASE WHEN T1.ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME THEN 1 ELSE 0 END) AS count FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.FL_DATE = '2018/8/31' AND T2.Description = 'Endeavor Air Inc.: 9E' Name the number of episodes that jim barnes wrote for 1.82 million viewers,"SELECT COUNT(no) FROM table_29329432_1 WHERE written_by = ""Jim Barnes"" AND us_viewers__million_ = ""1.82""" How many employees have Andrew Fuller as their direct supervisor?,SELECT COUNT(EmployeeID) FROM Employees WHERE ReportsTo = ( SELECT EmployeeID FROM Employees WHERE LastName = 'Fuller' AND FirstName = 'Andrew' ) Find all the songs that do not have a lead vocal.,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""lead""" At what venue was the 2010 FIFA World Cup Qualification?,"SELECT venue FROM table_name_2 WHERE competition = ""2010 fifa world cup qualification""" How many students were there in University of Michigan in 2011?,SELECT COUNT(*) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'University of Michigan' AND T2.year = 2011 What is the total production of the products from the supplier “Escargots Nouveaux”?,SELECT SUM(T1.UnitsInStock + T1.UnitsOnOrder) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Escargots Nouveaux' How many institutions are there?,SELECT count(*) FROM inst What classroom does this teacher teach in?,SELECT DISTINCT T2.classroom FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 Name the date for turco decision and home of st. louis,"SELECT date FROM table_name_5 WHERE decision = ""turco"" AND home = ""st. louis""" Nam the opponent for prudential center,"SELECT opponent FROM table_16864968_9 WHERE location = ""Prudential Center""" "What is 2011, when 2008 is ""2R""?","SELECT 2011 FROM table_name_40 WHERE 2008 = ""2r""" List the most common type of competition.,SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1 Return the name and ID of the furniture with the highest market rate,"SELECT name , furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1" "How many users answered ""No"" to the question ""Would you bring up a mental health issue with a potential employer in an interview?"" in 2014's survey?",SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'Would you bring up a mental health issue with a potential employer in an interview?' AND T2.SurveyID = 2014 AND T2.AnswerText LIKE 'NO' What was the 2nd event aired on 8 June 2008?,"SELECT event_2 FROM table_name_32 WHERE air_date = ""8 june 2008""" Which customer bought the most items? | Do you want the name of the customer? | That would be lovely.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) DESC LIMIT 1 "What is Date, when Site is ""Louisiana Superdome • New Orleans, LA""?","SELECT date FROM table_name_65 WHERE site = ""louisiana superdome • new orleans, la""" And what is the full name of the teacher with author id 6?,"SELECT personal_name, middle_name, family_name from Course_Authors_and_Tutors where author_id = 6" Which athlete had a six month suspension from IIHF?,"SELECT athlete FROM table_name_55 WHERE punishment = ""six month suspension from iihf""" Name the gdp world rank for asian rank being 20,SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 20 "What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?","SELECT set_4 FROM table_name_64 WHERE date = ""jun 27"" AND set_3 = ""17-25""" "What club has less than 10 losses, less than 55 goals, and 13 wins?",SELECT club FROM table_name_47 WHERE losses < 10 AND goals_for < 55 AND wins = 13 What country is the artist who made the fewest songs from?,SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1 Give the full name and customer id of the customer with the fewest accounts.,"SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1" "What is listed as the highest Participants that also have a Rank of 5, and Silver that's smaller than 0?",SELECT MAX(participants) FROM table_name_13 WHERE rank = 5 AND silver < 0 "For season 9, episode 17 of the show Law and Order, how many roles have been included in the credit?",SELECT COUNT(T2.role) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.series = 'Law and Order' AND T1.season = 9 AND T1.episode = 17 AND T2.credited = 'true' What is all the information about the Marketing department?,SELECT * FROM departments WHERE department_name = 'Marketing' What Chassis had a Weslake v12 in it?,"SELECT chassis FROM table_name_30 WHERE engine = ""weslake v12""" What is the 1990–1991 Team that had Joel Otto?,"SELECT 1990 AS _1991_team FROM table_name_41 WHERE name = ""joel otto""" When dxcc-tv is the call sign how many station types are there?,"SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = ""DXCC-TV""" What was the final score of game 26?,SELECT score FROM table_name_64 WHERE game = 26 How many times has Watney made the top 25 for a tournament in which he as also been cut 6 times?,SELECT SUM(top_25) FROM table_name_47 WHERE cuts_made = 6 What is the ratio of customer to subscriber that making a trip inside Mountain View city?,SELECT CAST(SUM(CASE WHEN T1.subscription_type = 'Customer' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.subscription_type = 'Subscriber' THEN 1 ELSE 0 END) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Mountain View' "What is the location of the club named ""Tennis Club""?","SELECT clublocation FROM club WHERE clubname = ""Tennis Club""" What nationality is Demetris Nichols?,"SELECT nationality FROM table_name_1 WHERE player = ""demetris nichols""" Which one is the cheapest business book?,SELECT title FROM titles WHERE type = 'business' ORDER BY price LIMIT 1 Show the id and builder of the railway that are associated with the most trains.,"SELECT T2.Railway_ID , T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1" what are the name for the regions?,Select region_name from region Who is the advisor of student with ID 1004?,SELECT Advisor FROM Student WHERE StuID = 1004 What is the percentage of Primetime Emmy nominated episodes with a rating over 7 to all the episodes that have a rating over 7?,SELECT CAST(SUM(CASE WHEN T1.award_category = 'Primetime Emmy' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.rating > 7 AND T1.result = 'Nominee'; Tell the name of the shipper company for the order No.10585.,SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.OrderID = 10585 Give the full name of the employee who has sold the most quantity.,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID ORDER BY T2.Quantity DESC LIMIT 1" Tell me the NHL team for mike gaffney,"SELECT nhl_team FROM table_name_53 WHERE player = ""mike gaffney""" "What is the total number of Matches, when Clubs is 588 → 406?","SELECT COUNT(matches) FROM table_name_16 WHERE clubs = ""588 → 406""" Indicate the patient's full name with the lowest body mass index in kg/m2.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Body Mass Index' AND T2.UNITS = 'kg/m2' ORDER BY T2.VALUE LIMIT 1" "Calculate the ratio in percentage between the average number of app users belonging to ""80s Japanese comic"" and ""90s Japanese comic"".","SELECT SUM(IIF(T1.category = '80s Japanese comic', 1, 0)) / COUNT(T1.label_id) AS J8 , SUM(IIF(T1.category = '90s Japanese comic', 1, 0)) / COUNT(T1.label_id) AS J9 FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id" What is the config core 1 of the model with a processing power GFLOPs of 432?,"SELECT config_core_1 FROM table_26860595_2 WHERE processing_power_gflops = ""432""" What is the name of the project with the highest hours?,SELECT name FROM Projects order by hours desc limit 1 What is the average draw for 186 games?,SELECT AVG(draw) FROM table_name_33 WHERE total_games = 186 Tell me the total number of bronze for silver being 0 and sport of wrestling and total more than 3,"SELECT COUNT(bronze) FROM table_name_16 WHERE silver = 0 AND sport = ""wrestling"" AND total > 3" Please list the first names of the coaches who have taught the Montreal Canadiens.,SELECT DISTINCT T3.firstName FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Montreal Canadiens' Which donor has donated the most for a project whose main subject area is Literacy & Language? Please give his or her ID.,SELECT T2.donor_acctid FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.primary_focus_area = 'Literacy & Language' ORDER BY T2.donation_total DESC LIMIT 1 What is the D 50 when the D 41 is d 41?,"SELECT d_50 FROM table_name_65 WHERE d_41 = ""d 41""" what is the average gold when rank is total and silver is more than 20?,"SELECT AVG(gold) FROM table_name_32 WHERE rank = ""total"" AND silver > 20" How many CSU campuses are there?,SELECT COUNT(*) FROM campuses List out the number of disabled students who enlisted in marines.,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'marines' What is Denmark's rank?,"SELECT rank FROM table_name_87 WHERE nation = ""denmark""" Work out the difference in revenues made between the English and Latin movies.,SELECT SUM(CASE WHEN T3.language_name = 'English' THEN T1.revenue ELSE 0 END) - SUM(CASE WHEN T3.language_name = 'Latin' THEN T1.revenue ELSE 0 END) AS DIFFERENCE FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id "What is the largest height when the prominence is 3,118?",SELECT MAX(height__m_) FROM table_name_98 WHERE prominence__m_ = 3 OFFSET 118 What is the average price of these products?,SELECT avg ( T2.product_price ) FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 Provide all the orders from WARE-NMK1003. Name the product and sales team for each of these order.,"SELECT DISTINCT T1.`Product Name`, T3.`Sales Team` FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Sales Team` AS T3 ON T3.SalesTeamID = T2._SalesTeamID WHERE T2.WarehouseCode = 'WARE-NMK1003'" "How much Jury has an Artist of chalice & maagiline kuues, and a Draw smaller than 5?","SELECT COUNT(jury) FROM table_name_66 WHERE artist = ""chalice & maagiline kuues"" AND draw < 5" How many phones belongs to each accreditation type?,"SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type" What is the name of the corporate customer from Rhode Island who had the highest number of orders in 2016 from the east superstore?,"SELECT T2.`Customer Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.Segment = 'Corporate' AND T2.State = 'Rhode Island' AND T2.Region = 'East' AND STRFTIME('%Y', T1.`Order Date`) = '2016' GROUP BY T2.`Customer Name` ORDER BY COUNT(T2.`Customer Name`) DESC LIMIT 1" What is the highest game with team @ l.a. clippers?,"SELECT MAX(game) FROM table_27756314_8 WHERE team = ""@ L.A. Clippers""" what is the team when the location attendace is boston garden and the series is 0-1?,"SELECT team FROM table_name_31 WHERE location_attendance = ""boston garden"" AND series = ""0-1""" "Which Tie #has an Attendance of 54,591?","SELECT tie_no FROM table_name_16 WHERE attendance = ""54,591""" Show the station name with at least two trains.,SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING count(*) >= 2 When did the episode with the Ririe family air for the first time?,"SELECT original_air_date FROM table_19897294_10 WHERE family_families = ""The Ririe Family""" Describe the students' full names and grades in Intro to BlockChain course.,"SELECT T1.f_name, T1.l_name, T2.grade FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Intro to BlockChain'" What position did the player from East Texas State play?,"SELECT position FROM table_name_33 WHERE school = ""east texas state""" How many distinct publication dates are there in our record?,SELECT COUNT (DISTINCT Publication_Date) FROM publication Which Perth's gold coast and Adelaide were yes when Auckland was no?,"SELECT perth FROM table_name_51 WHERE gold_coast = ""yes"" AND adelaide = ""yes"" AND auckland = ""no""" What is the total points for GP/GS of 24/23?,"SELECT total_points FROM table_name_28 WHERE gp_gs = ""24/23""" What are names of all the students enrolled in the course? | Do you mean the first name and last name of all the students enrolled in the course? | Just the first names,SELECT Fname FROM STUDENT WHERE StuID IN ( SELECT StuID FROM ENROLLED_IN ) What is the total on average for teams with 3 tournaments?,SELECT AVG(total) FROM table_name_8 WHERE tournament = 3 Which college has the largest enrollment?,SELECT cname FROM college WHERE enr = ( SELECT max ( enr ) FROM college ) What is the range (varies by payload weight) for Shahab-4?,"SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = ""shahab-4""" What is the brand of truck used in shipment id 1011?,SELECT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1011' "With a FA Cup of 0 44 0 (0), the other [C] is listed as what?","SELECT other_[c_] FROM table_name_46 WHERE fa_cup = ""0 44 0 (0)""" What is the greatest draw that has 4th for place?,"SELECT MAX(draw) FROM table_name_62 WHERE place = ""4th""" What are the age and hometown of teachers?,"SELECT Age , Hometown FROM teacher" What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?,"SELECT 2012 FROM table_name_6 WHERE 2003 = ""2r"" AND tournament = ""wimbledon""" Find the state and country of all cities with post code starting with 4.,"SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE ""4%""" What college has the Chicago stags and position is G?,"SELECT college FROM table_name_78 WHERE team = ""chicago stags"" AND position = ""g""" "When the grid number is 10, what is the total number of laps?",SELECT COUNT(laps) FROM table_name_39 WHERE grid = 10 "What is 1995, when Tournament is ""Miami""?","SELECT 1995 FROM table_name_36 WHERE tournament = ""miami""" How many professors do you have in buildings? | Can you clarify your question? | Total number of professors in NEB building?,"SELECT count ( * ) FROM Faculty WHERE Rank = ""Professor"" AND building = ""NEB""" "How many of the crimes that happened in the street have FBI title ""Homicide 1st & 2nd Degree""?",SELECT SUM(CASE WHEN T2.location_description = 'STREET' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Homicide 1st & 2nd Degree' How many parties is Tom Foley a member of?,"SELECT COUNT(party) FROM table_1341568_48 WHERE incumbent = ""Tom Foley""" what is the model where the processor is yorkfield and the brand name is xeon?,"SELECT model__list_ FROM table_24101118_1 WHERE processor = ""Yorkfield"" AND brand_name = ""Xeon""" Which district has the largest land area in Wisconsin? Write the full name of the congress representative and include the postal codes.,"SELECT T2.zip_code, T1.first_name, T1.last_name FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.state = 'Wisconsin' ORDER BY T1.land_area DESC LIMIT 1" What is the full name of the instructor who has a course named COMPUTER LITERACY?,"SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = ""COMPUTER LITERACY""" "What is Package/Option, when Content is Poker?","SELECT package_option FROM table_name_3 WHERE content = ""poker""" "How many degrees did ""San Jose State University"" confer in 2000?","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND t2.year = 2000" What was the nomination in a year earlier than 2009?,SELECT nomination FROM table_name_43 WHERE year < 2009 What is the name for the locomotive n464?,"SELECT name FROM table_name_95 WHERE locomotive = ""n464""" Find the names of the chip models that are not used by any phone with full accreditation type.,SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' What is the total number of goals on the debut date of 14-04-1907?,"SELECT COUNT(number_of_goals) FROM table_11585313_1 WHERE date_of_debut = ""14-04-1907""" hi! How many transactions have greater than 10 share count?,SELECT count ( * ) from transactions WHERE share_count > 10 What are the companies that have the same phone area code as 171?,SELECT CompanyName FROM Customers WHERE Phone LIKE '(171)%' "What was the final score agains Dynamo Kyiv, when the group position was 1st?","SELECT result_f___a FROM table_name_39 WHERE group_position = ""1st"" AND opponents = ""dynamo kyiv""" "Among all the customers, how many of them are teenagers?",SELECT COUNT(ID) FROM Customers WHERE age >= 13 AND age <= 19 Wonderful! Can you show me what the oldest settlement effective date is?,SELECT Effective_Date FROM settlements order by Effective_Date limit 1 Name the visitor for march 23,"SELECT visitor FROM table_22871239_9 WHERE date = ""March 23""" "Which League Cup goals have a Scorer of ken houghton, and an FA Cup goals smaller than 0?","SELECT MAX(league_cup_goals) FROM table_name_93 WHERE scorer = ""ken houghton"" AND fa_cup_goals < 0" Report the distinct registration date and the election cycle.,"SELECT DISTINCT Registration_Date, Election_Cycle FROM VOTING_RECORD" "Total for 1994, 1997 years won?","SELECT SUM(total) FROM table_name_33 WHERE year_s__won = ""1994, 1997""" "Which stadium is located in Adelaide, South Australia? ","SELECT stadium FROM table_28885977_1 WHERE location = ""Adelaide, South Australia""" What are the publication dates of the 3 lowest priced publications?,SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3 Which player from Wake Forest college did the most offensive rebounds than defensive rebounds in the all-star? Please mention the full name of the player including the middle name if have any.,"SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'Wake Forest' AND T2.o_rebounds > T2.d_rebounds" "What is the unit of measurement of product named ""cumin""?","SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""cumin""" what was the away team score in a game with north melbourne as home team?,"SELECT away_team AS score FROM table_name_31 WHERE home_team = ""melbourne""" What are the names of the dishes shown in the lower right corner of menu page 48706?,SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T1.xpos > 0.75 AND T1.ypos > 0.75 AND T1.menu_page_id = 48706 "What was the attendance on November 3, 1968, that was a week smaller than 8?","SELECT COUNT(attendance) FROM table_name_81 WHERE date = ""november 3, 1968"" AND week < 8" Find the patient who most recently stayed in room 112?,SELECT patient FROM stay WHERE room = 112 ORDER BY staystart DESC LIMIT 1 When did the earliest tournament happened?,SELECT MIN(year) FROM table_27611593_5 What character did Vicky Versavel play for 13 years?,"SELECT character FROM table_name_93 WHERE duration = ""13 years"" AND actor = ""vicky versavel""" List the top 5 shopping apps with the most reviews.,SELECT DISTINCT App FROM playstore WHERE Genres = 'Shopping' GROUP BY App ORDER BY COUNT(App) DESC LIMIT 5 Which Senior status has a Chief Judge of 1991–1995?,"SELECT senior_status FROM table_name_30 WHERE chief_judge = ""1991–1995""" Write down the notes of employee with the highest salary.,SELECT Notes FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees ) How many countries are our customers located in?,SELECT count ( distinct country ) FROM customers What are the official languages of the countries of players from Maryland or Duke college?,"SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = ""Maryland"" OR T2.College = ""Duke""" How many dams are there in the Nome (CA) area?,"SELECT MIN(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = ""Nome (CA)""" Name the title that got 1.54 viewers,"SELECT title FROM table_22347090_5 WHERE us_viewers__million_ = ""1.54""" what's the total number of title for production code 39,SELECT COUNT(title) FROM table_12226390_3 WHERE production_code = 39 What is the language of method number 28 that can be found in the repository number 3?,SELECT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 28 AND T1.RepoId = 3 Find the average checking balance.,SELECT AVG(balance) FROM checking What is the Model of the Engine with 29 Seats Built in 1941–1942?,"SELECT model FROM table_name_85 WHERE seats = 29 AND built = ""1941–1942""" "What was the final score of the player from Inglewood, California?","SELECT score FROM table_name_14 WHERE city = ""inglewood, california""" can you tell me the staff id of the project which did not have researcher role ?,SELECT T1.staff_id FROM Project_Staff AS T1 JOIN Projects AS T2 WHERE T1.project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) Count the number of customers who do not have an account.,SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts) "What is the average FAC/LC apps with a CL G greater than 0, less than 33 PL apps, a FAC/LC G of 0, and less than 2 FA YC?",SELECT AVG(fac___lc_apps) FROM table_name_46 WHERE cl_g > 0 AND pl_apps < 33 AND fac___lc_g = 0 AND fa_yc < 2 How many grids for heinz-harald frentzen with 61 laps?,"SELECT COUNT(grid) FROM table_name_12 WHERE laps = 61 AND driver = ""heinz-harald frentzen""" Show all the locations with at least two cinemas with capacity above 300.,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2 How many points were made when the tries for was 83?,"SELECT points FROM table_14058433_3 WHERE tries_for = ""83""" Name the unemployment rate for botetourt,"SELECT unemployment_rate FROM table_22815568_12 WHERE county = ""Botetourt""" When 12 is the rank who is the most recent cyclist?,"SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = ""12""" Please list all the questions in the mental health survey for 2014.,SELECT T2.questiontext FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid INNER JOIN Survey AS T3 ON T1.SurveyID = T3.SurveyID WHERE T3.Description LIKE 'mental health survey for 2014' GROUP BY T2.questiontext "What is the highest Apps, when Goals are greater than 5?",SELECT MAX(apps) FROM table_name_58 WHERE goals > 5 What was Tom Donchez pick number?,"SELECT pick__number FROM table_name_21 WHERE player = ""tom donchez""" Show the city and the number of branches opened before 2010 for each city.,"SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city" What date did the episode with 8.61 million U.S. viewers originally air?,"SELECT original_air_date FROM table_24648983_1 WHERE us_viewers__million_ = ""8.61""" When the Altrincham was the home team what was the tie no?,"SELECT tie_no FROM table_name_52 WHERE home_team = ""altrincham""" Find the female friends of Alice.,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' Name the college/junior club team for pick number 63,SELECT college_junior_club_team FROM table_1473672_4 WHERE pick__number = 63 What is the Place of the couple with a Rank smaller than 7 and 514.55 Points?,SELECT SUM(placings) FROM table_name_22 WHERE rank < 7 AND points = 514.55 Return the average enrollment of universities founded before 1850.,SELECT avg(enrollment) FROM university WHERE founded < 1850 "Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm","SELECT l3_cache FROM table_24538587_13 WHERE brand_name__list_ = ""Core i7-2xxxQE, i7-26xxQM, i7-27xxQM""" What was the venue that had a friendly match competition?,"SELECT venue FROM table_name_49 WHERE competition = ""friendly match""" How many matches has 51 draws and more than 6 against?,SELECT SUM(matches) FROM table_name_86 WHERE against > 6 AND draw = 51 What is the home team when the visiting team is the Mavericks?,"SELECT home FROM table_name_26 WHERE visitor = ""mavericks""" What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament?,"SELECT runners_up FROM table_name_80 WHERE champions = ""ivan lendl"" AND name_of_tournament = ""seiko super tennis"" AND year < 1990" Which country does the player pele belong to?,"SELECT country FROM table_name_85 WHERE name = ""pele""" "Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?","SELECT SUM(pos) FROM table_name_41 WHERE make = ""chevrolet"" AND driver = ""jack sprague"" AND car__number < 2" what is the value of the audio with a just ratio 21:20,"SELECT audio FROM table_name_28 WHERE just_ratio = ""21:20""" Provide a full list of countries and its population with more than 70% of Chinese.,"SELECT T1.Name, T1.Population * T2.Percentage FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Chinese' AND T2.Percentage > 70" What is the number of the tax supervising and conservation bill?,"SELECT MIN(meas_num) FROM table_256286_23 WHERE description = ""Tax Supervising and Conservation Bill""" "What is High Points, when Game is ""5""?",SELECT high_points FROM table_name_5 WHERE game = 5 Please list the motif of the genes that are located in the cytoplasm and have 7 chromosomes.,"SELECT T2.GeneID1, T2.GeneID2 FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Localization = 'cytoplasm' AND T1.Chromosome = 7" "What episode number of the series aired on February 26, 1968?","SELECT series__number FROM table_25800134_12 WHERE airdate = ""February 26, 1968""" Show the locations that have more than one railways.,SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*) > 1 "Among the male customers, how many of them come from a place with over 30,000 inhabitants?",SELECT COUNT(T1.GEOID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Male' AND T2.INHABITANTS_K > 30 Which country produced the highest number of cars? Calculate the annual average number of cars that the said country produced from the very start to the present.,"SELECT T2.country, CAST(COUNT(T1.ID) AS REAL) / COUNT(DISTINCT T1.model_year) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin GROUP BY T2.country ORDER BY COUNT(T2.country) DESC LIMIT 1" What is the Nominated work of popularity award (actor in a motion picture)?,"SELECT nominated_work FROM table_name_29 WHERE category = ""popularity award (actor in a motion picture)""" What are the document type codes of documents with the letter 's' in the name with any expense budgets?,SELECT T1.Document_Type_Code FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' what's the record with high points being dwyane wade (27) and location attendance being arco arena,"SELECT record FROM table_13762472_4 WHERE high_points = ""Dwyane Wade (27)"" AND location_attendance = ""ARCO Arena""" On what date did the away team Melbourne play?,"SELECT date FROM table_name_83 WHERE away_team = ""melbourne""" What are the names of the courses that the students with the lowest intelligence are least satisfied with?,SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.sat = 1 AND T1.intelligence = 1 How many establishments with the tax code H24 have complaint inspections of 5 or more?,SELECT COUNT(*) FROM ( SELECT T1.business_id FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.tax_code = 'H24' AND T1.type = 'Complaint' GROUP BY T1.business_id HAVING COUNT(T1.business_id) > 5 ) T3 Count the number of different official languages corresponding to countries that players who play Defender are from.,"SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" What is the minimum snatch score?,SELECT MIN(snatch) FROM body_builder What is the grid total for kazuyoshi hoshino with under 71 laps?,"SELECT SUM(grid) FROM table_name_22 WHERE driver = ""kazuyoshi hoshino"" AND laps < 71" "What's the series number of the episode with a season number 5, written by Bernie Ancheta?","SELECT MIN(no_in_series) FROM table_23403578_3 WHERE written_by = ""Bernie Ancheta"" AND no_in_season = 5" "Who is the first student to register? List the first name, middle name and last name.","SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered LIMIT 1" What party did incumbent Stephen L. Neal belong to? ,"SELECT party FROM table_1341568_34 WHERE incumbent = ""Stephen L. Neal""" "What is the exercise when the equipment is heart rate monitor, water and towel?","SELECT exercise FROM table_27512025_1 WHERE equipment = ""Heart rate monitor, water and towel""" What are the average byes of Bonnie Doon having more than 16 wins?,"SELECT AVG(byes) FROM table_name_54 WHERE benalla_dfl = ""bonnie doon"" AND wins > 16" How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"" AND T1.lesson_status_code = ""Completed"";" Name the data with a percent gain of 28.4%,"SELECT data FROM table_name_41 WHERE percent_gain = ""28.4%""" What is the result of the match in round 1r against tunisia and on a hard surface?,"SELECT result FROM table_name_37 WHERE round = ""1r"" AND surface = ""hard"" AND against = ""tunisia""" What is the average age for each city and what are those cities?,"SELECT avg(age) , city_code FROM student GROUP BY city_code" Which region has a date of 1970?,"SELECT region FROM table_name_58 WHERE date = ""1970""" What team did James Vanderberg belong to when the Completions had a status of redshirt?,"SELECT team FROM table_name_21 WHERE completions = ""redshirt""" When was Lebowskis not opened?,SELECT DISTINCT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Lebowskis' AND (T2.open IS NULL OR T2.open = 0) "Find the number of papers published by the institution ""University of Pennsylvania"".","SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Pennsylvania""" How many number if scientist belong to project AeH1,"SELECT count ( * ) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project where T1.Code = ""AeH1""" What Petrol engine has total power of ps (kw; bhp)@5400-6500?,"SELECT model FROM table_21154679_1 WHERE max_power = ""PS (kW; bhp)@5400-6500""" What is the class of the race that takes place on August 25?,"SELECT class FROM table_name_20 WHERE date = ""august 25""" "Which Death date has a Place of death or residence of united states, and an Age (as of 1 February 2014) of 111 years, 61 days?","SELECT death_date FROM table_name_49 WHERE place_of_death_or_residence = ""united states"" AND age__as_of_1_february_2014_ = ""111 years, 61 days""" "What is the average Draws, when Losses is greater than 9, and when Wins is greater than 9?",SELECT AVG(draws) FROM table_name_70 WHERE losses > 9 AND wins > 9 List down all cities of China.,SELECT T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.Name = 'China' Calculate the actual profit for order number 10100.,SELECT SUM((t1.priceEach - t2.buyPrice) * t1.quantityOrdered) FROM orderdetails AS t1 INNER JOIN products AS t2 ON t1.productCode = t2.productCode WHERE t1.orderNumber = '10100' What's the title of the episode with a season number 25?,SELECT title FROM table_12226390_6 WHERE no_in_season = 25 What is the percentage of list created by user who was a subscriber when he created the list?,SELECT CAST(SUM(CASE WHEN user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(list_id) FROM lists_users What was the attendance when they played the New Orleans Saints?,"SELECT attendance FROM table_name_93 WHERE opponent = ""new orleans saints""" Show the most common college of authors of submissions.,SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1 How many eliminations did each team have?,"SELECT Team , COUNT(*) FROM elimination GROUP BY Team" Which Loss has a Record of 20–16–9?,"SELECT loss FROM table_name_75 WHERE record = ""20–16–9""" When 2 is the rank what is the city/town?,SELECT city_town FROM table_23248420_1 WHERE rank = 2 who is the home team when the away team is wolverhampton wanderers?,"SELECT home_team FROM table_name_20 WHERE away_team = ""wolverhampton wanderers""" Could you please get me the name of the county with the largest population?,SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1 Show the stadium name and capacity with most number of concerts in year 2014 or after.,"SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1" What are the distinct classes that races can have?,SELECT DISTINCT CLASS FROM race What is the round when Grand Slam was the Davis Cup?,"SELECT round FROM table_name_92 WHERE grand_slam = ""davis cup""" Find the team of the player of the highest age.,SELECT Team FROM player ORDER BY Age DESC LIMIT 1 List the restaurant's ID that has a review greater than the 70% of average review of all American restaurants with street number greater than 2000.,SELECT T1.id_restaurant FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.food_type = 'american' AND T1.street_num > 2000 GROUP BY T1.id_restaurant ORDER BY AVG(T2.review) * 0.7 DESC "Find the name, type, and flag of the ship that is built in the most recent year.","SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1" Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4,SELECT SUM(longitude) FROM table_name_65 WHERE diameter__km_ = 22.6 AND latitude < -12.4 "Which name had a bodyweight bigger than 89.64, a total (kg) bigger than 310, a clean and jerk less than 207.5, and a snatch that is bigger than 165?",SELECT name FROM table_name_89 WHERE bodyweight > 89.64 AND total__kg_ > 310 AND clean_ & _jerk < 207.5 AND snatch > 165 What is the total amount of points that Christy has in the years before 1954?,"SELECT SUM(points) FROM table_name_59 WHERE entrant = ""christy"" AND year < 1954" what team pays the lowest average salary?,SELECT * FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg ( T2.salary ) ASC LIMIT 1 What round was the circuit portland international raceway?,"SELECT round FROM table_name_4 WHERE circuit = ""portland international raceway""" Which Season has a Score of 39-27?,"SELECT MAX(season) FROM table_name_26 WHERE score = ""39-27""" What sum of draw had more than 22 in Jury and a Televote of 130?,SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130 "Which Date has a Score of 2–2, and an Away team of aylesbury united?","SELECT date FROM table_name_48 WHERE score = ""2–2"" AND away_team = ""aylesbury united""" What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?,"SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'" "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.","SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"" AND nickname LIKE ""%s%"";" What was the location of the game against the Houston Oilers?,"SELECT location FROM table_name_3 WHERE opponent = ""houston oilers""" list out the school name,SELECT school_name FROM school "Show the location code, the starting date and ending data in that location for all the documents.","SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations" Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.,SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' On what Date did the friendly Competition take place?,"SELECT date FROM table_name_49 WHERE competition = ""friendly""" Who was the opponent that anke huber played against in the leipzig tournament?,"SELECT opponent FROM table_name_53 WHERE tournament = ""leipzig""" what is all the broadcast date when viewers were 8.4 millions,"SELECT COUNT(broadcast_date) FROM table_2112766_1 WHERE viewers__in_millions_ = ""8.4""" Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?,"SELECT manufacturer FROM table_name_86 WHERE laps < 9 AND rider = ""dani pedrosa""" What did St Kilda score when they were the home team?,"SELECT home_team AS score FROM table_name_53 WHERE home_team = ""st kilda""" How much more pounds in total were transported to New York than to Chicago?,SELECT SUM(CASE WHEN T2.city_name = 'New York' THEN T1.weight ELSE 0 END) - SUM(CASE WHEN T2.city_name = 'Chicago' THEN T1.weight ELSE 0 END) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id What is the average number of attendees for performances?,SELECT avg(Attendance) FROM performance "What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?","SELECT SUM(roll) FROM table_name_63 WHERE area = ""raetihi"" AND name = ""orautoha school"" AND decile < 8" "How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?","SELECT COUNT(silver) FROM table_name_43 WHERE gold > 2 AND bronze < 35 AND nation = ""china"" AND total > 26" What is the longest assembly item duration for bicycles?,SELECT JULIANDAY(EndDate) - JULIANDAY(StartDate) FROM BillOfMaterials ORDER BY JULIANDAY(EndDate) - JULIANDAY(StartDate) DESC LIMIT 1 How many students who are female are allergic to milk or eggs?,"SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = ""F"" AND (T1.allergy = ""Milk"" OR T1.allergy = ""Eggs"")" How many rooms have a king bed?,"SELECT count(*) FROM Rooms WHERE bedType = ""King"";" When the VFL played Victoria Park what was the home team score?,"SELECT home_team AS score FROM table_name_11 WHERE venue = ""victoria park""" Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city "How many different items appear in the enrollment column that joined in 1931, 1949 1?","SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = ""1931, 1949 1""" "Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution?","SELECT model FROM table_name_87 WHERE sensor_size = ""48x36 mm"" AND active_pixels = ""6726 x 5040"" AND resolution = ""33 mp""" What country did ekaterina karsten row for with fa listed under notes?,"SELECT country FROM table_name_70 WHERE notes = ""fa"" AND athlete = ""ekaterina karsten""" Which artist's work is the butterfly Tiger Swallowtail?,"SELECT artist FROM table_name_16 WHERE butterfly = ""tiger swallowtail""" which product is highest price on the table | Which kinds of product information do you want? | i want to the black jeans product price,"SELECT product_price FROM products WHERE product_name = ""black jeans""" "For each advisor, report the total number of students advised by him or her.","SELECT Advisor, COUNT(*) FROM STUDENT GROUP BY Advisor" Who had high rebounds when the date was march 25?,"SELECT high_rebounds FROM table_27756314_10 WHERE date = ""March 25""" Who are the Rowers from Poland?,"SELECT rowers FROM table_name_66 WHERE country = ""poland""" On what date was the team Philadelphia?,"SELECT date FROM table_17001658_10 WHERE team = ""Philadelphia""" Which controller is NAND type 25nm mlc-het with sequential read/write MB/s of 270/210?,"SELECT controller FROM table_name_67 WHERE nand_type = ""25nm mlc-het"" AND seq_read_write_mb_s = ""270/210""" "How many positions have 15 for the points, with a drawn less than 3?",SELECT SUM(position) FROM table_name_57 WHERE points = 15 AND drawn < 3 "What is the Outcome of the match with a Score of 6–3, 6–4?","SELECT outcome FROM table_name_2 WHERE score = ""6–3, 6–4""" How many users believed that their productivity is ever affected by a mental health issue overall?,SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 54 AND T1.AnswerText LIKE 'Yes' Name the average for spain delegate,"SELECT average FROM table_11674683_2 WHERE delegate = ""Spain""" What are the categories that app user ID7324884708820020000 belongs to?,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 7324884708820020000 "What is the highest championship that has 1 as the league cup, and 17 as the total?","SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = ""17""" Indicate the publisher who has published the most games of all time.,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t" Name the most number of pyewipe,SELECT MAX(number_at_pyewipe) FROM table_15608800_2 Name the total number of dar for disney channel and number is 613,"SELECT COUNT(dar) FROM table_15887683_9 WHERE television_service = ""Disney Channel"" AND n° = 613" On what date was game 2 played?,"SELECT date FROM table_name_98 WHERE game = ""game 2""" What is we two when the case/suffix is loc.?,"SELECT we_two FROM table_1015914_24 WHERE case_suffix = ""loc.""" what opponent has an average less than 62 and a January average less than 6,SELECT opponent FROM table_name_34 WHERE points < 62 AND january < 6 "Where the mantra is ""oṃ yaṃ vāyuve namaḥ"", what is the direction of the guardian?","SELECT direction FROM table_100518_1 WHERE mantra = ""Oṃ Yaṃ Vāyuve Namaḥ""" Name the manner of departure for elvio selighini,"SELECT manner_of_departure FROM table_17275810_7 WHERE replaced_by = ""Elvio Selighini""" What is the total number of rounds that had Jason Missiaen?,"SELECT COUNT(round) FROM table_name_75 WHERE player = ""jason missiaen""" "what game had an attendance of 21,629","SELECT record FROM table_name_70 WHERE attendance = ""21,629""" Count the number of all the calendar items.,SELECT count(*) FROM Ref_calendar What did the away team score when the home team was south melbourne?,"SELECT away_team AS score FROM table_name_80 WHERE home_team = ""south melbourne""" When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?,"SELECT world_record FROM table_23988726_2 WHERE ""saif_saaeed_shaheen___qat__"" = ""saif_saaeed_shaheen___qat__""" List the authors of submissions in ascending order of scores.,SELECT Author FROM submission ORDER BY Scores How many conductors are there?,SELECT count(*) FROM conductor "What is English Translation, when Lyricist(s) is ""Giorgos Moukidis"", and when Original Album is ""Ena (New Edition)""","SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = ""giorgos moukidis"" AND original_album = ""ena (new edition)""" What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?,SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available) < 7 Who had pole position in round 7?,SELECT pole_position FROM table_18095719_2 WHERE round = 7 What area has less than 0.97 mil in population and is on the east?,"SELECT area__km²_ FROM table_name_95 WHERE pop__km² < 0.97 AND _english_ = ""east""" What is the number of goals if the name is Xavier Gravelaine?,"SELECT goals¹ FROM table_24565004_8 WHERE name = ""Xavier Gravelaine""" What days is greenock morton vacant?,"SELECT date_of_vacancy FROM table_11207040_6 WHERE team = ""Greenock Morton""" what is the dimenson of Plustek MobileOffice D28 Corporate?,"SELECT dimensions FROM product WHERE product = ""Plustek MobileOffice D28 Corporate""" "How many units of item no.9 were sold in store no.1 in total in January, 2012?","SELECT SUM(units) FROM sales_in_weather WHERE SUBSTR(`date`, 6, 2) = '01' AND SUBSTR(`date`, 1, 4) = '2012' AND item_nbr = 9 AND store_nbr = 1" What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?,"SELECT inclination FROM table_name_9 WHERE mass = ""≥ 6.6 +1.1 −1.0 m⊕""" Which team that didn't play in playoffs had the most total rebounds in the year 1997?,SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.PostGP = 0 AND T1.year = 1997 ORDER BY T1.rebounds DESC LIMIT 1 "For each product which has problems, what are the number of problems and the product id?","SELECT count(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id" please list the years of film market estimations in descending order.,SELECT Year FROM film_market_estimation ORDER BY Year DESC What is Nelspruit's population?,"SELECT COUNT(population__2013_) FROM table_name_74 WHERE largest_city = ""nelspruit""" Write down the name of authors for paper with id from 101 to 105.,SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Id > 100 AND T1.Id < 106 "List the title of papers with a conference ID from 160 to 170, include their conference short name.","SELECT DISTINCT T1.Title, T2.ShortName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.ConferenceId BETWEEN 160 AND 170" Find names of the document without any images.,SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id What is the number of floors for the Citic Square?,"SELECT AVG(floors) FROM table_name_10 WHERE name = ""citic square""" How many items in inventory does store 1 have?,SELECT COUNT(*) FROM inventory WHERE store_id = 1 What is Creative labs revenue?,SELECT Revenue FROM manufacturers where Name = 'Creative Labs' What is the 2012 value with 1r in 2010 and 2r in 2006?,"SELECT 2012 FROM table_name_13 WHERE 2010 = ""1r"" AND 2006 = ""2r""" What is the pick of Texas-San Antonio?,"SELECT AVG(pick) FROM table_name_79 WHERE college = ""texas-san antonio""" Which Match has a Competition of Group Stage on 2000-09-17?,"SELECT match FROM table_name_66 WHERE competition = ""group stage"" AND date = ""2000-09-17""" What position does Robert Brooks play?,"SELECT COUNT(position) FROM table_14649522_1 WHERE player = ""Robert Brooks""" add a column for company name,"SELECT T1.company_id, t3.name, count ( distinct T1.building_id ) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.company_id" What was the margin of victory at the Texas International Open?,"SELECT margin_of_victory FROM table_name_44 WHERE tournament = ""texas international open""" On what date was game 3 played?,SELECT date FROM table_name_44 WHERE game = 3 How many branches does Oxford have?,SELECT count ( Branch_ID ) FROM branch WHERE city = 'Oxford' "Name the venue for friendly competition october 16, 2012","SELECT venue FROM table_name_89 WHERE competition = ""friendly"" AND date = ""october 16, 2012""" Which institutions primary conference is merged into the university of Massachusetts boston? ,"SELECT institution FROM table_261927_2 WHERE primary_conference = ""Merged into the University of Massachusetts Boston""" What is the ranked 5 mountain range?,SELECT mountain_range FROM table_name_59 WHERE rank = 5 Who was the incumbent that retired to run for the senate democratic hold?,"SELECT incumbent FROM table_name_82 WHERE result = ""retired to run for the senate democratic hold""" Show the names of buildings except for those having an institution founded in 2003.,SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003 Name the result for round 13,"SELECT result FROM table_21269143_1 WHERE round = ""13""" Show the product name and total order quantity for each product.,"SELECT T1.product_name, SUM(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id" What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?,"SELECT most_recent_cap FROM table_name_64 WHERE goals > 17 AND name = ""brian turner""" State the transaction date and the price when Bitcoin was bottomed?,"SELECT T2.date, T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Bitcoin' ORDER BY T2.price LIMIT 1" Frequency MHz of 88.7 had what average erp w?,SELECT AVG(erp_w) FROM table_name_50 WHERE frequency_mhz = 88.7 "If the position is 9th, what is the total podiums number?","SELECT COUNT(podiums) FROM table_21795846_1 WHERE position = ""9th""" "What region is dated April 30, 2004, and cataloged Nebdj058?","SELECT region FROM table_name_37 WHERE date = ""april 30, 2004"" AND catalog = ""nebdj058""" What are the cell mobile numbers of students with the first name 'Fanny'?,"SELECT cell_mobile_number FROM Students WHERE first_name = ""Fanny""" What is the longest runtime of all movies?,SELECT MAX(runtime) FROM movie How many times was incumbent cordell hull first elected?,"SELECT COUNT(first_elected) FROM table_1342379_41 WHERE incumbent = ""Cordell Hull""" Could you please find the number of male (sex is 'M') students who have some type of food allergy?,"SELECT count ( * ) FROM Student WHERE sex = ""M"" AND StuID IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" ) " Find the name and rank points of the winner who won the most times.,"SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1" Which UEFA confederation member had a rank more than 17 and caps of 114?,"SELECT name FROM table_name_32 WHERE rank > 17 AND confederation = ""uefa"" AND caps = 114" How many engineer visits are required at most for a single fault log? List the number and the log entry id.,"SELECT count ( * ) , T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1" Which gender had a decile of more than 1 and featured the South Auckland Seventh-Day Adventist School?,"SELECT gender FROM table_name_16 WHERE decile > 1 AND name = ""south auckland seventh-day adventist school""" Can you show me all the tourist attractions' names?,SELECT DISTINCT Name FROM Tourist_attractions Tell me the sum of cars per set for operator of london midland,"SELECT SUM(cars_per_set) FROM table_name_3 WHERE operator = ""london midland""" What was the score in the game where the Blazers were the home team?,"SELECT score FROM table_name_95 WHERE home = ""blazers""" "What's the highest reign on march 10, 2007?","SELECT MAX(reign) FROM table_name_66 WHERE date = ""march 10, 2007""" Show the facility codes of apartments with more than 4 bedrooms.,SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 Find the name of customer who has the lowest credit score.,SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 Who had third place when the champions is baník ostrava (1)?,"SELECT third_place FROM table_2429942_2 WHERE champions = ""Baník Ostrava (1)""" And what was the time duration in this case?,"SELECT Time FROM Elimination WHERE Eliminated_By = ""Benjamin"" and team = 'Team Batista'" List the full names of patients with nut allergy.,"SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Allergy to nut'" "What positions does the college/junior/club team, molot perm (russia) have?","SELECT position FROM table_1013129_1 WHERE college_junior_club_team = ""Molot Perm (Russia)""" Tell me the left office for enrico la loggia,"SELECT left_office FROM table_name_83 WHERE minister = ""enrico la loggia""" What is 1994 when 1996 is 3R?,"SELECT 1994 FROM table_name_46 WHERE 1996 = ""3r""" Find all the name of documents without any sections.,SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections) Name the 2011 gdp for pakistan,"SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_3 WHERE country = ""Pakistan""" Count the number of different templates used for documents.,SELECT count(DISTINCT template_id) FROM Documents What is the combined attendance of all games that had a result of w 35-14?,"SELECT SUM(attendance) FROM table_name_65 WHERE result = ""w 35-14""" How many products have price lower than 600 or higher than 900?,SELECT count ( * ) FROM products WHERE product_price < 600 OR product_price > 900 Find the prices of products which has never received a single complaint.,SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints) For how many terms has current legislator Sherrod Brown served?,SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Sherrod Brown' What is the average lap total for grids under 19 and a Time/Retired of +4 laps?,"SELECT AVG(laps) FROM table_name_63 WHERE time_retired = ""+4 laps"" AND grid < 19" Please list the team names which have at least 5 players were born in the same state.,"SELECT DISTINCT name FROM teams WHERE tmID IN ( SELECT tmID FROM players_teams AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T2.birthState IS NOT NULL GROUP BY T1.tmID, T2.birthState HAVING COUNT(*) > 5 )" What is the apartment number of the apartment with the most beds?,SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1 "How many clients who live in New York City have the complaint outcome as ""AGENT""?",SELECT COUNT(T2.`rand client`) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.city = 'New York City' AND T2.outcome = 'AGENT' How many legislators were born in 1736?,SELECT COUNT(bioguide_id) FROM historical WHERE birthday_bio LIKE '1736%' What is the Award name with a Team name that is cougar robotics team?,"SELECT award_name FROM table_name_53 WHERE team_name = ""cougar robotics team""" What are the sales made by the games in Japan region?,SELECT SUM(CASE WHEN T2.region_name = 'Japan' THEN T1.num_sales ELSE 0 END) AS nums FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id "What are the smallest goals with wins smaller than 16, and a Draws larger than 14?",SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 14 What is natural change with a crude death rate of 8.7 and less than 472 live births?,SELECT natural_change FROM table_name_74 WHERE crude_death_rate__per_1000_ = 8.7 AND live_births < 472 How many more students in total graduated from Central Alabama Community College in 2012 than in 2011?,SELECT SUM(CASE WHEN T2.year = 2012 THEN T2.grad_cohort ELSE 0 END) - SUM(CASE WHEN T2.year = 2011 THEN T2.grad_cohort ELSE 0 END) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Central Alabama Community College' "Which members of ""Bootup Baltimore"" major in ""600""? Give me their first names and last names.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.major = ""600""" How many values of HDTV apply when television service is elite shopping tv?,"SELECT COUNT(hdtv) FROM table_15887683_16 WHERE television_service = ""Elite Shopping TV""" What event type had BODY CMAS in 1980 and underwater hockey?,"SELECT event_type FROM table_name_57 WHERE body = ""cmas"" AND year = ""1980"" AND sport = ""underwater hockey""" What is the date of the tournament with carlos moyà as the opponent?,"SELECT date FROM table_name_6 WHERE opponent = ""carlos moyà""" "Show the keywords of the paper that was presented at ""International Radar Symposium"" in 2012.",SELECT T1.Keyword FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Radar Symposium' AND T1.Year = 2012 what is the club name of HHH,"select clubname from club where clublocation = ""HHH""" What is every value for rushing yards per game if the season is 1984?,"SELECT rushing_yards_per_game FROM table_27487336_1 WHERE season = ""1984""" How many partners were there in 1988?,"SELECT COUNT(partner) FROM table_1399994_5 WHERE year = ""1988""" "Where the Vancouver Grizzlies is the awards, what is the conference?","SELECT conference FROM table_name_29 WHERE awards = ""vancouver grizzlies""" "Week larger than 5, and an opponent of at new york giants had what record?","SELECT record FROM table_name_69 WHERE week > 5 AND opponent = ""at new york giants""" Identify the customer and list down the country with the check number GG31455.,"SELECT t2.customerName, t2.country FROM payments AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.checkNumber = 'GG31455'" Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown,"SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = ""graeme brown""" What was the to par for Tino Schuster?,"SELECT to_par FROM table_name_7 WHERE player = ""tino schuster""" What is the second party that has a conservative first party and second member John Cotes?,"SELECT second_party FROM table_name_95 WHERE first_party = ""conservative"" AND second_member = ""john cotes""" Please list the coach IDs who received the award twice from 1970 to 1990.,"SELECT coachID FROM awards_coaches WHERE year BETWEEN 1970 AND 1990 GROUP BY coachID, award HAVING COUNT(award) = 2" Where was there a result of 4-5 and a score of 1-1?,"SELECT venue FROM table_name_98 WHERE result = ""4-5"" AND score = ""1-1""" What is the name of the series with the unknown host?,"SELECT name FROM table_27487310_5 WHERE host_s_ = ""unknown""" What about the name of artist with least number of songs?,SELECT artist_name FROM song GROUP BY artist_name ORDER BY count ( * ) LIMIT 1 How many patients with a body weight of more than 100 kg have a 'diabetes self-management plan' care plan?,SELECT COUNT(DISTINCT T2.patient) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN observations AS T3 ON T2.patient = T3.PATIENT WHERE T3.DESCRIPTION = 'Body Weight' AND T1.DESCRIPTION = 'Diabetes self management plan' AND T3.VALUE > 100 AND T3.UNITS = 'kg' "What is the tournament with a w/o score on November 5, 2007?","SELECT tournament FROM table_name_62 WHERE score = ""w/o"" AND date = ""november 5, 2007""" What are the student ids for students over 20 years old?,SELECT StuID FROM Student WHERE age > 20 What's the average attendance of the leagues in the season of 2013?,"SELECT MIN(average_attendance) FROM table_10815352_1 WHERE season = ""2013""" Which 20-29 had a season of 1997?,"SELECT 20 AS _29 FROM table_name_11 WHERE season = ""1997""" Which network had unknown games and a title of hvem kan slå ylvis hvem kan slå aamodt & kjus?,"SELECT network FROM table_name_4 WHERE games = ""unknown"" AND title = ""hvem kan slå ylvis hvem kan slå aamodt & kjus""" "How many countries have notes on the indicator Stocks traded, turnover ratio of domestic shares?","SELECT COUNT(T1.Countrycode) FROM CountryNotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T2.IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'" "What was the final score for the August 25, 1996 match?","SELECT score_in_the_final FROM table_name_29 WHERE date = ""august 25, 1996""" How many gymnasts are there?,SELECT count(*) FROM gymnast What are the names of people in ascending order of weight?,SELECT Name FROM People ORDER BY Weight ASC find the program owners that have some programs in both morning and night time.,"SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning"" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Night""" Please list the release dates of all the movies in which Alan Tudyk is a voice actor.,SELECT T2.release_date FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T1.`voice-actor` = 'Alan Tudyk' What is the awarded category that the awarded character Lenny won?,SELECT DISTINCT T1.award_category FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.character = 'Lenny'; Who is the player with a 70-68-74=212 score?,SELECT player FROM table_name_73 WHERE score = 70 - 68 - 74 = 212 What is the average crowd for Carlton?,"SELECT AVG(crowd) FROM table_name_59 WHERE away_team = ""carlton""" How many people attended the game at Lake Oval?,"SELECT crowd FROM table_name_76 WHERE venue = ""lake oval""" What's the name of the carabins stadium?,"SELECT football_stadium FROM table_name_55 WHERE team = ""carabins""" what is the title no in season 2?,SELECT title FROM table_1876825_8 WHERE no_in_season = 2 "What are the ids of products from the supplier with id 2, which are more expensive than the average price across all products?",SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT avg(product_price) FROM products) "For the game with team of @ Chicago, what was the final score?","SELECT score FROM table_name_19 WHERE team = ""@ chicago""" what is the school code of fine arts,SELECT SCHOOL_CODE from DEPARTMENT where DEPT_NAME = 'Fine Arts' "For the word ""grec"", what is the percentage of the appearances in the ""Art"" Wikipedia page have among all the appearances?",SELECT CAST(SUM(CASE WHEN T3.title = 'Art' THEN T2.occurrences ELSE 0 END) AS REAL) * 100 / SUM(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' "What region is the catalogue number 9362486152 that was from September 3, 2004 from?","SELECT region FROM table_name_50 WHERE catalogue = ""9362486152"" AND date = ""september 3, 2004""" What percentage of the AdventureWorks data is in Thai?,SELECT CAST(SUM(CASE WHEN T1.Name = 'Thai' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.CultureID) FROM Culture AS T1 INNER JOIN ProductModelProductDescriptionCulture AS T2 ON T1.CultureID = T2.CultureID How many laps have a +0.4865 time/retired?,"SELECT laps FROM table_name_34 WHERE time_retired = ""+0.4865""" What is the highest number of skills needed to fix a part fault? | what did you want to get about the highest number of skills needed to fix a part fault | What is the name of the part that requires the most amount of skills to fix?,SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count ( * ) DESC LIMIT 1 What field had results of w 18-12?,"SELECT field FROM table_name_63 WHERE result = ""w 18-12""" "Name the episodes when region 1 is september 19, 2006","SELECT episodes FROM table_14562722_2 WHERE region_1 = ""September 19, 2006""" How many values for joined occur at Guilford College?,"SELECT COUNT(joined) FROM table_261954_1 WHERE institution = ""Guilford College""" "Name the Silver which has a Bronze of 19, and a Total larger than 58?",SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58 What is the minimum for 2nd runner-up?,SELECT MIN(2 AS nd_runner_up) FROM table_2290097_4 How many climbers are there?,SELECT COUNT(*) FROM climber "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.","SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name" Provide the homepage of the Bahasa Indonesia movies.,SELECT DISTINCT T1.homepage FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Bahasa indonesia' Which team played at home for the second leg and has an aggregate score of 2-4?,"SELECT home__2nd_leg_ FROM table_name_39 WHERE aggregate = ""2-4""" How many female users belong to the age group of 27 to 28?,SELECT COUNT(device_id) FROM gender_age WHERE `group` = 'F27-28' AND gender = 'F' Name the team ranked 4,SELECT COUNT(team) FROM table_242813_2 WHERE overall_rank = 4 Show all train names and times in stations in London in descending order by train time.,"SELECT T3.name , T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC" What is the netflow version when vendor and type is pc and servers?,"SELECT netflow_version FROM table_1206114_2 WHERE vendor_and_type = ""PC and Servers""" What date was the game held at UMBC Field?,"SELECT date FROM table_name_47 WHERE site = ""umbc field""" What are courses provided by Psychology department?,SELECT title FROM course WHERE dept_name = 'Psychology' What is the name of customer id 1?,SELECT customer_name FROM customers where customer_id = 1 "On the date April 11, what is the total game number?","SELECT COUNT(game) FROM table_name_4 WHERE date = ""april 11""" What is Olivier Jacque's Time/Retired?,"SELECT time_retired FROM table_name_43 WHERE rider = ""olivier jacque""" What countries own stadiums?,SELECT country FROM stadium GROUP BY country HAVING count ( * ) > = 1 Peter Vallone in which party?,"SELECT Party FROM party WHERE Governor = ""Peter Vallone""" What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?,"SELECT MIN(lane) FROM table_name_17 WHERE time = ""2:07.57"" AND rank > 1" what was the section where the winner is william hoge,"SELECT district FROM table_2668378_13 WHERE incumbent = ""William Hoge""" how many incumbent with first elected being 1932,SELECT COUNT(incumbent) FROM table_1342331_5 WHERE first_elected = 1932 How many sales did the store in Remulade make?,SELECT COUNT(T1.ord_num) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE T2.city = 'Remulade' What was the last game where the record was 6-3?,"SELECT MAX(game) FROM table_13762472_3 WHERE record = ""6-3""" "Find the states or counties where the stores with marketing region code ""CA"" are located.","SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = ""CA""" Sort the customer names in alphabetical order.,SELECT customer_details FROM customers ORDER BY customer_details "What are the title, credit and department of these courses?","SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count ( * ) > 1" "Which engineer has visited the most times? Show the engineer id, first name and last name.","SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1" Calculate the total quantity of products purchased by customer called Adrian.,SELECT SUM(T2.Quantity) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.FirstName = 'Adam' What was the tie for the Crystal Palace team?,"SELECT tie_no FROM table_name_42 WHERE home_team = ""crystal palace""" Find the name of tracks which are in both Movies and music playlists.,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' How many times did the word number 8 appear?,SELECT occurrences FROM words WHERE wid = 8 List top 10 employee work longest in the company. List employee's first and last name.,"SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10" What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52?,"SELECT MAX(february) FROM table_name_51 WHERE record = ""34-14-4"" AND game > 52" Please find the names of the dorms that do not have any amenities?,SELECT dorm_name FROM dorm WHERE dormid NOT IN ( SELECT dormid FROM has_amenity ) "Week that has a Date of december 5, 1959 had what week?","SELECT week FROM table_name_4 WHERE date = ""december 5, 1959""" Which is the email of the party that has used the services the most number of times ?,SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count ( * ) DESC LIMIT 1 What is the sum of the erp w of the k222al call sign?,"SELECT SUM(erp_w) FROM table_name_5 WHERE call_sign = ""k222al""" What is the Score with a Hoe that is etobicoke kangaroos?,"SELECT score FROM table_name_60 WHERE home = ""etobicoke kangaroos""" How many games were held on March 12?,"SELECT COUNT(game) FROM table_27715173_10 WHERE date = ""March 12""" Find the number of teachers who teach the student called MADLOCK RAY.,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""MADLOCK"" AND T1.lastname = ""RAY""" Find the name of the patient who made the appointment with the most recent start date.,SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 WHERE T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 Find the full name of employee who supported the most number of customers.,"SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" "What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?","SELECT set_2 FROM table_name_6 WHERE total = ""45–12"" AND set_3 = ""15–2""" What is the lowest Week when the result was l 6–0?,"SELECT MIN(week) FROM table_name_19 WHERE result = ""l 6–0""" Find the name of customers who have more than one loan.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count(*) > 1 What's Australia's time in the heat more than 4?,"SELECT time FROM table_name_43 WHERE heat > 4 AND nationality = ""australia""" What is the height of the person that weighs 320 pounds?,SELECT height FROM table_10966926_2 WHERE weight = 320 what's the leading scorer where home is sacramento kings,"SELECT leading_scorer FROM table_11964047_9 WHERE home = ""Sacramento Kings""" "What is the difference between the number of votes for 1-star vs. 10-star for the episode ""The Burns and the Bees""?",SELECT SUM(CASE WHEN T2.stars = 10 THEN T2.votes ELSE 0 END) - SUM(CASE WHEN T2.stars = 1 THEN T2.votes ELSE 0 END) AS Difference FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'The Burns and the Bees'; What is the occupation of customers within number of inhabitants ranges of 30 to 40?,SELECT DISTINCT T1.OCCUPATION FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INHABITANTS_K >= 30 AND T2.INHABITANTS_K <= 40 Find the number of employees of each gender whose salary is lower than 50000.,"SELECT count(*) , sex FROM employee WHERE salary < 50000 GROUP BY sex" Return the low and high estimates for all film markets.,"SELECT Low_Estimate , High_Estimate FROM film_market_estimation" What is the lens zoom and aperture for the coolpix 5400?,"SELECT lens__35mm_equiv__zoom, _aperture FROM table_name_79 WHERE model = ""coolpix 5400""" What are the dates of the assessment notes?,SELECT date_of_notes FROM Assessment_Notes "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.","SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)" "What is the Location of the Event on March 30, 2008?","SELECT location FROM table_name_73 WHERE date = ""march 30, 2008""" Find the movies with the highest average rating. Return the movie titles and average rating.,"SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC LIMIT 1" "Compare the number of business between the category of ""Men's Clothing"" and ""Women's Clothing"".",SELECT SUM(CASE WHEN T1.category_name = 'Men''s Clothing' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.category_name = 'Women''s Clothing' THEN 1 ELSE 0 END) AS diff FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id Which episode did actor A. J. Buckley last appear in?,"SELECT last_appearance FROM table_11240028_1 WHERE portrayed_by = ""A. J. Buckley""" Return the investor who have invested in the greatest number of entrepreneurs.,SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1 State the full name of accountants in the company.,"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle = 'Accountant'" what was the foundation of Politeknik Pagoh?,"SELECT AVG(foundation) FROM table_name_73 WHERE official_name_in_malay = ""politeknik pagoh""" "What is the title of the page on which the word ""grec"" has an occurrence of 52 times.",SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52 How many times was Jillian Grace the centerfold model?,"SELECT COUNT(date) FROM table_1566852_6 WHERE centerfold_model = ""Jillian Grace""" how many employees are there in Department ID 2,SELECT Num_Employees FROM department WHERE department_id = 2 Where is George W. Gregory from?,"SELECT hometown FROM table_14342367_13 WHERE player = ""George W. Gregory""" Which customer uses the most policies? Give me the customer name.,SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 "For each zip code, return how many times max wind speed reached 25?","SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code" "Among the reviews from midwest region, what are the products that received 1 star?",SELECT DISTINCT T3.Product FROM state AS T1 INNER JOIN district AS T2 ON T1.StateCode = T2.state_abbrev INNER JOIN reviews AS T3 ON T2.district_id = T3.district_id WHERE T1.Region = 'Midwest' AND T3.Stars = 1 what is the series sorted when the released is may 2012?,"SELECT series_sorted FROM table_name_73 WHERE released = ""may 2012""" How about their email addresses?,"SELECT email_address FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" What is the Place of the Player with a To par of –5?,"SELECT place FROM table_name_43 WHERE to_par = ""–5""" what is the total score for the date of january 3?,"SELECT COUNT(score) FROM table_13619027_7 WHERE date = ""January 3""" Which coach started in 2010?,SELECT Coach_ID from player_coach where starting_year = 2010 How many schools did Bubba Starling attend?,"SELECT COUNT(school) FROM table_11677100_17 WHERE player = ""Bubba Starling""" "What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955?","SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = ""500cc"" AND team = ""norton"" AND year > 1955" What is the position of player Tiffany Garofano (2)?,"SELECT position FROM table_name_59 WHERE player = ""tiffany garofano (2)""" What is the sum of budgets of the Marketing and Finance departments?,SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance' List all the MCs with peak ranking of 6 who were inducted in 2007.,SELECT top_mc FROM table_29160596_1 WHERE year_inducted = 2007 AND peak_ranking = 6 What is the least number of wins West Ham got when they tied 27 times?,SELECT MIN(west_ham_wins) FROM table_name_54 WHERE drawn > 27 Which December has a Record of 21–6–5?,"SELECT AVG(december) FROM table_name_59 WHERE record = ""21–6–5""" What is the skill description for skill id 3 ?,SELECT skill_description from skills where skill_id = 3 Which delegates are from countries with population smaller than 100000?,SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 "What is the score of the game attended by 25,034?","SELECT score FROM table_name_85 WHERE attendance = ""25,034""" How many dock stations are there in San Jose? | Do you mean the total dock counts of all stations in city San Jose? | Yes,"SELECT sum ( dock_count ) FROM station WHERE city = ""San Jose""" Give me the maximum low temperature and average precipitation at the Amersham station.,"SELECT max(t1.low_temperature) , avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = ""Amersham""" What Reserved for (SC / ST /None) with a Name of goverdhan?,"SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = ""goverdhan""" Can you tell me the highest Points that has the Played smaller than 30?,SELECT MAX(points) FROM table_name_67 WHERE played < 30 What was the review context from Jacksonville on 2017/7/22?,SELECT T1.Reviews FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.city = 'Jacksonville' AND T1.Date = '2017-07-22' "Thanks, can you show the names associated with those user ids?",SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1 The episode written by Rebecca Dameron aired on what date? ,"SELECT original_air_date FROM table_11111116_6 WHERE written_by = ""Rebecca Dameron""" Who was the winner when the third place was fernando meligeni?,"SELECT winner FROM table_name_11 WHERE third_place = ""fernando meligeni""" What are the full names of the top 5 most crowded ward aldermen?,"SELECT alderman_first_name, alderman_last_name FROM Ward ORDER BY Population DESC LIMIT 5" how many type of section title on the table?,SELECT count ( DISTINCT section_title ) FROM Document_Sections What is the award for the Choice TV: Breakout Star Female category?,"SELECT award FROM table_name_36 WHERE category = ""choice tv: breakout star female""" Which are their teams?,"SELECT pilot_ID , team FROM pilot where pilot_ID = 1 or pilot_id = 2" What date shows the Outcome of winner against nikola fraňková carmen klaschka?,"SELECT date FROM table_name_54 WHERE outcome = ""winner"" AND opponents_in_the_final = ""nikola fraňková carmen klaschka""" How many journalists from England have worked for over an year ?,"SELECT count ( * ) FROM journalist WHERE Nationality = ""England"" and years_working > 1" What was the score when Tore Torgersen played for Team Europe?,"SELECT score FROM table_19072602_1 WHERE team_europe = ""Tore Torgersen""" What's the tries for count for the team with 70 points? ,"SELECT tries_for FROM table_14070062_3 WHERE points = ""70""" Calculate the average GNP of all countries that use Arabic language.,SELECT AVG(T1.GNP) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic' What player costs £210k to transfer?,"SELECT name FROM table_name_92 WHERE transfer_fee = ""£210k""" What is the recorded conference that was a Wac Conference?,"SELECT record__conf_ FROM table_name_73 WHERE conference = ""wac""" "Provide the name, capital city and its official language of the country with the highest life expectancy.","SELECT T1.Name, T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' ORDER BY T1.LifeExpectancy DESC LIMIT 1" When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?,"SELECT date_made FROM table_name_46 WHERE notes = ""45/48 renumbered 15/16; two sold to sl&ncr""" What is the location that had a driver named Pierre de Caters?,"SELECT location FROM table_18893428_1 WHERE driver = ""Pierre de Caters""" Name the production code by paul lieberstein,"SELECT production_code FROM table_22948559_1 WHERE written_by = ""Paul Lieberstein""" Write the object classes of image ID 22 alongside the object's width and height.,"SELECT T1.W, T1.H, T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 22" What is the grid with a Toyota constructor and +1:09.718 as time/retired?,"SELECT grid FROM table_name_24 WHERE constructor = ""toyota"" AND time_retired = ""+1:09.718""" Name the 1/8 finals for round 1 n/a,"SELECT 1 AS _8_finals FROM table_18646111_13 WHERE round_1 = ""N/A""" "List the tax code and inspection type of the business named ""Rue Lepic"".","SELECT DISTINCT T3.tax_code, T2.type FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN businesses AS T3 ON T2.business_id = T3.business_id WHERE T3.name = 'Rue Lepic'" What is the Chinese Title Premiering 32 with 2.07 million HK viewers?,"SELECT chinese_title FROM table_name_60 WHERE hk_viewers = ""2.07 million"" AND premiere = 32" Provide the country name of universities with the number of students greater than 98% of the average student population of all universities in 2013.,SELECT DISTINCT T3.country_name FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.year = 2013 AND T2.num_students * 100 > ( SELECT AVG(num_students) FROM university_year ) * 98 When was the Election of 1953?,"SELECT date FROM table_name_46 WHERE election = ""1953""" Can you list them in descending order?,"SELECT T1.resident_id, count ( * ) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count ( * ) DESC" How many cars with horsepower greater than 200 were produced in 1975?,SELECT COUNT(T2.model_year) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.horsepower > 200 AND T2.model_year = 1975 "Of all the schools that left before 2003, what is the average year joined?",SELECT AVG(year_joined) FROM table_name_22 WHERE year_left < 2003 How many players in the USA have a batter value R?,SELECT count ( * ) FROM player WHERE birth_country = 'USA' AND bats = 'R' Show all book categories and the number of books in each category.,"SELECT category , count(*) FROM book_club GROUP BY category" "How many team franchises are active, with active value 'Y'?",SELECT count(*) FROM team_franchise WHERE active = 'Y'; What are the maximum and average height of the mountains?,SELECT height FROM mountain what's the drawn with points for being 350,"SELECT drawn FROM table_14058433_4 WHERE points_for = ""350""" WHat flight numbers have that aid?,"SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = ""Airbus A340-300""" Which Tie no that has an Away team of altrincham?,"SELECT tie_no FROM table_name_28 WHERE away_team = ""altrincham""" What game did they lose by 6 - 5?,"SELECT loss FROM table_name_67 WHERE score = ""6 - 5""" Who replaced the manager of Akhisar B.G.S.?,"SELECT replaced_by FROM table_27091128_3 WHERE team = ""Akhisar B.G.S.""" "Among the black students in 2011, list the institution site and name of those who has 20 t0 30 degree-seeking students in the cohort.","SELECT DISTINCT T1.site, T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.year = 2011 AND T2.race = 'B' AND T2.grad_cohort BETWEEN 20 AND 30" What is the total for a to par bigger than 7 and a player of al geiberger?,"SELECT COUNT(total) FROM table_name_58 WHERE player = ""al geiberger"" AND to_par > 7" What are airlines that have flights arriving at airport 'AHD'?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ""AHD""" Please calculate the average of Arms imports (SIPRI trend indicator values) of the European & Central Asian countries.,SELECT CAST(SUM(T2.Value) AS REAL) / COUNT(T1.CountryCode) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Region = 'Europe & Central Asia' AND T2.IndicatorName = 'Arms imports (SIPRI trend indicator values)' What results has a week smaller than 2?,SELECT result FROM table_name_79 WHERE week < 2 "Which grid has less than 11 laps, and a Time/Retired of accident?","SELECT AVG(grid) FROM table_name_99 WHERE laps < 11 AND time_retired = ""accident""" Calculate the average weight in pounds of all players drafted by Arizona Coyotes.,SELECT CAST(SUM(T1.weight_in_lbs) AS REAL) / COUNT(T2.ELITEID) FROM weight_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.weight_id = T2.weight WHERE T2.overallby = 'Arizona Coyotes' Find the names and publication dates of all catalogs that have catalog level number greater than 5.,"SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5" Which date has a region of united kingdom?,"SELECT date FROM table_name_54 WHERE region = ""united kingdom""" "Hi, can you tell me how many trips there have been, starting from August?","SELECT count ( * ) FROM trip WHERE start_date LIKE ""8/%""" What is the average number of incidents per month in 2018 in the ward with the most population?,SELECT COUNT(T1.ward_no) / 12 AS average FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.date LIKE '%2018%' AND T1.Population = ( SELECT MAX(T1.Population) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.date LIKE '%2018%' ) What is the method when the opponent is Andre Roberts?,"SELECT method FROM table_name_34 WHERE opponent = ""andre roberts""" "Who is the school, club, team or country that the Rockets played for 1967-68?","SELECT school_club_team_country FROM table_name_27 WHERE years_for_rockets = ""1967-68""" "When was the pre-Week 10 game that had an attendance of over 38,865?","SELECT date FROM table_name_98 WHERE week < 10 AND attendance = ""38,865""" What is the location where ed c. kingsley was the runner-up in 1939?,"SELECT location FROM table_name_63 WHERE runner_up = ""ed c. kingsley"" AND year = ""1939""" "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.","SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC" How many times is brannon condren with and overall more than 131 drafted?,"SELECT COUNT(round) FROM table_name_56 WHERE name = ""brannon condren"" AND overall > 131" What is the season 4 # for the production code of 4abb07?,"SELECT _number FROM table_28195898_1 WHERE production_code = ""4ABB07""" How many athletes play the position of guard?,"SELECT COUNT(player) FROM table_16494599_10 WHERE position = ""Guard""" Show the names of schools,select School_name from School How many unique languages are spoken in the world?,SELECT count(DISTINCT LANGUAGE) FROM countrylanguage Give me names of all faculty members in alphabetical order | Do you want to rank by first name or last name? | first name,SELECT fname from faculty order by fname asc Can you sort the list by publication date from most common to least common?,SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT ( * ) DESC What are the names of the people who are older 40 but no friends under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) Who is the top goalscorer for the season 2010-11?,"SELECT top_goalscorer FROM table_2429942_2 WHERE season = ""2010-11""" "find the id, name and age for visitors who visited some museums more than once.","SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1" What is the economy of the player with BBI of 3/33?,"SELECT economy FROM table_28846752_13 WHERE bbi = ""3/33""" "What is Country, when Builder is ""Sheerness Dockyard""?","SELECT country FROM table_name_38 WHERE builder = ""sheerness dockyard""" What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?,"SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = ""new bandon""" Which allergy type has most number of allergies?,SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1 how any were gained as the chan,"SELECT COUNT(year_acquired) FROM table_1397655_1 WHERE station = ""CHAN""" This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when?,"SELECT years_built FROM table_25695027_1 WHERE cylinder_size = ""20 ½” x 26”"" AND firebox = ""Radial-stay""" what is the middle name if staff with id 2,SELECT middle_name FROM Staff WHERE staff_id = 2 Show the headquarters that have both companies in banking industry and companies in oil and gas industry.,"SELECT Headquarters FROM company WHERE Industry = ""Banking"" INTERSECT SELECT Headquarters FROM company WHERE Industry = ""Oil and gas""" "Show the names of high schoolers who have likes, and numbers of likes for each.","SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id" Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000?,SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000 How many parties are there?,SELECT count(*) FROM party Hello! Can you tell me how many total nominees there are?,SELECT COUNT ( artwork_id ) FROM nomination "Which position is the MLS team, Los Angeles Galaxy in?","SELECT position FROM table_name_90 WHERE mls_team = ""los angeles galaxy""" What stage of the race was held on the course Reggio Calabria to Catanzaro?,"SELECT stage FROM table_name_89 WHERE course = ""reggio calabria to catanzaro""" What are the names of captains that have either the rank Midshipman or Lieutenant?,SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant' Who was awarded mountains classifications when Mikel Nieve was the winner? ,"SELECT mountains_classification FROM table_25551880_2 WHERE winner = ""Mikel Nieve""" Find the physicians who are trained in a procedure that costs more than 5000.,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000 How many players with left-hand batting style are from India?,SELECT SUM(CASE WHEN T1.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) AS cnt FROM Batting_Style AS T1 INNER JOIN Player AS T2 ON T1.Batting_Id = T2.Batting_hand INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T3.Country_Name = 'India' What is the pole position for marlboro challenge?,"SELECT pole_position FROM table_name_47 WHERE race_name = ""marlboro challenge""" How many tries against for the team with 67 tries for?,"SELECT tries_against FROM table_name_83 WHERE tries_for = ""67""" "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.","SELECT Grape, Winery, YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR" How many employees report to Nancy Edwards?,"SELECT count ( * ) FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = ""Nancy"" AND T1.last_name = ""Edwards""" What percentage was the total unit sales of store no.10 to the total sales of its weather station on 2014/10/31?,SELECT CAST(SUM(CASE WHEN T2.store_nbr = 10 THEN units * 1 ELSE 0 END) AS REAL) * 100 / SUM(units) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.`date` = '2014-10-31' How many schools are there in the department?,SELECT count(DISTINCT school_code) FROM department "What was the score when the result was win, in Helsinki, competition was friendly?","SELECT score FROM table_name_50 WHERE result = ""win"" AND location = ""helsinki"" AND competition = ""friendly""" Which city were the Olympic games held in 1992?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_year = 1992 Find the distinct student first names of all students that have grade point at least 3.8 in one course.,SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.","SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name" What is the Datacenter for the Memory modules: hot addition Feature that has Yes listed for Itanium?,"SELECT datacenter FROM table_name_85 WHERE itanium = ""yes"" AND features = ""memory modules: hot addition""" What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?,"SELECT T2.addressLine1, T2.addressLine2 FROM employees AS T1 INNER JOIN customers AS T2 ON T1.employeeNumber = T2.salesRepEmployeeNumber INNER JOIN offices AS T3 ON T1.officeCode = T3.officeCode WHERE T2.city = 'NYC' AND T1.jobTitle = 'Sales Rep'" What about the most common type?,SELECT competition_type FROM competition GROUP BY competition_type ORDER BY COUNT ( * ) DESC LIMIT 1 Which Heat has a Rank of 8?,SELECT MAX(heat) FROM table_name_16 WHERE rank = 8 "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.","SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking" What's the earliest year that had a category of best supporting actress at the asian film awards?,"SELECT MIN(year) FROM table_name_46 WHERE category = ""best supporting actress"" AND award = ""asian film awards""" What is the name of the shop that has the greatest quantity of devices in stock?,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1 "Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235?","SELECT score FROM table_name_98 WHERE opponent = ""brewers"" AND attendance = ""11,235""" In what country was the car with the čz 171cc engine?,"SELECT country FROM table_name_34 WHERE engine_make_capacity = ""čz 171cc""" Which store owns most items?,SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1 How many people attended the game against the Mariners with a score of 9-6?,"SELECT COUNT(attendance) FROM table_name_94 WHERE opponent = ""mariners"" AND score = ""9-6""" How many types of medication have been prescribed to Mr. Major D'Amore since his visit to the hospital?,SELECT COUNT(DISTINCT T2.DESCRIPTION) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Major' AND T1.last = 'D''Amore' How many editors are there?,SELECT COUNT(*) FROM editor Find the name of the products that are not using the most frequently-used max page size.,SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1) What is the brand of the device used by the most users in the M23-26 user group?,"SELECT T.phone_brand FROM ( SELECT T2.phone_brand, COUNT(T1.device_id) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'M23-26' GROUP BY T2.phone_brand ) AS T ORDER BY T.num DESC LIMIT 1" Name the peletier for systematics being million 1,"SELECT peletier FROM table_260938_1 WHERE systematics = ""Million 1""" What is the sum of the prominence in m of moussa ali terara peak?,"SELECT SUM(prominence__m_) FROM table_name_88 WHERE peak = ""moussa ali terara""" What was the record in the game whose first star was J. Oduya?,"SELECT record FROM table_27537518_6 WHERE first_star = ""J. Oduya""" What stake has realtor for American equity realty as their occupation?,"SELECT stake FROM table_name_98 WHERE occupation = ""realtor for american equity realty""" What is the percentage of device users in the F27-28 age group who experienced an event on the 3rd of May 2016?,"SELECT SUM(IIF(T1.`group` = 'F27-28', 1, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE SUBSTR(T2.timestamp, 1, 10) = '2016-05-03'" what's the zip code of Lyla address of where she lives?,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = ""Lyla""" What is the home of the team with Carlos Boozer (27) as the leading scorer?,"SELECT home FROM table_name_1 WHERE leading_scorer = ""carlos boozer (27)""" Give the alphanumeric ID of the Catholic legislators in Nebraska.,SELECT T1.bioguide FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.religion_bio = 'Catholic' AND T1.state = 'NE' What is the pick # for nhl team vancouver canucks?,"SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = ""Vancouver Canucks""" What is the coin with a € equivalency of 0.30 made of?,"SELECT composition FROM table_name_67 WHERE €_equiv = ""0.30""" "Among all students, calculate the percentage of male students.",SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T1.name = T2.name What name is for the period 1945-1949 & 1953-1954 1949-1952?,"SELECT name FROM table_name_69 WHERE period = ""1945-1949 & 1953-1954 1949-1952""" How many kinds of events belong to the sport of cycling?,SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Cycling' Give the number of Moroccan customers whose account is in debt.,SELECT COUNT(T1.c_name) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'MOROCCO' AND T1.c_acctbal < 0 "WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?",SELECT MIN(snatch) FROM table_name_45 WHERE total__kg_ < 318 AND clean_ & _jerk > 175 "What are all the the participant ids, type code and details?","SELECT Participant_ID , Participant_Type_Code , Participant_Details FROM Participants" "What series number had an original airdate of March 1, 1991?","SELECT MIN(no_in_series) FROM table_2409041_3 WHERE original_air_date = ""March 1, 1991""" Count the number of wrestlers.,SELECT count(*) FROM wrestler "In the match where Melbourne was the away team, how much did they score?","SELECT away_team AS score FROM table_name_52 WHERE away_team = ""melbourne""" What is the average rank for more than 12 points?,SELECT AVG(rank) FROM table_name_24 WHERE points > 12 WHAT IS THE TRIES WITH POINTS 190?,"SELECT tries_for FROM table_name_36 WHERE points_for = ""190""" what was the win for the 6 matches?,"SELECT wins FROM table_name_17 WHERE matches = ""6""" What park in Austria has the fastest roller coaster?,"SELECT T2.Park FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = ""Austria"" order by T2.speed desc limit 1" What location and state has a circuit of Phillip Island Grand Prix Circuit?,"SELECT location___state FROM table_name_59 WHERE circuit = ""phillip island grand prix circuit""" What are the names and salaries of instructors who advises students in the History department?,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'" Show the players and the years played.,"SELECT Player , Years_Played FROM player" Count the number of characteristics of the 'flax' product.,"SELECT count(*) 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 = ""flax""" "What is the Margin, when Date is 19 July 2008 (Round 19)?","SELECT margin FROM table_name_27 WHERE date = ""19 july 2008 (round 19)""" "What are the solution path of the tokenized name ""matrix multiply""?",SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'matrix multiply' Name the viewers for 2.1 rating,"SELECT viewers__millions_ FROM table_22822468_2 WHERE rating = ""2.1""" "List the email, cell phone and home phone of all the professionals.","SELECT email_address , cell_number , home_phone FROM professionals" What is the score for the Chicago Black Hawks game with a record of 2-1?,"SELECT score FROM table_name_36 WHERE home = ""chicago black hawks"" AND record = ""2-1""" WHAT IS THE RELIGION WITH A SCHEDULED TRIBE OF 0.90%?,"SELECT religion FROM table_name_43 WHERE scheduled_tribe = ""0.90%""" What was North Melbourne's score as the home team?,"SELECT home_team AS score FROM table_name_30 WHERE home_team = ""north melbourne""" What type of disaster is rms atlantic categorized in that was located in Nova Scotia?,"SELECT type FROM table_name_62 WHERE location = ""nova scotia"" AND disaster = ""rms atlantic""" Which legislators are woman?,"SELECT first_name, last_name FROM historical WHERE gender_bio = 'F'" Can you please tell me the average stars as well?,SELECT avg ( stars ) from rating tell me the total number of injured in both china and japan,"SELECT sum ( injured ) FROM perpetrator WHERE country = ""China"" OR country = ""Japan""" What is the average number of cities of markets with low film market estimate bigger than 10000?,SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000 In what City was the Ept Baden Classic?,"SELECT city FROM table_name_94 WHERE event = ""ept baden classic""" What are the email addresses of the drama workshop groups with address in Alaska state?,"SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = ""Alaska""" How many times was the GFR 2006 equal to 53.2?,"SELECT COUNT(whites_as__percentage_of_pop) FROM table_12251936_1 WHERE gfr_2006 = ""53.2""" "What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?",SELECT COUNT(fa_cup_apps) FROM table_name_50 WHERE total_apps > 12 AND league_apps > 38 AND fa_cup_goals > 1 Where did the player who won in 1965 finish?,"SELECT finish FROM table_name_92 WHERE year_s__won = ""1965""" When the torsion spring diameter is 38.4cm what would be the length or weight of the missile,"SELECT length_weight_of_missile FROM table_21012786_2 WHERE diameter_of_torsion_spring = ""38.4cm""" What GERB has an 11% Attack?,"SELECT gerb FROM table_name_16 WHERE attack = ""11%""" What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?,SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980 What is the sum of the total donated amounts paid through Amazon?,SELECT SUM(donation_to_project) + SUM(donation_optional_support) FROM donations WHERE payment_method = 'amazon' What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987?,"SELECT MIN(population) FROM table_name_20 WHERE colour = ""blue"" AND construction_commenced < 1987" What is the full name of the team that selected Mike Lynn?,SELECT T1.name FROM teams AS T1 INNER JOIN draft AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.draftYear WHERE T2.firstName = 'Mike' AND T2.lastName = 'Lynn' What are the maximum and minimum product prices for each product type?,"SELECT product_type_code , max(product_price) , min(product_price) FROM products GROUP BY product_type_code" How many patients are there?,SELECT count ( * ) from Patient How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?,"SELECT SUM(games) FROM table_name_68 WHERE team = ""lietuvos rytas vilnius"" AND rebounds < 43" List the order dates of all the bookings.,SELECT Order_Date FROM BOOKINGS "List the number of invoices from Chicago, IL.","SELECT COUNT(*) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL"";" Show the parties that have both representatives in New York state and representatives in Pennsylvania state.,"SELECT Party FROM representative WHERE State = ""New York"" INTERSECT SELECT Party FROM representative WHERE State = ""Pennsylvania""" What is the date of the match where vampiro was the winner in Mexico City?,"SELECT date FROM table_name_40 WHERE location = ""mexico city"" AND winner = ""vampiro""" What is the avocado's rating?,"SELECT rating FROM review WHERE i_id = ( select i_id from item where title = ""avocado"" ) " How many different payment methods are there?,SELECT count(DISTINCT payment_method) FROM customers Which country does Chevy C20 come from?,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.car_name = 'chevy c20' "What is Round, when Record is ""4-1""?","SELECT round FROM table_name_53 WHERE record = ""4-1""" "What are the maximum and minimum share of performances whose type is not ""Live final"".","SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""" what is the airport for the country tunisia with the icao dtaa?,"SELECT airport FROM table_name_68 WHERE country = ""tunisia"" AND icao = ""dtaa""" What is the aggregate for the first round for K.S.V. Waregem?,"SELECT aggregate FROM table_name_54 WHERE round = ""first round"" AND club = ""k.s.v. waregem""" What was the score of the away team when hawthorn was the home team?,"SELECT away_team AS score FROM table_name_43 WHERE home_team = ""hawthorn""" "How many users were not trialists when they rated the movie ""Patti Smith: Dream of Life""?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Patti Smith: Dream of Life' AND T1.user_trialist = 0 Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?,"SELECT player FROM table_name_43 WHERE round > 5 AND college_junior_club_team__league_ = ""dynamo-2 moscow (rus)""" What was the game record when the opponent was 'at Los Angeles Raiders'?,"SELECT record FROM table_17972193_1 WHERE opponent = ""at Los Angeles Raiders""" Name the place of action for the marine corps and corporal rank,"SELECT place_of_action FROM table_name_45 WHERE service = ""marine corps"" AND rank = ""corporal""" For which group was Kim nominated in 2010 for Best International Actress?,"SELECT group FROM table_name_61 WHERE year = 2010 AND award = ""best international actress""" Which U.S. Hot has 13 as the U.S. R&B?,"SELECT us_hot_100 FROM table_name_95 WHERE us_r & b = ""13""" "When did the creator of the list ""250 Favourite Films"" last updated a movie list?",SELECT T2.list_update_date_utc FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' ORDER BY T2.list_update_date_utc DESC LIMIT 1 "Who were the opponents in the final when the game was played on hard surface and the score of the final was 6–1, 1–6, 7–6(4)?","SELECT opponents_in_final FROM table_name_22 WHERE surface = ""hard"" AND score_in_final = ""6–1, 1–6, 7–6(4)""" What are the fleet number for the 4-6-4t locomotive?,"SELECT fleet_numbers FROM table_name_19 WHERE type = ""4-6-4t""" "Among the sales team in South region, write down the numbers of orders made by the sales team ID of one digit.",SELECT COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.Region = 'South' AND T2.SalesTeamID BETWEEN 1 AND 9 GROUP BY T2.SalesTeamID HAVING COUNT(T1.OrderNumber) List all the contact channel codes that were used less than 5 times.,SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5 Which Class has a Frequency MHz of 107.5?,SELECT class FROM table_name_76 WHERE frequency_mhz = 107.5 What is the run rate for rank 4?,SELECT MAX(run_rate) FROM table_name_61 WHERE rank = 4 What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments?,"SELECT 1987 FROM table_name_71 WHERE 1989 = ""grand slam tournaments""" What are the maximum duration and resolution of songs grouped and ordered by languages?,"SELECT max(T1.duration) , max(T2.resolution) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages" Find the name of the youngest organization.,SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1 What was the decision in Minnesota?,"SELECT decision FROM table_name_12 WHERE home = ""minnesota""" WHAT IS THE AIRPORT NAME OF GORKA CITY IN AIRPORT TABLE?,select name from airports where city = 'Goroka' "What is Date, when Score is ""80-79""?","SELECT date FROM table_name_8 WHERE score = ""80-79""" Describe the number of postal points and the countries in West Virginia.,"SELECT COUNT(DISTINCT T2.zip_code), COUNT(DISTINCT T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'West Virginia'" What is the total salary paid by team Boston Red Stockings in 2010?,SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 What was the English title of Ladrones Y Mentirosos?,"SELECT english_title FROM table_27423508_1 WHERE spanish_title = ""Ladrones y mentirosos""" Which driver had a year under 1905?,SELECT driver FROM table_name_51 WHERE year < 1905 What is the total for player karrie webb?,"SELECT COUNT(total) FROM table_name_1 WHERE player = ""karrie webb""" Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students.,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" Name the mountains classification for bradley white,"SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = ""Bradley White""" Is student281 disabled and which school is the student enrolled in?,"SELECT T2.name, T1.school FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.name = 'student281'" what's the jurisdiction where percent yes is 43.4,"SELECT jurisdiction FROM table_120778_2 WHERE percent_yes = ""43.4""" "What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?","SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = ""kentucky"" AND average > 8.85" What is the date of the tournament with olivier delaître as the opponent in the final?,"SELECT date FROM table_name_49 WHERE opponent_in_the_final = ""olivier delaître""" Which event was the opponent jose carlos oliveira?,"SELECT event FROM table_name_46 WHERE opponent = ""jose carlos oliveira""" "State the male population for all zip code which were under the Berlin, NH CBSA.","SELECT T2.male_population FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Berlin, NH' GROUP BY T2.male_population" Name the date for week more than 1 and game site of bye,"SELECT date FROM table_name_99 WHERE game_site = ""bye"" AND week > 1" "Which Club has a Founded smaller than 1882, and a League of fa premier league?","SELECT club FROM table_name_76 WHERE founded < 1882 AND league = ""fa premier league""" What is the average overall rank of all players drafted from Duke after round 9?,"SELECT AVG(overall) FROM table_name_49 WHERE school_club_team = ""duke"" AND round > 9" "What is the paragraph number with plain text ""This is Illyria, lady""?","SELECT ParagraphNum FROM paragraphs WHERE PlainText = 'This is Illyria, lady.'" How many runs were there when there was 1 match and les than 86 average?,SELECT SUM(runs) FROM table_name_1 WHERE matches = 1 AND average < 86 Name the most crowd for saturday 16 february,"SELECT MAX(crowd) FROM table_16387700_1 WHERE date = ""Saturday 16 February""" State the coordinate of X and Y for the object with the attribute of 'sparse' in image 1.,"SELECT T3.OBJ_SAMPLE_ID, T3.X, T3.Y FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID WHERE T3.IMG_ID = 1 AND T1.ATT_CLASS = 'sparse'" "Who was appointed on October 24, 1997?","SELECT name FROM table_name_63 WHERE appointment = ""october 24, 1997""" Find the number and average age of students living in each city.,"SELECT count(*) , avg(age) , city_code FROM student GROUP BY city_code" What is the sum of low estimate(s) that is listed for the date of 1978?,"SELECT SUM(low_estimate) FROM table_name_66 WHERE date = ""1978""" Can you provide me with a list of all of the loans that both Mary and Jack received?,"select t2.loan_type from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t1.cust_name = ""Mary"" intersect select t4.loan_type from customer as t3 join loan as t4 on t3.cust_id = t4.cust_id where t3.cust_name = ""Jack""" What is the name of the supplier number 1492?,SELECT NAME FROM Vendor WHERE BusinessEntityID = 1492 And in which state is it located?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' "What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points?",SELECT MIN(conceded) FROM table_name_77 WHERE wins < 8 AND scored = 21 AND points < 23 What are the names of those employees? | Do you mean the first name and last name of those employees? | Yes.,"SELECT first_name, last_name FROM employees WHERE first_name LIKE '%M%'" Show me the official names of the cities that have hosted more than one competition?,SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT ( * ) > 1 Find the name of the user who gives the most reviews.,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1 What are the names of the technicians by ascending order of quality rank for the machine they are assigned?,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank How many films in English are for adults only?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.name = 'English' AND T1.rating = 'NC-17' What are the resolutions of all songs with a rating lower than 8?,SELECT resolution FROM song WHERE rating < 8 What is the value for 2010 when the value for 2006 is A and the value for 2009 is 1R?,"SELECT 2010 FROM table_name_59 WHERE 2006 = ""a"" AND 2009 = ""1r""" Which Game has a Score of 4–0 and Points of 44?,"SELECT game FROM table_name_3 WHERE score = ""4–0"" AND points = 44" "In February, which city marks the highest temperature?",SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1 How many daves team entries are there on 27 october 2006?,"SELECT COUNT(daves_team) FROM table_23292220_4 WHERE first_broadcast = ""27 October 2006""" Which movie title has the lowest movie rental in the horror category?,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.`name` = 'Horror' ORDER BY T1.rental_rate LIMIT 1 What are the names and hours spent practicing of every student who received a yes at tryouts?,"SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?","SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = ""Clara"") AND first_name ! = ""Clara""" Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?,"SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72" What are the wines that have prices higher than 50?,SELECT * FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T2.price > 50 How many assets have fault logs?,select count ( * ) from ( SELECT * FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) > = 1 ) Which team does Timothy Beckham play for?,"SELECT Team FROM player WHERE Player = ""Timothy Beckham""" How many French customers shipped 2 orders which have been cancelled?,SELECT COUNT(T2.country) FROM orders AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.status = 'Shipped' AND T2.country = 'France' GROUP BY T2.customerNumber HAVING COUNT(T1.status) = 2 "For the venue of suwon world cup stadium , suwon , south korea and a Score of 3–0 what is the result?","SELECT result FROM table_name_74 WHERE venue = ""suwon world cup stadium , suwon , south korea"" AND score = ""3–0""" What are the categories of music festivals for which there have been more than 1 music festival?,SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 What is the county and region of Plearn-Thai Cuisine restaurant?,"SELECT T1.county, T1.region, T2.label FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.label = 'plearn-thai cuisine'" On what date was the team's record 61-66?,"SELECT date FROM table_name_28 WHERE record = ""61-66""" "What instrument did the musician with last name ""Heilo"" use in the song ""Badlands""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Badlands""" Which language is the most popular in Aruba?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba"" ORDER BY Percentage DESC LIMIT 1" What are the types and countries of competitions?,"SELECT Competition_type, Country FROM competition" How many were in the crowd when there was a game at Junction Oval?,"SELECT SUM(crowd) FROM table_name_88 WHERE venue = ""junction oval""" What are names of patients who made an appointment?,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn What was the outcome of the match played on grass?,"SELECT outcome FROM table_name_64 WHERE surface = ""grass""" What team won when the race time was 3:12:30?,"SELECT team FROM table_2175685_1 WHERE race_time = ""3:12:30""" Identify by their id all the apps that belong to the game-stress reliever category.,SELECT T2.app_id FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'game-stress reliever' What is the name of the solution path with the highest processed time?,SELECT Path FROM Solution WHERE ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Solution ) "what is the reason for change where the date the successor was seated was july 28, 1876?","SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = ""July 28, 1876""" What is the tonnage of the Corbridge ?,"SELECT tonnage FROM ship WHERE name = ""Corbridge""" "What is the lowest Bush#, when Bush% is ""65.4%""?","SELECT MIN(bush_number) FROM table_name_63 WHERE bush_percentage = ""65.4%""" "List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order.",SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name "Tell me the number of orders with ""Second time"" as order detail.","SELECT count(*) FROM customer_orders WHERE order_details = ""Second time""" Return the code of the city that has the most students.,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 please show just those customers who's channel code was email,"SELECT DISTINCT customer_name FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id where channel_code = ""Email""" What is its document date?,SELECT document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project' order by document_date limit 1 "Who won soccer when madison won volleyball, lexington won cross country and orrville won softball ","SELECT soccer FROM table_16423070_4 WHERE volleyball = ""Madison"" AND cross_country = ""Lexington"" AND softball = ""Orrville""" Name the number of population for врбас,"SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = ""Врбас""" "Among all the tweets with a positive sentiment, what is the percentage of those posted by a male user?",SELECT SUM(CASE WHEN T2.Gender = 'Male' THEN 1.0 ELSE 0 END) / COUNT(T1.TweetID) AS per FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Sentiment > 0 "Retrieve the average age of members of the club ""Tennis Club"".","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" List out the country code and country name of the rich countries using Euro as their currency unit,"SELECT DISTINCT T1.CountryCode, T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.CurrencyUnit = 'Euro' AND (T1.IncomeGroup = 'High income: OECD' OR T1.IncomeGroup = 'High income: nonOECD')" "What is the weight of the shipment delivered by Andrea Simons on March 7, 2016?",SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Andrea' AND T2.last_name = 'Simons' AND T1.ship_date = '2016-03-07' List the names of 5 users followed by the largest number of other users.,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5 How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?,"SELECT COUNT(world_record) FROM table_24062944_2 WHERE kenenisa_bekele___eth__ = ""Marílson Gomes dos Santos ( BRA )""" When was the game played against a visiting team from Philadelphia?,"SELECT date FROM table_name_65 WHERE visitor = ""philadelphia""" What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009?,"SELECT szdsz FROM table_name_8 WHERE mszp = ""25%"" AND date = ""25/2/2009""" What was the original title for the king's speech?,"SELECT original_title FROM table_name_58 WHERE winner_and_nominees = ""the king's speech""" "What is the surface when the tournament is manta, ecuador?","SELECT surface FROM table_name_95 WHERE tournament = ""manta, ecuador""" What is the latest year they were nominated?,"SELECT MAX(year) FROM table_name_44 WHERE result = ""nominated""" What is the average total of the 0-8 tally?,"SELECT AVG(total) FROM table_name_16 WHERE tally = ""0-8""" What is the name and salary of all employees in order of salary?,"SELECT name , salary FROM Employee ORDER BY salary" List the first names of employees with trading quantity for more than 500.,SELECT DISTINCT T1.FirstName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID WHERE T2.Quantity > 500 "List the first names of the employees who take the orders that ship to the city of ""Reims"".",SELECT DISTINCT T1.FirstName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.ShipCity = 'Reims' What is the name of the publisher that released the most video games in 2007?,SELECT T3.publisher_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.release_year = 2007 GROUP BY T3.publisher_name ORDER BY COUNT(DISTINCT T2.game_id) DESC LIMIT 1 What are the names of the ships that are not involved in any missions?,SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission) Show party names and the number of events for each party.,"SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" Name the candidates for texas 1,"SELECT candidates FROM table_1341690_43 WHERE district = ""Texas 1""" What is the earliest date with Great Expectations label with LP format?,"SELECT MIN(date) FROM table_name_92 WHERE label = ""great expectations"" AND format = ""lp""" What are the titles of courses that are in the Statistics department but not the Psychology department?,SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' Return the names of the 3 countries with the fewest people.,SELECT Name FROM country ORDER BY Population ASC LIMIT 3 "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.","SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR" Who was the commentator when the spokesperson was michael aspel?,"SELECT commentator FROM table_name_35 WHERE spokespersons = ""michael aspel""" On which day was there a record of 36-39?,"SELECT date FROM table_name_70 WHERE record = ""36-39""" What role was at the Sydney Film Festival in 2008?,"SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = ""sydney film festival""" "Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?","SELECT adelaide FROM table_name_2 WHERE melbourne = ""yes"" AND auckland = ""yes"" AND perth = ""yes""" "Find all the songs whose name contains the word ""the"".",SELECT title FROM songs WHERE title LIKE '% the %' When 1872-10-10 is the founding date what are the canadian chapters?,"SELECT canadian_chapters FROM table_28436909_4 WHERE founding_date = ""1872-10-10""" "How many orders have detail ""Second time""?","SELECT count(*) FROM customer_orders WHERE order_details = ""Second time""" What was the location and attendance of the game against Dallas?,"SELECT location_attendance FROM table_27723228_11 WHERE team = ""Dallas""" For how many series were there 11.84 million watchers?,"SELECT no_in_series FROM table_28561455_1 WHERE us_viewers__million_ = ""11.84""" Please list the titles of the documents that are pending approval.,SELECT Title FROM Document WHERE Status = 1 How many were first elected when the incumbent was Morgan M. Moulder?,"SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = ""Morgan M. Moulder""" "Name the League which has a Regular Season of 3rd, atlantic?","SELECT league FROM table_name_86 WHERE regular_season = ""3rd, atlantic""" Find the name of the person who has friends with age above 40 and under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) "Return the address content for the customer whose name is ""Maudie Kertzmann"".","SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = ""Maudie Kertzmann""" How many Olympic events did Michael Phelps II join in total? Find the percentage of the events where he won a gold medal.,"SELECT COUNT(T3.event_id) , CAST(COUNT(CASE WHEN T4.id = '1' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T4.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T1.full_name = 'Michael Fred Phelps, II'" list the name of technician who have not been assigned to repair machines,SELECT Name FROM technician WHERE technician_id NOT IN ( SELECT technician_id FROM repair_assignment ) What is the nickname of staff with first name as Janessa and last name as Sawayn?,"SELECT nickname FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What are the names of products whose availability equals to 1?,SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1 What is the lowest laps that Vittorio Iannuzzo completed?,"SELECT MIN(laps) FROM table_name_1 WHERE rider = ""vittorio iannuzzo""" What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s?,"SELECT object_type FROM table_name_61 WHERE ngc_number > 2090 AND right_ascension___j2000__ = ""05h52m19s""" What is the average number of top-25s for events with less than 2 top-10s?,SELECT AVG(top_25) FROM table_name_93 WHERE top_10 < 2 "What is the census rating of the city with the official name ""Plaster Rock""?","SELECT T1.Census_Ranking FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID where T1.Official_Name = ""Plaster Rock""" "How many times more for the number of users who took the ""mental health survey for 2017"" than ""mental health survey for 2018""?",SELECT CAST(COUNT(T1.UserID) AS REAL) / ( SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018' ) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2017' Show the most frequently used carrier of the phones.,SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1 Find the states which do not have any employee in their record.,SELECT state_province_county FROM addresses WHERE address_id NOT IN (SELECT employee_address_id FROM employees) Jacques Villeneuve was on what grid?,"SELECT grid FROM table_name_84 WHERE driver = ""jacques villeneuve""" "Name the number of date for stephen curry , dorell wright (27)","SELECT COUNT(date) FROM table_27755784_11 WHERE high_points = ""Stephen Curry , Dorell Wright (27)""" Find the name of the products that are not using the most frequently-used max page size.,SELECT product FROM product WHERE max_page_size != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1) What is the name of episode number 41 in the series?,SELECT title FROM table_22347090_6 WHERE no_in_series = 41 What are the different names of all songs without back vocals?,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""back""" "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.","SELECT T2.title , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != ""null"" GROUP BY director" What was the score when the record 56-46 was met?,"SELECT score FROM table_name_7 WHERE record = ""56-46""" Which locations did Gordon Johncock hold the pole position? ,"SELECT location FROM table_22673872_1 WHERE pole_position = ""Gordon Johncock""" Please list any three devices that are owned by female users.,SELECT device_id FROM gender_age WHERE gender = 'F' LIMIT 3 Find the name of the patient who made the appointment with the most recent start date.,SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 What is the full name of the actor who has the highest number of restricted films?,"SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T2.film_id) AS num FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rating = 'R' GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1" Who was the champion when atlético wanderers was the runner-up?,"SELECT champion FROM table_name_57 WHERE runner_up = ""atlético wanderers""" Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.,"SELECT name , operating_system FROM web_client_accelerator EXCEPT SELECT T1.name , T1.operating_system 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 T3.name = 'Opera'" What is the Catalog number in the Region of France?,"SELECT catalog FROM table_name_42 WHERE region = ""france""" Find the id and location of circuits that belong to France or Belgium?,"SELECT circuitid , LOCATION FROM circuits WHERE country = ""France"" OR country = ""Belgium""" Show the addresses of the buildings that have apartments with more than 2 bathrooms.,SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2 What was the title of the episode with production code 2J5515?,"SELECT title FROM table_28582091_2 WHERE production_code = ""2J5515""" Please show the most common occupation of players.,SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1 What is the year of the TV series that has a character of Leiloon Bala Barareh?,"SELECT year FROM table_name_88 WHERE character = ""leiloon bala barareh""" How many authors are named Adam?,SELECT COUNT(*) FROM author WHERE author_name LIKE 'Adam%' How many product maintenance documents are private?,SELECT COUNT(DocumentNode) FROM Document WHERE DocumentSummary IS NULL Which Commenced operations have an Airline of valuair?,"SELECT commenced_operations FROM table_name_10 WHERE airline = ""valuair""" Okay. What is her job title?,"SELECT title FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards""" "Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?","SELECT width FROM table_name_88 WHERE number_of_vehicles > 15 AND type_designation = ""k5000""" What about its end date?,SELECT grant_end_date from grants where grant_amount = 4094.542 What is the title of #33?,SELECT title FROM table_25800134_4 WHERE season__number = 33 what is the GDP of the city with the largest population.,SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1 How many people were injured between 2006 and 2014 as a result of a handgun?,SELECT COUNT(location) FROM incidents WHERE subject_weapon = 'Handgun' AND subject_statuses = 'Injured' AND date BETWEEN '2006-01-01' AND '2013-12-31' give me the name of the wineries,SELECT Winery FROM WINE Name the high assists for 1-2 series,"SELECT high_assists FROM table_23284271_11 WHERE series = ""1-2""" What is the average attendance of stadiums with capacity percentage higher than 100%?,SELECT average_attendance FROM stadium WHERE capacity_percentage > 100 Which city has an ICAO of VCCJ?,"SELECT city FROM table_name_96 WHERE icao = ""vccj""" show the info of students whose GPA is below 3?,SELECT * FROM student WHERE stu_gpa < 3 What was the score on April 8?,"SELECT score FROM table_name_39 WHERE date = ""april 8""" "Mean attendance for December 22, 1980?","SELECT AVG(attendance) FROM table_name_91 WHERE date = ""december 22, 1980""" "What is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2?","SELECT SUM(yield), _neutrons_per_fission FROM table_name_77 WHERE decay_constant__s_−1__ < 0.301 AND half_life__s_ = 22.72 AND group > 2" Provide list titles created by user who are eligible for trial when he created the list.,SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_eligible_for_trial = 1 What is the percentage of female OPPO users against the male OPPO users?,"SELECT SUM(IIF(T2.gender = 'F', 1, 0)) * 100 / COUNT(T2.device_id) AS perFemale , SUM(IIF(T2.gender = 'M', 1, 0)) * 100 / COUNT(T2.device_id) AS perMale FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'OPPO'" "Awesome! And finally, can you list the customer id, first name, and total bookings of each customer?","SELECT T1.customer_id , T1.first_name , count ( * ) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" What is the height of the player from club vk primorac kotor who plays gk?,"SELECT height FROM table_name_96 WHERE pos = ""gk"" AND club = ""vk primorac kotor""" Which city/state was associated with a contestant whose status was 2nd runner-up?,"SELECT city_state FROM table_name_52 WHERE status = ""2nd runner-up""" Which chasis was in the year 1954?,SELECT chassis FROM table_name_76 WHERE year = 1954 "What is the largest Area (msr) that has an Area less than 291.045, is part of the Per family, and has a rank higher than 78?","SELECT MAX(area__msr_) FROM table_name_70 WHERE area__sqdeg_ < 291.045 AND family = ""per"" AND rank > 78" Which Opponent has a Result of w 19–10?,"SELECT opponent FROM table_name_40 WHERE result = ""w 19–10""" "From which state do the 5 biggest donor, who gave the highest cost of optional support, come from? List their donor_acctid and calculate for their average cost of optional support for every donations they make and identtify the project's type of resource to which they gave the hightest optional support.","SELECT T1.school_state, T2.donor_acctid, AVG(T2.donation_optional_support), T1.resource_type FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid ORDER BY T2.donation_optional_support DESC LIMIT 5" "Show the album names, ids and the number of tracks for each album.","SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID" What are the different product names for products that have the 'warm' characteristic:?,"SELECT DISTINCT t1.product_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 t3.characteristic_name = ""warm""" Find the average age of all students living in the each city.,"SELECT avg(age) , city_code FROM student GROUP BY city_code" In how many businesses have customers had a bad or terrible experience?,"SELECT COUNT(business_id) FROM Business WHERE stars IN (1, 2)" Show me employee number for professors with a Ph.D. degree,SELECT emp_num FROM professor WHERE prof_high_degree = 'Ph.D.' "Among the adult films, how many of them have a rental duration of fewer than 4 days?",SELECT COUNT(film_id) FROM film WHERE rating = 'NC-17' AND rental_duration < 4 Tell me the name with area of eketahuna,"SELECT name FROM table_name_16 WHERE area = ""eketahuna""" "What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?",SELECT SUM(glyph) FROM table_name_96 WHERE binary < 111001 AND octal < 65 AND hexadecimal < 30 "Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?","SELECT condition FROM table_name_73 WHERE prothrombin_time = ""unaffected"" AND bleeding_time = ""unaffected"" AND partial_thromboplastin_time = ""prolonged""" What are the full names of customers with the account name 900?,"SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""900""" What are the names of the dorm with the largest capacity?,SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1 What is the capital of the country with a population density per km² of 15.6/km² (/sqmi)?,"SELECT capital FROM table_26769_1 WHERE population_density_per_km² = ""15.6/km² (/sqmi)""" What Position has a Season larger than 2000 with a Level of Tier 3?,"SELECT position FROM table_name_21 WHERE season > 2000 AND level = ""tier 3""" Which program is broadcast most frequently? Give me the program name.,SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1 What headquarter is the most popular?,SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT ( * ) DESC LIMIT 1 "What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?","SELECT college FROM table_name_59 WHERE position = ""db"" AND cfl_team = ""winnipeg blue bombers""" What is the score when the attendance is greater than 134 and Workington is the home team?,"SELECT score FROM table_name_30 WHERE attendance > 134 AND home_team = ""workington""" "Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?","SELECT winning_driver FROM table_name_96 WHERE winning_team = ""opel team holzer 1"" AND round < 9 AND fastest_lap = ""bernd schneider""" "Among the countries in the group of Heavily Indebted Poor Countries, how many of them are under the lending category of the International Development Associations?",SELECT COUNT(CountryCode) FROM Country WHERE LendingCategory = 'IDA' AND OtherGroups = 'HIPC' Who was the visitor when the record was 24–14–2?,"SELECT visitor FROM table_name_69 WHERE record = ""24–14–2""" How many customer cards are there?,SELECT count(*) FROM Customers_cards How about the chair name for those years?,SELECT Chair_Name FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010 Return the names and typical buying prices for all products.,"SELECT product_name , typical_buying_price FROM products" Which 2012 has a 2008 of grand slam tournaments?,"SELECT 2012 FROM table_name_47 WHERE 2008 = ""grand slam tournaments""" What is the U.S. air date when the U.S. viewers are 7.5 million?,"SELECT us_air_date FROM table_2866503_1 WHERE us_viewers__million_ = ""7.5""" "Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?","SELECT MIN(crude_death_rate__per_1000_) FROM table_name_51 WHERE deaths = ""768"" AND crude_birth_rate__per_1000_ < 29.7" Name the 2010 for 2012 grand slam tournaments,"SELECT 2010 FROM table_name_38 WHERE 2012 = ""grand slam tournaments""" How many attributes ID owned by business ID 2?,SELECT COUNT(attribute_id) FROM Business_Attributes WHERE business_id = 2 "What was the statue in st. paul, minnesota constructed before 1966 made out of?","SELECT material FROM table_name_36 WHERE completed < 1966 AND location = ""st. paul, minnesota""" How many wins did Baylor have? ,"SELECT COUNT(wins) FROM table_16225511_2 WHERE school = ""Baylor""" How many customers used Visa to pay?,"SELECT count ( * ) FROM Customers GROUP BY payment_method having payment_method = ""Visa""" What album had a peak position of 6 and a certification of 3x platinum?,"SELECT album FROM table_name_25 WHERE certification = ""3x platinum"" AND peak_position = 6" Give the name of the department with the lowest budget.,SELECT dept_name FROM department ORDER BY budget LIMIT 1 Name the total number of area for 775927 population,SELECT COUNT(area__km²_) FROM table_1307842_7 WHERE population = 775927 can you help me with the Annual interchanges for London Bridge,"SELECT Annual_interchanges FROM station where name = ""London Bridge""" What are the maximum price and score of wines in each year?,"SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR" "Which one of this contains a substring called Opera? | Do you mean the name of the accelerators whose name contains a substring called ""Opera"" and that the client named user has? | Yes","SELECT name FROM web_client_accelerator WHERE client = 'user' and name LIKE ""%Opera%""" Tell me the discovery/publication for still living,"SELECT discovery___publication_of_name FROM table_name_55 WHERE fossil_record = ""still living""" A list of the top 5 countries by number of invoices. List country name and number of invoices.,"SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;" What was the highest crowd count seen in the Windy Hill venue?,"SELECT MAX(crowd) FROM table_name_48 WHERE venue = ""windy hill""" What's the D 40 √ when D 43 √ is d 14?,"SELECT d_40_√ FROM table_name_23 WHERE d_43_√ = ""d 14""" Find the name of the ship that is steered by the youngest captain.,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 "For the repository with '8094' watchers , how many solutions does it contain?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = 8094 What is the highest Grid with over 72 laps?,SELECT MAX(grid) FROM table_name_8 WHERE laps > 72 "Hi, how many years has the Monaco Grand Prix been held? | Would you like the number of distinct years found for races? | yes please!",SELECT count ( DISTINCT year ) FROM races What colour is the van that can be spotted in image no. 1?,SELECT T4.ATT_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID WHERE T2.OBJ_CLASS = 'van' AND T1.IMG_ID = 1 GROUP BY T4.ATT_CLASS What is the highest played when there was less than 74 goals against and points 1 of 36 2?,"SELECT MAX(played) FROM table_name_30 WHERE points_1 = ""36 2"" AND goals_against < 74" What was the money value for Jerry Pate?,"SELECT money___$__ FROM table_name_43 WHERE player = ""jerry pate""" What is the fewest number of silver medals a nation who ranked below 8 received?,SELECT MIN(silver) FROM table_name_99 WHERE rank > 8 What are the employee ids for each employee and final dates of employment at their last job?,"SELECT employee_id , MAX(end_date) FROM job_history GROUP BY employee_id" What was Jim Hoff's sum of losses and a wins smaller than 12?,"SELECT SUM(losses) FROM table_name_9 WHERE manager = ""jim hoff"" AND wins < 12" Please list the names of the movies starring Tom Cruise.,SELECT T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Tom Cruise' What are the total number of losses for the team who has conceded 22?,SELECT COUNT(loses) FROM table_16034882_4 WHERE goals_conceded = 22 What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?,SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8 Which location has the date of October 28?,"SELECT location FROM table_23612439_2 WHERE date = ""October 28""" "What is the title of episode with 5 stars and nominated for Prism Award which is aired on April 19, 2009?",SELECT T3.title FROM Award AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE T3.air_date = '2009-04-19' AND T1.award_category = 'Prism Award' AND T2.stars = 5 AND T1.result = 'Nominee'; Who was the draft pick that went to college at Oral Roberts?,"SELECT player FROM table_name_44 WHERE college = ""oral roberts""" Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.,"SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1" Street Address of 401 n. wabash avenue involves what name?,"SELECT name FROM table_name_32 WHERE street_address = ""401 n. wabash avenue""" When is the first season there were 14.57 million U.S viewers?,"SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = ""14.57""" What about their store address?,SELECT store_address FROM department_stores GROUP BY dept_store_chain_id ORDER BY count ( * ) DESC LIMIT 2 What about gender?,SELECT gender FROM staff GROUP BY gender ORDER BY count ( * ) DESC LIMIT 1 What is the league of player ian schultz?,"SELECT league FROM table_name_7 WHERE player = ""ian schultz""" Which college/junior/team has defence as the position with canada as the nationality and the pick # is less than 61.0?,"SELECT college_junior_club_team FROM table_2897457_3 WHERE position = ""Defence"" AND nationality = ""Canada"" AND pick__number < 61.0" Who drove in races in 1949?,SELECT drivers FROM table_name_21 WHERE year = 1949 What was the place for the score 70-72-69=211?,SELECT place FROM table_name_60 WHERE score = 70 - 72 - 69 = 211 "What is Opponent, when Championship is Pétange?","SELECT opponent FROM table_name_69 WHERE championship = ""pétange""" When was the most recent statue that was made out of solid granite completed?,"SELECT MAX(completed) FROM table_name_89 WHERE material = ""solid granite""" Find the number of dorms and total capacity for each gender.,"SELECT count(*) , sum(student_capacity) , gender FROM dorm GROUP BY gender" "What is the to par of player jerry pate, who has a 70-69=139 score?","SELECT to_par FROM table_name_66 WHERE score = 70 - 69 = 139 AND player = ""jerry pate""" What is the name and employee id of the person with the lowest salary,"SELECT name , eid FROM Employee order by salary limit 1" Name the title that was directed by john terlesky,"SELECT title FROM table_24222929_2 WHERE directed_by = ""John Terlesky""" what departments are some physicians primarily affiliated with?,SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1 "How many students have had at least one ""B"" grade?","SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = ""B""" Who made the latest order?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 What was the away team when the game was at corio oval?,"SELECT away_team FROM table_name_53 WHERE venue = ""corio oval""" What name has the call sign DWYS?,"SELECT name FROM table_name_40 WHERE call_sign = ""dwys""" "What is the latest year for the role of joan gordon, aka francine la rue?","SELECT MAX(year) FROM table_name_65 WHERE role = ""joan gordon, aka francine la rue""" What is the total count of enzymes?,SELECT count(*) FROM enzyme Show me the country where Roberto Almeida is located,"SELECT country FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida""" "What are the names of conductors whose nationalities are not ""USA""?",SELECT Name FROM conductor WHERE Nationality <> 'USA' How did the game number 50 end?,SELECT score FROM table_23248940_9 WHERE game = 50 Find the total amount of loans offered by each bank branch.,"SELECT sum(amount) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname" Point out the greater one between the number of actual responding and not responding to mailing.,SELECT RESPONSE FROM Mailings1_2 GROUP BY RESPONSE ORDER BY COUNT(RESPONSE) DESC LIMIT 1 What about the rooms which do not have reservations?,SELECT * FROM rooms WHERE roomid NOT IN ( SELECT DISTINCT room FROM reservations ) "What is Score, when Attendance is ""349""?","SELECT score FROM table_name_66 WHERE attendance = ""349""" What is the launched date of the station in cora huichol tepehuano nahuatl language?,"SELECT launched FROM table_name_1 WHERE languages = ""cora huichol tepehuano nahuatl""" What is the 1st leg that has akasvayu girona as team #2?,"SELECT 1 AS st_leg FROM table_name_37 WHERE team__number2 = ""akasvayu girona""" How many trains running west have double sided cars in 3rd position?,SELECT COUNT(T.train_id) FROM (SELECT T1.train_id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 3 AND T2.direction = 'west' AND T1.sides = 'double' GROUP BY T1.train_id)as T "Show the first names and last names of all the guests that have apartment bookings with status code ""Confirmed"".","SELECT T2.guest_first_name , T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Confirmed""" "What is the largest events number for more than 2 wins and less than $446,893 in earnings?",SELECT MAX(events) FROM table_name_65 WHERE wins > 2 AND earnings___$__ < 446 OFFSET 893 What regular season had a record of 16-12?,"SELECT reg_season FROM table_name_7 WHERE record = ""16-12""" Can you tell me which customers do not have a first notification of loss record? | What attributes of the customers that do not have a first notification of loss record would you like to know? | Can you tell me their names?,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id Find all the ids and dates of the logs for the problem whose id is 10.,"SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10" What are the countries that have greater surface area than any country in Europe?,"SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = ""Europe"")" "In 1948-10-28, in what Venue was the Competition of International Match held?","SELECT venue FROM table_name_26 WHERE competition = ""international match"" AND date = ""1948-10-28""" what is the highest ticket price on the table,SELECT ticket_price FROM exhibition order by ticket_price desc limit 1 What's the average Year that has Points that's smaller than 9 with a Rank of 24th?,"SELECT AVG(year) FROM table_name_71 WHERE points < 9 AND rank = ""24th""" what are the event details of the services that have the type code 'Marriage'?,SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' what is the product_category_code for product id 1?,select product_category_code from Products where product_id = '1' Find the total amount of loans provided by bank branches in the state of New York.,SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' How long does student Linda Smith spend on the restaurant in total?,"SELECT sum(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"";" What is the result of the friendly match?,"SELECT result FROM table_name_37 WHERE competition = ""friendly""" List the names of teachers who have not been arranged to teach courses.,SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange) What is id of the city that hosted events in the most recent year?,SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1 What is the maximum amount of time a shell travels at 55° when it traveled less than 9.6 seconds at 40°?,SELECT MAX(time_to_ft__m__at_55) AS °__seconds_ FROM table_name_47 WHERE time_to_ft__m__at_40°__seconds_ < 9.6 Who directed the episode with production code ip03010?,"SELECT directed_by FROM table_29273182_1 WHERE production_code = ""IP03010""" What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?,"SELECT previous_conference FROM table_name_88 WHERE conference_joined = ""indiana lake shore"" AND mascot = ""governors""" How many urgent orders were shipped the next day?,SELECT COUNT(T2.o_orderkey) FROM lineitem AS T1 INNER JOIN orders AS T2 ON T2.o_orderkey = T1.l_orderkey WHERE JULIANDAY(T1.l_shipdate) - JULIANDAY(T2.o_orderdate) = 1 AND T2.o_orderpriority = '1-URGENT' "What is Builder, when Ship is ""Arizona""?","SELECT builder FROM table_name_67 WHERE ship = ""arizona""" Find the name of customers who have more than one loan.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count(*) > 1 What is the lowest number of played of the team with 18 points and a position greater than 5?,SELECT MIN(played) FROM table_name_74 WHERE points = 18 AND position > 5 What was the score of round 3?,"SELECT score FROM table_21378160_2 WHERE round = ""3""" I need the opening hours as well please.,"SELECT T2.Opening_Hours FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" Which buildings do not have any company office? Give me the building names.,SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations) Which students that are in the marines have been absent for 6 months?,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'marines' AND T1.`month` = 6 "List all the voice actors in the movie directed by Ben Sharpsteen which was released on February 9, 1940.","SELECT T2.`voice-actor` FROM director AS T1 INNER JOIN `voice-actors` AS T2 INNER JOIN movies_total_gross AS T3 ON T1.name = T2.movie AND T2.movie = T3.movie_title WHERE T1.director = 'Ben Sharpsteen' AND T3.release_date = 'Feb 9, 1940' AND T2.`voice-actor` != 'None' GROUP BY T2.`voice-actor`" List the cities which have more than 2 airports sorted by the number of airports.,SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*) "How many films rented on 26th May, 2005 were returned on 30th May, 2005?",SELECT COUNT(DISTINCT rental_id) FROM rental WHERE date(rental_date) BETWEEN '2005-05-26' AND '2005-05-30' Which customer has made the most orders? Show his/her full name.,"SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ORDER BY COUNT(*) DESC LIMIT 1" Please describe the menu sponsored by Noviomagus physically.,SELECT physical_description FROM Menu WHERE sponsor = 'Noviomagus' What is the Date with a Venue that is oval?,"SELECT date FROM table_name_36 WHERE venue = ""oval""" "For all the users who have been asked ""Have you ever been diagnosed with a mental health disorder?"", how many of them said ""Yes""?",SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Have you ever been diagnosed with a mental health disorder?' AND T1.AnswerText = 'Yes' How many countries use Portuguese?,SELECT SUM(CASE WHEN Language = 'Portuguese' THEN 1 ELSE 0 END) FROM CountryLanguage How many channels were the games shown on in 2001-02?,"SELECT COUNT(channel) FROM table_14902507_2 WHERE year = ""2001-02""" What was the score of the match where paris sg (d1) was team 1?,"SELECT score FROM table_name_63 WHERE team_1 = ""paris sg (d1)""" Where is the historic place that was built in 1910?,"SELECT location FROM table_name_11 WHERE built = ""1910""" What are the names of gymnasts?,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID Calculate the average amount of payments made by customers during the first half of 2004.,SELECT AVG(amount) FROM payments WHERE paymentDate BETWEEN '2004-01-01' AND '2004-06-30' "Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.","SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'" "Hmm, I also want to know which colleges have enrollments that are less than the largest size.",SELECT cname FROM college WHERE enr < ( SELECT max ( enr ) FROM college ) How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?,SELECT SUM(bronze) FROM table_name_34 WHERE rank > 3 AND silver > 0 What is the boston celtics' record?,"SELECT record FROM table_name_39 WHERE team = ""boston celtics""" Show me the salary of team id ATL?,"SELECT salary FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.team_id = ""ATL""" What number pick was the player from HIFK Helsinki (Finland)?,"SELECT pick__number FROM table_2679061_4 WHERE college_junior_club_team = ""HIFK Helsinki (Finland)""" "What is the name for the red list of 7, the artiodactyla order, and Species Authority of cervus elaphus linnaeus, 1758?","SELECT name FROM table_name_4 WHERE red_list = 7 AND order = ""artiodactyla"" AND species_authority = ""cervus elaphus linnaeus, 1758""" What are the member ids of the people who have that membership level?,select Member_ID from member where level in ( SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count ( * ) DESC LIMIT 1 ) How many low risk violations were found in the inspection on 2014/1/14 for Tiramisu Kitchen?,SELECT COUNT(T1.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = '2014-01-14' AND T2.name = 'Tiramisu Kitchen' AND T1.risk_category = 'Low Risk' State all the order numbers for sales team of Samuel Fowler.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.`Sales Team` = 'Samuel Fowler' THEN T1.OrderNumber ELSE NULL END AS T FROM `Sales Orders` T1 INNER JOIN `Sales Team` T2 ON T2.SalesTeamID = T1._SalesTeamID ) WHERE T IS NOT NULL What activities does Clear Channel Entertainment Facilitation Limited engage in?,"SELECT description_of_activities FROM table_1756264_2 WHERE company_name = ""CLEAR CHANNEL ENTERTAINMENT FACILITATION LIMITED""" What venue did the European Championships' 400 m Hurdles take place?,"SELECT venue FROM table_name_7 WHERE notes = ""400 m hurdles"" AND competition = ""european championships""" Who was drafted to the Vancouver Canucks?,"SELECT player FROM table_2897457_8 WHERE nhl_team = ""Vancouver Canucks""" Name the most first elected,SELECT MAX(first_elected) FROM table_2668347_17 "Among the employees that receive a salary between $75000 to $85000, what is the difference between the number of employees which undergone an inspection that fined 100 and 500?",SELECT SUM(CASE WHEN T3.fine = 100 THEN 1 ELSE 0 END) - SUM(CASE WHEN T3.fine = 500 THEN 1 ELSE 0 END) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.salary BETWEEN 75000 AND 80000 Name the military expenditures for 2011 for romania,"SELECT military_expenditures__2011, _us$_millions_ FROM table_17971449_2 WHERE country = ""Romania""" which dno has no stuid associated with it?,SELECT DNO from Department where DNO not in ( select DNO from Minor_in ) What was the record when the TKO (elbows) method was used?,"SELECT record FROM table_name_12 WHERE method = ""tko (elbows)""" "Find the name of instructors who are advisors of students from the Math department, and sort the results by students' total credit.",SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred which is the new pageant from spain?,"SELECT new_pageant FROM table_14308895_2 WHERE country_territory = ""Spain""" "What is Date, when Championship is Mackay?","SELECT date FROM table_name_72 WHERE championship = ""mackay""" What is the location that has a power of 5kw (10kw ERP)?,"SELECT location__transmitter_site_ FROM table_2610582_3 WHERE power_kw__erp_ = ""5kW (10kW ERP)""" How much did the away team St Kilda score?,"SELECT away_team AS score FROM table_name_51 WHERE away_team = ""st kilda""" What is the average price of products with manufacturer codes equal to 2?,SELECT avg(price) FROM products WHERE Manufacturer = 2 Select the project names which are not assigned yet.,SELECT Name FROM Projects WHERE NOT Code IN (SELECT Project FROM AssignedTo) "What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?",SELECT AVG(geo_id) FROM table_name_4 WHERE latitude < 46.57958 AND longitude = -102.109898 AND land___sqmi__ > 35.99 Show the medicine names and trade names that cannot interact with the enzyme with product 'Protoporphyrinogen IX'.,"SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'" Name the driver passenger for 394 points,SELECT driver___passenger FROM table_16941304_4 WHERE points = 394 What is the id of the project with least number of documents?,SELECT project_id FROM Documents GROUP BY project_id ORDER BY COUNT(*) LIMIT 1 What is the wattage/TDP associated with model name 4x0?,"SELECT tdp FROM table_24099628_1 WHERE model__list_ = ""4x0""" how many mean elevation with lowest point being gulf of mexico and state being texas,"SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = ""Gulf of Mexico"" AND state = ""Texas""" Name the neighborhood of the community area in crime with report number 23843?,SELECT T3.neighborhood_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T2.report_no = 23778 Which user has done the most review on a business attributed to delivery?,SELECT T3.user_id FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Reviews AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name = 'Delivery' GROUP BY T3.user_id ORDER BY COUNT(T2.business_id) DESC LIMIT 1 Who was the visitor at the pittsburgh penguins at 7:00 pm that had a record of 0-2-2?,"SELECT visitor FROM table_name_14 WHERE home = ""pittsburgh penguins"" AND time = ""7:00 pm"" AND record = ""0-2-2""" What is the trademark listed for the molecular target : dna-binding?,"SELECT trademark FROM table_12715053_1 WHERE molecular_target = ""DNA-Binding""" What is the administrative capital of LGA name Akuku-Toru?,"SELECT administrative_capital FROM table_1966992_1 WHERE lga_name = ""Akuku-Toru""" Which team had a game of 82?,SELECT team FROM table_name_60 WHERE game = 82 "How many films with the rental rate of $2.99 have the special feature of ""Deleted Scenes""?",SELECT COUNT(film_id) FROM film WHERE rental_rate = 2.99 AND special_features = 'Deleted Scenes' What is the US cash box before 1978 with a US billboard of 35?,SELECT us_cash_box FROM table_name_20 WHERE year < 1978 AND us_billboard = 35 Which prime mover had a Model of rs-18?,"SELECT prime_mover FROM table_name_61 WHERE model = ""rs-18""" "If the just ratio is 11:8 and the cents size is 560, what is the interval name?","SELECT interval_name FROM table_18955077_1 WHERE size__cents_ = 560 AND just_ratio = ""11:8""" What is the average and maximum number of total passengers for train stations in London or Glasgow?,"SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'" What is the location of the team Saturn?,"SELECT location FROM table_20140132_1 WHERE team = ""Saturn""" Give the player id of the player who was at the non-striker end for the most number of balls in the match 501219.,SELECT Ball_Id FROM Ball_by_Ball WHERE Non_Striker = Ball_Id ORDER BY Ball_Id DESC LIMIT 1 What was the surface for events held in 1983?,SELECT surface FROM table_2151643_3 WHERE year = 1983 Can you also give me the minimum and maximum starting years?,"select max ( Starting_Year ) ,min ( Starting_Year ) from technician" "What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.","SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID" What is the id and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix?,"SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" WHo was the outgoing manager for the team of fc carl zeiss jena?,"SELECT outgoing_manager FROM table_name_36 WHERE team = ""fc carl zeiss jena""" "Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a?","SELECT l2_cache FROM table_name_42 WHERE frequency = ""1333 mhz"" AND model_number = ""c3 1.3a""" Which Incumbent has a District of California 5?,"SELECT incumbent FROM table_name_99 WHERE district = ""california 5""" How many provinces have a density of 165.81?,"SELECT COUNT(iso_) AS № FROM table_254234_1 WHERE density² = ""165.81""" Which High assists have a Record of 4-2?,"SELECT high_assists FROM table_name_96 WHERE record = ""4-2""" "Show the studios that have not produced films with director ""Walter Hill"".","SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = ""Walter Hill""" What is the total where the nation is South Africa (rsa) and bronze is less than 1?,"SELECT SUM(total) FROM table_name_45 WHERE nation = ""south africa (rsa)"" AND bronze < 1" What are the names of the top 10 airlines with the most number of routes?,SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count ( * ) DESC LIMIT 10 "What is the rank for points less than 166.96, and a Places of 166?","SELECT AVG(rank) FROM table_name_88 WHERE points < ""166"".96 AND places = ""166""" Find the average and minimum weight for each gender.,"SELECT AVG(weight), MIN(weight), sex FROM people GROUP BY sex" What animal was yes for tv series and was a terrapins?,"SELECT animal_name FROM table_name_98 WHERE tv_series = ""yes"" AND species = ""terrapins""" "How many instructors are in the department with the highest budget, and what is their average salary?","SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1" what is the color with least products?,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count ( * ) ASC LIMIT 1 List all the login names and family names of course author and tutors.,"SELECT login_name , family_name FROM Course_Authors_and_Tutors" Which Cmp-Att-Int has a GP-GS of 3-0?,"SELECT cmp_att_int FROM table_name_61 WHERE gp_gs = ""3-0""" When was the stokers' training ship launched?,"SELECT launched FROM table_24496403_1 WHERE disposition = ""Stokers' training ship""" List all the mountains that are volcanic along with its longitude and latitude.,"SELECT Name, Latitude, Longitude FROM mountain WHERE Type = 'volcano'" find the member name and college location for the member id 1,"select T2.Name, T1.College_Location from college AS T1 JOIN member AS T2 ON T2.College_ID = T1.College_ID WHERE Member_ID = 1" How many orders were made by Alan Barnes in 2015 at the Central superstore?,"SELECT COUNT(DISTINCT T2.`Order ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Alan Barnes' AND STRFTIME('%Y', T2.`Order Date`) = '2015'" Show the cinema name and location for cinemas with capacity above average.,"SELECT name, LOCATION FROM cinema WHERE capacity > (SELECT AVG(capacity) FROM cinema)" How many students are not enrolled in the course?,SELECT count ( * ) FROM STUDENT WHERE StuID NOT IN ( SELECT StuID FROM ENROLLED_IN ) How many years had Jr. John Conyers served in total?,"SELECT SUM(CAST(T2.END - T2.start AS DATE)) AS sum FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'John Conyers, Jr.'" "In early 1873, Owen sound had what works number?","SELECT works_number FROM table_name_39 WHERE date = ""early 1873"" AND name = ""owen sound""" Name the score for howard (8) high rebounds,"SELECT score FROM table_name_44 WHERE high_rebounds = ""howard (8)""" What was the date of the game when the Lightning had a record of 9–8–1?,"SELECT date FROM table_name_58 WHERE record = ""9–8–1""" Who is the partnering that had the opponents of Marcelo Melo André Sá?,"SELECT partnering FROM table_name_29 WHERE opponents_in_final = ""marcelo melo andré sá""" How many total goals were scored in games where goals conceded was 35?,SELECT COUNT(goals_scored) FROM table_16034882_2 WHERE goals_conceded = 35 What are their names?,SELECT name FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' ) Show all allergies with number of students affected.,"SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy" How many employees do we have?,SELECT count(*) FROM Employee What are the shipping agent names?,SELECT shipping_agent_name FROM Ref_Shipping_Agents; What ranks do we have for faculty?,SELECT DISTINCT rank FROM Faculty What is the most common sports name?,SELECT SportName FROM SportsInfo GROUP BY SportName ORDER BY count ( * ) DESC LIMIT 1 How many exhibitions have a attendance more than 100 or have a ticket price below 10?,SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10 On which date was the result w20-0?,"SELECT date FROM table_name_66 WHERE result = ""w20-0""" List the movie that has been rated most by 25 years old users.,SELECT T2.movieid FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid WHERE T1.age = 25 GROUP BY T2.movieid ORDER BY COUNT(T1.userid) DESC LIMIT 1 Who did the high rebounds in the game in which Rodney Stuckey (16) did the high points?,"SELECT high_rebounds FROM table_27755603_2 WHERE high_points = ""Rodney Stuckey (16)""" What is the record where high assists is pierce (6)?,"SELECT record FROM table_11959669_6 WHERE high_assists = ""Pierce (6)""" how many latitudes have 0.081 (sqmi) of water?,"SELECT COUNT(latitude) FROM table_18600760_15 WHERE water__sqmi_ = ""0.081""" What are the details for all projects that did not hire any staff in a research role?,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) How many draws did gary o'shaughnessy have?,"SELECT SUM(draw) FROM table_name_91 WHERE performer = ""gary o'shaughnessy""" How many camera lenses are not used in taking any photos?,SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos ) What is the average grid for jo siffert?,"SELECT AVG(grid) FROM table_name_57 WHERE driver = ""jo siffert""" "For each country and airline name, how many routes are there?","SELECT T1.country, T1.name, COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country, T1.name" What is the teaching language with the duration (years) 3.5?,"SELECT teaching_language FROM table_12591022_2 WHERE duration__years_ = ""3.5""" "Among the cars on a train that runs in the east direction, how many of them have a flat roof and a circle load shape?",SELECT SUM(CASE WHEN T1.load_shape = 'circle' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' AND T1.roof = 'flat' On what date did the Lions play against the Tampa Bay Buccaneers?,"SELECT date FROM table_name_66 WHERE opponent = ""tampa bay buccaneers""" What is the highest games Played where the Place is 10 and Points are less than 17?,SELECT MAX(played) FROM table_name_56 WHERE place = 10 AND points < 17 "Who is the alternate for Andy Brown, and Nick Grady?","SELECT alternate__2_ FROM table_name_7 WHERE coach = ""andy brown"" AND captain = ""nick grady""" What's the price of the team whose captain is Sanath Jayasuriya?,"SELECT price FROM table_19905183_1 WHERE captain = ""Sanath Jayasuriya""" Please list all the predicted relation classes of object sample no.14 in image no.1.,SELECT T1.PRED_CLASS FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.OBJ1_SAMPLE_ID = 14 AND T2.OBJ2_SAMPLE_ID = 14 "Please list the names and seatings for all the tracks opened after 2000, ordered by seating.","SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating" "Thank you :) If it is not too bothersome, could you please let me know the average salary of the instructors in Pol. Sci.?","SELECT avg ( salary ) from instructor where dept_name = ""Pol. Sci.""" Which tourist attractions can we get to by bus? Tell me the names of the attractions.,"SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus""" List the name of all tracks in the playlists of Movies.,"SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = ""Movies"";" What is the score of the Boston Bruins game from April 11?,"SELECT score FROM table_name_39 WHERE home = ""boston bruins"" AND date = ""april 11""" What was the method for the UFC Fight Night 10 event?,"SELECT method FROM table_name_11 WHERE event = ""ufc fight night 10""" How many First Pref votes have Seats of 1?,"SELECT COUNT(first_pref_votes) FROM table_name_45 WHERE seats = ""1""" Name the class 1-200 for university of hertfordshire for university of warwick,"SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = ""University of Hertfordshire"" AND class_1a = ""University of Warwick""" What capital has an area of 2166086?,SELECT capital FROM table_name_53 WHERE area__km²_ = 2166086 List the physicians' employee ids together with their primary affiliation departments' ids.,"SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1" What is the Tie no of Hereford United's Away game?,"SELECT tie_no FROM table_name_83 WHERE away_team = ""hereford united""" What did fitzroy score at their home game?,"SELECT home_team AS score FROM table_name_98 WHERE home_team = ""fitzroy""" What are the lowest points from 1992 with a Chassis of Minardi m192?,"SELECT MIN(points) FROM table_name_89 WHERE year = 1992 AND chassis = ""minardi m192""" Which Score has a High assists of whalen (5)?,"SELECT score FROM table_name_40 WHERE high_assists = ""whalen (5)""" Name of each manufacturer's product?,"SELECT T1.Name, T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code" What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?,"SELECT college FROM table_name_65 WHERE pick < 3 AND pba_team = ""alaska milkmen""" What was the finish for the golfer with a To par of +2?,"SELECT finish FROM table_name_91 WHERE to_par = ""+2""" List the patient ids whose disease has the most occurrences.,SELECT T1.patient FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT INNER JOIN all_prevalences AS T3 ON T3.ITEM = T2.DESCRIPTION ORDER BY T3.OCCURRENCES DESC LIMIT 1 When westcott is in division one how many leagues are in division 5?,"SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = ""Westcott""" "Which team had the highest penalty kill chances in 1995, Florida Panthers, Edmonton Oilers or Los Angeles Kings?","SELECT name FROM Teams WHERE year = 1995 AND name IN ('Florida Panthers', 'Edmonton Oilers', 'Los Angeles Kings') ORDER BY PKC DESC LIMIT 1" "What is Team, when High Points is ""Tracy McGrady (24)""?","SELECT team FROM table_name_49 WHERE high_points = ""tracy mcgrady (24)""" "What team did Russ Wiechnik, on the centre position, come from?","SELECT college_junior_club_team FROM table_1965650_11 WHERE position = ""Centre"" AND player = ""Russ Wiechnik""" "What was the Score where Goal is larger than 11, and a Competition of 2009 nehru cup, and had a Date of 24 august 2009?","SELECT score FROM table_name_37 WHERE goal > 11 AND competition = ""2009 nehru cup"" AND date = ""24 august 2009""" "State the number of actively running Yelp businesses in ""Tolleson"".",SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Tolleson' AND active LIKE 'TRUE' What is the total number of byes with more than 0 losses and 1526 against?,SELECT COUNT(byes) FROM table_name_31 WHERE losses > 0 AND against = 1526 What was the total price of the products shipped to Rovelli Gifts Distributors Ltd. between 1/1/2003 and 12/31/2003?,"SELECT T3.priceEach * T3.quantityOrdered FROM customers AS T1 INNER JOIN orders AS T2 ON T1.customerNumber = T2.customerNumber INNER JOIN orderdetails AS T3 ON T2.orderNumber = T3.orderNumber WHERE T1.customerName = 'Rovelli Gifts' AND T2.status = 'Shipped' AND STRFTIME('%Y', T2.shippedDate) = '2003'" What is the average horsepower for all cars produced before 1980 ?,SELECT AVG(horsepower) FROM cars_data WHERE year < 1980 What are the names of properties that are either houses or apartments with more than 1 room?,"SELECT property_name FROM Properties WHERE property_type_code = ""House"" UNION SELECT property_name FROM Properties WHERE property_type_code = ""Apartment"" AND room_count > 1" Name the date with the record of 1-0,"SELECT date FROM table_13258823_2 WHERE record = ""1-0""" what are the dname's of those DNO's?,SELECT DName from Department where DNO not in ( select DNO from Minor_in ) "Game smaller than 34, and a December smaller than 14, and a Score of 10 - 6 has what opponent?","SELECT opponent FROM table_name_46 WHERE game < 34 AND december < 14 AND score = ""10 - 6""" what is the result when the competition is friendly on 8 october 2009?,"SELECT result FROM table_name_73 WHERE competition = ""friendly"" AND date = ""8 october 2009""" "Show ids, first names, last names, and phones for all customers.","SELECT customer_id , customer_first_name , customer_last_name , customer_phone FROM Customers" What is the short description for the title Future Einsteins Of America?,SELECT short_description FROM essays WHERE title = 'Future Einsteins Of America' What about in 2004?,SELECT name FROM student WHERE id IN ( SELECT id FROM takes WHERE semester = 'Spring' AND YEAR = 2004 ) how many ships are there?,SELECT count(*) FROM ship When michael reihs is the mountains classification what is the stage?,"SELECT stage FROM table_28298471_14 WHERE mountains_classification = ""Michael Reihs""" How many baronies is Maulnagrough a part of?,"SELECT COUNT(barony) FROM table_30120761_1 WHERE townland = ""Maulnagrough""" What is the ticket price at Canadian National Exhibition Stadium?,"SELECT ticket_price_s_ FROM table_name_7 WHERE venue = ""canadian national exhibition stadium""" Show the most common nationality of hosts.,SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 Indicate the time frame and details of the most recent care plan suggested to Jacquelyn Shanahan.,"SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS timeFrame , T2.DESCRIPTION FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' ORDER BY T2.START DESC LIMIT 1" Which mixed doubles was featured in 2006?,SELECT mixed_doubles FROM table_name_93 WHERE year = 2006 "My apologies! I mean ask for ""l"" or lower-case L... Therefore, can you list the lots that belong to category ""l"" in the 'lot details' column?","SELECT * FROM LOTS WHERE lot_details = ""l""" who is the opponent on november 24?,SELECT opponent FROM table_name_68 WHERE november = 24 What is the most common object class of image ID 56?,SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 56 GROUP BY T2.OBJ_CLASS ORDER BY COUNT(T2.OBJ_CLASS_ID) DESC LIMIT 1 List the team name and the total wins of the team in year 2005 which has greater winning from the previous year.,"SELECT T1.name, T1.won FROM teams AS T1 INNER JOIN ( SELECT * FROM teams WHERE year = 2004 ) AS T2 on T1.tmID = T2.tmID WHERE T1.year = 2005 and T1.won > T2.won" How many schools are there?,SELECT count(*) FROM school Name the opponent for game 5,SELECT opponent FROM table_name_25 WHERE game = 5 "For Stellenbosch, which has a population larger than 155,733, what is the average area?","SELECT AVG(area__km_2__) FROM table_name_38 WHERE name = ""stellenbosch"" AND population__2011_ > 155 OFFSET 733" "In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?","SELECT COUNT(2 AS nd) FROM table_14836185_3 WHERE scoring_average = ""71.62""" Which schools do not have any player? Give me the school locations.,SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player) What is the code of the area with the largest Asian population?,SELECT T1.zip_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.asian_population ORDER BY T2.asian_population DESC LIMIT 1 What nhl team does stan weir play for?,"SELECT nhl_team FROM table_1473672_2 WHERE player = ""Stan Weir""" "What is the point level of ""Refrigeration and metal stem thermometers provided and conspicuous""?",SELECT point_level FROM inspection_point WHERE Description = 'Refrigeration and metal stem thermometers provided and conspicuous ' "Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?","SELECT COUNT(pick__number) FROM table_name_61 WHERE league_from = ""ontario hockey league"" AND nationality = ""united states"" AND team_from = ""brampton battalion""" "Give the grade score for Rik Unsworth in ""Computer Network"".",SELECT CASE grade WHEN 'A' THEN 4 WHEN 'B' THEN 3 WHEN 'C' THEN 2 ELSE 1 END AS result FROM registration WHERE student_id IN ( SELECT student_id FROM student WHERE f_name = 'Rik' AND l_name = 'Unsworth' AND course_id IN ( SELECT course_id FROM course WHERE name = 'Computer Network' ) ) What is the last name of the staff member in charge of the complaint on the product with the lowest price?,SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1 Name the D 43 when it has D 45 of d 25,"SELECT d_43 FROM table_name_45 WHERE d_45 = ""d 25""" What's the callsign in Tacloban?,"SELECT callsign FROM table_name_22 WHERE location = ""tacloban""" can you tell me the status that is shared by more than two roller coasters?,SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT ( * ) > 2 What is the name of the school that has a player named Michael Dunigan?,"SELECT school FROM table_name_79 WHERE player = ""michael dunigan""" "What are the vocal types used in song ""Le Pop""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" Can you show the Price of the Product Code 1?,SELECT Price FROM Products WHERE Code = 1 Which distinct state makes beer that has the least amount of bitterness?,"SELECT DISTINCT T2.state, T1.ibu FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T1.ibu IS NOT NULL AND T1.ibu = ( SELECT MIN(ibu) FROM beers )" Find the name and attribute ID of the attribute definitions with attribute value 0.,"SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0" "What Round has a Time of n/a, in rio de janeiro , brazil?","SELECT round FROM table_name_5 WHERE time = ""n/a"" AND location = ""rio de janeiro , brazil""" What is the station type of calbayog,"SELECT station_type FROM table_12547903_2 WHERE location__transmitter_site_ = ""Calbayog""" Show all member names and registered branch names sorted by register year.,"SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year" How many tree species are listed when the total plant species is 258?,SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258 Which city is post code 255 located in?,SELECT city FROM addresses WHERE zip_postcode = 255 When was the earliest first game with 11 played and 12 games lost?,SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 12 "Which are the teams coached by 'adelmri01' from year 1990-1995. List the team name, year and offense point.","SELECT T2.name, T1.year, T2.o_pts FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year BETWEEN 1990 AND 1995 AND T1.coachID = 'adelmri01'" How many people in Montenegro speaks Serbian?,SELECT T1.Percentage * T2.Population FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Serbian' AND T2.Name = 'Montenegro' "What is Player, when Total is 292?",SELECT player FROM table_name_36 WHERE total = 292 "For the tournament ending with a margin of victory of 6 strokes, what was the winning score?","SELECT winning_score FROM table_name_90 WHERE margin_of_victory = ""6 strokes""" What is Senyi N'Diaye's Position?,"SELECT position FROM table_name_35 WHERE name = ""senyi n'diaye""" Calculate the quantity percentage of the gift products in the total trading quantity.,"SELECT CAST(SUM(IIF(T1.Price = 0, T2.Quantity, 0)) AS REAL) * 100 / SUM(T2.Quantity)FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID" Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL?,"SELECT events_won_by_kcl FROM table_name_74 WHERE winner = ""kclms"" AND events_won_by_kclMS < 10 AND year = 2008" What's the count for obese children and adolescents ranked 48?,SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 48 what artist won in 1953,"SELECT artist FROM table_name_41 WHERE year = ""1953""" Give the year where a university had the lowest number of students.,SELECT year FROM university_year ORDER BY num_students ASC LIMIT 1 Which desert in Kazakhstan is the largest?,SELECT T1.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Kazakstan' ORDER BY T1.Area DESC LIMIT 1 What is the high total for algeria with over 2 bronzes?,"SELECT MAX(total) FROM table_name_82 WHERE nation = ""algeria"" AND bronze > 2" "how many adults stay in the room contad selbig checked in on oct 23, 2010?","SELECT count ( Adults ) FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG""" Tell me the team 1 for team 2 being civitavecchiese (latium a),"SELECT team_1 FROM table_name_8 WHERE team_2 = ""civitavecchiese (latium a)""" Which mlb team is located in maryland?,"SELECT team FROM table_name_95 WHERE state_province = ""maryland"" AND league = ""mlb""" "Find the name, account type, and account balance of the customer who has the highest credit score.","SELECT cust_name, acc_type, acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1" "What is the Electorate when the term of office was 1955–1972, for Peter Howson?","SELECT electorate FROM table_name_16 WHERE term_of_office = ""1955–1972"" AND member = ""peter howson""" What is shown on Friday when Tuesday is Jay Mohr Sports?,"SELECT friday FROM table_name_25 WHERE tuesday = ""jay mohr sports""" What Place has a Player of seve ballesteros?,"SELECT place FROM table_name_89 WHERE player = ""seve ballesteros""" Find the number of people whose age is greater than all engineers.,SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer') "Compared with the orders happened on 2005-04-08 and two days later, which day's order had a higher value?","SELECT T2.orderDate FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber WHERE STRFTIME('%Y-%m-%d', T2.orderDate) = '2005-04-08' OR STRFTIME('%Y-%m-%d', T2.orderDate) = '2005-04-10' ORDER BY T1.quantityOrdered * T1.priceEach DESC LIMIT 1" "Which fleet launched on July 30, 1961?","SELECT fleet FROM table_name_63 WHERE launched = ""july 30, 1961""" What year was the No. 7 charts?,"SELECT AVG(year) FROM table_name_32 WHERE charts = ""no. 7""" What's the Issue Date for an Eric Prydz song with a no available Download information?,"SELECT issue_date FROM table_name_89 WHERE download = ""no available"" AND artist = ""eric prydz""" What are the most popular restaurants in San Francisco among diners?,"SELECT id_restaurant, label FROM generalinfo WHERE city = 'San Francisco' AND review = ( SELECT MAX(review) FROM generalinfo WHERE city = 'San Francisco' )" "What's the total number of density for the place with a population over 393,390?",SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390 What are the first names of all professors not teaching any classes?,SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num What is the outcome code for that project?,SELECT outcome_code from Project_Outcomes where project_id = '7' "What is Position, when Weight is greater than 200, when Number is less than 44, when Years Exp is 9, and when College is ""University of New Mexico""?","SELECT position FROM table_name_68 WHERE weight > 200 AND number < 44 AND years_exp = ""9"" AND college = ""university of new mexico""" How many students enlist in the air force organization?,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force' What was the average money when the score was 68-69-68-72=277?,SELECT AVG(money___) AS $__ FROM table_name_97 WHERE score = 68 - 69 - 68 - 72 = 277 "In Cavalier County and the geo id is larger than 3801931620.0, what is the population?","SELECT pop__2010_ FROM table_18600760_7 WHERE county = ""Cavalier"" AND geo_id > 3801931620.0" "What country has sa/b as the notes, and a time of 5:51.30?","SELECT country FROM table_name_55 WHERE notes = ""sa/b"" AND time = ""5:51.30""" Where were jamie cox & scott kremerskothen paired?,"SELECT venue FROM table_name_24 WHERE batsmen = ""jamie cox & scott kremerskothen""" What are the cities that do not have any branches with more than 100 members?,SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 "Glad that I didn't trouble you again :) Thank you, then could you please let me know the investor's name and company for the ID?","SELECT Entrepreneur_ID,Investor,Company from entrepreneur order by Money_Requested desc limit 1" what is the camera used when the wavelength is 814nm (i-band)?,"SELECT camera FROM table_2583036_1 WHERE wavelength = ""814nm (I-band)""" Name the original air date of 1/2 in season,"SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = ""1/2""" How old is the doctor named Zach?,SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach' "What is the record for November 4, with a decision made by Denis?","SELECT record FROM table_name_10 WHERE decision = ""denis"" AND date = ""november 4""" Name the D 45 O with D 46 O of r 31 √,"SELECT d_45_o FROM table_name_97 WHERE d_46_o = ""r 31 √""" "How many documents are there with the document type code ""BK""?","SELECT count ( T2.Document_Date ) FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.Document_Type_Code = ""BK""" Name the # country for new palestine,"SELECT _number___county FROM table_name_54 WHERE school = ""new palestine""" Count the number of artists.,SELECT count(*) FROM artist On what date is Jerilyn Britz the runner-up?,"SELECT date FROM table_name_32 WHERE runner_s__up = ""jerilyn britz""" "What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?","SELECT surface FROM table_name_77 WHERE outcome = ""runner-up"" AND date = ""24 february 1997""" WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?,"SELECT MIN(races) FROM table_name_93 WHERE pole < 2 AND season = ""2007""" Count the number of accounts.,SELECT count(*) FROM accounts What is the email address of the Facilities Manager?,SELECT T3.EmailAddress FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmailAddress AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.JobTitle = 'Facilities Manager' How many phones are not available in any markets?,SELECT count ( Name ) FROM phone WHERE Phone_id NOT IN ( SELECT Phone_ID FROM phone_market ) "Find the product names that are colored 'white' but do not have unit of measurement ""Handful"".","SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = ""white"" AND t2.unit_of_measure <> ""Handful""" "Among the crimes in all the districts in Chicago, what is the percentage of them happening in the Central district?",SELECT CAST(SUM(CASE WHEN T2.district_name = 'Central' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.case_number) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the number of business rates.","SELECT T2.cmi_cross_ref_id , T2.master_customer_id , count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id" "What is Prize, when Runner-Up is ""Simon Ehne"", and when Winner is ""David Tighe""?","SELECT prize FROM table_name_37 WHERE runner_up = ""simon ehne"" AND winner = ""david tighe""" What province was New Plymouth formed from?,"SELECT formed_from FROM table_275023_1 WHERE province = ""New Plymouth""" "What is Record, when Visitor is ""Chicago Black Hawks"", and when Date is ""April 17""?","SELECT record FROM table_name_32 WHERE visitor = ""chicago black hawks"" AND date = ""april 17""" What is their average age?,SELECT avg ( T1.age ) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = ( SELECT max ( student_capacity ) FROM dorm ) What is the characteristic name used by most number of the products?,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 GROUP BY t3.characteristic_name ORDER BY count(*) DESC LIMIT 1 "Which Result has a Competition of 2014 fifa world cup qualification, and a Score of 2 – 0?","SELECT result FROM table_name_72 WHERE competition = ""2014 fifa world cup qualification"" AND score = ""2 – 0""" How many times does the call sign XEZV appear?,"SELECT COUNT(transmitting_from) FROM table_14670060_1 WHERE call_sign = ""XEZV""" What is every rider on Tuesday August 25 at 20' 32.11 110.241mph?,"SELECT rider FROM table_23465864_5 WHERE tues_25_aug = ""20' 32.11 110.241mph""" How many attended the game on April 17?,"SELECT SUM(attendance) FROM table_name_50 WHERE date = ""april 17""" What is the lowest of Episode Number that has a Air Date on 20 july 2007?,"SELECT MIN(episode_number) FROM table_name_79 WHERE air_date = ""20 july 2007""" List down the open secrets and thomas ID of the democrat senators of New Jersey.,"SELECT T1.opensecrets_id, T1.thomas_id FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.type = 'sen' AND T2.state = 'NJ' GROUP BY T1.opensecrets_id, T1.thomas_id" Who are the customers?,SELECT cust_name FROM customer How many people in New York City have friends?,select count ( * ) from Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE Person.city = 'new york city' what is name of employee id 100? | Did you mean the first name or last name of employee id 100? | first,select FIRST_NAME from employees where employee_id = 100 What is the rank when the total is less than 1?,SELECT MIN(rank) FROM table_name_24 WHERE total < 1 What is the description of the color for most products?,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) DESC LIMIT 1 What is the weight of the player from club panionios g.c. and was born on 1975-05-21?,"SELECT weight FROM table_name_70 WHERE club = ""panionios g.c."" AND date_of_birth = ""1975-05-21""" which countries have more than 2 airports?,SELECT country FROM airport GROUP BY country HAVING count(*) > 2 what are the station network name and services for these station,"SELECT t1.network_name , t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id" Find the ids of the problems that are reported by the staff whose last name is Bosco.,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = ""Bosco""" Which country is the University of Oxford located?,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE university_name = 'University of Oxford' In which tournament was vijay singh a runner-up?,"SELECT tournament FROM table_name_20 WHERE runner_up = ""vijay singh""" On what date did Ayrton Senna win at Imola?,"SELECT date FROM table_name_92 WHERE winning_driver = ""ayrton senna"" AND location = ""imola""" What school had the draft pick of 29?,SELECT school FROM table_name_36 WHERE pick = 29 Find the name and age of the person who is a friend of both Dan and Bob.,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'" How many numbers were recorded under matches with Arthur Morris?,"SELECT COUNT(matches) FROM table_16570286_2 WHERE player = ""Arthur Morris""" What was the attendance on August 23?,"SELECT COUNT(attendance) FROM table_name_77 WHERE date = ""august 23""" "What are the names of contact individuals of the ""Labour Party""? | Do you want to know the first name, middle name, last name? | Just the last names.","SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = ""Labour Party"" ORDER BY t2.date_contact_to DESC LIMIT 1" What is the Visitor of the game on January 24?,"SELECT visitor FROM table_name_33 WHERE date = ""january 24""" How many branches does London have?,SELECT count ( branch_id ) FROM branch where city = 'London' What is the defective year for the eighth numbered month?,"SELECT defective_year FROM table_28985631_1 WHERE numbered_month = ""Eighth""" "Which Date has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (12)?","SELECT date FROM table_name_99 WHERE location_attendance = ""madison square garden 19,763"" AND high_rebounds = ""david lee (12)""" "WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1?","SELECT tournament FROM table_name_5 WHERE 2010 = ""a"" AND 2009 = ""a"" AND 2011 = ""q1""" "Among all the suppliers providing the part ""hot spring dodger dim light"", how many of them are in Europe?",SELECT COUNT(T1.r_regionkey) FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey INNER JOIN supplier AS T3 ON T2.n_nationkey = T3.s_nationkey WHERE T1.r_name = 'EUROPE' what is the vehicle code where the bore is 79.4?,"SELECT vehicle_code FROM table_23722304_2 WHERE bore__mm_ = ""79.4""" What is the total number of Afro-Asian people in the most populous Asian country governed by a monarchy?,SELECT T5.Percentage * T6.Population FROM ethnicGroup AS T5 INNER JOIN country AS T6 ON T5.Country = T6.Code WHERE Country = ( SELECT T3.Code FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN politics AS T4 ON T4.Country = T3.Code WHERE T4.Government = 'monarchy' AND T1.Name = 'Asia' ORDER BY T3.Population DESC LIMIT 1 ) AND T5.Name = 'Afro-Asian' What are the names and areas of countries with the top 5 largest area?,"SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5" "What is the name of the bank branch that has lended the largest total amount in loans, specifically to customers with credit scores below 100?",SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1 What Championship had a winning score of 69-71-67-68=275?,SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275 How many employees are from Calgary city?,select count ( * ) from employee where city = 'Calgary' Which Lost has a Tries for of 75?,"SELECT lost FROM table_name_78 WHERE tries_for = ""75""" "What is the tokenized name of the solution whose path is ""maravillas_linq-to-delicious\tasty.sln""?",SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious' "Find the number of tied games (the value of ""ties"" is '1') in 1885 postseason.",SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1; How many first round draft player in 1996 NBA draft became an All-Star?,SELECT COUNT(T2.playerID) FROM draft AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.draftYear = 1996 AND T1.draftRound = 1 what is the class of the ship id 1,SELECT class FROM ship where Ship_ID = 1 What is the rear sight in the Cole model no. 735?,"SELECT rear_sight FROM table_12834315_1 WHERE colt_model_no = ""735""" What player has the score of 67-72=139?,SELECT player FROM table_name_58 WHERE score = 67 - 72 = 139 What product category got the least sales in the west superstore?,SELECT T2.Category FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` ORDER BY T1.Sales LIMIT 1 List the title of films that do not have any market estimation.,SELECT Title FROM film WHERE NOT Film_ID IN (SELECT Film_ID FROM film_market_estimation) What are the names of all airports in Cuba or Argentina?,SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina' Show the name of the county with the biggest population.,SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 What is the total checking balance in all accounts?,SELECT sum(balance) FROM checking What country are the new orleans shell shockers from?,"SELECT country FROM table_28005160_2 WHERE sponsored_name = ""New Orleans Shell Shockers""" "For all the full attendence players in 1995, which player had most turnovers? Give the full name of the player.","SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.GP = 82 AND T2.year = 1995 ORDER BY T2.turnovers DESC LIMIT 1" Which country has a city with a Hanja of 平安北道?,"SELECT country FROM table_name_83 WHERE hanja = ""平安北道""" What is the area of the destination city of shipment No.1346?,SELECT T2.area FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1346' what about the oldest tweet?,SELECT * FROM tweets order by createdate limit 1 What's the average hours per week all students played football?,select avg ( HoursPerWeek ) from SportsInfo where SportName = 'Football' Which player is from south africa?,"SELECT player FROM table_name_93 WHERE country = ""south africa""" "What are the first, middle, and last names of all individuals, ordered by last name?","SELECT individual_first_name , individual_middle_name , individual_last_name FROM individuals ORDER BY individual_last_name" "When 25 are willing to take risks, what is the experts view?",SELECT MIN(experts_view) FROM table_1855342_5 WHERE willing_to_take_risks = 25 Give at least five alias of cities with a postal point of post office.,SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.type = 'Post Office' LIMIT 5 What is the lowest first elected?,SELECT MIN(first_elected) FROM table_1341423_21 "Which customers have both ""On Road"" and ""Shipped"" as order status? List the customer ids.","SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" Which tournament had a qf in 2011?,"SELECT tournament FROM table_name_26 WHERE 2011 = ""qf""" Who is the runner-up where the winning score is –8 (71-69-67-73=280)?,SELECT runner_s__up FROM table_name_45 WHERE winning_score = –8(71 - 69 - 67 - 73 = 280) What driver has less than 18 laps and a grid number under 16?,SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16 Name the movie with the most ratings.,SELECT movie_title FROM movies GROUP BY movie_title ORDER BY COUNT(movie_title) DESC LIMIT 1 Provide the ship date of the first shipment to customers in South Carolina.,SELECT MIN(T1.ship_date) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'SC' What position was drafted by the Hamilton Tiger-Cats? ,"SELECT position FROM table_21321804_5 WHERE cfl_team = ""Hamilton Tiger-Cats""" Which Department has the highest Budget value? tell me the rank and creation year.,"SELECT ranking, creation from department where Budget_in_Billions = ( select max ( Budget_in_Billions ) from department ) " tell me project details about the project id 1 ?,SELECT project_details FROM Projects WHERE project_id = 1 What is the date of appointment when the outgoing manager was mustafa denizli?,"SELECT date_of_appointment FROM table_26998135_2 WHERE outgoing_manager = ""Mustafa Denizli""" What is the total number of products not included in any of the orders?,SELECT count ( * ) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items ) "Who wrote the episode ""The Dream Lover"", which was viewed by 3.96 million viewers?","SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = ""3.96""" How many donors in Los Angeles donated to school in another city?,SELECT COUNT(T2.schoolid) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.donor_city = 'Los Angeles' AND T2.school_city NOT LIKE 'Los Angeles' Please tell me how many accounts payed an amount over $600.,SELECT count ( distinct account_id ) FROM Financial_transactions where transaction_amount > 600 How many private schools are in Hawaii?,"SELECT count ( * ) FROM school WHERE location like ""%Hawaii"" and type = ""Private""" What score has south africa as the country?,"SELECT score FROM table_name_92 WHERE country = ""south africa""" Calculate the percentage of famous_legislatorss.,SELECT CAST(SUM(CASE WHEN wikipedia_id IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(bioguide_id) FROM historical List the carriers of devices that have no devices in stock.,SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock) Which winning driver of the Roussillon Grand Prix had an Alfa Romeo?,"SELECT winning_driver FROM table_name_53 WHERE winning_constructor = ""alfa romeo"" AND name = ""roussillon grand prix""" "how many apartments have bookings with status code ""confirmed""?","SELECT count ( * ) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" What is the finish when the to par is +18?,"SELECT finish FROM table_name_18 WHERE to_par = ""+18""" Which character won the Outstanding Voice-Over Performance award in 2009?,SELECT DISTINCT T1.character FROM Character_Award AS T1 INNER JOIN Award AS T2 ON T1.award_id = T2.award_id WHERE T2.award = 'Outstanding Voice-Over Performance' AND T2.year = 2009 AND T2.result = 'Winner'; What Club team with a Round larger than 5 have a defense position?,"SELECT club_team FROM table_name_9 WHERE round > 5 AND position = ""defense""" What is the maker of the carr produced in the earliest year and what year was it?,"SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);" How many years was the film The Blossoming of Maximo Oliveros entered?,"SELECT COUNT(year__ceremony_) FROM table_17919342_1 WHERE film_title_used_in_nomination = ""The Blossoming of Maximo Oliveros""" Name the name for norway nationality,"SELECT name FROM table_25826954_7 WHERE nationality = ""Norway""" What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?,"SELECT specific_impulse__s_ FROM table_name_19 WHERE scenario = ""sr-71 at mach 3.2 (wet)""" What is the highest number of podiums before 2008 with a 5th position and more than 0 f/laps?,"SELECT MAX(podiums) FROM table_name_62 WHERE season < 2008 AND position = ""5th"" AND f_laps > 0" Murupara has a roll greater than 296 for what years?,"SELECT years FROM table_name_6 WHERE roll > 296 AND area = ""murupara""" What are the laws against homosexuality in Malaysia?,"SELECT laws_against_homosexuality FROM table_name_34 WHERE country = ""malaysia""" "How many times was Ian Maxtone-Graham nominated for an award in Writers Guild of America, USA?","SELECT COUNT(award_id) FROM Award WHERE person = 'Ian Maxtone-Graham' AND organization = 'Writers Guild of America, USA' AND result = 'Nominee';" Which class more recent than 1988 has G tyres?,"SELECT class FROM table_name_24 WHERE tyres = ""g"" AND year > 1988" What is the minimum altitude (mslm) in all the commons?,SELECT MIN(altitude__mslm_) FROM table_1449169_1 "What was the capacity at construction of the stadium in Gold Coast, Queensland? ","SELECT capacity_at_construction FROM table_28885977_1 WHERE location = ""Gold Coast, Queensland""" what is the height (m) when the birth date is 1968-07-01?,"SELECT height__m_ FROM table_name_89 WHERE birth_date = ""1968-07-01""" "When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?","SELECT SUM(apps) FROM table_name_30 WHERE club = ""flamengo"" AND season = ""2009"" AND goals > 0" Find the name of the train whose route runs through greatest number of stations.,SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY count(*) DESC LIMIT 1; What is the date of week 4?,SELECT date FROM table_name_57 WHERE week = 4 give the 1st leg score against ilisiakos,"SELECT 1 AS st_leg FROM table_21434618_1 WHERE team__number2 = ""Ilisiakos""" Provide the country with republic government which has the highest population growth?,SELECT T2.Country FROM population AS T1 INNER JOIN politics AS T2 ON T1.Country = T2.Country WHERE T2.Government = 'republic' ORDER BY T1.Population_Growth DESC LIMIT 1 "What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance?","SELECT SUM(week) FROM table_name_41 WHERE opponent = ""tampa bay buccaneers"" AND attendance < 60 OFFSET 320" "If the record is 5-5, what is the game maximum?","SELECT MAX(game) FROM table_23285805_4 WHERE record = ""5-5""" What are the distinct buildings with capacities of greater than 50?,SELECT DISTINCT building FROM classroom WHERE capacity > 50 "What are the email, cell phone and home phone of each professional?","SELECT email_address , cell_number , home_phone FROM professionals" What is the highest price that a publisher earns?,SELECT Price FROM publication order by Price DESC limit 1 Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.,"SELECT DISTINCT Name FROM WINE WHERE Price > ( SELECT min ( Price ) FROM wine WHERE Winery = ""John Anthony"" ) " How many classrooms are not in Lamberton?,SELECT count(*) FROM classroom WHERE building ! = 'Lamberton' "List the full names, religions, and parties of legislators who have served in Maine.","SELECT T1.official_full_name, T2.relation, T2.party FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'ME' GROUP BY T1.official_full_name, T2.relation, T2.party" What is the name of the school with the highest difference in the average completion rate for the national in which it belongs? Indicate the state appropriations to higher education in fiscal year 2011 per resident to which the school belongs.,"SELECT T1.chronname, T2.state_appr_value FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state ORDER BY T1.awards_per_value - T2.awards_per_natl_value DESC LIMIT 1" "Among the establishments with a postal code of 94102, how many establishments have a score of 90 or more in 2015?","SELECT COUNT(DISTINCT T2.business_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id INNER JOIN inspections AS T3 ON T2.business_id = T3.business_id WHERE STRFTIME('%Y', T1.`date`) = '2015' AND T2.postal_code = '94102' AND T3.score > 90" "How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?",SELECT COUNT(total) FROM table_name_64 WHERE concacaf = 0 AND mls_cup < 6 What is the lowest number of events the Open Championship has with a less than 0 top-10?,"SELECT MIN(events) FROM table_name_30 WHERE tournament = ""the open championship"" AND top_10 < 0" What is the first name of the band mate who perfomed in the most songs?,SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1 What did the away team score at Moorabbin oval?,"SELECT away_team AS score FROM table_name_38 WHERE venue = ""moorabbin oval""" Find the names of courses that have either 3 credits or 1 credit but 4 hours.,SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4 What about the youngest?,SELECT MIN ( Age ) FROM Student where Major = 600 "How many goals against have 64 for games, a loss less than 12, with points greater than 107?",SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107 What was the major type of crime that happened in the Rogers Park community area?,"SELECT T1.fbi_code_no, T1.title FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.community_area_name = 'Rogers Park' GROUP BY T1.fbi_code_no, T1.title" "Among the employees in the Manufacturing group in 2007, how many of them are store contacts?","SELECT COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN Person AS T3 ON T1.BusinessEntityID WHERE T3.PersonType = 'SC' AND T2.GroupName = 'Manufacturing' AND STRFTIME('%Y', T1.EndDate) >= '2007' AND STRFTIME('%Y', T1.StartDate) <= '2007'" What are names for top three branches with most number of membership?,SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 What are the majors only less than three students are studying?,SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3 What are the ids of all male students who do not play football?,"SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" Which venue was used on 10 september 2010?,"SELECT venue FROM table_name_28 WHERE date = ""10 september 2010""" Find the name and age of the person who is a friend of both Bob and Zach.,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'" "How many words are there on the page that the word ""grec"" has occurred for 52 times?",SELECT SUM(T3.words) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52 What was the result in the district represented by Thomas R. Gold?,"SELECT result FROM table_2668367_13 WHERE incumbent = ""Thomas R. Gold""" What is her full name?,"SELECT customer_details FROM customers WHERE customer_details LIKE ""%Diana%""" What are the distinct unit prices of all tracks?,SELECT distinct(UnitPrice) FROM TRACK How many ships are there?,SELECT COUNT(*) FROM ship List the full name of all the senior senators in year 2013.,SELECT T2.official_full_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.state_rank = 'senior' AND T1.type = 'sen' AND T1.start LIKE '2013%' What is the code for A Magnetic Primer Designer?,SELECT Code FROM projects where Name = 'A Magnetic Primer Designer' Which Winner has a Winter Olympics of 1968?,"SELECT winner FROM table_name_31 WHERE winter_olympics = ""1968""" What is the lowest draft of player justin martin from the USA?,"SELECT MIN(draft) FROM table_name_80 WHERE nationality = ""usa"" AND player = ""justin martin""" "For the country in which Olsztyn is located, where is the capital?",SELECT T1.Capital FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Olsztyn' Which class has a Team of kouros racing team?,"SELECT class FROM table_name_34 WHERE team = ""kouros racing team""" how many lessons does customer with first name ray took?,"SELECT count ( * ) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" "When Kabwe Warriors (team 1) played, what was the result of the 1st leg?","SELECT 1 AS st_leg FROM table_name_66 WHERE team_1 = ""kabwe warriors""" Which Venue has an Away team of south melbourne?,"SELECT venue FROM table_name_89 WHERE away_team = ""south melbourne""" What is the Points with a Tries For that is 21?,"SELECT points FROM table_name_13 WHERE tries_for = ""21""" What are the different dorm amenity names in alphabetical order?,SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name "In 2014, what are the id and rank of the team that has the largest average number of attendance?","SELECT T2.team_id , T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;" What are the positions with both players having more than 20 points and less than 10 points.,SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 "What is the total number of Grid, when Rider is Aleix Espargaro?","SELECT COUNT(grid) FROM table_name_2 WHERE rider = ""aleix espargaro""" What is the type of POR?,"SELECT type FROM table_name_10 WHERE nat = ""por""" Which date had the catalog designation of ha-m 2230?,"SELECT date FROM table_name_37 WHERE catalog = ""ha-m 2230""" What is the population of Kragerø?,"SELECT MIN(population) FROM table_name_17 WHERE city = ""kragerø""" What is the time/retired for a grid over 17 with 74 laps?,SELECT time_retired FROM table_name_31 WHERE grid > 17 AND laps = 74 What is the team 2 with turnovo as team 1?,"SELECT team_2 FROM table_name_6 WHERE team_1 = ""turnovo""" What is the composition at Valles lava dome?,"SELECT composition FROM table_1081235_1 WHERE name_of_lava_dome = ""Valles lava dome""" List the details of the customers who do not have any policies.,SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id How many customers are there?,SELECT count ( * ) FROM customers Show the destination airport of route id 39?,select dst_apid from routes where rid = 39 Which artist released singles between 1980 to 1982?,SELECT artist FROM torrents WHERE groupYear BETWEEN 1980 AND 1982 AND releaseType LIKE 'single' What are the ids of the students who do not own cats as pets?,SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' What title was watched by 3.8 million US viewers?,"SELECT title FROM table_26448179_3 WHERE us_viewers__millions_ = ""3.8""" What is the Java EE compatibility of the 5.2.4 edition?,"SELECT java_ee_compatibility FROM table_name_97 WHERE edition = ""5.2.4""" which area has a rank of 60?,SELECT metropolitan_area FROM table_22916979_2 WHERE rank = 60 which donator has the lowest endowment amount?,"SELECT donator_name , sum ( amount ) FROM endowment GROUP BY donator_name ORDER BY sum ( amount ) asc limit 1" How many years did the role of Steve Rhoades last?,"SELECT years FROM table_name_21 WHERE role = ""steve rhoades""" What's the time of Britta Steffen in a lane less than 4?,"SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = ""britta steffen""" Name the team for week 1 of 33,"SELECT team FROM table_name_66 WHERE week_1 = ""33""" Which Altadeña has a Aprende of jaguars?,"SELECT altadeña FROM table_name_83 WHERE aprende = ""jaguars""" How many furniture components are there in total?,SELECT SUM(num_of_component) FROM furniture What is the full name of the actor who has acted the most times in comedy films?,"SELECT T.first_name, T.last_name FROM ( SELECT T4.first_name, T4.last_name, COUNT(T2.actor_id) AS num FROM film_category AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id INNER JOIN actor AS T4 ON T2.actor_id = T4.actor_id WHERE T3.name = 'Comedy' GROUP BY T4.first_name, T4.last_name ) AS T ORDER BY T.num DESC LIMIT 1" On which streets in the city of San Francisco are there restaurants with a review of 1.7?,SELECT T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.review = 1.7 List all podcast with its itunes url for all title containing the word 'Dream'.,SELECT itunes_url FROM podcasts WHERE title LIKE '%Dream%' GROUP BY itunes_url Whats the name of segment in s08e21,"SELECT segment_a FROM table_15187735_16 WHERE netflix = ""S08E21""" What's the NO of the standard with HC of 1.23 g/kWh?,"SELECT no_x__g_kwh_ FROM table_2780146_6 WHERE hc__g_kwh_ = ""1.23""" On what street in Tuolumne County is Good Heavens restaurant located?,SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T2.label = 'good heavens' AND T3.county = 'tuolumne county' Who had Pole position for the French Grand Prix?,"SELECT pole_position FROM table_name_69 WHERE race = ""french grand prix""" State the first name of male clients who did not receive timely response from the call center.,SELECT T1.first FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'No' AND T1.sex = 'Male' "For the professor who advised student no.6, please list the IDs of the courses he or she teaches.",SELECT T2.course_id FROM taughtBy AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id INNER JOIN advisedBy AS T3 ON T3.p_id = T1.p_id WHERE T1.p_id = 9 What is that student's registration ID?,SELECT T1.registration_id FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT ( * ) = 5 Who were the candidates in the Kentucky 9 district? ,"SELECT candidates FROM table_2668254_8 WHERE district = ""Kentucky 9""" What is the home team score of the Ghantoot Racing and Polo Club Ground?,"SELECT home_team AS score FROM table_name_25 WHERE ground = ""ghantoot racing and polo club""" How many stories have a height less than 138 meters with a completion date in 1971?,SELECT stories FROM table_name_53 WHERE height__m_ < 138 AND year_of_completion = 1971 Show invoice dates and order id and details for all invoices.,"SELECT T1.invoice_date , T1.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id" What is the description for the CIS-220 and how many credits does it have?,"SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'" What year was the West Coast League established than the championships are greater than 0?,"SELECT established FROM table_name_32 WHERE championships > 0 AND league = ""west coast league""" Which city has the highest temperature in February?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1 What was the high points when rebounds were Terrence Williams (8)?,"SELECT high_points FROM table_22879323_10 WHERE high_rebounds = ""Terrence Williams (8)""" Tell me the chip with frequency larger than 10,SELECT chip FROM table_name_63 WHERE frequency_[mhz] > 10 Name the position for pick number 39,SELECT position FROM table_2508633_2 WHERE pick__number = 39 "What is the Position with a Year with freshman, and a Weight larger than 210?","SELECT position FROM table_name_79 WHERE year = ""freshman"" AND weight > 210" Where is store 1 located?,SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1 "What is Name, when Goals is greater than 14, and when Transfer Fee is ""Youth System""?","SELECT name FROM table_name_49 WHERE goals > 14 AND transfer_fee = ""youth system""" What was the Tuesday episode if theThursday episode was 196 Buried?,"SELECT tuesday FROM table_18173916_6 WHERE thursday = ""196 Buried""" What are the names of patients who are staying in room 111 and have an undergoing treatment?,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111 what's the minimum attendance with score  10.16 (76) – 9.22 (76),"SELECT MIN(attendance) FROM table_10566855_1 WHERE score = ""10.16 (76) – 9.22 (76)""" What is detail of the student who most recently registered course?,SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1 Name the number of director for huelepega: ley de la calle,"SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = ""Huelepega: Ley de la Calle""" List names for drivers from Hartford city and younger than 40.,SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40 Find the names of all patients who have an undergoing treatment and are staying in room 111.,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111 What date did they play the Florida Panthers?,"SELECT date FROM table_23486853_3 WHERE opponent = ""Florida Panthers""" What season has roma as the opponent?,"SELECT season FROM table_name_15 WHERE opponent = ""roma""" 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""" "What was the result of the game on January 5, 1926?","SELECT result FROM table_name_79 WHERE date = ""january 5, 1926""" What are the dates of publications in descending order of price?,SELECT Publication_Date FROM publication ORDER BY Price DESC Find the name of the department which has the highest average salary of professors.,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC LIMIT 1 How many shipments in 2017 were done by Sue Newell?,"SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' AND T2.first_name = 'Sue' AND T2.last_name = 'Newell'" What position did the person who was with the grizzlies in 1998-1999 play?,"SELECT position FROM table_name_91 WHERE years_for_grizzlies = ""1998-1999""" What is the Perfect fifth with a Minor that is seventh of d?,"SELECT perfect_fifth FROM table_name_48 WHERE minor_seventh = ""d""" How many times was the candidates dick gephardt (d) 81.9% lee buchschacher (r) 18.1%?,"SELECT COUNT(incumbent) FROM table_1341663_26 WHERE candidates = ""Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%""" What is the region with the most customers?,"SELECT T.r_name FROM ( SELECT T3.r_name, COUNT(T2.c_custkey) AS num FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN region AS T3 ON T1.n_regionkey = T3.r_regionkey GROUP BY T3.r_name ) AS T ORDER BY T.num DESC LIMIT 1" "What is the color code and description of the product named ""chervil""?","SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" "What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?","SELECT AVG(2002) FROM table_name_88 WHERE country = ""peru"" AND 2007 > 1 OFFSET 200" How many fans were at Essendon?,"SELECT COUNT(crowd) FROM table_name_48 WHERE home_team = ""essendon""" "What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps?","SELECT AVG(year) FROM table_name_98 WHERE poles < 2 AND fast_laps = 0 AND drivers = ""adrian quaife-hobbs""" What's its primary conference?,SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 What is the frequency of KQLX?,"SELECT frequency FROM table_name_76 WHERE call_sign = ""kqlx""" What was the record after game 79?,SELECT record FROM table_name_27 WHERE game__number = 79 What is the pick number for the tight end who was picked after round 6?,"SELECT COUNT(pick) FROM table_name_67 WHERE round > 6 AND position = ""tight end""" What is the id of the instructor who advises of all students from History department?,SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' Which bike traveled the most often in zip code 94002?,SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1 "What is the highest Game, when Opponent is ""Chicago Black Hawks"", and when November is less than 16?","SELECT MAX(game) FROM table_name_44 WHERE opponent = ""chicago black hawks"" AND november < 16" What is the team 1 with cementarnica as team 2?,"SELECT team_1 FROM table_name_20 WHERE team_2 = ""cementarnica""" What is Anna Rogowska's average result?,"SELECT AVG(result) FROM table_name_7 WHERE name = ""anna rogowska""" What is the first year a game is released?,SELECT MIN(T.release_year) FROM game_platform t What are the phone and email for customer Harold?,"SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = ""Harold""" Which country is Howard Clark from?,"SELECT country FROM table_name_18 WHERE player = ""howard clark""" Which contact codes were used for less than 5 minutes?,SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count ( customer_id ) < 5 What is the Draws average that has a Played that's smaller than 18?,SELECT AVG(draws) FROM table_name_46 WHERE played < 18 "List the review and label of the restaurants in Mission Blvd., Hayward.","SELECT T2.review, T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'hayward' AND T1.street_name = 'mission blvd'" What are the most points scored in a game where the score was 1-2?,"SELECT MAX(points) FROM table_27539272_7 WHERE score = ""1-2""" "Among the user ID with number in compliment of uber on profile, list any 5 user ID and the year when they join Yelp.","SELECT T3.user_id, T3.user_yelping_since_year FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T1.compliment_type = 'profile' AND T2.number_of_compliments = 'Uber' LIMIT 5" "Name the first aired with money requested more than 85,000",SELECT first_aired FROM table_name_86 WHERE money_requested__£_ > 85 OFFSET 000 Who constructed rolf stommelen's car?,"SELECT constructor FROM table_name_83 WHERE driver = ""rolf stommelen""" what's the score with date  oct 1,"SELECT score FROM table_11621915_1 WHERE date = ""Oct 1""" "Which Year is the highest one that has a Venue of blackwolf run, composite course, and a Score of 281?","SELECT MAX(year) FROM table_name_48 WHERE venue = ""blackwolf run, composite course"" AND score = ""281""" How many transactions are there for product under the Mountain line?,SELECT COUNT(T2.TransactionID) FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductLine = 'M' "How many solutions are in ""https://github.com/derickbailey/presentations-and-training.git""?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/derickbailey/presentations-and-training.git' How many synthesis are there for 5~16.2 pw per cycle (calculated) output power?,"SELECT COUNT(synthesis) FROM table_30057479_1 WHERE output_power = ""5~16.2 pW per cycle (calculated)""" How many points when 15 is scored is considered the minimum?,SELECT MIN(points) FROM table_14889048_2 WHERE scored = 15 Which buildings have more than one company offices? Give me the building names.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 How many clients have an email account other than gmail.com?,SELECT COUNT(email) FROM client WHERE email NOT LIKE '%@gmail.com' List the nominees that have been nominated more than two musicals.,SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2 Who was the young rider classification when Diego Ulissi won? ,"SELECT COUNT(young_rider_classification) FROM table_28538368_2 WHERE winner = ""Diego Ulissi""" List down the eateries' IDs with structural inspection type in February 2016.,SELECT business_id FROM inspections WHERE type = 'Structural Inspection' AND `date` LIKE '2016-02%' How many award winners are from the USA?,SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T1.birth_country = 'USA' AND T2.result = 'Winner'; "For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed?","SELECT COUNT(foreign_nationality) FROM table_17964087_2 WHERE romanised_name = ""Lo Yik-kee, Victor""" What did the home team score when the away team was South Melbourne?,"SELECT home_team AS score FROM table_name_31 WHERE away_team = ""south melbourne""" "Describe the number of app IDs and location of the event ID ""79641"".","SELECT COUNT(T1.app_id), T2.longitude, T2.latitude FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE T1.event_id = 79641 GROUP BY T2.longitude, T2.latitude" What is the Place of the Player with a Score of 69-72-72=213?,SELECT place FROM table_name_63 WHERE score = 69 - 72 - 72 = 213 What is the total money requested by entrepreneurs with height more than 1.85?,SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85 Which Home has an Away of hispano?,"SELECT home FROM table_name_62 WHERE away = ""hispano""" "What round did the MWEHL team, Detroit Honeybaked, and the NHL Team Columbus Blue Jackets play?","SELECT round FROM table_name_9 WHERE mwehl_team = ""detroit honeybaked"" AND nhl_team = ""columbus blue jackets""" What is the first name and GPA of every student that has a GPA lower than average?,"SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)" What are the percentages in 2001 in all the provinces where the percentage in 2011 is 0.2%?,"SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = ""0.2%""" What are the names of all colleges that have two or more players?,SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 "Which country has a density (per km²) of 6,814?","SELECT country FROM table_name_32 WHERE density__per_km²_ = ""6,814""" Find the id and cell phone of the professionals who operate two or more types of treatments.,"SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2" "In weather station 17, which store sold the highest quantity of item 45 in October 2012?",SELECT T1.store_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.item_nbr = 45 AND T2.station_nbr = 17 AND T1.`date` LIKE '%2012-10%' GROUP BY T1.store_nbr ORDER BY SUM(T1.units) DESC LIMIT 1 "What was the number of female Hispanic students who graduated within 100 percent of expected time for ""Pennsylvania State University-Altoona""?",SELECT SUM(T2.grad_100) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Pennsylvania State University-Altoona' AND T2.gender = 'F' AND T2.race = 'H' What is the date when the team is listed as New Orleans?,"SELECT date FROM table_27755784_8 WHERE team = ""New Orleans""" "How many matches had the result of 6–3, 6–2?","SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = ""6–3, 6–2""" "What was the Finish when NL was the League, the Percentage was under 0.726, the Year was larger than 1897, and the Franchies was the Pittsburgh Pirates?","SELECT finish FROM table_name_22 WHERE league = ""nl"" AND percentage < 0.726 AND year > 1897 AND franchise = ""pittsburgh pirates""" What is the number for De Vries?,"SELECT MIN(no) FROM table_12608427_8 WHERE name = ""de Vries""" Show the city and the number of branches opened before 2010 for each city.,"SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city" What Winning constructor has a Circuit of lasarte?,"SELECT winning_constructor FROM table_name_82 WHERE circuit = ""lasarte""" ok i want to highest rating in the song table,SELECT rating FROM song ORDER BY rating DESC LIMIT 1 Which film was Eddie Murphy nominated for?,"SELECT film FROM table_name_19 WHERE winner_nominee_s_ = ""eddie murphy"" AND result = ""nominated""" What is the name of the ship with the largest tonnage?,SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 What was the score for Boston's Home game that had Gerber as the decision?,"SELECT score FROM table_name_34 WHERE decision = ""gerber"" AND home = ""boston""" In which season did Jimmy Eriksson win the championship for Team Lotus?,"SELECT season FROM table_name_40 WHERE team = ""lotus"" AND champion = ""jimmy eriksson""" "Find the campus fee of ""San Jose State University"" in year 2000.","SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Jose State University"" AND t1.year = 2000" What points average has a played greater than 20?,SELECT AVG(points) FROM table_name_31 WHERE played > 20 Can you sort them by the number of airports?,SELECT city FROM airports GROUP BY city HAVING count ( * ) > 2 ORDER BY count ( * ) What was the share of votes when there were more than 56 electors and the year was more recent than 1950?,SELECT share_of_votes FROM table_name_95 WHERE electors > 56 AND year > 1950 List the object number of railways that do not have any trains.,SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train) State the year and title of papers written by Barrasa.,"SELECT T1.Year, T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Barrasa'" List the closing time and day of week of active businesses in Tempe with stars greater than the 70% of average age of star rating.,"SELECT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Tempe' AND T1.active LIKE 'TRUE' AND T1.stars > 0.7 * ( SELECT AVG(T1.stars) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Tempe' AND T1.active LIKE 'TRUE' )" What is the total grid number with laps that are larger than 27?,SELECT COUNT(grid) FROM table_name_17 WHERE laps > 27 Who is in group B and has a mark of 6.33?,"SELECT name FROM table_name_10 WHERE group = ""b"" AND mark = ""6.33""" What was the outcome of the final with a partner of Brett Steven?,"SELECT outcome FROM table_name_62 WHERE partner = ""brett steven""" For what tournament is the 1990 0 / 4?,"SELECT tournament FROM table_name_83 WHERE 1990 = ""0 / 4""" What's the record of Barbados?,"SELECT record FROM table_name_51 WHERE nationality = ""barbados""" List the first names of the people with more than 65 sick leave hours.,SELECT T2.FirstName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.SickLeaveHours > 65 Okay. What is the average budget for all movies before 2000?,SELECT avg ( budget_million ) FROM movie where year < 2000 Which position is cfl team edmonton eskimos for weber state college?,"SELECT position FROM table_21321804_1 WHERE cfl_team = ""Edmonton Eskimos"" AND college = ""Weber State""" What district has Albert Rains as their representative?,"SELECT district FROM table_1342149_3 WHERE incumbent = ""Albert Rains""" What zone has camp type D/S in area Bl9?,"SELECT zone FROM table_name_41 WHERE camp_type = ""d/s"" AND area = ""bl9""" How much percentage of the film did Mary Keitel perform more than Angela Witherspoon?,"SELECT CAST((SUM(IIF(T1.first_name = 'ANGELA' AND T1.last_name = 'WITHERSPOON', 1, 0)) - SUM(IIF(T1.first_name = 'MARY' AND T1.last_name = 'KEITEL', 1, 0))) AS REAL) * 100 / SUM(IIF(T1.first_name = 'MARY' AND T1.last_name = 'KEITEL', 1, 0)) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id" How many characters are there in Twelfth Night?,SELECT COUNT(DISTINCT T4.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.Title = 'Twelfth Night' How many students have been absents for more than 6 months?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 6 "What round did Mitch Davis, with an overall higher than 118, have?","SELECT SUM(round) FROM table_name_50 WHERE name = ""mitch davis"" AND overall < 118" "What is the average age of the members of the club ""Bootup Baltimore""?","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" List the names of all distinct wines that are made of red color grape.,"SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red""" Show different teams of technicians and the number of technicians in each team.,"SELECT Team, COUNT(*) FROM technician GROUP BY Team" What is the repeat date of the episode that aired 22/12/1968?,"SELECT repeatairdate_s_ FROM table_13403120_1 WHERE originalairdate = ""22/12/1968""" What is the minimum and maximum number of bathrooms of all the departments?,"SELECT min ( bathroom_count ) , max ( bathroom_count ) FROM Apartments" What are the codes of card types that have 5 or more cards?,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*) >= 5 "Which award ceremony took place on May 15, 1965?","SELECT ceremony FROM table_name_91 WHERE date = ""may 15, 1965""" now sort the list by price,"SELECT roomName, decor, basePrice FROM Rooms WHERE bedtype = 'King' order by basePrice" How many courses are there?,SELECT count(*) FROM Courses What is the result of proteus mirabilis tested with indole?,"SELECT indole FROM table_16083989_1 WHERE species = ""Proteus mirabilis""" What is the greatest points value that have draws under 2 and 2 losses?,SELECT MAX(points) FROM table_name_67 WHERE drawn < 2 AND lost = 2 "What is the Year, when Role is ""himself"", and when Title is ""Epik High's Love And Delusion""?","SELECT year FROM table_name_59 WHERE role = ""himself"" AND title = ""epik high's love and delusion""" Could you add in the reservation rates they paid to the table?,"SELECT T1.firstname , T1.lastname, T1.Rate FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice < 0" What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?,"SELECT score FROM table_name_78 WHERE competition_round = ""copa libertadores group 4"" AND away_team = ""universitario"" AND date = ""14 march 1972""" List the official full names of 10 legislators who have a YouTube account but no Instagram account.,SELECT T2.official_full_name FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T1.facebook IS NOT NULL AND (T1.instagram IS NULL OR T1.instagram = '') LIMIT 10 Which school was Lawrence Roberts from ?,"SELECT school_club_team FROM table_name_13 WHERE player = ""lawrence roberts""" What is the least common faculty rank?,SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1 "Among the times Mary Smith had rented a movie, how many of them happened in June, 2005?","SELECT COUNT(T1.customer_id) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' AND STRFTIME('%Y',T1.payment_date) = '2005' AND STRFTIME('%Y', T1.payment_date) = '6'" The venue of Rome has which date?,"SELECT date FROM table_name_84 WHERE venue = ""rome""" What is the rate limit when the desired rate change (%) is +40.4?,"SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = ""+40.4""" Please indicate the street names of restaurants with food type is American.,SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'American' Name the most attendance for 25 january 2004,"SELECT MAX(attendance) FROM table_name_64 WHERE date = ""25 january 2004""" How many Borough-type stores located in the city of Brooklyn have a population of less than 3 million?,SELECT SUM(CASE WHEN Population < 3000000 AND Type = 'Borough' AND `City Name` = 'Brooklyn' THEN 1 ELSE 0 END) FROM `Store Locations` Which month has the most happy hours?,SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1 How low was the income where services is 72.5?,"SELECT income_poverty_f FROM table_13618358_1 WHERE services_ & _cons_truction_b = ""72.5""" List the name of all projects that are operated longer than the average working hours of all projects.,SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects) How many different part 3 verbs are there that mean to freeze?,"SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = ""to freeze""" Which grade has the most high schoolers?,SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1 Who else reports to Andrew Adams?,"SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = ""Andrew"" AND T1.last_name = ""Adams"" and T2.first_name ! = 'Nancy' and T2.last_name ! = 'Edwards'" What's the patent number of Fukuda?,"SELECT plant_patent_number FROM table_name_21 WHERE ""inventor"" = ""fukuda""" Show the locations shared by shops.,SELECT location FROM shop group by location having count ( * ) > 1 How many points does Marussia Manor Racing have?,"SELECT COUNT(points) FROM table_25548630_1 WHERE team = ""Marussia Manor Racing""" What episode came out in the year 2007?,SELECT episodes FROM table_2639433_4 WHERE year = 2007 Which kingdom has Suin as its capital?,"SELECT name_of_kingdom FROM table_name_65 WHERE capital = ""suin""" Which high school is located in Kyoto?,"SELECT high_school_name FROM table_2518850_4 WHERE prefecture = ""Kyoto""" Time of 10.82 has what location?,SELECT location FROM table_name_84 WHERE time = 10.82 "what is the highest wickets when the matches is less than 5, player is jim laker and average is more than 52.44?","SELECT MAX(wickets) FROM table_name_89 WHERE matches < 5 AND player = ""jim laker"" AND average > 52.44" What is the website address of the institution with the highest number of White degree-seeking students at 2-year institutions in 2008?,SELECT T1.site FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'W' AND T2.cohort = '2y all' AND T2.year = 2008 ORDER BY T2.grad_cohort DESC LIMIT 1 "What are all the policy types of the customer named ""Dayana Robel""?","SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" Show the working years of managers in descending order of their level.,SELECT Working_year_starts FROM manager ORDER BY LEVEL DESC What is the type if the transfer window is summer and the moving from category is free agent?,"SELECT type FROM table_name_89 WHERE transfer_window = ""summer"" AND moving_from = ""free agent""" Which wicket had 580 runs?,"SELECT wicket FROM table_name_85 WHERE runs = ""580""" Name the number for fifth district for richard houskamp,"SELECT COUNT(fifth_district) FROM table_15442974_1 WHERE third_district = ""Richard Houskamp""" What are the names of tracks that contain the the word you in them?,SELECT Name FROM TRACK WHERE Name LIKE '%you%' And which stores owns the most items?,SELECT * FROM inventory GROUP BY store_id ORDER BY count ( * ) desc LIMIT 1 What is the 2012 population for the state whose capital is Santa Fe?,"SELECT population_est__2012_ FROM table_name_61 WHERE capital = ""santa fe""" "If the call sign is DXYR, what is the branding?","SELECT branding FROM table_19874169_3 WHERE callsign = ""DXYR""" "When was the hottest temperature recorded? If there are multiple dates with the hottest temperature, indicate all of the dates.","SELECT max_temperature_f, date FROM weather WHERE max_temperature_f = ( SELECT MAX(max_temperature_f) FROM weather WHERE max_temperature_f IS NOT NULL AND max_temperature_f IS NOT '' )" "For country with area greater than 600000, what is agriculture percentage of GDP the country contributes?",SELECT T2.Agriculture FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Area > 600000 AND T2.Agriculture IS NOT NULL Hello! Can you provide me with a list of all churches please? | Do you need their names or ids? | Ah yes! Can you please provide me with a list containing both?,"SELECT Church_id, name FROM church" Which visiting team had a final score of 14-34?,"SELECT visiting_team FROM table_name_12 WHERE final_score = ""14-34""" Name the investing dragon for razzamataz,"SELECT investing_dragon_s_ FROM table_name_5 WHERE company_or_product_name = ""razzamataz""" "For each submission, show the author and their affiliated college.","SELECT Author , College FROM submission" What district is incumbent albert rains from?,"SELECT district FROM table_1341897_3 WHERE incumbent = ""Albert Rains""" Show card types with at least 5 cards?,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count ( * ) > = 5 "display those employees who contain a letter z to their first name and also display their last name, city.","SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'" What is the genre of the game '2 Games in 1: Sonic Advance & ChuChu Rocket!'?,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2 Games in 1: Sonic Advance & ChuChu Rocket!' Write the address and phone number of Margaret Peacock.,"SELECT Address, HomePhone FROM Employees WHERE FirstName = 'Margaret' AND LastName = 'Peacock'" "With order number 7 and the theme is Motown, who were the original artists?","SELECT original_artist FROM table_21501565_1 WHERE order__number = ""7"" AND theme = ""Motown""" What position did he finish in 2012?,SELECT position FROM table_name_59 WHERE year = 2012 Which school has the Raiders as their mascot?,"SELECT school FROM table_11044765_1 WHERE mascot = ""Raiders""" Show the station name with greatest number of trains.,SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1 Which player was +4 to par and won the Open in 1995?,"SELECT player FROM table_name_3 WHERE to_par = ""+4"" AND year_s__won = ""1995""" Great! Can you provide me with the associated customer ID and payment ID?,"SELECT amount,payment_id,customer_id FROM payment ORDER BY amount DESC LIMIT 1" What is the points when the lost was 11?,"SELECT points_for FROM table_name_29 WHERE lost = ""11""" What player has a total of 158/,"SELECT player FROM table_name_54 WHERE total = ""158""" Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.,SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry' Find the full name and id of the college that has the most baseball players.,"SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;" What ground has etobicoke kangaroos as the home?,"SELECT ground FROM table_name_88 WHERE home = ""etobicoke kangaroos""" "Name the region for cd format on february 22, 1984","SELECT region FROM table_name_30 WHERE format = ""cd"" AND date = ""february 22, 1984""" Compute the total amount of payment processed.,SELECT sum(Amount_Payment) FROM Payments Find the names of the customers who have an deputy policy.,"SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy""" WHAT IS THE DEVICE WITH MTS MOBILITY?,"SELECT device FROM table_name_18 WHERE carrier = ""mts mobility""" What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?,"SELECT name FROM station WHERE city = ""Palo Alto"" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*) > 100" Who was the visiting team who played at the hubert h. humphrey metrodome stadium?,"SELECT visiting_team FROM table_name_67 WHERE stadium = ""hubert h. humphrey metrodome""" "In California, how many delivery receptacles are there in the community post office that has the highest number of delivery receptacles?",SELECT COUNT(*) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.abbreviation = 'CA' AND T2.type LIKE '%Community Post Office%' AND T1.name = 'California' AND T2.state = 'CA' Name the tournament venue for big sky conference,"SELECT tournament_venue__city_ FROM table_22849575_6 WHERE conference = ""Big Sky conference""" List all the main characters of the movie that are comedy genre.,SELECT T2.hero FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Comedy' Provide the ID of the most popular platform in Europe.,"SELECT T.game_platform_id FROM ( SELECT T1.game_platform_id, SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Europe' GROUP BY T1.game_platform_id ORDER BY SUM(T1.num_sales) DESC LIMIT 1 ) t" How many people led in assists on game 71?,SELECT COUNT(high_assists) FROM table_23248940_10 WHERE game = 71 Give the id of the bestsellers of store no.1 on 2012/1/1.,SELECT item_nbr FROM sales_in_weather WHERE `date` = '2012-01-01' AND store_nbr = 1 ORDER BY units DESC LIMIT 1 How many more sports games than simulation games?,SELECT COUNT(CASE WHEN T1.genre_name = 'Sports' THEN T2.id ELSE NULL END) - COUNT(CASE WHEN T1.genre_name = 'Simulation' THEN T2.id ELSE NULL END) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id What are all the makers and models?,"SELECT Maker , Model FROM MODEL_LIST;" Who is the director for the film title Eldra?,"SELECT director FROM table_26385848_1 WHERE film_title = ""Eldra""" When united arab emirates is the country what is the winning aircraft?,"SELECT winning_aircraft FROM table_26358264_2 WHERE country = ""United Arab Emirates""" what is the crude birth rate (per 1000) when the live births 1 is 356 013?,"SELECT SUM(crude_birth_rate__per_1000_) FROM table_name_72 WHERE live_births_1 = ""356 013""" What channels first aired on 31 December 1990 in the Southern Downs region?,"SELECT channels___analog___digital__ FROM table_name_91 WHERE first_air_date = ""31 december 1990"" AND region_served = ""southern downs""" What is the name of the activity that has the most faculty members involved in?,SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1 What is the score of the competition on November 10?,"SELECT score FROM table_name_90 WHERE date = ""november 10""" "Find all the product whose name contains the word ""Scanner"".","SELECT product FROM product WHERE product LIKE ""%Scanner%""" What Player has more than 1 Touchdowns with 0 Extra Points and less than 50 Points?,SELECT player FROM table_name_61 WHERE touchdowns > 1 AND extra_points = 0 AND points < 50 Who did the Raiders play in week 12?,SELECT opponent FROM table_name_25 WHERE week = 12 "Boca Raton, Florida had what joined amount?","SELECT joined FROM table_1183842_1 WHERE location = ""Boca Raton, Florida""" Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?,"SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = ""charles m. carlson""" please list out the customers name,SELECT customer_name FROM Customers What was the score where the total points was 50?,SELECT score FROM table_name_34 WHERE total_points = 50 How many advisors are there?,SELECT count(DISTINCT advisor) FROM Student "What are the average hours worked by all scientists, please? | Do you mean average hours on each project among all scientists? | Yes, please.",SELECT avg ( Hours ) FROM Projects what was the builder in 1929,"SELECT builder FROM table_name_22 WHERE year_built = ""1929""" What album had the reunion label in 2006?,"SELECT album FROM table_name_21 WHERE label = ""reunion"" AND year = 2006" "For the game where the away team was North Melbourne, what was the venue?","SELECT venue FROM table_name_7 WHERE away_team = ""north melbourne""" "What is the sum of Pick #, when Position is Guard, and when Round is greater than 2?","SELECT SUM(pick__number) FROM table_name_36 WHERE position = ""guard"" AND round > 2" Who was the winner in the 2008 season?,SELECT winner FROM table_name_53 WHERE season = 2008 Now i would like to know what the earliest date is?,SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1 How many original air dates for the episode written by David H. Goodman & Andrew Kreisberg?,"SELECT COUNT(original_air_date) FROM table_24649082_1 WHERE written_by = ""David H. Goodman & Andrew Kreisberg""" "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?","SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'" What are the offices of these professors?,SELECT T2.prof_office from employee as T1 join professor as T2 on T1.emp_num = T2.emp_num where T2.dept_code = 'HIST' "How many incidents have the general description of ""ASSAULT"" in the IUCR classification?",SELECT COUNT(*) FROM IUCR WHERE primary_description = 'ASSAULT' In what season was there a club of South Melbourne?,"SELECT season FROM table_name_75 WHERE club = ""south melbourne""" "How many negative comments are there in all the apps with 100,000,000+ installs?","SELECT COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Installs = '100,000,000+' AND T2.Sentiment = 'Negative'" How many orders have order date in 5/31/2018?,"SELECT SUM(IIF(OrderDate = '5/31/18', 1, 0)) FROM `Sales Orders`" What is the Locality of the Penarth Group School for Ages 8-16?,"SELECT locality FROM table_name_90 WHERE ages = ""8-16"" AND school = ""penarth group school""" List the project details of the projects with the research outcome described with the substring 'Published'.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'; What is the rank of the episode with a share of 6 and timeslot rank smaller than 4?,SELECT AVG(overall_rank) FROM table_name_39 WHERE share = 6 AND timeslot_rank < 4 How many clubs have total medals less than 10?,SELECT count(*) FROM club_rank WHERE Total < 10 What is the country that has a place of T6 that Eduardo Romero plays for?,"SELECT country FROM table_name_73 WHERE place = ""t6"" AND player = ""eduardo romero""" "Among the list of employees, what is the total number of supervisors?",SELECT COUNT(employee_id) FROM employee WHERE title = 'Supervisor' What was the streak after the game on Dec. 12?,"SELECT streak FROM table_name_18 WHERE date = ""dec. 12""" What's the total number of bronze medals for Sweden (SWE) having less than 1 gold and silver?,"SELECT COUNT(bronze) FROM table_name_90 WHERE gold < 1 AND nation = ""sweden (swe)"" AND silver < 1" Which of those dorms have a TV Lounge?,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' Which Venue is on 2004-07-24?,"SELECT venue FROM table_name_68 WHERE date = ""2004-07-24""" what is the record when the game is 13?,SELECT record FROM table_name_17 WHERE game = 13 Ken Wright of the National Party was from which province?,"SELECT province FROM table_name_79 WHERE party = ""national"" AND name = ""ken wright""" What was the lowest Attendance on 8 October 1986?,"SELECT MIN(attendance) FROM table_name_1 WHERE date = ""8 october 1986""" Find the average age and number of male students (with sex M) from each city.,"SELECT COUNT(*), AVG(age), city_code FROM student WHERE sex = 'M' GROUP BY city_code" Return the maximum and minimum number of cities across all markets.,"SELECT max(Number_cities) , min(Number_cities) FROM market" Who won the Fedex tour of Calabarzon?,"SELECT winner FROM table_name_76 WHERE name = ""fedex tour of calabarzon""" What is the average unit price of Rock tracks?,"SELECT AVG ( T2.UnitPrice ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0,"SELECT MAX(revenue__) AS $m_ FROM table_name_92 WHERE operating_income__$m_ > 27 AND team = ""hamburg"" AND debt_as__percentage_of_value < 0" Who are the employees that submitted resume to Human Resource Department and got hired? State the last name.,"SELECT T3.LastName FROM Employee AS T1 INNER JOIN JobCandidate AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T1.BusinessEntityID IN (212, 274)" When was the bike station from which the bike was borrowed on trip ID4069 installed?,SELECT T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 4069 what is the Number_of_Platforms does Main_Services South Western Main Line West of England Main Line have?,"SELECT number_of_platforms FROM station where Main_services = ""South Western Main Line West of England Main Line""" "What region has the Chrysalis label, and a Catalog of chr 1047?","SELECT region FROM table_name_13 WHERE label = ""chrysalis"" AND catalog = ""chr 1047""" Whose savings balance is lower than their checking balance?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance Which best 5-year period has a best 15-year period of alekhine; lasker?,"SELECT best_5_year_period FROM table_name_37 WHERE best_15_year_period = ""alekhine; lasker""" How about in paper?,SELECT access_count FROM documents where document_type_code = 'Paper' What date did the Colts play New York Jets?,"SELECT date FROM table_14945608_1 WHERE opponent = ""New York Jets""" How many goals when the points 1 is 38 and the played number is less than 42?,SELECT SUM(goals_for) FROM table_name_24 WHERE points_1 = 38 AND played < 42 list the all their prices,"select distinct Winery, price from wine" Name the settlement for александрово,"SELECT settlement FROM table_2562572_37 WHERE cyrillic_name_other_names = ""Александрово""" What is the average longitude of stations that never had bike availability more than 10?,SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available) > 10) How many years of NBA experience does the player who plays position g for the Portland Trail Blazers?,"SELECT years_of_nba_experience_[a_] FROM table_name_28 WHERE pos = ""g"" AND team = ""portland trail blazers""" Show all product names and the number of customers having an order on each product.,"SELECT T2.product_name , count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name" Find the tourist attractions that have parking or shopping as their feature details. What are the names of the attractions?,SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping' Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?,"SELECT AVG(week) FROM table_name_27 WHERE result = ""l 13-16"" AND opponent = ""at buffalo bills""" What is the first name of employee who handled sales for customer called Abigail?,SELECT DISTINCT T3.FirstName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T1.FirstName = 'Abigail' what is the year when the driver was kevin lepage?,"SELECT SUM(year) FROM table_name_87 WHERE driver = ""kevin lepage""" What is the total of rebound averages with more than 98 games and a rank of 7?,SELECT SUM(reb_avg) FROM table_name_16 WHERE games > 98 AND rank = 7 What was the away team's score at Western Oval?,"SELECT away_team AS score FROM table_name_74 WHERE venue = ""western oval""" What are the amenities in alphabetical order that Anonymous Donor Hall has?,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name Show me the heights of body builders with total score smaller than 315,SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315 "From 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM, how many times did Susan Wilson pay for film rentals?",SELECT COUNT(T1.customer_id) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_date BETWEEN '2005-05-30 03:43:54' AND '2005-07-31 10:08:29' What was the result of the election featuring andrew stevenson (j) 100%?,"SELECT result FROM table_2668243_25 WHERE candidates = ""Andrew Stevenson (J) 100%""" What is the error that has a size (steps) more than 5 and a just (cents) value 536.95,SELECT error FROM table_name_65 WHERE size__steps_ > 5 AND just__cents_ = 536.95 List the most common type of Status across cities.,SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 Name the fleet series with a quantity of 5,SELECT fleet_series FROM table_name_96 WHERE quantity = 5 Find the average number of followers for the users who had some tweets.,SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets) What is the re-order level of products that have an order quantity of 1?,SELECT T1.ReorderLevel FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Quantity = 1 "Find the dates of assessment notes for students with first name ""Fanny"".","SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = ""Fanny""" How many rides did it take Ray Day to get 274 points in total with less than 3 bonus points?,"SELECT COUNT(rides) FROM table_name_16 WHERE total_points < 274 AND rider = ""ray day"" AND bonus_pts > 3" "What was the air date of part 2 of the episode whose part 1 was aired on January 31, 2008?","SELECT part_2 FROM table_13241993_3 WHERE part_1 = ""January 31, 2008""" What is the sum of votes of the party with a % of 0.53 and more than 0 seats?,SELECT SUM(votes__gib_) FROM table_name_99 WHERE _percentage__gib_ = 0.53 AND seats > 0 What is the Wins before 1960 with less than 2 Points?,SELECT SUM(wins) FROM table_name_47 WHERE year < 1960 AND points < 2 What is the social security number and address of the patient who encountered viral sinusitis symptoms on 6/13/2008?,"SELECT T1.ssn, T1.address FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T2.DATE = '2008-06-13' AND T2.REASONDESCRIPTION = 'Viral sinusitis (disorder)' AND T2.DESCRIPTION = 'Encounter for symptom'" Which track 7 title was recorded in 1959-09-15?,"SELECT title FROM table_name_23 WHERE recorded = ""1959-09-15"" AND track = 7" What is the name of the school with smallest enrollment size per state?,"SELECT cName , state , min(enr) FROM college GROUP BY state" Who has the least wins when ranked above 3 with over 10 events?,SELECT MIN(wins) FROM table_name_5 WHERE rank < 3 AND events > 10 What is the latest episode in the season directed by Chris Long?,"SELECT MAX(no_in_season) FROM table_21312845_1 WHERE directed_by = ""Chris Long""" What is the average age of the midshipmans,SELECT avg ( age ) FROM captain WHERE Rank = 'Midshipman' Who directed the movie with the most voice actors?,"SELECT T2.director, COUNT(DISTINCT T1.`voice-actor`) FROM `voice-actors` AS T1 INNER JOIN director AS T2 ON T1.movie = T2.name GROUP BY T2.director ORDER BY COUNT(DISTINCT T1.`voice-actor`) DESC LIMIT 1" What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?,"SELECT time FROM table_name_82 WHERE nfl_recap = ""recap"" AND game_site = ""arrowhead stadium""" What is the ratio between male and female cast members of the movie 'Iron Man?' Count how many have unspecified genders.,"SELECT CAST(COUNT(CASE WHEN T3.gender = 'Male' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T3.gender = 'Female' THEN 1 ELSE NULL END) AS RATIO , COUNT(CASE WHEN T3.gender = 'Unspecified' THEN 1 ELSE NULL END) AS UNGENDERS FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T2.gender_id = T3.gender_id WHERE T1.title = 'Iron Man'" Which was the dominant hand for the goaltender who played 32 games for QUN in 1973? Give the full name.,"SELECT T2.shootCatch, T2.firstName, T2.lastName FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID AND T1.year = 1973 WHERE T1.tmID = 'QUN' AND T1.GP = 32" What is the record of the game with a game number greater than 24 on December 19?,"SELECT record FROM table_name_32 WHERE game > 24 AND date = ""december 19""" What team has a yamaha constructor with all rounds?,"SELECT team FROM table_name_60 WHERE rounds = ""all"" AND constructor = ""yamaha""" What is the socket for the processor with part number ADH2350IAA5DO?,"SELECT socket FROM table_name_27 WHERE part_number_s_ = ""adh2350iaa5do""" What is the score when away team is Crystal Palace?,"SELECT score FROM table_name_8 WHERE away_team = ""crystal palace""" List 10 addresses located in Poland.,"SELECT T1.street_number, T1.street_name, T1.city FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Poland' LIMIT 10" "Under the attribute name of ""music_playlist"", describe the attribute ID, business ID, city and inactive status.","SELECT T1.attribute_id, T2.business_id, T3.city FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name = 'music_playlist' AND T3.active = 'false'" What is the agg when team 2 was Cementarnica?,"SELECT agg FROM table_name_94 WHERE team_2 = ""cementarnica""" Write all the keywords belonging to the movie 'Sky Captain and the World of Tomorrow.',SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.title = 'Sky Captain and the World of Tomorrow' Who was nominated for award no.313? Give the full name.,SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award_id = 313 What are the apartment numbers of all apartments with more than 2 bedrooms ?,SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2 Which team was the opponent on week 15?,SELECT opponent FROM table_name_7 WHERE week = 15 who built the car driven by eric brandon?,"SELECT constructor FROM table_name_21 WHERE driver = ""eric brandon""" Find the forename and surname of drivers whose nationality is German?,"SELECT forename , surname FROM drivers WHERE nationality = ""German""" What is the Russian word for wine glass that contains 4.16 fl. oz.?,"SELECT russian FROM table_name_14 WHERE us_customary = ""4.16 fl. oz.""" How many grocery stores paid $250 fine upon their inspection?,SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.facility_type = 'Grocery Store' AND T3.fine = 250 What are the total and average enrollment of all schools?,"SELECT sum(enrollment) , avg(enrollment) FROM school" When was the game played in which the record was 46-29?,"SELECT date FROM table_name_86 WHERE record = ""46-29""" What are the colors of the team hosted by Christopher?,"SELECT colors FROM table_name_77 WHERE host = ""christopher""" "What is the highest Total Passengers when the annual change is 18.3%, and the rank is less than 11?","SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = ""18.3%"" AND rank < 11" Provide the number of international students and number of students in 2013 in university ID 20.,"SELECT pct_international_students * num_students, num_students FROM university_year WHERE year = 2013 AND university_id = 20" Name the sum of quantity for before 2011 model slf-230,"SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = ""slf-230""" How many businesses accept insurance?,SELECT COUNT(T1.business_id) FROM Business_Attributes AS T1 INNER JOIN Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_name = 'Accepts Insurance' AND T1.attribute_value = 'true' Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?,SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 What is the number of distinct cities the stations are located at?,SELECT COUNT(DISTINCT city) FROM station "Which player is from Australia, and has a place of t9?","SELECT player FROM table_name_35 WHERE place = ""t9"" AND country = ""australia""" What is the chassis of rahel frey's volkswagen engine?,"SELECT chassis FROM table_name_74 WHERE engine = ""volkswagen"" AND driver = ""rahel frey""" Show me the name of all the films with release year 2006?,SELECT title FROM film WHERE release_year = 2006 What is the car number driven by Darren Manning?,"SELECT car_no FROM table_17256857_1 WHERE driver = ""Darren Manning""" "Thank you so much, now back to the accounts listed for Jessica. What are the account names of those?",select account_name from Customers AS T1 JOIN Accounts AS T2 ON T2.customer_id = T1.customer_id where customer_first_name = 'Jessica' Which Try diff has Tries for of 12?,SELECT try_diff FROM table_name_34 WHERE tries_for = 12 "When sweden is the country what is the highest production in 2010 (1,000 ton)?","SELECT MAX(production_in_2010__1), 000 AS _ton_ FROM table_293465_1 WHERE country = ""Sweden""" what is faisaly when wehdat is xxx?,"SELECT faisaly FROM table_26173063_2 WHERE wehdat = ""XXX""" "When was the document named ""Marry CV"" stored? Give me the date.","SELECT date_stored FROM All_documents WHERE Document_name = ""Marry CV""" What is the Hindi associated with a Domari of tærən?,"SELECT hindi FROM table_name_78 WHERE domari = ""tærən""" What are the names of the nations with the 3 lowest populations?,SELECT Name FROM country ORDER BY Population ASC LIMIT 3 "How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0?",SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 0 Which Record has a Game of 41?,SELECT record FROM table_name_97 WHERE game = 41 Return the titles of any movies with an R rating.,SELECT title FROM film WHERE rating = 'R' Steve Wallace was a Race Winner at the Kentucky Speedway on what date?,"SELECT date FROM table_name_75 WHERE race_winner = ""steve wallace"" AND track = ""kentucky speedway""" Which episode got the most 1 star votes? Give its title.,SELECT T2.title FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars = 1 ORDER BY T1.votes DESC LIMIT 1 Show all faculty ids,SELECT FacID FROM Faculty What is the highest pick of ron whaley?,"SELECT MAX(pick) FROM table_name_58 WHERE name = ""ron whaley""" Name the rank with laps of 200 and qual of 148.374,"SELECT rank FROM table_name_5 WHERE laps = 200 AND qual = ""148.374""" Name the current club for player sacha giffa,"SELECT current_club FROM table_12962773_13 WHERE player = ""Sacha Giffa""" What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?,"SELECT MAX(date) FROM table_name_90 WHERE type = ""0-4-4 forney locomotive"" AND number > 20 AND works_number > 23754" What is the name of actor who took the role Smithers?,SELECT DISTINCT T1.person FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.character = 'Smithers'; Find the number of students who is older than 20 in each dorm.,"SELECT count(*) , T3.dorm_name 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" What is the poor law union of the Lackenagobidane townland?,"SELECT poor_law_union FROM table_30121046_1 WHERE townland = ""Lackenagobidane""" What is the average bronze with silvers of 1 and totals over 2?,"SELECT AVG(bronze) FROM table_name_76 WHERE silver = ""1"" AND total > 2" What are the average laps driven in the GT class?,"SELECT AVG(laps) FROM table_name_45 WHERE class = ""gt""" "Among all the players born after the year 1985, what is the percentage of the players who use the right hand as their batting hand?","SELECT CAST(SUM(CASE WHEN T2.Batting_Hand = 'Right-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE SUBSTR(T1.DOB, 1, 4) > 1985" "Provide the winning team's name in the match with the point of winning margin of 7 on May 7, 2009.",SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Match_Date = '2009-05-07' AND T2.Win_Margin = 7 How many tries took place on 06/07/1996?,"SELECT tries FROM table_name_16 WHERE date = ""06/07/1996""" Please show the most common status of roller coasters.,SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 What was the record of the game that had a loss of Stottlemyre (10-12)?,"SELECT record FROM table_name_33 WHERE loss = ""stottlemyre (10-12)""" What's the score of the Nice International Championships where Björn Borg was the champion?,"SELECT score FROM table_name_93 WHERE name = ""nice international championships"" AND champion = ""björn borg""" Which user has the most followers?,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1 What are the ids and details for all organizations that have grants of more than 6000 dollars?,"SELECT T2.organisation_id , T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount) > 6000" What was the score of the game when the record was 18-20?,"SELECT score FROM table_name_77 WHERE record = ""18-20""" What is the 2013 with virgin in 2009?,"SELECT 2013 FROM table_name_5 WHERE 2009 = ""virgin""" What is the Years for Jazz Club at Oregon State?,"SELECT years_for_jazz FROM table_name_46 WHERE school_club_team = ""oregon state""" "Among the patients that started taking Ibuprofen 200mg Oral Tablet in 2016, how many Dominican patients stopped taking the medicine after exactly one month?","SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' AND T1.ethnicity = 'dominican' AND strftime('%Y', T2.START) = '2016' AND strftime('%m', T2.STOP) - strftime('%m', T2.START) = 1" Name the outcome for alizé cornet janette husárová being opponent in final,"SELECT outcome FROM table_name_97 WHERE opponent_in_final = ""alizé cornet janette husárová""" What score was on July 25?,"SELECT score FROM table_name_26 WHERE date = ""july 25""" What are the Notes against a Silver for Jenny Johansson earlier than 2006?,"SELECT notes FROM table_name_77 WHERE year < 2006 AND silver = ""jenny johansson""" "Find all the catalog publishers whose name contains ""Murray""","SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" What Tunnel has an Imperial Length of 307 yd?,"SELECT tunnel FROM table_name_38 WHERE length__imperial_ = ""307 yd""" What is the life expectancy of the people living in Calama city?,SELECT T2.LifeExpectancy FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Name = 'Calama' What are the names of all the customers?,SELECT customer_name FROM customers Give the full name of the youngest employee.,"SELECT FirstName, LastName FROM Employees WHERE BirthDate = ( SELECT MAX(BirthDate) FROM Employees )" "What are the dates of birth of entrepreneurs with investor ""Simon Woodroffe"" or ""Peter Jones""?","SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = ""Simon Woodroffe"" OR T1.Investor = ""Peter Jones""" Who is the person responsible for the crime cases in Central Chicago?,SELECT commander FROM District WHERE district_name = 'Central' Show all the locations where no cinema has capacity over 800.,SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800 Please show the credit card number of David Bradley.,SELECT T3.CardNumber FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN CreditCard AS T3 ON T2.CreditCardID = T3.CreditCardID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' What is the reviewer name associated with that rating?,SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name In which season were there Wins of 29 and a Finished place of 3rd?,"SELECT season FROM table_name_10 WHERE wins = ""29"" AND finish = ""3rd""" What are the names and ids of documents that have the type code BK?,"SELECT document_name , document_id FROM Documents WHERE document_type_code = ""BK""" What is the lowest listed number for a player?,SELECT MIN(_number) FROM table_29050051_3 Where does the driver of ship ID 1127 live?,SELECT T2.address FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1127' What is the final score of the game at lambeau field?,"SELECT final_score FROM table_name_21 WHERE stadium = ""lambeau field""" How many photos use a Sigma lens?,SELECT count ( * ) from photos as T1 join camera_lens as T2 on T1.camera_lens_id = T2.id where T2.brand = 'Sigma' What type of organizations are there?,SELECT organisation_type FROM organisation_Types What is the original Release date of the Track written by Dallas Frazier?,"SELECT original_release FROM table_name_27 WHERE writer_s_ = ""dallas frazier""" How many businesses have the category named food? List those businesses and find the percentage of businesses with less than 2 stars.,"SELECT T3.business_id, CAST((( SELECT COUNT(business_id) FROM Business WHERE stars < 2 ) - ( SELECT COUNT(business_id) FROM Business WHERE stars > 2 )) AS REAL) * 100 / ( SELECT COUNT(stars) FROM Business ) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.category_name = 'Food'" What is the title of Jamie Foxx's most recent movie?,SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Jamie Foxx' ORDER BY T1.release_date DESC LIMIT 1 List 10 crews alongside their jobs who worked on the movie 'Mad Max: Fury Road.',SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Mad Max: Fury Road' LIMIT 10 Which rider had a speed of 104.630mph?,"SELECT rider FROM table_name_84 WHERE speed = ""104.630mph""" The max for each letter grade?,"SELECT LETTERGRADE, max ( gradepoint ) FROM GRADECONVERSION GROUP BY LETTERGRADE" What is the tie number when Wigan Athletic is the home team?,"SELECT tie_no FROM table_name_21 WHERE home_team = ""wigan athletic""" What is listed as the highest Points that's got a Position that's smaller than 1?,SELECT MAX(points) FROM table_name_64 WHERE position < 1 "Which capital has a population of 308,610?","SELECT capital FROM table_name_73 WHERE population = ""308,610""" Which city has an ICAO of gvsf?,"SELECT city___town FROM table_name_53 WHERE icao = ""gvsf""" What Week has a Result of l 17-14?,"SELECT SUM(week) FROM table_name_52 WHERE result = ""l 17-14""" What company was the constructor when Nick Heidfeld was the driver/,"SELECT constructor FROM table_name_50 WHERE driver = ""nick heidfeld""" Give the ids of documents with expenses that have the budget code 'SF'.,SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF' What is the average unit price of all the tracks?,SELECT AVG(UnitPrice) FROM TRACK Name the scott for chloropsis hardwickii,"SELECT scott FROM table_2006661_1 WHERE species = ""Chloropsis hardwickii""" Find the average height of the players who belong to the college called 'Yale University'.,SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University'; How many champions were there when the first driver was hiroki yoshimoto ( 2005 )?,"SELECT champions FROM table_13416000_3 WHERE first_driver_s_ = ""Hiroki Yoshimoto ( 2005 )""" What is the last name of the author that has published the most papers?,"SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1" "What is the keyword ID of the movie with the title of ""Sin City""?",SELECT T2.keyword_id FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Sin City' "What was the character name for the film with a release date of July 29, 1938?","SELECT character_name FROM table_name_72 WHERE release_date = ""july 29, 1938""" List episode directed and produced by Karen Selway?,"SELECT episode FROM table_24725951_1 WHERE directed_and_produced_by = ""Karen Selway""" Show the average price of hotels for each star rating code.,"SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code" What is the zip code of county id of 2,SELECT zip_code from county where county_id = 2 How many documents correspond with each project id?,"SELECT project_id , count(*) FROM Documents GROUP BY project_id" Which episode has a Challenge Winner of berto?,"SELECT episode FROM table_name_50 WHERE challenge_winner = ""berto""" "hi, can you show me headquarters that have companies in the banking industry?","SELECT distinct Headquarters FROM company WHERE Industry = ""Banking""" What is the final position/round of the UEFA cup?,"SELECT final_position___round FROM table_name_88 WHERE competition = ""uefa cup""" How many customers are named Madison?,SELECT COUNT(CustomerID) FROM Customers WHERE FirstName = 'Madison' How many female users over the age of 50 are there?,SELECT COUNT(gender) FROM gender_age WHERE age > 50 AND gender = 'F' How many policy ids are in this table?,select count ( Policy_ID ) from First_Notification_of_Loss Show the names of all the activities Mark Giuliano participates in.,"SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" What official or native languages are spoken in the country whose capital city is Canberra?,"SELECT official_or_native_language_s___alphabet_script_ FROM table_1008653_1 WHERE capital___exonym__ = ""Canberra""" Please list the full names of all the actors that have starred in the film ACADEMY DINOSAUR.,"SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'ACADEMY DINOSAUR'" List the names of rooms booked by a customer whose first name is Roy.,"SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.firstname = ""ROY""" What percentage does the shipment of products by Speedy Express to Sweden make up to the shipping company's total?,SELECT CAST(COUNT(CASE WHEN T1.ShipCountry = 'Sweden' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' What is the highest pick from Washington?,"SELECT MAX(pick) FROM table_name_18 WHERE school = ""washington""" Find the major that is studied by the most female students.,"SELECT Major FROM STUDENT WHERE Sex = ""F"" GROUP BY major ORDER BY count(*) DESC LIMIT 1" I want to know the highest heat rank for overall rank of t63 and time less than 25.47,"SELECT MAX(heat_rank) FROM table_name_88 WHERE overall_rank = ""t63"" AND time < 25.47" Name the 20 questions for 8-04,"SELECT 20 AS _questions FROM table_1566852_5 WHERE date = ""8-04""" "Which motor's quantity was more than 8, and a class of bs 1915?","SELECT motor FROM table_name_57 WHERE quantity > 8 AND class = ""bs 1915""" On what Date was Patty Sheehan Runner(s)-up?,"SELECT date FROM table_name_62 WHERE runner_s__up = ""patty sheehan""" What's the Time/Retired of 80 laps with a Grid larger than 2?,SELECT time_retired FROM table_name_51 WHERE laps = 80 AND grid > 2 What is the number of city affected for storm with name two?,SELECT Number_city_affected from affected_region where storm_id = ( select storm_id from storm where Name = 'Two' ) How many aircrafts do we have?,SELECT count(*) FROM Aircraft Where was the audition venue where Peninha was the guest fourth judge?,"SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = ""Peninha""" "How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?","SELECT SUM(body_width_mm) FROM table_name_66 WHERE part_number = ""tsop40/44"" AND body_length_mm < 18.42" What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson?,"SELECT no_2 FROM table_name_98 WHERE no_4 = ""ethan"" AND no_7 = ""jackson""" Which event has Toa Naketoatama as an opponent?,"SELECT event FROM table_name_92 WHERE opponent = ""toa naketoatama""" Which county do the Trojans come from?,"SELECT county FROM table_name_87 WHERE mascot = ""trojans""" Who was the jockey in group 1 at the 1400m distance at randwick?,"SELECT jockey FROM table_20626467_1 WHERE class = ""Group 1"" AND venue = ""Randwick"" AND distance = ""1400m""" "What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?",SELECT MIN(total) FROM table_name_77 WHERE silver > 6 AND bronze = 6 AND gold < 16 "Who performed the song named ""Le Pop""?","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Le Pop""" What is the average number of horror movies among all movies genre?,SELECT CAST(COUNT(CASE WHEN T3.genre_name = 'Horror' THEN T1.movie_id ELSE NULL END) AS REAL) / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id What parish did McCain have 45.37% of the votes?,"SELECT parish FROM table_20722805_1 WHERE mccain_percentage = ""45.37%""" yes. What is the player's first and last name for player ID: ferreri01?,"SELECT name_first , name_last FROM player where player_id = ""ferreri01""" How many numbers in the season were written by Brett Conrad & Liz Sagal?,"SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby = ""Brett Conrad & Liz Sagal""" What is the power stage wins total number if the wins is 10?,SELECT COUNT(power_stage_wins) FROM table_23385853_20 WHERE wins = 10 Which programs are never broadcasted in the morning? Give me the names of the programs.,"SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning""" What was the deposit interest rate in the Commonwealth of Australia in 1979 in percentage?,SELECT T1.Value FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.LongName = 'Commonwealth of Australia' AND T1.IndicatorName = 'Deposit interest rate (%)' AND T1.Year = 1979 Where does the customer with the first name Linda live? And what is her email?,"SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'" Which state have the highest number of PayPal donations for an honoree whose portion of a donation included corporate sponsored giftcard?,SELECT DISTINCT donor_state FROM donations WHERE for_honoree = 't' AND payment_included_campaign_gift_card = 't' AND payment_method = 'paypal' AND donor_state = ( SELECT donor_state FROM donations GROUP BY donor_state ORDER BY SUM(donation_total) DESC LIMIT 1 ) "On what date was the player from Melrose, Massachusetts born?","SELECT birthdate FROM table_name_54 WHERE birthplace = ""melrose, massachusetts""" "Return the booking start date and end date for the apartments that have type code ""Duplex"".","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = ""Duplex""" What is the average price for each type of product?,"SELECT product_type_code , avg(product_price) FROM products GROUP BY product_type_code" What is the crew with the end time of 21:11?,"SELECT crew FROM table_name_73 WHERE end_time = ""21:11""" "Which location has a capacity greater than 51,500?",SELECT location FROM table_name_43 WHERE capacity > 51 OFFSET 500 What is the country(s) where the points equal 723.075?,"SELECT country FROM table_26454128_9 WHERE points = ""723.075""" Where Date is october 14 what is the attendance?,"SELECT attendance FROM table_name_40 WHERE date = ""october 14""" What is the NFL team of the player whose college is Minnesota?,"SELECT nfl_team FROM table_14650162_1 WHERE college = ""Minnesota""" "What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?","SELECT score FROM table_name_69 WHERE outcome = ""winner"" AND opponent = ""angela haynes""" Nickname of the school established in 1773,SELECT nickname FROM table_16432543_1 WHERE established = 1773 What rank has Bill Ponsford (vic) as the player?,"SELECT rank FROM table_name_82 WHERE player = ""bill ponsford (vic)""" what is the stadium for čakovec?,"SELECT stadium FROM table_name_81 WHERE team = ""čakovec""" What is the average prices of wines for each each?,"SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR" How many exhibitions have a ticket price below 10?,SELECT count ( * ) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.ticket_price < 10 How high was the highest building in feet in the city of cologne?,"SELECT MAX(height__ft_) FROM table_name_66 WHERE city = ""cologne""" What is the campus fee for San Jose State University in 1996?,"SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND T2.year = 1996" What are the prices of wines produced before the year of 2010?,SELECT Price FROM WINE WHERE YEAR < 2010 "Show the names of donors who donated to both school ""Glenn"" and ""Triton.""",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 phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.",SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock) >= 2000 ORDER BY sum(T1.Num_of_stock) DESC What is the area of the appelation that produces the highest number of wines before the year of 2010?,SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1 "Who is the champion with a score of 7–6, 6–0?","SELECT champion FROM table_name_47 WHERE score = ""7–6, 6–0""" How many in debt customers in the household market segment are from Russia?,SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal < 0 AND T1.c_mktsegment = 'HOUSEHOLD' AND T2.n_name = 'RUSSIA' What is the mintage (bu) with the artist Royal Canadian Mint Staff and has an issue price (proof) of $54.95?,"SELECT mintage__bu_[_clarification_needed_] FROM table_11916083_1 WHERE artist = ""Royal Canadian Mint Staff"" AND issue_price__proof_ = ""$54.95""" How many game locations occurred on March 6?,"SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = ""March 6""" "What is the largest district for delegate Cheryl Glenn, that she had taken after 2006?","SELECT MAX(district) FROM table_name_30 WHERE delegate = ""cheryl glenn"" AND took_office > 2006" "What is the genre of the game ""Grand Theft Auto V""?",SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Grand Theft Auto V' How many people attendance for Columbia Park? | Did you mean the sum of the attendance for the Columbia Park for all the years? | Yes,"SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T2.park_name = ""Columbia Park""" "List the names and symbols of the coins that were added on June 14, 2013.","SELECT name, symbol FROM coins WHERE date_added LIKE '2013-06-14%'" How many books did A.R. Braunmuller write?,SELECT COUNT(*) FROM author AS T1 INNER JOIN book_author AS T2 ON T1.author_id = T2.author_id WHERE T1.author_name = 'A.R. Braunmuller' How many laps had a time of +2.987?,"SELECT COUNT(laps) FROM table_name_37 WHERE time = ""+2.987""" How many nationalities does athlete Casey Jacobsen have?,"SELECT COUNT(nationality) FROM table_16494599_10 WHERE player = ""Casey Jacobsen""" "Agri culture b larger than 12.6, what is the lowest vehicles per 1000?",SELECT MIN(vehicles__per_1000__d) FROM table_name_14 WHERE agri_culture_b > 12.6 What is the language of the book titled Zorro?,SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'Zorro' What is the Round when there is an overall of 246?,SELECT round FROM table_name_85 WHERE overall = 246 "What is the highest number of Bush with a 32.40% Bush % and a total less than 5,126?","SELECT MAX(bush_number) FROM table_name_87 WHERE bush_percentage = ""32.40%"" AND total < 5 OFFSET 126" What Team has a Pick of 40?,SELECT team FROM table_name_67 WHERE pick = 40 Have many MPEG media audio files are in the system ?,"SELECT COUNT ( * ) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = ""MPEG audio file""" "Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?","SELECT venue FROM table_name_38 WHERE sport = ""baseball"" AND championships__years_ = ""0"" AND league = ""milb, florida state league"" AND club = ""jupiter hammerheads""" How many allergies does Mrs. Saundra Monahan have?,SELECT COUNT(DISTINCT T2.code) FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Saundra' AND T1.last = 'Monahan' What is the course description and number of credits for QM-261?,"SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'" How many championships does Pakistan have?,"SELECT COUNT(championships) FROM table_19487922_2 WHERE country = ""Pakistan""" "Find the details of all distinct customers who have orders with status ""On Road"".","SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road""" What is the title of the first book that was written by A.J. Ayer?,SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'A.J. Ayer' ORDER BY T1.publication_date ASC LIMIT 1 Name the real life for eventual outcome is amtrak,"SELECT real_life_eventual_outcome FROM table_243664_1 WHERE currently¹_part_of = ""Amtrak""" sort the department names alphabetically,SELECT DName from Department where DNO not in ( select DNO from Minor_in ) order by DName "What is the local location that has senegal as the resident county, and a mission of mali?","SELECT local_location FROM table_name_47 WHERE resident_country = ""senegal"" AND mission = ""mali""" "Which Track number has a Album title of 文武双全升级版, and a Title of 老爸你别装酷?","SELECT track_number FROM table_name_44 WHERE album_title = ""文武双全升级版"" AND title = ""老爸你别装酷""" Name the city for enrollment being 19900,SELECT city FROM table_27378582_1 WHERE enrollment = 19900 What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?,SELECT MIN(cpc_blend_kazakhstan) FROM table_name_38 WHERE draugen_north_sea = 17 What is the label of the album titled 與你相逢 and released in 1994?,"SELECT label_s_ FROM table_name_63 WHERE year_of_release = 1994 AND title = ""與你相逢""" how many employees does surgery have?,"SELECT head FROM department where name = ""Surgery""" Name the into service for dh2,"SELECT into_service FROM table_29002641_1 WHERE number = ""DH2""" What are the ids and details of all statements?,"SELECT STATEMENT_ID , statement_details FROM Statements" "What country has t6 as the place, with sean o'hair as the player?","SELECT country FROM table_name_88 WHERE place = ""t6"" AND player = ""sean o'hair""" What are the ids of the top three products that were purchased in the largest amount?,SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3 "What league has a number less than 122, and least wins as the record?","SELECT league FROM table_name_38 WHERE number < 122 AND record = ""least wins""" "Which city has the most addresses? List the city name, number of addresses, and city id.","SELECT T2.city , count(*) , T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1" Name the winner for 5 june,"SELECT winner FROM table_name_80 WHERE date = ""5 june""" what is the name when the laid down is 28 february 1943?,"SELECT name FROM table_name_37 WHERE laid_down = ""28 february 1943""" "What was the total attendance October 22, 1972?","SELECT SUM(attendance) FROM table_name_18 WHERE date = ""october 22, 1972""" When did the violin players perform?,"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""" "Which Assist/pass has a Score of 1-0, and a Goal of 5?","SELECT assist_pass FROM table_name_85 WHERE score = ""1-0"" AND goal = ""5""" What is the minimum number of points for teams averaging 1.412?,"SELECT MIN(points) FROM table_2865020_5 WHERE average = ""1.412""" Which player has a total bigger than 285 and a to par of +14?,"SELECT player FROM table_name_10 WHERE total > 285 AND to_par = ""+14""" What about the flight numbers?,"SELECT flno FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" What's in third place that's going 1-0?,"SELECT 3 AS rd_place FROM table_name_39 WHERE score = ""1-0""" "I want to know how many perpetrators are taller than 1.84 | So do you mean the kills of perpetrators with height more than 1.84? | Yes, that's exactly what I mean",SELECT sum ( T2.Killed ) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84 Return all distinct detention type codes.,SELECT DISTINCT detention_type_code FROM Detention "Which result has a Location of canada, and a Record of 3-3?","SELECT res FROM table_name_77 WHERE location = ""canada"" AND record = ""3-3""" Show the most common location of performances.,SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 List the name of all customers sorted by their account balance in ascending order.,SELECT cust_name FROM customer ORDER BY acc_bal Who ordered the Bush Mission Pointe Library in the Central Region?,SELECT DISTINCT T2.`Customer Name` FROM central_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Bush Mission Pointe Library' AND T3.Region = 'Central' Great! Can you update this list to include the customer details values for each customer_ID?,"select t2.Customer_ID, t1.Policy_Type_code, t2.Customer_Details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id" "For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993.","SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = ""sasol jordan""" "What was the score of the match on April 23, 2007?","SELECT score FROM table_name_65 WHERE date = ""april 23, 2007""" What club team did JArrod Maidens play for?,"SELECT club_team FROM table_11803648_21 WHERE player = ""Jarrod Maidens""" How many students in this table?,SELECT count ( * ) from list Which organizations are not a parent organization of others? List the organization id.,SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations How many stars does the repository of the solution No. 45997 have?,SELECT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 45997 List the full names of customers who have purchased products in quantity over 600.,"SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Quantity > 600" Who was the spouse of the consort who was born as rania al yassin?,"SELECT spouse_to FROM table_name_27 WHERE born_as = ""rania al yassin""" What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?,"SELECT record FROM table_name_90 WHERE round > 2 AND event = ""raging wolf 6: mayhem in the mist""" In what venue did the Boston Red Sox play in?,"SELECT venue FROM table_name_49 WHERE team = ""boston red sox""" Ah. And how many grants can APP have total?,"SELECT count ( grant_id ) FROM Documents where document_type_code = ""APP""" How many lessons were taught by a staff member whose first name has the letter 'a' in it?,"SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE ""%a%""" Name the result for augustine h. shepperd (j) 100%,"SELECT result FROM table_2668243_18 WHERE candidates = ""Augustine H. Shepperd (J) 100%""" What is the name of the most expensive product?,SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1 On what date was the record with catalog ALCA-275 released?,"SELECT date FROM table_name_3 WHERE catalog = ""alca-275""" What percentage of businesses are in the Real Estate sector and have the rating of 5 out of all businesses in Chandler?,"SELECT CAST(SUM(CASE WHEN T1.stars = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) AS ""percentage"" FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.city LIKE 'Chandler' AND T3.category_name LIKE 'Real Estate'" What kind of mountain is Ampato? Which province and nation does this mountain belong to?,"SELECT T1.Type, T3.Name, T4.Name FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T3.Country = T4.Code WHERE T1.Name = 'Ampato'" State the name of director for the 'Treehouse of Horror XIX' episode.,SELECT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Treehouse of Horror XIX' AND T2.role = 'director'; "What is the place of player peter oosterhuis, who has $7,500?","SELECT place FROM table_name_7 WHERE money___$__ = ""7,500"" AND player = ""peter oosterhuis""" Which title was created in 2001 by Mellow?,"SELECT title FROM table_name_73 WHERE date = 2001 AND artist = ""mellow""" what is the full name and id of the college with the largest number of baseball players?,"SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1" Can you rind me the number of rooms with more than 50 capacity for those 20 buildings?,SELECT count ( room_number ) FROM classroom WHERE capacity > 50 Which television service has programmi per adulti 24h/24 content and no HDTV?,"SELECT television_service FROM table_name_41 WHERE content = ""programmi per adulti 24h/24"" AND hdtv = ""no""" What is the probable future word for the simple present/future word high grade?,"SELECT probable_future FROM table_name_82 WHERE NOT simple_present_future = ""high grade""" Find the names of the regions which were affected by the storm that killed the greatest number of people.,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 How many players named victor hănescu played?,"SELECT COUNT(points) AS won FROM table_24431264_16 WHERE player = ""Victor Hănescu""" which club in group stage 4 had member association iran,"SELECT clubs FROM table_19412902_1 WHERE group_stage = 4 AND member_association = ""Iran""" Which cities have populations larger than 1000? List their ids.,SELECT city_id FROM city WHERE population > 1000 Which tribunal had a total of 4167?,"SELECT tribunal FROM table_name_34 WHERE total = ""4167""" How many products from the Clothing category were on the LL Road Frame Sale?,SELECT COUNT(T2.ProductID) FROM SpecialOffer AS T1 INNER JOIN SpecialOfferProduct AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID INNER JOIN Product AS T3 ON T2.ProductID = T3.ProductID INNER JOIN ProductSubcategory AS T4 ON T3.ProductSubcategoryID = T4.ProductSubcategoryID INNER JOIN ProductCategory AS T5 ON T4.ProductCategoryID = T5.ProductCategoryID WHERE T1.Description = 'LL Road Frame Sale' AND T4.Name = 'Clothing' What is the most Bronze medals won among the participants that won less than 22 medals overall and less than 5 silver medals?,SELECT MAX(bronze) FROM table_name_5 WHERE total < 22 AND silver < 5 What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?,SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' And what are the id's for those accounts?,select account_id from Customers AS T1 JOIN Accounts AS T2 ON T2.customer_id = T1.customer_id where customer_first_name = 'Meaghan' And in what range is each of those located?,SELECT range FROM mountain WHERE Height > 5000 AND prominence > 1000 What frequency does branding dzec radyo agila 1062 have?,"SELECT frequency FROM table_name_33 WHERE branding = ""dzec radyo agila 1062""" What district had someone first elected in 1982?,SELECT district FROM table_1341522_41 WHERE first_elected = 1982 what's the checking balance of that person?,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid order by T3.balance limit 1 What p;layer attended Concordia College?,"SELECT player FROM table_name_40 WHERE college = ""concordia""" What is the total number of discs where the run time was 4 hours 40 minutes?,"SELECT COUNT(num_of_discs) FROM table_1180228_1 WHERE duration = ""4 hours 40 minutes""" What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.,"SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?","SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance" What's the roles of the Bionic Woman?,"SELECT role FROM table_name_4 WHERE program = ""the bionic woman""" "Show the names of journalists from ""England"" or ""Wales"".","SELECT Name FROM journalist WHERE Nationality = ""England"" OR Nationality = ""Wales""" "What is the Name of the person with a Total of 3 (15), and Rank of more than 3?","SELECT name FROM table_name_87 WHERE total = ""3 (15)"" AND rank > 3" "When Interpol is in 6th, who is in 7th?","SELECT COUNT(seventh) FROM table_17111812_1 WHERE sixth = ""Interpol""" Which KOREAN has a CHINESE of 師子菩提 / shīzǐpútí?,"SELECT korean FROM table_name_51 WHERE chinese = ""師子菩提 / shīzǐpútí""" what is the total number of films directy and written by john callaghan?,"SELECT COUNT(directed_by) FROM table_27547668_4 WHERE written_by = ""John Callaghan""" What is the Primary conference of Lebanon Valley College?,"SELECT Primary_conference FROM university WHERE School = ""Lebanon Valley College""" Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?,"SELECT gwr_nos FROM table_name_79 WHERE quantity < 2 AND m & swj_nos = ""9""" What was the score of the game when the record was 58–47?,"SELECT score FROM table_name_12 WHERE record = ""58–47""" Which Leading Scorer has a Record of 3-3?,"SELECT Leading AS scorer FROM table_name_70 WHERE record = ""3-3""" Name the number of won for maesteg harlequins rfc,"SELECT COUNT(won) FROM table_13564702_3 WHERE club = ""Maesteg Harlequins RFC""" show me the body builders name.,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id What is the largest major?,SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1 display those departments where more than ten employees work who got a commission percentage.,SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(commission_pct) > 10 Calculate the percentage of voice actors whose main character in the movie is in the Drama genre.,SELECT CAST(COUNT(CASE WHEN T1.genre = 'Drama' THEN T3.`voice-actor` ELSE NULL END) AS REAL) * 100 / COUNT(T3.`voice-actor`) FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN `voice-actors` AS T3 ON T3.movie = T1.movie_title "For the team had the biggest power play percentage in 2011, who was their coach that season? Give the full name.",SELECT T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T2.year = 2011 ORDER BY CAST(T2.PPG AS REAL) / T2.PPC DESC LIMIT 1 Which tourist attractions does the visitor with detail 'Vincent' visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = ""Vincent""" How many stars did the episodes in which Donna Villella worked?,SELECT COUNT(T3.person_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T3.name = 'Donna Villella' "Which authors with submissions are from college ""Florida"" or ""Temple""?","SELECT Author FROM submission WHERE College = ""Florida"" OR College = ""Temple""" Which year has a fleet number of 603?,"SELECT year FROM table_name_22 WHERE fleet_number = ""603""" Find the first name of students who are living in the Smith Hall.,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' List down the languages of countries with an independence year between 1980 to 1995.,"SELECT T2.Name, T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.IndepYear BETWEEN 1980 AND 1995" List the products ordered by customers in Coachella.,SELECT DISTINCT T3.`Product Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.City = 'Coachella' display the job title of jobs which minimum salary is greater than 9000.,SELECT job_title FROM jobs WHERE min_salary > 9000 "What is Score, when Team is ""@ Memphis""?","SELECT score FROM table_name_29 WHERE team = ""@ memphis""" Give the title and the characters name of the most recent work of Shakespeare.,"SELECT T1.Title, T4.CharName FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id ORDER BY T1.Date DESC LIMIT 1" "Hi there! Can you provide me with a list of all Staff Department Assignments ""date assigned to"" values?",SELECT date_assigned_to from Staff_Department_Assignments What score has 33 as the points?,SELECT score FROM table_name_93 WHERE points = 33 "How many severe crime incidents were reported at coordinate 41.64820151, -87.54430496?",SELECT SUM(CASE WHEN T1.longitude = '-87.54430496' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.report_no = T2.iucr_no WHERE T2.index_code = 'I' AND T1.latitude = '41.64820251' How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = ""Ashley"" AND T3.City = ""Aberdeen""" "How many games in 1885 postseason resulted in ties (that is, the value of ""ties"" is '1')?",SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1; "Among Warner Bros. Pictures' movies, which title made the highest revenue?",SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Warner Bros. Pictures' ORDER BY T3.revenue DESC LIMIT 1 What is the range of dates they were made?,"SELECT min ( release_year ) , max ( release_year ) from film" Name the number of area km 2 for population density is 87,"SELECT COUNT(area_km_2) FROM table_1606824_1 WHERE pop_density_people_km_2 = ""87""" "What percentage of countries in South Asia have the Life expectancy at birth, female (years) greater than 50?","SELECT CAST(SUM(CASE WHEN T2.value > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.CountryCode) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Region = 'South Asia' AND T2.IndicatorName = 'Life expectancy at birth, female (years)'" "How is the ""noise level"" for the only Yelp business in “Mesa” which got a ""Uber"" review count?",SELECT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Mesa' AND T1.review_count = 'Uber' AND T3.attribute_name = 'Noise Level' Could you list the names of all artists that prefer the genre folk and speak the language Bangla?,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""bangla"" AND T1.preferred_genre = ""folk""" What is the year established of North Jersey Phoenix?,"SELECT established FROM table_name_74 WHERE institution = ""north jersey phoenix""" What are the crime rates of counties sorted by number of offices ascending?,SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC How many stations were installed on the date of 8/16/2013 and how many users on those stations are classified as a customer?,"SELECT COUNT(T1.name) , SUM(CASE WHEN T2.subscription_type = 'Customer' THEN 1 ELSE 0 END) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T1.installation_date = '8/16/2013' AND T2.subscription_type = 'Customer'" Return the song in the volume that has spent the most weeks on top?,SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 Who was the home team at the game held at the Junction Oval?,"SELECT home_team FROM table_name_73 WHERE venue = ""junction oval""" Where was the game with record 20–23 and how many people attended it,"SELECT location_attendance FROM table_17058116_7 WHERE record = ""20–23""" "Among all the current legislators whose religion is Roman Catholic, what is the percentage of the ones without an instagram account?",SELECT CAST(SUM(CASE WHEN T1.instagram IS NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.religion_bio = 'Roman Catholic' "Of those 2 states, which ones have less than 4 staff members living there?",SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count ( * ) > 2 and count ( * ) < 4 What is the place of the player from the United States with a score of 74-72=146?,"SELECT place FROM table_name_87 WHERE country = ""united states"" AND score = 74 - 72 = 146" "In episodes aired in 2009, how many of them are credited to Sam Im for additional timer?","SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.credited = 'true' AND T2.person = 'Sam Im' AND SUBSTR(T1.air_date, 1, 4) = '2009' AND T2.role = 'additional timer';" "What was the conference matchup for the bowl game played in Glendale, Arizona?","SELECT conference_matchups FROM table_name_66 WHERE city = ""glendale, arizona""" What was the streak on April 2?,"SELECT streak FROM table_name_61 WHERE date = ""april 2""" WHAT POSITION HAD SPURS IN 2009-2012?,"SELECT position FROM table_name_75 WHERE years_with_spurs = ""2009-2012""" What grapes have a score higher than 93?,SELECT distinct Grape FROM WINE WHERE Score > 93 what are the different type of payement method?,SELECT DISTINCT payment_method FROM customers what are the programs by Beijing television? | Did you want the program names by the owner Beijing television (BTV) | yes,"SELECT name from program where owner = ""Beijing Television ( BTV ) """ What are the inspection description and inspector's comments in the inspection ID 164795?,"SELECT T1.Description, T2.inspector_comment FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = 44247" Which airport situate in the elevation 5282?,SELECT name FROM airports WHERE elevation = 5282 What is the population of that city?,"SELECT t3.City_Population FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = ""Blackville""" What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?,"SELECT lead FROM table_name_8 WHERE polling_firm = ""election results"" AND psoe = ""39.6% 175""" What is the address of employee Nancy Edwards?,"SELECT address FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" how many draft copies does that document have?,"SELECT document_id , count ( copy_number ) FROM Draft_Copies GROUP BY document_id ORDER BY count ( copy_number ) DESC LIMIT 1" Which Tournament has a 2004 of 1r?,"SELECT tournament FROM table_name_59 WHERE 2004 = ""1r""" Which city's ICAO is WADD?,"SELECT city FROM table_name_92 WHERE icao = ""wadd""" Name what was nominated in years before 2002 for most popular comedy performer at the national television awards,"SELECT nominated_for FROM table_name_95 WHERE year < 2002 AND award = ""national television awards"" AND category = ""most popular comedy performer""" "Which Time has a Set 2 of 20–25, and a Date of 05 jun?","SELECT time FROM table_name_15 WHERE set_2 = ""20–25"" AND date = ""05 jun""" Find the number of classes in each department.,"SELECT COUNT(*), dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code" What was the score for the game on February 12?,"SELECT score FROM table_name_79 WHERE date = ""february 12""" "WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151?",SELECT year_s__won FROM table_name_86 WHERE to_par < 16 AND total = 151 "how many bathrooms are there in these 2 rooms | Did you mean the number of bathrooms in the apartment with id is 2? | yes, thanks","SELECT bathroom_count from Apartments where apt_id = 2" What is the Gtype of RGN Stone?,"SELECT gtype FROM video_games WHERE Gname = ""RNG Stone""" What is the title of the first ever work of William Shakespeare?,SELECT Title FROM works WHERE Date = ( SELECT MIN(Date) FROM works ) List the project details of the projects launched by the organisation,SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 ) Show all train names and times in stations in London in descending order by train time.,"SELECT T3.name , T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC" What product have the highest unit price and how many quantity have been being sold?,"SELECT T1.ProductName, T2.Quantity FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID ORDER BY T1.UnitPrice DESC LIMIT 1" Which 3 wineries produce the most wines made from white grapes?,"SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = ""White"" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3" On what date was Motherwell the opponent at Fir Park?,"SELECT date FROM table_name_77 WHERE opponent = ""motherwell"" AND venue = ""fir park""" What's the average number of graduates for Central Alabama Community College in the 3 consecutive years from 2011 to 2013?,"SELECT AVG(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Central Alabama Community College' AND T2.year IN (2011, 2012, 2013) AND T2.gender = 'B' AND T2.race = 'X'" What team drafted a player from Sweden?,"SELECT nhl_team FROM table_2897457_1 WHERE nationality = ""Sweden""" How many students live in HKG or CHI?,"SELECT count(*) FROM Student WHERE city_code = ""HKG"" OR city_code = ""CHI""" "What is the country that has a place of T6, a socre of 69-69=138, and where Niclas Fasth played?","SELECT country FROM table_name_17 WHERE place = ""t6"" AND score = 69 - 69 = 138 AND player = ""niclas fasth""" "What are the names of device shops, and what are the carriers that they carry devices in stock for?","SELECT T3.Shop_Name , T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID" What player is a kicker?,"SELECT player FROM table_name_33 WHERE position = ""kicker""" How long is the Yelp business No. 15098 opened on Monday?,"SELECT SUBSTR(T1.closing_time, 1, 2) + 12 - SUBSTR(T1.opening_time, 1, 2) AS YYSJ FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week = 'Monday' AND T1.business_id = 15098" What venue did geelong play an away game?,"SELECT venue FROM table_name_90 WHERE away_team = ""geelong""" "Out of all the farms, what are the maximum and minimum numbers of cows?","SELECT max ( Cows ) , min ( Cows ) FROM farm" "For each grade 0 classroom, report the total number of students.","SELECT classroom , count(*) FROM list WHERE grade = ""0"" GROUP BY classroom" What is the Raptors' record against New Jersey?,"SELECT record FROM table_15780718_9 WHERE team = ""New Jersey""" Show the names of artworks in ascending order of the year they are nominated in.,SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year How many were the US viewers (in millions) of the episode that was written by Gordon C. Lonsdale?,"SELECT us_viewers__millions_ FROM table_26826304_1 WHERE directed_by = ""Gordon C. Lonsdale""" Find the physician who was trained in the most expensive procedure?,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 How many trips started from Mountain View city and ended at Palo Alto city?,"SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""Mountain View"" AND T3.city = ""Palo Alto""" Which district has both stores with less than 3000 products and stores with more than 10000 products?,SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?,"SELECT paper_type FROM table_name_30 WHERE denomination = ""$0.50"" AND date_of_issue = ""4 february 2005""" "What is Stable, when Current Rank is F1 Jūryō 14 West?","SELECT stable FROM table_name_59 WHERE current_rank = ""f1 jūryō 14 west""" What is the area of Egypt as a percentage of Asia?,SELECT T1.Area * 100 / T3.Area FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt' "And who were the top three, in order from most to least?",SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 3 Show the name of singers whose birth year is either 1948 or 1949?,SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949 How many casualties were from the IED circumstance?,"SELECT casualties FROM table_name_48 WHERE circumstances = ""ied""" How many wins had a podium larger than 6 after season 2008?,SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums > 6 "Which Heat has a Nationality of bulgaria, and a Result larger than 55.97?","SELECT MIN(heat) FROM table_name_30 WHERE nationality = ""bulgaria"" AND result > 55.97" What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?,"SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;" Who is the father of the child whose mother is Presendia Huntington Buell?,"SELECT father FROM table_name_58 WHERE mother = ""presendia huntington buell""" What are the type and nationality of ships?,"SELECT TYPE , Nationality FROM ship" List the hosts of performances in ascending order of attendance.,SELECT HOST FROM performance ORDER BY Attendance ASC Which highschool has senior (rs) for the year?,"SELECT high_school FROM table_22496344_1 WHERE year = ""Senior (RS)""" Find The releasing year of The Sound of Music.,"SELECT year FROM Movie WHERE title = ""The Sound of Music""" How many patients have the most prevalent conditions?,"SELECT COUNT(DISTINCT T2.patient) FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) ORDER BY T1.""PREVALENCE RATE"" DESC LIMIT 1" Show me the distinct payment method codes from the invoice record.,SELECT DISTINCT payment_method_code FROM INVOICES Name all products supplied by Zaanse Snoepfabriek.,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Zaanse Snoepfabriek' "What is the document id, template id and description for document named ""Robbin CV""?","SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = ""Robbin CV""" How many rainy days were recorded in Mountain View?,"SELECT SUM(IIF(zip_code = 94041 AND events = 'Rain', 1, 0)) FROM weather" What are the top 2 order keys of the item with the highest amount of extended price?,SELECT l_orderkey FROM lineitem ORDER BY l_extendedprice DESC LIMIT 2 What is the largest number of films rented per customer?,SELECT COUNT(rental_id) FROM rental GROUP BY customer_id ORDER BY COUNT(rental_id) DESC LIMIT 1 What date was the game played at princes park?,"SELECT date FROM table_name_8 WHERE venue = ""princes park""" Find the name of customers who do not have a loan with a type of Mortgages.,SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' great. and who are Zach's friends?,SELECT * FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' "Where the away team is Bradford City, who is the home team?","SELECT home_team FROM table_name_83 WHERE away_team = ""bradford city""" How many employees with a pay rate of over 35 have more than 10 sick leave hours?,SELECT COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.SickLeaveHours > 10 AND T1.Rate > 35 What School is the Center from?,"SELECT school FROM table_name_97 WHERE position = ""center""" Please list any three orders that caused a loss to the company.,SELECT `Order ID` FROM central_superstore WHERE Profit < 0 LIMIT 3 What is the name of the circuit when Phil Hill has the fastest lap?,"SELECT circuit FROM table_name_1 WHERE fastest_lap = ""phil hill""" "If the census ranking is 693 of 5,008, what is the status?","SELECT status FROM table_171236_1 WHERE census_ranking = ""693 of 5,008""" Show different nominees and the number of musicals they have been nominated.,"SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee" Who played Melbourne as the home team?,"SELECT home_team FROM table_name_38 WHERE away_team = ""melbourne""" how many times is the player jim furyk?,"SELECT COUNT(total) FROM table_name_55 WHERE player = ""jim furyk""" "What is the number of gold medals for Lithuania (ltu), when the total is more than 1?","SELECT MAX(gold) FROM table_name_57 WHERE nation = ""lithuania (ltu)"" AND total > 1" What are the price ranges of hotels?,SELECT price_range FROM HOTELS Count the number of paragraphs in the document named 'Summer Show'.,SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show' What is aggressive rider Richie Porte's team classifaction?,"SELECT team_classification FROM table_29332810_14 WHERE aggressive_rider = ""Richie Porte""" WHICH COUNTRIES HAS THE ORIGINS OF THE LEAST PLAYERS,SELECT birth_country FROM player GROUP BY birth_country ORDER BY count ( * ) ASC LIMIT 1 Can you now show me the list of all part IDs?,SELECT part_id from parts What are the names of rooms that have either king or queen bed?,"SELECT roomName FROM Rooms WHERE bedType = ""King"" OR bedType = ""Queen"";" "How many Against has a Drawn smaller than 1, and a Lost smaller than 5?",SELECT MAX(against) FROM table_name_86 WHERE drawn < 1 AND lost < 5 Return the unique name for stations that have ever had 7 bikes available.,SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7 Mention the name of students who filed for bankruptcy and have never been absent from school.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name WHERE T1.month = 0 "Yes, please. | First OR last OR both? | Both, please. Sorry!","SELECT Fname, Lname FROM Student ORDER BY age DESC LIMIT 1" Show home city where at least two drivers older than 40 are from.,SELECT home_city FROM driver WHERE age > 40 GROUP BY home_city HAVING count(*) >= 2 What game type has 2:1 as the results?,"SELECT type_of_game FROM table_name_91 WHERE results¹ = ""2:1""" "Find the number of companies whose industry is ""Banking"" or ""Conglomerate"",","SELECT COUNT(*) FROM Companies WHERE Industry = ""Banking"" OR Industry = ""Conglomerate""" Find the captain rank that has some captains in both Cutter and Armed schooner classes.,SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' Which Combination classification has a Stage of 14?,"SELECT combination_classification FROM table_name_17 WHERE stage = ""14""" How many average attendance has a capacity percentage of 96.5%,"SELECT COUNT(average_attendance) FROM table_28884858_1 WHERE capacity_percentage = ""96.5%""" Name the nationality who played for 1987-89?,"SELECT nationality FROM table_11545282_17 WHERE years_for_jazz = ""1987-89""" What is the highest against value for Palmeiras and position less than 4?,"SELECT MAX(against) FROM table_name_86 WHERE team = ""palmeiras"" AND position < 4" Show the names of people and the number of times they have been on the affirmative side of debates.,"SELECT T2.Name , COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name" What is the total number of years that prof. aditya naraian purohit won?,"SELECT COUNT(year) FROM table_name_76 WHERE name = ""prof. aditya naraian purohit""" What is the entry name of the most expensive catalog (in USD)?,SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 What are the station ids for San Francisco? | Do you mean the city San Francisco? | Yes.,"SELECT id FROM station WHERE city = ""San Francisco""" Name the rank for 151 Laps,SELECT rank FROM table_name_18 WHERE laps = 151 Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss?,"SELECT candidates FROM table_2646656_3 WHERE result = ""Retired Republican hold"" AND incumbent = ""Philemon Bliss""" What is the Date of the at&t pebble beach national pro-am Tournament?,"SELECT date FROM table_name_91 WHERE tournament = ""at&t pebble beach national pro-am""" "In which distinct years was the governor ""Eliot Spitzer""?","SELECT DISTINCT YEAR FROM party WHERE Governor = ""Eliot Spitzer""" what is the class of the station with erp w more than 30?,SELECT class FROM table_name_54 WHERE erp_w > 30 "What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?","SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5" What is the owner of the channel that has the highest rating ratio?,SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1 How many class rooms in this table?,SELECT count ( class_room ) FROM class "When is Country of united states, and a Venue of mandalay bay resort in?","SELECT date FROM table_name_22 WHERE country = ""united states"" AND venue = ""mandalay bay resort""" "For each type of store, how many of them are there?","SELECT TYPE , count(*) FROM store GROUP BY TYPE" What's the average crowd size when the venue is western oval?,"SELECT AVG(crowd) FROM table_name_91 WHERE venue = ""western oval""" What is the average score for 6th place with a total of 165?,"SELECT average FROM table_name_49 WHERE place = ""6th"" AND total = ""165""" List the cost of each treatment and the corresponding treatment type description.,"SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code" Which country has the shortest life expectancy?,SELECT Name FROM Country ORDER BY LifeExpectancy LIMIT 1 how many times was third place held by drnovice?,"SELECT COUNT(club) FROM table_2429942_2 WHERE third_place = ""Drnovice""" When was the Carysfort launched?,"SELECT launched FROM table_24496403_1 WHERE ship = ""Carysfort""" What event had the 1500m freestyle?,"SELECT meet FROM table_name_4 WHERE event = ""1500m freestyle""" How many weddings are there in year 2016?,SELECT COUNT(*) FROM wedding WHERE YEAR = 2016 How many platforms does Glasgow Central have?,"SELECT Number_of_Platforms from station where name = ""Glasgow Central""" "How many League Cup Goals have 0 as the total goals, with delroy facey as the name?","SELECT COUNT(league_cup_goals) FROM table_name_90 WHERE total_goals = 0 AND name = ""delroy facey""" Which College did the Buffalo Sabres' pick play for?,"SELECT college_junior_club_team FROM table_1965650_7 WHERE nhl_team = ""Buffalo Sabres""" How many donors who donated to the city of Pocatello are not teachers?,SELECT COUNT(donationid) FROM donations WHERE donor_city = 'Pocatello' AND is_teacher_acct = 'f' Show countries where a singer above age 40 and a singer below 30 are from.,SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30 "What is the booking status of the apartment with number ""Suite 634""?","SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" "if the peak is 9, how many weeks was it in the top 10?",SELECT MAX(weeks_in_top_10) FROM table_26400041_2 WHERE peak = 9 Which Game has an Opponent of @ houston rockets?,"SELECT MIN(game) FROM table_name_22 WHERE opponent = ""@ houston rockets""" "What are the titles of papers published by ""Jeremy Gibbons""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Jeremy"" AND t1.lname = ""Gibbons""" What were all the salary values of players in 2010 and 2001?,SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001 Lists all governments with a parliamentary democracy that achieved their independence between 01/01/1950 and 12/31/1999.,"SELECT * FROM politics WHERE STRFTIME('%Y', Independence) BETWEEN '1950' AND '1999' AND Government = 'parliamentary democracy'" Name the average debt as % of value for operating income more than -16 and % change on year being 62,"SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = ""62"" AND operating_income__$m_ > -16" "Which Games lost has Points against of 61, and Points difference smaller than 42?",SELECT SUM(games_lost) FROM table_name_74 WHERE points_against = 61 AND points_difference < 42 Are there any other names that have allergies | Do you want the first name or the last name of students other than Lisa who have allergies? | Can i have the list of foods that Lisa is allergic to,"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"" AND T1.AllergyType = ""food""" Which date of order placed in Alberto?,"SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE t1.customer_name = ""Alberto""" "Show the name, average attendance, total attendance for stadiums where no accidents happened.","SELECT name , average_attendance , total_attendance FROM stadium EXCEPT SELECT T2.name , T2.average_attendance , T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id" What is the average oldest students with different sex? | Do you mean what is the average age of students? | What is the average and oldest age for students with different sex?,"SELECT avg ( age ) , max ( age ) , sex FROM student GROUP BY sex" What are the ids of the top three products that were purchased in the largest amount?,SELECT product_id FROM product_suppliers ORDER BY total_amount_purchased DESC LIMIT 3 "List all the method name of the solution path ""graffen_NLog.Targets.Syslog\src\NLog.Targets.Syslog.sln "".",SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'graffen_NLog.Targets.SyslogsrcNLog.Targets.Syslog.sln' What is the last name of the student who got a grade A in the class with code 10018.,SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018 Find out 5 customers who most recently purchased something. List customers' first and last name.,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;" What are the apartment numbers of those?,SELECT T2.apt_number FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 What machine did susan jenness trophy earn the trophy?,"SELECT machine FROM table_name_75 WHERE trophy = ""susan jenness trophy""" What is the last name of the first individual contacted from the organization with the maximum UK Vat number across all organizations?,SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1 "What is 2001, when 1987 is N/A, and when Career SR is N/A?","SELECT 2001 FROM table_name_50 WHERE 1987 = ""n/a"" AND career_sr = ""n/a""" "List the dates of enrollment and completion of the student with personal name ""Karson"".","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = ""Karson""" Count the number of products in the category 'Seeds'.,"SELECT count(*) FROM products WHERE product_category_code = ""Seeds""" Show all the distinct institution types.,SELECT DISTINCT TYPE FROM institution When j.r. smith (26) has the highest amount of points what is the score?,"SELECT score FROM table_23285849_10 WHERE high_points = ""J.R. Smith (26)""" How many body builders are there?,SELECT count(*) FROM body_builder Which team has 5 as a game?,SELECT team FROM table_23285761_11 WHERE game = 5 "What is Date, when Margin Of Victory is 4 Strokes?","SELECT date FROM table_name_1 WHERE margin_of_victory = ""4 strokes""" What were the high points on june 20?,"SELECT high_points FROM table_name_36 WHERE date = ""june 20""" Which teams did SC Ganguly join in season year 2008?,SELECT T5.Team_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id INNER JOIN Team AS T5 ON T3.Team_Id = T5.Team_Id WHERE T4.Season_Year = 2008 AND T1.Player_Name = 'SC Ganguly' GROUP BY T5.Team_Name List the count and id of each product in all the orders.,"SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" What is the enrollment ratio for preschool in the region where enrollment ratio for tertiary is 29.55?,"SELECT preschool__0_5_years_ FROM table_25042332_22 WHERE tertiary__18_24_years_ = ""29.55""" What is the round or race of the winning driver Charles Hollings and what was his pole position?,"SELECT round___race FROM table_name_32 WHERE winning_driver = ""charles hollings"" AND pole_position = ""charles hollings""" What is the total number of employees that worked in the Finance department?,SELECT COUNT(T2.BusinessEntityID) FROM Department AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 USING (DepartmentID) WHERE T1.Name = 'Finance' What is the mean year of marriage when her age was more than 19 and his age was 30?,SELECT AVG(year_of_marriage) FROM table_name_6 WHERE her_age > 19 AND his_age = 30 "What's the week when the result was W 38-24 and attendance was less than 43,449?","SELECT SUM(week) FROM table_name_33 WHERE result = ""w 38-24"" AND attendance < 43 OFFSET 449" "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""" "What is Round, when Method is ""submission (reverse armbar)""?","SELECT round FROM table_name_40 WHERE method = ""submission (reverse armbar)""" "What is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?",SELECT title FROM film WHERE replacement_cost = 29.99 AND rating = 'R' AND length = 71 Can you tell me how many people were injured for the most recent date?,SELECT Injured FROM perpetrator order by date desc limit 1 What is the 1st leg of the uefa intertoto cup competition with club silkeborg?,"SELECT 1 AS st_leg FROM table_name_66 WHERE competition = ""uefa intertoto cup"" AND club = ""silkeborg""" "What was the earliest year for the 400 M Hurdles in Santiago, Chile?","SELECT MIN(year) FROM table_name_71 WHERE venue = ""santiago, chile"" AND event = ""400 m hurdles""" Find the station id of Ananthapuri Express? | the station ids that serve the train Ananthapuri Express are 1 and 2 | What are the annual entry exit of station id 1?,"SELECT Annual_entry_exit FROM station where station_id = ""1""" Name the syrian christians for thiruvananthapuram,"SELECT syrian_christians FROM table_23214055_2 WHERE district = ""Thiruvananthapuram""" "Among countries with more than 400,000 GDP, state its capital and population.","SELECT T1.Capital, T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.GDP > 400000" Carl McCall in which party?,"SELECT Party FROM party WHERE Governor = ""Carl McCall""" Who was the constructor for a FW20 chassis?,"SELECT constructor FROM table_name_37 WHERE chassis = ""fw20""" Which customer is associated with the latest policy?,SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT max(start_date) FROM policies) What are the countries that have both mountains that are higher than 5600 and lower than 5200?,SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200 What is the average training hours of all players?,SELECT avg(HS) FROM Player From what catalog was the release from Sundazed label?,"SELECT catalog FROM table_name_33 WHERE label = ""sundazed""" "What is the Days, hours, minutes for 21 – 26 October?","SELECT days, _hours, _minutes FROM table_name_81 WHERE dates = ""21 – 26 october""" In what year was Montenegro the host country?,"SELECT year FROM table_26669939_1 WHERE host_country = ""Montenegro""" "How many counties have 2 as the total, 0 as the city with a town less than 1?",SELECT SUM(county) FROM table_name_54 WHERE total = 2 AND city = 0 AND town < 1 Which driver set the Qualifying record with a time of 24.761 seconds?,"SELECT driver FROM table_name_61 WHERE record = ""qualifying"" AND time = ""24.761""" "What episode number in the series originally aired on February 25, 2001?","SELECT no_in_series FROM table_1876825_3 WHERE original_air_date = ""February 25, 2001""" If the position of 26th what is the season total number?,"SELECT COUNT(season) FROM table_22998777_1 WHERE position = ""26th""" What party affiliation does James Humphrey hold?,"SELECT party from people where name = ""James Humphrey""" Which line has an operator of the London Overground and ends at the Crystal Palace?,"SELECT line FROM table_name_87 WHERE operator = ""london overground"" AND destination = ""crystal palace""" When the girls singles is lindaweni fanetri what is the mixed doubled?,"SELECT mixed_doubles FROM table_14319023_2 WHERE girls_singles = ""Lindaweni Fanetri""" What provinces were formed from New Munster?,"SELECT province FROM table_275023_1 WHERE formed_from = ""New Munster""" What is the score of the match with a 3-2 result?,"SELECT score FROM table_name_61 WHERE result = ""3-2""" what is the 2010 population density for municipio ponce?,"SELECT 2010 AS _population_density FROM table_name_83 WHERE municipio = ""ponce""" "What's the ht for the model released on June 4, 2008?","SELECT ht FROM table_27277284_28 WHERE release_date = ""June 4, 2008""" How many attended the game on march 16 after over 64 games?,"SELECT location_attendance FROM table_name_5 WHERE game > 64 AND date = ""march 16""" Name the nationality of the player with an overall of 74,SELECT nationality FROM table_name_66 WHERE overall = 74 What is the entry number on the list for Fairfield Moravian Church?,"SELECT list_entry_number FROM table_name_13 WHERE name = ""fairfield moravian church""" What are the different parties of representative? Show the party name and the number of representatives in each party.,"SELECT Party , COUNT(*) FROM representative GROUP BY Party" "What was the final score for the match held on April 11, 2007?","SELECT score FROM table_name_68 WHERE date = ""april 11, 2007""" Which venue had the opposing team Natal?,"SELECT venue FROM table_name_16 WHERE opposing_team = ""natal""" Which Nationality has a Name of igor koleda?,"SELECT nationality FROM table_name_42 WHERE name = ""igor koleda""" What are the top 5 most popular movie directors?,SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T2.job = 'Director' ORDER BY T1.popularity DESC LIMIT 5 What was the total attendance at rugby park?,"SELECT total FROM table_26980923_2 WHERE stadium = ""Rugby Park""" What are the distinct first names for students with a grade point of 3.8 or above in at least one course?,SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 What is the Purse listed for the Year of 1998?,"SELECT purse FROM table_name_10 WHERE year = ""1998""" "Who was the opponent in a week over 8 on December 4, 1960?","SELECT opponent FROM table_name_54 WHERE week > 8 AND date = ""december 4, 1960""" What was the score of the home team when they played carlton?,"SELECT home_team AS score FROM table_name_77 WHERE away_team = ""carlton""" Thank you. What are their roles?,SELECT Role_Code FROM Employees WHERE employee_id IN ( SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed ) Which home team score occurred at Victoria Park?,"SELECT home_team AS score FROM table_name_42 WHERE venue = ""victoria park""" What is the title of the paper that has the largest number of authors?,SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = ( SELECT max ( authorder ) FROM authorship ) What is the highest 1937 value that has a 1940 value over 126?,SELECT MAX(1937) FROM table_name_60 WHERE 1940 > 126 What losing team plays hockey?,"SELECT loser FROM table_name_72 WHERE sport = ""hockey""" "What is Player, when To Par is greater than 6, and when Year(s) Won is ""1962 , 1967""?","SELECT player FROM table_name_41 WHERE to_par > 6 AND year_s__won = ""1962 , 1967""" Which 2008 had a 1998 and 2006 that were a when 2009 was sf?,"SELECT 2008 FROM table_name_16 WHERE 1998 = ""a"" AND 2009 = ""sf"" AND 2006 = ""a""" Which Model number has a Frequency of 2000mhz and a Voltage of 0.75-1.2?,"SELECT model_number FROM table_name_57 WHERE frequency = ""2000mhz"" AND voltage = ""0.75-1.2""" What is the name of the organization that published the least number of papers?,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count ( * ) Asc LIMIT 1 what is the saving Balance Amount of the custid 2,SELECT balance FROM savings WHERE custid = 2 Show all student IDs with more than a total of 10 hours per week on all sports played please.,SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum ( hoursperweek ) > 10 How many capitals are there when area (km²) is 1111.14?,"SELECT COUNT(capital) FROM table_1888051_1 WHERE area__km²_ = ""1111.14""" How many countries have roller coaster?,SELECT count ( distinct T1.Name ) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID What is the poor law union for the Barnahely towland?,"SELECT poor_law_union FROM table_30120619_1 WHERE townland = ""Barnahely""" What is the Set 1 with set 2 at 21:17?,"SELECT set_1 FROM table_name_93 WHERE set_2 = ""21:17""" "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.",SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims ) During which competition were a total of 36 points scored?,SELECT details FROM table_name_31 WHERE points = 36 What percentage did Obama get in Rutherford county?,"SELECT obama_percentage FROM table_20799905_1 WHERE county = ""RUTHERFORD""" "Give the genre of the following game titled 'Airlock' , 'Airline Tycoon' , and 'Airblade', respectively.","SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name IN ('Airlock', 'Airline Tycoon', 'Airblade')" How many times did outgoing manager Bart de Roover vacated a position?,"SELECT COUNT(date_of_vacancy) FROM table_27374004_4 WHERE outgoing_manager = ""Bart De Roover""" What is the winner in event number 15h?,"SELECT winner FROM table_22050544_1 WHERE event__number = ""15H""" What date was the person ordained as a priest in December 1838 ordained as a bishop?,"SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = ""December 1838""" "can I get a count of these courses where department code is ""CIS""?","SELECT count ( * ) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE t1.dept_code = ""CIS""" Which nurses are in charge of patients undergoing treatments?,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID How many companies were created by Andy?,SELECT count(*) FROM manufacturers WHERE founder = 'Andy' What Country with a MC Format has a ATCO Records Label?,"SELECT country FROM table_name_98 WHERE label = ""atco records"" AND format = ""mc""" What week was she safe for a salsa dance?,"SELECT SUM(week) FROM table_name_8 WHERE result = ""safe"" AND dance = ""salsa""" "Show the names of members whose country is ""United States"" or ""Canada"".","SELECT Name FROM member WHERE Country = ""United States"" OR Country = ""Canada""" What is the number of tries for the team that has 22 plays with 33 tries against and 60 points?,"SELECT tries_for FROM table_name_22 WHERE played = ""22"" AND tries_against = ""33"" AND points = ""60""" What is the name of episode 43 in the series?,SELECT title FROM table_28768925_1 WHERE no_in_series = 43 What is the total number of silver medals of the team ranked 7 with more than 1 total medal?,"SELECT COUNT(silver) FROM table_name_59 WHERE rank = ""7"" AND total > 1" What is every year premiered when Behzat Uighur is main presenter?,"SELECT year_premiered FROM table_24224647_2 WHERE main_presenter = ""Behzat Uighur""" What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan?,"SELECT production_code FROM table_14562722_1 WHERE written_by = ""Michael Dante DiMartino"" AND directed_by = ""Lauren MacMullan""" May I have their product names please?,SELECT distinct product_name FROM products WHERE product_price < ( SELECT avg ( product_price ) FROM products ) "What was the loss of the game attended by 37,119?","SELECT loss FROM table_name_24 WHERE attendance = ""37,119""" What is the average number of territories do each sales representative is in charge of?,SELECT CAST(COUNT(T2.TerritoryID) AS REAL) / COUNT(DISTINCT T1.EmployeeID) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.Title = 'Sales Representative' Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?,"SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = ""giancarlo fisichella""" Who was the co-driver in 1970 for the race of Targa Florio?,"SELECT co_driver FROM table_name_46 WHERE year = 1970 AND race = ""targa florio""" "What margin was in after 1981, and was Roberto De Vicenzo runner-up?","SELECT margin FROM table_name_88 WHERE year > 1981 AND runner_s__up = ""roberto de vicenzo""" Calculate the number of students who are not disabled.,"SELECT COUNT(CASE WHEN T2.name IS NULL THEN T1.name END) AS ""number"" FROM person AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name" "Find the name and capacity of the stadium where the event named ""World Junior"" happened.","SELECT t1.name , t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id WHERE t2.name = 'World Junior'" "Calculate the percentage of business with attribute name of ""Accepts Credit Cards"".",SELECT CAST(SUM(CASE WHEN T1.attribute_name = 'Accepts Credit Cards' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.attribute_name) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id What rank has an average of 6.33?,SELECT AVG(rank) FROM table_name_23 WHERE average = 6.33 What is the Away Team when the Home Team is Torquay United and the Attendence is 6 December 1997?,"SELECT away_team FROM table_name_48 WHERE attendance = ""6 december 1997"" AND home_team = ""torquay united""" Who had the lowest field goals but had 10 points and more than 2 touchdowns?,SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2 Please list the name and id of all artists that have at least 3 albums in alphabetical order.,"SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name" Who is the director of movie Avatar?,SELECT director FROM Movie WHERE title = 'Avatar' how many acceptance are presented on the table,SELECT count ( * ) FROM Acceptance How many events did not have any participants?,SELECT count(*) FROM EVENTS WHERE event_id NOT IN (SELECT event_id FROM Participants_in_Events) What was the manner of departure replaced by tita?,"SELECT manner_of_departure FROM table_name_34 WHERE replaced_by = ""tita""" "Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.","SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC" What was the Attendance of the Game at Hoosier Dome?,"SELECT attendance FROM table_name_92 WHERE game_site = ""hoosier dome""" Hello! Can you please provide me with the name of the founder for Sony?,SELECT founder FROM manufacturers WHERE name = 'Sony' In what year was John Bell Williams first elected?,"SELECT first_elected FROM table_1341930_24 WHERE incumbent = ""John Bell Williams""" "Who directed the episode that aired on September 25, 1967?","SELECT director FROM table_25800134_12 WHERE airdate = ""September 25, 1967""" "Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?","SELECT time FROM table_name_24 WHERE local_networked = ""local"" AND ad_freq = ""20 minutes"" AND news_freq = ""n/a after 7pm news""" How many black-colored products are there that cannot be sold?,SELECT COUNT(ProductID) FROM Product WHERE FinishedGoodsFlag = 0 AND Color = 'Black' "How many weeks had an attendance larger than 84,816?",SELECT COUNT(week) FROM table_name_30 WHERE attendance > 84 OFFSET 816 "Among the coaches who have received an award after the year 1940, how many of them have already died?",SELECT COUNT(T1.coachID) FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T1.deathYear IS NOT NULL AND T2.year > 1940 What is the last date that a staff member left a project?,SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1 "How many years had a 100 m hurdles event at the world championships in Osaka, Japan?","SELECT SUM(year) FROM table_name_96 WHERE event = ""100 m hurdles"" AND competition = ""world championships"" AND venue = ""osaka, japan""" How many customers in this table?,select count ( * ) from Customers What was the try bonus when the points for was 608?,"SELECT try_bonus FROM table_name_56 WHERE points_for = ""608""" what is the weight of ty conklin,"SELECT weight from people where name = ""Ty Conklin""" Who was Footscray's opponent on June 15th of 1968?,"SELECT home_team FROM table_name_54 WHERE away_team = ""footscray""" What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from?,"SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3" How long is the bridge in Villeneuve-sur-Lot?,"SELECT longest_span_in_s_metre___feet__ FROM table_name_40 WHERE location = ""villeneuve-sur-lot""" What is the average number of review received by each business given that the user is an elite?,SELECT CAST(COUNT(T1.user_id) AS REAL) / COUNT(DISTINCT T1.business_id) FROM Reviews AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id "In year 2000, who are the coaches with more than 50 games won. List the coachID, team name and number of game won at home game.","SELECT T1.coachID, T2.name, T2.won FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 2000 AND T2.won > 50" Which one of these students also has a class in ACCT?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' "What is the lowest rank for a player earning $71,979?",SELECT MIN(rank) FROM table_name_11 WHERE earnings___$__ < 71 OFFSET 979 What is the Date of the game when the Record is 32–31–6?,"SELECT date FROM table_name_8 WHERE record = ""32–31–6""" Find the distinct Advisor of students who have treasurer votes in the spring election cycle.,"SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = ""Spring""" How many decile has a roll less than 20?,SELECT AVG(decile) FROM table_name_6 WHERE roll < 20 "What is the Italian word for ""orange"" in English?","SELECT italian FROM table_2077192_2 WHERE english = ""orange""" What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?,"SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Latin"" OR T1.Name = ""Pop""" What is the average prize for the Buttercross Limited Stakes?,"SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = ""buttercross limited stakes""" Do you also have a total enrollment? | What do you mean by enrollment? | Total number of students.,SELECT count ( * ) from student What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph?,"SELECT thurs_3_june FROM table_25220821_4 WHERE wed_2_june = ""17' 45.11 127.525mph""" "Return the type name, type description, and date of creation for each document.","SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code" How many skills does it need?,SELECT count ( * ) FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count ( * ) DESC LIMIT 1 Find the numbers of different majors and cities.,"SELECT count(DISTINCT major), count(DISTINCT city_code) FROM student" What are the ships that are steered by a captain with Midshipman rank?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' Which countries have a fertility rate between 4 and 5 in 1979? List their names.,"SELECT CountryName FROM Indicators WHERE Year = 1979 AND IndicatorName = 'Fertility rate, total (births per woman)' AND value >= 4 AND Value <= 5" count the the average Total of ian baker-finch?,"SELECT AVG(total) FROM table_name_39 WHERE player = ""ian baker-finch""" Find the names of the items that did not receive any review.,SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review) "Among the businesses without attribute, how many businesses located in Gilbert?","SELECT COUNT(T2.business_id) FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Gilbert' AND T1.attribute_value IN ('None', 'no', 'false')" What competition took place on 28/04/1906?,"SELECT competition FROM table_name_11 WHERE date = ""28/04/1906""" Out of these employees what is the phone number for the employee with the highest salary.,SELECT phone_number FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY salary DESC LIMIT 1 what is the languages of Finland,"SELECT languages from country where name = ""Finland""" What is the title of production code 514?,SELECT title FROM table_11630008_7 WHERE production_code = 514 "Which days had a minimum dew point smaller than any day in zip code 94107, and in which zip codes were those measurements taken?","SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)" What were the least amount of field goals when Frederick L. Conklin played?,"SELECT MIN(field_goals) FROM table_25730123_2 WHERE player = ""Frederick L. Conklin""" "Select the average price of each manufacturer's products, showing the manufacturer's name.","SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" Where was the universiade held in 1959?,"SELECT venue FROM table_name_3 WHERE tournament = ""universiade"" AND year = 1959" Where was the tour when jing junhong li jiawei played womens doubles?,"SELECT year_location FROM table_28138035_20 WHERE womens_doubles = ""Jing Junhong Li Jiawei""" What is the name of the coin that creates the most total value in the past 24 hours?,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.volume_24h = ( SELECT MAX(volume_24h) FROM historical ) Name the original airdate for mr. buckston,"SELECT original_airdate FROM table_name_23 WHERE identity_ies_ = ""mr. buckston""" Which Episode had 9.1 million viewers?,"SELECT episode FROM table_name_65 WHERE viewers__in_millions_ = ""9.1""" Which city does staff with first name as Janessa and last name as Sawayn live?,"SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" "What's the Ball Diameter with the Location oof El Manati, and the Period of 1200 BCE?","SELECT ball_diameter FROM table_name_87 WHERE location = ""el manati"" AND period = ""1200 bce""" Name the candidates for john boyle,"SELECT candidates FROM table_2668378_5 WHERE incumbent = ""John Boyle""" Name the Result F – A that has a League position of 1st on 4 january 1994?,"SELECT result_f___a FROM table_name_87 WHERE league_position = ""1st"" AND date = ""4 january 1994""" "What is Apparatus, when Rank-Final is greater than 6, and when Competition Description is ""U.S. Championships""?","SELECT apparatus FROM table_name_9 WHERE rank_final > 6 AND competition_description = ""u.s. championships""" What Constructor has 56 Laps?,SELECT constructor FROM table_name_13 WHERE laps = 56 What was the record in the game where the opponent was the cincinnati royals?,"SELECT record FROM table_name_60 WHERE opponent = ""cincinnati royals""" What is the official Twitter handle of Jason Lewis?,SELECT T2.twitter FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Jason Lewis' What is the average rating star for each reviewer?,"SELECT T2.name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name" What is the score of player bill rogers?,"SELECT score FROM table_name_30 WHERE player = ""bill rogers""" What's the record achieved in the gamed played at BC Place Stadium?,"SELECT record FROM table_21796261_4 WHERE location = ""BC Place Stadium""" What studio did Paul Greengrass direct in 2007?,"SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = ""paul greengrass""" "What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?",SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392 What was the score for the 2014 FIFA World Cup Qual. competition?,"SELECT score FROM table_name_13 WHERE competition = ""2014 fifa world cup qual.""" How many total silvers does Russia have?,"SELECT COUNT(silver) FROM table_name_51 WHERE nation = ""russia""" What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700?,"SELECT MAX(shts) FROM table_name_23 WHERE club = ""san jose earthquakes"" AND mins > 2700" What is the Opponent of the game in 1989?,SELECT opponent FROM table_name_76 WHERE date = 1989 How much money has been won by Stephen Ames?,"SELECT money___£__ FROM table_name_46 WHERE player = ""stephen ames""" What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?,"SELECT part_number_s_ FROM table_24096813_15 WHERE tdp = ""2.9 (Max.4.1~5.4) W""" Which position did Mike Antonovich play?,SELECT T1.pos FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T1.firstName = 'Mike' AND T1.lastName = 'Antonovich' "What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?","SELECT SUM(draw__pe_) FROM table_name_28 WHERE team__equipo_ = ""plaza amador"" AND won__pg_ < 6" "What was the tie against the away team, Leicester City?","SELECT tie_no FROM table_name_21 WHERE away_team = ""leicester city""" What was the original nonequity tour when the original broadway was Kevin Chamberlin?,"SELECT original_nonequity_tour_cast FROM table_name_49 WHERE original_broadway_cast = ""kevin chamberlin""" How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa?,"SELECT COUNT(125 AS cc_winner) FROM table_20935975_1 WHERE moto2_winner = ""Shoya Tomizawa""" Show the id and name of the aircraft with the maximum distance.,"SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1" What are the ids of all students who are not video game players?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games What is the least value of joined?,SELECT MIN(joined) FROM table_261954_1 What was the score when the way team was Wrexham?,"SELECT score FROM table_name_12 WHERE away_team = ""wrexham""" What are the names of the players who were coached by Smith Brown?,"SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID where t2.coach_name = ""Smith Brown""" State the currency of Malaysia and what are the indicator code used by this country in 1970?,"SELECT T1.currencyunit, T2.IndicatorCode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.TableName = 'Malaysia' AND T2.Year = 1970" What was the date of the game with a score of 2–1?,"SELECT date FROM table_name_60 WHERE score = ""2–1""" "with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?","SELECT MAX(laps) FROM table_name_85 WHERE rider = ""marco melandri"" AND grid < 10" what is the location of School id 1,SELECT location FROM school where school_id = 1 Tell me lived for name of 1994/2003,"SELECT lived_when___mya__ FROM table_name_99 WHERE discovery___publication_of_name = ""1994/2003""" Which ERP W is the lowest one that has a Call sign of w233be?,"SELECT MIN(erp_w) FROM table_name_47 WHERE call_sign = ""w233be""" What was the price of 1 Bitcoin in 2016?,"SELECT AVG(T2.price) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Bitcoin' AND STRFTIME('%Y', T2.date) = '2016'" how many attendance with stadium being cotton bowl,"SELECT COUNT(attendance) FROM table_14102379_4 WHERE stadium = ""Cotton Bowl""" What is the country of origin of artists with at least one English song,select T1.country from artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = 'english' group by T1.artist_name having count ( * ) > = 1 "Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.","SELECT RESULT , COUNT ( * ) FROM music_festival GROUP BY RESULT ORDER BY COUNT ( * ) DESC" What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?,"SELECT amt_30__desktop_ FROM table_name_76 WHERE feature = ""vlan settings for intel amt network interfaces""" What are the names of all the tracks that are in both the Movies and music playlists?,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?,"SELECT location FROM table_name_21 WHERE round < 3 AND method = ""submission (triangle choke)""" Find the number of people whose age is greater than all engineers.,SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer') How many leading scorers were there in the game against Utah?,"SELECT COUNT(high_points) FROM table_13557843_5 WHERE team = ""Utah""" What is the Result of the game after Week 10 against Philadelphia Eagles?,"SELECT result FROM table_name_26 WHERE week > 10 AND opponent = ""philadelphia eagles""" Give the full name of the actor who acted in the most number of movies?,"SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, COUNT(T1.film_id) AS num FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.first_name, T2.last_name ) AS T ORDER BY T.num DESC LIMIT 1" What is the hardness for the alloy that is liquid at 243 degrees C?,"SELECT hardness FROM table_name_45 WHERE liquid_at__°c_ = ""243""" "Which Goals against have a Club of cd castellón, and Points smaller than 24?","SELECT AVG(goals_against) FROM table_name_15 WHERE club = ""cd castellón"" AND points < 24" What is the number of nationality in 1992?,"SELECT COUNT(nationality) FROM table_12086015_7 WHERE year_s_ = ""1992""" "Can you tell me the Player that has the Country of united states, and the Score of 77-72-72=221?","SELECT player FROM table_name_68 WHERE country = ""united states"" AND score = 77 - 72 - 72 = 221" "What percentage of the vote was 1,255,153 of received votes?","SELECT percentage_of_votes FROM table_name_62 WHERE number_of_votes_received = ""1,255,153""" Which winning team in the final round of the postseason series games against the LAL won more than 60 games in the NBA league during the year 1996?,SELECT DISTINCT T2.tmID FROM series_post AS T1 INNER JOIN teams AS T2 ON T1.tmIDWinner = T2.tmID WHERE T2.won > 60 AND T1.year = 1996 AND T1.round = 'CSF' AND T1.tmIDLoser = 'LAL' "What is the Sum of ERP W, when Call Sign is K216GA?","SELECT SUM(erp_w) FROM table_name_49 WHERE call_sign = ""k216ga""" Find the student ID and middle name for all the students with at most two enrollments.,"SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2" What are the names and ids of products costing between 600 and 700?,"SELECT product_name , product_id FROM products WHERE product_price BETWEEN 600 AND 700" What year did Culver leave?,"SELECT SUM(year_left) FROM table_name_71 WHERE location = ""culver""" How many reviews of businesses that are still open received an uber rating on the funny vote?,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_votes_funny = 'Uber' AND T1.active = 'true' How many episodes of 30 minutes were written by John Sullivan?,"SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = ""John Sullivan""" what is the role code,"SELECT T1.role_code FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = ""Koby""" "Opponent of new york giants, and a Yards smaller than 68 is what kicker?","SELECT kicker FROM table_name_36 WHERE opponent = ""new york giants"" AND yards < 68" What is the mean Founded number when the team is the Baton Rouge Blaze?,"SELECT AVG(founded) FROM table_name_96 WHERE team = ""baton rouge blaze""" "what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?",SELECT SUM(position) FROM table_name_31 WHERE points_1 < 36 AND goals_for < 40 AND drawn < 9 How tall is the structure built in 1907?,SELECT height_ft__m_ FROM table_name_51 WHERE year = 1907 "Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?","SELECT championships__years_ FROM table_name_96 WHERE league = ""milb, florida state league"" AND venue = ""ed smith stadium""" How many seats in 2001 with a quantity greater than 4?,"SELECT COUNT(number_of_seats) FROM table_name_17 WHERE year = ""2001"" AND quantity > 4" What is the id and name of the department store that has both marketing and managing department?,"SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""marketing"" INTERSECT SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""managing""" When was the date of death for the person married to Charles II?,"SELECT death FROM table_name_86 WHERE spouse = ""charles ii""" What is the name of the actors born in the USA?,SELECT name FROM Person WHERE birth_country = 'USA' How many professors in this table?,SELECT count ( * ) FROM professor How many males from Belgium have participated 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' What is the sum of Total Passengers when the annual change is 9.7% and the rank is less than 6?,"SELECT SUM(total_passengers) FROM table_name_9 WHERE annual_change = ""9.7%"" AND rank < 6" What is the name of product with the ID of 77?,SELECT ProductName FROM Products WHERE ProductID = 77 In what draft round in 2012 did a player from Rio Hondo get drafted?,"SELECT draft_round FROM table_20589703_2 WHERE college = ""Rio Hondo"" AND draft_year = 2012" "WHAT IS THE HIGHEST 2012 ENROLLMENT FOR école mathieu-martin, AFTER 1972?","SELECT MAX(2012 AS _enrolment) FROM table_name_5 WHERE school_name = ""école mathieu-martin"" AND year_open > 1972" Find the names of customers who ordered both products Latte and Americano.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano' Tell me the date for bugatti fpr stanislas czaykowski,"SELECT date FROM table_name_60 WHERE winning_constructor = ""bugatti"" AND winning_driver = ""stanislas czaykowski""" What is the model number for the order part numbered tmrm75dam22gg?,"SELECT model_number FROM table_27277284_28 WHERE order_part_number = ""TMRM75DAM22GG""" What is the earliest number in before?,SELECT MIN(before) FROM table_24108789_4 Provide the country ID of East London.,SELECT Country_id FROM City WHERE City_Name = 'East London' What is the average number of crimes in a neighborhood in Central Chicago?,SELECT CAST(COUNT(T1.report_no) AS REAL) / COUNT(T2.community_area_no) FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.side = 'Central' "Who is the rider with less than 15 laps, more than 32 grids, and an accident time/retired?","SELECT rider FROM table_name_44 WHERE laps < 15 AND grid > 32 AND time_retired = ""accident""" What are the the approximate translations when the Morphological Category is 1st. plur. perfect?,"SELECT approximate_translation FROM table_2784232_1 WHERE morphological_category = ""1st. plur. perfect""" How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?,"SELECT chipset FROM table_199666_1 WHERE codename = ""Arrandale"" AND wireless_lan = ""Intel centrino Ultimate-N 6300""" Can you tell me the highest number of mailshots for the customers?,SELECT count ( * ) FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 prepare a table with both the sales and purchase details,SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases Find the names of stadiums that some Australian swimmers have been to.,SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia' What is the title of the prerequisite class of International Finance course?,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance') What year was Barclay Henley first elected?,"SELECT COUNT(first_elected) FROM table_name_77 WHERE incumbent = ""barclay henley""" Can you show me the carriers that have phones with memories smaller than 32 and bigger than 64?,SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64 Find the distinct names of all races held between 2014 and 2017?,SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017 How many customers belong to the household segment in Germany?,SELECT COUNT(T1.c_name) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_mktsegment = 'HOUSEHOLD' AND T2.n_name = 'GERMANY' Of the which have resolution below 1000?,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" Show the most common nationality of hosts.,SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 How many documents are with document type code BK for each product id?,"SELECT count(*) , project_id FROM Documents WHERE document_type_code = ""BK"" GROUP BY project_id" What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore?,"SELECT CAST(SUM(CASE WHEN T1.`Ship Mode` = 'First Class' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Furniture' AND STRFTIME('%Y', T1.`Ship Date`) = '2013'" What is the sum of the rank of the rower with an r note from Australia?,"SELECT SUM(rank) FROM table_name_6 WHERE notes = ""r"" AND country = ""australia""" How many hours in total did all of the Delta Air Lines aircraft were delayed due to a late aircraft in August of 2018? Identify the plane number of the aircraft with the highest delayed hours.,"SELECT T1.TAIL_NUM, SUM(CAST(T1.LATE_AIRCRAFT_DELAY AS REAL) / 60) AS delay FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T2.Code = T1.OP_CARRIER_AIRLINE_ID WHERE T1.FL_DATE LIKE '2018/8/%' AND T2.Description = 'Delta Air Lines Inc.: DL' ORDER BY delay DESC LIMIT 1" Count the number of statements.,SELECT count(*) FROM Statements "Where week is greater than 7 and attendance is 66,251 what is the result?","SELECT result FROM table_name_31 WHERE week > 7 AND attendance = ""66,251""" "How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?","SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = ""conservatives"" AND new_council < 27" How many business have low check-in on Sunday at 10AM?,SELECT COUNT(T2.business_id) FROM Days AS T1 INNER JOIN Checkins AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' AND T2.label_time_10 = 'Low' What was the earliest year a station was owned since?,SELECT MIN(owned_since) FROM table_22329326_1 Give the number of male users who use phone branded HTC.,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'M' AND T2.phone_brand = 'HTC' What are the game IDs of the games published by Bethesda Softworks?,SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Bethesda Softworks' Who is the youngest goalie among those who had more than 150 goal againsts in 2002 season?,"SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2002 AND T2.GA > 150 GROUP BY T2.playerID, T1.birthYear, T1.birthMon, T1.birthMon HAVING SUM(T2.GA) ORDER BY T1.birthYear DESC, T1.birthMon DESC, SUM(T1.birthDay) DESC LIMIT 1" "Among all the films starring PENELOPE GUINESS, what is the title of the one with the highest rental price per day?",SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' ORDER BY T3.rental_rate / T3.rental_duration DESC LIMIT 1 What are their nationalities?,SELECT Nationality FROM ship Which club had 13 runners-up?,"SELECT club FROM table_name_27 WHERE runners_up = ""13""" What is the lowest 09-10 i/o best?,SELECT MIN(09 AS _10_i_o_best) FROM table_24990183_5 "How many solution paths that needs to be compiled if user wants to implement it in ""https://github.com/jeffdik/tachy.git""?",SELECT COUNT(T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/jeffdik/tachy.git' AND T2.WasCompiled = 0 What national has 4.45 for o and 4.55 for xo?,"SELECT nationality FROM table_name_13 WHERE 445 = ""o"" AND 455 = ""xo""" "In 2006, what is the overall number of october defeats for the team with the most October defeats? Indicate the team ID.","SELECT OctL, tmID FROM TeamSplits WHERE year = '2006' ORDER BY OctL DESC LIMIT 1" Which song has Drunkard Groom listed as additional information?,"SELECT song FROM table_2528382_1 WHERE additional_info = ""Drunkard Groom""" Give the full name of legislators who have accounts on OpenSecrets.org.,SELECT COUNT(*) FROM current WHERE opensecrets_id IS NOT NULL AND opensecrets_id <> '' Find the name of players whose card is yes in the descending order of training hours.,SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC "What is the Round when the number of fixtures is more than 2, and the Main date of 7 and 28 november 2007?","SELECT round FROM table_name_31 WHERE number_of_fixtures > 2 AND main_date = ""7 and 28 november 2007""" "Find the names of all the tracks that contain the word ""you"".",SELECT Name FROM TRACK WHERE Name LIKE '%you%' "What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?","SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = ""ourense"" AND days_with_frost > 30" Who was the high scorer in the Toronto game?,"SELECT high_points FROM table_name_97 WHERE team = ""toronto""" Provide the name of the author who is affiliated with the organization named 'ABB Electrical Machines'.,SELECT Name FROM Author WHERE Affiliation = 'ABB Electrical Machines' "How many different roles are there in the club ""Bootup Baltimore""?","SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = ""Bootup Baltimore""" What is the gender of student1000?,"SELECT IIF(T.result = 0, 'female', 'male') AS re FROM ( SELECT COUNT(name) AS result FROM male WHERE name = 'studenT1000' ) T" Which country has the least number of suppliers?,SELECT T2.n_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey GROUP BY T1.s_nationkey ORDER BY COUNT(T1.s_name) LIMIT 1 What is the lowest roll number of Katikati college?,"SELECT MIN(roll) FROM table_name_37 WHERE name = ""katikati college""" What was the original air date of the episode directed by frederick e. o. toye?,"SELECT original_air_date FROM table_25923164_1 WHERE directed_by = ""Frederick E. O. Toye""" Who won the ABA Championship in 1971?,"SELECT MIN(championships) FROM table_name_94 WHERE years_won = ""1971""" "What was the result for Steve & Anna when the score was 21 (7, 7, 7)?","SELECT result FROM table_name_80 WHERE score = ""21 (7, 7, 7)"" AND couple = ""steve & anna""" "Can you tell me the sum of Poles that has the Season of 2005, and the Series of formula three sudamericana?","SELECT SUM(poles) FROM table_name_53 WHERE season = ""2005"" AND series = ""formula three sudamericana""" Who was the Winner at Campbelltown Sports Stadium?,"SELECT winner FROM table_name_74 WHERE venue = ""campbelltown sports stadium""" "What are the distinct nominees of the musicals with the award that is not ""Tony Award""?","SELECT DISTINCT Nominee FROM musical WHERE Award != ""Tony Award""" In which state is LSU located?,SELECT state FROM College WHERE cName = 'LSU' Give the number of research postgraduate students.,SELECT COUNT(student_id) FROM student WHERE type = 'RPG' What is his job?,SELECT job FROM Person WHERE gender = 'male' AND age = ( SELECT min ( age ) FROM person WHERE gender = 'male' ) What is the average base price for all rooms?,SELECT avg ( basePrice ) FROM Rooms List the first name and last name of customers have the amount of outstanding between 1000 and 3000.,"SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;" How many customers have opened an account?,SELECT count(DISTINCT customer_id) FROM Accounts List the location and number of fans in attendance for game 7/,SELECT COUNT(location_attendance) FROM table_22822559_4 WHERE game = 7 "What is Res., when Event is ""FT 6 - Full Throttle 6""?","SELECT res FROM table_name_83 WHERE event = ""ft 6 - full throttle 6""" What is the pre-release when the developer is no?,"SELECT kinka_pre_release FROM table_name_45 WHERE kinka_developer = ""no""" Which game of the season was played on April 22?,"SELECT game FROM table_name_5 WHERE date = ""april 22""" Can you tell me the County that has the Location of shelbyville?,"SELECT county FROM table_name_17 WHERE location = ""shelbyville""" When has a Korean name ² of 청명 (清明) cheongmyeong?,"SELECT date_³ FROM table_name_88 WHERE korean_name_² = ""청명 (清明) cheongmyeong""" What are the names of Robert King's territories?,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.LastName = 'King' AND T1.FirstName = 'Robert' "what is the monotone when pareto efficiency is yes, non-dictatorship is yes, and clone independence is yes?","SELECT monotone FROM table_name_41 WHERE pareto_efficiency = ""yes"" AND non_dictatorship = ""yes"" AND clone_independence = ""yes""" Which establishments did Joshua Rosa inspect?,SELECT DISTINCT T3.dba_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Joshua' AND T1.last_name = 'Rosa' what is the films title that direct by Bill Schreiner?,"select title from film where directed_by = ""Bill Schreiner""" Return the average price for each product type.,"SELECT product_type_code , avg(product_price) FROM products GROUP BY product_type_code" "Please list the resource names of project that teacher ""822b7b8768c17456fdce78b65abcc18e"" created.",SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e' what is the class when the quantity is 4?,SELECT class FROM table_name_96 WHERE quantity = 4 what is the total duration of trips with bike id 636?,SELECT sum ( duration ) FROM trip WHERE bike_id = 636 What was the attendance for St Andrew's?,"SELECT attendance FROM table_name_17 WHERE venue = ""st andrew's""" Find the movies with the highest average rating. Return the movie titles and average rating.,"SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1" Find the names of reviewers who had given higher than 3 star ratings.,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3 Which series with 62 points?,SELECT series FROM table_10705060_1 WHERE points = 62 How many Olympic games were held in London?,SELECT COUNT(T1.games_id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London' Please list any three Wikipedia pages with more than 300 words.,SELECT page FROM pages WHERE words > 300 LIMIT 3 what college has nhl team chicago black hawks?,"SELECT college_junior_club_team FROM table_1213511_5 WHERE nhl_team = ""Chicago Black Hawks""" What are their ages?,SELECT Age FROM people WHERE People_id NOT IN ( SELECT Affirmative FROM debate_people ) List the studios which average gross is above 4500000.,SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000 Name the maximum enrollment for niagara university,"SELECT MAX(enrollment) FROM table_16383772_1 WHERE school = ""Niagara University""" What is the number of continents?,SELECT count(*) FROM CONTINENTS; Score of 119-115 (ot) involved what location?,"SELECT location FROM table_name_16 WHERE score = ""119-115 (ot)""" "Which clubs have one or more members whose advisor is ""1121""?",SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121 "For the match that lasted 3:53 minutes, what was the final record?","SELECT record FROM table_name_99 WHERE time = ""3:53""" What was the other team in game 11?,SELECT team FROM table_27722408_6 WHERE game = 11 "What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4?",SELECT COUNT(losses) FROM table_name_68 WHERE draws < 7 AND points > 26 AND goals_for = 60 AND position < 4 How many investors have at least two transactions?,select count ( * ) from ( 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 ) How many languages are in these films?,SELECT count(DISTINCT language_id) FROM film What are all the possible breed type and size type combinations?,"SELECT DISTINCT breed_code , size_code FROM dogs" Which school is Kirk Snyder from?,"SELECT school_club_team FROM table_11545282_18 WHERE player = ""Kirk Snyder""" What is the average draws with more than 38 played?,SELECT AVG(draws) FROM table_name_25 WHERE played > 38 Find the capacity and gender type of the dorm whose name has substring ‘Donor’.,"SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%'" Which season has the Werder Bremen Club and is in Round 2r?,"SELECT season FROM table_name_50 WHERE club = ""werder bremen"" AND round = ""2r""" What is the result of the team with the 4-2 record?,"SELECT res FROM table_name_67 WHERE record = ""4-2""" What work was nominated at Rockferendum 2007 and got 1st place and got the award for best album?,"SELECT nominated_work FROM table_name_55 WHERE type = ""rockferendum 2007"" AND position = ""1st place"" AND award = ""best album""" How about the district which has at least two addresses?,SELECT district FROM address GROUP BY district HAVING count ( * ) > = 2 How many percent of the toss-winners decided to bowl first on the pitch from 2010 to 2016?,SELECT CAST(SUM(CASE WHEN T2.Toss_Name = 'field' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Toss_Id) FROM Match AS T1 INNER JOIN Toss_Decision AS T2 ON T2.Toss_Id = T1.Toss_Decide WHERE T1.Match_Date BETWEEN '2010-01-01' AND '2016-12-31' List all statement ids and statement details.,"SELECT STATEMENT_ID, statement_details FROM Statements" List the first name of all the professionals along with the description of the treatment they have done.,"SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code" What is the height of Josh Tabb?,"SELECT height FROM table_name_28 WHERE name = ""josh tabb""" List the location descriptions and aldermen's full names of the arson by explosive.,"SELECT T2.location_description, T1.alderman_first_name, T1.alderman_last_name, T1.alderman_name_suffix FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.primary_description = 'ARSON' AND T3.secondary_description = 'BY EXPLOSIVE'" What is the headphone model with a plastic construction and a prestige headphone class?,"SELECT headphone_model FROM table_name_28 WHERE construction = ""plastic"" AND headphone_class = ""prestige""" Show the member names which are in both the party with id 3 and the party with id 1.,SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 What is given name for player 'aebisda01'. Calculate the average time in minutes for the all his games played as goaltender.,"SELECT T1.nameGiven, CAST(SUM(T2.Min) AS REAL) / SUM(T2.GP) FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T1.playerID = 'aebisda01' GROUP BY T1.nameGiven" Which parties have more than 20 hosts? Give me the host names for these parties.,SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 "Find the first and last name of the author(s) who wrote the paper ""Nameless, Painless"".","SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Nameless , Painless""" And what is building name?,"SELECT building FROM Faculty WHERE Fname = ""Jerry"" AND Lname = ""Prince""" How many airlines are from USA?,"SELECT COUNT(*) FROM AIRLINES WHERE Country = ""USA""" What is the course description and number of credits for QM-261?,"SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'" "What is the percentage of respositories that receive more than 2,000 stars?",SELECT CAST(SUM(CASE WHEN Stars > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Stars) FROM Repo Name the total number of ERP W when the call sign is w217bf,"SELECT COUNT(erp_w) FROM table_name_8 WHERE call_sign = ""w217bf""" What is the power output (kw) of model hxd2b?,"SELECT power_output__kw_ FROM table_name_32 WHERE model = ""hxd2b""" Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Alison"" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Rosalind""" "what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?","SELECT type FROM table_name_14 WHERE rank < 70 AND province = ""british columbia"" AND capacity___mw__ > 2 OFFSET 480" Tell me the score for opponent of holy cross and result of push,"SELECT score FROM table_name_3 WHERE opponent = ""holy cross"" AND result = ""push""" "Between 2003 to 2005, what are the given names of the players with the most number of games played whose Penalty minutes is between 200 to 250?",SELECT T2.nameGiven FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID AND T1.PIM BETWEEN 200 AND 250 AND T1.year BETWEEN 2003 AND 2005 ORDER BY T1.GP DESC LIMIT 1 "What is the fewest total when silver is 0, and gold is less than 1, and rank is less than 13?",SELECT MIN(total) FROM table_name_16 WHERE silver = 0 AND gold < 1 AND rank < 13 What are the first names of all students in course ACCT-211?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' Show the id and details for the investors who have the top 3 number of transactions.,"SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3" what's the wine style with grand cru being romanée-conti,"SELECT wine_style FROM table_13981938_1 WHERE grand_cru = ""Romanée-Conti""" What is the average points of the drivers before 1964?,SELECT AVG(points) FROM table_name_73 WHERE year < 1964 What are the names of all ships?,SELECT name FROM ship "What are the names, color descriptions, and product descriptions for products in the 'Herbs' category?","SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" What are the names of the pilots that have not won any matches in Australia?,SELECT name FROM pilot WHERE pilot_id NOT IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') "What is the Date of the Rodez, France Tournament?","SELECT date FROM table_name_63 WHERE tournament = ""rodez, france""" What is the average donation amount to a project created by a teacher working in a school in Brooklyn?,SELECT SUM(T2.donation_total) / COUNT(donationid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.,"SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5" How many people were present in a total of every crowd at the MCG venue?,"SELECT SUM(crowd) FROM table_name_32 WHERE venue = ""mcg""" "In the books published by US publishers, which book has the highest royalty? List these books in the descending order of royalty.",SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id INNER JOIN roysched AS T3 ON T1.title_id = T3.title_id WHERE T2.country = 'USA' ORDER BY T1.royalty DESC Can you filter the list to only show student IDs that have food and animal type allergies?,"SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""animal""" What year was Neverchanger with the label of Latenight weeknight?,"SELECT year FROM table_name_70 WHERE label = ""latenight weeknight"" AND release_title = ""neverchanger""" Please return a count of how many there are left | I don't understand. Do you mean the count of students not in the previous result? | Only those in the previous results,SELECT count ( * ) FROM student WHERE sex = 'F' AND age < 25 "For all the products, list the product name and its corresponding start date for the current standard cost.","SELECT T1.Name, T2.StartDate FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T2.EndDate IS NULL" What is the game of developer Rockstar Games?,"SELECT game FROM table_name_71 WHERE developer_s_ = ""rockstar games""" can you please tell me if Alice is friends with Bob?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' "What is the lowest Weight when the height is 196, and the date of birth is 24.07.1977?","SELECT MIN(weight) FROM table_name_28 WHERE height = 196 AND date_of_birth = ""24.07.1977""" "What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?","SELECT AVG(area__km²_) FROM table_name_25 WHERE capital = ""camagüey"" AND population___percentage_ > 7.02" What race is held in Germany in the month of May? ,"SELECT road_race FROM table_26166836_3 WHERE country = ""Germany"" AND month_held = ""May""" When was the first movie of the director who directed the highest number of movies released and what is the user id of the user who received the highest number of comments related to the critic made by the user rating the movie?,SELECT MIN(movie_release_year) FROM movies WHERE director_name = ( SELECT T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1960 AND 1985 GROUP BY T2.director_name ORDER BY COUNT(T2.director_name) DESC LIMIT 1 ) How many players were names Howard Eisley?,"SELECT COUNT(no) FROM table_11545282_5 WHERE player = ""Howard Eisley""" What is the percentage of the increase of complaints filed by the clients from New York from the year 2016 to the year 2017?,"SELECT 100.0 * (SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2017' THEN 1 ELSE 0 END) - SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2016' THEN 1 ELSE 0 END)) / SUM(CASE WHEN strftime('%Y', T2.`Date received`) = '2016' THEN 1 ELSE 0 END) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.city = 'New York City'" Show the average population of all counties.,SELECT avg(Population) FROM county What is the status of George's order?,SELECT T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = 'George' What is the percentage of act number 5 in Titus Andronicus?,"SELECT CAST(SUM(IIF(T2.act = 5, 1, 0)) AS REAL) * 100 / COUNT(T2.act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Titus Andronicus'" Find the names and opening hours of the tourist attractions that we get to by bus or walk.,"SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus"" OR How_to_Get_There = ""walk""" "What was the score at CN Centre on April 5, 2008?","SELECT score FROM table_name_99 WHERE stadium = ""cn centre"" AND date = ""april 5, 2008""" Give me the count for all students,select count ( fname ) from student Which opponent completed a challenge competition with a result of 8-2 w?,"SELECT opponent FROM table_name_73 WHERE competition = ""challenge"" AND result = ""8-2 w""" Could you tell me how many employees have the job title PU_MAN?,SELECT count ( * ) FROM employees WHERE job_id = 'PU_MAN' What season did the Sake Tuyas come in 1st place?,"SELECT season FROM table_29619494_2 WHERE sake_tuyas = ""1st""" Find the product type whose average price is higher than the average price of all products.,SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price) > (SELECT avg(product_price) FROM products) how many games played by BS1?,"SELECT count ( * ) FROM home_game WHERE team_id = ""BS1""" What was the first leg result in the round against Norchi Dinamoeli?,"SELECT first_leg FROM table_20086138_1 WHERE opposition = ""Norchi Dinamoeli""" How many drama workshop groups are there in each city? Return both the city and the count.,"SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town" What's the most number of byes for Longwood having less than 1944 against?,"SELECT MAX(byes) FROM table_name_13 WHERE benalla_dfl = ""longwood"" AND against < 1944" Find the name of department has the highest amount of students?,SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1 "Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?",SELECT MIN(place) FROM table_name_94 WHERE total < 24 AND draw > 7 Write down the name of players whose bowling skill is Legbreak.,SELECT T2.Player_Name FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill WHERE T1.Bowling_skill = 'Legbreak' What is the birth name of Al Jean and his role in creating The simpson 20s: Season 20?,"SELECT DISTINCT T1.birth_name, T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.name = 'Al Jean';" What is the review length of user 60776 to business with business ID 1?,SELECT review_length FROM Reviews WHERE user_id = 60776 AND business_id = 1 What was the Attendance on Week 8?,SELECT AVG(attendance) FROM table_name_95 WHERE week = 8 Which state has the most employees?,select T1.state_province_county from Addresses as T1 join Employees as T2 on T1.address_id = T2.employee_address_id group by T1.state_province_county order by count ( * ) desc limit 1 "Which are the cases where the subject are female. List the case number, subject status and weapon.","SELECT T1.case_number, T1.subject_statuses, T1.subject_weapon FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F'" What are the draft pick numbers and draft classes for players who play the Defender position?,"SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = ""Defender""" show me the number of branches of cities,"SELECT city , count ( * ) FROM branch GROUP BY city" What are the names and locations of festivals?,"SELECT Festival_Name , LOCATION FROM festival_detail" What is the total amount of sales made in the year 1997?,SELECT SUM(T2.UnitPrice * T2.Quantity * (1 - T2.Discount)) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID WHERE T1.OrderDate LIKE '1997%' What's the season number of the episode directed by Dan Attias? ,"SELECT MIN(season__number) FROM table_13755296_1 WHERE directed_by = ""Dan Attias""" What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense?,"SELECT yo FROM table_1977630_2 WHERE vosotros___vosotras = ""moláis""" Which country have the highest CO2 emissions in 1960?,SELECT CountryName FROM Indicators WHERE Year = 1960 AND IndicatorName = 'CO2 emissions (metric tons per capita)' ORDER BY Value DESC LIMIT 1 "Hi there! Can you provide me with the country and state province county information for the staff member named Janessa Sawayn? | Are you referring to the staff member having first name Janessa and last name Sawayn? | Yes, that is correct!","SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn""" "What is the voting numbers and percentage of the best rating scale of the episode which had keyword of ""arab stereotype""?","SELECT T2.votes, T2.percent FROM Keyword AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.keyword = 'arab stereotype' AND T2.stars = 10;" show me the names and the decor of the rooms that have a king bed,"SELECT roomName, decor FROM Rooms WHERE bedtype = 'King'" What year did Naoki Tsukahara finish 3rd in the 200 m race?,"SELECT year FROM table_name_4 WHERE notes = ""200 m"" AND position = ""3rd""" Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.,"SELECT cName FROM College WHERE enr < 13000 AND state = ""AZ"" UNION SELECT cName FROM College WHERE enr > 15000 AND state = ""LA""" Tell me the 2nd leg for alemannia aachen,"SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = ""alemannia aachen""" "Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?","SELECT AVG(pos) FROM table_name_38 WHERE car__number > 2 AND team = ""billy ballew motorsports""" What position did Gene Stahl play,"SELECT position FROM table_16441561_5 WHERE player = ""Gene Stahl""" What was the date of the game against North Carolina?,"SELECT date FROM table_name_10 WHERE opponent = ""north carolina""" Find the distinct names of wines produced before the year of 2000 or after the year of 2010.,SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?,"SELECT visitor FROM table_name_48 WHERE home = ""chicago black hawks"" AND record = ""1-1""" Who was performer 4 when Kate Robbins was performer 3?,"SELECT performer_4 FROM table_14934885_1 WHERE performer_3 = ""Kate Robbins""" How many extra points did Germany Schultz score? ,"SELECT extra_points_1_point FROM table_25711913_14 WHERE player = ""Germany Schultz""" "Which CONMEBOL 1994 has a Supercopa 1994 of n/a, and a Recopa 1994 of n/a, and a Team of san lorenzo?","SELECT conmebol_1994 FROM table_name_12 WHERE supercopa_1994 = ""n/a"" AND recopa_1994 = ""n/a"" AND team = ""san lorenzo""" which roller coaster are top speed,SELECT * FROM roller_coaster order by Speed desc limit 1 What was the latest season with 20 contestants?,SELECT MAX(season) FROM table_20026849_1 WHERE contestants = 20 To which college/junior/club team did the player that was Pick 12 belong?,"SELECT college_junior_club_team FROM table_name_19 WHERE pick__number = ""12""" Name the replaced by for august 9 ,"SELECT replaced_by FROM table_25361570_2 WHERE date_of_vacancy = ""August 9"" AND date_of_appointment = ""August 9""" List first name and last name of customers living in city Lockmanfurt.,"SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = ""Lockmanfurt"";" What proportion of work order is in Subassembly?,SELECT 100.0 * SUM(CASE WHEN T1.Name = 'Subassembly' THEN 1 ELSE 0 END) / COUNT(T2.WorkOrderID) FROM Location AS T1 INNER JOIN WorkOrderRouting AS T2 ON T1.LocationID = T2.LocationID What are the name and id of the team offering the lowest average salary?,"SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;" "Which vocal type has the band mate with first name ""Marianne"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Marianne"" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1" Which cities have at least one customer but no performer?,SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID What is the alphabetically ordered list of all distinct medications?,SELECT DISTINCT name FROM medication ORDER BY name What is the highest gender ratio of the residential areas in Arecibo county?,SELECT CAST(T1.male_population AS REAL) / T1.female_population FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' AND T1.female_population <> 0 ORDER BY 1 DESC LIMIT 1 Find the id of the customer who made the most orders.,SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 What was the highest SaffirSimpson with an NHC advisory of 18?,"SELECT MAX(saffir_simpson_category) FROM table_name_8 WHERE nhc_advisory_number = ""18""" What is the sum of Year opened when steel was the material with a Span feet of 1476?,"SELECT SUM(year_opened) FROM table_name_75 WHERE material = ""steel"" AND span_feet = 1476" "How many goals have a Date of december 4, 2010, and a Score of 1-0?","SELECT COUNT(goal) FROM table_name_91 WHERE date = ""december 4, 2010"" AND score = ""1-0""" What is the rank of the player with the 39.69 average?,"SELECT rank FROM table_26041144_11 WHERE average = ""39.69""" Which 1994 has a 1998 of 0–1?,"SELECT 1994 FROM table_name_35 WHERE 1998 = ""0–1""" Name the Home team of tranmere rovers?,"SELECT date FROM table_name_14 WHERE home_team = ""tranmere rovers""" Which Quarterfinal has a Rank larger than 9?,SELECT quarterfinal FROM table_name_28 WHERE rank > 9 "Calculate the total average number of papers published from 2002 to 2010 under the conference ""Information and Knowledge Engineering"".",SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T1.Year) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'Information and Knowledge Engineering' AND T1.Year >= 2002 AND T1.Year <= 2010 Find the name of customers who do not have a saving account.,SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' "What is the turnout with 15 candidates and more than 377,591 valid poll?",SELECT turnout FROM table_name_81 WHERE candidates = 15 AND valid_poll > 377 OFFSET 591 Who did the Texan's play on Week 4?,"SELECT opponent FROM table_name_37 WHERE week = ""4""" "Which students live in the city with code ""NYC"" and have class senator votes in the spring election cycle? Count the numbers.","SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" How much A-League has a Pre-Season larger than 0?,SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0 "Among the days on which over 100 units of item no.5 were sold in store no.3, on which date was the temperature range the biggest?",SELECT T2.`date` FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T1.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND T2.item_nbr = 5 AND T2.units > 100 ORDER BY tmax - tmin DESC LIMIT 1 For which Game 4 did Michael O'Connor play wing position?,"SELECT game_4 FROM table_name_8 WHERE position = ""wing"" AND game_1 = ""michael o'connor""" What is the Total of the Player with a Finish of 1?,"SELECT COUNT(total) FROM table_name_2 WHERE finish = ""1""" which course has most number of registered students?,SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1 Can you list all the names of the students who have the position of striker?,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.pPos = 'striker' "Hello, can you tell me which city hosted events in the most recent year? | Which attribute of the city do you want? | How about, what is the most recent year?",SELECT YEAR FROM hosting_city ORDER BY YEAR DESC LIMIT 1 When there is a lost of 2 what is the mumber drawn?,SELECT MAX(drawn) FROM table_15405904_1 WHERE lost = 2 What are the ids and names of the web accelerators that are compatible with two or more browsers?,"SELECT T1.id , T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" "Provide the overview for the movie ""The Pacifier"".",SELECT overview FROM movie WHERE title = 'The Pacifier' What are the average rating and resolution of songs that are in Bangla?,"SELECT avg(rating) , avg(resolution) FROM song WHERE languages = ""bangla""" Which Year has an Edition of 41st?,"SELECT year FROM table_name_58 WHERE edition = ""41st""" Could you please list their product ids?,SELECT t2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id What is the average Silver with rank 30 and a Bronze greater than 0,"SELECT AVG(silver) FROM table_name_42 WHERE rank = ""30"" AND bronze > 0" What are the total sales in billions of all of these companies combined?,"SELECT sum ( sales_in_billion ) FROM company WHERE Industry = ""Banking"" OR Industry = ""Retailing""" Find the id and local authority of the station whose maximum precipitation is higher than 50.,"SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max(t1.precipitation) > 50;" WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?,"SELECT opponent FROM table_name_17 WHERE date = ""september 28""" Which laps has a grid of 8?,"SELECT laps FROM table_name_25 WHERE grid = ""8""" What was Australia's to par when the place was t9?,"SELECT to_par FROM table_name_7 WHERE place = ""t9"" AND country = ""australia""" "What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?","SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year" What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?,SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 7 find the name of the program that was launched most recently.,SELECT name FROM program ORDER BY launch DESC LIMIT 1 How many caps for mike macdonald?,"SELECT SUM(caps) FROM table_name_30 WHERE player = ""mike macdonald""" What is the number of total candidates when registered voters is 47742?,SELECT total_candidates FROM table_2676980_4 WHERE registered_voters = 47742 What is the name of candidate id 111?,"SELECT T3.first_name,T3.middle_name,T3.last_name FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T1.candidate_id = 111" what is address of qld district?,"SELECT address from address where district = ""QLD""" What was the result in the election in the Kentucky 1 district? ,"SELECT result FROM table_2668367_7 WHERE district = ""Kentucky 1""" What was the score when the home team was goole town?,"SELECT score FROM table_name_84 WHERE home_team = ""goole town""" What departments does this school have?,select DEPT_NAME from department where school_code in ( SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count ( * ) LIMIT 1 ) "Which country has a $46,426 median family income?","SELECT county FROM table_name_34 WHERE median_family_income = ""$46,426""" Find the first and last names of all the female (sex is F) students who have president votes.,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" How many different product types are there?,SELECT count(DISTINCT product_type_code) FROM products_for_hire Name the most year built for davik kyrkje,"SELECT MAX(year_built) FROM table_178408_1 WHERE church_name = ""Davik Kyrkje""" "What is the average replacement cost of the films under the category of ""Horror""?",SELECT AVG(T3.replacement_cost) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.name = 'Horror' "What is Played, when Points Against is ""374""?","SELECT played FROM table_name_62 WHERE points_against = ""374""" "Hmm, can you show me the college names with players whose decisions are yes?","SELECT cName from Tryout where decision = ""yes""" What is the title with chuck jones as the director and the production number 9537?,"SELECT title FROM table_name_78 WHERE director = ""chuck jones"" AND production_number = ""9537""" List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" AND T3.name = ""MPEG audio file"";" Find the names of users who do not have a first notification of loss record.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id List the names of wrestlers that have not been eliminated.,SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination) How many users have uber review votes for funny from the fans?,SELECT COUNT(DISTINCT user_id) FROM Reviews WHERE review_votes_funny = 'Uber' What player was picked earlier than 126 by the Houston Oilers?,"SELECT player FROM table_name_3 WHERE pick < 126 AND team = ""houston oilers""" Who was the opponent at the game with a loss of Sele (0-1)?,"SELECT opponent FROM table_name_36 WHERE loss = ""sele (0-1)""" Count the number of artists who are older than 46 and joined after 1990.,SELECT count(*) FROM artist WHERE age > 46 AND year_join > 1990 How many positions have a played greater than 12?,SELECT COUNT(position) FROM table_name_26 WHERE played > 12 Team 2 Al-Ain played in what venue?,"SELECT venue FROM table_name_89 WHERE team_2 = ""al-ain""" Which teams had a difference of 8 between goals scored and goals conceeded,"SELECT team FROM table_15420044_1 WHERE difference = ""8""" Show the delegates and the names of the party they belong to.,"SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID" "What is the title, credit value, and department name for courses with more than one prerequisite?","SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1" List all of the ids for left-footed players with a height between 180cm and 190cm.,"SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = ""left""" Who was the away team when the home team was Ramsgate?,"SELECT away_team FROM table_name_30 WHERE home_team = ""ramsgate""" Show the title and director for all films.,"SELECT title , directed_by FROM film" "What are the teams of the players, sorted in ascending alphabetical order?",SELECT Team FROM player ORDER BY Team ASC; Who's the director of Buddy of the Apes?,"SELECT director FROM table_name_80 WHERE title = ""buddy of the apes""" What is the example in English for a tone of mid rising-falling?,"SELECT example_meaning_in_english FROM table_name_1 WHERE tone = ""mid rising-falling""" List the names of aircrafts and that won matches at least twice.,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2 Count the number of countries.,SELECT count(*) FROM country Tell me the lowest pick number for new england revolution,"SELECT MIN(pick__number) FROM table_name_84 WHERE mls_team = ""new england revolution""" "What is the Date of the Tournament with a Score of 3–6, 7–6(6), 5–7?","SELECT date FROM table_name_72 WHERE score = ""3–6, 7–6(6), 5–7""" Who is the club with a 4:03.63 time?,"SELECT club FROM table_name_91 WHERE time = ""4:03.63""" "Which country had 1 Bronze, 1 Silver, with a total of 3 medals?",SELECT nation FROM table_name_10 WHERE bronze = 1 AND total = 3 AND silver = 1 "With Appearances larger than 1, what is the Wins for the Reno Aces Team?","SELECT MIN(wins) FROM table_name_45 WHERE team = ""reno aces"" AND appearances > 1" How many wins had 58 goals scored?,SELECT wins FROM table_18018248_2 WHERE goals_scored = 58 "Show the names of members whose country is ""United States"" or ""Canada"".","SELECT Name FROM member WHERE Country = ""United States"" OR Country = ""Canada""" How many awards did milagros gutierrez win?,"SELECT other_awards FROM table_1825751_14 WHERE delegate = ""Milagros Gutierrez""" Overall of 62 is what average round?,SELECT AVG(round) FROM table_name_42 WHERE overall = 62 What is the number for the interview in Illinois when the preliminary is less than 8.558?,"SELECT SUM(interview) FROM table_name_51 WHERE country = ""illinois"" AND preliminary < 8.558" What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?,SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100 What are the first names of students studying in room 107?,SELECT DISTINCT firstname FROM list WHERE classroom = 107 Find the professor ID and position in faculty who taught high-level undergraduate course of less than 10 in ID.,"SELECT T1.p_id, T1.hasPosition FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id WHERE T3.courseLevel = 'Level_400' AND T2.course_id < 10" what is the place when the draw is less than 12 and the artist is quartissimo feat. martina?,"SELECT SUM(place) FROM table_name_60 WHERE draw < 12 AND artist = ""quartissimo feat. martina""" Which team was the opponent in game 5?,SELECT team FROM table_29181479_3 WHERE game = 5 Calculate average scene per act in Antony and Cleopatra.,SELECT CAST(SUM(T2.Scene) AS REAL) / COUNT(T2.act) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Antony and Cleopatra' What are the state and country of all the cities that have post codes starting with 4.\,"SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE ""4%""" "Find all the policy type codes associated with the customer ""Dayana Robel""","SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" "Which week had an attendance of 55,158?","SELECT SUM(week) FROM table_name_42 WHERE attendance = ""55,158""" Count the number of male students who had class senator votes in the fall election cycle.,"SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = ""M"" AND T2.Election_Cycle = ""Fall""" Find the name of instructors who didn't teach any courses?,SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches) "Show the names of people, and dates and venues of debates they are on the affirmative side.","SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID" "Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9?",SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.9 List their names please | Did you mean their FIRST NAME and LAST NAME? | yes,"SELECT FIRST_NAME,LAST_NAME FROM employees WHERE salary >12000" "What is Year, when Competition Description is ""U.S. Championships"", when Rank-Final is less than 3, and when Apparatus is ""All-Around""?","SELECT year FROM table_name_79 WHERE competition_description = ""u.s. championships"" AND rank_final < 3 AND apparatus = ""all-around""" What are the names and id of courses having at most 2 sections?,"SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2" How many category id have low review count and rating more than 2?,SELECT COUNT(DISTINCT T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.review_count = 'Low' AND T3.stars > 2 How many times was Larysa Semenivna Latynina (Diriy-) declared as champion in Gymnastics Women's Individual All-Around?,SELECT COUNT(T1.id) FROM event AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.event_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person AS T4 ON T3.person_id = T4.id WHERE T4.full_name = 'Larysa Semenivna Latynina (Diriy-)' AND T1.event_name LIKE 'Gymnastics Women%s Individual All-Around' AND T2.medal_id = 1 "List the name of ships whose nationality is not ""United States"".","SELECT Name FROM ship WHERE Nationality != ""United States""" How many cities are in U.A.E?,SELECT SUM(CASE WHEN T2.Country_Name = 'U.A.E' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN country AS T2 ON T1.Country_id = T2.Country_id On what date was the record 59–59?,"SELECT date FROM table_name_62 WHERE record = ""59–59""" Which country has the smallest surface area and the most crowded city?,"SELECT T2.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC, T2.SurfaceArea DESC LIMIT 1" Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct When did they play Dayton?,"SELECT date FROM table_25461946_8 WHERE team = ""Dayton""" What is the average number of wins with less than 10 goals?,SELECT AVG(wins) FROM table_name_76 WHERE goals_against < 10 What are the names of the courses that have exactly 1 student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1 "What was the option from Italy with general television content, and the Cielo television service?","SELECT package_option FROM table_name_84 WHERE country = ""italy"" AND content = ""general television"" AND television_service = ""cielo""" Name the number of games on june 12,"SELECT COUNT(game) FROM table_11965481_13 WHERE date = ""June 12""" Which Week has a Result of w 23–22?,"SELECT week FROM table_name_77 WHERE result = ""w 23–22""" What was the original air date for season 11?,SELECT original_air_date FROM table_20704243_6 WHERE season__number = 11 What is the least amount of podiums?,SELECT MIN(podiums) FROM table_25548630_1 "Which Opponent had a Score of 6-3, 6-2?","SELECT opponent FROM table_name_67 WHERE score = ""6-3, 6-2""" Name the player for l apps for 17,SELECT player FROM table_22538587_3 WHERE l_apps = 17 "Name the vendors who provide resources for project 'Lights, Camera, Action!'. List all the item names and unit price for each.","SELECT T1.vendor_name, T1.item_name, T1.item_unit_price FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN essays AS T3 ON T2.projectid = T3.projectid WHERE T3.title = 'Lights, Camera, Action!'" What is the greatest lost where played is less than 9?,SELECT MAX(lost) FROM table_name_51 WHERE played < 9 "What is Finish, when Country is ""United States"", and when To Par is ""+21""?","SELECT finish FROM table_name_3 WHERE country = ""united states"" AND to_par = ""+21""" Who created the illustration for the stamp that was themed 100 years of scouting?,"SELECT illustration FROM table_11900773_5 WHERE theme = ""100 Years of Scouting""" What is the lowest minimum temperature recorded in store 16 on January 2012?,SELECT MIN(tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 16 AND T1.`date` LIKE '%2012-01%' Name the points for thomas morgenstern,"SELECT points FROM table_24489942_10 WHERE name = ""Thomas Morgenstern""" HOW MANY MODELS WERE ON THE COVER OF THE ISSUE WHERE THE CENTERFOLD WAS STEPHANIE LARIMORE?,"SELECT COUNT(cover_model) FROM table_1566852_7 WHERE centerfold_model = ""Stephanie Larimore""" Can you please tell me the number of routes with the destination airport in Italy operated by the airline with the name 'American Airlines'?,SELECT count ( * ) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' Find the names of departments that are located in Houston.,SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston' "Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10?","SELECT 2011 FROM table_name_96 WHERE 1999 = ""a"" AND 2004 = ""2r"" AND career_sr = ""0 / 10""" "What was the attendance on November 1, 1942?","SELECT COUNT(attendance) FROM table_name_62 WHERE date = ""november 1, 1942""" How many golds for the nation ranked below 5 and over 1 bronze medals?,SELECT MAX(gold) FROM table_name_80 WHERE rank > 5 AND bronze < 1 how many ship there,SELECT count ( * ) FROM ship What is the name of the airport with the most number of routes that start in China?,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 "Who is the player who won the first ever ""man of the match"" award?",SELECT Player_Name FROM Player WHERE Player_Id = ( SELECT Man_of_the_Match FROM `Match` ORDER BY match_date ASC LIMIT 1 ) What are the names of the different banks that have provided loans?,SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id Can you list the swimmer names and their times?,"SELECT name, time FROM swimmer" "List the number of invoices from Chicago, IL.","SELECT COUNT(*) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL"";" "What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?","SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = ""11""" What is the highest number of apps of the player with more than 63 goals and an avge of 0.45?,SELECT MAX(apps) FROM table_name_55 WHERE goals > 63 AND avge = 0.45 Who is the manufacturer when 150.088 is the average speed (mph)?,"SELECT manufacturer FROM table_2226343_1 WHERE average_speed__mph_ = ""150.088""" "Who played the final match on November 23, 1998?","SELECT opponent_in_the_final FROM table_name_69 WHERE date = ""november 23, 1998""" What is the full name of the second oldest person in the company at the time he was hired?,"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) DESC LIMIT 1, 1" Tell me the team 2 for team 1 being la nuova piovese (veneto a),"SELECT team_2 FROM table_name_46 WHERE team_1 = ""la nuova piovese (veneto a)""" "From which country is the company ""Drachenblut Delikatessen"" from?",SELECT Country FROM Customers WHERE CompanyName = 'Drachenblut Delikatessen' Which membership card has more than 5 members?,SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*) > 5 What is the average amount due for all the payments?,SELECT avg(amount_due) FROM payments What is Colorado College's lowest pick number?,"SELECT MIN(pick__number) FROM table_name_9 WHERE college = ""colorado""" "When the home team is Cairns Taipans, at which venue do they play?","SELECT venue FROM table_name_51 WHERE home_team = ""cairns taipans""" "Find the description of the club called ""Tennis Club"".","SELECT clubdesc FROM club WHERE clubname = ""Tennis Club""" Name the ERP W for frequency of 92.7,SELECT erp_w FROM table_name_66 WHERE frequency_mhz = 92.7 How many employees who are IT staff are from each city?,"SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city" Show the most common apartment type code.,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 Name the episode for 18-49 rating being 3.6,"SELECT COUNT(episode) FROM table_20971444_3 WHERE rating__18_49_ = ""3.6""" Show the average price of hotels for each star rating code.,"SELECT star_rating_code, AVG(price_range) FROM HOTELS GROUP BY star_rating_code" What are the processors supported by a ddr2 memory and the nforce 550 model?,"SELECT processors_supported FROM table_name_91 WHERE memory = ""ddr2"" AND model = ""nforce 550""" Find the name of the airports located in Cuba or Argentina.,SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina' what's the salmonella with escherichia being espd,"SELECT salmonella FROM table_10321124_1 WHERE escherichia = ""EspD""" What is the track in Washington state?,"SELECT track FROM table_name_83 WHERE state = ""washington""" How many schools have students playing in goalie and mid-field positions?,SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid') Which Slalom has an overall of 25 in the 2009 season?,"SELECT slalom FROM table_name_32 WHERE overall = ""25"" AND season = 2009" What was the country that had the highest invoice size?,SELECT billing_country FROM invoices order by total desc limit 1 What is the maximum start record for player of Jeff Brehaut?,"SELECT MAX(starts) FROM table_29504351_2 WHERE player = ""Jeff Brehaut""" What are the names and trade names of the medcines that are FDA approved?,"SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes'" "What are the names and damage in millions for storms, ordered by their max speeds descending?","SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC" what are all the gold medals when the silver medals is smaller than 1.0?,SELECT gold_medals FROM table_1305623_18 WHERE silver_medals < 1.0 What was the Score on 25 May 2007?,"SELECT score FROM table_name_79 WHERE date = ""25 may 2007""" "What is the paper ""Stitching videos streamed by mobile phones in real-time"" about?",SELECT Keyword FROM Paper WHERE Title = 'Stitching videos streamed by mobile phones in real-time' Who directed 414?,SELECT directed_by FROM table_23483182_1 WHERE production_code = 414 "What is the document type code for document type ""Paper""?","SELECT document_type_code FROM Ref_document_types WHERE document_type_name = ""Paper""" "What are the first names of the students in that classroom that begin with the letter ""S""?","SELECT FirstName FROM list where firstName like "" S%"" and classroom in ( SELECT classroom FROM list GROUP BY classroom ORDER BY count ( * ) DESC LIMIT 1 ) " What was the score of the draw in the 2005 FIFA Confederations Cup?,"SELECT score FROM table_name_24 WHERE competition = ""2005 fifa confederations cup"" AND result = ""draw""" Show all game names played by Linda Smith,"SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = ""Smith"" AND T3.Fname = ""Linda""" What is the area code of the city with the female median age over 32 years old?,SELECT T1.area_code FROM area_code AS T1 INNER JOIN ZIP_Data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.female_median_age > 32 GROUP BY T1.area_code What is this student's name? | There no info about the name of the student. How about the id of the student? | What is the ID of this student?,select student_id from Student_Course_Enrolment AS T1 JOIN Courses AS T2 ON T2.course_id = T1.course_id WHERE course_name = 'Chinese Painting' What year was Teen Angels 2 nominated?,"SELECT year FROM table_name_19 WHERE nominated = ""teen angels 2""" What is the total population of Gelderland district?,"SELECT sum(Population) FROM city WHERE District = ""Gelderland""" What teams used a track 3:29 long?,"SELECT team_s_ FROM table_name_51 WHERE time = ""3:29""" Which Shakespeare tragedy has the most scenes? Give the long title.,"SELECT T.LongTitle FROM ( SELECT T1.LongTitle, COUNT(T2.Scene) AS num FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'Tragedy' GROUP BY T1.LongTitle, T2.Scene ) AS T ORDER BY T.num DESC LIMIT 1" I want to know the tournament that has a third place of magnus gustafsson,"SELECT tournament FROM table_name_25 WHERE third_place = ""magnus gustafsson""" Which nations have both hosts of age above 45 and hosts of age below 35?,SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35 What is the average duration of songs that have mp3 format and resolution below 800?,"SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" How many female people are older than 30 in our record?,SELECT count(*) FROM people WHERE is_male = 'F' AND age > 30 "Which order has a higher priority, order no. 4 or order no. 36?","SELECT l_orderkey FROM lineitem WHERE l_orderkey IN (4, 36) ORDER BY l_shipdate DESC LIMIT 1" Which community has the highest number of neighborhoods?,SELECT T1.community_area_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no ORDER BY T2.community_area_no DESC LIMIT 1 What is the maximum average speed?,SELECT MAX(avgspeed) FROM weather Can you please show the names of all pilots and fleet series of the aircrafts they have flown in ascending order of the rank of the pilot?,"SELECT T3.Pilot_name , T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank" "Show names and seatings, ordered by seating for all tracks opened after 2000.","SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating" What winning team has a losing pitcher of Juan Dominguez?,"SELECT winning_team FROM table_name_31 WHERE losing_pitcher = ""juan dominguez""" Incumbent John Sullivan has what as biggest first elected?,"SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = ""john sullivan""" What is the name of the highest rated wine?,SELECT Name FROM WINE ORDER BY Score DESC LIMIT 1 What is the highest number of points against the boston bruins on game 77?,"SELECT MAX(points) FROM table_name_1 WHERE opponent = ""boston bruins"" AND game = 77" Show the fleet series of the aircrafts flied by pilots younger than 34,SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34 What is the title of the episode that has the highest number of crews in the Art Department?,SELECT T2.title FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.category = 'Art Department' GROUP BY T2.episode_id ORDER BY COUNT(T1.category) DESC LIMIT 1 Who is the oldest person whose job is student?,SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' ) What is the highest discount applied by the store located in a city of the state of Colorado whose land area is 111039036.,SELECT MAX(T1.`Discount Applied`) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T2.State = 'Colorado' AND T2.`Land Area` = 111039036 "In the US Open championship and the outcome is runner-up, what is the minimum year?","SELECT MIN(year) FROM table_22597626_2 WHERE outcome = ""Runner-up"" AND championship = ""US Open""" Hello! How many students are there in total?,SELECT count ( * ) from students Can you list the location names of the tourist attractions that can be reached by bus?,"SELECT T1.location_Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T2.how_to_get_there = ""bus""" Okay. How many games were without injuries?,SELECT count ( * ) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident ) What is the score for set 1 when the score for set 3 is 22–25?,"SELECT set_1 FROM table_name_10 WHERE set_3 = ""22–25""" How much is the salary Mr. Mird earns currently?,SELECT salary FROM instructor where name = 'Mird' How many fast laps have 0 points in the World Series by Nissan?,"SELECT fast_laps FROM table_name_54 WHERE points = ""0"" AND series = ""world series by nissan""" "What is the name of the tourist attraction that is associated with the photo ""game1""?","SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?,"SELECT final_score FROM table_name_9 WHERE visiting_team = ""indianapolis colts"" AND stadium = ""giants stadium""" Which team is in the Southeast with a home at Philips Arena?,"SELECT team FROM table_name_29 WHERE division = ""southeast"" AND home_arena = ""philips arena""" Which Season has a UFL Cup of quarter-finals?,"SELECT season FROM table_name_42 WHERE ufl_cup = ""quarter-finals""" Find the name and address of the department that has the highest number of students.,"SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1" Can you give me the names of those documents?,SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id Which nation has the greatest infant mortality rate among those that attained independence in 1960?,"SELECT T1.Country FROM politics AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE STRFTIME('%Y', T1.Independence) = '1960' ORDER BY T2.Infant_Mortality DESC LIMIT 1" WHAT IS TEH SECOND WITH REGINA AS CITY AND SKIP OF MICHELLE ENGLOT?,"SELECT second FROM table_name_59 WHERE city = ""regina"" AND skip = ""michelle englot""" How many different types of rooms are there?,SELECT count(DISTINCT roomtype) FROM room "For each Orange county campus, report the number of degrees granted after 2000.","SELECT T1.campus , sum ( T2.degrees ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = ""Orange"" AND T2.year > = 2000 GROUP BY T1.campus" What is the maximum number of rebounds for players having exactly 35 steals?,SELECT MAX(rebounds) FROM table_24913533_4 WHERE steals = 35 What about the special features Trailers?,"SELECT count ( * ) FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.name = ""Foreign"" and T3.special_features = ""Trailers""" "What is Birthplace, when Ring Name is Masunoyama Tomoharu?","SELECT birthplace FROM table_name_70 WHERE ring_name = ""masunoyama tomoharu""" On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?,"SELECT date FROM table_name_66 WHERE meet = ""2007 pan american games"" AND time = ""1:07.78""" Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?,"SELECT fencing_victories__pts_ FROM table_name_78 WHERE equestrian_time__pts_ = ""67.88 (1144)""" What date is associated with the Loss of Farrell (6-13)?,"SELECT date FROM table_name_20 WHERE loss = ""farrell (6-13)""" What is the Peak with a Project Name that is talakan ph 1?,"SELECT peak FROM table_name_14 WHERE project_name = ""talakan ph 1""" Find the average height for each person.,SELECT AVG(height_meters) FROM Person; What is the postal code of the street address of the account that is latest updated?,SELECT PostalCode FROM Address ORDER BY ModifiedDate DESC LIMIT 1 "WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W","SELECT city_of_license FROM table_name_42 WHERE fcc_info = ""fcc"" AND erp_w = ""10,000 horizontal 3,000 vertical""" Which physicians are affiliated with both Surgery and Psychiatry departments? Tell me their names.,SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry' how many founded dates are listed for carlow university 1,"SELECT COUNT(founded) FROM table_10581768_2 WHERE institution = ""Carlow University 1""" Give the station pressure status recorded by the weather station which contained no.12 store on 2012/5/15.,SELECT T1.stnpressure FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2012-05-15' AND T2.store_nbr = 12 What are the keywords of the episode which has title as Dangerous Curves?,SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Dangerous Curves'; What is the name of the track that hosted the Swedish Grand Prix in 1979?,"SELECT track FROM table_name_79 WHERE year = ""1979""" Tell me the result for warsaw 1929,"SELECT result FROM table_name_8 WHERE location = ""warsaw"" AND year = 1929" Which Articulatory class has and Aspirated stop of ㅍ?,"SELECT articulatory_class FROM table_name_34 WHERE aspirated_stop = ""ㅍ""" What position did the player from Rice College play who was picked under 15?,"SELECT position FROM table_name_24 WHERE pick < 15 AND college = ""rice""" What is the county where kerry# is 59740?,SELECT county FROM table_1302886_1 WHERE kerry_number = 59740 How many professors are there?,"SELECT COUNT ( * ) FROM Faculty WHERE Rank = ""Professor""" What is the total when silver is less than 1 and rank larger than 3?,SELECT COUNT(total) FROM table_name_82 WHERE silver < 1 AND rank > 3 Which team plays at the Arden Street Oval?,"SELECT away_team FROM table_name_97 WHERE venue = ""arden street oval""" What are the names of parties with at least 2 events?,SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count(*) >= 2 Show the document name and the document date for all documents on project with details 'Graph Database project'.,"SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'" What is the average HS score of all players?,SELECT avg ( HS ) FROM Player What is the average replacement cost for the movies with a rental rate of 4.99?,SELECT AVG(replacement_cost) FROM film WHERE rental_rate = 4.99 What is the title of the course with Differential Geometry as a prerequisite?,SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') "What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?","SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'" What is the least attendance that has 3-5 as a record?,"SELECT MIN(attendance) FROM table_name_25 WHERE record = ""3-5""" Find the name and account balance of the customers who have loans with a total amount of more than 5000.,"SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount) > 5000" Which category was the berlin file up to win in 2013?,"SELECT category FROM table_name_9 WHERE year = 2013 AND nominated_work = ""the berlin file""" "What is the average black value (Hispanic/Non-Hispanic) having a white (Hispanic/Non-Hispanic) under 61.9, Multiracial (Hispanic/Non-Hispanic) under 12.5 and Hispanic under 99.4?",SELECT AVG(black__both_hispanic_and_non_hispanic_) FROM table_name_99 WHERE white__both_hispanic_and_non_hispanic_ < 61.9 AND multiracial__both_hispanic_and_non_hispanic_ < 12.5 AND hispanic__of_any_race_ < 99.4 "Show the id, the date of account opened, the account name, and other account detail for all accounts.","SELECT account_id , date_account_opened , account_name , other_account_details FROM Accounts" Which handicap has the horse knowhere?,"SELECT handicap__st_lb_ FROM table_19624708_1 WHERE horse = ""Knowhere""" Calculate the difference in the average retail price of parts shipped via ship and air.,"SELECT (CAST(SUM(IIF(T3.l_shipmode = 'SHIP', T1.p_retailprice, 0)) AS REAL) / SUM(IIF(T3.l_shipmode = 'SHIP', 1, 0))) - (CAST(SUM(IIF(T3.l_shipmode = 'AIR', T1.p_retailprice, 0)) AS REAL) / SUM(IIF(T3.l_shipmode = 'AIR', 1, 0))) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN lineitem AS T3 ON T2.ps_suppkey = T3.l_suppkey" Please list the titles of the paper whose authors include Klaus Zimmermann.,SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Klaus Zimmermann' Find the top 3 artists who have the largest number of songs works whose language is Bangla.,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""bangla"" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3" In what region is the city of Austin?,"SELECT region FROM table_name_36 WHERE city = ""austin""" List the project details of the project both producing patent and paper as outcomes.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent' FIND THE SAVING BALANCE OF ALL ACCOUNTS,SELECT balance FROM savings What is the document name and template id for document with description with the letter 'w' in it?,"SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE ""%w%""" Show the average transaction amount for different transaction types.,"SELECT transaction_type_code , avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code" what is the name of the settlement claim with the largest claim amount? | What do you mean by the name of the settlement claim? | i mean the claim id,SELECT claim_id FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1 Who is the player from Australia with a to par of +5?,"SELECT player FROM table_name_7 WHERE to_par = ""+5"" AND country = ""australia""" What is the Frequency for Model Number c7 1.0?,"SELECT frequency FROM table_name_54 WHERE model_number = ""c7 1.0""" What is the lowest number of games played where they tied more than 7 of them?,SELECT MIN(played) FROM table_name_92 WHERE draw > 7 What is the value of D 45 O when the value of D 44 O is ← majority?,"SELECT d_45_o FROM table_name_67 WHERE d_44_o = ""← majority""" "What are the email addresses of teachers whose address has zip code ""918""?","SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = ""918""" find the pixel aspect ratio and nation of the tv channels that do not use English.,"SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'" "Among the crimes in the Central, calculate the percentage of larceny incidents.",SELECT CAST(COUNT(CASE WHEN T3.title = 'Larceny' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T1.side = 'Central' List the longest duration of absense for a student enlisted in the fire department.,SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'fire_department' ORDER BY T1.month DESC LIMIT 1 How many papers were written by authors who cooperated with University of Hong Kong?,SELECT COUNT(T2.PaperId) FROM Author AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.AuthorId WHERE T1.Affiliation = 'University of Hong Kong' "What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?","SELECT COUNT(grid) FROM table_name_51 WHERE time = ""+43.191"" AND laps < 22" What about the lowest average?,"SELECT T2.lot_id , avg ( amount_of_transaction ) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id ORDER BY avg ( amount_of_transaction ) limit 1" "What are the codes, names, and descriptions of the different document types?","SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types" What years did Alvin Mitchell play?,"SELECT years FROM table_name_44 WHERE player = ""alvin mitchell""" Which Brilliance Grade has a Crown angle of 41.1°?,"SELECT brilliance_grade FROM table_name_6 WHERE crown_angle = ""41.1°""" can you show me the document name?,select document_name from documents Between which years were there 241 fokker 70 model cabins built?,"SELECT period FROM table_name_43 WHERE built < 241 AND model = ""fokker 70""" Which player had an opponent of Blackburn Rovers?,"SELECT player FROM table_24765815_1 WHERE opponent = ""Blackburn Rovers""" Name the result for uncaf nations cup 2009 and 6 goal,"SELECT result FROM table_name_3 WHERE competition = ""uncaf nations cup 2009"" AND goal = 6" Tell me the power for 1935-45,"SELECT power FROM table_name_91 WHERE year = ""1935-45""" Tell me the driver for ford cosworth dfv 3.0 v8 and chassis of ts19 ts20,"SELECT driver FROM table_name_22 WHERE engine = ""ford cosworth dfv 3.0 v8"" AND chassis = ""ts19 ts20""" List down the game platform IDs of games with a region ID of 1.,SELECT T.game_platform_id FROM region_sales AS T WHERE T.region_id = 1 "What is Country, when Year(s) Won is ""1962""?","SELECT country FROM table_name_78 WHERE year_s__won = ""1962""" Result F–A of 2–0 had what total number of attendance?,"SELECT COUNT(attendance) FROM table_name_42 WHERE result_f_a = ""2–0""" What year is that for?,"SELECT t1.Year FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Jose State University""" Find the number of students in total.,SELECT COUNT(*) FROM list What is the pick number of the player whose college is Florida State?,"SELECT pick__number FROM table_14650162_1 WHERE college = ""Florida State""" What is the Home team with an Away team that is wrexham?,"SELECT home_team FROM table_name_90 WHERE away_team = ""wrexham""" How many points did the player who was right guard score?,"SELECT COUNT(points) FROM table_14342592_7 WHERE position = ""Right guard""" List the name of the company that produced more than one phone model.,SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*) > 1; Which date featured the Boston Patriots as the opponent?,"SELECT date FROM table_name_96 WHERE opponent = ""boston patriots""" Find the name and email of the user followed by the least number of people.,"SELECT name , email FROM user_profiles ORDER BY followers LIMIT 1" What is the number of races associated with 7 podiums and a position of 4th?,"SELECT races FROM table_name_93 WHERE position = ""4th"" AND podiums = ""7""" Count the number of users that are logged in.,SELECT count(*) FROM users WHERE user_login = 1 What is the name of the yacht where 12 is the overall place?,"SELECT yacht_name FROM table_name_28 WHERE overall_place = ""12""" "How many students are majoring in ""600""?",select count ( stuid ) from student where major = 600 How many female students are there in University of Pennsylvania in 2011?,SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'University of Pennsylvania' "What score occurred when the save was ||27,108||63–44?","SELECT score FROM table_name_93 WHERE save = ""||27,108||63–44""" What club/province for the player with over 18 caps and plays the fly-half?,"SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = ""fly-half""" What is the name of the winner when the Score was 274 (–14) in tennessee?,"SELECT winner FROM table_name_40 WHERE score = ""274 (–14)"" AND location = ""tennessee""" Can you organize the list by salary in descending order?,SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC "What is the total attendance with a 1-0 result, at Venue H, and Round SF?","SELECT SUM(attendance) FROM table_name_35 WHERE result = ""1-0"" AND venue = ""h"" AND round = ""sf""" "What Catalogue is Dated 14 november 2003, with the Format compact disc?","SELECT catalogue FROM table_name_47 WHERE date = ""14 november 2003"" AND format = ""compact disc""" What is the home location for team flora tallinn?,"SELECT ground FROM table_27409644_1 WHERE club = ""Flora Tallinn""" Provide the number of events that happened on 2016/5/6.,"SELECT COUNT(event_id) FROM events WHERE SUBSTR(`timestamp`, 1, 10) = '2016-05-06'" How many apartments have no facilities?,SELECT count ( * ) FROM Apartments WHERE apt_id NOT IN ( SELECT apt_id FROM Apartment_Facilities ) Percentage of games lost out of total games played by the Houston Mavericks,SELECT CAST(SUM(lost) AS REAL) * 100 / SUM(games) FROM teams WHERE name = 'Houston Mavericks' What air date had 1.01 million U.S. viewers?,"SELECT original_air_date FROM table_28334498_3 WHERE us_viewers__millions_ = ""1.01""" "Hmm, can you list the album names and the artist ids?","select title,artist_id from albums" Name the number of districts for december 1799,"SELECT COUNT(district) FROM table_15572443_1 WHERE election_date = ""December 1799""" "Find the number of clubs where ""Tracy Kim"" is a member.","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Tracy"" AND t3.lname = ""Kim""" what is the destination for Ananthapuri Express?,SELECT destination FROM train WHERE name = 'Ananthapuri Express' Name the coin and date of transactions with the greatest decline in percent change in 1 hour.,"SELECT T1.name, T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.percent_change_1h = ( SELECT MIN(percent_change_1h) FROM historical )" How many tournament titles for texas with over 0 total?,"SELECT COUNT(tournament) FROM table_name_89 WHERE total > 0 AND team = ""texas""" What are the codes of the locations with at least three documents?,SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3 List the type of the services in alphabetical order.,SELECT service_type_code FROM services ORDER BY service_type_code Where was the game when Melbourne was the away team?,"SELECT venue FROM table_name_53 WHERE away_team = ""melbourne""" Which school did the player that played 2004-05 attend?,"SELECT school_club_team FROM table_10015132_21 WHERE years_in_toronto = ""2004-05""" What is the religion with the most occurrrence of the current legislators?,SELECT religion_bio FROM current GROUP BY religion_bio ORDER BY COUNT(religion_bio) DESC LIMIT 1 When 5.5 is the l-band what is the v-band?,"SELECT v_band FROM table_186468_1 WHERE k_band = ""5.5""" What is the average round for martin havlat?,"SELECT AVG(round) FROM table_name_38 WHERE player = ""martin havlat""" "What was the Ravens' record on December 5, 1999?","SELECT record FROM table_name_33 WHERE date = ""december 5, 1999""" The nation of denmark has what average total nad more than 0 gold?,"SELECT AVG(total) FROM table_name_70 WHERE nation = ""denmark"" AND gold > 0" What city in Georgia has the most staff living in it?,"SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.state_province_county = ""Georgia"" GROUP BY T1.city ORDER BY count ( * ) DESC LIMIT 1" What is the title and id of the film that has the greatest number of copies in inventory?,"SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1" What is the Rich Savage percentage in the poll with Jody Wagner at 30%?,"SELECT rich_savage FROM table_name_90 WHERE jody_wagner = ""30%""" What are the ids of all trips that had a duration as long as the average trip duration in the zip code 94103?,SELECT id FROM trip WHERE duration >= (SELECT avg(duration) FROM trip WHERE zip_code = 94103) "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are female?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.SEX = 'Female' AND T2.RESPONSE = 'true' What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs?,"SELECT open_cup FROM table_name_98 WHERE playoffs = ""2nd round""" What is the Top that has a 66-71-66=203 score and a place of t1?,"SELECT to_par FROM table_name_23 WHERE place = ""t1"" AND score = 66 - 71 - 66 = 203" What are the record companies of orchestras in descending order of years in which they were founded?,SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC Who was the first team when the second team was Kalise Gran Canaria?,"SELECT team__number1 FROM table_name_71 WHERE team__number2 = ""kalise gran canaria""" How many Yelp_Business close after 8PM on Mondays?,SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T2.day_of_week LIKE 'Monday' AND T1.closing_time > '8PM' Which Decision has a Record of 29–18–6?,"SELECT decision FROM table_name_53 WHERE record = ""29–18–6""" "Who was the artist for the origin Shake it, Europe?","SELECT artist FROM table_19523708_1 WHERE original = ""Shake It, Europe""" How many book clubs are there?,SELECT COUNT(*) FROM book_club "How many laps were completed with a start of 33, and a finish of 18?","SELECT MAX(laps) FROM table_name_67 WHERE start = ""33"" AND finish = ""18""" What wins has WPct of 0.2?,"SELECT wins FROM table_name_82 WHERE wpct = ""0.2""" "List down the actors' full names who performed in ""CHOCOLATE DUCK"" film.","SELECT T3.first_name, T3.last_name FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T2.title = 'CHOCOLATE DUCK'" In which country does Johns Hopkins University located?,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'Johns Hopkins University' What are the miles per gallon of the most expensive car?,SELECT T1.mpg FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1 Which department has the most professors with a Ph.D.?,"SELECT T2.dept_name , T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1" What is the journal id of Anna Powierza?,"SELECT T3.Journal_ID FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T2.Name = ""Anna Powierza""" How many middlesex principals were there in 2000-2001?,"SELECT COUNT(middlesex_principal) FROM table_25037577_1 WHERE year = ""2000-2001""" Show all artist names who didn't have an exhibition in 2004.,SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004 Which pick's round was 5 when Kellen Davis was a player?,"SELECT pick FROM table_name_40 WHERE round = ""5"" AND player = ""kellen davis""" Find the name of services that have been used for more than 2 times in first notification of loss.,SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2 "What is the campus fee of ""San Francisco State University"" in year 2000?","SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Francisco State University"" AND t1.year = 2000" What school did the player drafted for the New York Mets attend?,"SELECT school FROM table_name_4 WHERE team = ""new york mets""" Can you list the names of all managers with the highest level?,SELECT Name FROM manager where level = ( select max ( level ) from manager ) What is the fewest bronzes for ranks of 3 with totals under 2?,"SELECT MIN(bronze) FROM table_name_58 WHERE rank = ""3"" AND total < 2" Which school has the fewest professors?,SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1 How many employee's work for employee's 163 department?,SELECT count ( * ) from employees where department_id = ( select department_id from employees where employee_id = 163 ) Which Home Team has a Game of game 1?,"SELECT home_team FROM table_name_24 WHERE game = ""game 1""" How many different series and contents are listed in the TV Channel table?,"SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;" How many total medals for the nation with 1 gold and 6 bronzes?,SELECT COUNT(total) FROM table_name_52 WHERE gold = 1 AND bronze = 6 Which customer have the most policies? Give me the customer details.,SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1 how many Document Sections on the table?,SELECT count ( * ) FROM Document_Sections "Which nation does the supplier with the account balance of ""4393.04"" belong to?",SELECT T2.n_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal = 4393.04 What is Eric Johnson at in the poll where Karen Handel is at 12%?,"SELECT eric_johnson FROM table_name_38 WHERE karen_handel = ""12%""" "Give me the full name of the first customer, and tell me how long ago he or she wrote his or her first review since making his or her first purchase.","SELECT T1.First, T1.Last , strftime('%J', ReviewDate) - strftime('%J', FirstPurchaseDate) AS TIMEAGO FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID LIMIT 1" what is the highest campus fees,select CampusFee from csu_fees order by CampusFee desc limit 1 What are the ids of all students who played video games and sports?,SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games What was the region for the 38xa-5 catalog?,"SELECT region FROM table_name_6 WHERE catalog = ""38xa-5""" On what flight day was U2 played?,"SELECT flight_day FROM table_name_2 WHERE artist = ""u2""" When did the first staff member start working?,SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1 List all location codes and location names.,"SELECT location_code , location_name FROM Ref_locations" "In geographic identifier from 20 to 50, how many of them has a number of inhabitants below 20?",SELECT COUNT(GEOID) FROM Demog WHERE INHABITANTS_K < 20 AND GEOID >= 20 AND GEOID <= 50 Show all city with a branch opened in 2001 and a branch with more than 100 membership.,SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100 Which nation completed its external debt reporting in 1980 and had a Land under cereal production value of 3018500?,SELECT T2.CountryCode FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName LIKE 'Land under cereal production%' AND T1.Value = 3018500 AND T1.Year = 1980 AND T2.ExternalDebtReportingStatus = 'Actual' What is the total number of clubs when the runner-up was Liaoning Fushun?,"SELECT COUNT(number_of_clubs) FROM table_17632217_2 WHERE runners_up = ""Liaoning Fushun""" Which Attendance has a Tie # of 32?,"SELECT attendance FROM table_name_13 WHERE tie_no = ""32""" Give the number of students living in either HKG or CHI.,"SELECT count(*) FROM Student WHERE city_code = ""HKG"" OR city_code = ""CHI""" What is the time/retired when the grid is 19?,"SELECT time_retired FROM table_name_42 WHERE grid = ""19""" What character is played by dani harmer for under 23 episodes?,"SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = ""dani harmer""" How many police officers are in that county?,SELECT Police_officers FROM county_public_safety ORDER BY Police_officers LIMIT 1 How many distinct payment methods are used by parties?,SELECT count(DISTINCT payment_method_code) FROM parties "What is the GDP (PPP) (USD, per capita) for Algeria? ","SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = ""Algeria""" What are first and last names of players participating in all star game in 1998?,"SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998" What is the highest rank for Josefin Lillhage?,"SELECT MAX(rank) FROM table_name_54 WHERE name = ""josefin lillhage""" What is the minimum number of poles?,SELECT MIN(poles) FROM table_3005915_3 "What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?","SELECT SUM(murder_and_non_negligent_manslaughter) FROM table_name_86 WHERE larceny_theft = ""3,693.9"" AND burglary > 1 OFFSET 027.0" List the genres of the movies which actor id 851 is the star.,SELECT T2.genre FROM movies2actors AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T1.actorid = T3.actorid WHERE T3.actorid = 851 what's the grsecurity with dbeingtribution being debian / ubuntu,"SELECT grsecurity FROM table_1357052_6 WHERE distribution = ""Debian / Ubuntu""" "Can you also tell me how many documents are there for that location? | Do you mean the number of documents in the location with code x? | Yes, please.",SELECT count ( * ) from document_locations where Location_Code = 'x' What are the id and first name of the student whose addresses have the highest average monthly rental?,"SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG ( monthly_rental ) DESC LIMIT 1" How many perpetrators are there?,SELECT count ( * ) FROM perpetrator Which part and supplier have the most profit?,"SELECT T3.p_name, T4.s_name FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey INNER JOIN supplier AS T4 ON T1.ps_suppkey = T4.s_suppkey ORDER BY T2.l_extendedprice * (1 - T2.l_discount) - T1.ps_supplycost * T2.l_quantity DESC LIMIT 1" "What is Date, when Tie no is ""37""?","SELECT date FROM table_name_97 WHERE tie_no = ""37""" "Among the stores in weather station 14 in February 2014, which store had sold no less than 300 quantities for item number 44 in a single day?",SELECT T1.store_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T2.station_nbr = 14 AND T1.`date` LIKE '%2014-02%' AND T1.item_nbr = 44 AND units >= 300 How many distinct artists do the volumes associate to?,SELECT COUNT(DISTINCT Artist_ID) FROM volume How many games were released on PS4 in 2014?,SELECT COUNT(DISTINCT 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 T1.platform_name = 'PS4' AND T2.release_year = 2014 In which direction does the train with an ellipse-shape car run?,SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.shape = 'ellipse' What is the PSIP Short name for the Channel that is less than 51.6?,SELECT psip_short_name FROM table_name_70 WHERE channel < 51.6 Name the fewest touchdowns,SELECT MIN(touchdowns) FROM table_14342480_6 what is the class when the power is 22500 watts?,"SELECT class FROM table_name_17 WHERE power = ""22500 watts""" How many users of the app were not active when event no.2 happened?,SELECT COUNT(event_id) FROM app_events WHERE event_id = 2 AND is_active = 0 "Find the number of papers published by authors from the institution ""Tokohu University"".","SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Tokohu University""" How many episodes in history have a running time of 24:06?,"SELECT COUNT(archive) FROM table_1498589_1 WHERE run_time = ""24:06""" What were the high rebounds on April 4?,"SELECT high_rebounds FROM table_22879323_10 WHERE date = ""April 4""" Which Wrestler plays for Team Batista which was Elimated by Orton on Elimination 8?,"SELECT wrestler FROM table_name_3 WHERE team = ""team batista"" AND eliminated_by = ""orton"" AND elimination = ""8""" What is the minimum sales?,"SELECT min ( sales_billion ) FROM Companies WHERE Industry ! = ""Banking""" How about their directors?,"SELECT T2.title , T2.year, T2.DIRECTOR FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" What are all the AAAA classes in the schools years 2004-05?,"SELECT class_aAAA FROM table_14603212_5 WHERE school_year = ""2004-05""" "Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?","SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = ""hong kong""" "Which Couple has a Result of third place, and a Style of cha-cha-cha?","SELECT couple FROM table_name_82 WHERE result = ""third place"" AND style = ""cha-cha-cha""" "How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?","SELECT COUNT(gold) FROM table_name_32 WHERE silver > 1 AND nation = ""vietnam"" AND bronze < 3" What are the ID and description of the condiments category?,"SELECT CategoryID, Description FROM Categories WHERE CategoryName = 'Condiments'" How many different second members were there when John rudhale was first member?,"SELECT COUNT(second_member) FROM table_15451122_2 WHERE first_member = ""John Rudhale""" Find all students taught by MARROTTE KIRK. Output first and last names of students.,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""MARROTTE"" AND T2.lastname = ""KIRK""" what is the minimum voted yes where percent no is 68.2,"SELECT MIN(voted_yes) FROM table_120778_2 WHERE percent_no = ""68.2""" List out all the gold medalist winners in cycling sport.,SELECT DISTINCT T5.full_name FROM event AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.event_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN sport AS T4 ON T1.sport_id = T4.id INNER JOIN person AS T5 ON T3.person_id = T5.id WHERE T4.sport_name = 'Cycling' AND T2.medal_id = 1 What is the model for the car with a weight smaller than the average?,SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA) What was the game number when record is 59-15?,"SELECT MIN(game) FROM table_name_71 WHERE record = ""59-15""" Please list the names of the films released in 2003 among the films scored by user 2941 .,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 2003 AND T1.user_id = 2941 Show the most common country across members.,SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 "Awesome, then could you please let me know the installation date of the station?",select installation_date from station order by lat desc limit 1 How many legs were lost for Trina Gulliver with more than 3 played?,"SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = ""trina gulliver"" AND played > 3" Name the episode for run time of 22:50,"SELECT episode FROM table_2114308_1 WHERE run_time = ""22:50""" "Which Surface has a Round of 4th round, and a Player of maria sharapova?","SELECT surface FROM table_name_57 WHERE round = ""4th round"" AND player = ""maria sharapova""" What is the assumed name of the business that has the highest total fine in 2014?,"SELECT T.dba_name FROM ( SELECT T1.dba_name, SUM(T3.fine) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE strftime('%Y', T2.inspection_date) = '2014' GROUP BY T1.dba_name ORDER BY SUM(T3.fine) DESC LIMIT 1 ) AS T" How many Against has Byes smaller than 2?,SELECT AVG(against) FROM table_name_15 WHERE byes < 2 How many sales people managed to sell Headlights - Weatherproof?,SELECT COUNT(T2.SalesPersonID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Headlights - Weatherproof' How many people are named Janessa? | Do you mean the number of people whose first name is Janessa? | Yes,"SELECT count ( * ) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa""" What is the result of the game at Bishop Kearney Field on August 2?,"SELECT result FROM table_name_98 WHERE field = ""bishop kearney field"" AND date = ""august 2""" Which country produced the most number of hockey players? Identify which year was most of the hockey players are born.,"SELECT DISTINCT birthCountry, birthYear FROM Master GROUP BY birthCountry, birthYear ORDER BY COUNT(birthCountry) DESC LIMIT 1" Can you list all the institution types with the number of institutions of each type?,"SELECT TYPE , count ( * ) FROM institution GROUP BY TYPE" "For each account type, find the average account balance of customers with credit score lower than 50.","SELECT AVG(acc_bal), acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type" Which publisher has published the most games in the 'Puzzle' genre?,"SELECT T.publisher_name FROM ( SELECT T1.publisher_name, COUNT(T3.id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' GROUP BY T1.publisher_name ORDER BY COUNT(T3.id) DESC LIMIT 1 ) t" "What is the 2012 value with 1r in 2011, 2007 of A, 2010 of 1r, and 2009 of A?","SELECT 2012 FROM table_name_16 WHERE 2011 = ""1r"" AND 2007 = ""a"" AND 2010 = ""1r"" AND 2009 = ""a""" Name the Daytime which has Saturday of yes and a Name of exmouth?,"SELECT daytime FROM table_name_5 WHERE saturday = ""yes"" AND name = ""exmouth""" What is the total Top-25 when the events were less than 0?,SELECT SUM(top_25) FROM table_name_23 WHERE events < 0 Show the locations of schools that have more than 1 player.,SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1; What is the id and name of the browser that is compatible with the most web accelerators?,"SELECT T1.id , T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" What's the smallest draw that has a place bigger more than 1 and Anastasia Prikhodko as the artist?,"SELECT MIN(draw) FROM table_name_74 WHERE artist = ""anastasia prikhodko"" AND place > 1" What is the highest loss with a long more than 61?,SELECT MAX(loss) FROM table_name_1 WHERE long > 61 How many female Twitter users are there from Wisconsin?,SELECT COUNT(T1.Likes) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T3.UserID = T1.UserID WHERE T2.State = 'Wisconsin' AND T3.Gender = 'Female' Show the minister who took office after 1961 or before 1959.,SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959 What format has the call sign DZFE?,"SELECT format FROM table_name_42 WHERE call_sign = ""dzfe""" Who was the team that lost but had 10 points?,"SELECT lost FROM table_name_48 WHERE points = ""10""" who put on the show where the numbers were 227412,SELECT directed_by FROM table_27716091_1 WHERE production_code = 227412 Find the name all districts with city area greater than 10 or population larger than 100000,SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000 How many different software platforms are there for devices?,SELECT count(DISTINCT Software_Platform) FROM device How much did they lose by on April 26?,"SELECT loss FROM table_name_67 WHERE date = ""april 26""" What is the value for parentheses with a dots value of 0.\dot{6}?,"SELECT parentheses FROM table_name_91 WHERE dots = ""0.\dot{6}""" Please list the villains of all the movies directed by Wolfgang Reitherman.,SELECT T2.villian FROM director AS T1 INNER JOIN characters AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Wolfgang Reitherman' AND T2.villian IS NOT NULL A plural abbreviation of pp. is used for what singular word?,"SELECT singular_word FROM table_name_82 WHERE plural_abbreviation = ""pp.""" What is Katsuhiro Ueno's author ID?,select authID from Authors where fname = 'Katsuhiro' and lname = 'Ueno' what was his opposition rate,"SELECT t2.oppose_rate FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.name = ""Vincent Montméat""" What is the average number of international passengers for an airport?,SELECT avg(International_Passengers) FROM airport Which company started the earliest the maintenance contract? Show the company name.,SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1 What number has 2002-2003 as the season?,"SELECT number FROM table_name_32 WHERE season = ""2002-2003""" What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?,"SELECT round_of_64 FROM table_17289604_38 WHERE event = ""Singles"" AND round_of_16 = ""Did not advance"" AND athlete = ""Iveta Benešová""" What is the hometown for tre madden?,"SELECT hometown FROM table_name_68 WHERE player = ""tre madden""" Find the name and hours of the students whose tryout decision is yes.,"SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" "Give me a list of id and status of orders which belong to the customer named ""Jeramie"".","SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" What are the first names and last names of those students?,"SELECT distinct T1.Fname, T1.Lname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T2.Election_Cycle = ""Spring""" "List the ball IDs, scores, and innings numbers in the over ID 20 of match ID ""335988"".","SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20" What was the maximum weight of the shipment carried to Boston? Name the customer of that shipment.,"SELECT T1.weight, T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T1.city_id WHERE T3.city_name = 'Boston' ORDER BY T1.weight DESC LIMIT 1" What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?,"SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" OR T2.Tourist_Details = ""Vivian""" Name the original airdate for robin mukherjee and margy kinmonth,"SELECT original_airdate FROM table_27208814_1 WHERE writer = ""Robin Mukherjee"" AND director = ""Margy Kinmonth""" Kindly list the card numbers of all the members.,SELECT Card_Number FROM member What about the top 3 artists with the largest number of songs whose language is Bangla?,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""bangla"" GROUP BY T2.artist_name ORDER BY count ( * ) DESC LIMIT 3" What is the place of the player from New Zealand?,"SELECT place FROM table_name_82 WHERE country = ""new zealand""" What is the origin of Ananthapuri express ?,"SELECT origin FROM train WHERE name = ""Ananthapuri Express""" what is the score when the time is 2:22?,"SELECT score FROM table_name_47 WHERE time = ""2:22""" Find the number of male (sex is 'M') students who have some food type allery.,"SELECT count(*) FROM Student WHERE sex = ""M"" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" "Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?","SELECT AVG(week) FROM table_name_65 WHERE opponent = ""baltimore colts"" AND attendance < 55 OFFSET 137" Which part has the least chargeable amount? List the part id and amount.,"SELECT part_id , chargeable_amount FROM Parts ORDER BY chargeable_amount ASC LIMIT 1" "Show all paragraph texts for the document ""Customer reviews"".","SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = ""Customer reviews""" "How many bookings did each customer make? List the customer id, first name, and the count.","SELECT T1.customer_id , T1.first_name , count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" What is the Grid of Régis Laconi's bike that is a Kawasaki zx-10r?,"SELECT grid FROM table_name_50 WHERE bike = ""kawasaki zx-10r"" AND rider = ""régis laconi""" What is the iata of Madang airport?,"SELECT iata FROM airports WHERE name = ""Madang Airport""" "Among the comedy works of Shakespeare, what is the percentage of his works with a character named ""antonio""?","SELECT CAST(SUM(IIF(T4.CharName = 'antonio', 1, 0)) AS REAL) * 100 / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.GenreType = 'Comedy'" What Average Pick # has an Overall of 296?,SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296 Find the ids and names of stations from which at least 200 trips started.,"SELECT start_station_id, start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200" What location did game 64 take place,SELECT location FROM table_name_34 WHERE game = 64 "What are the chip model and screen mode of the phone with hardware model name ""LG-P760""?","SELECT chip_model , screen_mode FROM phone WHERE Hardware_Model_name = ""LG-P760"";" When autodromo nazionale monza is the circuit what is the report?,"SELECT report FROM table_21191496_1 WHERE circuit = ""Autodromo Nazionale Monza""" What is the comment of the order with the highest total price?,SELECT o_comment FROM orders WHERE o_totalprice = ( SELECT MAX(o_totalprice) FROM orders ) What country does charles coody play for?,"SELECT country FROM table_name_21 WHERE player = ""charles coody""" Who was the Law and Order series writer who also won the Television Silver Gavel Award at the American Bar Association Silver Gavel Awards for Media and the Arts for two consecutive years?,"SELECT t3.name FROM ( SELECT DISTINCT T2.year AS years, T1.name, row_number() OVER (PARTITION BY T1.name ORDER BY T2.year) AS rm FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award = 'Television' AND T2.award_category = 'Silver Gavel Award' AND T2.series = 'Law and Order' AND T2.result = 'Winner' AND T2.organization = 'American Bar Association Silver Gavel Awards for Media and the Arts' ) AS T3 GROUP BY t3.name HAVING COUNT(t3.years - t3.rm) >= 2" Name the name for organization date being unknown,"SELECT name FROM table_25794010_1 WHERE organization_date = ""Unknown""" "Among all the users that have posted a tweet with over 1000 likes, how many of them are male?",SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Likes > 10 AND T2.Gender = 'Male' What is the result after 1993 of the first four rounds?,"SELECT result FROM table_name_2 WHERE year > 1993 AND round = ""first four""" This is great! Can you update this list to also show the corresponding cmi cross reference ids for each line of this list?,"SELECT T1.master_customer_id, t1.cmi_details, T2.cmi_cross_ref_id from customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id" "Show the name, street address, and number of floors for all buildings ordered by the number of floors.","SELECT name , street_address , floors FROM building ORDER BY floors" Which projects created by teachers with Doctor Degree where the project have more than 300 students involved. List down the title of the project.,SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.teacher_prefix LIKE 'Dr.' AND T2.students_reached > 300 List names for drivers from Hartford city and younger than 40.,SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40 What about in New York City?,SELECT count ( DISTINCT name ) FROM PersonFriend WHERE friend NOT IN ( SELECT name FROM person WHERE city = 'new york city' ) "Thank you, what is the shipment date of order id 5?",SELECT shipment_date FROM Shipments WHERE order_id = 5 What is the league apps for season 1923-24?,"SELECT league_apps FROM table_10556257_1 WHERE season = ""1923-24""" Names of students in each major? | LName or FName? | LName.,"SELECT Major, LName FROM STUDENT" what are all games are presented on the table | What kind of infromation for the games do you want ? | i want to how many teams on the game,select count ( distinct home_team ) from game "Which Music has a Points Jury of 18 (5,5,4,4)?","SELECT music FROM table_name_32 WHERE points_jury = ""18 (5,5,4,4)""" What is the semester which most student registered in? Show both the name and the id.,"SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1" "WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?","SELECT date FROM table_name_57 WHERE game < 58 AND team = ""boston""" "What is the credited cast for the episode ""In the Name of the Grandfather""?",SELECT DISTINCT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'In the Name of the Grandfather' AND T2.category = 'Cast' AND T2.credited = 'true'; Please list the opening time on Mondays of all the Yelp_Businesses in Anthem that are still running.,SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Monday' AND T3.city LIKE 'Anthem' AND T3.active LIKE 'True' GROUP BY T1.opening_time "What is the title of the film with production number 1553, directed by Friz Freleng?","SELECT title FROM table_name_10 WHERE director = ""friz freleng"" AND production_number = 1553" "Among the releases that were released in 2000, how many of them were released as an album and tagged ""pop""?",SELECT COUNT(T1.groupName) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'pop' AND T1.releaseType = 'album' AND T1.groupYear = 2000 What was the score with a goal of 16?,SELECT score FROM table_name_93 WHERE goal = 16 Show the flight number of flights with three lowest distances.,SELECT flno FROM Flight ORDER BY distance LIMIT 3 What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?,"SELECT _percentage_of_all_immigrants_2004 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = ""2.1%""" Which language is used by the optimum TV service that shows cricket and is based in the United States?,"SELECT language FROM table_name_43 WHERE service = ""optimum tv"" AND origin_of_programming = ""united states"" AND genre = ""cricket""" "Provide the complete name of the venue, city and country where the last match was held.","SELECT T1.Venue_Name, T2.City_Name, T3.Country_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id INNER JOIN Country AS T3 ON T2.Country_Id = T3.Country_Id INNER JOIN Match AS T4 ON T1.Venue_Id = T4.Venue_Id ORDER BY T4.Match_Date DESC LIMIT 1" "Name the sales person who helped Elizabeth A. White to purchase Road-250 Black, 48.","SELECT DISTINCT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID INNER JOIN Customers AS T4 ON T2.CustomerID = T4.CustomerID WHERE T4.MiddleInitial = 'A' AND T4.LastName = 'White' AND T1.Name = 'Road-250 Black, 48' AND T4.FirstName = 'Elizabeth'" Name the most touchdowns for norcross,"SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = ""Norcross""" Thank you so much! Can you please provide me with Atsushi Ohori's author ID?,"SELECT authID FROM authors where lname = ""Ohori"" and fname = 'Atsushi'" "How many Placings have Points smaller than 330.84, and a Name of silvo svajger?","SELECT COUNT(placings) FROM table_name_1 WHERE points < 330.84 AND name = ""silvo svajger""" How many students are enlisted in the army?,SELECT COUNT(name) FROM enlist WHERE organ = 'army' In what episode was segment D ned Can Corn? ,"SELECT MAX(episode) FROM table_15187735_1 WHERE segment_d = ""ned Can Corn""" "Sherri Rhodes rented a film at 12:27:27 on 2005/7/28, when did she/he return that film?",SELECT T2.return_date FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'SHERRI' AND T1.last_name = 'RHODES' AND T2.rental_date = '2005-07-28 12:27:27' "What day was the surface clay and the score 6–1, 6–4?","SELECT date FROM table_name_23 WHERE surface = ""clay"" AND score = ""6–1, 6–4""" What position did Lee Gilmour play while having more than 4 Tries and 20 points?,"SELECT position FROM table_name_58 WHERE tries > 4 AND points = 20 AND player = ""lee gilmour""" What venue did Richmond play at as the home team?,"SELECT venue FROM table_name_56 WHERE home_team = ""richmond""" How many attended the game against the sharks with over 86 points?,"SELECT AVG(attendance) FROM table_name_99 WHERE points > 86 AND opponent = ""sharks""" What was the original name for the song performed by Brad Kavanagh?,"SELECT original_name FROM table_name_42 WHERE singer_s_ = ""brad kavanagh""" What are the positions with both players having more than 20 points and less than 10 points.,SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 What restaurant on Drive Street in San Rafael doesn't serve American food?,SELECT T1.label FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'drive' AND T1.food_type != 'american' AND T2.city = 'san rafael' Give the model year of the heaviest car.,SELECT T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1 What is the title of the recipe that is most likely to gain weight?,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat DESC LIMIT 1 Who had the high points dated march 13?,"SELECT high_points FROM table_13812785_8 WHERE date = ""March 13""" What is the Genre when the Artist is Prince?,"SELECT genre FROM table_name_7 WHERE artist = ""prince""" What was the outcome from the 2009 match in the final against Chong Wei Feng?,"SELECT outcome FROM table_name_44 WHERE year = 2009 AND opponent_in_final = ""chong wei feng""" Find the name of persons who are friends with Alice for the shortest years.,SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice') "How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?",SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1 What were the total orders of Medsep Group from 2018 to 2020?,"SELECT SUM(CASE WHEN SUBSTR(T1.OrderDate, -2) IN ('18', '19', '20') AND T2.`Customer Names` = 'Medsep Group' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID" What about the ID of the department store chain that has the second largest number of department stores?,SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count ( * ) DESC LIMIT 2 except SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count ( * ) DESC LIMIT 1 Tell me the report with winner of louis wagner,"SELECT report FROM table_name_51 WHERE winning_driver = ""louis wagner""" "Show me the documents | did you mean all the info of the documents? | no, the name of the documents",SELECT document_name FROM documents List the names of all music genres.,SELECT Name FROM GENRE Name the title of the top three releases with the highest number of downloads.,SELECT groupName FROM torrents ORDER BY totalSnatched DESC LIMIT 3 Name the 2009 ffor 2010 of 1r and 2012 of a and 2008 of 2r,"SELECT 2009 FROM table_name_44 WHERE 2010 = ""1r"" AND 2012 = ""a"" AND 2008 = ""2r""" Which Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)?,"SELECT week_10_nov_2 FROM table_name_4 WHERE week_14_nov_30 = ""penn state (11-1)""" How many claim stage ids in this table?,SELECT count ( Claim_Stage_ID ) from Claims_Processing_Stages How many trips with a bike borrowed from the stations in San Francisco were made by a subscriber?,SELECT COUNT(T1.id) FROM trip AS T1 INNER JOIN station AS T2 ON T2.ID = T1.start_station_id WHERE T2.city = 'San Francisco' AND T1.subscription_type = 'Subscriber' What is the name of the 2008 club with Nadia Centoni Category:Articles with hCards?,"SELECT 2008 AS _club FROM table_name_69 WHERE name = ""nadia centoni category:articles with hcards""" "When the crowd was greater than 19,498 who was the away team?",SELECT away_team FROM table_name_5 WHERE crowd > 19 OFFSET 498 find the name and age of the pilot who has won the most number of times among the pilot who are younger than 30,"SELECT t1.name , t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot ORDER BY count ( * ) DESC LIMIT 1" What is the exact address? | Do you mean line 1 of address? | yes,"SELECT T1.line_1 FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" Find the name of amenities Smith Hall dorm have.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' Show origins of all flights with destination Honolulu.,"SELECT origin FROM Flight WHERE destination = ""Honolulu""" How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.,"SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1" What is the bore for a 9-cyl radial on a 9 AD?,"SELECT bore FROM table_name_8 WHERE cyl = ""9-cyl radial"" AND name = ""9 ad""" "What was the result when the attendance was 78,793?","SELECT result FROM table_name_53 WHERE attendance = ""78,793""" What is the average enrollment number?,SELECT avg(enr) FROM College What is the result where the original artist is Prince and the Revolution?,"SELECT result FROM table_25374338_1 WHERE original_artist = ""Prince and The Revolution""" "List all trips where bikes were returned at location 37.331415, -121.8932. State the date the bike was borrowed.","SELECT T2.end_station_name, T2.start_date FROM station AS T1 INNER JOIN trip AS T2 ON T2.end_station_name = T1.name WHERE T1.lat = 37.331415 AND T1.long = -121.8932" "Count the number of times the team ""Boston Red Stockings"" lost in 2009 postseason.",SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009; List the names and birth dates of people in ascending alphabetical order of name.,"SELECT Name , Birth_Date FROM people ORDER BY Name ASC" "What was the callback date for the auditions held on July 29, 2008?","SELECT Callback AS date FROM table_name_28 WHERE date = ""july 29, 2008""" How many stories does the building with the smallest height have?,SELECT Stories FROM buildings ORDER BY Height LIMIT 1 What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?,"SELECT memory FROM table_name_32 WHERE turbo = ""2/2/4/5"" AND release_date = ""may 2010""" "What is the latest year rafael nadal was in the French Open, Roger Federer was in Wimbledon, and Roger Federer was in the Australian Open?","SELECT MAX(year) FROM table_name_71 WHERE french_open = ""rafael nadal"" AND wimbledon = ""roger federer"" AND australian_open = ""roger federer""" State the object class of sample no.10 of image no.2320341.,SELECT T1.OBJ_CLASS FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2320341 AND T2.OBJ_SAMPLE_ID = 10 What player was chosen for the Chicago Sky?,"SELECT player FROM table_name_57 WHERE wnba_team = ""chicago sky""" "Show the season, the player, and the name of the team that players belong to.","SELECT T1.Season, T1.Player, T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id" What are the names and parties of representatives?,"SELECT Name, Party FROM representative" "What is Venue, when Against is greater than 9, and when Date is ""03/02/1996""?","SELECT venue FROM table_name_58 WHERE against > 9 AND date = ""03/02/1996""" "Which Season has an Agg of 4–1, and an Opponent of rapid wien?","SELECT season FROM table_name_18 WHERE agg = ""4–1"" AND opponent = ""rapid wien""" How many clubs remained when there were 4 winners from the previous round?,SELECT clubs_remaining FROM table_29566686_1 WHERE winners_from_previous_round = 4 Which employees do not authorize destruction for any document? Give me their employee ids.,SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed What was the score to par in 1960?,"SELECT to_par FROM table_name_74 WHERE year_s__won = ""1960""" What away team is playing at the Brunswick Street Oval Venue?,"SELECT away_team FROM table_name_22 WHERE venue = ""brunswick street oval""" "What is the name, address, and number of students in the departments that have the 3 most students?","SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3" How much is the salary of the first ever employee that was hired?,SELECT salary FROM employee ORDER BY hiredate ASC LIMIT 1 Show the name of the party that has the most delegates.,SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 Name the score for san diego,"SELECT score FROM table_23944006_4 WHERE championship = ""San Diego""" What is the minimum Wins a team has?,SELECT MIN(w) FROM table_16922657_2 "For each apartment, can you tell me the average of the bedroom count, bathroom count, and room count? | Do you mean for each apartment type, find the average of the bedroom count, bathroom count, and room count? | yes","SELECT apt_type_code, avg ( bathroom_count ) , avg ( bedroom_count ) , avg ( room_count ) FROM Apartments GROUP BY apt_type_code" Can you list the titles of the films without any market estimations?,SELECT Title FROM film WHERE Film_ID NOT IN ( SELECT Film_ID FROM film_market_estimation ) What is Jeannot Szwarc's most popular movie and what is its average rating score?,"SELECT T2.movie_title, AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Jeannot Szwarc' ORDER BY T2.movie_popularity DESC LIMIT 1" "How many cities have a population over 500,000?",SELECT count ( * ) FROM district where city_population > 500000 "What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?","SELECT date FROM table_name_40 WHERE competition = ""2006 fifa world cup qualification"" AND venue = ""alamodome, san antonio, united states""" What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)?,"SELECT week_4_sept_21 FROM table_name_30 WHERE week_10_nov_2 = ""michigan state (8-2)""" What Constellation has a 20h56m40s Right Ascension (J2000)?,"SELECT constellation FROM table_name_27 WHERE right_ascension___j2000__ = ""20h56m40s""" show all train numbers and names ordered by their time from early to late.,"SELECT train_number , name FROM train ORDER BY TIME" Which Grand Prix was won by a car constructed by Jordan - Mugen-Honda?,"SELECT grand_prix FROM table_1137694_3 WHERE winning_constructor = ""Jordan - Mugen-Honda""" Which event id does have a participant with the detail Kenyatta Kuhn?,select T1.Event_ID from Events AS T1 JOIN Participants_in_Events AS T2 JOIN Participants AS T3 where Participant_Details = 'Kenyatta Kuhn' "Find the names of customers who have used both the service ""Close a policy"" and the service ""New policy application"".","SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""Close a policy"" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""New policy application""" "For the roll of 651, what was the lowest Decile?",SELECT MIN(decile) FROM table_name_79 WHERE roll = 651 Find the number of pets for each student who has any pet and student id.,"SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid" Show all customer ids and the number of cards owned by each customer.,"SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id" What country placed t6 with player Vijay Singh?,"SELECT country FROM table_name_91 WHERE place = ""t6"" AND player = ""vijay singh""" "Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?","SELECT perth FROM table_name_56 WHERE gold_coast = ""yes"" AND sydney = ""yes"" AND melbourne = ""yes"" AND adelaide = ""yes""" And what are their seating capacity?,"SELECT name, seating FROM track WHERE year_opened > 2000" "How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?","SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = ""ukraine"" AND gold < 3" "Find the author, rating and review creation date of review for podcast title 'In The Thick'.","SELECT T2.author_id, T2.rating, T2.created_at FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'In The Thick' GROUP BY T2.author_id, T2.rating, T2.created_at" "How many numbers correspond to the score in the final of 6–3, 6–4, 7–6 (13–11)?","SELECT COUNT(no) FROM table_26202940_6 WHERE score_in_the_final = ""6–3, 6–4, 7–6 (13–11)""" In how many cases where the subject was a female was the subject's status listed as Deceased?,SELECT COUNT(T1.case_number) FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F' AND T1.subject_statuses = 'Deceased' What is the position title for Laura Callahan?,SELECT Title FROM Employees WHERE FirstName = 'Laura' AND LastName = 'Callahan' What are the department names and how many employees work in each of them?,"SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name" Who is the publisher of Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic?,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'Hitchhiker''s Guide To The Galaxy: The Filming of the Douglas Adams classic' "What are the rank, first name, and last name of the faculty members?","SELECT rank , Fname , Lname FROM Faculty" "What is the Attendance on September 28, 1997?","SELECT attendance FROM table_name_53 WHERE date = ""september 28, 1997""" "For each denomination, return the denomination and the count of schools with that denomination.","SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination" What is the most common condition among the female Americans?,SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.gender = 'F' AND T1.ethnicity = 'american' GROUP BY T2.DESCRIPTION ORDER BY COUNT(T2.DESCRIPTION) DESC LIMIT 1 what is the date when the away team is bolton wanderers?,"SELECT date FROM table_name_66 WHERE away_team = ""bolton wanderers""" "How many paragraphs are there in Act 1, Scene 1 in Twelfth Night?",SELECT SUM(T3.ParagraphNum) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T2.Act = 1 AND T2.Scene = 1 AND T1.Title = 'Twelfth Night' What is the Country of the Player with a To par of +4 and Score of 73-71-73=217?,"SELECT country FROM table_name_94 WHERE to_par = ""+4"" AND score = 73 - 71 - 73 = 217" Find the names of the students who are in the position of striker and got a yes tryout decision.,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker' Which Date has a Status of second test?,"SELECT date FROM table_name_54 WHERE status = ""second test""" What Elimination number is listed againt Eliminated by Sonjay Dutt?,"SELECT elimination FROM table_name_87 WHERE eliminated_by = ""sonjay dutt""" Count the active businesses that has an attribute of Wi-Fi with medium review count.,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T3.attribute_name LIKE 'Wi-Fi' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Medium' "Perfect, how many drivers had 11 pit stops and participated in more than 5 total races?","select count ( * ) from ( SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count ( * ) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count ( * ) > 5 ) " Which major has the most number of students?,SELECT Major FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 List the name of enzymes in descending lexicographical order.,SELECT name FROM enzyme ORDER BY name DESC "Where was the game on Thursday, April 29, and they played the Chicago Cubs?","SELECT site FROM table_name_84 WHERE opponent = ""chicago cubs"" AND date = ""thursday, april 29""" "Show institution types, along with the number of institutions and total enrollment for each type.","SELECT TYPE , count(*) , sum(enrollment) FROM institution GROUP BY TYPE" What are the service description of service type code Welfare?,"SELECT service_descriptio FROM services where service_type_code = ""Welfare""" State the title of the recipe with most kinds of ingredients.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id GROUP BY T1.title ORDER BY COUNT(title) DESC LIMIT 1 Name the category for 2nd melon music awards,"SELECT category FROM table_name_7 WHERE award = ""2nd melon music awards""" What is the URL to the user profile image on Mubi of the user who gave the movie id of 1103 a 5 ratinng score on 4/19/2020?,SELECT T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN ratings_users AS T2 ON T1.user_id = T2.user_id WHERE T2.user_id = 1103 AND rating_score = 5 AND T2.rating_date_utc = '2020-04-19' What is the name of all the sports Chin Eei Hui has competed in?,SELECT DISTINCT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T5.full_name = 'Chin Eei Hui' Show all the distinct districts for elections.,SELECT DISTINCT District FROM election When the game had a loss of Koch (0-1) what was the attendance?,"SELECT attendance FROM table_name_12 WHERE loss = ""koch (0-1)""" What is the average defenses a champion with 404 days held and a reign larger than 1 has?,"SELECT AVG(defenses) FROM table_name_57 WHERE days_held = ""404"" AND reign > 1" List all payment methods and number of payments using each payment methods.,"SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code" Which studio did The Oregon Trail?,"SELECT studio FROM table_name_13 WHERE title = ""the oregon trail""" What is the area of Egypt as a percentage of Asia?,SELECT T2.Percentage FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt' "What was the score on June 28, 2009?","SELECT score FROM table_name_56 WHERE date = ""june 28, 2009""" what is гә гә [ɡʷ] when ҕь ҕь [ʁʲ/ɣʲ] is ҭә ҭә [tʷʰ]?,"SELECT гә_гә_[ɡʷ] FROM table_202365_2 WHERE ҕь_ҕь_[ʁʲ_ɣʲ] = ""Ҭә ҭә [tʷʰ]""" Name the championship for clay and corrado barazzutti,"SELECT championship FROM table_23235767_4 WHERE surface = ""Clay"" AND opponent_in_the_final = ""Corrado Barazzutti""" "Who took the loss against the California Angels when the attendance was 10,886?","SELECT loss FROM table_name_90 WHERE opponent = ""california angels"" AND attendance = ""10,886""" What is the average number of terms served for a current legislator that's famous or impact?,SELECT CAST(COUNT(T2.bioguide) AS REAL) / COUNT(DISTINCT T1.bioguide_id) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.wikipedia_id IS NOT NULL What are the names of the hosts that held parties with more than 20 hosts?,SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 What area is Central Takaka School in?,"SELECT area FROM table_name_91 WHERE name = ""central takaka school""" What's the margin of victory during the Pocono Northeast Classic?,"SELECT margin_of_victory FROM table_name_55 WHERE tournament = ""pocono northeast classic""" What is the genre ID of the game named 25 to Life?,SELECT T.genre_id FROM game AS T WHERE T.game_name = '25 to Life' How many professors are teaching class with code ACCT-211?,"SELECT COUNT(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = ""ACCT-211""" what's the salmonella with escherichia being sepb (escn),"SELECT salmonella FROM table_10321124_1 WHERE escherichia = ""SepB (EscN)""" "Find all information about student addresses, and sort by monthly rental in descending order.",SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC Who is the sales representitive of Muscle Machine Inc? Please give the employee's full name.,"SELECT t2.firstName, t2.lastName FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t1.customerName = 'Muscle Machine Inc'" How many players are there?,SELECT count(*) FROM player Name the cfl team for patrice denis,"SELECT cfl_team FROM table_28059992_2 WHERE player = ""Patrice Denis""" Which CFL team got pick 34?,SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 34 Name the conventional for تاغارما,"SELECT conventional FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = ""تاغارما""" How many countries had a per capita withdrawal (m 3 /p/yr) of 372?,SELECT COUNT(country) FROM table_15909409_2 WHERE per_capita_withdrawal__m_3__p_yr_ = 372 Show me the league id of player id bedrost01 ?,"SELECT distinct T1.league_id FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.player_id = ""bedrost01""" "Return the names of people, ordered alphabetically.",SELECT Name FROM People ORDER BY Name ASC "What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?","SELECT COUNT(gain) FROM table_name_90 WHERE long < 4 AND name = ""brandon mcrae"" AND avg_g < -0.1" Which format has a region of united kingdom?,"SELECT format FROM table_name_19 WHERE region = ""united kingdom""" How many horror movies are there?,SELECT COUNT(movie_title) FROM `movies_total_gross` WHERE genre = 'Horror' show all train numbers and names ordered by their time from early to late.,"SELECT train_number , name FROM train ORDER BY TIME;" "Who won the race with a Ferrari, were Luigi Villoresi set the fastest lap time?","SELECT winning_driver FROM table_name_32 WHERE constructor = ""ferrari"" AND fastest_lap = ""luigi villoresi""" "Which authors belong to the institution ""Google""? Show the first names and last names.","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" Find the names and number of works of all artists who have at least one English songs.,"SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" GROUP BY T2.artist_name HAVING count(*) >= 1" What is the latest round for Pohang Steelers as the away team?,"SELECT MAX(round) FROM table_name_28 WHERE away_team = ""pohang steelers""" What is the title that had 13.59 u.s. viewers (millions)?,"SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = ""13.59""" What is the Album Id for Occupation / Precipice ?,"select albumid from track where name = ""Occupation / Precipice""" What are names of customers who never ordered product Latte.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE product_details = 'Latte' Which country has had 8 miss universes?,"SELECT country FROM table_28634206_1 WHERE miss_universe = ""8""" How many provinces are named Wellington?,"SELECT COUNT(formed_date) FROM table_275023_1 WHERE province = ""Wellington""" "What is the full name of the customer who owns the ""aalleburtonkc@yellowbook.com"" e-mail address?","SELECT first_name, last_name FROM customer WHERE email = 'aalleburtonkc@yellowbook.com'" What are their ids? | Do you mean card ids for all cards? | yes,SELECT card_id FROM Customers_cards On which day has it neither been foggy nor rained in the zip code of 94107?,"SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS != ""Fog"" AND EVENTS != ""Rain""" Which team's home is the Arden Street Oval?,"SELECT home_team FROM table_name_56 WHERE venue = ""arden street oval""" How many cinemas are there in total?,SELECT count ( * ) from cinema "Also, what is their customer ID? | Weeks's id? | yes, Weeks' ID, please.","SELECT custid FROM accounts where name = ""Weeks""" Give the product's name brought by Aaron Alexander.,SELECT DISTINCT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.FirstName = 'Aaron' AND T3.LastName = 'Alexander' In which year(s) did the person who has a total of 291 win?,SELECT year_s__won FROM table_name_69 WHERE total = 291 What is the lowest decile with 1-6 years and area of Maitland?,"SELECT MIN(decile) FROM table_name_2 WHERE years = ""1-6"" AND area = ""maitland""" What coach had 15 wins?,SELECT name__alma_mater_ FROM table_14594528_6 WHERE wins = 15 Find the ids of all problems reported by staff with last name Bosco,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = ""Bosco""" How many other films have that same genre name?,"SELECT count ( * ) FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.name = ""Foreign""" How many positions have Points of 30-8 and more than 25 goals?,"SELECT COUNT(position) FROM table_name_73 WHERE points = ""30-8"" AND goals_for > 25" Which line item with the highest quantity is shipped by air?,SELECT l_linenumber FROM lineitem WHERE l_shipmode = 'AIR' ORDER BY l_quantity DESC LIMIT 1 Find the name of accounts whose checking balance is below the average checking balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking) "What is the result for the game on May 27, 2006?","SELECT result FROM table_name_19 WHERE date = ""may 27, 2006""" When did the Brewers lose 2-8?,"SELECT loss FROM table_name_63 WHERE score = ""2-8""" What is every location attendance on the date December 12?,"SELECT location_attendance FROM table_17325580_6 WHERE date = ""December 12""" What are the dates with a maximum temperature higher than 85?,SELECT date FROM weather WHERE max_temperature_f > 85 Who did the team lose to on September 8?,"SELECT loss FROM table_name_52 WHERE date = ""september 8""" "Hi, What are the unique names of races that are held in Spain?","SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain""" "Which Residence has a Party of dem, and a Representative of linda lawson?","SELECT residence FROM table_name_20 WHERE party = ""dem"" AND representative = ""linda lawson""" display the ID for those employees who did two or more jobs in the past.,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 What is the name of the customer number 93697 with the total order price of 191918.92?,SELECT T2.c_name FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_totalprice = 191918.92 AND T1.o_custkey = 93697 What is the bowling score of season 1907?,"SELECT bowling FROM table_name_23 WHERE season = ""1907""" How many scenes are there in Act 5 of work ID 9?,SELECT COUNT(Scene) FROM chapters WHERE work_id = 9 AND Act = 5 Which was the lowest overall that Wisconsin's team managed?,"SELECT MIN(overall) FROM table_name_78 WHERE school_club_team = ""wisconsin""" "Which Losses has Scored of 9, and Points larger than 8?",SELECT AVG(losses) FROM table_name_87 WHERE scored = 9 AND points > 8 What is the title of episode number 14?,SELECT title FROM table_19161605_2 WHERE _number = 14 Show the names of all high schoolers in grade 10.,SELECT name FROM Highschooler WHERE grade = 10 What is the number of distinct teams that suffer elimination?,SELECT COUNT (DISTINCT team) FROM elimination Which player was a fly-half?,"SELECT player FROM table_name_79 WHERE position = ""fly-half""" What is the sum of winners when 1983 is the years won?,"SELECT COUNT(winners) FROM table_name_31 WHERE years_won = ""1983""" "For the country that has notes on the indicator Inflation, consumer prices, in which region is it in?","SELECT T1.Region FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T3.IndicatorName = 'Inflation, consumer prices (annual %)'" What is the Borough for the Seward listing on 1977-11-23?,"SELECT borough FROM table_name_54 WHERE location = ""seward"" AND listed = ""1977-11-23""" Who is the builder of the railway built earliest?,SELECT builder FROM railway order by built asc limit 1 What is the name of the medication used for the patient staying in room 111?,SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 Which league has arena football in the club Laredo Lobos?,"SELECT league FROM table_name_70 WHERE sport = ""arena football"" AND club = ""laredo lobos""" "What are the different card type codes, and how many different customers hold each type?","SELECT card_type_code , count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code" What is every trigram when direction is Northwest?,"SELECT trigram FROM table_23406517_2 WHERE direction = ""Northwest""" Show the top 3 apartment type codes sorted by the average number of rooms in descending order.,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3 Which High points have a Score of w 110-81?,"SELECT high_points FROM table_name_49 WHERE score = ""w 110-81""" Name for the high rebounds when score is w 105–91 (ot),"SELECT high_rebounds FROM table_15780718_6 WHERE score = ""W 105–91 (OT)""" What are the names of cities that are in the county with the most police officers?,SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1) "When is the winner olympiacos, the venue is georgios karaiskakis stadium and the runner-up is iraklis?","SELECT year FROM table_name_12 WHERE winner = ""olympiacos"" AND venue = ""georgios karaiskakis stadium"" AND runner_up = ""iraklis""" How about student not involved in any kind of incident?,SELECT count ( * ) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident ) Name the clas AAAA of school year 2000-01,"SELECT class_aAAA FROM table_name_76 WHERE school_year = ""2000-01""" How many places did the artist Big Hit have with less than 2934 votes?,"SELECT COUNT(place) FROM table_name_21 WHERE artist = ""big hit"" AND votes < 2934" Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.,SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin') How many users answered the question No.20?,SELECT MAX(UserID) - MIN(UserID) + 1 FROM Answer WHERE QuestionID = 20 Which member of the faculty are teaching the most courses and what is his/her general course level?,"SELECT T1.p_id, T3.courseLevel FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id GROUP BY T1.p_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1" What character did Dan Castellaneta play that won him an award for Outstanding Voice-Over Performance in 2009 in the Primetime Emmy Awards?,SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.person = 'Dan Castellaneta' AND T1.award = 'Outstanding Voice-Over Performance' AND T1.organization = 'Primetime Emmy Awards' AND T1.year = 2009; What was the venue when the home team was Essendon?,"SELECT venue FROM table_name_53 WHERE home_team = ""essendon""" Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.,"SELECT departure_date , arrival_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" Find the name of customers whose credit score is below the average credit scores of all customers.,SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer) Please list the names of the courses that are less important than Machine Learning Theory.,SELECT name FROM course WHERE credit < ( SELECT credit FROM course WHERE name = 'Machine Learning Theory' ) List the name of rooms with king or queen bed.,"SELECT roomName FROM Rooms WHERE bedType = ""King"" OR bedType = ""Queen""" "List down all paper name that were published in conference ""International Conference on Internet Computing"".",SELECT T1.Title FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Conference on Internet Computing' AND T1.Title <> '' How many more oxen are there than cattle on farm id 1,"SELECT oxen, total_cattle FROM farm where farm_id = 1" What is the last year that had sideline reporters rob stone and monica gonzalez?,"SELECT MAX(year) FROM table_17516922_1 WHERE sideline_reporters = ""Rob Stone and Monica Gonzalez""" "Which region does the NOC code ""COL"" stand for?",SELECT region_name FROM noc_region WHERE noc = 'COL' On what Date was the Winning score of 72-67-68-67=274?,SELECT date FROM table_name_30 WHERE winning_score = 72 - 67 - 68 - 67 = 274 Show student ids who are female and play football.,"SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" "How many vacators have October 22, 1808 as date successor seated?","SELECT COUNT(vacator) FROM table_225093_4 WHERE date_successor_seated = ""October 22, 1808""" Name the total number of pitcher for 9 overall rank,SELECT COUNT(pitcher) FROM table_242813_2 WHERE overall_rank = 9 What Variant has a Launch site that is white sands?,"SELECT variant FROM table_name_68 WHERE launch_site = ""white sands""" How many regions do we have?,SELECT count(*) FROM region What's the rank for Daewoo Business Center when the notes are cancelled?,"SELECT rank FROM table_name_39 WHERE notes = ""cancelled"" AND name = ""daewoo business center""" How many suppliers from Germany have left a comment with 'carefully regular packages'?,SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T2.n_name = 'GERMANY' AND T1.s_comment LIKE '%carefully regular packages%' "What about the highest training hours, please?",SELECT pName from player order by HS desc limit 1 What are the name of rooms that cost more than the average.,SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms ); "Which Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75?","SELECT voltage_center__v_ FROM table_name_71 WHERE input_clock__mhz_ = ""25 x 3"" AND part_number = ""a80486dx4-75""" list all the sales details,SELECT sales_details FROM sales when roberts 86' is the scorer what is the round?,"SELECT round FROM table_28181401_4 WHERE scorers = ""Roberts 86'""" Which Overall has a Name of markus koch?,"SELECT SUM(overall) FROM table_name_39 WHERE name = ""markus koch""" What is the date of the game with a score of 4-2?,"SELECT date FROM table_name_51 WHERE score = ""4-2""" What college did Francis Bellefroid go to? ,"SELECT college FROM table_28059992_6 WHERE player = ""Francis Bellefroid""" What was the first leg score in the match against Twente?,"SELECT first_leg FROM table_name_58 WHERE opposition = ""twente""" What team did the 2003-04 winner play for?,"SELECT team FROM table_name_68 WHERE season = ""2003-04""" Which Catalog has a Country of Japan?,"SELECT catalog FROM table_name_71 WHERE country = ""japan""" How many states located in the Midwest region?,SELECT COUNT(DISTINCT T) FROM ( SELECT CASE WHEN Region = 'Midwest' THEN StateCode ELSE NULL END AS T FROM Regions ) WHERE T IS NOT NULL How many current legislators do not have an account on ballotpedia.org ?,SELECT COUNT(*) FROM current WHERE ballotpedia_id = '' OR ballotpedia_id IS NULL What was the week number when they played on Dec. 19?,"SELECT COUNT(week) FROM table_name_79 WHERE date = ""dec. 19""" Loss of willis has what record?,"SELECT record FROM table_name_52 WHERE loss = ""willis""" Return the maximum and minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm" what is the 1st round when team 2 is usl dunkerque (d2)?,"SELECT 1 AS st_round FROM table_name_73 WHERE team_2 = ""usl dunkerque (d2)""" What's the sum of Opening Weekend Net Gross at the Studio of UTV Motion Pictures?,"SELECT SUM(opening_weekend_net_gross) FROM table_name_8 WHERE studio_s_ = ""utv motion pictures""" Which res has a Record of 3-0?,"SELECT res FROM table_name_35 WHERE record = ""3-0""" Can you list all the product type codes that have two or more products?,SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT ( * ) > = 2 What game was in 2011?,SELECT game FROM table_name_7 WHERE year = 2011 How many opponents have wimbledon (2) as the championship?,"SELECT COUNT(opponents) FROM table_22860698_2 WHERE championship = ""Wimbledon (2)""" Name the pronunciation for 傳,"SELECT pronunciation_a FROM table_name_83 WHERE word = ""傳""" Who won the bronze when the Asian Games were in Doha?,"SELECT bronze FROM table_name_70 WHERE location = ""doha""" What are the installation dates for all stations in San Jose city?,"SELECT installation_date FROM station WHERE city = ""San Jose""" What is the name of the most rented movie?,"SELECT T.title FROM ( SELECT T1.title, COUNT(T3.rental_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T1.title ) AS T ORDER BY T.num DESC LIMIT 1" What were the new entries for the Semi-Finals round with fewer than 8 fixtures?,"SELECT new_entries_this_round FROM table_name_97 WHERE number_of_fixtures < 8 AND round = ""semi-finals""" "What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?",SELECT AVG(against) FROM table_name_66 WHERE drawn < 7 AND points > 22 AND played = 19 What are the full names of faculties with sex M and who live in building NEB?,"SELECT Fname , Lname FROM FACULTY WHERE sex = ""M"" AND Building = ""NEB""" Which continent speaks the most languages?,SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1 What's the county of Eastern Pekin school with fewer than 774 enrolled?,"SELECT _number___county FROM table_name_54 WHERE enrollment < 774 AND school = ""eastern pekin""" what is the connection of CACHEbox,"SELECT connection FROM web_client_accelerator WHERE name = ""CACHEbox""" What party did incumbent Albert Wynn belong to? ,"SELECT party FROM table_1341423_20 WHERE incumbent = ""Albert Wynn""" The game taking place in Lille had what as a score?,"SELECT score FROM table_name_96 WHERE location = ""lille""" What is the name and salary for employee with id 242518965?,"SELECT name , salary FROM Employee WHERE eid = 242518965" Show me all grades that have at least 4 students.,SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4 "What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?",SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 11 how many orders there,SELECT count ( * ) from orders Count the number of tourists who did not visit any place.,SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ) What was the 09-10 oi best of the player with 949 points?,SELECT COUNT(09 AS _10_oi_best) FROM table_24990183_5 WHERE ws_points = 949 Show the document name and the document date for all documents on project with details 'Graph Database project'.,"SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'" How many dorms are there and what is the total capacity for each gender?,"SELECT count(*) , sum(student_capacity) , gender FROM dorm GROUP BY gender" Which player is from Sweden?,"SELECT player FROM table_name_3 WHERE country = ""sweden""" How many games are played for all football games by students on scholarship?,"SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = ""Football"" AND onscholarship = 'Y'" What is the score of the away team when the home team is Footscray?,"SELECT away_team AS score FROM table_name_95 WHERE home_team = ""footscray""" How many professors teach a class with the code ACCT-211?,"SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = ""ACCT-211""" Calculate the profit of each products. List all products with more than $100 in profit.,SELECT DISTINCT Name FROM Product WHERE ListPrice - StandardCost > 100 "For the light heavyweight –81 kg event that did not advance to semifinal, who was the athlete?","SELECT athlete FROM table_name_26 WHERE semifinal = ""did not advance"" AND event = ""light heavyweight –81 kg""" What country is the airport with the lowest elevation located in?,SELECT country FROM airports WHERE elevation = ( SELECT min ( elevation ) FROM airports ) Find the name of project that continues for the longest time.,SELECT name FROM projects ORDER BY hours DESC LIMIT 1 What about the highest mailshot id number?,SELECT T1.mailshot_id FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 What are the orchestras that do not have any performances?,SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance) what is the billing address of germany,"select billing_address from invoices where billing_country = ""Germany""" hat is the Result F– A when they played against Leeds United?,"SELECT result_f___a FROM table_name_98 WHERE opponents = ""leeds united""" What is the name of Richmond's home venue?,"SELECT venue FROM table_name_45 WHERE home_team = ""richmond""" Show the stadium names without any concert.,SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert) How many questions were asked in the questionary for the mental health survey?,SELECT COUNT(questiontext) FROM Question "What is Player, when Money ( $ ) is less than 387, and when Score is ""73-76-74-72=295""?",SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295 When falcons are the nickname what is the type?,"SELECT type FROM table_262495_1 WHERE nickname = ""Falcons""" What is the university ID of Harvard University?,SELECT id FROM university WHERE university_name = 'Harvard University' Provide the average revenue of all the French movies.,SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'France' How many students taking a bachelor's degree received an A in all of the courses that they took?,SELECT COUNT(T2.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T2.grade = 'A' AND T1.type = 'UG' Name the successor for pennsylvania 15th,"SELECT successor FROM table_1958768_3 WHERE district = ""Pennsylvania 15th""" What year was someone first elected?,SELECT MIN(first_elected) FROM table_1342379_45 What's the most common last name of staff?,SELECT last_name FROM Staff group by first_name order by count ( * ) desc limit 1 Which NBA draft has a School of huntington high school?,"SELECT nba_draft FROM table_name_57 WHERE school = ""huntington high school""" "What is the mpg-UK urban (cold) for a fuel type of diesel, extraurban MPG in the UK over 68.9, engine capacity of 1422, and L/100km urban (cold) over 5.1?","SELECT mpg_uk_urban__cold_ FROM table_name_8 WHERE fuel_type = ""diesel"" AND mpg_uk_extra_urban > 68.9 AND engine_capacity = 1422 AND l_100km_urban__cold_ > 5.1" Give me all the distinct location codes for documents.,SELECT DISTINCT location_code FROM Document_locations What about last name Rohan? | The emails of the students with the last name Rohan is derrick.jenkins@example.com | What is that person's student id?,"SELECT student_id FROM Students WHERE last_name = ""Rohan""" "Hi, could you please let me know the genre ID for Latin and Pop?","SELECT GenreId FROM Genre WHERE Name = ""Latin"" OR Name = ""Pop""" How about ship names with only one captain?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count ( * ) = 1 "What is the average, minimum, and maximum age of all singers from France?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'" "For the directed by 1991, what was the gross in Singapore?","SELECT singapore_gross FROM table_name_66 WHERE director = ""1991""" What's the rating of the episode in which Dan Castellaneta won the Outstanding Voice-Over Performance award in 2009?,"SELECT T2.rating FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Outstanding Voice-Over Performance' AND SUBSTR(T1.year, 1, 4) = '2009' AND T1.person = 'Dan Castellaneta';" Which Week has a Result of w 20-13?,"SELECT AVG(week) FROM table_name_20 WHERE result = ""w 20-13""" "What are the id, role, and first name of the professionals who have performed two or more treatments?","SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2" What was the lowest round for a tight end position?,"SELECT MIN(round) FROM table_name_94 WHERE position = ""tight end""" Do you know the name of the Astronomy instructor?,SELECT T2.name FROM department AS T1 JOIN instructor AS T2 ON T1.dept_name = T2.dept_name where T1.dept_name = 'Astronomy' "What is the lowest bronze number when silver shows 2, and the total is 8?",SELECT MIN(bronze) FROM table_name_35 WHERE silver = 2 AND total = 8 Hi! How are you? Can you show me a list of all of the country names?,SELECT Name from country Show the distinct countries of managers.,SELECT DISTINCT Country FROM manager How many universities are there in the United States of America?,SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'United States of America' Who had the smallest points in 3rd place but had a position greater than 8?,"SELECT MIN(points) FROM table_name_9 WHERE place = ""3rd"" AND position > 8" How many games were sold on the DS platform on average in the 4 different regions?,SELECT SUM(T1.num_sales) * 100000 / 4 FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T3.platform_name = 'DS' What time does Dustin Byfuglien have in 1st period?,"SELECT time FROM table_name_36 WHERE period = ""1st"" AND player = ""dustin byfuglien""" Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.,SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') list project names in ascending order,SELECT T3.Name FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T1.Name ASC Find the number of professionals who have ever treated dogs.,SELECT count(DISTINCT professional_id) FROM Treatments What years did those open?,"select location, open_year from gas_station where manager_name = ( SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count ( * ) DESC LIMIT 1 ) " Show the names of members and the location of the performances they attended.,"SELECT T2.Name , T3.Location 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" What was the highest amount of episodes for the season with 5.74 million viewers?,"SELECT MAX(episodes) FROM table_22837363_1 WHERE viewers__in_millions_ = ""5.74""" "In female students in year 2012, how many of them from a state with number of schools ranges from 10 to 20?",SELECT COUNT(T2.race) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.gender = 'F' AND schools_count BETWEEN 10 AND 20 AND T2.year = 2012 "1996[2] larger than 68, and a 1990 smaller than 352, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980?",SELECT SUM(1980) FROM table_name_6 WHERE 1996[2] > 68 AND 1990 < 352 AND 1970 > 105 AND 1950 = 119 Which location has the most cinemas opened in 2010 or later?,SELECT LOCATION FROM cinema WHERE openning_year > = 2010 GROUP BY LOCATION ORDER BY count ( * ) DESC LIMIT 1 How many students are affected by food related allergies?,"SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = ""food""" Which of these dates occurred most recently?,SELECT shipment_date FROM shipments order by shipment_date desc limit 1 "What are the dates of birth of entrepreneurs with investor ""Simon Woodroffe"" or ""Peter Jones""?","SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = ""Simon Woodroffe"" OR T1.Investor = ""Peter Jones""" For how long was the complaint filed by Matthew Pierce on 2016/10/28 delayed?,"SELECT 365 * (strftime('%Y', T2.`Date sent to company`) - strftime('%Y', T2.`Date received`)) + 30 * (strftime('%M', T2.`Date sent to company`) - strftime('%M', T2.`Date received`)) + (strftime('%d', T2.`Date sent to company`) - strftime('%d', T2.`Date received`)) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Matthew' AND T1.last = 'Pierce' AND T2.`Date received` = '2016-10-28'" What is the winning score of the match with a margin of 3 strokes?,"SELECT winning_score FROM table_name_39 WHERE margin = ""3 strokes""" What is the Total of the Player with a To par of 4?,SELECT COUNT(total) FROM table_name_8 WHERE to_par = 4 What is the tournament when 2010 is not held?,"SELECT tournament FROM table_name_86 WHERE 2010 = ""not held""" Please provide sales ID for products named Hex Nut with a price greater than 100.,SELECT T2.SalesID FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE 'Hex Nut%' AND T1.Price > 100 Who was the senior US senator in the state whose governor was D. Patrick?,"SELECT senior_us_senator FROM table_21531764_2 WHERE governor = ""D. Patrick""" Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?,"SELECT grand_prix FROM table_name_24 WHERE fastest_lap = ""gerhard berger"" AND pole_position = ""jacques villeneuve""" What was the result when incumbent Tom Steed was elected?,"SELECT result FROM table_1342198_36 WHERE incumbent = ""Tom Steed""" What is the Hangul of the Province with a Kana of ちゅうせいなんどう?,"SELECT hangul FROM table_name_3 WHERE kana = ""ちゅうせいなんどう""" How many people are in the staff?,SELECT count ( * ) FROM Staff "When Jeb Barlow was picked in round smaller than 7, how many player in totals were picked?","SELECT COUNT(pick) FROM table_name_67 WHERE player = ""jeb barlow"" AND round < 7" "What are the account ids, customer ids, and account names for all the accounts?","SELECT account_id , customer_id , account_name FROM Accounts" Can you also tell me how many employees have a salary lower than 50000?,SELECT count ( * ) FROM employee WHERE salary < 50000 What was the character that Dan Castellaneta did the voice over for and was awarded?,SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award LIKE '%Voice-Over%' AND T1.person = 'Dan Castellaneta'; "What is the ""date supplied to"" of supplier id 3?",SELECT date_supplied_to from Product_Suppliers where supplier_id = 3 What are the actual delivery dates of orders with quantity 1?,SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 How many companies are headquartered in the US?,SELECT count(*) FROM company WHERE Headquarters = 'USA' List out all stations name that having a mean temperature 20 degree Celsius in year 2014.,"SELECT DISTINCT T2.start_station_name, T2.end_station_name FROM weather AS T1 INNER JOIN trip AS T2 ON T1.zip_code = T2.zip_code WHERE T1.date LIKE '%2014' AND T1.mean_temperature_f = 20 * 1.8 + 32" "Return the average, maximum, and total revenues across all manufacturers.","SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers" Find the total credits of courses provided by different department.,"SELECT sum(credits) , dept_name FROM course GROUP BY dept_name" Show home city where at least two drivers older than 40 are from.,SELECT home_city FROM driver WHERE age > 40 GROUP BY home_city HAVING count(*) >= 2 What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts?,SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cuts_made > 0 What is the week 14 (final) dec 7 standing with Florida (6-1) on week 8 Oct 26?,"SELECT week_14__final__dec_7 FROM table_name_97 WHERE week_8_oct_26 = ""florida (6-1)""" "What is the name of the restaurant that is located in El Dorado County, Lake Tahoe region?",SELECT T2.label FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'lake tahoe' AND T1.county = 'el dorado county' Name the score for december 19,"SELECT score FROM table_23453931_5 WHERE date = ""December 19""" What is the average wins when teams is lions and the percent is more than 0?,"SELECT AVG(wins) FROM table_name_31 WHERE teams = ""lions"" AND percent > 0" Show names for all aircrafts with distances more than the average.,SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft) What was the average speed over 18.00km for winning driver Jean-Claude Andruet?,"SELECT avg_speed FROM table_name_23 WHERE distance = ""18.00km"" AND winning_driver = ""jean-claude andruet""" Please list the products that are under the Clothing category that are manufactured in-house and salable.,SELECT CASE WHEN T1.MakeFlag = 1 THEN T1.Name END FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID INNER JOIN ProductCategory AS T3 ON T2.ProductCategoryID = T3.ProductCategoryID WHERE T2.ProductSubcategoryID = 3 What is the delivery time and the clerk of order number 6?,"SELECT JULIANDAY(T2.l_receiptdate) - JULIANDAY(T2.l_commitdate), T1.o_clerk FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderkey = 6" "What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?","SELECT SUM(played) FROM table_name_12 WHERE team = ""vasco da gama"" AND against < 12" What are the names of the movies which Laura Brody starred in?,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Laura' AND T1.last_name = 'Brody' "How many clubs are located in city code ""AKW""",select count ( ClubID ) from Club where ClubLocation = 'AKW' "Find the id of the item whose title is ""orange"".","SELECT i_id FROM item WHERE title = ""orange""" Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.,"SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = ""F"" AND T2.Election_Cycle = ""Spring""" Name the recipe with the most Vitamin C.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.vitamin_c DESC LIMIT 1 Which team has dirk nowitski (13) as high rebounds?,"SELECT team FROM table_23284271_10 WHERE high_rebounds = ""Dirk Nowitski (13)""" Who manufactured the vehicle withdrawn after 1932?,SELECT manufacturer FROM table_name_24 WHERE year_withdrawn > 1932 What is the highest tie that had 19129 attendance?,SELECT MAX(tie_no) FROM table_24887326_6 WHERE attendance = 19129 What grand prixs did Daijiro Hiura win? ,"SELECT grand_prix FROM table_18303274_1 WHERE race_winner = ""Daijiro Hiura""" what are their names?,SELECT name FROM stadium where capacity < ( SELECT avg ( capacity ) FROM stadium ) What are the appellations whose score is higher than 93?,SELECT distinct appelation FROM WINE WHERE Score > 93 Thank you very much! Can you please tell me what the gender of the artist is?,SELECT T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 What is name of the country that speaks the largest number of languages?,SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1 Which Finish had a To par of +10?,"SELECT finish FROM table_name_89 WHERE to_par = ""+10""" How many captains does third-rate ship of the line have?,SELECT count ( * ) FROM captain where class = 'Third-rate ship of the line' Which Back has a Supplier of Kooga and a Year of 2006-2008?,"SELECT back FROM table_name_88 WHERE supplier = ""kooga"" AND year = ""2006-2008""" Name the total number of telephone 052 for 362.81,"SELECT COUNT(telephone__052_) FROM table_14465924_1 WHERE area__km_2__ = ""362.81""" What circuit was on the date 4 May?,"SELECT circuit FROM table_12186237_1 WHERE date = ""4 May""" "What are the names of the chairs of festivals, sorted in ascending order of the year held?",SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC "What year was the university that is located in Ellensburg, Washington established?","SELECT MIN(founded) FROM table_16078390_2 WHERE location = ""Ellensburg, Washington""" how many claim headers on the table,SELECT count ( * ) from claim_headers What are the titles and directors of the films were never presented in China?,"SELECT title , director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')" "When the Attendance was 4,516, what was the Record?","SELECT record FROM table_name_72 WHERE attendance = ""4,516""" What is the maximum attendance of all events?,SELECT max ( Event_Attendance ) FROM event Show the names of countries that have more than one roller coaster.,SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1 Calculate the average payment per product under confections category.,SELECT SUM(T2.UnitPrice * T2.Quantity * (1 - T2.Discount)) / COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Categories AS T3 ON T1.CategoryID = T3.CategoryID WHERE T3.CategoryName = 'Confections' Please give the additional contact information of the oldest employee with the jod position of sales person.,SELECT T2.AdditionalContactInfo FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE PersonType = 'SP' ORDER BY T1.BirthDate ASC LIMIT 1 What is the current streak against TCU?,"SELECT current_streak FROM table_15740666_4 WHERE kansas_state_vs = ""TCU""" "How many weeks have September 14, 2008 as the date?","SELECT SUM(week) FROM table_name_79 WHERE date = ""september 14, 2008""" What is the total amount of all the donations made by the donor who made the highest donation in a single amount? Indicate the essay title to where he/she made his/her biggest donation.,"SELECT T2.donation_total, T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_total = ( SELECT MAX(donation_total) FROM donations )" "Hi can you tell me how many games were in 1885? | Did you also requre the ""ties"" is '1' | how many games had ties?",SELECT count ( * ) FROM postseason WHERE ties = 1 "Name the number of partners for 5-7, 6-7 (5-7)","SELECT COUNT(partner) FROM table_23944006_4 WHERE score = ""5-7, 6-7 (5-7)""" Hmm. Can you please give me his email address and phone?,"SELECT customer_email, customer_phone FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code ! = ""Credit Card""" "What is the difference in the current gross of Cars and its sequel, Cars 2? Which movie is more popular?","SELECT SUM(CASE WHEN movie_title = 'Cars' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END), SUM(CASE WHEN movie_title = 'Cars 2' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) FROM movies_total_gross" which Home has a Visitor of ottawa senators and a Score of 2–3?,"SELECT home FROM table_name_61 WHERE visitor = ""ottawa senators"" AND score = ""2–3""" Who was the lead envoy of the mission with the Ryūkyūan King shō eki?,"SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = ""shō eki""" "Of the black officers, how many of them investigated cases between the years 2010 and 2015?",SELECT COUNT(T1.case_number) FROM officers AS T1 INNER JOIN incidents AS T2 ON T2.case_number = T1.case_number WHERE T1.race = 'B' AND T2.date BETWEEN '2010-01-01' AND '2015-12-31' "For the Yelp business which had the most number of ""long"" reviews, which category does it belong to?",SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Long' GROUP BY T2.business_id ORDER BY COUNT(T1.review_length) DESC LIMIT 1 What is the first name and GPA of every student that has a GPA lower than average?,"SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)" Which address holds the most number of students currently? List the address id and all lines.,"SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1" "Please list the IDs of all the images with more than 2 pairs of object samples with the relation ""parked on"".",SELECT T2.IMG_ID FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.PRED_CLASS = 'parked on' AND T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID GROUP BY T2.IMG_ID HAVING COUNT(T2.IMG_ID) > 2 Provide the ingredients and maximum quantities of the recipe which can serve 7 people.,"SELECT T3.name, T2.max_qty FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.servings = 7" What are the distinct names of customers who have purchased a keyboard?,"SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = ""keyboard""" Who are the customers that had more than 1 policy? List the customer details and id.,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1" Which cities have served as host cities? | Do you want the names of the cities who served as host cities? | Yes.,SELECT distinct T1.city FROM city AS T1 JOIN hosting_city as T2 on T1.city_id = T2.host_city "Who wrote ""The Prophet""?",SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.title = 'The Prophet' How many employees does the Treasury Department have?,"SELECT Num_Employees FROM department where name = ""Treasury""" Which round has an H/A of A with Notts County as opponents?,"SELECT round FROM table_name_72 WHERE h___a = ""a"" AND opponents = ""notts county""" How many transaction does account with name 337 have?,"SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = ""337""" Name the Height metres / ft of Years with tallest of 1098–1310?,"SELECT height_metres___ft FROM table_name_68 WHERE years_as_tallest = ""1098–1310""" "What were the years for Redhill school, authority of state?","SELECT years FROM table_name_1 WHERE authority = ""state"" AND name = ""redhill school""" "Can you tell me the highest Gold that has the Bronze smaller than 1, and the Total larger than 4?",SELECT MAX(gold) FROM table_name_87 WHERE bronze < 1 AND total > 4 Indicate the release date of the film The Lion King directed by Roger Allers.,SELECT T1.release_date FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Roger Allers' AND T1.movie_title = 'The Lion King' What's the first elected year of the district who's been the last one to do so?,SELECT MAX(first_elected) FROM table_1341472_12 Count the number of actors.,SELECT count(*) FROM actor What is the race time for emma twigg?,"SELECT time FROM table_name_29 WHERE athlete = ""emma twigg""" What is the average number of seasons for Terri Drake who lost less than 9?,"SELECT AVG(seasons) FROM table_name_65 WHERE name = ""terri drake"" AND lost < 9" Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?,"SELECT week_2 FROM table_name_73 WHERE week_4 = ""chelsie loraine""" Who has greater than 8 Long and a 73 Yards?,"SELECT player FROM table_name_84 WHERE long > 8 AND yards = ""73""" Show all headquarters with both a company in banking industry and a company in Oil and gas.,SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' List the number of people injured by perpetrators in ascending order.,SELECT Injured FROM perpetrator ORDER BY Injured ASC; "What is Shot Pct., when Stolen Ends is 2?",SELECT shot_pct FROM table_name_67 WHERE stolen_ends = 2 What is the date of the game away against Pride?,"SELECT date FROM table_name_35 WHERE opponent = ""pride"" AND home_away = ""away""" Okay. What country is Tohoku University located in?,select country from Inst where name = 'Tohoku University' What are the ids of all students for courses and what are the names of those courses?,"SELECT T1.student_id , T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id" How many of them are friends with Bob?,SELECT count ( * ) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' Show the most common nationality of pilots.,SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 "What is the Surface of the Tournament on June 11, 2006?","SELECT surface FROM table_name_67 WHERE date = ""june 11, 2006""" What are the names of the directors who made exactly one movie?,SELECT director FROM Movie GROUP BY director HAVING count(*) = 1 How many car models are produced in the usa?,SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'; What is the brand in Metro Manila?,"SELECT branding FROM table_19215259_1 WHERE location = ""Metro Manila""" Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.,"SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = ""Astrid"" AND LastName = ""Gruber""" What were the guests that aired on 7 June 2010?,"SELECT guests FROM table_26733129_1 WHERE air_date = ""7 June 2010""" "Find the names of all artists that have ""a"" in their names.","SELECT Name FROM ARTIST WHERE Name LIKE ""%a%""" What is the percentage of the trance- n himalaya zone that corresponds with the high hill zone is 25%?,"SELECT trance__n_himalaya_zone FROM table_10638523_1 WHERE high_hill_zone = ""25%""" What is the genre for the group with ages 29-30?,"SELECT genre FROM table_27529608_21 WHERE age_s_ = ""29-30""" Which region does Noah Thompson live in?,SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.first = 'Noah' AND T1.last = 'Thompson' What are the names of all stadiums that did not have a concert in 2014?,SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014 What was the maximum population of the country with Quito as capital?,"SELECT MAX(population__july_2009_est_) FROM table_26769_1 WHERE capital = ""Quito""" How many reviewers listed?,SELECT COUNT(*) FROM Reviewer How many weeks do they have a bye?,"SELECT COUNT(week) FROM table_name_37 WHERE result = ""bye""" In which year did university ID 1 have the most students?,SELECT year FROM university_year WHERE university_id = 1 ORDER BY num_students DESC LIMIT 1 Amal McCaskill who plays forward-center played for what school/club team?,"SELECT school_club_team FROM table_name_55 WHERE position = ""forward-center"" AND player = ""amal mccaskill""" What countries have a margin of victory at 6 strokes?,"SELECT country FROM table_1529260_2 WHERE margin_of_victory = ""6 strokes""" How much has dave stockton earned?,"SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = ""dave stockton""" "Taking all the essential genes of the transcription factors class located in the nucleus as a reference, how many of them carry out a genetic-type interaction with another gene? List them.",SELECT T2.GeneID1 FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Localization = 'nucleus' AND T1.Class = 'Transcription factors' AND T1.Essential = 'Essential' AND T2.Expression_Corr != 0 What was the score of the tournament that was held in 1974?,SELECT score_in_the_final FROM table_name_92 WHERE date = 1974 What is the college/junior/club team for player don barber?,"SELECT college_junior_club_team FROM table_2679061_6 WHERE player = ""Don Barber""" how many artist_name in the song table,SELECT count ( * ) FROM song "Among the dishes on menu page ID 7610, list the names and highest prices of the dishes in menu items that were created on 23rd May 2011.","SELECT T1.name, T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.created_at LIKE '2011-05-23%' ORDER BY T2.price DESC LIMIT 1" "For each classroom with at least 2 classes, how many classes are offered?","SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2" Find the name of customers who have both saving and checking account types.,SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' what is the year union university was founded?,"SELECT founded FROM table_1715730_2 WHERE institution = ""Union University""" What is the average age of all the male students (sex with M) from each city?,"SELECT avg ( age ) , city_code FROM student WHERE sex = 'M' GROUP BY city_code" What's the name of the competition in 8th position?,"SELECT competition FROM table_name_98 WHERE position = ""8th""" What is the count of customers that Steve Johnson supports?,"SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = ""Steve"" AND T1.last_name = ""Johnson"";" What is the URL to the rating on Mubi of the Riff-Raff movie that was given the highest rating score by user 22030372?,SELECT T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_id = 22030372 AND T2.rating_score = 5 AND T1.movie_title = 'Riff-Raff' Show the opening year in whcih at least two churches opened.,SELECT open_date FROM church GROUP BY open_date HAVING COUNT(*) >= 2 How many authors belong to Tohoku University?,select count ( * ) from Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID WHERE Inst.name = 'Tohoku University' What are the distinct wineries which produce wines costing between 50 and 100?,SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100 "According to all the observations of Elly Koss, what was her average weight?","SELECT AVG(T2.VALUE), T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description = 'Body Weight'" "What is the Home team on February 2, 1947?","SELECT home FROM table_name_68 WHERE date = ""february 2, 1947""" Find the number of different departments in each school whose number of different departments is less than 5.,"SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5" Find the distinct names of all races held between 2014 and 2017?,SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017 Calculate the difference in the average age of elderly and middle-aged clients in the Northeast region.,SELECT (CAST(SUM(CASE WHEN T1.age BETWEEN 35 AND 55 THEN T1.age ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age BETWEEN 35 AND 55 THEN 1 ELSE 0 END)) - (CAST(SUM(CASE WHEN T1.age > 65 THEN T1.age ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END)) AS difference FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Northeast' How many train stations are there?,SELECT COUNT(*) FROM station What are 3 most highly rated episodes in the TV series table and what were those ratings?,"SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;" How many settlements are there in total?,SELECT count(*) FROM Settlements Provide the name of game produced by 505 Games in 2006.,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN publisher AS T4 ON T2.publisher_id = T4.id WHERE T4.publisher_name = '505 Games' AND T1.release_year = 2006 Who won third place in season four?,"SELECT third_place FROM table_16331144_1 WHERE season = ""Four""" Who wrote the episode with 8.61 million U.S. viewers?,"SELECT written_by FROM table_24648983_1 WHERE us_viewers__million_ = ""8.61""" Which allergy type is most common?,SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1 Calculate the total likes collected by tweets in `ru` posted by male users.,SELECT SUM(T1.Likes) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Lang = 'ru' AND T2.Gender = 'Male' What is the name of the manager with the most gas stations that opened after 2000?,SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1 "If the height order is 1 and the soundfield type is mixed-order, what are all the channels?","SELECT channels FROM table_233830_1 WHERE soundfield_type = ""mixed-order"" AND height_order = 1" "Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?",SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 10 AND position > 8 AND wins = 1 Where was the landing site when the duration on the lunar surface was 21:31?,"SELECT lunar_landing_site FROM table_name_52 WHERE duration_on_lunar_surface = ""21:31""" Name the place where adelaide oval is,"SELECT city_country FROM table_name_51 WHERE venue = ""adelaide oval""" Can you tell me the location of the perpetrator with the largest kills?,SELECT location FROM perpetrator order by Killed desc limit 1 Who has Series of 2 – 3?,"SELECT visitor FROM table_name_77 WHERE series = ""2 – 3""" What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?,"SELECT championship FROM table_name_3 WHERE surface = ""clay"" AND opponent_in_the_final = ""vitas gerulaitis""" Name the total number of opponets venue for oklahoma,"SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = ""Oklahoma""" "At the longitude of 355.0e, what is the name origin?","SELECT name AS origin FROM table_16799784_9 WHERE longitude = ""355.0E""" "Tell me the total quantity of products bought by the customer called ""Rodrick Heaney"".","SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" Show all cities where students live.,SELECT DISTINCT city_code FROM Student "What are the names of musicals with nominee ""Bob Fosse""?","SELECT Name FROM musical WHERE Nominee = ""Bob Fosse""" Please list the awards won by coaches who were born in 1952.,SELECT T2.award FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T1.birthYear = 1952 What other bridges did Wright architect?,"SELECT * from bridge as T1 join architect as T2 on T1.architect_id = T2.id where T2.name = ""Frank Lloyd Wright"" and T1.name ! = ""Xian Ren Qiao ( Fairy Bridge ) """ How many competitions had a final score of 15.650?,"SELECT COUNT(competition_description) FROM table_25143284_1 WHERE score_final = ""15.650""" How many artists are above age 46 and joined after 1990?,SELECT count(*) FROM artist WHERE age > 46 AND year_join > 1990 how many prerequisite credits are needed? | Which course? | Game programming,"SELECT sum ( T3.credits ) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id join course as T3 on T3.course_id = T2.prereq_id where T1.title = ""Game Programming""" Which company started the earliest the maintenance contract? Show the company name.,SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1 List the names of companies in descending order of market value.,SELECT name FROM Companies ORDER BY Market_Value_billion DESC What is the home team score for kardinia park?,"SELECT home_team AS score FROM table_name_56 WHERE venue = ""kardinia park""" How many issues end on jan–72?,"SELECT SUM(number_of_issues) FROM table_name_82 WHERE end_month = ""jan–72""" Who was the constructor when the grid was 11?,SELECT constructor FROM table_name_74 WHERE grid = 11 What was the overall record for the Pandas in the 2003-04 season? ,"SELECT overall FROM table_27069503_2 WHERE season = ""2003-04""" Find the names of stadiums whose capacity is smaller than the average capacity.,SELECT name FROM stadium WHERE capacity < (SELECT AVG(capacity) FROM stadium) Calculate the average enlisted students per organization.,SELECT CAST(COUNT(NAME) AS REAL) * 100 / COUNT(DISTINCT organ) FROM enlist "For each id of a driver who participated in at most 30 races, how many races did they participate in?","SELECT T1.driverid , count(*) 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" Who was the losing team with a total of 24 when the winning team was Sydney Roosters?,"SELECT losing_team FROM table_name_44 WHERE total = 24 AND winning_team = ""sydney roosters""" Which venue did the match where Collingwood was the home team take place?,"SELECT venue FROM table_name_32 WHERE home_team = ""collingwood""" Who was the visiting team when the leading scorer was Jones : 20?,"SELECT visitor FROM table_name_9 WHERE leading_scorer = ""jones : 20""" What date has 2:59 as the time?,"SELECT date FROM table_name_95 WHERE time = ""2:59""" What cities do students live in?,SELECT DISTINCT city_code FROM Student What is the score when the tie no is 29?,"SELECT score FROM table_name_65 WHERE tie_no = ""29""" List all the cities in a decreasing order of each city's stations' highest latitude.,SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC "What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?","SELECT year FROM table_name_58 WHERE score = ""6–2, 2–6, 5–7, 7–6, 8–6""" What round was the opponent Sergiy Stakhovsky?,"SELECT round FROM table_name_28 WHERE opponent = ""sergiy stakhovsky""" show me the number of tweets of each user,"SELECT T1.name , count ( * ) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid" What's the Score with a Home of Scotland and Date of 24 February?,"SELECT score FROM table_name_12 WHERE home = ""scotland"" AND date = ""24 february""" where college is british columbia what are all the player,"SELECT player FROM table_26996293_2 WHERE college = ""British Columbia""" "How many rooms cost more than 120, for each different decor?","SELECT decor , count(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor;" "What is the Price, when Upstream is ""256 kbit""?","SELECT price FROM table_name_64 WHERE upstream = ""256 kbit""" What is the wikipedia page id of Arqueozoologia?,SELECT page FROM pages WHERE title = 'Arqueozoologia' "Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?","SELECT SUM(gold) FROM table_name_51 WHERE silver > 0 AND total < 3 AND nation = ""bulgaria"" AND bronze < 0" how many order id from product id 7,SELECT count ( * ) FROM order_items where product_id = 7 "What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80?","SELECT launched FROM table_name_65 WHERE homeport__as_of_july_2013_ = ""sold to chile"" AND pennant_number = ""f80""" Which passenger has a position of 21 and less than 49 points?,"SELECT passenger FROM table_name_89 WHERE position = ""21"" AND points < 49" Provide the full name and birth date of the legislator with a contact form of http://www.brown.senate.gov/contact/.,"SELECT T1.official_full_name, T1.birthday_bio FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.contact_form = 'http://www.brown.senate.gov/contact/'" how many buildings are available?,SELECT count ( distinct building ) from department "Please list the various phone number types in the following order, from most to least common among businesses.",SELECT T2.Name FROM PersonPhone AS T1 INNER JOIN PhoneNumberType AS T2 ON T1.PhoneNumberTypeID = T2.PhoneNumberTypeID GROUP BY T2.Name ORDER BY COUNT(T2.Name) DESC "What is the competition on October 15, 2008?","SELECT competition FROM table_name_37 WHERE date = ""october 15, 2008""" what is the record when the event is shido usa mma and the opponent is raphael assunção?,"SELECT record FROM table_name_24 WHERE event = ""shido usa mma"" AND opponent = ""raphael assunção""" display all the information about the department Marketing.,SELECT * FROM departments WHERE department_name = 'Marketing' What's the English Title of Fanny Och Alexander?,"SELECT english_title FROM table_name_20 WHERE original_title = ""fanny och alexander""" How many tracks are in the AAC audio file media type?,"SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = ""AAC audio file""" Which report has a Set 3 value of 21–25?,"SELECT report FROM table_name_93 WHERE set_3 = ""21–25""" how many exhibition are presented on the table,SELECT count ( * ) FROM exhibition Show the name of employees with three lowest salaries.,SELECT name FROM Employee ORDER BY salary ASC LIMIT 3 What are the names of all the dorms?,SELECT dorm_name FROM dorm How many courses were taught by a professor who is currently the member of faculty?,SELECT COUNT(*) FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 AND T1.hasPosition <> 0 how many tweets there,SELECT count ( * ) FROM tweets What was the final episode credited of 187?,SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187 What is the title in 1991?,"SELECT title FROM table_name_79 WHERE year = ""1991""" List all movie title rated in April 2020 from user who was a trialist.,SELECT T1.movie_title FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 AND T2.rating_timestamp_utc LIKE '2020-04%' How many songs were released for each format?,"SELECT count(*) , formats FROM files GROUP BY formats" Please list all the medication that are prescribed to Elly Koss.,SELECT DISTINCT T2.description FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' What is the result when the time is 1:13?,"SELECT res FROM table_name_11 WHERE time = ""1:13""" Find the average credit score of the customers who have some loan.,SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) Which stadium had the result/game montreal 20 @ ottawa 10?,"SELECT stadium FROM table_21436373_8 WHERE result_games = ""Montreal 20 @ Ottawa 10""" What engine is used by Colin Bennett Racing with an 811 chassis?,"SELECT engine FROM table_name_48 WHERE entrant = ""colin bennett racing"" AND chassis = ""811""" what is the date for tirrana?,"SELECT date FROM table_name_18 WHERE name = ""tirrana""" Please list the location coordinates of all the incidents that had happened in the ward represented by alderman Pat Dowell.,"SELECT T2.latitude, T2.longitude FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Pat' AND T1.alderman_last_name = 'Dowell' AND T2.latitude IS NOT NULL AND T2.longitude IS NOT NULL" What is the position of the pittsburgh steelers?,"SELECT position FROM table_name_29 WHERE nfl_club = ""pittsburgh steelers""" "Among the professors with a teachability of 3 and below, what is the percentage of their student advisees with a low salary?",SELECT CAST(SUM(CASE WHEN T1.salary = 'low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.salary) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.teachingability < 3 What place did the player from South Africa finish?,"SELECT place FROM table_name_97 WHERE country = ""south africa""" Who won when Elon was the runner-up?,"SELECT champion FROM table_name_53 WHERE runner_up = ""elon""" When western carolina university is the school what is the control?,"SELECT control FROM table_2076516_1 WHERE school = ""Western Carolina University""" Who is the opponent of the match at cua stadium?,"SELECT opponent FROM table_name_7 WHERE venue = ""cua stadium""" Which of these have the most white wines?,"SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = ""White"" GROUP BY T2.Winery ORDER BY count ( * ) DESC LIMIT 1" "What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?","SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion" What is the playoffs 2 result of season 2010-11?,"SELECT playoffs_2 FROM table_name_18 WHERE season = ""2010-11""" "In the Northeast region, what is the average household income for each city located in the state with the highest number of stores?",SELECT AVG(T2.`Household Income`) FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T1.Region = 'Northeast' GROUP BY T2.State ORDER BY COUNT(T2.StoreID) DESC LIMIT 1 What are the full names and cities of employees who have the letter Z in their first names?,"SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'" Report all advisors that advise more than 2 students.,SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2 "What is the average number of papers published in the journal ""Molecular Brain"" every year from 2008 to 2011?",SELECT CAST(COUNT(T2.Id) AS REAL) / COUNT(DISTINCT T2.Year) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Molecular Brain' AND T2.Year BETWEEN 2008 AND 2011 What is the reunion weight of the contestant who lost 74.4 lbs at the finale?,"SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_finale = ""74.4""" list out the region name,select region_name from region What are the names of customers who have purchased both products Latte and Americano?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Americano' "Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?","SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.MaxOrderQty BETWEEN 500 AND 750 ORDER BY T1.LastReceiptCost - T1.StandardPrice DESC LIMIT 9, 1" What are the total purchases for members rated at level 6?,SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 Show theme and year for all exhibitions in an descending order of ticket price.,"SELECT theme, YEAR FROM exhibition ORDER BY ticket_price DESC" Who constructed stefan johansson's car with a grid under 14?,"SELECT constructor FROM table_name_52 WHERE grid < 14 AND driver = ""stefan johansson""" What is the name of medal that competitor id 9 obtained?,SELECT DISTINCT T1.medal_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id WHERE T2.competitor_id = 9 What are the ids and details of events that have more than one participants?,"SELECT T1.event_id , T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING count(*) > 1" What is the To par of the player with a Finish of T20?,"SELECT to_par FROM table_name_67 WHERE finish = ""t20""" Who was the rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive?,"SELECT rookie FROM table_name_6 WHERE defensive = ""matt vinc"" AND offensive = ""pat maddalena""" "On what surface was the score in the final 0–6, 4–6?","SELECT surface FROM table_name_47 WHERE score_in_the_final = ""0–6, 4–6""" What is the username of the current official Facebook presence of current legislator Todd Young?,SELECT T1.facebook FROM `social-media` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Todd Young' What is the rank for more than 120.44 points in East Germany and a SP+FS of 3?,"SELECT COUNT(rank) FROM table_name_21 WHERE points > 120.44 AND nation = ""east germany"" AND sp + fs = 3" What is the Place associated with Cuba?,"SELECT place FROM table_name_49 WHERE nation = ""cuba""" "Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?","SELECT second_member FROM table_name_3 WHERE first_member = ""sir rowland hill, bt"" AND second_party = ""conservative""" "What is the Total Apps when League Cup Apps is 0 (1), and position is df?","SELECT total_apps FROM table_name_55 WHERE league_cup_apps = ""0 (1)"" AND position = ""df""" What is the ID of the university that has only 1% of international students between 2011 to 2015?,SELECT university_id FROM university_year WHERE pct_international_students = 1 AND year BETWEEN 2011 AND 2015 What was the total attendance in week 8?,SELECT COUNT(attendance) FROM table_name_96 WHERE week = 8 What category has a year after 2004?,SELECT category FROM table_name_33 WHERE year > 2004 "what is the time when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi?","SELECT time FROM table_name_20 WHERE laps < 21 AND manufacturer = ""aprilia"" AND grid < 17 AND rider = ""thomas luthi""" List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif',SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif' Which direction do the majority of the trains are running?,SELECT direction FROM trains GROUP BY direction ORDER BY COUNT(id) DESC What Away Team's venue is Arden Street Oval?,"SELECT away_team FROM table_name_45 WHERE venue = ""arden street oval""" "What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1?",SELECT MAX(top_10) FROM table_name_62 WHERE top_25 = 4 AND top_5 > 1 "Among customers with IDs from 1 to 100, what is the highest price of products they purchased?",SELECT T1.Price FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.CustomerID BETWEEN 1 AND 100 ORDER BY T1.Price DESC LIMIT 1 How many teenagers are working as Machine-op-inspct?,SELECT COUNT(ID) teenager_number FROM Customers WHERE OCCUPATION = 'Machine-op-inspct' AND age >= 13 AND age <= 19 What are the cost prices of large burnished copper?,SELECT T2.ps_supplycost FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T1.p_type = 'LARGE BURNISHED COPPER' "Which player debuted before 1943, played for the club in 1942, played less than 12 games, and scored less than 11 goals?","SELECT player FROM table_name_27 WHERE debut_year < 1943 AND games < 12 AND goals < 11 AND years_at_club = ""1942""" What is the division for the season earlier than 2004?,SELECT division FROM table_name_60 WHERE season < 2004 What are the total order quantities of photo products?,"SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = ""photo""" "What is the Place when the score is less than 71, and Country is zimbabwe?","SELECT place FROM table_name_86 WHERE score < 71 AND country = ""zimbabwe""" Who directed season 1?,SELECT directed_by FROM table_18481791_3 WHERE no_in_season = 1 When is the latest game the bills had 21 first downs,SELECT MIN(game) FROM table_16028459_2 WHERE bills_first_downs = 21 Which program has 3.5 years?,SELECT program FROM table_name_35 WHERE duration__years_ = 3.5 What is the goals against listed when the goals scored is 30?,SELECT goals_against FROM table_28848697_4 WHERE goals_scored = 30 What is the date assigned from and of the staff id 1?,"SELECT date_assigned_from FROM Staff_Department_Assignments WHERE staff_id = 1" Find the type and weight of the youngest pet.,"SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1" What are the names of all courses that have some students enrolled?,SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id What region goes along with January 1974?,"SELECT region FROM table_name_93 WHERE date = ""january 1974""" When was the game at Gillette Stadium that ended in a final score of 30-17?,"SELECT date FROM table_name_37 WHERE final_score = ""30-17"" AND stadium = ""gillette stadium""" "Of the teams that lost 5 games, what is the highest number of wins?",SELECT MAX(w) FROM table_17012578_37 WHERE l = 5 What is the capital city of the country that has the percentage of Armenian speakers over 90%?,SELECT T1.Capital FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Armenian' AND T2.Percentage > 90 What is the Average for South Carolina with an Interview less than 9.626?,"SELECT SUM(average) FROM table_name_21 WHERE state = ""south carolina"" AND interview < 9.626" at least how many times was Pierre Vermeulen at a game?,"SELECT MIN(appearances¹) FROM table_24565004_22 WHERE name = ""Pierre Vermeulen""" What is the name of the Outfielder that was picked prior to Pick 42?,"SELECT player FROM table_name_63 WHERE position = ""outfielder"" AND pick < 42" How many cable channels have callsign CBFT-DT?,"SELECT COUNT(cable_channel) FROM table_name_38 WHERE call_sign = ""cbft-dt""" "Find the start and end dates of detentions of teachers with last name ""Schultz"".","SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = ""Schultz""" What are the distinct president votes on 08/30/2015?,"SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = ""08/30/2015""" how many games in 1871 | Do you mean the number of home games in year 1871? | yes sir,SELECT count ( * ) FROM home_game where year = 1871 "Who are the members of the club named ""Hopkins Student Enterprises""? Show the last name.","SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" Who are all hosts when men's singles is Ma Wenge?,"SELECT host FROM table_28211988_1 WHERE mens_singles = ""Ma Wenge""" The canadian airdate of 11 february 2008 applied to what series number?,"SELECT COUNT(no_in_series) FROM table_10935205_1 WHERE canadian_airdate = ""11 February 2008""" which train name arrives in lonavla at 17:45,"SELECT train_name FROM table_29301050_1 WHERE arrival_lonavla = ""17:45""" How many members are there?,SELECT count(*) FROM member List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.,SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security' "And what is the organization ids detailed as ""quo""?",SELECT organisation_id FROM Organisations where organisation_details = 'quo' Where was game number 55 played?,SELECT location_attendance FROM table_23248940_9 WHERE game = 55 How many seasons has UPS sponsored a car with a number larger than 17?,"SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = ""ups""" "Provide the full name of all the actors of the film ""Ending Crowds"".","SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'ENDING CROWDS'" Who are all the directors?,SELECT DISTINCT directed_by FROM film "What Result has a Location of atlanta, and Rank smaller than 4?","SELECT AVG(result) FROM table_name_11 WHERE location = ""atlanta"" AND rank < 4" What was the internet explorer % when firefox was 24.98%?,"SELECT internet_explorer FROM table_name_47 WHERE firefox = ""24.98%""" "What is Record, when Location Attendance is ""TD Banknorth Garden 18,624""?","SELECT record FROM table_name_17 WHERE location_attendance = ""td banknorth garden 18,624""" Show all calendar dates and day Numbers.,"SELECT calendar_date , day_Number FROM Ref_calendar" What country had 20% imports from russia?,"SELECT country FROM table_21690339_1 WHERE _percentage_of_imports_from_russia = ""20%""" Give the full name of the actor who acted the most in drama movies?,"SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T2.film_id) AS num FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film_category AS T3 ON T2.film_id = T3.film_id WHERE T3.category_id = 7 GROUP BY T1.first_name, T1.last_name ) AS T ORDER BY T.num DESC LIMIT 1" What was Melbourne's score when they were the home team?,"SELECT home_team AS score FROM table_name_37 WHERE home_team = ""melbourne""" Please show the nominee who has been nominated the greatest number of times.,SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 How many assets can each parts be used in? List the part name and the number.,"SELECT T1.part_name , count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name" what is the name for the smallest amount of donation,SELECT donator_name FROM endowment ORDER BY amount ASC LIMIT 1 List all document ids and receipt dates of documents.,"SELECT document_id , receipt_date FROM Documents;" Name the least podiums for 9th position,"SELECT MIN(podiums) FROM table_25375093_1 WHERE position = ""9th""" What drama role does she play in 1973?,"SELECT role FROM table_name_57 WHERE genre = ""drama"" AND year = 1973" "Where are the locations where the product ""810"" is stored?",SELECT T2.Name FROM ProductInventory AS T1 INNER JOIN Location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.ProductID = 810 Find the name of amenity that is the most common in all dorms.,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1 In how many rounds of the draft was there a college from Georgia involved?,"SELECT COUNT(round) FROM table_name_94 WHERE college = ""georgia""" "What are the names of products with category ""Spices""?","SELECT product_name FROM products WHERE product_category_code = ""Spices""" What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?,"SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" What's the original airdate of the episode directed by Pete Travis?,"SELECT original_airdate FROM table_12919003_3 WHERE director = ""Pete Travis""" What player in the United States had a total of 286 and won in 2003?,"SELECT player FROM table_name_78 WHERE country = ""united states"" AND total = 286 AND year_s__won = ""2003""" Describe any five matches IDs that reached over ID 20.,SELECT Match_Id FROM Ball_by_Ball WHERE Over_Id = 20 GROUP BY Match_Id LIMIT 5 "For island area less than 200, list the island name and city it belongs to.","SELECT DISTINCT T3.Name, T1.Name FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T3.Area < 200" What is the name of the away team who played Footscray?,"SELECT away_team FROM table_name_23 WHERE home_team = ""footscray""" What are the first names and birth dates of players from the USA?,"SELECT first_name , birth_date FROM players WHERE country_code = 'USA'" Which Opponent has a Series of bruins lead 2–1?,"SELECT opponent FROM table_name_91 WHERE series = ""bruins lead 2–1""" What player was place of t1 in To Par and had a score of 70-73-69=212?,"SELECT to_par FROM table_name_81 WHERE place = ""t1"" AND score = 70 - 73 - 69 = 212" Name the 2012 for 2011 being 1r,"SELECT 2012 FROM table_name_5 WHERE 2011 = ""1r""" Name the city of license when founded was may 1995,"SELECT city_of_license FROM table_name_92 WHERE founded = ""may 1995""" Find the total passengers of station id 1 and 2?,"SELECT Total_Passengers FROM station where station_id = ""1"" or station_id = ""2""" Give me all the zipcodes,SELECT zip_postcode FROM addresses "Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?","SELECT head_coach FROM table_name_34 WHERE shirt_sponsor = ""karstadt quelle versicherungen""" "How many laps for robin montgomerie-charrington, and a Grid smaller than 15?","SELECT COUNT(laps) FROM table_name_18 WHERE driver = ""robin montgomerie-charrington"" AND grid < 15" When did the staff member Janessa Sawayn leave the company?,"SELECT date_left_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" How many customers have the first name Abigail?,SELECT COUNT(CustomerID) FROM Customers WHERE FirstName = 'Abigail' What is the original air date for episode graeme clifford directed and lindsay sturman wrote?,"SELECT original_air_date FROM table_28859177_3 WHERE directed_by = ""Graeme Clifford"" AND written_by = ""Lindsay Sturman""" Can you tell me the average Total that has the To par of 15?,SELECT AVG(total) FROM table_name_36 WHERE to_par = 15 Can you please provide the author id for the author that teaches the Advanced Database course?,"SELECT author_id from Courses where course_name = ""advanced database""" Which region is Yao Ming from?,SELECT T1.region_name 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 T3.full_name = 'Yao Ming' Thank you! Can you please show me a list of all of the mill names that were built by Frank Lloyd Wright?,SELECT T2.name FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id where T1.name = 'Frank Lloyd Wright' List all the explanations about object classes of all the images with an x and y coordinate of 0.,SELECT T1.OBJ_CLASS FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.X = 0 AND T2.Y = 0 GROUP BY T1.OBJ_CLASS What are the songs in volumes that have resulted in a nomination at music festivals?,"SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = ""Nominated""" What is the lowest salary? who did earn it,SELECT * from employees order by salary limit 1 "Which Tankers have a Hazmat of –, and Platforms of –, and a Staffing of volunteer?","SELECT tankers FROM table_name_9 WHERE hazmat = ""–"" AND platforms = ""–"" AND staffing = ""volunteer""" List the procedures received by Emmy Waelchi.,SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Emmy' AND T1.last = 'Waelchi' What is the league established before 1930 with the rayo vallecano club?,"SELECT league FROM table_name_26 WHERE established < 1930 AND club = ""rayo vallecano""" When batavo is the main sponsor and olympikus is the kit manufacturer who are the minor sponsors?,"SELECT minor_sponsors FROM table_187239_1 WHERE kit_manufacturer = ""Olympikus"" AND main_sponsor = ""Batavo""" What year was transamerica field built in?,"SELECT year_built FROM table_name_10 WHERE venue = ""transamerica field""" Name the candidates for massachusetts 8,"SELECT candidates FROM table_1341884_23 WHERE district = ""Massachusetts 8""" What was the earliest year that Scuderia Ferrari was an entrant with 0 points?,"SELECT MIN(year) FROM table_name_88 WHERE points = ""0"" AND entrant = ""scuderia ferrari""" Name the average cuts for top-25 more than 13 and top-5 less than 11,SELECT AVG(cuts_made) FROM table_name_5 WHERE top_25 > 13 AND top_5 < 11 What is the Home team score for the Lake Oval Venue?,"SELECT home_team AS score FROM table_name_7 WHERE venue = ""lake oval""" "Which monarch assumed office on December 15, 1876?","SELECT monarch FROM table_name_6 WHERE assumed_office = ""december 15, 1876""" and how many stadiums are there whose capacity is smaller than the average capacity?,SELECT count ( * ) FROM stadium where capacity < ( SELECT avg ( capacity ) FROM stadium ) "Among customers named Kate, who has the highest quantity?","SELECT T2.FirstName, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Kate' ORDER BY T1.Quantity DESC LIMIT 1" What's the release date in the 1.1.10 release?,"SELECT release AS date FROM table_28540539_2 WHERE release = ""1.1.10""" What is the name of the publisher that has published the most puzzle games?,"SELECT T.publisher_name FROM ( SELECT T3.publisher_name, COUNT(DISTINCT T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' GROUP BY T3.publisher_name ORDER BY COUNT(DISTINCT T1.id) DESC LIMIT 1 ) t" Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.,"SELECT T2.Name , T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name ASC" Show the names of members and the decoration themes they have.,"SELECT T1.Name , T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID" How many matches were played when there was 1 draw and 1 win?,"SELECT matches FROM table_name_92 WHERE draws = ""1"" AND wins = ""1""" Find the id of users who are followed by Mary or Susan.,"SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" OR T1.name = ""Susan""" What is the Sr. number of Banikhet Dalhouse Khajiar?,"SELECT MAX(sr_no) FROM table_26036389_1 WHERE name_of_road = ""Banikhet Dalhouse Khajiar""" What is the average latitude and longitude in San Jose?,"SELECT avg(lat) , avg(long) FROM station WHERE city = ""San Jose""" Where is the team that is managed by richard barnwell from?,"SELECT location FROM table_27409644_1 WHERE manager = ""Richard Barnwell""" List the names and emails of customers who payed by Visa card.,"SELECT customer_email , customer_name FROM customers WHERE payment_method = 'Visa'" What is the category Anuya Bhagvath was nominated for at vijay award?,"SELECT ceremony FROM table_name_39 WHERE award = ""vijay award"" AND outcome = ""nominated"" AND name = ""anuya bhagvath""" Return the version numbers and template type codes of templates with a version number greater than 5.,"SELECT version_number , template_type_code FROM Templates WHERE version_number > 5" "Which owner owns the most dogs? List the owner id, first name and last name.","SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1" What was the score on march 11?,"SELECT score FROM table_name_50 WHERE date = ""march 11""" How many countries in this table?,SELECT count ( distinct country ) FROM mountain How many accounts are there?,SELECT count(*) FROM Accounts Name the young rider classification for giuseppe saronni at stage 6,"SELECT young_rider_classification FROM table_name_16 WHERE general_classification = ""giuseppe saronni"" AND stage = ""6""" "Which department has the highest average student GPA, and what is the average gpa?","SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1" "How many games have a March of 19, and Points smaller than 83?",SELECT COUNT(game) FROM table_name_50 WHERE march = 19 AND points < 83 Which Country has a Year(s) won of 1963?,"SELECT country FROM table_name_62 WHERE year_s__won = ""1963""" What was the game when Houston was the home team and the result is 106-104?,"SELECT game FROM table_name_49 WHERE home_team = ""houston"" AND result = ""106-104""" What is that person's name?,SELECT name FROM people ORDER BY Height DESC LIMIT 1 What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?,SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport' List the names and the locations that the enzymes can make an effect.,"SELECT name , LOCATION FROM enzyme" Who has the high assists when 50-26 is the record?,"SELECT high_assists FROM table_23284271_10 WHERE record = ""50-26""" list out the color code for all the product name,"SELECT color_code, product_name FROM products" What is the shipping agent code of shipping agent UPS?,"SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = ""UPS"";" What are the details for the customer with at least 3 events?,SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 3 How many students who have never been absent from school?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 0 What school or club team did the player chosen for the Sacramento Monarchs play for?,"SELECT school_club_team FROM table_name_94 WHERE wnba_team = ""sacramento monarchs""" What are the product names with average product price smaller than 1000000?,SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING AVG(Product_Price) < 1000000 How many female students have enlisted for the Army?,"SELECT SUM(IIF(T3.name IS NULL, 1, 0)) AS ""result"" FROM enlist AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T1.organ = 'army'" Who won Division Southwest when Madžari Solidarnost won Division North?,"SELECT division_southwest FROM table_name_4 WHERE division_north = ""madžari solidarnost""" How many races was Loki in?,"SELECT COUNT(race_number) FROM table_25594888_1 WHERE yacht = ""Loki""" "List all countries with negative growth in population. State the country, population and growth.","SELECT T1.Name, T1.Population, T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T2.Population_Growth < 0" "Who was the actor who was portraying ""Alex Brown"" and has been credited?",SELECT T1.name FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id WHERE T2.role = 'Alex Brown' AND T2.credited = 'true' Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. ,"SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = ""96.9%""" "What is Date, when Away Team is ""Brentford""?","SELECT date FROM table_name_62 WHERE away_team = ""brentford""" How many physicians are there in total?,select count ( * ) from Physician "Show the names of all the employees with role ""HR"".","SELECT employee_name FROM Employees WHERE role_code = ""HR""" How many Heats have a Name of miguel molina?,"SELECT COUNT(heat) FROM table_name_39 WHERE name = ""miguel molina""" What's the language in the school teaching grades 4-12?,"SELECT language FROM table_1930857_1 WHERE grades = ""4-12""" "What is the total number of Year, when Award is ""Vamsi Berkley Award"", and when Category is ""Best Actor""?","SELECT COUNT(year) FROM table_name_18 WHERE award = ""vamsi berkley award"" AND category = ""best actor""" Show the most common headquarter for companies.,SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1 Name the circuit for france and portugal,"SELECT circuit FROM table_2446333_2 WHERE main_winner = ""France"" AND country = ""Portugal""" What's the lowest rating with 11.2 million viewers?,"SELECT MIN(ranking) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = ""11.2""" How many type of jobs do they have?,SELECT count(DISTINCT job) FROM Person Name the least tied,SELECT MIN(tied) FROM table_15829930_5 What location and it's attendance was the game against the cavaliers?,"SELECT location_attendance FROM table_23248910_6 WHERE team = ""Cavaliers""" List the name and gender for all artists who released songs in March.,"SELECT T1.artist_name , T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Mar%""" How many students have cat allergies?,"SELECT count(*) FROM Has_allergy WHERE Allergy = ""Cat""" What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?,"SELECT 1985 FROM table_30133_3 WHERE gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ = ""369.38""" Name the owners for prairie public,"SELECT COUNT(owner) FROM table_14623167_1 WHERE branding = ""Prairie Public""" How many countries in Europe & Central Asia uses Danish krone as its currency? List the full names of those coutnries.,SELECT COUNT(longname) FROM country WHERE region = 'Europe & Central Asia' AND currencyunit = 'Danish krone' UNION SELECT longname FROM country WHERE currencyunit = 'Danish krone' AND region = 'Europe & Central Asia' Who are all the players who've bowled more than 4969 balls?,SELECT name FROM table_2482547_5 WHERE balls_bowled = 4969 can you show me a list of teacher class room?,SELECT Classroom FROM teachers How many establishments have an inspection score of no more than 50?,SELECT COUNT(DISTINCT business_id) FROM inspections WHERE score < 50 What district is represented by a Republican Appropriations Committee?,"SELECT district FROM table_12679326_1 WHERE party = ""Republican"" AND committee = ""Appropriations""" "Describe name, birth country, role in episode and age in 2022 of the oldest crew member..","SELECT T1.name, T1.birth_place, T2.role, 2022 - CAST(SUBSTR(T1.birthdate, 1, 4) AS int) AS age FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.birthdate IS NOT NULL ORDER BY T1.birthdate LIMIT 1;" Find all the songs that do not have a back vocal.,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""back""" What home team played against St Kilda?,"SELECT home_team FROM table_name_68 WHERE away_team = ""st kilda""" Write down the player names and IDs of the English umpires.,"SELECT T1.Umpire_Name, T1.Umpire_Id FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'England'" "Ok, do you know the ID number for the department? | Did you want the ID numbers for the students in the Civil Eng. department? | please","SELECT ID FROM student WHERE dept_name = ""Civil Eng.""" "List the title of all Cartoons showed on TV Channel with series name ""Sky Radio"".","SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";" What is the time of sampling of the solution with the highest sampling time? Indicate the id number of the solution.,"SELECT DISTINCT SampledAt, SolutionId FROM Method WHERE SampledAt = ( SELECT MAX(SampledAt) FROM Method )" what's the price for Wiley's publication? | Which of Wiley's publications do you want to know the price for? | the one of june 2006,"SELECT T2.Price FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Publisher = ""Wiley"" and T2.Publication_Date = ""June 2006""" what about white?,SELECT Name FROM city ORDER BY white DESC LIMIT 1 Return the total number of distinct customers.,SELECT count(*) FROM customers What is every value on Thursday August 25 for rank 3?,SELECT thurs_25_aug FROM table_30058355_3 WHERE rank = 3 What event was Donald Ouimet involved?,"SELECT event FROM table_name_41 WHERE opponent = ""donald ouimet""" How much is the money ($) when the score is 67-71-72-72=282?,SELECT COUNT(money___) AS $__ FROM table_name_97 WHERE score = 67 - 71 - 72 - 72 = 282 Find the names of scientists who are not working on the project with the highest hours.,SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) What is the name and date of the most recent race?,"SELECT name , date FROM races ORDER BY date DESC LIMIT 1" What percent of the parliamentary election did the pensioners party receive,"SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = ""Pensioners Party""" Show the names and ids of tourist attractions that are visited at least two times.,"SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2" What is the to par for Australia and a 73-69-71=213 score?,"SELECT to_par FROM table_name_43 WHERE country = ""australia"" AND score = 73 - 69 - 71 = 213" When aaron brooks (6) had the highest amount of assists what is the date?,"SELECT date FROM table_17288825_6 WHERE high_assists = ""Aaron Brooks (6)""" What is the 3rd ratio for tag number 1386-000-017 and input splines of 26?,"SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = ""1386-000-017""" Who is the away team that tottenham hotspur played?,"SELECT away_team FROM table_name_85 WHERE home_team = ""tottenham hotspur""" What are the song names and ratings of those songs?,"SELECT song_name,rating FROM song WHERE resolution > = 1080" How many cars used number 48?,SELECT COUNT(engine) FROM table_15491596_1 WHERE no = 48 How many incumbents are there in the georgia 8 district when the party is democratic?,"SELECT COUNT(incumbent) FROM table_19753079_13 WHERE party = ""Democratic"" AND district = ""Georgia 8""" What are the title and director of the films without any schedule?,"SELECT title , directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)" "Which Score has a Place of t5, and a Country of united states?","SELECT score FROM table_name_30 WHERE place = ""t5"" AND country = ""united states""" "What is the most mintage with common eider as the theme, and the year less than 2008?","SELECT MAX(mintage) FROM table_name_57 WHERE theme = ""common eider"" AND year < 2008" "Who appointed the representative that had a Presentation of Credentials on March 25, 1976?","SELECT appointed_by FROM table_name_72 WHERE presentation_of_credentials = ""march 25, 1976""" what are all the people where the entries is peugeot sport polska,"SELECT driver FROM table_28046929_2 WHERE entrant = ""Peugeot Sport Polska""" Great! Can you tell me which bike id has the most trips within the area with the zipcode 94002?,SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT ( * ) DESC LIMIT 1 Find name of students in the Math department,select name from student where dept_name = 'Math' Show all the distinct product names with price higher than the average.,SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS) State the final station of bike id 13. Which city was it at?,"SELECT T2.end_station_id, T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T1.name = T2.end_station_name WHERE T2.bike_id = 13 ORDER BY T2.end_date DESC LIMIT 1" Was the University of Southern California Signed?,"SELECT signed FROM table_name_50 WHERE school = ""university of southern california""" what is the class when the identifier is cjbc-1-fm?,"SELECT class FROM table_name_60 WHERE identifier = ""cjbc-1-fm""" Which order number has the highest unit price?,"SELECT OrderNumber FROM `Sales Orders` WHERE REPLACE(`Unit Price`, ',', '') = ( SELECT REPLACE(`Unit Price`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1 )" List all the cities and provinces located at the rivers that flows to Atlantic Ocean.,"SELECT T1.Name, T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Sea = 'Atlantic Ocean'" "Among the users whose fan is medium, how many users received high compliments from other users.",SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T2.number_of_compliments = 'High' AND T1.user_fans = 'Medium' How many viewers did Episode 5 have?,"SELECT viewers_millions_ FROM table_12919003_2 WHERE episode = ""episode 5""" How much is the salary for employee id 163?,SELECT salary FROM employees WHERE employee_id = 163 What was the attendance on March 17?,"SELECT location_attendance FROM table_11961582_7 WHERE date = ""March 17""" Show the city and the number of branches opened before 2010 for each city.,"SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city" "What is the age of the oldest active user that participated in the event held on 5/6/2016 at coordinates 121, 31?","SELECT T3.age FROM app_events AS T1 INNER JOIN events_relevant AS T2 ON T1.event_id = T2.event_id INNER JOIN gender_age AS T3 ON T2.device_id = T3.device_id WHERE T1.is_active = 1 AND T2.longitude = 121 AND T2.latitude = 31 AND SUBSTR(T2.timestamp, 1, 10) = '2016-05-06' ORDER BY T3.age DESC LIMIT 1" What school joined the conference in 1996-97 and left it in 2011-12?,"SELECT institution FROM table_262560_2 WHERE joined = ""1996-97"" AND left = ""2011-12""" "Hmm, I want to know the states of the schools with the top 3 largest size.",SELECT state FROM college ORDER BY enr DESC LIMIT 3 What institution is located in St. Peter? ,"SELECT institution FROM table_261913_1 WHERE location__all_in_minnesota_ = ""St. Peter""" Which date has a score of 2-1?,"SELECT date FROM table_name_6 WHERE score = ""2-1""" what is the frequency when the format is contemporary christian music?,"SELECT frequency FROM table_name_68 WHERE format = ""contemporary christian music""" What is the designation for the m.tech (e.c.e) qualification?,"SELECT designation FROM table_name_86 WHERE qualification = ""m.tech (e.c.e)""" Which Qualifying score had hoop as an apparatus?,"SELECT score_qualifying FROM table_name_94 WHERE apparatus = ""hoop""" What are the titles of all the albums alphabetically ascending?,SELECT title FROM albums ORDER BY title; In which district is the incumbent Carl Vinson?,"SELECT district FROM table_1341973_11 WHERE incumbent = ""Carl Vinson""" "What place has E as the to par, with Mark Wiebe as the player?","SELECT place FROM table_name_3 WHERE to_par = ""e"" AND player = ""mark wiebe""" What is the nationality of Zaha Hadid?,SELECT nationality FROM architect WHERE name = 'Zaha Hadid' How many wins are related to events of 7 and more than 2 top-10s?,SELECT COUNT(wins) FROM table_name_95 WHERE events = 7 AND top_10 > 2 Show me the owner of the channel with the highest rating.,SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1 What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?,SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) "What Title has a Termination of Mission for August 13, 1854?","SELECT title FROM table_name_93 WHERE termination_of_mission = ""august 13, 1854""" Which composition has an issue price of $99.00?,"SELECT composition FROM table_name_79 WHERE issue_price = ""$99.00""" "Who is the main actor in the ""Pirates of the Caribbean: At World's End"" movie?",SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' ORDER BY T2.cast_order LIMIT 1 What is S.K. Ho's Country?,"SELECT country FROM table_name_58 WHERE player = ""s.k. ho""" what is focus length of id 3?,SELECT focal_length_mm FROM camera_lens where id = 3 Is SuperSport Park located at Centurion?,SELECT T2.City_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id WHERE T1.Venue_Name LIKE 'St George%' What are the names of the storms that affected Denmark?,SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' Tell me what the notes are for South Australia ,"SELECT notes FROM table_1000181_1 WHERE current_slogan = ""SOUTH AUSTRALIA""" WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?,"SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = ""joe colborne""" Name the nominated work for 1996 and festival of black maria film and video festival,"SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = ""black maria film and video festival""" Can you list all the unique fault log entry ids?,SELECT distinct fault_log_entry_id FROM Fault_Log Who is the person that has no friend?,SELECT name FROM person EXCEPT SELECT name FROM PersonFriend What day did South Melbourne play as the away team?,"SELECT date FROM table_name_82 WHERE away_team = ""south melbourne""" How many friends do Alice and Bob have combined ?,"SELECT count ( * ) FROM PersonFriend WHERE name = ""Alice"" OR name = ""Bob""" In which tournament was Ian Baker-Finch the runner-up?,"SELECT tournament FROM table_name_27 WHERE runner_s__up = ""ian baker-finch""" Find the names of females who are friends with Zach,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female' Tell me the highest total when the horse is spender s,"SELECT MAX(total) FROM table_name_99 WHERE horse = ""spender s""" "Which Goals against has Wins of 13, and Goals for larger than 42, and more than 9 Losses?",SELECT AVG(goals_against) FROM table_name_45 WHERE wins = 13 AND goals_for > 42 AND losses > 9 "What is the frequency for I/O bus of DMI, voltage of 0.725–1.4v and part cn80617004458ab?","SELECT frequency FROM table_name_4 WHERE i_o_bus = ""dmi"" AND voltage = ""0.725–1.4v"" AND part_number_s_ = ""cn80617004458ab""" Which author has written the most papers? Find his or her last name.,"SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1" "what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd?","SELECT record FROM table_name_51 WHERE year > 1992 AND manager = ""tom kotchman"" AND finish = ""2nd""" What is the number of the game that was played on January 19?,"SELECT MAX(game) FROM table_17288845_7 WHERE date = ""January 19""" How many incidents in which the subject's weapon was a vehicle were investigated by a female officer?,SELECT COUNT(T1.case_number) FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_weapon = 'Vehicle' AND T2.gender = 'F' List the types of competition that have at most five competitions of that type.,SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 5 What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?,"SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus"" OR How_to_Get_There = ""walk""" What is the height of the mountain on which river 'Lech' is located? Please also provide its longitude and latitude.,"SELECT T1.Height, T1.Latitude, T1.Longitude FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN located AS T4 ON T4.Province = T3.Name WHERE T4.River = 'Lech'" "What are the different stage positions for all musicians whose first name is ""Solveig""?","SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = ""Solveig""" What is the Instagram name of the legislator whose birthday was on 8/24/1952?,SELECT T1.instagram FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.birthday_bio = '1952-08-24' Show the authors of submissions and the acceptance results of their submissions.,"SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID" Are all stations with zip code 94107 located in San Francisco city?,SELECT DISTINCT T2.city FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.zip_code = 94107 What is the Record when antonio davis (14) had the high rebounds?,"SELECT record FROM table_name_37 WHERE high_rebounds = ""antonio davis (14)""" Please show me the list of the department,SELECT distinct department_id from employees "Show me the project id | Do you mean you wanna see the whole project id of the table ""Projects""? | Yes",select Project_ID from Projects What was round 7's lowest overall?,SELECT MIN(overall) FROM table_name_72 WHERE round = 7 Find the name of the swimmer who has the most records.,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1 Who is the color commentator for ESPN from 1990 to 1992?,"SELECT color_commentator_s_ FROM table_name_70 WHERE network = ""espn""" "List the ids of the problems FROM the product ""voluptatem"" that are reported after 1995?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"" AND T1.date_problem_reported > ""1995""" Find the claim id and claim date of the claim that incurred the most settlement count. Also tell me the count.,"SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1" What are the ages of everyone voting in the Spring election cycle ?,"SELECT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T2.Election_Cycle = ""Spring""" In how many businesses with the ambience_trendy attribute?,"SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name = 'ambience_trendy' AND T2.attribute_value IN ('none', 'no', 'false')" Identify the publisher of the book Girls' Night In.,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'Girls'' Night In' Who directed the episode that had 1.48 million viewers in the U.S.?,"SELECT directed_by FROM table_29569969_2 WHERE us_viewers__millions_ = ""1.48""" "List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.","SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC" "When Mark Cavendish wins sprint classification and Maarten Tjallingii wins most courageous, who wins youth classification?","SELECT youth_classification FROM table_25055040_22 WHERE sprint_classification = ""Mark Cavendish"" AND most_courageous = ""Maarten Tjallingii""" Name the author for peri and april 2010,"SELECT author FROM table_1620397_2 WHERE featuring = ""Peri"" AND released = ""April 2010""" Which Car numbers have a First used of currently on order?,"SELECT car_numbers FROM table_name_37 WHERE first_used = ""currently on order""" List the race class with at least two races.,SELECT CLASS FROM race GROUP BY CLASS HAVING count(*) >= 2 How many total gold are less than 4?,SELECT COUNT(gold) FROM table_name_14 WHERE total < 4 List the names of representatives that have not participated in elections listed here.,SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election) Which episodes in season 3 were written by Mark Drop?,"SELECT Season AS episode__number FROM table_2623498_4 WHERE written_by = ""Mark Drop""" Find the id of courses which are registered or attended by student whose id is 121?,SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121 What Country is Catalogue # ASW 50248 (724385024825) from?,"SELECT country FROM table_name_77 WHERE catalogue__number = ""asw 50248 (724385024825)""" What is the Tie no when Scarborough is the Home team?,"SELECT tie_no FROM table_name_98 WHERE home_team = ""scarborough""" What was the double's performance data from the Canada Masters tournament in 2008?,"SELECT 2008 FROM table_name_5 WHERE tournament = ""canada masters""" "Among the universities with a score in teaching of over 90 in 2011, what is the percentage of those in the United States of America?",SELECT CAST(SUM(CASE WHEN T4.country_name = 'United States of America' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id INNER JOIN country AS T4 ON T4.id = T3.country_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90 "How many invoices were billed from Chicago, IL?","SELECT COUNT(*) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL"";" Which Team 2 has a Team 1 of vardar?,"SELECT team_2 FROM table_name_76 WHERE team_1 = ""vardar""" Name the stadium with host team of san diego chargers and final score of 23-45,"SELECT stadium FROM table_name_46 WHERE host_team = ""san diego chargers"" AND final_score = ""23-45""" When 70 is the total points what is the rr4 points?,SELECT rr4_pts FROM table_21489362_2 WHERE total_pts = 70 Who was the opponent on carpet in a final?,"SELECT opponent_in_final FROM table_name_55 WHERE surface = ""carpet""" List all the organisations of students who filed for bankcrupcy.,SELECT T2.organ FROM filed_for_bankrupcy AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name Which Location Attendance has a Record of 11–34?,"SELECT location_attendance FROM table_name_27 WHERE record = ""11–34""" What companies are in the banking industry?,"SELECT company from company where main_industry = ""Banking""" "Sweet! Can you update this list to show what the maximum product price is for both Clothes and Hardware, and include the minimum product price for each?","SELECT product_type_code , max ( product_price ) , min ( product_price ) FROM products GROUP BY product_type_code" Name the Date which has Opponents in the final of patrick mcenroe tim wilkison?,"SELECT date FROM table_name_12 WHERE opponents_in_the_final = ""patrick mcenroe tim wilkison""" what is the venue when the result is 2nd and extra is 4 x 100 m relay?,"SELECT venue FROM table_name_30 WHERE result = ""2nd"" AND extra = ""4 x 100 m relay""" What is the age of the oldest Marketing Specialist by 12/31/2015 and what is his/her hourly rate?,"SELECT 2015 - STRFTIME('%Y', T1.BirthDate), T2.Rate FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle = 'Marketing Specialist' ORDER BY 2015 - STRFTIME('%Y', T1.BirthDate) DESC LIMIT 1" How many schools have students playing in goalie and mid-field positions?,SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid') how many albums are released by artist with 'Led' in their name?,SELECT count ( * ) FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' Which student visited restaurant most often? List student's first name and last name.,"SELECT Student.Fname , Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY count(*) DESC LIMIT 1;" Who has the par score of 70-76-68-214?,"SELECT to_par FROM table_name_23 WHERE score = ""70-76-68-214""" Which university is in Los Angeles county and opened after 1950?,"SELECT campus FROM campuses WHERE county = ""Los Angeles"" AND YEAR > 1950" What is the gender of the user who posted a tweet with ID tw-682714583044243456?,SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.TweetID = 'tw-682714583044243456' What was the record on April 1?,"SELECT record FROM table_name_57 WHERE date = ""april 1""" Which building housed section ID 443? | You mean course id or section id? | Section ID,SELECT building FROM SECTION WHERE sec_id = 443 What rank is the publication the observer music monthly?,"SELECT rank FROM table_name_43 WHERE publication = ""the observer music monthly""" What is the coverage when power kw is 25kw?,"SELECT coverage FROM table_23915973_1 WHERE power_kw = ""25kW""" Show the account id with most number of transactions.,SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1 What was the away team's score of at the game of telstra stadium?,"SELECT away_team AS score FROM table_16388545_1 WHERE ground = ""Telstra Stadium""" Please show the countries and the number of climbers from each country.,"SELECT Country, COUNT(*) FROM climber GROUP BY Country" How many awards were given out in 2010 to players who attended high school in Chicago?,SELECT COUNT(T1.award) FROM awards_players AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2010 AND T2.hsCity = 'Chicago' "Among the listed cities, provide the area code of the city with the largest water area.",SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.water_area = ( SELECT MAX(water_area) FROM zip_data ) Show the name of the conductor that has conducted the most number of orchestras.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1 how many verbs have the yo form as sienta?,"SELECT COUNT(verbs) FROM table_1977630_2 WHERE yo = ""sienta""" "On what Surface was the match with a Score of 6–4, 6–3 and Runner-up Outcome played?","SELECT surface FROM table_name_30 WHERE outcome = ""runner-up"" AND score = ""6–4, 6–3""" Which venue has 2:04.22 notes?,"SELECT venue FROM table_name_19 WHERE notes = ""2:04.22""" How about the number of projects they worked before 1989-04-24 23:51:54'? | The total number of distinct projects that have some project staffs worked as a leader and worked before 1989-04-24 23:51:54' is 2 | What are other detail about those projects?,SELECT other_details FROM Project_Staff WHERE role_code = 'leader' and date_from < '1989-04-24 23:51:54' Hello! Can you provide me with a list of all of the artist names?,SELECT Name FROM artist When was he born?,SELECT Birth_Date FROM people where Name = 'Ty Conklin' What is the round when the loss came with a record of 2-4?,"SELECT round FROM table_name_78 WHERE res = ""loss"" AND record = ""2-4""" List the year in which the driver was in 1st place.,"SELECT season FROM table_25561038_1 WHERE position = ""1st""" Which Finalist has a Tournament of monte carlo?,"SELECT finalist FROM table_name_20 WHERE tournament = ""monte carlo""" Which songs are in mp3 format?,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3""" What is Astrid Gruber's email and phone number?,"SELECT email , phone FROM customers WHERE first_name = ""Astrid"" AND last_name = ""Gruber"";" What are the email addresses of the drama workshop groups with address in Alaska state?,"SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = ""Alaska""" On what date was a friendly competition and a result of 3–0?,"SELECT date FROM table_name_69 WHERE competition = ""friendly"" AND result = ""3–0""" What are the results for years after 2007?,SELECT result FROM table_name_17 WHERE year > 2007 What Time elapsed has 14 February 2011 as the Closest approach?,"SELECT time_elapsed FROM table_name_11 WHERE closest_approach = ""14 february 2011""" Namethe score for july 16,"SELECT score FROM table_17103729_8 WHERE date = ""July 16""" What shows for 2006 when 2002 is Grand Slam Tournaments?,"SELECT 2006 FROM table_name_52 WHERE 2002 = ""grand slam tournaments""" what is the maximum aircraft movements with airport being liverpool,"SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE airport = ""Liverpool""" "How many different aircrafts are there? | Do you mean different names of aircrafts? | Yes, how many different names.",SELECT count ( distinct name ) from aircraft How many neighborhoods are there in Near North Side?,SELECT SUM(CASE WHEN T1.community_area_name = 'Near North Side' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no what is the name of the countries that do not have a stadium that was opened after 2006?,SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006 What is the record when the visiting team was the Quebec Nordiques on April 22?,"SELECT record FROM table_name_26 WHERE visitor = ""quebec nordiques"" AND date = ""april 22""" Which season did the Burnaby Lakers have less than 16 points and less than 18 losses?,SELECT season FROM table_name_19 WHERE points < 16 AND losses = 18 Where's the school that Mark Fletcher is the principal of?,"SELECT city___town FROM table_1984697_53 WHERE principal = ""Mark Fletcher""" What is the Opponent on Week 11?,SELECT opponent FROM table_name_28 WHERE week = 11 what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%,"SELECT incumbent FROM table_1342292_2 WHERE candidates = ""Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%""" What are the phone numbers and email addresses of all customers who have an outstanding balance of more than 2000?,"SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;" "Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages?",SELECT CAST(COUNT(CASE WHEN T3.BreweryName = 'AJ Stephans Beverages' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.TransactionDate LIKE '2014%' "Which Pct has Years of 1957–1970, and Wins smaller than 78?","SELECT SUM(pct) FROM table_name_89 WHERE years = ""1957–1970"" AND wins < 78" what is the highest speed of the storms?,SELECT MAX ( Max_speed ) FROM storm "Find the name of the products that have the color description ""red"" and have the characteristic name ""fast"".","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""fast""" How many records are there at the War Memorial Stadium?,"SELECT COUNT(record) FROM table_10646790_2 WHERE stadium = ""War Memorial stadium""" What is the branding for the radio with a frequency of 1150 am?,"SELECT branding FROM table_name_44 WHERE frequency = ""1150 am""" Show the date of transaction where share count is larger than 100,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 "For corpus title ""Atomium"", pick 3 words appear in the title and calculate the total occurence of these words.","SELECT T1.word, T1.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T2.pid = ( SELECT pid FROM pages WHERE title = 'Atomium' ) LIMIT 3" "How many films are there in each category? List the genre name, genre id and the count.","SELECT T2.name , T1.category_id , count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id" "What opponent had an attendance of 10,089?","SELECT opponent FROM table_name_11 WHERE attendance = ""10,089""" What was the home team's score at Windy Hill?,"SELECT home_team AS score FROM table_name_76 WHERE venue = ""windy hill""" When did the player from Hawaii play for Toronto?,"SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = ""Hawaii""" Tell me the total number of total for vovinam and bronze less than 3,"SELECT COUNT(total) FROM table_name_16 WHERE sport = ""vovinam"" AND bronze < 3" Name the highest Decile for roll more than 325 and area of warkworth,"SELECT MAX(decile) FROM table_name_70 WHERE roll > 325 AND area = ""warkworth""" Report the first name and last name of all the teachers.,"SELECT DISTINCT firstname, lastname FROM teachers" How many users who have received a low cool vote have also received at least 1 low cool vote for some of their reviews?,SELECT COUNT(DISTINCT T1.user_id) FROM Users AS T1 INNER JOIN Reviews AS T2 ON T1.user_id = T2.user_id WHERE T1.user_votes_cool = 'Low' AND T2.review_votes_cool = 'Low' Who ran under the Republican ticket when Frank H. Hiscock ran under the Progressive ticket?,"SELECT republican_ticket FROM table_name_49 WHERE progressive_ticket = ""frank h. hiscock""" What is the Nielsen ranking for Season 8?,"SELECT nielsen_ranking FROM table_name_99 WHERE season = ""season 8""" Which Lead has Katarina Radonic as Skip?,"SELECT lead FROM table_name_10 WHERE skip = ""katarina radonic""" How many points does Shawn Mceachern with less than 79 goals?,"SELECT SUM(points) FROM table_name_25 WHERE player = ""shawn mceachern"" AND goals < 79" what are the names and activities of all faculty members who participated in some activity?,"SELECT T1.fname , T1.lname , count ( * ) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID" What is the carrier of the most expensive phone?,SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1 What is the programming for mrt sobraniski kanal?,"SELECT programming FROM table_name_71 WHERE name = ""mrt sobraniski kanal""" Can you give me a number of routes per country and airline name ?,"SELECT T1.country , T1.name , count ( * ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name" Which countries have more than 90% of African? List the name of the country in full.,SELECT T2.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'African' AND T1.Percentage > 90 What is the area of the community with a population of 1209?,SELECT area_km_2 FROM table_171361_1 WHERE population = 1209 Show the name of colleges that have at least two players in descending alphabetical order.,SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC Give the details of the project with the document name 'King Book'.,"SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = ""King Book""" Calculate the average number of complaints received from New Bedford each year which are closed with explanation.,"SELECT STRFTIME('%Y', T3.`Date received`) , CAST(SUM(CASE WHEN T3.`Company response to consumer` = 'Closed with explanation' THEN 1 ELSE 0 END) AS REAL) / COUNT(T3.`Complaint ID`) AS average FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN events AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.city = 'New Bedford' GROUP BY strftime('%Y', T3.`Date received`)" Show the names of the buildings that have more than one company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 "Who is the opponent of the December 18, 1994 game?","SELECT opponent FROM table_name_90 WHERE date = ""december 18, 1994""" Please list the bad alias of all the residential areas with a median female age of over 32.,SELECT DISTINCT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.female_median_age > 32 What amenities does Smith Hall have in alphabetical order?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name Where was the location with Muirfield in Scotland?,"SELECT location FROM table_name_4 WHERE country = ""scotland"" AND name = ""muirfield""" Can you show me the name of the customer who purchased the least quantity of items?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) LIMIT 1 Name the minimum number disc for number in series for 14,"SELECT MIN(no_disc) FROM table_15430606_1 WHERE no_in_series = ""14""" What is the modern equivalent of 良州 in Hanja?,"SELECT modern_equivalent FROM table_name_17 WHERE hanja = ""良州""" "For those objects that have multiple relations, how many images have a prediction class of ""reading""?",SELECT COUNT(T1.IMG_ID) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.PRED_CLASS = 'reading' "Hmm, I want to know the seatings for all the tracks opened after 2000.",SELECT seating FROM track WHERE year_opened > 2000 List all the name of organizations in order of the date formed.,SELECT organization_name FROM organizations ORDER BY date_formed ASC What are pilots names?,SELECT distinct pilot FROM flight "Please give the title of the oldest book published by publisher ""Thomas Nelson"".",SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Thomas Nelson' ORDER BY T1.publication_date ASC LIMIT 1 What is the name on the account with the lowest balance? | The name of the account with the lowest saving balance is Weeks | What is the name on the account with the third highest saving balance?,SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid order by T2.balance desc limit 3 "What is the Goal number in Råsunda, Stockholm with a Result of 2–2?","SELECT AVG(goal) FROM table_name_80 WHERE result = ""2–2"" AND venue = ""råsunda, stockholm""" Which act's album has a name of All That You Can't Leave Behind?,"SELECT pop_act FROM table_name_58 WHERE album = ""all that you can't leave behind""" Which Drawn has Games smaller than 7?,SELECT SUM(drawn) FROM table_name_41 WHERE games < 7 how many stadium are presented on the table,SELECT COUNT ( * ) FROM stadium What was the score on April 23?,"SELECT score FROM table_name_5 WHERE date = ""april 23""" How many games did the team lose that played 7 games and has a GA of less than 27?,SELECT COUNT(losses) FROM table_name_1 WHERE games_played = 7 AND goals_against < 27 When waikaia is the electorate what is the highest by-election?,"SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = ""Waikaia""" Which league's nationality was Italy when there were 62 points?,"SELECT league FROM table_name_20 WHERE nationality = ""italy"" AND points = ""62""" How many assists does cam long average in under 132 games?,"SELECT MAX(ast_avg) FROM table_name_28 WHERE player = ""cam long"" AND games < 132" What are their first names?,SELECT T1.first_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance' Which Music has a Record label of moviebox/ speed records / music waves?,"SELECT music FROM table_name_60 WHERE record_label = ""moviebox/ speed records / music waves""" Name the to for 19 league apps,SELECT to FROM table_21220720_1 WHERE league_apps = 19 Who were the Visitor when the Nets were the Home team?,"SELECT visitor FROM table_name_7 WHERE home = ""nets""" Who was the minister for the CSV party with a present day end date?,"SELECT minister FROM table_name_43 WHERE party = ""csv"" AND end_date = ""present day""" What is the average unit price of Tokyo Traders' products?,SELECT SUM(T1.UnitPrice) / COUNT(T2.SupplierID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Tokyo Traders' What was the signed year for the Chinese name 蘇永康 who separated in 1987?,"SELECT year_signed FROM table_name_82 WHERE year_separated = ""1987"" AND chinese_name = ""蘇永康""" Find all students taught by MARROTTE KIRK. Output first and last names of students.,"SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""MARROTTE"" AND T2.lastname = ""KIRK""" "What is the most common company type, and how many are there?","SELECT TYPE , count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" How many total problems are there reported by staff ID 1?,SELECT count ( * ) FROM problems where reported_by_staff_id = 1 Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70,"SELECT MIN(grid) FROM table_name_83 WHERE time_retired = ""engine"" AND driver = ""emerson fittipaldi"" AND laps > 70" what's current club with player being nikolaos chatzivrettas,"SELECT current_club FROM table_12962773_1 WHERE player = ""Nikolaos Chatzivrettas""" "Hmm, I want to know the dates of transactions with amount bigger than 100 please.",SELECT date_of_transaction FROM TRANSACTIONS WHERE amount_of_transaction > 100 What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?,SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge' How many allergy entries are there?,SELECT count(DISTINCT allergy) FROM Allergy_type What did the home team score when South Melbourne was the away team?,"SELECT home_team AS score FROM table_name_6 WHERE away_team = ""south melbourne""" Who won the episode in which Sean Lock was Rufus's guest?,"SELECT winner FROM table_19930660_2 WHERE rufus_guest = ""Sean Lock""" Who was the opponent at the game with a result of w 14–6?,"SELECT opponent FROM table_name_60 WHERE result = ""w 14–6""" What was the away team score in the game at Arden Street Oval?,"SELECT away_team AS score FROM table_name_31 WHERE venue = ""arden street oval""" How many different genes do we have if we add those located in the plasma and in the nucleus?,"SELECT COUNT(GeneID) FROM Classification WHERE Localization IN ('plasma', 'nucleus')" "Among the english methods,please list the tokenized names of methods whose solutions need to be compiled.",SELECT NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE Lang = 'en' AND WasCompiled = 0 Name the reason for change for jonathan jennings,"SELECT COUNT(reason_for_change) FROM table_225094_4 WHERE successor = ""Jonathan Jennings""" "What is the value in 1997 when the value in 1989 is A, 1995 is QF, 1996 is 3R and the career SR is 0 / 8?","SELECT 1997 FROM table_name_63 WHERE 1989 = ""a"" AND 1995 = ""qf"" AND 1996 = ""3r"" AND career_sr = ""0 / 8""" "List the name, date and result of each battle.","SELECT name , date FROM battle" When and for what role did the youngest player appear in his first match?,"SELECT T1.Match_Date, T4.Role_Desc FROM `Match` AS T1 INNER JOIN Player_Match AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Player AS T3 ON T2.Player_Id = T3.Player_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id ORDER BY T3.DOB DESC LIMIT 1" Which is the employee with the lowest pay?,SELECT * FROM employees order by salary limit 1 Find the name of customer who has the lowest credit score.,SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 What is the total of Barangay with an area larger than 865.13?,SELECT SUM(s_barangay) FROM table_name_72 WHERE area___has__ > 865.13 What are the names of the teachers who are aged either 32 or 33?,SELECT Name FROM teacher WHERE Age = 32 OR Age = 33 WHAT IS THE ROUND FOR JAMIE ARNIEL?,"SELECT COUNT(round) FROM table_name_23 WHERE player = ""jamie arniel""" What accreditation does Hollins University have?,"SELECT accreditation FROM table_2076608_1 WHERE school = ""Hollins University""" "When the Overall is under 102, what's the round played?",SELECT round FROM table_name_74 WHERE overall < 102 What is the average total due price of products with approved status?,SELECT SUM(TotalDue) / COUNT(TotalDue) FROM PurchaseOrderHeader WHERE Status = 2 Which year has the most number of video game releases?,"SELECT T1.release_year FROM ( SELECT T.release_year, COUNT(id) FROM game_platform AS T GROUP BY T.release_year ORDER BY COUNT(T.id) DESC LIMIT 1 ) T1" "How many employees sold ""ML Road Frame-W - Yellow, 40""?","SELECT COUNT(T2.SalesPersonID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'ML Road Frame-W - Yellow, 40'" Name of the album.,"SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Billy Cobham""" What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?,"SELECT name FROM table_178242_1 WHERE channel = ""Nederland 3"" AND premiere___aired = ""17 May 2008 – 21 June 2008""" Find the average credit score of the customers who have some loan.,SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) What was the first season of the club that in 2012 was 2nd in Superettan?,"SELECT first_season FROM table_1096793_1 WHERE position_in_2012 = ""2nd in Superettan""" What are the notes of the United States?,"SELECT notes FROM table_name_31 WHERE country = ""united states""" Show the most common builder of railways.,SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1 List the total play time for 11 starts.,SELECT MAX(minutes) FROM table_25038931_1 WHERE starts = 11 "What is the title of the paper published in 2003 by an author with affiliation with Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications?","SELECT DISTINCT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications' AND T2.Year = 2003" "Return the name, location, and seating of the track that was opened in the most recent year.","SELECT name , LOCATION , seating FROM track ORDER BY year_opened DESC LIMIT 1" "How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5?","SELECT SUM(extra_points) FROM table_name_92 WHERE touchdowns = 1 AND player = ""ross kidston"" AND points < 5" What school had a team name of the Trojans?,"SELECT school FROM table_name_54 WHERE team_name = ""trojans""" What School/Club Team played in Toronto during 2012?,"SELECT school_club_team FROM table_name_43 WHERE years_in_toronto = ""2012""" When do all of John Wen's certifications expire?,"SELECT T2.CertificationExpires FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" Which player has a place of t2?,"SELECT player FROM table_name_4 WHERE place = ""t2""" Show names of shops that have more than one kind of device in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1 Name the round 1 for team event,"SELECT round_1 FROM table_18646111_13 WHERE event = ""Team""" Show the first name and last name for the customer with account name 900.,"SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""900""" "Show ids, customer ids, card type codes, card numbers for all cards.","SELECT card_id , customer_id , card_type_code , card_number FROM Customers_cards" How many attended the game with an opponent of bye?,"SELECT attendance FROM table_name_72 WHERE opponent = ""bye""" What was the largest tie when the G.P was more than 5?,SELECT MAX(ties) FROM table_name_56 WHERE gp > 5 Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?,"SELECT academic_ & _university_affairs FROM table_12113818_1 WHERE human_resources_ & _operations = ""N. Charles Hamilton""" Show the text of the tweet with the highest klout from Connecticut.,SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.State = 'Connecticut' ORDER BY T1.Klout DESC LIMIT 1 What is the try bonus for Ruthin RFC?,"SELECT try_bonus FROM table_14058433_3 WHERE club = ""Ruthin RFC""" Which team was the home team in the match of the Bundesliga division on 2020/10/2?,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga' List the names of all scientists sorted in alphabetical order.,SELECT name FROM scientists ORDER BY name What is the most silver won by Norway?,"SELECT MAX(silver) FROM table_name_76 WHERE nation = ""norway""" Find all the order items whose product id is 11. What are the order item ids?,SELECT order_item_id FROM order_items WHERE product_id = 11 What is the main date when the round is third round qualifying?,"SELECT main_date FROM table_27973624_1 WHERE round = ""Third round Qualifying""" What is the Country code for University of Oxford?,select country from Inst where name = 'University of Oxford' How many gold medals for bellbrook HS with less than 1 silver?,"SELECT COUNT(gold_medals) FROM table_name_73 WHERE ensemble = ""bellbrook hs"" AND silver_medals < 1" What is the population that has an area of 715.58?,"SELECT population FROM table_171250_2 WHERE area_km_2 = ""715.58""" Who was the team who played home team woking?,"SELECT away_team FROM table_name_16 WHERE home_team = ""woking""" "Date of 23 september 1961, and a Pilot of b.v. zemskov had what record description?","SELECT record_description FROM table_name_38 WHERE date = ""23 september 1961"" AND pilot = ""b.v. zemskov""" "Who manufactured fleet numbers of wlwr 2, 4, 11?","SELECT manufacturer FROM table_name_43 WHERE fleet_numbers = ""wlwr 2, 4, 11""" "Find and list the full name of employees who were hired between 1990 and 1995. Also, arrange them in the descending order of job level.","SELECT fname, minit, lname FROM employee WHERE STRFTIME('%Y', hire_date) BETWEEN '1990' AND '1995' ORDER BY job_lvl DESC" In which city is the store with the highest total sales quantity located?,SELECT T2.city FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id GROUP BY T2.city ORDER BY SUM(T1.qty) DESC LIMIT 1 which department has the most employees?,SELECT name FROM department GROUP BY departmentID ORDER BY count ( departmentID ) DESC LIMIT 1 What team was the opponent at Mile High Stadium?,"SELECT opponent FROM table_13259009_2 WHERE game_site = ""Mile High Stadium""" Name the sprint classification being alejandro valverde,"SELECT sprint_classification FROM table_22713796_14 WHERE winner = ""Alejandro Valverde""" How many vehicle in total?,SELECT count(*) FROM Vehicles; "Which Region has an area of 14,037km²?","SELECT region FROM table_name_70 WHERE area__km²_ = ""14,037""" What is the most popular genre of film directed by directors?,SELECT genre FROM movies2directors GROUP BY genre ORDER BY COUNT(movieid) DESC LIMIT 1 What Position did the sophomore Darnell Jackson play?,"SELECT position FROM table_name_48 WHERE year = ""sophomore"" AND name = ""darnell jackson""" "What was the attendance of the game on September 18, 1965 before week 3?","SELECT attendance FROM table_name_72 WHERE week < 3 AND date = ""september 18, 1965""" Show the number of audience in year 2008 or 2010.,SELECT Num_of_Audience FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010 List the names of all distinct races in reversed lexicographic order?,SELECT DISTINCT name FROM races ORDER BY name DESC Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?,"SELECT fastest_lap FROM table_name_50 WHERE winning_driver = ""adam christodoulou"" AND pole_position = ""adam christodoulou""" Which station has dock count higher than 15... | Would you like to know the station name or all the information? | What are the ids of station that have latitude above 37.4 and never had bike availability below 7 ?,SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min ( bikes_available ) < 7 "How many characteristics does the product named ""laurel"" have?","SELECT count(*) 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 = ""laurel""" Which city has a capacity of 41903?,SELECT city FROM table_10601843_2 WHERE capacity = 41903 Mention the language of Untouchables Sunrise film and calculate its rental cost per day.,"SELECT T2.name, T1.replacement_cost / T1.rental_duration AS cost FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'UNTOUCHABLES SUNRISE'" List the name of all different customers who have some loan sorted by their total loan amount.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) Please find the id and name of customers whose address contains WY state and use credit card for payment.,"SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code ! = ""Credit Card""" What is the name of the city with the Socialist Party of the Extremadurian People?,"SELECT city FROM table_name_89 WHERE name_in_english = ""socialist party of the extremadurian people""" What is the largest Crowd number for the Home team of North Melbourne?,"SELECT MAX(crowd) FROM table_name_3 WHERE home_team = ""north melbourne""" "What was the score of the Chiefs November 27, 1994 game?","SELECT result FROM table_name_74 WHERE date = ""november 27, 1994""" What are their names?,SELECT distinct name FROM PersonFriend WHERE friend NOT IN ( SELECT name FROM person WHERE city = 'salt lake city' ) Please list the departments that David Bradley used to belong to.,SELECT T2.DepartmentID FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' List the movie titles with the voice actor Jeff Bennet,SELECT movie FROM `voice-actors` WHERE 'voice-actor' = 'Jeff Bennett' "What are the first names of students, ordered by age from greatest to least?",SELECT Fname FROM STUDENT ORDER BY Age DESC How many divisions have been won when the playoff result is conference quarterfinals.,"SELECT COUNT(division) FROM table_1427998_1 WHERE playoffs = ""Conference Quarterfinals""" Who won in 1983?,"SELECT player FROM table_name_60 WHERE year_s__won = ""1983""" How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?,SELECT count(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54' The tournament with a partner listed as Aurelija Misevičiūtė had what kind of surface?,"SELECT surface FROM table_name_88 WHERE partner = ""aurelija misevičiūtė""" What are courses provided by Statistics deparment?,SELECT title FROM course WHERE dept_name = 'Statistics' "Where did the player in Pos mf, move to until 30 june 2009 ?","SELECT moving_to FROM table_name_18 WHERE date_to = ""30 june 2009"" AND pos = ""mf""" Can you please get just their last names?,"SELECT lname FROM FACULTY WHERE Building = ""Barton""" What is the total number of passengers do train station in london has ?,SELECT sum ( Total_Passengers ) from station where Location = 'London' What are the most laps for the Qual position of 7 in the OC class?,"SELECT MAX(laps) FROM table_name_62 WHERE class = ""oc"" AND qual_pos = 7" What is the date for the grass surface final against Nathan Healey?,"SELECT date FROM table_name_41 WHERE surface = ""grass"" AND opponent_in_the_final = ""nathan healey""" What area shows % Hindu of statistics from the bbc in depth report.?,"SELECT area FROM table_name_71 WHERE _percentage_hindu = ""statistics from the bbc in depth report.""" Please tell me the product names and ids. | Did you mean all the product details and ids? | Yes please.,"SELECT product_details, product_id from Products" "Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?","SELECT venue FROM table_name_72 WHERE year < 2009 AND event = ""3000 m"" AND competition = ""world youth championships""" What is all the information about the basketball match?,SELECT * FROM basketball_match Show different nominees and the number of musicals they have been nominated.,"SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee" What is the D43 associated with a D41 of r 16?,"SELECT d_43 FROM table_name_92 WHERE d_41 = ""r 16""" What kind of Week 4 has a Week 1 of sheila levell?,"SELECT week_4 FROM table_name_10 WHERE week_1 = ""sheila levell""" Can you please tell me the number of routes with the destination airport Italy?,SELECT count ( * ) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' "What is maximum, minimum and average amount of outstanding of customer?","SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;" Name the viewers for the episode directed by tony phelan,"SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = ""Tony Phelan""" "What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?","SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = ""chris myers"" AND ratings = ""9.9/22""" The driver in class A with 125 laps is in what position?,"SELECT position FROM table_name_92 WHERE class = ""a"" AND laps = 125" Tell me the home of 2-3,"SELECT home FROM table_name_5 WHERE aggregate = ""2-3""" show their names please.,SELECT Employee_Name FROM Employees Retrieve the list of all cities.,SELECT DISTINCT city FROM addresses what country is dubai in,"SELECT country FROM table_name_50 WHERE town = ""dubai""" How many times per year does a credit card customer complain about overlimit fees?,"SELECT strftime('%Y', `Date received`), COUNT(`Date received`) FROM events WHERE product = 'Credit card' AND issue = 'Overlimit fee' GROUP BY strftime('%Y', `Date received`) HAVING COUNT(`Date received`)" "How many tests have result ""Fail""?","SELECT COUNT(*) FROM Student_Tests_Taken WHERE test_result = ""Fail""" List the names of all the customers that use email as a contact channel and the date they became a member.,"SELECT t1.customer_name, t1.date_became_customer FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'" What is the final score when July 16 is the date?,"SELECT final_score FROM table_23612439_2 WHERE date = ""July 16""" Return the names of songs for which the format is mp3 and resolution is below 1000.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" Name the location for illinois,"SELECT location FROM table_1672976_7 WHERE big_ten_team = ""Illinois""" What is the time when the opponent is phil collins?,"SELECT time FROM table_name_86 WHERE opponent = ""phil collins""" Sort all the distinct products in alphabetical order.,SELECT DISTINCT product_name FROM products ORDER BY product_name How many Australians were in the UN commission on Korea?,"SELECT COUNT(number_of_australians_involved) FROM table_10121127_1 WHERE un_operation_title = ""UN Commission on Korea""" Find the addresses and author IDs of the course authors that teach at least two courses.,"SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count(*) >= 2" Which island is city Balikpapan located on? How big is the island?,"SELECT T3.Name, T3.Area FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Name = 'Balikpapan'" "How many images include the ""wood"" objects?",SELECT COUNT(DISTINCT T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'wood' What is the Date of the Test match of Australia in England at The Oval Venue?,"SELECT date FROM table_name_12 WHERE venue = ""the oval""" What is the team 2 with cobreloa as team 1?,"SELECT team_2 FROM table_name_2 WHERE team_1 = ""cobreloa""" "What are the names, countries, and ages for every singer in descending order of age?","SELECT name , country , age FROM singer ORDER BY age DESC" what is the display size for the calculator released in 1997?,"SELECT display_size FROM table_11703336_1 WHERE year_released = ""1997""" What is the Malayalam word that is listed as #10 in the table?,SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE _number = 10 How many players got out by being stumped in the second innings of all matches?,SELECT SUM(CASE WHEN T1.Innings_No = 2 THEN 1 ELSE 0 END) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T2.Out_Id = T1.Kind_Out WHERE T2.Out_Name = 'stumped' Return the age of the person with the greatest height.,SELECT Age FROM people ORDER BY Height DESC LIMIT 1 What is the location of the Chicagoland Speedway tract?,SELECT Location FROM track where Name = 'Chicagoland Speedway' "Which Rank is the lowest one that has a Gross of $54,215,416?","SELECT MIN(rank) FROM table_name_24 WHERE gross = ""$54,215,416""" How many animators does Movie No. 129 have?,SELECT COUNT(movie_id) FROM movie_crew WHERE movie_id = 129 AND job = 'Animation' what is the least paid amount on the table,SELECT min ( amount_piad ) from claim_headers what is the competition for the event team all-round in the year before 1913?,"SELECT competition FROM table_name_38 WHERE event = ""team all-round"" AND year < 1913" Count the number of distinct names associated with the photos.,SELECT count(DISTINCT Name) FROM PHOTOS "What is Weekly Winner, when Air Date is ""July 4, 2008""?","SELECT weekly_winner FROM table_name_85 WHERE air_date = ""july 4, 2008""" "What is the Week on November 10, 1996?","SELECT week FROM table_name_42 WHERE date = ""november 10, 1996""" What party did the incumbent in the Arkansas 2 district belong to? ,"SELECT party FROM table_1341897_6 WHERE district = ""Arkansas 2""" "Any of those have apartments with more than 1 bedrooms? | Sorry, do you want me to list apartments with more than 1 bedrooms? | Yes",SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bedroom_count > 1 What is points sgsinst when points diff is +96?,"SELECT points_against FROM table_name_70 WHERE points_diff = ""+96""" when q1 pos is 8 what is the q1+q2 time?,SELECT q1 + q2_time FROM table_1924975_1 WHERE q1_pos = 8 Which competition held the 1st position in 2009?,"SELECT competition FROM table_name_89 WHERE position = ""1st"" AND year = 2009" What's england's to par?,"SELECT to_par FROM table_name_50 WHERE country = ""england""" How many wines are there for each grape?,"SELECT count(*) , Grape FROM WINE GROUP BY Grape" What are the maximum and minimum number of cows across all farms.,"SELECT MAX(Cows), MIN(Cows) FROM farm" how many times did Casey Martin win?,SELECT MAX(wins) FROM table_1697190_2 Name the date that had a record of 90-60,"SELECT date FROM table_name_31 WHERE record = ""90-60""" Find the name of each user and number of tweets tweeted by each of them.,"SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid" "From 1960 to 1965, which country had the highest Death rate, crude (per 1,000 people)?","SELECT CountryName FROM Indicators WHERE Year BETWEEN 1960 AND 1965 AND IndicatorName = 'Death rate, crude (per 1,000 people)' ORDER BY Value DESC LIMIT 1" Who was the Cover model when the Centerfold Model was Marketa Janska?,"SELECT cover_model FROM table_name_43 WHERE centerfold_model = ""marketa janska""" What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19?,"SELECT SUM(game) FROM table_name_49 WHERE opponent = ""@ hartford whalers"" AND february > 19" Tell me the result for primetime emmy awards,"SELECT result FROM table_name_94 WHERE association = ""primetime emmy awards""" "Among the countries with a GDP of over 1000000, how many of them have mountains higher than 1000?",SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T1.Code INNER JOIN mountain AS T4 ON T4.Name = T2.Mountain WHERE T3.GDP > 1000000 AND T4.Height > 1000 Name the project that costs the most. How much has been collected from donation and what is the percentage amount still lacking?,"SELECT T1.title, SUM(T3.donation_to_project), CAST((T2.total_price_excluding_optional_support - SUM(T3.donation_to_project)) AS REAL) * 100 / SUM(T3.donation_to_project) FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid ORDER BY T2.total_price_excluding_optional_support DESC LIMIT 1" "What is the population with 41,511 households?",SELECT COUNT(population) FROM table_name_92 WHERE number_of_households = 41 OFFSET 511 How many available features are there in total?,SELECT count(*) FROM Other_Available_Features What was the percentage in Manitoba in 2011?,"SELECT _percentage_2011 FROM table_1717824_1 WHERE province = ""Manitoba""" Find the cities which have exactly two airports,SELECT city FROM airports GROUP BY city HAVING count ( * ) = 2 What is the rank with 0 bronze?,SELECT AVG(rank) FROM table_name_9 WHERE bronze < 0 How many production codes are there for the episode that had 4.36 million u.s. viewers?,"SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = ""4.36""" What is the primary language used in the film title Nynke?,"SELECT main_language_s_ FROM table_name_86 WHERE original_title = ""nynke""" Name the winner for jan 24,"SELECT winner FROM table_25938117_1 WHERE date = ""Jan 24""" List the writers who have written more than one book.,SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1 What day did they play at candlestick park?,"SELECT date FROM table_name_77 WHERE game_site = ""candlestick park""" Who is the manager of the Stenhousemuir club?,"SELECT manager FROM table_name_16 WHERE club = ""stenhousemuir""" How many sales teams are there in the Midwest?,SELECT SUM(CASE WHEN Region = 'Midwest' THEN 1 ELSE 0 END) FROM `Sales Team` Hi how are you!? Can you provide me with a list of all of the different member names?,SELECT distinct member_name FROM member Which number was Patrick O'Bryant?,"SELECT no FROM table_10015132_14 WHERE player = ""Patrick O'Bryant""" Return the result that is most frequent at music festivals.,SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 "What are the booking start and end dates of the apartments with type code ""Duplex""?","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = ""Duplex""" What year was more than one gas station opened in?,SELECT open_year FROM gas_station GROUP BY open_year having count ( * ) > 1 What was the date of game 21?,SELECT date FROM table_17288869_6 WHERE game = 21 Please give the full names of all the active staff.,"SELECT first_name, last_name FROM staff WHERE active = 1" What is the ratio of Asian male graduates to Asian female graduates from Harvard University in 2013?,SELECT CAST(SUM(CASE WHEN T2.Gender = 'M' THEN T2.grad_cohort ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.Gender = 'F' THEN T2.grad_cohort ELSE 0 END) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T1.chronname = 'Harvard University' AND T2.year = 2013 AND T2.race = 'A' Give me the start station and end station for the trips with the three oldest ids.,"SELECT start_station_name , end_station_name FROM trip ORDER BY id LIMIT 3" How many employees in these departments get a commission percentage?,"SELECT count ( * ) FROM employees WHERE commission_pct ! = ""null""" What is the number of routes that end at John F Kennedy International Airport?,SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport' How many episodes aired in the year 2009 have over 15% of voters giving 10 stars in star score?,"SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2009' AND T2.stars = 10 AND T2.percent > 15;" "Provide the titles, main characters, and associated songs of the movies directed by Wolfgang Reitherman in 1977.","SELECT T1.movie_title, T2.hero, T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T1.movie_title = T3.name WHERE T3.director = 'Wolfgang Reitherman' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1977'" "For the user who joined Yelp in ""2010"", with an average of ""4.5"" stars review and has got uber number of fans, how many ""funny"" compliments has he/she received from other users?",SELECT COUNT(T2.user_id) FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id INNER JOIN Compliments AS T3 ON T2.compliment_id = T3.compliment_id WHERE T1.user_yelping_since_year = 2010 AND T1.user_average_stars = 4.5 AND T1.user_fans = 'Uber' AND T3.compliment_type = 'funny' What is the earliest game with a position of Re and a smaller number than 95?,"SELECT MIN(games) AS ↑ FROM table_name_2 WHERE position = ""re"" AND number < 95" "Which To par has a Place of t2, and a Player of mark james?","SELECT to_par FROM table_name_59 WHERE place = ""t2"" AND player = ""mark james""" How many male clients are from the state of Massachusetts?,SELECT COUNT(T3.sex) FROM state AS T1 INNER JOIN district AS T2 ON T1.StateCode = T2.state_abbrev INNER JOIN client AS T3 ON T2.district_id = T3.district_id WHERE T1.state = 'Massachusetts' AND T3.sex = 'Male' Which tracks are not in the music playlist?,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name ! = 'Music' "List all the ID of the images that have an attribute class of ""horse"".",SELECT T2.IMG_ID FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.ATT_CLASS = 'horse' Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell?,"SELECT independent_socialist_ticket FROM table_name_75 WHERE liberal_ticket = ""edward goodell""" "What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo?","SELECT AVG(year) FROM table_name_5 WHERE runner_up = ""portugal"" AND third_place = ""italy"" AND best_goalkeeper = ""nuno hidalgo""" List down all film titles starred by Jane Jackman.,SELECT T1.title FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T2.actor_id = T3.actor_id WHERE T3.first_name = 'JANE' AND T3.last_name = 'JACKMAN' How many people work in the finance department?,SELECT COUNT(T2.BusinessEntityID) FROM Department AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.DepartmentID = T2.DepartmentID WHERE T1.Name = 'Finance' What college did Bill Cappleman go to?,"SELECT college FROM table_10361230_1 WHERE player_name = ""Bill Cappleman""" what was the away team for the north melbourne home team?,"SELECT away_team FROM table_name_60 WHERE home_team = ""north melbourne""" What are the names of instructors who didn't teach?,SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches) How many people were in attendance for the game week 15?,SELECT COUNT(attendance) FROM table_name_9 WHERE week = 15 How many matches were played by the player with player ID 2?,SELECT SUM(CASE WHEN Player_Id = 2 THEN 1 ELSE 0 END) FROM Player_Match "Which episodes originally aired on April 19, 2010?","SELECT title FROM table_22170495_7 WHERE original_airing = ""April 19, 2010""" "Who was the partner for the match with a score in the final of 4–6, 6–7?","SELECT partner FROM table_name_31 WHERE score_in_the_final = ""4–6, 6–7""" What is the age and gender of the person who uses the device number 29182687948017100 on event number 1?,"SELECT T1.age, T1.gender FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T1.device_id = 29182687948017100 AND T2.event_id = 1" Show the names of players coached by the rank 1 coach.,SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1 What is the name of the least popular Indian restaurant on Shattuck Avenue in Berkeley?,SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'berkeley' AND T2.street_name = 'shattuck ave' AND T1.food_type = 'Indian restaurant' ORDER BY T1.review LIMIT 1 What is the highest overall of the player from Georgia?,"SELECT MAX(overall) FROM table_name_54 WHERE college = ""georgia""" What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?,SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16' What is the total number of losses against the Rajasthan Royals with more than 0 ties?,"SELECT COUNT(lost) FROM table_name_57 WHERE opposition = ""rajasthan royals"" AND tied > 0" Find the number of trains starting from each origin.,"SELECT origin , count(*) FROM train GROUP BY origin" "Which Points have Touchdowns of 1, and a Field goals smaller than 0?",SELECT AVG(points) FROM table_name_9 WHERE touchdowns = 1 AND field_goals < 0 "How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals?",SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4 "What is the value for the item ""Class"" when the value of the item ""Wheels"" is 137?",SELECT class FROM table_name_97 WHERE wheels = 137 "List the student's first and last name that got a C in the course named ""Applied Deep Learning"".","SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Applied Deep Learning ' AND T2.grade = 'C'" "What is the average number of students in East Lansing, MI?","SELECT AVG(founded) FROM table_name_70 WHERE location = ""east lansing, mi""" what is the previous conference when the year joined is 1932 and the mascot is tigers?,"SELECT previous_conference FROM table_name_46 WHERE year_joined = ""1932"" AND mascot = ""tigers""" "What was the tournament that happened in 1974 in gothenburg , sweden?","SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = ""gothenburg , sweden""" What was the country of the player at +5?,"SELECT country FROM table_name_68 WHERE to_par = ""+5""" Name the most number for new england blazers,"SELECT MAX(_number) FROM table_16227492_1 WHERE opponent = ""New England Blazers""" What date was Richmond the away team?,"SELECT date FROM table_name_28 WHERE away_team = ""richmond""" How many of the countries name start with alphabet A? List down the Alpha2Code of them.,SELECT COUNT(ShortName) FROM Country WHERE ShortName LIKE 'A%' UNION SELECT alpha2code FROM country WHERE shortname LIKE 'A%' Who is the head of the state where the most crowded city belongs?,SELECT T1.HeadOfState FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1 What are the names of instructors who have taught C Programming courses?,SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' How many intro dates have the price of 686€?,"SELECT COUNT(intro_date) FROM table_29778616_1 WHERE price = ""686€""" List out full name of employees who are working in Boston?,"SELECT T1.firstName, T1.lastName FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T2.city = 'Boston'" Can you list the product names of all products with prices below the average product price?,select product_name from products where product_price < ( SELECT avg ( product_price ) from products ) Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984?,"SELECT pre_conversion FROM table_name_16 WHERE owner = ""v/line passenger"" AND re_entered_service__p_ = ""23 november 1984""" What was the result when then opponents conference was Mac (east)?,"SELECT result FROM table_28418916_3 WHERE opponents_conference = ""MAC (East)""" What is the 2005 Lukoil oil prodroduction when in 2007 oil production 91.100 million tonnes?,"SELECT 2005 FROM table_name_25 WHERE 2007 = ""91.100""" What is the age and hometown of every teacher?,"SELECT Age , Hometown FROM teacher" List the top 5 lowest rated puzzle games and count the number of negative sentiments the games received.,"SELECT T1.App, COUNT(T1.App) COUNTNUMBER FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment = 'Negative' GROUP BY T1.App ORDER BY T1.Rating LIMIT 5" "Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?","SELECT award FROM table_name_45 WHERE year < 2004 AND work = ""the clone"" AND result = ""won"" AND category = ""favourite actress""" What was a penalty given for at time 29:17?,"SELECT penalty FROM table_name_89 WHERE time = ""29:17""" In how many years was Tom Fleming the final television commentator? ,"SELECT COUNT(year_s_) FROM table_17766232_7 WHERE final_television_commentator = ""Tom Fleming""" "What is Place, when To Par is ""5"", and when Score is ""72-73=145""?",SELECT place FROM table_name_30 WHERE to_par = 5 AND score = 72 - 73 = 145 "Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?","SELECT eruptions FROM table_name_51 WHERE location = ""pacific ring of fire"" AND volcanic_explosivity_index = ""6"" AND country = ""peru""" display job title and average salary of employees.,"SELECT job_title , AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title" What is the best when the qual 2 is 1:47.042?,"SELECT best FROM table_name_5 WHERE qual_2 = ""1:47.042""" Which country have conducted population census from 2010 until 2012 and have completed vital registration?,"SELECT ShortName, LongName FROM Country WHERE LatestPopulationCensus >= 2010 AND LatestPopulationCensus < 2013 AND VitalRegistrationComplete = 'Yes'" "Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?","SELECT work FROM table_name_36 WHERE result = ""nominated"" AND award = ""contigo award"" AND year < 2002" Find the id of the order which is shipped most recently.,SELECT order_id FROM shipments WHERE shipment_date = (SELECT MAX(shipment_date) FROM shipments) I'd like to know how many professors have a Ph.D. or MA?,SELECT count ( * ) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' What player has a score of 67-70-77=214?,SELECT player FROM table_name_30 WHERE score = 67 - 70 - 77 = 214 "With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?","SELECT AVG(bronze) FROM table_name_34 WHERE rank = ""8"" AND total > 2" Give me the name and description of the location with code x.,"SELECT location_name , location_description FROM Ref_locations WHERE location_code = ""x""" "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.","SELECT campus FROM campuses WHERE LOCATION = ""Northridge"" AND county = ""Los Angeles"" UNION SELECT campus FROM campuses WHERE LOCATION = ""San Francisco"" AND county = ""San Francisco""" What is the height if de is the position?,"SELECT COUNT(height) FROM table_20871703_1 WHERE position = ""DE""" "How many policies are listed for the customer named ""Dayana Robel""?","SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Dayana Robel""" what team had the 1:44.027 qual 2?,"SELECT team FROM table_name_82 WHERE qual_2 = ""1:44.027""" Name the total number of roll for state authority and stanley avenue school with decile more than 5,"SELECT COUNT(roll) FROM table_name_31 WHERE authority = ""state"" AND name = ""stanley avenue school"" AND decile > 5" What is the student staff ratio at the university with the greatest student staff ratio of all time?,SELECT MAX(student_staff_ratio) FROM university_year ORDER BY student_staff_ratio DESC LIMIT 1 Could you please show me their attribute ID,"SELECT t2.attribute_id FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" Show the delegate from district 1 in election.,SELECT Delegate FROM election WHERE District = 1 I want to know the payment methods available,SELECT distinct payment_method FROM customers "What are the names of the climbers, ordered by points descending?",SELECT Name FROM climber ORDER BY Points DESC Were there Bulletins to all contacts of the license created by GG Network?,"SELECT bulletins_to_all_contacts FROM table_name_69 WHERE creator = ""gg network""" "How many movies contain the words ""Deleted scenes"" in the Special Features column?",SELECT count ( * ) FROM film WHERE special_features LIKE '%Deleted Scenes%' What was the name of the album that was a demo release?,"SELECT album FROM table_name_44 WHERE release_type = ""demo""" What did the Away team score in their game at Victoria Park?,"SELECT away_team AS score FROM table_name_64 WHERE venue = ""victoria park""" Which customer is a regular customer in this shop and what are the products category that he mostly buy?,"SELECT T1.CustomerID, T4.CategoryName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID INNER JOIN Categories AS T4 ON T3.CategoryID = T4.CategoryID ORDER BY T1.CustomerID DESC, T4.CategoryName DESC" what is the start date of Howard at 2nd | Do you mean its start station is Howard at 2nd? | exactly,"SELECT start_date FROM trip where start_station_name = ""Howard at 2nd""" What's utah's lowest swimsuit with an interview over 8.53?,"SELECT MIN(swimsuit) FROM table_name_43 WHERE state = ""utah"" AND interview > 8.53" What was the attendance of the Florida vs. Montreal game?,"SELECT AVG(attendance) FROM table_name_46 WHERE home = ""florida"" AND visitor = ""montreal""" How many rounds did the match at GCF: Strength and Honor last?,"SELECT AVG(round) FROM table_name_49 WHERE event = ""gcf: strength and honor""" State the type of air china in the list?,select type from operate_company where name = 'Air China' "What is the Tournament with a Score that is 2–6, 6–4, 3–6?","SELECT tournament FROM table_name_55 WHERE score = ""2–6, 6–4, 3–6""" Show the ID of the high schooler named Kyle.,"SELECT ID FROM Highschooler WHERE name = ""Kyle""" Please tell me the name of the swimmer who has at least 2 records.,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING count ( * ) > = 2 "What are the bounding boxes of the object samples with a predicted relation class of ""by"" in image no.1?","SELECT T3.X, T3.Y, T3.W, T3.H FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.OBJ1_SAMPLE_ID = T3.OBJ_CLASS_ID WHERE T2.IMG_ID = 1 AND T1.PRED_CLASS = 'by'" Liverpool as a home team as listed what in the Tie no column?,"SELECT tie_no FROM table_name_28 WHERE home_team = ""liverpool""" who is the athlete with the rank smaller than 2?,SELECT athlete FROM table_name_10 WHERE rank < 2 "How tall is the actor who played ""Lurch""?",SELECT T2.`Height (Inches)` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Lurch' What is the modified speed (6th gear) when standard torque (lb/ft) is 10.3 and modified torque (lb/ft) is 8.75?,"SELECT modified_speed__6th_gear_ FROM table_19704392_1 WHERE standard_torque__lb_ft_ = ""10.3"" AND modified_torque__lb_ft_ = ""8.75""" Name the date for hard surface at maybelline classic with opponent of wendy turnbull,"SELECT date FROM table_name_59 WHERE surface = ""hard"" AND tournament = ""maybelline classic"" AND opponent = ""wendy turnbull""" "What are the highest cost, lowest cost and average cost of procedures?","SELECT MAX(cost), MIN(cost), AVG(cost) FROM procedures" Which Opponent has a Score of 92-111?,"SELECT opponent FROM table_name_44 WHERE score = ""92-111""" Which employee is the highest paid?,SELECT * FROM employees order by salary desc limit 1 Who did they lose to on May 20?,"SELECT loss FROM table_name_68 WHERE date = ""may 20""" What is the name of the student who has the highest total credits in the History department?,SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1 List the name of all students?,"SELECT personal_name, middle_name, family_name FROM Students" "Among the businesses in Tempe, list the attribute of the business with a medium review count.",SELECT DISTINCT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Tempe' AND T1.review_count = 'Medium' How many matches of the Bundesliga division ended with an away victory in the 2021 season?,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'A' AND T1.season = 2021 What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?,"SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = ""lakefront office buildings""" What label has the 817 catalog?,"SELECT label FROM table_name_92 WHERE catalog_number = ""817""" In which venue did 0 pens and 1 try occur?,"SELECT venue FROM table_name_70 WHERE pens = ""0"" AND tries = ""1""" what ae all of the brazil 100% where the age group is 15-17?,"SELECT brazil_100_percentage__percent_of_the_population_ FROM table_18950570_4 WHERE age_group = ""15-17""" "when was the episode with production code ""2arg24"" originally aired?","SELECT original_air_date FROM table_27332038_1 WHERE production_code = ""2ARG24""" Who was the longest track written by?,SELECT composer FROM TRACK where Milliseconds = ( select max ( Milliseconds ) from track ) List names of customers with more than 1 loan,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING count ( * ) > 1 "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are teenagers?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.age >= 13 AND T1.age <= 19 AND T2.RESPONSE = 'true' What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.,"SELECT T1.name , count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY count(*)" Give the name of the publisher of the game ID 75.,SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.game_id = 75 "Return the type code of the template type with the description ""Book"".","SELECT template_type_code FROM Ref_template_types WHERE template_type_description = ""Book""" How many songs are there?,SELECT count(*) FROM Songs Where was the game played the ended with a score of 62-69?,"SELECT ground FROM table_name_22 WHERE score = ""62-69""" What is the name of the oldest manager?,SELECT Name FROM manager ORDER BY Age DESC LIMIT 1 What is the production code for episode 3 in the season?,SELECT MAX(production_code) FROM table_2453243_3 WHERE no_in_season = 3 What are the notes of Cardinal-Deacon of S. Maria in Portico?,"SELECT notes FROM table_name_95 WHERE cardinalatial_order_and_title = ""cardinal-deacon of s. maria in portico""" What manufacturer has a year made of 1883?,"SELECT manufacturer FROM table_name_76 WHERE year_made = ""1883""" Farr Yacht Design designed boats for how many country/flags?,"SELECT COUNT(flag) FROM table_19872699_1 WHERE design_firm = ""Farr Yacht Design""" Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1 What are the last names for all scholarship students?,SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' Find the number of phones for each accreditation type.,"SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type" "Which Venue has a Result of 5-1, and a Score of 3-0?","SELECT venue FROM table_name_53 WHERE result = ""5-1"" AND score = ""3-0""" now please show just the total of graduates from San Francisco State University in 2004,"SELECT sum ( t1.graduate ) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Francisco State University""" What is the number of distinct publication dates?,SELECT COUNT (DISTINCT Publication_Date) FROM publication "Awesome, could you show me the budget of those departments?",SELECT Budget_in_Billions FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes' How many times is st kilda the away team?,"SELECT COUNT(crowd) FROM table_name_15 WHERE away_team = ""st kilda""" what is Peter Little's party?,"SELECT party FROM table_2668329_11 WHERE incumbent = ""Peter Little""" What district has a democratic leader from Roby?,"SELECT SUM(district) FROM table_name_37 WHERE party = ""democratic"" AND home_town = ""roby""" What event was in detroit?,"SELECT grand_prix FROM table_1139087_2 WHERE location = ""Detroit""" What is the lowest round with a place of t15 in a year earlier than 1998?,"SELECT MIN(round_1) FROM table_name_15 WHERE place = ""t15"" AND year < 1998" how many faculty are presented on the table,SELECT COUNT ( * ) FROM FACULTY "What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?","SELECT AVG(fiscal_year) FROM table_name_55 WHERE headquarters = ""noida"" AND employees < 85 OFFSET 335" Name the highest game for west (8) high assists,"SELECT MAX(game) FROM table_name_35 WHERE high_assists = ""west (8)""" What is the Tenure of the Officer with a Date of death of 2001-08-31?,"SELECT tenure FROM table_name_16 WHERE date_of_death = ""2001-08-31""" what is the time when the event is bellator 89?,"SELECT time FROM table_name_15 WHERE event = ""bellator 89""" Write down the author's name and IDs who are affiliated with Univeristiy of Oulu.,"SELECT Name, id FROM Author WHERE Affiliation = 'University of Oulu'" What is the area for the appelation which produced the most wines prior to 2010?,SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1 "What is the lowest market value (billion $) with a headquarter of usa , and the rank larger than 3, assets (billion$) larger than 208.34, and the company jpmorgan chase?","SELECT MIN(market_value__billion_) AS $_ FROM table_name_2 WHERE headquarters = ""usa"" AND rank > 3 AND assets__billion_$_ > 208.34 AND company = ""jpmorgan chase""" "In 2004, what are the names of the platforms where Codemasters publish its games?",SELECT T4.platform_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T3.release_year = 2004 AND T1.publisher_name = 'Codemasters' "What race was a round smaller than 8, on 6 july?","SELECT race FROM table_name_45 WHERE round < 8 AND date = ""6 july""" What position did the #94 pick play?,SELECT position FROM table_2897457_5 WHERE pick__number = 94 "How many Thai restaurants can be found in San Pablo Ave, Albany?",SELECT COUNT(T1.id_restaurant) FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.food_type = 'thai' AND T1.city = 'albany' AND T2.street_name = 'san pablo ave' What film was made in 1999?,"SELECT film FROM table_name_27 WHERE year = ""1999""" What was the inroductory phase for the episode with production code 4005?,SELECT introductory_phrase FROM table_14835674_1 WHERE production_code = 4005 what is the product name of color code 2,select product_name from Products where color_code = 2 Which of those has the highest salary?,"SELECT first_name , last_name , department_id FROM employees WHERE salary IN ( SELECT MAX ( salary ) FROM employees GROUP BY department_id ) " What is the position of the player from Sweden?,"SELECT position FROM table_name_93 WHERE nationality = ""sweden""" show me the department with lowest staff,SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count ( * ) LIMIT 1 "Among the products from the mountain product line, how many of them are sold by over 2 vendors?",SELECT SUM(CASE WHEN T1.ProductLine = 'M' THEN 1 ELSE 0 END) FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID GROUP BY T1.ProductID HAVING COUNT(T1.Name) > 2 What are the department names and how many employees work in each of them?,"SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name" "What are the category of music festivals with result ""Awarded""?","SELECT Category FROM music_festival WHERE RESULT = ""Awarded""" who is the replacement when the team is port vale?,"SELECT replaced_by FROM table_name_97 WHERE team = ""port vale""" Name the least points with chassis of kurtis kraft 3000 and year before 1951,"SELECT MIN(points) FROM table_name_92 WHERE chassis = ""kurtis kraft 3000"" AND year < 1951" Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.,"SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" "What is the total budget amount for school ""Glenn"" in all years?",SELECT sum(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' What is the largest Goals For by a team that has more than 0 ties?,SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0 can you show me a list of player's residence?,SELECT Residence FROM player List all the numbers ordered by 'Rochester Ltd' in 2018.,SELECT DISTINCT T FROM ( SELECT CASE WHEN T1.OrderDate LIKE '%/%/18' AND T2.`Customer Names` = 'Rochester Ltd' THEN T1.OrderNumber ELSE NULL END AS T FROM `Sales Orders` T1 INNER JOIN Customers T2 ON T2.CustomerID = T1._CustomerID ) WHERE T IS NOT NULL Could you tell me the names of advisors for female students?,"SELECT T2.fname, T2.lname FROM student as T1 JOIN faculty as T2 on T2.FacID = T1.advisor where T1.sex = ""F""" How many female people are older than 30 in our record?,SELECT COUNT(*) FROM people WHERE is_male = 'F' AND age > 30 What is the Overall number for pick 17?,SELECT overall FROM table_name_5 WHERE pick = 17 Can you please show me the minimum damage for all storms?,SELECT min ( damage_millions_USD ) FROM storm What is the fewest number of losses?,SELECT MIN(l) FROM table_1644876_2 What was the position of appointment date 17 january 2011,"SELECT position_in_table FROM table_27495117_3 WHERE date_of_appointment = ""17 January 2011""" Which work is the character Lord Abergavenny from? Please give its short or abbreviated title.,SELECT DISTINCT T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.CharName = 'Lord Abergavenny' "What is the nationality associated with 0 minutes, position of MF, and an Athletica career of 2009?","SELECT nationality FROM table_23963781_1 WHERE minutes = 0 AND position = ""MF"" AND athletica_career = ""2009""" "Among all attribute names, list down the ID and attribute name which start with ""music"".","SELECT attribute_id, attribute_name FROM Attributes WHERE attribute_name LIKE 'music%'" "What is Driver, when Position is 2nd, and when Season is 2001?","SELECT driver FROM table_name_77 WHERE position = ""2nd"" AND season = 2001" What are the name and id of the team with the most victories in 2008 postseason?,"SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;" What is the percentage for free application with a rating 4.5 and above have not been updated since 2018?,"SELECT CAST(SUM(CASE WHEN SUBSTR('Last Updated', -4) > '2018' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(App) PER FROM playstore WHERE Type = 'Free' AND Rating >= 4.5" Hello there! Can you show me a list of all of the train station names?,SELECT name FROM station Compare the number of inspections under toxic items and no-smoking regulations.,"SELECT COUNT(CASE WHEN T2.category = 'Toxic Items' THEN T1.inspection_id END) AS Tox_nums , COUNT(CASE WHEN T2.category = 'No Smoking Regulations' THEN T1.inspection_id END) AS NosmoNums FROM violation AS T1 INNER JOIN inspection_point AS T2 ON T1.point_id = T2.point_id" What was the highest Pick # for the College of Simon Fraser?,"SELECT MAX(pick__number) FROM table_name_14 WHERE college = ""simon fraser""" what is the name of the stadium with the maximum capacity,SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1 How many assets does each maintenance contract contain? List the number and the contract id.,"SELECT count(*) , T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id" "What are the card numbers, names, and hometowns of every member ordered by descending level?","SELECT card_number , name , hometown FROM member ORDER BY LEVEL DESC" Lists the name of the product and customer who placed an order on 10/21/18 and it was delivered on 11/21/19.,"SELECT T3.`Product Name`, T1.`Customer Names` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products AS T3 ON T3.ProductID = T2._ProductID WHERE T2.OrderDate = '10/21/18' AND T2.DeliveryDate = '11/21/19'" How many locations does Elon University have?,"SELECT COUNT(location) FROM table_16403890_1 WHERE institution = ""Elon University""" Please list the directions in which the trains with 4 short cars run.,SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.len = 'short' AND T1.position = 4 What place was Bill Glasson in?,"SELECT place FROM table_name_49 WHERE player = ""bill glasson""" How many athletes in the database are from Guatemala?,SELECT COUNT(T1.person_id) FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Guatemala' "Which player's home town is Swift Current, AB?","SELECT player FROM table_name_17 WHERE home_town = ""swift current, ab""" Which City has a School of indianapolis brebeuf?,"SELECT city FROM table_name_54 WHERE school = ""indianapolis brebeuf""" "What is Record, when Location Attendance is ""Pepsi Center 19,749""?","SELECT record FROM table_name_97 WHERE location_attendance = ""pepsi center 19,749""" What is the Pinyin for the simplified 虞城县?,"SELECT pinyin FROM table_2135222_2 WHERE simplified = ""虞城县""" What are the different names of the colleges involved in the tryout in alphabetical order?,SELECT DISTINCT cName FROM tryout ORDER BY cName "What is the highest silver that has 57 as the total, with a bronze greater than 20?",SELECT MAX(silver) FROM table_name_82 WHERE total = 57 AND bronze > 20 Who is no.3 when Claudio Sylvie is no.1?,"SELECT no3 FROM table_name_62 WHERE no1 = ""claudio sylvie""" Which Reigns has 92 days held?,SELECT reigns FROM table_name_53 WHERE days_held = 92 are there bi-tone is there's no olive drab and the caliber is 9×19mm parabellum and model is xdm 5.25 competition,"SELECT bi_tone FROM table_2869843_1 WHERE olive_drab = ""No"" AND caliber = ""9×19mm Parabellum"" AND model = ""XDM 5.25 Competition""" What is the average number of games with a record of 20-12?,"SELECT AVG(game) FROM table_name_5 WHERE record = ""20-12""" list the authors who do not have submission to any workshop,SELECT Author FROM submission WHERE Submission_ID NOT IN ( SELECT Submission_ID FROM acceptance ) "How many distinct characteristic names does the product ""cumin"" have?","SELECT count ( DISTINCT 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 = ""cumin""" Show me the all student's names from the college named 'Yale University' | Do you mean the given names of all the students from the college named 'Yale University'? | Yes,SELECT T1.name_given FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University' What was the venue when Jack Hargreaves finished third?,"SELECT venue FROM table_name_63 WHERE third = ""jack hargreaves""" What was the report for the game played at the Hisense Arena?,"SELECT report FROM table_name_42 WHERE venue = ""hisense arena""" Which division do the Toronto Raptors belong in?,"SELECT division FROM table_name_87 WHERE team = ""toronto raptors""" Who is the Director that speaks dutch?,"SELECT director FROM table_name_8 WHERE language = ""dutch""" What is the market value of the automotive industry?,"SELECT COUNT(market_value___usd_million_) FROM table_name_10 WHERE industry = ""automotive""" Which artist has a serial number of ATM24016?,"SELECT artist FROM table_name_41 WHERE number = ""atm24016""" What is the entrant that has 0 points?,"SELECT entrant FROM table_name_65 WHERE pts = ""0""" What is the average age of the two members of the club Bootup Baltimore?,"SELECT avg ( T3.age ) from Club as T1 join member_of_club as T2 on T1.clubid = T2.clubid join student as T3 on T2.stuid = T3.stuid where T1.clubname = ""Bootup Baltimore""" What is the count of different game types?,SELECT count(DISTINCT gtype) FROM Video_games What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?,"SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'" What is the Team when antonio davis (8) had the high rebounds?,"SELECT team FROM table_name_53 WHERE high_rebounds = ""antonio davis (8)""" "What is the average number of votes of representatives from party ""Republican""?","SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = ""Republican""" List the brands of root beer produced by Dr Pepper Snapple Group and calculate their percentage of purchases between 2014 to 2016.,"SELECT T1.BrandName , CAST(SUM(CASE WHEN T2.PurchaseDate >= '2014-01-01' AND T2.PurchaseDate <= '2016-12-31' THEN 1 ELSE 0 END) AS REAL) / COUNT(T2.BrandID) AS purchase FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BreweryName = 'Dr Pepper Snapple Group' GROUP BY T2.BrandID" if p is bigger than 4.0 what is total number,SELECT COUNT(total) FROM table_17505751_5 WHERE p > 4.0 "Find the addresses of the course authors who teach the course with name ""operating system"" or ""data structure"".","SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""operating system"" OR T2.course_name = ""data structure""" display job ID for those jobs that were done by two or more for more than 300 days.,SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2 Who built the train in 1966 with over 40 produced?,"SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = ""1966""" What is the most common role for the staff?,SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 What is the id of the appointment that started most recently?,SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1 Show all main industry and total market value in each industry.,"SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry" Name of the publisher of the game id 10031.,SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.game_id = 10031 "How many releases by the artist michael jackson are tagged ""pop""?",SELECT COUNT(T1.groupName) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'pop' AND T1.artist = 'michael jackson' Who is the youngest employee in the company? List employee's first and last name.,"SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;" "What is the cost for the product ""847""?",SELECT StandardCost FROM ProductCostHistory WHERE ProductID = 847 What is the highest value for col(m) when prominence(m) is 3755?,SELECT MAX(col__m_) FROM table_18946749_4 WHERE prominence__m_ = 3755 And which of those did Rosalind not visit,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Alison"" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Rosalind""" what is the name for br no. 60501,SELECT name FROM table_20595642_2 WHERE br_no = 60501 what is 2007 when 2011 is not held and 2012 is not held?,"SELECT 2007 FROM table_name_71 WHERE 2011 = ""not held"" AND 2012 = ""not held""" Thank you. Then could you please let me know what would be the difference between the balances of the two accounts?,SELECT T3.balance - T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > ( SELECT avg ( balance ) FROM savings ) "What are the years when countries have indicator name of ""Air transport, passengers carried""? List the table name of these countries.","SELECT DISTINCT T2.Year, T1.TableName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Air transport, passengers carried'" Return the code of the template type that is most commonly used in documents.,SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1 What days of the week is the show aired on that runs at 16:45?,"SELECT weekly_schedule FROM table_name_21 WHERE timeslot = ""16:45""" Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= ""2009-01-01"" AND T2.date_order_placed <= ""2010-01-01""" "Count the number of clubs for which the student named ""Eric Tai"" is a member.","SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Eric"" AND t3.lname = ""Tai""" How many games does leandro love have?,"SELECT games FROM table_name_96 WHERE name = ""leandro love""" COunt the silver that has a Bronze smaller than 1?,SELECT SUM(silver) FROM table_name_19 WHERE bronze < 1 Who was the away team when Geelong was the home team?,"SELECT away_team FROM table_name_41 WHERE home_team = ""geelong""" What was the location of the game when the record was 12-4?,"SELECT location FROM table_name_74 WHERE record = ""12-4""" "What is the local mission that has none as a local location, high commissioner as a local position, fiji as a resident county, and a mission of tonga?","SELECT Local AS mission FROM table_name_41 WHERE local_location = ""none"" AND local_position = ""high commissioner"" AND resident_country = ""fiji"" AND mission = ""tonga""" List down the name of dishes that were positioned on the left upper corner.,SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.xpos < 0.25 AND T2.ypos < 0.25 Who is the coach located in Oakden?,"SELECT coach FROM table_name_69 WHERE location = ""oakden""" what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivières draveurs (qmjhl)?,"SELECT MIN(pick__number) FROM table_2679061_2 WHERE nhl_team = ""Montreal Canadiens"" AND college_junior_club_team = ""Trois-Rivières Draveurs (QMJHL)""" Find the average gpa of the students?,SELECT avg ( STU_GPA ) FROM student Find the top 3 products which have the largest number of problems?,SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3 Who was the home team when VFL played at Windy Hill?,"SELECT home_team FROM table_name_16 WHERE venue = ""windy hill""" Which Competition has a Venue of hong kong?,"SELECT competition FROM table_name_53 WHERE venue = ""hong kong""" "Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.","SELECT T1.title, T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE STRFTIME('%Y', T1.publication_date) = '2004' AND T1.num_pages * 100 > ( SELECT AVG(num_pages) FROM book ) * 70" Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.,"SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" What was the outcome for Jan Pisecky and his partner?,"SELECT outcome FROM table_name_32 WHERE partner = ""jan pisecky""" What was the record when the visiting team was Ottawa?,"SELECT record FROM table_name_54 WHERE visitor = ""ottawa""" what is the height of jack campbell,"SELECT height from people where name = ""Jack Campbell""" When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?,"SELECT engine FROM table_22915134_2 WHERE example = ""1985-2007 Yamaha V-Max Honda VFR800""" What car number had 24 points?,"SELECT car_no FROM table_name_13 WHERE points = ""24""" What was the away team score for the game played at the Brunswick Street Oval?,"SELECT away_team AS score FROM table_name_15 WHERE venue = ""brunswick street oval""" What is the greatest B score when the A score was less than 6.5?,SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5 Who directed the episode whose production code is pabf05?,"SELECT directed_by FROM table_28194879_1 WHERE production_code = ""PABF05""" What is the lowest population(2006) when there is a 1.06% in 2011?,"SELECT MIN(population__2006_) FROM table_189893_1 WHERE percentage__2011_ = ""1.06%""" Please list the product names of all the products on the LL Road Frame Sale.,SELECT T3.Name FROM SpecialOffer AS T1 INNER JOIN SpecialOfferProduct AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID INNER JOIN Product AS T3 ON T2.ProductID = T3.ProductID WHERE T1.Description = 'LL Road Frame Sale' Which Home has a Record of 16–17–6?,"SELECT home FROM table_name_5 WHERE record = ""16–17–6""" What is the transaction type that has processed the greatest total amount in transactions?,SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1 "During the PGA Championship, what's the lowest amount of events with wins greater than 0?","SELECT MIN(events) FROM table_name_10 WHERE tournament = ""pga championship"" AND wins > 0" Tell me the record for kazuhiro nakamura,"SELECT record FROM table_name_25 WHERE opponent = ""kazuhiro nakamura""" What position did the celebrity finish that entered on day 1 and exited on day 19?,"SELECT finished FROM table_name_16 WHERE exited = ""day 19"" AND entered = ""day 1""" What year did they get 4 points with Suzuki?,"SELECT AVG(year) FROM table_name_97 WHERE team = ""suzuki"" AND points = 4" List the name of tracks belongs to genre Rock or media type is MPEG audio file.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" OR T3.name = ""MPEG audio file"";" what is the song name for the film name ganga kare insaaf?,"SELECT song_name FROM table_11827596_2 WHERE film_name = ""Ganga Kare Insaaf""" Show the transportation method most people choose to get to tourist attractions?,SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT ( * ) DESC LIMIT 1 "Which Taper/ft that has a Large end smaller than 0.5, and a Taper of #2?","SELECT MAX(taper) / ft FROM table_name_27 WHERE large_end < 0.5 AND taper = ""#2""" what is the english translation when the artist is ann christine?,"SELECT english_translation FROM table_name_10 WHERE artist = ""ann christine""" What is the alphabetically ordered list of all the distinct names of nurses?,SELECT DISTINCT name FROM nurse ORDER BY name What is the names of the physicians who prescribe medication Thesisin?,"SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = ""Thesisin""" Which Surface has an Opponent of oleksandra kravets?,"SELECT surface FROM table_name_99 WHERE opponent = ""oleksandra kravets""" What was the date of the game when the Lightning had a record of 10–13–2?,"SELECT date FROM table_name_96 WHERE record = ""10–13–2""" List down the neighborhood areas of Douglas.,SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Douglas' How many seasons featured 29 conversions?,SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29 Which semeseter and year had the fewest students?,"SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1" Who was the individual in the event of 1998 Pokljuka?,"SELECT individual FROM table_name_33 WHERE event = ""1998 pokljuka""" Find the average checking balance.,SELECT avg(balance) FROM checking "For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.","SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade" How many courses are offered?,SELECT COUNT(DISTINCT crs_code) FROM CLASS Give the phone number of the customer with the highest account balance.,SELECT c_phone FROM customer ORDER BY c_acctbal DESC LIMIT 1 What is the Canton of Vaud's highest point?,"SELECT highest_point FROM table_name_85 WHERE canton = ""vaud""" "Name number of samples of ""bed"" object are there in the image No.1098?",SELECT SUM(CASE WHEN T2.OBJ_CLASS = 'bed' THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 1098 now show those representatives and what party they are a member of,"SELECT Name, party FROM representative WHERE Representative_ID NOT IN ( SELECT Representative_ID FROM election ) " What is the code of the course which the student whose last name is Smithson took?,SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson' Which country has had 6 miss universe's?,"SELECT country FROM table_28634206_1 WHERE miss_universe = ""6""" How many podiums when he was in the british f3 national class series?,"SELECT COUNT(podiums) FROM table_24491017_1 WHERE series = ""British F3 National Class""" What are the student id of city code WAS?,"SELECT stuid from Student where city_code = ""WAS""" What are the ids and details of events that have more than one participants?,"SELECT T1.event_id , T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING count(*) > 1" What position did he finish in 1987?,SELECT position FROM table_2387790_2 WHERE year = 1987 What is the number of years that the event was foil team and took place in Los Angeles?,"SELECT COUNT(year) FROM table_name_77 WHERE venue = ""los angeles"" AND event = ""foil team""" What was the length when James Swallow had a release longer than 2.1?,"SELECT length FROM table_name_36 WHERE writer = ""james swallow"" AND release > 2.1" "what is the method when the result is loss on january 19, 2008?","SELECT method FROM table_name_30 WHERE result = ""loss"" AND date = ""january 19, 2008""" Report the number of students in each classroom.,"SELECT classroom , count(*) FROM list GROUP BY classroom" What body is at the World Championship for Underwater Target shooting?,"SELECT body FROM table_name_12 WHERE event_type = ""world championship"" AND sport = ""underwater target shooting""" Name the landesliga sud for sg quelle fürth,"SELECT landesliga_süd FROM table_20181270_3 WHERE bayernliga = ""SG Quelle Fürth""" "When is the earliest season at waverley park, a Score of 15.12 (102) – 9.14 (68), and a Margin larger than 34?","SELECT MIN(season) FROM table_name_46 WHERE venue = ""waverley park"" AND score = ""15.12 (102) – 9.14 (68)"" AND margin > 34" What percentage of voters choise McCain in Burlington?,"SELECT mccain__percentage FROM table_20278716_2 WHERE county = ""Burlington""" Which date has 1 as the week?,SELECT date FROM table_name_22 WHERE week = 1 Which is the most ordered quantity product? What is its expected profit margin per piece?,"SELECT productName, MSRP - buyPrice FROM products WHERE productCode = ( SELECT productCode FROM orderdetails ORDER BY quantityOrdered DESC LIMIT 1 )" How many games were on May 20?,"SELECT COUNT(attendance) FROM table_12125069_2 WHERE date = ""May 20""" State the average median SAT value for institutes in the state with the most male graduate cohort in 2013.,SELECT AVG(T1.med_sat_value) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year = 2013 AND T2.gender = 'M' GROUP BY T2.grad_cohort ORDER BY COUNT(T2.grad_cohort) DESC LIMIT 1 Identify by their ID all clients who did not give their consent permission.,SELECT Client_ID FROM events WHERE `Consumer consent provided?` = 'N/A' OR 'Consumer consent provided?' IS NULL OR 'Consumer consent provided?' = '' Which champion got a score of 12-1?,"SELECT champion FROM table_name_78 WHERE score = ""12-1""" What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo?,"SELECT japanese_name FROM table_name_46 WHERE korean_name = ""chungcheong-bukdo""" What the production code for the episode with 16.10 U.S. viewers?,"SELECT MAX(production_code) FROM table_23793770_1 WHERE us_viewers__millions_ = ""16.10""" Which album title and tag that millie jackson released in 1980?,"SELECT T1.groupName, T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear = 1980 AND T1.artist LIKE 'millie jackson' AND T1.releaseType LIKE 'album'" "What is the color description of the product with the name ""catnip""?","SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""catnip""" Find the name of the organization that has published the largest number of papers.,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1 What is the course id for the prerequisite of that course?,SELECT course_id FROM course WHERE course_id IN ( SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance' ) From what series was the title with a production number of 1614 that was directed by Friz Freleng?,"SELECT series FROM table_name_15 WHERE director = ""friz freleng"" AND production_number = 1614" "How old is the student? | Which student are you referring to? | A better question is, how many students are there?","SELECT count ( * ) FROM Person WHERE job = ""student""" Who were the opponents on Week 8?,SELECT opponent FROM table_name_89 WHERE week = 8 "What are the names of Art instructors who have taught a course, and the corresponding course id?","SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'" Return the poll resource associated with the most candidates.,SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1 What Player has a Country of west germany?,"SELECT player FROM table_name_86 WHERE country = ""west germany""" HOw many points where there when the number of goals scored was 47?,SELECT MAX(points) FROM table_18018214_3 WHERE goals_scored = 47 how many persons are from folk genre,"SELECT count ( * ) from artist where preferred_genre = ""folk""" "What is the locale of the language of the page titled ""Asclepi""?",SELECT T2.locale FROM pages AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.title = 'Asclepi' Return the most common full name among all actors.,"SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1" what's the district  with first elected being 1938,SELECT district FROM table_1342292_2 WHERE first_elected = 1938 "What is the full address of the restaurant named ""Sanuki Restaurant""?","SELECT T2.city, T1.street_num, T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'sanuki restaurant'" Count the number of products that were never ordered.,SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items ) What is the Latitude of the monument built in 1901?,SELECT latitude FROM table_name_83 WHERE year_built = 1901 What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?,"SELECT no_6 FROM table_name_56 WHERE no_10 = ""joshua"" AND no_8 = ""andrew""" What is the Second when the third is don walchuk?,"SELECT second FROM table_name_91 WHERE third = ""don walchuk""" what is the division southwest when division south was kožuf and division east was osogovo,"SELECT division_southwest FROM table_17881033_1 WHERE division_south = ""Kožuf"" AND division_east = ""Osogovo""" What is the sum of yards for a 118.7 rating?,SELECT SUM(yards) FROM table_name_43 WHERE rating = 118.7 How many students are in each department?,"SELECT count(*) , dept_code FROM student GROUP BY dept_code" Show all distinct publishers for books.,SELECT DISTINCT publisher FROM book_club What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?,"SELECT distance FROM table_28490105_1 WHERE supporting = ""Champ Car World Series ( Grand Prix of Cleveland )"" AND tc_winning_car = ""Pierre Kleinubing""" "What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?","SELECT away_team FROM table_name_4 WHERE score = ""1 – 0"" AND attendance = ""1,791""" "Which Position has an Event of 10,000 m, and a Competition of world championships, and a Year larger than 1993?","SELECT position FROM table_name_8 WHERE event = ""10,000 m"" AND competition = ""world championships"" AND year > 1993" How many figures are there for density for Yucheng County?,"SELECT COUNT(density) FROM table_2135222_2 WHERE english_name = ""Yucheng County""" What are the site(s) for tv station 8tv?,"SELECT site FROM table_1601792_4 WHERE television_station = ""8TV""" Which language is the most popular on the Asian continent?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = ""Asia"" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1" What is every entry for passed when NO votes is 312187?,SELECT passed FROM table_256286_43 WHERE no_votes = 312187 What is the location of the salem district?,"SELECT location FROM table_name_16 WHERE district = ""salem district""" "How many language code of method is used for the github address ""https://github.com/managedfusion/managedfusion.git ""?",SELECT COUNT(DISTINCT T3.Lang) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T1.Url = 'https://github.com/managedfusion/managedfusion.git' What is the average GPA of students taking ACCT-211?,SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' What is the starting year of the oldest technicians?,SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1 "What is Opposing Teams, when Status is ""Test Match"", and when Date is ""25/11/2000""?","SELECT opposing_teams FROM table_name_96 WHERE status = ""test match"" AND date = ""25/11/2000""" How many performances are listed? | Did you mean the count of Performance ID in the member attendance table ? | Yes,SELECT count ( distinct Performance_ID ) from member_attendance Provide the air carrier description of all flights arriving at Miami.,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.DEST = 'MIA' What is the number of cars with more than 4 cylinders?,SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4; Count the number of storms in which at least 1 person died.,SELECT count(*) FROM storm WHERE Number_Deaths > 0 List the campus that have between 600 and 1000 faculty lines in year 2004.,SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004 What is listed as the highest ERP W with a Call sign of W262AC?,"SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = ""w262ac""" What record was set on Tue 11/02/75?,"SELECT type_of_record FROM table_21436373_8 WHERE date_year = ""Tue 11/02/75""" How many students don't have any type of allergy?,SELECT count ( * ) FROM Student WHERE StuID NOT IN ( SELECT t2.stuid FROM Has_allergy AS T1 JOIN Student as T2 on T1.StuID = T2.StuID ) Name all the podcast title and its category with average rating of more than 3.0.,"SELECT T2.title, T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id GROUP BY T3.podcast_id HAVING AVG(T3.rating) > 3" What country has OF-1 Locotenent?,"SELECT country FROM table_name_40 WHERE of_1 = ""locotenent""" Who made the decision when detroit was the home team and boston was the visitor?,"SELECT decision FROM table_name_81 WHERE home = ""detroit"" AND visitor = ""boston""" What are names of the movies that are either made before 1980 or directed by James Cameron?,"SELECT title FROM Movie WHERE director = ""James Cameron"" OR YEAR < 1980" What is the average GPA of all students?,SELECT avg ( T2.stu_gpa ) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code How many battles did not lose any ship with tonnage '225'?,SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' ); Which team(s) has greater than 75% lost among all the games played.,SELECT name FROM teams WHERE CAST(lost AS REAL) * 100 / games > 75 "what is the highest wins when the losses is less than 1, team is rams and the games is more than 8?","SELECT MAX(wins) FROM table_name_23 WHERE losses < 1 AND teams = ""rams"" AND games > 8" Show all customer ids and the number of accounts for each customer.,"SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id" What is the sum of the bronze medals when there were more than 2 silver medals and a rank larger than 6?,SELECT SUM(bronze) FROM table_name_89 WHERE silver > 2 AND rank > 6 What is the score of the Tournament Players Championship?,"SELECT score FROM table_name_16 WHERE tournament = ""tournament players championship""" "Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia","SELECT erp_w FROM table_name_19 WHERE frequency_mhz > 93.3 AND city_of_license = ""washington, georgia""" What is Block A when Prince Devitt is Devitt (9:53)?,"SELECT block_a FROM table_name_49 WHERE prince_devitt = ""devitt (9:53)""" Find the number of complaints with Product Failure type for each complaint status.,"SELECT complaint_status_code , count(*) FROM complaints WHERE complaint_type_code = ""Product Failure"" GROUP BY complaint_status_code" What is the title of the episode Alex Reid directed?,"SELECT title FROM table_28760804_1 WHERE directed_by = ""Alex Reid""" What is the campus fee of that?,"SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Jose State University""" What type of settlement is ором (hungarian: orom)?,"SELECT type FROM table_2562572_33 WHERE cyrillic_name_other_names = ""Ором (Hungarian: Orom)""" "WHich Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov?","SELECT mountains_classification FROM table_name_99 WHERE asian_team_classification = ""seoul cycling team"" AND winner = ""alexandre usov""" "What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?","SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = ""no"" AND s_default_argument = ""no"" AND functions = ""no"" AND eval_function = ""no""" How many current legislators have both accounts on both VoteView.com and maplight.org?,SELECT COUNT(*) FROM current WHERE icpsr_id IS NOT NULL AND maplight_id IS NOT NULL Calculate the average age of people who have apps installed but are not active on their devices.,SELECT AVG(T1.age) FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id INNER JOIN app_events_relevant AS T3 ON T2.event_id = T3.event_id WHERE T3.is_installed = 1 AND T3.is_active = 0 "Which player has a Position of defence, and a Pick # of 6?","SELECT player FROM table_name_42 WHERE position = ""defence"" AND pick__number = ""6""" How many total appearances are there when the league appearances is 192?,SELECT COUNT(total_appearances) FROM table_29701419_2 WHERE league_appearances = 192 "what is the catogery of the particular year id | Do you mean of the year id 1944? | yes, what is the category mentioned for the year id 1944",SELECT category FROM hall_of_fame where yearid = 1944 what about the countries with manager of age below 46?,SELECT Country FROM manager WHERE Age < 46 What city is the hidden valley raceway in?,"SELECT city___state FROM table_name_79 WHERE event_circuit = ""hidden valley raceway""" What is the average number of shipments done by the Kenworth trucks?,SELECT CAST(COUNT(T2.ship_id) AS REAL) / COUNT(DISTINCT T1.truck_id) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Kenworth' "From 1979 to 1982, what was the percentage of united.states albums out of total albums were released?",SELECT CAST(SUM(CASE WHEN T2.tag LIKE 'united.states' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.releaseType) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 1979 AND 1982 AND T1.releaseType LIKE 'album' Find the title of course whose prerequisite is course Differential Geometry.,SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') "Among all the current female legislators, how many of them have not been registered in Federal Election Commission data?",SELECT COUNT(*) FROM current WHERE (fec_id IS NULL OR fec_id = '') AND gender_bio = 'F' Who is the oldest among all the casts and crews?,SELECT name FROM Person ORDER BY birthdate ASC LIMIT 1; How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?,SELECT SUM(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000 What are the bed types of those rooms?,SELECT bedType FROM Rooms ORDER BY basePrice DESC LIMIT 3 who scored highest points on the game with record 27–5,"SELECT high_points FROM table_17190012_7 WHERE record = ""27–5""" When belarus is the country what is the hometown?,"SELECT hometown FROM table_18626383_2 WHERE country = ""Belarus""" What was the D segment for episode 60?,SELECT segment_d FROM table_name_25 WHERE episode = 60 Return the channel code and contact number of the customer contact channel whose active duration was the longest.,"SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)" Which Athletes have a Run 2 of 2:21.82?,"SELECT athletes FROM table_name_39 WHERE run_2 = ""2:21.82""" List the information of all instructors ordered by their salary in ascending order.,SELECT * FROM instructor ORDER BY salary How many different kinds of media types are there?,SELECT count ( * ) FROM ( SELECT T2.MediaTypeId FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ) List all budget type codes and descriptions.,"SELECT budget_type_code , budget_type_description FROM Ref_budget_codes" Find the names and number of works of the three artists who have produced the most songs.,"SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3" "Find the match ids of the cities that hosted competition ""1994 FIFA World Cup qualification""?","SELECT match_id FROM MATCH WHERE competition = ""1994 FIFA World Cup qualification""" What is the total revenue of all companies whose main office is at Tokyo or Taiwan?,SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' Mention the name of unemployed students who have never been absent from school.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.month = 0 What is the average Top-10 when there were 17 cuts made with less than 0 wins?,SELECT AVG(top_10) FROM table_name_93 WHERE cuts_made = 17 AND wins < 0 "What is the record of the buccaneers on December 4, 1983?","SELECT record FROM table_name_9 WHERE date = ""december 4, 1983""" What is the projected sales quota amount in 2013 and sales YTD amount for sales person with business entity ID 275?,"SELECT SUM(T1.SalesQuota) FROM SalesPerson AS T1 INNER JOIN SalesPersonQuotaHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.BusinessEntityID = 275 AND STRFTIME('%Y', QuotaDate) = '2013'" "What is the name, latitude, and city of the station that is located the furthest South?","SELECT name , lat , city FROM station ORDER BY lat LIMIT 1" How many competitions in this table? | Did you mean the number of different competitions? | Yes.,SELECT count ( distinct Competition ) FROM game "What is the boiler provider for Bhel, India's TG Set provider?","SELECT boiler_provider FROM table_28672269_1 WHERE tg_set_provider = ""BHEL, India""" What is the name of the player with the highest number of outstanding player awards in a particular match?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match GROUP BY T2.Man_of_the_Match ORDER BY COUNT(T2.Man_of_the_Match) DESC LIMIT 1 How many type of products did Dalton M. Coleman purchase?,SELECT COUNT(T2.ProductID) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.FirstName = 'Dalton' AND T1.MiddleInitial = 'M' AND T1.LastName = 'Coleman' What is the tax source system code for benefits and overpayments?,SELECT T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id What was the archive for the episode with a run time of 25:24?,"SELECT archive FROM table_2102714_1 WHERE run_time = ""25:24""" "What is Visitor, when Home is ""Chicago Black Hawks"", and when Date is ""May 4""?","SELECT visitor FROM table_name_77 WHERE home = ""chicago black hawks"" AND date = ""may 4""" List every album whose title starts with A in alphabetical order.,SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title What is the score at the Addis Ababa location?,"SELECT score FROM table_name_47 WHERE location = ""addis ababa""" Name the total number for 3 public,SELECT COUNT(total) FROM table_26375386_22 WHERE public = 3 Who was the captain of the winning team in the match held on 1st June 2008?,SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T2.Match_Id = T1.Match_Id INNER JOIN Player AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Rolee AS T4 ON T4.Role_Id = T1.Role_Id WHERE T2.Match_Date = '2008-06-01' AND T4.Role_Desc = 'Captain' AND T2.Match_Winner = T1.Team_Id Find the last names of the staff members who processed complaints about the cheapest product.,SELECT last_name from staff where staff_id in (SELECT staff_id from complaints WHERE product_id in (SELECT product_id FROM products ORDER BY product_price ASC LIMIT 1)) "thank you, could you please also let me know their names and local authorities?","SELECT t2.id , t2.network_name, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max ( t1.precipitation ) > 50" How much time was spent at Subway?,"SELECT sum ( Visits_Restaurant.Spent ) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Restaurant.ResName = ""Subway""" Find the name and email for the users who have more than one follower.,"SELECT T1.name , T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > 1" What are the f/laps for race 14?,SELECT f_laps FROM table_25740774_1 WHERE races = 14 "Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?","SELECT athlete FROM table_name_8 WHERE 224 = ""xo"" AND 220 = ""o"" AND 215 = ""o""" Which member names corresponding to members who are not in the Progress Party?,"SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != ""Progress Party""" What is the sum of the figure skating scores whose total is less than 117.78?,SELECT SUM(figures) FROM table_name_13 WHERE total < 117.78 What is the lowest average of the contestant with an interview of 8.275 and an evening gown bigger than 8.7?,SELECT MIN(average) FROM table_name_31 WHERE interview = 8.275 AND evening_gown > 8.7 When did Alan Hutcheson won Class B on round 1?,"SELECT date FROM table_24853015_1 WHERE class_b_winner = ""Alan Hutcheson"" AND round = 1" "Which Prominence (m) has an Elevation (m) of 3,095?",SELECT MIN(prominence__m_) FROM table_name_67 WHERE elevation__m_ = 3 OFFSET 095 What are the names of all the customers in alphabetical order?,SELECT name FROM accounts ORDER BY name "Among the books ordered by Lucas Wyldbore, what is the percentage of those books over $13?",SELECT CAST(SUM(CASE WHEN T1.price > 13 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore' Show the names of members that have a rank in round higher than 3.,SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3 How many ships are there?,SELECT count ( * ) FROM ship Show the names of editors and the theme of journals for which they serve on committees.,"SELECT T2.Name , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID" "For each publisher, state the type of titles they published order by the publisher name.","SELECT DISTINCT T2.pub_name, T1.type FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id ORDER BY T2.pub_name" "If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons?","SELECT long_ranged_weapons FROM table_27704991_1 WHERE close_ranged_weapons = ""Knife (stone), Knife (iron)""" What is the song with the most vocals?,SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1 On what date was the opponent the Green Bay Packers?,"SELECT date FROM table_name_43 WHERE opponent = ""green bay packers""" "Of all shows who have a rating larger than 7.8, aired on October 26, 2006, and has a share of over 14, what is the sum of the viewers?","SELECT SUM(viewers) FROM table_name_91 WHERE rating > 7.8 AND airdate = ""october 26, 2006"" AND share > 14" Which Round has a Player of sammy okpro?,"SELECT AVG(round) FROM table_name_32 WHERE player = ""sammy okpro""" "How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)?","SELECT COUNT(result) FROM table_29026564_9 WHERE score = ""6–7 (2–7) , 6–2, 7–6 (7–3)""" What is the Opponent of the game after Week 3 with a Result of L 10–6?,"SELECT opponent FROM table_name_86 WHERE week > 3 AND result = ""l 10–6""" "What is the total horses record for each farm, sorted ascending?",SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC What NHL team was the player from Calgary Centennials (WCHL) drafted for?,"SELECT nhl_team FROM table_1965650_11 WHERE college_junior_club_team = ""Calgary Centennials (WCHL)""" Sir Rodney's Marmalade is supplied by which company and who is the contact for this company?,"SELECT T2.CompanyName, T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName LIKE 'Sir Rodney%s Marmalade'" "Among films with store ID of 2, list the title of films with the highest rental rate.",SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 ORDER BY rental_rate DESC LIMIT 1 What's the smallest number of podiums having more than 6 starts and 5 finishes?,SELECT MIN(podiums) FROM table_name_82 WHERE finishes = 5 AND starts > 6 What is the report for the race of Argentine Grand Prix?,"SELECT report FROM table_name_88 WHERE race = ""argentine grand prix""" How many rank entries are there when new points are 1155?,SELECT COUNT(rank) FROM table_29572583_19 WHERE new_points = 1155 What party did john s. barbour represent?,"SELECT party FROM table_2668243_25 WHERE incumbent = ""John S. Barbour""" What is the invoice number and invoice date corresponding to the invoice with the greatest number of transactions?,"SELECT T2.invoice_number , T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1" Find the first names and last names of teachers in alphabetical order of last name.,"SELECT first_name, last_name FROM Teachers ORDER BY last_name" "What is the maximum number that a certain service is provided? List the service id, details and number.","SELECT T1.service_id , T1.service_details , count(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY count(*) DESC LIMIT 1" What is the most liked repository? Indicate its github address and the amount of stars it has received.,"SELECT Url, Stars FROM Repo WHERE Stars = ( SELECT MAX(Stars) FROM Repo )" What was the losing team in the 1993 season?,SELECT losingteam FROM table_11236195_2 WHERE season = 1993 On what date is the Chrysalis Records label.?,"SELECT date FROM table_name_21 WHERE label = ""chrysalis records""" What is the % of same-sex marriages for the year of 2011?,"SELECT _percentage_same_sex_marriages FROM table_19614212_1 WHERE year = ""2011""" So how many total games were there?,SELECT count ( * ) FROM GAME What was the Home Team Score for the Windy Hill Venue?,"SELECT home_team AS score FROM table_name_63 WHERE venue = ""windy hill""" What are the different types of vocals?,SELECT DISTINCT TYPE FROM vocals Which Party has a Office of majority floor leader,"SELECT party FROM table_name_46 WHERE office = ""majority floor leader""" "And finally, can you tell me the average unsure rate?",SELECT avg ( Unsure_rate ) FROM candidate What are the names of races that were held after 2017 and the circuits were in the country of Spain?,"SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2017" What is the most populated city in California?,SELECT city_name FROM city WHERE state = 'California' AND population = ( SELECT MAX(population) FROM city WHERE state = 'California' ) What is the number of titles for the city of győr with a rank larger than 4?,"SELECT SUM(titles) FROM table_name_47 WHERE city = ""győr"" AND rank > 4" What is the highest score in those games where the average is 9.88?,"SELECT MIN(highest_score) FROM table_28547332_4 WHERE average = ""9.88""" Find the name and flag of ships that are not steered by any captain with Midshipman rank.,"SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')" Which team has run 1 of 1:17.44?,"SELECT team FROM table_name_36 WHERE run_1 = ""1:17.44""" Which original artist has a Episode of workshop #1?,"SELECT original_artist FROM table_name_32 WHERE episode = ""workshop #1""" How many people in total can stay in the modern rooms of this inn?,SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern'; Name the most ending with,SELECT MAX(ending_with) FROM table_1852650_1 "Good morning, could you please let me know the IDs of the stations those are located in San Francisco?","SELECT id FROM station WHERE city = ""San Francisco""" How much is the purse ( $ ) when the margin of victory is 1 stroke?,"SELECT purse___$__ FROM table_13388681_1 WHERE margin_of_victory = ""1 stroke""" "What is the sum of Land, when React is greater than 0.217, and when Name is Yoel Hernández?","SELECT SUM(lane) FROM table_name_75 WHERE react > 0.217 AND name = ""yoel hernández""" What conference are these schools in?,SELECT Primary_conference FROM university WHERE School in ( SELECT School FROM university WHERE enrollment > 15000 ) "What is the lowest First Elected, when Party is ""Republican"", and when District is ""Minnesota 1""?","SELECT MIN(first_elected) FROM table_name_19 WHERE party = ""republican"" AND district = ""minnesota 1""" "List document IDs, document names, and document descriptions for all documents.","SELECT document_id , document_name , document_description FROM Documents" Name the team with Laps of 333,SELECT team FROM table_name_92 WHERE laps = 333 What is the away team score at victoria park?,"SELECT away_team AS score FROM table_name_42 WHERE venue = ""victoria park""" "Hi, Can you tell me the most common builder of railways?",SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT ( * ) DESC LIMIT 1 "What is Tries Against, when Points Against is 213?","SELECT tries_against FROM table_name_78 WHERE points_against = ""213""" how many times is gold more than 0 and the rank less than 2?,SELECT COUNT(silver) FROM table_name_64 WHERE gold > 0 AND rank < 2 List official names of cities in descending order of population.,SELECT Official_Name FROM city ORDER BY Population DESC Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?,"SELECT democratic_ticket FROM table_name_71 WHERE socialist_ticket = ""edna mitchell blue""" Name the 012 club which has of norbert hosnyánszky category:articles with hcards?,"SELECT 2012 AS _club FROM table_name_23 WHERE name = ""norbert hosnyánszky category:articles with hcards""" which department is managed by taylor?,"SELECT dept_name from department where building = ""Taylor""" What is the average duration of trips that ended on a foggy day?,SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.events = 'Fog' "If the team is Gloucestershire, what is the average?","SELECT average FROM table_27268238_4 WHERE team = ""Gloucestershire""" Which Bronze has a Gold smaller than 0?,SELECT AVG(bronze) FROM table_name_82 WHERE gold < 0 Name the season number for the direction of patrick norris,"SELECT season__number FROM table_12419515_5 WHERE directed_by = ""Patrick Norris""" What score has nashville predators as the opponent?,"SELECT score FROM table_name_91 WHERE opponent = ""nashville predators""" "For the tweet which got the most likes, state the gender of the user who tweeted it.",SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID ORDER BY T1.Likes DESC LIMIT 1 Which team plays home at Princes Park?,"SELECT home_team FROM table_name_45 WHERE venue = ""princes park""" What is the number of classes offered by each school?,"SELECT count ( * ) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code" How many wheels do the long cars have?,SELECT SUM(wheels) FROM cars WHERE len = 'long' what is the right ascension (j2000) when the apparent magnitude is 13?,SELECT right_ascension___j2000__ FROM table_name_77 WHERE apparent_magnitude = 13 "Which box score has an Attendance of 54,773?","SELECT boxscore FROM table_name_32 WHERE attendance = ""54,773""" What is the best time for a rusport driver with a qual 2 time of 1:10.166?,"SELECT MAX(best) FROM table_name_58 WHERE team = ""rusport"" AND qual_2 = ""1:10.166""" List all the states in the South region.,SELECT state FROM state WHERE Region = 'South' What was the date of the home game for Hartford?,"SELECT date FROM table_name_87 WHERE home = ""hartford""" What is the home team of the game with Warriors as the visitor team?,"SELECT home FROM table_name_35 WHERE visitor = ""warriors""" What is the 2.15 for Tom Parsons?,"SELECT 215 FROM table_name_9 WHERE athlete = ""tom parsons""" "Which location has a Score of 3–2, and a Record of 3–2–3?","SELECT location FROM table_name_31 WHERE score = ""3–2"" AND record = ""3–2–3""" who is the the incumbent with dbeingtrict being florida 2,"SELECT incumbent FROM table_1342013_9 WHERE district = ""Florida 2""" Find the average age of students living in each dorm and the name of dorm.,"SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" What is the percentage of land area in the ecozone that the percentage protected is 7.96?,"SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = ""7.96""" How many laps did Ricardo Zonta have?,"SELECT SUM(laps) FROM table_name_69 WHERE driver = ""ricardo zonta""" What is the PAL M for the NTSC M 4.5mhz?,"SELECT pal_m FROM table_name_54 WHERE ntsc_m = ""4.5mhz""" Show each premise type and the number of premises in that type.,"SELECT premises_type , count(*) FROM premises GROUP BY premises_type" What college/junior/club team had a player selected in round 6?,SELECT college_junior_club_team__league_ FROM table_name_4 WHERE round = 6 Show all card type codes and the number of customers holding cards in each type.,"SELECT card_type_code , count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code" Show names of technicians and series of machines they are assigned to repair.,"SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID" "Among the postal points in Texas, provide the zip codes and cities of postal points which have total beneficiaries of above 10000.","SELECT T2.zip_code, T2.city FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Texas' AND T2.total_beneficiaries > 10000" What is the agricultural land area in sq. km of Italy in 1968?,SELECT Value FROM Indicators WHERE IndicatorName = 'Agricultural land (sq. km)' AND Year = 1968 AND CountryName = 'Italy' What was the highest amount of people that attended the elgin city team?,"SELECT COUNT(highest) FROM table_11206916_1 WHERE team = ""Elgin City""" Write down the full name of Vie President of Sales and his age when he was hired.,"SELECT FirstName, LastName , TIMESTAMPDIFF(YEAR, BirthDate, HireDate) AS AGE FROM Employees WHERE Title = 'Vice President, Sales'" List the nations that have more than two ships.,SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2 "When the result is d, who are the opponents?","SELECT opponents FROM table_name_19 WHERE result = ""d""" List the states which have between 2 to 4 staff living there.,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4; Which player is from Belgium?,"SELECT name FROM table_name_44 WHERE nationality = ""belgium""" How many customer ids are on the list?,SELECT count ( distinct customer_id ) from customers What are the names of the perpetrators in the country China?,"SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""China""" Who is the author of First Things First?,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.title = 'First Things First' Find the ids of the problems that are reported by the staff whose last name is Bosco.,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = ""Bosco""" What is the name of the school with the minimum enrollment?,SELECT School_name FROM school order by Enrollment limit 1 List the 5 sales teams that have made sales with the highest net profits.,"SELECT T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID ORDER BY REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') DESC LIMIT 5" In which district have there been more intimidation-type crimes?,SELECT T3.district_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'INTIMIDATION' GROUP BY T3.district_name ORDER BY COUNT(T1.primary_description) DESC LIMIT 1 What is the Location when the individual was josé maria cañizares?,"SELECT location FROM table_name_23 WHERE individual = ""josé maria cañizares""" Which faculty members participate in activities?,"SELECT T2.Lname, T2.Fname FROM Faculty_Participates_in as T1 join Faculty as T2 on T1.Facid = T2.Facid" Who was the Runner-up when the game was played at Bells Beach?,"SELECT runner_up FROM table_name_31 WHERE location = ""bells beach""" What is the name of the department with the most students enrolled?,SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1 "Among the low income countries, which country has the lowest fertility rate?","SELECT T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Low income' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)' ORDER BY T2.Value LIMIT 1" "Show minimum, maximum, and average market value for all companies.","SELECT min(market_value) , max(market_value) , avg(market_value) FROM company" What is the trans 2 duration if the total time is 1:51:19.45?,"SELECT trans_2 FROM table_17085947_32 WHERE total_time = ""1:51:19.45""" what is the year when the location is yankee stadium and the result is 23-23,"SELECT AVG(year) FROM table_name_74 WHERE location = ""yankee stadium"" AND result = ""23-23""" Which employees have either destroyed a document or made an authorization to do so? Return their employee ids.,SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed what's player with position being forward and current club being real madrid,"SELECT player FROM table_12962773_1 WHERE position = ""Forward"" AND current_club = ""Real Madrid""" Show all information about each body builder.,SELECT * FROM body_builder How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?,SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34 How many rooms are there?,SELECT count ( * ) FROM Rooms What was the smallest crowd size at a home game for Footscray?,"SELECT MIN(crowd) FROM table_name_93 WHERE home_team = ""footscray""" What's the shut down state of the unit that's been in commercial operation since 01.02.1984?,"SELECT shut_down FROM table_12983929_1 WHERE commercial_operation = ""01.02.1984""" Which award was won when the nomination was Senses Around?,"SELECT award FROM table_name_77 WHERE result = ""won"" AND nomination = ""senses around""" What is the country with a 66-70-69=205 score?,SELECT country FROM table_name_21 WHERE score = 66 - 70 - 69 = 205 where is the headquarters for BP,"SELECT headquarters FROM company WHERE name = ""BP""" Who is the rider of Scot Racing team with a Honda constructor and rounds 6-17?,"SELECT rider FROM table_name_88 WHERE constructor = ""honda"" AND team = ""scot racing team"" AND rounds = ""6-17""" Name the project which has a missle of agni-iii,"SELECT project FROM table_name_92 WHERE missile = ""agni-iii""" WHICH Venue IS after 1992 with a Score of 1 – 0 and a Winners of us chaouia?,"SELECT venue FROM table_name_93 WHERE year > 1992 AND score = ""1 – 0"" AND winners = ""us chaouia""" "What was the outcome on August 5, 2007?","SELECT outcome FROM table_name_59 WHERE date = ""august 5, 2007""" What is the team's record in games against the Hartford Whalers?,"SELECT record FROM table_name_52 WHERE opponent = ""hartford whalers""" How many apps for the rank of 8 in the 2012/13 season?,"SELECT MAX(apps) FROM table_name_7 WHERE rank = 8 AND season = ""2012/13""" What bridge is the longest bridge measured in feet? | Do you want the name of the longest bridge measured in feet? | Yes,SELECT name FROM bridge WHERE length_feet = ( select max ( length_feet ) from bridge ) "Give the title of the work that contains the character ""Shylock"".",SELECT DISTINCT T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.CharName = 'Shylock' How many Against have Played smaller than 18?,SELECT COUNT(against) FROM table_name_54 WHERE played < 18 Who plays for sam houston state?,"SELECT player FROM table_name_79 WHERE college = ""sam houston state""" "What are the names of parties that have both delegates on ""Appropriations"" committee and ""Economic Matters"" committee","SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Appropriations"" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = ""Economic Matters""" Can you list all the players?,SELECT * FROM player what is the province when the rank is higher than 24 and the name is laforge-2?,"SELECT province FROM table_name_42 WHERE rank > 24 AND name = ""laforge-2""" How many courses are there in the History Department?,"select count ( * ) from course where dept_name = ""History""" "What is the Paper Type with a First Day Cover Cancellation with ottawa, on?","SELECT paper_type FROM table_name_11 WHERE first_day_cover_cancellation = ""ottawa, on""" what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade?,"SELECT date_of_vacancy FROM table_name_25 WHERE position_in_table = ""16th"" AND outgoing_manager = ""russell slade""" Please list the destination cities of all the shipments ordered by S K L Enterprises Inc.,SELECT DISTINCT T3.city_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T1.cust_name = 'S K L Enterprises Inc' Can you also show their compatible years?,"SELECT T2.name , T3.name, t1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id" What is the name of customers who do not use Cash as payment method.,SELECT customer_name FROM customers WHERE payment_method ! = 'Cash' "Among the products that have a retail price greater than 1,000, how many products were shipped via ship?",SELECT COUNT(T1.ps_suppkey) FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_retailprice > 1000 AND T2.l_shipmode = 'SHIP' How many sales values have been created by sales representative and which sales representative have the highest sales?,SELECT SUM(T3.UnitPrice * T3.Quantity) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.Title = 'Sales Representative' ORDER BY SUM(T3.UnitPrice * T3.Quantity) How many rounds were played on May 8?,"SELECT COUNT(round) FROM table_25773116_2 WHERE date = ""May 8""" What is the country of the player who has a total larger than 300?,SELECT country FROM table_name_70 WHERE total > 300 What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers?,SELECT MIN(episode__number) FROM table_name_89 WHERE rating / SHARE(18 AS –49) = 0.9 / 4 AND viewers__millions_ > 3.79 What was the competition on 7 June 1999?,"SELECT competition FROM table_name_84 WHERE date = ""7 june 1999""" "What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze?",SELECT COUNT(rank) FROM table_name_2 WHERE silver < 2 AND gold = 4 AND bronze > 2 What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles?,"SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = ""philadelphia eagles""" Which tracks are on the Movies Playlist?,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' What is the value in 2008 for the US Open?,"SELECT 2008 FROM table_name_31 WHERE tournament = ""us open""" "Which Label has a Country of canada, and a Format of cd/digital download?","SELECT label FROM table_name_53 WHERE country = ""canada"" AND format = ""cd/digital download""" "Bronze larger than 2, and a Rank of 4, and a Total larger than 7 has how many numbers of gold?",SELECT AVG(gold) FROM table_name_84 WHERE bronze > 2 AND rank = 4 AND total > 7 List the names of buildings with at least 200 feet of height and with at least 20 floors.,SELECT name FROM building WHERE height_feet >= 200 AND floors >= 20 How many tracks belong to rock genre?,"SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" What is the employee of company number 1's full name?,"SELECT FirstName, MiddleName, LastName FROM Person WHERE BusinessEntityID = 1 AND PersonType = 'EM'" How many actors starred in the film id 508?,SELECT COUNT(actor_id) FROM film_actor WHERE film_id = 508 Count the number of customers.,SELECT count(*) FROM Customers What's the title when the genre is drama and network of KBS2 happening before 2011?,"SELECT title FROM table_name_4 WHERE year < 2011 AND network = ""kbs2"" AND genre = ""drama""" Can you filter this list to show only the row that contains the email address of stanley.monahan@example.org?,"select T2.candidate_id, T1.email_address from people AS T1 JOIN Candidates as T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = 'stanley.monahan@example.org'" What was the home team's score that played Geelong?,"SELECT home_team AS score FROM table_name_44 WHERE away_team = ""geelong""" In how many different cities are banks located?,SELECT count(DISTINCT city) FROM bank "Among the customers of empolyee 1370, who has the highest credit limit?Please list the full name of the contact person.","SELECT t2.contactFirstName, t2.contactLastName FROM employees AS t1 INNER JOIN customers AS t2 ON t1.employeeNumber = t2.salesRepEmployeeNumber WHERE t1.employeeNumber = '1370' ORDER BY t2.creditLimit DESC LIMIT 1" "Route larger than 24, and a Highway of trail ridge road had what elevation?","SELECT elevation FROM table_name_24 WHERE route > 24 AND highway = ""trail ridge road""" How much is the Peugeot 505s Turbo Diesel?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'peugeot 505s turbo diesel' "What are the name, phone number and email address of the customer who made the largest number of orders?","SELECT T1.customer_name , T1.customer_phone , T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1" How many companies operate in airports in the United States?,"SELECT count ( distinct T1.id ) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id where T3.country = ""United States""" What is the PRR class of the freight train built in 1967 with a b-b wheel arrangement?,"SELECT prr_class FROM table_name_4 WHERE wheel_arrangement = ""b-b"" AND service = ""freight"" AND build_date = ""1967""" What is Bob Gilder in Place T3's To par?,"SELECT to_par FROM table_name_43 WHERE place = ""t3"" AND player = ""bob gilder""" What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683,SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683 How many different teams have had eliminated wrestlers?,SELECT COUNT (DISTINCT team) FROM elimination State the number of female legislators in the list.,SELECT COUNT(*) FROM current WHERE gender_bio = 'F' "What is score of the game that was at a paace of t4, and had the player Butch Baird?","SELECT score FROM table_name_36 WHERE place = ""t4"" AND player = ""butch baird""" Find the last name and age of the student who has allergy to both milk and cat.,"SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" Find the name of the first 5 customers.,SELECT customer_name FROM customers ORDER BY date_became_customer LIMIT 5 What venue is used before 2012 with a result of 12th?,"SELECT venue FROM table_name_18 WHERE result = ""12th"" AND year < 2012" "For the user who post the list that contained the most number of the movies, is he/she a paying subscriber when creating that list?",SELECT T1.user_has_payment_method FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number = ( SELECT MAX(list_movie_number) FROM lists ) Which destination has least number of flights?,SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1 "For each user, find their name and the number of reviews written by them.","SELECT T1.name , count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" Which Asian countries have a population that is larger than any country in Africa?,"SELECT Name FROM country WHERE Continent = ""Asia"" AND population > (SELECT MAX(population) FROM country WHERE Continent = ""Africa"")" What is the team #1 that has unics kazan for team #2?,"SELECT team__number1 FROM table_name_97 WHERE team__number2 = ""unics kazan""" Who was everyone first elected when incumbent was John J. Hemphill?,"SELECT first_elected FROM table_1431467_4 WHERE incumbent = ""John J. Hemphill""" What are the issue dates of volumes associated with the artist aged 23 or younger?,SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age < = 23 What is the Nationality when the club team is Peterborough Petes (OHL)?,"SELECT nationality FROM table_11803648_20 WHERE club_team = ""Peterborough Petes (OHL)""" What are the names of candidates who have a lower support rate than oppose rate?,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate "What are the degrees conferred in ""San Francisco State University""?","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Francisco State University""" Which regions have online sales channels that have the most discounts?,SELECT T2.Region FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.`Sales Channel` = 'Online' ORDER BY T1.`Discount Applied` DESC LIMIT 1 "Among the crimes with no arrest made, how many of them happened in the ward represented by alderman Pat Dowell?",SELECT SUM(CASE WHEN T1.alderman_last_name = 'Dowell' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.arrest = 'FALSE' AND T1.alderman_first_name = 'Pat' "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.","SELECT T1.fault_short_name , T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id" Find the average height and weight for all males (sex is M).,"SELECT AVG(height), AVG(weight) FROM people WHERE sex = 'M'" "Which average Against has Points of 6, and a Played smaller than 9?",SELECT AVG(against) FROM table_name_65 WHERE points = 6 AND played < 9 What is he Atsushi Aoki when the Black Tiger V is ibushi (16:35)?,"SELECT atsushi_aoki FROM table_name_96 WHERE black_tiger_v = ""ibushi (16:35)""" "What is maximum and minimum RAM size of phone produced by company named ""Nokia Corporation""?","SELECT max(T1.RAM_MiB) , min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"";" what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.,"SELECT max(num_of_shops) , avg(Num_of_Factories) FROM manufacturer WHERE open_year < 1990" What about for the Chicago White Stockings?,SELECT avg ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Chicago White Stockings' The frequency 89.3 belongs to what class?,SELECT class FROM table_name_79 WHERE frequency_mhz = 89.3 What is T2 Place Player Steve Flesch's Score?,"SELECT MAX(score) FROM table_name_97 WHERE place = ""t2"" AND player = ""steve flesch""" Who played in group 12 when Group 9 played psid jombang?,"SELECT group_12 FROM table_19523142_5 WHERE group_9 = ""PSID Jombang""" " what's the league where regular season is 2nd, northwest","SELECT league FROM table_1046454_1 WHERE regular_season = ""2nd, Northwest""" "What is the category and itune url of the title ""Scaling Global""?","SELECT T1.category, T2.itunes_url FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'Scaling Global'" how many cities are the aiports | Did you mean the number of cities that have any airport? | exactly,select count ( distinct city ) from airports How many schools do not participate in the basketball match?,SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match) Please list all of the street names in Clayton City.,SELECT street_name FROM location WHERE city = 'Clayton' "Show the times of elimination by ""Punk"" or ""Orton"".","SELECT TIME FROM elimination WHERE Eliminated_By = ""Punk"" OR Eliminated_By = ""Orton""" What is listed under try bonus when listed under Tries for is tries for?,"SELECT try_bonus FROM table_13399573_3 WHERE ""tries_for"" = ""tries_for""" What is the speed of the longest roller coaster?,SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1 "Display the first name, and department number for all employees whose last name is ""McEwen"".","SELECT first_name , department_id FROM employees WHERE last_name = 'McEwen'" WHAT IS THE LOCATION OF THIS SHOP,SELECT T2.location FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM ( T1.quantity ) DESC LIMIT 1 "What is the score of a year less than 2008 with loss as the result, in Antalya and a Competition of europe/africa zone, group i, round robin?","SELECT score FROM table_name_49 WHERE year < 2008 AND result = ""loss"" AND location = ""antalya"" AND competition = ""europe/africa zone, group i, round robin""" Tell me the eastern #1 for week of 5,SELECT eastern__number1 FROM table_name_23 WHERE week = 5 What is the department name and corresponding building for the department with the greatest budget?,"SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1" "List the driver's name of the shipment shipped on February 22, 2016.","SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_date = '2016-02-22'" In which series was season 18?,SELECT COUNT(no_in_series) FROM table_2409041_6 WHERE no_in_season = 18 What was the final round score for the player from the Milwaukee Bucks?,"SELECT final_round FROM table_name_31 WHERE team = ""milwaukee bucks""" What NFL Team has the player Danny Triplett with the position linebacker?,"SELECT nfl_team FROM table_2508633_11 WHERE position = ""Linebacker"" AND player = ""Danny Triplett""" Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6?,"SELECT week_6 FROM table_name_60 WHERE week_3 = ""kashmera rakhi"" AND week_1 = ""amit bobby""" Calculate the average length of employment for employee working in the Research and Development deparment.,"SELECT AVG(STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.HireDate)) FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T3.Name = 'Research and Development'" What is the average standard cost of product number CA-1098?,SELECT AVG(T2.StandardCost) FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductNumber = 'CA-1098' "Name the surface on june 11, 1995","SELECT surface FROM table_name_70 WHERE date = ""june 11, 1995""" Which state has the most bad aliases?,SELECT T2.state FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.state ORDER BY COUNT(T1.bad_alias) DESC LIMIT 1 Distinguish the films performed by Judy Dean according to category.,SELECT T5.name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN film_category AS T4 ON T2.film_id = T4.film_id INNER JOIN category AS T5 ON T4.category_id = T5.category_id WHERE T1.first_name = 'Judy' AND T1.last_name = 'Dean' Who was the opposing team during a game in the Pontiac Silverdome?,"SELECT opponent FROM table_name_89 WHERE location = ""pontiac silverdome""" What LNER Class has a Class of 6db?,"SELECT LNER AS class FROM table_name_31 WHERE class = ""6db""" What is the phone number and postal code of the address 1031 Daugavpils Parkway?,"SELECT phone , postal_code FROM address WHERE address = '1031 Daugavpils Parkway'" Which brigade has a population of 190?,"SELECT brigade FROM table_name_44 WHERE population = ""190""" "Thank you very much! Can you update this to display the product category code, product category description, and unit of measure?","SELECT t2.product_category_code,t2.product_category_description, t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code where t1.product_id = 11" List the snatch score and clean jerk score of body builders in ascending order of snatch score.,"SELECT Snatch , Clean_Jerk FROM body_builder ORDER BY Snatch ASC" What is the sum of all the crowds that watched North Melbourne at home?,"SELECT SUM(crowd) FROM table_name_74 WHERE home_team = ""north melbourne""" "Which date has a Score in the final of 4–6, 3–6?","SELECT date FROM table_name_11 WHERE score_in_the_final = ""4–6, 3–6""" Now how many employees can't authorize the destruction of documents.,SELECT sum ( employee_id ) FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed Show all male student ids who don't play football.,"SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.,"SELECT name , prominence FROM mountain EXCEPT SELECT T1.name , T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'" "What is GDP (PPP) Per Capita 2012 Euro, when Population In Millions is greater than 10.8, and when GDP (Nominal) Per Capita 2012 Euro is 25,600?","SELECT gdp__ppp__per_capita_2012_euro FROM table_name_49 WHERE population_in_millions > 10.8 AND gdp__nominal__per_capita_2012_euro = ""25,600""" "What are the names, details and data types of the characteristics which are never used by any product?","SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id" "What is the id, genre, and name of the artist for every English song ordered by ascending rating?","SELECT f_id , genre_is , artist_name FROM song WHERE languages = ""english"" ORDER BY rating" what is the district where the vacator is vacant?,"SELECT district FROM table_2192067_4 WHERE vacator = ""Vacant""" From the round name of third round; what would the new entries this round that would be found?,"SELECT new_entries_this_round FROM table_1281200_1 WHERE round = ""Third round""" How about the total number of cities?,SELECT COUNT ( DISTINCT city ) FROM airports Scott Dixon had how many Grid positions?,"SELECT COUNT(grid) FROM table_17244483_1 WHERE driver = ""Scott Dixon""" What is the lowest number of bronze medals received by a nation with fewer than 0 gold medals?,SELECT MIN(bronze) FROM table_name_68 WHERE gold < 0 What is the sum of the ranks with a total of 1 and silver less than 0.,SELECT SUM(rank) FROM table_name_83 WHERE total = 1 AND silver < 0 What are the first name and last name of all the teachers?,"SELECT DISTINCT firstname , lastname FROM teachers" WHO IS THE HON TONY ABBOTT | did you mean the Member ID of HON TONY ABBOTT | YES EXACTLY,SELECT Member_ID FROM Member where Member_Name = 'Hon Tony Abbott' How many wines are produced at Robert Biale winery?,"SELECT count(*) FROM WINE WHERE Winery = ""Robert Biale""" what was the nominee of best musical,"SELECT nominee FROM table_name_67 WHERE category = ""best musical""" How many opponents did they play on 17/05/2009?,"SELECT COUNT(opponent) FROM table_21378160_2 WHERE date = ""17/05/2009""" How many points did piritas klaipėda get?,"SELECT points FROM table_16034882_4 WHERE club = ""Piritas Klaipėda""" Which first names are used for professionals or owners but are not used as dog names?,SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs "Apologies, I meant to ask his/her major; what is the student's sex?",SELECT sex FROM student WHERE StuID = 1008 "Ok, and of the students who had President votes how many were males?","SELECT DISTINCT count ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""M""" What is the average song rating for each language?,"SELECT avg(rating) , languages FROM song GROUP BY languages" How many customers are there?,SELECT count ( customer_id ) FROM Customers Name the wins for best finish being 2nd,"SELECT wins FROM table_1697190_1 WHERE best_finish = ""2nd""" Name the number for fiji,"SELECT _number FROM table_18888159_1 WHERE country = ""Fiji""" "WHich Play-by-play has a Studio host of gary tanguay, and a Studio analysts of donny marshall?","SELECT play_by_play FROM table_name_63 WHERE studio_host = ""gary tanguay"" AND studio_analysts = ""donny marshall""" "What is the apartment type code for ""Suite 643""?","SELECT T2.apt_type_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" What about all games score for the Clemson school?,SELECT t2.All_Games FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' Name the title for number in season 9,"SELECT title FROM table_16951593_1 WHERE no_in_season = ""9""" Find the government type for the country with the highest percentage GDP in Agriculture.,SELECT T3.Government FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country ORDER BY T2.Agriculture DESC LIMIT 1 "Among the inspections done by sanitarian Joshua Rosa, how many of them have the result of ""pass""?",SELECT COUNT(T2.inspection_id) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.results = 'Pass' AND T1.first_name = 'Joshua' AND T1.last_name = 'Rosa' What is the number of silver when bronze is less than 0?,SELECT COUNT(silver) FROM table_name_10 WHERE bronze < 0 How many of the work orders didn’t meet the due date?,SELECT COUNT(WorkOrderID) FROM WorkOrder WHERE EndDate > DueDate How many games won for teams with 49 tries against?,"SELECT won FROM table_15467476_3 WHERE tries_against = ""49""" What percentage of deaths were caused by rifles?,SELECT CAST(SUM(subject_statuses = 'Deceased') AS REAL) * 100 / COUNT(case_number) FROM incidents WHERE subject_weapon = 'Rifle' How many game entries are there when the points are 57?,SELECT COUNT(game) FROM table_27501030_7 WHERE points = 57 What was the lowest number of pieces for a board released in 1984?,SELECT MIN(pieces) FROM table_name_15 WHERE release = 1984 What is the average number lost when the against value is less than 5?,SELECT AVG(lost) FROM table_name_86 WHERE against < 5 Which team is John Williams a rider for?,"SELECT team FROM table_name_7 WHERE rider = ""john williams""" What is the name of the away team that played at Kardinia Park?,"SELECT away_team FROM table_name_2 WHERE venue = ""kardinia park""" What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?,"SELECT product_name, product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20" Parts Plus sponsors what driver?,"SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = ""parts plus""" Who were the cover models in the edition that included Benicio Del Toro as the interview subject?,"SELECT cover_model FROM table_1566852_10 WHERE interview_subject = ""Benicio del Toro""" Show the home city with the most number of drivers.,SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1 Thank you! Can you filter this list to show only the players who have an overall rating higher than 85?,"SELECT T1.player_api_id, T1.player_name, T1.height, T2.overall_rating FROM Player as T1 JOIN Player_Attributes AS T2 ON T1.player_fifa_api_id = T2.player_fifa_api_id WHERE T2.overall_rating > 85" "If a pair of genes is positively correlated, what is the possibility of it being composed of two genes both with over 10 chromosomes?","SELECT CAST(SUM(IIF(T1.Chromosome > 10 AND T3.Chromosome > 10, 1, 0)) AS REAL) * 100 / COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 INNER JOIN Genes AS T3 ON T3.GeneID = T2.GeneID2 WHERE T2.Expression_Corr > 0" How many students is disabled and unemployed at the same time?,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name What are the average price and score of wines for each appelation?,"SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation" Which African countries have a smaller population than that of any country in Asia?,"SELECT Name FROM country WHERE Continent = ""Africa"" AND population < (SELECT MIN(population) FROM country WHERE Continent = ""Asia"")" What is the description of the treatment type that costs the least money in total?,SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1 How many countries have at least 3 cities?,select count ( * ) from ( SELECT * FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count ( * ) > = 3 ) Provide the number of publications published in the journal named 'Academic Medicine' between 2005 and 2010.,SELECT COUNT(T2.JournalId) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Academic Medicine' AND T2.Year BETWEEN 2005 AND 2010 "Which Bronze has a Year smaller than 1994, and a Silver of south korea?","SELECT bronze FROM table_name_45 WHERE year < 1994 AND silver = ""south korea""" What is the rank of the division with an area of 456800 sq mi?,SELECT rank FROM table_171666_1 WHERE area__sq_mi_ = 456800 Show the name of the party that has at least two records.,SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2 Name the total number of competition finish with total of 90 and rank by average more than 5,SELECT COUNT(competition_finish) FROM table_name_43 WHERE total = 90 AND rank_by_average > 5 What is the total checking balance in all accounts?,SELECT SUM(balance) FROM checking Identify the name and position of the player who has committed the most rule violations.,"SELECT T2.PlayerName, T2.position_info FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.PIM = ( SELECT MAX(PIM) FROM SeasonStatus )" How many customers are from Australia?,SELECT COUNT(*) FROM customer_address AS T1 INNER JOIN address AS T2 ON T2.address_id = T1.address_id INNER JOIN country AS T3 ON T3.country_id = T2.country_id WHERE T3.country_name = 'Australia' "Please list the titles of all the recipes that may lead to constipation, feeling sick or stomach pain.",SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.iron > 20 Who was awarded the young ride classification leader when the winner was Marzio Bruseghin?,"SELECT young_rider_classification FROM table_14710984_2 WHERE winner = ""Marzio Bruseghin""" who is the the incumbent with candidates being ben cravens (d) unopposed,"SELECT incumbent FROM table_1342331_5 WHERE candidates = ""Ben Cravens (D) Unopposed""" Who did the most high assists during the game played on February 6?,"SELECT high_assists FROM table_23248940_9 WHERE date = ""February 6""" What team does Graeme Souness manage?,"SELECT team FROM table_name_32 WHERE manager = ""graeme souness""" what is the author count?,select count ( * ) from authorship How much is the salary of the first employee that was hired?,SELECT Salary FROM Employees WHERE HireDate = ( SELECT MIN(HireDate) FROM Employees ) "Which podcast was reviewed the latest? State the date of creation, podcast tile and rating.","SELECT T1.podcast_id, T2.created_at, T2.title, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id ORDER BY T2.created_at DESC LIMIT 1" How many international passengers in that airport?,SELECT International_Passengers FROM airport ORDER BY International_Passengers DESC LIMIT 1 What is the 1st leg with a junior team #2?,"SELECT 1 AS st_leg FROM table_name_5 WHERE team__number2 = ""junior""" "What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?","SELECT date_of_vacancy FROM table_name_24 WHERE team = ""fc bayern munich"" AND date_of_appointment = ""27 april 2009""" How many results are listed for the election where Noah M. Mason was elected?,"SELECT COUNT(result) FROM table_1342013_12 WHERE incumbent = ""Noah M. Mason""" Which location has an elevation of 3798?,SELECT location FROM table_2731431_1 WHERE elevation__m_ = 3798 what is the result from texas stadium?,"SELECT result FROM table_name_89 WHERE field = ""texas stadium""" Find all the store names in the district with the highest population.,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = ( SELECT district_id FROM district ORDER BY city_population desC LIMIT 1 ) who isthe jockey in 10th position?,"SELECT jockey FROM table_25429986_1 WHERE position = ""10th""" "Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 822, and Works number of 59867?","SELECT type FROM table_name_46 WHERE date < 1943 AND builder = ""alco schenectady"" AND number > 822 AND works_number = 59867" could you please show their names as well? | Do you mean the apartment type code? | yes!,"SELECT apt_type_code, count ( * ) FROM Apartments GROUP BY apt_type_code" WHich Record has a Visitor of quebec nordiques with a Score of 7–5?,"SELECT record FROM table_name_37 WHERE visitor = ""quebec nordiques"" AND score = ""7–5""" What student id corresponds to the oldest student?,SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student) List crimes that the FBI has classified as Drug Abuse by their report number.,SELECT T2.report_no FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Drug Abuse' what is the power when the capacity is 898cc?,"SELECT power FROM table_name_43 WHERE capacity = ""898cc""" "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.","SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) ASC" What is the language spoken by the largest percentage of people in each country?,"SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode" "Calculate the percentage of ""airplane"" object class in the table.",SELECT CAST(SUM(CASE WHEN T2.OBJ_CLASS = 'airplane' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.OBJ_CLASS) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID "What method was used in the match that went to round 1, and had a 6-3-1 record?","SELECT method FROM table_name_13 WHERE round = 1 AND record = ""6-3-1""" Thank you very much! Then could you please show me the male students' first and last name with the same condition? Meaning older than 18 and not majoring in 600.,"SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major ! = 600 AND Sex = 'M'" What company collaborated in pre-clinical autoimmune disease and inflammation?,"SELECT collaboration FROM table_name_99 WHERE status = ""pre-clinical"" AND indication = ""autoimmune disease and inflammation""" "Which city does the student whose last name is ""Kim"" live in?","SELECT city_code FROM Student WHERE LName = ""Kim""" "Give the biography of the actor who played ""Michael Moscovitz"".",SELECT T2.Biography FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Michael Moscovitz' "If the total is 6, what is the maximum R?",SELECT MAX(r) FROM table WHERE total = 6 What is the total of countys where Obama is popular by 35.44%?,"SELECT COUNT(county) FROM table_20688030_1 WHERE obama_percentage = ""35.44%""" Show company name and main industry without a gas station.,"SELECT company , main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)" What distinct accelerator names are compatible with the browsers that have a market share higher than 15.,SELECT DISTINCT T1.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 T3.market_share > 15 What did the team score when playing at home in victoria park?,"SELECT home_team AS score FROM table_name_18 WHERE venue = ""victoria park""" Name the james e. holmes for duane hensley,"SELECT james_e_holmes FROM table_25330991_3 WHERE western_rockingham_middle_school = ""Duane Hensley""" Hello! How many transactions are there total?,SELECT count ( * ) FROM Financial_transactions How many clubs are there in the Korea Republic?,"SELECT clubs FROM table_19412902_2 WHERE member_association = ""Korea Republic""" What country was the golfer with a score of 72-72-72=216 representing?,SELECT country FROM table_name_78 WHERE score = 72 - 72 - 72 = 216 "Which employees were hired after September 7th, 1987?",SELECT * FROM employees WHERE hire_date > '1987-09-07' "Attendance of 30,335 had what record?","SELECT record FROM table_name_74 WHERE attendance = ""30,335""" What's the animals name when the genus/species is rattus norvegicus? ,"SELECT common_name FROM table_15417439_1 WHERE genus_species = ""Rattus norvegicus""" List categories that have at least two books after year 1989.,SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2 Count the total number of bookings made.,SELECT count(*) FROM BOOKINGS What is the position for the university of akron michigan bucks affiliation ,"SELECT position FROM table_29626583_1 WHERE affiliation = ""University of Akron Michigan Bucks""" What position was Parsons in for 1992? ,SELECT position FROM table_2597876_1 WHERE year = 1992 Please list the names of the products that get over 10 reviews and a salable.,SELECT T2.NAME FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.FinishedGoodsFlag = 1 GROUP BY T2.NAME ORDER BY COUNT(T1.comments) > 10 "Tell the path of the solution for the method ""ExportToRTF.RTFStyleSheet.H6Write"".",SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'ExportToRTF.RTFStyleSheet.H6Write' What is the pick # for player wes lysack?,"SELECT MAX(pick__number) FROM table_21321804_1 WHERE player = ""Wes Lysack""" What are the titles of films and corresponding types of market estimations?,"SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID" Name the least capacity for persons hour for 1983,"SELECT MIN(capacity_in_persons_hour) FROM table_17814458_1 WHERE construction_year_s_ = ""1983""" Show me the height list of the student players from this university | Do you mean the height of the players from the college named 'Yale University'? | yes,SELECT T1.height FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University' what is the round when the position is (c)?,"SELECT MAX(round) FROM table_name_85 WHERE position = ""(c)""" What are the clean and jerk score of the body builder with the highest total score?,SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1 When was naomi cavaday the opponent?,"SELECT date FROM table_name_19 WHERE opponent = ""naomi cavaday""" "If we discount the products that do not have any type of offer, how many different products have been sold in an amount greater than 2 units per order?",SELECT COUNT(DISTINCT T1.ProductID) FROM SalesOrderDetail AS T1 INNER JOIN SpecialOfferProduct AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID INNER JOIN SpecialOffer AS T3 ON T2.SpecialOfferID = T3.SpecialOfferID WHERE T1.OrderQty > 2 AND T1.UnitPriceDiscount = 0 How many students are living in the dorms?,SELECT count ( * ) FROM Student "who is the author when featuring is leela, the master, kraals?","SELECT author FROM table_name_42 WHERE featuring = ""leela, the master, kraals""" Hello there! Can you please provide me with a list of all of the different payment method code types?,SELECT distinct payment_method_code FROM INVOICES What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?,"SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1" "For each singer name, what is the total sales for their songs?","SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name" Name the customers who received 'Touring Rim' as a free gift.,"SELECT DISTINCT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T3.Name = 'Touring Rim' AND T3.Price = 0" Find the name of the instructors who taught C Programming course before.,SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' Find the names of customers who have no policies associated.,SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id What was the total prize money where John Tabatabai was the runner-up?,"SELECT prize_money FROM table_12454156_1 WHERE runner_up = ""John Tabatabai""" What character did Moya Angela portray?,"SELECT character FROM table_22460085_1 WHERE original_broadway_performer = ""Moya Angela""" On the Circuit Zolder who was the winning team?,"SELECT winning_team FROM table_25213146_2 WHERE circuit = ""circuit Zolder""" "Name the average bronze with silver more than 0, total of 6 and gold more than 0",SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 0 What is the Wednesday when day 3 is math?,"SELECT wednesday FROM table_name_24 WHERE day_3 = ""math""" Find the names of customers who either have an deputy policy or uniformed policy.,"SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy"" OR t1.policy_type_code = ""Uniformed""" "who is the the writer(s) with original airdate being february 7, 2001","SELECT writer_s_ FROM table_13956521_2 WHERE original_airdate = ""February 7, 2001""" "Name the title, year and keyword of the paper which were written by the author ID of 661002 with the affiliation of ""Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA"" organization.","SELECT T2.Title, T2.Year, T2.Keyword FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.AuthorId = 661002 AND T1.Affiliation = 'Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA'" Name the population 2011 for luxembourg,"SELECT population__2011_ FROM table_17971449_2 WHERE country = ""Luxembourg""" What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?,SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998 How many countries have not participated in competitions with friendly types?,select count ( * ) from ( SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' ) Find the id and city of the student address with the highest average monthly rental.,"SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1" What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?,"SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'" "If the home team is UMBC and the weight is 78kg, what the the name total number?","SELECT COUNT(name) FROM table_22344463_2 WHERE weight = ""78kg"" AND home_team = ""UMBC""" Name the females when males are 1 548,"SELECT females FROM table_name_60 WHERE males = ""1 548""" What is the hangul symbol for the hanja 良州?,"SELECT hangul FROM table_160510_1 WHERE hanja = ""良州""" Wonderful! Can you show me the city's population total and the city's area?,"SELECT City_Population, City_Area FROM district where City_Population = ( select max ( City_Population ) from district ) " Which Apogee was on 1959-02-20?,"SELECT apogee FROM table_name_5 WHERE date = ""1959-02-20""" That's great! Can you update that list to also include all of the arrival times for the trains that have Chiltern listed as their station's local authority?,"SELECT t3.name , t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = ""Chiltern""" What party does sid simpson represent?,"SELECT party FROM table_1342198_13 WHERE incumbent = ""Sid Simpson""" Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7%,"SELECT ipsos_3_14_09 FROM table_name_33 WHERE ifop_11_12_08 = ""7%"" AND opinionway_4_17_09 = ""5%""" "What are the names of documents that contain the substring ""CV""?","SELECT document_name FROM documents WHERE document_name LIKE ""%CV%""" Show the location codes with at least 3 documents.,SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3 "What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?",SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.4 Could you please tell me the total amount claimed?,SELECT sum ( Amount_Claimed ) FROM claim_headers What's the original air date of the episode with a broadcast order s04 e01?,"SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = ""S04 E01""" find the name of the patient who have an insurance id 68476213,SELECT name FROM patient WHERE InsuranceID = 68476213 Who was the home team that played against Manchester United?,"SELECT home_team FROM table_name_86 WHERE away_team = ""manchester united""" "Which track was used on September 12, 1981? ","SELECT track FROM table_22765887_1 WHERE date = ""September 12, 1981""" "Among the coaches who have received an award in 1940, how many of them are born in Toronto?",SELECT COUNT(T1.coachID) FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 1940 AND T1.birthCity = 'Toronto' Result of l 17–20 had what attendance?,"SELECT attendance FROM table_name_31 WHERE result = ""l 17–20""" What percentage of AdventureWorks employees are men?,SELECT CAST(SUM(CASE WHEN T2.Gender = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.BusinessentityID) FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessentityID = T2.BusinessentityID WHERE T1.PersonType = 'EM' "In store ID 2, how many of the films are R rating? ",SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 AND T1.rating = 'R' "Among the German customers, how many of the them has credit limit of zero?",SELECT COUNT(customerNumber) FROM customers WHERE creditLimit = 0 AND country = 'Germany' How many games were played at Columbia Park?,SELECT count ( * ) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T2.park_name = 'Columbia Park' What is the average percentage of students graduating within 100 percent of normal/expected time for Central Alabama Community College?,SELECT AVG(T2.grad_100_rate) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Central Alabama Community College' What is the score for 4-1?,"SELECT score FROM table_name_9 WHERE record = ""4-1""" What is the total of the year with a point larger than 0 or the Chassis of Minardi m190?,"SELECT SUM(year) FROM table_name_32 WHERE chassis = ""minardi m190"" AND points > 0" Name the constructor for the belgian grand prix,"SELECT constructor FROM table_name_69 WHERE race = ""belgian grand prix""" what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?,"SELECT MAX(points) FROM table_name_42 WHERE chassis = ""focus rs wrc 08 and 09"" AND stage_wins > 91" "Which id has the least rating on the table? | Which id do you need, a id, u id, or i id? | i id",SELECT i_id FROM review ORDER BY rating LIMIT 1 Name the brighton cast for andrew verala,"SELECT brighton_cast FROM table_17085724_1 WHERE indianapolis_concerts = ""Andrew Verala""" Find the email of the customer who has filed the most complaints.,SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) DESC LIMIT 1 Which rider went 18 laps ending +25.165 behind the leader?,"SELECT rider FROM table_name_24 WHERE laps = 18 AND time = ""+25.165""" Name the decision for boston bruins visitor,"SELECT decision FROM table_name_14 WHERE visitor = ""boston bruins""" what is the team with the best of 1:43.134?,"SELECT team FROM table_name_75 WHERE best = ""1:43.134""" How many male students have no due payments?,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN male AS T2 ON T1.name = T2.name WHERE T1.bool = 'neg' What was the score of the game when there was a loss of Kern (0-2)?,"SELECT score FROM table_name_44 WHERE loss = ""kern (0-2)""" What is every CFL team with the player Mark Farraway?,"SELECT cfl_team FROM table_28059992_1 WHERE player = ""Mark Farraway""" How many representatives are there in the state with the highest monthly benefit payments for retired workers?,SELECT COUNT(T3.cognress_rep_id) FROM zip_data AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation INNER JOIN congress AS T3 ON T2.abbreviation = T3.abbreviation ORDER BY T1.monthly_benefits_retired_workers DESC LIMIT 1 What is the Rank of Qi Hui?,"SELECT COUNT(rank) FROM table_name_52 WHERE name = ""qi hui""" "Which image has the highest number of ""white"" class attributes?",SELECT T1.IMG_ID AS IMGID FROM IMG_OBJ_att AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T2.ATT_CLASS = 'white' GROUP BY T1.IMG_ID ORDER BY COUNT(T1.ATT_CLASS_ID) DESC LIMIT 1 What is the name of the first book written by J.K Rowling?,SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'J.K. Rowling' ORDER BY T1.publication_date ASC LIMIT 1 Which Venue has a Home team of geelong?,"SELECT venue FROM table_name_45 WHERE home_team = ""geelong""" What is the name of the customer who has the most policies listed?,SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1 "Among the businesses in Chandler, list the attribute of the business with a low review count.","SELECT DISTINCT T3.attribute_id, T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.attribute_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.review_count = 'Low' AND T1.city = 'Chandler'" What is the laid down date of Kaki?,"SELECT laid_down FROM table_name_33 WHERE name = ""kaki""" What is the country in which the customer Carole Bernhard lived?,"SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" How many papers were published in 2005. Calculate the difference between the number of paper published in 2005 and the number of paper published in the previous year.,"SELECT SUM(CASE WHEN Year = 2005 THEN 1 ELSE 0 END) , SUM(CASE WHEN year = 2005 THEN 1 ELSE 0 END) - SUM(CASE WHEN year = 2004 THEN 1 ELSE 0 END) AS diff FROM Paper" Who Player has a Finish of 74?,"SELECT player FROM table_name_68 WHERE finish = ""74""" What is the average revenue of all manufacturers?,SELECT avg ( Revenue ) FROM manufacturers Which Statistics courses are not provided by Psychology department?,SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' Find the names of catalog entries with level number 8.,"SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" Show all locations which don't have a train station with at least 15 platforms.,SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15 Which ships have been decommissioned?,SELECT Ship_ID FROM mission WHERE Fate like '%Decommissioned%' which player is from georgia,"SELECT player FROM table_10015132_7 WHERE school_club_team = ""Georgia""" "What is the number of votes of candidate edward mahama, who had 0.9% share of votes?","SELECT number_of_votes FROM table_name_82 WHERE candidate = ""edward mahama"" AND share_of_votes = ""0.9%""" which products have a price higher than or equal to $150?,SELECT * FROM products where price > = 150 How many calendar items do we have?,SELECT count(*) FROM Ref_calendar "What school is located in Worcester, Massachusetts?","SELECT institution FROM table_1974782_1 WHERE location = ""Worcester, Massachusetts""" How many areas have a population of 703379?,SELECT COUNT(area) FROM table_2135222_2 WHERE population = 703379 "Among the movies, what percentage are horror?","SELECT CAST(SUM(IIF(T2.name = 'horror', 1, 0)) AS REAL) * 100 / COUNT(T2.category_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id" Name the l g for rubio,"SELECT l_g FROM table_22542179_3 WHERE player = ""Rubio""" "What was the record on October 8, 1989?","SELECT record FROM table_16028499_2 WHERE date = ""October 8, 1989""" What was the result of the Tennessee 2 district election? ,"SELECT result FROM table_1342270_42 WHERE district = ""Tennessee 2""" Who is the driver from 1969?,"SELECT driver FROM table_name_42 WHERE year = ""1969""" Are they a good or bad customer,SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500 Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?,"SELECT team FROM table_name_88 WHERE coach = ""manzoor elahi"" AND captain = ""taufeeq umar""" Find the GDP of the city with the largest regional population.,SELECT gdp FROM city ORDER BY Regional_Population DESC LIMIT 1 What is that physician's name?,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment where T3.Name = 'Complete Walletectomy' "Who was the opponent before week 12, on November 11, 1990?","SELECT opponent FROM table_name_63 WHERE week < 12 AND date = ""november 11, 1990""" "How many paragraphs are there in ""Ay, surely, mere the truth: I know his lady.""?","SELECT ParagraphNum FROM paragraphs WHERE PlainText = 'Ay, surely, mere the truth: I know his lady.'" Find the names of all reviewers who rated Gone with the Wind.,SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind' How many viewers in millions watched the episode with the number 10.18?,"SELECT viewers__millions_ FROM table_25391981_20 WHERE episode_number = ""10.18""" What are the titles of courses that are offered in more than one department?,SELECT title FROM course GROUP BY title HAVING count(*) > 1 "what player has To par of –3, and a Score of 73-68=141?","SELECT player FROM table_name_62 WHERE to_par = ""–3"" AND score = 73 - 68 = 141" What are the names of the managers for gas stations that are operated by the ExxonMobil company?,SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil' "Hmm, I want to know which friends are above 40 years old or below 30 years old. | do you mean the name of the person who has friends with age above 40 and under age 30? | I want to know the ages of the friends first, please.","SELECT T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend" What is the production code that was written by matt robinson?,"SELECT production_code FROM table_2818164_7 WHERE written_by = ""Matt Robinson""" "What is the unit of measuerment of the product category code ""Herbs""?","SELECT unit_of_measure FROM ref_product_categories WHERE product_category_code = ""Herbs""" What is the Date of the Vigo Tournament?,"SELECT date FROM table_name_65 WHERE tournament = ""vigo""" "What is the latest amount of won legs in the payoffs when the prize money was £2,350?","SELECT MAX(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = ""£2,350""" What are the phone numbers of all customers and suppliers.,SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers Which game names were played by Linda Smith?,"SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = ""Smith"" AND T3.Fname = ""Linda""" What are the distinct ages of students who have secretary votes in the fall election cycle?,"SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = ""Fall""" what round happened at galpharm stadium?,"SELECT round FROM table_name_16 WHERE venue = ""galpharm stadium""" Which year was won with a finish of 68,"SELECT year_s__won FROM table_name_25 WHERE finish = ""68""" How many wines are produced in Sonoma County?,"SELECT count ( * ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" What about their dates?,"SELECT T2.Name, T1.date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC" Which player Munster from Munster is a fly-half?,"SELECT player FROM table_name_67 WHERE position = ""fly-half"" AND club_province = ""munster""" what is the average of the bytes?,SELECT avg ( Bytes ) from Track "Compute the run rate at the end of 16 overs of the match ID 335999. Please include the name of the ""Man of_the Match"".",SELECT CAST(COUNT(CASE WHEN T1.Toss_Name = 'bat' THEN T3.Runs_Scored ELSE NULL END) AS REAL) / SUM(CASE WHEN T1.Toss_Name = 'field' THEN 1 ELSE 0 END) FROM Toss_Decision AS T1 INNER JOIN Match AS T2 ON T1.Toss_Id = T2.Toss_Decide INNER JOIN Batsman_Scored AS T3 ON T2.Match_Id = T3.Match_Id WHERE T2.Match_Id = 335987 AND T2.Match_Date = '2008-04-18' GROUP BY T3.Over_Id HAVING COUNT(T1.Toss_Name = 'field') = 16 "What is the average tourism receipts in millions of US dollars in 2011 with less than 1.141 million of 2011 tourist arrivals and more than 1,449 tourism receipts in 2011 US dollars per arrival?",SELECT AVG(tourism_receipts__2011___millions_of_us) AS $_ FROM table_name_41 WHERE tourist_arrivals__2011___millions_ < 1.141 AND tourism_receipts__2011___us$_per_arrival_ > 1 OFFSET 449 What was Melbourne's score as the home team?,"SELECT home_team AS score FROM table_name_16 WHERE home_team = ""melbourne""" i need the pilot ID | Did you mean to show all of the pilot IDs ? | yes,SELECT Pilot_ID from pilot What was the attendance when Fitzroy played as the away team?,"SELECT COUNT(crowd) FROM table_name_76 WHERE away_team = ""fitzroy""" "What is the total number of bronze that has less than 2 gold, and more than 1 silver?",SELECT COUNT(bronze) FROM table_name_97 WHERE gold < 2 AND silver > 1 how many Services there,SELECT count ( * ) from Services What's the railway number of a D(rebuild) class?,"SELECT railway_number_s_ FROM table_name_28 WHERE class = ""d(rebuild)""" "Find the subject ID, subject name, and the corresponding number of available courses for each subject.","SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id" What is the average price of wines produced in appelations in Sonoma County?,"SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" List the ids and ratings of each actors played in the movie with the id 1722327?,"SELECT T1.actorid, T1.a_quality FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid WHERE T2.movieid = 1722327" How many teams have a player named Denis Andersen?,"SELECT COUNT(nhl_team) FROM table_1965650_7 WHERE player = ""Denis Andersen""" What state is Knoxville and the mideast region located in?,"SELECT state FROM table_name_76 WHERE region = ""mideast"" AND city = ""knoxville""" What chassis does Gary Bettenhausen use?,"SELECT chassis FROM table_name_13 WHERE drivers = ""gary bettenhausen""" What are the distinct hometowns of gymnasts with total points more than 57.5?,SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5 How many main stream browsers whose market share is at least 5 exist?,SELECT count(*) FROM browser WHERE market_share >= 5 "What is the channel when the analogue terrestrial channel shows n/a, and the internet is itv.com, with a position larger than 6, and digital terrestrial channel is 6 27 (+1)?","SELECT channel FROM table_name_10 WHERE analogue_terrestrial_channel = ""n/a"" AND internet = ""itv.com"" AND position > 6 AND digital_terrestrial_channel = ""6 27 (+1)""" List all the image name and URLs in the order of their names.,"SELECT image_name , image_url FROM images ORDER BY image_name" What is the lowest grid number when Colin Edwards is the rider?,"SELECT MIN(grid) FROM table_name_46 WHERE rider = ""colin edwards""" How many games are played for all football games by students on scholarship?,"SELECT SUM(gamesplayed) FROM Sportsinfo WHERE sportname = ""Football"" AND onscholarship = 'Y'" Who is the away captain when the game resulted in [[|]] by 7 wickets?,"SELECT away_captain FROM table_name_68 WHERE result = ""[[|]] by 7 wickets""" I want the sum of stories for guadalajara done after 2007,"SELECT SUM(stories) FROM table_name_87 WHERE city = ""guadalajara"" AND completed > 2007" What season had a downhill of 35 and overall greater than 21?,"SELECT COUNT(season) FROM table_name_53 WHERE downhill = ""35"" AND overall > 21" How many parties do we have?,SELECT COUNT(DISTINCT party_name) FROM party What are the names of instructors who didn't teach courses in the Spring?,SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring') What was the to winnning team when the tu winning team was #16 2002?,"SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = ""#16 2002""" Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7,SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7 What was the District of California 2 result?,"SELECT result FROM table_name_93 WHERE district = ""california 2""" "What are the apps with only 5,000+ installs?","SELECT DISTINCT App FROM playstore WHERE Installs = '5,000+'" What's the total Rank that has a Gold that's smaller than 0?,SELECT SUM(rank) FROM table_name_2 WHERE gold < 0 "What is the highest Area (KM 2) for the Province of Ontario, that has the Status of Town, a Municipality of Minto, and a Rank that's smaller than 84?","SELECT MAX(area__km_2__) FROM table_name_96 WHERE province = ""ontario"" AND status = ""town"" AND municipality = ""minto"" AND rank < 84" What numbered episode was directed by greg colton and written by patrick meighan?,"SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = ""Greg Colton"" AND written_by = ""Patrick Meighan""" Show all video games and their types in the order of their names.,"SELECT gname , gtype FROM Video_games ORDER BY gname" When did the last customer come?,SELECT date_became_customer FROM Customers order by date_became_customer desc limit 1 What is the power of an engine of 1972?,"SELECT power FROM table_name_73 WHERE years = ""1972""" Who is his friend?,"SELECT friend from personfriend where name = ""Zach"" and year = 12" How many matches have Rhymney RFC played?,"SELECT played FROM table_name_24 WHERE club = ""rhymney rfc""" "What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0?","SELECT title FROM table_13336122_3 WHERE directed_by = ""David Von Ancken"" AND no_in_series > 16.0" What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?,"SELECT SUM(round) FROM table_name_11 WHERE college = ""tennessee"" AND overall > 153 AND pick < 14" "How many users, who were a paying subscriber when they rated the movie, gave the movie that was released in 1924 and directed by Erich von Stroheim a rating score of 5?",SELECT COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_release_year = 1924 AND T1.director_name = 'Erich von Stroheim' AND T2.rating_score = 5 AND T2.user_has_payment_method = 1 Who was the Producer/Director of Fear Beneath?,"SELECT producer_director FROM table_name_40 WHERE film = ""fear beneath""" What is the total points before 1963?,SELECT SUM(points) FROM table_name_47 WHERE year < 1963 "What is the name of the national final co host when David Jacobs was the National final main host, and the selection show was a song for europe in 1966?","SELECT national_final_co_host FROM table_name_85 WHERE national_final_main_host = ""david jacobs"" AND selection_show = ""a song for europe"" AND year_s_ = ""1966""" Who was the opponent at the game with a result of w 20-17?,"SELECT opponent FROM table_name_69 WHERE result = ""w 20-17""" IN WHAT STAGE DID ALEXANDER VINOKOUROV WON THE GENERAL CLASSIFICATION?,"SELECT stage__winner_ FROM table_11667521_17 WHERE general_classification = ""Alexander Vinokourov""" Report all advisors that advise more than 2 students.,SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2 List the total points of gymnasts in descending order.,SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC What is the date of the game where South Melbourne was the away team?,"SELECT date FROM table_name_58 WHERE away_team = ""south melbourne""" How many millions of people in the US saw the episode with series number 103?,SELECT us_viewers__millions_ FROM table_22078972_2 WHERE no_in_series = 103 Show ids for all employees with at least 100000 salary.,SELECT eid FROM Employee WHERE salary > 100000 How about the shortest?,"SELECT min ( T1.duration ) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is" "What movie did dana wynter , mel ferrer , theodore bikel star in?","SELECT movie_title_and_year FROM table_26032940_2 WHERE main_cast = ""Dana Wynter , Mel Ferrer , Theodore Bikel""" What is the position that is most common among players in match seasons?,SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1 What are the names of actors who have been in the musical titled The Phantom of the Opera?,"SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = ""The Phantom of the Opera""" "Name the team nickname for enrollment more than 42,326",SELECT team_nickname FROM table_name_21 WHERE enrollment > 42 OFFSET 326 Tell me the college for carl hagelin,"SELECT college_junior_club_team__league_ FROM table_name_70 WHERE player = ""carl hagelin""" "What is the round number when the opponent was Wrexham, and the venue shows as Away?","SELECT COUNT(round) FROM table_name_19 WHERE opponent = ""wrexham"" AND venue = ""away""" "Which score has a Surface of hardcourt, and a Date of september 30, 1984?","SELECT score FROM table_name_39 WHERE surface = ""hardcourt"" AND date = ""september 30, 1984""" List all information about the assessment notes sorted by date in ascending order.,SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC What is the venue of 24/11/1992?,"SELECT venue FROM table_name_6 WHERE date = ""24/11/1992""" How many seasons did Otsuka Pharmaceuticals come in third?,"SELECT COUNT(season) FROM table_29446183_2 WHERE third_place = ""Otsuka Pharmaceuticals""" Name the project titles meant for school whereby 65% of the students are on reduced lunch.,SELECT T1.title FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.poverty_level LIKE 'highest%' What is the fewest number of shuttles where the shuttle time is 6.55 seconds?,"SELECT MIN(shuttles) FROM table_1751142_2 WHERE shuttle_time__seconds_ = ""6.55""" What's the rank for a team that has a percentage of 56% and a loss smaller than 4?,"SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = ""56%"" AND loss < 4" The gayfield park stadium had a highest attendance of what?,"SELECT MAX(highest) FROM table_11206916_1 WHERE stadium = ""Gayfield Park""" what about courses?,SELECT count ( course_id ) FROM student_course_registrations "Which department has more than 1 head at a time? List the id, name and the number of heads.","SELECT T1.department_id , T1.name , count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING count(*) > 1" What is the average number of starts when 11 cuts were made and the top 10 ranking is larger than 4?,SELECT AVG(starts) FROM table_name_33 WHERE cuts_made = 11 AND top_10 > 4 List down the full name of clients who have disputed the response from company.,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Consumer disputed?` = 'Yes'" What is the most common hometown of gymnasts?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1 What is the circuit held on 15 april?,"SELECT circuit FROM table_name_49 WHERE date = ""15 april""" Indicate on how many different pages the word ripoll appears.,SELECT T3.page FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'ripoll' What is the title when u.s. viewers (millions) is 3.97?,"SELECT title FROM table_18481791_3 WHERE us_viewers__in_millions_ = ""3.97""" Find the average and maximum rating of all reviews.,"SELECT avg(rating) , max(rating) FROM review" "How many percent of universities got a score above 80 under International criteria in 2016? Among them, name the university which got the highest score.","SELECT CAST(SUM(CASE WHEN T2.score > 80 THEN 1 ELSE 0 END) AS REAL) / COUNT(*), ( SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'International' AND T2.year = 2016 AND T2.score > 80 ORDER BY T2.score DESC LIMIT 1 ) AS max FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'International' AND T2.year = 2016" List the first name of all the customers whose last name is Chen.,"SELECT FirstName, LastName FROM Customers WHERE LastName = 'Chen'" What is the date for the United Kingdom with an LP format?,"SELECT date FROM table_name_88 WHERE country = ""united kingdom"" AND format = ""lp""" "Who is the winning team in a match held on April 26, 2009 with a winning margin of 6 points?",SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner WHERE T2.Win_Margin = 6 AND T2.Match_Date = '2009-04-26' What is the Website of the Cheadle Hulme School with a Report of Ofsted for Ages 4-19?,"SELECT website FROM table_name_69 WHERE report = ""ofsted"" AND ages = ""4-19"" AND locality = ""cheadle hulme""" Which title is the winner of Best International TV Series in 2017?,"SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award = 'Best International TV Series' AND SUBSTR(T1.year, 1, 4) = '2017';" What is the sum of elections in vicenza?,"SELECT SUM(election) FROM table_name_1 WHERE province = ""vicenza""" What is the IHSAA class for Muncie Burris?,"SELECT ihsaa_class FROM table_name_69 WHERE school = ""muncie burris""" List the name and phone number of all suppliers in the alphabetical order of their addresses.,"SELECT T1.supplier_name, T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details" "What is the lowest Rank for the Name, ""area of permanent crops"", Out of a number smaller than 181?","SELECT MIN(rank) FROM table_name_66 WHERE name = ""area of permanent crops"" AND out_of < 181" When marcus camby (15) has the highest amount of rebounds who has the highest amount of assists?,"SELECT high_assists FROM table_23286158_10 WHERE high_rebounds = ""Marcus Camby (15)""" What is the to par that has macdonald smith as the player?,"SELECT to_par FROM table_name_41 WHERE player = ""macdonald smith""" What about the ones after the year 2010?,SELECT DISTINCT Name FROM WINE WHERE YEAR > 2010 "Among the players who had 10 empty net goals in their career, who is the tallest? Show his full name.","SELECT T2.firstName, T2.lastName FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.ENG = 10 ORDER BY T2.height DESC LIMIT 1" What is zip code of customer with first name as Carole and last name as Bernhard?,"SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" What is the average crowd when footscray is at home?,"SELECT AVG(crowd) FROM table_name_99 WHERE home_team = ""footscray""" What about the code with the least rooms?,select apt_type_code from Apartments order by room_count limit 1 Find the oldest log id and its corresponding problem id.,"SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1" What is the total and maximum duration for all trips with the bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636" what is the home team when the round # is round 1?,"SELECT home_team FROM table_26847237_3 WHERE round__number = ""Round 1""" Who authored the book with greatest number of pages?,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id ORDER BY T1.num_pages DESC LIMIT 1 "What was the first race in Launceston, Tasmania?","SELECT MIN(race) FROM table_name_52 WHERE location___state = ""launceston, tasmania""" What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach?,"SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'" How many Games for Terence Morris?,"SELECT games FROM table_name_57 WHERE name = ""terence morris""" "Among the coaches who won the 'ABA Coach of the Year' award, which is the coach with the highest number of won games?","SELECT T1.coachID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.award = 'ABA Coach of the Year' GROUP BY T1.coachID, T1.won ORDER BY T1.won DESC LIMIT 1" What is Grupo Capitol Valladolid's highest rank with more than 34 games?,"SELECT MAX(rank) FROM table_name_99 WHERE team = ""grupo capitol valladolid"" AND games > 34" Which titles have more than one author?,SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder > 2 What is the name of the coach whose team placed 4th in the 1969 game? Indicate their coachID.,SELECT T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 1969 AND T2.rank = 4 Name the first movie released by Disney.,"SELECT movie_title FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) ASC LIMIT 1" Who are the members in Canada?,"SELECT name FROM member WHERE Country = ""Canada""" Who is the Original west end performer for the character Martha?,"SELECT original_west_end_performer FROM table_1901751_1 WHERE character = ""Martha""" What is the count of cities with more than 3 airports?,SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3) What is the car make for Sterling Marlin?,"SELECT car_make FROM table_27514362_7 WHERE driver = ""Sterling Marlin""" What is the mark for the runner from Mozambique?,"SELECT mark FROM table_name_8 WHERE country = ""mozambique""" What is the id and last name of the driver who participated in the most races after 2010?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1" When bill oddie and frank skinner are both on the davids team what is the episode?,"SELECT episode FROM table_23575917_6 WHERE davids_team = ""Bill Oddie and Frank Skinner""" "If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation?","SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = ""as final letter: ו or יו""" What is the score at the forum location?,"SELECT score FROM table_name_23 WHERE location = ""the forum""" "Among the zero-budget movie titles, which one has made the highest revenue?",SELECT title FROM movie WHERE budget = 0 ORDER BY revenue DESC LIMIT 1 With the Republican ticket of Frank M. Williams who was the Progressive ticket?,"SELECT progressive_ticket FROM table_name_63 WHERE republican_ticket = ""frank m. williams""" what is the power when the city of license is belleville?,"SELECT power FROM table_name_71 WHERE city_of_license = ""belleville""" What is the total number of browsers are available?,SELECT COUNT ( * ) FROM browser What is the diffrence between the number of games produced by Culture Brain that can be played on SNES and DS?,SELECT COUNT(CASE WHEN T1.platform_name = 'SNES' THEN T3.game_id ELSE NULL END) - COUNT(CASE WHEN T1.platform_name = 'DS' THEN T3.game_id ELSE NULL END) 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 INNER JOIN publisher AS T4 ON T3.publisher_id = T4.id WHERE T4.publisher_name = 'Culture Brain' Where was the event on June 10?,"SELECT location FROM table_name_12 WHERE date = ""june 10""" How many teams have a head coach named mahdi ali?,"SELECT COUNT(team) FROM table_27631756_2 WHERE head_coach = ""Mahdi Ali""" "What the rank in the top 10 when the winnings were $1,741,176?","SELECT MIN(top_10) FROM table_2506300_1 WHERE winnings = ""$1,741,176""" How many people in total can stay in the modern rooms of this inn?,SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern'; What year is Jiyai Shin the champion?,"SELECT COUNT(year) FROM table_13169136_1 WHERE champion = ""Jiyai Shin""" What is the lowest number of Overs for the Royal Challengers Bangalore?,"SELECT MIN(overs) FROM table_name_50 WHERE team = ""royal challengers bangalore""" "Among the sales ID ranges from 1 to 200, what is the percentage of the products with a price ranging from 200 to 300?","SELECT CAST(SUM(IIF(T2.Price BETWEEN 200 AND 300, 1, 0)) AS REAL) * 100 / COUNT(T2.Price) FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T1.SalesID BETWEEN 1 AND 200" What are the notes for the shirt that said Pavv after 2007?,"SELECT notes FROM table_name_31 WHERE shirt_printing = ""pavv"" AND year > 2007" "What is the value of the item ""Points"" when the value of the item ""Points against"" is 272?","SELECT points_for FROM table_name_62 WHERE points_against = ""272""" how many order items there,SELECT count ( * ) FROM order_items What is the name of the product with the greatest price?,SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1 list out the typical selling price for all product name,"SELECT typical_selling_price, product_name FROM products" Which Season 3 has a Season 7 of jim treliving?,"SELECT season_3 FROM table_name_93 WHERE season_7 = ""jim treliving""" What are panoz motor sports' lowest number of laps before 2002?,"SELECT MIN(laps) FROM table_name_68 WHERE team = ""panoz motor sports"" AND year < 2002" Tell me the result for harrogate,"SELECT result FROM table_name_34 WHERE location = ""harrogate""" "For each branch id, what are the names of the branches that were registered after 2015?","SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id" Find the average hours of all projects.,SELECT avg(hours) FROM projects What is the quantity of the item with the numbers of 29-36?,"SELECT AVG(quantity) FROM table_name_91 WHERE numbers = ""29-36""" What is the name of the home team that has a venue called EMCG?,"SELECT home_team FROM table_name_50 WHERE venue = ""emcg""" What is the average price of all products?,SELECT avg ( product_price ) FROM products "Which state can address ""6862 Kaitlyn Knolls"" possibly be in?","SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE ""%6862 Kaitlyn Knolls%""" Which models are lighter than 3500 but not built by the 'Ford Motor Company'?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company'; Find the last name of the first ever contact person of the organization with the highest UK Vat number.,SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT MAX(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to LIMIT 1 "Who has written a paper that has the word ""Functional"" in its title? Return the first names of the authors.","SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE ""%Functional%""" who composed For Those About To Rock (We Salute You)?,"SELECT composer FROM tracks WHERE name = ""For Those About To Rock ( We Salute You ) """ "What was the score of the home team when there were more than 5,500 people in the crowd?",SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500 "Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia?","SELECT group_vI FROM table_name_75 WHERE group_i = ""deportivo"" AND group_iV = sevilla AND group_iII = valencia" "Which Total Goals have Total Apps of 42 (3), and League Goals smaller than 1?","SELECT MAX(total_goals) FROM table_name_10 WHERE total_apps = ""42 (3)"" AND league_goals < 1" How many are females that are voting in the election cycle ? | Did you want the number of females that are voting in the spring election cycle? | Yes,"SELECT COUNT ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = ""F"" AND T2.Election_Cycle = ""Spring""" Give the first name and job id for all employees in the Finance department.,"SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'" "What is the color description of the product with name ""catnip""?","SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""catnip""" Tell me the venue for notes of 10.93 secs,"SELECT venue FROM table_name_45 WHERE notes = ""10.93 secs""" What are the birth date and birth place of the body builder with the highest total points?,"SELECT T2.Birth_Date , T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1" "List the organisation id with the maximum outcome count, and the count.","SELECT T1.organisation_id , count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;" Count the number of colors.,SELECT count(*) FROM ref_colors and now just show the booking status code for that suite,"SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" What are the first names and office locations for all professors sorted alphabetically by first name?,"SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname" Who were the challenge leaders of the games won by boston college (88-76)?,"SELECT challenge_leader FROM table_29535057_4 WHERE winner = ""Boston College (88-76)""" How many heights does chad henne have?,"SELECT COUNT(height) FROM table_15017024_2 WHERE player_name = ""Chad Henne""" what's the lowest balance of a savings account?,SELECT min ( balance ) FROM savings The golfer Jeff Sluman golfs for what country?,"SELECT country FROM table_name_13 WHERE player = ""jeff sluman""" List the names of roller coasters by ascending order of length.,SELECT Name FROM roller_coaster ORDER BY LENGTH ASC "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?","SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'" Tell me the GName of the GType Role-playing game ?,"SELECT gname FROM video_games where gtype = ""Role-playing game""" "How much Played has a Position of 7, and a Drawn smaller than 7?",SELECT SUM(played) FROM table_name_72 WHERE position = 7 AND drawn < 7 What is the title of the page that has the fewest words?,SELECT title FROM pages WHERE title = ( SELECT MIN(words) FROM pages ) What is the date of the week 4 game?,SELECT date FROM table_name_76 WHERE week = 4 "Name the title with termination of mission of april 10, 1939","SELECT title FROM table_name_24 WHERE termination_of_mission = ""april 10, 1939""" What are the parts with more than 2 faults? | Here are the names of the parts with more than 2 faults | What are the name's and id's of the parts with more than 2 faults?,"SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count ( * ) > 2" "Give the name, year of independence, and surface area of the country that has the lowest population.","SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1" What is China's IATA?,"SELECT iata FROM table_name_58 WHERE country = ""china""" Who is the player when the to par is more than 11 and the score is 71-71-71-79=292?,SELECT player FROM table_name_32 WHERE to_par > 11 AND score = 71 - 71 - 71 - 79 = 292 Name the incumbent for 1954,"SELECT incumbent FROM table_1341549_10 WHERE first_elected = ""1954""" "Among the repositories with over 200 likes, how many of them have files contained by solutions with a processed time of under 636439500080712000?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.ProcessedTime < 636439500080712000 AND T1.Stars > 200 "Among the publishers in the USA, how many of them have published books that are over $15?",SELECT COUNT(DISTINCT T1.pub_id) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.country = 'USA' AND T1.price > 15 How many runtimes does episode 53 have?,SELECT COUNT(network_tv_run_time) FROM table_26032940_2 WHERE episode__number = 53 "Among the parts that are returned, how many of them are provided by a supplier in debt?",SELECT COUNT(T1.l_partkey) FROM lineitem AS T1 INNER JOIN supplier AS T2 ON T1.l_suppkey = T2.s_suppkey WHERE T1.l_returnflag = 'R' AND T2.s_acctbal < 0 Find the first name of students living in city PHL whose age is between 20 and 25.,SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 What is the result when the record was 1-0 and it was earlier than week 4?,"SELECT result FROM table_name_63 WHERE week < 4 AND record = ""1-0""" Which state has the greatest total number of bank customers?,SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1 Find the number of web accelerators used for each Operating system.,"SELECT Operating_system , count(*) FROM web_client_accelerator GROUP BY Operating_system" "Faith of –, and a Name of greenway has what type?","SELECT type FROM table_name_79 WHERE faith = ""–"" AND name = ""greenway""" What is the Open 1st VIII for the 2012 crew?,SELECT open_1st_viii FROM table_name_76 WHERE crew = 2012 Show all branch names with the number of members in each branch registered after 2015.,"SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id" What is Chitwood's lowest completed number of laps with a qualifying time of 124.619?,"SELECT MIN(laps) FROM table_name_72 WHERE qual = ""124.619""" "Return the date of birth for all the guests with gender code ""Male"".","SELECT date_of_birth FROM Guests WHERE gender_code = ""Male""" What is the number of growth population for country with the lowest infant mortality?,SELECT T2.Population_Growth * T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T2.Infant_Mortality IS NOT NULL ORDER BY T2.Infant_Mortality ASC LIMIT 1 Indicate the address of the restaurant with the most popular reviews.,"SELECT T2.street_num, T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant ORDER BY T1.review DESC LIMIT 1" List all words cited in the AI class label.,SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI' "Who was the team that played at Energysolutions Arena 19,911?","SELECT team FROM table_name_29 WHERE location_attendance = ""energysolutions arena 19,911""" how many Catalog Contents there,SELECT count ( * ) FROM catalog_contents find the name of the Track 2?,SELECT Name from Track where TrackId = '2' Which sales team has the other with the highest unit price?,"SELECT T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE REPLACE(T1.`Unit Price`, ',', '') = ( SELECT REPLACE(T1.`Unit Price`, ',', '') FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID ORDER BY REPLACE(T1.`Unit Price`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(T1.`Unit Price`, ',', '') DESC LIMIT 1" What is the total of Frequency MHz with a Class of b1?,"SELECT SUM(frequency_mhz) FROM table_name_99 WHERE class = ""b1""" "Show the names and locations of institutions that are founded after 1990 and have the type ""Private"".","SELECT institution , LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'" How many pages were in the book by Stefano D'Arrigo?,"SELECT page_count FROM table_name_39 WHERE author = ""stefano d'arrigo""" Which team drafted Ron Annear? ,"SELECT nhl_team FROM table_2850912_10 WHERE player = ""Ron Annear""" What was the final score for the Thurrock?,"SELECT score1 FROM table_name_99 WHERE opponent = ""thurrock""" What is the title of the films in which Cuba Allen acted?,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Cuba' AND T1.last_name = 'Allen' "What is the maximum, minimum, and average amount of money outsanding for all customers?","SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;" What is the price and quantity of the product named Seat Tube?,"SELECT DISTINCT T2.Price, T1.Quantity FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Seat Tube'" Please list the location coordinates of all the facilities that had an inspection on 2010/5/11.,"SELECT DISTINCT T2.latitude, T2.longitude FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE T1.inspection_date = '2010-05-11'" What are the last name of the students who live in North Carolina but have not registered in any degree programs?,SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id List the names of buildings that have no company office.,SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations) "How many customers have the customer type code ""Good Credit Rating""?","SELECT count ( customer_id ) FROM customers where customer_type_code = ""Good Credit Rating""" What's the chassis code for the 280s model?,"SELECT chassis_code FROM table_name_17 WHERE model = ""280s""" Can you show the names of rooms that have been reserved for more than 60 times,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING count ( * ) > 60 Which player(s) played at Howard college?,"SELECT player FROM table_30108930_6 WHERE college = ""Howard""" What is the species when jewel is coal?,"SELECT species FROM table_26615633_1 WHERE jewel = ""Coal""" Which mixed doubles happened later than 2011?,SELECT mixed_doubles FROM table_name_2 WHERE year > 2011 List the total number of horses on farms in ascending order.,SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC Count the number of different colleges that players who play for Columbus Crew are from.,"SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" Which 5 products has the lowest amount of orders? List the product names.,SELECT t2.productName FROM orderdetails AS t1 INNER JOIN products AS t2 ON t1.productCode = t2.productCode GROUP BY t2.productName ORDER BY SUM(t1.quantityOrdered) ASC LIMIT 5 "List name of all amenities which Anonymous Donor Hall has, and sort the result in alphabetic order.",SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name Which users become an elite in 2012?,SELECT DISTINCT T1.user_id FROM Elite AS T1 INNER JOIN Years AS T2 ON T1.year_id = T2.year_id WHERE T2.actual_year = 2012 Who are the investors that have invested in at least two entrepreneurs?,SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2 What position is the player drafted with pick 34?,SELECT position FROM table_16575609_5 WHERE pick__number = 34 What is the party of the youngest people?,SELECT Party FROM people ORDER BY Age ASC LIMIT 1 What season had a .439 Win% in the 1996-97 Team?,"SELECT season FROM table_name_39 WHERE win_percentage = "".439"" AND team = ""1996-97""" What is the name of the ship with the largest tonnage?,SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 Which Player has a Score of 72-69-73=214?,SELECT player FROM table_name_71 WHERE score = 72 - 69 - 73 = 214 What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?,"SELECT MAX(attendance) FROM table_name_92 WHERE opponent = ""buffalo bills"" AND week > 14" Can you give me the first and last names for students with Vice President vote 1017,"SELECT T1.LNAME, T1.FNAME FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.StuID WHERE T2.Vice_President_Vote = ""1007""" What is the average points won when Carlos had 0 wins?,SELECT AVG(points) FROM table_name_5 WHERE wins < 0 What venue has an extra of 45.08 S?,"SELECT venue FROM table_name_85 WHERE extra = ""45.08 s""" List the names of all left-footed players who have overall rating between 85 and 90.,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = ""left"" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90" What is the category of the business with medium review length and highest review stars within business ID from 6 t0 9?,SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Medium' AND T2.business_id BETWEEN 6 AND 9 ORDER BY T1.review_stars DESC LIMIT 1 how many trips started from mountain view city and ended in palo alto city,"SELECT count ( * ) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""Mountain View"" AND T3.city = ""Palo Alto""" What's the least against number for Cobden with draws more than 0?,"SELECT MIN(against) FROM table_name_50 WHERE club = ""cobden"" AND draws > 0" What is the lowest game on February 10?,"SELECT MIN(game) FROM table_name_66 WHERE date = ""february 10""" How many appearances by Meek Mill?,"SELECT MAX(appearances) FROM table_29160596_1 WHERE top_mc = ""Meek Mill""" How many levels are there left for Diego W Roel to reach if he/she could go to the max level for his/her position?,SELECT T2.max_lvl - T1.job_lvl FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.fname = 'Diego' AND T1.minit = 'W' AND T1.lname = 'Roel' Show the description of the transaction type that occurs most frequently.,SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 How many students are in those four dorms?,SELECT count ( * ) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN ( SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge' ) "In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?","SELECT MAX(rank) FROM table_name_21 WHERE county_and_state = ""silver bow county, montana"" AND capacity__thousands_of_metric_tons_ > 45" "What is the Late Middle English equivalent of the Anglian æg, ǣg?","SELECT late_middle_english FROM table_28177800_5 WHERE late_old_english__anglian_ = ""æg, ǣg""" "For each grade 0 classroom, return the classroom number and the count of students.","SELECT classroom , count(*) FROM list WHERE grade = ""0"" GROUP BY classroom" "Which Overall has a Name of bob anderson, and a Round smaller than 9?","SELECT AVG(overall) FROM table_name_66 WHERE name = ""bob anderson"" AND round < 9" List the phone number of company named Around the Horn.,SELECT Phone FROM Customers WHERE CompanyName = 'Around the Horn' What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3?,"SELECT AVG(heat) FROM table_name_43 WHERE time = ""59.11"" AND lane > 3" List the writers who have written more than one book.,SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1 what is their rank? | do you mean all their ranks in every year? | yes,"select year,rank from team where name = 'Boston Red Stockings'" Which film has the most actors and actresses? | What attributes of the film that has the most actors and actresses would you like to know? | film name?,SELECT T2.title FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count ( * ) DESC LIMIT 1 "For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?",SELECT COUNT(draws) FROM table_name_21 WHERE losses < 4 AND wins < 16 Show the country names and the corresponding number of players.,"SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name" "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.","SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%'" What are the names of the physician who prescribed the highest dose?,SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 Name the high assists for 4-3,"SELECT high_assists FROM table_23281862_5 WHERE record = ""4-3""" What is the longest length of mandatory secondary school?,SELECT MAX(length_of_mandatory_secondary_school) FROM table_1831309_1 "That's great, thank you. Could you please show me the list of states where these appellations are located at?","select state from APPELLATIONS where appelation in ( SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast"" ) " How many courses are there in total?,SELECT COUNT(*) FROM COURSES What is the last year on this list someone was first elected?,SELECT MAX(first_elected) FROM table_1342451_38 Which Original Airdate has an Episode of 1?,SELECT original_airdate FROM table_name_2 WHERE episode = 1 "In which country Mina' Zayid , Abu Dhabi located ?","SELECT country FROM match where Location = ""Mina Zayid , Abu Dhabi""" What are the names of the 3 departments with the most courses?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3 What are the names of the clients who do not have any booking?,SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID What team did he compete for in the GP3 series?,"SELECT team FROM table_20500097_1 WHERE series = ""GP3 series""" In what former province was the area 694.9 kilometers squared?,"SELECT former_province FROM table_16278894_1 WHERE area__km_2__ = ""694.9""" What is the since year for the player with more than 3 goals and a transfer fee of £400k?,"SELECT since FROM table_name_24 WHERE goals > 3 AND transfer_fee = ""£400k""" Which School in Wabash has a Mascot of knights?,"SELECT school FROM table_name_96 WHERE location = ""wabash"" AND mascot = ""knights""" What the is the state that the boat is from with LOA of 19.50?,"SELECT state_country FROM table_25595209_1 WHERE loa__metres_ = ""19.50""" "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.","SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1" "What is the employee's full name involved in the canvass inspection type on March 09, 2010?","SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_date = '2010-03-09' AND T2.inspection_type = 'Canvass'" "What is the name of the building housing more than 101 floors, that was built after 2006?",SELECT name FROM table_name_55 WHERE year > 2006 AND floors > 101 "Write down the any five of ID and name of category that starts with alphabet ""P"".","SELECT category_id, category_name FROM Categories WHERE category_name LIKE 'P%' LIMIT 5" what is the number of the episode in the season whose production code is 101? ,SELECT COUNT(no) FROM table_28358487_3 WHERE production_code = 101 What ground had a match smaller than 6 and Chelsea Reserves as the opponent?,"SELECT ground FROM table_name_17 WHERE match < 6 AND opponent = ""chelsea reserves""" how many grades are available?,SELECT count ( distinct Grade ) FROM list "Give the description of the moderate risk violation which ""Chez Fayala, Inc."" had on 2016/7/1.","SELECT T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Chez Fayala, Inc.' AND T1.`date` = '2016-07-01' AND T1.risk_category = 'Moderate Risk'" Name the % of popular vote for election for 1926,"SELECT _percentage_of_popular_vote FROM table_19769687_3 WHERE election = ""1926""" What is the name of the department and office location for the professor with the last name of Heffington?,"SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'" What is the number for overall for angelo craig?,"SELECT COUNT(overall) FROM table_name_30 WHERE player = ""angelo craig""" Tell me the captain for guns of 28,"SELECT captain FROM table_name_15 WHERE guns = ""28""" What episode number is the episode with a segment on thinning shears?,"SELECT MIN(episode) FROM table_15187735_20 WHERE segment_a = ""Thinning Shears""" How many total occurrences are there in the three-letter words?,SELECT SUM(occurrences) FROM words WHERE LENGTH(word) = 3 what is the work type of Kamila Porczyk?,"SELECT T2.Work_Type FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID where T1.Name = ""Kamila Porczyk""" How many students are there?,SELECT count ( student_id ) FROM student_course_registrations on what date is it?,SELECT Date FROM race WHERE Class = ( SELECT Class FROM race GROUP BY CLASS ORDER BY count ( * ) DESC LIMIT 1 ) Show names of actors in descending order of the year their musical is awarded.,SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC What are the total number of followers for all users?,SELECT sum ( followers ) FROM user_profiles Which Run 2 has a Rank of 4?,"SELECT run_2 FROM table_name_9 WHERE rank = ""4""" Where was the game held when Fitzroy was the away team?,"SELECT venue FROM table_name_24 WHERE away_team = ""fitzroy""" Who was driving with a Grid of 13?,SELECT driver FROM table_name_45 WHERE grid = 13 How many movies from the USA which user rating is less than 3?,SELECT COUNT(T1.movieid) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'USA' AND T1.rating < 3 What are the names of schools with the top 3 largest size?,SELECT cName FROM college ORDER BY enr DESC LIMIT 3 "Which home team played on January 5, 2008?","SELECT home_team FROM table_name_79 WHERE date = ""january 5, 2008""" How many American cars have an acceleration time of less than 12 seconds?,SELECT COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'USA' AND T1.acceleration < 12 What was the minimum % funded of the project that was closed on 2012-05-18?,"SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = ""2012-05-18""" "How many clubs does the student named ""Eric Tai"" belong to?","SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Eric"" AND t3.lname = ""Tai""" when first elected was 1900 what was the district?,"SELECT district FROM table_name_4 WHERE first_elected = ""1900""" Which team won the game on January 12?,"SELECT decision FROM table_name_83 WHERE date = ""january 12""" What is the best preliminary for a contestant from New Mexico with interview less than 9.533?,"SELECT MAX(preliminary) FROM table_name_35 WHERE state = ""new mexico"" AND interview < 9.533" Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.,"SELECT first_name, last_name, department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)" How many goals did coe get?,"SELECT MIN(goals) FROM table_name_80 WHERE name = ""coe""" "What is the GNP of the country where district ""Entre Rios"" belongs?",SELECT T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.District = 'Entre Rios' LIMIT 1 Name the area served for on-air ID of abc canberra,"SELECT area_served FROM table_name_46 WHERE on_air_id = ""abc canberra""" What is the id and name of the staff who has been assigned for the least amount of time?,"SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" How many customers have an employee who reports to William Patterson as their sales representitive?,SELECT COUNT(t1.customerNumber) FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t2.firstName = 'William' AND t2.lastName = 'Patterson' "What number episode was Week 4, Part 2?","SELECT episode_number FROM table_25391981_20 WHERE episode = ""Week 4, Part 2""" When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?,"SELECT boys_singles FROM table_14319023_2 WHERE mixed_doubles = ""Danny Bawa Chrisnanta Debby Susanto""" How many points when the Grid was 1?,"SELECT points FROM table_name_75 WHERE grid = ""1""" Find the name and population of district with population between 200000 and 2000000,"SELECT District_name, City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000" Hello there! Can you list all of the hometowns listed in this database?,SELECT DISTINCT Hometown FROM people What was the venue when the score was 24–28?,"SELECT venue FROM table_name_43 WHERE score = ""24–28""" Who was the lyricist for gopal krishna and co singer of solo?,"SELECT lyricist FROM table_11827596_4 WHERE film_name = ""Gopal Krishna"" AND co_singer = ""Solo""" What is the largest number of holding companies?,SELECT MAX(holding_companies) FROM table_1756264_2 "How many more papers in total were published in the journal ""Cases Journal"" than in the journal ""Molecular Brain"" in percentage?",SELECT SUM(CASE WHEN T1.FullName = 'Cases Journal' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.FullName = 'Molecular Brain' THEN 1 ELSE 0 END) AS DIFF FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId "Oh, I want the names of the drivers.",SELECT name FROM driver WHERE home_city = 'Hartford' Which Record has a home of Nashville?,"SELECT record FROM table_name_72 WHERE home = ""nashville""" "What is the repository number for the solution of method ""SCore.Poisson.ngtIndex""?",SELECT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'SCore.Poisson.ngtIndex' Find the last names of the students in third grade that are not taught by COVIN JEROME.,"SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != ""COVIN"" AND T2.lastname != ""JEROME""" "Which species of bacteria has 5,566 genes?","SELECT strain FROM table_name_35 WHERE genes = ""5,566""" How many measures had a yes vote of 216545?,SELECT COUNT(passed) FROM table_256286_39 WHERE yes_votes = 216545 What is the university ID with the most students in 2011?,SELECT university_id FROM university_year WHERE year = 2011 ORDER BY num_students DESC LIMIT 1 What is the total number of units of item no.5 sold in store no.3 in 2012 on days when the temperature was below the 30-year normal?,"SELECT SUM(CASE WHEN T3.depart < 0 THEN units ELSE 0 END) AS sum FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.item_nbr = 5" which club is listed when bonus points is bonus points,"SELECT club FROM table_20396710_1 WHERE ""bonus_points"" = ""bonus_points""" Tell me the section for position of 8th and season of 2003,"SELECT section FROM table_name_29 WHERE position = ""8th"" AND season = ""2003""" "In what place did Des Smyth, who scored less than 71, finish?","SELECT place FROM table_name_23 WHERE score < 71 AND player = ""des smyth""" List the names of courses in alphabetical order?,SELECT course_name FROM courses ORDER BY course_name When chris barnes is on team usa how many europe teams are there?,"SELECT COUNT(team_europe) FROM table_19072602_3 WHERE team_usa = ""Chris Barnes""" Could you please list each course's name and the number of its registered students?,"SELECT T3.course_name , count ( * ) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id" "For the episode with the most votes, give its air date.",SELECT T2.air_date FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id GROUP BY T2.episode_id ORDER BY SUM(T1.votes) DESC LIMIT 1 What is the home of the match with a 0:2 result on 21.10.07?,"SELECT home FROM table_name_28 WHERE result = ""0:2"" AND date = ""21.10.07""" high value of temperature... | I mean how high is high? You can say temperature higher than a certain number. | Higher than 21,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar > 21 How many units of item no.9 were sold in store no.1 on 2012/1/1?,SELECT units FROM sales_in_weather WHERE `date` = '2012-01-01' AND store_nbr = 1 AND item_nbr = 9 "where catalog number is 81258 , what are all the studio ?","SELECT studio FROM table_11222744_2 WHERE catalog_number = ""81258""" Which Location has a Time of time?,"SELECT location FROM table_name_89 WHERE ""time"" = ""time""" What Date has a Label of grilled cheese?,"SELECT date FROM table_name_25 WHERE label = ""grilled cheese""" Which building has the largest number of company offices? Give me the building name.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 What is the disparate number of the comedy films that got the 1 rating?,SELECT COUNT(DISTINCT T1.movieid) FROM movies2directors AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T2.rating = 1 AND T1.genre = 'comedy' "What is the record for game where Columbus is visitor, Phoenix is home, and decision is made by Denis?","SELECT record FROM table_name_3 WHERE visitor = ""columbus"" AND decision = ""denis"" AND home = ""phoenix""" What is the average price of all clothes products?,SELECT avg ( product_price ) FROM products WHERE product_type_code = 'Clothes' What are the complements when the commander is Major William Lloyd?,"SELECT complement FROM table_11793221_2 WHERE commander = ""Major William Lloyd""" "Find the number of orchestras whose record format is ""CD"" or ""DVD"".","SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = ""CD"" OR Major_Record_Format = ""DVD""" "Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?","SELECT MIN(staterooms) FROM table_name_44 WHERE comments = ""diesel-electric hybrid engines"" AND length = ""443 feet"" AND guests > 190" Who is the author of the Play Electra?,"SELECT author FROM table_name_24 WHERE play = ""electra""" Where is two medicine formation?,"SELECT location FROM table_name_46 WHERE unit = ""two medicine formation""" Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?,"SELECT stage__winner_ FROM table_name_42 WHERE sprint_classification = ""mark cavendish"" AND team_classification = ""garmin-chipotle-h30"" AND young_classification = ""mark cavendish""" What TV network is the series aistrų žemė aired on?,"SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = ""aistrų žemė""" WHAT IS THE TEAM WITH DAVE COGGIN?,"SELECT team FROM table_name_32 WHERE player = ""dave coggin""" How many customers are there,SELECT count ( * ) FROM customers What is the name and salary of that instructor?,"Select name, salary from instructor where dept_name = 'Physics' and salary < ( SELECT avg ( salary ) FROM instructor WHERE dept_name = 'Physics' ) " Find the name of scientists who are assigned to some project.,SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn Show the number of games which were released on X360 in 2010.,SELECT COUNT(DISTINCT 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 T1.platform_name = 'X360' AND T2.release_year = 2010 How many professors are there in total?,SELECT count ( * ) FROM PROFESSOR What was the group in the British Champion Stakes? ,"SELECT group FROM table_24850630_4 WHERE race = ""British Champion Stakes""" What was the score during week 16?,SELECT result FROM table_name_12 WHERE week = 16 what is the average of credit score?,SELECT avg ( credit_score ) FROM customer "how many formats of books authored by day, martin martin day","SELECT COUNT(format) FROM table_20174050_24 WHERE author = ""Day, Martin Martin Day""" Find the list of page size which have more than 3 product listed,SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3 How many Tries against has a Try diff of –17 and Points for smaller than 80?,"SELECT COUNT(tries_against) FROM table_name_30 WHERE try_diff = ""–17"" AND points_for < 80" What's the value for played when the division is nbl div2 with 12th position?,"SELECT played FROM table_name_51 WHERE division = ""nbl div2"" AND position = ""12th""" What is the highest game with a 47-21-3 record?,"SELECT MAX(game) FROM table_name_77 WHERE record = ""47-21-3""" "For all the Yelp businesses that allow customers bring their own beer, what percentage of them are in ""Phoenix""?","SELECT CAST(SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.business_id) AS ""percentage"" FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name LIKE 'BYOB' AND T2.attribute_value LIKE 'TRUE'" What school did samardo samuels go to?,"SELECT school FROM table_name_28 WHERE player = ""samardo samuels""" Name the episode for jenny bicks and cindy chupack nominees in 2004,"SELECT episode FROM table_name_16 WHERE year = 2004 AND nominee_s_ = ""jenny bicks and cindy chupack""" "List all the possible ways to get to attractions, together with the number of attractions accessible by these methods.","SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There" Name the authority for roll of 54,SELECT authority FROM table_name_22 WHERE roll = 54 Name the To par for dick metz,"SELECT to_par FROM table_name_61 WHERE player = ""dick metz""" What are the title and maximum price of each film?,"SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id" What party did robert p. letcher represent?,"SELECT party FROM table_2668264_8 WHERE incumbent = ""Robert P. Letcher""" How many universities have a campus fee greater than the average?,SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees) "What is the Position when the Drawn is less than 2, with a Difference of 2?","SELECT position FROM table_name_65 WHERE drawn < ""2"" AND difference = ""2""" "What is the latitude, longitude, city of the station from which the shortest trip started?","SELECT T1.lat, T1.long, T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1" How many students does each advisor have?,"SELECT advisor , count(*) FROM Student GROUP BY advisor" What is the percentage of champions at the age of over 30?,SELECT CAST(COUNT(CASE WHEN T2.age > 30 THEN 1 END) AS REAL) * 100 / COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id WHERE T1.medal_id = 1 What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?,"SELECT AVG(lane) FROM table_name_78 WHERE nationality = ""japan"" AND time = ""4:37.35"" AND heat < 3" Name the team for w 125-115 score,"SELECT team FROM table_22871239_8 WHERE score = ""W 125-115""" Name the most first elected,SELECT MAX(first_elected) FROM table_2668352_11 Find the number of routes whose destination airports are in Canada.,SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' Show the names of products that are in at least two events.,SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 What is the average earnings of poker players?,SELECT avg(Earnings) FROM poker_player "Between the years 1990 and 2007, of the total rebounds achieved by each player, how many managed to exceed 75% of defensive rebounds?",SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE CAST(d_rebounds AS REAL) * 100 / rebounds > 75 AND season_id BETWEEN 1990 AND 2007 Show names for all aircrafts with distances more than the average.,SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft) What's the highest frequency of the KBDR callsign?,"SELECT MAX(frequency) FROM table_name_4 WHERE callsign = ""kbdr""" What are the names of the aircraft?,SELECT Aircraft FROM aircraft what is the census ranking when the area km 2 is 173.4?,SELECT census_ranking FROM table_name_32 WHERE area_km_2 = 173.4 Tell me the 1st leg for team being budoni (Sardinia),"SELECT 1 AS st_leg FROM table_name_55 WHERE team_1 = ""budoni (sardinia)""" "How many times does the word ""heròdot"" appear in the Wikipedia page?",SELECT COUNT(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'heròdot' what is least employee number in the table?,SELECT min ( emp_num ) from Employee Sure! What is the average enrollment of ASU and LSU?,"SELECT avg ( enr ) from college where cName = ""ASU"" or cName = ""LSU""" Find the person who has exactly one friend.,SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1 "Which department has more than 1 head at a time? List the ID, Name and the number of heads.","SELECT T1.department_id , T1.name , count ( * ) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING count ( * ) > 1" What is the name of the race that occurred most recently?,SELECT name FROM races ORDER BY date DESC LIMIT 1 "Show me names and payment methods of customers who have mailshot with an outcome code ""No Response""","SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'" What is the least number of candidates running were there when 80 seats were won?,SELECT MIN(_number_of_candidates) FROM table_106367_2 WHERE _number_of_seats_won = 80 Could you show me the IDs for the investors who have the bottom 3 number of 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 ORDER BY COUNT ( * ) ASC LIMIT 3 What school or team has round of 2 with less than 42 picks?,SELECT school_club_team FROM table_name_50 WHERE round = 2 AND pick < 42 What are the names of the schools with some players in the mid position but no goalies?,SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' How many Ford Focus electric vehicle emission test scores were recorded in California?,"SELECT COUNT(california__san_francisco_) FROM table_16105186_2 WHERE vehicle = ""Ford Focus Electric""" "What is Record, when Event is ""Independent Event"", and when Method is ""Submission (Peruvian Necktie)""?","SELECT record FROM table_name_2 WHERE event = ""independent event"" AND method = ""submission (peruvian necktie)""" "Name the weekly rank for sunday, june 14, 2009","SELECT weekly_rank FROM table_name_43 WHERE airdate = ""sunday, june 14, 2009""" "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?","SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')" What date has a Game site of bye?,"SELECT date FROM table_name_77 WHERE game_site = ""bye""" Who had the most rebounds on January 3?,"SELECT high_rebounds FROM table_name_7 WHERE date = ""january 3""" What years did the player from LaSalle play for the Rockets?,"SELECT years_for_rockets FROM table_11734041_2 WHERE school_club_team_country = ""LaSalle""" hi. show me the names of all of the departments,SELECT department_name FROM departments What are the names of the students who joined the Marines?,SELECT name FROM enlist WHERE organ = 'marines' List name of all tracks in Balls to the Wall.,"SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall"";" What is the country of origin of the artist who is female and produced a song in Bangla?,"SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female"" AND T2.languages = ""bangla""" "What is the number of interregnum for duration 3 months, 6 days?","SELECT COUNT(interregnum_ended) FROM table_11071897_1 WHERE duration = ""3 months, 6 days""" "What is the match report for July 10, 2005?","SELECT match_report FROM table_name_91 WHERE date = ""july 10, 2005""" "Which room has most number of beds?Tell me the Room ID, Name and decor?","SELECT roomid, roomName, decor FROM Rooms WHERE beds = ( select max ( beds ) from rooms ) " Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction.,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""254 Ottilie Junction"" OR T2.How_to_Get_There = ""bus""" Find the names of states that have some college students playing in goalie and mid positions.,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' "Among research postgraduate students, give the name of the course with the student satisfaction value of 1.",SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.sat = 1 AND T1.type = 'RPG' "How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?","SELECT COUNT(germany) FROM table_28562675_3 WHERE italy = ""Naples LL Naples"" AND england = ""London Area Youth London""" What was the highest share?,SELECT MAX(share) FROM table_25304789_1 What are the full names of all students,"SELECT Fname , Lname FROM Student" "Among the products that get over at least 1 review, how many of them are from the mountain product line?",SELECT SUM(CASE WHEN T2.ProductLine = 'M' THEN 1 ELSE 0 END) FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID HAVING COUNT(T1.ProductReviewID) > 1 Who drive the car that retired due to engine failure and a grid of less than 9?,"SELECT driver FROM table_name_91 WHERE time_retired = ""engine"" AND grid < 9" how many cities are there?,SELECT count ( * ) FROM city How many people were at the game where the home team was South Melbourne?,"SELECT crowd FROM table_name_16 WHERE home_team = ""south melbourne""" Name the number of players for field goals being 25 and blocks is 6,SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6 What is department name and office for the professor whose last name is Heffington?,"SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'" Okay! Can you provide me with a list of all of the city names and which counties they belong to?,"SELECT T2.Name, T1.Name FROM county_public_safety as T1 join city as T2 on T1.County_ID = T2.County_ID" Calculate the difference between the highest votes for episode and the lowest votes for episode.,SELECT MAX(votes) - MIN(votes) FROM Vote; Name the goalies and season they played when Boston Bruins won number 1 in rank.,"SELECT T1.firstName, T1.lastName, T3.year FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.year = T3.year AND T2.tmID = T3.tmID WHERE T1.deathYear IS NOT NULL AND T3.name = 'Boston Bruins' AND T3.rank = 1 AND T1.pos = 'G'" How many rooms does each block floor have?,"SELECT count(*) , T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor" in what city is the stadium in England?,"SELECT city FROM stadium where country = ""England""" Show the names of players and names of their coaches in descending order of the votes of players.,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC" What is the average unit price of tracks that belong to Jazz genre?,"SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Jazz""" What episode number in the series is also number 17 in the season?,"SELECT no_in_series FROM table_2818164_5 WHERE no_in_season = ""17""" What grid has a Time/Retired of +5 laps?,"SELECT grid FROM table_name_34 WHERE time_retired = ""+5 laps""" "Name the tournament for march 25, 2012","SELECT tournament FROM table_name_24 WHERE date = ""march 25, 2012""" Tally the customer ID of orders that were shipped to Brazil by Margaret Peacock from 3/31/97 to 12/10/97.,SELECT DISTINCT T2.CustomerID FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.LastName = 'Peacock' AND T1.FirstName = 'Margaret' AND T2.ShipCountry = 'Brazil' AND T2.ShippedDate BETWEEN '1997-03-31 00:00:00' AND '1997-12-10 23:59:59' Give the detailed address for store No.2.,"SELECT T1.address, T1.address2, T1.district FROM address AS T1 INNER JOIN store AS T2 ON T1.address_id = T2.address_id WHERE T2.store_id = 2" What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?,"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'" Who was eliminated when the vote was 8-1?,"SELECT eliminated FROM table_25016824_2 WHERE vote = ""8-1""" What's the C_{high} when the C_{low} value is 250.5?,"SELECT STRUCT(high) FROM table_1942366_9 WHERE STRUCT(low) = ""250.5""" What country is Trent Yawney from?,"SELECT nationality FROM table_2850912_3 WHERE player = ""Trent Yawney""" From which state he was ?,SELECT state FROM customer ORDER BY credit_score LIMIT 1 "What are the full names of all players, sorted by birth date?","SELECT first_name , last_name FROM players ORDER BY birth_date" who is the writer of the episode with prod.code 30-17,"SELECT writer_s_ FROM table_13403120_1 WHERE prodcode = ""30-17""" Name the team with laps more than 333 and year less than 2004,SELECT team FROM table_name_84 WHERE laps > 333 AND year < 2004 List the name of the company that produces more than one phone model.,SELECT Company_name FROM phone GROUP BY Company_name HAVING count ( * ) > 1 What is the density per km in Smoky Lake County?,"SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE municipal_district = ""Smoky Lake County""" "Which Result has a Round of 5, and an Event of mt one?","SELECT result FROM table_name_92 WHERE round = 5 AND event = ""mt one""" Yes please,SELECT sum ( Enrollment ) FROM university When is Devcoin most valuable in the market?,SELECT T2.date FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Devcoin' ORDER BY T2.market_cap DESC LIMIT 1 And can you also tell me the line 1 value from the table Addresses for the same property?,SELECT T1.line_1 FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id where T2.monthly_rental = 1297.807 What is the inventory ID of Karen Jackson?,SELECT T2.inventory_id FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'KAREN' AND T1.last_name = 'JACKSON' How much are the minimum orders of the vendors that are no longer used by the company?,SELECT T2.MinOrderQty FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.ActiveFlag = 0 ORDER BY T2.MinOrderQty LIMIT 1 What was nominated for the Best Movie category?,"SELECT work FROM table_name_54 WHERE category = ""best movie""" What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count(*) >= 5 What Results has the Record of 28-12?,"SELECT results FROM table_name_94 WHERE record = ""28-12""" Which Attendance has Mandalay Bay Resort,"SELECT attendance FROM table_name_75 WHERE venue = ""mandalay bay resort""" What is the number of series with production code 503?,SELECT COUNT(series__number) FROM table_11630008_7 WHERE production_code = 503 Can you add to the table the room count for each entry?,"SELECT apt_type_code,room_count FROM Apartments" Name the dish for resolution of sd 480i and network of bvb,"SELECT dish FROM table_name_8 WHERE resolution = ""sd 480i"" AND network = ""bvb""" How many crew members who were born in the USA were nominated for the Outstanding Animated Program (For Programming Less Than One Hour) award in 2009?,SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T1.birth_country = 'USA' AND T2.result = 'Nominee' AND T2.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T2.year = 2009; How many distinct countries do players come from?,SELECT count(DISTINCT country_code) FROM players What are their parties?,"SELECT T2.Name, T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC" What are the footnote description of Finland in year 2000?,SELECT DISTINCT T2.Description FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.TableName = 'Finland' AND T2.Year = 'YR2000' What are assigned project names?,SELECT t1.Name FROM Projects as t1 join AssignedTo as t2 on t1.Code = t2.Project "How many customers have email that contains ""gmail.com""?","SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE ""%gmail.com%""" "Show the residences that have both a player of gender ""M"" and a player ""F"".","SELECT Residence FROM player WHERE gender = ""M"" INTERSECT SELECT Residence FROM player WHERE gender = ""F""" "What is the total number of Year, when Winner is ""Johnathan Gray""?","SELECT COUNT(year) FROM table_name_81 WHERE winner = ""johnathan gray""" Please give the personal information of the married employee who has the highest pay rate.,SELECT T2.Demographics FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeePayHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'M' ORDER BY T3.Rate DESC LIMIT 1 On what date did the customers who live at number 460 of their respective streets place their orders?,SELECT T1.order_date FROM cust_order AS T1 INNER JOIN address AS T2 ON T1.dest_address_id = T2.address_id WHERE T2.street_number = 460 "What is Opponents, when Partner is Mervana Jugić-Salkić?","SELECT opponents FROM table_name_8 WHERE partner = ""mervana jugić-salkić""" how many locations in the county public safety table,SELECT COUNT ( Location ) FROM county_public_safety "Which Home team has a Road team of portland, and a Result of 104–110?","SELECT home_team FROM table_name_85 WHERE road_team = ""portland"" AND result = ""104–110""" Show the average price range of hotels that have 5 star ratings and allow pets.,"SELECT AVG(price_range) FROM HOTELS WHERE star_rating_code = ""5"" AND pets_allowed_yn = 1" Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round?,"SELECT team FROM table_name_92 WHERE recopa_1994 = ""n/a"" AND conmebol_1994 = ""1st round""" What is the status of incumbent Charles Stenholm?,"SELECT status FROM table_1341568_44 WHERE incumbent = ""Charles Stenholm""" "What is the Time/Retired for the BMW Sauber, and Nick Heidfeld?","SELECT time_retired FROM table_name_80 WHERE constructor = ""bmw sauber"" AND driver = ""nick heidfeld""" What is the location of 11 April 2013 and Mexico Home team?,"SELECT location FROM table_name_8 WHERE home_team = ""mexico"" AND date = ""11 april 2013""" How many students are enrolled in some classes that are taught by an accounting professor?,SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' "Okay, what about the names of the cities that all performers live in?",SELECT distinct T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID What's the title of the episode first seen by 18.15 million people in the US?,"SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = ""18.15""" Which candidate was most supported | You mean the candidate who got the highest support rate? | yes which candidate was most popular,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1 "Based on the lastet payrate of each employee, calculate the average hourly payrate for each department.",SELECT AVG(T1.Rate) FROM EmployeePayHistory AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.RateChangeDate = ( SELECT MAX(T1.RateChangeDate) FROM EmployeePayHistory AS T1 INNER JOIN Department AS T2 ON T1.BusinessEntityID = T2.DepartmentID ) Which entrant had fewer than 33 points in 1999?,SELECT entrant FROM table_name_83 WHERE points < 33 AND year = 1999 What are medicine names and trade names?,"SELECT name , trade_name FROM medicine" Show the Location of Barker College?,SELECT Location FROM school WHERE School = 'Barker College' What are the names of the ordered products that have profit deficiency in central superstore?,SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'Central' AND T1.Profit < 0 How many months has student217 been absent?,SELECT month FROM longest_absense_from_school WHERE name = 'student217' what are the monthly rentals of student addresses in Texas state?,"SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Texas""" please list the years of film market estimations from Japan.,"SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = ""Japan""" What is the english title of the film before 1999 with a role of kim da-rim?,"SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = ""kim da-rim""" Show names for all employees with salary more than the average.,SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee) What are the names of students who have more than one advisor?,SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1 What is the average revenue of the movie in which Dariusz Wolski works as the director of photography?,SELECT CAST(SUM(T1.revenue) AS REAL) / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography' List the countries that have more than one mountain.,SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1 "Please list all of the associations that the authors of the paper ""FIBER: A Generalized Framework for Auto-tuning Software"" are affiliated with.",SELECT DISTINCT T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'FIBER: A Generalized Framework for Auto-tuning Software' "How many stores with less need for products, and purchased through a distributor, are located in Washtenaw County?",SELECT SUM(CASE WHEN T1.`Order Quantity` = 1 AND T1.`Sales Channel` = 'Distributor' AND T2.County = 'Washtenaw County' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID "What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?",SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14 "Name the Outcome has a Surface of hard, and a Score in the final of 6–2, 6–4?","SELECT outcome FROM table_name_82 WHERE surface = ""hard"" AND score_in_the_final = ""6–2, 6–4""" in which state where John Laurance (f) as a vacator?,"SELECT state__class_ FROM table_224840_3 WHERE vacator = ""John Laurance (F)""" "What is Model Number, when Part Number(s) is AY80609003987AB?","SELECT model_number FROM table_name_70 WHERE part_number_s_ = ""ay80609003987ab""" "How many donors have endowment for school named ""Glenn""?","SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = ""Glenn""" What are the names of the employees who never received any evaluation?,SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation) "Calculate the ratio of the total number of images with an object class of ""man"" and ""person"".",SELECT CAST(COUNT(CASE WHEN T2.OBJ_CLASS = 'man' THEN 1 ELSE 0 END) AS REAL) / COUNT(CASE WHEN T2.OBJ_CLASS = 'person' THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID What is the capability on research of the student named Alvera McQuillin?,SELECT T2.capability FROM student AS T1 INNER JOIN RA AS T2 ON T1.student_id = T2.student_id WHERE T1.f_name = 'Alvera' AND T1.l_name = 'McQuillin' What was the result when the opponent was at 2 usc?,"SELECT result FROM table_name_85 WHERE opponent_number = ""at 2 usc""" How many shipments were ordered by S K L Enterprises Inc in 2017?,"SELECT COUNT(T2.ship_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND STRFTIME('%Y', T2.ship_date) = '2017'" What is every year where opponent in the final is John Mcenroe at Wimbledon?,"SELECT year FROM table_23235767_1 WHERE opponent_in_the_final = ""John McEnroe"" AND championship = ""Wimbledon""" What is the Class AA in the 2010-11 school year with a class AAA of Giddings?,"SELECT class_aA FROM table_name_7 WHERE class_aAA = giddings AND school_year = ""2010-11""" What is the rating of the episode with a rating/share of 0.9/4?,SELECT rating FROM table_17525955_2 WHERE rating / SHARE(18 AS –49) = 0.9 / 4 "What is Series, when Days is greater than 99, and when Prize is €50,000?","SELECT series FROM table_name_15 WHERE days > 99 AND prize = ""€50,000""" What is the release title of the single that was released by Ron Hunt in 1979 that was downloaded 239 times?,SELECT groupName FROM torrents WHERE artist LIKE 'ron hunt & ronnie g & the sm crew' AND groupYear = 1979 AND releaseType LIKE 'single' AND totalSnatched = 239 What is the sum of the League Cup smaller than 0?,SELECT SUM(total) FROM table_name_39 WHERE league_cup < 0 What is the code of each role and the number of employees in each role?,"SELECT role_code , count(*) FROM Employees GROUP BY role_code" "What is the average Games for 1965–1981, and a Ranking larger than 4?","SELECT AVG(games) FROM table_name_52 WHERE years = ""1965–1981"" AND ranking > 4" What music is in the film with an Uncut run time of 95 minutes?,"SELECT music FROM table_name_63 WHERE uncut_run_time = ""95 minutes""" "How many Red Breasted Nuthatch coins created before 2007 were minted, on average?","SELECT AVG(mintage) FROM table_name_42 WHERE animal = ""red breasted nuthatch"" AND year < 2007" "How many times of repetition does the word ""exemple"" show in the Catalan language?",SELECT T2.occurrences FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'exemple' AND T2.lid = 1 "What Date Released, when # Of Discs is greater than 4?",SELECT date_released FROM table_name_33 WHERE _number_of_discs > 4 What is the date of debut that has a date of birth listed at 24-10-1887?,"SELECT date_of_debut FROM table_11585313_1 WHERE date_of_birth = ""24-10-1887""" What is the author of the submission with the highest score?,SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 list the name of staff who has been assigned multiple jobs?,SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT ( * ) > 1 What are the pcp's of those patients?,SELECT pcp FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) > 1 What was the date of appointment for Christos Kassianos who belonged to AEK?,"SELECT date_of_appointment FROM table_name_38 WHERE team = ""aek"" AND replaced_by = ""christos kassianos""" What are the id and name of the mountains that have at least 2 photos?,"SELECT T1.id , T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING count(*) >= 2" What event was in hong kong and went less than 2 rounds?,"SELECT event FROM table_name_66 WHERE round < 2 AND location = ""hong kong""" "What is the smallest quantity displayed under the title ""first runner-up""?",SELECT MIN(1 AS st_runner_up) FROM table_29942205_1 Calculate the run rate at the end of 17 overs of the match ID 335987 on 4/18/2008.,SELECT CAST(COUNT(CASE WHEN T1.Toss_Name = 'bat' THEN T3.Runs_Scored ELSE NULL END) AS REAL) / SUM(CASE WHEN T1.Toss_Name = 'field' THEN 1 ELSE 0 END) FROM Toss_Decision AS T1 INNER JOIN Match AS T2 ON T1.Toss_Id = T2.Toss_Decide INNER JOIN Batsman_Scored AS T3 ON T2.Match_Id = T3.Match_Id WHERE T2.Match_Id = 335987 AND T2.Match_Date = '2008-04-18' GROUP BY T3.Over_Id HAVING COUNT(T1.Toss_Name = 'field') = 17 What is the total for the state of new york and a swimsuit less than 9.394?,"SELECT SUM(interview) FROM table_name_97 WHERE state = ""new york"" AND swimsuit < 9.394" What is the highest number of laps with a 21 start?,"SELECT MAX(laps) FROM table_name_42 WHERE start = ""21""" What's the name of that catalog and its date of publication?,"select catalog_name,date_of_publication from catalogs where catalog_publisher in ( SELECT distinct ( catalog_publisher ) FROM catalogs WHERE catalog_publisher LIKE ""%chocolate%"" ) " What is Fitzroy's Home team Crowd?,"SELECT SUM(crowd) FROM table_name_90 WHERE home_team = ""fitzroy""" Find the phone numbers of customers using the most common policy type among the available policies.,SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1) How many party events do we have?,SELECT count(*) FROM party_events Show the name of storms which don't have affected region in record.,SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region) What Away team is from Fitzroy?,"SELECT away_team FROM table_name_16 WHERE home_team = ""fitzroy""" Name the rank with finish of 12 and year of 1963,"SELECT rank FROM table_name_29 WHERE finish = ""12"" AND year = ""1963""" "Find the total number of rooms in the apartments that have facility code ""Gym"".","SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" Show the host names for parties with number of hosts greater than 20.,SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 What is the position elected in 2011 from the Country of Algeria?,"SELECT position FROM table_name_78 WHERE elected = 2011 AND country_of_origin = ""algeria""" what is the average and maximum hours for these students,"SELECT avg ( T1.HS ) , max ( T1.HS ) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" What is the name of the country with the most car makers?,SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1; How many orders of O'Sullivan Plantations 2-Door Library in Landvery Oak in central superstore were shipped through the shipping mode with the fastest delivery speed?,SELECT COUNT(DISTINCT T1.`Order ID`) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'O''Sullivan Plantations 2-Door Library in Landvery Oak' AND T2.Region = 'Central' AND T1.`Ship Mode` = 'First Class' Which upper middle income country has the lowest value of CO2 emissions (kt)?,SELECT T1.CountryCode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'Upper middle income' AND T2.IndicatorName = 'CO2 emissions (kt)' ORDER BY T2.Value ASC LIMIT 1 What is the wheel arrangement for the model that was retired in 1955?,"SELECT wheel_arrangement FROM table_name_75 WHERE year_s__retired = ""1955""" When did Carlton play as the home team?,"SELECT date FROM table_name_60 WHERE home_team = ""carlton""" "What is the local authority of Chorleywood, ID 10?","SELECT local_authority FROM station WHERE network_name = ""Chorleywood""" What was the lowest amount of people to turn out at a game with the away team as collingwood?,"SELECT MIN(crowd) FROM table_name_93 WHERE away_team = ""collingwood""" How many laps for martin brundle with a grid of less than 10?,"SELECT COUNT(laps) FROM table_name_54 WHERE driver = ""martin brundle"" AND grid < 10" "What is the outcome on a hard surface, when the score in the final was 4–6, 3–6?","SELECT outcome FROM table_name_1 WHERE surface = ""hard"" AND score_in_the_final = ""4–6, 3–6""" what is the least tournaments played when the year is 1998?,SELECT MIN(tournaments_played) FROM table_name_62 WHERE year = 1998 How many documents have expenses?,SELECT count(*) FROM Documents_with_expenses "State the product name, product line, rating and the selling price of product with the lowest rating.","SELECT T1.Name, T1.ProductLine, T2.Rating, T1.ListPrice FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID ORDER BY T2.Rating ASC LIMIT 1" What is the average unit price of tracks that belong to Jazz genre?,"SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Jazz""" How many cities are in counties that have populations of over 20000?,SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000) which athlete played against Queensland?,"SELECT player FROM table_name_17 WHERE opponent = ""queensland""" Great! Can you please list all of the author Ids that are associated with that paper title?,"SELECT distinct t2.authID FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.title = ( SELECT distinct t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University"" ) " Which of the mill names contains the french word 'Moulin'?,SELECT name FROM mill WHERE name LIKE '%Moulin%' "What is the ID of the production company which produced the movie ""Gladiator""?",SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Gladiator' What category was the movie Working Girl nominated?,"SELECT category FROM table_18638067_1 WHERE film_title_used_in_nomination = ""Working Girl""" What is every example for the equivalent of NTE160?,"SELECT example FROM table_30011_2 WHERE equivalent = ""NTE160""" What is the ranking system ID of the award criteria?,SELECT ranking_system_id FROM ranking_criteria WHERE criteria_name = 'Award' Who is the Skip when Alasdair Guthrie is the third?,"SELECT skip FROM table_name_83 WHERE third = ""alasdair guthrie""" What is the lowest total points Karine Trécy has with a less than 12 place?,"SELECT MIN(total_points) FROM table_name_84 WHERE artist = ""karine trécy"" AND place < 12" What days were the claims made?,SELECT Date_Claim_Made FROM Claims What is the average number of bedrooms of all apartments?,SELECT avg(bedroom_count) FROM Apartments How many Tot enlisted were there on the day when the number of total USAAF was 2329534?,SELECT MAX(tot_enlisted) FROM table_23508196_2 WHERE total_usaaf = 2329534 List every album ordered by album title in ascending order.,SELECT title FROM albums ORDER BY title; Please list the mountains in the country with the lowest inflation rate.,SELECT Mountain FROM geo_mountain WHERE Country = ( SELECT Country FROM economy ORDER BY Inflation ASC LIMIT 1 ) "List out the root beer ID for the brand Bulldog, Bundaberg, Dad's, Dog n Suds and Virgil's.","SELECT T1.RootBeerID FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T2.BrandID = T1.BrandID WHERE T2.BrandName IN ('Bulldog', 'Bundaberg', 'Dad''s', 'Dog n Suds', 'Virgil''s')" Give the full name and contact number of employees in descending order of age.,"SELECT FirstName, LastName, HomePhone FROM Employees ORDER BY BirthDate DESC" What is the description of the footnote on the series code AG.LND.FRST.K2 in 1990 for Aruba?,SELECT T2.Description FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2' AND T2.Year = 'YR1990' "When the country was Scotland, how many ends were won?",SELECT COUNT(Ends) AS won FROM table_16922657_2 WHERE country = Scotland Name the home team score when the away team is south melbourne,"SELECT home_team AS score FROM table_name_15 WHERE away_team = ""south melbourne""" Team Rusport has the best of 59.654 and what qual 1?,"SELECT qual_1 FROM table_name_15 WHERE team = ""rusport"" AND best = ""59.654""" What are the payment methods of those customers?,SELECT T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' "What products are available at store named ""Miramichi""?","SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = ""Miramichi""" Which margin of victory has cyber agent ladies as the tournament?,"SELECT margin_of_victory FROM table_name_78 WHERE tournament = ""cyber agent ladies""" "wonderful, looks like nine total. approximately how many patients do each of them take care of? | Would you like to know average patients corresponding to each physician? | if you could please share the average total patient per physician the would be helpful.","SELECT T1.name , count ( * ) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid" When was the order placed whose shipment tracking number is 3452? Give me the date.,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452 Which Season has a Postseason of promoted runner-up?,"SELECT season FROM table_name_33 WHERE postseason = ""promoted runner-up""" "Find the first names of teachers whose email address contains the word ""man"".",SELECT first_name FROM Teachers WHERE email_address LIKE '%man%' "In 1980, how many singles were released by sugar daddy?",SELECT COUNT(releaseType) FROM torrents WHERE artist LIKE 'sugar daddy' AND releaseType LIKE 'Single' AND groupYear = 1980 What's the value for race 4 when race 1 is dsq?,"SELECT race_4 FROM table_name_76 WHERE race_1 = ""dsq""" "How many Lost have a Team of flamengo, and an Against smaller than 5?","SELECT COUNT(lost) FROM table_name_92 WHERE team = ""flamengo"" AND against < 5" Show the most common location of performances.,SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 How many staff live in state Georgia?,"SELECT COUNT(*) FROM Addresses WHERE state_province_county = ""Georgia""" What are the maximum and minimum settlement amount on record?,"SELECT MAX(settlement_amount), MIN(settlement_amount) FROM settlements" in the milwaukee team who made the high points,"SELECT high_points FROM table_30049462_3 WHERE team = ""Milwaukee""" Find the names of users who did not leave any review.,SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review) When melbourne was the home team what was their score?,"SELECT home_team AS score FROM table_name_46 WHERE home_team = ""melbourne""" What are the employee ids who work in those departments?,SELECT employee_id FROM employees WHERE department_id IN ( SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200 ) Provide the language used in the country ruled by Pierre Buyoya.,SELECT T1.Language FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.HeadOfState = 'Pierre Buyoya' What is the average total score of body builders with height bigger than 200?,SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200 "How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?","SELECT COUNT(season) FROM table_1850339_2 WHERE army___navy_score = ""10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)""" Which professor teaches the highest number of professional or master/graduate courses?,SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_500' GROUP BY T2.p_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1 "Where is the position when houston, tx is the hometown and worthing is the high school?","SELECT position FROM table_22496344_1 WHERE home_town = ""Houston, TX"" AND high_school = ""Worthing""" "Which district commander was responsible for more incidents in January, 2018, Robert A. Rubio or Glenn White?","SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander IN ('Robert A. Rubio', 'Glenn White') AND SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' GROUP BY T1.commander" Name the regular season for 2005,SELECT regular_season FROM table_2139111_1 WHERE year = 2005 Where was the match located when the odds were p + 1 and the score was 1/3?,"SELECT location FROM table_name_98 WHERE odds = ""p + 1"" AND score = ""1/3""" Name the position for delaware,"SELECT position FROM table_2508633_6 WHERE college = ""Delaware""" "Attendance of 36,796 had what score?","SELECT score FROM table_name_46 WHERE attendance = ""36,796""" What positions does Hal Weeks play?,"SELECT position FROM table_14342592_3 WHERE player = ""Hal Weeks""" "Find the start and end dates of detentions of teachers with last name ""Schultz"".","SELECT T1.datetime_detention_start , datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = ""Schultz""" "What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?",SELECT MIN(total) FROM table_name_71 WHERE silver < 1 AND rank > 5 AND bronze > 1 Name the constructor for b. bira,"SELECT constructor FROM table_28190534_1 WHERE driver = ""B. Bira""" "How many viewers, in millions, were for the episode directed by Tawnia McKiernan?","SELECT us_viewers__millions_ FROM table_12159115_3 WHERE directed_by = ""Tawnia McKiernan""" List down the name of games published by 3DO.,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '3DO' Who is the opponent of game 75?,SELECT opponent FROM table_name_44 WHERE game = 75 What is the total number of cities that Japan have?,SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T1.Name = 'Japan' "Which railway had the earliest build date and a disposal of ""Scrapped 1941?""","SELECT MIN(build_date) FROM table_name_48 WHERE disposal = ""scrapped 1941""" Name the points for switzerland,"SELECT points FROM table_24489942_10 WHERE nationality = ""Switzerland""" What is the Score of the Fifa World Cup 1986 Play-off Competition?,"SELECT score FROM table_name_7 WHERE competition = ""fifa world cup 1986 play-off""" List the professors' IDs and students' IDs with the lowest research ability.,"SELECT prof_id, student_id FROM RA WHERE capability = ( SELECT MIN(capability) FROM RA )" What's the total (in million €) in the region where PPP is 21779 million €?,SELECT total__million_€__ FROM table_2293510_1 WHERE ppp__million_€_ = 21779 Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.,"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'" Show me all dorm names,SELECT dorm_name FROM dorm What is the record when the fight was against keith rockel?,"SELECT record FROM table_name_1 WHERE opponent = ""keith rockel""" How many people lived in the city which has 1.2530 km² in the year 2000?,"SELECT MAX(population__2000_) FROM table_2004733_2 WHERE area__in_km_2__ = ""1.2530""" What tournament has q2 as the 2004?,"SELECT tournament FROM table_name_66 WHERE 2004 = ""q2""" What was the score for Peter Lonard?,"SELECT score FROM table_name_97 WHERE player = ""peter lonard""" What year had the Chassis of march 762 and more than 0 points?,"SELECT COUNT(year) FROM table_name_64 WHERE chassis = ""march 762"" AND points > 0" In which league would you find the player with a comp percentage of 54.0?,"SELECT leagues FROM table_18686317_1 WHERE comp__percentage = ""54.0""" How many exhibitions have an attendance of more than 100?,SELECT count ( * ) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 "When has a Surface of hard, a Tournament of wrexham , great britain?","SELECT date FROM table_name_46 WHERE surface = ""hard"" AND tournament = ""wrexham , great britain""" What is the name and capacity of the stadium with the most concerts after 2013 ?,"select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1" What was the team record after the Frankfurt Galaxy matchup?,"SELECT team_record FROM table_24852001_2 WHERE opponent = ""Frankfurt Galaxy""" Which establishments did Bob Benson inspect in 2010 and what was the results?,"SELECT DISTINCT T3.dba_name, T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Bob' AND T1.last_name = 'Benson' AND strftime('%Y', T2.inspection_date) = '2010'" What is the location of the most recently built railway?,SELECT LOCATION FROM railway order by built desc limit 1 "What was the record when the attendance was 43,502?","SELECT record FROM table_name_95 WHERE attendance = ""43,502""" how many trains have the number 99808,SELECT COUNT(train_name) FROM table_29301050_1 WHERE train_number = 99808 Show all student IDs with the number of sports and total number of games played,"SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID" What is the Date when the match Resulted in a draw?,"SELECT date FROM table_name_95 WHERE result = ""draw""" What's the customer id of the customer with first name Rylan and last name Goodwin?,"SELECT customer_id FROM customers WHERE first_name = ""Rylan"" AND last_name = ""Goodwin""" List all rivers and province it is located that is greater than 1000 in length.,"SELECT T1.Province, T2.Name FROM geo_river AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T2.Length > 1000" Who built Alex Yoong's car?,"SELECT constructor FROM table_name_84 WHERE driver = ""alex yoong""" How many vacant seats were filled by newcomer Joseph H. Bottum (r)?,"SELECT COUNT(vacator) FROM table_1802522_3 WHERE successor = ""Joseph H. Bottum (R)""" Which school would you come across if you were in Kirksville?,"SELECT school FROM table_2076463_2 WHERE location_s_ = ""Kirksville""" How many times was Scott Oelslager a representative?,"SELECT COUNT(residence) FROM table_26131768_4 WHERE representative = ""Scott Oelslager""" In what venue is Essendon the home team?,"SELECT venue FROM table_name_92 WHERE home_team = ""essendon""" What is the starting year of the oldest technicians?,SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1 Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.,"SELECT stu_fname , stu_gpa FROM student WHERE stu_gpa < (SELECT avg(stu_gpa) FROM student)" "What is the school of the player who went to the college of michigan and originally comes from Wheaton, Illinois?","SELECT school FROM table_name_2 WHERE college = ""michigan"" AND hometown = ""wheaton, illinois""" which student had highest grade | Here are the first and last names of the student who had the highest grade. | which letter grade has the lowest grade point?,SELECT DISTINCT T2.lettergrade FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID order by T2.gradepoint limit 1 Show all directors.,SELECT DISTINCT directed_by FROM film Please indicate the full name of actor id 5.,"SELECT first_name, last_name FROM actor WHERE actor_id = 5" What title has rouben mamoulian directing after 1940 with linda darnell as the leading lady?,"SELECT title FROM table_name_16 WHERE director = ""rouben mamoulian"" AND year > 1940 AND leading_lady = ""linda darnell""" What are the first names of the people in alphabetical order?,SELECT first_name FROM people ORDER BY first_name Find the state which has the most number of customers.,SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1 How many distinct media types are Rock genre?,"SELECT count ( distinct T2.media_type_id ) FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock""" Which city has the most businesses whose attribute is full_bar?,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T2.attribute_value LIKE 'full_bar' GROUP BY T1.city What is the Rank for Viktors Dobrecovs with less than 325 Matches?,"SELECT AVG(rank) FROM table_name_34 WHERE name = ""viktors dobrecovs"" AND matches < 325" What is the total bronze from Puerto Rico with a total of less than 1?,"SELECT SUM(bronze) FROM table_name_27 WHERE nation = ""puerto rico"" AND total < 1" Find the number of different airports which are the destinations of the American Airlines.,SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' Who was the loan club for the Westlake game?,"SELECT loan_club FROM table_12608427_8 WHERE name = ""Westlake""" "Who was the winning driver driving the winning car March - Honda 86j, with the winning team Team Nova?","SELECT winning_driver FROM table_name_84 WHERE winning_car = ""march - honda 86j"" AND winning_team = ""team nova""" Finding the checking balance and saving balance in the Brown's account,"SELECT T2.balance , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'" How many HUC example codes have 1 level?,SELECT COUNT(example_code__huc_) FROM table_name_48 WHERE level = 1 What is the production number for the episode directed by Robert McKimson named Mice Follies?,"SELECT COUNT(production_number) FROM table_name_24 WHERE director = ""robert mckimson"" AND title = ""mice follies""" What is the name of the artist who produced the shortest song?,SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 Which opponent has a Round of 12?,"SELECT opponent FROM table_name_34 WHERE round = ""12""" Show the country name and capital of all countries.,"SELECT Country_name , Capital FROM country" "Find all 200 meter and 300 meter results of swimmers with nationality ""Australia"".","SELECT meter_200, meter_300 FROM swimmer WHERE nationality = 'Australia'" "What is the result of the game played in Russia on May 9, 2012?","SELECT result FROM table_name_1 WHERE venue = ""russia"" AND date = ""may 9, 2012""" How many seasons had a rank of 16?,SELECT COUNT(season) FROM table_1218784_1 WHERE rank = 16 "Provide the names and departments of the person who worked as a music editor in the ""Pirates of the Caribbean: At World's End"" movie.","SELECT T3.person_name, T4.department_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id INNER JOIN department AS T4 ON T2.department_id = T4.department_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Music Editor'" Return the names of the contestants whose names contain the substring 'Al' .,"select contestant_name from contestants where contestant_name like ""%al%""" how many country participate in the market?,select count ( distinct country ) from market Name the outcome for zurich,"SELECT outcome FROM table_23944006_4 WHERE championship = ""Zurich""" What is the Score on April 6?,"SELECT score FROM table_name_71 WHERE date = ""april 6""" List down the platform IDs of the games with a region ID of 3.,SELECT T2.id FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id WHERE T1.region_id = 3 What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010?,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 What is the Region of the Warner Music Canada Label release?,"SELECT region FROM table_name_29 WHERE label = ""warner music canada""" How many silver medals were won in 1938?,"SELECT silver FROM table_name_42 WHERE year = ""1938""" What number pick was the player for the Oakland Athletics who plays the 1B position?,"SELECT pick FROM table_name_11 WHERE position = ""1b"" AND team = ""oakland athletics""" How many documents were shipped by USPS?,"SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS"";" Which wine product has the highest price?,SELECT * from wine where price = ( select max ( price ) from wine ) Provide the current legislators' official full names who are from the Independent party.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Independent' GROUP BY T1.official_full_name "Which 2007 has a 2010 of A, and a 2006 of lq?","SELECT 2007 FROM table_name_18 WHERE 2010 = ""a"" AND 2006 = ""lq""" What's the average total if the Bronze is 5 and the Silver is less than 4?,SELECT AVG(total) FROM table_name_25 WHERE bronze = 5 AND silver < 4 What is the language of the film ACADEMY DINOSAUR?,SELECT T2.name FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'ACADEMY DINOSAUR' Indicate the name of the most versatile players of the Delhi Daredevils.,SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Team AS T2 ON T1.Team_Id = T2.Team_Id INNER JOIN Player AS T3 ON T1.Player_Id = T3.Player_Id WHERE T2.Team_Name = 'Delhi Daredevils' GROUP BY T3.Player_Name ORDER BY COUNT(T1.Role_Id) DESC LIMIT 1 What is the salary rate per hour that the company paid to the first 5 employees that they hired?,"SELECT T1.Rate FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID ORDER BY T2.HireDate ASC LIMIT 0, 5" "How many times that the word pair of ""barcelona"" and ""precolombina"" occur?",SELECT SUM(occurrences) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'barcelona' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'precolombina' ) Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000 Show all role codes with at least 3 employees.,SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3 "What are the names, details and data types of the characteristics which are never used by any product?","SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id" What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?,"SELECT MAX(round) FROM table_name_85 WHERE opponent = ""hikaru shinohara"" AND record = ""11-7""" Which college did draft pick #143 attend?,SELECT college FROM table_15582870_1 WHERE choice = 143 What is the NOAA of the higher harmonics that have a Darwin of m sf?,"SELECT noaa FROM table_name_27 WHERE darwin = ""m sf""" "Name march 27-29 where january 15-16 is january 15, 1991","SELECT march_27_29 FROM table_1708610_3 WHERE january_15_16 = ""January 15, 1991""" What is the earliest year of a film from Mexico?,"SELECT MIN(year) FROM table_name_44 WHERE country = ""mexico""" What are the procedures that cost more than 1000 or are specialized in by physician John Wen?,"SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" "Show the names of products and the number of events they are in, sorted by the number of events in descending order.","SELECT T1.Product_Name , COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC" What is the most common age group among all device users?,"SELECT T.num FROM ( SELECT `group`, COUNT(`group`) AS num FROM gender_age GROUP BY `group` ) T" Which name has more than 14 points with less than 1 draw?,SELECT name FROM table_name_99 WHERE points > 14 AND drawn < 1 WHAT IS THE RESULT FOR THE SONG WHERE THE ORIGINAL ARTIST IS BETTY EVERETT?,"SELECT result FROM table_15778392_1 WHERE original_artist = ""Betty Everett""" what is the number of hydroxymatairesinol where sesamin is 62724?,"SELECT hydroxymatairesinol FROM table_1831262_2 WHERE sesamin = ""62724""" And which of them are from the UK?,"SELECT artist_name FROM artist WHERE country = ""UK"" AND gender = ""Male""" "Provide the contact person name, title and supplied products by ""Escargots Nouveaux"" company.","SELECT T2.ContactName, T2.ContactTitle, T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Escargots Nouveaux'" WHO DID THE RAPTORS PLAY ON JANUARY 9?,"SELECT team FROM table_15869204_6 WHERE date = ""January 9""" What is the population in the city of Pomorskie?,"SELECT population_in_1000__1931_ FROM table_11654169_1 WHERE voivodeship_separate_city = ""pomorskie""" How many servings does the recipe with the highest unsaturated fat have?,SELECT COUNT(T1.title) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.total_fat - T2.sat_fat DESC LIMIT 1 What is the name of the shipping agent of the document with id 2?,SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2; What keyword can the user use to search for the movie Finding Nemo?,SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.title = 'Finding Nemo' "What is the MHZ frequency in carmel, california with an ERP W over 10?","SELECT AVG(frequency_mhz) FROM table_name_53 WHERE city_of_license = ""carmel, california"" AND erp_w > 10" What is the sex of each of those faculty who are members of the department with department number 600.,SELECT T1.sex FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 600 Which attendance has a Score of 3-5?,"SELECT attendance FROM table_name_88 WHERE score = ""3-5""" What driver has over 19 points and a grid of over 2?,SELECT driver FROM table_name_65 WHERE points > 19 AND grid > 2 Show the location with most number of train stations.,SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1 "How many images have ""vegetable"" and ""fruits"" as their object classes?",SELECT COUNT(T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'vegetables' OR T2.OBJ_CLASS = 'fruits' can you just show me their last names?,"SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Binders Unbound""" What is the surface when the partner was Robert Haybittel?,"SELECT surface FROM table_name_42 WHERE partner = ""robert haybittel""" "Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.","SELECT apt_type_code , bathroom_count , bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1" Please list the names of the universities with a score in teaching of over 90 in 2011.,SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90 What is the id of the routes whose source and destination airports are in the United States?,SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') In what year was the average speed 92.68?,"SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = ""92.68""" "Which customer's name contains ""Alex""? Find the full name.","SELECT customer_name FROM customers WHERE customer_name LIKE ""%Alex%""" What series number started production on June 6?,"SELECT MIN(no) FROM table_1949994_8 WHERE start_date = ""June 6""" "What is L2 Cache, when Model Number is Atom Z625?","SELECT l2_cache FROM table_name_60 WHERE model_number = ""atom z625""" What is the maximum number of followers of all users?,SELECT max ( followers ) FROM user_profiles What character was the version 5.1 and had a Greek capital letter Archaic Sampi?,"SELECT character FROM table_name_21 WHERE version = 5.1 AND name = ""greek capital letter archaic sampi""" "Awesome! What product price is associated with the Product Type Code of ""food""?","SELECT Product_Price FROM Products WHERE Product_Type_Code = ""Food""" What is the venue of the match with the wightlink raiders as the opponent?,"SELECT venue FROM table_name_9 WHERE opponent = ""wightlink raiders""" what is the smallest number of laps imre toth has?,"SELECT MIN(laps) FROM table_name_23 WHERE rider = ""imre toth""" What is the Mountains Classification for Winner josé luis carrasco?,"SELECT mountains_classification FROM table_name_2 WHERE winner = ""josé luis carrasco""" Name the transliteration for ചിങ്ങം,"SELECT transliteration FROM table_20354_7 WHERE malayalam_name = ""ചിങ്ങം""" Name the location attendance for 4 game,SELECT location_attendance FROM table_23284271_11 WHERE game = 4 Where was South Melbourne played?,"SELECT venue FROM table_name_13 WHERE home_team = ""south melbourne""" What is the chinese name of the province whose capital is hangzhou?,"SELECT chinese_name FROM table_254234_1 WHERE capital = ""Hangzhou""" "In sales ID between 30 and 40, who is the customer that bought a total quantity of 403?","SELECT T2.FirstName, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Quantity = 403 AND T1.SalesID BETWEEN 30 AND 40" "What is the total fat with a smoke point of °c (), 25g of saturated fat?","SELECT total_fat FROM table_name_60 WHERE smoke_point = ""°c ()"" AND saturated_fat = ""25g""" Find me the 5 customers who most recently purchased something. | What information about the customer do you need? | I need the first name and last name please,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5" What is the most number of assists for players with exactly 25 games played?,SELECT MAX(assists) FROM table_28461589_2 WHERE games_played = 25 Give me the names of ships that have been decommissioned,"Select Name from ship where Ship_ID in ( SELECT Ship_ID FROM mission WHERE Fate like '%Decommissioned%' ) " How many role-playing games did Microsoft Game Studios publish?,SELECT COUNT(T3.id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Role-Playing' AND T1.publisher_name = 'Microsoft Game Studios' film id?,SELECT T2.film_id FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count ( * ) DESC LIMIT 1 When did the first match that score more than 10 goals happen?,SELECT MIN(Date) FROM matchs WHERE FTHG + FTAG > 10 Which Season has a Level of tier 2 and a Position of 1st?,"SELECT COUNT(season) FROM table_name_82 WHERE level = ""tier 2"" AND position = ""1st""" What country has 370 supermarkets?,"SELECT country FROM table_name_47 WHERE supermarkets = ""370""" What kind of political system is in place in the country with the highest inflation rate?,SELECT T1.Government FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country ORDER BY T2.Inflation DESC LIMIT 1 "In Albany Park, how many arrests were made in an apartment due to criminal sexual abuse?",SELECT SUM(CASE WHEN T3.title = 'Criminal Sexual Abuse' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.district_name = 'Albany Park' AND T2.arrest = 'TRUE' AND T2.location_description = 'APARTMENT' Show the names of players and names of their coaches.,"SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID" What date was the game when the liberty had a record of 12-9?,"SELECT date FROM table_name_63 WHERE record = ""12-9""" What are the names of the amenities that Smith Hall has?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' Who was the home team at MCG?,"SELECT home_team FROM table_name_39 WHERE venue = ""mcg""" What are the ids of the two department store chains with the largest number of department stores?,SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY count(*) DESC LIMIT 2 "Hmm, I also want to know the minimum age of all the artists from United States please.",SELECT min ( age ) from artist where country = 'United States' How many different departments are there?,SELECT count(DISTINCT dept_name) FROM department What is the overall number for the College of Wyoming?,"SELECT COUNT(overall) FROM table_name_6 WHERE college = ""wyoming""" "Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?",SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 73 - 70 - 71 = 283 And what is the name of the instructor that earns that salary?,SELECT name FROM instructor WHERE dept_name = 'Statistics' order by salary asc limit 1 How many colors are there?,SELECT count(*) FROM ref_colors Find highest membership amount?,SELECT membership_amount FROM branch order by membership_amount desc limit 1 What is the to par that has bill collins as the player?,"SELECT to_par FROM table_name_72 WHERE player = ""bill collins""" Hi! Can you show me a list of all of the product part names?,SELECT part_name from parts What is the name of Season #15?,SELECT title FROM table_12564633_1 WHERE season__number = 15 Motor Racing Developments used which tire in rounds 3-12?,"SELECT tyre FROM table_name_58 WHERE entrant = ""motor racing developments"" AND rounds = ""3-12""" What is the total number of poles and 63 points?,"SELECT COUNT(poles) FROM table_name_66 WHERE points = ""63""" What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?,"SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = ""tim schenken""" "In what district was the successor seated August 31, 1943?","SELECT district FROM table_2159537_3 WHERE date_successor_seated = ""August 31, 1943""" Return the minimum and maximum crime rates across all counties.,"SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety" What is the long value for the year with an average/game of 160.9?,"SELECT long FROM table_name_17 WHERE avg_g = ""160.9""" What are their cities?,"SELECT name, city FROM branch ORDER BY membership_amount DESC LIMIT 3" can you show me a list of accounts name?,select name from accounts "Of all the claims, what was the earliest date when any claim was made?",SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1 Please give the full names of all the patients who had been prescribed with Acetaminophen.,"SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.description LIKE 'Acetaminophen%'" What is storm name two storm ID?,SELECT Storm_id from storm where name = 'Two' What Level has a Season larger than 2010?,SELECT level FROM table_name_54 WHERE season > 2010 Which score has a record of 18-21-7?,"SELECT score FROM table_name_36 WHERE record = ""18-21-7""" "What is the highest Population, when % LDS is 0.54%, and when Total Congregations is greater than 2?","SELECT MAX(population) FROM table_name_13 WHERE _percentage_lds = ""0.54%"" AND total_congregations > 2" What are all weights for the number 27?,SELECT weight FROM table_14624447_24 WHERE number = 27 what is the result when the opponent is blackburn rovers?,"SELECT result FROM table_name_39 WHERE opponent = ""blackburn rovers""" what is the react when the lane is 3 and heat is 2?,SELECT react FROM table_name_98 WHERE lane = 3 AND heat = 2 What country has a score of 66-73-69=208?,SELECT country FROM table_name_69 WHERE score = 66 - 73 - 69 = 208 What campuses opened between 1935 and 1939?,SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939 Which frequency is station wlfv-fm?,"SELECT frequency FROM table_19131921_1 WHERE station = ""WLFV-FM""" "Among the crimes, what percentage are severe?",SELECT CAST(COUNT(CASE WHEN index_code = 'I' THEN iucr_no ELSE NULL END) AS REAL) * 100 / COUNT(iucr_no) FROM IUCR What is the employee id and salary of George Wright?,"SELECT eid , salary FROM Employee where name = ""George Wright""" How many care plans has Mrs. Norman Berge taken?,SELECT COUNT(T2.PATIENT) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Norman' AND T1.last = 'Berge' What is the position when the points 1 is 61?,"SELECT SUM(position) FROM table_name_40 WHERE points_1 = ""61""" At what location and what was the attendance when Rafer Alston (10) achieved high assists? ,"SELECT location_attendance FROM table_17288825_7 WHERE high_assists = ""Rafer Alston (10)""" "What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?","SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = ""mary murphy"" AND style = ""contemporary""" On what date did Fleetcenter have a game lower than 9 with a score of 104-94?,"SELECT date FROM table_name_59 WHERE location = ""fleetcenter"" AND game < 9 AND score = ""104-94""" What is the song released by Travis?,"SELECT single FROM table_25760427_2 WHERE artist = ""Travis""" Find the names of the channels that are broadcast in the morning.,SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' "Among the matches held in Mumbai, how many percent of them were held in Wankhede Stadium?",SELECT CAST(SUM(CASE WHEN T2.Venue_Name = 'Wankhede Stadium' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Match_Id) FROM City AS T1 INNER JOIN Venue AS T2 ON T2.City_Id = T1.City_Id INNER JOIN Match AS T3 ON T3.Venue_Id = T2.Venue_Id WHERE T1.City_Name = 'Mumbai' What is the name of the department that course is in? | Do you mean the name of the department which the course named 'Intro. to Statistics' is in? | yes.,SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description = 'Intro. to Statistics' What is the date of the game at Olympic Stadium?,"SELECT date FROM table_24989925_2 WHERE game_site = ""Olympic Stadium""" "Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?","SELECT venue FROM table_name_79 WHERE opposing_team = ""manchester united"" AND round = ""5th round replay""" What platform is nds4droid on for the nintendo ds?,"SELECT platform FROM table_name_97 WHERE system = ""nintendo ds"" AND name = ""nds4droid""" What is the most silver when bronze is more than 1 and total is more than 48?,SELECT MAX(silver) FROM table_name_40 WHERE bronze > 1 AND total > 48 What is the name of the activity with the most students?,SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1 What Winning driver has a Winning constructor of sunbeam?,"SELECT winning_driver FROM table_name_43 WHERE winning_constructor = ""sunbeam""" What region does Angola belong to and what is its population?,"SELECT Population , Region FROM country WHERE Name = ""Angola""" "For each college, return the college name and the count of authors with submissions from that college.","SELECT College , COUNT(*) FROM submission GROUP BY College" "What is the frequency for the city of Lamar, Colorado?","SELECT AVG(frequency_mhz) FROM table_name_37 WHERE city_of_license = ""lamar, colorado""" What is the street address of the Bank of America Tower.,"select Street_address from building where name = ""Bank of America Tower""" Name the sum of round for pick of 169,SELECT SUM(round) FROM table_name_41 WHERE pick = 169 and which one DO have TV Lounge?,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' Interesting! What county is that in?,SELECT T1.County FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t2.year = 1996 AND T2.CampusFee = 2258 Provide the last name of the employee involved in the inspection ID 52256.,SELECT DISTINCT T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52256 "What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%?","SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = ""49.2%""" what's the date of completion where success is yes,"SELECT date_of_completion FROM table_12078626_1 WHERE success = ""Yes""" "What is the highest Goals Against, when Points is greater than 25, when Club is ""SD Indautxu"", and when Position is greater than 3?","SELECT MAX(goals_against) FROM table_name_21 WHERE points > 25 AND club = ""sd indautxu"" AND position > 3" What is the percentage of others when the number for Bush is 1329? ,SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 1329 Which year did The Adventures of Tintin come out?,"SELECT SUM(year) FROM table_name_17 WHERE film = ""the adventures of tintin""" Name the competition for khartoum,"SELECT competition FROM table_name_54 WHERE venue = ""khartoum""" Hello there! Can you show me a list of all of the departments and the budgets?,"SELECT dept_name,budget FROM department" What was the result when Jam Hsiao was nominated in 2012?,"SELECT result FROM table_name_36 WHERE nomination = ""jam hsiao"" AND year = 2012" What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?,"SELECT province FROM table_27592654_2 WHERE election_date = ""5 Cannot handle non-empty timestamp argument! 1861""" how many different positions are there?,SELECT count(DISTINCT POSITION) FROM player What loss has 26-9 as a loss?,"SELECT loss FROM table_name_96 WHERE record = ""26-9""" What is the lowest number of points for Drivers that have raced in more than 16 Races?,SELECT MIN(points) FROM table_name_35 WHERE races > 16 How many people were in attendance on may 2?,"SELECT MIN(attendance) FROM table_name_3 WHERE date = ""may 2""" When did the season premiere that saw 8.4 million viewers first air?,"SELECT season AS premiere FROM table_299121_2 WHERE viewers__in_millions_ = ""8.4""" Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476,"SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = ""1898/99-1919/20"" AND runs > 4476" How many institutions do not have an associated protein in our record?,SELECT count(*) FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM protein) What is the name of male and white actor with actor ID 439?,SELECT Name FROM actor WHERE ActorID = 439 AND Gender = 'Male' AND Ethnicity = 'White' "List all role codes, role names, and role descriptions.","SELECT role_code , role_name , role_description FROM ROLES" Can you show me the total number of airports?,SELECT COUNT ( apid ) FROM airports What is the Game held on february 9?,"SELECT game FROM table_name_17 WHERE date = ""february 9""" Which of the airport names contains the word 'international'?,SELECT name FROM airport WHERE name LIKE '%international%' "What is the IHSAA class for the team located in Middlebury, IN?","SELECT ihsaa_class FROM table_name_95 WHERE location = ""middlebury, in""" what is customer code of lukas?,SELECT customer_code fROM Customers where customer_name = 'Lukas' How old was the awardee when he/she won the first-ever award for Outstanding Voice-Over Performance in Primetime Emmy Awards?,"SELECT T2.year - CAST(SUBSTR(T1.birthdate, 1, 4) AS int) AS age FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award = 'Outstanding Voice-Over Performance' AND T2.organization = 'Primetime Emmy Awards' AND T2.result = 'Winner';" How many bikes could Evelyn Park and Ride hold and how many users who started on that station are subscribers?,"SELECT SUM(T2.dock_count), COUNT(T1.subscription_type) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.name = 'Evelyn Park and Ride' AND T1.start_station_name = T2.name AND T1.subscription_type = 'Subscriber'" "Among the episode that get more than 950 votes, how many of the episodes were nominated for the 'Outstanding Voice-Over Performance Award in 2009'? Find the percentage of the episodes.",SELECT CAST(SUM(CASE WHEN T1.award = 'Outstanding Voice-Over Performance' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.episode_id) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.votes > 950 AND T1.year = 2009; Calculate the ratio in percentage between the average number of female and male students who joined Fire Department organization.,"SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name), CAST(SUM(IIF(T2.name IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM enlist AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T1.organ = 'fire_department'" What was the home team's score at the game held at Junction Oval?,"SELECT home_team AS score FROM table_name_13 WHERE venue = ""junction oval""" "Who is the owner of email address ""JEREMY.HURTADO@sakilacustomer.org""? Give the full name.","SELECT first_name, last_name FROM customer WHERE email = 'JEREMY.HURTADO@sakilacustomer.org'" Show names of technicians and the number of machines they are assigned to repair.,"SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name" Date of birth of Fabrizio Buonocore?,"SELECT date_of_birth FROM people where name = ""Fabrizio Buonocore""" Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.,"SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT AVG(balance) FROM savings)" "WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191?",SELECT position FROM table_name_9 WHERE round > 6 AND overall = 191 What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16?,"SELECT COUNT(total_viewers) FROM table_name_84 WHERE share = ""18.8%"" AND bbc_one_weekly_ranking < 16" How many victory matches were there in 2008?,SELECT COUNT(Match_Id) FROM Match WHERE Match_Date LIKE '2008%' AND Match_Winner IS NOT NULL What is the type with a quantity of fewer than 6 and number(s) 5201?,"SELECT type FROM table_name_88 WHERE quantity < 6 AND number_s_ = ""5201""" Who directed the film originally named Bye Bye Brazil in Portuguese?,"SELECT director FROM table_name_4 WHERE language = ""portuguese"" AND original_name = ""bye bye brazil""" In what year was the movie 8 women up for a César Award?,"SELECT MIN(year) FROM table_name_70 WHERE movie = ""8 women"" AND awards = ""césar award""" What was the final score for the match where Hereford United was the home team?,"SELECT score FROM table_name_57 WHERE home_team = ""hereford united""" Thanks! What city is the headquarters of Sony located in?,SELECT Headquarter FROM manufacturers WHERE name = 'Sony' What is the region for Catalog amlh 66078 in stereo lp format?,"SELECT region FROM table_name_49 WHERE format = ""stereo lp"" AND catalog = ""amlh 66078""" What is the round number when the record is 15–7–1?,"SELECT COUNT(round) FROM table_name_68 WHERE record = ""15–7–1""" What team is from terni?,"SELECT team FROM table_name_59 WHERE home_city = ""terni""" "Could you filter this list to show only the rows which are associated with body builders whose birthday value contains the work ""January""?","SELECT T2.name, T2.birth_date FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE ""%January%""" "Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29?","SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = ""chuck weyant""" Which state was Dai from?,"SELECT state FROM table_name_9 WHERE name = ""dai""" "What area all values for Slovak when value for Ukranian is пес, собака?","SELECT slovak FROM table_25008327_8 WHERE ukrainian = ""пес, собака""" List the top five most costly products in 1998.,SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.OrderDate LIKE '1998%' ORDER BY T3.UnitPrice + T1.Freight DESC LIMIT 5 What country is ranked larger than 4?,SELECT country FROM table_name_72 WHERE rank > 4 Name the oberliga hessen for sv sandhausen and fsv salmrohr,"SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = ""SV Sandhausen"" AND oberliga_südwest = ""FSV Salmrohr""" Which tournament has raffaella reggi listed as the opponent in the final?,"SELECT tournament FROM table_name_55 WHERE opponent_in_the_final = ""raffaella reggi""" What was the result of the election when Clarence F. Lea was the incumbent?,"SELECT result FROM table_1346118_5 WHERE incumbent = ""Clarence F. Lea""" What is the game number when the score was l 90–104 (ot)?,"SELECT COUNT(game) FROM table_name_59 WHERE score = ""l 90–104 (ot)""" What are the names of hosts who did not host any party in our record?,SELECT Name FROM HOST WHERE Host_ID NOT IN (SELECT Host_ID FROM party_host) how many accounts have a savings balance above the average savings balance?,SELECT count ( * ) FROM savings WHERE balance > ( SELECT avg ( balance ) FROM savings ) What market is Wessington Springs in,"SELECT target_city__market FROM table_134729_3 WHERE city_of_license = ""Wessington Springs""" "Describe the average income per month and yearly income of the geographic ID in which customer of ID ""209556"" and ""290135"".","SELECT T2.INCOME_K, T2.INHABITANTS_K * T2.INCOME_K * 12 FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.ID = 209556 OR T1.ID = 290135" Return the address of store 1.,SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1 What are the names of the top 3 rated songs?,SELECT song_name FROM song order by rating desc limit 3 How many of the worst actors are men and how many of the worst actors are women? Indicate your answer in ratio form.,"SELECT CAST(SUM(IIF(a_gender = 'M', 1, 0)) AS REAL) / SUM(IIF(a_gender = 'F', 1, 0)) FROM actors WHERE a_quality = 0" When was satsuki dd-27 completed?,"SELECT completed FROM table_name_25 WHERE name = ""satsuki dd-27""" Which opponent had a 113-124 score?,"SELECT opponent FROM table_name_52 WHERE score = ""113-124""" What are the names of the games published by American Softworks?,SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'American Softworks' What was the result on 26 October 1993?,"SELECT result FROM table_name_36 WHERE date = ""26 october 1993""" "In what year did the team compete in the 2nd, Northeast season of the USL PDL League?","SELECT year FROM table_1939214_1 WHERE league = ""USL PDL"" AND regular_season = ""2nd, Northeast""" Which college does the player jon hameister-ries play for?,"SELECT college FROM table_name_93 WHERE player = ""jon hameister-ries""" How can i reach at Tampa city Hall can you send me the address ?,SELECT Street_address FROM building WHERE Name = 'Tampa City Hall' what is the market income per capita where the county is hancock?,"SELECT market_income_per_capita FROM table_22815568_13 WHERE county = ""Hancock""" Who is the sales agent of the distinct customer who paid the highest amount in the year 2004?,"SELECT DISTINCT T3.lastName, T3.firstName FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber INNER JOIN employees AS T3 ON T2.salesRepEmployeeNumber = T3.employeeNumber WHERE STRFTIME('%Y', T1.paymentDate) = '2004' ORDER BY T1.amount DESC LIMIT 1" What lowest games have 20 goals and a Goal Ratio smaller than 0.14?,SELECT MIN(games) FROM table_name_51 WHERE goals = 20 AND goal_ratio < 0.14 How many of those Recommendations required the students to leave the university?,"SELECT count ( * ) from ( SELECT * FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id where recommendations = ""Transfer schools"" GROUP BY T1.student_id ) " Mention the customer names and IDs which ordered total net profit of above 5000 USD through online channel.,"SELECT DISTINCT `Customer Names`, CustomerID FROM ( SELECT T2.`Customer Names`, T2.CustomerID , SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) AS T FROM `Sales Orders` T1 INNER JOIN Customers T2 ON T2.CustomerID = T1._CustomerID WHERE T1.`Sales Channel` = 'Online' GROUP BY T2.CustomerID ) WHERE T > 5000" What was the diameter of the feature found in 1997?,SELECT diameter__km_ FROM table_16799784_3 WHERE year_named = 1997 Name the least attendance with carolina visitor,"SELECT MIN(attendance) FROM table_name_97 WHERE visitor = ""carolina""" "How many authors drafted the paper ""Subcellular localization of nuclease in barley aleurone""?",SELECT COUNT(DISTINCT T2.Name) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Subcellular localization of nuclease in barley aleurone' Name the opponent with decision,"SELECT opponent FROM table_name_59 WHERE method = ""decision""" "What are flight numbers of Airline ""United Airlines""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = ""United Airlines""" Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.,"SELECT * FROM employees WHERE salary BETWEEN 8000 AND 12000 AND commission_pct != ""null"" OR department_id != 40" "What is the census rating of the city that hosted the competition with the theme ""Carnival M is back!""?","SELECT T1.Census_Ranking FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID where T2.Theme = ""Carnival M is back!""" Hello! Can you list the film ID of the film with the most copies in the inventory?,SELECT T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY count ( * ) DESC LIMIT 1 List the number of locations for the team known as the billikens.,"SELECT COUNT(location) FROM table_2419754_1 WHERE nickname = ""Billikens""" "Which rec has Yards of 192, and a Touchdown smaller than 1?",SELECT AVG(rec) FROM table_name_52 WHERE yards = 192 AND s_touchdown < 1 How many customers have gmail emails?,"SELECT COUNT ( * ) FROM CUSTOMER WHERE Email LIKE ""%gmail.com%""" List the case number of the crimes in wards with population below 52000 that have beat greater than the 90% of the average beat of all crimes.,SELECT COUNT(T1.report_no) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.Population < 52000 AND T1.beat > ( SELECT AVG(T1.beat) * 0.9 FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.Population < 52000 ) What is the max memory of the t5120 model?,"SELECT max_memory FROM table_10818465_1 WHERE model = ""T5120""" Can you show me Market estimation for the year 1995?,"SELECT low_estimate, high_estimate FROM film_market_estimation where Year = 1995" "What is the highest top-10 that has a u.s. open for the tournament, and a top-25 greater than 12?","SELECT MAX(top_10) FROM table_name_49 WHERE tournament = ""u.s. open"" AND top_25 > 12" Which brewery does the most purchased root beer in 2016 belong to?,SELECT T2.BreweryName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T1.PurchaseDate BETWEEN '2016-01-01' AND '2016-12-31' GROUP BY T2.BrandID ORDER BY COUNT(T1.BrandID) DESC LIMIT 1 WHAT IS THE SECOND LEG WITH HARO AS TEAM TWO?,"SELECT 2 AS nd_leg FROM table_name_27 WHERE team_2 = ""haro""" What is the highest ranked player who opposed Westmeath?,"SELECT MAX(rank) FROM table_name_3 WHERE opposition = ""westmeath""" "What is the average time needed for the solutions containing files within the repository whose url is ""https://github.com/jeffdik/tachy.git"" to be processd?",SELECT CAST(SUM(T2.ProcessedTime) AS REAL) / COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/jeffdik/tachy.git' What is the difference between the units sold for item 1 when the sunset was the earliest and the latest?,SELECT ( SELECT SUM(T2.units) AS sumunit FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 5 AND sunset IS NOT NULL GROUP BY T1.sunset ORDER BY T1.sunset LIMIT 1 ) - ( SELECT SUM(T2.units) AS sumunit FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 5 AND sunset IS NOT NULL GROUP BY T1.sunset ORDER BY T1.sunset DESC LIMIT 1 ) Who was the host of the earliest party listed? | The host of the earliest party listed is the host with id 7. | What was their name?,SELECT T2.name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID order by T3.First_year limit 1 What is the Score of the game with a Record of 12–12?,"SELECT score FROM table_name_93 WHERE record = ""12–12""" How many field goals did George Mikan make overall between 1951 and 1953?,SELECT COUNT(fg_made) FROM player_allstar WHERE first_name = 'George' AND last_name = 'Mikan' AND season_id BETWEEN 1951 AND 1953 What are the maximum duration and resolution of songs grouped and ordered by country?,"SELECT max ( T1.duration ) , max ( T2.resolution ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.country ORDER BY T2.country" What is the input clock (mhz) for s-spec number sk096?,"SELECT input_clock__mhz_ FROM table_15261_1 WHERE s_spec_number = ""SK096""" "For each policy type, return its type code and its count in the record.","SELECT policy_type_code , count(*) FROM policies GROUP BY policy_type_code" what is the race where the fastest lap is by jean-pierre jarier?,"SELECT race FROM table_1140085_2 WHERE fastest_lap = ""Jean-Pierre Jarier""" What is the 2005-05 production for milk?,"SELECT 2004 AS _05 FROM table_name_83 WHERE commodity = ""milk""" How many businesses in the AZ state got low quality of reviews?,SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND review_count LIKE 'Low' What was the nationality for the player in Round 1?,SELECT nationality FROM table_name_11 WHERE round = 1 What are the line 1 of addresses shared by some students and some teachers?,SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id What is every value for Serbs if value for Hungarians is 9.26%?,"SELECT serbs FROM table_2374338_2 WHERE hungarians = ""9.26%""" Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?,"SELECT location___state FROM table_name_82 WHERE team = ""castrol perkins motorsport"" AND winner = ""russell ingall""" what's the county name for the republican river bridge listed on 1992-06-29?,"SELECT county FROM table_name_36 WHERE listed = ""1992-06-29"" AND name = ""republican river bridge""" Nice! Can you filter this list to show the Product Type Codes for the entries which have either a product price higher than 4500 or a product price lower than 3000?,SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000 What is the date of the tournament at Hokkaidō with prize of ¥150000000?,"SELECT dates FROM table_26144632_1 WHERE location = ""Hokkaidō"" AND prize_fund___¥__ = 150000000" And their phone numbers?,SELECT T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details Please calculate the number of orders from customers by country in 1996.,"SELECT COUNT(T2.CustomerID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y', T2.OrderDate) = '1996' GROUP BY T1.Country" "How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?",SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11 "In 2012, which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal?","SELECT open_cup FROM table_name_61 WHERE playoffs = ""conference semifinal"" AND year = 2012" How many vap values are associated with 140469 valid votes?,SELECT COUNT(vap) FROM table_2683116_1 WHERE valid_votes = 140469 What is the sum of speed in km per hour reached by John Egginton?,"SELECT SUM(speed__km_h_) FROM table_name_43 WHERE pilot = ""john egginton""" how many products in total are not in any event?,SELECT count ( * ) FROM Products WHERE Product_ID NOT IN ( SELECT Product_ID FROM Products_in_Events ) "Which Medal had a Games of 2008 beijing, and a Sport of taekwondo?","SELECT medal FROM table_name_48 WHERE games = ""2008 beijing"" AND sport = ""taekwondo""" Find the maximum and minimum settlement amount.,"SELECT max(settlement_amount) , min(settlement_amount) FROM settlements" yes | Did you mean the No in the wine table which is best liked? | yes that is what i meant,SELECT No FROM WINE order BY Score desc limit 1 How many home victories does the Bundesliga division have in more or less than the Premier League division in the 2021 season?,SELECT COUNT(CASE WHEN T2.name = 'Bundesliga' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.name = 'Premier League' THEN 1 ELSE NULL END) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H' "Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?","SELECT rider FROM table_name_42 WHERE grid > 6 AND laps = 28 AND time = ""+39.476""" How many employees in the UK takes charge of the sales in over 4 territories?,SELECT COUNT(COUNTEID) FROM ( SELECT T1.EmployeeID AS COUNTEID FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.Country = 'UK' GROUP BY T1.EmployeeID HAVING COUNT(T2.TerritoryID) > 4 ) T1 Give the number of watchers that the repository of the solution No. 338082 have.,SELECT T1.Watchers FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 338082 What yacht had LOA Metres of 13.34?,"SELECT yacht FROM table_25594271_2 WHERE loa__metres_ = ""13.34""" "Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.",SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred Which Location has a Home Ground of Mong kok stadium?,"SELECT location FROM table_name_14 WHERE home_ground = ""mong kok stadium""" What is the total number of N for the element with nuclide of 141 pr?,"SELECT COUNT(n___n__) FROM table_15366768_1 WHERE nuclide = ""141 Pr""" What is the largest value for Fall 08 when Fall 09 is 792 and Fall 05 is less than 791?,SELECT MAX(fall_08) FROM table_name_95 WHERE fall_09 = 792 AND fall_05 < 791 What was the date of the game that had a score of 3 – 1?,"SELECT date FROM table_name_60 WHERE score = ""3 – 1""" List the first and last name for players who participated in all star game in 1998.,"SELECT name_first , name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998" What is the Year Commissioned of the power stationo with a Gross head of less than 18?,SELECT AVG(year_commissioned) FROM table_name_58 WHERE gross_head__metres_ < 18 "What is Time, when Laps is 22, and when Grid is 15?",SELECT time FROM table_name_42 WHERE laps = 22 AND grid = 15 What is the fleet number for the model with Serial number 68056?,"SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = ""68056""" What is the title of the course with Differential Geometry as a prerequisite?,SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') What are the maximum and minimum number of cities in all markets.,"SELECT max(Number_cities) , min(Number_cities) FROM market" "What is the tax source system code related to the benefits and overpayments? List the code and the benefit id, order by benefit id.","SELECT T1.source_system_code , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id" "How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4?","SELECT COUNT(season) FROM table_name_53 WHERE loses > 1 AND competition = ""fiba europe cup"" AND wins < 4" Find the checking balance and saving balance in the Brown’s account.,"SELECT T2.balance , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'" What is the title of the series # 8?,SELECT title FROM table_27720737_1 WHERE series__number = 8 Show the account id and name with at least 4 transactions.,"SELECT T1.account_id, T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING COUNT(*) >= 4" "Count the average Gold which has a Nation of sweden, and a Silver larger than 1?","SELECT AVG(gold) FROM table_name_47 WHERE nation = ""sweden"" AND silver > 1" What are the rooms for members of the faculty who are professors and who live in building NEB?,"SELECT Room FROM FACULTY WHERE Rank = ""Professor"" AND Building = ""NEB""" What is the record of the game with a 110-106 score?,"SELECT record FROM table_name_1 WHERE score = ""110-106""" "What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?","SELECT cName FROM College WHERE enr < 13000 AND state = ""AZ"" UNION SELECT cName FROM College WHERE enr > 15000 AND state = ""LA""" What is the name of the dish that appeared on the upper left corner on menu page no. 1389?,SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.menu_page_id = 1389 AND T2.xpos < 0.25 AND T2.ypos < 0.25 What is the GNP growth rate by the country of Shanghai?,SELECT CAST((T1.GNP - T1.GNPOld) AS REAL) / T1.GNPOld FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Shanghai' show the different type of artworks?,SELECT distinct TYPE FROM artwork Tell me the attendance with a result of l 26–3,"SELECT attendance FROM table_name_12 WHERE result = ""l 26–3""" Which residences have more than 1 player?,SELECT Residence FROM player group by Residence HAVING COUNT ( * ) > = 1 How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?,SELECT SUM(matches) FROM table_name_67 WHERE overs < 59.1 AND economy_rate > 6.78 What is the highest number of enrollments any student has?,SELECT count ( * ) FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id order by count ( * ) desc limit 1 What is the average when the rank by average is more than 12?,SELECT SUM(average) FROM table_name_88 WHERE rank_by_average > 12 Which job titles correspond to jobs with salaries over 9000?,SELECT job_title FROM jobs WHERE min_salary > 9000 "Among the parts supplied by Supplier#000000018, provide parts names which had supply costs above 900.",SELECT T2.p_name FROM partsupp AS T1 INNER JOIN part AS T2 ON T1.ps_partkey = T2.p_partkey INNER JOIN supplier AS T3 ON T1.ps_suppkey = T3.s_suppkey WHERE T1.ps_supplycost > 900 AND T3.s_name = 'Supplier#000000018' What is the name of the ship that is commanded by the youngest captain?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 What are the names of the other people with that weight?,SELECT Name FROM people where Weight = 90.0 and Name! = 'Ty Conklin' I want the lowest Grid for David Coulthard,"SELECT MIN(grid) FROM table_name_85 WHERE driver = ""david coulthard""" Name the year with finish of 12th and record of 23-36,"SELECT year FROM table_name_14 WHERE finish = ""12th"" AND record = ""23-36""" What is every time(cet) for a time of 5:04.8?,"SELECT time__cet_ FROM table_21536557_2 WHERE time = ""5:04.8""" Who played against TSV bayer 04 leverkusen when they were team #1?,"SELECT 2 AS nd_leg FROM table_name_9 WHERE team__number1 = ""tsv bayer 04 leverkusen""" What are the names and flags of ships that do not have a captain with the rank of Midshipman?,"SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')" How many songs have 4 minute duration?,"SELECT count(*) FROM files WHERE duration LIKE ""4:%""" What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?,"SELECT lifespan FROM table_name_28 WHERE state = ""pennsylvania"" AND representative = ""harry p. o'neill""" Who is the visitor with a 14-10 record?,"SELECT visitor FROM table_name_71 WHERE record = ""14-10""" What is the status of Norris?,"SELECT status FROM table_name_31 WHERE name = ""norris""" How many followers does Mary have ?,SELECT followers FROM user_profiles where name = 'Mary' What is the average of seasons for 10th place finishes?,"SELECT AVG(season) FROM table_name_95 WHERE position = ""10th""" Count the number of cities in the state of Colorado.,"SELECT count(*) FROM addresses WHERE state_province_county = ""Colorado""" How old was Alexis Ajinca when he was first drafted?,"SELECT draftYear - strftime('%Y', birthDate) FROM draft AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.firstName = 'Alexis' AND T1.lastName = 'Ajinca' AND draftRound = 1" What is the invoice number and invoice date for the invoice with most number of transactions?,"SELECT T2.invoice_number , T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1" What is the percentage of the payment amount in 2004 was made by Atelier graphique?,"SELECT SUM(CASE WHEN t1.customerName = 'Atelier graphique' THEN t2.amount ELSE 0 END) * 100 / SUM(t2.amount) FROM customers AS t1 INNER JOIN payments AS t2 ON t1.customerNumber = t2.customerNumber WHERE STRFTIME('%Y', t2.paymentDate) = '2004'" "Find the names and descriptions of courses that belong to the subject named ""Computer Science"".","SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Computer Science""" What smallest amount in the weeks at peak column?,SELECT MIN(weeks_at_peak) FROM table_26399982_2 Show me which team of machine each technician is assigned.,"SELECT T3.Name , T2.Team FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID" What is the capital (endonym) where Douglas is the Capital (exonym)?,"SELECT capital___endonym__ FROM table_1008653_9 WHERE capital___exonym__ = ""Douglas""" Which Draw is the lowest one that has Champs smaller than 0?,SELECT MIN(draw) FROM table_name_40 WHERE champs < 0 What 2nd leg has rk gold club kozina as team 1?,"SELECT 2 AS nd_leg FROM table_name_23 WHERE team_1 = ""rk gold club kozina""" How many colleges provided players with positions LB?,"SELECT COUNT(college) FROM table_25085059_3 WHERE position = ""LB""" "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?","SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5" Name the highest chapter with chinese of 釋言,"SELECT MAX(chapter) FROM table_name_24 WHERE chinese = ""釋言""" How many origin are there?,SELECT count ( distinct origin ) FROM Flight What is the country ID of the University of Tokyo?,SELECT country_id FROM university WHERE university_name = 'University of Tokyo' What are the names of rooms whose reservation frequency exceeds 60 times?,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING count(*) > 60 when the total is 8 and copa del rey is 0 what is the minimum league,SELECT MIN(league) FROM table_17505751_5 WHERE total = 8 AND copa_del_rey = 0 What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?,"SELECT SUM(lane) FROM table_name_24 WHERE nationality = ""sweden"" AND split__50m_ < 26.25" What is the reunion weight of the contestant that lost 52 lbs at the reunion?,SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reunion = 52 How many times does the consumer have no dispute over a non-timely response from the company?,SELECT COUNT(`Timely response?`) FROM events WHERE `Timely response?` = 'No' AND `Consumer disputed?` = 'No' Who is the oldest married male? State his job title.,"SELECT T2.FirstName, T2.LastName, T1.JobTitle FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'M' AND T1.MaritalStatus = 'M' ORDER BY T1.BirthDate LIMIT 1" Name the averag scored for 2011 long teng cup and 2 october 2011,"SELECT AVG(scored) FROM table_name_64 WHERE competition = ""2011 long teng cup"" AND date = ""2 october 2011""" What is the engine for the Machinists Union Racing team?,"SELECT engine FROM table_name_79 WHERE team = ""machinists union racing""" What is the score of the Devil Rays on April 24?,"SELECT score FROM table_name_28 WHERE opponent = ""devil rays"" AND date = ""april 24""" Find the number of owners who do not own any dogs at this moment.,SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs ) "What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded?",SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101 "What time was the match that had an attendance of 22,329?","SELECT time FROM table_name_99 WHERE attendance = ""22,329""" What number is Tony Dixon?,"SELECT number FROM table_name_22 WHERE name = ""tony dixon""" What are the name of pilots aged 25 or older?,SELECT Name FROM pilot WHERE Age >= 25 What was the Attendance when the Time was 2:13?,"SELECT MIN(attendance) FROM table_name_34 WHERE time = ""2:13""" Calculate the total sales ids that were sales of Flat Washer 8.,SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Flat Washer 8' What is the average population growth rate of countries where more than 3 languages are used?,SELECT SUM(T3.Population_Growth) / COUNT(T3.Country) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN population AS T3 ON T3.Country = T2.Country WHERE T2.Country IN ( SELECT Country FROM language GROUP BY Country HAVING COUNT(Country) > 3 ) GROUP BY T3.Country "On average, how many community areas are there in a side?",SELECT CAST(COUNT(T1.ward_no) AS REAL) / COUNT(DISTINCT T3.side) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no Please list any two films that Penelope Guiness acted in.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Penelope' AND T1.last_name = 'Guiness' LIMIT 2 What is the business ID of the person who has made the most sales total year to date?,SELECT BusinessEntityID FROM SalesPerson ORDER BY SalesYTD DESC LIMIT 1 What are the names of the technicians and how many machines are they assigned to repair?,"SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name" When was the game played when the opponent was 'at Los Angeles Rams'?,"SELECT date FROM table_17972193_1 WHERE opponent = ""at Los Angeles Rams""" "Show minimum, maximum, and average market value for all companies.","SELECT min(market_value) , max(market_value) , avg(market_value) FROM company" "Which Outcome has a Score of 6–4, 6–4, 6–2?","SELECT outcome FROM table_name_19 WHERE score = ""6–4, 6–4, 6–2""" What date did the Green-Communists receive 5.7%?,"SELECT date_released FROM table_1881642_1 WHERE green_communist = ""5.7%""" "What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?","SELECT city FROM table_name_23 WHERE tickets_available_since = ""march 28, 2008"" AND date = ""september 4, 2009""" "How many orders does the book ""O Xará"" have?",SELECT COUNT(*) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'O Xará' What is the name of the supplier company for Aniseed Syrup?,SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Aniseed Syrup' "What is 1987-88, when Points is ""136""?",SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136 What are the companies and investors that correspond to each entrepreneur?,"SELECT Company , Investor FROM entrepreneur" Tell me the average year for rank more than 3 and 28 floors,SELECT AVG(year) FROM table_name_84 WHERE rank > 3 AND floors = 28 Which Circuit did Johnny Wakefield win?,"SELECT circuit FROM table_name_3 WHERE winning_driver = ""johnny wakefield""" What type of employee is David Bradley?,SELECT PersonType FROM Person WHERE FirstName = 'David' AND LastName = 'Bradley' Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.,SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f) > 60 Find the number of distinct products Rodrick Heaney has bought so far.,"SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" What is the home record for the Auxerre club?,"SELECT home FROM table_name_34 WHERE club = ""auxerre""" How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?,SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000; What year was the Album/Song Speaking louder than before?,"SELECT SUM(year) FROM table_name_39 WHERE album___song = ""speaking louder than before""" Name the result for friendly competition on 9 october 2010,"SELECT result FROM table_name_79 WHERE competition = ""friendly"" AND date = ""9 october 2010""" What is the relationship between object sample no. 25 and object sample no. 2 on image no. 1?,SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 1 AND T1.OBJ1_SAMPLE_ID = 25 AND T1.OBJ2_SAMPLE_ID = 2 How many people are there of each nationality?,"SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality" What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?,SELECT max(OMIM) FROM enzyme "Which state does the owner of ""wyatt.collins@gmail.com"" live in? Give the full name of the state.",SELECT T1.state FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.email = 'wyatt.collins@gmail.com' What is the Venue of the Competition with a Score of 2–0?,"SELECT venue FROM table_name_89 WHERE score = ""2–0""" What was the title for the state of qin?,"SELECT title FROM table_name_29 WHERE state = ""qin""" "What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?","SELECT 2009 FROM table_name_4 WHERE 2000 = ""–"" AND total = 3 AND 2004 = ""9th""" Which direction does the majority of the trains that have 3 cars are running?,"SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS carsNum FROM cars GROUP BY train_id HAVING carsNum = 3 ) AS T2 ON T1.id = T2.train_id GROUP BY T1.direction" What special notes are included for the windfarm with a capacity (MW) of 343?,SELECT notes FROM table_name_86 WHERE capacity__mw_ = 343 "What are the journal homepages and author ID of the papers published in 2000 to 2005 with a word ""social"" in its title?","SELECT T3.HomePage, T2.AuthorId FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.Year BETWEEN 2000 AND 2005 AND T1.Title LIKE '%SOCIAL%'" What is the total amount of donations in 2012.,SELECT SUM(donation_total) FROM donations WHERE donation_timestamp LIKE '2012%' How many teachers didn't teach at all?,SELECT count ( name ) FROM instructor WHERE id NOT IN ( SELECT id FROM teaches ) what are the names of the customers whose customer details are null?,SELECT distinct t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_details = 'NULL' Can you show me how many restaurant is the sandwich type restaurant?,SELECT count ( * ) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' "Which Date has a Rockets score of 94, and a Game of 66?",SELECT date FROM table_name_21 WHERE rockets_score = 94 AND game = 66 Indicate order numbers with an order date after 1/1/2018.,SELECT DISTINCT T FROM ( SELECT CASE WHEN OrderDate > '1/1/18' THEN OrderNumber ELSE NULL END AS T FROM `Sales Orders` ) WHERE T IS NOT NULL Find the student ID and personal name of the student with at least two enrollments.,"SELECT T1.student_id , T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2" "What the full names, ids of each employee and the name of the country they are in?","SELECT first_name , last_name , employee_id , country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" Name the gt winning car for #88 team mitsubishi 88 mitsubishi starion,"SELECT gt_winning_car FROM table_27965906_2 WHERE a_winning_car = ""#88 Team Mitsubishi 88 Mitsubishi Starion""" "Show the names of phones with carrier either ""Sprint"" or ""TMobile"".","SELECT Name FROM phone WHERE Carrier = ""Sprint"" OR Carrier = ""TMobile""" How many students live in each dorm?,"SELECT count ( * ) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" Name the score when february is more than 24 and has a record of 9-8-2,"SELECT score FROM table_name_60 WHERE february > 24 AND record = ""9-8-2""" What is the code of each location and the number of documents in that location?,"SELECT location_code , count(*) FROM Document_locations GROUP BY location_code" How many wins do the Red Deer Rebels have? ,"SELECT MAX(wins) FROM table_17751942_4 WHERE team = ""Red Deer Rebels""" List down the names of platform where the games released in 2016 can be played on.,SELECT DISTINCT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T2.release_year = 2016 Which Call sign has a Frequency of 102.5 fm?,"SELECT call_sign FROM table_name_26 WHERE frequency = ""102.5 fm""" What was Todd Hamilton's to par?,"SELECT to_par FROM table_name_9 WHERE player = ""todd hamilton""" What is the result of the game where the opponent is Innsbrucker Kilmarnock CSK VVS Samara?,"SELECT result FROM table_27654988_1 WHERE opponent = ""Innsbrucker Kilmarnock CSK VVS Samara""" What is the school code for the accounting department?,SELECT School_Code FROM Department WHERE Dept_Name = 'Accounting' Which Player has an Opposition of clare?,"SELECT player FROM table_name_11 WHERE opposition = ""clare""" Find the id and address of the shops whose score is below the average score.,"SELECT shop_id, address FROM shop WHERE score < (SELECT AVG(score) FROM shop)" What was the district who had their first elected in 1966?,SELECT district FROM table_1341843_44 WHERE first_elected = 1966 Which launch date involved the Driade?,"SELECT launched FROM table_13537940_1 WHERE name = ""Driade""" Which win has 38.67% wins?,"SELECT wins FROM table_name_71 WHERE win__percentage = ""38.67%""" What are all the different book publishers?,SELECT DISTINCT publisher FROM book_club find the name of people whose height is lower than the average.,SELECT name FROM people WHERE height < (SELECT avg(height) FROM people) Please list all the common questions in 2014's survey and 2016's survey.,"SELECT T1.questiontext FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID IN (2014, 2016) GROUP BY T1.questiontext" What is the price of 150 mbps downstread?,"SELECT price FROM table_name_20 WHERE downstream = ""150 mbps""" Which product is the most expensive?,select name from products order by price desc limit 1 What are the service type code of service id 10?,"SELECT service_type_code FROM services where service_id = '10'" Who is the youngest person who participated in the Olympics?,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age LIMIT 1 Provide the average number of papers that are published in the journal named 'Information Sciences' annually.,SELECT CAST(COUNT(T2.JournalId) AS REAL) / COUNT(DISTINCT T2.Year) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Information Sciences' This is great! Can you please update the list to show each of the films directed by each director and keep the director names in the list?,"SELECT T1.director , T1.title FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title" "What is the Result when the Attendance is 1,634?","SELECT result FROM table_name_85 WHERE attendance = ""1,634""" List all budget type codes and descriptions.,"SELECT budget_type_code , budget_type_description FROM Ref_budget_codes" How many accounts do we have?,SELECT count(*) FROM Accounts List the movie titles and character names by Bill Thompson.,"SELECT movie, character FROM `voice-actors` WHERE 'voice-actor' = 'Bill Thompson'" How many sales representatives whose salaries are higher than 2000?,SELECT COUNT(Title) FROM Employees WHERE Salary > 2000 AND Title = 'Sales Representative' What are the names of circuits that belong to UK or Malaysia?,"SELECT name FROM circuits WHERE country = ""UK"" OR country = ""Malaysia""" "Which Years in Senate has a Years in Assembly of 2010–present, and toni atkins?","SELECT years_in_senate FROM table_name_23 WHERE years_in_assembly = ""2010–present"" AND name = ""toni atkins""" How about only the phones with more than 2000 units in stock?,SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name HAVING sum ( T1.Num_of_stock ) > 2000 What are the full names and department ids for the lowest paid employees across all departments.,"SELECT first_name , last_name , department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)" Which country has a Lead of sarah wazney?,"SELECT country FROM table_name_50 WHERE lead = ""sarah wazney""" How many cores does the processor released in April 2012 with a price of $393 and part number av8063801117503 have?,"SELECT cores FROM table_name_3 WHERE release_date = ""april 2012"" AND release_price___usd__ = ""$393"" AND part_number_s_ = ""av8063801117503""" What is the lowest first prize of the Mercedes Championships tournament in California?,"SELECT MIN(1 AS st_prize___) AS $__ FROM table_name_18 WHERE location = ""california"" AND tournament = ""mercedes championships""" "What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals?",SELECT MAX(bronze) FROM table_name_99 WHERE total = 4 AND silver = 1 AND gold < 2 What are the ids of documents with the letter 'a' in the name with any expense budgets?,SELECT T1.Document_ID FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%a%' What is the name of the movie that is rated by most of times?,"SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1" Find the rank of the faculty that the fewest faculties belong to.,SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1 "What is the total when the A score was less than 6.6, and the B score was 8.925?",SELECT total FROM table_name_15 WHERE a_score < 6.6 AND b_score = 8.925 What is the most used instrument?,SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1 What are all the names of the departments?,select Name from Department "What is the average Week for the game at three rivers stadium, with a Record of 3–2?","SELECT AVG(week) FROM table_name_44 WHERE location = ""three rivers stadium"" AND record = ""3–2""" When the nominee(s) is john wells what is the episode for a year before 2004?,"SELECT episode FROM table_name_64 WHERE year < 2004 AND nominee_s_ = ""john wells""" What couple had a safe result and a lyrical jazz style?,"SELECT couple FROM table_name_8 WHERE result = ""safe"" AND style = ""lyrical jazz""" What is the largest base pair with a Strain of unspecified?,"SELECT MAX(base_pairs) FROM table_name_2 WHERE strain = ""unspecified""" To which party does Frank T. Bow belong?,"SELECT party FROM table_1341865_37 WHERE incumbent = ""Frank T. Bow""" What is the proportion of English-speaking citizens in the countries that rely on the United States compared to the total number of citizens in those countries?,SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE T3.Dependent = 'USA' AND T2.Name = 'English' What was date of the bye week 11?,"SELECT date FROM table_name_38 WHERE attendance = ""bye"" AND week = 11" How many runners up for the team that won in 1993?,"SELECT MIN(runners_up) FROM table_name_66 WHERE years_won = ""1993""" What is the duration of the oldest actor?,SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1 "For all games with calgary as home, what is the average number of attendees?","SELECT AVG(attendance) FROM table_name_1 WHERE home = ""calgary""" Name the steals for season 2007/2008,"SELECT steals FROM table_17309500_1 WHERE season = ""2007/2008""" "Can you add into the table their product names, please?","SELECT t1.product_name, t1.product_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""green""" "What is the total frequency have a Status of owned by cumulus media, and a Format of news?","SELECT SUM(frequency) FROM table_name_66 WHERE status = ""owned by cumulus media"" AND format = ""news""" What about the number of stars it received?,SELECT DISTINCT T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name What season had 2.52 million viewers?,"SELECT tv_season FROM table_2170969_2 WHERE viewers_in_millions = ""2.52""" What is the lowest facility ID that's in Beckley?,"SELECT MIN(facility_id) FROM table_name_24 WHERE city_of_license = ""beckley""" Name the into service for dh1,"SELECT into_service FROM table_29002641_1 WHERE number = ""DH1""" How many were in attendance with a loss of Prokopec (2-7)?,"SELECT attendance FROM table_name_21 WHERE loss = ""prokopec (2-7)""" List down the area code and country of the city named Savoy.,"SELECT T1.area_code, T2.county FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN zip_data AS T3 ON T1.zip_code = T3.zip_code WHERE T3.city = 'Savoy'" Find the average and total capacity of dorms for the students with gender X.,"SELECT AVG(student_capacity), SUM(student_capacity) FROM dorm WHERE gender = 'X'" "What is the 2010 when the 2009 is 1r, and a 2008 is 1r?","SELECT 2010 FROM table_name_87 WHERE 2009 = ""1r"" AND 2008 = ""1r""" What is the average to par for a score of 78-67-73=218?,SELECT AVG(to_par) FROM table_name_2 WHERE score = 78 - 67 - 73 = 218 Show all the locations where some cinemas were opened in both year 2010 and year 2011.,SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011 what are the details of the cmi masters that have the cross reference code 'Tax'?,SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax' What is the Losing bonus with an extra try bonus?,"SELECT losing_bonus FROM table_name_89 WHERE try_bonus = ""try bonus""" "What is the average Year, when Outcome is ""Winner""?","SELECT AVG(year) FROM table_name_98 WHERE outcome = ""winner""" What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?,"SELECT tier FROM table_name_46 WHERE semi_finalists = ""sandrine testud mary pierce"" AND runner_up = ""lisa raymond""" Name the number of location attendance for l 141–143 (ot),"SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = ""L 141–143 (OT)""" Which product has the highest standard cost?,SELECT Name FROM Product ORDER BY StandardCost DESC LIMIT 1 What are the highest salary earn by the the employee and what is his/her position in the company?,"SELECT Salary, Title FROM Employees WHERE Salary = ( SELECT MAX(Salary) FROM Employees )" What is the type of institution in Kent State University?,"SELECT type FROM table_261946_3 WHERE location__all_in_ohio_ = ""Kent""" Show the statement id and the statement detail for the statement with most number of accounts?,"SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count ( * ) DESC LIMIT 1" Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89–82? Question 3,"SELECT home FROM table_name_79 WHERE leading_scorer = ""dajuan wagner (25)"" AND score = ""89–82""" "What country is player ed sneed, who has a to par of +3, from?","SELECT country FROM table_name_70 WHERE to_par = ""+3"" AND player = ""ed sneed""" What is the record when jameer nelson (19) had the high points?,"SELECT record FROM table_27700530_10 WHERE high_points = ""Jameer Nelson (19)""" Show the names of customers who have the most mailshots.,SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 What was the visiting team that had a record of 26-18?,"SELECT visitor FROM table_name_82 WHERE record = ""26-18""" What Label has a Catalog of 486 136-2?,"SELECT label FROM table_name_13 WHERE catalog = ""486 136-2""" what is the product stock number of Cream Soda,"SELECT product_stock_number FROM catalog_contents where catalog_entry_name = ""Cream Soda""" Count the number of distinct product types.,SELECT count(DISTINCT product_type_code) FROM products What was Footscray's score as the away team?,"SELECT away_team AS score FROM table_name_94 WHERE away_team = ""footscray""" Find the difference between the number of female senators and representatives born between 1930 to 1970.,"SELECT SUM(CASE WHEN T2.type = 'sen' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.type = 'rep' THEN 1 ELSE 0 END) FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' AND strftime('%Y', T1.birthday_bio) BETWEEN '1930' AND '1970'" "What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?","SELECT MIN(long) FROM table_name_16 WHERE gp_gs = ""11-8"" AND gain < 228" Calculate the total number of orders placed by the company 'GROSELLA-Restaurante'.,SELECT COUNT(T2.OrderID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.CompanyName = 'GROSELLA-Restaurante' How many different countries did the champion Se Ri Pak (2) represent?,"SELECT COUNT(country) FROM table_229059_2 WHERE champion = ""Se Ri Pak (2)""" Hi there! Can you provide me with a list of all of the player names?,SELECT pName FROM player "What is the average number of rooms of apartments with type code ""Studio""?","SELECT avg(room_count) FROM Apartments WHERE apt_type_code = ""Studio""" How many burglary crimes were committed if the forcible rapes were 1233?,SELECT burglary FROM table_26060884_2 WHERE forcible_rape = 1233 list out the driver names on the table,select name from driver Which customer have the biggest purchase in one order and where does this order being ship to?,"SELECT T1.CompanyName, T2.ShipCountry FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T1.CompanyName, T2.ShipCountry ORDER BY COUNT(T3.ProductID) DESC LIMIT 1" What is the away team score at the Windy Hill venue?,"SELECT away_team AS score FROM table_name_8 WHERE venue = ""windy hill""" List the name and phone number of all suppliers in the alphabetical order of their addresses.,"SELECT T1.supplier_name , T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details" How many Gold medals were won by the Nation that had more than 12 Bronze medals and less than 124 Total medals?,SELECT COUNT(gold) FROM table_name_56 WHERE bronze > 12 AND total < 124 What result has texas longhorns as the opponent?,"SELECT result FROM table_name_47 WHERE opponent = ""texas longhorns""" "what are the u.s. air dates with a Canadian air date of may 4, 2009","SELECT us_airdate FROM table_12294557_3 WHERE canadian_airdate = ""May 4, 2009""" "What is the percentage for the Yelp businesses in ""Pets"" category of all businesses?",SELECT CAST(SUM(CASE WHEN T2.category_name = 'Pets' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.category_name) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id "What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?",SELECT AVG(gold) FROM table_name_95 WHERE total = 2 AND silver < 1 AND rank > 5 What is the 2011 value that has a 2r in 2008 and a 4r in 2012?,"SELECT 2011 FROM table_name_62 WHERE 2008 = ""2r"" AND 2012 = ""4r""" List each language and the number of TV Channels using it.,"SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE" Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.,"SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = ""Simon Woodroffe"" OR T1.Investor = ""Peter Jones""" What is the cost per capita in the Courtenay municipality?,"SELECT cost_per_capita FROM table_12340907_1 WHERE municipality = ""Courtenay""" Find the name and attribute ID of the attribute definitions with attribute value 0.,"SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0" "What is Film Title Used In Nomination, when Primary Language(s) is ""Azerbaijani, Russian""?","SELECT film_title_used_in_nomination FROM table_name_83 WHERE primary_language_s_ = ""azerbaijani, russian""" What is the KINKA 1.2 when the pre-release is no and the developer is yes?,"SELECT kinka_12 FROM table_name_35 WHERE kinka_pre_release = ""no"" AND kinka_developer = ""yes""" Players born in which year have received the most awards in total?,SELECT T1.birthYear FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID GROUP BY T1.birthYear ORDER BY COUNT(T2.award) DESC LIMIT 1 What's the smallest March when the record is 22-12-6?,"SELECT MIN(march) FROM table_name_7 WHERE record = ""22-12-6""" What is the average business time for Yelp_Business no.1 on weekends?,"SELECT T1.closing_time + 12 - T1.opening_time AS ""avg opening hours"" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T1.business_id = 1 AND (T2.day_of_week = 'Sunday' OR T2.day_of_week = 'Sunday')" "What is the latest available income inequality for the country with a population of 21,315,135?","SELECT income_inequality_1994_2011__latest_available_ FROM table_name_91 WHERE population_2011 = ""21,315,135""" "What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0?",SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0 What are the title and director of the films without any schedule?,"SELECT title , directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)" "What is the attribute data type of the attribute with name ""Green""?","SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = ""Green""" Which model number does bombardier manufacture?,"SELECT model_no FROM table_name_28 WHERE manufacturer = ""bombardier""" Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?,"SELECT winning_driver FROM table_name_21 WHERE fastest_lap = ""giuseppe farina"" AND race = ""british grand prix""" Which model has the least amount of RAM? List the model name and the amount of RAM.,"SELECT Model_name , RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;" Who was Betty's partner when the surface is hard?,"SELECT partner FROM table_2820584_2 WHERE surface = ""Hard""" What is the highest pick number for a pick drafted by the denver broncos?,"SELECT MAX(pick) FROM table_name_52 WHERE team = ""denver broncos""" "What are the enrollments of schools whose denomination is not ""Catholic""?","SELECT Enrollment FROM school WHERE Denomination != ""Catholic""" What are the names of the 8 countries with the greatest gross invoice size? | Can you give details about the countries? Do you mean billing country? | Yes,SELECT billing_country FROM invoices GROUP BY billing_country ORDER BY SUM ( total ) DESC LIMIT 8 How many car models are produced by each maker ? Only list the count and the maker full name .,"select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;" Which school has a mascot of the Blazers and in the Northeast Corner conference?,"SELECT school FROM table_name_75 WHERE conference_joined = ""northeast corner"" AND mascot = ""blazers""" Who won the womens singles in the 1958/1959 season?,"SELECT womens_singles FROM table_12266757_1 WHERE season = ""1958/1959""" How many sections does each course have?,"SELECT count(*) , crs_code FROM CLASS GROUP BY crs_code" What was the score when their record was 35–23–15?,"SELECT score FROM table_name_58 WHERE record = ""35–23–15""" "What is the maximum, minimum and average market share of the listed browsers?","SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser" In which tournament was Gil Morgan the runner-up?,"SELECT tournament FROM table_name_64 WHERE runner_s__up = ""gil morgan""" "How many of the businesses are located at 1825 POST St #223, San Francisco?",SELECT COUNT(business_id) FROM businesses WHERE address = '1825 POST St #223' AND city = 'SAN FRANCISCO' And the least used payment method?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count ( * ) ASC LIMIT 1 Name the district for hugh glasgow,"SELECT district FROM table_2668352_14 WHERE incumbent = ""Hugh Glasgow""" Name the australian marquee for alessandro del piero,"SELECT australian_marquee FROM table_1301373_7 WHERE international_marquee = ""Alessandro Del Piero""" Show the range that has the most number of mountains.,SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1 What is the launch date for the sattelite with a nssdc id of 1960-009a?,"SELECT launch_date__utc_ FROM table_2150068_1 WHERE nssdc_id = ""1960-009A""" Give the title of the episode won in Primetime Emmy Awards 2009.,SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.organization = 'Primetime Emmy Awards' AND T1.year = 2009 AND T1.result = 'Winner'; What date was part number rk80533pz933256 released?,"SELECT release_date FROM table_name_89 WHERE part_number_s_ = ""rk80533pz933256""" "For the documents with the description ""Regular"", what are all of their response received dates?",SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' What is the name of the sport the student with the most hours per week played?,SELECT SportName FROM SportsInfo ORDER BY HoursPerWeek DESC LIMIT 1 Please list all game names that were held in Los Angeles.,SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Los Angeles' What was the title of the episode directed by John T. Kretchmer? ,"SELECT title FROM table_18481791_2 WHERE directed_by = ""John T. Kretchmer""" What episode was watched by 10.81 million US viewers?,"SELECT MIN(no_by_season) FROM table_23958944_5 WHERE us_viewers__in_millions_ = ""10.81""" Which format has a Station of klok?,"SELECT format FROM table_name_28 WHERE station = ""klok""" What are the first names of all students that are not enrolled in courses?,SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN) What is the most expensive book item? Please provide a short description of projects related to those.,"SELECT T1.item_name, T2.short_description FROM resources AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.project_resource_type = 'Books' ORDER BY T1.item_unit_price DESC LIMIT 1" Find the name of the user who has the largest number of followers.,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1 Show all allergy types.,SELECT DISTINCT allergytype FROM Allergy_type Show all distinct lot details.,SELECT DISTINCT lot_details FROM LOTS "For the flight from ATL to PHL on 2018/8/1 that scheduled local departure time as ""2040"", which air carrier does this flight belong to?",SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.FL_DATE = '2018/8/1' AND T1.ORIGIN = 'ATL' AND T1.DEST = 'PHL' AND T1.CRS_DEP_TIME = '2040' GROUP BY T2.Description What are the unique block codes that have available rooms?,SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 List the countries that have more than one mountain.,SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1 How many bottles of beer have been bought by Jim Breech?,SELECT COUNT(T3.ContainerType) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T2.CustomerID = T1.CustomerID INNER JOIN rootbeer AS T3 ON T3.RootBeerID = T2.RootBeerID WHERE T3.ContainerType = 'Bottle' AND T1.First = 'Jim' AND T1.Last = 'Breech' "What is Location, when Game is 42?",SELECT location FROM table_name_70 WHERE game = 42 "Show the names of authors from college ""Florida"" or ""Temple""","SELECT Author FROM submission WHERE College = ""Florida"" OR College = ""Temple""" What are their contact numbers?,"SELECT channel_code,contact_number FROM customer_contact_channels GROUP BY channel_code HAVING count ( customer_id ) < 5" How many teams that played in the 2012 season belong to any of the English divisions and what percentage play in each of the divisions?,"SELECT ( SELECT COUNT(T1.Div) AS total FROM matchs T1 INNER JOIN divisions T2 ON T2.division = T1.Div WHERE T2.country = 'England' AND T1.season = 2012 ) AS num , CASE WHEN 1 THEN T.result END AS percentage FROM ( SELECT 100.0 * COUNT(T1.Div) / ( SELECT COUNT(T1.Div) FROM matchs T1 INNER JOIN divisions T2 ON T2.division = T1.Div WHERE T2.country = 'England' AND T1.season = 2012 ) AS result FROM matchs T1 INNER JOIN divisions T2 ON T2.division = T1.Div WHERE T2.country = 'England' AND T1.season = 2012 GROUP BY T2.division ) AS T" How many TV Channels use the English language?,"SELECT count(*) FROM TV_Channel WHERE LANGUAGE = ""English"";" "What states are they from, please?","SELECT T2.Name, T2.State FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC" "Who is the opponent on November 20, 1966?","SELECT opponent FROM table_name_88 WHERE date = ""november 20, 1966""" What is the smallest converted value at number 19?,"SELECT MIN(converted) FROM table_1895522_2 WHERE number = ""19""" What is the Player from appalachian state?,"SELECT player FROM table_name_73 WHERE college = ""appalachian state""" What is the IcAO of Frankfurt?,"SELECT icao FROM table_name_91 WHERE city = ""frankfurt""" What are the song names for every song whose rating is less than the minimum rating for English songs?,SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english') "For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface","SELECT surface FROM table_27877656_7 WHERE score = ""6–4, 6–1"" AND edition = ""2011 Europe/Africa Group IIIB""" Find the total number of courses offered.,SELECT count(*) FROM COURSES Calculate the differences of the paper number with the journal name of IWC in 2000 and 2010.,SELECT SUM(CASE WHEN T2.Year = 2000 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.Year = 2010 THEN 1 ELSE 0 END) AS DIFF FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.ShortName = 'IWC' Find the city and name of bank branches that provide business loans.,"SELECT T1.bname, T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'" What's the pick for Georgia tech?,"SELECT pick FROM table_name_94 WHERE college = ""georgia tech""" Price of each manufacturer's product?,SELECT T1.price FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code In what round did opponent Joe Lauzon play?,"SELECT round FROM table_name_39 WHERE opponent = ""joe lauzon""" Who were the umpires when Paul Medhurst (C) won the Simpson Medal?,"SELECT umpires FROM table_13514348_7 WHERE simpson_medal = ""Paul Medhurst (C)""" Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46,SELECT MIN(kazakhstan) FROM table_name_20 WHERE kyrghizstan = 4.62 AND belarus < 2.46 What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony?,"SELECT no_8 FROM table_name_29 WHERE no_4 = ""matthew"" AND no_7 = ""anthony""" How many years had a score of 734-5d?,"SELECT COUNT(year) FROM table_name_9 WHERE score = ""734-5d""" "display the first and last name, department, city, and state province for each employee.","SELECT T1.first_name, T1.last_name, T2.department_name, T3.city, T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" How many ties does Walsall have?,"SELECT tie_no FROM table_name_97 WHERE away_team = ""walsall""" Which committees have delegates from both democratic party and liberal party?,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic"" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal""" "What are the names of workshop groups in which services with product name ""film"" are performed?","SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = ""film""" What are the vendors of the book-type projects? List them with the project ID.,"SELECT DISTINCT vendorid, projectid FROM resources WHERE project_resource_type = 'Books'" What's melbourne's average year?,"SELECT AVG(year) FROM table_name_35 WHERE team = ""melbourne""" Which of those suppliers purchased less than 30000?,SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg ( total_amount_purchased ) < 30000 state the opponent on halliwell jones stadium in super league xiv,"SELECT opponent FROM table_21256068_3 WHERE venue = ""Halliwell Jones Stadium"" AND competition = ""Super League XIV""" "Among male legislators, state number of the legislators who are not the senator.",SELECT COUNT(T3.state) FROM ( SELECT T2.state FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND (T2.class IS NULL OR T2.class = '') GROUP BY T2.state ) T3 Please list the full names and titles of all employees.,"SELECT FirstName, LastName, Title FROM Employees" Now just list the staff who are assigned to problem id 1,"SELECT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" What tournament has yvonne vermaak as the opponent?,"SELECT tournament FROM table_name_5 WHERE opponent = ""yvonne vermaak""" State the unemployed students who enlisted in marines.,SELECT T1.name FROM unemployed AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'marines' "What is the Club, when the value for Played is 22, and when the value for Tries is 41?","SELECT club FROM table_name_44 WHERE played = ""22"" AND tries_for = ""41""" Who was the celebrity who exited on day 13?,"SELECT celebrity FROM table_name_35 WHERE exited = ""day 13""" What are the names of all of Alice's friends of friends?,SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name != 'Alice' What is the average number of silver medals with more than 6 gold meals and less than 5 bronze medals?,SELECT AVG(silver) FROM table_name_53 WHERE gold > 6 AND bronze < 5 What date did season 12 premiere? ,SELECT original_air_date FROM table_2655016_4 WHERE season__number = 12 I want the name for rank less than 6 and year more than 1974,SELECT name FROM table_name_75 WHERE rank < 6 AND year > 1974 Name the team 1 for round 3,"SELECT team_1 FROM table_name_64 WHERE round = ""3""" WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD?,"SELECT points__percentage FROM table_name_29 WHERE total_w_l_h = ""1-2-2""" Show the ids of all the faculty members who participate in an activity and advise a student.,SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student List the primary subject of all the donations with a corporate sponsored giftcard.,SELECT DISTINCT T2.primary_focus_subject FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.payment_included_campaign_gift_card = 't' Find the list of attribute data types possessed by more than 3 attribute definitions.,SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3 Name the 2011 with 2006 of 2r,"SELECT 2011 FROM table_name_97 WHERE 2006 = ""2r""" What is the total number of hours per work and number of games played by David Shieber?,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = ""David"" AND T2.Lname = ""Shieber""" What T20 Match has a total of 23?,"SELECT t20_matches FROM table_name_18 WHERE total = ""23""" Calculate the percentage of households in residential areas of countries over 10000.,SELECT CAST(COUNT(CASE WHEN T2.households > 10000 THEN T1.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T1.zip_code) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code Which Goals have a Ratio of 0.29?,SELECT goals FROM table_name_16 WHERE ratio = 0.29 What is the teacher prefix for the teacher who wrote the project 'Creating Memories and Inspiring Dreams'?,SELECT T2.teacher_prefix FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Creating Memories and Inspiring Dreams%' What are the full names and gradepoints for all enrollments?,"SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID" How many drivers participated in the race Australian Grand Prix held in 2009?,"SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = ""Australian Grand Prix"" AND YEAR = 2009" Can you provide me with the names of the dorms that have both TV Lounge and Study Room as amenities?,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' Which city has the ICAO of LIRF?,"SELECT city FROM table_name_84 WHERE icao = ""lirf""" how many class there,SELECT count ( * ) from Class Show the names of members that have a rank in round higher than 3.,SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3 "Give the type and start date of the term of the legislator born on November 26, 1727.","SELECT T2.type, T2.start FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio = '1727-11-26'" What are the life spans of representatives from New York state or Indiana state?,"SELECT Lifespan FROM representative WHERE State = ""New York"" OR State = ""Indiana""" What is the sum of the pick of the lw position player?,"SELECT SUM(pick) FROM table_name_25 WHERE position = ""lw""" What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?,SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I' What is the event sponsored by the Republican House?,SELECT event FROM Menu WHERE sponsor = 'REPUBLICAN HOUSE' "For the game on 2008/5/12, who was the man of the match?",SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match WHERE T2.Match_Date = '2008-05-12' "show me the full name, hire date, salary and department number of these employees","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'" What is draft detail of the document with id 7?,SELECT draft_details FROM Document_Drafts WHERE document_id = 7; What country does Roberto Almeida live?,"SELECT country FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida"";" What is the highest elevation for the highest point of Schnebelhorn?,"SELECT highest_elevation FROM table_name_7 WHERE highest_point = ""schnebelhorn""" "What about names from ""CWS""?","SELECT name from technician where team = ""CWS""" find the number of distinct country codes of all players.,SELECT count(DISTINCT country_code) FROM players Could you tell me how many organizations are not parent organizations of others?,SELECT count ( organization_id ) FROM organizations where organization_id not in ( SELECT parent_organization_id FROM organizations ) Which Show has an Award of indian television academy awards?,"SELECT show FROM table_name_77 WHERE award = ""indian television academy awards""" "What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98?","SELECT MAX(nfl_draft) FROM table_name_47 WHERE player = ""jeff robinson"" AND overall_pick < 98" "Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1?","SELECT MIN(capacity) FROM table_name_96 WHERE city = ""brisbane"" AND rank < 1" What was the To par score for the tournament with a margin of victory of 1 stroke?,"SELECT to_par FROM table_name_44 WHERE margin_of_victory = ""1 stroke""" What is the sum of Long for derrick locke?,"SELECT SUM(long) FROM table_name_30 WHERE name = ""derrick locke""" What's the maximum crowd when scg is the ground?,"SELECT MAX(crowd) FROM table_14312471_4 WHERE ground = ""SCG""" What skip has martina baumann as the third?,"SELECT skip FROM table_name_22 WHERE third = ""martina baumann""" "How many games were played in park ""Columbia Park"" in 1907?",SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'; "What are their salaries? Please order the table in ascending order by salary,",SELECT salary FROM employees WHERE hire_date > 1987 order by salary How many stars did Urijah Faber rate for Frostie?,SELECT T2.StarRating FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Urijah' AND T1.Last = 'Faber' AND T3.BrandName = 'Frostie' Please list the first 3 teams that got the most penalty minutes in 2006.,"SELECT name FROM Teams WHERE year = 2006 GROUP BY tmID, name ORDER BY SUM(PIM) DESC LIMIT 3" Find the id of students who do not have a cat pet.,SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' "Among the flights with air carrier named Republic Airline, how many of the flights have departure delay of 30 minutes and above?",SELECT COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%Republic Airline%' AND T2.DEP_DELAY > 30 What is the Domestic Tournament with Chennai Super Kings Team?,"SELECT domestic_tournament FROM table_name_42 WHERE team = ""chennai super kings""" Name the series with game of game 6,"SELECT series FROM table_name_58 WHERE game = ""game 6""" How fast are roller coasters in Austria?,"SELECT T2.Speed FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = ""Austria""" What Loss is recorded for the Date June 2?,"SELECT loss FROM table_name_56 WHERE date = ""june 2""" Which students are unaffected by allergies?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy Which division is Diesel Galloway in?,SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.first = 'Diesel' AND T1.last = 'Galloway' "what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?","SELECT constellation FROM table_name_24 WHERE object_type = ""spiral galaxy"" AND ngc_number < 3593 AND right_ascension___j2000__ = ""11h05m48.9s""" List all the course IDs for professional or master/graduate courses.,SELECT course_id FROM course WHERE courseLevel = 'Level_500' how many customers live in germany and have invoice,"SELECT count ( * ) FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Germany""" Name the nationality for pick of 16,SELECT nationality FROM table_name_12 WHERE pick = 16 What are the census ranking(s) for a population of 284?,SELECT census_ranking FROM table_171250_2 WHERE population = 284 What year was incumbent phil crane first elected?,"SELECT first_elected FROM table_1341640_14 WHERE incumbent = ""Phil Crane""" Show the name of technicians aged either 36 or 37,SELECT Name FROM technician WHERE Age = 36 OR Age = 37 Who are the actors with a height of over 1.80m in an episode that won an award?,SELECT T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.result = 'Winner' AND T2.height_meters > 1.80 Show different hometown of teachers and the number of teachers from each hometown.,"SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown" Who in Qual 2 had the best time of 1:31.327?,"SELECT qual_2 FROM table_name_5 WHERE best = ""1:31.327""" Give the ids and names of products with price lower than 600 or higher than 900.,"SELECT product_id , product_name FROM products WHERE product_price < 600 OR product_price > 900" What is Diane Collins' email address?,SELECT email FROM customer WHERE first_name = 'DIANE' AND last_name = 'COLLINS' "Which home team has a crowd that is bigger than 22,449?",SELECT home_team FROM table_name_38 WHERE crowd > 22 OFFSET 449 How many drivers did Bob Gerard Racing have?,"SELECT COUNT(driver) FROM table_21977627_1 WHERE entrant = ""Bob Gerard Racing""" "Hmm, I want to know the player ids, names and their club ids.","SELECT player_id, name, club_id FROM player" What year were the opponents Shingo Kunieda Satoshi Saida?,"SELECT MIN(year) FROM table_name_22 WHERE opponents_in_final = ""shingo kunieda satoshi saida""" "Which Set 2 has a Set 1 of 25–15, and a Score of 3–0?","SELECT set_2 FROM table_name_41 WHERE set_1 = ""25–15"" AND score = ""3–0""" what the highest number for the opposite of offense for the green bay packers,"SELECT MAX(team_defense_rank) FROM table_1402270_1 WHERE nfl_team = ""Green Bay Packers""" What state did Hon David Beddall belong to?,"SELECT state FROM table_name_47 WHERE member = ""hon david beddall""" What type of state has a royal house of ji and has a ruler?,"SELECT type FROM table_name_54 WHERE royal_house = ""ji"" AND title = ""ruler""" How many sets lost have a loss smaller than 3 and a rank larger than 1?,SELECT SUM(sets_lost) FROM table_name_26 WHERE loss < 3 AND rank > 1 Find the name of the person who has friends with age above 40 but not under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) What is the total and maximum duration of trips with bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636" What is the highest amount of money a player with a score of 69-71-71-73=284 has?,SELECT MAX(money___) AS $__ FROM table_name_76 WHERE score = 69 - 71 - 71 - 73 = 284 What score has February 10 as the date?,"SELECT score FROM table_name_57 WHERE date = ""february 10""" Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.,SELECT DISTINCT cName FROM college WHERE enr > (SELECT min(enr) FROM college WHERE state = 'FL') List the most common type of competition.,SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1 List the ids of all distinct orders ordered by placed date.,SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed "What was the vote on the episode where the finish was ""10th voted out 3rd jury member day 30""?","SELECT vote FROM table_1272844_2 WHERE finish = ""10th voted Out 3rd Jury Member Day 30""" What are the order ids of the orders with freight of over 800?,SELECT OrderID FROM Orders WHERE Freight > 800 Show all the time(et) where the opponent is the Cincinnati Bengals.,"SELECT time___et__ FROM table_14477002_1 WHERE opponent = ""Cincinnati Bengals""" How many female faculties?,SELECT count ( * ) FROM Faculty where sex = 'F' What is the name of the airline with the most routes?,SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 "What is the year of the first appearance of the Black Knights, who had less than 1 finals appearances?","SELECT COUNT(year_of_first_appearance) FROM table_name_38 WHERE corps_name = ""black knights"" AND number_of_finals_appearances < 1" What is the distance of jockey Jason Titley?,"SELECT distance FROM table_28750142_1 WHERE jockey = ""Jason Titley""" "Which Airline has a Fleet size larger than 17, and a IATA of pr?","SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = ""pr""" Name the television service when primafila hot club,"SELECT television_service FROM table_15887683_6 WHERE content = ""Primafila Hot Club""" "Are there any other document type codes associated with a description that contains the word ""initial""?",SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%' Show the names of phones that are on market with number of shops greater than 50.,SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50 What were the original teams for the season that was won at-home by Mark Pinkhasovich?,"SELECT original_teams FROM table_name_15 WHERE at_home_winner = ""mark pinkhasovich""" Give the names of the female cast in Movie No. 1865.,SELECT T2.person_name FROM movie_cast AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.person_id INNER JOIN gender AS T3 ON T1.gender_id = T3.gender_id WHERE T1.movie_id = 1865 AND T3.gender = 'Female' Which school did player Rodney Purvis belong to?,"SELECT school FROM table_name_32 WHERE player = ""rodney purvis""" How many conductors are there?,SELECT COUNT(*) FROM conductor "What is Team, when High Points is ""Rashard Lewis , Mickaël Piétrus (17)""?","SELECT team FROM table_name_80 WHERE high_points = ""rashard lewis , mickaël piétrus (17)""" * I have left the chat *,"SELECT DISTINCT T2.thing_id , T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' and T1.Date_and_Date < '2017-06-19 02:59:21'" What Wireless LAN had a process technology of 90nm and a Carmel centrino?,"SELECT wireless_lan FROM table_199666_1 WHERE process_technology = ""90nm"" AND centrino = ""Carmel""" Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?,"SELECT particle FROM table_name_85 WHERE makeup = ""d s s"" AND spin___parity___j_p = ""3⁄2 +""" "Which Date has a Catalog of 887 195-2, and a Format of cd maxi?","SELECT date FROM table_name_63 WHERE catalog = ""887 195-2"" AND format = ""cd maxi""" Which horse was Horse 1 when rené guzmán raced with the mulchén association?,"SELECT horse_1 FROM table_name_32 WHERE rider_1 = ""rené guzmán"" AND association = ""mulchén""" "Among the salable products from the mountain product line, how many of them have the most reviews?",SELECT SUM(CASE WHEN T2.ProductLine = 'M' THEN 1 ELSE 0 END) FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.FinishedGoodsFlag = 1 GROUP BY T1.ProductID ORDER BY COUNT(T1.ProductReviewID) DESC LIMIT 1 Find the name and age of all males in order of their age.,SELECT name FROM Person WHERE gender = 'male' ORDER BY age "What was spent per voter when total amount spent was 210,280,000?","SELECT spent_per_voter___php__ FROM table_22097588_9 WHERE amount_spent___php__ = ""210,280,000""" "What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?",SELECT MAX(fastest_laps) FROM table_name_9 WHERE poles = 0 AND races > 15 AND podiums > 2 How many customers have loans that total more than 5000?,select count ( * ) from ( SELECT * FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum ( T2.amount ) > 5000 ) Name the least year for les triplettes de belleville,"SELECT MIN(year) FROM table_name_45 WHERE original_title = ""les triplettes de belleville""" Who directed episode 2 of the season?,SELECT directed_by FROM table_27988559_1 WHERE no_in_season = 2 What color of grape is Roussanne?,"SELECT color from grapes where grape = ""Roussanne""" Who was the away team at mcg?,"SELECT away_team FROM table_name_25 WHERE venue = ""mcg""" "what is the total number of reasons for change where the date the successor was seated is june 8, 1876?","SELECT COUNT(reason_for_change) FROM table_2192067_4 WHERE date_successor_seated = ""June 8, 1876""" What is the day Number and date of all the documents?,"SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date" "How many econs have 13.76 as the S/Rate, with runs less than 325?",SELECT COUNT(econ) FROM table_name_27 WHERE s_rate = 13.76 AND runs < 325 What is the location of the match with chad armstrong as the opponent?,"SELECT location FROM table_name_47 WHERE opponent = ""chad armstrong""" What's the rank when the laps are fewer than 137 and the qual is 116.470?,"SELECT rank FROM table_name_99 WHERE laps < 137 AND qual = ""116.470""" How many documents do not have any expense?,SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses ) Can you list the states where the secretaries of the Treasury department were born?,SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' What director directed the role of shelby barret wyatt in 1935?,"SELECT director FROM table_name_14 WHERE year = 1935 AND role = ""shelby barret wyatt""" How many female people are older than 30 in our record?,SELECT count(*) FROM people WHERE is_male = 'F' AND age > 30 What are the countries of mountains with height bigger than 5000?,SELECT Country FROM mountain WHERE Height > 5000 What race had Jody Scheckter hold pole position?,"SELECT race FROM table_name_63 WHERE pole_position = ""jody scheckter""" Name the leading scorer for 1 april 2008,"SELECT leading_scorer FROM table_name_82 WHERE date = ""1 april 2008""" How about Meaghan or Jessica?,select count ( distinct account_id ) from Customers AS T1 JOIN Accounts AS T2 ON T2.customer_id = T1.customer_id WHERE customer_first_name = 'Meaghan' or customer_first_name = 'Jessica' What country got accolades in 2002?,SELECT country FROM table_name_46 WHERE year = 2002 Provide all the details of the song Tumi robe nirobe?,"select * from song where song_name = ""Tumi robe nirobe""" What is the name of the suburb with a roll of 741?,SELECT suburb FROM table_name_60 WHERE roll = 741 How many people lived in the district whose headquarters is in Bhubaneswar in 2001?,"SELECT population__2001_census_ FROM table_2801442_1 WHERE headquarters = ""Bhubaneswar""" What building shows 2013 and has more than 20 floors?,SELECT building FROM table_name_54 WHERE year = 2013 AND floors > 20 What grade do they teach? | Here are the grades of the students taught by the teacher who teaches the largest number of students. | What is their class room?,"SELECT T1.Classroom FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count ( * ) DESC LIMIT 1" What is the device model of the device used by the oldest user?,SELECT device_model FROM phone_brand_device_model2 WHERE device_id IN ( SELECT device_id FROM gender_age WHERE age = ( SELECT MAX(age) FROM gender_age ) ) Which room has the largest number of reservations?,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY count(*) DESC LIMIT 1; Tell me the lowest other for albanians more than 8793 and Roma less than 1030,SELECT MIN(other) FROM table_name_47 WHERE albanians > 8793 AND roma < 1030 Name the Chilliwack Chiefs players who have scored 100 points or more in the NHL.,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.TEAM = 'Chilliwack Chiefs' AND T1.P >= 100 "Ok. Do you know any name of the pilot that provides a company ""catering services"" activities?",SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services' What are id and name of the products whose price is lower than 600?,"SELECT product_id , product_name FROM products WHERE product_price < 600" How many different students play games?,SELECT count(DISTINCT StuID) FROM Plays_games What is the highest average rating for action movies made in the USA?,SELECT AVG(T2.rating) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid INNER JOIN movies2directors AS T3 ON T1.movieid = T3.movieid WHERE T1.country = 'USA' AND T3.genre = 'Action' GROUP BY T1.movieid ORDER BY AVG(T2.rating) DESC LIMIT 1 Show the names and total passengers for all train stations not in London.,"SELECT name , total_passengers FROM station WHERE LOCATION != 'London'" Find the name and position of the head of the department with the least employees.,"SELECT T2.name , T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1;" What is the total actual profit gained from orders made by American customers from 2003-01-06 to 2005-05-09?,SELECT SUM(T2.priceEach - T1.buyPrice) FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode INNER JOIN orders AS T3 ON T2.orderNumber = T3.orderNumber INNER JOIN customers AS T4 ON T3.customerNumber = T4.customerNumber WHERE T3.orderDate > '2003-01-05' AND T3.orderDate < '2005-05-10' Now what is the apartment type code of that apartment.,"SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY sum ( room_count ) DESC LIMIT 1" What is the territory that was acquired past 1899 and has a capital of saipan?,"SELECT territory FROM table_name_37 WHERE acquired > 1899 AND capital = ""saipan""" "What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?","SELECT urban_sub_area FROM table_name_70 WHERE council_area = ""east dunbartonshire"" AND population = ""19,020""" "Wonderful! Finally, can you update this list to show the affiliation type of each of these schools?","SELECT School,Affiliation FROM university" Name the district with philip philbin,"SELECT district FROM table_1341865_23 WHERE incumbent = ""Philip Philbin""" Calculate the difference between the number of customers and the number of subscribers who did the trip in June 2013.,"SELECT SUM(IIF(subscription_type = 'Subscriber', 1, 0)) - SUM(IIF(subscription_type = 'Customer', 1, 0)) FROM trip WHERE start_date LIKE '6/%/2013%'" What kind of bleeding does aspirin cause?,"SELECT bleeding_time FROM table_1226250_1 WHERE condition = ""Aspirin""" "Which vocal type did the musician with last name ""Heilo"" played in the song with title ""Der Kapitan""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = ""Heilo"" AND T2.title = ""Der Kapitan""" Which title had the production code 1ACX04?,"SELECT title FROM table_14724369_1 WHERE production_code = ""1ACX04""" Show the distinct themes of journals.,SELECT DISTINCT Theme FROM journal In which city is the network with the callsign kgns-dt3 licensed?,"SELECT city_of_license FROM table_name_71 WHERE callsign = ""kgns-dt3""" "How many positions have a maximum salary of no more than US$1000,000?","SELECT COUNT(*) FROM position WHERE CAST(REPLACE(SUBSTR(maxsalary, 4), ',', '') AS REAL) < 100000" "Show the short names of the buildings managed by ""Emma"".","SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = ""Emma""" "What place is player johnny miller, who has a to par of +2?","SELECT place FROM table_name_28 WHERE to_par = ""+2"" AND player = ""johnny miller""" what is the round on 21 february 2009?,"SELECT round FROM table_name_54 WHERE date = ""21 february 2009""" "List the product ID of the top five products, by descending order, in terms of price.",SELECT ProductID FROM Products ORDER BY Price DESC LIMIT 5 "List the id, country, city and name of the airports ordered alphabetically by the name.","SELECT id, country, city, name FROM airport ORDER BY name" How many players who were drafted by the Toronto Maple Leafs have played over 300 games in their first 7 years of the NHL career?,SELECT COUNT(ELITEID) FROM PlayerInfo WHERE overallby = 'Toronto Maple Leafs' AND sum_7yr_GP > 300 Okay. What was the fee of San Francisco State University in 1996?,"SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND T2.year = 1996" "What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver?","SELECT entrant FROM table_name_80 WHERE engine = ""talbot l6"" AND driver = ""eugène chaboud""" What is the to par for Leonard Thompson from the United States with a place of T6?,"SELECT to_par FROM table_name_3 WHERE place = ""t6"" AND country = ""united states"" AND player = ""leonard thompson""" Show the name of teachers aged either 32 or 33?,SELECT Name FROM teacher WHERE Age = 32 OR Age = 33 Who pubilshed isbn 1-937007-44-8?,"SELECT publisher FROM table_16907214_1 WHERE hardcover = ""ISBN 1-937007-44-8""" Who is the Constructor for the Trac Racing Team?,"SELECT constructor FROM table_name_56 WHERE team = ""trac racing team""" "When was the last time a venue was held in turin, italy?","SELECT MAX(year) FROM table_name_75 WHERE venue = ""turin, italy""" What is the Winning score in 1956?,SELECT winning_score FROM table_name_57 WHERE year = 1956 What is the total sum of points of entrants with a reynard 92d chassis?,"SELECT SUM(points) FROM table_name_88 WHERE chassis = ""reynard 92d""" WHAT IS THE ID OF THE AIRCRAFT | Do you mean the aircraft id of the aircraft named Boeing 727? | YES,SELECT aid from aircraft where name = 'Boeing 727' List the names of patients who have made appointments.,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn which country has the airport with the highest altitude?,SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 Which store has most the customers?,SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1 Name the venue for 23 january 2009,"SELECT venue FROM table_name_88 WHERE date = ""23 january 2009""" Can you tell me the name of the employee that is in the circulation history with document id 1?,SELECT T1.employee_name FROM employees as T1 JOIN circulation_history AS T2 ON T1.employee_id = T2.employee_id WHERE T2.document_id = 1 where was mazouz ghaouti executed?,"SELECT place_of_execution FROM table_2861364_1 WHERE executed_person = ""Mazouz Ghaouti""" List the names and origins of people who are not body builders.,"SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id" What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?,SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003 What are the titles of movies and books corresponding to companies incorporated in China?,"SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'" What is the original airdate of episode #31?,SELECT original_air_date FROM table_28967275_2 WHERE episode__number = 31 "How many percent more orders were fulfilled with shipper company ""United Package"" than with ""Speedy Express""?",SELECT CAST((COUNT(CASE WHEN T2.CompanyName = 'United Package' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.CompanyName = 'Speedy Express' THEN 1 ELSE NULL END)) AS REAL) * 100 / COUNT(CASE WHEN T2.CompanyName = 'Speedy Express' THEN 1 ELSE NULL END) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID What are the first names of all students in course ACCT-211?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' "Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?","SELECT intra_molecular_structure FROM table_name_76 WHERE comparative = ""no"" AND name = ""mitarget""" When western michigan is the tournament winner how many conferences are there?,"SELECT COUNT(conference) FROM table_24160890_3 WHERE tournament_winner = ""Western Michigan""" Which Doctor Who episode has an Original airdate (UK) of 14 may 2005?,"SELECT doctor_who_episode FROM table_name_91 WHERE original_airdate__uk_ = ""14 may 2005""" "How many ILO codes are there with revising conventions of 'this convention, work in fishing convention'?","SELECT COUNT(ilo_code) FROM table_2001348_1 WHERE revising_convention_s_ = ""this convention, Work in Fishing Convention""" What are the checking and savings balances on those accounts? Could you please sort them by their total balances in descending order?,"SELECT T2.balance , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC" How many drafts featured fred hoaglin?,"SELECT COUNT(overall) FROM table_name_42 WHERE player = ""fred hoaglin""" Who were the 76ers opponents on January 17?,"SELECT team FROM table_27698941_8 WHERE date = ""January 17""" What is the day and date of game 2?,"SELECT day, _date FROM table_name_20 WHERE game = ""2""" Name the total number of segment d for wooden s barrel,"SELECT COUNT(segment_d) FROM table_15187735_10 WHERE segment_a = ""Wooden s Barrel""" "What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring?","SELECT MIN(league) AS Cup FROM table_name_88 WHERE league > 1 AND name = ""brian deane"" AND fa_cup < 1" What are the ids of the movies that are not reviewed by Brittany Harris.,"SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" What is the least common game genre?,"SELECT T.game_name FROM ( SELECT T2.game_name, COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id GROUP BY T2.game_name ORDER BY COUNT(T2.id) ASC LIMIT 1 ) t" "Among the flights operated by American Airlines Inc. on 2018/8/1, how many of them were cancelled?",SELECT SUM(CASE WHEN T2.CANCELLED = 1 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' AND T3.Description = 'American Airlines Inc.: AA' what is the lowest played when the position is more than 9?,SELECT MIN(played) FROM table_name_76 WHERE position > 9 How many albums does Billy Cobham has?,"SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Billy Cobham"";" Name the elevation of the gathering place,"SELECT elevation FROM table_name_79 WHERE nickname = ""the gathering place""" What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo?,"SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = ""buffalo""" Show all the locations with at least two cinemas with capacity above 300.,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) >= 2 "What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?","SELECT 1998 FROM table_name_4 WHERE 1995 = ""a"" AND 1993 = ""a"" AND 1996 = ""1r""" Can you list the prices along with the books?,"SELECT t2.price, t1.title FROM book as t1 join publication as t2 on t1.book_id = t2.book_id order by t2.price asc" What is the school code of the accounting department?,"SELECT school_code FROM department WHERE dept_name = ""Accounting""" What are the details for the project whose research has been published?,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%' Name the project with length overall being 25 and name of levante,"SELECT project FROM table_name_40 WHERE length_overall_in_meters__without_bowsprit_ = 25 AND name = ""levante""" What is the percentage of literate people where india is andaman and Nicobar Islands?,"SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = ""Andaman and Nicobar Islands""" How many primers annulus colors were there when the color of the bullet tip was white?,"SELECT COUNT(primer_annulus_color) FROM table_1036189_1 WHERE bullet_tip_color = ""White""" Can i have the list of the names of film that was rented,SELECT T1.title FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id What is the average price of that product with type code Hardware?,"SELECT avg ( product_price ) FROM products WHERE product_type_code = ""Hardware""" How many games were lost where the win percentage is smaller than 16.7 and the played games is 3?,SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 3 What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" Find the number of students in each major.,"SELECT COUNT(*), major FROM student GROUP BY major" Return the gender and name of artist who produced the song with the lowest resolution.,"SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1" "What is the number of votes for 10-star for the episode that has the keyword ""reference to the fantastic four""?",SELECT T2.votes FROM Keyword AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 AND T1.keyword = 'reference to the fantastic four'; "What is the attribute value of an active business with a high review count and 3 stars which is located at Mesa, AZ?",SELECT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state LIKE 'AZ' AND T1.review_count LIKE 'High' AND T1.active LIKE 'TRUE' AND T1.city LIKE 'Mesa' AND T1.stars = 3 "What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?","SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1" how many yes votes made up 43.18% yes?,"SELECT MAX(yes_votes) FROM table_256286_20 WHERE _percentage_yes = ""43.18%""" "What is the conference homepage URL of the paper titled ""Quality evaluation of long duration audiovisual content""?",SELECT T2.HomePage FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Quality evaluation of long duration audiovisual content' Show the name of each party and the corresponding number of delegates from that party.,"SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party" Which text has Wade-Giles translation of ai-ma … hsin-yüan?,"SELECT text FROM table_name_85 WHERE wade_giles = ""ai-ma … hsin-yüan""" What is the score of the Boston Bruins away game on March 13?,"SELECT score FROM table_name_92 WHERE visitor = ""boston bruins"" AND date = ""march 13""" When were 668 units produced?,SELECT production_period FROM table_1245350_1 WHERE units_produced = 668 Where was the first Olympic game held?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id ORDER BY T3.games_year LIMIT 1 What is the state of Ted Stevens?,"SELECT state_represented FROM table_10644188_3 WHERE name = ""Ted Stevens""" "find the highest support percentage, lowest consider rate and oppose rate of all candidates.","SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate" "In the match ID 419135, who won by runs?",SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Win_By AS T3 ON T2.win_type = T3.win_id WHERE T2.Match_Id = 419135 "Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?","SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = ""tyler haws"" AND year = 2009" What's the average Rd number for dane jackson with a pick number over 44?,"SELECT AVG(rd__number) FROM table_name_2 WHERE player = ""dane jackson"" AND pick__number > 44" What was the Snatch weight for the year that had a total of 409kg?,"SELECT snatch FROM table_name_92 WHERE total = ""409kg""" What is the location with the most cinemas opened in year 2010 or later?,SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1 "What is the average fastest lap speed for races held after 2004, for each race, ordered by year?","SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" What city was located in the Netherlands?,"SELECT city FROM table_name_50 WHERE location = ""netherlands""" How many accounts are there for each customer id?,"SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id" "What is the highest week when the game site was Verizon Wireless Arena, and the result was w 59–42?","SELECT MAX(week) FROM table_name_69 WHERE game_site = ""verizon wireless arena"" AND result = ""w 59–42""" Find the number of amenities for each of the dorms that can accommodate more than 100 students.,"SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid" What is the name of the shipping agent that shipped the largest number of documents?,SELECT T1.shipping_agent_name FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T2.shipping_agent_code = T1.shipping_agent_code GROUP BY T1.shipping_agent_code ORDER BY count ( T2.document_id ) DESC LIMIT 1 What is the date for Zouave?,"SELECT date FROM table_name_99 WHERE name = ""zouave""" What is the name of the building at Aston?,"SELECT name FROM table_name_59 WHERE location = ""aston""" Where is the team in Sussex county located? ,"SELECT location FROM table_18461635_1 WHERE county = ""Sussex""" List down the country of the cities with a population greater than 97% of the average population of all countries in 2020.,SELECT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2020 > 0.97 * ( SELECT AVG(population_2020) FROM zip_data ) Name the number of score for january 12,"SELECT COUNT(score) FROM table_27755603_8 WHERE date = ""January 12""" Who is The Author of zhou clarke zhang?,"SELECT name FROM table_name_56 WHERE authors = ""zhou clarke zhang""" Find the student ID and middle name for all the students with at most two enrollments.,"SELECT T1.student_id , T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2" "What is the average quantities ordered with payment method code ""MasterCard"" on invoices?","SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = ""MasterCard""" "Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6?","SELECT nation FROM table_name_74 WHERE gold > 0 AND total > 4 AND rank = ""6""" What is the highest overall for a round larger than 8 for pavol demitra?,"SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = ""pavol demitra""" How many Against has a Ballarat FL of darley and Wins larger than 8?,"SELECT COUNT(against) FROM table_name_4 WHERE ballarat_fl = ""darley"" AND wins > 8" Show all student ids who are older than 20.,SELECT StuID FROM Student WHERE age > 20 List all the activities we have.,SELECT activity_name FROM Activity Which home team played against Los Angeles in game 1?,"SELECT home_team FROM table_name_26 WHERE road_team = ""los angeles"" AND game = ""game 1""" What was the attendance of the game that ended with L 31-0,"SELECT attendance FROM table_name_67 WHERE result = ""l 31-0""" What was the title of the episode with the production code 311?,SELECT title FROM table_11630008_5 WHERE production_code = 311 Show different teams in eliminations and the number of eliminations from each team.,"SELECT Team , COUNT(*) FROM elimination GROUP BY Team" What are the maximum number of transit passengers of all airports?,SELECT max ( Transit_Passengers ) FROM airport What is the distance to funao?,"SELECT distance__km_ FROM table_name_85 WHERE station = ""funao""" What is the title with the most ordered quantity in year 1992?,"SELECT T2.title FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id WHERE STRFTIME('%Y', T1.ord_date) = '1992' ORDER BY T1.qty DESC LIMIT 1" What is the result for the match against Wataru Sakata?,"SELECT res FROM table_name_55 WHERE opponent = ""wataru sakata""" What is the station id of that station?,SELECT T2.Station_ID FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count ( * ) DESC LIMIT 1 What kind of Week 4 has a Week 9 of all housemates?,"SELECT week_4 FROM table_name_50 WHERE week_9 = ""all housemates""" which police force assigned the country id 2?,SELECT Police_officers FROM county_public_safety WHERE County_ID = '2' What is the highest episode number written by Harry Winkler?,"SELECT MAX(episode__number) FROM table_2342078_4 WHERE written_by = ""Harry Winkler""" What venue is in Long Beach?,"SELECT venue FROM table_name_73 WHERE city = ""long beach""" Provide the directors and MPAA ratings of the musical movies released in 1993.,"SELECT T2.director, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.genre = 'Musical' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1993'" Find the number of students in total.,SELECT count(*) FROM STUDENT "What is Result, when Date is ""December 12""?","SELECT result FROM table_name_70 WHERE date = ""december 12""" "How many times did the team lose who had a goal difference of +2, 52 goals for, and less than 9 draws?","SELECT MIN(lost) FROM table_name_97 WHERE goal_difference = ""+2"" AND goals_for = 52 AND drawn < 9" What grid did the team racing professionals race on?,"SELECT grid FROM table_name_84 WHERE team = ""racing professionals""" Dave Curry has what Nationality?,"SELECT nationality FROM table_name_56 WHERE player = ""dave curry""" What pick number was the Boston Bruins selection for defence?,"SELECT pick__number FROM table_2897457_8 WHERE position = ""Defence"" AND nhl_team = ""Boston Bruins""" which object numbers do have trains?,SELECT ObjectNumber FROM railway WHERE Railway_ID IN ( SELECT Railway_ID FROM train ) "What is the type of the Leeds United source, winter transfer window and moving from Northampton town?","SELECT type FROM table_name_65 WHERE source = ""leeds united"" AND transfer_window = ""winter"" AND moving_from = ""northampton town""" Which city is san jose diridon caltrain station located?,"SELECT city FROM station WHERE name = ""San Jose Diridon Caltrain Station""" List down the ISBN of the books purchased by the customer with an email of fsier3e@ihg.com.,SELECT T1.isbn13 FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.email = 'fsier3e@ihg.com' What are the last names of faculty who are part of the computer science department?,"SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = ""Computer Science""" can you show me a list of first name that starting with 'J'?,"SELECT FirstName FROM list WHERE FirstName LIKE ""J%""" What is the number of artists for each gender?,"SELECT count(*) , gender FROM artist GROUP BY gender" How many materials still need to be assembled and have a depth of 2 between each component and their parent product?,SELECT COUNT(*) FROM BillOfMaterials WHERE BOMLevel = 2 AND EndDate IS NULL What is the callsign for the Cebu station?,"SELECT callsign FROM table_17822401_1 WHERE location = ""Cebu""" "What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th?","SELECT attendance FROM table_name_41 WHERE runner_up = ""suntory sungoliath"" AND title = ""46th""" "List the name of all the distinct customers who have orders with status ""Packing"".","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Packing""" What is the date opened for customer ID 214 ?,SELECT Date_Opened FROM Customers_Policies where Customer_ID = 214 Find the city and state of the bank branch named morningside.,"SELECT city , state FROM bank WHERE bname = 'morningside'" "What date has a Decision of osgood, and a Score of 3 – 4?","SELECT date FROM table_name_63 WHERE decision = ""osgood"" AND score = ""3 – 4""" Who make the highest salary on the department?,"SELECT first_name , last_name FROM employees order by salary desc limit 1" "What was the record for the game attended by 35,614 spectators?","SELECT record FROM table_name_65 WHERE attendance = ""35,614""" How many unique labels are there for albums?,SELECT COUNT(DISTINCT label) FROM albums What is the 1999 finish for the tournament in Rome?,"SELECT 1999 FROM table_name_24 WHERE tournament = ""rome""" How many dollars is listed under Sydney when the distance is 10km?,"SELECT sydney FROM table_2923917_4 WHERE distance = ""10km""" What was the attendance at Windy Hill?,"SELECT MAX(crowd) FROM table_name_27 WHERE venue = ""windy hill""" How many 2001 Ferrari Enzo were ordered?,SELECT SUM(t1.orderNumber) FROM orderdetails AS t1 INNER JOIN products AS t2 ON t1.productCode = t2.productCode WHERE t2.productName = '2001 Ferrari Enzo' What institution joined in 1988?,SELECT institution FROM table_255188_1 WHERE joined = 1988 "Among the students that have been absent from school for more than 5 months, how many of them are male?",SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` >= 5 Who is the home team in game 2?,"SELECT home_team FROM table_name_94 WHERE game = ""game 2""" How many items are listed under caps when burnley is the club team?,"SELECT COUNT(cap_s_) FROM table_28286776_12 WHERE club_s_ = ""Burnley""" "Who are the staff for the organisation with id 5? | Do you mean the id of the staffs for orginisation with id 5? | Yes, that would be fine.",SELECT staff_id from Research_Staff where employer_organisation_id = 5 list the authors have submissions,SELECT Author FROM submission How many tweets did Iron man tweet?,SELECT count ( * ) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid and T1.name = 'Iron Man' What couple had a total score of 6?,SELECT couple FROM table_19744915_15 WHERE total = 6 In how many districts was the democratic incumbent elected in 1974? ,"SELECT COUNT(district) FROM table_1341568_34 WHERE party = ""Democratic"" AND elected = 1974" how many schools are in Orange county?,"SELECT count ( * ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = ""Orange""" "yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland?","SELECT melbourne FROM table_name_92 WHERE gold_coast = ""yes"" AND adelaide = ""no"" AND auckland = ""no""" "What competition has a score greater than 30, a draw less than 5, and a loss larger than 10?",SELECT competition FROM table_name_88 WHERE points > 30 AND draw < 5 AND lost > 10 Find the name and id of the team that won the most times in 2008 postseason.,"SELECT T2.name , T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;" What are the episodes that have the average rating with more than 20 of 2-star votes?,SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 2 AND T2.votes > 20 AND T1.rating > 5.0 AND T1.rating <= 7.0; "What is the average decile with Years of 1–8, and an Area of waipara?","SELECT AVG(decile) FROM table_name_98 WHERE years = ""1–8"" AND area = ""waipara""" "What is the type of bulykin, which has a summer transfer window?","SELECT type FROM table_name_79 WHERE transfer_window = ""summer"" AND name = ""bulykin""" What is the lowest number of people attending the game where Colorado was the home team?,"SELECT MIN(attendance) FROM table_name_67 WHERE home = ""colorado""" What college did the Cincinnati Bengals' player come from?,"SELECT college FROM table_12165999_1 WHERE afl_team = ""Cincinnati Bengals""" When 3.89 is the production code how many season numbers are there?,"SELECT COUNT(season__number) FROM table_26804862_1 WHERE production_code = ""3.89""" Show the ID of the customers without policies,SELECT customer_id FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id What are the names of players who have the best dribbling?,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling = ( SELECT max(dribbling) FROM Player_Attributes) What country did Derek Black come from?,"SELECT nationality FROM table_1473672_6 WHERE player = ""Derek Black""" How many lanes does Australia have with a reaction smaller than 0.138?,"SELECT COUNT(lane) FROM table_name_55 WHERE nationality = ""australia"" AND reaction < 0.138" What is the purse value for the New York location?,"SELECT purse__$__ FROM table_11622896_1 WHERE location = ""New York""" What is the LLWS when the Year is 2003?,SELECT llws FROM table_name_37 WHERE year = 2003 Which Model has a Sail Area of 24.5 m²?,"SELECT model FROM table_name_75 WHERE sail_area = ""24.5 m²""" What is the grid total for bruce mclaren with over 73 laps?,"SELECT SUM(grid) FROM table_name_14 WHERE laps > 73 AND driver = ""bruce mclaren""" What is the total grant amount of the organisations described as research?,SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'; "What is the venue when Woking was the opponent, and the round was less than 29?","SELECT venue FROM table_name_28 WHERE opponent = ""woking"" AND round < 29" What are the characters that were nominated for Primetime Emmy Award from 2009 to 2010 but did not win?,SELECT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award_category = 'Primetime Emmy' AND T1.year BETWEEN 2009 AND 2010 AND T1.result != 'Winner'; Name the parishes for beira baixa province,"SELECT COUNT(parishes) FROM table_221375_1 WHERE province_of_1936 = ""Beira Baixa Province""" How many orders were made by Corey Roper in 2015?,"SELECT COUNT(T2.`Customer ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Corey Roper' AND STRFTIME('%Y', T2.`Ship Date`) = '2015'" What is the venue in Seattle?,"SELECT venue FROM table_name_22 WHERE city = ""seattle""" Can you show me only those students?,select stuid from student where major = 600 what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம்,"SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE tamil_name_தமிழ் = ""Punarpoosam புனர்பூசம்""" Can you show me the dorms with female only students?,"SELECT * FROM dorm where gender = ""F""" How many were with injuries?,SELECT count ( * ) FROM game WHERE id IN ( SELECT game_id FROM injury_accident ) How many fastest laps were there for a rd that equals 10?,SELECT COUNT(fastest_lap) FROM table_10706879_3 WHERE rd = 10 What was the club that won 10 top division titles?,SELECT club FROM table_18143210_2 WHERE top_division_titles = 10 What was the average league with Kris Doolan and a total less than 5?,"SELECT AVG(league) FROM table_name_22 WHERE player = ""kris doolan"" AND total < 5" How about the prices for root beer in dollars? | did you still want to know the average and minimum? | Yes please!,"SELECT avg ( price_in_dollars ) , min ( price_in_dollars ) FROM catalog_contents where catalog_entry_name = 'Root beer'" "During the quarter of 2012 Q2, how many millions of Blackberry OS phones where shipped when 0.1 million others were shipped?","SELECT COUNT(blackberry_os) FROM table_14260687_3 WHERE other = ""0.1"" AND quarter = ""2012 Q2""" What is the average number of cities of markets with low film market estimate bigger than 10000?,SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000 How many points were scored against the Toronto Rebels?,"SELECT MAX(points_against) FROM table_26200568_16 WHERE club = ""Toronto Rebels""" What is the rank # of the swimmer in Lane 5?,SELECT COUNT(rank) FROM table_name_21 WHERE lane = 5 "What is the Team when the match was in buenos aires , argentina?","SELECT team FROM table_name_60 WHERE location = ""buenos aires , argentina""" What was the average attendance at a game when the record was 6-13?,"SELECT AVG(attendance) FROM table_name_71 WHERE record = ""6-13""" What is the name of all the customers who have ever given a 5-star review?,"SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.StarRating = 5" Tell me the province for 260km ese of calgary,"SELECT province FROM table_name_15 WHERE location = ""260km ese of calgary""" What label has cd single as the format?,"SELECT label FROM table_name_20 WHERE format = ""cd single""" What are the played points difference?,"SELECT played FROM table_name_82 WHERE points_difference = ""points difference""" How many docks were available at the starting station of trip ID 912900?,SELECT SUM(T2.docks_available) FROM trip AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.start_station_id WHERE T1.zip_code = 912900 Who recorded the decision when philadelphia was away?,"SELECT decision FROM table_name_41 WHERE visitor = ""philadelphia""" What are the Ratings of Japanese Title プロポーズ大作戦 episode 11 on Fuji TV station?,"SELECT average_ratings FROM table_name_32 WHERE episodes = ""11"" AND tv_station = ""fuji tv"" AND japanese_title = ""プロポーズ大作戦""" What is the football Bronze with more than 1 Silver?,"SELECT AVG(bronze) FROM table_name_9 WHERE sport = ""football"" AND silver > 1" What was the production code for the episode directed by Michael Morris?,"SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = ""Michael Morris""" "For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.","SELECT grade , count(DISTINCT classroom) , count(*) FROM list GROUP BY grade" Where did the Oakland Raiders play in week 12 of their 1976 season?,SELECT game_site FROM table_name_90 WHERE week = 12 Name the top 5 highest-grossing Disney movies adjusted for inflation. Identify the percentage they contributed to the total of Disney's current gross.,"SELECT SUM(CASE WHEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) > 1236035515 THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) * 100 / SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross" "How many people have membership in the club ""Pen and Paper Gaming""?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Pen and Paper Gaming""" What is the maximum population size in the town of Glengallen?,SELECT MAX(population__glengallan_) FROM table_12584173_1 What is the average age of those who don't live in that city?,SELECT avg ( age ) FROM student WHERE city_code ! = 'HKG' who is the the candidates with incumbent being alfred j. elliott,"SELECT candidates FROM table_1342233_6 WHERE incumbent = ""Alfred J. Elliott""" Who is the newest customer of that group?,"SELECT customer_name from customers where payment_method = ""Visa"" order by date_became_customer limit 1" "How many distinct colleges are associated with players from the team with name ""Columbus Crew"".","SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" What was the date of the game against Kansas City Chiefs?,"SELECT date FROM table_13258851_2 WHERE opponent = ""Kansas City Chiefs""" List the names of counties that do not have any cities.,SELECT Name FROM county_public_safety WHERE NOT County_ID IN (SELECT County_ID FROM city) "Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)?","SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = ""primary"" AND call_letters = ""kktx-fm""" "Find the number of companies whose industry is ""Banking"" or ""Conglomerate"",","SELECT count(*) FROM Companies WHERE Industry = ""Banking"" OR Industry = ""Conglomerate""" What was the result of the game after week 6 against the cleveland browns?,"SELECT result FROM table_name_41 WHERE week < 6 AND opponent = ""cleveland browns""" What is the total number of grids for peter gethin?,"SELECT SUM(grid) FROM table_name_58 WHERE driver = ""peter gethin""" What State has an Opened (closing date if defunct) that shows 1960?,"SELECT state FROM table_name_28 WHERE opened__closing_date_if_defunct_ = ""1960""" "List the enrollment for each school that does not have ""Catholic"" as denomination.","SELECT Enrollment FROM school WHERE Denomination != ""Catholic""" What is Collingwood's home venue?,"SELECT venue FROM table_name_45 WHERE home_team = ""collingwood""" How many vandalisms were arrested in the ward represented by Edward Burke?,SELECT SUM(CASE WHEN T1.alderman_last_name = 'Burke' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Vandalism' AND T2.arrest = 'TRUE' AND T1.alderman_first_name = 'Edward' What episode had the last appearances of the late wife of mac taylor?,"SELECT last_appearance FROM table_11240028_3 WHERE relationship = ""Late wife of Mac Taylor""" What are the details of all sales and purchases?,SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases "For each zip code, return how many times max wind speed reached 25?","SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code" What genre of movie has Taran as the main character?,SELECT T1.genre FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Taran' Please show me the ids of the students who play video games and play sports?,SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games Tell the name of the county which is represented by Hartzler Vicky.,SELECT T1.county FROM country AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Hartzler' AND T3.last_name = 'Vicky' GROUP BY T1.county What year had an edition of 115th?,"SELECT AVG(year) FROM table_name_21 WHERE edition = ""115th""" what is the 2012 performance when in 2011 is qf and 2010 is 3r?,"SELECT 2012 FROM table_name_28 WHERE 2011 = ""qf"" AND 2010 = ""3r""" Who was the constructor of the car that had a Q1 pos of less than 8 and a Q1 time of 1:15.038?,"SELECT constructor FROM table_name_84 WHERE q1_pos < 8 AND q1_time = ""1:15.038""" Show the shops with open year later than 2012 and open year before 2008.,SELECT shop_name FROM shop WHERE Open_Year > 2012 or Open_Year < 2008 State the name of the Carrier of Iphone 6s?,"SELECT carrier FROM phone WHERE name = ""IPhone 6s""" Find the country of all appelations who have at most three wines.,SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3 What is the elevation of Madang Airport airport?,SELECT elevation from airports where name = 'Madang Airport' What is the minimum Height of the Little Switzerland Tunnel?,"SELECT minimum_height FROM table_name_49 WHERE name_of_the_tunnel = ""little switzerland tunnel""" On which days more than one revisions were made on catalogs.,SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1 How many product names have order quantity less than 50? Calculate the percentage of orders less than 50 out of total order quantity.,"SELECT SUM(CASE WHEN T2.Quantity < 50 THEN 1 ELSE 0 END) , CAST(SUM(IF(T2.Quantity < 50, 1, 0)) AS REAL) / COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID" Cound the number of artists who have not released an album.,SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM) "What are locations of the work order ""35493""?",SELECT T2.Name FROM WorkOrderRouting AS T1 INNER JOIN Location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.WorkOrderID = 35493 What is the largest number of passes for players starting exactly 34 games?,SELECT MAX(passes) FROM table_28461589_2 WHERE starting = 34 How many wins did the 500cc class have in 1979?,"SELECT wins FROM table_name_20 WHERE class = ""500cc"" AND year = 1979" Give the name of the lowest earning instructor in the Statistics department.,SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1 What is the rank that has 1 bronze and 1 silver?,SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1 How many different student logins are there?,SELECT count ( distinct login_name ) from students "List all the ids of repositories for solutions with ""ro"" methods.",SELECT DISTINCT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'ro' "When was Laurent-Marie-Joseph Imbert / St. Imbert, who was beatified after 1909 and canonised after 1984, martyred?","SELECT MAX(martyred) FROM table_name_65 WHERE beatified > 1909 AND name = ""laurent-marie-joseph imbert / st. imbert"" AND canonised > 1984" "What is the name of the Chinese restaurant that can be found at 104 San Tomas Aquino Road, Campbell?",SELECT T1.label FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_num = 104 AND T1.city = 'campbell' AND T2.street_name = 'san tomas aquino road' What is the coast guard cross when you recieve the navy distinguished service medal?,"SELECT coast_guard_cross FROM table_2104176_1 WHERE distinguished_service_cross = ""Navy Distinguished Service Medal""" "How many customers are there in Berlin, Germany?",SELECT COUNT(City) FROM Customers WHERE Country = 'Germany' AND City = 'Berlin' List the project details of the projects with the research outcome described with the substring 'Published'.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%' List the names of wrestlers and the teams in elimination in descending order of days held.,"SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC" What is the sexual abuse rate where the conflict is the Burundi Civil War?,"SELECT MIN(sexual_abuse_1) FROM table_15652027_1 WHERE conflict = ""Burundi Civil War""" "What is the Intergiro classification of Nicolaj bo Larsen, who has a Fabrizio guidi point classification?","SELECT intergiro_classification FROM table_name_34 WHERE points_classification = ""fabrizio guidi"" AND winner = ""nicolaj bo larsen""" "Can you tell me the lowest Week that has the Attendance smaller than 34,336?",SELECT MIN(week) FROM table_name_60 WHERE attendance < 34 OFFSET 336 what is the year when the date is not played?,"SELECT year FROM table_name_84 WHERE date = ""not played""" What's the location when the branding is 1116 DXAS Zamboanga?,"SELECT location FROM table_name_89 WHERE branding = ""1116 dxas zamboanga""" What are the albums produced in year 2010?,SELECT * FROM Albums WHERE YEAR = 2010 What is the tie number in the game on 5 January 1986 where Exeter City is the away team?,"SELECT tie_no FROM table_name_26 WHERE date = ""5 january 1986"" AND away_team = ""exeter city""" Name the D 41 which has a D 46 of r 6,"SELECT d_41 FROM table_name_97 WHERE d_46 = ""r 6""" Show the names of journalists and the number of events they reported.,"SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name" "Which Engine has a Model of sl500, and a Year From larger than 1999?","SELECT MAX(engine) FROM table_name_57 WHERE model = ""sl500"" AND year_from > 1999" Count the number of departments which offer courses.,SELECT count(DISTINCT dept_name) FROM course List the names of conductors in ascending order of age.,SELECT Name FROM conductor ORDER BY Age ASC Show the most common location of performances.,SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 "What was the opponent in the final when the score was 6–3, 2–6, 7–5?","SELECT opponent_in_the_final FROM table_name_69 WHERE score = ""6–3, 2–6, 7–5""" Name the D 45 O with D 44 O majority →,"SELECT d_45_o FROM table_name_5 WHERE d_44_o = ""majority →""" What is the title of the episode with production code 2alf03?,"SELECT title FROM table_26199130_1 WHERE production_code = ""2ALF03""" "Which Score has a Game larger than 47, and a January smaller than 25?",SELECT score FROM table_name_19 WHERE game > 47 AND january < 25 What is the name of the tallest player?,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id ORDER BY T2.height_in_cm DESC LIMIT 1 What are the ids of suppliers which have an average amount purchased of above 50000 or below 30000?,SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased) > 50000 OR avg(total_amount_purchased) < 30000 Tom Lagarde Category:Articles with hCards used what Jersey Number(s)?,"SELECT jersey_number_s_ FROM table_name_22 WHERE player = ""tom lagarde category:articles with hcards""" what is the country of Akureyri Airport,"SELECT country FROM Airport WHERE name = ""Akureyri Airport""" How many suppliers from Egypt have a debit balance?,SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 AND T2.n_name = 'EGYPT' what is the average of booked amount?,SELECT avg ( booked_amount ) FROM Products_Booked "How many records were made on March 27, 2009?","SELECT COUNT(record) FROM table_16864968_8 WHERE date = ""March 27, 2009""" Which team was the visitor with a record of 5-2-0?,"SELECT visitor FROM table_name_41 WHERE record = ""5-2-0""" How many courses are offered by the Computer Info. Systems department?,"SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Computer Info. Systems""" "Which Points is the highest one that has a Game smaller than 43, and a January larger than 8?",SELECT MAX(points) FROM table_name_64 WHERE game < 43 AND january > 8 "Matches W-L of 1-2, and a Team of spain had what seeding?","SELECT seeding FROM table_name_41 WHERE matches_w_l = ""1-2"" AND team = ""spain""" can you tell me all the enzymes that work in the cytosol?,"SELECT name from enzyme where location = ""Cytosol""" Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.,"SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" Which team played in the Boston Garden when the final score was L 118-130?,"SELECT team FROM table_name_18 WHERE location_attendance = ""boston garden"" AND score = ""l 118-130""" "What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?","SELECT party FROM table_name_50 WHERE counties_represented = ""howard"" AND delegate = ""turner, frank s. frank s. turner""" Find the last names of the students in third grade that are not taught by COVIN JEROME.,"SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname != ""COVIN"" AND T2.lastname != ""JEROME""" How many total credits are offered by each department?,"SELECT sum(credits) , dept_name FROM course GROUP BY dept_name" what are countries with mountains with height more than 5600,SELECT Country FROM mountain WHERE Height > 5600 What was the cargo value in 2005 with a ship size of all product carriers?,"SELECT 2005 FROM table_name_31 WHERE ship_size = ""all product carriers""" In what year was Terry Johnson nominated for a Tony award?,"SELECT COUNT(year) FROM table_name_63 WHERE award = ""tony award"" AND nominee = ""terry johnson""" How many shipments were delivered by the oldest truck model?,SELECT COUNT(*) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id GROUP BY T1.model_year ORDER BY T1.model_year ASC LIMIT 1 "What is the Frequency, when the Voltage is 3.3 V?","SELECT frequency FROM table_name_47 WHERE voltage = ""3.3 v""" Which race had a time of 1:24.35?,"SELECT race FROM table_name_90 WHERE time = ""1:24.35""" Who was replaced on 11 July?,"SELECT replaced_by FROM table_17327458_1 WHERE date_of_appointment = ""11 July""" What the win - loss recored for January 7?,"SELECT record FROM table_27698941_8 WHERE date = ""January 7""" Where is the Eastern Creek Raceway located?,"SELECT location___state FROM table_name_19 WHERE circuit = ""eastern creek raceway""" can you give me the last names of the authors?,SELECT lname FROM authors The Powerbook 100 model has what processor?,"SELECT processor FROM table_name_58 WHERE model = ""powerbook 100""" "What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004?","SELECT MIN(long) FROM table_name_81 WHERE name = ""kass, rob"" AND avg_g < -0.30000000000000004" What is the Away team when the home team was wycombe wanderers?,"SELECT away_team FROM table_name_9 WHERE home_team = ""wycombe wanderers""" "What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?","SELECT venue FROM table_name_60 WHERE result = ""2-0"" AND score = ""1 goal"" AND competition = ""1980 afc asian cup""" Name the average yeara for engine of renault v10 with points more than 4,"SELECT AVG(year) FROM table_name_19 WHERE engine = ""renault v10"" AND points > 4" What is the name of the shop that is hiring the largest number of employees?,SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1 "Show all artist name, age, and country ordered by the yeared they joined.","SELECT name , age , country FROM artist ORDER BY Year_Join" what is the total number of played when the goals for is more than 34 and goals against is more than 63?,SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63 Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies?,"SELECT spouse FROM table_name_54 WHERE father = ""ferdinand i of the two sicilies""" "What is Website, when License is Apache License 2.0?","SELECT website FROM table_name_55 WHERE license = ""apache license 2.0""" Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?,"SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)" "How much January has a Game smaller than 37, and an Opponent of detroit red wings?","SELECT COUNT(january) FROM table_name_67 WHERE game < 37 AND opponent = ""detroit red wings""" "What is the highest attendance for December 3, 1972 after week 12?","SELECT MAX(attendance) FROM table_name_30 WHERE date = ""december 3, 1972"" AND week > 12" Who was the opponent when there was a loss of Francisco (1-1)?,"SELECT opponent FROM table_name_7 WHERE loss = ""francisco (1-1)""" who was running where the winner is daniel montgomery,"SELECT candidates FROM table_2668378_13 WHERE incumbent = ""Daniel Montgomery""" What is the percentage of Terry McAuliffe that has a Date Administered on May 31 – june 2,"SELECT terry_mcauliffe FROM table_name_86 WHERE dates_administered = ""may 31 – june 2""" What is the name of the newspaper with the website liderinformativo.com ?,"SELECT name FROM table_name_17 WHERE website = ""liderinformativo.com""" List the branch name and city without any registered members.,"SELECT name , city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)" What notes are for years earlier than 2010?,SELECT notes FROM table_name_50 WHERE year < 2010 "What is the phone brand of the device model ""坚果手机""?",SELECT phone_brand FROM phone_brand_device_model2 WHERE device_model = '坚果手机' What is the average gross amount of money made in dollars?,SELECT avg ( gross_in_dollar ) FROM film "For the weather station which recorded the highest temperature above the 30-year normal, how many stores does it have?",SELECT store_nbr FROM relation WHERE station_nbr = ( SELECT station_nbr FROM weather ORDER BY depart DESC LIMIT 1 ) How about the total number of enrollments for just colleges that were founded after the year 1850 for each type of affiliation?,"SELECT affiliation, sum ( Enrollment ) FROM university WHERE founded > 1850 GROUP BY affiliation" "Which Date performed has a Position of bottom 3, and Scores by each individual judge of 5 + 5 + 4 = 14?","SELECT date_performed FROM table_name_12 WHERE position = ""bottom 3"" AND scores_by_each_individual_judge = 5 + 5 + 4 = 14" Find the title of course that is provided by Statistics but not Psychology departments.,SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' When 1873-12-25 is the founding date how many organizations are there?,"SELECT COUNT(organization) FROM table_28436909_4 WHERE founding_date = ""1873-12-25""" What is the average number of inspections done by the top 5 employees with the highest salary? List the names of the said employees.,"SELECT CAST(COUNT(DISTINCT T2.inspection_id) AS REAL) / 5, T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.title = 'Sanitarian' ORDER BY T1.salary DESC LIMIT 5" What is the date of the gp città di camaiore race?,"SELECT date FROM table_name_54 WHERE race_name = ""gp città di camaiore""" What is the production code of the episode that was watched by 3.81 million U.S. viewers? ,"SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = ""3.81""" Return the founded year for the school with the largest enrollment.,SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 Where did North Melbourne play as the home team?,"SELECT venue FROM table_name_37 WHERE home_team = ""north melbourne""" Which Stopping pattern has a Platform of [2777] mciver station platforms?,"SELECT stopping_pattern FROM table_name_50 WHERE platform = ""[2777] mciver station platforms""" Which is the most expensive wine?,SELECT * FROM WINE order by price desc limit 1 "Which Record has a Result of win, and a Streak of won 1, and a Game of 47?","SELECT record FROM table_name_47 WHERE result = ""win"" AND streak = ""won 1"" AND game = 47" Who was the home team when there was a record of 20–13–3?,"SELECT home FROM table_name_52 WHERE record = ""20–13–3""" "How many channel tv (dt)s are in austin, texas?","SELECT COUNT(channel_tv___dt__) FROM table_1353096_1 WHERE city_of_license__market = ""Austin, Texas""" What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?,SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1 What is the full name of the conference where paper number 5 was published?,SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Id = 5 In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?,"SELECT built FROM table_name_78 WHERE county = ""blount"" AND listed = ""1981-08-20"" AND location = ""cleveland""" How many constructions has a Wheel arrange- ment of 4-4-0?,"SELECT SUM(construct__tion_no) FROM table_name_7 WHERE wheel_arrange__ment = ""4-4-0""" "Return the login names of the students whose family name is ""Ward"".","SELECT login_name FROM Students WHERE family_name = ""Ward""" Who are the candidates for district virginia 12?,"SELECT candidates FROM table_2668336_24 WHERE district = ""Virginia 12""" What are the claim dates and settlement dates of all the settlements?,"SELECT Date_Claim_Made, Date_Claim_Settled FROM Settlements" "What is the id of the game ""Resident Evil Archives: Resident Evil""?",SELECT T.genre_id FROM game AS T WHERE T.game_name = 'Resident Evil Archives: Resident Evil' Find the distinct majors of students who have treasurer votes.,SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote How many students enrolled in class ACCT-211?,SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211' What was the record on October 24?,"SELECT record FROM table_name_41 WHERE date = ""october 24""" What's the total draws for Ararat when the byes are less than 2?,"SELECT SUM(draws) FROM table_name_97 WHERE wimmera_fl = ""ararat"" AND byes < 2" What is the average crowd at victoria park?,"SELECT AVG(crowd) FROM table_name_1 WHERE venue = ""victoria park""" "What surface has indian wells as the championship, with winner as the outcome?","SELECT surface FROM table_name_63 WHERE championship = ""indian wells"" AND outcome = ""winner""" "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?","SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode" Which Opposing team had an Against smaller Than 5?,SELECT opposing_teams FROM table_name_14 WHERE against < 5 List out 10 business ID that are being reviewed the most by users and list out what are top 3 business categories.,"SELECT T2.business_id, T3.category_name FROM Reviews AS T1 INNER JOIN Business_categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id GROUP BY T2.business_id ORDER BY COUNT(T1.user_id) DESC LIMIT 10" What's the comp when the score was 393?,"SELECT comp FROM table_name_81 WHERE score = ""393""" How many premierships for the commonwealth bank trophy league?,"SELECT premierships FROM table_name_25 WHERE league = ""commonwealth bank trophy""" How many customers have an address in Abu Dhabi city? List those customer names.,SELECT COUNT(T1.city_id) FROM city AS T1 INNER JOIN address AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id WHERE T1.city = 'Abu Dhabi' What is the manufacturer ID for Tomorrow?,SELECT Manufacturer_ID FROM manufacturer where name = 'Tomorrow' List down the nation keys and names in Africa.,"SELECT T1.n_name, T1.n_nationkey FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_name = 'AFRICA'" Who was the opponent on January 7?,"SELECT opponent FROM table_name_36 WHERE date = ""january 7""" List the names of aircrafts and that won matches at least twice.,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2 Name the airline for rank of 4,SELECT airline FROM table_name_98 WHERE rank = 4 What venue was the 2000 AFC Asian Cup qualification held at?,"SELECT venue FROM table_name_9 WHERE competition = ""2000 afc asian cup qualification""" Name the replaced by where date of vacancy is 31 december 2008 where position in table is 1st,"SELECT replaced_by FROM table_17039232_3 WHERE date_of_vacancy = ""31 December 2008"" AND position_in_table = ""1st""" Which colleges have both authors with submission score above 90 and authors with submission score below 80?,SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 Show the ids of the students who don't participate in any activity.,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in What city was the circuit of mallala motor sport park?,"SELECT city___state FROM table_name_48 WHERE circuit = ""mallala motor sport park""" How many climbers are there?,SELECT count(*) FROM climber What is the tag of the album with the highest amount of downloads?,SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched DESC LIMIT 1 How many students are enrolled in any type of accounting course? | Do you mean the course taught by some professor from the accounting department? | Yes,SELECT count ( * ) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' What was their record in week 11?,SELECT record FROM table_21839208_4 WHERE week = 11 What is the IATA of Madrid-Barajas Airport?,"SELECT iata FROM table_name_8 WHERE airport = ""madrid-barajas airport""" Which 2007–08 season has a Club of genoa c.f.c.?,"SELECT 2007 AS _08_season FROM table_name_49 WHERE club = ""genoa c.f.c.""" How many courses are there for basic or medium undergraduate courses?,SELECT COUNT(course_id) FROM course WHERE courseLevel = 'Level_300' What was the class that team Honda Britain was in with points higher than 0?,"SELECT class FROM table_name_34 WHERE team = ""honda britain"" AND points > 0" UK produced what genre of movies?,SELECT T2.genre FROM movies AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'UK' What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?,SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4 please list out the operating system | Can you please clarify which operating system do you need? | list out the all operating system on client accelerator,SELECT operating_system FROM web_client_accelerator Please show me unit price of books?,"select unit_price from Products where production_type_code = ""Books""" In what municipality were there 757.5 people per km2?,"SELECT municipality FROM table_216776_2 WHERE pop_density__per_km²_ = ""757.5""" What's the call sign if the branding is 1062 DXKI Koronadal?,"SELECT call_sign FROM table_name_6 WHERE branding = ""1062 dxki koronadal""" how many Student there,SELECT count ( * ) FROM STUDENT List down the films titles with the lowest replacement cost under the general audiences rating.,SELECT title FROM film WHERE replacement_cost = ( SELECT MIN(replacement_cost) FROM film ) What is the capital city and population of San Marino?,"SELECT T1.Capital, T2.Population FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'San Marino'" What was the average speed where the total time was 1:30.4842?,"SELECT avg_speed FROM table_23018775_3 WHERE total_time = ""1:30.4842""" Identify the operating hours of businesses in Black Canyon City with review count greater than average.,"SELECT T2.opening_time, T2.closing_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city = 'Black Canyon City' GROUP BY t2.business_id HAVING T1.review_count > AVG(T1.review_count)" "Give the number of images containing the object sample of ""suit"".",SELECT COUNT(T.IMG_ID) FROM ( SELECT T2.IMG_ID FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.OBJ_CLASS = 'suit' GROUP BY T2.IMG_ID ) T What are the first and last names of all customers who don't have an account?,"SELECT customer_first_name , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" "Please provide any two episodes' names that have the same keyword of ""1930s to 2020s"".",SELECT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword = '1930s to 2020s' LIMIT 2; "Which NFL team chose a position of DE when the pick was larger than 9, after round 5, and the overal was larger than 118?","SELECT nfl_team FROM table_name_91 WHERE overall > 118 AND pick > 9 AND round > 5 AND position = ""de""" Tell me the year for class of 125cc,"SELECT year FROM table_name_55 WHERE class = ""125cc""" "What's the record for October 8, 2000 before week 13?","SELECT record FROM table_name_61 WHERE week < 13 AND date = ""october 8, 2000""" What is the earliest year associated with 0 wins and 42 points?,SELECT MIN(year) FROM table_name_22 WHERE wins > 0 AND points = 42 Find the name and email of the users who have more than 1000 followers.,"SELECT name , email FROM user_profiles WHERE followers > 1000" Can you tell me where their offices are?,"SELECT prof_office from professor where prof_high_degree = ""Ph.D."" and dept_code = ""ACCT""" What is the premiere date of the american disney xd tron uprising site?,"SELECT series_premiere FROM table_29487895_2 WHERE source_s_ = ""American Disney XD Tron Uprising Site""" Which year did any college confer the most amount of degrees?,SELECT T3.year FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year ORDER BY t3.degrees DESC LIMIT 1 what is the paper id?,"select paperID from papers where title = ( SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University"" ) " Which staff have contacted which engineers? List the staff name and the engineer first name and last name.,"SELECT T1.staff_name , T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id" Find the country that has the most stadiums.,SELECT country FROM stadium GROUP BY country ORDER BY count(*) DESC LIMIT 1 Can you tell me the sum of FA Cup Goals that has the League Cup Goals larger than 0?,SELECT SUM(fa_cup_goals) FROM table_name_57 WHERE league_cup_goals > 0 What is the name of the department in the Building Mergenthaler?,"SELECT DName FROM DEPARTMENT WHERE Building = ""Mergenthaler""" What is the total amount of trees when district is leninsky?,"SELECT MAX(total_amount_of_trees) FROM table_10342194_3 WHERE district = ""Leninsky""" please tell me the name of pilot | Did you mean all the names in the pilot? | yes,SELECT Pilot_name from pilot How many entries are there for cyrillic name other names where settlement is idvor?,"SELECT COUNT(cyrillic_name_other_names) FROM table_2562572_43 WHERE settlement = ""Idvor""" How many classes are held in each department?,"SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code" Which airline does the aircraft with the fastest flight belong to?,SELECT T1.OP_CARRIER_AIRLINE_ID FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T1.ORIGIN = T2.Code WHERE T1.ACTUAL_ELAPSED_TIME IS NOT NULL AND T1.CRS_ELAPSED_TIME IS NOT NULL ORDER BY T1.ACTUAL_ELAPSED_TIME - T1.CRS_ELAPSED_TIME ASC LIMIT 1 What was the attendance of the match with motagua as the home team?,"SELECT AVG(attendance) FROM table_name_51 WHERE home = ""motagua""" What are the product id of orders with quantity 1?,select Product_ID from Order_Items where Order_Quantity = 1 In how many different states are banks located?,SELECT count(DISTINCT state) FROM bank What are the average age of all the members of the tennis club,"SELECT avg ( t3.age ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" What are the dates of the debates on the affirmative side?,SELECT T2.Date FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID "Among the movies released from 2001 to 2005, list down the titles and directors of the movies which had a total gross of more than 100% above the average.","SELECT T2.name, T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) BETWEEN '2001' AND '2005' AND CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) / ( SELECT SUM(CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL)) / COUNT(T3.movie_title) AS avg_gross FROM movies_total_gross AS T3 INNER JOIN director AS T4 ON T3.movie_title = T4.name WHERE SUBSTR(T3.release_date, LENGTH(T3.release_date) - 3, LENGTH(T3.release_date)) BETWEEN '2001' AND '2005' ) - 1 > 1" How many of the points difference lost equal 10?,"SELECT points_difference FROM table_20760802_1 WHERE lost = ""10""" What Rank has a 65 s Wicket?,"SELECT rank FROM table_name_25 WHERE s_wicket = ""65""" What's the fault description for that?,SELECT T1.fault_description FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1 "What is the first, middle, and last name of the earliest school graduate?","SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1" What are the grades of all the students in that course?,SELECT T1.enroll_grade FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' Name the number of jons team for 15x10,"SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = ""15x10""" "Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5?","SELECT MAX(pick__number) FROM table_name_32 WHERE name = ""william middleton"" AND round > 5" What record has @ ottawa senators as the opponent?,"SELECT record FROM table_name_93 WHERE opponent = ""@ ottawa senators""" Who won the womens singles event the year that Jonas Lyduch won?,"SELECT womens_singles FROM table_12163387_1 WHERE mens_singles = ""Jonas Lyduch""" "What surface was played on with a score of 6–4, 6–3 and on 4 May 1992?","SELECT surface FROM table_name_36 WHERE score = ""6–4, 6–3"" AND date = ""4 may 1992""" what's the score where record is 0–2,"SELECT score FROM table_11964047_5 WHERE record = ""0–2""" What is the average Total with a Bronze that is larger than 1?,SELECT AVG(total) FROM table_name_46 WHERE bronze > 1 "Find the number of clubs where ""Tracy Kim"" is a member.","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Tracy"" AND t3.lname = ""Kim""" "What is the difference in order number from ""WARE-MKL1006"" and ""WARE-NBV1002""?","SELECT SUM(IIF(WarehouseCode = 'WARE-MKL1006', 1, 0)) - SUM(IIF(WarehouseCode = 'WARE-NBV1002', 1, 0)) AS difference FROM `Sales Orders`" What is the all games for Maryland?,"SELECT all_games FROM table_16372244_1 WHERE team = ""Maryland""" What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?,"SELECT final_score FROM table_name_23 WHERE visiting_team = ""indianapolis colts"" AND date = ""november 24""" Show names of actors and names of musicals they are in.,"SELECT T1.Name , T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID" Who directed episode number 23 in the season?,"SELECT directed_by FROM table_27832075_2 WHERE episode__number = ""23""" How many players born in Toronto have won the All-Rookie award?,SELECT COUNT(T1.playerID) FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'All-Rookie' AND T1.birthCity = 'Toronto' Find the average number of followers for the users who had some tweets.,SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets) What are all the distinct asset models?,SELECT DISTINCT asset_model FROM Assets Name the vacator for tennessee 1st,"SELECT vacator FROM table_1802522_4 WHERE district = ""Tennessee 1st""" "what is the number of series where the airdate is december 26, 1964?","SELECT COUNT(series__number) FROM table_25800134_9 WHERE airdate = ""December 26, 1964""" How many transcripts are released?,SELECT count(*) FROM Transcripts What was the surface when he played with John Alexander? ,"SELECT surface FROM table_26309085_1 WHERE partner = ""John Alexander""" Who was the home team when Fitzroy was the away team?,"SELECT home_team FROM table_name_33 WHERE away_team = ""fitzroy""" Which date has a PSOE of 36.1%?,"SELECT date FROM table_name_86 WHERE psoe = ""36.1%""" "Show the addresses and phones of all the buildings managed by ""Brenden"".","SELECT building_address , building_phone FROM Apartment_Buildings WHERE building_manager = ""Brenden""" What player's original team are the Oakland Raiders?,"SELECT player FROM table_name_96 WHERE original_nfl_team = ""oakland raiders""" Show the ids of all employees who don't destroy any document.,SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed "How many Picks have a Position of kicker, and an Overall smaller than 137?","SELECT SUM(pick__number) FROM table_name_59 WHERE position = ""kicker"" AND overall < 137" Calculate the average budget of the movies directed by Jaume Collet-Serra.,SELECT CAST(SUM(T1.budget) AS REAL) / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Jaume Collet-Serra' AND T2.job = 'Director' What are the names of all games that were played for less than 1000 hours?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum ( hours_played ) < 1000 Who was the writer when Parkville Pictures Ltd was the recipient?,"SELECT writer_s_ FROM table_name_57 WHERE recipient = ""parkville pictures ltd""" In what year did the school with enrollment of 650 leave?,SELECT left FROM table_1973816_2 WHERE enrollment = 650 Hello there! Which roll code on this list is the most common?,SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 What is the total number of Races when there were more than 8 wins?,SELECT COUNT(races) FROM table_name_15 WHERE wins > 8 "Describe the ID, city and region of the stores which are in Allen country.","SELECT DISTINCT T2.StoreID, T2.`City Name`, T1.Region FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T2.County = 'Allen County'" "How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?","SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = ""Cologne , Germany Carpet – $75,000 – S32/D16"" AND champion = ""Matt Doyle 1–6, 6–1, 6–2""" Find the names of channels that are not owned by CCTV.,SELECT name FROM channel WHERE OWNER != 'CCTV' Which title list has not been updated for the longest period of time? State how long it has not been updated?,"SELECT list_title , datetime(CURRENT_TIMESTAMP, 'localtime') - datetime(list_update_timestamp_utc) FROM lists ORDER BY list_update_timestamp_utc LIMIT 1" What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio?,"SELECT MAX(attendance) FROM table_name_69 WHERE date = ""16 august 2008"" AND home = ""deportes savio""" Which Game has a Nugget points of 89?,SELECT MIN(game) FROM table_name_99 WHERE nuggets_points = 89 What is the total attendance for the date of october 5?,"SELECT SUM(attendance) FROM table_name_3 WHERE date = ""october 5""" What was the lowest total with a finish of t47?,"SELECT MIN(total) FROM table_name_88 WHERE finish = ""t47""" Can you add rating stars too?,"SELECT T2.title , T2.year, T2.DIRECTOR, t1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" how many course are presented on the table | Did you mean to ask for the number of entries in the table course? | exactly,SELECT COUNT ( * ) FROM course What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips,"SELECT name FROM station WHERE city = ""Palo Alto"" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*) > 100" Name the episode for travis brown,"SELECT episode FROM table_2140071_12 WHERE coach = ""Travis Brown""" Who was the alderman of the legislative district where case No. JB103470 took place? Give the full name.,"SELECT T1.alderman_first_name, T1.alderman_last_name FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.case_number = 'JB103470'" What is the English title of the film directed by Fernando Meirelles?,"SELECT english_title FROM table_name_53 WHERE director_s_ = ""fernando meirelles""" What is the mail date of the document with id 7?,SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7; "For the goalie who had the most shutouts in 2010, what's his catching hand?",SELECT T2.shootCatch FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2010 GROUP BY T2.shootCatch ORDER BY SUM(T1.SHO) DESC LIMIT 1 How many cities are there in England?,SELECT COUNT(ID) FROM City WHERE District = 'England' "How many ""Good for Kids"" Yelp_Businesses are open everyday of the week?","SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business_Attributes AS T3 ON T1.business_id = T3.business_id INNER JOIN Attributes AS T4 ON T4.attribute_id = T4.attribute_id WHERE T2.day_id IN (1, 2, 3, 4, 5, 6, 7) AND T4.attribute_name = 'Good for Kids' AND T3.attribute_value = 'true'" How many movies did Wolfgang Reitherman direct?,SELECT COUNT(name) FROM director WHERE director = 'Wolfgang Reitherman' Show all headquarters without a company in banking industry.,SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' Return the most common first name among all actors.,SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1 What is the average household income of Glendale?,SELECT AVG(`Household Income`) FROM `Store Locations` WHERE `City Name` = 'Glendale' What's the value for utah when texas is humphrey?,"SELECT utah FROM table_name_80 WHERE texas = ""humphrey""" What is the name corresponding to the accoung with the lowest sum of checking and savings balances?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1 Name the tally with total less than 27 and average more than 3.41,SELECT tally FROM table_name_86 WHERE total < 27 AND average > 3.41 "What are the names of different tracks, and how many races has each had?","SELECT T2.name , count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id" What's the maximum wickets taken by players named Bill Lockwood?,"SELECT MAX(wickets_taken) FROM table_2482547_5 WHERE name = ""Bill Lockwood""" "ok. What is the venue of the competition ""1994 FIFA World Cup qualification"" hosted by ""Nanjing"" ( Jiangsu )""?","SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = ""Nanjing ( Jiangsu ) "" AND T3.competition = ""1994 FIFA World Cup qualification""" User 58149469's critic on which film got 1 like and 2 comments?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 58149469 AND T1.critic_likes = 1 AND T1.critic_comments = 2 "If the equation is 6 × 9² + 6 × 9 + 6, what is the 2nd throw?","SELECT MAX(2 AS nd_throw) FROM table_17265535_7 WHERE equation = ""6 × 9² + 6 × 9 + 6""" Perfect! Could you tell me which payment ID over $5.00 has the most recent payment date?,SELECT payment_id FROM payment where amount>5 ORDER BY last_update DESC LIMIT 1 List the names of technicians in ascending order of age.,SELECT Name FROM technician ORDER BY Age ASC What is the description of the chapter where the character whose abrreviated name is 1Play appeared first?,SELECT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id INNER JOIN characters AS T3 ON T1.character_id = T3.id WHERE T3.Abbrev = '1Play' ORDER BY T1.chapter_id LIMIT 1 "How many terms began when the term ended in January 3, 1989?","SELECT COUNT(term_began) FROM table_197446_1 WHERE term_ended = ""January 3, 1989""" What are the transaction IDs of those results?,SELECT transaction_id FROM TRANSACTIONS WHERE share_count > 100 What is the percentage of books that cost greater than $10 and were ordered by customer Ruthanne Vatini?,SELECT CAST(SUM(CASE WHEN T1.price > 10 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Ruthanne' AND T3.last_name = 'Vatini' What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4?,"SELECT COUNT(wins) FROM table_name_79 WHERE tournament = ""u.s. open"" AND top_25 < 4" How many men from the Ukraine?,"SELECT COUNT(event_4_carwalk) FROM table_24302700_2 WHERE nationality = ""Ukraine""" Which competition was ranked 9?,SELECT competition FROM table_name_53 WHERE rank = 9 what's the minimum species in the peruvian amazon with taxonomy s fern ( pteridophyta ),"SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE taxonomy = ""s Fern ( Pteridophyta )""" What was the competition in 2003?,SELECT competition FROM table_name_76 WHERE year = 2003 Did he have any exhibitions?,"SELECT name FROM artist WHERE artist_id IN ( SELECT artist_id FROM exhibition ) AND name = ""Jeff Sluman""" How many teams picked Jason Webb?,"SELECT COUNT(pick) FROM table_name_62 WHERE player = ""jason webb""" "What is Home Team, when Date is ""22 Nov 1989"", and when Away Team is ""Bath City""?","SELECT home_team FROM table_name_85 WHERE date = ""22 nov 1989"" AND away_team = ""bath city""" Find the name and capacity of the dorm with least number of amenities.,"SELECT T1.dorm_name , T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1" Can you list the name of the countries that have perpetrators with injures more than 50?,SELECT Country FROM perpetrator WHERE Injured > 50 Show me all the departments,SELECT * FROM department how many students are there?,SELECT count ( * ) from student Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1,SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 1 "For each distinct test result, find the number of students who got the result.","SELECT test_result , COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC" On what date was the away team Bournemouth?,"SELECT date FROM table_name_24 WHERE away_team = ""bournemouth""" What are the states and names of all colleges that didn't accept students in the tryout decision?,"select state, enr from college where cName not in ( SELECT DISTINCT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = ""yes"" ) " What rounds did Roy Salvadori drive for David Brown Corporation?,"SELECT rounds FROM table_name_98 WHERE entrant = ""david brown corporation"" AND driver = ""roy salvadori""" Thank you for that! Can you tell me what the most popular payment method is?,SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count ( * ) DESC LIMIT 1 Movies with rating 3 are viewed by audiences in which distinct age group?,SELECT DISTINCT T2.age FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating = 3 What is average Top 10 with 0 wins?,SELECT AVG(top_10) FROM table_name_93 WHERE wins < 0 What is the number of public that was there when the vote percentage was 22.9%?,"SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = ""22.9%""" Find the name of the campuses opened before 1800.,SELECT campus FROM campuses WHERE YEAR < 1800 "What's the number of the game played on January 2, 1936?","SELECT MIN(number) FROM table_name_10 WHERE date = ""january 2, 1936""" What is listed in p when the type is listed as free agent 1?,"SELECT p FROM table_17634290_7 WHERE type = ""Free agent 1""" Which city has an ICAO of ZSXZ?,"SELECT city FROM table_name_61 WHERE icao = ""zsxz""" Which manufacturer has the most number of shops? List its name and year of opening.,"SELECT open_year , name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1" "What is the total number of Total when the Silver is less than 2, and a Bronze is less than 0?",SELECT COUNT(total) FROM table_name_70 WHERE silver < 2 AND bronze < 0 Which visitor lives in Minnesota?,"SELECT visitor FROM table_name_23 WHERE home = ""minnesota""" Find the name of all customers.,SELECT customer_name FROM customers What are the the University of Richmond's school colors?,"SELECT colors FROM table_1221089_1 WHERE institution = ""University of Richmond""" How much is the price of menu with image ID 4000009194?,SELECT T3.price FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id WHERE T2.image_id = 4000009194 "Show names and seatings, ordered by seating for all tracks opened after 2000.","SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating" List the names of the films that are more than 180 minutes long.,SELECT title FROM film WHERE length > 180 Show locations and nicknames of schools.,"SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID;" how many bubbles with category being input,"SELECT COUNT(bubbles) FROM table_1507852_5 WHERE category = ""Input""" "Which tournament has hard as the surface and apr. 12, 1998 as the date?","SELECT tournament FROM table_name_78 WHERE surface = ""hard"" AND date = ""apr. 12, 1998""" "Which policy had the most, again?",SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count ( * ) DESC LIMIT 1 What are the different names and credit scores of customers who have taken a loan?,"SELECT DISTINCT T1.cust_name , T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id" Which title has a production number of 627?,"SELECT title FROM table_name_21 WHERE production_number = ""627""" Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?,SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 Name the screening completed for screening started 23 january 2006,"SELECT screening_completed FROM table_name_22 WHERE screening_started = ""23 january 2006""" What is the 1880 figure when 1860 is N/A and 1910 is 494?,"SELECT 1880 FROM table_name_19 WHERE 1860 = ""n/a"" AND 1910 = 494" What is the 1st prize at the U.S. Open?,"SELECT 1 AS st_prize___$__ FROM table_name_69 WHERE tournament = ""u.s. open""" "WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?","SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = ""shinichi fukushima"" AND winner = ""jeremy hunt""" What is the fewest games lost by Paulistano with more than 39 points?,"SELECT MIN(lost) FROM table_name_85 WHERE team = ""paulistano"" AND points > 39" "Which Record has a Location/Attendance of palace of auburn hills 8,108?","SELECT record FROM table_name_22 WHERE location_attendance = ""palace of auburn hills 8,108""" What was the record after the game in which Rosales (1-1) took the loss?,"SELECT record FROM table_name_95 WHERE loss = ""rosales (1-1)""" What are the types of competition and number of competitions for that type?,"SELECT Competition_type , COUNT(*) FROM competition GROUP BY Competition_type" "WHAT IS THE BUDGET WHEN THE WORLDWIDE BOX OFFICE IS $363,398,565?","SELECT budget FROM table_name_28 WHERE worldwide = ""$363,398,565""" List all the countries in Asia.,SELECT Name FROM Country WHERE Continent = 'Asia' List the PG-13 romantic comedy movie titles and their release dates.,"SELECT movie_title, release_date FROM movies_total_gross WHERE MPAA_rating = 'PG-13' AND genre = 'Romantic Comedy'" "What was the location for the match held on April 11, 2007, which ended with a score of 0-0?","SELECT venue FROM table_name_90 WHERE score = ""0-0"" AND date = ""april 11, 2007""" How much money does the player with a 69-70-72-64=275 score have?,SELECT money___£__ FROM table_name_20 WHERE score = 69 - 70 - 72 - 64 = 275 What was the qualifying time of Jim Rathmann in 1959?,"SELECT qual FROM table_name_97 WHERE year = ""1959""" What is the to par of the player with a 68-67-75=210?,SELECT to_par FROM table_name_99 WHERE score = 68 - 67 - 75 = 210 display the average salary of employees for each department who gets a commission percentage.,"SELECT department_id , AVG(salary) FROM employees WHERE commission_pct != ""null"" GROUP BY department_id" What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3?,"SELECT Final AS week_12 FROM table_name_8 WHERE week_1 = ""deepak p rahul"" AND week_3 = ""amit carol""" What is the lowest number of games played by the player with 50 steals?,SELECT MIN(games_played) FROM table_22993636_5 WHERE steals = 50 "How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?","SELECT laps FROM table_name_17 WHERE grid > 11 AND bike = ""honda cbr1000rr"" AND time = ""+42.633""" "If the player is Jasmine Wynne, what is the minimum number of steals?","SELECT MIN(steals) FROM table_23346303_5 WHERE player = ""Jasmine Wynne""" How many drivers are there?,SELECT count ( * ) FROM driver What is the name of the university that was drafted from the player who won the NBA Finals MVP in 1990?,SELECT T1.college FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1990 AND T2.award = 'Finals MVP' What is the category number that was released in November 2007?,"SELECT cat__number FROM table_name_85 WHERE release_date = ""november 2007""" What is the name of company with the company id 4?,SELECT name from companies where id = 4 Who made the decision on the game where the record was 27-28-11?,"SELECT decision FROM table_27537518_9 WHERE record = ""27-28-11""" What is the Set 1 of the 45:40 Total?,"SELECT set_1 FROM table_name_73 WHERE total = ""45:40""" Show all cities along with the number of drama workshop groups in each city.,"SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town" Which time has eddie miller as opponent?,"SELECT time FROM table_name_11 WHERE opponent = ""eddie miller""" What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?,"SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" What year in the program do the students with more than 2 advisors are in?,SELECT T2.yearsInProgram FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.student = 1 GROUP BY T2.p_id HAVING COUNT(T2.p_id) > 2 What is the total donation amount for the project 'Engaging Young Readers with a Leveled Classroom Library'?,SELECT SUM(T2.donation_to_project) + SUM(T2.donation_optional_support) FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Engaging Young Readers with a Leveled Classroom Library ' What is the number of group b winner for francavilla?,"SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = ""Francavilla""" WHAT ARE THE CUSTOMER ID FOR ALL THE CUSTOMERS WHOSE ORDERS WERE CANCELLED?,SELECT distinct customer_id from Customer_Orders where order_status = 'Cancelled' "What are the different ship flags, and how many ships have each?","SELECT count(*) , flag FROM ship GROUP BY flag" "For Getafe CF, what is the highest number of goals scored?","SELECT MAX(goals) FROM table_name_74 WHERE team = ""getafe cf""" Show all main industry and total market value in each industry.,"SELECT main_industry, SUM(market_value) FROM company GROUP BY main_industry" What was the decision from the Vancouver home game on April 21?,"SELECT decision FROM table_name_2 WHERE home = ""vancouver"" AND date = ""april 21""" Count the number of customers who are active.,SELECT count(*) FROM customer WHERE active = '1' "What is the address of the client who made a complaint via postal mail on March 14, 2012?","SELECT T1.address_1, T1.address_2 FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Date received` = '2012-03-14' AND T2.`Submitted via` = 'Postal mail'" What is the novelty of Tylocephale?,"SELECT novelty FROM table_name_14 WHERE name = ""tylocephale""" List the names of technicians who have not been assigned to repair machines.,SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment) Who is the youngest captain?,SELECT t1.name FROM captain as t1 ORDER BY t1.age LIMIT 1 "What are the names and descriptions of the photos taken at the tourist attraction ""film festival""?","SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = ""film festival""" What was the engine when the chassis was a porsche 718??,"SELECT engine FROM table_name_87 WHERE chassis = ""porsche 718""" "What is Cabinet, when Year is before 2001, when Lijsttrekker is ""No Elections"", when Fractievoorzitter is ""Hans Van Mierlo"", and when Chair is ""S. Van Der Loo""?","SELECT cabinet FROM table_name_79 WHERE year < 2001 AND lijsttrekker = ""no elections"" AND fractievoorzitter = ""hans van mierlo"" AND chair = ""s. van der loo""" What is Brown's transfer window?,"SELECT transfer_window FROM table_name_52 WHERE name = ""brown""" Find the arriving date and the departing date of the dogs that received a treatment.,"SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id" What is the 2006 value with a 1r in 2011?,"SELECT 2006 FROM table_name_56 WHERE 2011 = ""1r""" Which customers made at least two orders?,"SELECT * , count ( * ) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count ( * ) > = 2" "Who belong to the institution ""University of Oxford""? Show the first names and last names.","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Oxford""" Name the number of events for 3031,SELECT COUNT(events) FROM table_24108789_6 WHERE points = 3031 Find the average number of absences for each student.,SELECT AVG(month) FROM longest_absense_from_school How many Yelp_Business in Arizona has user no. 3 reviewed?,SELECT COUNT(T2.business_id) FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.state LIKE 'AZ' AND T1.user_id = 3 show the institute type with highest number of institutions,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1 which examples are pronounced ɪs in american,"SELECT examples FROM table_17798093_20 WHERE american = ""ɪs""" "Show the apartment type codes and apartment numbers in the buildings managed by ""Kyle"".","SELECT T2.apt_type_code , T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = ""Kyle""" What position does krylja sovetov (russia) play?,"SELECT position FROM table_2781227_9 WHERE college_junior_club_team = ""Krylja Sovetov (Russia)""" Count the number of schools.,SELECT count(*) FROM school Which model of the car has the minimum horsepower?,SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower LIMIT 1 Which product received the most complaints from elder clients?,SELECT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.age > 65 ORDER BY T1.client_id DESC LIMIT 1 Which episodes of the Law & Order have been nominated for the Primetime Emmy Awards?,SELECT DISTINCT episode_id FROM Award WHERE award_category = 'Primetime Emmy' "Among the wines that have prices higher than 50, which ones use red color grapes?","SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red"" AND T2.price > 50" What is the arrangement for bets3ab 3alia nafsy?,"SELECT arrangement FROM table_28005100_1 WHERE title = ""Bets3ab 3alia Nafsy""" Which Att has a Time of 2:14?,"SELECT att FROM table_name_75 WHERE time = ""2:14""" How many reasons for change were listed when Edward Hempstead was the successor?,"SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = ""Edward Hempstead""" Who has a friend that is from new york city?,SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city' Show the names of all airports with elevation over 4000.,SELECT name FROM airports WHERE elevation > 4000 Describe the inspection types and violation descriptions under moderate risk category for ART's CAFÉ.,"SELECT DISTINCT T2.type, T1.description FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN businesses AS T3 ON T2.business_id = T3.business_id WHERE T3.name = 'ART''S CAFÉ' AND T1.risk_category = 'Moderate Risk'" What is the most common college id?,SELECT college_id FROM member GROUP BY college_id ORDER BY COUNT ( * ) DESC LIMIT 1 What year was trio brdeact wind allass the entrant?,"SELECT year FROM table_name_16 WHERE entrant = ""trio brdeact wind allass""" What did Melbourne score as the home team?,"SELECT home_team AS score FROM table_name_88 WHERE home_team = ""melbourne""" What are the distinct districts for elections?,SELECT DISTINCT District FROM election What number episode in the season was directed by Paul Adelstein? ,"SELECT MAX(no_in_season) FROM table_27374740_1 WHERE directed_by = ""Paul Adelstein""" display the employee id and salary of all employees who report to Payam (first name).,"SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )" can you show me a list of headquarters?,SELECT Headquarter FROM manufacturers How many distinct cities does the employees live in?,SELECT COUNT(DISTINCT city) FROM EMPLOYEE Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf),"SELECT haat FROM table_name_17 WHERE channels_tv___rf = ""31 (psip) 44 (uhf)""" Give the distinct headquarters of manufacturers.,SELECT DISTINCT headquarter FROM manufacturers How many customers used Visa?,SELECT count ( DISTINCT customer_name ) FROM Customers WHERE payment_method = 'Visa' What's the lowest capacity when the margin is 03:30?,"SELECT MIN(capacity) FROM table_name_77 WHERE margin = ""03:30""" What was the % 2006 rating in 2006 where there were 5 seats?,SELECT _percentage_2006 FROM table_21132404_1 WHERE seats_2006 = 5 "What are their phone numbers, please?",SELECT phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) > 1 What is the name of that room?,SELECT roomname FROM Rooms where baseprice = 250 What are their hire dates?,"SELECT first_name ,HIRE_DATE FROM employees WHERE first_name LIKE '%m'" "Which Player has a Round larger than 5, and a Position of (g)?","SELECT player FROM table_name_1 WHERE round > 5 AND position = ""(g)""" WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING?,"SELECT 2 AS nd_leg FROM table_name_22 WHERE team_1 = ""sporting""" "What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?",SELECT MIN(group) FROM table_name_99 WHERE fraction < 0.000748 AND half_life__s_ = 55.72 AND decay_constant__s_−1__ > 0.012400000000000001 What is the pressure in ultra high vacuum?,"SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = ""Ultra high vacuum""" What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?,SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones') How long has the NHL player been playing during the year when he recorded the least number of times being on the ice when a goal is scored for the team versus against the team? Indicate his full name.,"SELECT DISTINCT T3.firstNHL - T1.year, T3.nameGiven , T3.firstName, T3.lastName FROM Scoring AS T1 INNER JOIN Teams AS T2 ON T2.tmID = T1.tmID INNER JOIN Master AS T3 ON T1.playerID = T3.playerID GROUP BY T3.firstName, T3.lastName, T3.nameGiven, T3.firstNHL - T1.year, T3.firstName, T3.lastName ORDER BY SUM(T1.`+/-`) ASC LIMIT 1" What School/Club Team is Player Aaron Williams from?,"SELECT school_club_team FROM table_name_5 WHERE player = ""aaron williams""" How many distinct allergies are there?,SELECT count(DISTINCT allergytype) FROM Allergy_type Name the score for 2015 afc asian cup qualification,"SELECT score FROM table_name_73 WHERE competition = ""2015 afc asian cup qualification""" How many eateries applied in 2012?,"SELECT COUNT(business_id) FROM businesses WHERE STRFTIME('%Y', application_date) = '2012'" What is Kenneth Charles's position title?,SELECT T2.positiontitle FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'Kenneth' AND T1.lastname = 'Charles' What is every event date on Sunday with a starting time of 9:30 am?,"SELECT event_date FROM table_28003469_1 WHERE event_day = ""Sunday"" AND starting_time = ""9:30 am""" What is the name of the movie whose critic received the highest number of likes related to the critic made by the user rating the movie?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_likes DESC LIMIT 1 "WHAT IS THE RADICAL WITH gǔ, AND STROKE COUNT OF 7?","SELECT radical__variants_ FROM table_name_81 WHERE pīnyīn = ""gǔ"" AND stroke_count = 7" What are the most common reigns of wrestlers?,SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT ( * ) DESC LIMIT 1 Can you please show which instructors are teaching those courses?,SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code Which Oracle Corporation product has a Java EE compatibility of 1.4?,"SELECT product FROM table_name_80 WHERE java_ee_compatibility = ""1.4"" AND vendor = ""oracle corporation""" How many matches were played in Season 7?,SELECT COUNT(Match_Id) FROM `Match` WHERE Season_Id = 7 Which customer addresses are no longer active?,SELECT DISTINCT T1.street_name FROM address AS T1 INNER JOIN customer_address AS T2 ON T1.address_id = T2.address_id INNER JOIN address_status AS T3 ON T3.status_id = T2.status_id WHERE T3.address_status = 'Inactive' How many buildings are there?,SELECT count(*) FROM building Which date was hermanos rodríguez the location?,"SELECT date FROM table_name_37 WHERE location = ""hermanos rodríguez""" "What is the average Finish, when Team is ""Buck Baker"", and when Start is less than 13?","SELECT AVG(finish) FROM table_name_39 WHERE team = ""buck baker"" AND start < 13" "Tell me the name of the staff in charge of the attraction called ""US museum"".","SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = ""US museum""" What are the different names of friends who are younger than the average age for a friend?,SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person) Name the most starts for 6 wins,SELECT MAX(starts) FROM table_2725949_6 WHERE wins = 6 Name the Trofeo Fast team for roberto visentini,"SELECT trofeo_fast_team FROM table_name_58 WHERE winner = ""roberto visentini""" Find the average number of bedrooms of all the apartments.,SELECT avg(bedroom_count) FROM Apartments Where did BR Doctrove come from?,SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Umpire AS T2 ON T2.Umpire_Country = T1.Country_Id WHERE T2.Umpire_Name = 'BR Doctrove' What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene,"SELECT venue FROM table_1670921_1 WHERE batting_partners = ""Mahela Jayawardene and Prasanna Jayawardene""" Who had a Qualifying 2 time over 58.669 for Team Australia?,"SELECT name FROM table_name_68 WHERE qual_2 > 58.669 AND team = ""team australia""" How many people teaches course no.11?,SELECT COUNT(*) FROM taughtBy WHERE course_id = 11 show me the tweets tweeted by them. | do you want to show all the info of the tweets? | yes,SELECT * FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid What about international passengers?,SELECT sum ( International_Passengers ) FROM airport What is the lowest total medals for the united states who had more than 11 silver medals?,"SELECT MIN(total) FROM table_name_80 WHERE country = ""united states"" AND silver > 11" Name the most rank for wins more than 0 and events of 26,SELECT MAX(rank) FROM table_name_58 WHERE events = 26 AND wins > 0 Which college has the men's nickname of the blazers?,"SELECT institution FROM table_10577579_3 WHERE men’s_nickname = ""Blazers""" "List down the business ID with a star range from 3 to 5, located at Chandler.",SELECT business_id FROM Business WHERE stars >= 3 AND stars < 6 AND city = 'Chandler' "How many images have ""keyboard"" as their object class?",SELECT COUNT(T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'keyboard' What Winning team has 22 July as a Date?,"SELECT winning_team FROM table_name_79 WHERE date = ""22 july""" include station id in the list,"SELECT t1.network_name , t1.services,station_id FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id" How many no.9 items from store no.11 were sold on 2012/12/7?,SELECT units FROM sales_in_weather WHERE `date` = '2012-12-07' AND store_nbr = 11 AND item_nbr = 9 What is the role of the aircraft that has a registration of s5-hpg s5-hpc?,"SELECT role FROM table_name_26 WHERE registration = ""s5-hpg s5-hpc""" Provide any four valid Journal ID along with short name and full name of the papers which were made in 2013.,"SELECT DISTINCT T2.JournalId, T1.ShortName, T1.FullName FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2013 AND T2.JournalId != 0 AND T2.JournalId != -1 LIMIT 4" what's the capacity with team being berwick rangers,"SELECT capacity FROM table_14003108_1 WHERE team = ""Berwick Rangers""" "Hello, can you find me the names of the furniture with less then 6 components?",SELECT name FROM furniture where Num_of_Component < 6 What is the score for 17 April 2013?,"SELECT score FROM table_name_33 WHERE date = ""17 april 2013""" "What surface was the November 5, 1995 match played on?","SELECT surface FROM table_name_33 WHERE date = ""november 5, 1995""" What are the names of buildings sorted in descending order of building height?,SELECT name FROM buildings ORDER BY Height DESC what is the first name of the instructor who teaches the least number of courses?,"SELECT T2.Fname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count ( * ) LIMIT 1" What is Claude Harmon's Place?,"SELECT place FROM table_name_37 WHERE player = ""claude harmon""" What is the total with a 74 rank by average for 8th place?,"SELECT total FROM table_name_70 WHERE rank_by_average = ""74"" AND place = ""8th""" What is the sum of the roll with an area of Waikaka?,"SELECT SUM(roll) FROM table_name_11 WHERE area = ""waikaka""" "What are the types of vocals used in the song ""Demon Kitty Rag""?","SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Demon Kitty Rag""" What is the GNP of the least crowded city in the world?,SELECT T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population ASC LIMIT 1 "Show the distinct fate of missions that involve ships with nationality ""United States""","SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = ""United States""" What are the maximum and minimum age of students with major 600?,"SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600" What are the ids of stations that are located in San Francisco and have average bike availability above 10.,"SELECT id FROM station WHERE city = ""San Francisco"" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available) > 10" Which club has 565 points?,"SELECT club FROM table_13758945_1 WHERE points_for = ""565""" "Who was the opponent for the game that had 90,287 in attendance?","SELECT opponent FROM table_name_77 WHERE attendance = ""90,287""" Name the sum of attendance for round 3,"SELECT SUM(attendance) FROM table_name_22 WHERE round = ""round 3""" What is the name of the platform used for various computers and consoles?,"SELECT platform FROM table_name_11 WHERE system = ""various computers and consoles""" How much is the GDP for a population density of 254.7?,"SELECT gdp__ppp__$m_usd FROM table_name_7 WHERE population_density__per_km²_ = ""254.7""" What is the average age of all gymnasts?,SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID "What week number was the kickoff time cbs 1:00pm, with 60,473 people in attendance?","SELECT COUNT(week) FROM table_name_12 WHERE kickoff_time = ""cbs 1:00pm"" AND attendance = ""60,473""" What is the winner women and third is italy and runner-up is finland?,"SELECT winner AS Women FROM table_1216097_7 WHERE third = ""Italy"" AND runner_up = ""Finland""" When was the school with the largest enrollment founded?,SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 "Provide the title, release year and the tag associated with the live album that has the highest number of downloads?","SELECT T1.groupName, T1.groupYear, T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'live album' ORDER BY T1.totalSnatched DESC LIMIT 1" What are the titles from those 2 directors?,SELECT T1.title FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title What is the Win% of the 1989-90 Team?,"SELECT win_percentage FROM table_name_44 WHERE team = ""1989-90""" "Who was the opponent on December 2, 1962?","SELECT opponent FROM table_name_8 WHERE date = ""december 2, 1962""" and from Wales too,"SELECT Name FROM journalist WHERE Nationality = ""England"" OR Nationality = ""Wales""" "What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?","SELECT date FROM table_name_45 WHERE athlete = ""yelena isinbayeva"" AND record = ""4.90m(16ft0¾in)""" What is the number of members that have boroughs of Bandon Bridge?,"SELECT COUNT(members) FROM table_24329520_8 WHERE borough = ""Bandon Bridge""" Which Season has a Third of colin hodgson?,"SELECT season FROM table_name_47 WHERE third = ""colin hodgson""" How many trains are running west?,SELECT COUNT(id) FROM trains WHERE direction = 'west' What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?,"SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE web_thickness__mm_ = ""4.7""" Name the average rating % for shandong satellite tv and share % less than 1.74,"SELECT AVG(rating___percentage_) FROM table_name_13 WHERE channel = ""shandong satellite tv"" AND share___percentage_ < 1.74" What are the names and countries of origin for the artists who produced the top three highly rated songs.,"SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3" How many courses does the Computer Info. Systems department offer?,"SELECT count ( * ) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Computer Info. Systems""" What are the ages of the students with the last name Lee?,SELECT age from Student where LName = 'Lee' "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.","SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'" Name the contestant for villa hermosa,"SELECT contestant FROM table_21346767_3 WHERE hometown = ""Villa Hermosa""" Who is the mixed doubled on the tour korea super series?,"SELECT mixed_doubles FROM table_27753492_2 WHERE tour = ""Korea Super Series""" "What is the outcome of the match with a score of 6–4, 6–1?","SELECT outcome FROM table_name_39 WHERE score = ""6–4, 6–1""" Where's Foon Yue Tseng's office located at? Give the detailed address.,"SELECT T1.addressLine1, T1.addressLine2 FROM offices AS T1 INNER JOIN employees AS T2 ON T1.officeCode = T2.officeCode WHERE T2.firstName = 'Foon Yue' AND T2.lastName = 'Tseng'" What was the lowest Attendance during Week 12?,SELECT MIN(attendance) FROM table_name_90 WHERE week = 12 How many attended the game at Busch Stadium (ii) when the time was 3:54?,"SELECT attendance FROM table_name_88 WHERE location = ""busch stadium (ii)"" AND time = ""3:54""" What are the names of the projects?,SELECT name FROM projects "When the goals against were higher than 30, what was the average number of draws?",SELECT AVG(draws) FROM table_name_23 WHERE goals_against > 30 Which country has a total less than 289 and finished t2?,"SELECT country FROM table_name_22 WHERE total < 289 AND finish = ""t2""" How many times was product id 2 ordered?,"SELECT count ( * ) FROM order_items GROUP BY product_id having product_id = ""2""" what is the salary of 1985?,SELECT salary FROM salary WHERE YEAR = 1985 Name the race 1 when race 3 is 8,"SELECT race_1 FROM table_15530244_5 WHERE race_3 = ""8""" "How many weeks are there that include the date October 11, 1969.","SELECT COUNT(week) FROM table_10646790_2 WHERE date = ""October 11, 1969""" What are the response received dates for the documents described as 'Regular' or granted with more than 100?,SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100 "What is 2009, when 2011 is ""Q2""?","SELECT 2009 FROM table_name_62 WHERE 2011 = ""q2""" What was the total attendance at a game against the Pittsburgh Steelers before week 4?,"SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = ""pittsburgh steelers"" AND week < 4" which 1st Member has a Election of 1832,"SELECT 1 AS st_member FROM table_name_51 WHERE election = ""1832""" "For the cars with 4 cylinders, which model has the largest horsepower?",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1 What is the height and weight for coaches who have won awards in 1930?,"SELECT T1.height, T1.weight FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = '1930'" What Argentina country is in t10 place?,"SELECT score FROM table_name_49 WHERE place = ""t10"" AND country = ""argentina""" What person had an opponent of linda wessberg and scored an average score?,"SELECT AVG(score) FROM table_name_4 WHERE player = ""linda wessberg""" what is the highest draw when points is less than 11 and language is norwegian?,"SELECT MAX(draw) FROM table_name_54 WHERE points < 11 AND language = ""norwegian""" what is the contact number of 'Woodstock discos' company? | The phone of the customer of the company 'Woodstock Discos' is +55 (11) 3033-5446. | What is the contact number of Mr. Eduardo Martins?,"SELECT phone FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins""" When was james chester loaned out until ?,"SELECT date_to FROM table_name_78 WHERE name = ""james chester""" How many times was Bytecoin traded in June 2013?,"SELECT COUNT(T2.coin_id) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Bytecoin' AND STRFTIME('%Y-%m', T2.date) = '2013-06'" What is the FBI code and definition of Gambling?,"SELECT fbi_code_no, description FROM FBI_Code WHERE title = 'Gambling'" How many co-singers were there when Parveen Babi co-starred?,"SELECT COUNT(Co) - singers FROM table_2528382_5 WHERE co_stars = ""Parveen Babi""" "What is the location of the club named ""Tennis Club""?","SELECT clublocation FROM club WHERE clubname = ""Tennis Club""" What is the name of the list that was updated most recently?,SELECT list_title FROM lists WHERE list_update_timestamp_utc = ( SELECT list_update_timestamp_utc FROM lists ORDER BY list_update_timestamp_utc DESC LIMIT 1 ) What is the Time with a Score that is 46-82?,"SELECT time FROM table_name_17 WHERE score = ""46-82""" What round was Steve Stonebreaker drafted?,"SELECT MAX(round) FROM table_10360656_1 WHERE player_name = ""Steve Stonebreaker""" How many losses have byes greater than 2?,SELECT COUNT(losses) FROM table_name_38 WHERE byes > 2 Name the incumbent for virginia 4,"SELECT incumbent FROM table_2668387_18 WHERE district = ""Virginia 4""" "What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?","SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol'" What is the score of the game where the NY Islanders are the home team?,"SELECT score FROM table_name_10 WHERE home = ""ny islanders""" "How many universities have no less than 20,000 female students in 2016? Identify how many of the said universities are located in the United States of America.","SELECT COUNT(*) , SUM(CASE WHEN T3.country_name = 'United States of America' THEN 1 ELSE 0 END) AS nums_in_usa FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.year = 2016 AND T2.num_students * T2.pct_female_students / 100 > 20000" "For each citizenship, what is the maximum net worth?","SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship" What are the average and minimum weights for people of each sex?,"SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex" Who is the author of Death Takes the Stage?,SELECT Author_or_Editor FROM book_club where Book_Title = 'Death Takes the Stage' Who was the opponent on April 29?,"SELECT opponent FROM table_name_5 WHERE date = ""april 29""" Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)?,"SELECT name FROM table_name_45 WHERE assists = ""lake (154) lake (5.1 apg)""" Which courses were taught by a professor who is not a faculty member?,SELECT DISTINCT T2.course_id FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id WHERE T1.professor = 1 AND T1.hasPosition = 0 What are the distinct ages of the heads who are acting?,SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes' "What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?","SELECT name FROM table_name_24 WHERE status = ""valid"" AND authors = ""maisch"" AND location = ""tanzania"" AND novelty = ""gen et sp nov""" What was the class position of the team that was in the 4th position?,"SELECT class AS pos FROM table_name_73 WHERE pos = ""4th""" In what Year did the German Open have Yoo Sang-Hee as Partner?,"SELECT year FROM table_name_8 WHERE partner = ""yoo sang-hee"" AND venue = ""german open""" "Which institution does ""Katsuhiro Ueno"" belong to?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Katsuhiro"" AND t1.lname = ""Ueno""" Find the words cited in papers that are cited by sima01computational?,SELECT DISTINCT T2.word_cited_id FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'sima01computational' To which e-mail address should I write if I want to contact David Bradley?,SELECT T2.EmailAddress FROM Person AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' "Oh, I am sorry about that. Can you please show me a list of all of the cities located in counties that for which the county has a population over 20,000?",SELECT Name FROM city WHERE county_ID IN ( SELECT county_ID FROM county_public_safety WHERE population > 20000 ) "For every medicine id, what are the names of the medicines that can interact with more than one enzyme?","SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274,"SELECT tournament FROM table_1569625_1 WHERE margin_of_victory = ""3 strokes"" AND winning_score = 71 - 66 - 70 - 67 = 274" Name the forward assist for a2 barrel profile,"SELECT forward_assist FROM table_12834315_4 WHERE barrel_profile = ""A2""" What status has France as the opposing teams?,"SELECT status FROM table_name_71 WHERE opposing_teams = ""france""" "How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?","SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = ""Polidori ( ITA ) W 6-1, 3-6, 6-3""" How many of them only made one movie?,SELECT COUNT ( * ) FROM ( SELECT director FROM Movie GROUP BY director HAVING count ( * ) = 1 ) What is player Alexis Bwenge's pick number?,"SELECT pick__number FROM table_10960039_1 WHERE player = ""Alexis Bwenge""" Name the sales team name who had orders with the greatest net profit in 2020.,"SELECT T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.OrderDate LIKE '%/%/20' GROUP BY T2.`Sales Team` ORDER BY SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) DESC LIMIT 1" Find the average rating star for each movie that received at least 2 ratings.,"SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2" How many Japanese cars weigh more than 2000 lbs?,SELECT COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'Japan' AND T1.weight > 2000 What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?,"SELECT week_9_oct_20 FROM table_name_99 WHERE week_17__final__jan_4 = ""michigan (10-3)""" List down the film titles performed by Emily Dee.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Emily' AND T1.last_name = 'Dee' "Mention the episode ID, title and any three keywords of the episode which get the most number of votes in star classification of worst.","SELECT DISTINCT T3.episode_id, T2.title, T1.keyword FROM Keyword AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Vote AS T3 ON T2.episode_id = T3.episode_id WHERE T3.stars = 1 ORDER BY T3.votes DESC LIMIT 3;" What Player has a College that is alberta?,"SELECT player FROM table_name_56 WHERE college = ""alberta""" Find the names of products that were bought by at least two distinct customers.,SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id) >= 2 Which school ids have at least two of those donators?,SELECT T2.School_id FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING count ( * ) > 1 What was the Save in the game that has a Loss of sanderson (6-5)?,"SELECT save FROM table_name_96 WHERE loss = ""sanderson (6-5)""" "Hello! How many customers have an order status of ""On Road""?","SELECT count ( * ) FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road""" How many players have left arm fast in bowling skill?,SELECT COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id WHERE T2.Bowling_skill = 'Left-arm fast' Could you add the artists' names to the table?,"SELECT song_name,artist_name FROM song order by rating desc limit 3" How many losses has more than 59 goals against and more than 17 position?,SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17 Who was the opponent that led to a 10-13 record?,"SELECT opponent FROM table_name_38 WHERE record = ""10-13""" "How many inputs joined this institution located in Franklin, Indiana?","SELECT COUNT(joined) FROM table_255205_1 WHERE location = ""Franklin, Indiana""" What is Karl Wendlinger's total grid #?,"SELECT COUNT(grid) FROM table_name_57 WHERE driver = ""karl wendlinger""" "What is the product category of ""laurel""? | Did you mean the product category of the product named ""laurel""? | yes","SELECT product_category_code FROM products WHERE product_name = ""laurel""" The school of Portage was in what conference previous?,"SELECT previous_conference FROM table_name_41 WHERE school = ""portage""" "List the top five dishes, by descending order, in terms of highest price.",SELECT name FROM Dish ORDER BY highest_price DESC LIMIT 5 Name the highest 3rd place for nation of perak fa,"SELECT MAX(3 AS rd_place) FROM table_name_65 WHERE nation = ""perak fa""" How many games has each stadium held?,"SELECT T1.id , count ( * ) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id" Which of the countries has the most car makers? List the country name.,SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1; When did he become a customer?,SELECT t1.date_became_customer FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) DESC LIMIT 1 What are the location and nickname of each school?,"SELECT T1.Location , T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID" What college club team did the Dallas Stars choose their draft pick from?,"SELECT college_junior_club_team FROM table_2886617_9 WHERE nhl_team = ""Dallas Stars""" Name the least attendance with visitor of edmonton,"SELECT MIN(attendance) FROM table_name_98 WHERE visitor = ""edmonton""" "What heat, semifinal or final has a time of 25.00?","SELECT heat_semifinal_final FROM table_name_31 WHERE time = ""25.00""" What is the venue when melbourne is the away team?,"SELECT venue FROM table_name_25 WHERE away_team = ""melbourne""" What is the name of the hardware product with the greatest price?,SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1 How is the math course described?,SELECT course_description FROM Courses WHERE course_name = 'math' Show average ticket price for exhibitions for all years before 2006?,SELECT avg ( ticket_price ) FROM exhibition WHERE YEAR < 2006 What is Round 2 when Round 4 is Double and Round 3 is Single?,"SELECT round_2 FROM table_name_56 WHERE round_4 = ""double"" AND round_3 = ""single""" "What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?","SELECT level FROM table_name_21 WHERE season > 2003 AND division = ""kakkonen (second division)"" AND position = ""12th""" Find the description and code of the service type that is performed the most times.,"SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" What position is Justin Shaw in?,"SELECT position FROM table_16575609_3 WHERE player = ""Justin Shaw""" "Which committees have delegates from both parties, please?","SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic"" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal""" How many events have the event detail fail?,select count ( * ) from Events where Event_Details = 'Fail' How many rooms with the King Size bed are there?,"SELECT count ( * ) FROM Rooms WHERE bedType = ""King""" What type of game had a result of 1:2?,"SELECT type_of_game FROM table_name_7 WHERE results¹ = ""1:2""" Compute the average salary of the players in the team called 'Boston Red Stockings'.,SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' can you show the locations for those stores?,select Location from shop where Open_Year>'2012' who won mixed doubles when wang yihan won womens singles,"SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = ""Wang Yihan""" what's the percentage of votes with election date being 1981,SELECT percentage_of_votes FROM table_13746866_2 WHERE election_date = 1981 Show me all the restaurants.,SELECT ResName FROM Restaurant; Which engine has a Year larger than 1969?,SELECT engine FROM table_name_7 WHERE year > 1969 Name the college for david carter,"SELECT college FROM table_26533354_8 WHERE player = ""David Carter""" Calculate the average runs scored during the first half of all first innings.,SELECT CAST(SUM(CASE WHEN 1 < Over_Id AND Over_Id < 25 THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(Runs_Scored) FROM Batsman_Scored WHERE Innings_No = 1 "List the name, born state and age of the heads of departments ordered by age.","SELECT name , born_state , age FROM head ORDER BY age" Please show the nominee who has been nominated the greatest number of times.,SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 In what year was the NFL team in chicago illinois established?,"SELECT est FROM table_name_96 WHERE state_province = ""illinois"" AND city = ""chicago"" AND league = ""nfl""" Show the location with most number of train stations.,SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1 "What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?","SELECT AVG(laps) FROM table_name_4 WHERE time_retired = ""+16.874 secs"" AND grid < 5" Which nations have a 100% Spanish-speaking population?,SELECT Country FROM language WHERE Name = 'Spanish' AND Percentage = 100 What are the course names for courses taught on MTW?,"SELECT CName FROM COURSE WHERE Days = ""MTW""" What are the names of properties that are either houses or apartments with more than 1 room?,"SELECT property_name FROM Properties WHERE property_type_code = ""House"" UNION SELECT property_name FROM Properties WHERE property_type_code = ""Apartment"" AND room_count > 1" "Who among the players won both ""Man of the Series"" and ""Orange Cap"" in the same season?",SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Man_of_the_Series = T2.Orange_Cap What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?,"SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year" List the name of musicals that do not have actors.,SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor) "Find the login name of the course author that teaches the course with name ""advanced database"".","SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""advanced database""" Name the most overall for james davis and round more than 5,"SELECT MAX(overall) FROM table_name_89 WHERE player = ""james davis"" AND round > 5" How many million U.S. viewers watched the episode with the production code 3x6004?,"SELECT us_viewers__million_ FROM table_26464364_1 WHERE production_code = ""3X6004""" What was the Bhofen #1 score and rank for the player whose Bhofen #2 score and rank was 231.2 (8)?,"SELECT bhofen_number1__rk_ FROM table_14948647_1 WHERE bhofen_number2__rk_ = ""231.2 (8)""" How many inches of total precipitation was recorded by the weather station of store no.2 on 2012/12/25?,SELECT T1.preciptotal FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2012-12-25' AND T2.store_nbr = 2 Which Callsign has an IATA of tr?,"SELECT callsign FROM table_name_4 WHERE iata = ""tr""" What are the towns from which at least two teachers come from?,SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2 Name the muzzel device with barrel twist of 1:10,"SELECT muzzle_device FROM table_name_18 WHERE barrel_twist = ""1:10""" "Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?","SELECT dob FROM table_name_58 WHERE bats = ""r"" AND throws = ""r"" AND position = ""rhp"" AND first = ""john""" What was the inspection type when El Aji Peruvian Restaurant got highest inspection score?,SELECT T1.type FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'El Aji Peruvian Restaurant' ORDER BY T1.score DESC LIMIT 1 How many games was High Points andre iguodala (29)?,"SELECT COUNT(game) FROM table_17323042_11 WHERE high_points = ""Andre Iguodala (29)""" What is the Club of the Player with a Date of Birth of 1977-02-03?,"SELECT club FROM table_name_61 WHERE date_of_birth = ""1977-02-03""" What is the shipping agent code of shipping agent UPS?,"SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = ""UPS"";" Show the number of document types.,SELECT count(*) FROM Ref_document_types "What is the score when To par was −3, in South Africa, for Richard Sterne?","SELECT AVG(score) FROM table_name_74 WHERE to_par = ""−3"" AND country = ""south africa"" AND player = ""richard sterne""" What date was the score of 6–3 6–4?,"SELECT date FROM table_name_53 WHERE score = ""6–3 6–4""" Name the attendance for loss result and salford city reds,"SELECT attendance FROM table_21269143_1 WHERE result = ""Loss"" AND opponent = ""Salford City Reds""" How many losingteams were for the cup finaldate 20 August 1989?,"SELECT COUNT(losingteam) FROM table_12028543_3 WHERE cup_finaldate = ""20 August 1989""" Provide the names of voice actors for the characters of films directed by Wolfgang Reitherman.,"SELECT T2.hero, T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title INNER JOIN director AS T3 ON T3.name = T2.movie_title WHERE T3.director = 'Wolfgang Reitherman'" Find the names of customers who never placed an order.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id What's the name of the manager that opened the most gas stations after 2000?,SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count ( * ) DESC LIMIT 1 Find the number of rooms for different block code?,"SELECT count(*) , T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode" What is the total number of assists for players with under 55 games and over 6 assists per game average?,SELECT SUM(total_assists) FROM table_name_11 WHERE ast_avg > 6 AND games < 55 List all department id's with their corresponding job title code.,"SELECT department_id, job_title_code FROM Staff_Department_Assignments" How many Miss Waters has Canada had?,"SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = ""Canada""" What is the latest year that the final television commentator was David Jacobs? ,"SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = ""David Jacobs""" what is the rank when the time is 3:12.40?,"SELECT SUM(rank) FROM table_name_70 WHERE time = ""3:12.40""" What is the highest population within the municipality of Porsgrunn?,"SELECT MAX(population) FROM table_name_28 WHERE municipality = ""porsgrunn""" "How many FA cups were there without any league cups, but a total of 0 2?","SELECT MIN(fa_cup) FROM table_name_3 WHERE total = ""0 2"" AND league_cup < 0" Which type of card did Dick Ruthven use to pay for all of his transactions?,SELECT DISTINCT T2.CreditCardType FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Dick' AND T1.Last = 'Ruthven' List all the name of organizations in order of the date formed.,SELECT organization_name FROM organizations ORDER BY date_formed ASC "Show the name, location, and number of platforms for all stations.","SELECT name , LOCATION , number_of_platforms FROM station" Name the csa 4/16/09 for opinionway being 4/17/09 of 12%,"SELECT csa_4_16_09 FROM table_name_17 WHERE opinionway_4_17_09 = ""12%""" Who is the founder of Sony?,SELECT founder FROM manufacturers WHERE name = 'Sony' Which High rebounds has a Game of 76?,SELECT high_rebounds FROM table_name_97 WHERE game = 76 Which movies of director Wolfgang Reitherman do not have villain?,SELECT T1.movie_title FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' AND T1.villian IS NULL "How many American restaurants are located in Front, San Francisco?",SELECT COUNT(T2.food_type = 'american') FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.street_name = 'front' Name the population density where population % is 1.1% for slovakia,"SELECT pop_density_people_km_2 FROM table_1606824_1 WHERE population__percentage_of_eu = ""1.1%"" AND member_state = ""Slovakia""" Give the budget type code that is most common among documents with expenses.,SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1 Show the theme for exhibitions with both records of an attendance below 100 and above 500.,SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 What is the total number of singers?,SELECT count(*) FROM singer How much amount in total were claimed in the most recently created document?,SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1) "Among the facilities that had undergone at least one inspection in 2010, how many of them have the most serious food safety issues?","SELECT COUNT(DISTINCT T2.license_no) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T1.inspection_date) = '2010' AND T2.risk_level = 3" Show the names and heights of buildings with at least two institutions founded after 1880.,"SELECT T1.name , T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING count(*) >= 2" How many different allergy types exist?,SELECT count(DISTINCT allergytype) FROM Allergy_type Which professor taught the most courses and what is the position of this person in the university?,"SELECT T1.p_id, T1.hasPosition FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id GROUP BY T1.p_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1" In which year were most of ships built?,SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1 Which record has 4:14 as the time?,"SELECT record FROM table_name_94 WHERE time = ""4:14""" Identifies the ID number of the customer whose sales order for 32 units had a unit price of 35.,SELECT T2.CustomerID FROM SalesOrderDetail AS T1 INNER JOIN Customer AS T2 WHERE T1.UnitPrice = 35 AND T1.OrderQty = 32 how many result with district being florida 14,"SELECT COUNT(result) FROM table_1341604_10 WHERE district = ""Florida 14""" Which apps have been reviewed more than 75 000 000 times and the content is suitable for teenagers?,SELECT DISTINCT App FROM playstore WHERE Reviews > 75000000 AND `Content Rating` = 'Teen' Find the team that attended the least number of home games in 1980.,SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; What year was R Dravid born and the role he played?,"SELECT T1.DOB, T3.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T1.Player_Name = 'R Dravid' GROUP BY T1.DOB, T3.Role_Desc" the first episode in this season had what number in the series? ,SELECT MIN(no_in_series) FROM table_2618142_1 Which archive has a run time of 23:48?,"SELECT archive FROM table_2114238_1 WHERE run_time = ""23:48""" "List the creation year, name and budget of each department.","SELECT creation , name , budget_in_billions FROM department" Which Date has a Winning score of –14 (66-64-68-68=266)?,SELECT date FROM table_name_93 WHERE winning_score = –14(66 - 64 - 68 - 68 = 266) "Find the name and access counts of all documents, in alphabetic order of the document name.","SELECT document_name , access_count FROM documents ORDER BY document_name" What player has The United States as the country with 70 as the score?,"SELECT player FROM table_name_91 WHERE country = ""united states"" AND score = 70" "What are the course names, ordered by credits?",SELECT CName FROM COURSE ORDER BY Credits What are the amenities of those dorms?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith' What is the sport of the La Liga league?,"SELECT sport FROM table_10815352_1 WHERE league = ""La Liga""" What Grid has a Time/Retired of clutch?,"SELECT SUM(grid) FROM table_name_2 WHERE time_retired = ""clutch""" "What is that if the weight for the play born on June 2, 1983?","SELECT SUM(weight__kg_) FROM table_name_90 WHERE birthdate = ""june 2, 1983""" How many players were born after the year 1985?,"SELECT COUNT(Player_Id) FROM Player WHERE SUBSTR(DOB, 1, 4) > 1985" "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n","SELECT T2.cmi_cross_ref_id , T2.master_customer_id , count(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id" Which is the aircraft that have the maximum distance? | Did you mean the name of the aircraft? | yes,SELECT name FROM Aircraft order by distance desc limit 1 Which Game has a November of 22?,SELECT SUM(game) FROM table_name_32 WHERE november = 22 What is the name and country for the artist with most number of exhibitions?,"SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1" How many businesses are not closed in the city of Mesa?,SELECT COUNT(business_id) FROM Business WHERE city = 'Mesa' AND active = 'true' "When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?","SELECT commissioned FROM table_name_14 WHERE fate = ""converted to laker, 1961; still in service""" What was Carlton's score when they were the away team?,"SELECT away_team AS score FROM table_name_86 WHERE away_team = ""carlton""" Which Report includes Monaco?,"SELECT report FROM table_name_95 WHERE location = ""monaco""" Which team has a 1:10.998 best?,"SELECT team FROM table_name_87 WHERE best = ""1:10.998""" what is the average of city populations?,SELECT avg ( City_Population ) FROM district "In ""No Loan Again, Naturally"", how many stars received votes of no more than 50?","SELECT COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'No Loan Again, Naturally' AND T2.votes < 50;" What is the name of the publisher that published the most books?,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name ORDER BY COUNT(T2.publisher_id) DESC LIMIT 1 What was the score of the 1998 FIFA World Cup qualification competition?,"SELECT score FROM table_name_25 WHERE competition = ""1998 fifa world cup qualification""" What is the total qual where the grid number is 24?,SELECT SUM(qual) FROM table_name_57 WHERE grid = 24 "Wow that's a lot. Thank you again, this will be my last question :) Could you please let me know the ID of the station which has the biggest number of docks available among these 61 stations?",select id from station where installation_date<'8/6/2013' order by dock_count desc limit 1 What is the pick number of Jesse Alexander?,"SELECT MIN(pick__number) FROM table_name_39 WHERE player = ""jesse alexander""" How many items did that customer buy?,SELECT sum ( t3.order_quantity ) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum ( t3.order_quantity ) LIMIT 1 "What's the school of the player with a hometown of little rock, arkansas?","SELECT school FROM table_name_94 WHERE hometown = ""little rock, arkansas""" What is the percentage of rated movies were released in year 2021?,SELECT CAST(SUM(CASE WHEN T1.movie_release_year = 2021 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id Find the name of persons who are friends with Bob.,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' Tell me the final position for fa community shield,"SELECT final_position___round FROM table_name_22 WHERE competition = ""fa community shield""" Find the name of the courses that do not have any prerequisite?,SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) Name the least number for 君のそばで~ヒカリのテーマ~(popup.version),"SELECT MIN(_number) FROM table_2144389_8 WHERE japanese_title = ""君のそばで~ヒカリのテーマ~(PopUp.Version)""" "James Hutchins Johnson, from New Hampshire, served during what years?","SELECT years FROM table_name_40 WHERE state = ""new hampshire"" AND representative = ""james hutchins johnson""" Show the type of artwork Loving you?,"SELECT TYPE FROM artwork where name = ""Loving you""" What is the nationality of the round 4 draft selection who played college ball at oklahoma?,"SELECT nationality FROM table_name_33 WHERE round = 4 AND college = ""oklahoma""" What is the number of distinct cities the stations are located at?,SELECT count(DISTINCT city) FROM station What is the party that has the largest number of representatives?,"SELECT Party , COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1" Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in?,SELECT SUM(lane) FROM table_name_15 WHERE react = 0.185 AND time < 20.9 What episode aired on 18 April 2007?,"SELECT MIN(_number) FROM table_10749367_3 WHERE air_date = ""18 April 2007""" OK. and what is that artist's country of origin? | Do you mean the country of the artist named Enrique? | yes,SELECT country from artist where artist_name = 'Enrique' What's the average round for the OT position from tulane college with an overall over 38?,"SELECT AVG(round) FROM table_name_41 WHERE position = ""ot"" AND college = ""tulane"" AND overall > 38" What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?,"SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id" Which IHSAA Class has a Mascot of wildcats?,"SELECT ihsaa_class FROM table_name_2 WHERE mascot = ""wildcats""" Who is the athlete with a run 1 less than 54.13 and a 55.21 run 3?,SELECT athlete FROM table_name_47 WHERE run_1 < 54.13 AND run_3 = 55.21 "What are the titles of the books whose writer is not ""Elaine Lee""?","SELECT Title FROM book WHERE Writer != ""Elaine Lee""" What is the ship with the largest amount of tonnage called?,SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 What loss has october 1 as the date?,"SELECT loss FROM table_name_47 WHERE date = ""october 1""" What is the at Manhattan record against TCU?,"SELECT at_manhattan FROM table_15740666_4 WHERE kansas_state_vs = ""TCU""" What is the date of the tournament with Alena Tarasova as the opponent?,"SELECT date FROM table_name_56 WHERE opponent = ""alena tarasova""" "Name the week for december 4, 2009","SELECT week FROM table_name_80 WHERE date = ""december 4, 2009""" List the countries that have more than one mountain.,SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1 On which date were the 2003 Toronto Blue Jays 54-55?,"SELECT date FROM table_name_5 WHERE record = ""54-55""" Tell me the document name of the document id 42 ?,SELECT document_name from documents where document_id = 42 How many episodes were written by Jack Burditt & Robert Carlock,"SELECT COUNT(production_code) FROM table_15938543_1 WHERE written_by = ""Jack Burditt & Robert Carlock""" What is the surface on 21 june 1993?,"SELECT surface FROM table_name_60 WHERE date = ""21 june 1993""" What day did they play on week 4?,SELECT date FROM table_name_56 WHERE week = 4 Find the name and checking balance of the account with the lowest savings balance.,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" Can you filter the table to only include the dates?,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > = 100 OR amount_of_transaction > = 100 "Which Country has a Height (m) larger than 4100, and a Range of arsi mountains, and a Mountain of bada?","SELECT country FROM table_name_15 WHERE height__m_ > 4100 AND range = ""arsi mountains"" AND mountain = ""bada""" What is the average percentage of agriculture of GDP in countries on the African Continent?,SELECT AVG(T4.Agriculture) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Africa' Tell me the competition for 2nd position with year more than 2005,"SELECT competition FROM table_name_23 WHERE position = ""2nd"" AND year > 2005" List all the podcast title and its itunes url under the 'society-culture' category.,"SELECT T2.title, T2.itunes_url FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'society-culture'" Name the chassis of 1961,SELECT chassis FROM table_name_33 WHERE year = 1961 What is the smallest draws for a player larger than 2 with a 100% wins?,SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100 Name the coins that were not opened on May 2013.,"SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE STRFTIME('%Y-%m', T2.date) = '2013-05' AND T2.open IS NULL" What are the names of all companies whose revenue is larger than the revenue of all companies based in Austin?,SELECT name FROM manufacturers WHERE revenue > ( SELECT min ( revenue ) FROM manufacturers WHERE headquarter = 'Austin' ) When did the Titans play the Houston Texans at LP Field before Week 13?,"SELECT date FROM table_name_68 WHERE week < 13 AND game_site = ""lp field"" AND opponent = ""houston texans""" How many official languages does Afghanistan have?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Afghanistan"" AND IsOfficial = ""T""" What is the tail number of the flight with air carrier named Iscargo Hf: ICQ and arrival time of 1000 and below?,SELECT T2.TAIL_NUM FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.ARR_TIME <= 1000 AND T1.Description = 'Iscargo Hf: ICQ' Indicate the bounding box of the image 8.,"SELECT X, Y, W, H FROM IMG_OBJ WHERE IMG_ID = 8" Which Nationality has a Name of janne happonen?,"SELECT nationality FROM table_name_33 WHERE name = ""janne happonen""" "What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?","SELECT time FROM table_name_19 WHERE lane < 6 AND heat < 4 AND name = ""joanne malar""" How many populations have a capital of Montpelier and more than 1 House seat?,"SELECT COUNT(population_est__2012_) FROM table_name_53 WHERE capital = ""montpelier"" AND house_seat_s_ > 1" Can you show the dates of transactions with at least 100 share count?,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > = 100 Which race has a pole of test driver and a team name of Lucky Strike Honda Racing f1 team?,"SELECT races FROM table_name_36 WHERE poles = ""test driver"" AND team_name = ""lucky strike honda racing f1 team""" Which opponent has a record of 3-0?,"SELECT opponent FROM table_name_83 WHERE record = ""3-0""" Return the average price of products that have each category code.,"SELECT avg(product_price) , product_category_code FROM products GROUP BY product_category_code" How may women doubles winner were there when Philippe Aulner was mens singles winner?,"SELECT COUNT(womens_doubles) FROM table_15001957_1 WHERE mens_singles = ""Philippe Aulner""" Which country's tweets collected the most likes?,"SELECT T.Country FROM ( SELECT T2.Country, SUM(T1.Likes) AS num FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID GROUP BY T2.Country ) T ORDER BY T.num DESC LIMIT 1" List each donator name and the amount of endowment in descending order of the amount of endowment.,"SELECT donator_name , sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC" How many albums contain 'Metal' genre tracks?,SELECT count ( distinct T1.Title ) FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Metal' Calculate difference between business that have the highest number of reviews and business that have the lowest number of reviews.,SELECT ( SELECT COUNT(business_id) FROM Reviews GROUP BY business_id ORDER BY COUNT(business_id) DESC LIMIT 1 ) - ( SELECT COUNT(business_id) FROM Reviews GROUP BY business_id ORDER BY COUNT(business_id) ASC LIMIT 1 ) AS DIFF "How many households have a Median household income of $43,889?","SELECT AVG(number_of_households) FROM table_name_71 WHERE median_household_income = ""$43,889""" "What is Points, when Points For is ""562""?","SELECT points FROM table_name_25 WHERE points_for = ""562""" "Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?",SELECT SUM(net_profit_loss__sek_) FROM table_name_87 WHERE basic_eps__sek_ = -6.58 AND employees__average_year_ > 31 OFFSET 035 How many journalists are from England or Wales ?,"SELECT count ( * ) FROM journalist WHERE Nationality = ""England"" OR Nationality = ""Wales""" "WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?","SELECT MIN(avg_finish) FROM table_name_70 WHERE position = ""40th"" AND top_5 > 0" Who was the opponent in the game in which Austin Daye (16) did the most high points?,"SELECT team FROM table_27755603_2 WHERE high_points = ""Austin Daye (16)""" "Among the menus in which the dish ""Clear green turtle"" had appeared, how many of them did not support taking out or booking in advance?",SELECT SUM(CASE WHEN T4.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.call_number IS NULL Which address has members younger than 30?,SELECT address FROM member WHERE age < 30 What are id and name of the products whose price is lower than 600 or higher than 900?,"SELECT product_id , product_name FROM products WHERE product_price < 600 OR product_price > 900" "Find the first name and last name for the ""CTO"" of the club ""Hopkins Student Enterprises""?","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t2.position = ""CTO""" who guest starred on the episode with a 1.44m rating,"SELECT guest_s_ FROM table_29135051_3 WHERE ratings = ""1.44m""" How many flights land in Aberdeen or Abilene?,"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = ""Aberdeen"" OR T2.city = ""Abilene""" "What is the percentage of players who attended Auburn University and won an ""All-Defensive Second Team"" award?",SELECT CAST(SUM(CASE WHEN T2.award = 'All-Defensive Second Team' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'Auburn' Show the names of countries and the average speed of roller coasters from each country.,"SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name" what is the customer id of order id 2,SELECT customer_id from Customer_Orders WHERE order_id = 2 What visiting team played at 3com park on October 7?,"SELECT visiting_team FROM table_name_49 WHERE stadium = ""3com park"" AND date = ""october 7""" What is the average points value for a rank less than 12 for David Santee?,"SELECT AVG(points) FROM table_name_42 WHERE rank < 12 AND name = ""david santee""" How many suppliers are from Japan?,SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'JAPAN' "Show the names of clubs that have players with position ""Right Wing"".","SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = ""Right Wing""" What is the highest number of points the team with 0 wins had before 1992?,SELECT MAX(points) FROM table_name_11 WHERE wins = 0 AND year < 1992 What is the supplier id who supplies the least products?,SELECT distinct supplier_id FROM Product_Suppliers WHERE supplier_id = ( SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count ( * ) LIMIT 1 ) What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.,"SELECT T1.UnitPrice, T3.Name FROM PurchaseOrderDetail AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.PurchaseOrderID = T2.PurchaseOrderID INNER JOIN Vendor AS T3 ON T2.VendorID = T3.BusinessEntityID ORDER BY T1.UnitPrice LIMIT 1" What are the distinct names of customers who have purchased at least three different products?,SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id) >= 3 "What is the attendance in a week earlier than 4, and result is w 31-20?","SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = ""w 31-20""" What is the decay mode of the 265m hs isotope discovered in 1984?,"SELECT decay_mode FROM table_name_28 WHERE discovery_year = ""1984"" AND isotope = ""265m hs""" "How many backgrounds are there represented from Memphis, Tennessee?","SELECT COUNT(background) FROM table_1289860_2 WHERE hometown = ""Memphis, Tennessee""" Which start station had the most trips starting from August? Give me the name and id of the station.,"SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1" Can you show me the names of the people who were on the affirmative side of debates with an audience bigger than 200?,SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 What's the gender of the students taught in the school founded in 1894?,"SELECT gender FROM table_1930857_1 WHERE year_founded = ""1894""" And Cheque?,"SELECT count ( * ) FROM customers where payment_method = ""Cheque""" "How many schools are in Bloomington, IN?","SELECT COUNT(founded) FROM table_10082596_1 WHERE location = ""Bloomington, IN""" "Among the postal points in California, calculate the percentage of them in post office types.",SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'California' "When Michael Schumacher won the race, who had the fastest lap?","SELECT fastest_lap FROM table_name_18 WHERE winning_driver = ""michael schumacher""" "Which Game is the lowest one that has a Score of 2–3 ot, and Points larger than 76?","SELECT MIN(game) FROM table_name_46 WHERE score = ""2–3 ot"" AND points > 76" What number does the player from Ohio play with?,"SELECT no FROM table_11545282_10 WHERE school_club_team = ""Ohio""" State the email of those who are staff of Murphy Diane whose number is 1002 and living in San Francisco,SELECT T1.email FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T1.reportsTo = 1002 AND T2.city = 'San Francisco' What is the Job title code of department id 4?,SELECT job_title_code FROM Staff_Department_Assignments WHERE department_id = 4 "In west superstore, what is the name and the shipping mode of the product that was ordered with the shortest shipment time?","SELECT DISTINCT T2.`Product Name`, T1.`Ship Mode` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' ORDER BY T1.`Ship Date` - T1.`Order Date` LIMIT 1" "What is the highest Ovrs, when Econ is 2.02?",SELECT MAX(ovrs) FROM table_name_20 WHERE econ = 2.02 Which car won the same award in 2000 that the ferrari f133 5.5l v12 456 / 550 won in 2001?,"SELECT 2000 FROM table_name_13 WHERE 2001 = ""ferrari f133 5.5l v12 456 / 550""" Which brewery brewed the most sold root beer in 2015?,SELECT T3.BreweryName FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.TransactionDate LIKE '2015%' GROUP BY T3.BrandID ORDER BY COUNT(T1.BrandID) DESC LIMIT 1 List out the title of episodes which have star score of 2.,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 2; "Which result did the Republican have with the incumbent, Billy Tauzin?","SELECT result FROM table_1341472_20 WHERE party = ""Republican"" AND incumbent = ""Billy Tauzin""" Which Home has a Series of series tied 3–3?,"SELECT home FROM table_name_92 WHERE series = ""series tied 3–3""" What is the receipt date of the document with id 3?,SELECT receipt_date FROM Documents WHERE document_id = 3; "Among the sales people who achieved projected sales quota 2013, is there any person from territory ID 1? If yes, state the business entity ID.","SELECT DISTINCT T1.BusinessEntityID FROM SalesPerson AS T1 INNER JOIN SalesPersonQuotaHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.TerritoryID = 1 AND STRFTIME('%Y', QuotaDate) = '2013'" What is the total kills of the perpetrators with height more than 1.84.,SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84 Who was the team captain for Crystal Palace?,"SELECT captain FROM table_name_56 WHERE team = ""crystal palace""" What designer has a restaurant named of Cork & Cabbage?,"SELECT designer FROM table_name_53 WHERE restaurant_name = ""cork & cabbage""" "What was the average year for a coin that had a mintage smaller than 10,000?",SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000 Which nominee won the Drama Desk Award for outstanding choreography?,"SELECT nominee FROM table_name_81 WHERE award = ""drama desk award"" AND result = ""won"" AND category = ""outstanding choreography""" When did Chennai Super Kings play its first match?,SELECT Match_Date FROM `Match` WHERE team_1 = ( SELECT Team_Id FROM Team WHERE Team_Name = 'Chennai Super Kings' ) OR Team_2 = ( SELECT Team_Id FROM Team WHERE Team_Name = 'Chennai Super Kings' ) ORDER BY Match_Date ASC LIMIT 1 "What was the net power, when the type was wwer-440/230, and when construction was finished on 24.10.1977?","SELECT net_power FROM table_name_74 WHERE type = ""wwer-440/230"" AND finish_construction = ""24.10.1977""" What is the High assists for march 25?,"SELECT high_assists FROM table_name_69 WHERE date = ""march 25""" "Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip?","SELECT third FROM table_name_23 WHERE home = ""madison, wisconsin"" AND skip = ""craig brown""" Show me the names of all clubs?,select name from club List the name of the conductor with the most years of work.,SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 Which Semifinalist has a Tournament of stockholm?,"SELECT semifinalists FROM table_name_23 WHERE tournament = ""stockholm""" what is the last names of faculties who are members of computer science department?,"SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = ""Computer Science""" what is the score when the venue is athens olympic stadium on 30 april 2011?,"SELECT score FROM table_name_78 WHERE venue = ""athens olympic stadium"" AND year = ""30 april 2011""" What is the platform if the weight is 131.5g?,"SELECT platform FROM table WHERE weight = ""131.5g""" "Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?","SELECT year_s__won FROM table_name_61 WHERE total > 148 AND to_par < 17 AND country = ""new zealand""" How many days are associated with production code 210?,SELECT COUNT(original_airdate) FROM table_16581695_3 WHERE production_code = 210 What are the average laps for jackie stewart?,"SELECT AVG(laps) FROM table_name_77 WHERE driver = ""jackie stewart""" Which building does the instructor who teaches the most number of courses live in?,SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1 What about for campus id 5?,SELECT sum ( degrees ) FROM degrees WHERE Campus = 5 "For each zip code, find the ids of all trips that have a higher average mean temperature above 60?",SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f) > 60 Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.,"SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;" What was the Score of the 2008 Africa Cup of Nations Competition?,"SELECT score FROM table_name_3 WHERE competition = ""2008 africa cup of nations""" What is the role of SC Ganguly?,SELECT T3.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T1.Player_Name = 'SC Ganguly' GROUP BY T3.Role_Desc What city does call sign K248am have its license in?,"SELECT city_of_license FROM table_name_54 WHERE call_sign = ""k248am""" What award did team 679 win?,SELECT award_name FROM table_15584199_2 WHERE team_number = 679 "What are the names of all the documents, as well as the access counts of each, ordered alphabetically?","SELECT document_name , access_count FROM documents ORDER BY document_name" "How many 10-star votes were given to the episode titled ""Cherished""?",SELECT T2.votes FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' AND T2.stars = 10 What nationality is pick # 89,SELECT nationality FROM table_1213511_7 WHERE pick__number = 89 What country is the contestant from San Francisco de Yojoa from?,"SELECT country FROM table_20669355_2 WHERE hometown = ""San Francisco de Yojoa""" What is the average number of reviews written for active businesses that operate not more than 30 hours a week?,SELECT AVG(T3.user_id) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Reviews AS T3 ON T1.business_id = T3.business_id WHERE T1.active = 'true' GROUP BY T2.closing_time - T2.opening_time HAVING SUM(T2.closing_time - T2.opening_time) < 30 Provide the last name of the youngest student.,SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student) "Describe the customer names and lasting delivery periods for the product of ""Bedroom Furniture"" by wholesale channel in 2019.","SELECT T1.`Customer Names`, T2.DeliveryDate FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products AS T3 ON T3.ProductID = T2._ProductID WHERE T2.`Sales Channel` = 'Wholesale' AND T3.`Product Name` = 'Bedroom Furniture' AND T2.OrderDate LIKE '%/%/19'" Find the name of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.,SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3 "What teams played in the Capital One bowl game on January 1, 2009?","SELECT conference_matchups FROM table_16046689_29 WHERE date = ""January 1, 2009"" AND bowl_game = ""Capital One""" What argon has a neon of 10.5?,"SELECT argon FROM table_name_51 WHERE neon = ""10.5""" Tell me the player for east perth,"SELECT player FROM table_name_88 WHERE team = ""east perth""" Who in the statistics department has the highest salary?,"SELECT name FROM instructor where dept_name = ""Statistics"" order by salary desc limit 1" What is the electoral district when total candidates were 35?,SELECT electoral_district FROM table_2676980_4 WHERE total_candidates = 35 "How many students have the family name ""Zieme""?","select count ( student_id ) from Students where family_name = ""Zieme""" What is the d-r spread if the no party preference is 31.8%?,"SELECT d_r_spread FROM table_25200461_9 WHERE no_party_preference = ""31.8%""" Which start station had the most trips starting from August? Give me the name and id of the station.,"SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE ""8/%"" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1" "During melbourne's home game, who was the away team?","SELECT away_team FROM table_name_51 WHERE home_team = ""melbourne""" "What is the total quantity of the part ""hot spring dodger dim light"" ordered in all orders?",SELECT SUM(T1.p_partkey) FROM part AS T1 INNER JOIN lineitem AS T2 ON T1.p_partkey = T2.l_partkey WHERE T1.p_name = 'hot spring dodger dim light' Is the iin range 4 active?,"SELECT active FROM table_15905399_1 WHERE iin_ranges = ""4""" what's the college with position being placekicker,"SELECT college FROM table_14655985_1 WHERE position = ""Placekicker""" "What is the image ID with a predicted class of ""parked on""?",SELECT DISTINCT T1.IMG_ID FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.PRED_CLASS = 'parked on' What type of planet has a semimajor axis of 0.07 AU?,SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07 "What is the content of TV Channel with serial name ""Sky Radio""?","SELECT Content FROM TV_Channel WHERE series_name = ""Sky Radio""" "For which question did the user No.2183 gave the answer ""Mood Disorder (Depression, Bipolar Disorder, etc)""?","SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 2183 AND T1.AnswerText = 'Mood Disorder (Depression, Bipolar Disorder, etc)'" "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.","SELECT employee_id, first_name, last_name, job_id FROM employees WHERE salary > (SELECT MAX(salary) FROM employees WHERE job_id = 'PU_MAN')" "Among the people who got into the Hall of Fame after the year 1980, how many of them belong to the category of ""Player""?",SELECT COUNT(hofID) FROM HOF WHERE year > 1980 AND category = 'Player' What is the name for the artist with the most number of exhibitions?,SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count ( * ) DESC LIMIT 1 What is the played total when the points against was 321?,"SELECT played FROM table_13564637_4 WHERE points_against = ""321""" Who is the incumbent that has been in office since before 1996 and was again re-elected?,"SELECT incumbent FROM table_name_90 WHERE results = ""re-elected"" AND first_elected < 1996" When has a Visitor of bulls?,"SELECT date FROM table_name_1 WHERE visitor = ""bulls""" List the physicians' employee ids together with their primary affiliation departments' ids.,"SELECT physician , department FROM affiliated_with WHERE primaryaffiliation = 1" Which Opponent has a Score of 92–93?,"SELECT opponent FROM table_name_52 WHERE score = ""92–93""" Find the forename and surname of drivers whose nationality is German?,"SELECT forename, surname FROM drivers WHERE nationality = ""German""" Which location has the most number of train stations?,"select location, count ( * ) from station group by Location order by count ( * ) desc limit 1" Find the name and salary of the instructors who are advisors of any student from History department?,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'" Name the least year for walter hagen,"SELECT MIN(year) FROM table_225880_1 WHERE runner_s__up = ""Walter Hagen""" "Give the number of ""dogs allowed"" Yelp businesses.",SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Dogs Allowed' AND T2.attribute_value LIKE 'TRUE' What was the incumbent for texas 19?,"SELECT incumbent FROM table_1341663_44 WHERE district = ""Texas 19""" What is the total grant amount of the organizations described as research?,SELECT sum ( grant_amount ) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' "How many people live in Asia, and what is the largest GNP among them?","SELECT sum(Population) , max(GNP) FROM country WHERE Continent = ""Asia""" What's the name of the football division in the Netherlands?,SELECT name FROM divisions WHERE country = 'Netherlands' Who was the home team that played against the Boston Bruins on January 11?,"SELECT home FROM table_name_91 WHERE visitor = ""boston bruins"" AND date = ""january 11""" "What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type?","SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation" What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?,"SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = ""रविवार ravivār"" AND tuesday_mangala__mars_ = ""मंगळवार mangaḷavār""" How many dairy recipes can serve more than 10 people?,SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.category = 'dairy' AND T1.servings > 10 What is the total number of senators New Jersey have?,SELECT COUNT(type) FROM `historical-terms` WHERE state = 'NJ' AND type = 'rep' "what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1?",SELECT MAX(jerseys) FROM table_name_72 WHERE points = 0 AND different_holders < 3 AND giro_wins < 1 AND young_rider > 1 Has the product Chainring Bolts been on any of the sales?,SELECT CASE WHEN COUNT(T1.Description) >= 1 THEN 'Yes' ELSE 'No' END FROM SpecialOffer AS T1 INNER JOIN SpecialOfferProduct AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID INNER JOIN Product AS T3 ON T2.ProductID = T3.ProductID WHERE T3.Name = 'Chainring Bolts' What is stephen arigbabu's height?,"SELECT MIN(height) FROM table_name_52 WHERE player = ""stephen arigbabu""" "How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?","SELECT COUNT(losses) FROM table_name_45 WHERE ntfa_div_2 = ""perth"" AND wins < 10" How many customers use credit credit card as a means of payment?,"SELECT count ( * ) FROM customers where payment_method = ""Credit Card""" Show the product type and name for the products with price higher than 1000 or lower than 500.,"SELECT product_type_code, product_name FROM products WHERE product_price > 1000 OR product_price < 500" Which engineers have never visited to maintain the assets? List the engineer first name and last name.,"SELECT first_name , last_name FROM Maintenance_Engineers WHERE engineer_id NOT IN (SELECT engineer_id FROM Engineer_Visits)" What IHSAA football class do the Generals play in?,"SELECT ihsaa_class__football_ FROM table_name_24 WHERE mascot = ""generals""" What is the 1999 answer when 1998 is Grand Slam Tournaments?,"SELECT 1999 FROM table_name_80 WHERE 1998 = ""grand slam tournaments""" What's the start when the finish is 1?,"SELECT start FROM table_name_63 WHERE finish = ""1""" Which game had Philadelphia as its home team and was played on April 23?,"SELECT game FROM table_name_55 WHERE home_team = ""philadelphia"" AND date = ""april 23""" "On what date was Kentucky the opponent, and Ragle lost?","SELECT date FROM table_name_9 WHERE opponent = ""kentucky"" AND loss = ""ragle""" "In the game where the home team was St Kilda, what was the attendance?","SELECT crowd FROM table_name_52 WHERE home_team = ""st kilda""" How many wickets did Alec bedser have?,"SELECT MAX(wickets) FROM table_16570286_4 WHERE player = ""Alec Bedser""" "After Azha Restaurant Inc. passed the inspection on 2010/1/21, when was the follow-up inspection done?",SELECT T1.followup_to FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE T2.dba_name = 'Azha Restaurant Inc.' AND T1.results = 'Pass' AND T1.inspection_date = '2010-01-21' "Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne?","SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = ""tour match"" AND venue = ""rugby park, gisborne""" In which year did Misaki Doi lose the Australian Open Grand Slam?,"SELECT SUM(year) FROM table_name_32 WHERE grand_slam = ""australian open"" AND loser = ""misaki doi""" Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team?,"SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_two_winning_team = ""#11 Performance Tech""" how much is it worth? | Did you mean to ask for the market value in billions for BNP Paribas? | yes,"SELECT Market_Value_billion FROM Companies WHERE name = ""BNP Paribas""" How many captains younger than 50 are in each rank?,"SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank" What is the name of the longest track?,SELECT name FROM TRACK where Milliseconds = ( select max ( Milliseconds ) from track ) list out the fault short names,SELECT fault_short_name FROM part_faults What is the score in the touranament of Antalya-Belek?,"SELECT score FROM table_name_66 WHERE tournament = ""antalya-belek""" Where is the headquarters of royal dutch shell?,"SELECT headquarters FROM company where name = ""Royal Dutch Shell""" Which employees don't have certificates?,SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate please show the name of all the aircrafts.,SELECT Aircraft from aircraft What is the College of the Player from San Miguel Beermen PBA Team?,"SELECT college FROM table_name_31 WHERE pba_team = ""san miguel beermen""" What are the names of the members that have never registered at any branch?,SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch) What was the event when suárez ( tri ) w 16–6 was round of 32?,"SELECT event FROM table_27294107_11 WHERE round_of_32 = ""Suárez ( TRI ) W 16–6""" How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?,"SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = ""2:20.93 (1232)""" "Date of October 25, 1964 involves what record?","SELECT record FROM table_name_1 WHERE date = ""october 25, 1964""" What's the total of the Morse Taper number when the D (max) is 20 and the B (max) greater than 94?,SELECT SUM(morse_taper_number) FROM table_name_1 WHERE d__max_ = 20 AND b__max_ > 94 Calculate the average net profit of phones which have sales channel of distributor.,"SELECT SUM(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T2.`Product Name` = 'Phones' AND T1.`Sales Channel` = 'Distributor'" Nice! Can you filter the list to show only the people who do not have an associated entrepreneur ID?,"SELECT Name, people_id FROM people WHERE People_ID NOT IN ( SELECT People_ID FROM entrepreneur ) " Mention the series code of countries using Hong Kong dollar as their currency unit.,SELECT T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Hong Kong dollar' Who is the winner where the losing hand is Ah 7s?,"SELECT winner FROM table_12454156_1 WHERE losing_hand = ""Ah 7s""" add the player id and college names in the same list,"SELECT avg ( T1.HS ) , max ( T1.HS ) , T1.pid, T2.cname FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" How many students have absences of no more than 3 months?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 3 What is the place with a 71-72-70=213 score?,SELECT place FROM table_name_28 WHERE score = 71 - 72 - 70 = 213 How many teams scored exactly 38 points,SELECT COUNT(team) FROM table_14288212_1 WHERE points_for = 38 Show ids for all documents with budget types described as 'Government'.,"SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Government""" "what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547?",SELECT SUM(year) FROM table_name_89 WHERE tournaments_played < 2 AND cuts_made = 1 AND earnings___$__ < 10 OFFSET 547 Which team did the player have who had 27 total carries?,SELECT team FROM table_20938922_2 WHERE carries = 27 "List major versions released on May 12, 2009, that had a minor version of 3.2.3.","SELECT major_version FROM table_24257833_4 WHERE release_date = ""May 12, 2009"" AND minor_version = ""3.2.3""" Which federal state has 6 representatives of national average?,"SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = ""6""" "Write down the author name, affiliation, jounal short name and full name of the paper ""Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats"".","SELECT T2.Name, T2.Affiliation, T3.ShortName, T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.Title = 'Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats'" "What is the composer who created the track ""Fast As a Shark""?","SELECT composer FROM tracks WHERE name = ""Fast As a Shark"";" What are the names of mountains that have a height of over 5000 or a prominence of over 1000?,SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000 What is the party of the oldest legislator?,SELECT T1.party FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide ORDER BY T2.birthday_bio LIMIT 1 "In businesses that violates 103157 on May 27, 2016 , what is the name of the business that has an unscheduled inspection?",SELECT DISTINCT T3.name FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN businesses AS T3 ON T2.business_id = T3.business_id WHERE T1.`date` = '2016-05-27' AND T1.violation_type_id = 103157 AND T2.type = 'Routine - Unscheduled' What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?,SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1 How many byes were there recorded with 0 draws?,SELECT SUM(byes) FROM table_name_27 WHERE draws < 0 Where is store 1 located?,SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1 "What is the highest, lowest, and average student GPA for every department?","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code" What are the names of rooms whose reservation frequency exceeds 60 times?,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING count(*) > 60 What is the rank of the player who got 58179 in yardage?,SELECT rank FROM table_18686317_1 WHERE yardage = 58179 Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000?,SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000 What is the dma of branding is big oldies 107.3 with the station warv-fm?,"SELECT dma FROM table_19131921_1 WHERE branding = ""Big Oldies 107.3"" AND station = ""WARV-FM""" List the titles of all items in alphabetic order .,SELECT title FROM item ORDER BY title "If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?","SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = ""Rapidity of 1 hyperbolic radian""" "What is the first name and last name of the customer that has email ""luisg@embraer.com.br""?","SELECT FirstName , LastName FROM CUSTOMER WHERE Email = ""luisg@embraer.com.br""" Which opponent has a loss of erickson (8-19)?,"SELECT opponent FROM table_name_46 WHERE loss = ""erickson (8-19)""" Show me the start dates of apartment bookings by these IDs please.,"SELECT T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = ""Female""" What bike does dean ellison ride?,"SELECT bike FROM table_name_48 WHERE rider = ""dean ellison""" What is the airport name for airport 'AKO'?,"SELECT AirportName FROM AIRPORTS WHERE AirportCode = ""AKO""" "Show the average, maximum, minimum enrollment of all schools.","SELECT AVG(enrollment), MAX(enrollment), MIN(enrollment) FROM school" How many different departments are there in each school that has less than 5 apartments?,"SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5" "What team played in front of 28,536 at an away stadium?",SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536 Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?,"SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= ""1975-01-01"" AND T1.date_order_placed <= ""1976-01-01""" "Which Tournament has a Score of 6–4, 6–2?","SELECT tournament FROM table_name_62 WHERE score = ""6–4, 6–2""" "If the opponent was the Philadelphia flyers, what was the record?","SELECT record FROM table_27537870_6 WHERE opponent = ""Philadelphia Flyers""" What date was gabriela paz-franco the opponent?,"SELECT date FROM table_name_2 WHERE opponent = ""gabriela paz-franco""" Which category has a team of Cannondale Vredestein?,"SELECT category FROM table_name_28 WHERE team = ""cannondale vredestein""" "What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied?","SELECT nature_of_incident FROM table_name_93 WHERE casualties = ""3 wia"" AND circumstances = ""ied""" "What are the names of students and their respective departments, ordered by number of credits from least to greatest?","SELECT name , dept_name FROM student ORDER BY tot_cred" What was the result when the opponent was Celtic?,"SELECT result FROM table_name_55 WHERE opponent = ""celtic""" Who were the victims of the US ship that sank in the Mississippi River near Memphis?,"SELECT principal_victims FROM table_name_35 WHERE nat = ""us"" AND where_sunk = ""mississippi river near memphis""" What are the official languages of the countries of players from Maryland or Duke college?,"SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = ""Maryland"" OR T2.College = ""Duke""" How many samples of clouds are there in the image no.2315533?,SELECT SUM(CASE WHEN T1.IMG_ID = 2315533 THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'clouds' The callsign DWEC-TV has what branding? ,"SELECT branding FROM table_2610582_2 WHERE callsign = ""DWEC-TV""" "What is H/A/N, when Record is 2-5?","SELECT h_a_n FROM table_name_74 WHERE record = ""2-5""" What is the name of the store in the city with the greatest population?,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id order by t3.city_population desc limit 1 What is the student capacity of Dorm-plex 2000?,"SELECT student_capacity from dorm where dorm_name = ""Dorm-plex 2000""" What was the record in game played on July 28?,"SELECT record FROM table_23685152_2 WHERE date = ""July 28""" How long does business number 12 in Scottsdale stay open on day number 3?,"SELECT T2.closing_time - T2.opening_time AS ""hour"" FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.business_id = 12 AND T1.city LIKE 'Scottsdale' AND T2.day_id = 3" Name the opponent for black knights points 27,SELECT opponent FROM table_21091145_1 WHERE black_knights_points = 27 Show ids for all aircrafts with more than 1000 distance.,SELECT aid FROM Aircraft WHERE distance > 1000 How many patients are not using Procrastin-X as medication?,SELECT count(*) FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' ) What is cornell's lowest pick number?,"SELECT MIN(pick__number) FROM table_name_13 WHERE college = ""cornell""" Name the most share for anhui satellite tv,"SELECT MAX(share___percentage_) FROM table_name_42 WHERE channel = ""anhui satellite tv""" "Who is the Winner, when the Prize is €880,000?","SELECT winner FROM table_name_98 WHERE prize = ""€880,000""" What's the number of the paying subscribers when rating a movie after the year 2014?,SELECT COUNT(user_subscriber) FROM ratings_users WHERE user_has_payment_method = 1 AND rating_date_utc > '2014%' "Thank you, then could you please tell me what would be the average salary of instructors for Cybernetics?","SELECT avg ( salary ) from instructor where dept_name = ""Cybernetics""" "For each state, find the total account balance of customers whose credit score is above 100.","SELECT sum(acc_bal) , state FROM customer WHERE credit_score > 100 GROUP BY state" "In the history of all the Quebec Bulldogs, which goalie had the most play minutes for the team? Give the full name.","SELECT T2.firstName, T2.lastName FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T1.tmID = T3.tmID AND T1.year = T3.year WHERE T3.name = 'Quebec Bulldogs' AND T2.pos = 'D' GROUP BY T1.playerID, T2.firstName, T2.lastName ORDER BY SUM(T1.Min) DESC LIMIT 1" excellent. can you also give me the course description for ACCT-211?,"SELECT CRS_DESCRIPTION FROM COURSE WHERE CRS_CODE = ""ACCT-211""" OK. Which instructor ids appear more than once in the advisor table,SELECT T1.id FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count ( * ) > 1 What is the name of the document with the most number of sections?,SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1 How many players are there?,SELECT count ( * ) FROM Player How many episodes were directed by Ken Fink?,"SELECT COUNT(_number) FROM table_27905664_1 WHERE directed_by = ""Ken Fink""" What are the numbers of races for each constructor id?,"SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid" "Show the addresses and phones of all the buildings managed by ""Brenden"".","SELECT building_address , building_phone FROM Apartment_Buildings WHERE building_manager = ""Brenden""" What is the name of the team leading on August 17?,"SELECT team FROM table_name_6 WHERE date = ""august 17""" What game sites are where the team record is 1–6?,"SELECT game_site FROM table_25380472_2 WHERE team_record = ""1–6""" What are the nicknames of schools whose division is not 1?,"SELECT Nickname FROM school_details WHERE Division != ""Division 1""" What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.,"SELECT general_classification FROM table_name_21 WHERE points_classification = ""daniele bennati"" AND young_rider_classification = ""morris possoni"" AND stage = ""3""" "When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi?","SELECT mens_3rd_xi FROM table_21576644_2 WHERE ladies_1st_xi = ""3rd, Sedgemoor Division 1""" where are dragons used as mascots?,"SELECT location FROM table_2439728_1 WHERE mascot = ""Dragons""" What is the round of the match at venue A with a result of 1-2 on 7 December 2004?,"SELECT round FROM table_name_17 WHERE venue = ""a"" AND result = ""1-2"" AND date = ""7 december 2004""" What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?,"SELECT Studio FROM film WHERE Director = ""Nicholas Meyer"" INTERSECT SELECT Studio FROM film WHERE Director = ""Walter Hill""" Find the code of the role that have the most employees.,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 Which colleges students played in the try out in striker position?,select cName from Tryout where pPos = 'striker' "list the organisation type",select organisation_type from Organisation_Types Who was the producer for the film directed by 1997?,"SELECT producer FROM table_name_42 WHERE director = ""1997""" What was the box core for the Melbourne Tigers?,"SELECT Box AS score FROM table_name_21 WHERE home_team = ""melbourne tigers""" "Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.","SELECT T1.account_id , T1.date_account_opened , T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'" Please list the names of the top 3 most expensive cars.,SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 3 Which countries has the most number of airlines?,SELECT country FROM airlines GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 What is the constructor for 9 May?,"SELECT constructor FROM table_1140076_2 WHERE date = ""9 May""" How many films are in English?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.name = 'English' How many cores does the processor with a release price of $426 have?,"SELECT cores FROM table_name_28 WHERE release_price___usd__ = ""$426""" How many different projects are there?,SELECT count(DISTINCT name) FROM projects What are the IHSAA classes of the Indianapolis schools?,"SELECT ihsaa_class FROM table_name_34 WHERE location = ""indianapolis""" What country is player Raymond Floyd from?,"SELECT country FROM table_name_35 WHERE player = ""raymond floyd""" How many students will be impacted for the Fit Firsties! Project?,SELECT T2.students_reached FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Fit Firsties!' Show me the phone number of Gerald Patel's.,SELECT T2.PhoneNumber FROM Person AS T1 INNER JOIN PersonPhone AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Gerald' AND T1.LastName = 'Patel' how many cars were produced in 1980?,SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980; "Which examples ask the existential question ""Can I Love?""","SELECT examples FROM table_1058787_1 WHERE existential_question_[_not_in_citation_given_] = ""Can I Love?""" What are the ones that are in Canada only?,"select distinct ( t1.name ) from airports as t1 join routes as t2 on t1.apid = t2.src_apid where t1.name like 'A%' and t1.country = ""Canada""" "What is the Name with a Year of junior, and a High School with wheatley?","SELECT name FROM table_name_54 WHERE year = ""junior"" AND high_school = ""wheatley""" Which Week 10 Nov 2 has a Week 9 Oct 26 of lsu (5-2)?,"SELECT week_10_nov_2 FROM table_name_86 WHERE week_9_oct_26 = ""lsu (5-2)""" Which series with a total of 27 albums did Dargaud edit?,"SELECT series FROM table_name_39 WHERE editor = ""dargaud"" AND albums = ""27""" What is the percentage of all females that are literate people have a percentage of 68.74?,"SELECT females___percentage_ FROM table_14598_9 WHERE literate_persons___percentage_ = ""68.74""" What are the ids of courses without prerequisites?,SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq What South Asian nations have low incomes? Please include the entire names of the nations in your answer.,SELECT LongName FROM Country WHERE IncomeGroup = 'Low income' AND Region = 'South Asia' what is the club name of AKW,"select clubname from club where clublocation = ""AKW""" What are the heights of perpetrators in descending order of the number of people they injured?,SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC; what team lost on april 15,"SELECT loss FROM table_name_60 WHERE date = ""april 15""" "Among the players whose bowling skill is ""Legbreak"", when was the oldest one of them born?",SELECT MIN(T1.DOB) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id WHERE T2.Bowling_Skill = 'Legbreak' Who wrote the episode with 9.81 million US viewers?,"SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = ""9.81""" Which Angle from center/° has a Taper/ft smaller than 0.6000000000000001?,SELECT COUNT(angle_from_center_) AS ° FROM table_name_97 WHERE taper / ft < 0.6000000000000001 What was the larger number of players that played in 4 events that 2 wins but were less than 6 in the top 10?,SELECT MAX(top_25) FROM table_name_16 WHERE events > 4 AND wins = 2 AND top_10 < 6 What instrumental has tkven-i as the genitive?,"SELECT instrumental FROM table_name_42 WHERE genitive = ""tkven-i""" "What is February, when Record is ""21-29-11""?","SELECT february FROM table_name_46 WHERE record = ""21-29-11""" Name the drawn for tries for of 42,"SELECT drawn FROM table_name_95 WHERE tries_for = ""42""" Name all the products with next entry ID greater than 8.,SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8 When 17 is the number in series who is the director?,SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17 "Among the students with less than four intelligence, list the full name and phone number of students with a greater than 3 GPA.","SELECT f_name, l_name, phone_number FROM student WHERE gpa > 3 AND intelligence < 4" Who were the candidates in the district whose incumbent is Joe Waggonner?,"SELECT candidates FROM table_1341843_19 WHERE incumbent = ""Joe Waggonner""" What is the Nationality of the 1998-2000 Years for Grizzlies?,"SELECT nationality FROM table_name_54 WHERE years_for_grizzlies = ""1998-2000""" "What is the Opponents in Final in the match with a Score in Final of 4–6, 1–6 played on Clay Surface?","SELECT opponents_in_final FROM table_name_48 WHERE score_in_final = ""4–6, 1–6"" AND surface = ""clay""" How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?,"SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = ""14 september 2002""" "Return the type code of the document named ""David CV"".","SELECT document_type_code FROM documents WHERE document_name = ""David CV""" how many members are on the table? | do you mean the customers? | how many customers are on the table?,select count ( customer_id ) from Customers Which year has the most number of PC games releases?,"SELECT T.release_year FROM ( SELECT T2.release_year, COUNT(DISTINCT 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 T1.platform_name = 'PC' GROUP BY T2.release_year ORDER BY COUNT(DISTINCT T3.game_id) DESC LIMIT 1 ) t" What are the names for the 3 branches that have the most memberships?,SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 Which Name has a Pennant number of f82?,"SELECT name FROM table_name_56 WHERE pennant_number = ""f82""" What is the least number of gold medals won among nations ranked 1 with no silver medals?,SELECT MIN(gold) FROM table_name_8 WHERE rank = 1 AND silver < 1 What are the average profits of companies?,SELECT avg(Profits_billion) FROM Companies Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.,"SELECT kids FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY"";" "What is Part 3, when Part 1 is ""frjósa""?","SELECT part_3 FROM table_name_36 WHERE part_1 = ""frjósa""" On average how many caffeinated root beers are sold a day?,SELECT CAST(COUNT(T2.RootBeerID) AS REAL) / COUNT(DISTINCT T2.PurchaseDate) FROM rootbeerbrand AS T1 INNER JOIN rootbeer AS T2 ON T1.BrandID = T2.BrandID INNER JOIN `transaction` AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.Caffeinated = 'TRUE' What is the average height of all the goalies born in the 70s who's a left shooting/catching dominant and to which team do the tallest player/s play for most recently?,SELECT CAST(SUM(T2.height) AS REAL) / COUNT(*) FROM AwardsPlayers AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.height IS NOT NULL AND (T2.pos = 'LW' OR T2.pos = 'L/C') What Title's Start of Reign is 1993?,SELECT title FROM table_name_69 WHERE start_of_reign = 1993 Name the years with authority of state and decile more than 6 with roll less than 33,"SELECT years FROM table_name_40 WHERE authority = ""state"" AND decile > 6 AND roll < 33" what is the number of the wc matches if the matches were 79,SELECT MAX(WC) AS matches FROM table_30085411_1 WHERE matches = 79 Show me the name of the building with 12 floors?,SELECT name FROM building where floors = 12 What is the id of the team with the highest number of matches won?,SELECT Match_Id FROM `Match` ORDER BY Match_Winner DESC LIMIT 1 What are the auth id of Ralf?,"SELECT authID FROM Authors where fname = ""Ralf""" What is the number of colleges with a student population greater than 15000?,SELECT count(*) FROM College WHERE enr > 15000 How many invoices were billed from each state?,"SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state;" Makio Inoue dubbed on which character?,"SELECT character FROM table_2160215_1 WHERE original_japanese = ""Makio Inoue""" What is the highest balance?,select max ( balance ) from savings "What is the control for the school accredited by the higher learning commission ( nca ), ccne?","SELECT control FROM table_2076522_2 WHERE accreditation = ""The Higher Learning Commission ( NCA ), CCNE""" What was the 2009 value for a total over 1 and 4th on 2010?,"SELECT 2009 FROM table_name_36 WHERE total > 1 AND 2010 = ""4th""" "For the coach who co-coached with Dave Lewis in 1998, where was his birth place?",SELECT T1.birthCountry FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 1998 AND T2.notes = 'co-coach with Dave Lewis' "How many episodes were put out in Region 4 on March 4, 2010?","SELECT MAX(episodes) FROM table_14855908_3 WHERE region_4 = ""March 4, 2010""" And how many courses did the student attend?,SELECT count ( * ) FROM Student_Course_Attendance WHERE student_id = 121 What cods have a subdivision name (RU) of Grodnenskaya Oblast'?,"SELECT code FROM table_290017_1 WHERE subdivision_name___ru____bgn_pcgn_ = ""Grodnenskaya oblast'""" Name the 2011 for tokyo tournament,"SELECT 2011 FROM table_name_62 WHERE tournament = ""tokyo""" What is Friesland's gdp per capita?,"SELECT MIN(gdp_per_cap__2003), _in_€_ FROM table_1067441_1 WHERE province = ""Friesland""" "Level of membership Breton, Robert","SELECT Level_of_membership from member where name = 'Breton, Robert'" Find the total amount of loans offered by each bank branch.,"SELECT sum(amount) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname" What is maximum group equity shareholding of the companies?,SELECT max(group_equity_shareholding) FROM operate_company "What's the name of the episode whose part 3 aired on February 7, 2008?","SELECT title FROM table_13241993_3 WHERE part_3 = ""February 7, 2008""" What unit is in Mongolia?,"SELECT unit FROM table_name_29 WHERE location = ""mongolia""" What is the episode rating with the most award won?,SELECT T1.rating FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.result = 'Winner' GROUP BY T1.episode_id ORDER BY COUNT(T2.award_id) DESC LIMIT 1 What is the highest ERP W of an 89.1 frequency translator?,SELECT MAX(erp_w) FROM table_name_97 WHERE frequency_mhz = 89.1 Which Played number had a goal difference of more than 0 when the club was Valencia CF?,"SELECT COUNT(played) FROM table_name_29 WHERE goal_difference > 0 AND club = ""valencia cf""" In what League is the Reed School?,"SELECT league FROM table_name_87 WHERE school = ""reed""" "How many againsts have asba park, kimberley as the venue?","SELECT SUM(against) FROM table_name_66 WHERE venue = ""asba park, kimberley""" "Among the transactions, what percentage is done by using a visa card?",SELECT CAST(COUNT(CASE WHEN CreditCardType = 'Visa' THEN TransactionID ELSE NULL END) AS REAL) * 100 / COUNT(TransactionID) FROM `transaction` what is the technology when the gel pouring is no and the analysis time is 8 days?,"SELECT technology FROM table_name_88 WHERE gel_pouring = ""no"" AND analysis_time = ""8 days""" How many players are from each country?,"SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name" Which second's skip is Chris Plys?,"SELECT second FROM table_name_10 WHERE skip = ""chris plys""" Who is the Pick 7 player?,"SELECT player FROM table_name_59 WHERE pick = ""7""" What is the average amount of spectators when Essendon played as the home team?,"SELECT AVG(crowd) FROM table_name_84 WHERE home_team = ""essendon""" What was lane 4's time?,SELECT time FROM table_name_70 WHERE lane = 4 What are the team and starting year of technicians?,"SELECT Team , Starting_Year FROM technician" Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?,"SELECT location FROM table_25773116_2 WHERE pole_position = ""Daniel Erickson"" AND fastest_lap = ""Cole Morgan""" What is the branding for stations located in Cebu? ,"SELECT branding FROM table_17487395_1 WHERE location = ""Cebu""" "What is the Round with a Prize of money that is £120,000?","SELECT round FROM table_name_59 WHERE prize_money = ""£120,000""" What is the highest number of losses with 25 points?,SELECT MAX(lost) FROM table_name_79 WHERE points = 25 How many times were Duke the opponents?,"SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = ""Duke""" What is the least common media type in all tracks?,SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1 What was the score of the match in which Portsmouth was the Away team?,"SELECT score_1 FROM table_name_23 WHERE away_team = ""portsmouth""" "What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2?",SELECT SUM(rank) FROM table_name_28 WHERE silver = 1 AND gold < 7 AND bronze = 2 What is the name of the episode written by glen mazzara?,"SELECT title FROM table_30030477_1 WHERE written_by = ""Glen Mazzara""" Which type opened in 1982?,"SELECT type FROM table_name_12 WHERE opened = ""1982""" "What is the average processed time of the solution with a repository of 254 likes, 88 followers, and 254 watchers?",SELECT CAST(SUM(T2.ProcessedTime) AS REAL) / COUNT(T2.ProcessedTime) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 254 AND T1.Forks = 88 AND T1.Watchers = 254 What was the score of Game 48?,"SELECT score FROM table_name_43 WHERE game = ""48""" how many orders did the person with the most orders have?,select count ( * ) from orders group by customer_id order by count ( * ) desc limit 1 how many production codes were there for the episode that was 32 in the series?,SELECT COUNT(prod_code) FROM table_17901155_3 WHERE no_in_series = 32 What is the publisher with most number of books?,SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1 Show the average transaction amount for different transaction types.,"SELECT transaction_type_code, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code" What is the mark for the runner in lanes under 2 and heats under 5?,SELECT mark FROM table_name_83 WHERE lane < 2 AND heat < 5 What is the largest caps value for Glen Moss?,"SELECT MAX(caps) FROM table_name_50 WHERE player = ""glen moss""" Who was the Team that was played against on February 24 and a game after game 55?,"SELECT team FROM table_name_61 WHERE game > 55 AND date = ""february 24""" How much time is required for less than 35 laps and less than 10 grids?,SELECT time_retired FROM table_name_9 WHERE laps < 35 AND grid < 10 What was the aggregate for the match with Sierra Leone as team 1?,"SELECT agg FROM table_name_28 WHERE team_1 = ""sierra leone""" What years are shared?,"SELECT Starting_Year FROM technician WHERE Team = ""CLE"" INTERSECT SELECT Starting_Year FROM technician WHERE Team = ""CWS""" what is the position in table when the team is hartlepool united?,"SELECT position_in_table FROM table_name_11 WHERE team = ""hartlepool united""" Which Year has a Best Film of mystery?,"SELECT year FROM table_name_80 WHERE best_film = ""mystery""" When is the Competition of friendly match with a Result of 2–1?,"SELECT date FROM table_name_47 WHERE competition = ""friendly match"" AND result = ""2–1""" "How many people attended the game on February 3, 2008?","SELECT SUM(attendance) FROM table_name_34 WHERE date = ""february 3, 2008""" "Among the countries whose agriculture takes up more than 40% of its GDP, how many of them have less than 2 mountains?",SELECT COUNT(T3.Country) FROM ( SELECT T1.Country FROM economy AS T1 INNER JOIN geo_mountain AS T2 ON T1.Country = T2.Country WHERE T1.Industry < 40 GROUP BY T1.Country HAVING COUNT(T1.Country) < 2 ) AS T3 What are the names of the recipes that will cause stomach pain?,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.iron > 20 What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b?,"SELECT MIN(points) FROM table_name_48 WHERE engine = ""lamborghini v12"" AND chassis = ""minardi m191b""" Rosa Pompanin was second for which club?,"SELECT club FROM table_name_64 WHERE second = ""rosa pompanin""" How many categories of Senate Seats does Emile Roemer have? ,"SELECT COUNT(senate_seats) FROM table_158282_1 WHERE political_leader = ""Emile Roemer""" How many other asset details are there labeled in Bad condition?,"SELECT count ( * ) from assets where other_asset_details = ""Bad condition""" What is the overs when the matches are 10?,"SELECT overs FROM table_name_88 WHERE matches = ""10""" List the match IDs which had players out by hit wickets.,SELECT T1.Match_Id FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T2.Out_Id = T1.Kind_Out WHERE T2.Out_Name = 'hit wicket' Which mean rank had a silver number smaller than 0?,SELECT AVG(rank) FROM table_name_60 WHERE silver < 0 What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department?,"SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'" What does the ii Series weigh?,"SELECT weight FROM table_name_73 WHERE series = ""ii series""" what is the average points when the nation is wales and the pts/game is more than 5?,"SELECT AVG(points) FROM table_name_97 WHERE nation = ""wales"" AND pts_game > 5" "Find the name, age, and job title of persons who are friends with Alice for the longest years.","SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')" What are the different names and countries of origins for all artists whose song ratings are above 9?,"SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9" "What are the first and last name of the author who published the paper titled ""Nameless, Painless""?","SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Nameless , Painless""" Name the sum of gold which has a silver more than 1,SELECT SUM(gold) FROM table_name_23 WHERE silver > 1 "Among the coaches who won the 'NBA coach of the year' award from 1971 - 1975, how many of them were in 'POR' team?",SELECT COUNT(T1.id) FROM awards_coaches AS T1 INNER JOIN teams AS T2 ON T1.year = T2.year WHERE T1.year BETWEEN 1971 AND 1975 AND T1.award = 'NBA Coach of the Year' AND T2.tmID = 'POR' List down the category of businesses whose stars ratings are 5.,SELECT DISTINCT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T1.stars = 5 How many students are playing multiple sports?,SELECT count ( * ) FROM ( SELECT * FROM Sportsinfo GROUP BY StuID having count ( * ) > 1 ) When was the last win for the club that had a final loss in 2011?,"SELECT last_win FROM table_name_34 WHERE last_final_lost = ""2011""" How many are in Calgary?,SELECT count ( * ) FROM employees WHERE title = 'IT Staff' and city = 'Calgary' What tyre has a chassis of p57 p61?,"SELECT tyre FROM table_name_85 WHERE chassis = ""p57 p61""" What are the top 5 countries by number of invoices and how many do they have?,"SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;" How many poll sources are there?,SELECT count ( Poll_Source ) from candidate "What is the location before game 44, and a 20-16 record?","SELECT location FROM table_name_10 WHERE game < 44 AND record = ""20-16""" Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?,SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20 What is the number when birthday is 15 november 1973?,"SELECT no FROM table_11950720_4 WHERE date_of_birth = ""15 November 1973""" what is the maximum number of points?,SELECT MAX(points) FROM table_27539272_5 What is the English title when the original title is Die Qual Der Wahl?,"SELECT title__english_ FROM table_1481865_1 WHERE title__original_ = ""Die Qual der Wahl""" What is the first name and last name employee helps the customer with first name Leonie?,"SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = ""Leonie""" What are the ids of the movies that are not reviewed by Brittany Harris.,"SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" What is the average age for a male in each job?,"SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job" What was the record in the game against Eskimos?,"SELECT record FROM table_23685152_2 WHERE opponent = ""Eskimos""" How many years did he have an average finish of 11.7?,"SELECT COUNT(avg_start) FROM table_2387790_2 WHERE avg_finish = ""11.7""" "What myspace has linkedin as the site, with an orkit greater than 3?","SELECT AVG(myspace) FROM table_name_62 WHERE site = ""linkedin"" AND orkut > 3" How many customers do we have?,SELECT count(*) FROM CUSTOMERS What year was Zona Sur nominated?,"SELECT year__ceremony_ FROM table_name_69 WHERE original_title = ""zona sur""" What university is houston dynamo affiliated with?,"SELECT affiliation FROM table_25518547_4 WHERE mls_team = ""Houston Dynamo""" What was the result when the team had contested 14 home games?,SELECT result FROM table_14302582_1 WHERE home_matches = 14 What is the lending category of the country with a cereal production of 6140000 metric tons for the year 1966?,SELECT T1.LendingCategory FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Cereal production (metric tons)' AND T2.Value = 6140000 AND T2.Year = 1966 "How many neutral reviews does the app ""Dino War: Rise of Beasts"" have?",SELECT COUNT(App) FROM user_reviews WHERE App = 'Dino War: Rise of Beasts' AND Sentiment = 'Neutral' Tell me the constructor for clay regazzoni,"SELECT constructor FROM table_name_24 WHERE driver = ""clay regazzoni""" "What is Third Vice President, when Second Vice President is ""Baudelio Palma""?","SELECT third_vice_president FROM table_name_16 WHERE second_vice_president = ""baudelio palma""" How many shipments were shipped by the driver named Zachary Hicks?,SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.driver_id = 23 Which station did the user who started at Market at 4th station ended their trip at the time of 12:45:00 PM and the date of 8/29/2013 and what is the location coordinates of the ending station?,"SELECT T1.name, T1.lat, T1.long FROM station AS T1 INNER JOIN trip AS T2 ON T2.end_station_name = T1.name WHERE T2.start_station_name = 'Market at 4th' AND T2.end_date = '8/29/2013 12:45'" "What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?",SELECT goal_difference FROM table_name_97 WHERE draws > 6 AND position > 12 AND wins < 9 "Who are the advisors for students that live in a city with city code ""BAL""?","SELECT Advisor FROM STUDENT WHERE city_code = ""BAL""" "Which ranking system is criteria ""Total Shanghai"" in?",SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Total Shanghai' "What are the names, dates active, and number of deaths for storms that had 1 or more death?","SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1" What is the 2006 sum with a rank 1 and more than 6758845 in 1996?,SELECT SUM(2006) FROM table_name_38 WHERE rank = 1 AND 1996 > 6758845 "Yes, please.",select name from user_profiles where followers = ( SELECT max ( followers ) FROM user_profiles ) What is the average market share of all browsers?,SELECT avg ( market_share ) FROM browser What was the score of the game whose first star was O. Pavelec?,"SELECT score FROM table_27537518_6 WHERE first_star = ""O. Pavelec""" What was the type of inspection Tiramisu Kitchen had on 2014/1/14?,SELECT T1.type FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = '2014-01-14' AND T2.name = 'Tiramisu Kitchen' 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' Find the first names of professors who are teaching more than one class.,SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING COUNT(*) > 1 On waht date did Antoinette Jeanne Yvonne Boegner get married?,"SELECT marriage FROM table_name_28 WHERE spouse = ""antoinette jeanne yvonne boegner""" Which title has the most authors?,SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = ( SELECT max ( authorder ) FROM authorship ) Who is the director of Antz?,"SELECT director FROM table_name_35 WHERE title = ""antz""" How many documents have the status code done?,"SELECT count(*) FROM Documents WHERE document_status_code = ""done"";" How many millions of U.S. viewers watched episode 185?,SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185 "Hmm, I want to know just the destinations and the flight numbers please.","SELECT destination, flno FROM Flight GROUP BY destination" "What is Doctor, when Format is CD, and when Title is The Relics Of Time?","SELECT doctor FROM table_name_98 WHERE format = ""cd"" AND title = ""the relics of time""" Which school requested the highest amount of resources from Amazon? State the school's ID.,SELECT T2.schoolid FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name LIKE 'Amazon' GROUP BY T2.schoolid ORDER BY COUNT(T1.vendor_name) DESC LIMIT 1 "What is the total profit of ""Memorex Froggy Flash Drive 8 GB in south superstore?",SELECT SUM(T1.Profit) FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` GROUP BY T2.`Product Name` = 'Memorix Froggy Flash Drive 8 GB' "What is the position of the player who's hometown is North Babylon, NY?","SELECT position FROM table_20785990_2 WHERE home_town = ""North Babylon, NY""" How many 'Cutlery' type products are there?,SELECT COUNT ( product_id ) FROM products_for_hire WHERE product_type_code = 'Cutlery' Can you filter that list to show only the school with the largest enrollment?,SELECT * FROM university ORDER BY enrollment DESC LIMIT 1 How many laps were in 1969?,"SELECT laps FROM table_name_95 WHERE year = ""1969""" What frequency is mega manila set to?,"SELECT frequency FROM table_24418525_1 WHERE coverage = ""Mega Manila""" What department as 6 years experience?,"SELECT department FROM table_name_90 WHERE experience = ""6 years""" How many compliments received from medium users that Phoenix city achieved?,SELECT COUNT(T1.number_of_compliments) FROM Users_Compliments AS T1 INNER JOIN Reviews AS T2 ON T1.user_id = T2.user_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T3.city LIKE 'Phoenix' AND T1.number_of_compliments LIKE 'Medium' What is the Series of the Filmography with Release date of 1946-01-05?,"SELECT series FROM table_name_1 WHERE release_date = ""1946-01-05""" Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?,"SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = ""3000 m s'chase"" AND position = ""2nd"" AND competition = ""african championships""" What is the name of the party form that is most common?,SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1 What are the names of instructors who advise more than one student?,SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1 "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.","SELECT name, city, country, elevation FROM airports WHERE city = 'New York'" "Find the number of the products that have their color described as ""red"" and have a characteristic named ""slow"".","SELECT COUNT(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""slow""" "What is the unsaturated fat content in the recipe ""Raspberry Chiffon Pie""?",SELECT T2.total_fat - T2.sat_fat FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' Name the total number of domestic mail for 7853 for total frieght and mail,SELECT COUNT(domestic_mail) FROM table_1754531_4 WHERE total_freight_and_mail = 7853 How many users are logged in?,SELECT count(*) FROM users WHERE user_login = 1 what is highest score of submission,SELECT scores FROM submission ORDER BY scores DESC LIMIT 1 At which district did the multiple homicide case number JB120039 occurred?,"SELECT T1.district_no, T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB120039' GROUP BY T1.district_no, T1.district_name" List all product names in ascending order of price.,SELECT Product_Name FROM Products ORDER BY Product_Price ASC How many professors are more popular than Zhou Zhihua?,SELECT COUNT(prof_id) FROM prof WHERE popularity > ( SELECT popularity FROM prof WHERE first_name = 'Zhihua' AND last_name = 'Zhou' ) In what percentage of games played at the Dr DY Patil Sports Academy venue did the winning team win by a margin of less than 10?,SELECT CAST(COUNT(CASE WHEN T2.Win_Margin < 10 THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Venue_Id) FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Venue_Name = 'Dr DY Patil Sports Academy' Find the distinct ages of students who have secretary votes in the fall election cycle.,"SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = ""Fall""" What was the Tournament on May 2?,"SELECT tournament FROM table_name_12 WHERE week = ""may 2""" What is the least common faculty rank?,SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1 Calculate the average rate of renting the film that Lucille Tracy got starred.,SELECT AVG(T3.rental_rate) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'LUCILLE' AND T1.last_name = 'TRACY' in what policy id is it in?,SELECT policy_id FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1 What are the debut year for wrestlers born in Nara?,"SELECT debut FROM table_1557974_1 WHERE birthplace = ""Nara""" What is the birth date of the player with the most assists during the 1985 All-Star season?,SELECT T1.birthDate FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1985 ORDER BY T2.assists DESC LIMIT 1 How many stores are there?,SELECT count ( distinct store_id ) FROM inventory "What was the rank of a transfer fee larger than 13 million, and after 2008?",SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008 What is the total number professors with doctorates employed by the 11 departments?,"SELECT count ( * ) from professor where prof_high_degree = ""Ph.D.""" What was the race of the jockey in na group in 4th place?,"SELECT race FROM table_name_15 WHERE group = ""na"" AND result = ""4th""" "What is the average L/100km urban value having an L/100km extraurban under 7.2, mpg combined in the UK under 39.8, l/100km combined over 7.9, and mpg combined in the US under 25.1?",SELECT AVG(l_100km_urban__cold_) FROM table_name_97 WHERE l_100km_extra_urban < 7.2 AND mpg_uk_combined < 39.8 AND l_100km_combined > 7.9 AND mpg_us_combined < 25.1 Excellent! Can you update that list to include the customer names and their account balances?,"SELECT T1.cust_id,T1.cust_name,T1.acc_bal FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum ( T2.amount ) > = 5000" What height is player number 9?,SELECT height FROM table_12962773_12 WHERE no = 9 What is the player id of the heaviest player?,SELECT player_id FROM player ORDER BY weight DESC LIMIT 1 "What are the distinct reigns of wrestlers whose location is not ""Tokyo,Japan"" ?","SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != ""Tokyo , Japan""" Which classes have more than two captains?,SELECT CLASS FROM captain GROUP BY CLASS HAVING COUNT(*) > 2 what's the minimum species in the peruvian amazon with peru vs. world (percent) value of 7,SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE peru_vs_world__percent_ = 7 Which store has most the customers?,SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1 "WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN?","SELECT country FROM table_name_68 WHERE to_par = ""+1"" AND player = ""woody austin""" How many airports are there per country? Order the countries by decreasing number of airports.,"SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC" What was the highest 2007 budget when the order of succession was 3?,"SELECT MAX(2007 AS _budget_in_billions_of_dollars) FROM table_name_35 WHERE order_of_succession = ""3""" What's the result of a goal larger than 4?,SELECT result FROM table_name_59 WHERE goal > 4 "How many cartoons were written by ""Joseph Kuhr""?","SELECT count(*) FROM Cartoon WHERE Written_by = ""Joseph Kuhr"";" "Between the faculty employee professors, how many teaches high-level or harder undergraduate courses? Indicate each of the professors unique identifying number.",SELECT COUNT(*) FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id WHERE T1.hasPosition = 'Faculty_eme' AND T1.professor = 1 AND T3.courseLevel = 'Level_400' What is the June 21 ncaat baseball record for Fresno State Bulldogs?,"SELECT ncaat_record FROM table_18025024_7 WHERE date = ""June 21""" Please list the order keys of all the orders that have more than 2 parts with a jumbo case container.,"SELECT T.l_orderkey FROM ( SELECT T2.l_orderkey, COUNT(T2.l_partkey) AS num FROM part AS T1 INNER JOIN lineitem AS T2 ON T1.p_partkey = T2.l_partkey WHERE T1.p_container = 'JUMBO CASE' GROUP BY T2.l_orderkey ) AS T WHERE T.num > 2" What percentage of films are made in the US?,SELECT CAST(COUNT(CASE WHEN T3.COUNTry_iso_code = 'US' THEN T1.movie_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id What is the average quantity of stocks?,SELECT avg(Quantity) FROM stock Who has a Rank larger than 3 with a speed of 119.838mph?,"SELECT rider FROM table_name_12 WHERE rank > 3 AND speed = ""119.838mph""" Who won in 1997 with a finish of t48?,"SELECT player FROM table_name_47 WHERE finish = ""t48"" AND year_s__won = ""1997""" "What was the Surface when the Score was 6–4, 2–6, 3–6?","SELECT surface FROM table_name_17 WHERE score = ""6–4, 2–6, 3–6""" How many active businesses of city are underrated?,SELECT COUNT(business_id) FROM Business WHERE review_count LIKE 'Low' AND active LIKE 'TRUE' What is the T568A color for the cable with a white/orange stripe T568B color?,"SELECT t568a_color FROM table_name_44 WHERE t568b_color = ""white/orange stripe""" When the kilometers from kingston is 105.4 what is the minimum amount of length in feet? ,"SELECT MIN(length_feet) FROM table_16226584_1 WHERE km_from_kingston = ""105.4""" Tell the name of the driver who received the shipment on 2017/11/5.,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_date = '2017-11-05'" How many investors are there?,select count ( * ) from investors How many games did Palmeiras win?,"SELECT MAX(won) FROM table_15318779_1 WHERE team = ""Palmeiras""" What is the club/province of the player born on 12 May 1984?,"SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = ""12 may 1984""" What is the total number of professors with a Ph.D. ?,SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' Name the results for steve millen,"SELECT results FROM table_13643154_2 WHERE gto_winning_team = ""Steve Millen""" What are the staff roles of the staff who starts working after 2003-04-19 15:06:20 and ends working before 2016-03-15 00:33:18?,SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18' what is the highest mccain # where obama got 33.7%,"SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = ""33.7%""" what is the score when the tie no is 28?,SELECT score FROM table_name_97 WHERE tie_no = 28 What was the H/A/N for the game that ended in a score of 108-102?,"SELECT h_a_n FROM table_name_12 WHERE score = ""108-102""" which furnitures are highest market rate | The name of the furniture that has the highest market rate is Billiard table | what about the highest price of furniture,SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID order by T2.Price_in_Dollar desc limit 1 What is the Game number when the Rangers have a Record of 25-24-11?,"SELECT COUNT(game) FROM table_name_18 WHERE record = ""25-24-11""" "In children's movies, which was rented the most?","SELECT T.title FROM ( SELECT T4.title, COUNT(T4.title) AS num FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id INNER JOIN film_category AS T5 ON T4.film_id = T5.film_id INNER JOIN category AS T6 ON T5.category_id = T6.category_id WHERE T6.name = 'Children' GROUP BY T4.title ) AS T ORDER BY T.num DESC LIMIT 1" How many ships does United Kingdom have?,"SELECT Nationality,count ( * ) FROM ship WHERE Nationality = 'United Kingdom' GROUP BY Nationality" How many department stores does the store chain West have?,"SELECT count ( * ) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""West""" What is the 2004 population for 山海关区?,"SELECT population__2004_est_ FROM table_name_46 WHERE hanzi = ""山海关区""" How many items were recorded marseille (32 draw) was a 2 seed?,SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 2 Which sport did John Aalberg participate in?,SELECT DISTINCT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T5.full_name = 'John Aalberg' Date of 7 september 1996 includes which highest rank athlete?,"SELECT MAX(rank) FROM table_name_68 WHERE date = ""7 september 1996""" "Which Opponents have a Year of 1998–99, and a Team of aston villa?","SELECT opponents FROM table_name_23 WHERE year = ""1998–99"" AND team = ""aston villa""" "List the films' titles which were rented by Brian Wyman in July, 2005.","SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'BRIAN' AND T1.last_name = 'WYMAN' AND STRFTIME('%Y', T2.rental_date) = '2005' AND STRFTIME('%m',T2.rental_date) = '7'" "What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?","SELECT AVG(points) FROM table_name_11 WHERE wins < 1 AND season = ""2012"" AND podiums < 0" How many raters gave reviews less than 4 stars?,SELECT count ( DISTINCT RID ) FROM Rating WHERE stars < 4 Tell me the title of work for year more than 2009,SELECT title_of_work FROM table_name_17 WHERE year > 2009 What was the record when the score was w 108–93 (ot)?,"SELECT record FROM table_13619135_5 WHERE score = ""W 108–93 (OT)""" "In the Winter and Summer Olympics of 1988, which game has the most number of competitors? Find the difference of the number of competitors between the two games.","SELECT P1 , ( SELECT MAX(P2) - MIN(P2) FROM ( SELECT COUNT(T2.person_id) AS P2 FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name IN ('1988 Winter', '1988 Summer') GROUP BY T1.season ) ORDER BY P2 DESC LIMIT 1 ) FROM ( SELECT T1.season AS P1, COUNT(T2.person_id) AS P2 FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name IN ('1988 Winter', '1988 Summer') GROUP BY T1.season ) ORDER BY P2 DESC LIMIT 1" Find the first names of all instructors who have taught some course and the course code.,"SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num" List only the names and scores of wines made with white grapes.,"SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.",SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims ) List total amount of invoices from Norway?,"SELECT sum ( total ) FROM invoices WHERE billing_country = ""Norway""" Who was the opponent at the game when the record was 28–45?,"SELECT opponent FROM table_name_66 WHERE record = ""28–45""" What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?,"SELECT episode FROM table_13943239_1 WHERE viewers__millions_ = ""6.06""" what couple had a vote percentage of 5.8%?,"SELECT couple FROM table_26375386_20 WHERE vote_percentage = ""5.8%""" David James Elliott directed which episode number within the series?,"SELECT no_in_series FROM table_228973_11 WHERE directed_by = ""David James Elliott""" "What's the winning score on Feb 12, 1978?","SELECT winning_score FROM table_name_49 WHERE date = ""feb 12, 1978""" What game happened on December 19?,"SELECT MAX(game) FROM table_15780049_5 WHERE date = ""December 19""" Which Release date has a Type of 2d?,"SELECT release_date FROM table_name_34 WHERE type = ""2d""" What was the total number of medals received by James Logan High School when it received less than 1 silver medal?,"SELECT COUNT(total_medals) FROM table_name_42 WHERE ensemble = ""james logan high school"" AND silver_medals < 1" List the price for Zetacoin on 13/11/1 and the next 7 consecutive days. What is the average price for these 7 days?,SELECT T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Zetacoin' AND T2.date BETWEEN '2013-11-01' AND '2013-11-07' UNION ALL SELECT AVG(T2.PRICE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Zetacoin' AND T2.date BETWEEN '2013-11-01' AND '2013-11-07' "list the name of a shooting game. | Do you mean ""First-person shooter"" games? | yes i mean ""first-person shooter"" game?","SELECT GName FROM Video_games WHERE GType = ""Frist-person shooter""" Find the code of city where most of students are living in.,SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 List all the average reviews of Chinese restaurants for each county from highest to lowest.,SELECT AVG(T1.review) FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.food_type = 'chinese' GROUP BY T1.id_restaurant ORDER BY AVG(T1.review) DESC "what is the highest electricity production (kw/h, billion) when the % other renewable is 0.4, % coal is 0 and % hydropower is more than 99?","SELECT MAX(electricity_production__kw_h), _billion_ FROM table_name_19 WHERE _percentage_other_renewable = 0.4 AND _percentage_coal = 0 AND _percentage_hydropower > 99" What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?,"SELECT gecko FROM table_name_6 WHERE prince_xml = ""yes"" AND khtml = ""yes""" "Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?","SELECT home_stadium FROM table_name_25 WHERE conference = ""american"" AND city = ""nashville, tennessee""" "WHAT IS THE STROKE COUNT WITH RADICAL OF 生, FRQUENCY SMALLER THAN 22?","SELECT COUNT(stroke_count) FROM table_name_57 WHERE radical__variants_ = ""生"" AND frequency < 22" What is Elizabeth Yarnold's nation?,"SELECT nation FROM table_name_70 WHERE athlete_s_ = ""elizabeth yarnold""" How many were in attendance when the score was † 4–4 †?,"SELECT attendance FROM table_name_33 WHERE score = ""† 4–4 †""" "Which owner owns the most dogs? List the owner id, first name and last name.","SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1" How many courses are there?,SELECT count ( * ) FROM course list names of all departments ordered by their names.,SELECT dept_name FROM department ORDER BY dept_name "Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened?",SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND T4.ArtificialSweetener = 'FALSE' AND T4.Honey = 'FALSE' What is the event year radek štěpánek was the round and there were less than 3 aces?,"SELECT COUNT(event) FROM table_name_92 WHERE round = ""radek štěpánek"" AND NOT aces < 3" Hello! Can you provide me with a list of all of the staff members first and last names?,"SELECT staff_first_name , staff_last_name FROM staff" What are the states of all customers who who have the customer type code Good Credit Rating?,"SELECT state FROM customers where customer_type_code = ""Good Credit Rating""" Which pilot is in charge of most number of flights?,SELECT pilot FROM flight GROUP BY pilot ORDER BY count ( * ) DESC LIMIT 1 "What tournament took place after 1986 and had a final score of 7–6, 3–6, 6–2?","SELECT tournament FROM table_name_26 WHERE date > 1986 AND score_in_the_final = ""7–6, 3–6, 6–2""" Who constructed the Syracuse circuit?,"SELECT constructor FROM table_1140111_5 WHERE circuit = ""Syracuse""" Which candidates are from the Missouri 3 district?,"SELECT candidates FROM table_1341586_26 WHERE district = ""Missouri 3""" What is the title of Episode #2,SELECT title FROM table_165732_2 WHERE episode__number = 2 Who are the featuring companions of number 3?,"SELECT featuring_companion FROM table_2950964_1 WHERE _number = ""3""" Which opponent has a record of 17-11?,"SELECT opponent FROM table_name_86 WHERE record = ""17-11""" What was the score of the game on November 22?,"SELECT result FROM table_name_8 WHERE date = ""november 22""" List the scene numbers involving the character named Sir Toby Belch in the Twelfth Night.,SELECT DISTINCT T2.Scene FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.Title = 'Twelfth Night' AND T4.CharName = 'Sir Toby Belch' "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.","SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2" What courses have more than one prerequisite?,SELECT course_id from prereq GROUP BY course_id HAVING count ( * ) > 1 how many dates where high assists is stu douglass (5) – 4,"SELECT COUNT(date) FROM table_20010140_10 WHERE high_assists = ""Stu Douglass (5) – 4""" What's the production if the technology is sodium-sulfur batteries and yes to toxic materials?,"SELECT in_production FROM table_name_39 WHERE toxic_materials = ""yes"" AND technology = ""sodium-sulfur batteries""" what is the color code of basil?,SELECT color_code from products where product_name = 'basil' Who is the Jockey for guadalcanal?,"SELECT jockey FROM table_name_52 WHERE horse = ""guadalcanal""" What is the Date of Shooter New Targets from 1989's record?,"SELECT date FROM table_name_39 WHERE shooter = ""new targets from 1989""" What is name of the drive with a Time of +13.315?,"SELECT driver FROM table_name_85 WHERE time = ""+13.315""" "Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?","SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = ""2010"" AND model = ""de40lfr""" Who was the latest non player/builder to become the hall of famer? Give the full name.,"SELECT name FROM HOF WHERE category IN ('Player', 'Builder') ORDER BY year DESC LIMIT 1" How much fat does the Raspberry Chiffon Pie have?,SELECT T2.total_fat FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie' What is the Home team score when away team is hawthorn?,"SELECT home_team AS score FROM table_name_70 WHERE away_team = ""hawthorn""" Name the third place for anders järryd,"SELECT third_place FROM table_name_75 WHERE runner_up = ""anders järryd""" Can you show the names of songs whose genre is modern or language is English?,"SELECT song_name FROM song WHERE genre_is = ""modern"" OR languages = ""english""" "What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583?","SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = ""honda"" AND time = ""+10.583""" Who is the player with a 76-67-71=214 score?,SELECT player FROM table_name_59 WHERE score = 76 - 67 - 71 = 214 Name the advisors for students in Year 3 of the program.,SELECT T1.p_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_3' What character won the best dramatic performance award?,"SELECT character FROM table_name_26 WHERE category = ""best dramatic performance""" "Which UEFA Champions League has a La Liga of 17, and a Copa del Rey larger than 0?",SELECT MIN(uefa_champions_league) FROM table_name_9 WHERE la_liga = 17 AND copa_del_rey > 0 list all city towns,SELECT City_Town FROM Addresses "For the method which got the tokenized name as 't jadwal entity get single mpic', what is the path time for its solution?",SELECT DISTINCT T1.ProcessedTime FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 't jadwal entity get single mpic' "Show the description for role name ""Proof Reader"".","SELECT role_description FROM ROLES WHERE role_name = ""Proof Reader""" "Who was the opponent on October 14, 1984?","SELECT opponent FROM table_name_62 WHERE date = ""october 14, 1984""" What are the names of companies that do not make DVD drives?,SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive' What visitor has December 14 as the date?,"SELECT visitor FROM table_name_55 WHERE date = ""december 14""" What was the location for the team name of patriots?,"SELECT location FROM table_24195232_1 WHERE team_name = ""Patriots""" "What is the maximum level of managers in countries that are not ""Australia""?","SELECT max(LEVEL) FROM manager WHERE Country != ""Australia """ In how many teams is Waqar Younis the head coach?,"SELECT COUNT(team) FROM table_19905183_1 WHERE head_coach = ""Waqar Younis""" Which team is in 14th position?,"SELECT team FROM table_name_20 WHERE pos = ""14th""" What is the name of the product with the highest price?,SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1 What is the money list rank for 1966?,SELECT money_list_rank FROM table_13026799_3 WHERE year = 1966 What are the employee ids for employees who have held two or more jobs?,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 What are the maximum and minimum number of silver medals for clubs.,"SELECT max(Silver) , min(Silver) FROM club_rank" Can you list the address id of all customers who lived in Lockmanfurt?,"SELECT T2.address_id FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = ""Lockmanfurt""" Where was the game played on 20 may?,"SELECT venue FROM table_name_19 WHERE date = ""20 may""" How many matches did team Mumbai Indians win in 2008?,SELECT COUNT(T.Match_Id) FROM ( SELECT T2.Match_Id FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Player_Match AS T3 ON T1.Team_Id = T3.Team_Id WHERE T1.Team_Name = 'Mumbai Indians' AND T2.Match_Date LIKE '2008%' GROUP BY T2.Match_Id ) T What is the type of video game Call of Destiny.,"SELECT gtype FROM Video_games WHERE gname = ""Call of Destiny""" What's the Württemberg in the year before 1929?,SELECT württemberg FROM table_name_42 WHERE year < 1929 "What is the after debt has receipts of $379,794?","SELECT after_debt FROM table_name_90 WHERE total_receipts = ""$379,794""" find the number of players for each country.,"SELECT count(*) , country_code FROM players GROUP BY country_code" What is the highest profit on net for a product?,SELECT LastReceiptCost - StandardPrice FROM ProductVendor ORDER BY LastReceiptCost - StandardPrice DESC LIMIT 1 What is the College of the LB Player with Big Ten Conf.?,"SELECT college FROM table_name_70 WHERE pos = ""lb"" AND conf = ""big ten""" What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?,"SELECT sixth FROM table_name_70 WHERE second = ""tasmania"" AND fourth = ""western australia""" How many episodes are numbered 14 in the series?,SELECT COUNT(episode) FROM table_27081956_1 WHERE series_no = 14 What is shintaro ishiwatari's time?,"SELECT time FROM table_name_6 WHERE opponent = ""shintaro ishiwatari""" "How many apps were last updated in January of 2018? Please write one translated review with positive sentiment for each app, if there's any.","SELECT DISTINCT Translated_Review FROM user_reviews WHERE App IN ( SELECT App FROM playstore WHERE `Last Updated` BETWEEN 'January 1, 2018' AND 'January 31, 2018' ) AND Sentiment = 'Positive'" What is the document name and template id for document with description with the letter 'w' in it?,"SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE ""%w%""" Name the result for walter jones (dr) 99.0% henry lee (f) 1.0%,"SELECT result FROM table_2668387_18 WHERE candidates = ""Walter Jones (DR) 99.0% Henry Lee (F) 1.0%""" What are the purchase details of transactions with amount bigger than 10000?,SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 "What is the Money ($) when the Place is t6, and Player is chris dimarco?","SELECT money___$__ FROM table_name_40 WHERE place = ""t6"" AND player = ""chris dimarco""" What person has Zach as a friend?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' What city does Alice live in?,"SELECT city from person where name = ""Alice""" What was the place for the player whose final score was 71-69=140?,SELECT place FROM table_name_78 WHERE score = 71 - 69 = 140 Which browsers are compatible with CACHebox?,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' What was # of the first game played on August 20?,"SELECT MIN(game) FROM table_18904831_7 WHERE date = ""August 20""" "How much money has been raised that has $5,821,587 cash on hand?","SELECT money_raised, _3q FROM table_name_75 WHERE cash_on_hand = ""$5,821,587""" How many customers are in debt?,SELECT COUNT(c_custkey) FROM customer WHERE c_acctbal < 0 Which organization has the highest number of male students? Calculate for the percentage of the male students in the said organization.,"SELECT T.organ, T.per FROM ( SELECT T1.organ, CAST(COUNT(T3.name) AS REAL) / COUNT(T2.name) AS per , COUNT(T3.name) AS num FROM enlist AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name GROUP BY T1.organ ) T ORDER BY T.num DESC LIMIT 1" Can you also show their cities?,"SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'" What is the maximum and minimum share for the TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;" What was the smallest crowd when Footscray played at home?,"SELECT MIN(crowd) FROM table_name_95 WHERE home_team = ""footscray""" When has an Opposing Team of mid-districts?,"SELECT date FROM table_name_72 WHERE opposing_team = ""mid-districts""" How many employees do not have any suffix and what are their organization level?,SELECT COUNT(T3.BusinessEntityID) FROM ( SELECT T1.BusinessEntityID FROM Employee AS T1 INNER JOIN Person AS T2 USING (BusinessEntityID) WHERE T2.Suffix IS NULL GROUP BY T1.BusinessEntityID ) AS T3 Which keys (x modes) have a Supplier of wolfking?,"SELECT keys__x_modes_ FROM table_name_55 WHERE supplier = ""wolfking""" What is the title of the single with the peak position of 10 and from France?,"SELECT title FROM table_name_21 WHERE peak_position = 10 AND country = ""france""" TELL ME THE ENROLLMENT OF CULVER COMMUNITY,"SELECT Enrollment from School where School_name = ""Culver Community""" How many Hours Played do The Vanishing of Eric Calde hasr?,"SELECT T1.hours_played FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid WHERE Gname = ""The Vanishing of Eric Calder""" "What is the the percentage of profit for the product ""858""?",SELECT (T1.ListPrice - T2.StandardCost) * 100 / T2.StandardCost FROM ProductListPriceHistory AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID = 858 Show names of climbers and the names of mountains they climb.,"SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" Which attendance has the 25–17–5 record?,"SELECT attendance FROM table_name_93 WHERE record = ""25–17–5""" Which movie has the highest average score in Mubi?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) DESC LIMIT 1 "Who is the driver of the team with tyre d, bt11 chassis, and 8 rounds?","SELECT driver FROM table_name_92 WHERE tyre = ""d"" AND chassis = ""bt11"" AND rounds = ""8""" Which street has the most restaurants?,SELECT street_name FROM location GROUP BY street_name ORDER BY COUNT(street_name) DESC LIMIT 1 "Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed?","SELECT self_employed FROM table_name_15 WHERE investment_income = ""2%"" AND other_income_sources = ""3%"" AND employment___salaries_ & _wages_ = ""71%""" Show the residences that have at least two players.,SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*) >= 2 How many last names start with the letter J?,SELECT count ( * ) FROM employees where last_name like 'J%' What is the highest React that has a 7.61 Mark and a heat bigger than 1?,"SELECT MAX(react) FROM table_name_84 WHERE mark = ""7.61"" AND heat > 1" Find the ids and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?,"SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" "List all the characteristic names and data types of product ""cumin"".","SELECT t3.characteristic_name , t3.characteristic_data_type 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 = ""cumin""" how many swimmer in the list?,SELECT count ( ID ) FROM swimmer Which Date has a Record of 36–11–7?,"SELECT date FROM table_name_15 WHERE record = ""36–11–7""" What was the season that the runner -up was Tenley Molzahn?,"SELECT SUM(season) FROM table_name_34 WHERE runner_s__up = ""tenley molzahn""" Find the student first and last names and grade points of all enrollments.,"SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID" Count the number of ships.,SELECT count(*) FROM ship Who was the captain of the away team at Adelaide Oval?,"SELECT away_captain FROM table_name_84 WHERE venue = ""adelaide oval""" What is Marc's Surname?,"SELECT surname FROM table_name_38 WHERE first = ""marc""" What is the product ID of the most frequently ordered item on invoices?,SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1 "What is Finish, when Year(s) Won is ""1991""?","SELECT finish FROM table_name_6 WHERE year_s__won = ""1991""" What's the score in 1990?,"SELECT score FROM table_name_29 WHERE year = ""1990""" "Find the login name of the course author that teaches the course with name ""advanced database"".","SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""advanced database""" how many don't participate in activities?,select count ( * ) from ( SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in ) Name the replaced by when outgoing manager is kent nielsen,"SELECT replaced_by FROM table_17039232_3 WHERE outgoing_manager = ""Kent Nielsen""" Who was the Centerfold model on 5-88?,"SELECT centerfold_model FROM table_name_20 WHERE date = ""5-88""" "Sort all the shops by number products in descending order, and return the name, location and district of each shop.","SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC" "What is the Date at memorial stadium • minneapolis, mn, and an Opponent of northwestern?","SELECT date FROM table_name_45 WHERE site = ""memorial stadium • minneapolis, mn"" AND opponent = ""northwestern""" What is the party where the constituency is 10. Tindivanam? ,"SELECT party FROM table_22753245_1 WHERE constituency = ""10. Tindivanam""" Who made high points on games of score w 106–104 (ot),"SELECT high_assists FROM table_17340355_6 WHERE score = ""W 106–104 (OT)""" How many premises are there?,SELECT count(*) FROM premises In week 9 who were the opponent? ,SELECT opponent FROM table_14608759_1 WHERE week = 9 What's team #2 in the round where team $1 is Ilisiakos?,"SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = ""Ilisiakos""" Record of 92–70 had what date?,"SELECT date FROM table_name_70 WHERE record = ""92–70""" List the name of a building along with the name of a company whose office is in the building.,"SELECT T3.name , T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id" To which user group do most of the users who uses a vivo device belong?,"SELECT T.`group` FROM ( SELECT T2.`group`, COUNT(`group`) AS num FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'vivo' GROUP BY T2.`group` ) AS T ORDER BY T.num DESC LIMIT 1" What is the pick# for the medicine hat tigers (wchl)?,"SELECT MIN(pick__number) FROM table_1473672_2 WHERE college_junior_club_team = ""Medicine Hat Tigers (WCHL)""" Which Dodge car is the cheapest?,SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name LIKE 'dodge%' ORDER BY T2.price ASC LIMIT 1 How many bathrooms are there in those buildings?,"SELECT sum ( T2.bathroom_count ) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" Which Stage has a Winner of jeremy hunt?,"SELECT stage FROM table_name_21 WHERE winner = ""jeremy hunt""" How many lessons taught by staff whose first name has letter 'a' in it?,"SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE ""%a%""" Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?,"SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)" "With an Overall larger than 107, in what Round was Jim Duncan picked?","SELECT SUM(round) FROM table_name_19 WHERE name = ""jim duncan"" AND overall > 107" What is the most common interaction type between enzymes and medicine?,SELECT interaction_type FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count ( * ) DESC LIMIT 1 Name the lfop 4/24/09 for opinionway of 4/17/09 of 5% for party of left front,"SELECT ifop_4_24_09 FROM table_name_43 WHERE opinionway_4_17_09 = ""5%"" AND party = ""left front""" Show me the company of the tallest entrepreneur,SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1 How many disabled students are female?,SELECT COUNT(name) FROM disabled WHERE name NOT IN ( SELECT name FROM male ) Which incumbent's democratic candidate was mike carroll?,"SELECT incumbent FROM table_name_21 WHERE democratic = ""mike carroll""" what's the regionalliga nord with regionalliga west/südwest being fc gütersloh rot-weiß essen,"SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_west_südwest = ""FC Gütersloh Rot-Weiß Essen""" "Among the cars with an acceleration of over 10 miles per squared hour, how many of them cost more than $20000 and less than $30000?",SELECT COUNT(*) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.acceleration > 10 AND T2.price BETWEEN 20000 AND 30000 Define the onion's bounding box on image no. 285930.,"SELECT T1.X, T1.Y, T1.W, T1.H FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 285930 AND T2.OBJ_CLASS = 'onion'" who was the voice actor when the species is hedgehog?,"SELECT voice_actor FROM table_26615633_1 WHERE species = ""Hedgehog""" what is the average of amount of transaction?,SELECT avg ( amount_of_transaction ) FROM TRANSACTIONS How many seasons in the top division for the team that finished 005 5th in 2012-2013,"SELECT COUNT(number_of_seasons_in_top_division) FROM table_1510519_1 WHERE position_in_2012_13 = ""005 5th""" "What type of pet is the youngest animal, and how much does it weigh?","SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1" "Other than ""stage directions"", what is the name of the character that appeared 5 times in ""the sea-coast""?","SELECT T.CharName FROM ( SELECT T3.CharName, COUNT(T3.id) AS num FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id INNER JOIN characters AS T3 ON T1.character_id = T3.id WHERE T2.Description = 'The sea-coast.' AND T3.CharName != '(stage directions)' AND T1.chapter_id = 18709 GROUP BY T3.id, T3.CharName ) AS T WHERE T.num = 5" What days were games played at Hofstra Stadium?,"SELECT date FROM table_name_20 WHERE field = ""hofstra stadium""" How many regional population of match id 1?,SELECT T1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.match_id = 1 Who was the actor/actress with a first appearance is 3 june 2007?,"SELECT actor_actress FROM table_25831483_1 WHERE first_appearance = ""3 June 2007""" In which Olympic Games has Morten Aleksander Djupvik participated?,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'Morten Aleksander Djupvik' show me a list of check outs?,SELECT CheckOut FROM Reservations In what venue was the away team South Melbourne?,"SELECT venue FROM table_name_62 WHERE away_team = ""south melbourne""" How many doses for the bacillus calmette-guérin?,"SELECT number_of_doses FROM table_name_13 WHERE vaccine = ""bacillus calmette-guérin""" What is the highest rank of Great Britain who has less than 16 bronze?,"SELECT MAX(rank) FROM table_name_11 WHERE nation = ""great britain"" AND bronze < 16" What is the birthday of the staff member with first name as Janessa and last name as Sawayn?,"SELECT date_of_birth FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn""" Who was the opponent on December 27?,"SELECT opponent FROM table_17360840_6 WHERE date = ""December 27""" List down the business ID and user ID who got uber for cool votes.,"SELECT business_id, user_id FROM Reviews WHERE review_votes_cool = 'Uber'" Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.,"SELECT T1.fname , T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" What was the doctor for sorted series 6eb/b?,"SELECT doctor FROM table_1620397_5 WHERE series_sorted = ""6EB/B""" List the order dates of all the bookings.,SELECT Order_Date FROM BOOKINGS "Which Score has Opponents of pkns fc, and a Date of january 8, 2006?","SELECT score FROM table_name_35 WHERE opponents = ""pkns fc"" AND date = ""january 8, 2006""" Show all the distinct buildings that have faculty rooms.,SELECT DISTINCT building FROM Faculty How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?,"SELECT SUM(number_of_jews__wjc_) FROM table_name_73 WHERE metro_area = ""los angeles"" AND rank__arda_ > 2" What is the Country with Reteconomy as the Television service?,"SELECT country FROM table_name_48 WHERE television_service = ""reteconomy""" What is the color of that grape?,SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG ( Price ) DESC LIMIT 1 Where does CF Pachuca play?,"SELECT game_site FROM table_name_64 WHERE opponent = ""cf pachuca""" can you show me a list of transaction type code?,SELECT transaction_type_code FROM TRANSACTIONS How many pages were there on the menu created on 17th November 1898?,SELECT SUM(CASE WHEN T1.date = '1898-11-17' THEN 1 ELSE 0 END) FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id Who owned the team Jeremy Mayfield raced for?,"SELECT listed_owner_s_ FROM table_1529793_1 WHERE driver_s_ = ""Jeremy Mayfield""" Who was the away team on 31 January 1987 when the home team was Wimbledon?,"SELECT away_team FROM table_name_51 WHERE date = ""31 january 1987"" AND home_team = ""wimbledon""" What other country does the most populated nation in the world share a border with and how long is the border between the two nations?,"SELECT T2.Country2, T2.Length FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 WHERE T1.Name = ( SELECT Name FROM country ORDER BY Population DESC LIMIT 1 )" "Which movie is more popular, ""The General"" or ""Il grido""?",SELECT movie_title FROM movies WHERE movie_title = 'The General' OR movie_title = 'Il grido' ORDER BY movie_popularity DESC LIMIT 1 When 1.12 is the production code what is the original title?,"SELECT original_title FROM table_20124413_1 WHERE prod_code = ""1.12""" What was the score in the match against Kim Tiilikainen?,"SELECT score FROM table_name_49 WHERE opponent = ""kim tiilikainen""" What is the total amount of all payments?,SELECT sum(amount) FROM payment What was the production cost for the film directed by 2004?,"SELECT production_cost FROM table_name_39 WHERE director = ""2004""" Please name three cities that belong to Algeria.,SELECT T2.city FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T1.country = 'Algeria' "Which course author teaches the ""advanced database"" course? Give me his or her login name.","SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""advanced database""" what is the highest rating star?,SELECT max ( stars ) FROM Rating What are the minimum durations of all trips that end in those stations?,"SELECT T1.name , T1.lat , min ( T2.duration ) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id" List the year in which there are more than one festivals.,SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*) > 1 "what is the first name of gentral manager? | I cannot find ""gentral manager"" in the table. Did you mean general manager? | yes that is the general manager?","SELECT first_name FROM employees WHERE title = ""General Manager""" What was the attendance of the South Melbourne away game?,"SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = ""south melbourne""" "Which location has a capacity larger than 52,000?",SELECT location FROM table_name_94 WHERE capacity > 52 OFFSET 000 Who was partnering when nueza silva played against greece?,"SELECT partnering FROM table_name_8 WHERE against = ""greece""" Name the final position for copa libertadores,"SELECT final_position FROM table_23819979_3 WHERE competition = ""Copa Libertadores""" "When did the episode ""A Love of a Lifetime"" air?","SELECT Air_Date FROM TV_series WHERE Episode = ""A Love of a Lifetime"";" Which Bronze has a Nation of spain?,"SELECT MAX(bronze) FROM table_name_99 WHERE nation = ""spain""" Find the name of customers who have more than one loan.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1 "What is the sum of Week, when Date is December 2, 2001?","SELECT SUM(week) FROM table_name_7 WHERE date = ""december 2, 2001""" What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?,"SELECT position FROM table_name_79 WHERE first_team_goals = ""ongoing"" AND current_club = ""aston villa""" In which region is the Thompson-Boling arena located?,"SELECT region FROM table_name_16 WHERE venue = ""thompson-boling arena""" "What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York?","SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = ""new york"" AND swimsuit > 9.18" What was the 200-metre time for the swimmer from Slovenia in lane 9?,"SELECT COUNT(time) FROM table_name_15 WHERE nationality = ""slovenia"" AND lane < 9" "Which Year has an Expenditure of 55, and an Income smaller than 36.2?",SELECT MIN(year) FROM table_name_7 WHERE expenditure = 55 AND income < 36.2 "What is the largest silver with Gold larger than 4, a Nation of united states, and a Total larger than 26?","SELECT MAX(silver) FROM table_name_19 WHERE gold > 4 AND nation = ""united states"" AND total > 26" What are the ids of all students who have attended at least one course?,SELECT student_id FROM student_course_attendance How many grids correspond to more than 24 laps?,SELECT MAX(grid) FROM table_name_18 WHERE laps > 24 "How many teams have played more than 3800 points and have player with ""Most Valuable Player"" award?","SELECT COUNT(DISTINCT T4.name) FROM ( SELECT T1.name, SUM(T2.points) FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN awards_players AS T3 ON T2.playerID = T3.playerID WHERE T3.award = 'Most Valuable Player' GROUP BY T1.name HAVING SUM(T2.points) >= 3800 ) AS T4" What is the name of the player with 305 points?,SELECT name FROM table_name_46 WHERE points = 305 Who was the opponent at the competition held at Jeonju?,"SELECT opponent FROM table_name_20 WHERE venue = ""jeonju""" "In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees?","SELECT MAX(pts) FROM table_name_41 WHERE engine = ""ford"" AND entrant = ""brooke bond oxo team surtees"" AND year = 1972" What was the score against the team with an 11-3 record against the Hawks?,"SELECT score FROM table_23248910_5 WHERE record = ""11-3""" What is the Series number of the episode with a production number of 1547?,SELECT series FROM table_name_34 WHERE production_number = 1547 "Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?","SELECT MAX(fa_cup_goals) FROM table_name_55 WHERE league_cup_apps > 0 AND name = ""trevor cherry""" What is the name of the person in the First UK Tour Cast for the Character of Sister Mary Robert?,"SELECT first_uk_tour_cast FROM table_name_54 WHERE character = ""sister mary robert""" what is her email?,SELECT email FROM user_profiles ORDER BY followers DESC LIMIT 1 "Who was the director of the movie ""Tokyo Eyes""?",SELECT director_name FROM movies WHERE movie_title = 'Tokyo Eyes' Which wine has the highest price?,SELECT * FROM WINE ORDER BY price desc limit 1 How many opponents were in North Carolina state game?,"SELECT COUNT(opponents) FROM table_20928649_1 WHERE opponent = ""North Carolina State""" "Hmm, can you list the names of all compatible browsers and accelerators in the descending order of compatible year?","SELECT T2.name , T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC" "Who were all the candidates when the results were re-elected, first elected was 1832 and the party was jacksonian?","SELECT candidates FROM table_2668199_2 WHERE result = ""Re-elected"" AND first_elected = ""1832"" AND party = ""Jacksonian""" Which catalog publisher has published the most catalogs?,SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1 "List all the locations of postal points with the area code ""410"".","SELECT T2.latitude, T2.longitude FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 410" "If the building is Costanera Center Torre 1, what is the height?","SELECT height FROM table_27067379_1 WHERE building = ""Costanera Center Torre 1""" And the users who did not?,SELECT name FROM useracct WHERE u_id NOT IN ( SELECT u_id FROM review ) How many sales orders were processed by the store located in Chandler in 2020?,SELECT SUM(CASE WHEN T2.`City Name` = 'Chandler' AND T1.OrderDate LIKE '%/%/20' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID Name the least year for european indoor championships result of 3rd,"SELECT MIN(year) FROM table_name_86 WHERE tournament = ""european indoor championships"" AND result = ""3rd""" "Sure! On my end I'm seeing that the first table is labeled ""City"", but if these are towns and villages then I'd like to see what you are suggesting! Thanks!",select official_name from city What is the points gained of the match where fans took 403 [sunday]?,"SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = ""403 [sunday]""" " what's the position where player is williams, bernie bernie williams","SELECT position FROM table_11734041_20 WHERE player = ""Williams, Bernie Bernie Williams""" What is the total kills of the perpetrators with height more than 1.84.,SELECT sum(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84 What is the average rental rate for PG-13 rated movies?,SELECT AVG(rental_rate) FROM film WHERE rating = 'PG-13' "What instruments did the musician with the last name ""Heilo"" play in ""Badlands""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Badlands""" "What is Episode, when XII Season is 4 118 160 (26 september 2010)?","SELECT episode FROM table_name_23 WHERE xii_season = ""4 118 160 (26 september 2010)""" What is the highest number of bronze for the United States with more than 1 silver?,"SELECT MAX(bronze) FROM table_name_13 WHERE nation = ""united states"" AND silver > 1" Which genre does the movie Dancer in the Dark belong to?,SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.title = 'Dancer in the Dark' What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?,"SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'" What Nationality's time is 2:07.64?,"SELECT nationality FROM table_name_98 WHERE time = ""2:07.64""" What were the total number of 2012 births for the January–December 2012 Tver Oblast region?,"SELECT MIN(birth_2012) FROM table_25703_2 WHERE january_december_2012 = ""Tver Oblast""" When was the incumbent Sherrod Brown first elected? ,"SELECT MAX(first_elected) FROM table_1341453_37 WHERE incumbent = ""Sherrod Brown""" Return the names of the 3 most populated countries.,SELECT Name FROM country ORDER BY Population DESC LIMIT 3 "Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?","SELECT tournament FROM table_name_52 WHERE surface = ""clay"" AND score = ""4–6, 6–1, 6–4""" "for the time of 49.04 and lane less than 3, what is the nationality?",SELECT nationality FROM table_name_27 WHERE lane < 3 AND time = 49.04 How many different instructors have taught some course?,SELECT COUNT (DISTINCT id) FROM teaches "For each airport name, how many routes start at that airport?","SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name" Find the name of the instructors who taught C programming course before..,SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' What was the date of the game on week 7?,SELECT date FROM table_name_49 WHERE week = 7 What is the final weight for contestant Chris?,"SELECT final_weight__kg_ FROM table_24370270_10 WHERE contestant = ""Chris""" "Please list all the answers to the question ""Any additional notes or comments"" that are not null in 2014's survey.",SELECT T2.AnswerText FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'Any additional notes or comments' AND T2.SurveyID = 2014 AND T2.AnswerText <> -1 "Away result of 0–3, and a Season of 1969-70 is what competition?","SELECT competition FROM table_name_48 WHERE away_result = ""0–3"" AND season = ""1969-70""" What is the first name of all employees who do not give any lessons?,SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id What is the Date of the game with a Record of 5-3?,"SELECT date FROM table_name_53 WHERE record = ""5-3""" Can you show me the numbers of the apartments?,SELECT count ( * ) FROM Apartments What is the customer ID with lowest saving balance?,SELECT custid FROM savings order by balance asc limit 1 Which dorm has the highest student capacity?,SELECT dorm_name FROM dorm order by student_capacity desc limit 1 What Country is Rocco Mediate from?,"SELECT country FROM table_name_49 WHERE player = ""rocco mediate""" Name the fsb for atom z540,"SELECT fsb FROM table_16729930_11 WHERE model_number = ""Atom Z540""" What date had a game with wycombe wanderers as the away team?,"SELECT date FROM table_name_28 WHERE away_team = ""wycombe wanderers""" What is the id of the trip that has the shortest duration?,SELECT id FROM trip ORDER BY duration LIMIT 1 What country is the player who scored 27 goals from?,SELECT nationality FROM table_name_71 WHERE goals = 27 "What year was republican, re-elected incumbent John all barham elected?","SELECT elected FROM table_name_92 WHERE party = ""republican"" AND status = ""re-elected"" AND incumbent = ""john all barham""" How many of the busineses are in Casa Grande?,SELECT COUNT(city) FROM Business WHERE city LIKE 'Casa Grande' Name the 2010 with tournament of grand slam tournaments,"SELECT 2010 FROM table_name_33 WHERE tournament = ""grand slam tournaments""" Give me the number of faculty members who participate in an activity,SELECT count(DISTINCT FacID) FROM Faculty_participates_in Please indicate which labels have the city located in Santa Cruz.,SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'Santa Cruz county' And how many courses did student 171 take?,SELECT count ( * ) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171 Which universities are in Los Angeles county and opened after 1950?,"SELECT campus FROM campuses WHERE county = ""Los Angeles"" AND YEAR > 1950" What was the result of the game played on 17 July 2008?,"SELECT result FROM table_name_42 WHERE date = ""17 july 2008""" And what are their names?,"SELECT first_name, middle_name, last_name FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident ) " Please show me the destinations and the number of flights they have.,"SELECT destination, count ( * ) FROM Flight GROUP BY destination" How many camera lenses have a focal length longer than 15 mm?,SELECT count(*) FROM camera_lens WHERE focal_length_mm > 15 List the states which have between 2 to 4 staff living there.,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4; How many athletes participated in the 2014 Winter Olympics?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2014 Winter' What is the lowest number of drawn games by a team?,SELECT MIN(drawn) FROM table_28201906_1 Which player has the fewest assists and played 2 games or fewer?,SELECT MIN(assists) FROM table_name_72 WHERE games < 2 What's the lowest pick for a defensive back at Drake?,"SELECT MIN(pick) FROM table_name_99 WHERE position = ""defensive back"" AND school = ""drake""" List names for drivers from Hartford city and younger than 40.,SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40 Provide the name of disabled male students that are unemployed.,SELECT T2.NAME FROM unemployed AS T1 INNER JOIN male AS T2 ON T1.name = T2.name INNER JOIN disabled AS T3 ON T3.name = T2.name Show publishers with a book published in 1989 and a book in 1990.,SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990 "What is the average rating for the ""crime-junkie"" podcast?",SELECT AVG(T2.rating) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Crime Junkie' What is the British for the Australian ɔ?,"SELECT british FROM table_name_93 WHERE australian = ""ɔ""" What was the name of the episode Alan Yang wrote?,"SELECT title FROM table_25341765_1 WHERE written_by = ""Alan Yang""" what is the maximum 1st prize( $ ) where score is 193 (-17),"SELECT MAX(1 AS st_prize__) AS $__ FROM table_11622255_1 WHERE score = ""193 (-17)""" What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?,"SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = ""4.4% 4 seats""" What team has a season of 2009-10?,"SELECT teams FROM table_name_66 WHERE season = ""2009-10""" "What is the full name of each car maker, along with its id and how many models it produces?","SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;" What proportion of male police officers looked into events where people were injured?,SELECT CAST(SUM(T2.gender = 'M') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN officers T2 ON T1.case_number = T2.case_number WHERE T1.subject_statuses = 'Injured' What governments did the minister with a term start on 24 September 1984 have?,"SELECT governments FROM table_name_43 WHERE term_start = ""24 september 1984""" What city was in 1889?,SELECT city FROM table_name_97 WHERE year = 1889 What is the NOC code of the region of the competitors weighted 77 kg?,SELECT T1.noc 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 T3.weight = 77 "What is Stop No., when Destination is [2778] Claisebrook Station Platforms?","SELECT stop_no FROM table_name_25 WHERE destination = ""[2778] claisebrook station platforms""" Tell me the discovery/publicatio of name for h.heidelbergensis,"SELECT discovery___publication_of_name FROM table_name_78 WHERE species = ""h.heidelbergensis""" How many different numbers of B shares does Handelsbanken fonder have?,"SELECT COUNT(b_shares) FROM table_206359_1 WHERE shareholder_name = ""Handelsbanken fonder""" How many architects are female?,SELECT count(*) FROM architect WHERE gender = 'female' Hi! Which engineer has visited the most times? | What information about the engineer you want? | Which engineer id has visited the most?,SELECT T1.engineer_id FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count ( * ) DESC LIMIT 1 How many people attended the game where Footscray was away?,"SELECT crowd FROM table_name_29 WHERE away_team = ""footscray""" "Is the author of ""Sushi, Anyone?"" on the contract?","SELECT T1.contract FROM authors AS T1 INNER JOIN titleauthor AS T2 ON T1.au_id = T2.au_id INNER JOIN titles AS T3 ON T2.title_id = T3.title_id WHERE T3.title = 'Sushi, Anyone?'" Which nominee won the award for Fourth Best Indian Film?,"SELECT nominee FROM table_name_7 WHERE outcome = ""won"" AND category = ""fourth best indian film""" What was the engine belonging to Pierluigi Martini with a Tyre of P?,"SELECT engine FROM table_name_20 WHERE tyres = ""p"" AND driver = ""pierluigi martini""" How many online sales were made in May 2018 where products were shipped from Norman?,SELECT SUM(CASE WHEN T1.OrderDate LIKE '5/%/18' AND T1.`Sales Channel` = 'Online' AND T2.`City Name` = 'Norman' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID what are the hire dates for all the jobs?,select HIRE_DATE from employees How many people attended the game with home team Witton Albion?,"SELECT attendance FROM table_name_74 WHERE home_team = ""witton albion""" "What is the latest year that 6th, Heartland is regular season?","SELECT MAX(year) FROM table_1241987_1 WHERE regular_season = ""6th, Heartland""" What are the names of countains that no climber has climbed?,SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber) Hello! How are you! Can you provide me with a list of all patient names?,SELECT name FROM Patient "What are the ids, names and genders of the architects who built two bridges or one mill?","SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 2 UNION SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 1" Competition of fa cup rd 1 had what venue?,"SELECT venue FROM table_name_69 WHERE competition = ""fa cup rd 1""" Name the wicket for 19-03-2007,"SELECT wicket FROM table_name_59 WHERE date = ""19-03-2007""" "What is the average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals?",SELECT AVG(fa_cup) FROM table_name_57 WHERE total > 20 AND fa_trophy < 1 AND league < 25 How many distinct claim outcome codes are there?,SELECT count(DISTINCT claim_outcome_code) FROM claims_processing Find the first names of students studying in room 108.,SELECT firstname FROM list WHERE classroom = 108 What is the name of that person?,SELECT name from personfriend where year = ( select max ( year ) FROM PersonFriend ) "What are the ids, date opened, name, and other details for all accounts?","SELECT account_id , date_account_opened , account_name , other_account_details FROM Accounts" What is the # of seats one for the election in 1974?,SELECT _number_of_seats_won FROM table_123462_2 WHERE election = 1974 Which university is in Los Angeles county and opened after 1950?,"SELECT campus FROM campuses WHERE county = ""Los Angeles"" AND YEAR > 1950" what episode is called jewboy,"SELECT episodes FROM table_name_20 WHERE title = ""jewboy""" "What is the percentage of businesses with ""Good for Kids"" attribute over the other attributes?",SELECT CAST(SUM(CASE WHEN attribute_name = 'Good for Kids' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value = 'true' What is the time/retired for grid 3?,SELECT time_retired FROM table_name_19 WHERE grid = 3 What is the instID code for University of Oxford?,select instID from Inst where name = 'University of Oxford' What are the salespeople's email addresses?,SELECT T2.EmailAddress FROM Person AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.PersonType = 'SP' What resulted in a score of 22-21?,"SELECT result FROM table_name_27 WHERE score = ""22-21""" "For all the purchase order transactions, name all the products with low quality.",SELECT DISTINCT T1.Name FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Class = 'L' AND T2.TransactionType = 'P' ORDER BY T1.Name "What is the Label of the release on June 12, 2008 in Cyprus?","SELECT label FROM table_name_62 WHERE date = ""june 12, 2008"" AND region = ""cyprus""" What is the maximum weight being transported to New York during a single shipment?,SELECT MAX(T1.weight) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city_name = 'New York' How many customers are there?,SELECT count ( * ) from customers What was John Hildreth's speed?,"SELECT speed FROM table_name_55 WHERE rider = ""john hildreth""" What is the highest position of the team having played under 10 matches?,SELECT MAX(position) FROM table_name_73 WHERE played < 10 Find the first name of the band mate that has performed in most songs.,SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1 What is the capacity for the institution of university of alberta?,"SELECT capacity FROM table_27599216_6 WHERE institution = ""University of Alberta""" How many number Builts had unit numbers of 375301-310?,"SELECT SUM(no_built) FROM table_name_19 WHERE unit_nos = ""375301-310""" Which countries have at least 3 cities?,SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3 Who was the winning driver of the Argentine Grand Prix?,"SELECT winning_driver FROM table_name_96 WHERE race = ""argentine grand prix""" "How many average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0?","SELECT AVG(total_matches) FROM table_name_23 WHERE swansea_win < 3 AND competition = ""fa cup"" AND draw < 0" What is the name of the aircraft that was on flight number 99?,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 "What player's hometown is Roebuck, South Carolina? ","SELECT player FROM table_11677691_3 WHERE hometown = ""Roebuck, South Carolina""" Sort the results in ascending order by department. number.,"SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id" Find the name of dorms that do not have any amenity,SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity) What is the average horsepower for all cars produced before 1980 ?,select avg(horsepower) from cars_data where year < 1980; what is the number of pieces where the person is charley hoffman,"SELECT COUNT(reset_points) FROM table_28498999_6 WHERE player = ""Charley Hoffman""" "How many awards classified as ""Primetime Emmy"" category?",SELECT COUNT(award_id) FROM Award WHERE award_category = 'Primetime Emmy'; What is the date of the game with toronto as the visitor?,"SELECT date FROM table_name_89 WHERE visitor = ""toronto""" What is the Propulsion for the model offered in 2003-2004 by neoplan usa?,"SELECT propulsion FROM table_name_68 WHERE order_year = ""2003-2004"" AND manufacturer = ""neoplan usa""" What was the won when the points for was 496?,"SELECT won FROM table_12792876_3 WHERE points_for = ""496""" Name the 2nd runner-up for season 7,"SELECT 2 AS nd_runner_up FROM table_name_59 WHERE season_number = ""season 7""" Which season had less than 25.4 viewers and had a viewer rank of #6?,"SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = ""#6""" What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?,SELECT AVG(silver) FROM table_name_79 WHERE bronze = 3 AND total > 4 Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?,"SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = ""joseph v. o'leary""" "Among the crimes located in the community area with the highest population, what is the percentage of domestic violence?",SELECT CAST(COUNT(CASE WHEN T2.domestic = 'TRUE' THEN T2.domestic END) AS REAL) * 100 / COUNT(T2.domestic) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no GROUP BY T1.community_area_no HAVING COUNT(T1.population) ORDER BY COUNT(T1.population) DESC LIMIT 1 What is the full name of ABEDA and when was it established?,"SELECT Name, Established FROM organization WHERE Abbreviation = 'ABEDA'" "What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?",SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8 "What is Outcome, when Date is ""19 September 2012""?","SELECT outcome FROM table_name_97 WHERE date = ""19 september 2012""" "What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9?","SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = ""u.s. open"" AND cuts_made > 9" what is the city of Schiphol Airport,"SELECT City from airport where name = ""Schiphol Airport""" "If sail number is AUS 03, what are all associated race numbers?","SELECT race_number FROM table_14882588_2 WHERE sail_number = ""AUS 03""" "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.","SELECT Support_rate, Consider_rate, Oppose_rate FROM candidate ORDER BY unsure_rate" "Find the details of all the distinct customers who have orders with status ""On Road"".","SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road""" Can you tell me the name of the oldest editor as well?,SELECT name FROM editor ORDER BY Age desc LIMIT 1 In what season did the team get in the conference finals of the playoffs?,"SELECT regular_season FROM table_1939214_1 WHERE playoffs = ""Conference Finals""" Who is the rower from Canada?,"SELECT rowers FROM table_name_80 WHERE country = ""canada""" what is the product characteristic value for product name 'sesame',"SELECT t2.product_characteristic_value FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" Who is the Original Australian performer when the Original West End Performer is Linzi Hateley?,"SELECT original_australian_performer FROM table_1901751_1 WHERE original_west_end_performer = ""Linzi Hateley""" what are the employee ids and job titles for employees in department 80?,"SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80" "Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'?","SELECT northumberland_senior_benevolent_bowl FROM table_name_25 WHERE northumberland_minor_cup = ""whitley bay 'a'""" What is the date for Bron 535 Catalog?,"SELECT date FROM table_name_89 WHERE catalogue = ""bron 535""" What is the position that is shown for 2011?,SELECT position FROM table_name_41 WHERE year = 2011 "How many different production codes does the episode originally aired on October 18, 1984 have?","SELECT COUNT(production_code) FROM table_2818164_2 WHERE original_air_date = ""October 18, 1984""" "What nation had more than 3 bronze, 0 gold, and a total of 9?",SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9 Who was the democratic incumbent in the Illinois 11 district who was re-elected? ,"SELECT incumbent FROM table_1341707_15 WHERE party = ""Democratic"" AND result = ""Re-elected"" AND district = ""Illinois 11""" "When Embry-Riddle made it to the first semi finalist slot, list all the runners up.","SELECT runner_up FROM table_11214772_2 WHERE semi_finalist__number1 = ""Embry-Riddle""" find the locations that have more than one movie theater with capacity above 300,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count ( * ) > 1 When cindy miranda is the name what is the home or representative town or province?,"SELECT home_or_representative_town_or_province FROM table_19061741_1 WHERE name = ""Cindy Miranda""" List the distinct hometowns that are not associated with any gymnast.,SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID What is the first name of the driver who transported shipment id 1028?,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = 1028" "Among the reviews for the podcast ""Please Excuse My Dead Aunt Sally"", how many of them are made in the year 2019?",SELECT COUNT(T2.created_at) FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Please Excuse My Dead Aunt Sally' AND T2.created_at LIKE '2019-%' How many employees have a higher salary than that?,SELECT count ( * ) FROM employees WHERE salary > ( SELECT salary FROM employees WHERE job_id = 'PU_MAN' ) Name the score for fiji,"SELECT score FROM table_name_99 WHERE country = ""fiji""" What member is in charge of the most events?,"select Member_in_charge_ID, count ( * ) from party_events group by Member_in_charge_ID order by count ( * ) desc limit 1" Who was the away team when Brighton & Hove Albion was home?,"SELECT away_team FROM table_name_95 WHERE home_team = ""brighton & hove albion""" "Can you show me the names and ids for this list? | The result shows the full names and ids of 3 players that won the most awards. | What are the city, state and country for these players?","SELECT T1.birth_city , T1.birth_state , T1.birth_country FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3" Name the most extra points for john heston,"SELECT MAX(extra_points) FROM table_14341967_2 WHERE player = ""John Heston""" What are the gender and occupation of players?,"SELECT Gender , Occupation FROM player" How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015?,SELECT COUNT(BrandID) FROM rootbeer WHERE ContainerType = 'Bottle' AND PurchaseDate BETWEEN '2015-04-03' AND '2015-10-26' "Which of the Res., has Ryan Scheepe as an opponent?","SELECT res FROM table_name_34 WHERE opponent = ""ryan scheepe""" what AA class has a AAA class of commerce?,SELECT class_aA FROM table_name_46 WHERE class_aAA = commerce What venue hosted the stan fox stakes?,"SELECT venue FROM table_name_72 WHERE race = ""stan fox stakes""" What is the document id and name with greatest number of paragraphs?,"SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1" "Who are the scorers on 1 August 2008, where the ground was A?","SELECT scorers FROM table_name_34 WHERE ground = ""a"" AND date = ""1 august 2008""" "What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9?","SELECT MIN(assets__us) AS $_billion_ FROM table_name_16 WHERE company = ""piraeus bank"" AND revenues__us$_billion_ < 3.9" Show the name and theme for all concerts and the number of singers in each concert.,"SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id" "Who is the director of ""walter hill""? | do you mean which film is directed by the director of ""walter hill""? | yes.","SELECT title FROM film WHERE Director = ""Walter Hill""" Can you show me just the apartment type codes of the top 3?,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code order by avg ( room_count ) desc "Which club has the most members majoring in ""600""?","SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = ""600"" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1" Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?,"SELECT club_province FROM table_name_88 WHERE caps > 15 AND player = ""chris cusiter""" What is the total number of draws for songs performed by Miranda with fewer than 48 points?,"SELECT COUNT(draw) FROM table_name_64 WHERE performer = ""miranda"" AND points < 48" How many are they?,SELECT count ( * ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' What was the date of the game in which the series was 1-4?,"SELECT date FROM table_name_90 WHERE series = ""1-4""" What is the most wins for a position with more than 30 played and a goal difference of 11?,SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30 "Finally, can you list the clubs that have ""Davis Steven"" as a member?",SELECT T1.clubId from Member_of_club as T1 join Student as T2 on T1.stuid = T2.stuid where T2.lname = 'Davis' and T2.fname = 'Steven' Who advises student 1004?,SELECT Advisor FROM Student WHERE StuID = 1004 Retrieve the country that has published the most papers.,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1 "What is the sum of November, when Game is ""17""?",SELECT SUM(november) FROM table_name_55 WHERE game = 17 What are the details and opening hours of the museums?,"SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID" "What is the first name of ""Smith""",SELECT name from scientists WHERE name LIKE '%Smith%' "Which accelerator name contains substring ""Opera""?","SELECT name FROM web_client_accelerator WHERE name LIKE ""%Opera%""" "Which Player has a Total smaller than 11, and a Tally of 0-9?","SELECT player FROM table_name_21 WHERE total < 11 AND tally = ""0-9""" What is the total number of followers of all users?,SELECT sum ( followers ) FROM user_profiles Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?,"SELECT performer_1 FROM table_23294081_11 WHERE performer_2 = ""Heather Anne Campbell"" AND _number = 7" Name the recipientof the year for 1976,SELECT recipient FROM table_name_69 WHERE year = 1976 What are the titles for courses with two prerequisites?,SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2 What is the lowest react of the athlete from the United States who has a lane less than 4?,"SELECT MIN(react) FROM table_name_53 WHERE country = ""united states"" AND lane < 4" Which opponent has a 53-24 record?,"SELECT opponent FROM table_name_56 WHERE record = ""53-24""" Who was the away team when 6 was the tie no?,"SELECT away_team FROM table_name_69 WHERE tie_no = ""6""" List the torque possible when the stroke is 88.4mm?,"SELECT torque FROM table_21021796_1 WHERE stroke = ""88.4mm""" How many players were born in the 80s and have bowling skill of 2?,SELECT COUNT(Player_Name) FROM Player WHERE DOB LIKE '198%' AND Bowling_skill = 2 Who drove the fastest lap for round 8?,SELECT fastest_lap FROM table_1139087_2 WHERE rd = 8 Who had the most assists and how many did they have on October 7? ,"SELECT high_assists FROM table_27722408_2 WHERE date = ""October 7""" What is the date of week 8?,SELECT date FROM table_name_23 WHERE week = 8 Show all advisors who have at least two students.,SELECT advisor FROM Student GROUP BY advisor HAVING COUNT(*) >= 2 List owner's name of businesses with a 100 score.,SELECT DISTINCT T2.owner_name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = 100 "What are the name, id and the corresponding number of visits for each tourist attraction?","SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID" List the first name and birth date of all players from the country with code USA.,"SELECT first_name , birth_date FROM players WHERE country_code = 'USA'" How many submission of the night occurred when the fighter was matt wiman?,"SELECT MAX(submissions_of_the_night) FROM table_21114902_1 WHERE fighter = ""Matt Wiman""" List the area and county of all appelations.,"SELECT Area , County FROM APPELLATIONS" what is the semifinalists when the surface is hard (i)?,"SELECT semifinalists FROM table_name_9 WHERE surface = ""hard (i)""" What team played in the 1964 Tokyo Games?,"SELECT name FROM table_name_56 WHERE games = ""1964 tokyo""" "Show the distinct names of mountains climbed by climbers from country ""West Germany"".","SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = ""West Germany""" "How many different items appear in the weight column when Pittsburgh, PA is the hometown?","SELECT COUNT(weight___lb__) FROM table_29970488_2 WHERE hometown = ""Pittsburgh, PA""" What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?,"SELECT hadeda_ibis FROM table_20042805_2 WHERE ostrich = ""Dark Chanting Goshawk""" What is the Gauge of Locomotive G534 Owned by Aurizon which has a Status of Operational?,"SELECT gauge FROM table_name_39 WHERE status = ""operational"" AND owner = ""aurizon"" AND locomotive = ""g534""" What is the age of the doctor named Zach?,SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach' "Which of these have nominated musicals for both ""Tony Award"" and ""Drama Desk Award""?","SELECT Nominee FROM musical WHERE Award = ""Tony Award"" INTERSECT SELECT Nominee FROM musical WHERE Award = ""Drama Desk Award""" When did episode number 6 air?,SELECT airdate FROM table_24399615_5 WHERE episode_no = 6 "Of the 10 products with the highest unit price, identify by their ID the ones that have generated the least satisfaction.","SELECT ProductID FROM Products ORDER BY ReorderLevel ASC, UnitPrice DESC LIMIT 1" In how many episodes did Sean's team include Jeremy Clarkson and James McQuillan?,"SELECT COUNT(episode) FROM table_23292220_8 WHERE seans_team = ""Jeremy Clarkson and James McQuillan""" WHAT IS A Seine-Saint-Denis WITH A PARIS OF 12.1%?,"SELECT seine_saint_denis FROM table_name_90 WHERE paris = ""12.1%""" Which Telebooms have a Brigade of total?,"SELECT telebooms FROM table_name_78 WHERE brigade = ""total""" What is the highest total number of appearances when there were less than 4 at the FA cup?,SELECT MAX(total) FROM table_name_53 WHERE fa_cup < 4 Name the title of books written by author A.J.Ayer.,SELECT T3.title FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id INNER JOIN book AS T3 ON T3.book_id = T1.book_id WHERE T2.author_name = 'A.J. Ayer' "What city is the School, Highland, in that ranks less than 8 and had its first title before 1980 and its last title later than 1960?","SELECT city FROM table_name_55 WHERE rank < 8 AND first < 1980 AND last > 1960 AND school = ""highland""" Find the number of dorms that have some amenity.,SELECT count(DISTINCT dormid) FROM has_amenity "What is the number of points for the maserati straight-4 engine, later than 1959?","SELECT COUNT(points) FROM table_name_94 WHERE engine = ""maserati straight-4"" AND year > 1959" What are the dates that have the 5 highest cloud cover rates and what are the rates?,"SELECT date , cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5" What is the earliest created year when the map# was 10?,SELECT MIN(created) FROM table_name_33 WHERE map_number = 10 What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?,SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole' Which Venue is listed under the Date of 21st?,"SELECT venue FROM table_name_52 WHERE date = ""21st""" How many annual indicators use the Sum aggregation method from 2001 to 2003?,"SELECT COUNT(DISTINCT T2.SeriesCode) FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode WHERE T1.Year IN ('YR2001', 'YR2002', 'YR2003') AND T2.Periodicity = 'Annual' AND T2.AggregationMethod = 'Sum'" Name the ship launched 29 may 1934,"SELECT ship FROM table_name_22 WHERE launched = ""29 may 1934""" How many different position for players are listed?,SELECT count(DISTINCT POSITION) FROM player What date was the Home team fitzroy?,"SELECT date FROM table_name_18 WHERE home_team = ""fitzroy""" "Which title ranked lower than 19 has a gross of $11,833,696?","SELECT title FROM table_name_11 WHERE rank < 19 AND gross = ""$11,833,696""" "What is Tournament, when 1996 is ""1R"", and when 1990 is ""SF""?","SELECT tournament FROM table_name_92 WHERE 1996 = ""1r"" AND 1990 = ""sf""" When 120 is the number in series who is the writer?,SELECT written_by FROM table_2468961_7 WHERE no_in_series = 120 yes i need details,SELECT * from Lessons where lesson_id = 4 "What season has a number less than 90, Mitte as the league and spvgg ruhmannsfelden as the team?","SELECT season FROM table_name_95 WHERE number < 90 AND league = ""mitte"" AND team = ""spvgg ruhmannsfelden""" What about the lowest account balance with customers with checking accounts?,SELECT min ( balance ) from checking Which gender owned more of the Galaxy Note 2 device model?,"SELECT IIF(SUM(IIF(T1.gender = 'M', 1, 0)) - SUM(IIF(T1.gender = 'F', 1, 0)) > 0, 'M', 'F') AS gender FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Note 2'" List all representatives of districts which have more than 30 000 population in 2020.,"SELECT T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.population_2020 > 30000 GROUP BY T3.first_name, T3.last_name" How many years were there after Don Waddell retired and became a coach in NHL?,SELECT MAX(T2.year) - MIN(T2.year) FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T1.firstName = 'Don' AND T1.lastName = 'Waddell' "List all the solutions ids of the repository with ""636430969128176000"" processed time",SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = 636430969128176000 Find the total credits of all classes offered by each department.,"SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code" What team used the BRM built car?,"SELECT entrant FROM table_name_92 WHERE constructor = ""brm""" Count the number of universities that do not participate in the baketball match.,SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match) Which year recorded the most number of goals by a player and how old was the player at the time the most number of goals was achieved by him?,"SELECT T1.year, T1.year - T2.birthYear FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID GROUP BY T1.year, T1.year - T2.birthYear ORDER BY SUM(T1.G) DESC LIMIT 1" Which Original Broadway production has a Role of dr. victor von frankenstein?,"SELECT original_broadway_production FROM table_name_1 WHERE role = ""dr. victor von frankenstein""" What Year has an ISBN OF ISBN 4-06-182042-7?,"SELECT AVG(year) FROM table_name_37 WHERE isbn = ""isbn 4-06-182042-7""" What league has a 10 for round with Paul Cain?,"SELECT college_junior_club_team__league_ FROM table_name_51 WHERE round = 10 AND player = ""paul cain""" What is the nationality of the Washington Capitals?,"SELECT nationality FROM table_name_68 WHERE nhl_team = ""washington capitals""" What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph?,"SELECT time FROM table_name_55 WHERE team = ""348cc k4 honda"" AND speed = ""97.743mph""" with a record of 66-78 what was the loss?,"SELECT loss FROM table_name_3 WHERE record = ""66-78""" What's the silver for rank 1 with less than 2 bronze?,"SELECT MIN(silver) FROM table_name_92 WHERE rank = ""1"" AND bronze < 2" List all the socks products.,SELECT T2.ProductID FROM ProductSubcategory AS T1 INNER JOIN Product AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID WHERE T1.Name = 'Socks' What is the party of the representative that has the smallest number of votes.,SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes ASC LIMIT 1 what is its code? | Do you mean circuit id? | yes,"SELECT name , circuitid FROM races ORDER BY date DESC LIMIT 1" "When was the ""Adventure Island"" game released?",SELECT T3.release_year FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T1.game_name = 'Adventure Island' "Before the year 2012, what award was given to the artist in the category of revelación pop del año?","SELECT award FROM table_name_49 WHERE year < 2012 AND category = ""revelación pop del año""" "What is the sum of forms with greater than 17 pages and a total of $1,801,154?","SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = ""$1,801,154""" "In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located?","SELECT district FROM table_name_3 WHERE weblink = ""http://www.annauniv.edu"" AND college_or_campus_name = ""anna university - tiruchirappalli campus""" On what circuit was the i mexican grand prix held?,"SELECT circuit FROM table_name_5 WHERE race_name = ""i mexican grand prix""" Name the series for game 5,"SELECT series FROM table_name_12 WHERE game = ""game 5""" What is the cyrillic name for Budisava?,"SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE settlement = ""Budisava""" What is the Branding of Frequency 00 94.5?,"SELECT branding FROM table_name_70 WHERE frequency = ""00 94.5""" show me the number of staff of all departments.,"SELECT department_id,count ( staff_id ) FROM staff_department_assignments GROUP BY department_id ORDER BY count ( * ) " What is the name when the position is centre?,"SELECT name FROM table_name_33 WHERE pos = ""centre""" what's the district with incumbent being john e. miller,"SELECT district FROM table_1342331_5 WHERE incumbent = ""John E. Miller""" Which Position has a Surname of naylor?,"SELECT position FROM table_name_78 WHERE surname = ""naylor""" How many states that have some college students not playing in the goalie position?,SELECT COUNT ( * ) FROM ( SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos ! = 'goalie' ) "Please state the segment, the name, the address, and the phone number of customer number 3.","SELECT c_mktsegment, c_name, c_address, c_phone FROM customer WHERE c_custkey = 3" How many professors who has a either Ph.D. or MA degree?,SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' What is the lowest points won from player victoria azarenka?,"SELECT MIN(points) AS won FROM table_26218783_7 WHERE player = ""Victoria Azarenka""" List the names of shops that have no devices in stock.,SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock) What was the score on the first leg when gimnasia de mendoza played at home for the second leg?,"SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = ""gimnasia de mendoza""" "What is the Season of the game with a Score of 0–2 (a), 3–1 (h)?","SELECT season FROM table_name_24 WHERE score = ""0–2 (a), 3–1 (h)""" Who is the director of movie Avatar?,SELECT director FROM Movie WHERE title = 'Avatar' "After Match 43, what was the Attendance of the Match with a Score of 2-4?","SELECT MAX(attendance) FROM table_name_14 WHERE match_no > 43 AND score = ""2-4""" "What is the customer first, last name and id with least number of accounts.","SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1" "which vessel area was called for on november 30, 1970","SELECT shipyard FROM table_291768_1 WHERE commissioned = ""November 30, 1970""" What is the home team score when the venue is Princes Park?,"SELECT home_team AS score FROM table_name_40 WHERE venue = ""princes park""" For the Year 2013 what building(s) had more than 15 Floors?,"SELECT building FROM table_name_81 WHERE floors > 15 AND year = ""2013""" When was brian lemay born?,"SELECT date_of_birth__age_ FROM table_name_1 WHERE player = ""brian lemay""" "Which Team has Laps smaller than 105, and a Grid smaller than 18, and Points of 11?",SELECT team FROM table_name_16 WHERE laps < 105 AND grid < 18 AND points = 11 "Which Notes have a Time larger than 23.34, and a Rank of 8?",SELECT notes FROM table_name_24 WHERE time___sec__ > 23.34 AND rank = 8 "List all the characteristic names and data types of product ""cumin"".","SELECT t3.characteristic_name , t3.characteristic_data_type 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 = ""cumin""" Name the social democratic party for labour,"SELECT social_democratic_party FROM table_152358_3 WHERE control = ""labour""" What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?,"SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = ""22/13""" How many objects are there in the attribute class id with the highest number of objects?,SELECT COUNT(ATT_CLASS_ID) FROM IMG_OBJ_att GROUP BY IMG_ID ORDER BY COUNT(ATT_CLASS_ID) DESC LIMIT 1 What is the tie no when scunthorpe united was the away team?,"SELECT tie_no FROM table_name_6 WHERE away_team = ""scunthorpe united""" Show the fleet series of the aircrafts flied by pilots younger than 34,SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34 What are the different template type codes?,SELECT DISTINCT template_type_code FROM Templates Name the date with visiting team of philadelphia eagles,"SELECT date FROM table_name_47 WHERE visiting_team = ""philadelphia eagles""" What date was Adelaide the home team?,"SELECT date FROM table_16388478_4 WHERE home_team = ""Adelaide""" Find the types and details for all premises and order by the premise type.,"SELECT premises_type , premise_details FROM premises ORDER BY premises_type" "Which menu page has a bigger width, page 1 of ""Zentral Theater Terrace"" or page 1 of ""Young's Hotel""?",SELECT CASE WHEN SUM(CASE WHEN T1.name = 'Zentral Theater Terrace' THEN T2.full_width ELSE 0 END) - SUM(CASE WHEN T1.name = 'Young''s Hotel' THEN T2.full_width ELSE 0 END) > 0 THEN 'Zentral Theater Terrace' ELSE 'Young''s Hotel' END FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id Provide the sponsor and event of the menu which includes Cerealine with Milk.,"SELECT T3.name, T3.event FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Cerealine with Milk'" What is the home team score that played at Kardinia Park?,"SELECT home_team AS score FROM table_name_25 WHERE venue = ""kardinia park""" When did Fitzroy play as the home team?,"SELECT date FROM table_29126507_1 WHERE home_team = ""Fitzroy""" List down the last name of patients who are allergic to dairy products.,SELECT DISTINCT T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Allergy to dairy product' How many flights are arriving in Dallas?,"SELECT count ( * ) FROM Flight where destination = ""Dallas""" "What's the average amount of Runs that has 40 innings, and Not outs larger than 6?",SELECT AVG(runs) FROM table_name_70 WHERE innings = 40 AND not_outs > 6 Where did Essendon play as the home team?,"SELECT venue FROM table_name_95 WHERE home_team = ""essendon""" which is the minimun amount of gold medals?,SELECT MIN(gold) FROM table_22355_35 Give the name of the highest paid instructor.,SELECT name FROM instructor ORDER BY salary DESC LIMIT 1 Name the number in series for in the ward family and the wren family,"SELECT MAX(no_in_series) FROM table_19897294_8 WHERE family_families = ""The Ward Family and The Wren Family""" What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?,"SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'" What is the name of the track that has had the greatest number of races?,SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1 "Show the description for role name ""Proof Reader"".","SELECT role_description FROM ROLES WHERE role_name = ""Proof Reader""" What was Barreto's song choice where the original artist was Patricia Marx?,"SELECT song_choice FROM table_27614571_1 WHERE original_artist = ""Patricia Marx""" "Return the product type, name, and price for products supplied by supplier 3.","SELECT T2.product_type_code , T2.product_name , T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3" What is the district where the thanjavur medical college is located?,"SELECT district FROM table_name_93 WHERE college_name = ""thanjavur medical college""" How many of the workers who started working in 2009 are from the Production Department?,SELECT COUNT(T2.BusinessEntityID) FROM Department AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.DepartmentID = T2.DepartmentID WHERE T2.StartDate >= '2009-01-01' AND T2.StartDate < '2010-01-01' AND T1.Name = 'Production' What distance does aircraft ID fly? | Do you mean aircraft id 3? And want me to return the sum of all the distances it flew? | Yes please.,"select sum ( distance ) from flight where aid = ( SELECT distinct aid FROM Aircraft WHERE name = ""Airbus A340-300"" ) " How fast does the BMW with 6 points go?,"SELECT speed FROM table_name_43 WHERE machine = ""bmw"" AND points = 6" "What is the most common mill type, and how many are there?","SELECT TYPE , count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" "In the schools donated by the project of the resources provided by ABC School Supply, how many schools are public magnet schools?",SELECT COUNT(T2.schoolid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_magnet = 't' AND T1.vendor_name = 'ABC School Supply' List all titles published in year 1991. Also provide notes details of the title and the publisher's name.,"SELECT T1.title, T1.notes, T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE STRFTIME('%Y', T1.pubdate) = '1991'" Show me the prices of the products named Trading Policy,SELECT Product_Price FROM Products WHERE Product_Name = 'Trading Policy' How many male students have a tree pollen allergy?,"SELECT COUNT ( * ) FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.STUID = T2.STUID where ALLERGY = ""Tree Pollen"" and t1.sex = ""M""" How long has zach been friends with each of them?,"SELECT name,friend,year from PersonFriend where name = 'Zach'" What is the highest number of assists for players that are f/c and have under 13 rebounds?,"SELECT MAX(asts) FROM table_name_38 WHERE pos = ""f/c"" AND rebs < 13" Which movie had the biggest budget? Give the name of the movie.,SELECT Title FROM movie ORDER BY Budget DESC LIMIT 1 "What are the names of captains, sorted by age descending?",SELECT name FROM captain ORDER BY age DESC Can you show me which of the Events on this list took place in the United Kingdom?,"SELECT T3.event_id, T3.event_name FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = ""United Kingdom"" AND t3.Event_Name = ""Annaual Meeting""" What is the name of the nurse who has the most appointments?,SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count ( * ) DESC LIMIT 1 Which Laps is the highest one that has a Time/Retired of +3.370 secs?,"SELECT MAX(laps) FROM table_name_52 WHERE time_retired = ""+3.370 secs""" Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.,SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' ) List the name of all rooms sorted by their prices.,SELECT roomName FROM Rooms ORDER BY basePrice; What is the rating of Dragon Ball Legends and how many users dislike this App?,"SELECT T1.Rating, COUNT(T2.Sentiment_Polarity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Dragon Ball Legends' AND CAST(Sentiment_Polarity AS INTEGER) < -0.5" List all the room names.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId Name the slope length for 1966 groundstation,SELECT COUNT(slope_length) FROM table_17814458_1 WHERE elevation_groundstation = 1966 "What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?",SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30 Find the name of bank branch that provided the greatest total amount of loans.,SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1 can you show me list of founders?,SELECT Founder FROM manufacturers Which company has its headquarter in the US? | Did you mean to ask for the companies with headquarters in USA? | yes.,"SELECT name FROM Companies WHERE Headquarters = ""USA""" "Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger than 228?","SELECT AVG(pick__number) FROM table_name_67 WHERE round > 5 AND position = ""wide receiver"" AND name = ""gregory spann"" AND overall > 228" How many Goals for were recorded when there was a percentage smaller than 0.519 and points greater than 65?,SELECT COUNT(goals_for) FROM table_name_62 WHERE pct__percentage < 0.519 AND points > 65 Which schools have more than 1 player? Give me the school locations.,SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1 What is the full name of that organization?,SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations What is the name of the manager who was replaced by michael skibbe?,"SELECT name FROM table_name_87 WHERE replacement = ""michael skibbe""" How many products are there if we add all those located in the Subassembly category?,SELECT COUNT(T1.LocationID) FROM Location AS T1 INNER JOIN ProductInventory AS T2 USING (LocationID) WHERE T1.Name = 'Subassembly' What was the score at the end of the match number 4?,SELECT score FROM table_19072602_1 WHERE match_no = 4 Which player had a score of 71-73-68-75=287?,SELECT player FROM table_name_53 WHERE score = 71 - 73 - 68 - 75 = 287 What player was drafted for the Detroit Pistons?,"SELECT player FROM table_name_27 WHERE nba_team = ""detroit pistons""" What is the ch# of dwlj-tv?,"SELECT ch__number FROM table_12379297_1 WHERE callsign = ""DWLJ-TV""" What is the number of finishes having a start of 15?,SELECT COUNT(finish) FROM table_name_78 WHERE start = 15 How many course credits are each of those worth?,"SELECT CRS_CREDIT FROM course WHERE CRS_CODE in ( SELECT T1.CRS_CODE FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = ""Computer Info. Systems"" ) " List the studios of each film and the number of films produced by that studio.,"SELECT Studio , COUNT(*) FROM film GROUP BY Studio" how many cities were affected?,SELECT sum ( Number_city_affected ) from affected_region On which date did the shock at latitude 08.909° s occur?,"SELECT date__yyyy_mm_dd_ FROM table_25675509_1 WHERE latitude = ""08.909° S""" What is the market for KLRJ?,"SELECT target_city__market FROM table_2709_4 WHERE call_sign = ""KLRJ""" "Is the donor who donated to school ""d4af834b1d3fc8061e1ee1b3f1a77b85"" a teacher?",SELECT T2.is_teacher_acct FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85' "List the full name (first and last name), and salary for those employees who earn below 6000.","SELECT first_name , last_name , salary FROM employees WHERE salary < 6000" Please provide a list of every volcano mountain in the province of Ecuador.,SELECT T1.Name FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province WHERE T3.Name = 'Ecuador' AND T1.Type = 'volcano' "What is Silver, when Notes is ""6.24km, 23controls""?","SELECT silver FROM table_name_86 WHERE notes = ""6.24km, 23controls""" What's Dorain Anneck's pick number?,"SELECT pick FROM table_1013129_3 WHERE player = ""Dorain Anneck""" How many couples had a vote percentage of 9.5%?,"SELECT COUNT(rank) FROM table_26375386_16 WHERE vote_percentage = ""9.5%""" What is the average number of extra runs made as noballs?,SELECT AVG(T1.Extra_Runs) FROM Extra_Runs AS T1 INNER JOIN Extra_Type AS T2 ON T1.Extra_Type_Id = T2.Extra_Id WHERE T2.Extra_Name = 'noballs' What are all the company names that have a book published by Alyson?,SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson' What are the ids for all sporty students who are on scholarship?,SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' what's the highest price of book published on this list?,SELECT max ( T2.price ) FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID Calculate the number of female students at Arizona State University in 2014.,SELECT CAST(T2.num_students * T2.pct_female_students AS REAL) / 100 FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'Arizona State University' AND T2.year = 2014 which train number arrives in lonavla at 17:45,"SELECT train_number FROM table_29301050_1 WHERE arrival_lonavla = ""17:45""" How many composers do you have recorded in the system ?,SELECT count ( distinct composer ) from track How many female people are on the list?,SELECT count ( * ) FROM people WHERE sex = 'F' List the page id of wikipedia about Catalan language which have the appearance of the word 'decimal'?,SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'decimal' Please show the most common publication date.,SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1 On what date did the customer with the lowest credit limit serviced by sales representative Barry Jones make payments for his/her orders?,SELECT T3.paymentDate FROM employees AS T1 INNER JOIN customers AS T2 ON T1.employeeNumber = T2.salesRepEmployeeNumber INNER JOIN payments AS T3 ON T2.customerNumber = T3.customerNumber WHERE T1.firstName = 'Barry' AND T1.lastName = 'Jones' AND T1.jobTitle = 'Sales Rep' ORDER BY T2.creditLimit ASC LIMIT 1 what is the city code of student id 1001,SELECT city_code FROM STUDENT WHERE StuID = 1001 What venue is listed as having a competition titled Friendly?,"SELECT venue FROM table_name_88 WHERE competition = ""friendly""" Which opponent has a Record of 4-5?,"SELECT opponent FROM table_name_31 WHERE record = ""4-5""" Who was hired to fill the spot that became vacant on 3 March 2009?,"SELECT replaced_by FROM table_name_11 WHERE date_of_vacancy = ""3 march 2009""" "For the donation of the project 'Awesome Audiobooks Make Avid Readers', what was the percentage of the tip in the total amount?",SELECT CAST(SUM(T2.donation_optional_support) AS REAL) * 100 / SUM(T2.donation_total) FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Awesome Audiobooks Make Avid Readers' Who placed highest with a time of 1:47.70?,"SELECT MIN(rank) FROM table_name_22 WHERE time = ""1:47.70""" Name the least number for production code 3x6266,"SELECT MIN(no) FROM table_29329432_1 WHERE production_code = ""3X6266""" What is the name for Malay with a foundation in Iptura?,"SELECT name_in_malay FROM table_name_55 WHERE foundation = ""iptura""" Find the the name of the customers who have a loan with amount more than 3000.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 "Which city is the business that got a ""medium"" length tip with ""3"" likes located in?",SELECT T1.city FROM Business AS T1 INNER JOIN Tips AS T2 ON T1.business_id = T2.business_id WHERE T2.tip_length = 'Medium' AND T2.likes = 3 List the status shared by more than two roller coaster.,SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2 Which club gave up 714 points?,"SELECT club FROM table_12792876_2 WHERE points_against = ""714""" Could you please display the first name and last name of each employee?,"SELECT first_name , last_name FROM employees" "What is Surface, when Championship is Australian Open?","SELECT surface FROM table_name_49 WHERE championship = ""australian open""" I want the director for heroes of the wild,"SELECT director FROM table_name_29 WHERE serial_title = ""heroes of the wild""" How many professors?,SELECT count ( * ) FROM Faculty where rank = 'Professor' What are the names of the two people who won an award for their role as directors?,SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.Result = 'Winner' AND T2.role = 'director' "What are the character names and descriptions of characters in ""Venus and Adonis""?","SELECT DISTINCT T4.CharName, T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.Title = 'Venus and Adonis'" Which Drew has a Lost larger than 14?,SELECT SUM(drew) FROM table_name_17 WHERE lost > 14 Which year had J.R. Reid as a player?,"SELECT year FROM table_name_62 WHERE player = ""j.r. reid""" What player was on the Los Angeles Dodgers?,"SELECT player FROM table_name_70 WHERE team = ""los angeles dodgers""" What is the average latitude of stations located in San Jose city?,"SELECT avg ( lat ) FROM station WHERE city = ""San Jose""" How many ranks had marcin mroczek as the celebrity in a season more recent than 4?,"SELECT COUNT(rank) FROM table_name_13 WHERE celebrity = ""marcin mroczek"" AND season > 4" What player had the high point on July 7?,"SELECT high_points FROM table_name_21 WHERE date = ""july 7""" what are the details of the cmi masters that have the cross reference code 'Tax'?,SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax' How many movies were directed by Michael Bay?,SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Michael Bay' AND T2.job = 'Director' What is the tie number when the away team is Lewes?,"SELECT tie_no FROM table_name_73 WHERE away_team = ""lewes""" Where is the Eren Talu bidding project located?,"SELECT location FROM table_name_30 WHERE project = ""eren talu bidding project""" What is the total number of clubs?,SELECT count(*) FROM club Calculate the percentage of users with a high number of fans who were elite in 2011.,SELECT CAST(SUM(CASE WHEN T3.user_fans = 'High' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.user_fans) FROM Years AS T1 INNER JOIN Elite AS T2 ON T1.year_id = T2.year_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T1.actual_year = 2011 "When the Vancouver Canucks were visiting, what was the record when the score was 4-2?","SELECT record FROM table_name_6 WHERE score = ""4-2"" AND visitor = ""vancouver canucks""" How many millions of U.S. viewers watched the episode directed by Rob Bailey and written by Pam Veasey?,"SELECT us_viewers__millions_ FROM table_12570759_2 WHERE directed_by = ""Rob Bailey"" AND written_by = ""Pam Veasey""" "What is Nationality, when College/Junior/Club Team (League) is ""Guelph Storm ( OHL )""?","SELECT nationality FROM table_name_73 WHERE college_junior_club_team__league_ = ""guelph storm ( ohl )""" What is the lowest number of wins with more than 113 points in 4th rank?,"SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = ""4th""" Name the runner-up for margin of victory of 1 stroke and tournament of legend financial group classic,"SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = ""1 stroke"" AND tournament = ""legend financial group classic""" What is the name of the station in Glasgow?,"SELECT name from station where location = ""Glasgow""" Thank you for that! Can you update this list to show the typical selling price for each?,"SELECT t1.product_name,t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""white""" And who are the publishers of the 3 lowest priced publications?,SELECT Publisher FROM publication ORDER BY Price ASC LIMIT 3 What is the episode number for episode title Leave Takers?,"SELECT episode__number FROM table_2570269_2 WHERE episode_title = ""Leave Takers""" What party was achille variati afilliated with?,"SELECT party FROM table_name_28 WHERE mayor = ""achille variati""" Who played the most hours of Works of Widenius?,"SELECT stuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid where t2.GName = ""Works of Widenius"" order by hours_played desc limit 1" "For each product with some problems, list the count of problems and the product id.","SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id" On which brand of phone are the most applications installed?,"SELECT T.phone_brand FROM ( SELECT T1.phone_brand, COUNT(T4.is_active) AS num FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id INNER JOIN events_relevant AS T3 ON T2.device_id = T3.device_id INNER JOIN app_events_relevant AS T4 ON T3.event_id = T4.event_id WHERE T4.is_active = 1 GROUP BY T1.phone_brand ) AS T ORDER BY T.num DESC LIMIT 1" What is the highest attendance at a game with a result of 5-1?,"SELECT MAX(attendance) FROM table_name_94 WHERE result = ""5-1""" What are the names of the hosts that held parties with the least number of hosts?,SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID order by T3.Number_of_hosts asc limit 1 "Find the starting date and ending data in location for the document named ""Robin CV"".","SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = ""Robin CV""" "Find all the papers published by the institution ""Google"".","SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Google""" find the number of people whose age is greater than all engineers,SELECT count ( * ) FROM Person WHERE age > ( SELECT max ( age ) FROM person WHERE job = 'engineer' ) how many file ids?,SELECT count ( distinct f_id ) FROM files Which shooter's time is more than 8.97 and has a year prior to 2013?,SELECT shooter FROM table_name_56 WHERE time > 8.97 AND year < 2013 What was the qualifying score of the competition whose final score was 12.200?,"SELECT score_qualifying FROM table_25143284_1 WHERE score_final = ""12.200""" "What Developer has a Release date of 2010-12-16, and a Title of facebook?","SELECT developer FROM table_name_12 WHERE release_date = ""2010-12-16"" AND title = ""facebook""" "How many players were born before 10/16/1975, and have a bowling skill of less than 3?",SELECT COUNT(*) FROM Player WHERE DOB < '1975-10-16' AND Bowling_skill < 3 how many customers are there?,SELECT count ( * ) FROM customers Show the names of editors of age either 24 or 25.,SELECT Name FROM editor WHERE Age = 24 OR Age = 25 What are the ids and names of the architects who built at least 3 bridges ?,"SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) >= 3" what is the order status code of Sterling,"SELECT T2.order_status_code FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Sterling""" Name the last title for club of quilmes,"SELECT last_title FROM table_name_36 WHERE club = ""quilmes""" What is the team's record when they play nashville at home?,"SELECT record FROM table_name_91 WHERE home = ""nashville""" What is Joselito Escobar's Pick number?,"SELECT SUM(pick) FROM table_name_96 WHERE player = ""joselito escobar""" What are the full names of the countries in South Asia that belongs to the low income group?,SELECT LongName FROM Country WHERE IncomeGroup = 'Low income' AND Region = 'South Asia' how many colombia in bangladesh is serbian,"SELECT colombian FROM table_24807774_1 WHERE bangladeshi = ""Serbian""" "Find the details of all the distinct customers who have orders with status ""On Road"".","SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road""" What is the Deliblato village known as in Cyrillic?,"SELECT cyrillic_name_other_names FROM table_2562572_41 WHERE settlement = ""Deliblato""" Which developer has a year of cancelled releases?,"SELECT developer FROM table_name_96 WHERE year_of_release = ""cancelled""" Name the average points for dallara 3087 lola t88/50 and year before 1988,"SELECT AVG(points) FROM table_name_63 WHERE chassis = ""dallara 3087 lola t88/50"" AND year < 1988" "What is the total number of won matches of the team named ""Pune Warriors""?",SELECT SUM(CASE WHEN T2.Team_Name = 'Pune Warriors' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner How many courses does Alvera McQuillin take?,SELECT COUNT(T1.course_id) FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.f_name = 'Alvera' AND T2.l_name = 'McQuillin' What frequency does the Pentium processor use?,"SELECT frequency FROM table_24018112_1 WHERE brand_name = ""Pentium""" Show the number of all customers without an account.,SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Accounts) What are the names of people who do not play poker?,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player) How many rounds is the player Matthew Puempel associated with?,"SELECT COUNT(round) FROM table_11803648_20 WHERE player = ""Matthew Puempel""" What's the home win ratio of the Bundesliga division in 2021?,SELECT CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T2.name = 'Bundesliga' What's the to par for the score of 68-74-71-77=290?,SELECT to_par FROM table_name_5 WHERE score = 68 - 74 - 71 - 77 = 290 "How many rooms does that apartment have, and what is the number of that apartment?","SELECT room_count, apt_number FROM Apartments ORDER BY bathroom_count desc LIMIT 1" What is the highest balance in the savings account?,select balance from SAVINGS order by balance desc limit 1 What was the final score for the game on May 4?,"SELECT score FROM table_name_91 WHERE date = ""may 4""" What genre does Honkai Impact 3rd belong to?,SELECT DISTINCT Genres FROM playstore WHERE App = 'Honkai Impact 3rd' What is the smallest Against with a Date of 18/02/1989?,"SELECT MIN(against) FROM table_name_55 WHERE date = ""18/02/1989""" What is the name of the softball stadium for the school that has Eastern Baseball Stadium?,"SELECT softball_stadium FROM table_1974545_3 WHERE baseball_stadium = ""Eastern Baseball Stadium""" List all the unspecified gender characters.,SELECT T1.character_name FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id WHERE T2.gender = 'Unspecified' Name the lowest Year Joined which has a Mascot of pioneers?,"SELECT MIN(year_joined) FROM table_name_93 WHERE mascot = ""pioneers""" What is the full name of the driver who delivered the most shipments to the least populated city?,"SELECT T1.first_name, T1.last_name FROM driver AS T1 INNER JOIN shipment AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id GROUP BY T1.first_name, T1.last_name, T3.population HAVING T3.population = MAX(T3.population) ORDER BY COUNT(*) DESC LIMIT 1" What day was the score 1-0?,"SELECT date FROM table_name_39 WHERE score = ""1-0""" Find the cities which have exactly two airports.,SELECT city FROM airports GROUP BY city HAVING count(*) = 2 What is the name of the team song written by ken walther?,"SELECT basis_for_team_song FROM table_28243323_1 WHERE writer_composer = ""Ken Walther""" What year did Tom Watson win?,"SELECT year_s__won FROM table_name_78 WHERE player = ""tom watson""" How many employees have the role name Editor?,"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" What is the school color of the school with the largest enrollment?,SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 "Can you please list all the characteristics of the product named sesame with the type code ""Grade""?","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"" AND t3.characteristic_type_code = ""Grade""" Find the name and rank of the 3 youngest winners across all matches.,"SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3" "FIND THE CUSTOMER NAME AND DATE OF THE ORDERS THAT HAVE THE STATUS ""DELIVERED""","SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Delivered""" Who is the Opponent in the final on 4 April 2011?,"SELECT opponent_in_the_final FROM table_name_16 WHERE date = ""4 april 2011""" "Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny?","SELECT season FROM table_name_24 WHERE pos = 13 AND head_coach = ""protasov lyutyi talalayev balakhnin baidachny""" "What is the result for Melbourne when Adelaide is no, and Auckland is yes?","SELECT melbourne FROM table_name_56 WHERE adelaide = ""no"" AND auckland = ""yes""" What party did incumbent Wright Patman belong to? ,"SELECT party FROM table_1342149_43 WHERE incumbent = ""Wright Patman""" Show the movie titles and book titles for all companies in China.,"SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'" Which team has the highest number of losses of all time?,"SELECT T1.Team_Name FROM Team AS T1 INNER JOIN ( SELECT COUNT(Team_1) AS a, Team_1 FROM Match WHERE Team_1 <> Match_Winner GROUP BY Team_1 UNION SELECT COUNT(Team_2) AS a, Team_2 FROM Match WHERE Team_2 <> Match_Winner GROUP BY Team_2 ORDER BY a DESC LIMIT 1 ) AS T2 ON T1.Team_Id = T2.Team_1" "Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?",SELECT COUNT(CID) FROM ( SELECT T1.bioguide_id AS CID FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio >= '1960-01-01' GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 6 ) What to Footscray score at home?,"SELECT home_team AS score FROM table_16387653_1 WHERE home_team = ""Footscray""" What is the highest Gold that has a Silver less than 7 and Bronze less than 0,SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 0 "Among the Independent senators that started their term in 2011 and onwards, what are the official full names of the senators that caucused with the Democrat?","SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Independent' AND strftime('%Y', T2.start) >= '2011' AND T2.type = 'sen' AND T2.caucus = 'Democrat'" "Show the residences that have both a player of gender ""M"" and a player of gender ""F"".","SELECT Residence FROM player WHERE gender = ""M"" INTERSECT SELECT Residence FROM player WHERE gender = ""F""" what are the college names of the students whose tryout decision is yes,"SELECT cName FROM Tryout WHERE decision = ""yes""" "Give me the reason, name of the drug, and duration of medication under encounter ID 23c293ec-dbae-4a22-896e-f12cf3c8bac3. Tell me if the patient is still alive.","SELECT T2.REASONDESCRIPTION, T2.DESCRIPTION , strftime('%J', T2.STOP) - strftime('%J', T2.START) AS days , CASE WHEN T1.deathdate IS NULL THEN 'alive' ELSE 'dead' END FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.ENCOUNTER = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'" What is the average Heat for anjelika solovieva?,"SELECT AVG(heat) FROM table_name_38 WHERE name = ""anjelika solovieva""" Thank you for that! Can you filter that list to show only the customers living in Colorado?,"SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = ""Colorado""" "What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?","SELECT place FROM table_name_43 WHERE country = ""united states"" AND to_par = ""+2"" AND score = 73 - 74 - 71 - 72 = 290" "what is the zip code of the highest number of trips taken | What do you mean by ""highest number of trips taken""? | i would like to know the zip code of trips taken above 200 with humidity below 70",SELECT zip_code FROM weather GROUP BY zip_code HAVING avg ( mean_humidity ) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count ( * ) > = 200 What is richmond's scores when they are the home team?,"SELECT home_team AS score FROM table_name_53 WHERE home_team = ""richmond""" What are the names of all wines produced in 2008?,"SELECT Name FROM WINE WHERE YEAR = ""2008""" What is the D 49 √ number when the D 41 √ is d 61 √?,"SELECT d_49_√ FROM table_name_19 WHERE d_41_√ = ""d 61 √""" What time is MDT when EDT is set and PDT is 6:00 a.m.?,"SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = ""set"" AND pdt___7_utc_ = ""6:00 a.m.""" "Among the menus with over 10 pages, how many of them have over 20 dishes?",SELECT COUNT(*) FROM Menu WHERE page_count > 10 AND dish_count > 20 "What is the lowest attendance on September 4, 1983?","SELECT MIN(attendance) FROM table_name_19 WHERE date = ""september 4, 1983""" How much salary did the top 3 well-paid players get in 2001?,SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3; Name the cyrillic name for 518,SELECT cyrillic_name_other_names FROM table_2562572_37 WHERE population__2011_ = 518 Name the 1st stage for parameter being diameter,"SELECT 1 AS st_stage FROM table_16537783_2 WHERE parameter = ""Diameter""" what is the original channel when the year is after 2012?,SELECT original_channel FROM table_name_7 WHERE year > 2012 Calculate the ratio between the number of representatives in Alabama and the number of representatives in Illinois.,SELECT CAST(COUNT(CASE WHEN state = 'Alabama' THEN cognress_rep_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN state = 'Illinois' THEN cognress_rep_id ELSE NULL END) FROM congress "On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?","SELECT date FROM table_name_56 WHERE handler = ""mike jackson"" AND event = ""indianapolis boat, sport & travel show""" "For each classroom with at least 2 classes, how many classes are offered?","SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2" What is the phone number of address No.72?,SELECT phone FROM address WHERE address_id = '72' When was the kickoff during a game with a record of 1-7?,"SELECT kickoff_[a_] FROM table_name_66 WHERE record = ""1-7""" Who was in the women's 200m medley?,"SELECT name FROM table_name_22 WHERE event = ""women's 200m medley""" Lowest pick for mike flater?,"SELECT MIN(pick) FROM table_name_21 WHERE name = ""mike flater""" What is the enrollment ratio in primary in the region where the enrollment ratio in preschool is 38.14?,"SELECT primary__6_13_years_ FROM table_25042332_22 WHERE preschool__0_5_years_ = ""38.14""" What are the names of people in ascending alphabetical order?,SELECT Name FROM People ORDER BY Name How many orchestras does each record company manage?,"SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company" What is the origin for the launch taking place in 2010?,SELECT origin FROM table_name_71 WHERE launch = 2010 What payment method is used to process payments the most?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count ( * ) desc LIMIT 1 What is the height of Paul Hamm?,SELECT Height FROM people where name = 'Paul Hamm' List the names of buildings that have no company office.,SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations) "Can you tell me total number of Silver that has the Republic of latvian ssr, and the Total larger than 6?","SELECT COUNT(silver) FROM table_name_12 WHERE republic = ""latvian ssr"" AND total > 6" "How many vocal types are used in the song ""Le Pop""?","SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What are the full names of students minoring in department 140?,"SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140" "What year did J. Jones, trearddur bay build a boat with a current status of tbsc?","SELECT year_built FROM table_name_54 WHERE current_status = ""tbsc"" AND boat_builder = ""j. jones, trearddur bay""" What is the party of the minister who left office on 26 November 2002?,"SELECT party FROM table_name_3 WHERE left_office = ""26 november 2002""" Which minister took office just before 1959?,SELECT minister FROM party WHERE took_office < 1959 Where was the round 1 race?,SELECT location FROM table_25773116_2 WHERE round = 1 Can you list the themes of the parties with the names of the party hosts?,"SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" Who has a time of 7:26.85 and notes of sc/d?,"SELECT athlete FROM table_name_59 WHERE notes = ""sc/d"" AND time = ""7:26.85""" "What campuses were opened after that? | Do you mean opened after 1939? | Yes, please",SELECT campus FROM campuses WHERE YEAR > 1939 "what is the location for saturday, april 21","SELECT game_site FROM table_27893892_2 WHERE date = ""Saturday, April 21""" Who was the coach for qadsia?,"SELECT coach FROM table_name_58 WHERE club = ""qadsia""" List the company name and rank for all companies in the decreasing order of their sales.,"SELECT company , rank FROM company ORDER BY Sales_billion DESC" Please give me the sum of these amounts.,SELECT sum ( t1.amount_claimed ) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = ( SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1 ) Which countries have more than two members?,SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2 What is the grid total when there are 37 laps?,SELECT COUNT(grid) FROM table_name_57 WHERE laps = 37 How many episodes had the series number of 38?,SELECT COUNT(directed_by) FROM table_19925114_1 WHERE no_in_series = 38 Find the id of routes whose source and destination airports are in the United States.,SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') List the names of employees and sort in ascending order of age.,SELECT name FROM employee ORDER BY age How many students attend course English?,"SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""English""" "What are the category of music festivals with result ""Awarded""?","SELECT Category FROM music_festival WHERE RESULT = ""Awarded""" "Who was playing when the score was 5–7, 5–7?","SELECT opponents FROM table_2186447_1 WHERE score = ""5–7, 5–7""" Which away team that had 48 as a Tie no?,"SELECT away_team FROM table_name_46 WHERE tie_no = ""48""" what is the artist name of india,SELECT artist_name from song where country = 'India' what is the registration located on 31 january 1975 where first flew?,"SELECT registration FROM table_1997759_1 WHERE first_flew = ""31 January 1975""" What is The simpson 20s: Season 20 average awards winning rate?,SELECT CAST(SUM(CASE WHEN result = 'Winner' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(award) AS rate FROM Award; "What is the lowest amount of bronze Liechtenstein, who has more than 11 gold, has?","SELECT MIN(bronze) FROM table_name_75 WHERE nation = ""liechtenstein"" AND gold > 11" List down the quantity per unit for products of Tokyo Traders.,SELECT T1.QuantityPerUnit FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Tokyo Traders' List the names of all distinct wines ordered by price.,SELECT DISTINCT Name FROM WINE ORDER BY price What is the name of the room that can accommodate the most people?,SELECT roomName FROM Rooms ORDER BY maxOccupancy DESC LIMIT 1; "What are the famous titles and ages of each artist, listed in descending order by age?","SELECT Famous_Title , Age FROM artist ORDER BY Age DESC" In which championship did John Newcombe play against Ken Rosewall in the final match?,"SELECT championship FROM table_23259077_1 WHERE opponent_in_the_final = ""Ken Rosewall""" What is the rnd for gt1 winning team for doc bundy andy wallace?,"SELECT rnd FROM table_12146068_2 WHERE gt1_winning_team = ""Doc Bundy Andy Wallace""" What is the average star rating of the episodes Jim Bracchitta has worked on?,SELECT CAST(SUM(T3.stars) AS REAL) / COUNT(T2.episode_id) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id INNER JOIN Vote AS T3 ON T2.episode_id = T3.episode_id WHERE T3.stars = 1 AND T1.name = 'Jim Bracchitta' "when did the institution at chapel hill, North carolina join acc?","SELECT joined_acc FROM table_28744929_1 WHERE location = ""Chapel Hill, North Carolina""" Can I see a list with wrestler names and teams in elimination in descending order based on days held?,"SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC" "Provide the email, address, city, and country of the customer Lillie Kim.","SELECT T1.email, T2.address, T3.city, T4.country FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id INNER JOIN city AS T3 ON T2.city_id = T3.city_id INNER JOIN country AS T4 ON T3.country_id = T4.country_id WHERE T1.first_name = 'Lillie' AND T1.last_name = 'Kim'" What are the distinct move in dates of the residents?,SELECT DISTINCT date_moved_in FROM residents How many invoices in this table?,SELECT count ( * ) FROM invoices "What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?","SELECT AVG(rank) FROM table_name_73 WHERE bronze > 0 AND gold > 1 AND nation = ""japan"" AND silver < 0" List the first names of people in alphabetical order?,SELECT first_name FROM people ORDER BY first_name What is the id of the product that was ordered the most often?,SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1 How many professors have either a Ph.D. or a MA degree?,SELECT count ( * ) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' List down the words with word id from 1 to 10 and write down a paired word for each of them.,"SELECT T1.word AS W1, T3.word AS W2 FROM words AS T1 LEFT JOIN biwords AS T2 ON T1.wid = T2.w1st LEFT JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.wid <= 10 GROUP BY T1.wid" In what rounds was the featured team of Avanzza Rosso?,"SELECT rounds FROM table_name_51 WHERE team = ""avanzza rosso""" What is the score of the game that has a record of 1-2-1?,"SELECT score FROM table_name_29 WHERE record = ""1-2-1""" what is the competition in a year after 1911 with the position of 1st for the rings?,"SELECT competition FROM table_name_78 WHERE year > 1911 AND position = ""1st"" AND event = ""rings""" Which player has a total of more than 290 and +4 to par.,"SELECT player FROM table_name_29 WHERE total > 290 AND to_par = ""+4""" What is the model of the oldest user's device?,SELECT T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id ORDER BY T2.age DESC LIMIT 1 "Which type has a list entry number more than 1356436, named Albion Congregational Church?","SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = ""albion congregational church""" What are the maximum price and score of wines produced by St. Helena appelation?,"SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = ""St. Helena""" What pick # has a team from Rimouski Océanic?,"SELECT AVG(pick__number) FROM table_name_26 WHERE team_from = ""rimouski océanic""" what is the age of kim,SELECT Age FROM Student where Lname = 'Kim' What was Obama's percentage in the county of Alleghany?,"SELECT obama_percentage FROM table_20524090_1 WHERE county = ""Alleghany""" "Which Opponent has a Week larger than 3, and a Game site of mile high stadium, and a Record of 3–3?","SELECT opponent FROM table_name_46 WHERE week > 3 AND game_site = ""mile high stadium"" AND record = ""3–3""" What are the birth year and citizenship of singers?,"SELECT Birth_Year , Citizenship FROM singer" What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?,"SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = ""minimal"" AND camera = ""naturalpoint trackir 3 pro""" List all nurses names in alphabetical order,select name from nurse order by name How many s hindu are where buddhists are 955?,"SELECT s_hindu FROM table_14598_5 WHERE buddhist = ""955""" How many deli in Belmont have a review rating of 2 or more?,SELECT COUNT(id_restaurant) FROM generalinfo WHERE city = 'belmont' AND review > 2 AND food_type = 'deli' can you list the names of all people?,SELECT Name FROM people Find the types of documents with more than 4 documents.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING count(*) > 4 What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?,SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin') In which organization did Constantine Makris win the most awards?,SELECT T2.organization FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Constantine Makris' AND T2.result = 'Winner' GROUP BY T2.organization ORDER BY COUNT(T2.award_id) DESC LIMIT 1 How many businesses have shopping centers and received high review count?,SELECT COUNT(T2.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name = 'Shopping Centers' AND T3.review_count = 'High' "Among the orders placed by Ei, how many orders have quantity greater than 4?",SELECT SUM(CASE WHEN T1.`Order Quantity` > 4 AND T2.`Customer Names` = 'Ei ' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID What was the score of the team that danced a jive and was safe?,"SELECT score FROM table_name_65 WHERE dance = ""jive"" AND result = ""safe""" How many books are there for each publisher?,"SELECT publisher , count(*) FROM book_club GROUP BY publisher" What team played at the Boston Garden when the series was 1-0?,"SELECT team FROM table_name_55 WHERE location_attendance = ""boston garden"" AND series = ""1-0""" What is the name of team 1 that was after the 2005 season and with a 4-2 score?,"SELECT team_1 FROM table_name_11 WHERE season > 2005 AND score = ""4-2""" Find the name of Physicians who are affiliate with surgery or Psychiatry department.,SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry' "How much January has a Record of 26–12–6, and Points smaller than 58?","SELECT SUM(january) FROM table_name_37 WHERE record = ""26–12–6"" AND points < 58" Find the list of page size which have more than 3 product listed,SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3 Find the name of account that has the lowest total checking and saving balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1 Who were the opposing team when playing in the Portugal venue?,"SELECT opponents FROM table_name_49 WHERE venue = ""portugal""" What is the quantity preserved of the e-1 class?,"SELECT quantity_preserved FROM table_name_17 WHERE class = ""e-1""" List all tracks bought by customer Daan Peeters.,"SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = ""Daan"" AND T4.last_name = ""Peeters"";" Identify by their id all the devices that are used by women who are in the age range of 29 to 31 years.,SELECT device_id FROM gender_age_train WHERE age BETWEEN 29 AND 31 AND gender = 'F' Find the emails of customers who has filed a complaints of the product with the most complaints.,SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1 Who was the finalist in the season 2007-08?,"SELECT finalist FROM table_19651669_1 WHERE season = ""2007-08""" list out the store name,SELECT store_name FROM store List all info about all people.,SELECT * FROM people Which movies have the participation of actor Harrison Ford?,SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Harrison Ford' "Who is the current champion for the event in Beverly, MA, with previous champions of Mike Webb and Nick Fahrenheit?","SELECT current_champion_s_ FROM table_name_19 WHERE location = ""beverly, ma"" AND previous_champion_s_ = ""mike webb and nick fahrenheit""" What is the frequency of WMAD?,"SELECT frequency FROM table_name_21 WHERE call_letters = ""wmad""" "What is the median price of wines produced in Sonoma County? | Did you mean the average price of wines produced in Sonoma County? | Yes, what is the average price of wines produced in Sonoma County?","SELECT AVG ( T2.Price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" Find the number of courses provided in each semester and year.,"SELECT COUNT(*), semester, YEAR FROM SECTION GROUP BY semester, YEAR" Which Time has Notes of men's speed skating?,"SELECT time FROM table_name_93 WHERE notes = ""men's speed skating""" List the official name and status of the city with the largest population.,"SELECT Official_Name , Status FROM city ORDER BY Population DESC LIMIT 1" What is the Score for 09-oct-2006?,"SELECT score FROM table_name_76 WHERE date = ""09-oct-2006""" What is Tohoku University's institution ID?,select instID from Inst where name = 'Tohoku University' List the names of people that are not entrepreneurs.,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur) What is the prize for the elapsed time of 10 h 10 min?,"SELECT prize FROM table_22050544_1 WHERE elapsed_time = ""10 h 10 min""" "What are the subject ID, subject name, and the number of available courses for each subject?","SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id" Find the list of distinct ranks for faculty.,SELECT DISTINCT rank FROM Faculty What was the result of the match that had a score of 58-6?,"SELECT result FROM table_name_92 WHERE score = ""58-6""" What game did Eoin Holohan play in?,"SELECT game FROM table_name_69 WHERE player = ""eoin holohan""" What is the sum of the games before January 19 with a 27-6-6 record?,"SELECT SUM(game) FROM table_name_11 WHERE january < 19 AND record = ""27-6-6""" How long was the review for business number 2 that user number 612 wrote?,SELECT review_length FROM Reviews WHERE user_id = 612 AND review_stars = 5 AND business_id = 2 What was the medal that Coleen Dufresne got?,SELECT T4.medal_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T1.full_name = 'Coleen Dufresne (-Stewner)' Find the average rating star for each movie that are not reviewed by Brittany Harris.,"SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris"") GROUP BY mID" What is tbe name of the company in china?,"SELECT name FROM company where Headquarters = ""China""" How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )?,"SELECT COUNT(3) AS :2600 FROM table_23987362_2 WHERE hicham_el_guerrouj___mar__ = ""Hudson de Souza ( BRA )""" Show name and distance for all aircrafts.,"SELECT name , distance FROM Aircraft" List the count and id of each product in all the orders.,"SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" "What is the lowest All-Time, when First Title is ""2007, and when Amateur Era is greater than 0?",SELECT MIN(all_time) FROM table_name_35 WHERE first_title = 2007 AND amateur_era > 0 who has the most orders? | Do you want just the customer name? | yes,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 How many baking product ingredients are there in the No-Bake Chocolate Cheesecake?,SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.category = 'baking products' AND T1.title = 'No-Bake Chocolate Cheesecake' "Which venue has a neutral H/A/N, lower than position 3 and a score of 141?","SELECT venue FROM table_name_85 WHERE h_a_n = ""neutral"" AND pos < 3 AND score = ""141""" Show the name of colleges that have at least two players in descending alphabetical order.,SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 ORDER BY College DESC Name the winning driver for round 7,SELECT winning_driver FROM table_name_24 WHERE round = 7 How many high points were there in the game 67?,SELECT COUNT(high_points) FROM table_11960944_7 WHERE game = 67 And for Metallica?,"SELECT COUNT ( * ) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""Metallica""" What is the full name and id of the college with the largest number of baseball players?,"SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count ( * ) DESC LIMIT 1" Which city and address has zip code of above 90000?,"SELECT locationcity, address FROM location WHERE zipcode > 90000" "In Shakespeare's works between 1600 to 1610, how many of these have a character as a ""Third Servingman""?",SELECT COUNT(DISTINCT T2.work_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.DATE BETWEEN 1600 AND 1610 AND T4.CharName = 'Third Servingman' Tell me the origin for mi-2,"SELECT origin FROM table_name_57 WHERE versions = ""mi-2""" "What streak start has a total less than 79, 22t as the rank, and tampa bay as the teams?","SELECT streak_start FROM table_name_28 WHERE total < 79 AND rank = ""22t"" AND teams = ""tampa bay""" "Give the phone number of the only student who obtained ""A"" in the course ""Intro to BlockChain"".",SELECT T1.phone_number FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Intro to BlockChain' AND T2.grade = 'A' Name the score for rick leach zina garrison,"SELECT score FROM table_1547951_3 WHERE opponents = ""Rick Leach Zina Garrison""" Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?,"SELECT socialist_labor_ticket FROM table_name_28 WHERE democratic_ticket = ""robert m. morgenthau""" How many artists do not have any album?,SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM) "What is Player, when Total is ""294"", and when Year(s) Won is ""1955""?","SELECT player FROM table_name_61 WHERE total = 294 AND year_s__won = ""1955""" "Who played the character named ""Chanice Kobolowski""?",SELECT T2.Name FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Chanice Kobolowski' "Which Overall has a Round larger than 7, a Pick larger than 13, and a Name of tony hall?","SELECT AVG(overall) FROM table_name_88 WHERE round > 7 AND pick > 13 AND name = ""tony hall""" What was the quantity of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?,SELECT SUM(T2.Quantity) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' AND T2.`Order Date` = '2014-09-10' What were the sets when Federer had 6 and a nadal of 13?,SELECT sets FROM table_name_95 WHERE nadal = 13 AND federer = 6 What dates was the falken tasmania challenge race that had triple eight race engineering as the team?,"SELECT date FROM table_20884163_2 WHERE team = ""Triple Eight Race Engineering"" AND race_title = ""Falken Tasmania Challenge""" who is the first joined staff? | Which information do you want to know about the first joined staff? | can you show me a list of date joined staff?,SELECT date_joined_staff FROM Staff "Who was the singer for the song numbered 3, with lyricist Dev Kohli?","SELECT singer_s_ FROM table_name_97 WHERE lyricist = ""dev kohli"" AND number = 3" How many wins did Andrew Ranger have?,"SELECT COUNT(wins) FROM table_23239946_3 WHERE driver = ""Andrew Ranger""" "Among the recipes from The California Tree Fruit Agreement, calculate the percentage of sodium-free recipes.",SELECT CAST(SUM(CASE WHEN T2.sodium < 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'The California Tree Fruit Agreement' What date was the ship named Manhattan completed?,"SELECT commissioned_or_completed_ * _ FROM table_name_60 WHERE ship = ""manhattan""" "Team of honda 250cc, and a Time of 31’ 03.093 has what lowest rank?","SELECT MIN(rank) FROM table_name_74 WHERE team = ""honda 250cc"" AND time = ""31’ 03.093""" How much money did that customer spend?,SELECT sum ( amount ) FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum ( amount ) ASC LIMIT 1 How many people attended the game against the pittsburgh steelers?,"SELECT attendance FROM table_name_21 WHERE opponent = ""pittsburgh steelers""" Which city station is owned by Coyote Communications?,"SELECT city_of_license FROM table_name_56 WHERE status = ""owned by coyote communications""" Name the food businesses that passed the inspection in 2010.,"SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T2.inspection_date) = '2010' AND T2.results = 'Pass' AND T1.facility_type = 'Liquor'" What is bryan hodge's player number,"SELECT COUNT(p) FROM table_22683369_8 WHERE player = ""Bryan Hodge""" List the grape of the wines whose score is higher than 93 ordered by Name.,"SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name" I want to know the peak which is prom less than 147 and height less than 619,SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619 "What was the attendance of the game on December 13, 1970?","SELECT COUNT(attendance) FROM table_name_34 WHERE date = ""december 13, 1970"" AND week > 13" How many students that graduated from Lincoln College in 2011 belong to the cohort type of Bachelor's/equivalent seeking cohort at 4-year institutions?,SELECT COUNT(T1.unitid) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T1.chronname = 'Lincoln College' AND T2.year = 2011 AND T2.cohort = '4y bach' How many gymnasts are from each hometown?,"SELECT T2.Hometown , COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown" "List down the titles of the top 3 episodes, from highest to lowest, in terms of their weighted stars.",SELECT T2.title FROM Vote AS T1 INNER JOIN Episode AS T2 ON T2.episode_id = T1.episode_id WHERE T1.stars BETWEEN 1 AND 10 GROUP BY T2.title ORDER BY CAST(SUM(T1.stars * T1.percent) AS REAL) / 100 DESC LIMIT 3 What was the score against houston?,"SELECT score FROM table_22893781_5 WHERE team = ""Houston""" Which tyres received 8 points?,SELECT tyres FROM table_name_56 WHERE points = 8 How many shops does Tomorrow have?,SELECT Num_of_Shops FROM manufacturer where name = 'Tomorrow' "The club that had 546 points against, what was the losing bonus?","SELECT losing_bonus FROM table_name_71 WHERE points_against = ""546""" "What's listed for the Turnout % with a Ngilu of 30,535?","SELECT turnout__percentage FROM table_name_32 WHERE ngilu = ""30,535""" List out full name of employees who are working in Tokyo?,"SELECT T1.firstName, T1.lastName FROM employees AS T1 INNER JOIN offices AS T2 ON T1.officeCode = T2.officeCode WHERE T2.city = 'Tokyo'" Which reign is the most common among wrestlers?,SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1 Who is born on 29 September 1766?,"SELECT name FROM table_name_20 WHERE birth = ""29 september 1766""" "What's the attendance for the game held on January 2, 2005?","SELECT attendance FROM table_name_28 WHERE date = ""january 2, 2005""" Which capital has a Hangul of 경상남도?,"SELECT capital FROM table_name_97 WHERE hangul_chosongul = ""경상남도""" How many countries has more than 2 car makers ?,SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2 What is the most common occupation of players?,SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT ( * ) DESC LIMIT 1 "What was the prize when the show was aired on Ant1, was presented by Andreas Mikroutsikos, and was launched on March 10, 2003?","SELECT the_prize FROM table_name_19 WHERE tv_channel = ""ant1"" AND the_presenter = ""andreas mikroutsikos"" AND launch_date = ""march 10, 2003""" Which team has Pick 13 in Round 2?,"SELECT team FROM table_name_88 WHERE round = ""2"" AND pick = ""13""" Show me the cost of the most recently performed treatment.,SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1 What was the total number of points when there were 7 assists?,"SELECT total_points FROM table_name_98 WHERE assists = ""7""" who is the winner when the team is mobil 1 racing?,"SELECT winner FROM table_name_31 WHERE team = ""mobil 1 racing""" Show the ids for all the students who participate in an activity and are under 20.,SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20 List the names of all distinct wines that have scores higher than 90.,SELECT Name FROM WINE WHERE score > 90 Name the total number of represents for clary sermina delgado cid,"SELECT COUNT(represents) FROM table_26301697_2 WHERE contestant = ""Clary Sermina Delgado Cid""" Name the Chief Executive Officer and when he/she was hired.,"SELECT T1.fname, T1.lname, T1.hire_date FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Chief Financial Officier'" What is the total and maximum duration of trips with bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636" What's the home record of the team with percentage of .168?,"SELECT home_record FROM table_22993636_2 WHERE percentage = "".168""" Which team(s) had 90% games won. List the coach ID for the team and year played.,"SELECT DISTINCT T2.name, T1.year, T1.coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE CAST(T2.won AS REAL) * 100 / T2.games > 90" What is the accounting department's address?,SELECT Dept_Address FROM Department WHERE Dept_Name = 'Accounting' "What is the weight with the shape of scalloped, and that is a size of 20mm (across scallops)?","SELECT weight FROM table_name_92 WHERE shape = ""scalloped"" AND size = ""20mm (across scallops)""" How much does Point Barrow weight?,"SELECT weight__st, _lb_ FROM table_20095300_1 WHERE name = ""Point Barrow""" Find the product names whose average product price is below 1000000.,SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000 Which countries in the upper middle income category still have unfinished external debt reporting? Please provide the country codes in your answer.,SELECT CountryCode FROM Country WHERE IncomeGroup = 'Upper middle income' AND ExternalDebtReportingStatus = 'Preliminary' Calculate the number of games in the fighting genre.,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Fighting' Find the top 3 artists who have the largest number of songs works whose language is Bangla.,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""bangla"" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3" I want to know the 2001 that has a 2004 of a and 2003 of a with 2012 of 3r,"SELECT 2001 FROM table_name_53 WHERE 2004 = ""a"" AND 2003 = ""a"" AND 2012 = ""3r""" Which country has the highest GDP per capita?,SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP / T1.Population DESC LIMIT 1 "What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?","SELECT proto_malayo_polynesian FROM table_name_71 WHERE proto_oceanic = ""*saqit, *turi""" What is the draw with less than 107 points by the artist Jan Johansen?,"SELECT COUNT(draw) FROM table_name_9 WHERE artist = ""jan johansen"" AND points < 107" Show the color of Barbera Grape?,"SELECT color FROM grapes WHERE Grape = ""Barbera""" Please list the IDs of all the cars on train no.1 that have 2 wheels.,SELECT id FROM cars WHERE train_id = 1 AND wheels = 2 What is the Location of the 10th Iteration?,"SELECT location FROM table_name_40 WHERE iteration = ""10th""" how many of those are played by students on scholarship?,SELECT sum ( gamesplayed ) FROM Sportsinfo WHERE onscholarship = 'Y' "Can you give me the billing dates as well? | do you mean the date of invoice? | Yes, date of invoice please","SELECT DISTINCT invoice_date FROM invoices WHERE billing_state = ( SELECT billing_state FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT ( * ) DESC LIMIT 1 ) " Which country has a Year(s) won in 1964?,"SELECT country FROM table_name_37 WHERE year_s__won = ""1964""" What is the class of 2009?,SELECT class FROM table_name_26 WHERE year = 2009 "Among the states with a public school count of 20 and below, list their race.",SELECT DISTINCT T2.race FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.schools_count <= 20 AND T1.control = 'Public' Can you list the races that are held before 09:00:00?,"SELECT name FROM races WHERE TIME < ""09:00:00""" How many points for the navy team that lost over 11?,"SELECT SUM(points) FROM table_name_4 WHERE team = ""navy"" AND lost > 11" Who had a lane number smaller than 7 and a time of 2:19.86?,"SELECT name FROM table_name_32 WHERE lane < 7 AND time = ""2:19.86""" "List the name of singers whose citizenship is not ""France"".","SELECT Name FROM singer WHERE Citizenship != ""France""" Where were these festivals held?,"select Festival_Name,Location from festival_detail ORDER BY YEAR DESC LIMIT 3" What year did Thorleif Haug win the Winter Olympics?,"SELECT winter_olympics FROM table_174491_1 WHERE winner = ""Thorleif Haug""" Which competition had a 4-3 score?,"SELECT competition FROM table_name_86 WHERE score = ""4-3""" "Find all the policy type codes associated with the customer ""Dayana Robel""","SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" What is the code of the school where the accounting department belongs to?,"SELECT school_code FROM department WHERE dept_name = ""Accounting""" "What is the playoffs result in years where Open Canada Cup was ""N/A"" and regular season result was ""2nd, New England""?","SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = ""N/A"" AND regular_season = ""2nd, New England""" What storm affected city 10.0 and 15.0? | do you mean the name of storm that affected city 10 and 15? | Yes,select T1.Name from Storm as T1 join affected_region as T2 on T1.Storm_ID = T2.Storm_ID where T2.Number_city_affected = 10.0 or T2.Number_city_affected = 15.0 Show project ids and the number of documents in each project.,"SELECT project_id , count(*) FROM Documents GROUP BY project_id" List the product's name bought by the customer named Bill Shonely from the Central region.,SELECT DISTINCT T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Bill Shonely' AND T2.Region = 'Central' "Among the male patients, who has the earliest starting date of the care plan?","SELECT T2.first, T2.last FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.gender = 'M' ORDER BY T1.START LIMIT 1" "For the user who gave the most number of long reviews, what is his/her averge ratings of all review?",SELECT CAST(SUM(T1.review_stars) AS REAL) / COUNT(T1.review_stars) FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.review_length LIKE 'Long' GROUP BY T1.user_id ORDER BY COUNT(T1.review_length) DESC LIMIT 1 Which cities have served as host cities more than once? Return me their GDP and population.,"SELECT t1.gdp , t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING count(*) > 1" Where was home on April 3?,"SELECT home FROM table_name_71 WHERE date = ""april 3""" How many years has station KPIX been owned?,"SELECT COUNT(years_owned) FROM table_1553485_1 WHERE station = ""KPIX""" Name the cost for latest stable date of online,"SELECT cost___usd__ FROM table_name_48 WHERE latest_stable_date__version_ = ""online""" What was the score on the 1st leg if the team 2 is botafogo?,"SELECT COUNT(1 AS st_leg) FROM table_17282875_2 WHERE team__number2 = ""Botafogo""" What is the phone number of the customer who has filed the most recent complaint?,SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1 What is the Constituency Number of Total:?,"SELECT constituency_number FROM table_name_73 WHERE name = ""total:""" What match was on 30 january 1938?,"SELECT match FROM table_name_33 WHERE date = ""30 january 1938""" "What is the number of Year with a Result of champions, and Matches larger than 5?","SELECT COUNT(year) FROM table_name_34 WHERE result = ""champions"" AND matches > 5" Which Date has a Pole Position of michael devaney?,"SELECT date FROM table_name_94 WHERE pole_position = ""michael devaney""" Who is Wayne Day's crew chief?,"SELECT crew_chief FROM table_2182170_1 WHERE listed_owner_s_ = ""Wayne Day""" "When the strike rate is 70.10, what is the balls?","SELECT balls FROM table_name_36 WHERE strike_rate = ""70.10""" What is the Place of the Player with a Score of 70-68=138?,SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138 "What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun?","SELECT transfer_fee FROM table_name_9 WHERE transfer_window = ""summer"" AND type = ""transfer"" AND country = ""hun""" "List down the author ID of authors with a name of ""Peter"".",SELECT AuthorId FROM PaperAuthor WHERE Name = 'Peter' when was the first elected when the candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?,"SELECT first_elected FROM table_2668347_14 WHERE candidates = ""Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%""" What is the net worth of the actor starred in Misery who has a height ranging from 60 to 70 inches tall?,SELECT T3.NetWorth FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Misery' AND T3.`Height (Inches)` BETWEEN 60 AND 70 AND T3.Gender = 'Male' What is their name?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id where loan_type = 'Mortgages' find the names of loser and winner who played in the match with greatest number of minutes.,"SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1" What company built the ship named excellent in 1998?,"SELECT company FROM table_name_59 WHERE built = 1998 AND ship = ""excellent""" What was the name of the team in 1965 driving the Ferrari 158?,"SELECT entrant FROM table_name_3 WHERE year = 1965 AND chassis = ""ferrari 158""" what was the venue where the date was the 22nd?,"SELECT venue FROM table_17120964_9 WHERE date = ""22nd""" What are the details of the project that is producing both patents and papers as outcomes?,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent' Find top enroll grade?,SELECT ENROLL_GRADE FROM ENROLL ORDER BY ENROLL_GRADE ASC LIMIT 1 What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?,SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin') Find the id of courses which are registered or attended by student whose id is 121?,SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121 What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?,"SELECT fri_26_aug FROM table_30058355_7 WHERE wed_24_aug = ""23' 52.67 94.807mph""" Name the airport for ICAO of flls,"SELECT airport FROM table_name_6 WHERE icao = ""flls""" "What is Score, when Country is ""United States"", when Place is ""T3"", and when Player is ""Phil Blackmar""?","SELECT score FROM table_name_10 WHERE country = ""united states"" AND place = ""t3"" AND player = ""phil blackmar""" Name the finish for lee janzen,"SELECT finish FROM table_name_94 WHERE player = ""lee janzen""" "Provide the institute name with less than 200 graduate cohort of all races and genders in 2013. Also, please state the total number of full-time equivalent undergraduates for the institute.","SELECT T1.chronname, T2.grad_cohort FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.year = 2013 AND T2.gender = 'B' AND T2.race = 'X' AND T2.grad_cohort < 200" "Which December has a Record of 21–8–4, and a Game larger than 33?","SELECT AVG(december) FROM table_name_38 WHERE record = ""21–8–4"" AND game > 33" How many bronze had a rank of less than 6 and a total less than 5?,SELECT COUNT(bronze) FROM table_name_43 WHERE rank < 6 AND total < 5 Sort the company names in descending order of the company's market value.,SELECT name FROM Companies ORDER BY Market_Value_billion DESC What is the Airport with an IATA of TRZ?,"SELECT airport FROM table_name_51 WHERE iata = ""trz""" Which Class has a Quantity made of 29?,"SELECT class FROM table_name_66 WHERE quantity_made = ""29""" What is the name of the stadium in Brisbane?,"SELECT stadium FROM table_name_17 WHERE city = ""brisbane""" Can you tell me the Score that has the Date of april 8?,"SELECT score FROM table_name_22 WHERE date = ""april 8""" Hi there! Can you show me a list of all store IDs along with the associated store names?,"SELECT store_id, store_name FROM store" Provide the category name of the Chef Anton's Gumbo Mix product that New Orleans Cajun Delights company has.,SELECT T3.CategoryName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T1.CompanyName = 'New Orleans Cajun Delights' AND T2.ProductName LIKE 'Chef Anton%s Gumbo Mix' Name the cfl team for robert beveridge,"SELECT cfl_team FROM table_28059992_2 WHERE player = ""Robert Beveridge""" When did 'Bulgaria' gain independence?,SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Bulgaria' Name the record for 1997,"SELECT record FROM table_name_78 WHERE year = ""1997""" How many races did each of these drivers participate in?,"SELECT T1.driverid,count ( * ) 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" What label released a CD in 1988?,"SELECT label FROM table_name_37 WHERE date = ""1988"" AND format = ""cd""" "Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?","SELECT enrollment FROM table_name_4 WHERE primary_conference = ""mid-hoosier"" AND county = ""16 decatur"" AND ihsaa_class = ""aa""" What was the control for the year with a Conservative Party result of 10 (+5)?,"SELECT control FROM table_name_70 WHERE conservative_party = ""10 (+5)""" who is the the candidates with dbeingtrict being kansas 5,"SELECT candidates FROM table_1342359_15 WHERE district = ""Kansas 5""" What county is San Jose State University in?,"SELECT County FROM campuses WHERE campus = ""San Jose State University""" "What is Since, when Transfer Fee is ""£ 12m""?","SELECT since FROM table_name_48 WHERE transfer_fee = ""£ 12m""" show me the average number of beds of the rooms with reservations.,SELECT avg ( beds ) FROM rooms WHERE roomid IN ( SELECT DISTINCT room FROM reservations ) What are their names?,SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%' When does the El Canal de las Estrellas of pop tv show from Monday to Friday?,"SELECT monday_to_friday FROM table_name_87 WHERE el_canal_de_las_estrellas = ""pop tv""" "What is the first name, country code, and birth date of the player with the most winner rank points across all matches?","SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1" Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44,SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16 What is the total number of goals from 24 tries and 96 or greater points?,SELECT SUM(goals) FROM table_name_46 WHERE tries = 24 AND points > 96 What is the result of choreographer bjørn holthe?,"SELECT result FROM table_name_60 WHERE choreographer_s_ = ""bjørn holthe""" What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R?,"SELECT 1993 FROM table_name_44 WHERE 1990 = ""qf"" AND 1995 = ""2r""" Who was the young rider classification when Alessandro Petacchi won?,"SELECT young_rider_classification FROM table_28538368_2 WHERE winner = ""Alessandro Petacchi""" "How many degrees were conferred in ""San Jose State University"" in 2000?","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND t2.year = 2000" How many classes are held in each department?,"SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code" What is the low lap total that has a Time or Retired of accident?,"SELECT MIN(laps) FROM table_name_35 WHERE time_retired = ""accident""" Show all distinct city where branches with at least 100 memberships are located.,SELECT DISTINCT city FROM branch WHERE membership_amount >= 100 Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii,"SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = ""yuvan shankar raja"" AND film = ""billa ii""" What's the average rating when the Romanji title was Mendol?,"SELECT average_ratings FROM table_name_26 WHERE romaji_title = ""mendol""" Show the names of conductors that have conducted more than one orchestras.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1 What is his last name?,SELECT emp_lname FROM employee ORDER BY emp_dob LIMIT 1 Where did north melbourne play while away?,"SELECT venue FROM table_name_23 WHERE away_team = ""north melbourne""" how many times is the date (to) 1919?,"SELECT COUNT(notes) FROM table_12562214_1 WHERE date__to_ = ""1919""" Find the names of users who did not leave any review.,SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review) What is the location shared by most counties?,SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 In what Town/City is Nana Museum of The Arctic located?,"SELECT town_city FROM table_name_45 WHERE name = ""nana museum of the arctic""" Which tournament had a 2010 result of A?,"SELECT tournament FROM table_name_87 WHERE 2010 = ""a""" What is the year of the season if the intermediate (South) winners is Southmead Athletic?,"SELECT season FROM table_23014923_1 WHERE intermediate__south__winners = ""Southmead Athletic""" What are the names of circuits that belong to UK or Malaysia?,"SELECT name FROM circuits WHERE country = ""UK"" OR country = ""Malaysia""" Show the albums of Billy Cobham.,"SELECT * FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Billy Cobham""" What home team played against Fleetwood Town?,"SELECT home_team FROM table_name_47 WHERE away_team = ""fleetwood town""" What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup?,"SELECT reg_season FROM table_14225409_1 WHERE playoffs = ""Conference Semifinals"" AND us_open_cup = ""Did not qualify""" "What is the average age of the members of the club ""Bootup Baltimore""?","SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" Find the number of classes in each school.,"SELECT count(*) , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code" What is the highest pick for the position of defensive end?,"SELECT MAX(pick) FROM table_name_15 WHERE position = ""defensive end""" What are the maximum and minimum number of silver medals for clubs.,"SELECT max(Silver) , min(Silver) FROM club_rank" Are there any other students with the same city code as Linda Smith?,"SELECT * FROM Student where city_code = ( select city_code from student where Fname = ""Linda"" AND Lname = ""Smith"" ) and Fname ! = ""Linda"" AND Lname ! = ""Smith""" What Team had a 1:24.365 Qual 2?,"SELECT team FROM table_name_60 WHERE qual_2 = ""1:24.365""" Identify all restaurants in Contra Costa County by id.,SELECT T1.id_restaurant FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'contra costa county' "When has a Tournament of palermo , italy?","SELECT date FROM table_name_17 WHERE tournament = ""palermo , italy""" "What is the round number when nationality was United States, and player is Jeffrey Foss?","SELECT COUNT(round) FROM table_name_20 WHERE nationality = ""united states"" AND player = ""jeffrey foss""" What is the full name of the student with the latest date of completion?,"SELECT T2.personal_name, T2.middle_name, T2.family_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id order by T1.date_of_completion desc limit 1" "In 1975, what was the average point of all-star players coming from the USA?",SELECT AVG(T2.points) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1975 What is the name of the department with the fewest professors?,SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1 Find the name of companies that do not make DVD drive.,SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive' What is the sex of the candidate who had the highest unsure rate?,SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1 What are the nationalities and ages of journalists?,"SELECT Nationality , Age FROM journalist" What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?,SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2 Show first name and last name for all the students advised by Michael Goodrich.,"SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = ""Michael"" AND T1.lname = ""Goodrich""" Give the city that the student whose family name is Kim lives in.,"SELECT city_code FROM Student WHERE LName = ""Kim""" Give me the temperature of Shanghai in January.,"SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = ""Shanghai""" Which document type is described with the prefix 'Initial'?,SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%' What are the different police forces of counties that are not located in the East?,"SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != ""East""" "What is the id, name and IATA code of the airport that had most number of flights?","SELECT T1.id, T1.name, T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1" "Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996?","SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = ""national stadium, karachi"" AND year < 1996" Who has the lowest earnings that has a rank smaller than 2?,SELECT MIN(earnings__) AS $__ FROM table_name_38 WHERE rank < 2 What are the years that had someone nominated for best supporting actress?,"SELECT COUNT(year) FROM table_name_67 WHERE result = ""nominated"" AND category = ""best supporting actress""" Who plays the right wing position?,"SELECT player FROM table_name_66 WHERE position = ""right wing""" What is 你 朋友's English title?,"SELECT english_title FROM table_name_11 WHERE chinese__simplified_ = ""你 朋友""" How many menus include puree of split peas aux croutons?,SELECT SUM(CASE WHEN T1.name = 'Puree of split peas aux croutons' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id "who co-wrote Season 2, Episode 3?",SELECT written_by FROM table_17901155_3 WHERE no_in_season = 3 "What is Injured, when Country is ""Afghanistan""?","SELECT injured FROM table_name_21 WHERE country = ""afghanistan""" Where is the real estate agent from?,"SELECT hometown FROM table_1289860_2 WHERE background = ""Real Estate agent""" Show the number of customers for each gender.,"SELECT gender, COUNT(*) FROM Customers GROUP BY gender" What is the cons for lib dem of 8% and a lead of 27%,"SELECT cons FROM table_name_19 WHERE lib_dem = ""8%"" AND lead = ""27%""" "What is the minimum, average, and maximum distance of all aircrafts.","SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft" what is the most free when the total is 81.167 and the rank is higher than 23?,SELECT MAX(free) FROM table_name_87 WHERE total = 81.167 AND rank > 23 "In 2019, how many users in the United States have a family history of mental illness?",SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN ( SELECT T2.questionid FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.SurveyID = 2019 AND T2.questionid = 6 AND T1.AnswerText LIKE 'Yes' ) AS T2 ON T1.QuestionID = T2.questionid WHERE T1.SurveyID = 2019 AND T2.questionid = 3 AND T1.AnswerText LIKE 'United States' How old is Alice friend?,SELECT age FROM Person AS T1 where name = ( select friend from personFriend where name = 'Alice' ) "Which state can address ""6862 Kaitlyn Knolls"" possibly be in?","SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE ""%6862 Kaitlyn Knolls%""" What are the id and name of the stations that have ever had more than 12 bikes available?,"SELECT DISTINCT T1.id , T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12" What is the total number of rooms available in this inn?,SELECT count(*) FROM Rooms; Which team has a second qualification time of 1:01.936?,"SELECT team FROM table_name_40 WHERE qual_2 = ""1:01.936""" "What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?","SELECT season FROM table_name_6 WHERE country = ""china"" AND team = ""dalian shide"" AND apps > 8 AND goals = 2" "Which License has a System of amiga, and a Name of pocketuae?","SELECT license FROM table_name_83 WHERE system = ""amiga"" AND name = ""pocketuae""" Show the employee ids and the number of documents destroyed by each employee.,"SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID" What is the last year total for the team with a lowest of 23578?,SELECT MAX(last_year) FROM table_2472711_31 WHERE lowest = 23578 Show the names of customers who have at least 2 mailshots with outcome code 'Order'.,SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING count(*) >= 2 WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?,"SELECT birth FROM table_name_2 WHERE death = ""october 1389""" Name the opponent for 12 may 2008,"SELECT opponent FROM table_16776312_3 WHERE date = ""12 May 2008""" "In the complains received in 2012, how many of them are submitted through email?","SELECT COUNT(`Submitted via`) FROM events WHERE strftime('%Y', `Date received`) = '2012' AND `Submitted via` = 'Email'" What type of thing are all five of those?,SELECT DISTINCT T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' and T1.Date_and_Date < '2017-06-19 02:59:21' Show the names of pilots and models of aircrafts they have flied with.,"SELECT T3.Pilot_name , T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID" How many students are in the Accounting department?,SELECT count ( * ) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count ( * ) DESC LIMIT 1 What is the verb meaning when part 2 is band?,"SELECT verb_meaning FROM table_name_36 WHERE part_2 = ""band""" "Among the professors who have more than 3 research assistants, how many of them are male?",SELECT COUNT(*) FROM ( SELECT T2.prof_id FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.gender = 'Male' GROUP BY T1.prof_id HAVING COUNT(T1.student_id) > 3 ) What is the intergiro classification of alexander gontchenkov?,"SELECT intergiro_classification FROM table_12261926_2 WHERE winner = ""Alexander Gontchenkov""" Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.,"SELECT name, prominence FROM mountain EXCEPT SELECT T1.name, T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'" "For the game ending in a final result of 99-90, who was the Road Team?","SELECT road_team FROM table_name_68 WHERE result = ""99-90""" How many of the episodes have Roger Goldby as the director?,"SELECT total_number FROM table_14330096_4 WHERE director = ""Roger Goldby""" How many male students (sex is 'M') are allergic to any type of food?,"SELECT count(*) FROM Student WHERE sex = ""M"" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" "How many share figures are there for the episode that aired on October 17, 2007?","SELECT COUNT(share) FROM table_24910733_2 WHERE air_date = ""October 17, 2007""" "what is the Moldovans number when there are 14,200 Ukrainians?","SELECT moldovans FROM table_name_81 WHERE ukrainians = ""14,200""" What is the percentage where males equal 99?,"SELECT percentage___percentage_ FROM table_name_35 WHERE males = ""99""" What is the resolution of the camera that has 6726 x 5040 pixels and a model of afi 7?,"SELECT resolution FROM table_name_65 WHERE active_pixels = ""6726 x 5040"" AND model = ""afi 7""" What job does he have?,SELECT job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' "For a game had a score of 1-8 in the year of 2011, what division was that game in? Give the full name of the division.","SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2011 AND T1.FTHG = 1 AND T1.FTAG = 8" Please list all competitors' names who participated in 1936 Summer.,SELECT T3.full_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1936 Summer' What about least common?,SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT ( * ) LIMIT 1 List the names and scores of all wines.,"SELECT Name , Score FROM WINE" Who is Team Suzuki's rider and ranks higher than 6?,"SELECT rider FROM table_name_44 WHERE rank > 6 AND team = ""suzuki""" What is the number of 1991 populations named Bečej?,"SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = ""Bečej""" "Show the name, role code, and date of birth for the employee with name 'Armani'.","SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'" List author name for articles that are preprinted but not published.,SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 0 What is the language of the film directed by Hans Kristensen?,"SELECT language FROM table_name_14 WHERE director = ""hans kristensen""" What was the nationality of player picked no. 179?,SELECT nationality FROM table_2679061_9 WHERE pick__number = 179 How many have been played for 362 points?,"SELECT played FROM table_17510803_2 WHERE points_for = ""362""" What is the position of the player whose college is Western Kentucky?,"SELECT position FROM table_14650162_1 WHERE college = ""Western Kentucky""" What is the names of the rowers that the time was 6:24.61?,"SELECT rowers FROM table_name_70 WHERE time = ""6:24.61""" What are the names of all movies that received 3 or 4 stars?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4 What is the score for Set 2 at 15:21?,"SELECT score FROM table_name_48 WHERE set_2 = ""15:21""" What are the NFL Teams in College North Texas State?,"SELECT nfl_team FROM table_2508633_11 WHERE college = ""North Texas State""" What is the Result of Goal number 3?,SELECT result FROM table_name_21 WHERE goal = 3 Who inspected Jean Samocki and what was the result?,"SELECT T3.first_name, T3.last_name, T2.results FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T1.dba_name = 'JEAN SAMOCKI'" What are the Runner(s)-up of the 1972 Championship?,"SELECT runner_s__up FROM table_name_41 WHERE year = ""1972""" Find the titles of items that received both a rating higher than 8 and a rating below 5.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 What is the average number of customers across banks in the state of Utah?,SELECT avg(no_of_customers) FROM bank WHERE state = 'Utah' Which UK base has 441st tcg Troop carrier group and 14 as their seir serial?,"SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = ""441st tcg"" AND serial = ""14""" How many villages are there in the Magway region?,"SELECT villages FROM table_19457_1 WHERE state_region = ""Magway Region""" "What is the date of the Sydney, Australia tournament with a hard surface?","SELECT date FROM table_name_50 WHERE surface = ""hard"" AND tournament = ""sydney, australia""" What party does clyde t. ellis represent?,"SELECT party FROM table_1342256_5 WHERE incumbent = ""Clyde T. Ellis""" Name the segment b for 167,SELECT segment_b FROM table_15187735_13 WHERE episode = 167 What are the different types of video games?,SELECT DISTINCT gtype FROM Video_games "What record has a november greater than 11, and st. louis blues as the opponent?","SELECT record FROM table_name_62 WHERE november > 11 AND opponent = ""st. louis blues""" Find the percentage of restaurant in Napa Valley.,"SELECT CAST(SUM(IIF(region = 'Napa Valley', 1, 0)) AS REAL) * 100 / COUNT(region) FROM geographic" Who were the initial owners of Wasco in 1858?,"SELECT initial_owners FROM table_name_57 WHERE year_built = 1858 AND name = ""wasco""" Show theme and year for all exhibitions in a descending order of ticket price.,"SELECT theme , YEAR FROM exhibition ORDER BY ticket_price DESC" What about with a name like 'Heathrow'?,"SELECT sum ( Domestic_Passengers ) FROM airport WHERE Airport_Name LIKE ""%Heathrow%""" How many countries played in the city of ljungskile?,"SELECT COUNT(country) FROM table_28005160_2 WHERE city = ""Ljungskile""" How many professionals did not operate any treatment on dogs?,SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments) what's the points with driver  rusty wallace,"SELECT points FROM table_10160447_1 WHERE driver = ""Rusty Wallace""" Can you display all staff ids that contain a staff address id of 14?,SELECT staff_id FROM Staff WHERE staff_address_id = 14 What are the ids of instructors who taught in the Fall of 2009 but not in the Spring of 2010?,SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 What was the status of joon-hyung park 박준형?,"SELECT status FROM table_name_58 WHERE name = ""joon-hyung park 박준형""" Which level of courses is taught by professor ID 297?,SELECT T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id = 297 What is the quantity of the aw class?,"SELECT quantity FROM table_name_5 WHERE class = ""aw""" How much did the baby who name means God knows my journey weigh at birth?,"SELECT weight_at_birth FROM table_name_24 WHERE meaning = ""god knows my journey""" Give the name and the position of the cbsa officer from the area with the zip code 45503.,"SELECT T1.CBSA_name, T2.latitude, T2.longitude FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.zip_code = 45503 GROUP BY T1.CBSA_name, T2.latitude, T2.longitude" "In 1998, How many wins were made by team 'CAR' per game played? Who contributed the most goals? State the player ID.","SELECT CAST(T1.W AS REAL) / T1.G, T2.playerID FROM Teams AS T1 INNER JOIN Scoring AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.tmID = 'CAR' AND T1.year = 1998 GROUP BY T1.W / T1.G, T2.playerID ORDER BY SUM(T2.G) DESC LIMIT 1" What is the sum of the prominence in m of slovakia?,"SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = ""slovakia""" What is the team name and acc regular season score of the school that was founded for the longest time?,"SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1" Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship?,"SELECT original_operator FROM table_name_54 WHERE builder = ""ag vulcan"" AND ship = ""prinzess irene""" What is listed for the RECNet that also has a Frequency of 91.1 FM?,"SELECT recnet FROM table_name_51 WHERE frequency = ""91.1 fm""" "What's the WInner with a TIme of 1:10.60, and Owner of Leslie Combs II?","SELECT winner FROM table_name_43 WHERE time = ""1:10.60"" AND owner = ""leslie combs ii""" "From 2018 to 2020, which year did the George Lewis group have the highest number of orders?","SELECT SUBSTR(T1.OrderDate, -2, 2) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.`Sales Team` = 'George Lewis' GROUP BY SUBSTR(T1.OrderDate, -2, 2) ORDER BY COUNT(T1.OrderNumber) DESC LIMIT 1" Write down the date received of complaints sent via Fax.,SELECT T1.`Date received` FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Fax' Who is the player with 7 years of NBA experience?,SELECT player FROM table_name_23 WHERE years_of_nba_experience_[a_] = 7 "What's the D ERP in San Martin Texmelucan, Puebla?","SELECT d_erp FROM table_name_12 WHERE city_of_license = ""san martin texmelucan, puebla""" "The player with a rank of 9, made a move from what football club?",SELECT moving_from FROM table_name_55 WHERE rank = 9 What is the Yam amount when the Maze/Corn amount is 1355?,"SELECT yam_[y_] FROM table_name_80 WHERE maize___corn_[a_] = ""1355""" What driver has 5 as the zan 2?,"SELECT driver FROM table_name_69 WHERE zan_2 = ""5""" What is the score for Australia with a place of 4?,"SELECT score FROM table_name_87 WHERE country = ""australia"" AND place = ""4""" "What was the record at the game held on December 24, 2005?","SELECT record FROM table_name_11 WHERE date = ""december 24, 2005""" What is the student Id of Linda Smith?,"SELECT stuid FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" Hello! Can you provide me with a list of all of the customers with a credit score below 100?,select * from customer where credit_score < 100 Which store sales person was reently hired? Indicate his/her full name and gender.,"SELECT T2.FirstName, T2.MiddleName, T2.LastName, T1.Gender FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'SP'" What is the total number of games played against the Buffalo Sabres?,"SELECT COUNT(game) FROM table_name_65 WHERE opponent = ""buffalo sabres""" "Among the businesses with a category of Accessories, what is the percentage of the business with less than 4 stars?","SELECT CAST(SUM(CASE WHEN T1.stars < 4 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) AS ""percentage"" FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T3.category_name LIKE 'Accessories'" What year was Thierry Beccaro the spokesperson?,"SELECT MIN(year_s_) FROM table_1368649_9 WHERE spokesperson = ""Thierry Beccaro""" "Among the flights with air carrier ""Southwest Airlines Co.: WN"", provide the tail number of flights with an actual elapsed time lower than the 80% of the average actual elapsed time of listed flights.",SELECT T2.TAIL_NUM FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Southwest Airlines Co.: WN' AND T2.ACTUAL_ELAPSED_TIME < ( SELECT AVG(ACTUAL_ELAPSED_TIME) * 0.8 FROM Airlines ) "Show the portrait picture of the user who created the list ""Vladimir Vladimirovich Nabokov"".",SELECT T1.user_avatar_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Vladimir Vladimirovich Nabokov' "What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2?","SELECT total FROM table_name_62 WHERE set_4 = ""na"" AND score = ""3-0"" AND set_2 = ""26-24""" Find the name and hours of the students whose tryout decision is yes.,"SELECT T1.pName, T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" What was the final position of Arena Motorsports International?,"SELECT pos FROM table_name_95 WHERE team = ""arena motorsports international""" Which year had the most matches?,SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 with year greater than 1988 what is the total number of points?,SELECT COUNT(points) FROM table_name_62 WHERE year > 1988 "What is the highest Population, when Per Capita Income is ""$17,168"", and when Number of Households is greater than 3,287?","SELECT MAX(population) FROM table_name_86 WHERE per_capita_income = ""$17,168"" AND number_of_households > 3 OFFSET 287" What is the number of pages of the book in the order ID 1167?,SELECT T1.num_pages FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.order_id = 1167 What is Driver Brendan Gaughan's Pos?,"SELECT pos FROM table_name_29 WHERE driver = ""brendan gaughan""" Who was the driver of the Ford EDB 3.0 v8 engine?,"SELECT driver FROM table_name_82 WHERE engine = ""ford edb 3.0 v8""" "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?","SELECT Adults FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG""" What is the age of the friend of Zach with longest year relationship?,SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach') Show the locations of schools that have more than 1 player.,SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1 On what dates did the billable period begin for patients with the last name Dickinson?,SELECT DISTINCT T2.BILLABLEPERIOD FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T1.last = 'Dickinson' How many types are available?,SELECT count ( distinct interaction_type ) FROM medicine_enzyme_interaction What is the most common media type for the Rock genre?,"SELECT * FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" group by T3.id ORDER BY COUNT ( * ) DESC LIMIT 1" Describe the section h.,SELECT section_description FROM Sections WHERE section_name = 'h' How many subscribers are in the zip code of 94301 and what is the hottest temperature recorded on that zip code?,"SELECT COUNT(T3.zip_code), T3.max_temperature_f FROM trip AS T2 INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.zip_code = 94301 AND T2.subscription_type = 'Subscriber' ORDER BY T3.max_temperature_f DESC LIMIT 1" Who is the player in 20th place?,"SELECT player FROM table_name_65 WHERE placing = ""20th place""" What is the order id and order details for the order more than two invoices.,"SELECT T2.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count(*) > 2" What is the Ground with a Score that is 49-80?,"SELECT ground FROM table_name_61 WHERE score = ""49-80""" What event was in a year later than 2007 and in the 88th position?,"SELECT event FROM table_name_66 WHERE year > 2007 AND position = ""88th""" Return the number of likes that the high schooler named Kyle has.,"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""" How many flights do we have?,SELECT count(*) FROM Flight "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?","SELECT count(*) , T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > ""1986-11-13"" GROUP BY T2.product_id" What are the names and distances for all airplanes?,"SELECT name , distance FROM Aircraft" Please list the names of all the games published by 10TACLE Studios and are puzzles.,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = '10TACLE Studios' AND T4.genre_name = 'Puzzle' What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?,"SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" How many people wrote episode 68 in the series?,SELECT COUNT(written_by) FROM table_228973_5 WHERE no_in_series = 68 Which event had a total of 28?,"SELECT event FROM table_name_51 WHERE total = ""28""" What is the qual 1 for rusport and had a best of 58.665?,"SELECT qual_1 FROM table_name_87 WHERE team = ""rusport"" AND best = ""58.665""" How many percent of the total area of Russia is in Europe?,SELECT T2.Percentage FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Russia' AND T1.Name = 'Europe' List the file size and format for all songs that have resolution lower than 800.,"SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800" List the names of orchestras that have no performance.,SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance) What is the Date of the Game with a Record of 46-22?,"SELECT date FROM table_name_17 WHERE record = ""46-22""" What payment method did Dr. Julia Wuckert MD use?,"SELECT payment_method FROM customers WHERE customer_name = ""Dr. Julia Wuckert MD""" What is the smallest timeslot rank when the rating is smaller than 2.6?,SELECT MIN(rank__timeslot_) FROM table_name_29 WHERE rating < 2.6 When joj agpangan* is the name how many duration's are there?,"SELECT COUNT(duration) FROM table_19061741_3 WHERE name = ""Joj Agpangan*""" "What is the percentage of users gave ""5"" to the movie ""Go Go Tales""?",SELECT CAST(SUM(CASE WHEN T1.rating_score = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Go Go Tales' What is the average weeks of a song with a larger than 3 position after 1977?,SELECT AVG(weeks_on_chart) FROM table_name_40 WHERE position > 3 AND year > 1977 Name the date for 17-32,"SELECT date FROM table_23274514_7 WHERE record = ""17-32""" What is the away team score for North Melbourne's home team?,"SELECT away_team AS score FROM table_name_5 WHERE away_team = ""north melbourne""" how many original air date where family/families is the ryder family and the schwartz family,"SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = ""The Ryder Family and The Schwartz Family""" Which team did the youngest player who could be in F-G position play in the NBA?,SELECT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN players AS T3 ON T2.playerID = T3.playerID WHERE T3.pos = 'F-G' AND T2.lgID = 'NBA' ORDER BY T3.birthDate DESC LIMIT 1 Who is the opponent on November 14?,"SELECT opponent FROM table_name_53 WHERE date = ""november 14""" "What was the score for the South American Championship dated December 13, 1925?","SELECT result FROM table_name_40 WHERE competition = ""south american championship"" AND date = ""december 13, 1925""" What is the date of entry for the UK Albums Top 75 chart?,"SELECT date_of_entry FROM table_1160304_2 WHERE chart = ""UK Albums Top 75""" What is the carrier of the most expensive phone?,SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1 Give the full name of the customer who bought the most amount of products.,"SELECT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID ORDER BY T2.Quantity * T1.Price DESC LIMIT 1" "Can you tell me the Wins that has the Starts larger than 1, and the Top 5 of 3?",SELECT wins FROM table_name_19 WHERE starts > 1 AND top_5 = 3 When рыба (rýba) is the belarusian how many slovenes are there?,"SELECT COUNT(slovene) FROM table_26757_4 WHERE belarusian = ""рыба (rýba)""" What pick was roger holdinsky?,"SELECT pick FROM table_name_26 WHERE player = ""roger holdinsky""" Which players were selected after 2011?,SELECT player_name FROM table_name_53 WHERE year_[a_] > 2011 Compute the total salary that the player with first name Len and last name Barker received between 1985 to 1990.,SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990; Return the name of the mountain with the greatest height.,SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha?,"SELECT laps FROM table_name_77 WHERE manufacturer = ""yamaha"" AND rider = ""valentino rossi""" What party does the incumbent from the Ohio 5 district belong to? ,"SELECT party FROM table_1342218_35 WHERE district = ""Ohio 5""" "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.","SELECT T1.first_name , T1.last_name , T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1" "List the hardware model name for the phons that were produced by ""Nokia Corporation"" but whose screen mode type is not Text.","SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = ""Nokia Corporation"" AND T1.Type != ""Text"";" "How many sets were played in the 2011 tournament, in which 2R were played in 2008?","SELECT 2011 FROM table_name_4 WHERE 2008 = ""2r""" What Title has the Label of Columbia and Standard number of CODC-8760?,"SELECT title FROM table_name_27 WHERE label = ""columbia"" AND standard_number = ""codc-8760""" Who is the Director of the Original title of The Crying Game?,"SELECT director FROM table_name_59 WHERE original_title = ""the crying game""" Where did naylor move from?,"SELECT moving_from FROM table_name_31 WHERE name = ""naylor""" From which school did the Minnesota Twins SS come from?,"SELECT school FROM table_name_50 WHERE team = ""minnesota twins"" AND position = ""ss""" "What is the maximum draws when less than 2514 is the against, and less than 0 byes?",SELECT MAX(draws) FROM table_name_52 WHERE against < 2514 AND byes < 0 What are the full names of actors who had roles in more than 30 films?,"SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING count(*) > 30" What is his id?,SELECT T1.player_id FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 1 Record of 9–1 had what game site?,"SELECT game_site FROM table_name_70 WHERE record = ""9–1""" "How many yards did kevin swayne average, with a long carry over 7?","SELECT MIN(avg) FROM table_name_43 WHERE player = ""kevin swayne"" AND long > 7" What are the original air date(s) for episodes written by aron eli coleite?,"SELECT original_air_date FROM table_28215780_4 WHERE written_by = ""Aron Eli Coleite""" "For a power notation of 10 12, what is the long scale?","SELECT long_scale FROM table_name_7 WHERE power_notation = ""10 12""" "Who was the partner when the score was 7–5, 7–6 (7–5)?","SELECT partner FROM table_2516282_3 WHERE score = ""7–5, 7–6 (7–5)""" Name the minumim first elected for alvin bush,"SELECT MIN(first_elected) FROM table_1342013_37 WHERE incumbent = ""Alvin Bush""" List each birth place along with the number of people from there.,"SELECT Birth_Place, COUNT(*) FROM people GROUP BY Birth_Place" Show student ids for all male students.,SELECT StuID FROM Student WHERE Sex = 'M' Name the orchestra for ted varnick,"SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = ""ted varnick""" What is his a id,SELECT T2.a_id FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id WHERE T1.name = 'Mark' "During runs 332, what was the venue?","SELECT venue FROM table_name_60 WHERE runs = ""332""" "Who won when the attendance was 8,000?","SELECT record FROM table_name_52 WHERE attendance = ""8,000""" Give the customer segment from the West region that orders the order ID CA-2011-108189.,SELECT DISTINCT T2.Segment FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'West' AND T1.`Order ID` = 'CA-2011-108189' How many OPPO devices are there?,SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE phone_brand = 'OPPO' How about the least expensive?,select min ( Product_Price ) from Products Provide the name of the business which had the most number of inspections because of complaint.,SELECT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.type = 'Complaint' GROUP BY T2.name ORDER BY COUNT(T1.business_id) DESC LIMIT 1 Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?,"SELECT hh_principal FROM table_name_16 WHERE superintendent = ""james finch"" AND maplemere_principal = ""charlie taylor""" How many games are free of injury accidents?,SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident ) "Calculate the revenue produced through sales of HL Road Frame - Red, 56.","SELECT SUM(T2.Quantity * T1.Price) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'HL Road Frame - Red, 56'" "Find the number of products for each manufacturer, showing the name of each company.","SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" "How many films rented to the customer RUTH MARTINEZ were returned in August, 2005?","SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' AND STRFTIME('%m',T2.return_date) = '8' AND STRFTIME('%Y', T2.return_date) = '2005'" What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?,"SELECT japanese_title FROM table_name_42 WHERE tv_station = ""ntv"" AND romaji_title = ""kuitan 2""" What's the total loss for a GP-GS of 8-8 and a gain less than 416?,"SELECT SUM(loss) FROM table_name_43 WHERE gp_gs = ""8-8"" AND gain < 416" Name the segment b for graphite s fly rod,"SELECT segment_b FROM table_15187735_8 WHERE segment_c = ""Graphite s Fly Rod""" "What are the different software platforms for devices, ordered by frequency descending?",SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC What is the genre of the Mass Effect game?,"SELECT genre FROM table_name_14 WHERE game = ""mass effect""" What is the name of the customer who has made the minimum amount of payment in one claim?,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = ( SELECT min ( amount_piad ) FROM claim_headers ) "Which fault log included the most number of faulty parts? List the fault log id, description and record time.","SELECT T1.fault_log_entry_id , T1.fault_description , T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1" Wht did Mark O'Meara place when the to par was +2?,"SELECT place FROM table_name_51 WHERE to_par = ""+2"" AND player = ""mark o'meara""" How many documents have expenses?,SELECT count(*) FROM Documents_with_expenses How many students have more than 115 credits?,SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING T1.tot_cred > 115 Find the name and city of the airport which is the destination of the most number of routes.,"SELECT T1.name, T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1" Can you show me a list of all of the lots that belong to category 'i' within the 'lot details' column?,"SELECT * FROM LOTS WHERE lot_details = ""i""" what is the room count in the building 624?,SELECT room_count FROM Apartments where building_id = 624 Great! And what is the average GDP among all of the cities?,SELECT avg ( GDP ) FROM city Show the document name and the document date for all documents on project with details 'Graph Database project'.,"SELECT document_name, document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'" Which Money ($) has a Score of 70-66-73-69=278?,SELECT AVG(money___) AS $__ FROM table_name_95 WHERE score = 70 - 66 - 73 - 69 = 278 IN WHAT ISSUE OF PLAYBOY WAS SHEPARD SMITH INTERVIEWED?,"SELECT date FROM table_1566852_7 WHERE interview_subject = ""Shepard Smith""" How many silver medals when the total was 2 and less than 1 bronze?,SELECT SUM(silver) FROM table_name_37 WHERE bronze < 1 AND total = 2 What was the average crowd size for the game when the Gold Coast Blaze was the home team?,"SELECT AVG(crowd) FROM table_name_77 WHERE home_team = ""gold coast blaze""" Show all role codes and the number of employees in each role.,"SELECT role_code , count(*) FROM Employees GROUP BY role_code" Who had 1990 of 2–2 in 1993?,"SELECT 1993 FROM table_name_67 WHERE 1990 = ""2–2""" Which flag is least widely used among all ships?,SELECT flag FROM ship GROUP BY flag ORDER BY count ( * ) LIMIT 1 "What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty?","SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = ""13.8""" what is the name of customer id 1?,"SELECT customer_first_name, customer_last_name from customers where customer_id = 1" Find the program which most number of students are enrolled in. List both the id and the summary.,"SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1" how many trips started from howard and ended at san fransisco,"SELECT count ( * ) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""Howard"" AND T3.city = ""San Fransisco""" "Which Number stayed in Southeast has over 4,000 emigrated or forcibly removed?","SELECT number_stayed_in_southeast FROM table_name_26 WHERE total_number_emigrated_or_forcibly_removed = ""over 4,000""" List the number of viewers when the cable rank for Russell Howard's Good New was 5.,"SELECT viewers FROM table_24399615_10 WHERE cable_rank = ""5""" how many 10wi and bbi is 6/101,"SELECT COUNT(10 AS wi) FROM table_28846752_5 WHERE bbi = ""6/101""" What is the against when the opposing team is Italy?,"SELECT COUNT(against) FROM table_name_54 WHERE opposing_teams = ""italy""" Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin,"SELECT gt2_winning_team FROM table_19598014_2 WHERE lmp2_winning_team = ""Butch Leitzinger Marino Franchitti Ben Devlin""" "How many players got out in the first inning of match ID ""548335""?",SELECT SUM(CASE WHEN Match_Id = 548335 THEN 1 ELSE 0 END) FROM Wicket_Taken WHERE Innings_No = 1 List the name of the games that Georgios Abaris participated.,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'Georgios Abaris' Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313?,SELECT SUM(balls_faced) FROM table_name_4 WHERE average = 39.13 AND runs_scored > 313 "What is the highest col in m of the puncak jaya (carstensz pyramid) peak, which is ranked lower than 7 and has a prominence less than 4,884 m?","SELECT MAX(col__m_) FROM table_name_91 WHERE rank < 7 AND peak = ""puncak jaya (carstensz pyramid)"" AND prominence__m_ < 4 OFFSET 884" What is the average for the player with 313 runs?,SELECT average FROM table_27922491_11 WHERE runs = 313 What was the attendance at Corio Oval?,"SELECT crowd FROM table_name_9 WHERE venue = ""corio oval""" What was the name of the away team that had a tie of 2?,"SELECT away_team FROM table_name_93 WHERE tie_no = ""2""" How many athlete from China participate in the 2016 Summer Olympics?,SELECT COUNT(T3.id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id INNER JOIN person_region AS T4 ON T3.id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T1.games_name = '2016 Summer' AND T5.region_name = 'China' Name the points for paulistano,"SELECT points FROM table_15418319_1 WHERE team = ""Paulistano""" What is the average of player Matthew Elliott (vic)?,"SELECT average FROM table_name_63 WHERE player = ""matthew elliott (vic)""" What was the result(s) in the event 3 squatlift for the man from the United states with a result of 1 (42.66s) in the event 2 truck pull?,"SELECT event_3_squat_lift FROM table_24302700_2 WHERE nationality = ""United States"" AND event_2_truck_pull = ""1 (42.66s)""" Show flight number for all flights with more than 2000 distance.,SELECT flno FROM Flight WHERE distance > 2000 "What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell?","SELECT MIN(_number) FROM table_23294081_11 WHERE performer_2 = ""Heather Anne Campbell"" AND us_viewers__millions_ = ""2.99""" "Among the movie in which Dariusz Wolski works as the director of photography, what is the percentage of those movie whose vote average is over 5.0?",SELECT CAST(COUNT(CASE WHEN T1.vote_average > 5 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.vote_average) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography' "Which team had more home victories in the 2021 season's matches of the Bundesliga division, Augsburg or Mainz?",SELECT CASE WHEN COUNT(CASE WHEN T1.HomeTeam = 'Augsburg' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T1.HomeTeam = ' Mainz' THEN 1 ELSE NULL END) > 0 THEN 'Augsburg' ELSE 'Mainz' END FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H' "What are the method, date and amount of each payment? Sort the list in ascending order of date.","SELECT Payment_Method_Code , Date_Payment_Made , Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC" Who won the course Brescia?,"SELECT winner FROM table_name_49 WHERE course = ""brescia""" Give the country and area code of the city with zip code 1116.,"SELECT T2.county, T1.area_code FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 1116" What is the lowest round that has kazushi sakuraba as the opponent?,"SELECT MIN(round) FROM table_name_92 WHERE opponent = ""kazushi sakuraba""" Name the santee sisseton for wičháša,"SELECT santee_sisseton FROM table_1499774_5 WHERE yankton_yanktonai = ""wičháša""" Who was the incumbent in the Ohio 5 district?,"SELECT incumbent FROM table_2646656_3 WHERE district = ""Ohio 5""" What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%?,"SELECT brian_moran FROM table_21535453_1 WHERE source = ""Survey USA"" AND creigh_deeds = ""26%""" Which status has an against of 35?,SELECT status FROM table_name_52 WHERE against = 35 Tell me the outgoing manager for 22 november date of vacancy,"SELECT outgoing_manager FROM table_name_13 WHERE date_of_vacancy = ""22 november""" What is the greatest number of losses when the against is 1465 and there are more than 7 wins?,SELECT MAX(losses) FROM table_name_80 WHERE against = 1465 AND wins > 7 How many employees from USA with Sales Representative title?,SELECT COUNT(Country) FROM Employees WHERE Country = 'USA' AND Title = 'Sales Representative' what are name and phone number of patients who had more than one appointment?,"SELECT name , phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count(*) > 1" "What is the media market ranking for new york, new york?","SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = ""new york, new york""" "For he who had the highest plus / minus on the court in the 1981 season, what's his full name?","SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1981 GROUP BY T2.playerID ORDER BY SUM(T2.`+/-`) DESC LIMIT 1" How many products in this table?,SELECT count ( * ) FROM Products What is the total number of hours for all projects?,SELECT sum(hours) FROM projects How many non-faculty members are not undergoing the phase of qualifications?,SELECT COUNT(*) FROM person WHERE hasPosition = 0 AND inPhase = 0 What are the IDs of all the products supplied by supplier 2?,SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 What is the lowest round of the player from UCLA?,"SELECT MIN(round) FROM table_name_87 WHERE school_club_team = ""ucla""" "Among the films starred by Reese West, what is the difference between the films that have store ID of 1 and store ID of 2?","SELECT SUM(IIF(T4.film_id = 1, 1, 0)) - SUM(IIF(T4.film_id = 2, 1, 0)) AS diff FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id WHERE T2.first_name = 'Reese' AND T2.last_name = 'West'" How many stores belong to the station with the highest recorded heat of all time?,SELECT COUNT(T2.store_nbr) FROM ( SELECT station_nbr FROM weather ORDER BY heat DESC LIMIT 1 ) AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr How many flights fly from Aberdeen to Ashley?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = ""Ashley"" AND T3.City = ""Aberdeen""" What is the active Date that has a 65 (100) Max 1-min wind?,"SELECT dates_active FROM table_name_28 WHERE max_1_min_wind_mph__km_h_ = ""65 (100)""" "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines""?",SELECT count ( * ) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' "What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?","SELECT AVG(capacity) FROM table_name_40 WHERE city = ""london"" AND enrollment < 30 OFFSET 000" Name the ground for essendon,"SELECT ground FROM table_16388047_1 WHERE home_team = ""Essendon""" What is the mark set by Laura Turner?,"SELECT mark FROM table_name_65 WHERE name = ""laura turner""" What is the Location Attendance with a Record that is 1-4?,"SELECT location_attendance FROM table_name_31 WHERE record = ""1-4""" "Which Red Cards has a Season of 1998/1999, and a Games larger than 41?","SELECT MIN(red_cards) FROM table_name_55 WHERE season = ""1998/1999"" AND games > 41" Name the least spirou,SELECT MIN(spirou) FROM table_15163938_1 "Tell the name of school in ""NJ"" that could get the bachelor's degree with highest students number.",SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'NJ' AND T1.level = '4-year' AND T1.student_count = ( SELECT MAX(T1.student_count) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'NJ' AND T1.level = '4-year' ) How many cancelled flights are there?,SELECT COUNT(*) FROM Airlines WHERE CANCELLED = 1 what is the name of the student with the id 1002 | Would you like first name and last name of the student with student id 1002? | yes,"SELECT Fname, Lname FROM Student WHERE StuID = 1002" What is the department Id of sales person?,"SELECT distinct department_id FROM Staff_Department_Assignments WHERE job_title_code = ""Sales Person""" What are the distinct names of wines with prices higher than any wine from John Anthony winery.,"SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = ""John Anthony"")" What series 1 has a Doug Richards in Series 2?,"SELECT series_1 FROM table_name_58 WHERE series_2 = ""doug richards""" Thank you! Can you list how many lessons each of those individuals taught?,"SELECT count ( * ) , T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE ""%a%""" Hello! Can you tell me how many left footed players there are?,"SELECT COUNT ( * ) FROM Player_Attributes WHERE preferred_foot = ""left""" what is the highest fa cup goals when flt goals is more than 0?,SELECT MAX(fa_cup_goals) FROM table_name_96 WHERE flt_goals > 0 Which Money (£) has a Player of jodie mudd?,"SELECT COUNT(money___) AS £__ FROM table_name_72 WHERE player = ""jodie mudd""" Thanks! Can you update that list to show the years that those 3 books were published and what category they fall under?,"select Book_Title,Year,Category from book_club where Publisher = 'Alyson'" Which timeslot did episode no. 15 hold?,SELECT timeslot FROM table_11274401_2 WHERE no = 15 What is the L2 cache with ec number of slbmm(c2)slbsr(k0)?,"SELECT l2_cache FROM table_name_92 WHERE sspec_number = ""slbmm(c2)slbsr(k0)""" Find the id of songs that are available in mp4 format and have resolution lower than 1000.,"SELECT f_id FROM files WHERE formats = ""mp4"" INTERSECT SELECT f_id FROM song WHERE resolution < 1000" What is the product id of it?,"SELECT t1.product_id FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" When is the French Open when serena williams is the player?,"SELECT MIN(french_open) FROM table_197638_7 WHERE player = ""Serena Williams""" Tell me the age of the oldest dog.,SELECT max(age) FROM Dogs What are the nationalities of players who attended duke?,"SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = ""Duke""" What was the original air date where there were u.s. viewers (millions) is 5.60?,"SELECT original_air_date FROM table_25716399_1 WHERE us_viewers__millions_ = ""5.60""" Name the average goal difference for draw of 7 and played more than 18,SELECT AVG(goal_difference) FROM table_name_2 WHERE draw = 7 AND played > 18 Who has the highest Long with 59 Car?,SELECT MAX(long) FROM table_name_91 WHERE car = 59 Which Label has a Region of canada?,"SELECT label FROM table_name_12 WHERE region = ""canada""" How many final-time home-team goals were there in total in all the matches of the Bundesliga division in the 2021 season?,SELECT SUM(T1.FTHG) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021 "List name, dates active, and number of deaths for all storms with at least 1 death.","SELECT name, dates_active, number_deaths FROM storm WHERE number_deaths >= 1" How many rounds did the match go for the Bellator 72 event?,"SELECT SUM(round) FROM table_name_62 WHERE event = ""bellator 72""" How many different songs have shared vocals?,"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""shared""" What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?,"SELECT safari FROM table_name_57 WHERE chrome = ""2.05%""" Which committees have delegates from the democratic party?,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic""" "Which Nationality has a Pick larger than 109, and a Round smaller than 5?",SELECT nationality FROM table_name_9 WHERE pick > 109 AND round < 5 Which Win percentage has a Name of red kelly?,"SELECT SUM(win_percentage) FROM table_name_55 WHERE name = ""red kelly""" "Which Source has a Remainder of 15%, and a Topinka of 26%?","SELECT source FROM table_name_78 WHERE remainder = ""15%"" AND topinka__r_ = ""26%""" What is the contact staff id for that?,SELECT T2.contact_staff_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id where T2.fault_log_entry_id = ( SELECT T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1 ) "How many distinct colleges are associated with players from the team with name ""Columbus Crew"".","SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Columbus Crew""" What is the l2 cache for the model with a release price of $669?,"SELECT l2_cache FROM table_16400024_1 WHERE release_price___usd__ = ""$669""" how many countiers had 2009 remittances of 6.02?,"SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2009 = ""6.02""" Add the number of businesses that indicate their home address as their address and those whose address corresponds to the shipping address.,"SELECT SUM(CASE WHEN T2.Name = 'Home' THEN 1 ELSE 0 END) , SUM(CASE WHEN T2.Name = 'Shipping' THEN 1 ELSE 0 END) FROM BusinessEntityAddress AS T1 INNER JOIN AddressType AS T2 ON T1.AddressTypeID = T2.AddressTypeID" How many type of institutions in this table? | There are 3 different types of institutions in the table. | How many different teams in this institution table?,select count ( distinct team ) from institution Give the name of the department with the lowest budget.,SELECT dept_name FROM department ORDER BY budget LIMIT 1 What is the gender of the student Linda Smith?,"SELECT Sex FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith"";" What are the names of the five oldest people?,SELECT Name FROM People ORDER BY Age DESC LIMIT 5 What are the ids of documents with the type code CV that do not have expenses.,"SELECT document_id FROM Documents WHERE document_type_code = ""CV"" EXCEPT SELECT document_id FROM Documents_with_expenses" Which physicians are trained in procedures that are more expensive than 5000?,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000 "who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989","SELECT pitcher FROM table_19864214_3 WHERE seasons = ""1982, 1984, 1985, 1987, 1988, 1989""" Which nurses are in charge of patients undergoing treatments?,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID What is the date of birth for the staff member named Janessa Sawayn?,"SELECT date_of_birth FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What record has September 21 as the date?,"SELECT record FROM table_name_59 WHERE date = ""september 21""" "What was the position of the player picked after 94, by the Boston Patriots?","SELECT position FROM table_name_96 WHERE pick > 94 AND team = ""boston patriots""" What is the largest Number of electorates (2009) with a Constituency number of total:?,"SELECT MAX(number_of_electorates__2009_) FROM table_name_41 WHERE constituency_number = ""total:""" what's the pts with team being kopron team scot,"SELECT pts FROM table_14139408_1 WHERE team = ""Kopron team Scot""" What is the full address of Andr Fonseca?,"SELECT Address, City, Region, PostalCode, Country FROM Customers WHERE ContactName = 'Andr Fonseca'" "What is the total number of React, when Name is Sean Wroe, and when Lane is greater than 2?","SELECT COUNT(react) FROM table_name_78 WHERE name = ""sean wroe"" AND lane > 2" What was the score of the 2nd leg when Newell's Old Boys played at home?,"SELECT 2 AS nd_leg FROM table_name_19 WHERE home__2nd_leg_ = ""newell's old boys""" "What is the template type code for template type description ""Book"".","SELECT template_type_code FROM Ref_template_types WHERE template_type_description = ""Book""" "What game has valiquette as the decision, with @ los angeles kings as the opponent?","SELECT game FROM table_name_96 WHERE decision = ""valiquette"" AND opponent = ""@ los angeles kings""" What is the weight with a cross section area of 25.3?,"SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = ""25.3""" Name the incumbent for north carolina 9,"SELECT incumbent FROM table_19753079_36 WHERE district = ""North Carolina 9""" What is the most reduced Margin that has a St Kilda Saints of 11.13 (79)?,"SELECT MIN(margin) FROM table_name_79 WHERE st_kilda_saints = ""11.13 (79)""" "How many matches were there in the round with £1,000,000 in prize money?","SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = ""£1,000,000""" What is the points that is more than 636 and has a value of 50?,"SELECT pts_[b_] FROM table_name_82 WHERE reb_[b_] > 636 AND no_[a_] = ""50""" "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?","SELECT name , height , prominence FROM mountain WHERE range != 'Aberdare Range'" Name the championship for winner and judy tegart dalton lesley turner bowrey,"SELECT COUNT(championship) FROM table_2009095_2 WHERE outcome = ""Winner"" AND opponents = ""Judy Tegart Dalton Lesley Turner Bowrey""" What is the name of the player that was Pick 15?,"SELECT player FROM table_name_8 WHERE pick__number = ""15""" What is the result of the match with Zab Judah as the opponent?,"SELECT result FROM table_name_42 WHERE opponent = ""zab judah""" "Please show the songs that have result ""nominated"" at music festivals.","SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = ""Nominated""" What medium was used for the sculpture of George Harold Baker? ,"SELECT medium FROM table_20903658_1 WHERE title_subject = ""George Harold Baker""" How many reviews have the user whose ID is 3 posted?,SELECT COUNT(review_length) FROM Reviews WHERE user_id = 3 Find the names of nurses who are nursing an undergoing treatment.,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID What is the Office when the Republican ticket shows seymour lowman?,"SELECT office FROM table_name_63 WHERE republican_ticket = ""seymour lowman""" what is the average of enrollments?,SELECT avg ( enr ) from College What is the highest region of Saint-Flavien with an area larger than 67.56?,"SELECT MAX(region) FROM table_name_43 WHERE name = ""saint-flavien"" AND area__km_2__ > 67.56" "Show the ministers and the time they took and left office, listed by the time they left office.","SELECT minister, took_office, left_office FROM party ORDER BY left_office" What is the day Number and date of all the documents?,"SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date" what are the number of years for working for each driver and their names?,"SELECT t1.name, t2.years_working FROM driver as t1 join school_bus as t2 where t1.driver_id = t2.driver_id" Write the message of the donor of the project with the title of Lets Share Ideas who paid with a credit card.,SELECT T3.donation_message FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Lets Share Ideas' AND T3.payment_method = 'creditcard' what was the score on june 29?,"SELECT score FROM table_name_83 WHERE date = ""june 29""" "Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428?","SELECT SUM(intake) FROM table_name_54 WHERE faith = ""rc"" AND dcsf_number > 2428" What are the phone numbers for each employee?,SELECT Phone FROM EMPLOYEE How many students attend course English ?,"SELECT count ( * ) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""English""" What was the lowest total for Italy when the latest win is 1950?,"SELECT MIN(total) FROM table_name_43 WHERE nationality = ""italy"" AND latest_win = 1950" "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?","SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )" What driver had a 15-20 record?,"SELECT drivers FROM table_name_34 WHERE races = ""15-20""" How much Total has a Silver smaller than 0?,SELECT COUNT(total) FROM table_name_38 WHERE silver < 0 "Among the books that were published by Scholastic, how many were written by J.K Rowling?",SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id INNER JOIN book_author AS T3 ON T3.book_id = T1.book_id INNER JOIN author AS T4 ON T4.author_id = T3.author_id WHERE T2.publisher_name = 'Scholastic' AND T4.author_name = 'J.K. Rowling' "Which IHSAA Football Class has a Location of wabash, and a School of wabash?","SELECT ihsaa_football_class FROM table_name_50 WHERE location = ""wabash"" AND school = ""wabash""" How many points does Tom Hammond have if he has more than 12 points?,"SELECT SUM(points) FROM table_name_12 WHERE player = ""tom hammond"" AND extra_points > 12" Please list each gender code with its corresponding amount of guests and sort it in descending order by that count?,"SELECT gender_code , COUNT ( * ) FROM Guests GROUP BY gender_code ORDER BY COUNT ( * ) DESC" "List the resident_id,details, and the count in descending order of the count","SELECT T1.resident_id , T1.other_details , count ( * ) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count ( * ) DESC" What was the lowest highest attendance for the dumbarton team?,"SELECT MIN(highest) FROM table_11206916_1 WHERE team = ""Dumbarton""" "Show the apartment numbers of apartments with bookings that have status code both ""Provisional"" and ""Confirmed""","SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed"" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" Find the movie id of Gone with the Wind?,SELECT mid FROM Movie WHERE title = 'Gone with the Wind' "How many images have ""picture"" as their attribute class?",SELECT COUNT(T2.IMG_ID) FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.ATT_CLASS = 'picture' "What date did the institution that left in 2013 and that is nicknamed Corsairs, join? ","SELECT joined FROM table_261927_2 WHERE left = ""2013"" AND nickname = ""Corsairs""" "How many times is the number of images containing ""broccoli"" than ""tomato""?",SELECT CAST(COUNT(CASE WHEN T1.OBJ_CLASS = 'broccoli' THEN T2.OBJ_SAMPLE_ID ELSE NULL END) AS REAL) / COUNT(CASE WHEN T1.OBJ_CLASS = 'tomato' THEN T2.OBJ_SAMPLE_ID ELSE NULL END) times FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID How many dog pets are raised by female students?,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog' Write down any five film names under the documentary category.,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Documentary' LIMIT 5 How many did Beulah make?,"SELECT count ( * ) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id where T2.customer_name = ""Beulah""" What Nickname has a Location of Southern River?,"SELECT nickname FROM table_name_82 WHERE location = ""southern river""" Who were the candidates in the districts that was first elected in 1966?,SELECT candidates FROM table_1341690_35 WHERE first_elected = 1966 What are the first name and last name of the players whose death record is empty?,"SELECT name_first , name_last FROM player WHERE death_year = '';" "Please list any three community areas with a population of more than 50,000.",SELECT community_area_name FROM Community_Area WHERE population > 50000 LIMIT 3 How many laps did the rider with a grid larger than 14 and a time of +33.150 have?,"SELECT laps FROM table_name_82 WHERE grid > 14 AND time = ""+33.150""" What pregame host was on espn and had taylor twellman color commentating?,"SELECT pregame_host FROM table_17516922_1 WHERE network = ""ESPN"" AND color_commentator = ""Taylor Twellman""" Provide the social security number of the patient with the highest systolic blood pressure.,SELECT T2.ssn FROM observations AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Systolic Blood Pressure' ORDER BY T1.VALUE DESC LIMIT 1 Show the church names for the weddings of all people older than 30.,SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30 What is the operating voltage of part number amql64dam22gg?,"SELECT voltage FROM table_27277284_27 WHERE order_part_number = ""AMQL64DAM22GG""" "What round was john sutro, tackle, drafter with a pick lower than 79?","SELECT SUM(round) FROM table_name_11 WHERE position = ""tackle"" AND player = ""john sutro"" AND pick < 79" The sales of how many territories in total do the employees in London take charge of?,SELECT COUNT(T2.TerritoryID) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.City = 'London' "Name the guest judge for first audition date being july 9, 2009","SELECT COUNT(guest_judge) FROM table_22897967_1 WHERE first_audition_date = ""July 9, 2009""" What height is the tallest for an outside hitter?,"SELECT MAX(height) FROM table_name_94 WHERE position = ""outside hitter""" Zack Jordan has the lowest pick and a round of less than 28?,"SELECT MIN(pick) FROM table_name_69 WHERE player = ""zack jordan"" AND round < 28" What is the grid of rider shinya nakano?,"SELECT grid FROM table_name_28 WHERE rider = ""shinya nakano""" List all of the conferences where a paper was published in 2008.,SELECT DISTINCT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year = 2008 What is the total number of wins for Cobden club when there are more than 2 draws?,"SELECT SUM(wins) FROM table_name_39 WHERE club = ""cobden"" AND draws > 2" list the local authorities and services provided by all stations.,"SELECT local_authority , services FROM station;" what is the total when the rank is 7 and gold is more than 0?,"SELECT AVG(total) FROM table_name_41 WHERE rank = ""7"" AND gold > 0" "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.","SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name" Show all video game types and the number of video games in each type.,"SELECT gtype , count(*) FROM Video_games GROUP BY gtype" "Which pick number had a round of less than 7, an overall of less than 127, and where the name was Robert Alford?","SELECT pick__number FROM table_name_82 WHERE round < 7 AND overall < 127 AND name = ""robert alford""" What is the average monthly circulating supply for Frozen in 2014.,"SELECT CAST(SUM(T2.circulating_supply) AS REAL) / 12 FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T1.name = 'Frozen' AND STRFTIME('%Y', T2.date) = '2014'" Show publishers that have more than one publication.,SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1 "Name of David Kimball, and an Overall smaller than 229 is what highest round?","SELECT MAX(round) FROM table_name_51 WHERE name = ""david kimball"" AND overall < 229" State the dates of games with record 1-2-3,"SELECT date FROM table_17360840_4 WHERE record = ""1-2-3""" "List the id, color scheme, and name for all the photos.","SELECT id , color , name FROM photos" "What are the occurance of word ""del"" in title ""Any anomalístic""?",SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'del' AND T3.title = 'Any anomalístic' Who is the opponent of the match on 3 December 1898 in venue h?,"SELECT opponent FROM table_name_36 WHERE venue = ""h"" AND date = ""3 december 1898""" "Which Entrant had the Bugatti T35B Chassis and the Driver, Heinrich-Joachim Von Morgen?","SELECT entrant FROM table_name_66 WHERE chassis = ""bugatti t35b"" AND driver = ""heinrich-joachim von morgen""" What is the party for District Georgia 9?,"SELECT party FROM table_1341598_11 WHERE district = ""Georgia 9""" Name the oldest employee who is working on night shift. How old is the employee?,"SELECT T1.FirstName, T1.LastName , STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', BirthDate) FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T3.ShiftId = 3 ORDER BY STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', BirthDate) DESC LIMIT 1" "What does the word ""frog""in English translate to in Italian?","SELECT italian FROM table_2077192_2 WHERE english = ""frog""" Who was Andrew and Georgies guest when Jamie and Johns guest was Jessica Ennis?,"SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = ""Jessica Ennis""" What is the customer id of the customer who has the most orders?,SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Which 3 players won the most player awards? List their full name and id.,"SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;" List the name of the phone model launched in year 2002 and with the highest RAM size.,SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1; "Find the product names that are colored 'white' but do not have unit of measurement ""Handful"".","SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = ""white"" AND t2.unit_of_measure != ""Handful""" Which last names are both used by customers and by staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff What is the average price of all products?,SELECT avg ( product_price ) FROM products Where was Assen held?,"SELECT round FROM table_10083598_1 WHERE circuit = ""Assen""" Please list the countries and years of film market estimations.,"SELECT T2.Country , T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID" what is the highest account balance?,SELECT MAX ( acc_bal ) FROM customer To which organziation does the winnipeg jets belong to?,"SELECT college_junior_club_team FROM table_2850912_12 WHERE nhl_team = ""Winnipeg Jets""" What is the name of the event that the oldest journalist reported on?,"SELECT T3.Name , t2.name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID where t3.age = ( select max ( age ) from journalist ) " What is Scotland's winner?,"SELECT winner FROM table_name_37 WHERE country = ""scotland""" What are the delivery dates of orders with 1 quantity? | do you mean the actual delivery dates ? | Yes,SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 "Which nation has the smallest population, and where is its capital located?","SELECT Name, Capital FROM country ORDER BY Population ASC LIMIT 1" What is the detailed product of the complaint filed by Diesel Galloway on 2014/7/3?,SELECT T2.`Sub-product` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Diesel' AND T1.last = 'Galloway' AND T2.`Date received` = '2014-07-03' "How many dishes are there on the menu ""Zentral Theater Terrace""?",SELECT SUM(CASE WHEN T3.name = 'Zentral Theater Terrace' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id "For each type, what is the average tonnage?","SELECT TYPE , avg(Tonnage) FROM ship GROUP BY TYPE" Which order of Logitech G600 MMO Gaming Mouse has the highest total cost?,SELECT T1.`Order ID` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Logitech G600 MMO Gaming Mouse' GROUP BY T1.`Order ID` ORDER BY SUM((T1.Sales / (1 - T1.Discount)) * T1.Quantity - T1.Profit) DESC LIMIT 1 "List down the title of episode S20-E1, S20-E2 & S20-E3.","SELECT title FROM Episode WHERE episode_id IN ('S20-E1', 'S20-E2', 'S20-E3');" How many lessons taken by customer with first name as Ryan and last name as Goodwin were completed?,"SELECT count ( * ) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"" AND T1.lesson_status_code = ""Completed""" "For the business which got the most number of violations, how many inspections did it have?",SELECT COUNT(T2.business_id) FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id GROUP BY T1.business_id ORDER BY COUNT(T1.business_id) DESC LIMIT 1 What is the shield animal of knight phil?,"SELECT shield_animal FROM table_name_57 WHERE knight = ""phil""" How many colleges in total?,SELECT count(*) FROM College what's the fuel delivery where power is hp (kw) @6500 rpm,"SELECT fuel_delivery FROM table_11167610_1 WHERE power = ""hp (kW) @6500 rpm""" "What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?","SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')" What are the years each of these movies were produced?,SELECT T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title Which brand of root beer was highly rated by customers?,SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 "Who was the presenter on Thursday of the series in which Emma Willis was the presenter on Wednesday, and Alice Levine Jamie East was the presenter on Sunday?","SELECT thursday FROM table_name_15 WHERE wednesday = ""emma willis"" AND sunday = ""alice levine jamie east""" What is the callsign where the ICAO is AAR?,"SELECT callsign FROM table_name_80 WHERE icao = ""aar""" What is the weight of the player from the vk primorac kotor club?,"SELECT weight FROM table_name_42 WHERE club = ""vk primorac kotor""" On what date was South Melbourne the away team?,"SELECT date FROM table_name_61 WHERE away_team = ""south melbourne""" How many Australian customers who have credit line under 220000?,SELECT COUNT(creditLimit) FROM customers WHERE creditLimit < 220000 AND country = 'Australia' Which Spoofed title is from February 1998?,"SELECT spoofed_title FROM table_name_47 WHERE date = ""february 1998""" "What is Score, when Location Attendance is ""Madison Square Garden Unknown"", and when High Rebounds is ""Sidney Green (10)""?","SELECT score FROM table_name_9 WHERE location_attendance = ""madison square garden unknown"" AND high_rebounds = ""sidney green (10)""" What was the date of the game number 22?,SELECT date FROM table_name_25 WHERE game = 22 How many are enrolled?,SELECT enrollment FROM university ORDER BY enrollment DESC LIMIT 1 "Was the user who created the list ""250 Favourite Films"" a trialist when he or she created the list?",SELECT T2.user_trialist FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' "Name the Israel Bowl for march 30, 2012","SELECT israel_bowl FROM table_name_65 WHERE date = ""march 30, 2012""" "Can you tell me the average Figures that has the Placings of 34, and the Total larger than 1247.51?",SELECT AVG(figures) FROM table_name_63 WHERE placings = 34 AND total > 1247.51 What is Timo Lehkonen's highest pick number?,"SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = ""Timo Lehkonen""" What Lanier has a Cardwell of 20%?,"SELECT lanier FROM table_name_60 WHERE cardwell = ""20%""" Which team has a Home Run of 27?,SELECT team FROM table_name_18 WHERE home_run = 27 What is the name of the most difficult course?,SELECT name FROM course WHERE diff = ( SELECT MAX(diff) FROM course ) Which Winning Driver has a Circuit of circuit zandvoort?,"SELECT winning_driver FROM table_name_43 WHERE circuit = ""circuit zandvoort""" How many sprint classifications are there where marco frapporti is the winner?,"SELECT COUNT(sprint_classification) FROM table_25655781_17 WHERE winner = ""Marco Frapporti""" What was the result of the election of incumbent john shelley?,"SELECT result FROM table_1341973_6 WHERE incumbent = ""John Shelley""" What are the names and grades for each high schooler?,"SELECT name , grade FROM Highschooler" how many mountain does Tanzania have? | Do you mean the number of mountains in the country Tanzania? | yes,SELECT count ( * ) FROM mountain where country = 'Tanzania' What is the minimum number of points given up to the Baltimore Colts,"SELECT MIN(opponents) FROM table_16028459_2 WHERE opponent = ""Baltimore Colts""" How many male people are on the table?,SELECT count ( * ) FROM people where sex = 'M' What are the clubs involved with 16 clubs remaining?,SELECT clubs_involved FROM table_name_63 WHERE clubs_remaining = 16 "What was the parent magazine of the magazine that was first published on december 16, 2004?","SELECT parent_magazine FROM table_name_88 WHERE first_published = ""december 16, 2004""" What is the name of the manufacturer that has the highest revenue?,SELECT name FROM manufacturers ORDER BY revenue DESC LIMIT 1 Who was the jockey with opening odds of 4-1?,"SELECT jockey FROM table_22517564_3 WHERE opening_odds = ""4-1""" Name the number of details for emlyn road,"SELECT COUNT(details) FROM table_211615_2 WHERE station = ""Emlyn Road""" "What is Score, when Away Team is ""Thame United""?","SELECT score FROM table_name_67 WHERE away_team = ""thame united""" "When was the Browns' game that over 36,796 attended?",SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796 In what season was Schädlich the top goalscorer?,"SELECT season FROM table_name_79 WHERE top_goalscorer = ""schädlich""" Please list out all annual indicator names of Sudan in 1961?,SELECT T1.IndicatorName FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.CountryName = 'Sudan' AND T1.Year = 1961 AND T2.Periodicity = 'Annual' Which low income country has a series code of DT.DOD.DECT.CD? Name the country code of it.,SELECT T1.CountryCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.IncomeGroup = 'Low income' AND T2.Seriescode = 'DT.DOD.DECT.CD' "What was the result of the game on November 7, 1999?","SELECT result FROM table_name_9 WHERE date = ""november 7, 1999""" "With a Losing BP of 8, what is the drawn?","SELECT drawn FROM table_name_34 WHERE losing_bp = ""8""" What is the name of the event that happened in the most recent year?,SELECT name FROM event ORDER BY YEAR DESC LIMIT 1 What is the background of the candidate daniel phillips?,"SELECT background FROM table_26263322_1 WHERE candidate = ""Daniel Phillips""" What is the finish associated with a 3-2 vote?,"SELECT finish FROM table_24122653_2 WHERE vote = ""3-2""" What is the name of the organization that has published the largest number of papers?,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count ( * ) DESC LIMIT 1 how many female dependents are there?,SELECT count(*) FROM dependent WHERE sex = 'F' Find the name and gender of the candidate who got the highest support rate.,"SELECT t1.name , t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1" What is the 2nd leg for the team #2 junior?,"SELECT 2 AS nd_leg FROM table_name_18 WHERE team__number2 = ""junior""" What to par has t3 as the place and england as the country?,"SELECT to_par FROM table_name_96 WHERE place = ""t3"" AND country = ""england""" What are the names of the all-female dorms?,SELECT dorm_name FROM dorm WHERE gender = 'F' What Winning Jockey ran in the Tampa Bay Downs Track on Winning Horse Barkley Sound?,"SELECT winning_jockey FROM table_name_86 WHERE track = ""tampa bay downs"" AND winning_horse = ""barkley sound""" How many nations in East Asia and the Pacific have completed their external debt reporting on time?,SELECT COUNT(CountryCode) FROM Country WHERE Region = 'East Asia & Pacific' AND ExternalDebtReportingStatus = 'Estimate' "What's the average of all years tournaments were hosted in Doha, Qatar?","SELECT AVG(year) FROM table_name_81 WHERE venue = ""doha, qatar""" What are the ids of all the employees who authorize document destruction?,SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed When 169.182 is the average speed miles per hour what is the chassis?,"SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = ""169.182""" What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham?,"SELECT ag FROM table_name_73 WHERE d3 & 4 = ""46"" AND transmitter = ""seaham""" Which departments get a commission percentage?,"SELECT * FROM employees WHERE commission_pct ! = ""null""" When did that customer become a customer?,"SELECT date_became_customer from customers where payment_method = ""Visa"" order by date_became_customer limit 1" What ids have more than one participant? | Which kind of ID do you mean? | Event ID and Service ID,"SELECT T1.event_id , T1.service_id FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING count ( * ) > 1" What was the decay for the sattelite that was 180 kg?,"SELECT decay FROM table_2150068_1 WHERE mass_kg_ = ""180""" What is the 2011 population if the headquarters is Chittorgarh?,"SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = ""Chittorgarh""" WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?,"SELECT percentage_of_global_total FROM table_11251601_2 WHERE country = ""India""" Please list the order comments of all the orders made by customers in the household segment.,SELECT T1.o_comment FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'HOUSEHOLD' "Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13?","SELECT comprehension_of_danish FROM table_name_48 WHERE average < 6.85 AND comprehension_of_norwegian = ""4.13""" What is the smallest amount of draws when the position is less than 7 and the against is 19?,SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19 "Within the year of 2001 to 2010, find the paper published rate of 2001.",SELECT CAST(SUM(CASE WHEN Year = 2001 THEN 1 ELSE 0 END) AS REAL) / COUNT(Id) FROM Paper WHERE Year >= 2001 AND Year < 2011 "find the customer name of the order that have status ""delivered""","SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Delivered""" Which conditions the patient has when receiving the IPV immunization?,SELECT DISTINCT T2.DESCRIPTION FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT INNER JOIN immunizations AS T3 ON T1.patient = T3.PATIENT WHERE T3.DESCRIPTION = 'IPV' What is the Score of the game on March 18?,SELECT score FROM table_name_5 WHERE march = 18 "What is the largest quantity of ""Manjimup Dried Apples"" for an order?",SELECT T2.Quantity FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T2.ProductID = T1.ProductID WHERE T1.ProductName = 'Manjimup Dried Apples' ORDER BY T2.Quantity DESC LIMIT 1 What was the average Position for which the amount Drawn was less than 0?,SELECT AVG(position) FROM table_name_88 WHERE drawn < 0 "Which character did the ""Outstanding Voice-Over Performance"" winner voice?",SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award = 'Outstanding Voice-Over Performance' AND T1.result = 'Winner'; What was the date of the game when the opponent was the Miami Dolphins?,"SELECT date FROM table_17782308_1 WHERE opponent = ""Miami Dolphins""" Which 2009 has a 2008 of wta premier mandatory tournaments?,"SELECT 2009 FROM table_name_64 WHERE 2008 = ""wta premier mandatory tournaments""" Who is in group c when wisconsin is in group d?,"SELECT group_c FROM table_15290638_1 WHERE group_d = ""Wisconsin""" Who was the opponent when he went more than 1 round with a record of 12-7?,"SELECT opponent FROM table_name_46 WHERE round > 1 AND record = ""12-7""" "Who was the director that had a film titled ""Floating Life""?","SELECT director FROM table_name_5 WHERE film_title_used_in_nomination = ""floating life""" "Which Record has a Location/Attendance of ford center, a Game larger than 30, and a Score of 87–79?","SELECT record FROM table_name_51 WHERE location_attendance = ""ford center"" AND game > 30 AND score = ""87–79""" can you list those in ascending order?,SELECT t2.price FROM book as t1 join publication as t2 on t1.book_id = t2.book_id order by t2.price asc What is the name of the episode written by karina csolty?,"SELECT title FROM table_27969432_2 WHERE written_by = ""Karina Csolty""" Show ids for all templates that are used by more than one document.,SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1 What are the the total number of territory in each region?,"SELECT COUNT(TerritoryDescription) FROM Territories WHERE RegionID IN (1, 2, 3, 4) GROUP BY RegionID" Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.,"SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT MIN(Price) FROM wine WHERE Winery = ""John Anthony"")" Provide the ID of professors who are teaching high-level or harder undergraduate course.,SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_400' What City is the Jal hotel in?,"SELECT city FROM table_name_77 WHERE name = ""jal hotel""" What's the resolution of the model with a PPD of 69?,SELECT resolution FROM table_27653752_1 WHERE pixels_per_degree__ppd_ = 69 What are the first names of those nine students?,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid NOT IN ( SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge' ) what's runner-up with season being season 13,"SELECT runner_up FROM table_13036251_1 WHERE season = ""season 13""" Find the number of shops in each location.,"SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION" In what game did Miami play Charlotte? ,"SELECT MAX(game) FROM table_17311783_8 WHERE team = ""Charlotte""" What are the names of all aircrafts that have won a match at least twice?,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*) >= 2 Calculate the percentage of manufactured parts by Manufacturer#3.,"SELECT CAST(SUM(IIF(p_mfgr = 'Manufacturer#3', 1, 0)) AS REAL) * 100 / COUNT(p_partkey) FROM part" List players' first name and last name who have weight greater than 220 or height shorter than 75.,"SELECT name_first , name_last FROM player WHERE weight > 220 OR height < 75" How many courses in total are listed?,SELECT count(*) FROM Courses What percentage of games are sports?,SELECT CAST(COUNT(CASE WHEN T1.genre_name = 'Sports' THEN T2.id ELSE NULL END) AS REAL) * 100 / COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id What is the average price of model 70 cars?,SELECT AVG(T2.price) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.model = 70 What is the age group of users who use phone brand of vivo?,SELECT T1.`group` FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' What is the Format of the release with Catalog number RTRADLP491?,"SELECT format FROM table_name_15 WHERE catalog = ""rtradlp491""" What are the types of video games and how many are in each type?,"SELECT gtype , count(*) FROM Video_games GROUP BY gtype" In which year did the most recent crime happen?,SELECT MAX(YEAR) FROM perpetrator "What was the highest number of attendance in a week before 8 and game on October 25, 1981?","SELECT MAX(attendance) FROM table_name_25 WHERE date = ""october 25, 1981"" AND week < 8" How many times did drinking games win the poll?,"SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = ""Drinking Games""" "Among the devices with an event occurring in 2016, how many of them are owned by a user in the M23-26 user group?","SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN events AS T2 ON T1.device_id = T2.device_id WHERE STRFTIME('%Y', T2.timestamp) = '2016' AND T1.`group` = 'M23-26'" "What ship size had a cargo value of $31,750 in 2006?","SELECT ship_size FROM table_name_57 WHERE 2006 = ""$31,750""" "For each director, how many reviews have they received?","SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director" Which Skip did marju velga lead?,"SELECT skip FROM table_name_22 WHERE lead = ""marju velga""" What are the staff names and genders for people with job title code Sales Person?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person""" How many cinema do we have?,SELECT count(*) FROM cinema what is the share count?,select distinct share_count from Transactions What is the average population of the township having land of 35.666sqmi and GEO ID over 3807364500?,SELECT AVG(pop__2010_) FROM table_name_36 WHERE land___sqmi__ = 35.666 AND geo_id > 3807364500 Count the number of different companies.,SELECT count(DISTINCT Company) FROM entrepreneur Find the status of Happy Valley.,"SELECT Status FROM roller_coaster WHERE Park = ""Happy Valley""" What is the number of the cars with horsepower more than 150?,SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150 What are the names of shops in ascending order of open year?,SELECT Shop_Name FROM shop ORDER BY Open_Year ASC Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.,"SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" Which city has an IATA of tsa?,"SELECT city FROM table_name_69 WHERE iata = ""tsa""" What are the denominations used by both schools founded before 1890 and schools founded after 1900?,SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900 WHAT IS THE PLACE WITH A SCORE OF 67-70=137?,SELECT place FROM table_name_61 WHERE score = 67 - 70 = 137 may i have the customer ids please,"SELECT customer_id FROM orders WHERE order_status = ""Packing""" Which actor voices Akela from The Jungle Book?,SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Akela' What is the id of the product that was ordered the most often?,SELECT product_id FROM order_items GROUP BY product_id ORDER BY COUNT(*) DESC LIMIT 1 Who directed the episode written by Lamont Ferrell?,"SELECT directed_by FROM table_11630008_5 WHERE written_by = ""Lamont Ferrell""" "Yes, can I narrow the table based on the date order was placed? | Did you mean you just want only date order placed? | No. Is it possible to only receive results from orders placed from 1975-01-01 to 1976-01-01?","SELECT T1.order_id ,T2.product_id,T1.date_order_placed FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed > = ""1975-01-01"" AND T1.date_order_placed < = ""1976-01-01""" "How many musicians performed in the song ""Flash""?","SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songId = T1.songId WHERE T3.Title = ""Flash""" What is the average number of electorates (2003) reserved for sc with a constituency number of 50?,"SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = ""sc"" AND constituency_number = ""50""" Who was the opponent of the Bye result?,"SELECT opponent FROM table_name_67 WHERE result = ""bye""" "If the parallel bars is 16.150, who is the gymnast?","SELECT gymnast FROM table_18662026_10 WHERE parallel_bars = ""16.150""" Who did the Giants play before week 7 in Tulane Stadium?,"SELECT opponent FROM table_name_25 WHERE week < 7 AND game_site = ""tulane stadium""" How many assists were there when the total points was 2?,"SELECT assists FROM table_name_36 WHERE total_points = ""2""" "Give the post name of ""Idaho"" state.",SELECT T FROM ( SELECT DISTINCT CASE WHEN state = 'Idaho' THEN state_post ELSE NULL END AS T FROM state_sector_details ) WHERE T IS NOT NULL What is the id of the reviewer whose name has substring “Mike”?,"SELECT rID FROM Reviewer WHERE name LIKE ""%Mike%""" what is the nation when the world rank is 6 and the birth date is 1971-07-31?,"SELECT nation FROM table_name_88 WHERE world_rank = ""6"" AND birth_date = ""1971-07-31""" "What is Winner, when College is ""Kentucky""?","SELECT winner FROM table_name_16 WHERE college = ""kentucky""" What is the aggregate number of Position that has a Bike No of 4?,SELECT COUNT(position) FROM table_name_19 WHERE bike_no = 4 What is stumped when matches is 14?,SELECT MIN(stumped) FROM table_24039597_26 WHERE matches = 14 How many bookings do we have?,SELECT count(*) FROM BOOKINGS "Among the products ordered in order no. 10248, which product has the biggest ratio of units on order to units in stock?",SELECT T1.ProductName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10248 ORDER BY T1.UnitsOnOrder / T1.UnitsInStock DESC LIMIT 1 What are the high points from a game of 30?,SELECT high_points FROM table_name_59 WHERE game = 30 When was the date successor seated when the vacator was charles e. chamberlain (r)?,"SELECT date_successor_seated FROM table_1134091_4 WHERE vacator = ""Charles E. Chamberlain (R)""" What is the largest ethnic group (2002) when cyrillic name is брестач?,"SELECT largest_ethnic_group__2002_ FROM table_2562572_52 WHERE cyrillic_name = ""Брестач""" What were the points for that had a game where there was 678 against?,"SELECT points_for FROM table_name_78 WHERE points_against = ""678""" What are the ids of all students who played video games and sports?,SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games What are the nationality of the players on the Fresno State school/club team?,"SELECT nationality FROM table_10015132_9 WHERE school_club_team = ""Fresno State""" how many customers are presented on the table,SELECT count ( * ) FROM customers what is the highest longitude for county mountrail and the water (sqmi) is less than 0.075?,"SELECT MAX(longitude) FROM table_name_38 WHERE county = ""mountrail"" AND water__sqmi_ < 0.075" How much time was spent at Honeygrow?,"SELECT sum ( Visits_Restaurant.Spent ) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Restaurant.ResName = ""Honeygrow""" "If team two is Lanús, what was the total number of points?","SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = ""Lanús""" "What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws?",SELECT MAX(scored) FROM table_name_99 WHERE position > 5 AND wins < 4 AND draws > 8 Mention the name of author for paper id 5 and state the keyword of this page.,"SELECT T1.Name, T3.Keyword FROM Author AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.AuthorId INNER JOIN Paper AS T3 ON T2.PaperId = T3.Id WHERE T2.PaperId = 5" List first name and last name of customers lived in city Lockmanfurt.,"SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = ""Lockmanfurt""" "How many Norwegian Americans have Norwegian Americans (2000) of 109,744?",SELECT COUNT(norwegian_americans__2009_) FROM table_name_72 WHERE norwegian_americans__2000_ = 109 OFFSET 744 Could you also add the minimum number of booked products?,"SELECT max ( booked_count ) , min ( booked_count ) FROM products_booked" Can you tell me the average Weight that has Height of 6-9?,"SELECT AVG(weight) FROM table_name_69 WHERE height = ""6-9""" What was the date with a resulted score of 130-100?,"SELECT date FROM table_name_16 WHERE score = ""130-100""" What was the attendance for the game against the Houston Oilers?,"SELECT attendance FROM table_name_9 WHERE opponent = ""houston oilers""" which attendance has a Loss of drese (0-2)?,"SELECT attendance FROM table_name_24 WHERE loss = ""drese (0-2)""" Find the name of physicians who are affiliated with Surgery or Psychiatry department.,SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry' What is Charleywood's ID?,"SELECT ID FROM station WHERE network_name = ""Chorleywood""" What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?,"SELECT 3 AS rd_liga_3rd FROM table_name_36 WHERE game_1 = ""0-1"" AND date = ""2008-09""" How many deciles have Years of 9–13?,"SELECT COUNT(decile) FROM table_name_68 WHERE years = ""9–13""" Whic teams scored l 97–107 (ot) ,"SELECT team FROM table_17323092_5 WHERE score = ""L 97–107 (OT)""" What percentage of customers who paid with a Discover Credit Card gave a 3-star rating?,SELECT CAST(COUNT(CASE WHEN T1.StarRating = 3 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.CustomerID) FROM rootbeerreview AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.CreditCardType = 'Discover' What about the names and main services for the train stations with the least 3 number of passengers?,"SELECT name, main_services FROM station ORDER BY total_passengers asc LIMIT 3" Find the percentage of products that were shipped from Burbank in 2018?,SELECT CAST(SUM(CASE WHEN T3.`City Name` = 'Burbank' THEN T2.`Order Quantity` ELSE 0 END) AS REAL) * 100 / SUM(T2.`Order Quantity`) FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` AS T3 ON T3.StoreID = T2._StoreID WHERE T2.OrderDate LIKE '%/%/18' What is the average winning rate of the Montreal Canadiens in the Stanley Cup finals?,SELECT SUM(T2.W / T2.G) / SUM(T2.G + T2.W) FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens' "Which paper's title contains the word ""Database""?","SELECT title FROM papers WHERE title LIKE ""%Database%""" Show member names with a registered branch?,SELECT name FROM member WHERE member_id IN ( SELECT member_id FROM membership_register_branch ) Who constructed Joe James car when his rank was more than 10?,"SELECT constructor FROM table_name_12 WHERE rank > 10 AND driver = ""joe james""" what are all the open 1st viii with u15 4th iv being gt,"SELECT open_1st_viii FROM table_11318462_5 WHERE u15_4th_iv = ""GT""" What is the name of teh studio that created the most films?,SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1 "Give the names, details, and data types of characteristics that are not found in any product.","SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id" What individual(s) had Pole Position for Tyre F?,"SELECT pole_position FROM table_name_67 WHERE tyre = ""f""" Count the number of trips that did not end in San Francisco city.,"SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city != ""San Francisco""" "WHAT IS THE NUMBER OF VIEWERS WITH EPISODE LARGER THAN 10, RATING SMALLER THAN 2?",SELECT MAX(viewers__millions_) FROM table_name_78 WHERE episode_number > 10 AND rating < 2 What is the sum of the drawn values for teams with 2 losses?,SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2 Count the number of items store 1 has in stock.,SELECT count(*) FROM inventory WHERE store_id = 1 what is the highest rank for director john woo?,"SELECT MAX(rank) FROM table_name_47 WHERE director = ""john woo""" "For the state which has the 113 2-year public schools, tell the number of graduated Asian students who seeks another type of degree or certificate at a 2-year institution in 2013.",SELECT COUNT(T2.grad_cohort) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.level = '2-year' AND T2.control = 'Public' AND T2.gender = 'B' AND T2.race = 'A' AND T2.cohort = '2y all' AND T1.schools_count = 113 What is the average number of characters in all the works of Shakespeare?,SELECT SUM(DISTINCT T4.id) / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id Tell me the Gtype of the GameID 1 ?,SELECT gtype FROM Video_games where gameid = 1 "How many people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot?","SELECT MIN(enrollment) FROM table_name_73 WHERE ihsaa_class = ""a"" AND mascot = ""trojans""" What is the att-cmp-int that has 12 for the gp-gs and 174.3 as the avg/g?,"SELECT att_cmp_int FROM table_name_16 WHERE gp_gs = ""12"" AND avg_g = 174.3" What is the D 42 when the D 50 is d 31?,"SELECT d_42 FROM table_name_17 WHERE d_50 = ""d 31""" Indicate the full name of all customers whose last name begins with the letter K.,"SELECT first_name, last_name FROM customer WHERE last_name LIKE 'K%'" What is the highest uni# of the person with the first name Todd?,"SELECT MAX(uni_number) FROM table_name_32 WHERE first = ""todd""" What is the full name of the employee who has the most customers?,"SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" "Which championship was won on July 7, 2010?","SELECT championship FROM table_name_92 WHERE date_won = ""july 7, 2010""" "Tell me the last name, age and first name for the student id 1003 and 1004...","SELECT LName, age, FName FROM STUDENT WHERE stuid = 1003 or stuid = 1004" What is the score 1 with a h ground?,"SELECT score1 FROM table_name_85 WHERE ground = ""h""" What are the product names?,SELECT product_name FROM products where product_type_code = ( SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg ( product_price ) < ( SELECT avg ( product_price ) FROM products ) ) what is the highest credit score?,SELECT MAX ( credit_score ) FROM customer Name the D 48 when it has a D 44 of d 33,"SELECT d_48 FROM table_name_29 WHERE d_44 = ""d 33""" Who were the opponents that had an attendance of exactly 16115?,SELECT opponent FROM table_24852001_2 WHERE attendance = 16115 How many extra points did right halfback Roswell Wendell have?,"SELECT extra_points FROM table_name_12 WHERE position = ""right halfback"" AND player = ""roswell wendell""" "Show different tourist attractions' names, ids, and the corresponding number of visits.","SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID" What is the home team for Windy Hill?,"SELECT home_team FROM table_name_87 WHERE venue = ""windy hill""" "In Argentina, how many universities are there?",SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Argentina' How many against have a status of first test?,"SELECT COUNT(against) FROM table_name_20 WHERE status = ""first test""" What is the tail number of a Compass Airline's plane that flew the most number of flights from LAX to ABQ?,SELECT T2.OP_CARRIER_AIRLINE_ID FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Compass Airlines: CP' AND T2.ORIGIN = 'LAX' AND T2.DEST = 'ABQ' GROUP BY T2.OP_CARRIER_AIRLINE_ID ORDER BY COUNT(T2.OP_CARRIER_AIRLINE_ID) DESC LIMIT 1 Find the payment method code used by more than 3 parties.,SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3 Which product has the highest profit on net? State the product name.,SELECT T1.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID ORDER BY T2.LastReceiptCost - T2.StandardPrice DESC LIMIT 1 What is the identifying number for a description of Stanier (Period III) full brake?,"SELECT number_ & _name FROM table_name_57 WHERE description = ""stanier (period iii) full brake""" what is the language/rebroadcast for cbc radio one?,"SELECT language_rebroadcast FROM table_name_30 WHERE branding = ""cbc radio one""" What are the average ages for male and female students?,"SELECT avg(age) , sex FROM Student GROUP BY sex" Beata syta is the minimum year for womens singles.,"SELECT MIN(year) FROM table_13857501_1 WHERE womens_singles = ""Beata Syta""" On which week was the beatles the original artist and the order # smaller than 10?,"SELECT week__number FROM table_name_34 WHERE original_artist = ""the beatles"" AND order__number < 10" What days were the rounds of 66-67-70-67 recorded?,"SELECT date FROM table_1506950_4 WHERE rounds = ""66-67-70-67""" "List the distinct names of the instructors, ordered by name.",SELECT DISTINCT name FROM instructor ORDER BY name Total laps for Shinya Nakano at smaller than 10 grids.,"SELECT COUNT(laps) FROM table_name_18 WHERE rider = ""shinya nakano"" AND grid < 10" what is the address content of colorando?,"SELECT address_content from Addresses where state_province_county = ""Colorado""" How many restaurant is the Sandwich type restaurant?,SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' What Away Competition had a Result of lost 2-4?,"SELECT competition FROM table_name_41 WHERE venue = ""away"" AND result = ""lost 2-4""" Display the number of 9-star votes the episode Sideshow received.,SELECT T2.votes FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 9 AND T1.title = 'Sideshow' List the names and decor of rooms that have a king bed. Sort the list by their price.,"SELECT roomName , decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice;" "IN which year did city ""Taizhou ( Zhejiang )"" serve as a host city?","SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = ""Taizhou ( Zhejiang )""" show student ids who are female and play football,"SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" Who were the sideline reporter(s) in 2011?,SELECT sideline_reporter_s_ FROM table_name_72 WHERE year = 2011 "Describe the employees' full name, positions, located city and office phone number within Colorado state.","SELECT T1.firstname, T1.lastname, T3.positiontitle, T2.locationcity, T2.officephone FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T2.state = 'CO'" Nigel Mansell was the driver in what Entrant?,"SELECT entrant FROM table_name_22 WHERE driver = ""nigel mansell""" what is the location when the year is less than 1998 and the international captain is david graham?,"SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = ""david graham""" What are the dates when customers with ids between 10 and 20 became customers?,SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 HOW MANY DISTINCT OFFICIAL LANGUAGES ARE THERE AMONG COUNTRIES OF PLAYERS WHOSE POSITIONS ARE DEFENDERS,"SELECT count ( DISTINCT T1.Official_native_language ) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" Which WNBA team that won at least 2 championships was established most recently?,"SELECT MAX(established) FROM table_name_54 WHERE league = ""wnba"" AND championships > 2" List the ISBN of the books that cost 7.5 dollars.,SELECT T1.isbn13 FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.price = 7.5 Who has a constituency of 84?,"SELECT name FROM table_name_62 WHERE constituency_number = ""84""" Show each county along with the number of schools and total enrollment in each county.,"SELECT county , count(*) , sum(enrollment) FROM school GROUP BY county" Show all church names that have hosted least two weddings.,SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING count(*) >= 2 What is the reason for change when maryland 6th is the district? ,"SELECT reason_for_change FROM table_225100_4 WHERE district = ""Maryland 6th""" Hi there! Can you show me a list of all body builder names and their associated birth dates?,"SELECT T2.name, T2.birth_date FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id" How many incumbents were elected in the 1926 election?,SELECT COUNT(incumbent) FROM table_1342256_11 WHERE first_elected = 1926 How many different statuses are used on those bookings?,SELECT count ( distinct status_code ) FROM BOOKINGS Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?,"SELECT sub_parish__sogn_ FROM table_name_30 WHERE parish__prestegjeld_ = ""hafslo parish"" AND church_name = ""hafslo kyrkje""" Find the first and last name of students whose age is younger than the average age.,"SELECT fname , lname FROM student WHERE age < (SELECT avg(age) FROM student)" Which party has the highest number of legislators who are Baptist?,SELECT T2.party FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.religion_bio = 'Baptist' GROUP BY T2.party ORDER BY COUNT(T2.party) DESC LIMIT 1 Describe the specific description and case locations under IUCR 142.,"SELECT T1.secondary_description, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.iucr_no = 142" "Tell me the title for japan august 23, 2012","SELECT title FROM table_name_57 WHERE japan = ""august 23, 2012""" Show me the name of all department stores? | Do you mean the store name ? | yes,SELECT store_name from Department_Stores What was the prize pool for the event number 27H? ,"SELECT prize AS Pool FROM table_22050544_4 WHERE event__number = ""27H""" How many app users belong to the category of Securities?,SELECT COUNT(T1.app_id) FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T2.label_id = T1.label_id WHERE T2.category = 'Securities' Name the least overall for tony baker,"SELECT MIN(overall) FROM table_name_15 WHERE name = ""tony baker""" "When Kerry is at 36.7%, what is the total number of others?","SELECT COUNT(others_number) FROM table_name_88 WHERE kerry_percentage = ""36.7%""" What percentage of authors of the paper about Charged particle multiplicity are affiliated with INFN?,SELECT CAST((SUM(CASE WHEN T1.Affiliation LIKE '%INFN%' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T2.Id) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title LIKE '%Charged particle multiplicity%' What is the publisher with most number of books?,SELECT publisher FROM book_club GROUP BY publisher ORDER BY count ( * ) DESC LIMIT 1 Who were the runners-up for the FC Viktoria Plzeň club?,"SELECT runners_up FROM table_name_7 WHERE club = ""fc viktoria plzeň""" "Where is the school that needs a ""Viewscreen LCD from Texas Instruments, TI-84 Plus""? Provide the latitude and longitude of that school.","SELECT T2.school_city, T2.school_latitude, T2.school_longitude FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.item_name = 'Viewscreen LCD FROM Texas Instruments, TI-84 Plus'" Date of 24 september 2002 is what group position?,"SELECT group_position FROM table_name_55 WHERE date = ""24 september 2002""" Which months have more than 2 happy hours?,SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count(*) > 2 What is the total number of gold medals when the team got 2 bronze and more than 5 silver medals?,SELECT COUNT(gold) FROM table_name_93 WHERE bronze = 2 AND silver > 5 "What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?","SELECT construction_completed FROM table_name_49 WHERE listed = ""09/08/1983"" AND name = ""cecil lindsey""" Calculate number of male students in Emory University in 2011.,SELECT CAST((T1.num_students - (T1.num_students * T1.pct_female_students)) AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Emory University' AND T1.year = 2011 List the top 5 genres by number of tracks. List genres name and total tracks.,"SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;" In which Age Category is Marco Manenti?,"SELECT age_category FROM table_name_44 WHERE name = ""marco manenti""" What years are listed for the Tahunanui school with an authority of state?,"SELECT years FROM table_name_31 WHERE authority = ""state"" AND name = ""tahunanui school""" Which High rebounds has a High points of douglas (23)?,"SELECT high_rebounds FROM table_name_23 WHERE high_points = ""douglas (23)""" "How tall is the player from farmington, ky?","SELECT height FROM table_26916717_1 WHERE home_town = ""Farmington, KY""" Where is the player Raymond Floyd?,"SELECT place FROM table_name_47 WHERE player = ""raymond floyd""" "find the id, name and age for visitors who visited some museums more than once.","SELECT t1.id, t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING COUNT(*) > 1" can you show me a list of account type?,SELECT distinct acc_type FROM customer What positions are in the Chicago bulls?,"SELECT position FROM table_name_27 WHERE team = ""chicago bulls""" What Sweet Sixteen team is in the Colonial conference?,"SELECT sweet_sixteen FROM table_name_95 WHERE conference = ""colonial""" Kindly let me know the store emails of the above stores,SELECT store_email FROM department_stores GROUP BY dept_store_chain_id ORDER BY count ( * ) DESC LIMIT 2 What is the lowest number pick from san diego chargers?,"SELECT MIN(pick) FROM table_name_3 WHERE team = ""san diego chargers""" What is the to par number of the person who won in 2003?,"SELECT to_par FROM table_name_40 WHERE year_s__won = ""2003""" What was the kickoff time on week 1?,SELECT kickoff_time FROM table_name_53 WHERE week = 1 Find the order id and customer id associated with the oldest order.,"SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1" Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.,SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000 Where is the coimbatore affilation that was established in 1982?,"SELECT affiliation FROM table_name_89 WHERE estd = ""1982"" AND location = ""coimbatore""" What are the names of all instructors with a higher salary than any of the instructors in the Biology department?,SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology') Which date did Chris Duhon (13) receive high assists?,"SELECT date FROM table_17060277_6 WHERE high_assists = ""Chris Duhon (13)""" What are the names of all songs that have a lower rating than some song of blues genre?,"SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = ""blues"")" "How many female crews are in the movie ""Mr. Smith Goes to Washington""?",SELECT COUNT(T3.gender) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T2.gender_id = T3.gender_id WHERE T1.title = 'Mr. Smith Goes to Washington' AND T3.gender = 'Female' What date was the show's weekly ranking 12?,SELECT date FROM table_27319183_7 WHERE weekly_rank = 12 Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?,"SELECT second_member FROM table_name_15 WHERE first_party = ""tory"" AND year < 1804 AND first_member = ""henry isherwood""" What are the songs in volumes associated with the artist aged 32 or older?,SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 where did glenn greenough come from,"SELECT college_junior_club_team FROM table_2850912_8 WHERE player = ""Glenn Greenough""" What is the name of the aircraft with distance 7120?,SELECT name FROM Aircraft where distance = 7120 "What is the number of wins when the against is larger than 1155, for Warrnambool, with more than 0 draws?","SELECT AVG(wins) FROM table_name_20 WHERE against > 1155 AND club = ""warrnambool"" AND draws > 0" What are the ids of all songs that are available on mp4 or have a higher resolution than 720?,"SELECT f_id FROM files WHERE formats = ""mp4"" UNION SELECT f_id FROM song WHERE resolution > 720" What is the goal average 1 for teams that lost 9 games?,SELECT goal_average_1 FROM table_17357929_1 WHERE lost = 9 On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8?,SELECT dvd_release_date FROM table_name_74 WHERE season < 8 AND episodes < 13 "hi, can you tell me the first and last name for the player with player ID: gomezle01?","SELECT name_first , name_last FROM player where player_id = ""gomezle01""" Which Australian has British of ɒs?,"SELECT australian FROM table_name_61 WHERE british = ""ɒs""" Who was the manufacter of the car with a time/retired of +0.122?,"SELECT manufacturer FROM table_name_79 WHERE time_retired = ""+0.122""" Name the most number in season ,SELECT MIN(no_in_season) FROM table_26168687_5 Please list the first and last names of each customer on this list.,"SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10" What is the channel code and contact number of the customer contact channel that was active for the longest time?,"SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)" what season was written by jonathan collier?,"SELECT MAX(no_in_season) FROM table_25716399_1 WHERE written_by = ""Jonathan Collier""" How many golden tickets for the georgia international convention center?,"SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = ""georgia international convention center""" How many nationalities/sponsors for mirror/type schmidt uv?,"SELECT COUNT(nationality_sponsors) FROM table_23851574_2 WHERE mirror_type = ""Schmidt UV""" Name the main location for public and masters university,"SELECT main_location FROM table_2076533_1 WHERE control = ""Public"" AND type = ""Masters university""" What country has a time of 6:49.28?,"SELECT country FROM table_name_38 WHERE time = ""6:49.28""" what tournament had sam querrey as the opponent?,"SELECT tournament FROM table_name_51 WHERE opponent = ""sam querrey""" Show me the number of tweets for each of these users.,"SELECT T1.name, count ( * ) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1" WHICH Usual translation is on jun 21?,"SELECT usual_translation FROM table_name_98 WHERE date_³ = ""jun 21""" What are the number of rooms for block code 1?,SELECT count ( * ) FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode where T1.blockcode = 1 What was the grid of Buddy Rice?,"SELECT grid FROM table_name_91 WHERE driver = ""buddy rice""" What is the sex of the students in this major?,select sex from student where major = ( SELECT major FROM Student GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 ) Which college had an overall smaller than 315 in round 17?,SELECT college FROM table_name_41 WHERE overall < 315 AND round = 17 List all headquarters and the number of companies in each headquarter.,"SELECT headquarters , count(*) FROM company GROUP BY headquarters" What are the highest mbit/s when the dbm is +17.5?,"SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE power___dbm__ = ""+17.5""" How many of those are there?,"SELECT TYPE, count ( * ) FROM mill GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1" what is the position for pick # 103?,SELECT position FROM table_2679061_6 WHERE pick__number = 103 Who wrote the episode that was directed by Milan Cheylov?,"SELECT written_by FROM table_29219286_1 WHERE directed_by = ""Milan Cheylov""" "When the assets are 2,550, what is the Market Value?","SELECT market_value__billion_$_ FROM table_1682026_2 WHERE assets__billion_$_ = ""2,550""" "What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?","SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = ""macedonia"" AND late_1943 < 10 OFFSET 000" How many devices are of the brand vivo?,SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE phone_brand = 'vivo' Show all the publishers?,SELECT Publisher FROM publication who got married in 2016?,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id OR T1.male_id = t2.people_id WHERE T1.year = 2016 Silvio Santos is the presenter in what country?,"SELECT country_region FROM table_20780285_1 WHERE presenters = ""Silvio Santos""" "Which Top 10 is the lowest one that has Winnings of $405,300, and an Avg Start smaller than 30?","SELECT MIN(top_10) FROM table_name_86 WHERE winnings = ""$405,300"" AND avg_start < 30" How many schools did Derrick Green attend?,"SELECT COUNT(school) FROM table_11677691_11 WHERE player = ""Derrick Green""" Which First public release has a Name of rational software modeler?,"SELECT first_public_release FROM table_name_25 WHERE name = ""rational software modeler""" On what date was the Canarian Workers Socialist Union registered?,"SELECT date_of_registration FROM table_name_60 WHERE name_in_english = ""canarian workers socialist union""" How many products have prices of at least 180?,SELECT count(*) FROM products WHERE price >= 180 Give me the temperature of Shanghai in January.,"SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = ""Shanghai""" What is the release date when the location is Europe?,"SELECT release_date FROM table_name_37 WHERE location = ""europe""" Show average sales of the journals that have an editor whose work type is photo,SELECT avg ( T1.sales ) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo' What are the lifespans of representatives in descending order of vote percent?,SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC What is the name of the circuit in which the race name is ii danish grand prix?,"SELECT circuit FROM table_1140105_6 WHERE race_name = ""II Danish Grand Prix""" "What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?","SELECT term_start FROM table_name_53 WHERE born_died = ""prime ministers 1939 - 1943""" What is the Writer with a Date that is january 1975?,"SELECT writer FROM table_name_63 WHERE date = ""january 1975""" Which team had a season 1954-55?,"SELECT teams FROM table_name_80 WHERE season = ""1954-55""" What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?,select distinct year from cars_data where weight between 3000 and 4000; How many points did Newport RFC get?,"SELECT points FROM table_name_58 WHERE club = ""newport rfc""" Find the number of routes from the United States to Canada.,SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') What is the relation between object sample no.8 and object sample no.4 in image no.1?,SELECT T1.PRED_CLASS FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.IMG_ID = 1 AND T2.OBJ1_SAMPLE_ID = 8 AND T2.OBJ2_SAMPLE_ID = 4 What was the decision of the Red Wings game when they had a record of 45–18–6?,"SELECT decision FROM table_name_53 WHERE record = ""45–18–6""" "What are the carriers of devices whose software platforms are not ""Android""?",SELECT Carrier FROM device WHERE Software_Platform != 'Android' Show all distinct building descriptions.,SELECT DISTINCT building_description FROM Apartment_Buildings Does the model e5504 have a turbo boost?,"SELECT turbo_boost FROM table_269920_17 WHERE model = ""E5504""" How many cars have a larger accelerate than the car with the largest horsepower?,SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 ); How many states that have some college students playing in the mid position?,SELECT COUNT ( * ) FROM ( SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' ) Who played the home team during the game on January 6?,"SELECT home FROM table_name_56 WHERE date = ""january 6""" Please list the names of all the territories whose sales are taken in charge by Nancy Davolio.,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.FirstName = 'Nancy' AND T1.LastName = 'Davolio' Oh only two of them. Thank you :) Then could you please let me know the name of the instructor whose salary is the highest in the table?,SELECT name FROM instructor order by salary desc limit 1 Indicate the title of the six books with the greatest potential value as collectibles.,SELECT title FROM book ORDER BY publication_date ASC LIMIT 6 What is the product's name in the highest quantity in a single purchase?,SELECT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'East' ORDER BY T1.Quantity DESC LIMIT 1 What is the level name of the cheapest catalog (in USD)?,SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 "On what date was the first match for the competition that ended its last match on December 16, 2007?","SELECT first_match FROM table_name_81 WHERE last_match = ""december 16, 2007""" ids of reviewers who did not give 4 star?,SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 Find the names of all reviewers who have ratings with a NULL value for the date.,"SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = ""null""" How many nationalities are listed for the player Glen Irwin?,"SELECT COUNT(nationality) FROM table_1213511_3 WHERE player = ""Glen Irwin""" What are the prices of the 3 lowest publications?,SELECT Price FROM publication ORDER BY Price ASC LIMIT 3 Calculate the percentage of ordered office supplies products in the central and the south superstore.,SELECT CAST(SUM(CASE WHEN T3.Category = 'Office Supplies' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Category) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` Find the first names of the teachers that teach first grade.,SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?,"SELECT college_junior_club_team__league_ FROM table_name_87 WHERE round > 3 AND player = ""julien cayer""" "When compared to the total number of breweries in the US producing American Blonde Ale, how many in the state of Wisconsin produces American Blonde Ale? Indicate your answer in percentage (%).","SELECT CAST(SUM(IIF(T2.state = 'WI', 1, 0)) AS REAL) * 100 / COUNT(T1.id) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T1.style = 'American Blonde Ale'" Which cities are host cities?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T4 ON T1.city_id = T4.host_city "What year was the race in Vienna, Austria?","SELECT MIN(year) FROM table_name_72 WHERE venue = ""vienna, austria""" Which Lost has Points of 28 and a Drawn smaller than 8?,SELECT AVG(lost) FROM table_name_47 WHERE points = 28 AND drawn < 8 "If the season number is 2.08, who was the episode written by?","SELECT written_by FROM table_24639086_3 WHERE season__number = ""2.08""" Find the state which has the most number of customers.,SELECT state FROM bank GROUP BY state ORDER BY sum(no_of_customers) DESC LIMIT 1 How many students are enlisted to the air force?,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force' "Which lowest year has a Position of rb, and a College of louisiana state?","SELECT MIN(year) FROM table_name_27 WHERE position = ""rb"" AND college = ""louisiana state""" What is the operator of the ensemble from Yorkshire?,"SELECT operator FROM table_name_99 WHERE region = ""yorkshire""" Which countries have the most number of airlines whose active status is Y?,SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count ( * ) DESC LIMIT 1 What is the total number of airlines?,SELECT count(*) FROM AIRLINES How many different cities do have some airport in the country of Greenland?,SELECT count(DISTINCT city) FROM airports WHERE country = 'Greenland' "For the method which got the tokenized name as 'interp parser expr', what is the processed time for its solution?",SELECT T1.ProcessedTime FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'interp parser expr' What is the average rating of all the podcasts with reviews created in 2019?,SELECT AVG(rating) FROM reviews WHERE created_at BETWEEN '2019-01-01T00:00:00-07:00' AND '2019-12-31T23:59:59-07:00' How old was the oldest employee at the time he or she was hired?,"SELECT MAX(TIMESTAMPDIFF(YEAR, BirthDate, HireDate)) FROM Employees" How many students have never been absent in school?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 0 What are each physician's employee id and department id primarily affiliated.,"SELECT physician , department FROM affiliated_with WHERE primaryaffiliation = 1" How many stadiums does each country have?,"SELECT country , count(*) FROM stadium GROUP BY country" Which county had a 3.6% unemployment rate?,"SELECT county FROM table_22815568_2 WHERE unemployment_rate = ""3.6%""" "Hello there! Can you tell me, which media type is the least common associated with all tracks?",SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT ( * ) ASC LIMIT 1 Show me id of all departments.,SELECT distinct department_id FROM staff_department_assignments "What is the most requested item under the resource type ""Supplies"" for projects whose main subject area is Literacy & Language?",SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_area = 'Literacy & Language' AND T1.project_resource_type = 'Supplies' ORDER BY T1.item_quantity DESC LIMIT 1 How many pick numbers did Michael Giffin have?,"SELECT COUNT(pick__number) FROM table_16575609_3 WHERE player = ""Michael Giffin""" Who directed an episode that had 2.81 million U.S. viewers?,"SELECT directed_by FROM table_11111116_7 WHERE us_viewers__million_ = ""2.81""" "what is the attendance when the date is october 22, 2000?","SELECT attendance FROM table_name_12 WHERE date = ""october 22, 2000""" How many more people speak English than speak Scottish in United Kingdom?,SELECT T3.Population * (T2.Percentage - T1.Percentage) FROM ethnicGroup AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Country = T2.Country INNER JOIN country AS T3 ON T1.Country = T3.Code WHERE T1.Name = 'Scottish' AND T2.Name = 'English' AND T3.Name = 'United Kingdom' WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)?,"SELECT COUNT(seats_in_hamburgische_bürgerschaft) FROM table_name_18 WHERE abbr = ""bündnis 90 / die grünen (gal)""" "If the qatari female is 918, what is the total number of females?",SELECT total_female FROM table_26214389_3 WHERE qatari_female = 918 List the user ids and ages who gave the rate 2 to the movie No. 2409051.,"SELECT T1.userid, T1.age FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid WHERE T2.movieid = '2409051' AND T2.rating = 2" What distinct accelerator names are compatible with Firefox.,"SELECT DISTINCT T1.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 T3.name = ""Firefox""" Please list the names of all the counties with at least one residential area that implements daylight saving.,SELECT DISTINCT T2.county FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T1.daylight_savings = 'Yes' What Chassis does Reg Parnell drive?,"SELECT chassis FROM table_name_51 WHERE driver = ""reg parnell""" Who was the lead with Pete Fenson as skip and Joe Polo as second in season 2005–06?,"SELECT lead FROM table_name_61 WHERE skip = ""pete fenson"" AND second = ""joe polo"" AND season = ""2005–06""" which nationality of host id no-3?,SELECT nationality from host where host_id = 3 How many games played for teams with 277 points?,"SELECT played FROM table_15467476_3 WHERE points_for = ""277""" What is the Score on 11 march 2001?,"SELECT score FROM table_name_76 WHERE date = ""11 march 2001""" Which date has the tier of Itf $10k?,"SELECT date FROM table_name_66 WHERE tier = ""itf $10k""" How many league cups for m patrick maria with 0 total?,"SELECT SUM(league) FROM table_name_96 WHERE player = ""m patrick maria"" AND total < 0" Who had the most assists and how many did they have on April 8?,"SELECT high_assists FROM table_27722408_11 WHERE date = ""April 8""" How many followers does each user have?,SELECT count(*) FROM follows Please show each industry and the corresponding number of companies in that industry.,"SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry" Return the gender and name of artist who produced the song with the lowest resolution.,"SELECT T1.gender, T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1" What is the record company used by the greatest number of orchestras?,SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 What is the number for rank when gold is less than 0?,SELECT SUM(rank) FROM table_name_91 WHERE gold < 0 When did Equatorial Guinea become independent?,SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Equatorial Guinea' What are the first and last names of the employee with the earliest date of birth?,"SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1" "Show the average, minimum, and maximum age for different majors.","SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major" "Which Relation has a Year larger than 2000, and a Length of 8 x 20 mins?","SELECT relation FROM table_name_12 WHERE year > 2000 AND length = ""8 x 20 mins""" And what about passed?,SELECT count ( * ) FROM Student_Tests_Taken where test_result = 'Pass' How many female students live in Smith Hall?,SELECT 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 T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' Which country has had the highest proportion of CO2 emissions from transport?,SELECT CountryName FROM Indicators WHERE IndicatorName LIKE 'CO2 emissions FROM transport%' ORDER BY Value DESC LIMIT 1 "What is the name of the department that offers a course that has a description including the word ""Statistics""?",SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' What is the lowest attendance with week 14?,SELECT MIN(attendance) FROM table_name_30 WHERE week = 14 "What is the name in the UK, with a release date of December 1966?","SELECT name FROM table_name_24 WHERE location = ""uk"" AND release_date = ""december 1966""" "Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.",SELECT BusinessEntityID FROM SalesPerson WHERE SalesYTD > SalesLastYear + SalesLastyear * 0.6 AND Bonus > 3000 Which state or territory had a channel number of exactly 7?,SELECT state_or_territory FROM table_27871460_2 WHERE channel_number = 7 "What is the sum of state champions with more tan 9 MRC Championships, more than 4 co-champions, and a record of 192-189-3?","SELECT SUM(state_champions) FROM table_name_72 WHERE mrc_championships > 9 AND records = ""192-189-3"" AND co_champions > 4" Which coding's variant id is abd'1a 3?,"SELECT coding FROM table_name_48 WHERE variant_id = ""abd'1a 3""" "If the total points is 5, what is the 2005-2006 points total number?",SELECT COUNT(2005 AS _06_points) FROM table_23215145_2 WHERE total_points = 5 What MLS team drafted samuel appiah?,"SELECT mls_team FROM table_25518547_3 WHERE player = ""Samuel Appiah""" How many podcast reviews with a rating of 3 were created during the first quarter of 2015?,SELECT COUNT(podcast_id) FROM reviews WHERE rating = 3 AND created_at BETWEEN '2015-01-01T00:00:00-07:00' AND '2015-03-31T23:59:59-07:00' "Find the average age of students who live in the city with code ""NYC"" and have secretary votes in the spring election cycle.","SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" "What are the names of the products that have the characteristic name ""fast"" and the color description ""red""?","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""fast""" "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?","SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1" Awesome! Can you show me how many times New policy application has been used?,"SELECT t2.service_name, count ( * ) FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING Service_name = ""New policy application""" What is the to par score of the player that had a score of 67-68=135?,SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135 List the included categories in the event ID of 155.,SELECT DISTINCT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T2.label_id = T1.label_id INNER JOIN app_events AS T3 ON T3.app_id = T2.app_id WHERE T3.event_id = 155 How many tries against did Pentyrch RFC have?,"SELECT tries_against FROM table_name_92 WHERE club = ""pentyrch rfc""" What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?,"SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = ""garry rogers motorsport"" AND grid < 23" how many participants on the table,SELECT COUNT ( * ) FROM Participants What is the Retail name with an Available interface with pci express 2.0?,"SELECT retail_name FROM table_name_24 WHERE available_interface = ""pci express 2.0""" for how many federal states is the city of lahnstein listed in the ranking?,"SELECT COUNT(federal_state) FROM table_26427332_17 WHERE city = ""Lahnstein""" Show the names of the buildings that have more than one company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 what is the name of people aged either 35 or 36,SELECT Name FROM people WHERE Age = 35 OR Age = 36 "How many top 10s did he have the year he won $80,490?","SELECT COUNT(top_10) FROM table_2216245_2 WHERE winnings = ""$80,490""" What is the home teams score when north melbourne is the away team?,"SELECT home_team AS score FROM table_name_87 WHERE away_team = ""north melbourne""" "What is High Rebounds, when High Assists is ""Rafer Alston , Rashard Lewis , Hedo Türkoğlu (3)""?","SELECT high_rebounds FROM table_name_80 WHERE high_assists = ""rafer alston , rashard lewis , hedo türkoğlu (3)""" What is the cost for address id 1?,SELECT monthly_rental from Student_Addresses where address_id = 1 What was Australia's score when Peter Lonard played?,"SELECT score FROM table_name_6 WHERE country = ""australia"" AND player = ""peter lonard""" What language is used most often in songs?,SELECT languages FROM song GROUP BY languages ORDER BY count ( * ) DESC LIMIT 1 Name the country that has mänttä,"SELECT country FROM table_name_2 WHERE place = ""mänttä""" Which airport is located in Singapore?,"SELECT airport FROM table_name_33 WHERE country = ""singapore""" Which flight has the least velocity in the list? | What info do you want about that flight? id? date? number? or something else? | I want the number,select Vehicle_Flight_number from flight order by Velocity limit 1 When was the most recent year that kathy whitworth was the runner-up?,"SELECT MAX(year) FROM table_name_49 WHERE runner_s__up = ""kathy whitworth""" What is her account balance?,SELECT T1.acc_bal FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum ( T2.amount ) > 5000 "With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2?","SELECT trans_2 FROM table_name_76 WHERE swim__15km_ = ""18:55"" AND run__10km_ = ""32:37""" "Find the names of customers who have used either the service ""Close a policy"" or the service ""Upgrade a policy"".","SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""Close a policy"" OR t3.service_name = ""Upgrade a policy""" How many cars have more than 4 cylinders?,SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4 What type is the settlement of Lok? ,"SELECT type FROM table_2562572_19 WHERE settlement = ""Lok""" What is the date of birth for the player in the Inglewood club?,"SELECT dob FROM table_26847237_2 WHERE club = ""Inglewood""" State the number of films that are 178 minutes long.,SELECT COUNT(film_id) FROM film WHERE length = '178' Find the id of users who are followed by Mary and Susan.,"SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Susan""" What was the result for 10/04/1947?,"SELECT result FROM table_name_75 WHERE date = ""10/04/1947""" can you show me document type code?,select document_type_code from documents What are the distinct names of the products that cost more than the average?,SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS) "Which Year(s) of Manufacture has a Quantity larger than 60, and a Number(s) of 7001–7165?","SELECT year_s__of_manufacture FROM table_name_49 WHERE quantity > 60 AND number_s_ = ""7001–7165""" What is the lowest swimsuit for a contestant with an average of 9.125?,SELECT MIN(swimsuit) FROM table_name_38 WHERE average = 9.125 "What are the instruments are used in the song ""Le Pop""?","SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" When was the earliest incumbent dave reichert was first elected?,"SELECT MIN(first_elected) FROM table_name_86 WHERE incumbent = ""dave reichert""" What is the highest number of draws with 14 points and less than 7 games?,SELECT MAX(drawn) FROM table_name_39 WHERE points = 14 AND games < 7 What is the placement date of the order whose invoice number is 10?,SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10 Which cities have regional population above 8000000 or below 5000000?,SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000 how many times have there been helps by damon stoudamire (13),"SELECT COUNT(record) FROM table_13464416_6 WHERE high_assists = ""Damon Stoudamire (13)""" How many mountains in this table?,select count ( * ) from mountain What is the record for the game against New England Patriots at the Rich Stadium?,"SELECT record FROM table_name_89 WHERE game_site = ""rich stadium"" AND opponent = ""new england patriots""" How long does track Fast As a Shark has?,"SELECT milliseconds FROM tracks WHERE name = ""Fast As a Shark""" "What is the name of the tourist attraction that is associated with the photo ""game1""?","SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" "What is the time in a heat smaller than 5, in Lane 5, for Vietnam?","SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = ""vietnam""" What are the ids and names of the companies that operated more than one flight?,"SELECT T1.id , T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING count(*) > 1" "What is the average total medals Egypt, who has less than 2 gold, has?","SELECT AVG(total) FROM table_name_67 WHERE nation = ""egypt"" AND gold < 2" Who was the visiting team that played against the Kings?,"SELECT visitor FROM table_name_42 WHERE home = ""kings""" What is the average age of the female users who uses a vivo device?,SELECT AVG(T1.age) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' AND T1.gender = 'F' What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers?,"SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = ""tigers""" How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"" AND T1.lesson_status_code = ""Completed"";" How many suppliers are from UK?,SELECT COUNT(SupplierID) FROM Suppliers WHERE Country = 'UK' "Show the distinct names of mountains climbed by climbers from country ""West Germany"".","SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = ""West Germany""" What is the length of the version from 2003?,SELECT length FROM table_name_3 WHERE year = 2003 Which team was the home team when playing South Melbourne?,"SELECT home_team AS score FROM table_name_43 WHERE away_team = ""south melbourne""" "What is sSpec Number, when Frequency is 1 GHZ?","SELECT sspec_number FROM table_name_98 WHERE frequency = ""1 ghz""" "What is the customer id, first and last name with least number of accounts.","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1" what is the last title when the titles is more than 12 and the position in 2012 is 7th,"SELECT last_title FROM table_name_91 WHERE titles > 12 AND position_in_2012 = ""7th""" Name the total number of percentage growth 2000-2008 of uganda?,"SELECT COUNT(_percentage_growth__2000_2008_) FROM table_10733530_3 WHERE nation = ""Uganda""" What competition in 2003 has a score of 2–1?,"SELECT competition FROM table_name_81 WHERE year = 2003 AND score = ""2–1""" Show the number of documents.,SELECT count(*) FROM Documents What is the result for thomas s. mcmillan?,"SELECT result FROM table_1342359_39 WHERE incumbent = ""Thomas S. McMillan""" what is the school code of emp num 114,SELECT SCHOOL_CODE from DEPARTMENT where EMP_NUM = 114 What is the list ID that was first created by user 85981819?,SELECT list_id FROM lists_users WHERE user_id = 85981819 ORDER BY list_creation_date_utc ASC LIMIT 1 What was the students last name and ID that had the most behavior incidents?,"SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count ( * ) DESC LIMIT 1" What is the ground of the game where the home team was Adelaide?,"SELECT ground FROM table_name_88 WHERE home_team = ""adelaide""" What are the themes and locations of parties?,"SELECT Party_Theme, LOCATION FROM party" Name the original air date for bryan moore & chris peterson,"SELECT original_air_date FROM table_27988408_1 WHERE written_by = ""Bryan Moore & Chris Peterson""" Describe the customer names and product names which had over 3800 USD in net profit.,"SELECT DISTINCT `Customer Names`, `Product Name` FROM ( SELECT T1.`Customer Names`, T3.`Product Name` , REPLACE(T2.`Unit Price`, ',', '') - REPLACE(T2.`Unit Cost`, ',', '') AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products T3 ON T3.ProductID = T2._ProductID ) WHERE T > 3800" Find the id and first name of the student that has the most number of assessment notes?,"SELECT T1.student_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1" What is the greatest Goals with a Name of samuel eto'o?,"SELECT MAX(goals) FROM table_name_34 WHERE name = ""samuel eto'o""" what is the time/retired when the laps is 55?,SELECT time_retired FROM table_name_96 WHERE laps = 55 "If the player is Marcelo, what is the minimum R?",SELECT MIN(r) FROM table WHERE player = Marcelo Name the least wins,SELECT MIN(wins) FROM table_24596664_1 "How many years did player Id ""cleghsp01"" make to the Stanley Cup finals?",SELECT COUNT(year) FROM ScoringSC WHERE playerID = 'cleghsp01' What is the city of that address?,SELECT T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1 what is the dept address of accounting,SELECT DEPT_ADDRESS from DEPARTMENT where DEPT_NAME = 'Accounting' What position that has m tyres and 352 or more laps?,"SELECT pos FROM table_name_56 WHERE tyres = ""m"" AND laps > 352" What original title has a year of 1978?,"SELECT original_title FROM table_name_18 WHERE year = ""1978""" Find the ids of all the order items whose product id is 11.,SELECT order_item_id FROM order_items WHERE product_id = 11 Can you list the names of all browsers that have market shares above the average?,SELECT name FROM browser where market_share > ( select avg ( market_share ) from browser ) "What is the homepage link for the company that supplies the product ""Thringer Rostbratwurst""?",SELECT T2.HomePage FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Thringer Rostbratwurst' What date did the episode with 8.28 million u.s. viewers originally air?,"SELECT original_air_date FROM table_27910411_1 WHERE us_viewers__millions_ = ""8.28""" Which Venue has a Date of 1 march 2006?,"SELECT venue FROM table_name_41 WHERE date = ""1 march 2006""" What are the courses taught by the advisors who gave advice to student with ID 376?,SELECT T3.course_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id INNER JOIN taughtBy AS T3 ON T2.p_id = T3.p_id WHERE T1.p_id = 141 Who was their opponent in game 4?,"SELECT opponent FROM table_name_77 WHERE game = ""4""" List all product names and its product line for all purchase order with order quantity of 5000 or more.,"SELECT T1.Name, T1.ProductLine FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderQty > 4999" Show the names of pilots and the number of records they have.,"SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name" what is the billing city of norway,"select distinct ( billing_city ) from invoices where billing_country = ""Norway""" How many undergraduates are there at San Jose State,"SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Jose State University""" Who are all high points in game 14?,SELECT high_points FROM table_23248940_6 WHERE game = 14 List the names of climbers whose country is not Switzerland.,"SELECT Name FROM climber WHERE Country <> ""Switzerland""" Which circuit was held on May 7 for 1 hour?,"SELECT circuit FROM table_name_24 WHERE date = ""may 7"" AND length = ""1 hour""" Can you please list the full names of all male faculty members and the buildings they live in?,"SELECT Fname , Lname, building FROM FACULTY WHERE sex = ""M""" Please show the date of ceremony of the volumes that last more than 2 weeks on top.,SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2 "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?","SELECT job_id , hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'" how many shops are there?,SELECT count ( * ) FROM SHOPS Show names of climbers and the names of mountains they climb.,"SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" Find the names of stadiums which have never had any event.,SELECT name FROM stadium WHERE id NOT IN (SELECT stadium_id FROM event) What is the lowest child sex ratio in groups where employment is 31.3%?,"SELECT MIN(sex_ratio__child_) FROM table_10710364_2 WHERE work_participation___percentage_ = ""31.3%""" What was the the total top attendance with a score of 0 – 4?,"SELECT MAX(attendance) FROM table_name_93 WHERE score = ""0 – 4""" Please calculate negative critical reception of American movies,"SELECT CAST(SUM(IIF(T1.rating = 1, 1, 0)) AS REAL) * 100 / COUNT(T1.movieid) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'USA'" Name the venue for 2nd position of year before 2008,"SELECT venue FROM table_name_83 WHERE year < 2008 AND position = ""2nd""" What is the vault score for the total of 56.635?,"SELECT vault FROM table_11542215_3 WHERE total = ""56.635""" "What is the latitude of each station, please?","select name,lat from station" How many routes does each airline have?,"SELECT T1.name, count ( * ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid" "What is Opponent, when Result is Win, and when Date is Aug 7?","SELECT opponent FROM table_name_67 WHERE result = ""win"" AND date = ""aug 7""" "If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number?","SELECT stunts FROM table_21995420_9 WHERE school = ""Central Colleges of the Philippines CCP Bobcats""" How many short tips were left for the business with ID no.2?,SELECT COUNT(business_id) FROM Tips WHERE business_id = 2 AND tip_length = 'Short' "What was the latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) of 0 and a GEO ID smaller than 3809981860?","SELECT COUNT(latitude) FROM table_name_51 WHERE land___sqmi__ > 35.747 AND water__sqmi_ = 0 AND geo_id < 3809981860 AND township = ""van meter""" what is x when faisaly is 0-0?,"SELECT × FROM table_26173063_2 WHERE faisaly = ""0-0""" What is the most laps with a qualification of 106.185?,"SELECT MAX(laps) FROM table_name_38 WHERE qual = ""106.185""" What date was the game played at princes park?,"SELECT date FROM table_name_74 WHERE venue = ""princes park""" Find the number of students in one classroom.,"SELECT count(*) , classroom FROM list GROUP BY classroom" What is the job title of the newest employee in department 12?,SELECT T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.DepartmentID = 12 ORDER BY T2.StartDate DESC LIMIT 1 Find the number of complaints with Product Failure type for each complaint status.,"SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = ""Product Failure"" GROUP BY complaint_status_code" What is the 1st leg for team 2 Portol Drac Palma Mallorca?,"SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = ""portol drac palma mallorca""" Name the date with works number less than 1673 and number less than 3,SELECT date FROM table_name_42 WHERE works_number < 1673 AND number < 3 What tournament had Alberta Brianti as an opponent with a score of 6-4 2-6 6-2?,"SELECT tournament FROM table_name_96 WHERE opponent = ""alberta brianti"" AND score = ""6-4 2-6 6-2""" What year did Japan form a label?,"SELECT year FROM table_name_79 WHERE region = ""japan""" List the name of the customer with the most number of order quantity from 2018 to 2020.,SELECT T1.`Customer Names` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID WHERE T2.OrderDate LIKE '%/%/18' OR T2.OrderDate LIKE '%/%/19' OR T2.OrderDate LIKE '%/%/20' ORDER BY T2.`Order Quantity` DESC LIMIT 1 "Which Pos has a Dutch Cup of winner, and a Tier larger than 1?","SELECT AVG(pos) FROM table_name_1 WHERE dutch_cup = ""winner"" AND tier > 1" What years were each of those built?,select built_year from mill where type = ( SELECT TYPE FROM mill GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1 ) "What is the average age of all of the members of the club called ""Bootup Baltimore""?","SELECT avg ( t3.age ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" What is the start of lap 55?,SELECT start FROM table_name_18 WHERE laps = 55 Please list the zip codes of the offices where all the male employees with a good job performance work at.,SELECT T2.zipcode FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T1.gender = 'M' AND T1.performance = 'Good' How many viewed the episode gary gets boundaries?,"SELECT COUNT(viewers) FROM table_name_47 WHERE episode = ""gary gets boundaries""" "Which Number of households has a Median household income of $32,806, and a Population larger than 11,291?","SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = ""$32,806"" AND population > 11 OFFSET 291" List all candidates in the democratic party where the election had the incumbent Frank Chelf running.,"SELECT candidates FROM table_1342218_17 WHERE party = ""Democratic"" AND incumbent = ""Frank Chelf""" What cities had the lowest temperature in March? | what did you want to get ?city ID or city name? | City name please.,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id order by Mar limit 1 Show the minister who took office after 1961 or before 1959.,SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959 "Among the repositories whose number of stars received are between 6,000 to 9,000, which repository has the highest number of solution paths and many of those solution paths needs to be compiled if user wants to implement it?","SELECT T2.RepoId, COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars BETWEEN 6000 AND 9000 AND T2.WasCompiled = 0 GROUP BY T2.RepoId ORDER BY COUNT(T2.RepoId) DESC LIMIT 1" "What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007?","SELECT match_report FROM table_name_89 WHERE competition = ""euro2008q"" AND venue = ""athens olympic stadium"" AND date = ""november 17, 2007""" What is the local/networked value for the show with an ad frequency of N/A?,"SELECT local_networked FROM table_name_38 WHERE ad_freq = ""n/a""" What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12?,"SELECT name FROM table_name_8 WHERE winner = ""s. loeb"" AND length = ""13.04km"" AND stage = ""ss12""" What is the id and family name of the driver who has the longest laptime?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1" Could you please tell me which room has the most expensive base price?,SELECT * FROM Rooms ORDER BY basePrice desc LIMIT 1 What college has Lance Moore Category:articles with hcards?,"SELECT college FROM table_name_94 WHERE player = ""lance moore category:articles with hcards""" How many cities are there in the country ruled by Kostis Stefanopoulos?,SELECT COUNT(DISTINCT T1.Name) FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.HeadOfState = 'Kostis Stefanopoulos' What city does the business came from where they received a high volume of check-ins from 12 am to 1 am on Saturday.,SELECT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.closing_time = '1AM' AND T2.opening_time = '12AM' AND T3.day_of_week = 'Saturday' How many lessons did the customer with the first name Ray take?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" "Give all information regarding instructors, in order of salary from least to greatest.",SELECT * FROM instructor ORDER BY salary What are the names and location of the shops in ascending alphabetical order of name.,"SELECT Shop_Name , LOCATION FROM shop ORDER BY Shop_Name ASC" How many socialist have a lead of 12.6%?,"SELECT COUNT(socialist) FROM table_1886589_1 WHERE lead = ""12.6%""" "On image no. 5, name the attributes that are composed of multiple objects.",SELECT T2.ATT_CLASS FROM IMG_OBJ_ATT AS T1 INNER JOIN ATT_CLASSES AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T1.IMG_ID = 5 GROUP BY T2.ATT_CLASS HAVING COUNT(T2.ATT_CLASS) > 2 Show me the project id and details for the project with at least two documents,"SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count ( * ) > 2" How do I contact the President of the company?,SELECT t.email FROM employees t WHERE t.jobTitle = 'President' "What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda?","SELECT driver FROM table_name_35 WHERE time_retired = ""+1 lap"" AND constructor = ""bar - honda""" How many weddings are there in year 2016?,SELECT count(*) FROM wedding WHERE YEAR = 2016 What is the Road Team of Game 3?,"SELECT road_team FROM table_name_64 WHERE game = ""game 3""" "List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order.",SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name Which country has a to par of +2 for Bernhard Langer?,"SELECT country FROM table_name_3 WHERE to_par = ""+2"" AND player = ""bernhard langer""" how many rooms are available in the apartment with short name columbus square,"SELECT sum ( T2.room_count ) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = ""Columbus Square""" What torque does 1.9 diesel with 1905 cc have?,"SELECT torque FROM table_name_30 WHERE name = ""1.9 diesel"" AND capacity = ""1905 cc""" What kind of Week 4 has a Week 2 of tiffany logan?,"SELECT week_4 FROM table_name_65 WHERE week_2 = ""tiffany logan""" "Among the incidents reported in Harrison, what percentage are disorderly conduct?",SELECT COUNT(CASE WHEN T3.title = 'Disorderly Conduct' THEN T2.report_no END) * 100.0 / COUNT(T2.report_no) AS per FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T1.district_name = 'Harrison' Which college have both players with position midfielder and players with position defender ?,"SELECT College FROM match_season WHERE POSITION = ""Midfielder"" INTERSECT SELECT College FROM match_season WHERE POSITION = ""Defender""" "In the 2008/2009 season one team had a season total points of 31, for that team how many total points were scored against them?","SELECT points_against FROM table_13399573_4 WHERE points = ""31""" What is the total and minimum enrollment of all schools?,"SELECT sum(enrollment) , min(enrollment) FROM university" What is the earliest year of the Honda Engine with a finish of 4?,"SELECT MIN(year) FROM table_name_53 WHERE engine = ""honda"" AND finish = 4" Find the location of the campbell river?,SELECT Location FROM county_public_safety WHERE Name = 'Campbell River' Show different publishers together with the number of publications they have.,"SELECT Publisher , COUNT(*) FROM publication GROUP BY Publisher" Where was the decision draw before round 5?,"SELECT location FROM table_name_13 WHERE method = ""decision draw"" AND round < 5" Select the names of manufacturer whose products have an average price higher than or equal to $150.,"SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150" "What about film IDs? | Do you mean the film IDs of the 9 films that do not have market estimations? | Yes, could you tell me those films' IDs?",SELECT film_ID FROM film WHERE Film_ID NOT IN ( SELECT Film_ID FROM film_market_estimation ) Give the name of the products that have a color description 'yellow'.,SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow' "what is the City of license that has a 1,400 watts Power","SELECT city_of_license FROM table_name_79 WHERE power = ""1,400 watts""" Name the Winning constructor on 31 may and a Circuit of madonie?,"SELECT winning_constructor FROM table_name_96 WHERE date = ""31 may"" AND circuit = ""madonie""" "Name the most attendance for november 17, 1946 and week more than 8","SELECT MAX(attendance) FROM table_name_21 WHERE date = ""november 17, 1946"" AND week > 8" What primary sponsor has the owner Rick Hendrick and their crew chief is Alan Gustafson?,"SELECT primary_sponsor_s_ FROM table_name_50 WHERE owner_s_ = ""rick hendrick"" AND crew_chief = ""alan gustafson""" Which organization did student285 enlist?,SELECT organ FROM enlist WHERE name = 'student285' What are the name and type code of the product with the highest price?,"SELECT Product_Name, Product_Type_Code FROM Products ORDER BY Product_Price DESC LIMIT 1" Which colleges does each player with a name that starts with the letter D who tried out go to?,SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%' How many years were there 97 qatari male births?,SELECT COUNT(year) FROM table_19309079_2 WHERE qatari_male = 97 "Find out the platform of the game ""Final Fantasy XIII-2"".",SELECT T4.platform_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.game_name = 'Final Fantasy XIII-2' What driver has under 19 laps and a grid under 10?,SELECT driver FROM table_name_89 WHERE laps < 19 AND grid < 10 What is the organization level for Human Resources Manager?,SELECT OrganizationLevel FROM Employee WHERE JobTitle = 'Human Resources Manager' How many publications were published by author named 'Howard F. Lipson'?,SELECT COUNT(PaperId) FROM PaperAuthor WHERE Name = 'Howard F. Lipson' How large was the crowd when Carlton was the away team?,"SELECT COUNT(crowd) FROM table_name_26 WHERE away_team = ""carlton""" "What was the Opponents in Final during the match with a Score in Final of 6–4, 3–6, 5–7?","SELECT opponents_in_final FROM table_name_5 WHERE score_in_final = ""6–4, 3–6, 5–7""" "What is the name of the city the student by the name of Linda Smith is from? | Do you mean the code of the city? since we don't have the name of cities. | Yes, please","SELECT city_code FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" What was the styled used to defeat the opponent within the time frame of 32:32?,"SELECT method_of_elimination FROM table_18598175_2 WHERE time = ""32:32""" "How many matches are there in April, 2008?",SELECT COUNT(Match_Id) FROM Match WHERE Match_date LIKE '2008-04%' What was the value in 2003 when 2006 was WTA Premier Mandatory Tournaments?,"SELECT 2003 FROM table_name_86 WHERE 2006 = ""wta premier mandatory tournaments""" WHAT IS THE ADDRESS ID OF SID TREMAYNE BRAKUS ?,SELECT email_address FROM Teachers WHERE first_name = 'Sid' and middle_name = 'Tremayne' and last_name = 'Brakus' "Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.","SELECT apt_type_code, bathroom_count, bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY SUM(room_count) DESC LIMIT 1" What kind of Rank has a Bronze of 0 and a Total smaller than 3 and a Nation of austria?,"SELECT MAX(rank) FROM table_name_6 WHERE bronze = 0 AND total < 3 AND nation = ""austria""" Which film is rented for the most times by the customers? Please give its title.,"SELECT T.title FROM ( SELECT T1.title, COUNT(T3.rental_id) AS num FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T1.title ) AS T ORDER BY T.num DESC LIMIT 1" What are the names of the mountains with height more than 5000?,SELECT Name FROM mountain WHERE Height > 5000 What are the rank/s of Eddie Guerrero?,"SELECT _number FROM table_2305948_1 WHERE name = ""Eddie Guerrero""" What is the location for each perpetrator?,SELECT location FROM perpetrator Who reported the game on 6 october?,"SELECT report FROM table_name_67 WHERE date = ""6 october""" What is the grant amount of the organisation with the id 14?,SELECT grant_amount from grants where organisation_id = 14 What's the points classification when the stage was final?,"SELECT points_classification FROM table_name_42 WHERE stage = ""final""" Find the number of matches happened in each year.,"SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR" Tell the address of employee who did inspection ID 52238?,SELECT T1.address FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 52238 "Among the users who gave a rating of 5, how many of them are male?",SELECT COUNT(T1.userid) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating = 5 AND T2.u_gender = 'M' "What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3?","SELECT position FROM table_name_47 WHERE team_defense_rank > 3 AND year < 1992 AND team_performance = ""lost super bowl xxv""" How many points for did Bridgend Athletic RFC score?,"SELECT points_for FROM table_name_86 WHERE club = ""bridgend athletic rfc""" What is the statement detail of statement id 57?,SELECT Statement_Details from Statements where Statement_ID = '57' "When vp8 ( webm ) is 4.4, how much is vp9 ( webm )","SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = ""4.4""" Where does Bermuda belong to? Give the full name of the country.,SELECT T3.Name FROM locatedOn AS T1 INNER JOIN island AS T2 ON T1.Island = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country WHERE T3.Name = 'Bermuda' Which venue has a Competition of 2008 myanmar grand royal challenge cup?,"SELECT venue FROM table_name_91 WHERE competition = ""2008 myanmar grand royal challenge cup""" What is the maximum season number for the episode written by Jonathan Greene?,"SELECT MAX(no_in_season) FROM table_23225927_1 WHERE written_by = ""Jonathan Greene""" Find the number of reviews.,SELECT COUNT(*) FROM review "Among the players who have won the All-Rookie award, how many of them have died?",SELECT COUNT(T1.playerID) FROM Master AS T1 INNER JOIN AwardsPlayers AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'All-Rookie' AND T1.deathYear IS NOT NULL "What is the venue of season 1983, which had alianza lima as the home team?","SELECT venue FROM table_name_7 WHERE home_team = ""alianza lima"" AND season = 1983" Who was the tradition when Roberto Devicenzo won the U.S. Senior Open and the Senior British Open was founded in 1987?,"SELECT the_tradition FROM table_name_83 WHERE senior_british_open = ""founded in 1987"" AND us_senior_open = ""roberto devicenzo""" Show the number of floors for each of the buildings that have an institution.,SELECT floors FROM building WHERE building_id IN ( SELECT building_id FROM institution ) Tell the number of surveys that contained the question “What country do you work in?”.,SELECT COUNT(DISTINCT T1.QuestionID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid INNER JOIN Survey AS T3 ON T1.SurveyID = T3.SurveyID WHERE T2.questiontext = 'What country do you work in?' What is the record when Danilo Pereira was the opponent?,"SELECT record FROM table_name_58 WHERE opponent = ""danilo pereira""" Which product descriptions contain the letter t?,SELECT T2.product_name FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' How many businesses in the fashion industry are rated 5 stars?,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.stars = 5 AND T3.category_name LIKE 'Fashion' Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name of the teachers.,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""EVELINA"" AND T1.lastname = ""BROMLEY""" List in alphabetic order the names of all distinct instructors.,SELECT DISTINCT name FROM instructor ORDER BY name What are the id of students who registered course 301?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 "How many appointed archbishops were ordained as priests on December 20, 1959","SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = ""December 20, 1959""" Name the date for value 55c,"SELECT date FROM table_2006661_1 WHERE value = ""55c""" "Sorry, I meant to show me all the course codes where department code is ""CIS""","SELECT t2.crs_code FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE t1.dept_code = ""CIS""" "What is the maximum number that a certain service is provided? List the service id, details and number.","SELECT T1.service_id, T1.service_details, COUNT(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY COUNT(*) DESC LIMIT 1" Which Opponent has a Game of 31?,SELECT opponent FROM table_name_56 WHERE game = 31 Who was the rookie that played week 6?,SELECT rookie FROM table_name_59 WHERE week = 6 Return all the committees that have delegates from Democratic party.,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic""" What is set 3 on week 6?,SELECT set_3 FROM table_name_1 WHERE week = 6 When was the final loss of the club last won in 2001 and has a total of 3 wins?,"SELECT last_final_lost FROM table_name_84 WHERE wins = ""3"" AND last_win = ""2001""" In what Venue was the Score 1-1?,"SELECT venue FROM table_name_76 WHERE score = ""1-1""" What was the score in the game on November 21? ,"SELECT score FROM table_27733909_5 WHERE date = ""November 21""" What are the names of departments that have primarily affiliated physicians.,SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1 Which park is this roller coaster located at?,select park from roller_coaster where height = ( SELECT max ( height ) FROM roller_coaster ) "For each user, return the name and the average rating of reviews given by them.","SELECT T1.name , avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" What is the nationality of the player that plays forward and is from depaul?,"SELECT nationality FROM table_name_19 WHERE position = ""forward"" AND school_club_team = ""depaul""" What is Iceland's total?,"SELECT COUNT(total) FROM table_150343_3 WHERE country_territory = ""Iceland""" What round was matt brait?,"SELECT round FROM table_name_51 WHERE player = ""matt brait""" How many Rounds have a Defensive End Pick?,"SELECT COUNT(round) FROM table_name_16 WHERE position = ""defensive end""" what is the format for the country united kingdom on 20 october 2008?,"SELECT format FROM table_name_28 WHERE country = ""united kingdom"" AND date = ""20 october 2008""" What name has a population of 810?,"SELECT name FROM table_name_13 WHERE population = ""810""" List the name for storms and the number of affected regions for each storm.,"SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id" Show me the name of person who received salary from team Washington nationals?,"SELECT T2.name_first , T2.name_last, T2.name_given FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'" How many male users have a Galaxy Note 3?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Galaxy Note 3' AND T1.gender = 'M' What is the goal difference number with a position of 15?,SELECT goal_difference FROM table_name_35 WHERE position = 15 Which LE-5 Model has an LE-5A of 130?,SELECT le_5_model FROM table_name_2 WHERE le_5A = 130 "Can you provide the booking start dates and end dates, for all the apartments with more than 2 bedrooms?","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2" Which club has Jamie Korab as Lead?,"SELECT club FROM table_name_69 WHERE lead = ""jamie korab""" How much is the average sentiment polarity score of Golf GPS Rangefinder: Golf Pad and what is it's rating in the Google Play Store?,"SELECT AVG(T2.Sentiment_Polarity), T1.Rating FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Golf GPS Rangefinder: Golf Pad'" How many tournaments recorded a score of 206 (-7)?,"SELECT COUNT(tournament) FROM table_11622840_1 WHERE score = ""206 (-7)""" What are the times of elimination for wrestlers with over 50 days held?,SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?,SELECT COUNT(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 0 Which language is the rarest among all the books?,SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id GROUP BY T2.language_name ORDER BY COUNT(T2.language_name) ASC LIMIT 1 What are the distinct first names for students with a grade point of 3.8 or above in at least one course?,SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 I want the lowest points for tries of 39 and goals more than 0,SELECT MIN(points) FROM table_name_1 WHERE tries = 39 AND goals > 0 What team played Essendon?,"SELECT home_team FROM table_name_90 WHERE away_team = ""essendon""" List the name of the films that can only be found in store id 2.,SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 What are the names of stations that have latitude lower than 37.5?,SELECT name FROM station WHERE lat < 37.5 I want the tyres for hans binder,"SELECT tyres FROM table_name_46 WHERE driver = ""hans binder""" From what date and to what date do the staff work on a project that has the most staff and has staff in a leader role?,"SELECT date_from , date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'leader'" Find the average rating star for each movie that are not reviewed by Brittany Harris.,"SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris"") GROUP BY mID" How many users who are between 20 and 60 use phone brand of TCL?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age BETWEEN 20 AND 60 AND T2.phone_brand = 'TCL' Find the name of the swimmer who has the most records.,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count(*) DESC LIMIT 1 What was the smallist population in 2010?,SELECT MIN(population__2010_) FROM table_261951_1 what is the name of the first wrestler id | did you mean the name of the wrestler with id 1? | first wrestler,SELECT name FROM wrestler where Wrestler_ID = 1 Which restaurant on the street Alameda de las Pulgas in the city of Menlo Park is the worst rated?,SELECT T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'avenida de las pulgas' AND T2.city = 'menlo park' ORDER BY review LIMIT 1 Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.,"SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" What was the score of the away team when they played at Windy Hill?,"SELECT away_team AS score FROM table_name_98 WHERE venue = ""windy hill""" Show other account details for account with name 338.,"SELECT other_account_details FROM Accounts WHERE account_name = ""338""" Show all publishers and the number of books for each publisher.,"SELECT publisher , count(*) FROM book_club GROUP BY publisher" What is the total number of postseason games that team Boston Red Stockings participated in?,SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ); What is the percentage of unemployed students who have been absent for 5 months from school?,"SELECT CAST(SUM(IIF(T1.month > 5, 1, 0)) AS REAL) * 100 / COUNT(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name" What is the most common result of the music festival?,SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 What club received a DF player for free?,"SELECT to_club FROM table_name_52 WHERE transfer_fee = ""free"" AND pos = ""df""" In what season is Victoria the Opponent?,"SELECT season FROM table_name_97 WHERE opponent = ""victoria""" What is the production code for episode 96 in the series?,"SELECT MIN(production_code) FROM table_2818164_5 WHERE no_in_series = ""96""" what is the salary and name of the employee who has the most number of aircraft certificates?,"SELECT T1.name , T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1" "What are the phone numbers of customers using the policy with the code ""Life Insurance""?","SELECT customer_phone FROM available_policies WHERE policy_type_code = ""Life Insurance""" What is the total amount of moeny paid by the customer Carole Bernhard?,"SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Carole"" AND T2.last_name = ""Bernhard""" What's the total number of game that has 377 points?,SELECT SUM(games) FROM table_name_75 WHERE points = 377 What is the English word for the Latin word uxor?,"SELECT english FROM table_name_92 WHERE latin = ""uxor""" "Among the subscribers who rented a bike from South Van Ness at Market on 12/1/2013, whose duration was the shortest and to which station was the bike returned to? Indicate South Van Ness's dock count.","SELECT MIN(T2.duration), T2.end_station_name, COUNT(T2.start_station_name) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T2.start_date LIKE '12/1/2013%' AND T2.start_station_name = 'South Van Ness at Market' AND T2.subscription_type = 'Subscriber'" Find the number of scientists involved for the projects that require more than 300 hours,SELECT count ( distinct Scientist ) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 "How many scenes are there in work id 7, act 1?",SELECT COUNT(id) FROM chapters WHERE work_id = 7 AND Act = 1 How many different time zones are there in the Northeast region?,SELECT COUNT(DISTINCT T2.`Time Zone`) FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T1.Region = 'Northeast' How many departments are there?,SELECT count ( DEPT_CODE ) from department Show the names of members and the dates of performances they attended in descending order of attendance of the performances.,"SELECT T2.Name , 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 ORDER BY T3.Attendance DESC" What is the id and name of the department store that has both marketing and managing department?,"SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""marketing"" INTERSECT SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""managing""" what is the i/o bus when the sspec numebr is sr0n5(l1)?,"SELECT i_o_bus FROM table_name_28 WHERE sspec_number = ""sr0n5(l1)""" "What is Pos., when From Club is ""Chelsea"", and when Date is ""30 July 2008""?","SELECT pos FROM table_name_66 WHERE from_club = ""chelsea"" AND date = ""30 july 2008""" "find the highest support percentage, lowest consider rate and oppose rate of all candidates.","SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate" "Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977?","SELECT AVG(games) FROM table_name_5 WHERE years_at_club = ""1977"" AND goals = 17 AND debut_year < 1977" "Which December 4, 1976 week has an attendance less than 57,366?","SELECT MIN(week) FROM table_name_46 WHERE date = ""december 4, 1976"" AND attendance < 57 OFFSET 366" What is the Standalone in the year when Space Invaders is the Console?,"SELECT standalone FROM table_name_43 WHERE console = ""space invaders""" what is the minimum purse( $ ) where tournament is ko olina senior invitational,"SELECT MIN(purse__) AS $__ FROM table_11622255_1 WHERE tournament = ""Ko Olina Senior Invitational""" "Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.","SELECT apt_type_code , bathroom_count , bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1" "When was ""Tell You When"" released?","SELECT release_date FROM table_16859758_1 WHERE title = ""Tell You When""" What is the tournament with a clay surface and sofia shapatava as the opponent?,"SELECT tournament FROM table_name_54 WHERE surface = ""clay"" AND opponent = ""sofia shapatava""" "List each owner's first name, last name, and the size of his for her dog.","SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id" What university was Kevan George affiliated with?,"SELECT affiliation FROM table_29836557_2 WHERE player = ""Kevan George""" What is the highest year that a candidate was first elected?,SELECT MAX(first_elected) FROM table_1341738_11 What is the game number with 385:33 mins?,"SELECT MIN(games) FROM table_20107762_1 WHERE mins = ""385:33""" What is the date of the match with west bromwich albion as the home team?,"SELECT date FROM table_name_90 WHERE home_team = ""west bromwich albion""" "Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?","SELECT nationality FROM table_name_10 WHERE round < 5 AND player = ""bruce affleck""" What did Essendon score when they were the away team?,"SELECT away_team AS score FROM table_name_37 WHERE away_team = ""essendon""" What was the final result when the Mountaineers scored less than 13 and their opponents scored 26?,SELECT result FROM table_name_32 WHERE points_for < 13 AND points_against = 26 Show me the list of cmi cross reference ids please!,SELECT cmi_cross_ref_id FROM cmi_cross_references "What is the sum of Round, when Record is ""19-25-5""?","SELECT SUM(round) FROM table_name_70 WHERE record = ""19-25-5""" List the name and count of each product in all orders.,"SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id" "Find the difference in percentage of the movies under keywords of ""woman director"" and ""independent film"".",SELECT CAST((SUM(CASE WHEN T1.keyword_name = 'woman director' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.keyword_name = 'independent film' THEN 1 ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T1.keyword_name = 'independent film' THEN 1 ELSE 0 END) FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.,SELECT id FROM trip WHERE duration >= (SELECT avg(duration) FROM trip WHERE zip_code = 94103) "Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80?",SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80 List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.,"SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" What is the lowest crowd seen by the mcg Venue?,"SELECT MIN(crowd) FROM table_name_84 WHERE venue = ""mcg""" What was the name of the host team dated December 16?,"SELECT host_team FROM table_name_39 WHERE date = ""december 16""" "Who played as the home team when the attendance was more than 30,080?",SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080 list the canceled product customer id?,SELECT product_id FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE order_status = 'Cancelled' "Which Played is the highest one that has a Lost smaller than 1, and a Difference of 6, and an Against larger than 2?","SELECT MAX(played) FROM table_name_66 WHERE lost < 1 AND difference = ""6"" AND against > 2" Please show the categories of the music festivals and the count.,"SELECT Category, COUNT(*) FROM music_festival GROUP BY Category" "Show the name, location, and number of platforms for all stations.","SELECT name , LOCATION , number_of_platforms FROM station" What are the minimum and maximum number of products across all the shops?,"SELECT min(Number_products) , max(Number_products) FROM shop" "What is the Hangul equivalent of the Greek ϝ, υ?","SELECT hangul FROM table_name_96 WHERE greek = ""ϝ, υ""" What's the result when the Carolina Panthers were the opponent?,"SELECT result FROM table_name_86 WHERE opponent = ""carolina panthers""" "Of the 4 root beers that Frank-Paul Santangelo purchased on 2014/7/7, how many of them were in cans?",SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND T2.TransactionDate = '2014-07-07' AND T3.ContainerType = 'Can' Show me the start station id for all trips.,SELECT start_station_id FROM trip "How many crew members worked as producer in the movie ""Pirates of the Caribbean: At World's End""?",SELECT COUNT(T3.person_id) FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Producer' What is the birth state of player aardsda01?,"SELECT birth_state FROM player where player_id = ""aardsda01""" What studio has the director Philip Frank Messina?,"SELECT studio_s_ FROM table_name_71 WHERE director = ""philip frank messina""" What is the nickname of staff with first name as Janessa and last name as Sawayn?,"SELECT nickname FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" How many employees have territories in the Eastern region?,SELECT COUNT(DISTINCT T1.FirstName) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T4.RegionDescription = 'Eastern' "Which Rank has a Nation of south korea, and a Silver larger than 0?","SELECT SUM(rank) FROM table_name_53 WHERE nation = ""south korea"" AND silver > 0" Name the least total kurdistan list,SELECT MIN(total_kurdistan_list) FROM table_24440361_1 Which district had the most number of first degree murders? Give the district number.,SELECT T2.district_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.secondary_description = 'FIRST DEGREE MURDER' GROUP BY T2.district_no ORDER BY COUNT(*) DESC LIMIT 1 State the name of the lake in Albania province and in which city does it located at.,"SELECT Lake, City FROM located WHERE Province = 'Albania' AND Lake IS NOT NULL" How much more space does Asia have than Europe?,SELECT MAX(Area) - MIN(Area) FROM continent WHERE Name = 'Asia' OR Name = 'Europe' How many students attend course English?,"SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""English""" List down the first name of patients who encountered normal pregnancy.,SELECT DISTINCT T1.first FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T2.REASONDESCRIPTION = 'Normal pregnancy' How many scores had an episode of 03x06?,"SELECT COUNT(scores) FROM table_29141354_3 WHERE episode = ""03x06""" Find the number of stores in each city.,"SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city" What is the average age for all managers?,SELECT avg(Age) FROM manager What is the winning total from 1976?,"SELECT MAX(total) FROM table_name_20 WHERE year_s__won = ""1976""" How many assets does each third party company supply? List the count and the company id.,"SELECT COUNT(*), T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id" "What is the title, phone and hire date of Nancy Edwards?","SELECT title , phone , hire_date FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" What are ids of all transactions with amount greater than the average?,SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > ( SELECT avg ( transaction_amount ) FROM Financial_transactions ) "What team was Ryan Callahan, who received a penalty for roughing, playing for?","SELECT team FROM table_name_87 WHERE penalty = ""roughing"" AND player = ""ryan callahan""" What are the zip code for the Senate house?,SELECT T2.zip_code FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.House = 'House of Repsentatives' GROUP BY T2.zip_code What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?,SELECT COUNT(long) FROM table_name_3 WHERE loss > 0 AND avg_g = 124.9 tell me the authority that has a decile less than 6 and roll less than 65.,SELECT authority FROM table_name_43 WHERE decile < 6 AND roll < 65 Who is the youngest player to have won the Purple Cap?,"SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Purple_Cap ORDER BY T2.Season_Year - SUBSTR(T1.DOB, 1, 4) LIMIT 1" What is the amount claimed for this claim?,SELECT t1.amount_claimed FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = ( SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1 ) How many customers share the most common last name?,SELECT COUNT(CustomerID) FROM Customers GROUP BY LastName ORDER BY COUNT(LastName) DESC LIMIT 1 what is the total rank where the rank is 58?,"SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE rank__week_ = ""58""" What is the phone number of Customer#000000001?,SELECT c_phone FROM customer WHERE c_name = 'Customer#000000001' When was outgoing manager Zoltán Varga appointed?,"SELECT date_of_appointment FROM table_name_77 WHERE outgoing_manager = ""zoltán varga""" "What is the weekly rank with an air date is november 12, 2007?","SELECT weekly_rank FROM table_11178271_1 WHERE air_date = ""November 12, 2007""" Which team played on December 5?,"SELECT team FROM table_11959669_4 WHERE date = ""December 5""" "Who is the highest paid employee in ""Boston""? Give the full name.","SELECT T1.firstname, T1.lastname FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.locationcity = 'Boston' ORDER BY T1.salary DESC LIMIT 1" "What is Score, when Player is ""Vijay Singh""?","SELECT score FROM table_name_81 WHERE player = ""vijay singh""" "How many people were considered as prospective recipients of the ""Animation"" award?",SELECT COUNT(*) FROM Award WHERE award = 'Animation' AND result = 'Nominee'; Which of those have rating below that of all songs in English?,SELECT song_name FROM song WHERE rating < ( SELECT min ( rating ) FROM song WHERE languages = 'english' ) where was the abbas family and the pickering family located,"SELECT location_s_ FROM table_19897294_9 WHERE family_families = ""The Abbas Family and The Pickering Family""" What does the one and only 24-hour diner's name?,SELECT label FROM generalinfo WHERE food_type = '24 hour diner' show the most common nationality of hosts,SELECT Nationality FROM HOST group by Nationality order by count ( * ) desc limit 1 What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""2192""" What is the listed surface for the Championship of Toronto that had a runner-up outcome?,"SELECT surface FROM table_name_56 WHERE outcome = ""runner-up"" AND championship = ""toronto""" Which song was by artist Gino Vannelli?,"SELECT song FROM table_name_15 WHERE artist = ""gino vannelli""" "How many matches have a City/Country of karachi, pakistan, and a Year larger than 1996?","SELECT COUNT(match) FROM table_name_63 WHERE city_country = ""karachi, pakistan"" AND year > 1996" "What are the login names of the students with family name ""Ward""?","SELECT login_name FROM Students WHERE family_name = ""Ward""" What is the most amount of games played this season?,SELECT MAX(game) FROM table_28768469_5 "What is Score, when Opponent is ""Daniel Gimeno-Traver""?","SELECT score FROM table_name_38 WHERE opponent = ""daniel gimeno-traver""" Show the name of the university with the lowest number of students in 2015.,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 ORDER BY T1.num_students ASC LIMIT 1 when is the hire date for those employees whose first name does not containing the letter M?,SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%' What are the different allergy types?,SELECT DISTINCT allergytype FROM Allergy_type "For users with average ratings of 3, what kind of tip length they mostly left?",SELECT T2.tip_length FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id WHERE T1.user_average_stars = 3 GROUP BY T2.tip_length ORDER BY COUNT(T2.tip_length) DESC LIMIT 1 what's the grand finalist where winners is collingwood,"SELECT grand_finalist FROM table_1139835_3 WHERE winners = ""Collingwood""" What was the minimum number of episodes in any of the series? ,SELECT MIN(episodes) FROM table_1949994_8 When did the Rochester Rhinos begin to play?,"SELECT began_play FROM table_name_48 WHERE club = ""rochester rhinos""" What is every value for location attendance on date of November 18?,"SELECT location_attendance FROM table_23248940_6 WHERE date = ""November 18""" Show the location name and code with the least documents.,"SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1" "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.","SELECT date , theme , sales FROM journal EXCEPT SELECT T1.date , T1.theme , T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID" What is the Home team on April 2?,"SELECT home FROM table_name_43 WHERE date = ""april 2""" What is the language of the book with ISBN 23755004321?,SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T1.isbn13 = 23755004321 "Was the user who created the ""World War 2 and Kids"" list eligible for trial when he created the list? Indicate how many followers does the said list has.","SELECT T2.user_eligible_for_trial, T1.list_followers FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T1.user_id AND T1.list_id = T2.list_id WHERE T1.list_title = 'World War 2 and Kids'" Please give the name of customers from the West region that bought exactly 8 items in their purchase.,SELECT DISTINCT T2.`Customer Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Quantity = 8 AND T1.Region = 'West' What was the wind at New York City when the rank was smaller than 6?,"SELECT wind FROM table_name_18 WHERE rank < 6 AND location = ""new york city""" what about the youngest?,Select age from captain order by age limit 1 What is varricchio's status?,"SELECT status FROM table_name_75 WHERE authors = ""varricchio""" "When was the order with the tracking number 3452 placed? | Did you want the order id of the order with shipment tracking number 3452? | Okay, tell me the order ID of that tracking number.",SELECT T1.order_id FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452 "Among the films that the customer RUTH MARTINEZ has rented, what is the title of the one with the highest replacement cost?",SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' ORDER BY T4.replacement_cost DESC LIMIT 1 What place did the player that took won $350 finish in?,SELECT place FROM table_name_21 WHERE money___$__ = 350 "Return the names of people, ordered by weight ascending.",SELECT Name FROM People ORDER BY Weight ASC What is the full name of the employee with the lowest salary?,"SELECT first_name, last_name FROM employee ORDER BY salary ASC LIMIT 1" The color sapphire is assigned to which Terminus?,"SELECT terminus FROM table_name_4 WHERE color = ""sapphire""" Give the name of the most widely used ingredient.,SELECT T1.name FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id GROUP BY T1.name ORDER BY COUNT(T1.name) DESC LIMIT 1 What are the names of modern rooms that have a base price lower than $160 and two beds.,SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern'; WHich Country has a ICAO of ltcd?,"SELECT country FROM table_name_46 WHERE icao = ""ltcd""" Please list the top 3 house-manufactured products with the highest average rating.,SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.MakeFlag = 1 GROUP BY T2.Name ORDER BY SUM(T1.Rating) DESC LIMIT 1 Show the start dates and end dates of all the apartment bookings.,"SELECT booking_start_date, booking_end_date FROM Apartment_Bookings" Can you please also sort thw result by decending order of game seasons?,"SELECT T1.date , T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id ORDER BY T1.season DESC" What are the average amount purchased and value purchased for the supplier who supplies the most products.,"SELECT avg(total_amount_purchased) , avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)" "What is his tweeter account? | can you give more details? who is ""he"" | The user who tweeted more than once",SELECT * FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count ( * ) > 1 Lists the last name of all clients who made a PS-type complaint and were served by TOVA.,SELECT t1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.type = 'PS' AND T2.server = 'TOVA' "Which tourist attraction is associated with the photo ""game1""? Return its name.","SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" Show all the buildings that have at least 10 professors.,"SELECT building FROM Faculty WHERE rank = ""Professor"" GROUP BY building HAVING count(*) >= 10" Which company has the biggest market value in billion?,SELECT company FROM company ORDER BY market_value LIMIT 1 Name the arabic for ħamuʃte,"SELECT arabic FROM table_26919_6 WHERE tigrinya = ""ħamuʃte""" Which classroom is the smallest?,SELECT * FROM classroom order by capacity limit 1 "What offensive line player hailed from Baton Rouge, Louisiana?","SELECT player FROM table_11677691_1 WHERE position = ""Offensive line"" AND hometown = ""Baton Rouge, Louisiana""" List by order number the 3 items with the lowest price after applying the discount.,SELECT l_orderkey FROM lineitem ORDER BY l_extendedprice * (1 - l_discount) LIMIT 3 What was the final score of a baseball game that happened before 2005?,"SELECT final_score FROM table_name_41 WHERE sport = ""baseball"" AND year < 2005" What Status has a Date of 18/03/1989?,"SELECT status FROM table_name_49 WHERE date = ""18/03/1989""" Would you please show me the ids of all employees who don't destroy any documents?,SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed What is the 1st Edition for the Episode 4?,"SELECT 1 AS st_edition FROM table_name_77 WHERE episode = ""4""" WHAT DATE HAD 6 RANK?,"SELECT date FROM table_name_51 WHERE rank__number = ""6""" "Name the countries that belong in the region with comment description ""furiously express accounts wake sly"".",SELECT T1.n_name FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_comment = 'furiously express accounts wake sly' "Which Episode has requested £150,000?","SELECT episode FROM table_name_38 WHERE money_requested__£_ = ""150,000""" On which dates played Home Captain Courtney Walsh at the Queen's Park Oval?,"SELECT date FROM table_name_35 WHERE home_captain = ""courtney walsh"" AND venue = ""queen's park oval""" Where is the Church that has a Sub-Parish (Sokn) of rugsund?,"SELECT location_of_the_church FROM table_name_64 WHERE sub_parish__sokn_ = ""rugsund""" Great! Now can you display this list to include both the first and last name corresponding to each employee ID?,"SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG ( salary ) FROM employees ) " What is country of origin of Eduardo Martins? | The country of the customer Eduardo Martins is Brazil. | Of which company is he a customer of?,"SELECT company FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins""" "What are teh names of the different products, as well as the number of customers who have ordered each product.","SELECT T2.product_name , count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name" Show the origin country of Chevrolet Malibu.,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.car_name = 'chevrolet malibu' Name the date won for wwe intercontinental championship,"SELECT date_won FROM table_name_10 WHERE championship = ""wwe intercontinental championship""" Is donor “22cbc920c9b5fa08dfb331422f5926b5” a teacher?,SELECT DISTINCT is_teacher_acct FROM donations WHERE donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5' Who is the home team at arden street oval?,"SELECT home_team FROM table_name_63 WHERE venue = ""arden street oval""" "Who owns the email address ""regina7@adventure-works.com""?","SELECT T2.FirstName, T2.LastName FROM EmailAddress AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.EmailAddress = 'regina7@adventure-works.com'" Show the names for all females from Canada having a wedding in year 2016.,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' How many schools are in the basketball match?,SELECT COUNT(DISTINCT school_id) FROM basketball_match How did he win with a time of 0:38?,"SELECT method FROM table_name_41 WHERE time = ""0:38""" what's the total number of tasmania with new south wales crop of 190 kilotonnes,SELECT COUNT(tasmania) FROM table_1057262_2 WHERE new_south_wales = 190 What was the position of the Slavia team in 1998?,"SELECT position_in_1998 FROM table_name_10 WHERE team = ""slavia""" "Please list all the modes of shipping for the part ""burnished seashell gainsboro navajo chocolate"".",SELECT DISTINCT T1.l_shipmode FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name = 'burnished seashell gainsboro navajo chocolate' Which country has the score of 71-71-68=210?,SELECT country FROM table_name_99 WHERE score = 71 - 71 - 68 = 210 What is the surface of the match when the opponent was iryna bremond valeria savinykh?,"SELECT surface FROM table_name_44 WHERE opponents = ""iryna bremond valeria savinykh""" "Given the branches are Alexandre and Zytogorski, which have members in Hiram, Georgia?","SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'" "What is Score, when Total is ""28:42""?","SELECT score FROM table_name_32 WHERE total = ""28:42""" What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?,"SELECT frequency FROM table_name_49 WHERE owner = ""canadian broadcasting corporation"" AND branding = ""cbc radio one""" List the name of the top ten items with the most quantity available in the descending order of availability.,SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey ORDER BY T2.ps_availqty DESC LIMIT 10 How many department stores does the store chain South have?,"SELECT count ( * ) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""South""" "How many critics of the movie ""Imitation of Life"" got more than 1 like?",SELECT COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Imitation of Life' AND T1.critic_likes > 1 Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged,"SELECT condition FROM table_name_52 WHERE platelet_count = ""unaffected"" AND bleeding_time = ""unaffected"" AND prothrombin_time = ""prolonged"" AND partial_thromboplastin_time = ""prolonged""" Which shop has a happy hour in may? | Do you want to get shop ID or another attribute? | shop id,SELECT t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May' What's the compression ratio when the vin code is c?,"SELECT ""c"" AS ompression_ratio FROM table_name_38 WHERE vin_code = ""c""" Which of these races are held after 12:00:00?,"SELECT name FROM races WHERE TIME > ""12:00:00""" How many times has the student Linda Smith visited Subway?,"SELECT count(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"" AND Restaurant.ResName = ""Subway"";" "What year did they finish 1st, southern?","SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = ""1st, Southern""" what grade is that classroom?,SELECT grade FROM list GROUP BY classroom ORDER BY count ( * ) DESC LIMIT 1 "Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?","SELECT label FROM table_name_61 WHERE country = ""united kingdom"" AND date = ""22 september 2008"" AND catalogue_number_s_ = ""eredv711""" What is the title of the episode with a production code of 2j5504?,"SELECT title FROM table_27450976_1 WHERE production_code = ""2J5504""" List the name of married employees with less than 20 vacation hours.,"SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.MaritalStatus = 'M' AND T2.VacationHours < 20" What's the bronze count for South Africa (RSA) with a total more than 16?,"SELECT MAX(bronze) FROM table_name_64 WHERE nation = ""south africa (rsa)"" AND total > 16" "How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?","SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = ""Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7""" "In 2010, which episode did Joel H. Cohen win an award for?","SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2010' AND T1.person = 'Joel H. Cohen';" Name the number of location attendance for 36-29 record,"SELECT COUNT(location_attendance) FROM table_27902171_8 WHERE record = ""36-29""" What is the largest metropolitan area of the Central-West?,"SELECT largest_metropolitan_area FROM table_name_99 WHERE name = ""central-west""" Show the theme for exhibitions with records of an attendance below 100,SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 What country did the player who scored 73-73-65=211 come from?,SELECT country FROM table_name_6 WHERE score = 73 - 73 - 65 = 211 Name the teams played in a match which resulted in a tie in 2015.,"SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Team_1 OR T1.Team_Id = T2.Team_2 INNER JOIN Win_By AS T3 ON T2.Win_Type = T3.Win_Id WHERE SUBSTR(T2.Match_Date, 1, 4) = '2015' AND T3.Win_Type = 'Tie' LIMIT 1" What are the students ids of students who have more than one allergy?,SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2 What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st?,"SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = ""st"" AND name = ""bikhangaon""" "What is the review with the title ""Hosts bring the show down"" for?",SELECT title FROM podcasts WHERE podcast_id = ( SELECT podcast_id FROM reviews WHERE title = 'Hosts bring the show down' ) Name the party with first elected more than 1999 and position of supervisor for john foust,"SELECT party FROM table_name_88 WHERE first_elected > 1999 AND position = ""supervisor"" AND name = ""john foust""" "What is Left Office, when Inaugurate is ""15 March 1930""?","SELECT left_office FROM table_name_1 WHERE inaugurated = ""15 march 1930""" Which teacher teaches the most students? Give me the first name and last name of the teacher.,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count(*) DESC LIMIT 1" What percentage of customers engaged in the household segment are from Iran?,"SELECT CAST(SUM(IIF(T2.n_name = 'IRAN', 1, 0)) AS REAL) * 100 / COUNT(T2.n_name) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_mktsegment = 'HOUSEHOLD'" "Among all films that the customer RUTH MARTINEZ has rented, what is the percentage of it being a Music film?","SELECT CAST(SUM(IIF(T3.name = 'Music', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id INNER JOIN inventory AS T4 ON T1.film_id = T4.film_id INNER JOIN customer AS T5 ON T4.store_id = T5.store_id INNER JOIN rental AS T6 ON T4.inventory_id = T6.inventory_id WHERE T5.first_name = 'RUTH' AND T5.last_name = 'MARTINEZ'" Who was the incumbent when the candidate was william drayton (j)?,"SELECT incumbent FROM table_2668254_22 WHERE candidates = ""William Drayton (J)""" What is the Front Side Bus for Model Number c7 1.5?,"SELECT front_side_bus FROM table_name_68 WHERE model_number = ""c7 1.5""" How many names correspond to an area of 8.12?,"SELECT COUNT(name) FROM table_26321719_1 WHERE area__km²_ = ""8.12""" Who was the away captain at Waca Ground?,"SELECT away_captain FROM table_name_60 WHERE venue = ""waca ground""" "For teams with more than 0 ties and goals against of 37, how many wins were tallied?",SELECT MAX(wins) FROM table_name_73 WHERE goals_against = 37 AND ties > 0 what's the result with streak of won 6?,"SELECT result FROM table_name_21 WHERE streak = ""won 6""" "List the full names, Twitter IDs, and YouTube IDs of legislators who have Richard as their first name.","SELECT T2.official_full_name, T1.twitter_id, T1.youtube_id FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.first_name = 'Richard'" What is the total for Rank 11?,SELECT COUNT(total) FROM table_name_57 WHERE rank = 11 "Find the first names and last names of the authors whose institution affiliation is ""University of Oxford"".","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Oxford""" List the countries having more than 4 addresses listed.,SELECT country FROM addresses GROUP BY country HAVING count ( address_id ) > 4 When peninsula is the electorate what is the reason?,"SELECT reason FROM table_28898974_3 WHERE electorate = ""Peninsula""" How many times a year is the Paris 20k road race held?,"SELECT COUNT(month_held) FROM table_26166836_3 WHERE road_race = ""Paris 20K""" Which opponent had a bye for the TV Time?,"SELECT opponent FROM table_name_96 WHERE tv_time = ""bye""" "Thank you again. Could you please let me know who are the oldest among them with his age? | Did you mean base on the last one question? | yes please, so my question would be about the oldest male student who is not majoring in 600.","SELECT Fname , Lname FROM Student WHERE Major ! = 600 AND Sex = 'M' order by Age desc limit 1" How many units of item no.5 were sold in store no.3 in total on days with a total precipitation of over 0.05?,SELECT SUM(CASE WHEN T3.preciptotal > 0.05 THEN units ELSE 0 END) AS sum FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND T1.item_nbr = 5 "How many Pick has a Round smaller than 13, and a Position of fullback?","SELECT COUNT(pick) FROM table_name_64 WHERE round < 13 AND position = ""fullback""" I'm looking for a patient. | What feature do you want? | I want to know their room number.,SELECT Room FROM Stay Which Qual 1 has a Qual 2 of 58.861?,"SELECT qual_1 FROM table_name_98 WHERE qual_2 = ""58.861""" Name the population of people for area being 24.35,"SELECT population__people_ FROM table_14465924_1 WHERE area__km_2__ = ""24.35""" How many assets does each maintenance contract contain? List the number and the contract id.,"SELECT count(*) , T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id" What is its id?,SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1 A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.,"SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;" What was the date for the canadian grand prix?,"SELECT date FROM table_name_65 WHERE grand_prix = ""canadian grand prix""" What is the gender of Congresswoman Jaime Herrera Beutler's baby?,"SELECT baby_gender FROM table_name_66 WHERE congresswoman = ""jaime herrera beutler""" What are the student IDs of students who passed the test?,"SELECT T1.student_id FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass""" How many businesses with the category are open from Monday to Thursday?,SELECT COUNT(T2.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id INNER JOIN Days AS T5 ON T4.day_id = T5.day_id WHERE T5.day_of_week LIKE 'Monday' OR T5.day_of_week LIKE 'Tuesday' OR T5.day_of_week LIKE 'Wednesday' OR T5.day_of_week LIKE 'Thursday' Which address has both members younger than 30 and members older than 40?,SELECT address FROM member WHERE age < 30 INTERSECT SELECT address FROM member WHERE age > 40 Show the statement id and the statement detail for the statement with most number of accounts.,"SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1" How much is the annual revenue of the customer with the most number of shipments?,SELECT T2.annual_revenue FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_id ORDER BY COUNT(T1.cust_id) DESC LIMIT 1 On what date were the Melbourne Tigers the home team?,"SELECT date FROM table_name_83 WHERE home_team = ""melbourne tigers""" What are the 3 counties that have the smallest population? Give me the county names.,SELECT County_name FROM county ORDER BY Population ASC LIMIT 3 "Can I please have a list of architects who have built at least two bridges, or at least one mill? | What attributes of the architects do you want? | Can you please tell me the names and the ids of the architects who have built two bridges?","SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count ( * ) = 2" "What year was the League of malaysian super league, and the Position was 10/14?","SELECT year FROM table_name_38 WHERE league = ""malaysian super league"" AND position = ""10/14""" What is the To par of the player with a t14 Finish?,"SELECT to_par FROM table_name_56 WHERE finish = ""t14""" "What is the ""active to date"" of the latest contact channel used by ""Tillman Ernser""?","SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" What product id was ordered most often?,SELECT product_id FROM order_items GROUP BY product_id ORDER BY count ( * ) DESC LIMIT 1 What was the highest attendance for the Hispano team?,"SELECT MAX(attendance) FROM table_name_56 WHERE home = ""hispano""" How many dorms are there?,SELECT COUNT(*) FROM dorm What are the songs in volumes associated with the artist aged 32 or older?,SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department.,"SELECT DISTINCT T2.emp_fname, T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'" "OK, what is the average of all payment amounts?",SELECT avg ( amount ) FROM payment How many devices are at Best Buy?,SELECT count ( Device_ID ) FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID where Shop_Name = 'Best Buy' Who are the Runner(s)-up with a Margin of 1 stroke?,"SELECT runner_s__up FROM table_name_12 WHERE margin = ""1 stroke""" Show the county name and population of all counties.,"SELECT County_name , Population FROM county" "What is Regulator, when Conduct of Litigation is Yes, and when Probate Activities is Yes?","SELECT regulator FROM table_name_13 WHERE conduct_of_litigation = ""yes"" AND probate_activities = ""yes""" list the location that was share by more than two wrestler,SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT ( * ) > 2 What is the average lost of games played of more than 9?,SELECT AVG(lost) FROM table_name_16 WHERE played > 9 Tell me the number of dogs that have not received any treatment .,select count(*) from dogs where dog_id not in ( select dog_id from treatments ) Show me the ssn of the physician named John Dorian?,SELECT SSN FROM physician where name = 'John Dorian' How many candidates won the election in the district whose incumbent is Bud Shuster?,"SELECT COUNT(candidates) FROM table_1341604_39 WHERE incumbent = ""Bud Shuster""" "For the channel smaller than 63.2, what was the programming?",SELECT programming FROM table_name_16 WHERE channel < 63.2 How many distinct hometowns did these people have?,SELECT count(DISTINCT Hometown) FROM people What was the result for incumbent Joseph McKenna who was first elected in 1884?,"SELECT result FROM table_name_77 WHERE first_elected = ""1884"" AND incumbent = ""joseph mckenna""" Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?,"SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = ""november 1881""" "How many episodes were in the season that first aired on September 22, 1989?","SELECT episodes FROM table_name_98 WHERE first_airdate = ""september 22, 1989""" Please list the phone numbers of all customers and suppliers.,SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers what is the lowest saving balance?,select min ( balance ) from savings Find the distinct last names of all the students who have president votes and whose advisor is 8741,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""8741""" On what day did joe gibbs racing record a time of 1:53:26?,"SELECT date FROM table_28178756_1 WHERE team = ""Joe Gibbs Racing"" AND race_time = ""1:53:26""" Name the number of semifinals for tt2,"SELECT COUNT(semifinals) FROM table_18646111_13 WHERE class = ""TT2""" What 1958 CIE is class s?,"SELECT 1958 AS _cié FROM table_name_69 WHERE class = ""s""" "Who was the partner at the Australian Open, Melbourne when the score was 2–6, 7–5, 6–2, 4–6, 3–6?","SELECT partner FROM table_name_6 WHERE championship = ""australian open, melbourne"" AND score = ""2–6, 7–5, 6–2, 4–6, 3–6""" What is the result with a home venue?,"SELECT result FROM table_name_26 WHERE venue = ""home""" Find the category descriptions of the products whose descriptions include letter 't'.,SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' What is the date and id of the transcript with the least number of results?,"SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1" "Hello! Can you provide me with a list of the First and Last names of all authors with the last name of ""Ohori""?","SELECT fname, lname FROM authors where lname = ""Ohori""" What are the prices of wines produced before the year of 2010?,SELECT Price FROM WINE WHERE YEAR < 2010 "Name the Sales Manager of Europe, Middle East, and Africa region. In which office does he/she report to?","SELECT t2.firstName, t2.lastName FROM offices AS t1 INNER JOIN employees AS t2 ON t1.officeCode = t2.officeCode WHERE t2.jobTitle = 'Sale Manager (EMEA)'" List the addresses of all the course authors or tutors.,SELECT address_line_1 FROM Course_Authors_and_Tutors "What is Class, when Dates is ""22 April - 3 May 2009""?","SELECT class FROM table_name_20 WHERE dates = ""22 april - 3 may 2009""" What are the first names of all students taking accoutning and Computer Information Systems classes?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' "List the series code of country with country notes description as ""Data sources : Eurostat"" and state the Wb2Code of these countries.","SELECT T2.seriescode, T1.Wb2Code FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data sources : Eurostat'" What is the maximum production code of the episode directed by Sean McNamara?,"SELECT MAX(prod_code) FROM table_27610775_1 WHERE directed_by = ""Sean McNamara""" List the age of all music artists.,SELECT Age FROM artist Who were the opponents when the score of the game was 101-105 and the H/A/N was H?,"SELECT opponent FROM table_name_68 WHERE h_a_n = ""h"" AND score = ""101-105""" "For each city, how many branches opened before 2010?","SELECT city , count(*) FROM branch WHERE open_year < 2010 GROUP BY city" When did camilla dallerup finish?,"SELECT finished FROM table_name_84 WHERE celebrity = ""camilla dallerup""" What are the headquarters without companies that are in the banking industry?,SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' Which complaint status has more than 3 records on file?,SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*) > 3 how many capacity in the stadium table,SELECT count ( distinct Capacity ) from stadium "Indicate the profit of product Sauder Camden County Barrister Bookcase, Planked Cherry Finish.","SELECT DISTINCT T1.Profit FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Sauder Camden County Barrister Bookcase, Planked Cherry Finish'" Calculate the total salary for employees who did inspection from ID 52270 to 52272.,SELECT SUM(T2.salary) FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id BETWEEN 52270 AND 52272 What is the 2nd leg of team 1 Dolphins?,"SELECT 2 AS nd_leg FROM table_name_99 WHERE team_1 = ""dolphins""" What nasl club won several titles with leeds united?,"SELECT nasl_club_s_ FROM table_237757_9 WHERE accolades__pre_nasl_ = ""Won several titles with Leeds United""" How many points are there when the lost is 7?,"SELECT points_for FROM table_14058433_3 WHERE lost = ""7""" What club had a score of 18.1?,"SELECT club FROM table_name_87 WHERE score = ""18.1""" "How many loses have points greater than 30, goals scored greater than 59, with a position greater than 5?",SELECT SUM(loses) FROM table_name_84 WHERE points > 30 AND goals_scored > 59 AND position > 5 Name the total number of list votes for 20.95%,"SELECT COUNT(list_votes) FROM table_14834801_1 WHERE list_pct = ""20.95%""" "Among the students that have filed for bankruptcy, how many of them have been absent from school for over 5 months?",SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.`name` = T2.`name` WHERE T2.`month` > 5 What Season had Dundee United as a Winner?,"SELECT season FROM table_name_87 WHERE winners = ""dundee united""" What is the total number of points for all players?,SELECT sum(Points) FROM player How many airlines are from USA?,"SELECT count(*) FROM AIRLINES WHERE Country = ""USA""" Calculate the percentage of pages that have 1500 different words.,SELECT CAST(COUNT(CASE WHEN words = 1500 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(page) FROM pages WHERE words > 300 LIMIT 3 How much money was there when the to par was 15?,SELECT SUM(money___) AS $__ FROM table_name_93 WHERE to_par = 15 What is the affiliation of the author writing in the journal 'A combined search for the standard model Higgs boson at s = 1.96  TeV'?,SELECT T1.Affiliation FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'A combined search for the standard model Higgs boson at s = 1.96  TeV' What's the number of the game in which Carlos Boozer (8) did the high rebounds?,"SELECT game FROM table_23286223_5 WHERE high_rebounds = ""Carlos Boozer (8)""" How many students live in each city and what are their average ages?,"SELECT count(*) , avg(age) , city_code FROM student GROUP BY city_code" How many cities are there that have more than 3 airports?,SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3) How many events in this table?,SELECT count ( name ) from event Who was the coach for the team which had the most bench minors penalty in 2003?,"SELECT DISTINCT T3.firstName, T3.lastName FROM Teams AS T1 INNER JOIN Coaches AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN Master AS T3 ON T2.coachID = T3.coachID WHERE T1.year = '2003' GROUP BY T3.firstName, T3.lastName ORDER BY SUM(T1.BenchMinor) DESC LIMIT 1" On what date was the Ed Remaster CD and TOCT-24365 Catalog released?,"SELECT date FROM table_name_88 WHERE format = ""ed remaster cd"" AND catalog = ""toct-24365""" Which title has a year prior to 2008 and xbox 360 as the platform?,"SELECT title FROM table_name_31 WHERE year < 2008 AND platform = ""xbox 360""" what is the id of him?,SELECT eid FROM Employee ORDER BY salary ASC LIMIT 1 When was incumbent Leo E. Allen first elected?,"SELECT MIN(first_elected) FROM table_1342315_12 WHERE incumbent = ""Leo E. Allen""" How long did Isadora Moen's allergy last? Tell me what kind of allergy she has.,"SELECT CASE WHEN SUBSTR(T1.STOP, -2, 1) != '9' THEN SUBSTR(T1.STOP, LENGTH(T1.STOP) - 1) + 2000 END - CASE WHEN SUBSTR(T1.START, -2, 1) = '9' THEN SUBSTR(T1.START, LENGTH(T1.START) - 1) + 1900 ELSE SUBSTR(T1.START, LENGTH(T1.START) - 1) + 2000 END AS years , T1.DESCRIPTION FROM allergies AS T1 INNER JOIN patients AS T2 ON T2.patient = T1.PATIENT WHERE T1.STOP IS NOT NULL AND T1.START IS NOT NULL AND T2.first = 'Isadora' AND T2.last = 'Moen'" What date did the home team of footscray play?,"SELECT date FROM table_name_85 WHERE home_team = ""footscray""" "Find the number of papers published by the institution ""University of Pennsylvania"".","SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Pennsylvania""" How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?,SELECT sum ( T1.games ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000 "What is Venue, when Year is 2005, and when Result is 8th?","SELECT venue FROM table_name_63 WHERE year = 2005 AND result = ""8th""" Incumbent Deborah Pryce was a member of what party? ,"SELECT party FROM table_1341395_36 WHERE incumbent = ""Deborah Pryce""" Show all product sizes.,SELECT DISTINCT product_size FROM Products "What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals?",SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 2 List the titles and air dates of episodes that were produced by Billy Fox.,"SELECT T1.title, T1.air_date FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T2.category = 'Produced by' AND T2.role = 'producer' AND T3.name = 'Billy Fox'" What was their activation dates? | do you want the active_from_date or active_to_date or both of them? | Both of them,"SELECT channel_code,active_from_date,active_to_date FROM customer_contact_channels GROUP BY channel_code HAVING count ( customer_id ) < 5" Which Season has a UFL Cup of tbd?,"SELECT season FROM table_name_52 WHERE ufl_cup = ""tbd""" Which position was the World Indoor Championships in a year later than 2008?,"SELECT position FROM table_name_64 WHERE competition = ""world indoor championships"" AND year > 2008" What is the density when simplified shows 南山区?,"SELECT density FROM table_name_33 WHERE simplified = ""南山区""" Find the total balance across checking accounts.,SELECT sum(balance) FROM checking What team has a position of running back and picked after 2?,"SELECT team FROM table_name_44 WHERE pick > 2 AND position = ""running back""" How many GICS sectors have a free float of 0.2391?,"SELECT COUNT(gics_sector) FROM table_20667854_1 WHERE free_float = ""0.2391""" What are the official names of cities that have population over 1500 or less than 500?,SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500 what the average order quantity for all the order items?,SELECT avg ( order_quantity ) from order_items Show the game name that has most number of hours played.,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum(hours_played) DESC LIMIT 1 Which Result has a Round of 6?,"SELECT result FROM table_name_88 WHERE round = ""6""" What is the maximum and mininum number of transit passengers for all airports?,"SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport" When the railroad length is 362 feet how many miles is it from kingston? ,SELECT mi_from_kingston FROM table_16226584_1 WHERE length_feet = 362 what is the phone number of employees whose salary is in the range of 8000 and 12000?,SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000 What are the names of all colleges that have an enrollment greater than at least one of the colleges in OK?,SELECT DISTINCT cName FROM college WHERE enr > ( SELECT min ( enr ) FROM college WHERE state = 'OK' ) What is the average number for a final episode featuring maxine valera?,"SELECT AVG(final_episode) AS Count FROM table_name_99 WHERE character = ""maxine valera""" "Which word has the most appearances in the Wikipedia page with the title of ""Agricultura""? Give the word ID.",SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Agricultura' ORDER BY T2.occurrences DESC LIMIT 1 What was the 2006 population count of the local government area where Coober Pedy is located?,"SELECT pop_2006 FROM table_23685890_2 WHERE major_town = ""Coober Pedy""" What date was the game played with the Cavaliers at home and the Warriors visiting?,"SELECT date FROM table_name_39 WHERE home = ""cavaliers"" AND visitor = ""warriors""" Who was the opposition in the game on July 29?,"SELECT opposition FROM table_name_22 WHERE date = ""july 29""" Which month has the most happy hours?,SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY COUNT(*) DESC LIMIT 1 How many matches were played on May 2008?,"SELECT SUM(CASE WHEN SUBSTR(Match_Date, 7, 1) = '5' THEN 1 ELSE 0 END) FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2008'" What country has a score of 73-72-67=212?,SELECT country FROM table_name_14 WHERE score = 73 - 72 - 67 = 212 How many restaurants have met all requirements in the inspection?,SELECT COUNT(score) FROM inspections WHERE score = 100 "What's the nickname of the school in Maryville, Tennessee?","SELECT nickname FROM table_1973842_2 WHERE location = ""Maryville, Tennessee""" How many different levels do members have?,SELECT count(DISTINCT LEVEL) FROM member What are the names of all male British artists?,"SELECT artist_name FROM artist WHERE country = ""UK"" AND gender = ""Male""" How many students are over 18 and do not have allergy to food type or animal type?,"SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" OR T2.allergytype = ""animal"")" In what platform does the game ID 178 available?,SELECT T3.platform_name FROM game_publisher AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.game_publisher_id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T1.game_id = 178 What was Tom Silver's rank?,"SELECT rank FROM table_name_86 WHERE rider = ""tom silver""" Who is the employee in “New York City” with a good performance? Give the social security number of the employee.,"SELECT T1.firstname, T1.lastname, T1.ssn FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.locationcity = 'New York City' AND T1.performance = 'Good'" what is the district where the incumbent is richard kelly?,"SELECT district FROM table_1341672_10 WHERE incumbent = ""Richard Kelly""" what were his points when he was in 8th position? ,"SELECT points FROM table_24998088_1 WHERE position = ""8th""" What was Collingwood's score when they played against North Melbourne at home?,"SELECT home_team AS score FROM table_name_12 WHERE away_team = ""north melbourne""" What's the attendance when the opponents are cambridge united?,"SELECT attendance FROM table_name_12 WHERE opponents = ""cambridge united""" What is the 2013 with a 2r in 2010 and a qf in 2011?,"SELECT 2013 FROM table_name_49 WHERE 2010 = ""2r"" AND 2011 = ""qf""" "What is the facility type of the establishment named ""Kinetic Playground""?",SELECT facility_type FROM establishment WHERE dba_name = 'Kinetic Playground' Find the number of airports whose name contain the word 'International'.,SELECT COUNT(*) FROM airports WHERE name LIKE '%International%' What team lost on 20 August 1989?,"SELECT losingteam FROM table_name_82 WHERE cup_finaldate = ""20 august 1989""" "What is the percentage of the USA actors that showed up in the credit list of movie ""Mrs. Doubtfire""?",SELECT CAST(SUM(CASE WHEN T3.`Birth Country` = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.`Birth Country`) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Mrs. Doubtfire' List down the first name of coaches who still coach after year 2000.,SELECT DISTINCT T1.firstName FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year > 2000 Who is the driver that has a crew chief Gary Ritter?,"SELECT driver_s_ FROM table_name_18 WHERE crew_chief = ""gary ritter""" "Give the home phone number of the employee who is in charge of ""Savannah"" territory.",SELECT T1.HomePhone FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Savannah' how many zip codes in the county table,SELECT count ( Zip_code ) FROM county What is the Attendance at the game against the Oakland Raiders?,"SELECT attendance FROM table_name_40 WHERE opponent = ""oakland raiders""" Show the Document code for document type code Book?,SELECT document_code FROM documents WHERE document_type_code = 'Book' How many positions were given when 30 points were won? ,"SELECT COUNT(position) FROM table_24330803_1 WHERE points = ""30""" What was the winning score when Damien McGrane was runner-up?,"SELECT winning_score FROM table_name_39 WHERE runner_s__up = ""damien mcgrane""" What was the attendance of april 17?,"SELECT SUM(attendance) FROM table_name_83 WHERE date = ""april 17""" Tell me the surface of 2 december 1974,"SELECT surface FROM table_name_58 WHERE date = ""2 december 1974""" List author affiliation for papers whose topic is Quantum Physics.,SELECT T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Keyword = 'Quantum Physics' "Hello, how many ratings have the same reviewer and director name?",SELECT count ( * ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name What was the total attendance during the home game against the Swindon Wildcats?,"SELECT attendance FROM table_17120964_6 WHERE opponent = ""Swindon Wildcats"" AND venue = ""Home""" Which services type had both successful and failure event details?,SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail' How many professors who are from either Accounting or Biology department?,SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' What is the lost for span 2006- when conv is 0?,"SELECT lost FROM table_name_63 WHERE conv = ""0"" AND span = ""2006-""" What is the College of Rice's highest overall for the guard position?,"SELECT MAX(overall) FROM table_name_62 WHERE position = ""guard"" AND college = ""rice""" "Among students who have been absent for nine months, how many of them are disabled?",SELECT COUNT(T1.name) FROM disabled AS T1 LEFT JOIN longest_absense_from_school AS T2 ON T2.name = T1.name WHERE T2.month = 9 How many movies have a length longer than 100?,SELECT COUNT(film_id) FROM film WHERE length > 100 Count the number of video games with Massively multiplayer online game type .,"SELECT count(*) FROM Video_games WHERE gtype = ""Massively multiplayer online game""" "What are the maximum, minimum, and average booked count for the products booked?","SELECT max(booked_count) , min(booked_count) , avg(booked_count) FROM products_booked" What is the number of generators where the power capicity is 78.7?,"SELECT COUNT(number_of_generators) FROM table_11456251_5 WHERE power_capacity__gw_ = ""78.7""" "For each main industry, what is the total number of companies for the industry with the highest total market value?","SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1" who is the the candidates with incumbent being don fuqua,"SELECT candidates FROM table_1341604_10 WHERE incumbent = ""Don Fuqua""" "What was the result of the game that was played on 3,4,5 Jul 1902?","SELECT result FROM table_name_61 WHERE date = ""3,4,5 jul 1902""" "Find the purchase time, age and address of each member, and show the results in the order of purchase time.","SELECT Time_of_purchase , age , address FROM member ORDER BY Time_of_purchase" Name the least total transfers for romania,"SELECT MIN(total_transfers) FROM table_17650725_1 WHERE country = ""Romania""" Who got the Man of the Series Award in 2010?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T2.Man_of_the_Match = T1.Player_Id INNER JOIN Season AS T3 ON T3.Season_Id = T2.Season_Id WHERE T3.Season_Year = 2010 GROUP BY T1.Player_Name Name the team for record 3-2,"SELECT team FROM table_22654073_6 WHERE record = ""3-2""" which item has the highest rating?,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id order by rating desc limit 1 What is the earliest year of release for the album labelled 艺能动音?,"SELECT MIN(year_of_release) FROM table_name_93 WHERE label_s_ = ""艺能动音""" How many students are enrolled in UCLA school?,SELECT COUNT(name) FROM enrolled WHERE school = 'ucla' What supplier id carries the product name red jeans?,SELECT T1.supplier_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = 'red jeans' Describe the names and capability of the students who were advised by professors from the University of Washington.,"SELECT T3.f_name, T3.l_name, T2.capability FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T1.graduate_from = 'University of Washington'" What was the score of the game when the record was 19–13–3?,"SELECT score FROM table_name_92 WHERE record = ""19–13–3""" "Among the married employees with the highest pay frequency, how many of them have an eastern name style?",SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeePayHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'M' AND T2.NameStyle = 1 AND T3.Rate = ( SELECT Rate FROM EmployeePayHistory ORDER BY Rate DESC LIMIT 1 ) "How many customers have a minimum balance of atleast 30, 000? | Do you mean the saving balance or the checking balance or the sum of the two? | I want saving balance.",SELECT count ( * ) from savings where balance > = 30000 How many years was the total 402?,SELECT COUNT(years) FROM table_14707564_1 WHERE total = 402 Which tone goes with Phonetic of [pʰaː˥˥]?,"SELECT tone FROM table_name_32 WHERE phonetic = ""[pʰaː˥˥]""" What was the total of arlenes vote when craig voted for brian and karen?,"SELECT COUNT(arlenes_vote) FROM table_12305325_4 WHERE craigs_vote = ""Brian and Karen""" "Show the minimum, maximum, average price for all products.","SELECT min(product_price) , max(product_price) , avg(product_price) FROM products" "Show ids, customer ids, names for all accounts.","SELECT account_id, customer_id, account_name FROM Accounts" What is the tie number when the home team was gillingham?,"SELECT tie_no FROM table_name_12 WHERE home_team = ""gillingham""" Which Elimination Move is listed at Elimination 8 for Team Batista?,"SELECT elimination AS Move FROM table_name_90 WHERE team = ""team batista"" AND elimination = ""8""" "The round that had the final, what was the result?","SELECT result FROM table_name_11 WHERE round = ""final""" "Atlanta was a visitor on December 8, what was their record?","SELECT record FROM table_name_68 WHERE visitor = ""atlanta""" "What is Lijsttrekker, when Year is after 1990, and when Chair is ""Ingrid Van Engelshoven""?","SELECT lijsttrekker FROM table_name_51 WHERE year > 1990 AND chair = ""ingrid van engelshoven""" "What is the name when the position was fullback, hooker?","SELECT name FROM table_name_85 WHERE pos = ""fullback, hooker""" Who is iván navarro's opponent?,"SELECT opponent FROM table_name_7 WHERE result = ""iván navarro""" Which Score has an Opponent of seattle?,"SELECT score FROM table_name_62 WHERE opponent = ""seattle""" What stadium was the game played at when the result was hunter mariners def. sheffield eagles?,"SELECT stadium FROM table_name_43 WHERE result = ""hunter mariners def. sheffield eagles""" Tell me the least Laps for grid larger than 2 with 35:26.734,"SELECT MIN(laps) FROM table_name_45 WHERE time = ""35:26.734"" AND grid > 2" "What is Status, when Location is Russia?","SELECT status FROM table_name_69 WHERE location = ""russia""" What is the average number of stars that each reviewer awards for a movie?,"SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name" "What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?","SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')" What is the score points when the total is 16?,"SELECT score_points FROM table_name_35 WHERE total = ""16""" How many methods with solutions with path 'maravillas_linq-to-delicious\tasty.sln'?,SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious\tasty.sln' What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?,"SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'" "Which Player has a Transfer fee of £750,000 [x]?","SELECT player FROM table_name_34 WHERE transfer_fee = ""£750,000 [x]""" "What is the minimum, mean, and maximum age across all students?","SELECT min(age) , avg(age) , max(age) FROM Student" What is the maximum grade point of all students who live in NYC?,"SELECT max ( T2.gradepoint ) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" How many keywords are there in the episode Disciple?,SELECT COUNT(T2.keyword) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Disciple' Which team has an up/down of + 3479?,"SELECT team FROM table_2472711_31 WHERE up_down = ""+ 3479""" What is the average entry in the against column with draws smaller than 0?,SELECT AVG(against) FROM table_name_80 WHERE draws < 0 "What is the average, minimum, maximum, and total transaction amount?","SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions" Calculate the average age of the competitors who participated in the 1924 Winter.,SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1924 Winter' add a column showing the total number of rows in the table race that contain each of the Track_IDs,"SELECT T2.track_id,T2.name,count ( * ) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id" Great! Could you update this list to include the grade of each student?,"SELECT T1.firstname , T1.lastname,Grade FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.lastname = ""MOYER""" "What are the destinations of the flights with air carrier description ""Southeast Alaska Airlines: WEB""?",SELECT T2.DEST FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Southeast Alaska Airlines: WEB' Which object in image 8 is the widest? State its object sample ID.,SELECT OBJ_SAMPLE_ID FROM IMG_OBJ WHERE IMG_ID = 8 ORDER BY W DESC LIMIT 1 How many debates are there?,SELECT count(*) FROM debate Count the number of orchestras that have CD or DVD as their record format.,"SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = ""CD"" OR Major_Record_Format = ""DVD""" "Okay, which driver had the most amount of pit stops?",SELECT T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid order by count ( * ) desc limit 1 "What is the theme, date, and attendance for the exhibition in year 2004?","SELECT T2.theme , T1.date , T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004" "Among the matches held in St. George's Park, give the match ID of the match with the highest winning margin points.",SELECT T2.Match_Id FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.venue_id = T2.venue_id WHERE T1.Venue_Name = 'St George''s Park' ORDER BY T2.Win_Margin DESC LIMIT 1 How many weeks was K.Maro at #1?,"SELECT MAX(weeks_at__number1) FROM table_27441210_12 WHERE artist = ""K.Maro""" Which College/junior/club team has a Round of 4?,SELECT college_junior_club_team FROM table_name_11 WHERE round = 4 What RECNet has elk lake as the city of license?,"SELECT recnet FROM table_name_57 WHERE city_of_license = ""elk lake""" Nice. What is their average salary?,SELECT avg ( salary ) FROM instructor How many students are there?,"SELECT count ( * ) from Person where job = ""student""" Show member names that are not in the Progress Party.,"SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name != ""Progress Party""" How many parties in this table?,SELECT count ( DISTINCT Party ) FROM party The golfer who won in 1993 had what total has his total?,"SELECT SUM(total) FROM table_name_97 WHERE year_s__won = ""1993""" What is the gender of the sponsors?,SELECT T3.Gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID Name the opponents for round of round 5,"SELECT opponents FROM table_name_9 WHERE round = ""round 5""" What are the names and ages of editors?,"SELECT Name , Age FROM editor" What are the first names of students studying in room 107?,SELECT DISTINCT firstname FROM list WHERE classroom = 107 Find the first name of students who are living in the dorm that has most number of amenities.,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY COUNT(*) DESC LIMIT 1) What is the name of the station with station id 3?,SELECT Name FROM station where Station_ID = 3 List pairs of the owner's first name and the dogs's name.,"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id" "When was the school in Philadelphia, Pennsylvania founded?","SELECT founded FROM table_1969577_3 WHERE location = ""Philadelphia, Pennsylvania""" WHo is Winning driver that is in st. petersburg - moscow?,"SELECT winning_driver FROM table_name_73 WHERE name = ""st. petersburg - moscow""" What is the total number of deaths and damage for all storms with a max speed greater than the average?,"SELECT SUM(number_deaths), SUM(damage_millions_USD) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm)" Write down the Social Security numbers of patients who have latex allergies.,SELECT T1.ssn FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Latex allergy' What are the fewest ends with an App(L/C/E) of 51 (44/6/1)?,"SELECT MIN(ends) FROM table_name_3 WHERE app_l_c_e_ = ""51 (44/6/1)""" Count the number of female Professors we have.,"SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = ""Professor""" Who had the high rebounds when the score was l 84–102 (ot)?,"SELECT high_rebounds FROM table_11964154_11 WHERE score = ""L 84–102 (OT)""" Indicate the street numbers where Aux Delices Vietnamese Restaurant are located.,SELECT DISTINCT T1.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'aux delices vietnamese restaurant' Find the name of customers who do not have a saving account.,SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' "How many numbers in the season have an air date of June 3, 2012?","SELECT COUNT(no_in_season) FROM table_28787871_3 WHERE original_air_date = ""June 3, 2012""" How many regions had a life expectancy at birth in 2001-2002 of 75.9?,"SELECT COUNT(hdi) FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = ""75.9""" "Find the total production amount and product names which had ""10 - 500 g pkgs."" as quantity per unit.","SELECT UnitsInStock + UnitsOnOrder, ProductName FROM Products WHERE QuantityPerUnit = '10 - 500 g pkgs.'" What time does the business with ID no.12 open on Monday?,SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id WHERE T1.business_id = 12 AND T2.day_of_week = 'Monday' What about the shortest song?,SELECT duration FROM files ORDER BY duration LIMIT 1 Find number of tracks in each genre?,"SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;" How many orders through distributor were for the minimum quantity?,SELECT SUM(CASE WHEN `Order Quantity` = 1 AND `Sales Channel` = 'Distributor' THEN 1 ELSE 0 END) FROM `Sales Orders` Which category does the podcast titled 'SciFi Tech Talk' belong to?,SELECT T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'SciFi Tech Talk' How many players are listed for the school/club team Washington? ,"SELECT COUNT(name) FROM table_15463188_17 WHERE school_club_team = ""Washington""" What conference does Gonzaga University play in?,"SELECT primary_conference FROM table_16078390_2 WHERE institution = ""Gonzaga University""" What is the main service of train station in london?,select Main_Services from station where Location = 'London' "Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers?",SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthCountry = 'USA' What is the place of the player with a 71-66-64=201 score?,SELECT place FROM table_name_44 WHERE score = 71 - 66 - 64 = 201 "Among the languages used in Baltic Countries, provide the languages which are used by over 80%.",SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Region = 'Baltic Countries' AND T2.Percentage > 80 What is the episode ID that received 2 stars and 9 votes?,SELECT episode_id FROM Vote WHERE stars = 2 AND votes = 9; Tell the number of swimming related events.,SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Swimming' Indicate which is the word that is repeated the most times.,SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words ) Tell me the chassis for team tissot ensign and driver of brett lunger,"SELECT chassis FROM table_name_29 WHERE entrant = ""team tissot ensign"" AND driver = ""brett lunger""" Find the number of patients' prescriptions physician John Dorian made.,"SELECT count(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = ""John Dorian""" Find the name of the scientist who worked on both a project named 'A Matter of Time' and a project named 'A Puzzling Parallax'.,SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax' What was the pic for Canada for player Yvon Bouillon earlier than 1974?,"SELECT AVG(pick) FROM table_name_38 WHERE nationality = ""canada"" AND year < 1974 AND player = ""yvon bouillon""" Which classroom has the most students?,SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1 What was the decision when montreal was at home?,"SELECT decision FROM table_name_12 WHERE home = ""montreal""" Give the number of planes that took off from Los Angeles International airport on 2018/8/27.,"SELECT SUM(CASE WHEN T2.FL_DATE = '2018/8/27' THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'Los Angeles, CA: Los Angeles International'" When was the oldest one? | Did you mean the date | Yes,SELECT date FROM races ORDER BY date LIMIT 1 What is the stock value of every condiments?,SELECT T1.UnitPrice * T1.UnitsInStock FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID What is the ratio between customers who live in Texas and customers who live in Indiana?,SELECT CAST(SUM(CASE WHEN State = 'Texas' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN State = 'Indiana' THEN 1 ELSE 0 END) FROM people Show the grape which scores higher than 90?,SELECT DISTINCT grape FROM wine WHERE score > 90 What are the names of mountains in ascending alphabetical order?,SELECT Name FROM mountain ORDER BY Name ASC What is the outcome of the match with Roger Federer as the opponent?,"SELECT outcome FROM table_name_89 WHERE opponent = ""roger federer""" "What's the population that has a median family income of $50,553?","SELECT COUNT(population) FROM table_name_1 WHERE median_family_income = ""$50,553""" "Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0?",SELECT AVG(total_goals) FROM table_name_82 WHERE league_cup_goals > 0 AND fa_cup_goals > 0 Calculate the average duration of absense of disabled male students.,SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name INNER JOIN male AS T3 ON T3.name = T2.name Record of 0–8 had what result?,"SELECT result FROM table_name_33 WHERE record = ""0–8""" what's the policy id for claim id 143?,"SELECT Policy_ID FROM Claims where Claim_ID = ""143""" list the name of the claim processing stage that most of the claims are on,SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count ( * ) DESC LIMIT 1 What is the nationality of the player Tom Boswell?,"SELECT nationality FROM table_name_74 WHERE player = ""tom boswell""" What is the average number of hosts for parties?,SELECT avg(Number_of_hosts) FROM party What is the smallest played amount when there are 2 draws and an against of more than 73?,SELECT MIN(played) FROM table_name_66 WHERE drawn = 2 AND against > 73 What was the result of the game at the Riverfront Stadium after week 8?,"SELECT result FROM table_name_77 WHERE location = ""riverfront stadium"" AND week = ""8""" How many students play each sport?,"SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname" Calculate the number of international students of University of Wisconsin-Madison in 2013.,SELECT CAST(T1.num_students * T1.pct_international_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013 AND T2.university_name = 'University of Wisconsin-Madison' What day did the VFL play at Junction Oval?,"SELECT date FROM table_name_74 WHERE venue = ""junction oval""" What are the first and last name of the faculty who has the most students?,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1" "What are the last names of female students, ordered by age descending?","SELECT LName FROM STUDENT WHERE Sex = ""F"" ORDER BY Age DESC" "Which Year has a Nominee of stephen sondheim, and a Category of the best original score?","SELECT year FROM table_name_90 WHERE nominee = ""stephen sondheim"" AND category = ""best original score""" Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.,"SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name" What is the airdate when the story is listed as hugh leonard?,"SELECT airdate FROM table_15739098_2 WHERE story = ""Hugh Leonard""" what player matched up with 9,"SELECT player FROM table_name_78 WHERE matches = ""9""" Which stadium has a payout of $3 million?,"SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = ""$3 Million""" What Venue held the World Race Walking Cup tourney before 2008?,"SELECT venue FROM table_name_69 WHERE year < 2008 AND tournament = ""world race walking cup""" which one the first active to date?,select * from customer_contact_channels order by active_to_date limit 1 What is the lowest founded that has bizerte athletic f.c. as the club?,"SELECT MIN(founded) FROM table_name_42 WHERE club = ""bizerte athletic f.c.""" What are the names of wines whose production year are before the year of all wines by Brander winery?,"SELECT Name FROM WINE WHERE YEAR < ( SELECT min ( YEAR ) FROM WINE WHERE Winery = ""Brander"" ) " What is the total number and conference's homepage of papers held in a conference with an ID of 187 during 1990 to 2000?,"SELECT COUNT(T2.ConferenceId), T1.HomePage FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T2.Year BETWEEN 1990 AND 2000 AND T2.ConferenceId = 187" "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.",SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application' What is scored with the position of 6?,SELECT MIN(scored) FROM table_18703133_6 WHERE position = 6 What was the earliest round that Purdue had a pick larger than 10?,"SELECT MIN(round) FROM table_name_16 WHERE college = ""purdue"" AND pick > 10" What is the id and last name of the driver with the longest laptime?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1" Return the hometown that is most common among gymnasts.,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1 How many invoices correspond to each order id?,"SELECT order_id , count(*) FROM Invoices GROUP BY order_id" How many males are there in New Haven County's residential areas?,SELECT SUM(T1.male_population) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'NEW HAVEN' "What is the average Pick, when Player is ""Willie White"",and when Round is less than 2?","SELECT AVG(pick) FROM table_name_82 WHERE player = ""willie white"" AND round < 2" name the date where score time is w 74-63,"SELECT date FROM table_17186229_4 WHERE score_time = ""W 74-63""" What are the different ages of editors? Show each age along with the number of editors of that age.,"SELECT Age , COUNT(*) FROM editor GROUP BY Age" "Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?","SELECT T2.City, T1.Name, T1.IsOnlyStateProvinceFlag FROM StateProvince AS T1 INNER JOIN Address AS T2 ON T1.StateProvinceID = T2.StateProvinceID WHERE T2.AddressID = 15873" What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?,"SELECT AVG(intake) FROM table_name_62 WHERE type = ""primary"" AND ofsted_number = 117433 AND dcsf_number > 3335" What are the names of customers who do not have saving accounts?,SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?,"SELECT english_name FROM table_name_31 WHERE provider_national_government_ = ""ministry of defense"" AND abbreviation = ""nda bōei-dai(防衛大)""" What are the minimum and maximum crime rate of counties?,"SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety" Find the building that has the largest number of faculty members.,SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1 what's the highest lap that contains the driver of graham hill and a grid that is larger than 18?,"SELECT MAX(laps) FROM table_name_34 WHERE driver = ""graham hill"" AND grid > 18" "What are the keywords of the episode ""Shield""?",SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Shield' Give the name of the tallest athlete from Sweden.,SELECT T3.full_name 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 = 'Sweden' ORDER BY T3.height DESC LIMIT 1 What is the difference in overall student enrollment and international student enrollment at the Harvard university from 2011 to 2012?,SELECT SUM(T1.num_students) - SUM(CAST(T1.num_students * T1.pct_international_students AS REAL) / 100) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Harvard University' AND T1.year BETWEEN 2011 AND 2012 "What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?","SELECT MIN(wins) FROM table_name_46 WHERE club = ""broadview hawks"" AND points_against > 594" Show me the Age list of all students,SELECT Age FROM student "What is the Gross Revenue (1979) of the Venue, lyceum theatre?","SELECT gross_revenue__1979_ FROM table_name_83 WHERE venue = ""lyceum theatre""" Name the number of song for solydo,"SELECT COUNT(song) FROM table_19763199_5 WHERE artist = ""Solydo""" What is the nickname of the boy who weighed 810g (26.0 oz.) at birth?,"SELECT nickname FROM table_name_64 WHERE gender = ""boy"" AND weight_at_birth = ""810g (26.0 oz.)""" Who was the builder of Gannet from the United Kingdom?,"SELECT builder FROM table_name_60 WHERE country = ""united kingdom"" AND ship = ""gannet""" What are some companies with more than 200 sales?,SELECT name FROM company WHERE Sales_in_Billion > 200 What are the total payments of customers with no credit limit in 2003?,"SELECT SUM(amount) FROM payments WHERE STRFTIME('%Y', paymentDate) = '2003' AND customerNumber IN ( SELECT customerNumber FROM customers WHERE creditLimit = 0 )" "For each bed type, find the average room price.","SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;" What are the ids of the problems which are reported before 1978-06-26?,"SELECT problem_id FROM problems WHERE date_problem_reported < ""1978-06-26""" "Show the musical nominee with award ""Bob Fosse"" or ""Cleavant Derricks"".","SELECT Nominee FROM musical WHERE Award = ""Tony Award"" OR Award = ""Cleavant Derricks""" What is the class of the product with the most reviews?,SELECT T2.Class FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T2.Class ORDER BY COUNT(T1.ProductReviewID) DESC LIMIT 1 When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?,"SELECT modified_hp FROM table_19704392_1 WHERE standard_torque__lb_ft_ = ""11.53""" Which owner has the time 2:03.00 and the year of 1991 kd?,"SELECT owner FROM table_name_49 WHERE time = ""2:03.00"" AND year = ""1991 kd""" What is the record for May 31?,"SELECT record FROM table_name_83 WHERE date = ""may 31""" Find the last names of the teachers that teach fifth grade.,SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 How many entries for area correspond to a population density of 207.9?,"SELECT COUNT(area__km²_) FROM table_298550_1 WHERE population_density__per_km²_ = ""207.9""" How many employees in the Information Service department work the evening shift?,SELECT COUNT(T2.BusinessEntityID) FROM Department AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN Shift AS T3 ON T2.ShiftId = T3.ShiftId WHERE T1.Name = 'Information Services' AND T3.Name = 'Evening' what about the newest customer?,SELECT customer_id FROM orders ORDER BY date_order_placed desc LIMIT 1 "What is the average Lost when the difference is - 3, and a Played is less than 10?","SELECT AVG(lost) FROM table_name_21 WHERE difference = ""- 3"" AND played < 10" What party was the winner in the district Maryland 6?,"SELECT party FROM table_1341453_22 WHERE district = ""Maryland 6""" How many % same-sex marriages are marriages between men for 923? ,SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE marriages_between_men = 923 "Great, could you tell me the average salary?",SELECT avg ( salary ) FROM Employee "How many clubs does the student named ""Eric Tai"" belong to?","SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Eric"" AND t3.lname = ""Tai""" Name the total number of date of vacancy for manner of departure being resigned and outgoing manager is geninho,"SELECT COUNT(date_of_vacancy) FROM table_14406743_5 WHERE manner_of_departure = ""Resigned"" AND outgoing_manager = ""Geninho""" What is the IHSAA class in Batesville?,"SELECT ihsaa_class FROM table_name_97 WHERE city = ""batesville""" "What is the Series for the uefa cup, in the 2006–07 season, and a Round of group, and an opponent of az?","SELECT series FROM table_name_35 WHERE competition = ""uefa cup"" AND season = ""2006–07"" AND round = ""group"" AND opponent = ""az""" How many tracks belong to rock genre?,"SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" "How many standards are there, when the launch date was 17.04.2006?","SELECT COUNT(standard) FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = ""17.04.2006""" Which province has muju as the capital?,"SELECT province FROM table_name_82 WHERE capital = ""muju""" What are the names of countries that have both players with position forward and players with position defender?,"SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Forward"" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = ""Defender""" "What party has more than 241,310 inhabitants after 2012?",SELECT party FROM table_name_20 WHERE election > 2012 AND inhabitants > 241 OFFSET 310 what is the unit price of the Fast as a shark?,SELECT UnitPrice from Track where name = 'Fast As a Shark' What is the dissolved date of the parliament summoned on 28 February 1467?,"SELECT dissolved FROM table_name_53 WHERE summoned = ""28 february 1467""" WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?,"SELECT semifinalists FROM table_name_28 WHERE tournament = ""paris""" Which team did they play at Rich Stadium?,"SELECT opponent FROM table_14423274_3 WHERE game_site = ""Rich Stadium""" "When Richmond is the Away team, what did they score?","SELECT away_team AS score FROM table_name_2 WHERE away_team = ""richmond""" Name the record that has a stream of l1 and score of l 95–111,"SELECT record FROM table_name_45 WHERE streak = ""l1"" AND score = ""l 95–111""" What was the attendance of the game that lasted 3:55?,"SELECT att FROM table_name_1 WHERE time = ""3:55""" How many providers were founded in 1964?,SELECT COUNT(provider_iai_) FROM table_11390711_4 WHERE foundation = 1964 On what date was the result w 28–7?,"SELECT date FROM table_name_85 WHERE result = ""w 28–7""" Compute the average active time span of contact channels.,SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels What is the lowest number of laps with a grid larger than 24?,SELECT MIN(laps) FROM table_name_14 WHERE grid > 24 "What is the membership card of Breton,Robert?","SELECT Membership_card FROM member where Name = 'Breton, Robert'" Name the most other apps for league goals being 1,SELECT MAX(other_apps) FROM table_2979789_1 WHERE league_goals = 1 What address was the document with id 4 mailed to?,SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4; also Show me the gender of the coaches and players.,"SELECT T3.Player_name, T3.gender, T2.coach_name, T2.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC" What is the roll number of the school with a state authority in Waiotira?,"SELECT roll FROM table_name_76 WHERE authority = ""state"" AND area = ""waiotira""" "What is the lowest score that has t10 as the place, with Ireland as the country?","SELECT MIN(score) FROM table_name_79 WHERE place = ""t10"" AND country = ""ireland""" Which first names are used for professionals or owners but are not used as dog names?,SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling?,"SELECT length_fuel FROM table_name_91 WHERE floor_styling = ""high"" AND year_built = ""2000-2003""" Could you add in the typical buying price of each of those please? | The price of basil is 503.8431967. The price of sesame is 1284268.0659 and price of caraway is 24493 | What are the product descriptions of all products with the color description green?,"SELECT t1.product_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""green""" "What country had the total 18,900 (r)?","SELECT county FROM table_10586064_2 WHERE total = ""18,900 (R)""" Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen,"SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = ""heinz-harald frentzen""" List each donator name and the amount of endowment in descending order of the amount of endorsement.,"SELECT donator_name , sum ( amount ) FROM endowment GROUP BY donator_name ORDER BY sum ( amount ) DESC" Find the distinct names of all songs that have a higher resolution than some songs in English.,"SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = ""english"")" Which Rank has a Qual of 145.144?,"SELECT rank FROM table_name_68 WHERE qual = ""145.144""" Name the sum of played for serik berdalin and drawn more than 4,"SELECT SUM(played) FROM table_name_25 WHERE manager = ""serik berdalin"" AND drawn > 4" Which country in the 2008 summer olympics is vadim devyatovskiy from?,"SELECT country FROM table_name_16 WHERE olympics = ""2008 summer olympics"" AND name = ""vadim devyatovskiy""" Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.,"SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = ""PIT""" "How many Indian movies between 1/2/1990 and 12/30/2003 have revenue of more than 75,000,000 and popularity of no less than 20?",SELECT COUNT(T2.movie_id) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id WHERE T1.revenue > 75000000 AND T1.popularity >= 20 AND T1.release_date BETWEEN '1990-01-01' AND '2003-12-31' What was the outcome for the game that was played on 07-Jun-2010?,"SELECT outcome FROM table_name_8 WHERE date = ""07-jun-2010""" What is the launch date for the Ushio dd-54?,"SELECT launched FROM table_name_55 WHERE name = ""ushio dd-54""" Please list the names of all the games published by 10TACLE Studios.,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '10TACLE Studios' Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue?,"SELECT tail_code FROM table_name_29 WHERE weapon_systems_officer = ""capt charles b. debellevue""" From which year is it?,SELECT T2.Year FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID order by count ( * ) desc limit 1 How many tasks does each project have? List the task count and the project detail.,"SELECT count(*) , T1.project_details FROM Projects AS T1 JOIN Tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id;" What is the country for # 8,SELECT country FROM table_13282157_1 WHERE _number = 8 What about the most common?,SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT ( * ) DESC LIMIT 1 How many incidents of domestic violence occurred in an abandoned building in 2018?,SELECT SUM(CASE WHEN location_description = 'ABANDONED BUILDING' THEN 1 ELSE 0 END) FROM Crime WHERE date LIKE '%2018%' AND domestic = 'TRUE' "If Podiums is 2 and F/Laps are 2, what are the wins?","SELECT wins FROM table_name_80 WHERE podiums = ""2"" AND f_laps = ""2""" Hello. How many people have a weight that is higher than 85?,SELECT count ( * ) FROM people WHERE weight > 85 Please list the IDs of all the trains with at least one car in a non-regular shape.,"SELECT train_id FROM cars WHERE shape IN ('elipse', 'bucket') GROUP BY train_id" What is the average population for an area less than 433.7km and a 23013 code?,SELECT AVG(population) FROM table_name_17 WHERE area__km_2__ < 433.7 AND code = 23013 "Who is the Artist with an Issue Price (BU) [Clarification Needed] of n/a along with a Year larger than 2004, and Mintage (Proof) of 25,000?","SELECT artist FROM table_name_53 WHERE issue_price__bu_[_clarification_needed_] = ""n/a"" AND year > 2004 AND mintage__proof_ = ""25,000""" How many players made 4 touchdowns?,SELECT COUNT(player) FROM table_14342210_14 WHERE touchdowns__5_points_ = 4 Count the number of characteristics.,SELECT count(*) FROM CHARACTERISTICS What are the countries of mountains with height bigger than 5000?,SELECT Country FROM mountain WHERE Height > 5000 "What is the type of vocals that the band member with the last name ""Heilo"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = ""Heilo"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" Which Size has a County of 62 perry?,"SELECT MAX(size) FROM table_name_69 WHERE county = ""62 perry""" What colours have a House Name of ogun?,"SELECT colours FROM table_name_93 WHERE house_name = ""ogun""" How many roller coasters are there?,SELECT count(*) FROM roller_coaster What is the result on 30 june 1995?,"SELECT result FROM table_name_2 WHERE date = ""30 june 1995""" Which station has the highest number of stores? Calculate the said station's average maximum temperature in February 2012.,"SELECT CAST(SUM(T2.tmax) AS REAL) / 29 FROM ( SELECT station_nbr FROM relation GROUP BY station_nbr ORDER BY COUNT(store_nbr) DESC LIMIT 1 ) AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE SUBSTR(T2.`date`, 1, 7) = '2012-02'" What's the average finish in 2008?,SELECT avg_finish FROM table_1909647_2 WHERE year = 2008 Find the name of persons who are friends with Alice for the shortest years.,SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice') Which High rebounds have High points of chris bosh (18)?,"SELECT high_rebounds FROM table_name_50 WHERE high_points = ""chris bosh (18)""" can you show me a list of allergies?,SELECT Allergy FROM Allergy_Type What is the name of every city that has at least 15 stations and how many stations does it have?,"SELECT city , COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15" "Who is the opponent of the game played on November 20, 1995?","SELECT opponent FROM table_name_66 WHERE date = ""november 20, 1995""" In which round was Jerry Butler chosen?,"SELECT round FROM table_name_58 WHERE player = ""jerry butler""" Where is the UFC 110 event with 3 rounds located?,"SELECT location FROM table_name_4 WHERE round = ""3"" AND event = ""ufc 110""" List all the room names booked with 1 adult.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Adults = 1 Hello! How many students are enrolled in the class with the course code of ACCT-211?,SELECT count ( * ) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211' What year did Senator Ken Armbrister take office?,"SELECT took_office FROM table_name_17 WHERE senator = ""ken armbrister""" "List the categories of active businesses in Surprise, AZ.",SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.active LIKE 'TRUE' AND T1.state LIKE 'AZ' AND T1.city LIKE 'Surprise' GROUP BY T3.category_name "How many laps are associated with a grid greater than 8, under 11 points, and will power?","SELECT COUNT(laps) FROM table_name_29 WHERE grid > 8 AND points < 11 AND driver = ""will power""" "How many root beers of the Bulldog were purchased in August, 2014?",SELECT COUNT(T1.BrandID) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.TransactionDate LIKE '2014-08%' AND T3.BrandName = 'Bulldog' What was the religious affiliation for the athletics nicknamed lords/ladies?,"SELECT religious_affiliation FROM table_name_34 WHERE athletics_nickname = ""lords/ladies""" "What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.","SELECT T1.source_system_code , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id" List the income and number of inhabitants of customers with a reference ID greater than the 50% of average of number of false response?,"SELECT T2.INCOME_K, T2.INHABITANTS_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID INNER JOIN Mailings1_2 AS T3 ON T1.ID = T3.REFID WHERE T3.REFID > ( SELECT 0.5 * COUNT(CASE WHEN RESPONSE = 'false' THEN 1 ELSE NULL END) / COUNT(RESPONSE) FROM Mailings1_2 )" "Name the total number of Round in liverpool , england?","SELECT COUNT(round) FROM table_name_73 WHERE location = ""liverpool , england""" How many products have the color description 'red' and the characteristic name 'slow'?,"SELECT count(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""slow""" Who was the first elected for the republican party?,"SELECT first_elected FROM table_name_82 WHERE party = ""republican""" How many different course authors are there?,SELECT COUNT ( DISTINCT author_id ) FROM Course_Authors_and_Tutors How long did Joyce Jacobs portray her character on her show?,"SELECT duration FROM table_name_83 WHERE actor = ""joyce jacobs""" "How many likes did the critic of the movie ""Apocalypse Now"" received after giving the movie a rating score of 5?",SELECT T2.critic_likes FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 0 AND T2.rating_score = 5 AND T1.movie_title = 'Apocalypse Now' List down product ids that were purchased by customers called Abby.,SELECT DISTINCT T1.ProductID FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Abby' What is the name of the department with the fewest members?,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1 How many business are opened for more than 8 hour in Mesa and what is the percentage of the active businesses?,SELECT CAST(SUM(CASE WHEN T1.active = 'true' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) AS ACT FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Mesa' Tell me the qual 1 for jan heylen,"SELECT qual_1 FROM table_name_13 WHERE name = ""jan heylen""" List the author ids listed more than once in the courses,select author_id from Courses group by author_id having count ( author_id ) >1 When was that railway built?,SELECT built FROM railway order by built asc limit 1 What was its denomination?,SELECT Denomination FROM school WHERE Founded < 1890 Show the names of journalists and the names of the events they reported in ascending order,"SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC" Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language.,SELECT title FROM pages WHERE lid = 1 ORDER BY words DESC LIMIT 3 What was the score of cook 3/6?,"SELECT result FROM table_name_40 WHERE goals = ""cook 3/6""" WHAT IS THE BUDGET OF THE BOONDOCK SAINTS?,SELECT Budget_million FROM movie where Title = 'The Boondock Saints' what is the properties of lithium when caesium is ki (1.7)?,"SELECT lithium FROM table_name_17 WHERE caesium = ""ki (1.7)""" What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?,SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18' What are the different regions of clubs in ascending alphabetical order?,SELECT DISTINCT Region FROM club ORDER BY Region ASC Which junior high school has university students and adults of 26mm?,"SELECT junior_high_school__12_15_yrs_ FROM table_name_15 WHERE university_students_and_adults__18yrs + _ = ""26mm""" "When the away team was Carlton, who was the home team?","SELECT home_team FROM table_16388545_1 WHERE away_team = ""Carlton""" Beautiful! Can you update this list to include the stock quantity for all of these shops?,"SELECT T2.Shop_Name,T1.Quantity FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID" Name the play for 1976,SELECT play FROM table_name_20 WHERE year = 1976 Please list any three events that happened on the 1st of May 2016 that have the same latitude of 31.,SELECT event_id FROM events WHERE timestamp LIKE '2016-05-01%' AND latitude = 31 LIMIT 3 Find all airlines that have at least 10 flights.,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10 Name the partner for opponents of alexandra dulgheru magdaléna rybáriková,"SELECT partner FROM table_name_43 WHERE opponents = ""alexandra dulgheru magdaléna rybáriková""" What is his age?,SELECT age FROM Person WHERE gender = 'male' AND age = ( SELECT min ( age ) FROM person WHERE gender = 'male' ) What is the common english word with the abbr of ai?,"SELECT common_english FROM table_name_81 WHERE abbr = ""ai""" "What are the names of gymnasts, ordered by their heights ascending?",SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC How many FTE teachers are there when the student:teacher ration is 19?,"SELECT fte_teachers FROM table_1414743_1 WHERE pupil_teacher_ratio = ""19""" What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?,"SELECT MIN(series_number) FROM table_name_69 WHERE original_air_date < 2009 AND dvd_region_2_release_date = ""26 july 2004"" AND number_of_episodes > 7" Which major has between 2 and 30 number of students? List major and the number of students.,"SELECT Major , count ( * ) FROM Student GROUP BY Major HAVING count ( Major ) BETWEEN 2 AND 30" "Please list the case numbers of all the incidents with the generic description of ""BATTERY"" in the IUCR classification.",SELECT T2.case_number FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.primary_description = 'BATTERY' What are the names and number of hours spent training for each player who trains for less than 1500 hours?,"SELECT pName , HS FROM Player WHERE HS < 1500" How many films did Åke Sandgren direct?,SELECT COUNT(movie_title) FROM movies WHERE director_name = 'Åke Sandgren' who put on the show where the numbers were 227424,SELECT directed_by FROM table_27716091_1 WHERE production_code = 227424 How many statements do we have?,SELECT count(*) FROM Statements How many runs conceded when the earned runs was 4.96?,"SELECT runs_conceded FROM table_15700367_6 WHERE er = ""4.96""" The K-1 MMA Romanex event went how many rounds?,"SELECT COUNT(round) FROM table_name_38 WHERE event = ""k-1 mma romanex""" "What position does the Wales player who made more than 167 appearances, had more than 0 goals, and had a Leeds career from 1977–1982 play?","SELECT position FROM table_name_56 WHERE appearances > 167 AND nationality = ""wales"" AND goals > 0 AND leeds_career = ""1977–1982""" What is the name of the stadium for the city of melfi?,"SELECT stadium FROM table_name_7 WHERE city = ""melfi""" "For the headstamp id of h2, what was the color of the bullet tip?","SELECT bullet_tip_color FROM table_1036189_1 WHERE headstamp_id = ""H2""" Name the country for athens,"SELECT COUNT(country) FROM table_28281704_1 WHERE city = ""Athens""" What is the name of the player from Cod?,"SELECT name FROM table_name_2 WHERE country = ""cod""" "What is the Label of the release on April 24, 2009 in Germany?","SELECT label FROM table_name_2 WHERE region = ""germany"" AND date = ""april 24, 2009""" Who is the runner-up of Atlantic city classic?,"SELECT runner_s__up FROM table_name_42 WHERE tournament = ""atlantic city classic""" Can you give me the price of those books?,SELECT t2.price FROM book as t1 join publication as t2 on t1.book_id = t2.book_id What's the total number of picks for the player Matt Murton?,"SELECT SUM(pick) FROM table_name_25 WHERE player = ""matt murton""" How many hours do the students spend studying in each department?,"SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code" What is the proportion of white males and females in the police force?,SELECT CAST(SUM(gender = 'M') AS REAL) / SUM(gender = 'F') FROM officers WHERE race = 'W' "What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?",SELECT nation FROM table_name_96 WHERE bronze < 7 AND gold > 0 AND total > 7 AND silver < 3 "How many people attended the game with a kickoff time of cbs 1:00pm, in a week earlier than 8, on September 15, 2002?","SELECT attendance FROM table_name_56 WHERE kickoff_time = ""cbs 1:00pm"" AND week < 8 AND date = ""september 15, 2002""" "What is the unit of measurement of product named ""cumin""?","SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""cumin""" Show different nationalities along with the number of hosts of each nationality.,"SELECT Nationality , COUNT(*) FROM HOST GROUP BY Nationality" Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.,"SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = ""John Anthony"")" What state has a Net contribution per capita of $-171?,"SELECT state FROM table_name_67 WHERE net_contribution_per_capita = ""$-171""" What is the number of English names that have a Traditional Chinese name of 全椒縣?,"SELECT COUNT(english_name) FROM table_1982739_2 WHERE traditional_chinese = ""全椒縣""" What stadium is in Seoul?,"SELECT stadium FROM table_name_56 WHERE city = ""seoul""" Which countries are dependent on the British Crown?,SELECT Country FROM politics WHERE Government = 'British crown dependency' What Location has a Team Nickname called the Fighting Missionaries?,"SELECT location FROM table_name_13 WHERE team_nickname = ""fighting missionaries""" what are the life spans of representatives from Indiana?,"SELECT Lifespan FROM representative WHERE State = ""Indiana""" what's the province where member is dingley brittin category:articles with hcards,"SELECT province FROM table_1193568_1 WHERE member = ""Dingley Brittin Category:Articles with hCards""" What is the last date of the staff leaving the projects?,SELECT date_to FROM Project_Staff ORDER BY date_to DESC LIMIT 1; What about the names of right-footed players?,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = ""right""" List any five of user ID who became elite user in 2006.,SELECT user_id FROM Elite WHERE year_id = 2006 LIMIT 5 "Which authors have last name ""Ueno""? List their first names.","SELECT fname FROM authors WHERE lname = ""Ueno""" of the highest number of attendees | Did you mean to ask for the performance id of the performance with the highest number of attendees? | yes,SELECT Performance_ID FROM performance ORDER BY Attendance DESC LIMIT 1 How many of those drivers placed in the top 3 of any race?,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 t2.rank < 3 What is the minimum position when points are 32 and wins are greater than 13?,SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 13 What is the name when senior is the year with the # less than 10.0?,"SELECT name FROM table_22496344_1 WHERE year = ""Senior"" AND _number < 10.0" What is the primary conference that was founded before 1866 and has an affiliation of private/catholic?,"SELECT primary_conference FROM table_name_58 WHERE founded < 1866 AND affiliation = ""private/catholic""" how many project staff there,SELECT count ( * ) FROM Project_Staff Show all member names who are not in charge of any event.,SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id Which address do not have any member with the black membership card?,SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card = 'Black' What are the total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region?,SELECT SUM(T1.Sales) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Hon Valutask Swivel Chairs' AND T1.Region = 'West' Show the name and phone for customers with a mailshot with outcome code 'No Response'.,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'" "How many weeks have an attendance of 64,116?","SELECT COUNT(week) FROM table_name_40 WHERE attendance = ""64,116""" Which customer ordered 1939 'Chevrolet Deluxe Coupe' at the highest price?,SELECT t4.customerName FROM products AS t1 INNER JOIN orderdetails AS t2 ON t1.productCode = t2.productCode INNER JOIN orders AS t3 ON t2.orderNumber = t3.orderNumber INNER JOIN customers AS t4 ON t3.customerNumber = t4.customerNumber WHERE t1.productName = '1939 Chevrolet Deluxe Coupe' ORDER BY t2.priceEach DESC LIMIT 1 What was the result on week 6?,SELECT result FROM table_name_42 WHERE week = 6 "Return the last name, id and phone number of the customer who has made the greatest number of orders.","SELECT T2.customer_last_name , T1.customer_id , T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1" Who are the rowers for Australia?,"SELECT rowers FROM table_name_54 WHERE country = ""australia""" What proportion of a pair of words in the Catalan language have been repeated less than 80 times?,SELECT CAST(COUNT(CASE WHEN occurrences < 80 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM biwords What is the minimum snatch score?,SELECT min(snatch) FROM body_builder What year was stage 8 reached?,"SELECT year FROM table_name_54 WHERE stages = ""8""" Please give the name of the customer who has made the single order with the highest total price.,SELECT T2.c_name FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey ORDER BY T1.o_totalprice DESC LIMIT 1 Provide the title of the books published in British-English.,SELECT DISTINCT T1.title FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'British English' "Find the name, checking balance and saving balance of all accounts in the bank.","SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid" What is the area of the city in the Sargodha district?,"SELECT COUNT(city_area_km_2__) FROM table_18425346_2 WHERE district = ""Sargodha district""" What are the ids of documents that have 2 or more paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2 What are the names and college names of all players who have over 700 training hours?,"SELECT T1.pName,T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 700" In the reviews of September 2014. Which brand of beers obtained the highest star ratings?,SELECT DISTINCT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 AND T2.ReviewDate BETWEEN '2014-09-01' AND '2014-09-30' What package/option has sky arte hd as the television service?,"SELECT package_option FROM table_name_51 WHERE television_service = ""sky arte hd""" Find the first name and gender of student who have more than one pet.,"SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1" How many shipments were shipped to the most densely populated city?,SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.area / T2.population DESC LIMIT 1 "What is the composition of the coin that was issued after 2008, had a mintage larger than 999, and was designed by Jody Broomfield?","SELECT composition FROM table_name_76 WHERE mintage > 999 AND artist = ""jody broomfield"" AND year > 2008" What school did Patrick O'Bryant play for?,"SELECT school_club_team FROM table_10015132_14 WHERE player = ""Patrick O'Bryant""" What is listed in new points when status is second round lost to xavier malisse?,"SELECT MIN(new_points) FROM table_29572583_19 WHERE status = ""Second round lost to Xavier Malisse""" What are the names of customers who do not have any policies?,SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id What was the margin of victory over Brad Faxon?,"SELECT margin_of_victory FROM table_name_51 WHERE runner_s__up = ""brad faxon""" What is the away team of match 9?,"SELECT away_team FROM table_name_52 WHERE match_no = ""9""" What is the total number of gas stations that opened between 2000 and 2005?,SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005 What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?,"SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Latin"" OR T1.Name = ""Pop""" What is the away team's score when south melbourne is the away team?,"SELECT away_team AS score FROM table_name_36 WHERE away_team = ""south melbourne""" "What is the average draws with more than 1 win, 14 losses, and against less than 1836?",SELECT AVG(draws) FROM table_name_17 WHERE wins > 1 AND losses = 14 AND against < 1836 What is the earliest week that the Texans played at the Cleveland Browns Stadium?,"SELECT MIN(week) FROM table_name_10 WHERE game_site = ""cleveland browns stadium""" When was the Super B capacity reached when the number of truck loads north was 7735?,SELECT super_b_capacity_reached_[_citation_needed_] FROM table_12791809_1 WHERE number_of_truck_loads_north = 7735 Who was the host team at Louisiana Superdome when the final score was 10-20?,"SELECT host_team FROM table_name_21 WHERE stadium = ""louisiana superdome"" AND final_score = ""10-20""" What type of surface was played at the tournament in berlin?,"SELECT surface FROM table_name_16 WHERE tournament = ""berlin""" Make a list of all the territories in the Southern region.,SELECT DISTINCT T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Southern' Where were the New York Jets visiting?,"SELECT stadium FROM table_name_65 WHERE visiting_team = ""new york jets""" What finish has a total of more than 289 and won in 1979?,"SELECT finish FROM table_name_54 WHERE total > 289 AND year_s__won = ""1979""" Show origins of all flights with destination Honolulu.,"SELECT origin FROM Flight WHERE destination = ""Honolulu""" "What company has the highest market value? | Did you mean the max Profits_in_Billion? | No, I mean Market_Value_in_Billion.",SELECT Name FROM company order by Market_Value_in_Billion desc limit 1 Which year was the vessel Deva built as a Panamax DNV class ship?,"SELECT SUM(built) FROM table_name_54 WHERE class = ""dnv"" AND type = ""panamax"" AND vessel_name = ""deva""" Show ids for all the male faculty.,SELECT FacID FROM Faculty WHERE Sex = 'M' Find the saving balance of the account with the highest checking balance.,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 Who was the captain-keeper of Rising Pune Supergiants?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Team AS T3 ON T2.Team_Id = T3.Team_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id WHERE T3.Team_Name = 'Rising Pune Supergiants' AND T4.Role_Desc = 'CaptainKeeper' GROUP BY T1.Player_Name When was the score 3-6 4-6?,"SELECT date FROM table_name_3 WHERE score = ""3-6 4-6""" When turquoise is the map colour what is the length?,"SELECT length FROM table_17839_1 WHERE map_colour = ""Turquoise""" "How many ranks have 1:01.14.62 as the time, with michael russell as the rider?","SELECT COUNT(rank) FROM table_name_98 WHERE time = ""1:01.14.62"" AND rider = ""michael russell""" When was the last win of Celtic?,"SELECT last_win FROM table_name_89 WHERE club = ""celtic""" Please give me all the delegates's names from Liberal party in Appropriations committee,"SELECT T1.delegate FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal"" and T1.committee = ""Appropriations""" What is the record on June 13?,"SELECT record FROM table_name_57 WHERE date = ""june 13""" What is the number of 2011 passengers in millions that have traveled a distance of 1271km?,"SELECT 2011 AS _passengers__in_millions_ FROM table_name_37 WHERE distance = ""1271km""" Which Performance has a Usage of hepa and a Class of h14?,"SELECT performance FROM table_name_38 WHERE usage = ""hepa"" AND class = ""h14""" What number missile led to damage to the Islamic University campus?,"SELECT MIN(no) FROM table_23014685_1 WHERE area_damaged = ""Islamic University campus""" "Hello, how many members are there?",SELECT count ( * ) FROM member What region has the date of 2005 and Playground Music Scandinavia as a label?,"SELECT region FROM table_name_16 WHERE date = ""2005"" AND label = ""playground music scandinavia""" What is Walt Disney Pictures' most popular movie?,SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Walt Disney Pictures' ORDER BY T3.popularity DESC LIMIT 1 Tell the number of games whose publisher id is 352.,SELECT DISTINCT T.game_id FROM game_publisher AS T WHERE T.publisher_id = 352 Find the total capacity of all dorms.,SELECT sum(student_capacity) FROM dorm What is the Verb meaning when part 1 is alan?,"SELECT verb_meaning FROM table_name_16 WHERE part_1 = ""alan""" "How many members does the club ""Tennis Club"" has?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" Who has the heaviest weight?,SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id ORDER BY T2.weight_in_kg DESC LIMIT 1 What is the average pick of San Diego State?,"SELECT AVG(pick) FROM table_name_63 WHERE college = ""san diego state""" Name the builder for number 3,SELECT builder FROM table_name_64 WHERE number = 3 "What is the total number of values for attendance for the date October 1, 1978?","SELECT COUNT(attendance) FROM table_14945112_1 WHERE date = ""October 1, 1978""" What was the Opponent at Arrowhead Stadium?,"SELECT opponent FROM table_name_97 WHERE game_site = ""arrowhead stadium""" What is the position when lost is less than 7?,SELECT AVG(position) FROM table_name_60 WHERE lost < 7 Tell the number of flights that landed at Lake Charles Regional Airport on 2018/8/15.,"SELECT COUNT(T1.Code) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/15' AND T1.Description = 'Lake Charles, LA: Lake Charles Regional'" What is the difference in the average age of players when they are drafted in the ABA vs when they are drafted in the NBA between the years 1970 and 1970?,"SELECT CAST(SUM(IIF(T2.lgID = 'ABA', 1970 - strftime('%Y', T3.birthDate), 0)) AS REAL) / COUNT(IIF(T2.lgID = 'ABA', 1, 0)) - CAST(SUM(IIF(T2.lgID = 'NBA', 1970 - strftime('%Y', T3.birthDate), 0)) AS REAL) / COUNT(IIF(T2.lgID = 'NBA', 1, 0)) FROM draft AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID INNER JOIN players AS T3 ON T2.playerID = T3.playerID WHERE T1.draftYear BETWEEN 1970 AND 1970" How many accounts does each customer have? List the number and customer id.,"SELECT count(*) , customer_id FROM Accounts GROUP BY customer_id" What's Round has a Surface of hard and Opponent of Jelena Simic?,"SELECT round FROM table_name_51 WHERE surface = ""hard"" AND opponent = ""jelena simic""" "What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?","SELECT rank FROM table_name_14 WHERE headquarters = ""united kingdom"" AND sales__billion_$_ = 370.9" "What is Country, when Total is greater than 283, and when Year(s) Won is ""1989""?","SELECT country FROM table_name_90 WHERE total > 283 AND year_s__won = ""1989""" List out the number of students who filed for bankruptcy and enlisted in navy.,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name WHERE T1.organ = 'navy' What country was rank 4?,"SELECT country FROM table_name_43 WHERE rank = ""4""" What Time is listed for the Loss of Okajima (1-2)?,"SELECT time FROM table_name_72 WHERE loss = ""okajima (1-2)""" "What is the lowest wins with points larger than 46, and a rank of 10th?","SELECT MIN(wins) FROM table_name_55 WHERE points > 46 AND rank = ""10th""" What is the main service for the station with 14.849 million passengers 2011-12? ,"SELECT main_services FROM table_18118221_1 WHERE total_passengers__millions__2011_12 = ""14.849""" What is the average capacity for the farm at Gortahile having more than 8 turbines?,"SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = ""gortahile"" AND turbines > 8" What is the maximum capacity of all of the rooms?,SELECT max ( capacity ) FROM classroom What is the sum of poles of the firestone indy lights series before the 2009 season?,"SELECT SUM(poles) FROM table_name_73 WHERE series = ""firestone indy lights series"" AND season < 2009" Show ids for all documents in type CV without expense budgets.,"SELECT document_id FROM Documents WHERE document_type_code = ""CV"" EXCEPT SELECT document_id FROM Documents_with_expenses" What is the total number of students?,SELECT count(*) FROM Student What was the date of the victory when the Axis Unit was 5./jg 3?,"SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = ""5./jg 3""" "What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points?",SELECT MAX(played) FROM table_name_62 WHERE drawn > 0 AND lost < 3 AND points < 27 Which city is post code 255 located in?,SELECT city FROM addresses WHERE zip_postcode = 255 How many episodes were written by Kirstie Falkous & John Regier?,"SELECT COUNT(episode_no) FROM table_21025437_2 WHERE written_by = ""Kirstie Falkous & John Regier""" "What is Date, when Runner(s)-Up is ""Bo-Mee Lee""?","SELECT date FROM table_name_65 WHERE runner_s__up = ""bo-mee lee""" Tell me the lens zoom for aperture of model s2600,"SELECT lens_35mmequiv__zoom, _aperture FROM table_name_39 WHERE model = ""s2600""" Return the description and unit of measurement for products in the 'Herbs' category.,"SELECT product_category_description , unit_of_measure FROM ref_product_categories WHERE product_category_code = ""Herbs""" "Give me enzymes with interaction type ""inhibitor""",select distinct name from enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE interaction_type = 'inhibitor' "In total, all the students in the 3rd year of their program are advised by how many professors?",SELECT COUNT(DISTINCT T1.p_id_dummy) FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_3' What are the personal names used both by some course authors and some students?,SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students Find the number of scientists who are not assigned to any project.,SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) How many Italian regions are bordered by the Mediterranean Sea? How deep is the Mediterranean Sea?,"SELECT COUNT(DISTINCT T2.province), T3.Depth FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country INNER JOIN sea AS T3 ON T3.Name = T2.Sea WHERE T1.Code = 'I' AND T3.Name = 'Mediterranean Sea' GROUP BY T3.Depth" What Norwegian title has 218 pages and Translated Title of Breaking Dawn?,"SELECT norwegian_title FROM table_name_37 WHERE pages = 218 AND translated_title = ""breaking dawn""" What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?,"SELECT score FROM table_name_12 WHERE result = ""hunter mariners def. castleford tigers""" What is the number of cars with a horsepower greater than 150?,SELECT count(*) FROM CARS_DATA WHERE horsepower > 150; "Show the distinct fate of missions that involve ships with nationality ""United States""","SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = ""United States""" What rank is 愛のバカ on the Japanese singles chart?,"SELECT COUNT(oricon) FROM table_10979230_4 WHERE japanese_title = ""愛のバカ""" What is the grant start date of the organizations described as research?,SELECT grant_start_date FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' "What driver has a grid of under 10, and under 70 laps?",SELECT driver FROM table_name_84 WHERE grid < 10 AND laps < 70 What city is the headquarter of the store Blackville?,"SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = ""Blackville""" what is the year built of kyrkjebø?,"SELECT AVG(year_built) FROM table_name_20 WHERE sub_parish__sogn_ = ""kyrkjebø""" Name of customer whose order is applied with the highest discount.,SELECT T3.c_name FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey INNER JOIN customer AS T3 ON T1.o_custkey = T3.c_custkey ORDER BY T2.l_discount DESC LIMIT 1 Can you list driver iDs for all drivers that had first position in laptime at least twice?,SELECT T1.driverid FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count ( * ) > = 2 Who's the incumbent in the district that first elected in 1969?,SELECT incumbent FROM table_1341453_51 WHERE first_elected = 1969 What year was Norterma Tholus created?,"SELECT MAX(year_named) FROM table_16799784_4 WHERE name = ""Norterma Tholus""" Show the names of people that are on affirmative side of debates with number of audience bigger than 200.,SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 What was the score for the opponent against Katerina Maleeva in the final?,"SELECT score FROM table_name_83 WHERE opponent_in_the_final = ""katerina maleeva""" What is the money for the player with a score of 68-69-67-73=277?,SELECT money___$__ FROM table_name_72 WHERE score = 68 - 69 - 67 - 73 = 277 Who was the team played on January 23?,"SELECT team FROM table_17311759_6 WHERE date = ""January 23""" "Which catalogue has essential, castle music as it's label?","SELECT catalogue FROM table_name_46 WHERE label = ""essential, castle music""" Count the number of captains younger than 50 of each rank.,"SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank" And what are their headquarters?,"Select name, headquarter from manufacturers" "How many paying subscribers gave a rating to the movie ""One Flew Over the Cuckoo's Nest""?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN ratings_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'One Flew Over the Cuckoo''s Nest' AND T3.user_has_payment_method = 1 Name the first air date for 9 episode,SELECT first_air_date FROM table_20971444_3 WHERE episode = 9 what is the Nationality of Herbert Swindells,"SELECT Nationality FROM journalist WHERE Name = ""Herbert Swindells""" What Frequency has the Identifier of CBFX-FM-6?,"SELECT frequency FROM table_name_53 WHERE identifier = ""cbfx-fm-6""" How many orders were shipped by the sales team with the highest amount of shipped orders in 2020? Give the name of the said sales team.,"SELECT COUNT(T1.OrderNumber), T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.ShipDate LIKE '%/%/20' GROUP BY T2.`Sales Team` ORDER BY COUNT(T1.OrderNumber) DESC LIMIT 1" First elected in 1807 1817 in what district?,"SELECT district FROM table_2668336_17 WHERE first_elected = ""1807 1817""" What is the Week of the game with a Result of L 24-0?,"SELECT MAX(week) FROM table_name_44 WHERE result = ""l 24-0""" How many were in attendance in a week less than 4 with a record of 2–1?,"SELECT attendance FROM table_name_81 WHERE week < 4 AND record = ""2–1""" Show the names of members and the dates of performances they attended in descending order of attendance of the performances.,"SELECT T2.Name , 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 ORDER BY T3.Attendance DESC" What home team plays at glenferrie oval?,"SELECT home_team FROM table_name_5 WHERE venue = ""glenferrie oval""" Which employee received the most awards in evaluations? Give me the employee name.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1 What is we two where you two is ngipen?,"SELECT we_two FROM table_1015914_24 WHERE you_two = ""ngipen""" "What are the distinct nominees of the musicals with the award that is not ""Tony Award""?","SELECT DISTINCT Nominee FROM musical WHERE Award <> ""Tony Award""" Who has the high points when 53-27 is the record?,"SELECT high_points FROM table_23284271_10 WHERE record = ""53-27""" "For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.","SELECT T3.Location , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age" What country is Eugene McDowell from?,"SELECT nationality FROM table_name_22 WHERE player = ""eugene mcdowell""" Which class has a Year of 1968?,SELECT class FROM table_name_36 WHERE year = 1968 Find the number of classes offered for all class rooms that held at least 2 classes.,"SELECT count(*) , class_room FROM CLASS GROUP BY class_room HAVING count(*) >= 2" "How many products have the characteristic named ""hot""?","SELECT count(*) 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 t3.characteristic_name = ""hot""" Which countries have at least 3 cities?,SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3 What is the smallest number of events with 24 cuts and less than 11 in the top-25?,SELECT MIN(events) FROM table_name_34 WHERE cuts_made = 24 AND top_25 < 11 Who was the visiting team on January 27?,"SELECT visitor FROM table_name_24 WHERE date = ""january 27""" "When the duration was 11 min, 34 sec, what was the feathered (Fxx)?","SELECT feathered__fxx_ FROM table_name_37 WHERE duration = ""11 min, 34 sec""" Which level is quarterfinals domestic cup?,"SELECT level FROM table_name_22 WHERE domestic_cup = ""quarterfinals""" What years does plateau school serve?,"SELECT years FROM table_name_96 WHERE name = ""plateau school""" When did eateries from San Bruno city get highest score in inspection?,SELECT T1.`date` FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'SAN BRUNO' ORDER BY T1.score DESC LIMIT 1 what is the average tie no when the home team is stamford a.f.c.?,"SELECT AVG(tie_no) FROM table_name_11 WHERE home_team = ""stamford a.f.c.""" What are the names of the directors who made exactly one movie excluding director NULL?,"SELECT director FROM Movie WHERE director != ""null"" GROUP BY director HAVING count(*) = 1" What's the sum of the attendance for the calgary home team?,"SELECT SUM(attendance) FROM table_name_23 WHERE home = ""calgary""" What college did the placekicker go to?,"SELECT college FROM table_name_67 WHERE position = ""placekicker""" Show the average price range of hotels that have 5 star ratings and allow pets.,"SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = ""5"" AND pets_allowed_yn = 1" What city has the home team of the brisbane broncos?,"SELECT city FROM table_name_88 WHERE home_team_s = ""brisbane broncos""" What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?,"SELECT democratic_ticket FROM table_name_76 WHERE workers_ticket = ""franklin p. brill""" "Which Length has a Taper of #15, and a Large end larger than 1.875?","SELECT MAX(length) FROM table_name_92 WHERE taper = ""#15"" AND large_end > 1.875" What's the production code of the episode seen by 7.49 million people in the US?,"SELECT production_code FROM table_23242950_1 WHERE us_viewers__millions_ = ""7.49""" Which Lead has a Third of jeanne ellegaard?,"SELECT lead FROM table_name_56 WHERE third = ""jeanne ellegaard""" Who is the incumbent candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%?,"SELECT incumbent FROM table_1342013_41 WHERE candidates = ""Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%""" Please list the flight numbers of all the flights operated by American Airlines Inc. that were scheduled to depart from John F. Kennedy International.,"SELECT T2.OP_CARRIER_FL_NUM FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' AND T1.Description = 'New York, NY: John F. Kennedy International' AND T2.FL_DATE = '2018/8/1'" Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?,"SELECT constructor FROM table_name_89 WHERE tyre = ""c"" AND pole_position = ""eugenio castellotti""" Which company had the most orders in 1998?,"SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y', T2.OrderDate) = '1998' GROUP BY T1.CompanyName ORDER BY COUNT(T2.OrderID) DESC LIMIT 1" For what league was the player in G position drafted?,"SELECT league_from FROM table_name_87 WHERE position = ""g""" what are the number of rooms that do not have any reservations ?,SELECT count ( * ) FROM rooms WHERE roomid NOT IN ( SELECT DISTINCT room FROM reservations ) Show me how much time was spent at each restaurant.,"SELECT Restaurant.ResName, sum ( Visits_Restaurant.Spent ) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID group by restaurant.resid" What are the names and budgets of departments with budgets greater than the average?,"SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)" Who is every successor for the Washington 3rd District?,"SELECT successor FROM table_2159571_2 WHERE district = ""Washington 3rd""" What is the average number of games drawn among teams that played over 14 games?,SELECT AVG(drawn) FROM table_name_53 WHERE played > 14 Find the title of the course that is offered by more than one department.,SELECT title FROM course GROUP BY title HAVING COUNT(*) > 1 What year was the play-by-play for Don Earle?,"SELECT year FROM table_name_84 WHERE play_by_play = ""don earle""" "ok,what is the maximum duration of trip with bike id 636?",SELECT max ( duration ) FROM trip WHERE bike_id = 636 list all wineries available.,select distinct Winery from wine How many values for earpads correspond to the headphone class Prestige and a US MSRP of $79?,"SELECT COUNT(earpads) FROM table_1601027_1 WHERE headphone_class = ""Prestige"" AND us_msrp = ""$79""" "An American rapper '2Pac' released his first solo album in 1991, how many years have passed until his next album was released?","SELECT ( SELECT groupYear FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'album' ORDER BY groupYear LIMIT 1, 1 ) - groupYear FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'album' AND groupYear = 1991" Who was the player that had drawn 1 and tried for 20?,"SELECT played FROM table_name_76 WHERE drawn = ""1"" AND tries_for = ""20""" How many app IDs were included under science fiction category?,SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T2.label_id = T1.label_id WHERE T1.category = 'science fiction' How many vacation hours do the male employees have on average?,SELECT CAST(SUM(T1.VacationHours) AS REAL) / COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'M' AND T2.PersonType = 'EM' What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?,"SELECT 2012 FROM table_name_88 WHERE 2011 = ""7.7%"" AND 2008 = ""7.9%""" "Which event had a prize of $2,434,061?","SELECT name FROM table_name_61 WHERE prize = ""$2,434,061""" What was the role for BBC1?,"SELECT role FROM table_name_20 WHERE broadcaster = ""bbc1""" List the cities which have more than 2 airports sorted by the number of airports.,SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*) The one I asked before,SELECT t1.journal_id FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo' "What are the name of entrepreneurs whose investor is not ""Rachel Elnaugh""?","SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor! = ""Rachel Elnaugh""" Name the number of troops for troops per $1 billion being 2.45,"SELECT COUNT(number_of_troops) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = ""2.45""" Can you tell me how many events are at each party?,SELECT count ( * ) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id Find the name of all students who were in the tryout sorted in alphabetic order.,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName What is the player with the no. 14?,"SELECT player FROM table_name_41 WHERE no_s_ = ""14""" "What Championship has an Opponent in the final of aaron krickstein, and a Score in the final of 7–5, 6–2?","SELECT championship FROM table_name_86 WHERE opponent_in_the_final = ""aaron krickstein"" AND score_in_the_final = ""7–5, 6–2""" "What is the nationality of all Utah Jazz Players, that played 2011-present?","SELECT nationality FROM table_name_53 WHERE years_for_jazz = ""2011-present""" "Who was the director for the episode on May 2, 1959?","SELECT director FROM table_25800134_3 WHERE airdate = ""May 2, 1959""" Find the first names and last names of male (sex is M) faculties who live in building NEB.,"SELECT Fname , Lname FROM FACULTY WHERE sex = ""M"" AND Building = ""NEB""" What is the average Elitestar rating for a Yelp_Business that closes at 12PM on Sundays?,"SELECT CAST(SUM(T3.stars) AS REAL) / COUNT(T1.business_id) AS ""average stars"" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Sunday' AND T1.closing_time LIKE '12PM'" "Which ERP W has a Class of A, and a Call sign of wffc?","SELECT erp_w FROM table_name_50 WHERE class = ""a"" AND call_sign = ""wffc""" "It was announced on July 2, 2006 that what asset was acquired? ","SELECT asset_acquired FROM table_1373542_1 WHERE date_announced = ""July 2, 2006""" List all pilot names in ascending alphabetical order.,SELECT Name FROM pilot ORDER BY Name Could you please find all the names of the students who took some course and got an A?,"SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A'" What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?,"SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100" Find the capacity and gender type of the dorm whose name has substring ‘Donor’.,"SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%'" What's the Bronze with the Year of 1998?,SELECT bronze FROM table_name_52 WHERE year = 1998 What was the region for Malartic with 159.31 km2?,"SELECT COUNT(region) FROM table_name_14 WHERE name = ""malartic"" AND area__km_2__ < 159.31" What is the population of the settlement with the cyrillic name of добрица?,"SELECT MAX(population__2011_) FROM table_2562572_44 WHERE cyrillic_name_other_names = ""Добрица""" What is the to par of player notah begay iii from the United States?,"SELECT to_par FROM table_name_59 WHERE country = ""united states"" AND player = ""notah begay iii""" What is the series code for number of infant deaths in year 1965 for the country whose full name is Islamic State of Afghanistan?,SELECT DISTINCT T3.Seriescode FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T2.CountryCode = T3.Countrycode WHERE T2.IndicatorName = 'Number of infant deaths' AND T1.LongName = 'Islamic State of Afghanistan' AND T2.Year = 1965 What are the name of the countries where there is not a single car maker?,SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country; "What year was the average attendance 80,388?","SELECT AVG(year) FROM table_name_24 WHERE attendance = ""80,388""" "What's of rating on the movie ""Innocence Unprotected"" by the user who created the movie list ""250 Favourite Films""?",SELECT T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T2.movie_title = 'Innocence Unprotected' AND T3.list_title = '250 Favourite Films' Report the first name and last name of all the teachers.,"SELECT DISTINCT firstname , lastname FROM teachers" Can you also provide the number of credits for each of those courses?,"SELECT T1.credits,T1.course_id FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count ( * ) > 1" What was the gender for the integrated authority with a roll of 142?,"SELECT gender FROM table_name_15 WHERE authority = ""integrated"" AND roll = 142" "What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?","SELECT winner FROM table_name_70 WHERE week_of = ""8 may"" AND semi_finalists = ""helena suková mary pierce"" AND runner_up = ""conchita martínez patricia tarabini""" "The song ""Once Upon a Dream"" is associated with the movie directed by whom?",SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.song = 'Once Upon a Dream' What date was the Doncaster race? ,"SELECT date FROM table_2581397_5 WHERE race = ""Doncaster""" What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?,"SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor" Which customer had 3 orders?,SELECT * FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id having count ( * ) = 3 And which also have auto loans?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' What is the character name that has phyllis welch as the leading lady?,"SELECT character_name FROM table_name_97 WHERE leading_lady = ""phyllis welch""" What is the title of the game that gained the most sales in Japan?,SELECT T.game_name FROM ( SELECT T5.game_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN game AS T5 ON T4.game_id = T5.id WHERE T1.region_name = 'Japan' ORDER BY T2.num_sales DESC LIMIT 1 ) t "What is the average Ties, when Played is greater than 5?",SELECT AVG(ties) FROM table_name_68 WHERE played > 5 What is the Venue when the result was 2-1?,"SELECT venue FROM table_name_60 WHERE result = ""2-1""" In what Season were then less than 3 Races with less than 1 Win?,SELECT AVG(season) FROM table_name_51 WHERE races < 3 AND wins < 1 What was the final score of the game held on February 24?,"SELECT score FROM table_22883210_8 WHERE date = ""February 24""" Give the name of the movie with a revenue of 559852396.,SELECT title FROM movie WHERE revenue = 559852396 "What week has a date of September 3, 2000?","SELECT AVG(week) FROM table_name_98 WHERE date = ""september 3, 2000""" What is the street address of Notre Dame Basilica?,"SELECT street_address FROM table_name_74 WHERE name = ""notre dame basilica""" Name the played with try bonus of 6 and drawn of 0,"SELECT played FROM table_name_76 WHERE try_bonus = ""6"" AND drawn = ""0""" "What are the distinct nominees of the musicals with the award that is not ""Tony Award""?","SELECT DISTINCT Nominee FROM musical WHERE Award != ""Tony Award""" how many statuses are there,SELECT count ( * ) from status "Among the employees working as Sales Representatives, how many of them are located in the UK?",SELECT COUNT(Country) FROM Employees WHERE Title = 'Sales Representative' AND Country = 'UK' How many ties do teams with 25 Goals For and more than 5 wins have?,SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5 How many numbers have sp of 20/1 and a finishing position of fence 19?,"SELECT COUNT(number) FROM table_19624708_1 WHERE sp = ""20/1"" AND finishing_position = ""Fence 19""" How many networks run on virtual channel 23.4?,"SELECT COUNT(network) FROM table_2857352_3 WHERE virtual_channel = ""23.4""" Return the sum of all payment amounts.,SELECT sum(amount) FROM payment Can you rank the faculty for me by ID | what ID did you want to order by ? | How many students were advised by professors?,"SELECT count ( * ) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor where T1.Rank = ""Professor""" What is the device model used by the most female users over 30?,"SELECT T.device_model FROM ( SELECT T2.device_model, COUNT(T2.device_model) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age > 30 AND T1.gender = 'F' GROUP BY T2.device_model ) AS T ORDER BY T.num DESC LIMIT 1" Which two products has the highest and lowest expected profits? Determine the total price for each product in terms of the largest quantity that was ordered.,"SELECT T2.productName, SUM(T1.quantityOrdered * T1.priceEach) FROM orderdetails AS T1 INNER JOIN ( SELECT productCode, productName FROM products ORDER BY MSRP - buyPrice DESC LIMIT 1 ) AS T2 ON T1.productCode = T2.productCode UNION SELECT T2.productName, SUM(quantityOrdered * priceEach) FROM orderdetails AS T1 INNER JOIN ( SELECT productCode, productName FROM products ORDER BY MSRP - buyPrice ASC LIMIT 1 ) AS T2 ON T1.productCode = T2.productCode" What finish has a 143.056 qual?,"SELECT finish FROM table_name_69 WHERE qual = ""143.056""" "For the Player from Brampton, ON what is their NBA Draft status?","SELECT nba_draft FROM table_name_99 WHERE hometown = ""brampton, on""" Find the first names of owners living in Virginia and the names of dogs they own.,"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'" Hello there! How are you doing tonight!? Can you provide me with a list of all of the artist names in this database?,SELECT artist_name FROM artist "ok, list out the all team id winner",SELECT team_id_winner FROM postseason How many customers live in the city of Miyakonojo?,SELECT COUNT(T3.customer_id) FROM city AS T1 INNER JOIN address AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id WHERE T1.city = 'Miyakonojo' Name the location attendance for l 105–123 (ot),"SELECT location_attendance FROM table_27733258_6 WHERE score = ""L 105–123 (OT)""" What was the release price of the Atom Z510PT processor?,"SELECT release_price___usd__ FROM table_name_53 WHERE model_number = ""atom z510pt""" How many different departments were created in 1789?,SELECT count ( * ) FROM department GROUP BY creation ORDER BY count ( * ) DESC LIMIT 1 How many keywords does the episode that was aired on 2008/10/19 have?,SELECT COUNT(T2.keyword) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.air_date = '2008-10-19'; What is the Launched which is on 3 may 2001?,"SELECT launched FROM table_name_31 WHERE date_of_commission = ""3 may 2001""" Which patients made more than one appointment? Tell me the name and phone number of these patients.,"SELECT name , phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count(*) > 1" What was the record when the Bruins had 41 points?,SELECT record FROM table_20760407_1 WHERE bruins_points = 41 Who are the players from Indonesia?,"SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = ""Indonesia""" which of this dorm has student capacity of 355?,SELECT dorm_name FROM dorm WHERE student_capacity = 355 What country does Mark Hayes play for?,"SELECT country FROM table_name_33 WHERE player = ""mark hayes""" "Which Position has a Round larger than 14, and a School/Club Team of north texas?","SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = ""north texas""" What is the name of the project with the most hours?,SELECT name FROM projects ORDER BY hours DESC LIMIT 1 Which Att-Cmp has a GP-GS of 7-1?,"SELECT att_cmp FROM table_name_21 WHERE gp_gs = ""7-1""" Show the delegates and the names of county they belong to.,"SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District" How many times is tries 0 and appearance less than 0?,SELECT COUNT(points) FROM table_name_51 WHERE tries = 0 AND appearance < 0 What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?,"SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE ""12/%""" "Who is the customer that is active and lives at 1795 Santiago de Compostela Way, Texas?","SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T2.address = '1795 Santiago de Compostela Way' AND T1.active = 1" What is the number of airlines based in Russia?,SELECT count(*) FROM airlines WHERE country = 'Russia' HoW MANY employees have the letter z in their first name?,select count ( * ) from employees where first_name LIKE '%z%' How many tournaments were held in Maryland?,"SELECT COUNT(tournament) FROM table_11603006_1 WHERE location = ""Maryland""" "Name the date when 33,307 attended","SELECT date FROM table_name_20 WHERE attendance = ""33,307""" What is the Date of Week 2?,SELECT date FROM table_name_47 WHERE week = 2 Which brand of root beer did Jayne Collins give the lowest rating?,SELECT T3.BrandName FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T2.BrandID = T3.BrandID WHERE T1.First = 'Jayne' AND T1.Last = 'Collins' AND T2.StarRating = 1 What are the song titles and singer names?,"SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID" What are the last names of employees who serve at most 20 customers?,SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20 "In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?","SELECT year FROM table_name_65 WHERE outcome = ""runner-up"" AND score = ""4–6, 6–4, [8–10]""" Which English has German of leben?,"SELECT english FROM table_name_26 WHERE german = ""leben""" What is the most recent year shown for Betty Stove?,SELECT MAX(year) FROM table_2820584_2 "Name the duration for vladimir vasyutin , alexander volkov","SELECT COUNT(duration__days_) FROM table_245801_1 WHERE crew = ""Vladimir Vasyutin , Alexander Volkov""" What are the different states that have students trying out?,SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName Which publisher published the most games?,"SELECT T.publisher_name FROM ( SELECT T1.publisher_name, COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id GROUP BY T1.publisher_name ORDER BY COUNT(DISTINCT T2.game_id) DESC LIMIT 1 ) t" What's the ladder position when team is less than 10 and the Finals qualifications were DNQ?,"SELECT final_ladder_position FROM table_name_75 WHERE finals_qualification = ""dnq"" AND teams < 10" "Which away team played on June 9, 2015 with a home team of f1?","SELECT away_team FROM table_name_34 WHERE date = ""june 9, 2015"" AND home_team = ""f1""" What is the time of songs that have the writer Aaron Schroeder and Wally Gold?,"SELECT time FROM table_name_55 WHERE writer_s_ = ""aaron schroeder and wally gold""" can you show me average of ages?,SELECT avg ( Age ) FROM people Who currently affiliates in San Francisco - Oakland - San Jose?,"SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = ""San Francisco - Oakland - San Jose""" "Wonderful! Can you please sort this list by the director name, and then sort by movie title?","SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title ORDER BY T1.director , T1.title" "What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?","SELECT AVG(gold) FROM table_name_64 WHERE bronze = 1 AND type = ""winter"" AND silver < 3 AND total < 4" What is the location and attendance on October 18?,"SELECT location_attendance FROM table_27713030_3 WHERE date = ""October 18""" Who had the most rebounds in the game against Phoenix with a number over 76?,"SELECT high_rebounds FROM table_name_16 WHERE game > 76 AND team = ""phoenix""" "Between 1917 to 1920, what are the names of the team who ranked first in the first half of the season each year?",SELECT DISTINCT T2.name FROM TeamsHalf AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.half = 1 AND T1.rank = 1 AND T1.year BETWEEN 1917 AND 1920 List singer names and number of concerts for each singer.,"SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id" "What is the highest Number of Bearers 2008, when Surname is Hansen, and when Rank is less than 1?","SELECT MAX(number_of_bearers_2008) FROM table_name_32 WHERE surname = ""hansen"" AND rank < 1" Who is head id 1?,SELECT name FROM head WHERE head_id = 1 What is the Reserved For of Lahar?,"SELECT reserved_for___sc___st__none_ FROM table_name_39 WHERE name = ""lahar""" "For case(s) where officer 'Evenden, George' is in charged, state the case number and the grand jury disposition?","SELECT T1.case_number, T1.grand_jury_disposition FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T2.first_name = 'George' AND T2.last_name = 'Evenden'" Did Rachel Valdez complete her sales task?,SELECT T1.Bonus FROM SalesPerson AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.FirstName = 'Rachel' AND T2.LastName = 'Valdez' How about the total number of events?,SELECT count ( DISTINCT event_id ) FROM participants_in_events "Find id of candidates whose assessment code is ""Pass""?","SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = ""Pass""" "List down the product name, reviewer name, rating and comments for product under the road line.","SELECT T1.Name, T2.ReviewerName, T2.Rating, T2.Comments FROM Product AS T1 INNER JOIN ProductReview AS T2 USING (productID) WHERE T1.ProductLine = 'R'" State the name of the city where Jose Rodriguez works.,SELECT T2.locationcity FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T1.firstname = 'Jose' AND T1.lastname = 'Rodriguez' How many current legislators do not have an account on instagram?,SELECT COUNT(*) FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T1.instagram IS NULL What is the product cost end date with the highest weight in grams?,SELECT T2.EndDate FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.WeightUnitMeasureCode = 'G' ORDER BY T1.Weight DESC LIMIT 1 Tell me the director nominated for best actor in a leading role,"SELECT director FROM table_name_73 WHERE nomination = ""best actor in a leading role""" "Tell me the week that has an attendance of 78,301","SELECT week FROM table_name_89 WHERE attendance = ""78,301""" "Which week had 39,056 people in attendance?","SELECT week FROM table_name_89 WHERE attendance = ""39,056""" "What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?","SELECT AVG(rank) FROM table_name_19 WHERE headquarters = ""toronto, on"" AND screens < 1 OFFSET 438" What is the number of cores associated with model name e2xxx?,"SELECT cores FROM table_24099628_1 WHERE model__list_ = ""E2xxx""" Find the total access count of all documents in the most popular document type.,SELECT sum ( access_count ) FROM documents GROUP BY document_type_code ORDER BY count ( * ) DESC LIMIT 1 Which game is located in Boston Garden and has a record of 49-17?,"SELECT game FROM table_name_81 WHERE location = ""boston garden"" AND record = ""49-17""" Show the ages of gymnasts in descending order of total points.,SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC Which network aired the program Schlag den Raab?,"SELECT network FROM table_name_70 WHERE title = ""schlag den raab""" Give the full name of the actor with the highest rental rate.,"SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T3.film_id = T2.film_id ORDER BY T3.rental_rate DESC LIMIT 1" "What is 2007, when 2003 is ""85""?","SELECT 2007 FROM table_name_37 WHERE 2003 = ""85""" What were the Results in Arizona 1 District?,"SELECT results FROM table_name_90 WHERE district = ""arizona 1""" What nationality has jon koncak as the player?,"SELECT nationality FROM table_name_70 WHERE player = ""jon koncak""" Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.,"SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2" "What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than 832?","SELECT MIN(base_pairs) FROM table_name_21 WHERE species = ""borrelia garinii"" AND genes > 832" What is the mobile phone number of the student named Timmothy Ward ?,select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward' What is the location for tournament on Jul 8-11?,"SELECT location FROM table_26144632_1 WHERE dates = ""Jul 8-11""" "What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruenig, and when Round is less than 3?","SELECT AVG(pick__number) FROM table_name_87 WHERE position = ""linebacker"" AND player = ""bob bruenig"" AND round < 3" Count the number of United Airlines flights that arrive in Aberdeen.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = ""Aberdeen"" AND T3.Airline = ""United Airlines""" which donator has the highest endowment? | Did you mean endowment id? | which donator has the highest amount of endowment?,"SELECT donator_name , sum ( amount ) FROM endowment GROUP BY donator_name ORDER BY sum ( amount ) DESC limit 1" What is the Team with a Player that is david cooper?,"SELECT team FROM table_name_86 WHERE player = ""david cooper""" What is the Q1 time for the driver with Q1 order of 6?,SELECT q1_time FROM table_1706942_1 WHERE q1_order = 6 Which driver has 7 points for team Australia?,"SELECT driver FROM table_name_28 WHERE points = 7 AND team = ""team australia""" What is the lowest ERP W of w223bp?,"SELECT MIN(erp_w) FROM table_name_6 WHERE call_sign = ""w223bp""" How many papers were cited by schmidt99advanced cited word3555?,SELECT COUNT(T2.paper_id) FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'schmidt99advanced' AND T2.word_cited_id = 'word3555' What are the distinct states and create time of all votes?,"SELECT DISTINCT state, created FROM votes" "How many active businesses are located at Phoenix, Arizona?",SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND active LIKE 'True' What higher harmonics have an NOAA of 8?,"SELECT higher_harmonics FROM table_name_19 WHERE noaa = ""8""" What are the star rating descriptions of the hotels with price above 10000?,SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 How many picks did Central State have before round 2?,"SELECT COUNT(pick) FROM table_name_29 WHERE school = ""central state"" AND round < 2" what are the Built Year of HMS Gorgon?,"SELECT Built_year FROM ship WHERE name = ""HMS Gorgon""" What did the golfer from Australia score?,"SELECT score FROM table_name_13 WHERE country = ""australia""" What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?,"SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = ""Fuel oil stocks need only for industry""" Which 2 members have the highest number of purchases?,SELECT T2.Name FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id group by T1.member_id order by count ( * ) desc limit 2 Which department offers the most credits all together?,SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1 What was the record when matt grice fought dennis bermudez with a time of 5:00?,"SELECT record FROM table_name_36 WHERE time = ""5:00"" AND opponent = ""dennis bermudez""" "Show the employee ids for all employees with role name ""Human Resource"" or ""Manager"".","SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource"" OR T2.role_name = ""Manager""" What is the title of episode that has a keyword of 'riot' and 'cake'?,"SELECT DISTINCT T1.title FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.keyword IN ('riot', 'cake');" "Show the start dates and end dates of all the apartment bookings made by guests with gender code ""Female"".","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = ""Female""" Which department has the least number of employees?,SELECT * FROM department GROUP BY departmentID ORDER BY count ( * ) LIMIT 1 How many students have the highest intelligence among those taking a bachelor's degree?,SELECT COUNT(student_id) FROM student WHERE type = 'UG' AND intelligence = ( SELECT MAX(intelligence) FROM student ) When the VFL played Brunswick Street Oval what was the home team score?,"SELECT home_team AS score FROM table_name_20 WHERE venue = ""brunswick street oval""" What is the Current Club of the PG/SG player with a Height of less than 1.9500000000000002?,"SELECT current_club FROM table_name_87 WHERE height < 1.9500000000000002 AND position = ""pg/sg""" Name the most wins for sport colombia,"SELECT MAX(wins) FROM table_18703133_1 WHERE team = ""Sport Colombia""" Name the system for aries,"SELECT system FROM table_2296507_1 WHERE constellation = ""Aries""" What Time has Date of May 9?,"SELECT time FROM table_name_84 WHERE date = ""may 9""" Which vacancy happened on 4 November 2008?,"SELECT position_in_table FROM table_18788823_5 WHERE date_of_vacancy = ""4 November 2008""" What is the type when Robert Villemain had a record at 109–1–2?,"SELECT type FROM table_name_34 WHERE opponent = ""robert villemain"" AND record = ""109–1–2""" What Rank is the Director(s) of satoko okita?,"SELECT rank FROM table_name_42 WHERE director_s_ = ""satoko okita""" Which player went to Wake Forest and was selected with a pick after 145?,"SELECT player FROM table_name_6 WHERE pick > 145 AND college = ""wake forest""" Please list any three episodes that were most enjoyed by the viewers.,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T2.stars = 10 LIMIT 3 What is the area code of Phillips county in Montana?,SELECT DISTINCT T1.area_code FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN state AS T3 ON T2.state = T3.abbreviation WHERE T2.county = 'PHILLIPS' AND T3.name = 'Montana' how many employees there,SELECT count ( * ) from employee What are the drivers' last names who had 11 pit stops and participated in more than 5 race results?,"SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count ( * ) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count ( * ) > 5" Tell me the date of attendance for the student id 111 and 121?,SELECT date_of_attendance FROM student_course_attendance WHERE student_id = 111 or student_id = 121 What is the total number of customers?,SELECT count ( * ) FROM customers What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?,"SELECT SUM(round) FROM table_name_10 WHERE position = ""ls"" AND overall > 230" Which room has highest price value? tell me the name and Room ID,"SELECT roomName, roomid FROM Rooms WHERE basePrice = ( select max ( baseprice ) from rooms ) " What is average number of students enrolled in Florida colleges?,SELECT avg(enr) FROM College WHERE state = 'FL' What is the build date of the model with a PRR Class of brs24?,"SELECT build_date FROM table_name_61 WHERE prr_class = ""brs24""" What was the away team's score for the match played at Victoria Park?,"SELECT away_team AS score FROM table_name_89 WHERE venue = ""victoria park""" List the names of the production companies that made at least 200 movies.,SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(T2.movie_id) > 200 Count the total quantity for sales from id 1 to 10.,SELECT SUM(Quantity) FROM Sales WHERE SalesID BETWEEN 1 AND 10 what is the tournament when the winning score is –9 (69-69-70-71=279)?,SELECT tournament FROM table_name_84 WHERE winning_score = –9(69 - 69 - 70 - 71 = 279) Who won the Bronze at Melbourne?,"SELECT bronze FROM table_name_59 WHERE place = ""melbourne""" How many disabled students have payment due?,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.bool = 'pos' Show me the official names of the cities that have hosted only one competition?,SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT ( * ) = 1 Which player had the highest points in game 79?,SELECT high_points FROM table_17311797_10 WHERE game = 79 What are the distinct registration dates and the election cycles?,"SELECT DISTINCT Registration_Date , Election_Cycle FROM VOTING_RECORD" Show all template type codes and the number of documents using each type.,"SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code" Tell me the label for formats of cd and album and year of 2008,"SELECT label FROM table_name_48 WHERE formats = ""cd"" AND format = ""album"" AND year = 2008" What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?,"SELECT f_id FROM song WHERE resolution > (SELECT avg(resolution) FROM song WHERE genre_is = ""modern"")" how many minimum 350cc has,SELECT MIN(350 AS cc) FROM table_2889810_2 What is the genre ID of the '2Xtreme' game?,SELECT T.genre_id FROM game AS T WHERE T.game_name = '2Xtreme' Who was the opponent at the game with a score of 42-28 after week 4?,"SELECT opponent FROM table_name_91 WHERE week > 4 AND score = ""42-28""" What is the attendance before week 1?,SELECT COUNT(attendance) FROM table_name_75 WHERE week < 1 Where is the headquarter of the conglomerate industry?,"SELECT headquarters FROM table_name_42 WHERE primary_industry = ""conglomerate""" "Gold smaller than 2, and a Rank of 4, and a Nation of hungary (hun), and a Bronze smaller than 1 had what total number of silver?","SELECT COUNT(silver) FROM table_name_48 WHERE gold < 2 AND rank = ""4"" AND nation = ""hungary (hun)"" AND bronze < 1" What is the name of the home team in division P1 with the highest final time goal in all seasons?,SELECT HomeTeam FROM matchs WHERE Div = 'P1' AND season = 2021 ORDER BY FTHG DESC LIMIT 1 What is the smallest area (sq mi) that has 160 as it rank?,SELECT MIN(area__sq_mi_) FROM table_name_82 WHERE rank = 160 Find the first and last name of all the teachers that teach EVELINA BROMLEY.,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""EVELINA"" AND T1.lastname = ""BROMLEY""" What is the score when there are less than 2 goals?,SELECT score FROM table_name_18 WHERE goal < 2 Find the names of all modern rooms with a base price below $160 and two beds.,SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern' What was the lowest Weight (kg) for a player that had Jersey #10?,SELECT MIN(weight__kg_) FROM table_name_67 WHERE jersey__number = 10 "What was the average week of a game with a result of l 10-7 attended by 37,500?","SELECT AVG(week) FROM table_name_4 WHERE result = ""l 10-7"" AND attendance < 37 OFFSET 500" What is the platform(s) for the year 2006 (10th)?,"SELECT platform_s_ FROM table_name_78 WHERE year = ""2006 (10th)""" "What is Country, when To par is ""+1"", and when Score is ""72-71-70-72=285""?","SELECT country FROM table_name_98 WHERE to_par = ""+1"" AND score = 72 - 71 - 70 - 72 = 285" "Date of november 29, 1959 had what lowest attendance?","SELECT MIN(attendance) FROM table_name_7 WHERE date = ""november 29, 1959""" Identify by their ID all the overs in which the player with ID 7 was on strike.,SELECT DISTINCT Over_Id FROM Ball_by_Ball WHERE Striker = 7 "what is the best supported club with a 25 Goal and a per game larger than 1,156?",SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156 What is the maximum fc matches?,SELECT MAX(fc_matches) FROM table_1176371_1 How many original air dates are there for the episode with code CA210?,"SELECT COUNT(original_air_date) FROM table_25740548_3 WHERE production_code = ""CA210""" What was the surface that was played on during the week of March 16?,"SELECT surface FROM table_name_71 WHERE week = ""march 16""" Who are the sales representatives in New York City? List their full names.,"SELECT t1.lastName, t1.firstName FROM employees AS t1 INNER JOIN offices AS t2 ON t1.officeCode = t2.officeCode WHERE t2.city = 'NYC' AND t1.jobTitle = 'Sales Rep'" What was the highest attendance of games that resulted in L 23-20?,"SELECT MAX(attendance) FROM table_name_64 WHERE result = ""l 23-20""" Which tournament had a partner of Erika Sema?,"SELECT tournament FROM table_name_9 WHERE partner = ""erika sema""" What is the date for the home detroit and visitor was chicago?,"SELECT date FROM table_name_82 WHERE home = ""detroit"" AND visitor = ""chicago""" What is that customer's phone number?,SELECT phone_number FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM complaints ) Who wrote series number 99?,SELECT written_by FROM table_name_68 WHERE series__number = 99 How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? ,"SELECT COUNT(wrestler) FROM table_24628683_2 WHERE method_of_elimination = ""Pinned after being hit by a lead pipe""" What is the Birth Name of the Archbishop with a Current End of Reign?,"SELECT Birth AS name FROM table_name_34 WHERE end_of_reign = ""current""" What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name.,"SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1" When tim mack is on team usa what is the progressive total?,"SELECT progressive_total FROM table_19072602_3 WHERE team_usa = ""Tim Mack""" List all vehicle id,SELECT vehicle_id FROM Vehicles; What is the Director for the episode titled “some lapse of time”?,"SELECT director FROM table_name_85 WHERE title = ""“some lapse of time”""" List the race of institutions in Alabama with number of students greater than the 90% of average number of students of all institutions?,SELECT DISTINCT T2.race FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.student_count > ( SELECT AVG(T1.student_count) * 0.9 FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.state = 'Alabama' ) AND T1.state = 'Alabama' "Hmm, interesting. What is the nationality of Jackie Waring? | Do you mean the journalist Jackie Waring? | Yes.","SELECT Nationality FROM journalist WHERE Name = ""Jackie Waring""" Name the category for 50 totals,"SELECT category FROM table_26611679_3 WHERE totals = ""50""" "How many routes have a destination airport in Canada, please?",SELECT count ( * ) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' "What is the score for the away team, Ipswich Town?","SELECT score FROM table_name_6 WHERE away_team = ""ipswich town""" Give the author's name of the books that cost 19 dollars and above.,SELECT DISTINCT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN order_line AS T4 ON T4.book_id = T1.book_id WHERE T4.price > 19 Who owns CKSB-8-FM?,"SELECT owner FROM table_name_72 WHERE call_sign = ""cksb-8-fm""" What is the count of the songs that last approximately 4 minutes?,"SELECT count(*) FROM files WHERE duration LIKE ""4:%""" Show the average amount of transactions for different investors.,"SELECT investor_id , avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id" What is the Away with a Ground that is humber college north?,"SELECT away FROM table_name_9 WHERE ground = ""humber college north""" Which episode has been viewed 6.34 million times? ,"SELECT episode FROM table_15026994_3 WHERE viewing_figure = ""6.34 million""" Calculate the swept volume of the $34538.97449 car.,SELECT T1.displacement / T1.cylinders FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = 34538.97449 "For how many clubs is ""Tracy Kim"" a member?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Tracy"" AND t3.lname = ""Kim""" How many season premiers have a rank of #21?,"SELECT season AS premiere FROM table_10819266_8 WHERE rank = ""#21""" Find the manager name and district of the shop whose number of products is the largest.,"SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1" What type of interactions occurs in genes whose function is cellular transport and transport medicine and are classified as non-essential?,SELECT T2.Type FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T1.Function = 'TRANSCRIPTION' AND T1.Essential = 'Non-Essential' What kind of Guest Host has a Episode Number of 7?,SELECT guest_host FROM table_name_10 WHERE episode_number = 7 When there are 10.02 million viewers what is the rating (18-49)?,"SELECT rating__18_49_ FROM table_28980706_4 WHERE viewers__millions_ = ""10.02""" What is the name of the player with total offense of 454?,SELECT player FROM table_28697228_4 WHERE total_offense = 454 Where does Iceland rank with under 19 silvers?,"SELECT MAX(rank) FROM table_name_12 WHERE nation = ""iceland"" AND silver < 19" Which event was part of the World Cross Country championships?,"SELECT event FROM table_name_81 WHERE competition = ""world cross country championships""" what is the socket that has a brand name of core 2 extreme?,"SELECT socket FROM table_24101118_1 WHERE brand_name = ""Core 2 Extreme""" What is the average edispl of the cars of model volvo?,SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'; What login name is the same for students and course authors?,SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students What is the most common hometown of gymnasts?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1 List the publisher of the publication with the highest price.,SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1 what are the special features of ACADEMY DINOSAUR,"SELECT special_features FROM film WHERE title = ""ACADEMY DINOSAUR""" "What is the first name, GPA, and phone number of the students with the top 5 GPAs?","SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5" In which state can you find the Sandown circuit?,"SELECT state FROM table_name_74 WHERE circuit = ""sandown""" "Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)?",SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16 What is the date of the game when the record is 2-0?,"SELECT date FROM table_name_53 WHERE record = ""2-0""" "What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?","SELECT podiums FROM table_name_65 WHERE season > 2008 AND series = ""gp2 asia series""" Which address has members older than 40?,SELECT address FROM member WHERE age > 40 display the department name and number of employees in each of the department.,"SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name" What was tyre that was made by cooper - bristol that was driven by bob gerard?,"SELECT tyre FROM table_name_77 WHERE constructor = ""cooper - bristol"" AND driver = ""bob gerard""" What is the brand of the youngest user's device?,SELECT device_model FROM phone_brand_device_model2 WHERE device_id IN ( SELECT device_id FROM gender_age WHERE age = ( SELECT MIN(age) FROM gender_age ) ) What is the total score for the 36 arrow finals event?,"SELECT COUNT(score) FROM table_name_72 WHERE event = ""36 arrow finals""" Name the antonio thomas for Hikaru Sato of tanaka (8:09),"SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = ""tanaka (8:09)""" "Show the alias for the county at coordinate (18.090875, -66.867756).",SELECT T2.alias FROM zip_data AS T1 INNER JOIN alias AS T2 ON T1.zip_code = T2.zip_code WHERE T1.latitude = 18.090875 AND T1.longitude = -66.867756 "List the duration, file size and format of songs whose genre is pop, ordered by title?","SELECT T1.duration , T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = ""pop"" ORDER BY T2.song_name" What are the maximum number of stars a hotel with price above 10000 can get?,select max ( star_rating_code ) from hotels WHERE price_range > 10000 What is the Super G value for the season that has an Overall score of 16?,"SELECT super_g FROM table_name_8 WHERE overall = ""16""" List down all of the customers' first name who were attended by staff with ID 1.,"SELECT DISTINCT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T2.staff_id = 1" "For the players who played the most PBLA games, who was graduated from Central Missouri State college?","SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.lgID = 'PBLA' AND T2.GP = 10 AND T1.college = 'Central Missouri State' GROUP BY T1.firstName, T1.middleName, T1.lastName ORDER BY COUNT(T2.id) DESC LIMIT 1" "For Pontyberem RFC that has a Try Bonus of 2, what is the played?","SELECT played FROM table_name_56 WHERE try_bonus = ""2"" AND club = ""pontyberem rfc""" "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.","SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name" Name the ICAO for IATA of ccu,"SELECT icao FROM table_name_62 WHERE iata = ""ccu""" how many times is the nhl team the winnipeg jets?,"SELECT COUNT(player) FROM table_2679061_2 WHERE nhl_team = ""Winnipeg Jets""" "In 1865, what was the first party?","SELECT 1 AS st_party FROM table_name_20 WHERE year = ""1865""" Return the issue dates of volumes that are by the artist named Gorgoroth.,"SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = ""Gorgoroth""" What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?,"SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015" Which customer made the largest amount of claim in a single claim? Return the customer details.,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers) "Avg/G that has a Att-Cmp-Int of 1–1–0, and an Effic larger than 394 is what total?","SELECT COUNT(avg_g) FROM table_name_62 WHERE att_cmp_int = ""1–1–0"" AND effic > 394" What is the highest average monthly rental of all the students?,SELECT monthly_rental FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG ( monthly_rental ) DESC LIMIT 1 What is the name of the free transfer fee with a transfer status and an ENG country?,"SELECT name FROM table_name_31 WHERE transfer_fee = ""free"" AND status = ""transfer"" AND country = ""eng""" "Who was the writer of the episode that originally aired on October 14, 1968?","SELECT writer_s_ FROM table_25800134_13 WHERE airdate = ""October 14, 1968""" What was Bill Glasson's score to par after 2 rounds?,"SELECT to_par FROM table_name_76 WHERE player = ""bill glasson""" How many flats in this table? | Do you mean the number of apartments whose type code is Flat? | Yes.,SELECT count ( * ) from apartments where apt_type_code = 'Flat' Who played against away team hereford united?,"SELECT home_team FROM table_name_4 WHERE away_team = ""hereford united""" "What is the muzzle energy with 40,000 psi max pressure?","SELECT muzzle_energy FROM table_name_40 WHERE max_pressure = ""40,000 psi""" "What are the the songs in volumes, listed in ascending order?",SELECT Song FROM volume ORDER BY Song "Name the republican steve sauerberg where dates administered september 15-september 18, 2008","SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = ""September 15-September 18, 2008""" Tell me the distinct block codes where some rooms are available.,SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 "What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?","SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = ""china"" AND main_span_feet = ""2,585""" How many documentary films are rated PG-13?,SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Documentary' AND T1.rating = 'PG-13' What is the first and last name of the player with the highest field goal made rate in 1973?,"SELECT T1.firstName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE year = 1973 ORDER BY CAST(T2.fgMade AS REAL) / T2.fgAttempted DESC LIMIT 1" How many products are never booked with amount higher than 200?,SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount > 200 ) What are the name and code of the location with the smallest number of documents?,"SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1" What was the score for the game played between Cleveland and Orlando at Cleveland?,"SELECT score FROM table_name_26 WHERE home = ""cleveland"" AND visitor = ""orlando""" When the genre is fighting what is the game?,"SELECT game FROM table_name_89 WHERE genre = ""fighting""" "ok, what are her role name and description?","SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = ""Ebba""" can you show me Dooley and Sons's address?,"SELECT company_address from Third_Party_Companies where company_name = ""Dooley and Sons""" "Tell the country name of the supplier for ""Scottish Longbreads"".",SELECT T2.Country FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Scottish Longbreads' Count the number of products.,SELECT count(*) FROM products Show the number of airports in those cities,"SELECT city, count ( * ) FROM airports GROUP BY city HAVING count ( * ) > = 4" "If %2001 is 0.1%, what is the minimum Arabs 2001 number?","SELECT MIN(arabs_2001) FROM table_1939367_1 WHERE _percentage_2001 = ""0.1%""" Name the date for moonee valley,"SELECT date FROM table_2062148_4 WHERE venue = ""Moonee Valley""" What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?,SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama' "Name the sum of cuts with wins less than 2, top-25 more than 7 and top-10 less than 2",SELECT SUM(cuts_made) FROM table_name_80 WHERE wins < 2 AND top_25 > 7 AND top_10 < 2 How many faculty lines are there at San Francisco State University in 2004?,"SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = ""San Francisco State University""" What's the against when the draw was more than 0 and had 13 losses?,SELECT COUNT(against) FROM table_name_47 WHERE losses = 13 AND draws > 0 Show the number of documents with document type code CV or BK.,"SELECT count(*) FROM All_documents WHERE document_type_code = ""CV"" OR document_type_code = ""BK""" List the names of all reviewers based on their average rating in ascending order.,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY avg ( T1.stars ) ASC Which 2009–10 has a Rank 2013 of 18?,"SELECT 2009 AS _10 FROM table_name_87 WHERE rank_2013 = ""18""" What is the average grade of students who have friends?,SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) Tell me the time/retired for Laps of 42 and Grids of 4,SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4 "What is the average Position, when Speed is ""143.5km/h""?","SELECT AVG(position) FROM table_name_97 WHERE speed = ""143.5km/h""" "What is Administration of Oaths, when Rights of Audience is Yes, and when Reserved Instruments is Yes?","SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = ""yes"" AND reserved_instruments = ""yes""" State name of students who filed for bankruptcy and have the longest duration of absense from school.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1 How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive?,SELECT SUM(gold) FROM table_name_76 WHERE rank < 5 AND bronze > 1 What is the sum of Goals win an Average larger than 1?,SELECT COUNT(goals) FROM table_name_94 WHERE average > 1 Who was the scorer when the opponent was aberdeen?,"SELECT scorers FROM table_name_63 WHERE opponent = ""aberdeen""" What is every team on March 5?,"SELECT team FROM table_23248910_9 WHERE date = ""March 5""" What is the population of Baltimore County?,"SELECT population FROM county where county_name = ""Baltimore County""" "How many instruments does the song ""Badlands"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" List any five parts name in Medium Plated Brass.,SELECT p_name FROM part WHERE p_type = 'MEDIUM PLATED BRASS' LIMIT 5 How many clubs do you have?,SELECT count ( * ) from club What are the different names of all the races in reverse alphabetical order?,SELECT DISTINCT name FROM races ORDER BY name DESC Show the department with the lowest average salary.,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg ( salary ) ASC LIMIT 1 "What is the total top-25 of the U.S. Open, which has less than 7 cuts?","SELECT SUM(top_25) FROM table_name_84 WHERE tournament = ""u.s. open"" AND cuts_made < 7" What is the total population and maximum GNP in Asia?,"SELECT sum(Population) , max(GNP) FROM country WHERE Continent = ""Asia""" Find the component amounts and names of all furnitures that have more than 10 components.,"SELECT Num_of_Component , name FROM furniture WHERE Num_of_Component > 10" How many episodes have a series number of 35?,SELECT COUNT(episode_title) FROM table_13505192_3 WHERE series_number = 35 What is the average household income in cities in the state of New Hampshire where there are stores of the type city?,SELECT AVG(T2.`Household Income`) FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T2.State = 'New Hampshire' AND T2.Type = 'City' what is the round when the college is north carolina and the overall is more than 124?,"SELECT SUM(round) FROM table_name_68 WHERE college = ""north carolina"" AND overall > 124" "How many employees sold over 20,000 quantities of ""Touring-2000 Blue, 50""?","SELECT COUNT(*) FROM ( SELECT SUM(Quantity) FROM Sales WHERE ProductID IN ( SELECT ProductID FROM Products WHERE Name = 'Touring-2000 Blue, 50' ) GROUP BY Quantity, SalesPersonID HAVING SUM(Quantity) > 20000 )" What first class team does sanath jayasuriya play for?,"SELECT first_class_team FROM table_name_51 WHERE player = ""sanath jayasuriya""" What is the average of all the years when the notes are “electronics brand?”,"SELECT AVG(year) FROM table_name_36 WHERE notes = ""electronics brand""" What's the total byes for more than 1 draw?,SELECT COUNT(byes) FROM table_name_74 WHERE draws > 1 Which park had most attendances in 2008?,SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1 Which permanent account has registration of invite-only and userpics free of unknown?,"SELECT permanent_account FROM table_name_46 WHERE userpics_free = ""unknown"" AND registration = ""invite-only""" What number episode had a 4.2 rating? ,"SELECT MIN(no) FROM table_23730973_5 WHERE rating = ""4.2""" "Position of 7th of 24, and a Goals smaller than 24 is what league?","SELECT league FROM table_name_13 WHERE position = ""7th of 24"" AND goals < 24" "Among the independent countries whose type of government is republic, what is the biggest number of deserts they have?",SELECT COUNT(T3.Desert) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_desert AS T3 ON T3.Country = T2.Country WHERE T2.Government = 'republic' How many high points occur with the team Umass?,"SELECT COUNT(high_points) FROM table_29556461_9 WHERE team = ""UMass""" "Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?","SELECT player FROM table_name_97 WHERE debut = ""age 18 v plymouth , 14 august 2012"" AND born = ""portsmouth""" What director(s) have the intouchables as the title?,"SELECT director_s_ FROM table_name_67 WHERE title = ""the intouchables""" Which Attendance has an Away of real juventud?,"SELECT SUM(attendance) FROM table_name_50 WHERE away = ""real juventud""" Return the the names of the drama workshop groups that are located in Feliciaberg city.,"SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" Which unite had the type wwer-440/213?,"SELECT unit FROM table_name_31 WHERE type = ""wwer-440/213""" "Where are their offices, if you don't mind?",SELECT T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname Find the first name of the band mate that has performed in most songs.,SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1 Sum the total price of the orders for The Prophet book.,SELECT SUM(T1.price) FROM order_line AS T1 INNER JOIN book AS T2 ON T1.book_id = T2.book_id WHERE T2.title = 'The Prophet' What is the IATA for Esperadinha Airport?,"SELECT iata FROM table_name_3 WHERE airportname = ""esperadinha airport""" What position did the player have who was from the college of california?,"SELECT position FROM table_name_55 WHERE college = ""california""" Name the kicks with goals of 1,"SELECT kicks FROM table_name_40 WHERE goals = ""1""" In which year will the David Bradley's credit card expire?,SELECT T3.ExpYear FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN CreditCard AS T3 ON T2.CreditCardID = T3.CreditCardID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' what team scored on april 10,"SELECT score FROM table_name_81 WHERE date = ""april 10""" How many goals does Mike Eruzione have in total?,"SELECT goals FROM table_name_6 WHERE player = ""mike eruzione""" Which Opponent is on October of 29?,SELECT opponent FROM table_name_66 WHERE october = 29 Which Visitor has a Series of 2 – 1?,"SELECT visitor FROM table_name_15 WHERE series = ""2 – 1""" "What are the different account ids that have made financial transactions, as well as how many transactions correspond to each?","SELECT account_id , count(*) FROM Financial_transactions GROUP BY account_id" How many free gifts have customer with id 11782 received?,SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.CustomerID = 11782 AND T1.Price = 0 "How many spikes have 28.09.1981 as the date of birth, with a block greater than 318?","SELECT SUM(spike) FROM table_name_78 WHERE date_of_birth = ""28.09.1981"" AND block > 318" When edward shaw is the winner what is the date?,"SELECT date FROM table_28898974_3 WHERE winner = ""Edward Shaw""" What was Bernhard Langer's highest score?,"SELECT MAX(score) FROM table_name_93 WHERE player = ""bernhard langer""" "On September 25, 1994 what was the final score?","SELECT score_in_the_final FROM table_name_33 WHERE date = ""september 25, 1994""" "What is Li-FeS 2, when Type is Nominal Voltage?","SELECT li_fes_2 FROM table_name_9 WHERE type = ""nominal voltage""" "Which inhabitants have 2009 as the election, with cremona as the municipality?","SELECT inhabitants FROM table_name_42 WHERE election = 2009 AND municipality = ""cremona""" What was the score for the away team at Collingwood?,"SELECT home_team AS score FROM table_name_75 WHERE away_team = ""collingwood""" In which year did the record ID 19 with game publisher ID 6657 released?,SELECT T.release_year FROM game_platform AS T WHERE T.game_publisher_id = 6657 AND T.id = 19 What's the highest season number of an episode in the series?,SELECT MAX(no_in_season) FROM table_10718192_2 What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?,"SELECT birth FROM table_name_47 WHERE ceased_to_be_queen = ""18 jun 1297""" What are the top 2 platforms with the most sales in North America?,SELECT T4.platform_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'North America' ORDER BY T2.num_sales DESC LIMIT 2 Show all company names with a movie directed in year 1999.,SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999 What is the forename and surname of the driver with the shortest laptime?,"SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1" "List the title, price and publication date for all sales with 'ON invoice' payment terms.","SELECT T2.title, T2.price, T2.pubdate FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id WHERE T1.payterms = 'ON invoice'" What is the name of the character that can be found in paragraph 8 of chapter 18820?,SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 8 AND T2.chapter_id = 18820 How did the episode rank that had 2.65 million viewers?,"SELECT rank___number_ FROM table_11274401_2 WHERE viewers__m_ = ""2.65""" What are the student ids of students who don't have any allergies?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy What is the away team score for South Melbourne?,"SELECT away_team AS score FROM table_name_97 WHERE away_team = ""south melbourne""" What is the winners name at the western open?,"SELECT winner FROM table_name_23 WHERE tournament = ""western open""" Return the number of flights.,SELECT count(*) FROM FLIGHTS Show me the number of employees for the Homeland Security department.,"SELECT name , num_employees FROM department where name = ""Homeland Security""" Which type of policy is most frequently used? Can you give me the policy type code?,SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count ( * ) DESC LIMIT 1 "Can you tell me which billing city has the letter ""O"" in its name please?","SELECT billing_city FROM invoices where billing_city like ""%O%""" What are the names of students who have taken the prerequisite for the course International Finance?,SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance') "For each nomination, show the name of the artwork and name of the festival where it is nominated.","SELECT T2.Name , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID" Count the total number of clubs.,SELECT count(*) FROM club Name the average ends for weston,"SELECT AVG(ends) FROM table_name_28 WHERE name = ""weston""" Name the least rank for lane less than 5 for germany and sandra völker,"SELECT MIN(rank) FROM table_name_22 WHERE lane < 5 AND nationality = ""germany"" AND name = ""sandra völker""" "What Offer Team has a date of July 29, 1994?","SELECT offer_team FROM table_name_24 WHERE date = ""july 29, 1994""" What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?,"SELECT 2005 FROM table_name_14 WHERE 2006 = ""1r"" AND 2002 = ""1r""" Which position has a sophomore class?,"SELECT position FROM table_name_31 WHERE class = ""sophomore""" "What was the result of the game after Week 13 on December 8, 1991?","SELECT result FROM table_name_14 WHERE week > 13 AND date = ""december 8, 1991""" Tell me the record for round more than 1,SELECT record FROM table_name_63 WHERE round > 1 What is the name of the department and office location for the professor with the last name of Heffington?,"SELECT T3.dept_name , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'" "What was the Result after the Week 4 on November 3, 1968?","SELECT result FROM table_name_27 WHERE week > 4 AND date = ""november 3, 1968""" What is the average population of the wards where apartment crimes have been reported without arrests?,SELECT AVG(T2.Population) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T1.arrest = 'FALSE' How many people whose age is greater 30 and job is engineer?,SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer' What was the lowest number of 2008 total bearers with a rank less than 13 and the Surname Jansson?,"SELECT MIN(number_of_bearers_2008) FROM table_name_13 WHERE surname = ""jansson"" AND rank < 13" What about the latest date?,"SELECT T2.name,T1.span_first FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br order by T1.span_first desc limit 1" What is the detail of each visitor?,SELECT Tourist_Details FROM VISITORS "When Richmond played as the away team, what was the ground?","SELECT ground FROM table_29126507_1 WHERE away_team = ""Richmond""" What is the name for the best of 1:45.361?,"SELECT name FROM table_name_17 WHERE best = ""1:45.361""" Who is moving to Metalurh Donetsk?,"SELECT name FROM table_name_9 WHERE moving_to = ""metalurh donetsk""" How many assembly items for bicycles aren't finished?,SELECT COUNT(BillOfMaterialsID) FROM BillOfMaterials WHERE EndDate IS NULL Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63,SELECT COUNT(snatch) FROM table_name_62 WHERE clean_ & _jerk > 132.5 AND total__kg_ = 315 AND bodyweight = 68.63 What is the sub-parish of the church located in Fortun? ,"SELECT sub_parish__sogn_ FROM table_178398_1 WHERE location_of_the_church = ""Fortun""" What is the promotion when the event was Acid-fest?,"SELECT promotion FROM table_name_7 WHERE event = ""acid-fest""" Name the peak for height more than 619 and class of hewitt with prom being 148,"SELECT peak FROM table_name_14 WHERE height__m_ > 619 AND class = ""hewitt"" AND prom__m_ = 148" When was Lee Phillips the director?,"SELECT year FROM table_name_35 WHERE director = ""lee phillips""" what is the name of ship id 2,SELECT Name FROM ship where Ship_ID = 2 List the cities which have more than one airport and number of airports.,"SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1" Can you please show me the characteristic name used by most number of products?,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 GROUP BY t3.characteristic_name ORDER BY count ( * ) DESC LIMIT 1 Provide the zip codes and the alias of Greeneville.,"SELECT T2.zip_code, T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Greeneville'" What was the 1st leg that had a 1st get home for the Boca Juniors?,"SELECT 1 AS st_leg FROM table_name_82 WHERE home__1st_leg_ = ""boca juniors""" What is the Song by Artist Robert Cogoi?,"SELECT song FROM table_name_69 WHERE artist = ""robert cogoi""" What is the quantity preserved for fleet number(s) 3000–3015?,"SELECT quantity_preserved FROM table_name_11 WHERE fleet_number_s_ = ""3000–3015""" Find the total amount of membership?,SELECT sum ( membership_amount ) FROM branch What is the age of student Linda Smith?,"SELECT Age FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith"";" Write down the name of the largest population country.,SELECT Name FROM Country ORDER BY Population DESC LIMIT 1 "If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?","SELECT power FROM table_21021796_1 WHERE torque = ""N·m (lb·ft) @1600–2400 rpm"" AND applications = ""2000 W90x Sprinter""" Show the shop addresses ordered by their opening year.,SELECT address FROM shop ORDER BY open_year How many tweets are posted by male users in Argentina?,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID INNER JOIN user AS T3 ON T1.UserID = T3.UserID WHERE T3.Gender = 'Male' AND T2.Country = 'Argentina' What penalties has P.I.M. of 34.5?,"SELECT penalties FROM table_name_88 WHERE pim = ""34.5""" Find the number of students who is older than 20 in each dorm.,"SELECT count(*) , T3.dorm_name 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" "What is the total price of all orders from the customer with the phone number ""627-220-3983""?",SELECT SUM(T1.o_totalprice) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_phone = '627-220-3983' What was the latest year placement for Taboo with a score smaller than 96.125?,"SELECT MAX(year) FROM table_name_50 WHERE program_title = ""taboo"" AND score < 96.125" Which player was transferred to Reggina?,"SELECT player FROM table_name_99 WHERE to_club = ""reggina""" How many ranks have a rebound average smaller than 6.1?,SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 6.1 "Between match nos. 335989 and 337000, how many times did a batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches?",SELECT SUM(CASE WHEN Runs_Scored > 3 THEN 1 ELSE 0 END) FROM Batsman_Scored WHERE 335989 < Match_Id < 337000 AND Innings_No = 1 AND Over_Id = 1 AND Ball_Id = 1 What is the highest run 3 of the athlete with a 55.44 run 2?,SELECT MAX(run_3) FROM table_name_86 WHERE run_2 = 55.44 Name the played with losing bonus of 3 and points against of 426,"SELECT played FROM table_name_37 WHERE losing_bonus = ""3"" AND points_against = ""426""" Provide the title of the latest publication published by it's author 'Zuliang Du'.,SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Zuliang Du' ORDER BY T2.Year DESC LIMIT 1 List out all the credit names for episode 9.,SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.episode = 9 What percentage of vivo devices belong to users with no information?,"SELECT SUM(IIF(T1.gender IS NULL AND T1.age IS NULL AND T1.`group` IS NULL, 1, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo'" Which Game has an Opponent of @ carolina hurricanes?,"SELECT SUM(game) FROM table_name_94 WHERE opponent = ""@ carolina hurricanes""" "How many Chinese restaurants are there on 1st st, Livermore?",SELECT COUNT(T1.id_restaurant) FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'livermore' AND T1.food_type = 'chinese' AND T2.street_name = '1st st' Find the names of all stores in Khanewal District.,"SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = ""Khanewal District""" "Among the movies in which Alan Tudyk is a voice actor, how many of them were released after 2012?","SELECT COUNT(T2.movie) FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T2.`voice-actor` = 'Alan Tudyk' AND SUBSTR(release_date, INSTR(release_date, '-') + 5) > 12" Which home teams had Geelong as the away team?,"SELECT home_team FROM table_name_19 WHERE away_team = ""geelong""" What is the record for the St. Louis team?,"SELECT record FROM table_name_58 WHERE team = ""st. louis""" "What are the average start(s) when he had $1,663,868?","SELECT avg_start FROM table_1637041_2 WHERE winnings = ""$1,663,868""" Which rank has final with 5:18.85?,"SELECT rank FROM table_name_96 WHERE final = ""5:18.85""" What is the highest number listed?,SELECT MAX(number) FROM table_12113888_1 What are the heights of perpetrators in descending order of the number of people they injured?,SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC What was nominated for the Jury Award?,"SELECT nominated_won FROM table_name_57 WHERE award_category = ""jury award""" List all product name from Australia Bike Retailer order by product ID.,SELECT T3.Name FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Product AS T3 ON T2.ProductID = T3.ProductID WHERE T1.Name = 'Australia Bike Retailer' Which major has highest number of students?List the students First name?,"SELECT Major , Fname FROM Student where major = ( select major from student group by major order by count ( * ) desc limit 1 ) " Please show the themes of competitions with host cities having populations larger than 1000.,SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000 How many games were won by a margin of 131 runs?,"SELECT COUNT(team__a_) FROM table_22384475_1 WHERE margin = ""131 runs""" What are the names of parties that do not have delegates in election?,SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election) What are the genres of Sky Captain and the World of Tomorrow?,SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.title = 'Sky Captain and the World of Tomorrow' What year was the earliest first elected?,SELECT MIN(first_elected) FROM table_1341663_19 "What is the earliest date when the championship was Monterrey WCT, Mexico?","SELECT MIN(date) FROM table_name_76 WHERE championship = ""monterrey wct, mexico""" What are the birth dates of employees living in Edmonton?,"SELECT BirthDate FROM EMPLOYEE WHERE City = ""Edmonton""" "What is the final score of the tournament played in Clearwater, Florida?","SELECT score FROM table_name_47 WHERE tournament = ""clearwater, florida""" "What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?","SELECT source FROM table_name_8 WHERE race_winners = ""ben adriaenssen / ben van den bogaart"" AND gp_winner = ""ben adriaenssen / ben van den bogaart"" AND date = ""1 april""" Show all the faculty ranks and the number of students advised by each rank.,"SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank" What are the number of points for associated with exactly 3 stolen ends?,SELECT COUNT(pf) FROM table_25176088_2 WHERE stolen_ends = 3 What are the attribute numbers that are related to payment?,SELECT attribute_id FROM Attributes WHERE attribute_name LIKE '%payment%' "What is John Kerry, when John Edwards is ""20%""?","SELECT john_kerry FROM table_name_94 WHERE john_edwards = ""20%""" How many days did the show fell more than 5 inches?,SELECT COUNT(DISTINCT `date`) FROM weather WHERE snowfall > 5 What is the name of the ranking system for Teaching criteria?,SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Teaching' waht is the last year with a mclaren mp4/10b chassis,"SELECT MAX(year) FROM table_name_31 WHERE chassis = ""mclaren mp4/10b""" Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.,"SELECT dorm_name , gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100" "What points have pittsburgh as the home, and November 29 as the date?","SELECT points FROM table_name_30 WHERE home = ""pittsburgh"" AND date = ""november 29""" what is the current height of Hubert Henno,SELECT height FROM people WHERE Name = 'Hubert Henno' What is the name and description for document type code RV?,"SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = ""RV""" Show me the names of all the physicians?,SELECT name FROM physician What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?,SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 What are the names of all tryout participants who are from the largest college?,SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) What are the renters arrears tax IDs associated with them?,"SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details ! = 'Schmidt , Kertzmann and Lubowitz'" List the short name of all conferences whose full name begins with International Symposium.,SELECT ShortName FROM Conference WHERE FullName LIKE 'International Symposium%' "Find the last name of the latest contact individual of the organization ""Labour Party"".","SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = ""Labour Party"" ORDER BY t2.date_contact_to DESC LIMIT 1" Which seaosn had a player of rohan ricketts?,"SELECT COUNT(season) FROM table_name_26 WHERE player = ""rohan ricketts""" Name the top-25 with wins less than 1 and events of 12,SELECT SUM(top_25) FROM table_name_65 WHERE wins < 1 AND events = 12 Name Tag Team with a Eliminated of 5?,"SELECT tag_team FROM table_name_42 WHERE eliminated = ""5""" What are the names of those tracks?,SELECT name FROM track WHERE track_id NOT IN ( SELECT track_id FROM race ) How many courses have the highest difficulty?,SELECT COUNT(course_id) FROM course WHERE diff = 5 How many shoutouts are there in the regular season of 1977?,SELECT COUNT(year) FROM CombinedShutouts WHERE year = 1977 AND `R/P` = 'R' What are the ids and last names of all drivers who participated in the most races?,"SELECT T1.driverid , T1.surname 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 ORDER BY count(*) DESC LIMIT 1" Show me their prices.,SELECT Price FROM WINE WHERE YEAR = 2006 Which object classes belong to the onion category?,SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS = 'onion' What allergy is most prevalent among students?,SELECT ALLERGY FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.STUID = T2.STUID GROUP BY ALLERGY ORDER BY COUNT ( * ) DESC LIMIT 1 Find the last names of teachers teaching in classroom 109.,SELECT lastname FROM teachers WHERE classroom = 109 Where is the location for the home rink Triangle sports plex/Greensboro ice house?,"SELECT location FROM table_name_36 WHERE home_rink = ""triangle sports plex/greensboro ice house""" "Given the titles of all courses, in order of titles and credits.","SELECT title FROM course ORDER BY title , credits" Find the first names and offices of all instructors who have taught some course and also find the course description.,"SELECT T2.emp_fname, T4.prof_office, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" How many million viewers watched episode 6?,SELECT viewers__millions_ FROM table_17901155_4 WHERE no_in_season = 6 What was the record after game 45?,"SELECT record FROM table_name_13 WHERE game = ""45""" Which country produced the most expensive car in 1970?,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN price AS T4 ON T4.ID = T1.ID WHERE T2.model_year = 1970 ORDER BY T4.price DESC LIMIT 1 What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.,"SELECT Nationality , COUNT(*) FROM pilot GROUP BY Nationality" State the region id of Japan.,SELECT T.id FROM region AS T WHERE T.region_name = 'Japan' What is the name of the coin with the highest price?,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.price = ( SELECT MAX(price) FROM historical ) Count the number of United Airlines flights arriving in ASY Airport.,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.DestAirport = ""ASY""" Name the most top 10s for 2 best finish,"SELECT MAX(top_10s) FROM table_2112220_6 WHERE best_finish = ""2""" What was the date of elevation for the cardinal given the order and title of Cardinal-Priest of S. Pudenziana?,"SELECT elevated FROM table_name_91 WHERE cardinalatial_order_and_title = ""cardinal-priest of s. pudenziana""" What is the Almali village with the Süskən village zərnə?,"SELECT almalı__qax_ FROM table_name_77 WHERE süskən = ""zərnə""" "What was the score in the game played on December 2, 1984?","SELECT record FROM table_14863869_1 WHERE date = ""December 2, 1984""" Return the id of the store with the most customers.,SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1 Which mountain range includes Mount Hubbard?,"SELECT mountain_range FROM table_name_64 WHERE mountain_peak = ""mount hubbard""" What are the names of instructors who earn more than at least one instructor from the Biology department?,SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology') Great! Could you update this list to show all of the mission IDs?,"SELECT T1.Fate, T1.mission_id FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = ""United States""" Where is the location attendance when the date is January 9?,"SELECT location_attendance FROM table_28768469_7 WHERE date = ""January 9""" "Among the players born in 1977, what is the percentage of the players with a role as a captain?",SELECT CAST(SUM(CASE WHEN T1.Role_Desc = 'Captain' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Role_Id) FROM Rolee AS T1 INNER JOIN Player_Match AS T2 ON T2.Role_Id = T1.Role_Id INNER JOIN Player AS T3 ON T3.Player_Id = T2.Player_Id WHERE T3.DOB LIKE '1977%' What was Anthony Leung Kam-Chung previous position?,"SELECT portfolio FROM table_2263674_1 WHERE romanised_name = ""Anthony Leung Kam-chung""" What chassis did the porsche flat-4 use before 1958?,"SELECT chassis FROM table_name_44 WHERE engine = ""porsche flat-4"" AND year < 1958" Find the distinct names of all songs that have a higher resolution than some songs in English.,"SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = ""english"")" Which schools have more than 1 player?,SELECT T2.School FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT ( * ) > 1 How many tracks are in the Jazz genre?,"SELECT count ( T2.name ) FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Jazz""" What is the total credit does each department offer?,"SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code" How many awards had been held in 2009?,"SELECT COUNT(award_id) FROM Award WHERE SUBSTR(year, 1, 4) = '2009';" Who were the candidates when Jack Fields was the incumbent?,"SELECT candidates FROM table_1341577_44 WHERE incumbent = ""Jack Fields""" "What answer did user No. 2681 give to the question ""Do you currently have a mental health disorder?""?",SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext = 'Do you currently have a mental health disorder?' AND T1.UserID = 2681 What is the lowest number of losses for a team with more than 0 wins?,SELECT MIN(losses) FROM table_name_53 WHERE wins > 0 List out projects which did not hire staff for researcher role ?,SELECT project_id FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) Show the company name and the main industry for all companies whose headquarters are not from USA.,"SELECT company , main_industry FROM company WHERE headquarters != 'USA'" What is the season for series 81?,SELECT season__number FROM table_name_52 WHERE series__number = 81 which campus has the most faculties in year 2003?,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 "How many draws have less than 8 wins, and 31 goals for?",SELECT SUM(draws) FROM table_name_25 WHERE wins < 8 AND goals_for = 31 "What country in Europe is ranked 4, with top goal scorer Karl-Heinz Rummenigge with 14 goals?","SELECT europe FROM table_name_68 WHERE rank = ""4"" AND top_goalscorer = ""karl-heinz rummenigge"" AND goals = 14" Show the average population of all counties.,SELECT avg(Population) FROM county How many touchdowns did bill culligan have?,"SELECT COUNT(touchdowns) FROM table_25647137_2 WHERE player = ""Bill Culligan""" What values of HDTV correspond to n° of 862?,SELECT hdtv FROM table_15887683_16 WHERE n° = 862 "Find the names of all the tracks that contain the word ""you"".",SELECT Name FROM TRACK WHERE Name LIKE '%you%' How many patients stay in room 112?,SELECT count(patient) FROM stay WHERE room = 112 Show the authors who have submissions to more than one workshop.,SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 What is the sum of wins after 1999?,SELECT SUM(wins) FROM table_name_47 WHERE year > 1999 What is the department name for these courses?,SELECT dept_name FROM course WHERE course_id IN ( SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing' ) What is the record in the 2 round fight that ended by submission (injury)?,"SELECT record FROM table_name_70 WHERE round = ""2"" AND method = ""submission (injury)""" What's the latest year that daisy garcia reyes did not place in miss world?,"SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = ""did not place"" AND delegate = ""daisy garcia reyes""" Find the last names of all the teachers that teach GELL TAMI.,"SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""GELL"" AND T1.lastname = ""TAMI""" "List, by ProductID, all products whose profit, relative to the standard price, is negative.",SELECT DISTINCT ProductID FROM ProductVendor WHERE StandardPrice - LastReceiptCost < 0 What was the home team score for the game played at Western Oval?,"SELECT home_team AS score FROM table_name_75 WHERE venue = ""western oval""" What gender of users posted the most tweets in `en`?,"SELECT T.Gender FROM ( SELECT T2.Gender, COUNT( text) AS num FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Lang = 'en' GROUP BY T2.Gender ) T ORDER BY T.num DESC LIMIT 1" "what are all the type where location is st ives, cambridgeshire","SELECT type FROM table_11934032_1 WHERE location = ""St Ives, Cambridgeshire""" What is the length of the Kolob Arch,SELECT length_meters FROM bridge WHERE name = 'Kolob Arch' "What is the average Year, when Country is ""U.S."", and when Location is ""Edmond , OK""?","SELECT AVG(year) FROM table_name_28 WHERE country = ""u.s."" AND location = ""edmond , ok""" Which home team was playing on January 13?,"SELECT home FROM table_name_87 WHERE date = ""january 13""" Who are the friends of Alice that are doctors?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor' What are the distinct secretary votes in the fall election cycle?,"SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = ""Fall""" What is the checking balance of the account whose owner’s name contains the substring ‘ee’?,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' "In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?","SELECT COUNT(week) FROM table_name_15 WHERE date = ""october 12, 1975"" AND attendance > 44 OFFSET 043" Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam?,"SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = ""Sudket Prapakamol Saralee Thungthongkam""" "What is the Week number with an Attendance of 62,123?","SELECT COUNT(week) FROM table_name_78 WHERE attendance = ""62,123""" What's the save when the loss was santiago (2–2)?,"SELECT save FROM table_name_76 WHERE loss = ""santiago (2–2)""" What is the Location of the game on 11/08/1975*?,"SELECT location FROM table_name_43 WHERE date = ""11/08/1975*""" Who is the manager whose rank is 16?,SELECT manager FROM table_1218784_1 WHERE rank = 16 "For each year, return the year and the number of times the team Boston Red Stockings won in the postseasons.","SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year" "List the summary of the method ""Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection"".",SELECT DISTINCT Summary FROM Method WHERE Name = 'Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection' What parties have at least three representatives?,SELECT Party FROM representative GROUP BY Party HAVING COUNT(*) >= 3 "Write down the inventories' IDs and actors' names of ""STREETCAR INTENTIONS"".","SELECT T4.inventory_id, T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN inventory AS T4 ON T2.film_id = T4.film_id WHERE T3.title = 'STREETCAR INTENTIONS'" What is the number of apartments whose type code is studio?,SELECT count ( * ) from apartments where apt_type_code = 'Studio' "What is the longest business time on Mondays for a Yelp_Business under the category ""Shopping""?","SELECT T1.closing_time + 12 - T1.opening_time AS ""hour"" FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id INNER JOIN Business_Categories AS T4 ON T3.business_id = T4.business_id INNER JOIN Categories AS T5 ON T4.category_id = T5.category_id WHERE T2.day_of_week LIKE 'Monday' AND T5.category_name LIKE 'Shopping' ORDER BY T1.closing_time + 12 - T1.opening_time DESC LIMIT 1" What is the population of area of 11?,"SELECT population FROM table_name_15 WHERE area = ""11""" Identify the total number of orders placed by the customer 'Laughing Bacchus Wine Cellars' and it's average value.,"SELECT COUNT(T2.OrderID) , SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) / COUNT(T2.OrderID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.CompanyName = 'Laughing Bacchus Wine Cellars'" "Show the minimum, average, and maximum age of all students.","SELECT min(age) , avg(age) , max(age) FROM Student" How many documents do we have?,SELECT count(*) FROM Documents How many awards has Rene Balcer been nominated for?,SELECT COUNT(T2.award_id) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Rene Balcer' what is the points for when the club has 0 drawn and 60 tries against?,"SELECT points_for FROM table_name_71 WHERE drawn = ""0"" AND tries_against = ""60""" "Describe the scene number, act, and title of work which had the description of ""The house of ANTIPHOLUS of Ephesus"" in chapter.","SELECT T2.Act, T2.Scene, T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'The house of ANTIPHOLUS of Ephesus.'" "Show the location name for document ""Robin CV"".","SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = ""Robin CV""" "What was the Week number on November 20, 1977?","SELECT SUM(week) FROM table_name_54 WHERE date = ""november 20, 1977""" What song placed higher than#4?,SELECT song FROM table_name_41 WHERE place > 4 who is the latest artist?,SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters?,"SELECT MAX(stories) FROM table_name_38 WHERE location = ""recife"" AND year_of_completion > 2007 AND height__m_ < 135" List the title of the episode with stars greater than the 70% of average stars of all episodes.,SELECT DISTINCT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars > 0.7 * ( SELECT AVG(stars) FROM Vote ); List down the names of the games in the racing genre.,SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Racing' What are the territory descriptions of territories in the Eastern region?,SELECT DISTINCT T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' ORDER BY T1.TerritoryDescription "What is the Partner of the match with a Score in Final of 5–7, 4–6?","SELECT partner FROM table_name_92 WHERE score_in_final = ""5–7, 4–6""" what's the turing complete with numeral system being decimal,"SELECT turing_complete FROM table_13636_1 WHERE numeral_system = ""Decimal""" What is the total pick# played by Anton Rodin with a Reg GP over 0?,"SELECT COUNT(pick__number) FROM table_name_32 WHERE player = ""anton rodin"" AND reg_gp > 0" What is the maximum total when the To par is +3?,"SELECT MAX(total) FROM table_name_16 WHERE to_par = ""+3""" "What is 2001, when 2007 is ""1R"", and when 2008 is ""Q1""?","SELECT 2001 FROM table_name_99 WHERE 2007 = ""1r"" AND 2008 = ""q1""" "What is the height in centimeter of the tallest player born in Edmonton, Alberta, Canada?","SELECT T2.height_in_cm FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.birthplace = 'Edmonton, AB, CAN' ORDER BY T2.height_in_cm DESC LIMIT 1" What is the id and name of the browser that is compatible with the most web accelerators?,"SELECT T1.id, T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1" How many enzymes can Aripiprazole interact with?,"SELECT COUNT ( DISTINCT T2.enzyme_id ) FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE name = ""Aripiprazole""" Can you list the addresses of all customers that have VIP as their other account details?,SELECT T1.customer_address FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id where T2.other_account_details = 'VIP' What are all of their salaries?,"SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'" What is the famous release date of the artist with the oldest age?,SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 What is the name of the course that has the least student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT ( * ) LIMIT 1 What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?,"SELECT romaji_title FROM table_name_79 WHERE tv_station = ""tbs"" AND japanese_title = ""around40〜注文の多いオンナたち〜""" List the names of the English Artist whose song's rating is not 10,"SELECT DISTINCT artist_name FROM song WHERE languages = ""english"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating = 10" Show names of parties that does not have any members.,SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member) When is the Geelong game?,"SELECT date FROM table_name_26 WHERE home_team = ""geelong""" Name the number of draws for when conceded is 25,SELECT COUNT(draws) FROM table_14889048_1 WHERE conceded = 25 What is the total number of 3rd place entries that have exactly 8 total placings?,SELECT COUNT(third_place_s_) FROM table_20823568_2 WHERE total_placing_s_ = 8 How many users are logged in?,SELECT count(*) FROM users WHERE user_login = 1 How many albums has Billy Cobam released?,"SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = ""Billy Cobham"";" "Which Nationality has a Lane of 5, and a Time of 7:08.04?","SELECT nationality FROM table_name_36 WHERE lane = 5 AND time = ""7:08.04""" Can you list the driver ids and whether they drive full time or not?,"SELECT Driver_ID, If_full_time FROM school_bus" What is the product type of the product whose average price is greater than the average price of all products?,SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg ( product_price ) > ( SELECT avg ( product_price ) FROM products ) 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 was the score against Loic Didavi?,"SELECT result FROM table_23563375_11 WHERE opponent = ""Loic Didavi""" what is the tournament when in 2012 the performance was 2r?,"SELECT tournament FROM table_name_38 WHERE 2012 = ""2r""" What is the mascot for texas tech university?,"SELECT team_nickname FROM table_28243691_1 WHERE institution = ""Texas Tech University""" Show all branch names with the number of members in each branch registered after 2015.,"SELECT T2.name , count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id" Show names for all regions except for Denmark.,SELECT region_name FROM region WHERE region_name != 'Denmark' What is the type with the fewest games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1 What reference is used with the title アイシテル?,"SELECT reference FROM table_name_39 WHERE japanese_title = ""アイシテル""" Name the studio host for glenn ordway and jerry sichting with year of 1993-94,"SELECT studio_host FROM table_name_91 WHERE play_by_play = ""glenn ordway"" AND color_commentator_s_ = ""jerry sichting"" AND year = ""1993-94""" Name the number of weeks for san francisco 49ers,"SELECT COUNT(week) FROM table_14984103_1 WHERE opponent = ""San Francisco 49ers""" "Which Attendance has a Game smaller than 3, and a Date of october 31?","SELECT COUNT(attendance) FROM table_name_49 WHERE game < 3 AND date = ""october 31""" who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?,"SELECT opponent FROM table_name_83 WHERE method = ""submission (rear naked choke) at 4:02 of round 2""" Find the number of stores in each city.,"SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city" Could you show me the IDs for all documents with budget types described as 'Organisation'?,"SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = ""Organisation""" What tournament was Thomas Enqvist runner up?,"SELECT tournament FROM table_name_15 WHERE runner_up = ""thomas enqvist""" How many players have a yCard?,"SELECT count ( * ) FROM Player WHERE yCard = ""yes""" "List all goalies from year 2000 to 2010 for team COL. State their given name, height, weight and age of today.","SELECT T1.nameGiven, T1.height , T1.weight, STRFTIME('%Y', CURRENT_TIMESTAMP) - birthYear FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'COL' AND T2.year >= 2000 AND T2.year <= 2010 GROUP BY T1.playerID" what is the highest professor extension in the table?,SELECT max ( prof_extension ) from professor What is the smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1?,SELECT MIN(wins) FROM table_name_51 WHERE cuts_made > 4 AND top_5 < 1 What was the record after game 41?,SELECT record FROM table_name_1 WHERE game = 41 what is the minimum age of all people,SELECT min ( age ) FROM people What was the score of the game with a record of 33–25–9?,"SELECT score FROM table_name_13 WHERE record = ""33–25–9""" Which of those products does not have a buying price?,"SELECT T2.product_name FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' AND T2.typical_buying_price = """"" Which school did Dahntay Jones graduate from?,"SELECT school_club_team FROM table_name_24 WHERE player = ""dahntay jones""" What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?,"SELECT date FROM table_name_17 WHERE visitor = ""calgary flames"" AND record = ""1–2–0""" How many tracks have the title let love be your energy?,"SELECT COUNT(track_no) FROM table_28715942_2 WHERE track = ""Let Love Be Your Energy""" Which regions speak Dutch or English?,"SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" OR T2.Language = ""Dutch""" What was the venue where the result was 2-1?,"SELECT venue FROM table_name_33 WHERE result = ""2-1""" Find the enzyme name of medicine id 3?,SELECT DISTINCT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.medicine_id = 3 What team played on the road against the Buffalo Bills at home ?,"SELECT visiting_team FROM table_name_21 WHERE host_team = ""buffalo bills""" "What are the words that were paired with ""John"", list down 10 of them.",SELECT w2nd FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'john' ) LIMIT 10 Find the name of songs that does not have a back vocal.,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""back""" "What is the English word for the Russian words loshad, kobyla (лошадь, кобыла)?","SELECT english FROM table_15040_8 WHERE russian = ""loshad, kobyla (лошадь, кобыла)""" Count the number of orders made from the store in city with population of 3000000 to 4000000.,SELECT COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T2.Population BETWEEN 3000000 AND 4000000 What is the round in Finland with a draw for method?,"SELECT round FROM table_name_32 WHERE location = ""finland"" AND method = ""draw""" "When was the successor who got his seat because of ""until august 2, 1813"" seated?","SELECT date_successor_seated FROM table_225096_4 WHERE reason_for_change = ""Until August 2, 1813""" Who's the captain of the team whose head coach is Alistair Edwards? ,"SELECT captain FROM table_1301373_1 WHERE head_coach = ""Alistair Edwards""" What are the ids and names of the companies that operated more than one flight?,"SELECT T1.id , T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING count(*) > 1" "What are the last names of female students, ordered by age descending?","SELECT LName FROM STUDENT WHERE Sex = ""F"" ORDER BY Age DESC" retrieve the country that has published the least papers?,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count ( * ) LIMIT 1 List down the district number of the representative of the house named Jonathan Grout.,SELECT T2.district FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.last_name = 'Grout' AND T1.first_name = 'Jonathan' AND T2.type = 'rep' Can you list all market ids and the names of the districts associated with them?,"SELECT market_id, district from market" Which employee was responsible for inspection no.48224? Give the full name.,"SELECT T2.first_name, T2.last_name FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id = 48224" Find the numbers of different majors and cities.,"SELECT COUNT(DISTINCT major), COUNT(DISTINCT city_code) FROM student" "Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4?",SELECT MAX(field_goals) FROM table_name_76 WHERE touchdowns = 0 AND points > 4 What date has a theme of fate or fortune?,"SELECT date FROM table_name_21 WHERE theme = ""fate or fortune""" How many ties occurred with a score of 2–2?,"SELECT tie_no FROM table_name_83 WHERE score = ""2–2""" What number(s) in the series was written by bo crese?,"SELECT no_in_series FROM table_26565936_2 WHERE written_by = ""Bo Crese""" "When driver yuji tachikawa had a make of lexus, what team did he represent?","SELECT team FROM table_name_38 WHERE make = ""lexus"" AND drivers = ""yuji tachikawa""" Give the name of the country and state of the city with elevation of 1039.,"SELECT DISTINCT T1.name, T2.state FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T3.elevation = 1039" How many courses does the department of Computer Information Systmes offer?,"SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Computer Info. Systems""" What the most common characteristic id?,SELECT characteristic_id from product_characteristics group by characteristic_id order by count ( * ) desc limit 1 Name the score for record 33-47,"SELECT score FROM table_name_30 WHERE record = ""33-47""" "What are the maximum and minimum sales of the companies whose industries are not ""Banking"".","SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != ""Banking""" "What is all the product data, as well as each product's manufacturer?",SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code What is the highest value for Points 2 when the goal average 1 is 0.65?,"SELECT MAX(points_2) FROM table_17359181_1 WHERE goal_average_1 = ""0.65""" What are the start date and end date of each apartment booking?,"SELECT booking_start_date , booking_end_date FROM Apartment_Bookings" Perfect! Can you update this list to show the college names associated with each of these 2 players?,"SELECT T1.pName ,T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" Please show the names of all members who go to Saskatchewan School,SELECT T2.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T1.Name = 'Saskatchewan School' What are the issue date of 34th England Academy Prize?,"SELECT T2.Issue_Date FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Music_Festival = ""34th England Academy Prize""" What are the id of students who registered courses or attended courses?,SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance "What is Socket, when Part Number(s) is au80610003495aa?","SELECT socket FROM table_name_69 WHERE part_number_s_ = ""au80610003495aa""" How many perpetrators does that include?,SELECT count ( T2.Perpetrator_ID ) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84 What percentage of the people in Bonneville voted for Bush?,"SELECT bush_percentage FROM table_2401326_1 WHERE county = ""Bonneville""" List the games available on Wii.,SELECT T4.game_name 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 INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T1.platform_name = 'Wii' "Among the customers from Morocco, how many customers were in debt?",SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T1.c_acctbal < 0 AND T2.n_name = 'MOROCCO' "Which product's detail contains the word ""Latte"" or ""Americano""? Return the full detail.","SELECT product_details FROM products WHERE product_details LIKE ""%Latte%"" OR product_details LIKE ""%Americano%""" How many products are there for each manufacturer?,"SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" What is the active and inactive ratio of the business with the review count of low.,SELECT CAST(SUM(CASE WHEN active = 'true' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN active = 'false' THEN 1 ELSE 0 END) AS radio FROM Business WHERE review_count = 'Low' 15.03 million u.s viewers seen what episode?,"SELECT title FROM table_14847258_1 WHERE us_viewers__millions_ = ""15.03""" How many hours does a striker need to play to meet the minimum?,SELECT min ( T2.HS ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID and T1.pPos = 'striker' GROUP BY T1.pPos "How many rounds in the fight in Quebec, Canada against David Loiseau?","SELECT COUNT(round) FROM table_name_2 WHERE location = ""quebec, canada"" AND opponent = ""david loiseau""" Who earned high points in game 69?,SELECT high_points FROM table_17323092_8 WHERE game = 69 "What is the category of the inspection of the establishment named ""J & J FOOD""?",SELECT DISTINCT T4.category FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T1.dba_name = 'J & J FOOD' How many albums are there?,SELECT count(*) FROM ALBUM Who was the incumbent in the Illinois 17 district?,"SELECT incumbent FROM table_1342218_13 WHERE district = ""Illinois 17""" How many buildings in this table?,SELECT count ( * ) from building "Among the flights operated by American Airlines Inc., how many of them were scheduled to land in New York?",SELECT SUM(CASE WHEN T2.DEST = 'JFK' THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' What round was northeastern college player Reggie Lewis drafted in?,"SELECT MIN(round) FROM table_name_26 WHERE college = ""northeastern"" AND player = ""reggie lewis""" When did the staff member with first name as Janessa and last name as Sawayn leave the company?,"SELECT date_left_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" How low is the Attendance that has an Opponent of devil rays and a Date of may 13?,"SELECT MIN(attendance) FROM table_name_15 WHERE opponent = ""devil rays"" AND date = ""may 13""" How many employees do we have?,SELECT count(*) FROM Employees What is the maximum capacity in Lambert? | Did you mean Lamberton? | yes. my apologies.,"SELECT max ( capacity ) FROM classroom Where building = ""Lamberton""" what's the election date where electorate is omata,"SELECT election_date FROM table_1193568_1 WHERE electorate = ""Omata""" Return the day Number and stored date for all the documents.,"SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date" Name the attendance for july 16,"SELECT attendance FROM table_name_24 WHERE date = ""july 16""" What are the date from and date to of that project?,"SELECT date_from, date_to from Project_staff where project_id = '7'" What date had a kickoff of 1:00 and a result of l 27-14?,"SELECT date FROM table_name_81 WHERE kickoff_[a_] = ""1:00"" AND result = ""l 27-14""" What are the ids of documents with letter 's' in the name with any expense budgets.,SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' What is the minimum weight of all-star players coming from UCLA college?,SELECT MIN(T1.weight) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'UCLA' In what Round was OL Player Richard Zulys picked?,"SELECT SUM(round) FROM table_name_92 WHERE position = ""ol"" AND player = ""richard zulys""" Show the id of game platform which makes the most sales in Japan.,"SELECT T.game_platform_id FROM ( SELECT T2.game_platform_id, MAX(T2.num_sales) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' ) t" What are the project id of documents with the letter 's' in the name with any expense budgets?,SELECT T1.Project_ID FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' what is the position for robert johnson?,"SELECT position FROM table_name_25 WHERE name = ""robert johnson""" How many matches were held during the 2021 season's Premier League?,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T2.name = 'Premier League' "What are the apartment number, start date, and end date of each apartment booking?","SELECT T2.apt_number , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id" "Among the shipments for Downey, how many shipments were shipped to California in 2016?","SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T3.cust_id = T1.cust_id WHERE T2.city_name = 'Downey' AND STRFTIME('%Y', T1.ship_date) = '2016' AND T3.state = 'CA'" Find the distinct Advisor of students who have treasurer votes in the spring election cycle.,"SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = ""Spring""" Which the Fastest Lap has a Season of 2009 and Poles smaller than 0?,"SELECT MAX(fastest_laps) FROM table_name_65 WHERE season = ""2009"" AND poles < 0" "Find the average access counts of documents with functional area ""Acknowledgement"".","SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = ""Acknowledgement""" "What year did the winnings equal $281,945?","SELECT year FROM table_2182562_1 WHERE winnings = ""$281,945""" What week was the opponent the San Diego Chargers?,"SELECT COUNT(week) FROM table_name_94 WHERE opponent = ""san diego chargers""" what game had a score of 86-71,"SELECT attendance FROM table_name_8 WHERE record = ""86-71""" In what tournament did Cipolla face Sergio Roitman?,"SELECT tournament FROM table_name_5 WHERE opponent = ""sergio roitman""" "What is the average number of rooms of apartments with type code ""Studio""?","SELECT avg(room_count) FROM Apartments WHERE apt_type_code = ""Studio""" Which Score has January larger than 18 and a Record of 35–15–1?,"SELECT score FROM table_name_79 WHERE january > 18 AND record = ""35–15–1""" Find the first names of the teachers that teach first grade.,SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 Show the names of people aged either 35 or 36.,SELECT Name FROM people WHERE Age = 35 OR Age = 36 Please list the case numbers of all the crimes with no arrest made in Central Chicago.,SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' AND T1.arrest = 'FALSE' Find all the songs that do not have a back vocal.,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""back""" How many paragraphs for the document with name 'Summer Show'?,SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show' How many years did caroline lubrez win?,"SELECT SUM(year) FROM table_name_19 WHERE winner = ""caroline lubrez""" What is the total ordered quantity for products under the 'Touring' line?,SELECT SUM(T2.OrderQty) FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductLine = 'T' "Can you list the awards of the musical nominee ""Bob Fosse""?","SELECT DISTINCT Award FROM musical WHERE Nominee = ""Bob Fosse""" "What is the sum of silver medals of the nation Cuba, which has less than 0 gold?","SELECT SUM(silver) FROM table_name_7 WHERE nation = ""cuba"" AND gold < 0" Find the cities which were once a host city after 2009?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2009 What's the axle ratio of the model with model designation 97G00?,"SELECT axle_ratio FROM table_20866024_2 WHERE model_designation = ""97G00""" Find the full names of faculties who are members of department with department number 520.,"SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520" "What are the products by the company ""Bigfoot Breweries""?",SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Bigfoot Breweries' what is the round when the pick # is less than 236 and the position is offensive guard?,"SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = ""offensive guard""" How many different ranks does the Cathay Pacific Plaza 2 have?,"SELECT COUNT(rank) FROM table_23759976_1 WHERE building_[a_] = ""Cathay Pacific Plaza 2""" Which highest Points has a Score of 1–1 ot?,"SELECT MAX(points) FROM table_name_49 WHERE score = ""1–1 ot""" List out 3 customer numbers who have highest amount payment,SELECT customerNumber FROM payments ORDER BY amount DESC LIMIT 3 Which Played has a Club of club?,"SELECT played FROM table_name_94 WHERE ""club"" = ""club""" Name the number of rank for april 2013 for 2012 ran kbeing 225,SELECT COUNT(april_2013_cum_rank) FROM table_24307126_3 WHERE rank_2012 = 225 Which earth has west metal?,"SELECT earth FROM table_name_10 WHERE metal = ""west""" "Which School has an Enrollment larger than 264, and a County of 46 la porte?","SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = ""46 la porte""" What are all the fault descriptions and the fault status of all the faults recoreded in the logs?,"SELECT T1.fault_description , T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id" What is the report for 10 october?,"SELECT report FROM table_name_13 WHERE date = ""10 october""" "How many documents are named ""Robin CV""?","SELECT count ( * ) from all_documents where document_name = ""Robin CV""" What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95?,"SELECT AVG(latitude) FROM table_name_15 WHERE water__sqmi_ < 2.106 AND county = ""dickey"" AND pop__2010_ < 95" "What is the date of the game with 38,062 people in attendance?","SELECT date FROM table_name_80 WHERE attendance = ""38,062""" How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?,SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia' Which athlete has a 35 km event?,"SELECT athlete FROM table_name_74 WHERE event = ""35 km""" What was the sum of the crowds that watched Fitzroy play as the away team?,"SELECT SUM(crowd) FROM table_name_81 WHERE away_team = ""fitzroy""" List the name of physicians who took some appointment.,SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID Wow that's a lot! Can you update that list to show me the semester and year which have the fewest number of students taking any class?,"SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count ( * ) LIMIT 1" How many dogs have an age below the average?,SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs ) What was the outcome on 13 may 2007?,"SELECT outcome FROM table_name_80 WHERE date = ""13 may 2007""" "Which Nation has a Gold of 0, and a Bronze smaller than 6, and a Rank of 6?","SELECT nation FROM table_name_91 WHERE gold = 0 AND bronze < ""6"" AND rank = ""6""" What was the distance of the race in which Northerly raced in group G3?,"SELECT distance FROM table_1358608_4 WHERE group = ""G3""" Find the last names of the teachers that teach fifth grade.,SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 What is the Zip Code where Janessa Lived? | Do you mean the zip postcode in the address where Janessa lived? | Yes,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa""" Which of those has the highest count of customers?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count ( * ) DESC LIMIT 1 Please provide the path of solution of method whose full comment is Feeds data into the parser.,SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.FullComment = 'Feeds data into the parser' "Show the first name of the ""CTO"" of club ""Hopkins Student Enterprises""","SELECT t3.fname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t2.position = ""CTO""" Which position has 50+12 points and fewer than 10 draws?,"SELECT MAX(position) FROM table_name_92 WHERE points = ""50+12"" AND draws < 10" what are race circuits in Spain,"SELECT name FROM circuits WHERE country = ""Spain""" What was the location of LA awards?,SELECT Location from festival_detail where Festival_Name = 'LA Awards' can you show me a list of locations?,SELECT Location FROM performance Who was the architect of the 10 floor building with a height of 42 M?,SELECT architect FROM table_name_68 WHERE height_[m] = 42 AND floors = 10 "What was the outcome of the match with score 4–6, 3–6, 2–6?","SELECT outcome FROM table_22839669_1 WHERE score_in_the_final = ""4–6, 3–6, 2–6""" What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?,SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000 What is the area for the province having Hangul of 경기도?,"SELECT area FROM table_name_60 WHERE hangul_chosongul = ""경기도""" How many companies are headquartered in the US?,SELECT COUNT(*) FROM company WHERE Headquarters = 'USA' Name the party for spencer bachus,"SELECT party FROM table_25030512_4 WHERE incumbent = ""Spencer Bachus""" List the locations of schools that do not have any player.,SELECT LOCATION FROM school WHERE NOT School_ID IN (SELECT School_ID FROM Player) Show the distinct countries of managers.,SELECT DISTINCT Country FROM manager Could you please show the membership level with the greatest number of members?,SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count ( * ) DESC LIMIT 1 "What is the venue when the Round shows after extra time, chelsea won on 4-1 on penalties?","SELECT venue FROM table_name_64 WHERE round = ""after extra time, chelsea won on 4-1 on penalties""" What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it?,"SELECT student_capacity , gender FROM dorm WHERE dorm_name LIKE '%Donor%'" "Find the dates of orders which belong to the customer named ""Jeramie"".","SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" Which Semifinalists has a Finalist of andre agassi?,"SELECT semifinalists FROM table_name_23 WHERE finalist = ""andre agassi""" "What polls are those from? | Did you want the poll source for these polls? | Yes, please","SELECT Poll_Source, Support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3" What is the score points when the total is 20?,"SELECT score_points FROM table_name_4 WHERE total = ""20""" What is the cost of the slowest and least expensive shipping method?,SELECT method_name FROM shipping_method ORDER BY cost ASC LIMIT 1 Name the general classification for steven kruijswijk,"SELECT general_classification FROM table_29077342_19 WHERE winner = ""Steven Kruijswijk""" Show the names of roller coasters of Australia and Finland in separate table,SELECT T2.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = 'Austria' or T1.Name = 'Finland' "Among the books published by Birlinn in 2008, how many books have pages around 600 to 700?","SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Birlinn' AND STRFTIME('%Y', T1.publication_date) = '2008' AND T1.num_pages BETWEEN 600 AND 700" How many apartments do not have any facility?,SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities) Who else was also nominated in 1986?,"SELECT distinct nominee FROM musical where year = 1986 and nominee ! = ""Bob Fosse""" What tournament did Pemra Özgen play against julia kimmelmann in the finals?,"SELECT tournament FROM table_name_54 WHERE opponent_in_the_final = ""julia kimmelmann""" How many points did the home team Essendon score?,"SELECT home_team AS score FROM table_name_4 WHERE home_team = ""essendon""" What are the id and the amount of refund of the booking that incurred the most times of payments?,"SELECT T1.booking_id , T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1" What was the airing date when the number of episodes was larger than 20 and had the genre of costume action?,"SELECT airing_date FROM table_name_73 WHERE number_of_episodes > 20 AND genre = ""costume action""" Hello! Can you provide me with a list of all employee IDs and their corresponding salaries?,"SELECT employee_id , salary FROM employees" Who was the away team with a tie of 14?,"SELECT away_team FROM table_name_4 WHERE tie_no = ""14""" "Show the times of elimination by ""Punk"" or ""Orton"".","SELECT TIME FROM elimination WHERE Eliminated_By = ""Punk"" OR Eliminated_By = ""Orton""" Return all reviewer names and movie names together in a single list.,SELECT name FROM Reviewer UNION SELECT title FROM Movie Can i get the customer name who has low credit score,SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 Could you tell me the number of them that are teaching in a physical class room instead of through online classes?,SELECT count ( DISTINCT t3.emp_num ) FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T3.dept_code = 'ACCT' "List the user ID, business ID with review length of the business which received the most likes in tips.","SELECT T1.user_id, T1.business_id, T2.review_length FROM Tips AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id ORDER BY T1.likes DESC LIMIT 1" What Division III has Bishop Brady in Division V and Hanover in Division IV?,"SELECT division_iII FROM table_name_97 WHERE division_v = ""bishop brady"" AND division_iV = hanover" Could you show me the maximum booked count for the booked products?,SELECT max ( booked_count ) FROM products_booked Just the First name?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' How tall is Nadia Caba Rodríguez?,select height from people where name = 'Nadia Caba Rodríguez' Find the number of routes operated by American Airlines.,SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' "Name the first organisation established in the Paris city. State its abbreviation, full name and date of establishment.","SELECT Abbreviation, Name, Established FROM organization WHERE City = 'Paris' ORDER BY Established ASC LIMIT 1" "Can you please list the ones that contain substring ""Digital"" in their names? | The names of the camera lens that contain substring ""Digital"" in their names are Olympus M.Zuiko Digital ED 45mm f/1.8, Olympus M.Zuiko Digital ED 75mm f/1.8 | Can you please also include their id?","SELECT name ,id FROM camera_lens WHERE name LIKE ""%Digital%""" What model number uses standard voltage socket?,"SELECT model_number FROM table_name_48 WHERE socket = ""standard voltage""" What is the maturity that has a coupon of exactly 0.726?,"SELECT maturity FROM table_21692771_1 WHERE coupon = ""0.726""" What is the Pick number of the Player from Syracuse?,"SELECT pick FROM table_name_76 WHERE college = ""syracuse""" How many trucks are in both movies and musical playlists. | Did you mean to ask for the number of tracks in both movies and music playlists? | yes,SELECT COUNT ( * ) FROM ( SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' ) WHat is the program where duration (years) is 1.5 and teaching language is german/english?,"SELECT program FROM table_12591022_2 WHERE duration__years_ = ""1.5"" AND teaching_language = ""German/English""" show the total distinct leader names of the college associated with the members of all country,SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID "For each user, return the name and the average rating of reviews given by them.","SELECT T1.name , avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" Which Best Film has a Best Supporting Actress of shamaine buencamino for niño?,"SELECT best_film FROM table_name_42 WHERE best_supporting_actress = ""shamaine buencamino for niño""" What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?,"SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')" "Hello, what is the name of the student with student id 1008? | The first and last name of the student with student id 1008 is Jandy Nelson. | What is her major?",SELECT Major FROM student WHERE StuID = 1008 "If the average is 50.16, who is the player?","SELECT player FROM table_27268238_4 WHERE average = ""50.16""" "What are the names of the stations which serve both ""Ananthapuri Express"" and ""Guruvayur Express"" trains?","SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = ""Ananthapuri Express"" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = ""Guruvayur Express""" What are the movie titles and average rating of the movies with the lowest average rating?,"SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1" On which Surface will Estrella Cabeza Candela play?,"SELECT surface FROM table_name_67 WHERE opponent = ""estrella cabeza candela""" "When was the first HC climb which, more recently than 2012, had more than 1 HC climbs, more than 29 times visited?",SELECT SUM(first_time_as_hc_climb) FROM table_name_82 WHERE no_of_hc_climbs > 1 AND no_of_times_visited > 29 AND most_recent > 2012 Who is the director of the film Gie?,"SELECT director FROM table_13719788_1 WHERE film_title_used_in_nomination = ""Gie""" "Show first name, last name, age for all female students. Their sex is F.","SELECT Fname, Lname, Age FROM Student WHERE Sex = 'F'" Which Trofeo Fast Team has a Winner of alessandro paganessi?,"SELECT trofeo_fast_team FROM table_name_10 WHERE winner = ""alessandro paganessi""" How many numbers belong to the player with 10 assists? ,SELECT COUNT(number) FROM table_25401874_1 WHERE assists = 10 "Who is the leader of the party which has Seats less than 28, a percentage of votes 54.03, and more votes than 120,801?","SELECT leader FROM table_name_18 WHERE seats < 28 AND percentage = ""54.03"" AND votes > 120 OFFSET 801" What kind of Pada 1 has a Pada 2 of सा sa?,"SELECT pada_1 FROM table_name_8 WHERE pada_2 = ""सा sa""" Name the most points agst,SELECT MAX(pts_agst) FROM table_21991074_3 What is the average latitude and longitude of all starting stations for the trips?,"SELECT avg(T1.lat) , avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id" "Which Events is the highest one that has a Top-5 larger than 5, and a Top-10 larger than 28?",SELECT MAX(events) FROM table_name_93 WHERE top_5 > 5 AND top_10 > 28 Find the kind of program which most number of students are enrolled in?,SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1 What is the latest year when Call of Duty 4: Modern Warfare was the game?,"SELECT MAX(year) FROM table_name_63 WHERE game = ""call of duty 4: modern warfare""" "What are the enrollment dates of all the tests that have result ""Pass""?","SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass""" How many trips which start station and end station are the same?,"SELECT SUM(IIF(start_station_id = end_station_id, 1, 0)) FROM trip" "Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.","SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'" Show the party with drivers from Hartford and drivers older than 40.,SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40 Please list any three OPPO device models.,SELECT device_model FROM phone_brand_device_model2 WHERE phone_brand = 'OPPO' LIMIT 3 "What is the total number of flights that flew on August 2, 2018 with air carrier described as Horizon Air?",SELECT COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%Horizon Air%' AND T2.FL_DATE = '2018/8/2' How many regions were affected by each storm?,"SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id" What number corresponds to Presidet Yves Krattinger of the Socialist party?,"SELECT number FROM table_name_14 WHERE party = ""socialist party"" AND président = ""yves krattinger""" "Please list the case numbers of all the crimes whose short description of the kind of crime is ""Homicide 1st & 2nd Degree"" in the FBI classification.",SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.title = 'Homicide 1st & 2nd Degree' List out the series code and country code of the poor countries that located in Latin American & Carribbean.,"SELECT T2.SeriesCode, T2.CountryCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Region = 'Latin America & Caribbean' AND t1.incomegroup = 'Low income'" "Hi there! From this database, what is the most popular payment method?",SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count ( * ) DESC LIMIT 1 What is the profit of a single product that received the highest rating from John Smith? List the product/s' names.,"SELECT T1.ListPrice - T1.StandardCost, T1.Name FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T2.ReviewerName = 'John Smith' ORDER BY T2.Rating DESC LIMIT 1" How many KEI catagories are listed when the economic incentive regime is 2.56? ,"SELECT COUNT(kei) FROM table_23050383_1 WHERE economic_incentive_regime = ""2.56""" Show the headquarters that have at least two companies.,SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2 What is the score for Ky Laffoon?,"SELECT score FROM table_name_22 WHERE player = ""ky laffoon""" "How many credits does course CIS-220 have, and what its description?","SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'" How many flags in this table?,SELECT count ( flag ) FROM ship What country offered a prize of 66400 US dollars?,SELECT country FROM table_29302711_13 WHERE prize_money__usd_ = 66400 Which rank has the highest number of faculty members?,SELECT Rank FROM faculty GROUP BY Rank order by count ( * ) desc limit 1 What is the team when the incoming manager is martin allen?,"SELECT team FROM table_26914854_3 WHERE incoming_manager = ""Martin Allen""" How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?,SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000; Which Silver has a Total smaller than 2 and a Rank larger than 8,SELECT MIN(silver) FROM table_name_58 WHERE total < 2 AND rank > 8 What is the College with a Round # that is 290?,SELECT college FROM table_name_20 WHERE round__number = 290 "What was the date for the game that had an attendance of 10,101?","SELECT date FROM table_name_45 WHERE attendance = ""10,101""" Who wrote the episode with production code 1ANJ01?,"SELECT written_by FROM table_13426649_1 WHERE production_code = ""1ANJ01""" What is every value for top 5 if average start is 21.9?,"SELECT top_5 FROM table_2597876_2 WHERE avg_start = ""21.9""" Which publishers did not publish a book in 1989?,SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989 What is the lowest total when the nation is Sweden?,"SELECT MIN(total) FROM table_name_23 WHERE nation = ""sweden""" Which word has the most occurrences within the same page of wikipedia about Catalan language?,SELECT T1.word FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = ( SELECT MAX(occurrences) FROM pages_words ) How many rounds did Pierre Bland have a pick larger than 148?,"SELECT COUNT(round) FROM table_name_13 WHERE pick > 148 AND player = ""pierre bland""" How many orders does Lucas Mancini has?,"SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini""" what's the team with stadium being borough briggs,"SELECT team FROM table_14003108_1 WHERE stadium = ""Borough Briggs""" Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety),"SELECT polyunsaturated_fat FROM table_name_96 WHERE total_fat = ""100g"" AND monounsaturated_fat = ""20g (84g in high oleic variety)""" "Among the stores that have ordered the book ""Life Without Fear"", how many of them are located in Massachusetts?",SELECT COUNT(T1.stor_id) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T2.state = 'Massachusetts' What are the interaction type of ALA synthase?,"SELECT t2.interaction_type FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE name = ""ALA synthase""" "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.","SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking" How many positions are there in total?,SELECT count ( DISTINCT Position ) FROM player "Where the time is 2:46, what is the record?","SELECT record FROM table_name_83 WHERE time = ""2:46""" "Which apartments have bookings with status code ""Confirmed""? Return their apartment numbers.","SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" What is the author ID and their affiliations of authors of the papers with a journal ID of 0 and published in 2009.,"SELECT DISTINCT T2.AuthorId, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.JournalId = 0 AND T1.Year = 2009 AND T2.Affiliation IS NOT NULL" What percentage of students are highly satisfied with the Intro to Database 2 course?,SELECT CAST(( SELECT COUNT(*) FROM course WHERE name = 'Intro to Database 2' AND course_id IN ( SELECT course_id FROM registration WHERE sat = ( SELECT MAX(sat) FROM registration ) ) ) AS REAL) * 100 / COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.name = 'Intro to Database 2' "Hello, how many complaints have we had?",SELECT count ( * ) FROM complaints I want the lowest date for catalog of 6561910008-1,"SELECT MIN(date) FROM table_name_87 WHERE catalog = ""6561910008-1""" Name the cpu type for june 2005 - april 2009,"SELECT cpu_type FROM table_27765443_2 WHERE period_of_operation = ""June 2005 - April 2009""" What is the highest round on 5 april?,"SELECT MAX(round) FROM table_name_42 WHERE date = ""5 april""" Tell me the lowest placings for United Kingdom and rank less than 13,"SELECT MIN(placings) FROM table_name_30 WHERE nation = ""united kingdom"" AND rank < 13" What are the names of people who are not from Russia?,"SELECT Name FROM people WHERE Nationality != ""Russia""" Checking balance of Customer id 3,select balance from CHECKING where custid = '3' List down the name of dishes from menu created in April.,"SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE SUBSTR(T1.created_at, 7, 1) = '4'" what is election id of district 2?,SELECT election_id from election where district = 2 Who was the home team on January 4?,"SELECT home FROM table_name_85 WHERE date = ""january 4""" WHAT IS THE WINNER WITH ATCC ROUND 6?,"SELECT winner FROM table_name_59 WHERE series = ""atcc round 6""" Please list any three line item numbers that have 10% off.,SELECT l_linenumber FROM lineitem WHERE l_discount = 0.1 LIMIT 3 Show member names that are not in the Progress Party.,"SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name <> ""Progress Party""" "TELL ME THE LOCATION OF GLENN | Do you mean the location of the school named ""Glenn""? | YES","SELECT Location from School where School_name = ""Glenn""" What is the Score of 我等的人会是谁?,"SELECT score FROM table_name_78 WHERE song = ""我等的人会是谁""" how many is the minimum for citv,"SELECT MIN(year_acquired) FROM table_1397655_1 WHERE station = ""CITV""" Find the names of all instructors in computer science department,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' Name the BUSHI that has kaz hayashi of kai (14:01),"SELECT bushi FROM table_name_50 WHERE kaz_hayashi = ""kai (14:01)""" Provide the country ID of Cyprus.,SELECT id FROM country WHERE country_name = 'Cyprus' List the height and weight of people in descending order of height.,"SELECT Height , Weight FROM people ORDER BY Height DESC" "How many female actresses appeared in the movie 2312852, what country was it in, and what was it's running time?","SELECT SUM(IIF(T1.a_gender = 'F', 1, 0)) , T3.country, T3.runningtime FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T2.movieid = 2312852 GROUP BY T3.country, T3.runningtime" Name the segment c for crash test dummies,"SELECT COUNT(segment_c) FROM table_15187735_10 WHERE segment_d = ""Crash Test Dummies""" What is the result of the fight that had a tko (low kicks)?,"SELECT result FROM table_name_98 WHERE method = ""tko (low kicks)""" Show me a list of countries with people over the age of 30.,SELECT distinct country FROM people WHERE age>30 Which actor acted in ANONYMOUS HUMAN?,"SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T3.film_id = T2.film_id WHERE T3.title = 'ANONYMOUS HUMAN'" may i have the order ids please,"SELECT order_id FROM orders WHERE order_status = ""Packing""" What is the mean pick number for Iowa College when the overall is less than 200?,"SELECT AVG(pick__number) FROM table_name_77 WHERE college = ""iowa"" AND overall < 200" What is the location and attendance of the game when gilbert arenas (9) had the high assists?,"SELECT location_attendance FROM table_27700530_10 WHERE high_assists = ""Gilbert Arenas (9)""" What is the position of United States' player Brett Lawrence?,"SELECT position FROM table_name_74 WHERE nationality = ""united states"" AND player = ""brett lawrence""" Find the top 3 products which have the largest number of problems?,SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3 Give the criteria name where Harvard University scored 100.,SELECT DISTINCT T3.criteria_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN ranking_criteria AS T3 ON T3.id = T2.ranking_criteria_id WHERE T1.university_name = 'Harvard University' AND T2.score = 100 What is the 1st leg of Team 2 PSV Eindhoven?,"SELECT 1 AS st_leg FROM table_name_21 WHERE team_2 = ""psv eindhoven""" How many parks are there in Atlanta city?,SELECT count(*) FROM park WHERE city = 'Atlanta'; What is the drawn value for furnace united rfc?,"SELECT drawn FROM table_name_47 WHERE club = ""furnace united rfc""" OK! please give me the names of the colleges where enrollment is greater than 20000,SELECT cName FROM College WHERE enr>20000 "which object railways that do not have any trains? | Do you mean the object number? | yes, I apologize. Which object number railways that do not have any trains?",SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN ( SELECT Railway_ID FROM train ) Give the number of stores which opened on the weather station that recorded the fastest average wind speed.,SELECT COUNT(T.store_nbr) FROM ( SELECT DISTINCT store_nbr FROM relation WHERE station_nbr = ( SELECT station_nbr FROM weather ORDER BY avgspeed DESC LIMIT 1 ) ) T Which state contains the University of Iowa in the mideast region?,"SELECT state FROM table_name_67 WHERE region = ""mideast"" AND host = ""university of iowa""" What district is the court located in Tolland?,"SELECT MAX(district) FROM table_26758262_1 WHERE location_of_court = ""Tolland""" Name the university and country which had the highest number of international students in 2015.,"SELECT T1.university_name, T3.country_name FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.year = 2015 ORDER BY T2.num_students DESC LIMIT 1" Can you show me the name of that female candidate?,"SELECT name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = ""F"" order by oppose_rate asc limit 1" When mount kobowre is the peak what is the highest elevation in meters?,"SELECT MAX(elevation__m_) FROM table_18946749_1 WHERE peak = ""Mount Kobowre""" What is the tournament when 2007 is WTA Premier 5 tournaments?,"SELECT tournament FROM table_name_26 WHERE 2007 = ""wta premier 5 tournaments""" What college has a pick smaller than 87 for the position of tackle?,"SELECT college FROM table_name_73 WHERE position = ""tackle"" AND pick < 87" List out all the observation information collected for the patient named Bella Rolfson.,"SELECT DISTINCT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Bella' AND T1.last = 'Rolfson'" What are the full name and GPA of the oldest student whose GPA is below 3?,"SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa < 3 ORDER BY stu_dob ASC LIMIT 1" What was the result of the election where stephen van rensselaer was the incumbent and the party represented was the adams-clay federalist party?,"SELECT result FROM table_2668264_17 WHERE party = ""Adams-Clay Federalist"" AND incumbent = ""Stephen Van Rensselaer""" What was the constructor of the car that Hermann Lang drove after 1935?,"SELECT constructor FROM table_name_89 WHERE year > 1935 AND driver = ""hermann lang""" Which entrant has 49 points and a Mclaren M7A chassis?,"SELECT entrant FROM table_name_66 WHERE points = ""49"" AND chassis = ""mclaren m7a""" "Where was d: 25~70nm, l: 10~20 μm geometry researched?","SELECT researched_at FROM table_30057479_1 WHERE geometry = ""D: 25~70nm, L: 10~20 μm""" Which date was corio oval the venue?,"SELECT date FROM table_name_12 WHERE venue = ""corio oval""" What year had less than 160 laps and a rank of 26?,"SELECT year FROM table_name_25 WHERE laps < 160 AND rank = ""26""" How many percentage yield figures are there when 6.7% are defective?,"SELECT COUNT(percentage_yield) FROM table_222448_1 WHERE percent_defective = ""6.7%""" How many movie lists were still updated 10 years after it was created?,"SELECT COUNT(*) FROM lists WHERE SUBSTR(list_update_timestamp_utc, 1, 4) - SUBSTR(list_creation_timestamp_utc, 1, 4) > 10" "What Call sign has a City of license of higgston, ga?","SELECT call_sign FROM table_name_95 WHERE city_of_license = ""higgston, ga""" List the distinct ranges of the mountains with the top 3 prominence.,SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3 Show me the addresses of the buildings.,SELECT building_address FROM Apartment_Buildings "What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?","SELECT COUNT(bronze) FROM table_name_75 WHERE silver > 0 AND gold > 3 AND rank = ""1""" How many vehicles exist?,SELECT count(*) FROM Vehicles; Who was the lead supporting vocalist on the song that was 4:54 long?,"SELECT lead_supporting_vocal FROM table_name_32 WHERE time = ""4:54""" What is the model number for the GPU and 320 mhz?,"SELECT model_number FROM table_name_98 WHERE gpu_frequency = ""320 mhz""" Show invoice dates and order id and details for all invoices.,"SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id" What was the attendance when the Arden Street Oval?,"SELECT crowd FROM table_name_54 WHERE venue = ""arden street oval""" How many churches had weddings in 2015?,SELECT count ( * ) FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 "Among the recipes with sea bass, how many percent of recipes can serve 10 people and above?",SELECT CAST(SUM(CASE WHEN T1.servings >= 10 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'sea bass steak' "Find the name, city, and country of the airport that has the highest latitude.","SELECT name, city, country FROM airports ORDER BY elevation DESC LIMIT 1" What is the model of the car with the smallest amount of horsepower?,SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1; "What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252?","SELECT COUNT(week) FROM table_name_36 WHERE venue = ""memorial stadium"" AND attendance < 41 OFFSET 252" What is the average number of less severe crimes reported a day in February of 2018?,SELECT CAST(COUNT(T2.case_number) AS REAL) / 28 FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.date LIKE '2/%/2018%' AND T1.index_code = 'N' Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06?,SELECT MIN(rank) FROM table_name_39 WHERE lane = 5 AND time < 11.06 What are the titles and average ratings for all movies that have the lowest average rating?,"SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1" What is the student ID with the most course enrollments,SELECT T1.student_id FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT ( * ) DESC LIMIT 1 Can you tell me the High assists that has the Date of november 25?,"SELECT high_assists FROM table_name_44 WHERE date = ""november 25""" "What is Country, when Points are more than 12?",SELECT country FROM table_name_30 WHERE points > 12 "Among the films rented by Natalie Meyer, describe the titles and categories of the films which were rented in February 2006.","SELECT T3.title, T2.name FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id INNER JOIN customer AS T5 ON T4.store_id = T5.store_id INNER JOIN rental AS T6 ON T4.inventory_id = T6.inventory_id WHERE T5.first_name = 'Natalie' AND T5.last_name = 'Meyer' AND STRFTIME('%Y',T3.rental_rate) = '2006' AND STRFTIME('%m',T3.rental_rate) = '2'" What is the model number with a release price of $496?,"SELECT model_number FROM table_16400024_1 WHERE release_price___usd__ = ""$496""" What is the average number of games played associated with a first game in 1997 and over 0 games drawn?,SELECT AVG(played) FROM table_name_48 WHERE first_game = 1997 AND drawn > 0 What is the Entered service date of the T413?,"SELECT entered_service FROM table_name_32 WHERE delivered_as = ""t413""" which city in Dr. Julia Wuckert MD? | What you mean? | how many customer id?,SELECT COUNT ( customer_id ) FROM customers Show all sport name and the number of students.,"SELECT sportname, COUNT(*) FROM Sportsinfo GROUP BY sportname" What is the average product price of all the products?,SELECT avg ( product_price ) from products Which Semifinalists have a Tournament of rome?,"SELECT semifinalists FROM table_name_28 WHERE tournament = ""rome""" How many episodes with different series numbers were seen by 8.69 people in the US?,"SELECT COUNT(no_in_season) FROM table_19995378_1 WHERE us_viewers__millions_ = ""8.69""" What Entrant has 0 points and from 1997?,SELECT entrant FROM table_name_67 WHERE points = 0 AND year = 1997 what about that customer's email?,SELECT email_address FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM complaints ) "What country has the city, Sydney?","SELECT country FROM table_name_99 WHERE city = ""sydney""" "On 10/20/2014, what is the duration of the fastest trip which started from the station with latitude and longitudes of 37.789625 and -122.400811, respectively? Indicate the bike id.","SELECT MIN(T2.duration), T2.bike_id FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T2.start_date LIKE '10/20/2014%' AND T1.lat = 37.789625 AND T1.long = -122.400811" Name the largest ethnic group for kosančić,"SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE settlement = ""Kosančić""" How many WGA Award (TV) award recipients were born in the USA from 2009 to 2010?,SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award_category = 'WGA Award (TV)' AND T1.birth_country = 'USA' AND T2.year BETWEEN 2009 AND 2010; How many competitors were there who participated in 2000 Summer with age 31?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '2000 Summer' AND T2.age = 31 List the names of poker players ordered by the final tables made in ascending order.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made What is the lowest numbered episode in the series?,SELECT MIN(no_in_series) FROM table_27969432_3 What date has high park demons as the away?,"SELECT date FROM table_name_15 WHERE away = ""high park demons""" What is the lowest cable rank of an episode with 1464000 viewers?,SELECT MIN(rank__cable_) FROM table_25721_3 WHERE total_viewers = 1464000 Find the average access count of documents with the least popular structure.,SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1 "Show the names of members whose country is ""United States"" or ""Canada"".","SELECT Name FROM member WHERE Country = ""United States"" OR Country = ""Canada""" What is the percentage of horror film titles in English film titles?,"SELECT CAST(SUM(IIF(T3.name = 'Horror', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T1.category_id = T3.category_id INNER JOIN language AS T4 ON T2.language_id = T4.language_id WHERE T4.name = 'English'" What year was the rider with a final position-tour of 88 and less than 11 final position-giros?,SELECT SUM(year) FROM table_name_29 WHERE final_position___tour = 88 AND final_position___giro < 11 "Find the detail of products whose detail contains the word ""Latte"" or the word ""Americano""","SELECT product_details FROM products WHERE product_details LIKE ""%Latte%"" OR product_details LIKE ""%Americano%""" Show the name of track and the number of races in each track.,"SELECT T2.name , count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id" Where did South Melbourne go to play a team at home?,"SELECT home_team FROM table_name_98 WHERE away_team = ""south melbourne""" "What is the lowest gp-gs that has an avg/g less than 234.3, with 410.80 as the effic?","SELECT MIN(gp_gs) FROM table_name_42 WHERE avg_g < 234.3 AND effic = ""410.80""" What is the col location with a col height (m) of 1107?,SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107 Give the name of the manager staff for store No.1.,"SELECT T1.first_name, T1.last_name FROM staff AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id WHERE T2.store_id = 1" What is the percentage of users who experienced event number 6 who have the app installed but do not use the app?,"SELECT SUM(IIF(is_installed = 1 AND is_active = 0, 1, 0)) / COUNT(app_id) AS perrcent FROM app_events WHERE event_id = 6" "What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue?","SELECT film FROM table_name_54 WHERE director = ""william a. wellman"" AND year > 1931 AND leading_man = ""george brent"" AND role = ""joan gordon, aka francine la rue""" "What was the name of the paper that was published on ""IEEE Transactions on Pattern Analysis and Machine Intelligence"" in 2011?",SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'IEEE Transactions on Pattern Analysis and Machine Intelligence' AND T2.Year = 2011 AND T2.Title <> '' What is the number of sales in region ID 2 with game platform ID 9615?,SELECT T.num_sales * 100000 FROM region_sales AS T WHERE T.region_id = 2 AND T.game_platform_id = 9615 "Find the cell mobile number of the candidates whose assessment code is ""Fail""?","SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = ""Fail""" List the project details of the project both producing patent and paper as outcomes.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent' Show the names of members and the location of performances they attended in ascending alphabetical order of their names.,"SELECT T2.Name , T3.Location 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 ORDER BY T2.Name ASC" tell me course name for course id 301 and 302?,SELECT course_name FROM courses WHERE course_id = 301 or course_id = 302 Which series episode has a segment c that is Electric pole s transformer?,"SELECT series_ep FROM table_name_59 WHERE segment_c = ""electric pole s transformer""" "On October 17, 1937 what was maximum number or attendants.","SELECT MAX(attendance) FROM table_14608759_1 WHERE date = ""October 17, 1937""" What is the score for the game with an 11 tie number?,"SELECT score FROM table_name_50 WHERE tie_no = ""11""" What is the sum of the rounds of the match with brett chism as the opponent?,"SELECT SUM(round) FROM table_name_73 WHERE opponent = ""brett chism""" What was the result for the politician first elected in 1942?,SELECT result FROM table_1342013_20 WHERE first_elected = 1942 What is the density of the place with an area of 1512?,SELECT MAX(density) FROM table_2847477_2 WHERE area = 1512 Which design uses the theme alpine skiing?,"SELECT design FROM table_name_50 WHERE theme = ""alpine skiing""" Which are the courses with the most number of professors? State the course ID and the level of the course.,"SELECT T1.course_id, T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id, T1.courseLevel ORDER BY COUNT(T1.course_id) DESC LIMIT 1" Which city hosted the most games?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id GROUP BY T2.city_name ORDER BY COUNT(T2.city_name) DESC LIMIT 1 Name the college for dl,"SELECT college FROM table_28059992_2 WHERE position = ""DL""" "Return the address content for the customer whose name is ""Maudie Kertzmann"".","SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = ""Maudie Kertzmann""" Where was the game that took place in November 21 located and how many attended?,"SELECT location_attendance FROM table_17058116_5 WHERE date = ""November 21""" "Among all the female current legislators, how many of them have served for more than 4 terms?",SELECT COUNT(CID) FROM ( SELECT T1.bioguide_id AS CID FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 4 ) Find the names of all the customers and staff members.,SELECT customer_details FROM customers UNION SELECT staff_details FROM staff show director with the largest number of show times in total,SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY sum ( T1.show_times_per_day ) DESC LIMIT 1 "For the sector of Gatunda how many entires are show for the August 15, 2012 population?","SELECT COUNT(population_august_15), _2012 FROM table_12496904_1 WHERE sector = ""Gatunda""" Name the dominant religion for village for бачко добро поље,"SELECT dominant_religion__2002_ FROM table_2562572_20 WHERE type = ""village"" AND cyrillic_name_other_names = ""Бачко Добро Поље""" "What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for the Norwich City club?","SELECT fa_cup_goals FROM table_name_78 WHERE total > 16 AND league_cup_goals = ""1"" AND club = ""norwich city""" What is the pilot id of Prof. Zackery Collins ?,"SELECT pilot_id FROM pilot WHERE name = ""Prof. Zackery Collins""" What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о?,"SELECT german FROM table_name_85 WHERE macedonian = ""беше слушнал/-а/-о""" What's the technology when there are no moving parts but yes to toxic materials?,"SELECT technology FROM table_name_20 WHERE toxic_materials = ""yes"" AND moving_parts = ""no""" What is the total number of laps with a Driver of eddie irvine?,"SELECT SUM(laps) FROM table_name_93 WHERE driver = ""eddie irvine""" What are the first names of employees that serve at least 10 customers?,SELECT T1.FirstName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT ( * ) > = 10 Who is the chairman of Mark Robins team?,"SELECT chairman FROM table_26593762_2 WHERE manager = ""Mark Robins""" What is the number of guns when the superintendent was Silas Talbot?,"SELECT guns FROM table_name_36 WHERE superintendent = ""silas talbot""" "Please list the names of all the crew members of the movie ""Pirates of the Caribbean: At World's End"".",SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' Which first was born on 5 february 1979?,"SELECT first FROM table_name_30 WHERE dob = ""5 february 1979""" What are the characters in the PG movies?,SELECT DISTINCT T2.character FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T1.MPAA_rating = 'PG' Count the number of records in the previous table.,SELECT count ( * ) FROM track What are the wines that have prices lower than 50 and have appelations in Monterey county?,"SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Monterey"" AND T2.price < 50" Which Partner has an Opponents of wayne arthurs sandon stolle?,"SELECT partner FROM table_name_24 WHERE opponents = ""wayne arthurs sandon stolle""" Name the score for september 25,"SELECT score FROM table_name_93 WHERE date = ""september 25""" What about most common?,SELECT Player_name FROM player GROUP BY Occupation ORDER BY COUNT ( * ) desc LIMIT 1 what is 1980 when 1978 is 2.3?,"SELECT 1980 FROM table_name_22 WHERE 1978 = ""2.3""" what is the average total credits in the history department?,SELECT avg ( tot_cred ) FROM student WHERE dept_name = 'History' What are the names and prices of all products with the type code books?,"SELECT Product_Name, Product_Price FROM Products WHERE Product_Type_Code = ""Books""" I want to know the average savings balance of all accounts.,SELECT avg ( balance ) FROM savings Who was the athlete with a wind of 1.8?,"SELECT athlete FROM table_name_45 WHERE wind = ""1.8""" find the total market rate of the furnitures that have the top 2 market shares.,SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2 Name the venue for 2004 and position of 25th,"SELECT venue FROM table_name_4 WHERE position = ""25th"" AND year = 2004" "Of all the countries in which English is spoken, what percentage has English as their only language?",SELECT CAST(SUM(CASE WHEN T2.Percentage = 100 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Name) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'English' When were the British Grand Prix races?,"SELECT date FROM table_name_95 WHERE race = ""british grand prix""" What shows for 2007 at the Olympic Games as tournament.,"SELECT 2007 FROM table_name_55 WHERE tournament = ""olympic games""" What are the basketball players' BMI ranges?,"SELECT MIN(CAST(weight AS REAL) / (height * height)) , MAX(CAST(weight AS REAL) / (height * height)) FROM players" How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?,SELECT SUM(silver) FROM table_name_50 WHERE bronze > 3 AND gold = 16 What are the number of concerts that occurred in the stadium with the largest capacity ?,select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1) When was a report not held?,"SELECT year FROM table_name_29 WHERE report = ""not held""" What is the nature of the incident that's a bomb attack?,"SELECT nature_of_incident FROM table_name_69 WHERE circumstances = ""bomb attack""" "Ok, What are the hanyu pinyin of Nanjing ( Jiangsu ) ?","SELECT Hanyu_Pinyin FROM city where city = ""Nanjing ( Jiangsu ) """ How many rooms in each building have a capacity of over 50?,"SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building" "Which conference is in Portland, Oregon?","SELECT conference FROM table_name_80 WHERE city = ""portland, oregon""" "Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?",SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7 What locomotive built after 1895 has the highest SLM number?,SELECT MAX(SLM) AS number FROM table_name_26 WHERE built > 1895 What is the fastest time for the Kentucky Derby race?,"SELECT time FROM table_name_40 WHERE race = ""kentucky derby""" How many film titles were released in 2006?,SELECT COUNT(film_id) FROM film WHERE release_year = 2006 Name the points for car number 4,SELECT points FROM table_25794532_1 WHERE car_no = 4 What about in other countries?,SELECT count ( DISTINCT T2.camera_lens_id ) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country ! = 'Ethiopia' What is the lowest round of the position de player with an overall less than 84?,"SELECT MIN(round) FROM table_name_51 WHERE position = ""de"" AND overall < 84" "Among the coaches who have taught teams from the NHL League, how many of them are from Canada?",SELECT COUNT(T2.coachID) FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.lgID = 'NHL' AND T1.birthCountry = 'Canada' Thank you! I thought there might be more to that table... Can you provide me with a list of all of the different course codes?,select distinct crs_code from class Give the name and building of the departments with greater than average budget.,"SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)" In which place is Emmet French?,"SELECT place FROM table_name_2 WHERE player = ""emmet french""" Name the number for 1.96 height,"SELECT no FROM table_23670057_1 WHERE height__m_ = ""1.96""" What is the full name of the customer who ordered the most books of all time?,"SELECT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.first_name, T1.last_name ORDER BY COUNT(*) DESC LIMIT 1" "Find the latest logon date of the students whose family name is ""Jaskolski"" or ""Langosh"".","SELECT date_of_latest_logon FROM Students WHERE family_name = ""Jaskolski"" OR family_name = ""Langosh""" List all the themes designed by Isabelle Toussaint.,"SELECT theme FROM table_11900773_6 WHERE design = ""Isabelle Toussaint""" What is the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff?,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" What are the total rounds for the texas college and has a pick smaller than 25?,"SELECT COUNT(round) FROM table_name_39 WHERE college = ""texas"" AND pick < 25" Where was the game played that has a result of 0-4?,"SELECT ground FROM table_name_36 WHERE result = ""0-4""" Find the states where have some college students in tryout.,SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName What is helen item id,SELECT T2.i_id FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id where T1.name = 'Helen' What Competition in Shah Alam Stadium have a Result of 2–0 (w)?,"SELECT competition FROM table_name_60 WHERE result = ""2–0 (w)"" AND venue = ""shah alam stadium""" What are the names of their coaches? | Do you mean list the names of players and names of their coaches together? | Yes,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID" What was the result when the opponent was fenerbahçe?,"SELECT result FROM table_name_5 WHERE opponent = ""fenerbahçe""" Which Lead Margin has a Poll Source of rasmussen reports/ fox news?,"SELECT MIN(lead_margin) FROM table_name_75 WHERE poll_source = ""rasmussen reports/ fox news""" What is the location of the party with the oldest host?,SELECT T3.location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID order by T2.age desc limit 1 Which player was chosen in round 17?,SELECT player_name FROM table_10360823_1 WHERE round = 17 What is the price of the least expensive wine produced in Sonoma County?,"SELECT min ( T2.Price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" who was executed during president charles de gaulle's reign for thr crime of child murder after rape?,"SELECT executed_person FROM table_2861364_1 WHERE under_president = ""Charles de Gaulle"" AND crime = ""Child murder after rape""" what is the year of California State University-Bakersfield,select Year from Campuses where Campus = 'California State University-Bakersfield' Give the name of the team of T Kohli in the match ID 335989.,SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Player_Match AS T2 ON T1.Team_Id = T2.Team_Id INNER JOIN Player AS T3 ON T2.Player_Id = T3.Player_Id WHERE T2.match_id = 335989 AND T3.player_name = 'T Kohli' List each donator name and the amount of endowment in descending order of the amount of endowment.,"SELECT donator_name , sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC" "which episode was Transmitted on friday if the episode of ""414 insanely twisted shadow planet"" was transmitted on tuesday? ","SELECT friday FROM table_18173916_8 WHERE tuesday = ""414 Insanely Twisted Shadow Planet""" Name the appearances for bernard allou,"SELECT appearances¹ FROM table_24565004_2 WHERE name = ""Bernard Allou""" "For each nomination, show the name of the artwork and name of the festival where it is nominated.","SELECT T2.Name , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID" How many furniture products had been shipped by standard class in the East superstore?,SELECT COUNT(T2.Category) FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'Standard Class' Find the average access count of documents with the least popular structure.,SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) LIMIT 1 Who was the runner(s)-up when the winning score was –13 (75-68-68=211)?,SELECT runner_s__up FROM table_name_77 WHERE winning_score = –13(75 - 68 - 68 = 211) And what is its zip code?,SELECT zip_code FROM county order by population desc limit 1 What is the pick number for round 2?,SELECT pick__number FROM table_14209245_9 WHERE round = 2 Please list the texts of all the tweets that are reshared.,SELECT text FROM twitter WHERE IsReshare = 'TRUE' Who sponsors owner Bobby Dotter's team?,"SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE listed_owner_s_ = ""Bobby Dotter""" Show the sea level status recorded by the weather station of store no.19 on 2013/2/24.,SELECT T1.sealevel FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2013-02-24' AND T2.store_nbr = 19 Name the number of scores for episode 7x05,"SELECT COUNT(scores) FROM table_23292220_7 WHERE episode = ""7x05""" Report the number of students in each classroom.,"SELECT classroom, COUNT(*) FROM list GROUP BY classroom" What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?,"SELECT build_date FROM table_name_42 WHERE total_produced < 45 AND model = ""fb-2""" List the closing time and day of week of active businesses in Scottsdale with stars greater than the 60% of average age of star rating.,"SELECT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Scottsdale' AND T1.active LIKE 'TRUE' AND T1.stars > 0.6 * ( SELECT AVG(T1.stars) FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Scottsdale' AND T1.active LIKE 'TRUE' )" Can you list the product ids and the booked amounts?,"SELECT T1.product_id, T2.booked_amount from Products_for_Hire as T1 join Products_Booked as T2 on T1.product_id = T2.product_id" Who was the leading scorer on the game played on February 25?,"SELECT leading_scorer FROM table_name_28 WHERE date = ""february 25""" "Which Position has a League of southern league premier division, and a Season of 2004–05?","SELECT position FROM table_name_90 WHERE league = ""southern league premier division"" AND season = ""2004–05""" "What was the place for the tango dance when the points was jury of 24 (7,5,6,6)?","SELECT place FROM table_name_29 WHERE dance = ""tango"" AND points_jury = ""24 (7,5,6,6)""" "Which Assist/pass has a Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage?","SELECT assist_pass FROM table_name_14 WHERE score = ""1-0"" AND competition = ""2010 concacaf world cup qualifying – group stage""" What is the id of the student who most recently registered course 301?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1 What is the percentage democrats with 2/4 democrat/republican?,"SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = ""2/4""" How many residents does each property have? List property id and resident count.,"SELECT T1.property_id , count(*) FROM properties AS T1 JOIN residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id" "Calculate the percentage of the domestic violence cases handled by Christopher Taliaferro. Among them, list report numbers of cases that happened in the bank.","SELECT CAST(COUNT(CASE WHEN T1.domestic = 'TRUE' THEN T1.report_no END) AS REAL) * 100 / COUNT(T1.report_no), COUNT(CASE WHEN T1.domestic = 'TRUE' AND T1.location_description = 'BANK' THEN T1.report_no END) AS ""number"" FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T2.alderman_first_name = 'Christopher' AND T2.alderman_last_name = 'Taliaferro'" What episode had sumo ball for event 3 and the wall for event 4?,"SELECT AVG(episode_number) FROM table_name_45 WHERE event_4 = ""the wall"" AND event_3 = ""sumo ball""" Tell the host city of the 1968 Winter Olympic Games.,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '1968 Winter' What is the total ratings on share less than 4?,SELECT COUNT(rating) FROM table_name_66 WHERE share < 4 What is the 1993 value with a 1r in 1991 and sf in 1990?,"SELECT 1993 FROM table_name_75 WHERE 1991 = ""1r"" AND 1990 = ""sf""" The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what?,SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.1 "Which business was the first one to get a low risk violation because of ""Permit license or inspection report not posted""? Give the name of the business.",SELECT T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.`date` = ( SELECT MIN(`date`) FROM violations WHERE risk_category = 'Low Risk' AND description = 'Permit license or inspection report not posted' ) AND T1.risk_category = 'Low Risk' AND T1.description = 'Permit license or inspection report not posted' "What was the total number of Top-25 values, for which Cuts made was 62, and for which Wins were less than 1?",SELECT COUNT(top_25) FROM table_name_37 WHERE cuts_made = 62 AND wins < 1 how many interval in the trail table,SELECT count ( interval ) FROM train Are there any problems reported by staff id 1?,SELECT problem_id FROM problems where reported_by_staff_id = 1 List the states which have between 2 to 4 staffs living there.,SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4 What are the names of the bank branches?,select bname from bank "Among the customers from Houston, Texas, what is the total profit of their orders in the Central region?",SELECT SUM(T2.Profit) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.City = 'Houston' AND T1.State = 'Texas' AND T2.Region = 'Central' "How many discount are of the type ""Excess Inventory""?",SELECT COUNT(SpecialOfferID) FROM SpecialOffer WHERE Type = 'Excess Inventory' "What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?",SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 0 Calculate the total votes of episodes that Adam Kuhlman had involved.,SELECT SUM(T1.votes) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Adam Kuhlman'; Give the genre of the games released from 2000 to 2002.,SELECT DISTINCT T4.genre_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T1.release_year BETWEEN 2000 AND 2002 What are the names of all aicrafts that have never won any match?,SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH) What date has 9 as the week?,SELECT date FROM table_name_21 WHERE week = 9 What are the names and types of the dorms that have a capacity greater than 300 or less than 100?,"SELECT dorm_name , gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100" Show the names of members in ascending order of their rank in rounds.,SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC How many data was given the total electricity in GW-h if % renewable is 92.3%?,"SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE _percentage_renewable = ""92.3%""" What are the names of conductors who have conducted orchestras founded after the year 2008?,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008 Where was the game played where North Melbourne was the away team?,"SELECT venue FROM table_name_40 WHERE away_team = ""north melbourne""" Name the 2011 with 2010 of 2r,"SELECT 2011 FROM table_name_59 WHERE 2010 = ""2r""" What is the relationship of the woman who died at 96?,"SELECT relationship FROM table_name_95 WHERE age_at_death = ""96""" Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?,"SELECT radio_stations FROM table_23143607_1 WHERE organization = ""Ente Público Radio Televisión Madrid (EPRTVM)""" What GWR is associated with 4?,SELECT gwr_nos FROM table_name_56 WHERE quantity = 4 Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3" What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced?,SELECT MIN(innings) FROM table_name_89 WHERE sr = 72.05 AND balls_faced < 297 "What is the ""season joined league"" for the club that had 15 seasons at this level?","SELECT season_joined_league FROM table_name_54 WHERE seasons_at_this_level = ""15 seasons""" What is the total teams during the 2012-13 season?,"SELECT SUM(teams) FROM table_name_19 WHERE season = ""2012-13""" "Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?","SELECT filename_extension FROM table_name_64 WHERE interactivity_support = ""no"" AND open_standard = ""yes"" AND image_support = ""no""" what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi,"SELECT saturday_saturnus___saturn_ FROM table_1277350_1 WHERE wednesday_mercurius__mercury_ = ""Mercuridi""" "Show the customer name, customer address city, date from, and date to for each customer address history.","SELECT T2.customer_name , T3.city , T1.date_from , T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id" What is every rider on Monday August 24 at 21' 12.02 106.781mph?,"SELECT rider FROM table_23465864_5 WHERE mon_24_aug = ""21' 12.02 106.781mph""" Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland?,"SELECT week_4 FROM table_name_8 WHERE week_5 = ""[month ended]"" AND week_2 = ""april ireland""" List the chapter ID of the works with a year greater than the 89% of average year of all listed works of Shakespeare.,SELECT T2.id FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.DATE > ( SELECT AVG(DATE) FROM works ) * 0.89 What is the average number of inspections carried out in the year 2010 by a sanitarian whose salary is over 70000?,SELECT CAST(SUM(CASE WHEN T2.inspection_date LIKE '2010%' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.salary > 70000 THEN 1 ELSE 0 END) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id Hi! Can you show me a list of all people and their people IDs?,"SELECT Name, people_id FROM people" Which Diameter has a Year of Issue of 1977?,SELECT diameter FROM table_name_28 WHERE year_of_issue = 1977 Thank you very much for that! Could you please filter this list to show only the Service Names which occur more than once on the First Notification of Loss table?,SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count ( * ) > 1 What is the lowest overall amount of w's?,SELECT MIN(w) FROM table_29542269_2 What is the highest rank of rider colin martin?,"SELECT MAX(rank) FROM table_name_66 WHERE rider = ""colin martin""" Name the final score for exhibition stadium for september 10,"SELECT final_score FROM table_24126518_2 WHERE location = ""Exhibition Stadium"" AND date = ""September 10""" What engine was used by Ram Penthouse Rizla Racing in 1978?,"SELECT engine FROM table_name_97 WHERE year > 1978 AND entrant = ""ram penthouse rizla racing""" "For all directors who have directed more than one movie, what movies have they directed and what are their names?","SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title" What is the score of the away team that played Essendon?,"SELECT away_team AS score FROM table_name_98 WHERE home_team = ""essendon""" What is the average round of the player from the college of baylor with a pick less than 28?,"SELECT AVG(round) FROM table_name_18 WHERE college = ""baylor"" AND pick < 28" What is the ethernet ports of the m1500 appliance?,"SELECT ethernet_ports FROM table_name_5 WHERE name = ""m1500""" "Name the high rebounds for td garden 18,624","SELECT high_rebounds FROM table_22871239_9 WHERE arena_attendance = ""TD Garden 18,624""" What is its city id?,SELECT T2.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count ( * ) DESC LIMIT 1 What was the tries against when the drawn was 2?,"SELECT tries_against FROM table_12792876_3 WHERE drawn = ""2""" "Which cinema has the highest capacity, and which has the lowest capacity?",SELECT name from cinema where capacity = ( select min ( capacity ) from cinema ) or capacity = ( select max ( capacity ) from cinema ) What is the most Champ Car wins for any driver with a USAC record of 2?,SELECT MAX(champ_car_world_series__2004_2007_) FROM table_19524523_1 WHERE usac__1956_1995_ = 2 What Tries against that have a Points against of 95 and Tries for larger than 20?,SELECT SUM(tries_against) FROM table_name_91 WHERE points_against = 95 AND tries_for > 20 Name the total number of people that went when the record was 16-22,"SELECT COUNT(attendance) FROM table_name_32 WHERE record = ""16-22""" What are the first names of all professors who teach more than one class?,SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1 What date has 104-113 as the score?,"SELECT date FROM table_name_17 WHERE score = ""104-113""" "display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.","SELECT job_title , max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000" What is the pali word for phrag dog in tibetan?,"SELECT pali FROM table_name_64 WHERE tibetan = ""phrag dog""" When 1008/1009 is the production code how many directors are there?,"SELECT COUNT(directed_by) FROM table_1854728_2 WHERE production_code = ""1008/1009""" Which books have the most expensive price?,SELECT T2.title FROM order_line AS T1 INNER JOIN book AS T2 ON T1.book_id = T2.book_id ORDER BY T1.price DESC LIMIT 1 Who was at home when the score was 2:2?,"SELECT home FROM table_name_88 WHERE score = ""2:2""" "List down the territory IDs, descriptions and region description which are under the in-charge of Nancy Davolio,","SELECT T3.RegionID, T3.TerritoryDescription, T4.RegionDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T1.LastName = 'Davolio' AND T1.FirstName = 'Nancy'" What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10 What is the number of carsw ith over 6 cylinders?,SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6; How many years was Audi Sport Team Joest in 3rd position?,"SELECT COUNT(year) FROM table_name_8 WHERE team = ""audi sport team joest"" AND pos = ""3rd""" What was the built data for Knocklayd rebuild?,"SELECT built FROM table_12113888_1 WHERE name_as_rebuilt = ""Knocklayd""" Tell me the post-season record for kansas city,"SELECT post_season_record_[e_] FROM table_name_55 WHERE mlb_affiliate = ""kansas city""" "What was the installation date in El Paso, Texas? ","SELECT installation_date FROM table_21821014_1 WHERE location = ""El Paso, Texas""" What Utah Jazz Forward played for Southern Methodist?,"SELECT player FROM table_name_74 WHERE position = ""forward"" AND school_club_team = ""southern methodist""" Indicate which company is located in France?,SELECT CompanyName FROM Customers WHERE Country = 'France' Name the time for #1 alabama,"SELECT time FROM table_26842217_10 WHERE visiting_team = ""#1 Alabama""" "What is the location of the match on February 29, 2012?","SELECT location FROM table_name_47 WHERE date = ""february 29, 2012""" how many party with incumbent being whitmell p. martin,"SELECT COUNT(party) FROM table_1342393_17 WHERE incumbent = ""Whitmell P. Martin""" What is the least aged Manager's name on the list?,SELECT name FROM manager order by age limit 1 What was the Weds 25 Aug time for the driver whose Aug 27 time was 22' 23.97 101.065mph?,"SELECT wed_25_aug FROM table_26986076_6 WHERE fri_27_aug = ""22' 23.97 101.065mph""" Name the sum of rating % for cctv and position more than 7,"SELECT SUM(rating___percentage_) FROM table_name_62 WHERE owner = ""cctv"" AND position > 7" "Write the user ID, business ID and tips length of who started using Yelp since 2004 and had high followers.","SELECT T1.user_id, T2.business_id, T2.tip_length FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2004 AND T1.user_fans = 'High'" "What is WSU Year(s), when Pro Year(s) is 1974-77?","SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = ""1974-77""" What are the log id and entry description of each problem?,"SELECT problem_log_id , log_entry_description FROM problem_log" What was the score when the opposition was sussex after 1890?,"SELECT score FROM table_name_49 WHERE opposition = ""sussex"" AND year > 1890" What's the rating of all songs in English?,SELECT rating FROM song WHERE languages = 'english' "What are the names, checking balances, and savings balances for all customers?","SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid" Who is the staff manager in store id 2?,SELECT manager_staff_id FROM store WHERE store_id = 2 What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance?,"SELECT AVG(worst_score) FROM table_name_81 WHERE best_dancer = ""mario lopez"" AND dance = ""tango""" Name the score for josé juan barea (8),"SELECT score FROM table_27723526_12 WHERE high_assists = ""José Juan Barea (8)""" Which employee received the biggest bonus? Give me the employee name.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1 "What are the names of the different bank branches, and what are their total loan amounts?","SELECT sum(amount) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname" What was the venue where Carlton was the away team?,"SELECT venue FROM table_name_3 WHERE away_team = ""carlton""" Which Foundation has an Enterprise of 2?,"SELECT foundation FROM table_name_17 WHERE enterprise = ""2""" "For each station, return its longitude and the average duration of trips that started from the station.","SELECT T1.name , T1.long , avg ( T2.duration ) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T1.name" List the phone brands and models of the users under 10 years of age.,"SELECT T2.phone_brand, T2.device_model FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.age < 10" "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.","SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"" AND nickname LIKE ""%s%"";" Which Case type has a Cartridge length of 64.77 (2.550)?,"SELECT case_type FROM table_name_57 WHERE cartridge_length = ""64.77 (2.550)""" "Which is the largest area in Greenville County, by square mile?","SELECT MAX(area__sq_mi_) FROM table_name_88 WHERE county = ""greenville county""" What are the different product colors?,SELECT DISTINCT product_color FROM Products How many students does KAWA GORDON teaches?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""KAWA"" AND T2.lastname = ""GORDON""" What is the most number of losses for Quetta Zorawar?,"SELECT MAX(lost) FROM table_name_15 WHERE team = ""quetta zorawar""" "Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?","SELECT MAX(lead_pitch_mm) FROM table_name_1 WHERE part_number = ""tsop40"" AND body_length_mm > 18.4" find the name of the user who gives most reviews,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count ( * ) DESC LIMIT 1 "How many flights on average does American Airlines Inc. operate every day in August, 2018?",SELECT CAST( SUM(CASE WHEN T2.FL_DATE LIKE '2018/8%' THEN 1 ELSE 0 END) AS REAL) / 31 FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' What score did the opposing home team have against Melbourne,"SELECT home_team AS score FROM table_name_74 WHERE away_team = ""melbourne""" How many vendors only consented to move on with the 500 to 15000 piece order in terms of quality?,SELECT COUNT(*) FROM ProductVendor WHERE MinOrderQty > 500 AND MaxOrderQty < 15000 How many employees with salary above 12000 are there?,SELECT count ( * ) FROM employees WHERE salary >12000 How many incumbents were for district georgia 6?,"SELECT COUNT(incumbent) FROM table_1341640_11 WHERE district = ""Georgia 6""" "Which Play is from Cyprus, from the Company Magdalena Zira Theatre?","SELECT play FROM table_name_98 WHERE country = ""cyprus"" AND company = ""magdalena zira theatre""" What is the average and maximum capacities for all stadiums ?,"select avg(capacity) , max(capacity) from stadium" How many students received a yes from tryouts?,SELECT count(*) FROM tryout WHERE decision = 'yes' What was the result in the election where the incumbent was first elected in 1942? ,"SELECT result FROM table_1342149_43 WHERE first_elected = ""1942""" What is the date of the match when Detroit is the home team and Colorado is the visiting team?,"SELECT date FROM table_name_21 WHERE home = ""detroit"" AND visitor = ""colorado""" What is the name of every college in alphabetical order that has more than 18000 students enrolled?,SELECT cName FROM College WHERE enr > 18000 ORDER BY cName What is the newest season?,SELECT MAX(season) FROM table_2140071_7 How old is Bob?,"SELECT age from person where name = ""Bob""" show the maximum order quality of all invoices,SELECT max ( Order_Quantity ) FROM INVOICES "Give the character's ID of the character that said the paragraph ""O my poor brother! and so perchance may he be.""",SELECT character_id FROM paragraphs WHERE PlainText = 'O my poor brother! and so perchance may he be.' What are the names of all the pilots who flew a flight in the Billund Airport?,SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.name = 'Billund Airport' What episodes had the title ロト6で3億2千万円当てた男 in Japanese?,"SELECT episodes FROM table_name_13 WHERE japanese_title = ""ロト6で3億2千万円当てた男""" Please list the directions in which the trains with at least one empty-loaded car run.,SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.load_num = 0 How many cinemas have above average capacity?,SELECT count ( * ) from cinema where capacity > ( select avg ( capacity ) from cinema ) What is the name of the minister from the party of minister for community safety and legal affairs?,"SELECT name FROM table_name_45 WHERE party = ""minister for community safety and legal affairs""" "For Gem County, what was the Obama vote percentage?","SELECT obama_percentage FROM table_20684390_1 WHERE county = ""Gem""" Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?,"SELECT constructor FROM table_name_5 WHERE laps > 3 AND driver = ""jarno trulli""" What is the Losing bonus of the club that has 80 tries against ?,"SELECT losing_bonus FROM table_name_64 WHERE tries_against = ""80""" Find the average number of downloads for Single-Tables released by '2Pac' between 2001 and 2013.,SELECT AVG(totalSnatched) FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'Single' AND groupYear BETWEEN 2001 AND 2013 what are there first and last names?,"SELECT distinct T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" "On average, how many wins have a rank lower than 1?",SELECT AVG(wins) FROM table_name_14 WHERE rank < 1 Can you list the person names and their friends?,"SELECT name, friend from personFriend" "When essendon was the home team, how much did they score?","SELECT home_team AS score FROM table_name_56 WHERE home_team = ""essendon""" Which player has montana as the school/club team?,"SELECT player FROM table_name_12 WHERE school_club_team = ""montana""" What is the name of the publisher of the book with the most pages?,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id ORDER BY T1.num_pages DESC LIMIT 1 Name the total number of nicknames for st. bonaventure university,"SELECT COUNT(nickname) FROM table_16383772_1 WHERE school = ""St. Bonaventure University""" Name the Bore x stroke of 1929-32,"SELECT bore_x_stroke FROM table_name_83 WHERE year = ""1929-32""" How many milliseconds does each of those tracks have?,"select id ,milliseconds from tracks group by id" What is the total share of transactions?,SELECT sum(share_count) FROM TRANSACTIONS "Provide the title, director, and release date of the movie voice-acted by Freddie Jones.","SELECT T1.movie, T3.director, T2.release_date FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title INNER JOIN director AS T3 ON T3.name = T2.movie_title WHERE T1.`voice-actor` = 'Freddie Jones'" Find out if the project with the title Team More Books! has a New York teaching fellow.,SELECT T2.teacher_ny_teaching_fellow FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Team More Books!' How many titles had production code 1040?,SELECT COUNT(title) FROM table_25662434_1 WHERE production_code = 1040 What is russ cochran's average margin?,"SELECT AVG(margin) FROM table_name_30 WHERE player = ""russ cochran""" "Find the full name of the player born in Atlanta and have the highest number of blocks. Also, in which team did this player perform the most number of blocks?","SELECT T1.firstName, T1.lastName, T2.tmID FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Atlanta' ORDER BY T2.blocks DESC LIMIT 1" what is the nationality of the forward-center team? | Do you mean the nationality of the pilot in the forward-center team? | yes,"select nationality from pilot where position = ""Forward-Center Team""" How many tries have goals greater than 0?,SELECT SUM(tries) FROM table_name_33 WHERE goals > 0 What dates were all the stations installed?,"select name, installation_date from station" What is the score for 04 september 2006?,"SELECT score FROM table_name_21 WHERE date = ""04 september 2006""" What is the average 3620 value that has a 5432 of 1277 and a 15122 less than 1540?,SELECT AVG(3620) FROM table_name_66 WHERE 5432 = 1277 AND 15122 < 1540 When was the ship originally named sachem finally decommissioned?,"SELECT final_decommission FROM table_name_94 WHERE original_name = ""sachem""" What is the primary conference of the school that has the lowest acc percent score in the competition?,SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 When did customer with first name as Carole and last name as Bernhard became a customer?,"SELECT date_became_customer FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard"";" What are the positions of both players that have more than 20 20 points and less than 10 points?,SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 "What date is the zürich, switzerland tournament?","SELECT date FROM table_name_36 WHERE tournament = ""zürich, switzerland""" What is the most popular full name of the actors?,"SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1" Which department has the highest average instructor salary?,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1 Which team has a long of 67?,"SELECT team FROM table_name_6 WHERE long = ""67""" "Name the high rebounds for american airlines center 20,557","SELECT high_rebounds FROM table_23284271_11 WHERE location_attendance = ""American Airlines Center 20,557""" "How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?","SELECT SUM(attendance) FROM table_name_86 WHERE loss = ""divis (0–3–0)"" AND points < 38" What's sawyer hannay's total pick number?,"SELECT COUNT(pick__number) FROM table_name_39 WHERE player = ""sawyer hannay""" "How many employees are there in the ""Miami"" office?",SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.locationcity = 'Miami' What is the notes for the rowers from denmark?,"SELECT notes FROM table_name_26 WHERE country = ""denmark""" Calculate the average number of beneficiaries per postal point in Guam.,SELECT CAST(SUM(T2.total_beneficiaries) AS REAL) / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Guam' How many people are there over the age of 30?,SELECT count ( * ) FROM people WHERE age > 30 What is the average when the BBI is 3/27?,"SELECT average FROM table_28846752_9 WHERE bbi = ""3/27""" What is the Money of the Player with a Score of 71-66-74-67=278?,SELECT AVG(money___) AS $__ FROM table_name_46 WHERE score = 71 - 66 - 74 - 67 = 278 Which Lead has a Second of katrin kuusk?,"SELECT lead FROM table_name_23 WHERE second = ""katrin kuusk""" What is the rnag for kippure transmitter? ,"SELECT rnag__mhz_ FROM table_18475946_2 WHERE transmitter = ""Kippure""" What game ended with a final score of 126-108?,"SELECT MAX(game) FROM table_name_16 WHERE score = ""126-108""" "What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier?","SELECT venue FROM table_name_21 WHERE score = ""5–0"" AND competition = ""2007 caribbean cup qualifier""" "Which city has the least number of customers whose type code is ""Good Credit Rating""?","SELECT town_city FROM customers WHERE customer_type_code = ""Good Credit Rating"" GROUP BY town_city ORDER BY count(*) LIMIT 1" "What are the starting years shared by the technicians from the team ""CLE"" or ""CWS""?","SELECT Starting_Year FROM technician WHERE Team = ""CLE"" INTERSECT SELECT Starting_Year FROM technician WHERE Team = ""CWS""" what is the name of dept of statistics | Do you mean the name of instructors from the statistics department? | yes,SELECT name FROM instructor WHERE dept_name = 'Statistics' What game had the most hours played?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY sum ( hours_played ) DESC LIMIT 1 What were the results in the election where Albert Wynn was the incumbent? ,"SELECT results FROM table_1341423_20 WHERE incumbent = ""Albert Wynn""" "List all the attribute classes of the images that have a (5,5) coordinate.",SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID WHERE T3.X = 5 AND T3.Y = 5 What date has postponed (rain) rescheduled for august 7 as the score?,"SELECT date FROM table_name_27 WHERE score = ""postponed (rain) rescheduled for august 7""" What was the final venue for 82 delegates?,"SELECT finals_venue FROM table_name_23 WHERE number_of_delegates = ""82""" What percentage of male employees hired throughout the years 2009 are married?,"SELECT CAST(SUM(CASE WHEN MaritalStatus = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(BusinessEntityID) FROM Employee WHERE SUBSTR(HireDate, 1, 4) = '2009' AND Gender = 'M'" Give the body height status of Mr. Vincent Wyman on 2010/8/2.,"SELECT T2.description, T2.VALUE, T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mr.' AND T1.first = 'Vincent' AND T1.last = 'Wyman' AND T2.date = '2010-08-02' AND T2.description = 'Body Height'" How many assets does each third party company supply? List the count and the company id.,"SELECT count(*) , T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id" What is the earliest year for 9 points?,SELECT MIN(year) FROM table_name_79 WHERE points = 9 List the state in the US with the most invoices.,"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1" How many of them live in city with code NYC and have secretary votes in the spring election cycle,"SELECT count ( distinct T1.StuID ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" "Who is the owner of the final phone number for the complaints on server ""MORIAH"" on 9/11/2013?","SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.server = 'MORIAH' AND T2.`Date received` = '2013-09-11'" What are the document dates?,SELECT document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project' What were the high rebounds when the score was l 101–109 (ot)?,"SELECT high_rebounds FROM table_name_19 WHERE score = ""l 101–109 (ot)""" List the name of all suppliers in alphabetical order of their addresses.,SELECT T1.supplier_name FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details "What's the average number of Laps, that had a start of 25, with a Qual of 138.063?","SELECT AVG(laps) FROM table_name_21 WHERE start = ""25"" AND qual = ""138.063""" Name the tries against when tries for is 30,"SELECT tries_against FROM table_17941032_3 WHERE tries_for = ""30""" "Among violations on 3rd June, 2014, describe any 5 names, located cities and tax codes of the eateries with high risk category.","SELECT DISTINCT T2.name, T2.city, T2.tax_code FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.`date` = '2014-06-03' LIMIT 5" "What is the wins number when the points were smaller than 27, and goals against was 41?",SELECT SUM(wins) FROM table_name_76 WHERE points < 27 AND goals_against = 41 What's the mascot in Huntington after the year 2000?,"SELECT mascot FROM table_name_40 WHERE year_left > 2000 AND location = ""huntington""" What sport in the 1960 Rome Games did Pakistan play in the Men's Freestyle Welterweight?,"SELECT sport FROM table_name_56 WHERE games = ""1960 rome"" AND event = ""men's freestyle welterweight""" List the locations of schools in descending order of founded year.,SELECT LOCATION FROM school ORDER BY Founded DESC "How many different titles does the representative whose mission was terminated on August 5, 1984 have?","SELECT COUNT(title) FROM table_20065425_1 WHERE termination_of_mission = ""August 5, 1984""" Name the powertrain for kmd and c40lf,"SELECT powertrain__engine_transmission_ FROM table_24193494_3 WHERE division = ""KMD"" AND model = ""C40LF""" "For the 1998 movie which got the highest popularity, how many ""4"" rating did the movie get?",SELECT COUNT(T2.movie_title) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 4 AND T2.movie_release_year = 1998 ORDER BY T2.movie_popularity DESC LIMIT 1 What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?,"SELECT engine FROM table_20866024_2 WHERE gvw__kg_ton_ = ""2500/2.46"" AND model_designation = ""97G00""" Who was the winning team on the circuit Zolder?,"SELECT winning_team FROM table_18095719_2 WHERE circuit = ""Zolder""" When extending eminent domain over roads and ways is the description what is the highest means number?,"SELECT MAX(meas_num) FROM table_256286_13 WHERE description = ""Extending Eminent Domain Over Roads and Ways""" What is the percentage of female customers who subscribed to the email list?,SELECT CAST(COUNT(CASE WHEN Gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(SubscribedToEmailList) FROM customers WHERE SubscribedToEmailList = 'TRUE' which shop has happy hour most frequently? List its id and number of happy hours.,"SELECT shop_id , count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1" What is the ratio of males and females among historical legislators?,SELECT CAST(SUM(CASE WHEN gender_bio = 'M' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN gender_bio = 'F' THEN 1 ELSE 0 END) FROM historical "What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?","SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = ""n·m ( lbf·ft ) @ 3,800""" What is the name of the item that is provided in the biggest amount by the vendor Lakeshore Learning Materials?,SELECT item_name FROM resources WHERE vendor_name = 'Lakeshore Learning Materials' ORDER BY item_quantity DESC LIMIT 1 What's the shortest length from north klondike highway that has a length less than 326?,"SELECT MIN(length__km_) FROM table_name_38 WHERE name = ""north klondike highway"" AND length__mi_ < 326" What was the highest attendance week 12?,SELECT MAX(attendance) FROM table_name_64 WHERE week = 12 What is the height for the Shanghai World Plaza?,"SELECT height_m___ft FROM table_name_26 WHERE name = ""shanghai world plaza""" Show the names of editors of age either 24 or 25.,SELECT Name FROM editor WHERE Age = 24 OR Age = 25 "What is the record when the method is decision and the location is Martigues, France?","SELECT record FROM table_name_86 WHERE method = ""decision"" AND location = ""martigues, france""" How many service names in this table?,select count ( Service_name ) from Services What was the tie resulting from Sheffield Wednesday's game?,"SELECT tie_no FROM table_name_56 WHERE home_team = ""sheffield wednesday""" "How much Attendance has Games smaller than 6, and a W-L-T of 3-2-0, and a Season smaller than 1948?","SELECT SUM(attendance) FROM table_name_24 WHERE games < 6 AND w_l_t = ""3-2-0"" AND season < 1948" "If Internet Explorer is 47.22%, what is the Safari total?","SELECT safari FROM table_1876262_10 WHERE internet_explorer = ""47.22%""" How many people are from Austin ?,"SELECT count ( * ) FROM Person WHERE city = ""austin""" When 1.67 is the height how many contestants are there?,"SELECT COUNT(contestant) FROM table_18618707_1 WHERE height = ""1.67""" "What is Headquarter, when Type is Independent Online News Portal?","SELECT headquarter FROM table_name_49 WHERE type = ""independent online news portal""" "When has Result of 2–0, and a Score of 2 – 0?","SELECT date FROM table_name_38 WHERE result = ""2–0"" AND score = ""2 – 0""" Lists all genes by identifier number located in the cytoplasm and whose function is metabolism.,SELECT DISTINCT GeneID FROM Genes WHERE Localization = 'cytoplasm' AND Function = 'METABOLISM' What was the previous school of #22?,SELECT previous_school FROM table_24925945_3 WHERE _number = 22 What is the location of the Moorabbin Oval stadium?,"SELECT location FROM table_28885977_1 WHERE stadium = ""Moorabbin Oval""" Which competition has stuart potts as the man of the match?,"SELECT competition FROM table_name_98 WHERE man_of_the_match = ""stuart potts""" Can you filter that list to show the activity with the most student participants?,SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count ( * ) DESC LIMIT 1 What are the names of those source airports that begin with the letter A?,select t1.name from airports as t1 join routes as t2 on t1.apid = t2.src_apid where t1.name like 'A%' What chassis type does a scuderia ferrari with more than 1 point have?,"SELECT chassis FROM table_name_33 WHERE entrant = ""scuderia ferrari"" AND points > 1" "When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?","SELECT attribute FROM table_name_52 WHERE cancelable = ""yes"" AND bubbles = ""yes"" AND category = ""keyboard""" Which winner has a points classification of Tony Rominger at stage 17?,"SELECT winner FROM table_name_72 WHERE points_classification = ""tony rominger"" AND stage = ""17""" Who had the high rebounds on april 8?,"SELECT high_rebounds FROM table_27704187_11 WHERE date = ""April 8""" Which venue closed in 1996?,"SELECT venue FROM table_name_86 WHERE closed = ""1996""" "For movie id 1269, how many users, who was a paying subscriber and was eligible for trial when he rated the movie, gave the movie a rating score of less than or equal to 2?",SELECT COUNT(*) FROM ratings WHERE movie_id = 1269 AND rating_score <= 2 AND user_eligible_for_trial = 1 AND user_has_payment_method = 1 List the name of artworks in ascending alphabetical order.,SELECT Name FROM artwork ORDER BY Name ASC How many parties do we have?,SELECT count(DISTINCT party_name) FROM party What race had Nelson Piquet on the pole and was in Nürburgring?,"SELECT race FROM table_1140073_2 WHERE pole_position = ""Nelson Piquet"" AND location = ""Nürburgring""" "For the order has the most product ordered, name the customer who placed the order.","SELECT T2.firstName, T2.lastName FROM offices AS T1 INNER JOIN employees AS T2 ON T1.officeCode = T2.officeCode WHERE T2.employeeNumber = ( SELECT MAX(employeeNumber) FROM employees )" what is the away team score when the home team is essendon?,"SELECT away_team AS score FROM table_name_2 WHERE home_team = ""essendon""" Which distinct name is that?,"SELECT DISTINCT t1.product_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 t3.characteristic_name = ""warm""" Which Rank has a Silver larger than 1 and a Total larger than 13?,SELECT rank FROM table_name_95 WHERE silver > 1 AND total > 13 How many episodes directed by david carson?,"SELECT COUNT(no_in_season) FROM table_25604014_5 WHERE directed_by = ""David Carson""" What tournament took place before 1972 with an extra of 200 m?,"SELECT tournament FROM table_name_14 WHERE extra = ""200 m"" AND year < 1972" "For the players who belongs to the east conference, please list the name of the college they went to.",SELECT DISTINCT T1.college FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.conference = 'East' "On what date was the crowd size of 71,789?","SELECT date FROM table_name_35 WHERE attendance = ""71,789""" When was the Albi circuit race driven? ,"SELECT date FROM table_1140119_5 WHERE circuit = ""Albi""" Which player went to Gonzaga?,"SELECT player FROM table_name_80 WHERE school_country = ""gonzaga""" Name the windows builders for apache gump,"SELECT windows_builders FROM table_22903426_1 WHERE name = ""Apache Gump""" Which Team 2 had a Team 1of joe public?,"SELECT team_2 FROM table_name_52 WHERE team_1 = ""joe public""" Find the average and maximum rating of all reviews.,"SELECT AVG(rating), MAX(rating) FROM review" What are all the run times with 8.2 million viewers?,"SELECT run_time FROM table_1429629_1 WHERE viewers__in_millions_ = ""8.2""" "What is the customer id with most number of cards, and how many does he have?","SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1" What is the full address of address number 11906?,"SELECT AddressLine1, AddressLine2 FROM Address WHERE AddressID = 11906" How many television station listings have a ioc code as mas?,"SELECT COUNT(television_station) FROM table_2879165_1 WHERE ioc_code = ""MAS""" What venue is in the city of Durham?,"SELECT venue FROM table_name_95 WHERE city = ""durham""" "What is the average, maximum, and minimum budget for all movies before 2000.","SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000" Show the number of customers for each gender.,"SELECT gender , count(*) FROM Customers GROUP BY gender" List all employees?,"SELECT First_name, last_name FROM employees" What is the Name of the Center?,"SELECT name FROM table_name_84 WHERE position = ""center""" Provide name of businesses whose category is pets and are still opened after 9PM.,SELECT T3.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T4.closing_time > '9PM' AND T1.category_name LIKE 'Pets' How many customers in the machinery segment are in debt?,SELECT COUNT(c_custkey) FROM customer WHERE c_acctbal < 0 AND c_mktsegment = 'MACHINERY' Find the number of different cities that employees live in.,SELECT COUNT(DISTINCT city) FROM EMPLOYEE Which Result has a Score of 69-81?,"SELECT result FROM table_name_25 WHERE score = ""69-81""" What is the year of independence of Brunei?,SELECT IndepYear FROM Country WHERE Name = 'Brunei' Who is the player when the bbi is 5/27?,"SELECT player FROM table_27268238_5 WHERE bbi = ""5/27""" Who was the opponent at the game when the record was 22-13?,"SELECT opponent FROM table_name_95 WHERE record = ""22-13""" Show all the films longer than 100 minutes? | do you mean the films id ? | yes,SELECT film_id FROM film WHERE LENGTH > 100 Who manufactures Makoto Tamada's vehicle?,"SELECT manufacturer FROM table_name_68 WHERE rider = ""makoto tamada""" Calculate the average players out in the first innings per match. How many of them were out by the leg before wicket?,"SELECT CAST(COUNT(T1.Player_Out) AS REAL) / COUNT(T1.Match_Id), SUM(CASE WHEN T2.Out_Name = 'lbw' THEN 1 ELSE 0 END) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE T1.Innings_No = 2" What is the name of the branch with the greatest amount of memberships that were registered in the year 2016?,SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count ( * ) DESC LIMIT 1 Who directed the episode with production code 28?,SELECT directed_by FROM table_12226390_2 WHERE production_code = 28 "Show the name, phone, and payment method code for all customers in descending order of customer number.","SELECT customer_name , customer_phone , payment_method_code FROM customers ORDER BY customer_number DESC" Name the number of high points for record 5-17,"SELECT COUNT(high_points) FROM table_23186738_6 WHERE record = ""5-17""" What was the manner of depature when the date of appointment was 27 December 2007?,"SELECT manner_of_departure FROM table_name_52 WHERE date_of_appointment = ""27 december 2007""" "Among the owners from Cameron Park, what is the business name of the business with a score of 100?",SELECT DISTINCT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_city = 'Cameron Park' AND T1.score = 100 Show all region code and region name sorted by the codes.,"SELECT region_code , region_name FROM region ORDER BY region_code;" "When the home team was geelong, who played as the away team?","SELECT away_team FROM table_name_80 WHERE home_team = ""geelong""" What is the name origin of Nike Fossae? ,"SELECT name AS origin FROM table_16799784_11 WHERE name = ""Nike Fossae""" Find the total amount of loans provided by bank branches in the state of New York.,SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' What model has the most different versions?,SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1; "Which player was picked before 13, in a P position, and is from Georgia Tech?","SELECT player FROM table_name_98 WHERE pick < 13 AND position = ""p"" AND hometown_school = ""georgia tech""" "What is the total for the person with free of 47.667, and technical less than 47.417?",SELECT SUM(total) FROM table_name_69 WHERE free = 47.667 AND technical < 47.417 What are names of patients who made an appointment?,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn state high assists on february 15,"SELECT high_assists FROM table_20010140_10 WHERE date = ""February 15""" "Result of w, and a Competition of 1968 asian cup happened on what date?","SELECT date FROM table_name_5 WHERE result = ""w"" AND competition = ""1968 asian cup""" "What are the different role codes for users, and how many users have each?","SELECT count(*) , role_code FROM users GROUP BY role_code" How many percentages (2006) are there for the population whose mother tongue is French?,"SELECT COUNT(percentage__2006_) FROM table_2328113_1 WHERE mother_tongue = ""French""" What date was proposed when the listed date was 12/16/1994 in the County of beaufort?,"SELECT proposed FROM table_name_65 WHERE listed = ""12/16/1994"" AND county = ""beaufort""" Show student ids who don't have any sports.,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo Please list the names of all the neighborhoods in Central Chicago.,SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.side = 'Central' What is the home team's score at glenferrie oval?,"SELECT home_team AS score FROM table_name_66 WHERE venue = ""glenferrie oval""" What about birth city?,"SELECT birth_city FROM player where player_id = ""aardsda01""" "What team was the opponent for the game played on December 19, 1999?","SELECT opponent FROM table_name_87 WHERE date = ""december 19, 1999""" "Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?","SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = ""olivier panis""" What is the average score when the swimsuit score is 8.503?,"SELECT average FROM table_12094300_1 WHERE swimsuit = ""8.503""" "Show the shipping method code for customer orders with order status ""Paid""",SELECT shipping_method_code FROM customer_orders WHERE order_status_code = 'Paid' how many video out connections does the sounddock portable have?,"SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = ""SoundDock Portable""" How many players are affiliated with indiana university?,"SELECT COUNT(player) FROM table_25518547_4 WHERE affiliation = ""Indiana University""" What is the total number of Silvers held by France when their rank was over 14?,"SELECT COUNT(silver) FROM table_name_63 WHERE nation = ""france"" AND rank > 14" Tell me the number of regions with an area of 58.81,SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81 What is the name of school that has the smallest enrollment in each state?,"SELECT cName , state , min(enr) FROM college GROUP BY state" "What are the dates of the latest logon of the students with family name ""Jaskolski"" or ""Langosh""?","SELECT date_of_latest_logon FROM Students WHERE family_name = ""Jaskolski"" OR family_name = ""Langosh""" Who does Rockstar Games use as a developer?,"SELECT developer FROM table_name_97 WHERE publisher = ""rockstar games""" How many winners from previous round were there in the semi finals?,"SELECT winners_from_previous_round FROM table_28039032_1 WHERE round = ""Semi finals""" How many singles does Lisa Stansfield have?,"SELECT COUNT(single) FROM table_26400075_2 WHERE artist = ""Lisa Stansfield""" What is the zodiac sign for the English March?,"SELECT zodiac_sign FROM table_name_81 WHERE english_name = ""march""" "Which team 1 has team 2, Gomera?","SELECT team_1 FROM table_name_54 WHERE team_2 = ""gomera""" Find the city with the most number of stores.,SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1 How many times is the ethnic group other: total?,"SELECT COUNT(2001 AS __percentage) FROM table_282413_3 WHERE ethnic_group = ""Other: Total""" What is the highest gold for Cambodia when the total is less than 1?,"SELECT MAX(gold) FROM table_name_94 WHERE country = ""cambodia"" AND total < 1" What venue features collingwood as the home side?,"SELECT venue FROM table_name_4 WHERE home_team = ""collingwood""" How many territories are there in the Eastern region?,SELECT COUNT(T1.RegionID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' What is the name of the room that was booked most often?,SELECT Room FROM Reservations GROUP BY Room ORDER BY count ( * ) DESC LIMIT 1 What is the FBI description of the crime for report number 23778?,SELECT T1.description FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.report_no = 23843 "What was the attendance for the game on October 30, 1994 for a week after week 2?","SELECT COUNT(attendance) FROM table_name_54 WHERE week > 2 AND date = ""october 30, 1994""" What is the total attendance before week 1?,SELECT SUM(attendance) FROM table_name_16 WHERE week < 1 What is the percentage of orders with 0.2 discount in the Central superstore were purchased by customers who live in Texas?,SELECT CAST(SUM(CASE WHEN T2.Discount = 0.2 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.State = 'Texas' Find the names of the campus which has more faculties in 2002 than every campus in Orange county.,"SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = ""Orange"")" What is the name of the instructor who advises the student with the greatest number of total credits?,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 Postal code of ID 3?,SELECT postal_code FROM customers where id = 3 What are the positions with both players having more than 20 points and less than 10 points.,SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 What are the project names of all of them?,"SELECT T1.Name , T3.Name FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code" what i the maximum number in the series where the production code is 3wab07?,"SELECT MAX(no_in_series) FROM table_20726262_4 WHERE production_code = ""3WAB07""" What is the headquarter of the company whose founder is James?,SELECT headquarter FROM manufacturers WHERE founder = 'James' "What are the wifi and screen mode type of the hardware model named ""LG-P760""?","SELECT T1.WiFi, T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = ""LG-P760""" Which position was more than 421 overall for the St. Louis Cardinals?,"SELECT position FROM table_name_45 WHERE overall > 421 AND mlb_team = ""st. louis cardinals""" "How many rankings (timeslot) were there for the episode that aired on May 2, 2010?","SELECT COUNT(rank__timeslot_) FROM table_23397386_2 WHERE airdate = ""May 2, 2010""" The tournament Buick Classic occured on what dates?,"SELECT date FROM table_1507431_1 WHERE tournament = ""Buick Classic""" How many letters are there in Catherine Ward's e-mail account passwords?,SELECT LENGTH(T2.PasswordHash) FROM Person AS T1 INNER JOIN Password AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'Catherine' AND T1.LastName = 'Ward' What Lomavren word has the same meaning as the Hindi word do?,"SELECT lomavren FROM table_name_97 WHERE hindi = ""do""" "What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249?","SELECT attempts FROM table_name_42 WHERE team = ""iowa"" AND yards = ""2,249""" What is the percentage of the international students in University of Oslo in 2015?,SELECT T2.pct_international_students FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'University of Oslo' AND T2.year = 2015 "What College/junior/club team has a Position of centre, and pick is #22?","SELECT college_junior_club_team FROM table_name_31 WHERE position = ""centre"" AND pick__number = ""22""" what team lost on july 30,"SELECT loss FROM table_name_23 WHERE date = ""july 30""" On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage? ,"SELECT opinion_research_centre__opc_ FROM table_159614_2 WHERE national_opinion_polls__nop_ = ""1.3%""" what is the average of assets billion?,SELECT avg ( Assets_billion ) FROM company What 1978 has a 1976 of 62%?,"SELECT 1978 FROM table_name_99 WHERE 1976 = ""62%""" How many mileposts are there on Anne Street?,"SELECT COUNT(milepost) FROM table_10568553_1 WHERE street_names = ""Anne Street""" How many points did the away team score at Arden Street Oval?,"SELECT away_team AS score FROM table_name_59 WHERE venue = ""arden street oval""" Which chromoly steel product model has AdventureWorks saved in English?,SELECT T1.ProductModelID FROM ProductModelProductDescriptionCulture AS T1 INNER JOIN Culture AS T2 USING (cultureid) INNER JOIN ProductDescription AS T3 USING (productdescriptionid) WHERE T3.Description LIKE 'Chromoly steel%' AND T2.Name = 'English' what is the name of the episode directed by james bobin,"SELECT title FROM table_29803475_3 WHERE directed_by = ""James Bobin""" What composer has a duration time of 3:31?,"SELECT composer FROM table_name_8 WHERE duration = ""3:31""" What was the score for the game on December 20?,"SELECT score FROM table_name_49 WHERE date = ""december 20""" What is the county of the Sankee restaurant?,SELECT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'sankee' Show all headquarters with both a company in banking industry and a company in Oil and gas.,SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' when chiji is revised hepburn what are all the english,"SELECT english FROM table_26263954_1 WHERE revised_hepburn = ""chiji""" list the number of unique building ids for each company id,"SELECT T1.company_id, count ( distinct T1.building_id ) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.company_id" "Which Builder has a Date smaller than 1913, and a Length of feet (m), and a Number of 15?","SELECT builder FROM table_name_15 WHERE date < 1913 AND length = ""feet (m)"" AND number = ""15""" What is the full name of the non-sales employee who made the most number of rejected purchase orders?,"SELECT T2.FirstName, T2.LastName FROM PurchaseOrderHeader AS T1 INNER JOIN Person AS T2 ON T1.EmployeeID = T2.BusinessEntityID WHERE T2.PersonType = 'EM' AND T1.Status = 3 GROUP BY T2.FirstName, T2.LastName ORDER BY COUNT(T1.PurchaseOrderID) DESC LIMIT 1" What is the sum of the rounds where the overall pick was more than 295 and the pick was smaller than 10 and the player was rich dobbert?,"SELECT SUM(round) FROM table_name_93 WHERE overall > 295 AND name = ""rich dobbert"" AND pick < 10" "Name the game site for october 4, 1992","SELECT game_site FROM table_name_40 WHERE date = ""october 4, 1992""" list all product details,SELECT T2.product_details FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id Perfect! And is there an account number of 337? | Do you mean the account name? | Yes the account name being 337.,"SELECT * from Accounts where account_name = ""337""" How many staff live in state Georgia?,"SELECT count(*) FROM Addresses WHERE state_province_county = ""Georgia"";" What are the names of courses without prerequisites?,SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) "How many people participated in the Rasmussen Reports poll on October 13, 2010?","SELECT sample_size FROM table_name_61 WHERE poll_source = ""rasmussen reports"" AND date_s__administered = ""october 13, 2010""" What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?,SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423 "Can you find me the names of all the swimmers who have ""loss"" results in the record?",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' How many movies altogether do you have?,SELECT COUNT ( DISTINCT mID ) FROM Rating "Name the tries when tries against were 41, try bonus was 6, and had 317 points.","SELECT tries_for FROM table_name_35 WHERE try_bonus = ""6"" AND tries_against = ""41"" AND points_against = ""317""" List the income and number of inhabitants of customers with an age greater than the 80% of average age of all customers?,"SELECT T2.INCOME_K, T2.INHABITANTS_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID GROUP BY T2.INCOME_K, T2.INHABITANTS_K HAVING T1.age > 0.8 * AVG(T1.age)" Show all director names who have a movie in the year 1999 or 2000.,SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000 How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?,"SELECT us_viewers__millions_ FROM table_17482534_1 WHERE written_by = ""Warren Lieberstein & Halsted Sullivan""" When brive proceeded to quarter final what were the match points?,"SELECT match_points FROM table_27987767_3 WHERE proceed_to_quarter_final = ""Brive""" What is the title of the episode no. 16 by season?,SELECT title FROM table_27250813_1 WHERE no_in_season = 16 Can you also tell me the role code?,SELECT role_code FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 "Ok, then what is the country of origin of Enrique?",SELECT country FROM artist where artist_name = 'Enrique' Name the total number for nfl team for ellis gardner,"SELECT COUNT(nfl_team) FROM table_2508633_6 WHERE player = ""Ellis Gardner""" "What Title has a Termination of Mission of November 4, 1861?","SELECT title FROM table_name_60 WHERE termination_of_mission = ""november 4, 1861""" Where is the Stadium of Gortakeegan located?,"SELECT location FROM table_name_91 WHERE stadium = ""gortakeegan""" Which payment method is used by most customers?,SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 What is saturday day seven when thursday day five is ሐሙስ hamus?,"SELECT saturday_day_seven FROM table_1277350_7 WHERE thursday_day_five = ""ሐሙስ hamus""" Which school in Balclutha has a roll smaller than 55?,"SELECT name FROM table_name_52 WHERE area = ""balclutha"" AND roll < 55" What are the names of the students from ATL? | Here are the first and last names of the student from ATL | What is his age?,SELECT Age FROM student WHERE city_code = 'ATL' "For the Persian title گبه, What was the film title used for the nomination?","SELECT film_title_used_in_nomination FROM table_19625976_1 WHERE persian_title = ""گبه""" "List the hardware model name for the phones that have screen mode type ""Text"" or RAM size greater than 32.","SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = ""Text"" OR T1.RAM_MiB > 32;" Which of those colleges are located in LA?,"SELECT * FROM College WHERE enr > 10000 AND state = ""LA""" Show the name and date for each race and its track name.,"SELECT T1.name , T1.date , T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id" What is the full address of the most popular restaurant among the diners?,"SELECT T2.street_name, T2.street_num, T2.city FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant ORDER BY T1.review DESC LIMIT 1" "What is the location code for the country ""Canada""?","SELECT location_code FROM Ref_locations WHERE location_name = ""Canada""" What are the ids of all students who live in CHI?,"SELECT StuID FROM Student WHERE city_code = ""CHI""" In which year are there festivals both inside the 'United States' and outside the 'United States'?,SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States' "What is the customer id with most number of cards, and how many does he have?","SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1" "Return the name, rate, check in and check out date for the room with the highest rate.","SELECT T2.roomName , T1.Rate , T1.CheckIn , T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1;" Who placed t5 and had a score of 70-72=142?,"SELECT player FROM table_name_45 WHERE place = ""t5"" AND score = 70 - 72 = 142" "Among the employee names, what is the most common middle initial?",SELECT MiddleInitial FROM Employees GROUP BY MiddleInitial ORDER BY COUNT(MiddleInitial) DESC LIMIT 1 What is the percentage of flights which landed at Pittsburgh were faster than scheduled?,SELECT CAST(SUM(CASE WHEN T1.ACTUAL_ELAPSED_TIME < T1.CRS_ELAPSED_TIME THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T2.Code = T1.DEST WHERE T2.Description LIKE '%Pittsburgh%' AND T1.CRS_ELAPSED_TIME IS NOT NULL AND T1.ACTUAL_ELAPSED_TIME IS NOT NULL What Entrant has a 1952 maserati straight-6 engine?,"SELECT entrant FROM table_name_29 WHERE engine = ""maserati straight-6"" AND year = 1952" Indicate the year and a full name of the journal in which the publication named 'Area Effects in Cepaea' was published.,"SELECT T1.Year, T2.FullName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Title = 'Area Effects in Cepaea'" What about events that have 2 or 3 notes as well? Can you add those to the list.,SELECT T1.Customer_Event_ID FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count ( * ) BETWEEN 1 AND 3 Find the names of goods that receive a rating of 10.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating = 10 What are the destinations and number of flights to each one?,"SELECT destination , count(*) FROM Flight GROUP BY destination" Action movies are mostly directed by directors of which country?,SELECT T3.country FROM movies2directors AS T1 INNER JOIN directors AS T2 ON T1.directorid = T2.directorid INNER JOIN movies AS T3 ON T1.movieid = T3.movieid WHERE T1.genre = 'Action' GROUP BY T3.country ORDER BY COUNT(T3.country) DESC LIMIT 1 What was the essendon score when they were at home?,"SELECT home_team AS score FROM table_name_25 WHERE home_team = ""essendon""" What did the tournament that got an A in 1945 get in 1949?,"SELECT 1949 FROM table_name_22 WHERE 1945 = ""a""" Show all the grades of the high schoolers.,SELECT grade FROM Highschooler "What are the names of all the songs whose album is under the label of ""Universal Music Group""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = ""Universal Music Group""" What is the full office location address where most of the employees work at?,"SELECT T2.address, T2.locationcity, T2.state, T2.zipcode FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID GROUP BY T2.address, T2.locationcity, T2.state, T2.zipcode ORDER BY COUNT(*) DESC LIMIT 1" What are the names of all instructors with a higher salary than any of the instructors in the Biology department?,SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology') What is H/A/N when Date is February 24?,"SELECT h_a_n FROM table_name_55 WHERE date = ""february 24""" What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""" Find the number of classes offered for all class rooms that held at least 2 classes ?,"SELECT count ( * ) , class_room FROM CLASS GROUP BY class_room HAVING count ( * ) > = 2" Show the enrollment and primary_conference of the oldest college.,"SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1" Who was the shooter with a score of 686.4?,"SELECT shooter FROM table_name_59 WHERE score = ""686.4""" Count the number of different film ratings.,SELECT count(DISTINCT rating) FROM film Where did Collingwood play as the home team?,"SELECT venue FROM table_name_28 WHERE home_team = ""collingwood""" What is the report for races where Will Power had both pole position and fastest lap?,"SELECT report FROM table_16099880_5 WHERE pole_position = ""Will Power"" AND fastest_lap = ""Will Power""" Name the moving to with a transfer fee of free with a transfer status for rodri,"SELECT moving_to FROM table_name_24 WHERE transfer_fee = ""free"" AND status = ""transfer"" AND name = ""rodri""" What is the smallest Asian rank?,SELECT MIN(rank_asia) FROM table_2248784_4 Find all the distinct visit dates.,SELECT DISTINCT Visit_Date FROM VISITS what year is chris mcnamara?,"SELECT year FROM table_29598261_1 WHERE name = ""Chris McNamara""" What is the date of the U.S. Women's open?,"SELECT date FROM table_name_61 WHERE tournament = ""u.s. women's open""" Which Losing Bonus has a Try Bonus of 8?,"SELECT losing_bonus FROM table_name_29 WHERE try_bonus = ""8""" "What are the ids and names of each document, as well as the number of paragraphs in each?","SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id" Which platform is the most popular in Europe?,SELECT T.platform_name FROM ( SELECT T4.platform_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'Europe' ORDER BY T2.num_sales DESC LIMIT 1 ) t List the air carrier description and code of the flight with the shortest arrival time.,"SELECT T1.Description, T1.Code FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID ORDER BY T2.ARR_TIME ASC LIMIT 1" What are the ids for all sporty students who are on scholarship?,SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' Show me the first and last name of students whose age is younger than the average age,"SELECT fname , lname FROM student WHERE age < ( SELECT avg ( age ) FROM student ) " what is address of the customer Ahmed?,SELECT customer_address fROM Customers where customer_name = 'Ahmed' What is the date for US catalog CK 9942?,"SELECT date FROM table_name_4 WHERE country = ""us"" AND catalog = ""ck 9942""" What is the teacher's last name?,SELECT LastName FROM list GROUP BY classroom ORDER BY count ( * ) DESC LIMIT 1 Name the number of branding for 31 physical,SELECT COUNT(branding) FROM table_14623167_1 WHERE physical = 31 Which year is credit card No.9648's Expiration Year?,SELECT ExpYear FROM CreditCard WHERE CreditCardID = 9648 What was the result for the friendly match competition?,"SELECT res FROM table_name_49 WHERE competition = ""friendly match""" What was the time on Monday August 23rd for Steve Linsdell 499cc royal enfield seeley?,"SELECT mon_23_aug FROM table_26986076_3 WHERE rider = ""Steve Linsdell 499cc Royal Enfield Seeley""" What is the Code Name for the Space Pilot Function (figure)?,"SELECT code_name FROM table_name_88 WHERE function__figure_ = ""space pilot""" "What is the country with a course of merion golf club, and a to par [1] of e?","SELECT country FROM table_name_27 WHERE course = ""merion golf club"" AND to_par_[a_] = ""e""" What is the average pick of player jim h. mitchell?,"SELECT AVG(pick) FROM table_name_3 WHERE player = ""jim h. mitchell""" Who wrote the episode with production code 5?,SELECT written_by FROM table_25679312_2 WHERE prod_code = 5 In which years are co-stars mala sinha and amitabh bachchan?,"SELECT year FROM table_2528382_2 WHERE co_stars = ""Mala Sinha and Amitabh Bachchan""" Where was the game in which Carl Landry (25) did the most high points played?,"SELECT location_attendance FROM table_23281862_6 WHERE high_points = ""Carl Landry (25)""" "What is the customer first, last name and id with the least number of accounts?","SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) ASC LIMIT 1" Which pole has a Season of 2009 and points of test driver?,"SELECT poles FROM table_name_90 WHERE season = 2009 AND points = ""test driver""" What is the name of id 2?,SELECT name from architect where id = 2 How many goalies played for Calgary Flames?,SELECT COUNT(DISTINCT playerID) FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.name = 'Calgary Flames' Please find the ids and names of members with black membership card.,"SELECT name , member_id FROM member WHERE Membership_card = 'Black'" "What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?","SELECT no_5 FROM table_name_39 WHERE no_2 = ""olivia"" AND no_4 = ""ava"" AND no_6 = ""abigail""" What is the city_code of the city that the most students live in?,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1 "What is the customer id, first and last name with least number of accounts.","SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1" What are the name of rooms that cost more than the average.,SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms ); "What is Region (Year), when No. 7 is William, and when No. 2 is Alexander?","SELECT region__year_ FROM table_name_51 WHERE no_7 = ""william"" AND no_2 = ""alexander""" now show me the shop which have devices in stock,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID What is the f bolt for 11.35 p1 diameter (mm)?,"SELECT f_bolt FROM table_26967904_2 WHERE p1_diameter__mm_ = ""11.35""" Which film has the highest rental rate? And what is the rate?,"SELECT title , rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1" What away team played when the home team was south melbourne?,"SELECT away_team FROM table_name_33 WHERE home_team = ""south melbourne""" What are the ids of all reviewers who have not given 4 stars at least once?,SELECT rID FROM Rating WHERE stars != 4 Find the names of all directors whose movies are rated by Sarah Martinez.,SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' how many trains have express in their names?,"SELECT count ( * ) FROM train WHERE name LIKE ""%Express%""" What are the names of parties with 2 events,SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count ( * ) = 2 "Give me the details of the organizations described as ""Sponsor"" in alphabetical order",SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details Find the organisation type description of the organisation detailed as 'quo'.,SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'; "What is the topic of the series when the Total reserves minus gold (current US$) indicator of Haiti hit the value of 3,000,000 in 1961? Please include its series code and license type.","SELECT T2.Topic, T2.Seriescode, T2.LicenseType FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year = 1961 AND T1.CountryName = 'Haiti' AND T1.IndicatorName = 'Total reserves minus gold (current US$)' AND T1.Value = 3000000" Name the old bulgarian names for yanuari,SELECT old_bulgarian_names FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Yanuari "What is the highest Game, when Opponents is less than 80, and when Record is ""1-0""?","SELECT MAX(game) FROM table_name_98 WHERE opponents < 80 AND record = ""1-0""" "How many male users of the ""Galaxy S5"" device model?",SELECT COUNT(T1.device_id) FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T1.device_model = 'Galaxy S5' AND T2.gender = 'M' Count the number of candidates.,SELECT count(*) FROM candidate "For each submission, find its author and acceptance result.","SELECT T2.Author , T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID" Which Record is on november 16?,"SELECT record FROM table_name_51 WHERE date = ""november 16""" What is the most goals for when there are fewer than 4 draws?,SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 4 "How many different finales had the English title ""Beyond the Realm of Conscience""?","SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = ""Beyond the Realm of Conscience""" Where's the location for the opponent James Zikic and 3 rounds?,"SELECT location FROM table_name_99 WHERE round = 3 AND opponent = ""james zikic""" "What is the best selling colour for HL Mountain Frame, 42?","SELECT IIF(SUM(IIF(T1.Name = 'HL Mountain Frame - Silver, 42', T2.SalesID, 0)) - SUM(IIF(T1.Name = 'HL Mountain Frame - Black, 42', T2.SalesID, 0)) > 0, 'Silver', 'Black') FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID" "When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration?","SELECT duration FROM table_245801_2 WHERE spacecraft = ""Salyut 7 – VE-4 – EVA 1""" List the customer's ID and last name of the customer that purchased a product with a quantity greater than 90% of the average quantity of all listed products.,"SELECT T2.CustomerID, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Quantity > ( SELECT AVG(Quantity) FROM Sales ) * 0.9" What was the Venue of the 2009 Gulf Cup of Nations?,"SELECT venue FROM table_name_75 WHERE competition = ""2009 gulf cup of nations""" "How many Apps have a Rank larger than 2, and Goals smaller than 102?",SELECT SUM(apps) FROM table_name_48 WHERE rank > 2 AND goals < 102 "What is Years, when Jersey Number(s) is 21, and when Position is SG?","SELECT years FROM table_name_97 WHERE jersey_number_s_ = ""21"" AND position = ""sg""" What is the name of the college/junior/club team of the Buffalo Sabres?,"SELECT college_junior_club_team FROM table_2679061_10 WHERE nhl_team = ""Buffalo Sabres""" Name the date of appointment for ascoli,"SELECT date_of_appointment FROM table_17275810_7 WHERE team = ""Ascoli""" What is the lowest Draw when the Artist is Stine Findsen and the Points are larger than 42?,"SELECT MIN(draw) FROM table_name_95 WHERE artist = ""stine findsen"" AND points > 42" What are characteristic names used at least twice across all products?,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 GROUP BY t3.characteristic_name HAVING count(*) >= 2 What are the names of the members and branches at which they are registered sorted by year of registration?,"SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year" What is the most number of families among regions where the population is made up of 5.8% deportees?,"SELECT MAX(number_of_families) FROM table_16048129_5 WHERE _percentage_of_total_deportees = ""5.8""" Identify the total weight of shipments transported in 2016 by the newest Peterbilt.,"SELECT SUM(T2.weight) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Peterbilt' AND STRFTIME('%Y', T2.ship_date) = '2016' ORDER BY T1.model_year DESC LIMIT 1" What is the total number for the pick of the player Wayne Fowler and a round after 7?,"SELECT COUNT(pick) FROM table_name_91 WHERE player = ""wayne fowler"" AND round > 7" What is the title of the film that has the highest high market estimation.,SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1 How many results were there for the Stan Fox Stakes race?,"SELECT COUNT(result) FROM table_1360997_2 WHERE race = ""Stan Fox Stakes""" "How many events does the device ""4069764298338760000"" have?",SELECT COUNT(event_id) FROM events WHERE device_id = 4069764298338760000 What is the title of the employee who handled order id 10270?,SELECT T1.Title FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10257 What are the language and title of the ordered books with price less than 20% of the average price of all ordered books?,"SELECT DISTINCT T3.language_name, T2.title FROM order_line AS T1 INNER JOIN book AS T2 ON T1.book_id = T2.book_id INNER JOIN book_language AS T3 ON T3.language_id = T2.language_id WHERE T1.price * 100 < ( SELECT AVG(price) FROM order_line ) * 20" which track has the highest number of race?,SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count ( * ) DESC LIMIT 1 How many faculty members are at the university that gave the least number of degrees in 2001?,SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1 What date has new england patriots as the opponent?,"SELECT date FROM table_name_26 WHERE opponent = ""new england patriots""" Organisation ID of project ID 2?,"SELECT organisation_id FROM Projects WHERE project_id = 2" how many time of purchase in ashby lazale,"SELECT Time_of_purchase from member where name = 'Ashby, Lazale'" Count the number of budget codes.,SELECT count(*) FROM Ref_budget_codes How many length of park Kemah Boardwalk? | Did you mean to ask for the length of the park with name Kemah Boardwalk? | Yes,"SELECT Length FROM roller_coaster WHERE Park = ""Kemah Boardwalk""" "What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars?","SELECT us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = ""west coast bad boyz, vol. 3: poppin' collars""" what highest time in the train table,SELECT time FROM train order by time desc limit 1 Return the top 3 greatest support rates.,SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 Show the names of the three most recent festivals.,SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3 Tell me the sum of bronze for gold being 27 and silver more than 30,SELECT SUM(bronze) FROM table_name_35 WHERE gold = 27 AND silver > 30 In what year was Ave Maria University created and where is the current location,"SELECT Founded, Location FROM institution WHERE Institution = ""Ave Maria University""" "List out the name of players who have a height of 5'8"".","SELECT T2.PlayerName FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T1.height_in_inch = '5''8""'" List the name of the conductor with the most years of work.,SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 How many products were not included in any order?,SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items ) What Kit/Factory has a J250 model made by Jabiru?,"SELECT kit_factory FROM table_name_90 WHERE manufacturer = ""jabiru"" AND model = ""j250""" What are the employee ids for employees who have held two or more jobs?,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 of those players how many are right-footed?,SELECT count ( * ) FROM Player_Attributes WHERE overall_rating > 80 and preferred_foot = 'right' "What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?","SELECT home_team AS score FROM table_name_39 WHERE time = ""12:00 pm"" AND ground = ""waverley park""" What was the title of the episode directed by Rowan Woods?,"SELECT title FROM table_23918997_1 WHERE directed_by = ""Rowan Woods""" What was the score in the final when Mats Wilander was the opponent in the Australian Open?,"SELECT score_in_the_final FROM table_23235546_1 WHERE championship = ""Australian Open"" AND opponent_in_the_final = ""Mats Wilander""" How many times did the Yale University achieve a score of no less than 10 in the Quality of Education Rank?,SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'Yale University' AND T2.score >= 10 AND T1.criteria_name = 'Quality of Education Rank' What country has a loan as the type?,"SELECT country FROM table_name_6 WHERE type = ""loan""" How many books were written by author A.J. Ayer?,SELECT COUNT(*) FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id WHERE T2.author_name = 'A.J. Ayer' What are the areas and counties for all appelations?,"SELECT Area , County FROM APPELLATIONS" Who directed the episode with an audience of 14.11 million?,"SELECT directed_by FROM table_27776266_1 WHERE us_viewers__million_ = ""14.11""" How many runs did Vijay Hazare and Gul Mohammad score?,"SELECT runs FROM table_name_98 WHERE batting_partners = ""vijay hazare and gul mohammad""" How many appointment dates were recorded when Jürgen Kohler was the replaced by?,"SELECT COUNT(date_of_appointment) FROM table_17085981_2 WHERE replaced_by = ""Jürgen Kohler""" "How many instruments does the song ""Le Pop"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" "What is Label, when Region is Japan?","SELECT label FROM table_name_40 WHERE region = ""japan""" Which language do 87.5% of males speak?,"SELECT males FROM table_name_44 WHERE percentage___percentage_ = ""87.5""" Name the taverns that failed the inspection in January 2010.,"SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE strftime('%Y-%m', T2.inspection_date) = '2010-01' AND T2.results = 'Fail' AND T1.facility_type = 'TAVERN'" What episode had 10.14 million viewers (U.S.)?,"SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = ""10.14""" how many stations are presented on the table,SELECT DISTINCT count ( * ) FROM station "What shows for loaned to when the loan expires end of the season, Francis Jeffers is the player?","SELECT loaned_to FROM table_name_37 WHERE loan_expires = ""end of the season"" AND player = ""francis jeffers""" Which team was the home team at Glenferrie Oval?,"SELECT home_team FROM table_name_82 WHERE venue = ""glenferrie oval""" Find the count of universities whose campus fee is greater than the average campus fee.,SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees) How many shipments did Holger Nohr transport to North Las Vegas overall?,SELECT COUNT(*) FROM driver AS T1 INNER JOIN shipment AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T1.first_name = 'Holger' AND T1.last_name = 'Nohr' AND T3.city_name = 'North Las Vegas' "What is the market value in billions when the assets totaled 1,380.88?","SELECT market_value__billion_$_ FROM table_1682026_7 WHERE assets__billion_$_ = ""1,380.88""" What is the Place of Draw 1 by Artist Monika Kirovska?,"SELECT AVG(place) FROM table_name_54 WHERE artist = ""monika kirovska"" AND draw < 1" What is the location code of thing id 10 and the date and time?,"select location_code, date_and_time from Timed_Locations_of_Things where thing_id = 10" What is the date of game 7?,"SELECT date FROM table_20745746_1 WHERE _number = ""7""" "What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?","SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = ""total"" AND draw > 317" Name the name for san beda,"SELECT name FROM table_15463188_7 WHERE school_club_team = ""San Beda""" What is the name of the course that has the most student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 Which 2 Scottish teams scored 10 goals playing as a local team and in which seasons?,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Scotland' AND T1.FTHG = 10 What is the sum of the number of pages of the books ordered by Mick Sever?,SELECT SUM(T1.num_pages) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Mick' AND T4.last_name = 'Sever' Who were the Runner(s)-up with the winning score of −16 (66-68-70-68=272)?,SELECT runner_s__up FROM table_name_74 WHERE winning_score = −16(66 - 68 - 70 - 68 = 272) How many games does novica veličković have when there's more than 24 rebounds?,"SELECT COUNT(games) FROM table_name_57 WHERE name = ""novica veličković"" AND rebounds > 24" Who is the longest serving coach from year 1970 to 1980. List the coach ID and the team(s) he served.,"SELECT coachID, tmID FROM coaches WHERE year BETWEEN 1970 AND 1980 ORDER BY stint DESC LIMIT 1" What are the names of all songs in English?,"SELECT song_name FROM song WHERE languages = ""english""" list down all the product ids,SELECT product_id from products what is the highest price?,SELECT price FROM Lessons ORDER BY price DESC LIMIT 1 "Which Opponents have a Partnering of alessandro motti, and a Date of 12 september 2005?","SELECT opponents FROM table_name_60 WHERE partnering = ""alessandro motti"" AND date = ""12 september 2005""" "What is Score, when Game is greater than 78, and when Date is ""4""?",SELECT score FROM table_name_31 WHERE game > 78 AND date = 4 What is the obverse of the archery coin?,"SELECT obverse FROM table_name_45 WHERE reverse = ""archery""" What Type has the Artist of Hiroyuki Takami?,"SELECT type FROM table_name_42 WHERE artist = ""hiroyuki takami""" What are the first names and offices of history professors who don't have Ph.D.s?,"SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.'" What is the total number of points team Alfa Romeo 184T won?,"SELECT SUM(points) FROM table_name_56 WHERE team_chassis = ""alfa romeo 184t""" What is the age of the youngest female user of the app?,SELECT MIN(age) FROM gender_age WHERE gender = 'F' What are the ids of instructors who didnt' teach?,SELECT id FROM instructor EXCEPT SELECT id FROM teaches "What date was there a crowd larger than 30,343?",SELECT date FROM table_name_97 WHERE crowd > 30 OFFSET 343 What rank has 123 as the total?,SELECT rank FROM table_name_96 WHERE total = 123 When victoria coren and rhod gilbert are both on the lees team what is the score?,"SELECT scores FROM table_23575917_6 WHERE lees_team = ""Victoria Coren and Rhod Gilbert""" What was the score for a match where Sophie Gustafson played?,"SELECT score FROM table_name_44 WHERE player = ""sophie gustafson""" Give me all the phone numbers and email addresses of the workshop groups where services are performed.,"SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID" How long is the XXX track used by the Minnesota Vikings?,"SELECT time FROM table_name_14 WHERE team_s_ = ""minnesota vikings"" AND artist_s_ = ""xxx""" What is the name of the movie from 1997 distributed from HBO Pictures?,"SELECT title FROM table_name_99 WHERE year = ""1997"" AND distributor_s_ = ""hbo pictures""" What is the name of the youngest editor?,SELECT Name FROM editor ORDER BY Age ASC LIMIT 1 Which teachers teach in classroom 110? Give me their first names.,SELECT firstname FROM teachers WHERE classroom = 110 "Which silver has a Gold larger than 4, and a Rank of 1?",SELECT silver FROM table_name_74 WHERE gold > 4 AND rank = 1 What was the date of the game with 6 goals?,SELECT date FROM table_name_61 WHERE goal = 6 "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.","SELECT T1.fault_short_name , T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id" What is the average latitude and longitude of stations located in San Jose city?,"SELECT avg(lat) , avg(long) FROM station WHERE city = ""San Jose""" How many activities do we have?,SELECT COUNT(*) FROM Activity What are the code and description of the most frequent behavior incident type?,"SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1" what is the fault status of engineer visit id 1?,SELECT fault_status from Engineer_Visits where engineer_visit_id = 1 What's the score of Tie number 11?,"SELECT score FROM table_name_48 WHERE tie_no = ""11""" What extra is from after 2009?,SELECT extra FROM table_name_87 WHERE year > 2009 "That sounds good. What about the album ""For Those About To Rock, We Salute You""? Which artist produced that one?","SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = ""For Those About To Rock We Salute You""" Who wrote the title with production code 7acx14?,"SELECT written_by FROM table_22269839_1 WHERE production_code = ""7ACX14""" What are the first and last names of the teachers that teach STORMY CHRISTENSEN?,"SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname like ""%STORMY%"" AND T1.lastname like ""%CHRISTENSEN%""" When was the game at Collingwood?,"SELECT date FROM table_name_59 WHERE away_team = ""collingwood""" What is every specialization with the website Jstu.edu.bd,"SELECT specialization FROM table_2112260_1 WHERE website = ""jstu.edu.bd""" how many incumbent with district  being tennessee 5,"SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = ""Tennessee 5""" What are the names of all songs that are in mp3 format and have a resolution lower than 1000?,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" "How many episodes aired on october 27, 2008","SELECT COUNT(episode) FROM table_11235334_2 WHERE air_date = ""October 27, 2008""" "For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?","SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = ""ca osasuna"" AND average < 1.06" "list the card number of all members whose hometown address includes word ""Kentucky"".","SELECT card_number FROM member WHERE Hometown LIKE ""%Kentucky%""" Indicate the procured dates for the customer whose ID is 11.,"SELECT DISTINCT T FROM ( SELECT IIF(_CustomerID = 11, ProcuredDate, NULL) AS T FROM `Sales Orders` ) WHERE T IS NOT NULL" What are the names of people who are shorter than average?,SELECT name FROM people WHERE height < (SELECT avg(height) FROM people) Name the opponent for 11-1,"SELECT opponent FROM table_22847880_2 WHERE record = ""11-1""" And for America Jaskolski?,"SELECT count ( * ) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""America Jaskolski""" Name the total number of start when finish is less than 4,SELECT COUNT(start) FROM table_name_21 WHERE finish < 4 Who is the youngest male?,SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' ) How few acres is the area of Clashroe?,"SELECT MIN(area__acres__) FROM table_30120633_1 WHERE townland = ""Clashroe""" "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is ""LG-P760"".","SELECT T1.Char_cells , T1.Pixels , T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = ""LG-P760"";" What is the unit cost of order SO - 000103?,"SELECT DISTINCT T FROM ( SELECT IIF(OrderNumber = 'SO - 000103', `Unit Cost`, NULL) AS T FROM `Sales Orders` ) WHERE T IS NOT NULL" How many movies registered on Mubi are directed by Hong Sang-soo?,SELECT COUNT(movie_id) FROM movies WHERE director_name = 'Hong Sang-soo' Name the average week for result of l 28–17,"SELECT AVG(week) FROM table_name_56 WHERE result = ""l 28–17""" What is the name of the tallest building?,SELECT name FROM building ORDER BY height_feet DESC LIMIT 1 What's the time of Rank 3?,SELECT time FROM table_name_78 WHERE rank = 3 what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)?,"SELECT type FROM table_name_62 WHERE averaging_time = ""1-hour"" AND standard = ""0.12 ppm (235 μg/m³)""" Which match report has l 7-30 as the result/score?,"SELECT match_report FROM table_name_98 WHERE result_score = ""l 7-30""" Which faculty do not participate in any activity? Find their faculty ids.,SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in who is the youngest,SELECT name FROM HOST order by age limit 1 What ceremony was leela chitnis nominated at?,"SELECT ceremony FROM table_name_45 WHERE outcome = ""nominated"" AND nominee = ""leela chitnis""" What are the ids of documents which don't have expense budgets?,SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses What region has the symbol 八尾?,"SELECT region FROM table_name_71 WHERE japanese = ""八尾""" what is the emplotyee number for accounting?,"SELECT EMP_num from department where dept_name = ""Accounting""" what is the name of the level for the 7th position,"SELECT level FROM table_29697744_1 WHERE position = ""7th""" What was the vote % of Heather and Matt?,"SELECT vote_percentage FROM table_26375386_18 WHERE couple = ""Heather and Matt""" What is the zip code of the address in the city Port Chelsea?,SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' show all headquarters without a company in banking industry.,SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' How many students are enrolled in college?,SELECT sum(enr) FROM College "Who is the youngest person to ever play a ""clerk"" role in the series?",SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.role = 'Clerk' AND T2.birthdate IS NOT NULL ORDER BY T2.birthdate LIMIT 1 What was the lowest recorded record for a player with an average larger than 13?,SELECT MIN(rec) FROM table_name_57 WHERE avg > 13 What is the Tie Number when the home team was West Ham United?,"SELECT tie_no FROM table_name_56 WHERE home_team = ""west ham united""" Who did they play against in the game that ended in 2-2?,"SELECT opponent FROM table_13258806_2 WHERE record = ""2-2""" "What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?","SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = ""13.16 (94) – 13.10 (88)""" Find the name of the ship that is steered by the youngest captain.,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 What are the id and name of the stadium where the most injury accidents happened?,"SELECT T1.id , T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" Provide the city where zip code 19019 is located and the alias of that city.,"SELECT T2.city, T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 19019" When yakup şener is the athlete what is the round of 32?,"SELECT round_of_32 FROM table_27294107_11 WHERE athlete = ""Yakup Şener""" What shows for 1995 when 1996 shows grand slams?,"SELECT 1995 FROM table_name_74 WHERE 1996 = ""grand slams""" Find the description and credit for the course QM-261?,"SELECT crs_credit , crs_description FROM course WHERE crs_code = 'QM-261'" Which event id does not have any participant with the detail Kneyatta Kuhn?,SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn' What is the highest 2011 population when the ethnic group is asian or asian british: asian other?,"SELECT MAX(2011 AS _population) FROM table_282413_3 WHERE ethnic_group = ""Asian or Asian British: Asian Other""" What is the percentage of others when the number of others is 2286?,SELECT others_percentage FROM table_1733513_1 WHERE others_number = 2286 How many staff in total?,SELECT count(*) FROM Staff; "When the ability is 32, what is the leadership ability?",SELECT MAX(leadership_ability) FROM table_1855342_5 WHERE overall_ability = 32 Which female challengers featured in episode 28?,SELECT challengers__female_ FROM table_24051050_1 WHERE episode = 28 "Among the root beer brands that do not advertise on Facebook and Twitter, which brand has the highest number of purchases?",SELECT T2.BreweryName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID WHERE T2.FacebookPage IS NULL AND T2.Twitter IS NULL GROUP BY T2.BrandID ORDER BY COUNT(T1.BrandID) DESC LIMIT 1 How many students are in each department?,"SELECT count(*) , dept_name FROM student GROUP BY dept_name" What is the store address of the store chain East?,"SELECT T1.store_address FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""East""" Which language is the most popular on the Asian continent?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = ""Asia"" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1" "How many starts did Pearson have when his winnings were $101,438?","SELECT starts FROM table_2626564_2 WHERE winnings = ""$101,438""" List all statement ids and statement details.,"SELECT STATEMENT_ID , statement_details FROM Statements" "What is the average number of root beers of the brand A&W sold in a day in August, 2014?",SELECT CAST(COUNT(T1.BrandID) AS REAL) / 31 FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T2.TransactionDate LIKE '2014-08%' AND T3.BrandName = 'A&W' Which Malaysia Satellite tournaments were played after 1998?,"SELECT outcome FROM table_name_52 WHERE year > 1998 AND tournament = ""malaysia satellite""" What are the numbers for the item completed earlier than 1904?,SELECT numbers FROM table_name_13 WHERE completed < 1904 Name the segment d for s cufflink,"SELECT segment_d FROM table_15187735_18 WHERE segment_a = ""s Cufflink""" How many wickets was there when the economy was 3.64?,"SELECT wickets FROM table_28797906_3 WHERE economy = ""3.64""" "Among all products without any rejected quantity, which product has the highest line total? State the product name and unit price.","SELECT T1.Name, T2.UnitPrice FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE T2.RejectedQty = 0 ORDER BY T2.LineTotal DESC LIMIT 1" What is the 4wi when the economy is 7.82?,"SELECT 4 AS wi FROM table_27268238_5 WHERE economy = ""7.82""" Name the total number of race time for kevin harvick,"SELECT COUNT(race_time) FROM table_2241259_1 WHERE driver = ""Kevin Harvick""" What family had a no.overall of UK10?,"SELECT family_families FROM table_19897294_4 WHERE no_overall = ""UK10""" What is the average NGC number that has a Apparent magnitude greater than 14.2?,SELECT AVG(ngc_number) FROM table_name_59 WHERE apparent_magnitude > 14.2 What team played against Al-Ismaily (team 1)?,"SELECT team_2 FROM table_name_79 WHERE team_1 = ""al-ismaily""" What venue had SF?,"SELECT venue FROM table_name_4 WHERE round = ""sf""" Calculate the percentage of high-level undergraduate course.,SELECT CAST(SUM(CASE WHEN courseLevel = 'Level_400' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM course Find the max and min grade point for all letter grade.,"SELECT MAX(gradepoint), MIN(gradepoint) FROM GRADECONVERSION" Who are all the motogp winners when the circuit was Catalunya?,"SELECT motogp_winner FROM table_26781017_1 WHERE circuit = ""Catalunya""" How many writers were there in the episode directed by Charles Haid?,"SELECT COUNT(written_by) FROM table_23255941_1 WHERE directed_by = ""Charles Haid""" What is the height of Fenta orange?,"SELECT height FROM catalog_contents WHERE catalog_entry_name = ""Fenta Orange""" What are the ids of every student who has never attended a course?,SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance) Which city has the most customers living in?,SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1 What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?,"SELECT tournament FROM table_name_33 WHERE partner = ""nicole thijssen"" AND opponent_in_the_final = ""nina bratchikova & frederica piedade""" What is every value for Under-17 if Under-15 is Maria Elena Ubina?,"SELECT under_17 FROM table_26368963_2 WHERE under_15 = ""Maria Elena Ubina""" Find the three most expensive procedures.,SELECT name FROM procedures ORDER BY cost LIMIT 3 What's the most amount of draft copies that a document has?,SELECT count ( copy_number ) FROM Draft_Copies GROUP BY document_id ORDER BY count ( copy_number ) DESC LIMIT 1 Find the name and checking balance of the account with the lowest saving balance.,"SELECT T2.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" "What is the average Total when silver is less than 1, and the rank is 15?","SELECT AVG(total) FROM table_name_12 WHERE silver < 1 AND rank = ""15""" What date was the pyramid location?,"SELECT date FROM table_name_69 WHERE location = ""the pyramid""" what is the age of Vijay Singh,"SELECT age FROM artist where name = ""Vijay Singh""" "Show me Address IDs of workshop groups that have bookings with status code ""stop""","SELECT T2.Address_ID FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop""" What is the percentage of trips that started in San Jose and durations were longer than 800 seconds?,SELECT CAST(SUM(CASE WHEN T1.duration > 800 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'San Jose' Room and phone no. of id 1121?,"SELECT Room, Phone FROM FACULTY WHERE FacID = 1121" List the movie titles directed by Jack Kinney.,SELECT name FROM director WHERE director = 'Jack Kinney' What year was the class 253 larger than 18 built?,"SELECT year_built FROM table_name_10 WHERE class = ""class 253"" AND number > 18" Which language was book id 1405 written in?,SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T1.book_id = 1405 How many of Shakespeare's works were finished before the year 1602?,SELECT COUNT(id) FROM works WHERE Date < 1602 list the catalogs that have level number greater than 5 | Do you want catalog name or id? | id,SELECT t1.catalog_id FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5 Name the D 45 O that has D 46 O of d 26,"SELECT d_45_o FROM table_name_30 WHERE d_46_o = ""d 26""" Find the average fee on a CSU campus in 1996,SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 1996 How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?,"SELECT COUNT(lmp1_winning_team) FROM table_24865763_2 WHERE rnd = 4 AND lmp2_winning_team = ""No. 42 Strakka Racing""" "Show the shipping charge and customer id for customer orders with order status ""Cancelled""","SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Cancelled'" Whose term started on 4 May 2006?,"SELECT minister FROM table_name_35 WHERE term_start = ""4 may 2006""" What was the lowest total of medals won by Croatia?,"SELECT MIN(total) FROM table_name_12 WHERE nation = ""croatia""" How many rivers finally flows to the sea of 459m in depth?,SELECT COUNT(*) FROM river WHERE Sea IN ( SELECT Name FROM sea WHERE Depth = 459 ) How many different high rebound results are there for the game number 26?,SELECT COUNT(high_rebounds) FROM table_23286223_5 WHERE game = 26 Who was the composer of te3rafy?,"SELECT composer FROM table_28005100_1 WHERE title = ""Te3rafy""" "What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2?","SELECT MIN(draws) FROM table_name_94 WHERE ballarat_fl = ""sunbury"" AND byes > 2" "Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46?","SELECT AVG(change) FROM table_name_31 WHERE centre = ""buenos aires"" AND rank < 46" What was the record against Boston?,"SELECT record FROM table_15780718_8 WHERE team = ""Boston""" How many students play video games?,SELECT COUNT(DISTINCT StuID) FROM Plays_games What is the power in kW corresponding to the station that covers General Santos?,"SELECT power__kw_ FROM table_name_63 WHERE coverage = ""general santos""" Which Hometown/School has a Team of cleveland indians?,"SELECT hometown_school FROM table_name_94 WHERE team = ""cleveland indians""" What is the response received date for the document described as Regular that was granted more than 100 dollars?,SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100 "Which Result has a Site of rice stadium • houston, tx?","SELECT result FROM table_name_9 WHERE site = ""rice stadium • houston, tx""" What Airport's ICAO is ENTO?,"SELECT airport FROM table_name_23 WHERE icao = ""ento""" In what year does the Brown University score the highest?,SELECT T1.year FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Brown University' ORDER BY T1.score DESC LIMIT 1 What the percentage of the english methods among the methods whose comments is XML format?,SELECT CAST(SUM(CASE WHEN Lang = 'en' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Name) FROM Method WHERE CommentIsXml = 1 What are the unique names of races that held after 2000 and the circuits were in Spain?,"SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2000" Show all distinct building descriptions.,SELECT DISTINCT building_description FROM Apartment_Buildings What is the record of the game on March 5?,"SELECT record FROM table_name_57 WHERE date = ""march 5""" "What was the pick number for the compensation-a round, for player Frank Catalanotto?","SELECT pick FROM table_name_93 WHERE round = ""compensation-a"" AND player = ""frank catalanotto""" What procedures cost less than 5000 and have John Wen as a trained physician?,"SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" Who had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists?,"SELECT high_rebounds FROM table_name_57 WHERE high_assists = ""jason kidd (8)"" AND score = ""w 105–95 (ot)""" "Write down the title and affiliation of the preprinted paper written by ""Roger J.Marshal"".","SELECT T1.Title, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Roger J. Marshall' AND T1.ConferenceID = 0 AND T1.JournalID = 0" Where was the game played where the record was 10-1?,"SELECT location_attendance FROM table_27715173_6 WHERE record = ""10-1""" Who directed the episode with 4.82 million U.S. viewers?,"SELECT directed_by FROM table_25851971_1 WHERE us_viewers__million_ = ""4.82""" What is the name of the district with the smallest area?,SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1 How many ranks have an industry of health care?,"SELECT COUNT(rank) FROM table_name_42 WHERE primary_industry = ""health care""" "What is the venue of the competition ""1994 FIFA World cup qualification"" hosted by ""Hangzou""?","SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = ""Hangzhou ( Zhejiang ) "" AND T3.competition = ""1994 FIFA World Cup qualification""" When did the staff member named Janessa Sawayn join the company?,"SELECT date_joined_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What was the result of the 1948 og competition?,"SELECT result FROM table_name_59 WHERE competition = ""1948 og""" What model is the A310 of 1983?,"SELECT model FROM table_name_48 WHERE a310 = ""1983""" Please list the name of the coach who has served more than 2 NBA teams.,SELECT coachID FROM coaches GROUP BY coachID HAVING COUNT(DISTINCT tmID) > 2 "WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?","SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = ""05.0 210 north charles street""" What was the attendance of the game where fitzroy was the away team?,"SELECT COUNT(crowd) FROM table_name_83 WHERE away_team = ""fitzroy""" Who was the originally artist when Jasmine Murray was selected?,"SELECT original_artist FROM table_21501564_1 WHERE result = ""Selected""" How many of the countries do not have special notes? List the long name.,SELECT COUNT(LongName) FROM Country WHERE SpecialNotes = '' UNION SELECT longname FROM country WHERE specialnotes = '' Okay. What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?,"SELECT T1.salary, T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY count ( * ) DESC LIMIT 1" "Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer?","SELECT T3.LocationName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID INNER JOIN location AS T3 ON T1.LocationID = T3.LocationID WHERE T2.BrandName = 'Dog n Suds' AND T3.LocationName IN ('Sac State American River Courtyard', 'Sac State Union') GROUP BY T1.LocationID ORDER BY COUNT(T1.BrandID) DESC LIMIT 1" Name the song for safe result #8.,"SELECT song_choice FROM table_23871828_1 WHERE result = ""Safe"" AND order__number = 8" Count the number of colors that are not used in any products.,SELECT count(*) FROM Ref_colors WHERE color_code NOT IN ( SELECT color_code FROM products ) "What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?","SELECT MIN(year) FROM table_name_18 WHERE theme = ""25th anniversary loonie"" AND mintage < 35 OFFSET 000" Show names for all employees who do not have certificate of Boeing 737-800.,"SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800""" What is the smallest quantity having a Class to 1928 of BDi-21?,"SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = ""bdi-21""" "Find the number of characteristics that the product ""flax"" has.","SELECT count(*) 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 = ""flax""" "In 1972, how many points did the entrant with the March 721G Chassis have?","SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = ""march 721g""" what are the names and classes of the ships that do not have any captain yet?,"SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)" "Find the start and end dates of behavior incidents of students with last name ""Fahey"".","SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Fahey""" Who did Hawthorn play against at their home match?,"SELECT away_team FROM table_name_8 WHERE home_team = ""hawthorn""" What 2009 has 18.5% as the 2007?,"SELECT 2009 FROM table_name_49 WHERE 2007 = ""18.5%""" which is the number of the season episode whose writer is R. Scott Gemmill and the Director is Ray Austin?,"SELECT no_in_season FROM table_228973_3 WHERE written_by = ""R. Scott Gemmill"" AND directed_by = ""Ray Austin""" Which countries use Euro as their currency? List down the table name.,SELECT TableName FROM Country WHERE CurrencyUnit = 'Euro' What is the aircraft name for the flight with number 99,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 What department name offers that course description?,SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' "How many votes did the episode titled ""Cherished"" get in total?",SELECT SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Cherished' What is the highest rank for PSV - FC Barcelona?,"SELECT MAX(rank) FROM table_name_64 WHERE team = ""psv - fc barcelona""" What is the average score of the establishments owned by the owner with the highest number of establishments?,SELECT AVG(T1.score) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id GROUP BY T2.owner_name ORDER BY COUNT(T2.business_id) DESC LIMIT 1 In what time period was the Cessna 208 built?,"SELECT period FROM table_name_2 WHERE model = ""cessna 208""" How many United Airlines flights go to City 'Aberdeen'?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = ""Aberdeen"" AND T3.Airline = ""United Airlines""" How many athletes from Malaysia have won a medal?,SELECT COUNT(T3.person_id) FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person_region AS T4 ON T3.person_id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T5.region_name = 'Malaysia' AND T1.id != 4 What is the rank where the events is 31?,SELECT rank FROM table_name_65 WHERE events = 31 Name the original air date for 7 1-07,"SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = ""7 1-07""" what is the entry where the other person is zdeněk hrůza,"SELECT entrant FROM table_28046929_2 WHERE co_driver = ""Zdeněk Hrůza""" What company built the chassis for a year later than 1959 and a climax l4 engine?,"SELECT chassis FROM table_name_69 WHERE year > 1959 AND engine = ""climax l4""" list all female (sex is F) candidate names in the alphabetical order.,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name List the most common hometown of teachers.,SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1 How many papers are preprint or not published?,SELECT COUNT(Id) FROM Paper WHERE Year = 0 OR (ConferenceId = 0 AND JournalId = 0) How many Planes orders were there?,SELECT COUNT(T1.productCode) FROM orderdetails AS T1 INNER JOIN products AS T2 ON T1.productCode = T2.productCode WHERE T2.productLine = 'Planes' "Which organisation hired the most number of research staff? List the organisation id, type and detail.","SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1" What are the names of students who haven't taken any Biology courses?,SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology') What is the series episode where Segment B is popcorn ?,"SELECT series_ep FROM table_15187735_12 WHERE segment_b = ""Popcorn""" "Among the residential areas with the bad alias ""Internal Revenue Service"", how many of them are in the Eastern time zone?",SELECT COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T2.bad_alias = 'Internal Revenue Service' AND T1.time_zone = 'Eastern' What is its price?,"SELECT T2.Price_in_Dollar FROM furniture as T1 JOIN furniture_manufacte as T2 ON T1.Furniture_ID = T2.Furniture_ID WHERE T1.name = ""Chabudai""" What are the grant amounts for those?,SELECT T3.grant_amount FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' "Among the Italian players, who has the shortest height?",SELECT T2.PlayerName FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T2.nation = 'Italy' ORDER BY T1.height_in_cm ASC LIMIT 1 How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"" AND T1.lesson_status_code = ""Completed"";" "What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24?",SELECT COUNT(position) FROM table_name_24 WHERE drawn < 2 AND lost < 9 AND points > 24 "When event 4 was Whiplash, what was event 2?","SELECT event_2 FROM table_17257687_1 WHERE event_4 = ""Whiplash""" Show all artist names and the number of exhibitions for each artist.,"SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id" "Which Position has a Round of 4, and a School/Club Team of concordia?","SELECT position FROM table_name_34 WHERE round = 4 AND school_club_team = ""concordia""" What are the themes of parties ordered by the number of hosts in ascending manner?,SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC What are the companies' revenues whose revenue is smaller than the revenue of all companies based in Austin?,SELECT Revenue FROM manufacturers WHERE revenue < ( SELECT min ( revenue ) FROM manufacturers WHERE headquarter = 'Austin' ) Which classrooms are used by grade 4?,SELECT DISTINCT classroom FROM list WHERE grade = 4 What was the record in the game against Memphis?,"SELECT record FROM table_22879323_8 WHERE team = ""Memphis""" "What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?","SELECT region_1__can_ FROM table_240936_2 WHERE region_1__us_ = ""January 16, 2007""" what is the email id of françois tremblay | ftremblay@gmail.com is the email of the customer with first and last names françois tremblay. | what is the birth date of Adams Andrew,select BirthDate from Employee where FirstName is 'Andrew' and LastName is 'Adams' Return the device carriers that do not have Android as their software platform.,SELECT Carrier FROM device WHERE Software_Platform != 'Android' How many closed businesses that have more than 10 attributes?,SELECT COUNT(*) FROM Business WHERE business_id IN ( SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T1.active = 'false' GROUP BY T1.business_id HAVING COUNT(DISTINCT T2.attribute_id) > 10 ) Return the name and number of reservations made for each of the rooms.,"SELECT T2.roomName , count(*) , T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room" On what date did the manager for PSIS Semarang take over for the manager that was sacked?,"SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = ""sacked"" AND team = ""psis semarang""" Which 2009 tournament was french open?,"SELECT 2009 FROM table_name_51 WHERE tournament = ""french open""" "What are the names and urls of images, sorted alphabetically?","SELECT image_name , image_url FROM images ORDER BY image_name" What is the lowest and highest rating star?,"SELECT max(stars) , min(stars) FROM Rating" Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.,"SELECT name , open_year FROM manufacturer WHERE num_of_shops > 10 OR Num_of_Factories < 10" Which Segment A has a Segment B of s awning?,"SELECT segment_a FROM table_name_61 WHERE segment_b = ""s awning""" What was Fred Couples' score?,"SELECT COUNT(score) FROM table_name_15 WHERE player = ""fred couples""" "What is Venue, when Extra is Pentathlon?","SELECT venue FROM table_name_39 WHERE extra = ""pentathlon""" "Among the sales order shipped in July 2018, calculate the percentage of orders for home fragrances.",SELECT SUM(CASE WHEN T2.`Product Name` = 'Home Fragrances' THEN 1 ELSE 0 END) * 100 / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T1.ShipDate LIKE '7/%/18' What are the ids and full names of customers who hold two or more cards?,"SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2" "Which City has a Date of may 19, 1976?","SELECT city FROM table_name_23 WHERE date = ""may 19, 1976""" When did the staff member with first name as Janessa and last name as Sawayn leave the company?,"SELECT date_left_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" To whom does Nancy Davolio report? Please give that employee's full name.,"SELECT FirstName, LastName FROM Employees WHERE EmployeeID = ( SELECT ReportsTo FROM Employees WHERE LastName = 'Davolio' AND FirstName = 'Nancy' )" What is the total number for 3rd place for ducati xerox?,"SELECT COUNT(3 AS rd_pl) FROM table_13196576_2 WHERE team = ""Ducati Xerox""" "What is Country, when Place is ""T9"", and when Player is ""Michael Campbell""?","SELECT country FROM table_name_1 WHERE place = ""t9"" AND player = ""michael campbell""" And how many followers does Tyler have? | Tyler Swift has 99999998 followers | That's 99999998 followers out of how many total followers for all users?,SELECT sum ( followers ) FROM user_profiles what are they?,SELECT distinct apt_type_code FROM Apartments Who was the first ever Disney villain?,"SELECT villian FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) DESC LIMIT 1" Who had the most rebounds when the team record was 15-27?,"SELECT high_rebounds FROM table_23285805_6 WHERE record = ""15-27""" Write the person ID and character name of casts between order numbers 1 and 10 in Movie No. 285.,"SELECT person_id, character_name FROM movie_cast WHERE movie_id = 285 AND cast_order BETWEEN 1 AND 10" What's the number of the 1.0.12 release version?,"SELECT COUNT(version) FROM table_28540539_2 WHERE release = ""1.0.12""" List out the top 3 genre for application with a sentiment review greater than 0.5.,SELECT Genres FROM playstore WHERE App IN ( SELECT App FROM user_reviews WHERE Sentiment = 'Positive' AND Sentiment_Polarity > 0.5 ORDER BY Sentiment_Polarity DESC LIMIT 3 ) "How many stages are in a distance of 2,192 km?","SELECT stages FROM table_name_11 WHERE distance = ""2,192 km""" Can you update this list to indicate whether or not these players were inducted into the hall of fame?,"SELECT player_id,inducted FROM hall_of_fame" What is the address for FJA Filming?,"SELECT * FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = ""FJA Filming""" List the top 5 genres by number of tracks. List genres name and total tracks.,"SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;" How many episodes did actress Vanessa Ferlito appear in?,"SELECT episodes FROM table_11240028_1 WHERE portrayed_by = ""Vanessa Ferlito""" What is the region where Iquitos is located?,"SELECT region FROM table_1672804_2 WHERE name_of_city = ""Iquitos""" List all students that have been absent for 6 months.,SELECT name FROM longest_absense_from_school WHERE `month` = 6 Which Frequency has a Multiplier of 6×?,"SELECT frequency FROM table_name_7 WHERE multiplier = ""6×""" What is the average download for entertainment apps with size no more than 1.0 M?,"SELECT AVG(CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER)) FROM playstore WHERE Category = 'ENTERTAINMENT' AND Size < '1.0M'" What is the Country that has Richard Buck Lane higher than 3?,"SELECT country FROM table_name_99 WHERE lane > 3 AND name = ""richard buck""" Name the least horizontal for smpte 259m three quarters,"SELECT MIN(horizontal) FROM table_272313_2 WHERE pixel_aspect_ratio = ""SMPTE 259M three quarters""" What is the city the track of manzanita speedway is in?,"SELECT city FROM table_name_89 WHERE track = ""manzanita speedway""" What team with a Game smaller than 18 has the lowest Goal Gain?,SELECT MIN(goal_gain) FROM table_name_31 WHERE game < 18 How many laps did Fernando Alonso do?,"SELECT laps FROM table_name_3 WHERE driver = ""fernando alonso""" How old is Herbert Swindells?,"SELECT AGE FROM journalist WHERE Name = ""Herbert Swindells""" "How many Yelp_Business in Anthem are under the category of ""Food""?",SELECT COUNT(T3.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name LIKE 'Food' AND T3.city LIKE 'Anthem' FIND THE NAME OF CUSTOMER WHO HAS THE HIGHEST CREDIT SCORE,SELECT cust_name FROM customer ORDER BY credit_score desc LIMIT 1 How many students does KAWA GORDON teaches?,"SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""KAWA"" AND T2.lastname = ""GORDON""" "Who had the high rebounds in Philips Arena 12,088?","SELECT high_rebounds FROM table_name_17 WHERE location_attendance = ""philips arena 12,088""" Mention the person ID of faculty professor who taught course ID 104 and the course level.,"SELECT T1.p_id, T3.courseLevel FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id WHERE T3.course_id = 104 AND T1.hasPosition <> 0" How many sales ids are there for customer id 80?,SELECT COUNT(SalesID) FROM Sales WHERE CustomerID = 80 What is the percentage of Hispanic patients who stopped their care plan in 2011?,"SELECT CAST(SUM(CASE WHEN T2.race = 'hispanic' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.PATIENT) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE strftime('%Y', T1.stop) = '2011'" How many students play football?,"SELECT count ( * ) FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Football""" What's the Croatian word for Saturday?,"SELECT saturday_sixth_day FROM table_1277350_5 WHERE day__see_irregularities__ = ""Croatian""" How many high school principals were there in 2000-2001?,"SELECT high_school_principal FROM table_25037577_1 WHERE year = ""2000-2001""" Show the locations of parties and the names of the party hosts in ascending order of the age of the host.,"SELECT T3.Location , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age" What is the grant end date of grant id 3?,SELECT grant_end_date FROM grants WHERE grant_id = 3 What are the nations that have more than two ships?,SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2 What is the measurement used for chervil?,"SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""chervil""" What is the difficulty of the course in which a student with level of intellengence of 5 got an A grade?,SELECT T3.diff FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade = 'A' AND T1.intelligence = 5 How many years were the events won by KCLMS less than 7?,SELECT COUNT(year) FROM table_name_8 WHERE events_won_by_kclMS < 7 Count the number of schools.,SELECT count(*) FROM school "Of all the students under 25, how many are female?",SELECT count ( * ) FROM student WHERE sex = 'F' AND age < 25 What year was Hartland College founded?,"SELECT founded FROM table_2076608_3 WHERE school = ""Hartland College""" What is Paino Hehea's date of birth?,"SELECT date_of_birth__age_ FROM table_name_46 WHERE player = ""paino hehea""" Show all the information about election.,SELECT * FROM election What was the populati in 2000 for Panlicsian? ,"SELECT MIN(population__2000_) FROM table_2144436_1 WHERE barangay = ""Panlicsian""" What is the try bonus that has llangefni rfc as the club?,"SELECT try_bonus FROM table_name_22 WHERE club = ""llangefni rfc""" Which event was held in Beijing?,"SELECT event FROM table_name_44 WHERE venue = ""beijing""" "What are the distinct customers who have orders with status ""On Road""? Give me the customer details?","SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road""" What is the home team at the Junction Oval venue?,"SELECT home_team FROM table_name_14 WHERE venue = ""junction oval""" What is the lowest week number for the game that was at milwaukee county stadium?,"SELECT MIN(week) FROM table_name_18 WHERE game_site = ""milwaukee county stadium""" "What is the smoke point with a total fat of 100g, and monounsaturated fat of 46g?","SELECT smoke_point FROM table_name_97 WHERE total_fat = ""100g"" AND monounsaturated_fat = ""46g""" How many cylinders does the cheapest car have?,SELECT T1.cylinders FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY price ASC LIMIT 1 Name the location that was founded 1798,SELECT location FROM table_2293402_2 WHERE founded = 1798 What was the Score on January 30?,"SELECT score FROM table_name_93 WHERE date = ""january 30""" "Which Opponent has a Attendance of 7,034?","SELECT opponent FROM table_name_29 WHERE attendance = ""7,034""" What is the maximum t20 on green lane?,"SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = ""Green Lane""" What is the Alpha 2 code for Papua New Guinea?,"SELECT alpha_2_code FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = ""Papua New Guinea""" List all of the shows with Alice Levine Jamie East is the Sunday presenter.,"SELECT series FROM table_11748792_2 WHERE sunday = ""Alice Levine Jamie East""" How many stadiums in this table?,SELECT count ( name ) from stadium "Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?","SELECT first FROM table_name_86 WHERE bats = ""r"" AND throws = ""l"" AND dob = ""12 october 1977""" "What is Set 1, when Set 3 is 22-25?","SELECT set_1 FROM table_name_39 WHERE set_3 = ""22-25""" "What was the Agg., when Team 1 was VSADC?","SELECT agg FROM table_name_38 WHERE team_1 = ""vsadc""" What is the lowest unlock order for the athens circuit?,"SELECT MIN(unlock_order) FROM table_24463470_1 WHERE circuit = ""Athens""" Find the first name and age of students who have a pet.,"SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid" What day in February was the team 17-29-7?,"SELECT MAX(february) FROM table_27539535_7 WHERE record = ""17-29-7""" What kind of expression correlation occurs in physical type interacting gene pairs and what percentage of these are negatively correlated?,SELECT Expression_Corr FROM Interactions WHERE Type = 'Physical' UNION ALL SELECT CAST(SUM(Expression_Corr < 0) AS REAL) * 100 / COUNT(*) FROM Interactions WHERE Type = 'Physical' What home team plays at victoria park?,"SELECT home_team FROM table_name_4 WHERE venue = ""victoria park""" What player was picked by the New York Rangers?,"SELECT player FROM table_2886617_2 WHERE nhl_team = ""New York Rangers""" Find the number of distinct name of losers.,SELECT count(DISTINCT loser_name) FROM matches "For all the countries that is smaller than 100 square kilometres, which one has the most GDP?",SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Area < 100 ORDER BY T2.GDP DESC LIMIT 1 Can you show me the phone numbers of all customers?,SELECT customer_phone FROM customers What was the score of the match that took place in the playoff round?,"SELECT score FROM table_name_31 WHERE round = ""playoff""" Name the total number of losses with number result less than 0,SELECT COUNT(losses) FROM table_name_5 WHERE no_result < 0 What is the gender of Frank Gehry?,SELECT gender FROM architect WHERE name = 'Frank Gehry' "What type of surface was played on when the score was 2–6, 6–1, [10–5]?","SELECT surface FROM table_name_7 WHERE score = ""2–6, 6–1, [10–5]""" state the winnings of yates racing front row motorsports where poles were 0,"SELECT winnings FROM table_2012187_1 WHERE poles = 0 AND team_s_ = ""Yates Racing Front Row Motorsports""" What are the names of students who haven't taken any Biology courses?,SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology') "WHAT IS THE TOTAL WITH A NANQUAN OF 9.72, RANK BIGGER THAN 3, NANGUN SMALLER THAN 9.5?",SELECT MIN(total) FROM table_name_50 WHERE nanquan = 9.72 AND rank > 3 AND nangun < 9.5 "Name the Wins which has a Class of 350cc, and a Year smaller than 1973?","SELECT SUM(wins) FROM table_name_42 WHERE class = ""350cc"" AND year < 1973" Tell me the total number of events for tournament of masters tournament and top 25 less than 6,"SELECT COUNT(events) FROM table_name_32 WHERE tournament = ""masters tournament"" AND top_25 < 6" what is the score on 22 february 1993?,"SELECT score FROM table_name_10 WHERE date = ""22 february 1993""" What is the highest week that has carolina panthers as the opponent?,"SELECT MAX(week) FROM table_name_51 WHERE opponent = ""carolina panthers""" "What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?","SELECT MIN(injured) FROM table_name_83 WHERE place = ""dantewada, chhattisgarh"" AND killed = 8" What's the long name of the country that got 3000000 on the indicator Arms exports in 1960?,SELECT T1.LongName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Arms exports (SIPRI trend indicator values)' AND T2.Year = 1960 AND T2.Value = 3000000 Tell me the sum of interview for evening gown more than 8.37 and average of 8.363,SELECT SUM(interview) FROM table_name_57 WHERE average = 8.363 AND evening_gown > 8.37 Which carpet has a Clay of 1–0 and a Hard 1–1?,"SELECT carpet FROM table_name_1 WHERE clay = ""1–0"" AND hard = ""1–1""" Please show the industries of companies in descending order of the number of companies.,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC list the race id,SELECT Race_ID FROM race WHERE Class = ( SELECT Class FROM race GROUP BY CLASS ORDER BY count ( * ) DESC LIMIT 1 ) What are the first and last name of all biology professors?,"SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = ""Biology""" What is the name of the manager with the earliest working year?,SELECT Name FROM manager ORDER BY Working_year_starts asc LIMIT 1 "Which Played has a Position of 3, and a Points smaller than 15?",SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15 What is the points where Toronto was the home team and the game number was larger than 63?,"SELECT MAX(points) FROM table_name_59 WHERE home = ""toronto"" AND game__number > 63" What year had 48 assists?,"SELECT year FROM table_name_35 WHERE assists = ""48""" Find the make and production time of the cars that were produced in the earliest year?,"SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);" "For a short scale of one quadrillion a thousand trillion, what is the Long scale?","SELECT long_scale FROM table_name_94 WHERE short_scale = ""one quadrillion a thousand trillion""" Calculate the average percentage of word appearance in the page that have revision page id smaller than 106680.,SELECT CAST(SUM(T1.words) AS REAL) * 100 / SUM(T2.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.revision < 106680 In what category was Herself nominated?,"SELECT category FROM table_name_21 WHERE nominated = ""herself""" What class had fewer than 336 laps in 2004?,SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004 Show the company name with the number of gas station.,"SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id" How many average speeds are listed in the year 2003? ,"SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = ""2003""" how many times was hancock % considered when starky % was 20.96%,"SELECT COUNT(hancock__percentage) FROM table_19681738_1 WHERE starky__percentage = ""20.96%""" "How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?","SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = ""quebec"" AND south_asians_2001 < 59 OFFSET 510" How many dvd releases where directed by david decoteau?,"SELECT COUNT(dvd_release) FROM table_19982699_1 WHERE director = ""David DeCoteau""" What was the role of Jason Kuschner in episode 9?,SELECT T1.role FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id INNER JOIN Episode AS T3 ON T1.episode_id = T3.episode_id WHERE T3.episode = 9 AND T2.name = 'Jason Kuschner' Name the products where the suppliers come from Finland.,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Finland' What was the label in the region of Argentina and had a format of CD?,"SELECT label FROM table_name_82 WHERE format = ""cd"" AND region = ""argentina""" "Which Title has an album of tough talk, and a Label-Nr of x-371?","SELECT title FROM table_name_4 WHERE from_album = ""tough talk"" AND label - Nr = x - 371" What percentage of projects in the City of Santa Barbara are in suburban metro?,SELECT CAST(SUM(CASE WHEN school_metro = 'suburban' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(projectid) FROM projects WHERE school_city = 'Santa Barbara' List three countries which are the origins of the least players.,SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3; What is every value of period when eccentricity is 0.583085?,"SELECT period__h_ FROM table_206217_2 WHERE eccentricity = ""0.583085""" Please list the names of all the universities that scored under 60 in teaching in 2011 and are in the United States of America.,SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id INNER JOIN country AS T4 ON T4.id = T3.country_id WHERE T4.country_name = 'United States of America' AND T2.year = 2011 AND T2.score < 60 AND T1.criteria_name = 'Teaching' "What is the lowest against of the wimmera fl warrack eagles, which have less than 16 wins?","SELECT MIN(against) FROM table_name_33 WHERE wins < 16 AND wimmera_fl = ""warrack eagles""" "For movies with the keyword of ""civil war"", calculate the average revenue generated by these movies.",SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'civil war' What is the issue date of the volume with the minimum weeks on top?,SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1 In how many different games did Roy Hibbert (16) did the most high rebounds?,"SELECT COUNT(game) FROM table_27756164_2 WHERE high_rebounds = ""Roy Hibbert (16)""" What are the most common film genres made by the worst directors?,SELECT T2.genre FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 0 GROUP BY T2.genre ORDER BY COUNT(T2.movieid) DESC LIMIT 1 What are ids and total number of hours played for each game?,"SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid" What was the Making Year of the Machine series With the lowest quality rank?,SELECT Making_Year from machine order by quality_rank limit 1 what is the name ofhte company where the plant is in burnaston?,"SELECT company FROM table_250309_1 WHERE plant = ""Burnaston""" What is the primary conference of the school that has the lowest acc percent score in the competition?,SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 What are the ids of templates with template type code PP or PPT?,"SELECT template_id FROM Templates WHERE template_type_code = ""PP"" OR template_type_code = ""PPT""" Can you give me the product names for these?,SELECT product_name FROM products WHERE product_price > ( SELECT avg ( product_price ) FROM products ) "Please list the prices of the dish ""Clear green turtle"" on every menu page it appeared on.",SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle' Which party had an incumbent of W. Jasper Talbert?,"SELECT party FROM table_name_70 WHERE incumbent = ""w. jasper talbert""" How many laps have a 3:34:26 race time?,"SELECT COUNT(laps) FROM table_2267465_1 WHERE race_time = ""3:34:26""" What is the average number of crews for a movie?,"SELECT CAST(SUM(CD) AS REAL) / COUNT(movie_id) FROM ( SELECT movie_id, COUNT(person_id) AS CD FROM movie_crew GROUP BY movie_id )" What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?,"SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = ""offshore"" AND country_territory = ""saint kitts and nevis"" AND degree = ""md"" AND established < 2000" What is the size of the photo of product id No.1?,SELECT T1.ThumbNailPhoto FROM ProductPhoto AS T1 INNER JOIN ProductProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T2.ProductID = 1 How many unique classes are offered?,SELECT count(DISTINCT class_code) FROM CLASS Which product have the highest user satisfaction?,SELECT ProductName FROM Products WHERE ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products ) who is the director of star wars?,"SELECT director from movie where title = ""Star Wars""" What is the maximum number of 2nd places for Tajikistan?,"SELECT MAX(second_place) FROM table_2876467_3 WHERE region_represented = ""Tajikistan""" What was the total cost of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?,SELECT DISTINCT (T2.Sales / (1 - T2.discount)) * T2.Quantity - Profit FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' AND T2.`Order Date` = '2014-09-10' What is the 1990–1991 Team when the Birthplace shows as new york?,"SELECT 1990 AS _1991_team FROM table_name_23 WHERE birthplace = ""new york""" Name the team for january 4,"SELECT team FROM table_23286112_8 WHERE date = ""January 4""" What is the title of Michael Suyama?,SELECT Title FROM Employees WHERE FirstName = 'Michael' AND LastName = 'Suyama' And what were the actual delivery dates?,SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 "Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?","SELECT MIN(week) FROM table_name_69 WHERE opponent = ""pittsburgh steelers"" AND attendance > 47 OFFSET 727" What is the maximum OMIM value in the database?,SELECT max(OMIM) FROM enzyme How many persons participated in the Sapporo Olympics?,SELECT COUNT(T1.person_id) FROM games_competitor AS T1 INNER JOIN games_city AS T2 ON T1.games_id = T2.games_id INNER JOIN city AS T3 ON T2.city_id = T3.id WHERE T3.city_name = 'Sapporo' What are the names of courses with 1 credit?,SELECT CName FROM COURSE WHERE Credits = 1 Find the name of the dorm with the largest capacity.,SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1 Which are the first and last names of the students taught by MARROTTE KIRK?,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""MARROTTE"" AND T2.lastname = ""KIRK""" what is the highest gold when the nation is total and the total is less than 24?,"SELECT MAX(gold) FROM table_name_8 WHERE nation = ""total"" AND ""total"" < 24" When was the game played that was at the Seattle Center Coliseum?,"SELECT date FROM table_name_54 WHERE location_attendance = ""seattle center coliseum""" "In the game where richmond was the away team, what venue was it played at?","SELECT venue FROM table_name_99 WHERE away_team = ""richmond""" "What is the result of the game with 57,234 people in attendance?","SELECT result FROM table_name_17 WHERE attendance = ""57,234""" When did the country whose capital is Nouakchott attained it's independence?,SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Capital = 'Nouakchott' What is the percentage of establishments with a risk level of 1 among all of the establishments that passed the inspection?,SELECT CAST(COUNT(CASE WHEN T1.risk_level = 1 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results = 'Pass' What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?,"SELECT serial_format FROM table_name_72 WHERE design = ""white on blue"" AND serials_issued = ""ss-00-00 to zz-99-99""" List all singer names in concerts in year 2014.,SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014 What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?,"SELECT nationality FROM table_name_54 WHERE lane = 4 AND time = ""1:11.58""" when does the datetime detention end | What did you mean by the datetime detention end? Do you want a list of all the datetime detention end or a specific one? | for detention id 1,select datetime_detention_end from detention where detention_id = 1 What is the joined year of the pilot of the highest rank?,SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1 List document type codes and the number of documents in each code.,"SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code" List names of all pilot in descending order of age.,SELECT Name FROM pilot ORDER BY Age DESC "Among the restaurants located on the street number ranges from 1000 to 2000, what is the percentage of Afghani restaurants are there?","SELECT CAST(SUM(IIF(T2.food_type = 'afghani', 1, 0)) AS REAL) * 100 / COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE 1000 <= T1.street_num <= 2000" Tell me the name with best of 58.403,"SELECT name FROM table_name_46 WHERE best = ""58.403""" "Which Event has a Round of 1, and a Record of 2–0?","SELECT event FROM table_name_70 WHERE round = ""1"" AND record = ""2–0""" What was the 1st round result that had US Valenciennes (d1) as Team 2?,"SELECT 1 AS st_round FROM table_name_6 WHERE team_2 = ""us valenciennes (d1)""" Name the song choice for michael jackson,"SELECT song_choice FROM table_19508635_1 WHERE original_artist = ""Michael Jackson""" Who is the advisor of Linda Smith? Give me the first name and last name.,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = ""Linda"" AND T2.lname = ""Smith""" State the nick name of player ID 'aubinje01'. List all the teams and season he played for.,"SELECT DISTINCT T1.nameNick, T3.year, T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.tmID = T3.tmID WHERE T1.playerID = 'aubinje01'" "How many distinct characteristic names does the product ""cumin"" have?","SELECT count(DISTINCT 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 = ""cumin""" What about in the striker position?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' How many patients sought medical attention due to a second-degree burn? Describe the care plan recommended to them.,"SELECT COUNT(DISTINCT T2.PATIENT), T2.DESCRIPTION FROM encounters AS T1 INNER JOIN careplans AS T2 ON T1.PATIENT = T2.PATIENT WHERE T2.REASONDESCRIPTION = 'Second degree burn'" "Find the names of the buildings in ""on-hold"" status, and sort them in ascending order of building stories.","SELECT name FROM buildings WHERE Status = ""on-hold"" ORDER BY Stories ASC" "what are all the Canadian air dates where the u.s. air date is may 1, 2009","SELECT canadian_airdate FROM table_12294557_3 WHERE us_airdate = ""May 1, 2009""" How many number of different home teams?,SELECT count ( distinct Home_team ) FROM game What is the sum of bronzes for countries with 1 gold and under 1 silver?,SELECT SUM(bronze) FROM table_name_19 WHERE gold = 1 AND silver < 1 what is the nation when the height (m) is 1.91 and the weight (kg) is 99?,"SELECT nation FROM table_name_83 WHERE height__m_ = ""1.91"" AND weight__kg_ = ""99""" What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play?,"SELECT position FROM table_name_58 WHERE appearances = 244 AND leeds_career = ""1981–1989""" How many insurgents are there when the total per period is 156?,SELECT insurgents FROM table_21636599_2 WHERE total_per_period = 156 Find the distinct last names of all the students who have president votes and whose advisor is 8741.,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""8741""" How many flights does airline 'JetBlue Airways' have?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = ""JetBlue Airways""" What is all the information regarding employees with salaries above the minimum and under 2500?,SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500 What's the G.A. when there were 2 losses and Scotland played?,"SELECT ga FROM table_name_33 WHERE losses = ""2"" AND team = ""scotland""" What are the distinct names of nurses on call?,SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse Name the womens singles for raina tzvetkova petya nedelcheva,"SELECT womens_singles FROM table_14903491_1 WHERE womens_doubles = ""Raina Tzvetkova Petya Nedelcheva""" Find the visit date and details of the tourist whose detail is 'Vincent',"SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" Advisor 1121 has how many students?,SELECT count(*) FROM Student WHERE Advisor = 1121; what amount of stations have station code is awy?,"SELECT COUNT(station) FROM table_14688744_2 WHERE station_code = ""AWY""" What are the top 5 most popular movies of the 21st century? Indicate how many users gave it a rating score of 5.,"SELECT DISTINCT T2.movie_id, SUM(T1.rating_score = 5) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T2.movie_popularity DESC LIMIT 5" "What is the Original Team of the contestant from Wrightsville, Georgia ?","SELECT original_team FROM table_name_13 WHERE hometown = ""wrightsville, georgia""" What year had a score of 9?,"SELECT season FROM table_10748727_1 WHERE points = ""9""" What is the number of votes for the Party of Labour?,"SELECT MIN(votes) FROM table_name_86 WHERE party = ""labour""" When was the episode that had a share (%) of 41.5?,"SELECT date FROM table_27319183_5 WHERE share___percentage_ = ""41.5""" "Who was the ""incumbent"" of district south carolina 7?","SELECT incumbent FROM table_2668243_22 WHERE district = ""South Carolina 7""" What was the score of the match with a 3-0 result?,"SELECT score FROM table_name_44 WHERE result = ""3-0""" What is the partnership in the game with 166* runs and an opponent of Namibia?,"SELECT partnerships FROM table_name_17 WHERE versus = ""namibia"" AND runs = ""166*""" What are the descriptions of the short chapters?,SELECT DISTINCT T2.Description FROM paragraphs AS T1 INNER JOIN chapters AS T2 ON T1.chapter_id = T2.id WHERE T1.ParagraphNum < 150 What's the version in the 1.0.4 release?,"SELECT version FROM table_28540539_2 WHERE release = ""1.0.4""" Show the role description of the project staff involved in the most number of project outcomes,SELECT T1.role_description FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count ( * ) DESC LIMIT 1 What is the minimum number of cuts made for Hunter Mahan?,"SELECT MIN(cuts_made) FROM table_24747844_2 WHERE player = ""Hunter Mahan""" Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.,"SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = ""Astrid"" AND LastName = ""Gruber""" Hi there! Can you tell me how many school have an affiliation type that is not public?,SELECT COUNT ( * ) FROM university WHERE affiliation ! = 'Public' Great! Can you update this list to include the phone number of each of these patients?,"SELECT name , phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) > 1" How many total No Results are recorded for less than 6 wins?,SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6 What day did they play cambridge united?,"SELECT date FROM table_name_51 WHERE opponent = ""cambridge united""" What is the number of car models that are produced by each maker and what is the id and full name of each maker?,"SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;" Show the booking status code and the corresponding number of bookings.,"SELECT booking_status_code , COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code" What President has a Presidency greater than 7?,SELECT president FROM table_name_6 WHERE presidency > 7 Give the name of the wine with the highest score.,SELECT Name FROM WINE ORDER BY Score LIMIT 1 "What country has a rank smaller than 6, a time of 6:32.32 and notes of FB?","SELECT country FROM table_name_45 WHERE rank < 6 AND notes = ""fb"" AND time = ""6:32.32""" What is the lowest number played with a position of 6 and less than 1 draw?,SELECT MIN(played) FROM table_name_89 WHERE position = 6 AND drawn < 1 "What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?","SELECT MIN(year) FROM table_name_3 WHERE surface = ""hard"" AND opponent = ""dinara safina""" Which player was D past Round 3?,"SELECT player FROM table_name_88 WHERE position = ""d"" AND round > 3" Which parties have hosts of age above 50? Give me the party locations.,SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 How about the first?,SELECT date_became_customer FROM Customers order by date_became_customer limit 1 What is the prerequisite for Mobile computing?,SELECT title FROM course WHERE course_id IN ( SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing' ) "What is the highest Drawn when the lost is 7 and the points are more than 4, and the against is less than 22?",SELECT MAX(drawn) FROM table_name_12 WHERE lost = 7 AND points > 4 AND against < 22 "What is Second Vice President, when Third Vice President is ""Gen. Juan Alonso"", and when Inaugurated is ""15 March 1940""?","SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = ""gen. juan alonso"" AND inaugurated = ""15 march 1940""" Show total points of all players.,SELECT sum(Points) FROM player Name the silver for baseball,"SELECT MIN(silver) FROM table_22360_3 WHERE discipline = ""Baseball""" How many apartment bookings are there in total?,SELECT COUNT(*) FROM Apartment_Bookings Which customer had at least 2 policies but did not file any claims? List the customer details and id.,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id" What are the draft classes for the players from UCLA and Duke?,"SELECT DISTINCT draft_class FROM match_season WHERE College = ""UCLA"" OR College = ""Duke""" How many papers did it publish?,SELECT count ( t3.paperID ) FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count ( * ) DESC LIMIT 1 What model has a total produced more than 5 and a prime move of 12-251c?,"SELECT model FROM table_name_15 WHERE total_produced > 5 AND prime_mover = ""12-251c""" How many pilots are there?,SELECT count(*) FROM pilot How many points against did the team that allowed 42 tries against allow?,"SELECT points_against FROM table_name_65 WHERE tries_against = ""42""" Which Halang has a Rera of ʒo²?,"SELECT halang FROM table_name_6 WHERE rera = ""ʒo²""" On what day was the game that ended in a score of 97-38?,"SELECT date FROM table_name_17 WHERE score = ""97-38""" "What is the date of the game with an attendance larger than 62,491?",SELECT date FROM table_name_55 WHERE attendance > 62 OFFSET 491 "Between 1/1/2017 and 4/1/2017, what is the average server time of calls under the server DARMON?","SELECT AVG(CAST(SUBSTR(ser_time, 4, 2) AS REAL)) FROM callcenterlogs WHERE `Date received` BETWEEN '2017-01-01' AND '2017-04-01'" What is the greatest first elected for Pennsylvania 10?,"SELECT MAX(first_elected) FROM table_name_56 WHERE district = ""pennsylvania 10""" "What catalog has a format of ED remaster CD and a date of December 19, 2001?","SELECT catalog FROM table_name_68 WHERE format = ""ed remaster cd"" AND date = ""december 19, 2001""" Give the name of the country in Asia with the lowest life expectancy.,"SELECT Name FROM country WHERE Continent = ""Asia"" ORDER BY LifeExpectancy LIMIT 1" What are the first names of all employees that are professors ordered by date of birth?,SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob Show all payment method codes and the number of orders for each code.,"SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code" "Among the types of postal points in Saint Croix, what percentage of postal points is the post office?",SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T1.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T1.zip_code) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'SAINT CROIX' Which Enrollment has a Mascot of norsemen?,"SELECT SUM(enrollment) FROM table_name_5 WHERE mascot = ""norsemen""" Find the names of the products with length smaller than 3 or height greater than 5.,SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 Find the last names of students with major 50.,SELECT LName FROM STUDENT WHERE Major = 50 How many female students are there total?,SELECT count ( * ) FROM student WHERE sex = 'F' Can you please list all the characteristics of the product named sesame?,"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's the process technology of the Intel WiFi Link 5100 wireless LAN?,"SELECT process_technology FROM table_199666_1 WHERE wireless_lan = ""Intel WiFi Link 5100""" What is the average median female age of all the residential areas in the Arecibo county?,SELECT SUM(T1.female_median_age) / COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' What day is st kilda the home side?,"SELECT date FROM table_name_87 WHERE home_team = ""st kilda""" "What is Headquarter, when Newspaper/Magazine is Al-Ayyam?","SELECT headquarter FROM table_name_4 WHERE newspaper_magazine = ""al-ayyam""" What is the first and last name of the student who played the most sports?,"SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1" "what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?","SELECT MIN(sites) FROM table_name_33 WHERE headquarters = ""columbus, ga"" AND rank < 4" "How many counties have an area of 1,205.4 km2?","SELECT COUNT(code) FROM table_1404414_2 WHERE area__km_2__ = ""1,205.4""" How many points when Bill Benson was the winner?,"SELECT points FROM table_name_95 WHERE winner = ""bill benson""" Find the name of customers who have loans of both Mortgages and Auto.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' Which contact channel codes were used less than 5 times?,SELECT channel_code FROM customer_contact_channels GROUP BY channel_code HAVING count(customer_id) < 5 "Find the store ID with more orders between ""Aurora"" and ""Babylon"" city.",SELECT T2.StoreID FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T2.`City Name` = 'Aurora (Township)' OR T2.`City Name` = 'Babylon (Town)' GROUP BY T2.StoreID ORDER BY COUNT(T1.OrderNumber) DESC LIMIT 1 "What city are the 2 employees in? | You mean the 2 employees with title ""IT Staff""? | yes, the two employees with the title of IT Staff.",SELECT distinct city FROM employees WHERE title = 'IT Staff' What is every release price(USD) for model number core i5-650?,"SELECT release_price___usd__ FROM table_23028629_2 WHERE model_number = ""Core i5-650""" Return the names and surface areas of the 5 largest countries.,"SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5" "What is the lowest Population per km² (2009) that has a Solomon Islands province, with an Area (km²) smaller than 28,400?","SELECT MIN(population_per_km²__2009_) FROM table_name_21 WHERE province = ""solomon islands"" AND area__km²_ < 28 OFFSET 400" What is the result for game 5?,"SELECT result FROM table_name_65 WHERE game = ""game 5""" Show the height of the mountain climbed by the climber with the maximum points.,SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1 Give the name of each department and the number of employees in each.,"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 the average number of followers for the users who do not have any tweet.,SELECT avg(followers) FROM user_profiles WHERE UID NOT IN (SELECT UID FROM tweets) Who is the director of the most popular movie of all time and when was it released? Indicate the average rating score of the users who were on a trialist when they rated the movie.,"SELECT T1.director_name, T1.movie_release_year , SUM(T2.rating_score) / COUNT(T2.user_id) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T2.user_trialist = 1 ORDER BY T1.movie_popularity DESC LIMIT 1" Who is the youngest male?,SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' ) Which committees have delegates from the Democratic party?,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic""" "Provide the point of the winning margin in a match between Mumbai Indians and Royal Challengers Bangalore on May 28, 2008.",SELECT T1.Win_Margin FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 INNER JOIN Team AS T3 ON T3.Team_Id = T1.Team_2 WHERE (T2.Team_Name = 'Mumbai Indians' AND T3.Team_Name = 'Royal Challengers Bangalore' AND T1.Match_Date = '2008-05-28') OR (T2.Team_Name = 'Royal Challengers Bangalore' AND T3.Team_Name = 'Mumbai Indians' AND T1.Match_Date = '2008-05-28') Find the name of students who took any class in the years of 2009 and 2010.,SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010 Show ids for the faculty members who don't advise any student.,SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student What is the Location of the Bowl in 2006?,SELECT location FROM table_name_50 WHERE season = 2006 What are the types of video games and how many are in each type?,"SELECT gtype , count(*) FROM Video_games GROUP BY gtype" When did the Indians play a game with a record of 28-41?,"SELECT date FROM table_name_66 WHERE record = ""28-41""" What district did Dave Treen serve?,"SELECT district FROM table_1341663_19 WHERE incumbent = ""Dave Treen""" What is the capital city of the Philippines?,SELECT T1.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Philipiines' Which state did Veronica Grace Boland represent and which party is she affiliated?,"SELECT T2.state, T2.party FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name OR T1.middle_name OR T1.last_name = 'VeronicaGraceBoland'" "What is the lowest value for Wins, when South West DFL is ""Cavendish"", and when Byes is less than 0?","SELECT MIN(wins) FROM table_name_58 WHERE south_west_dfl = ""cavendish"" AND byes < 0" When the standard stamp duty is 367 what is the percentage over gdp?,"SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE standard_stamp_duty = ""367""" What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check',SELECT payment_date FROM payments WHERE amount_paid > 300 OR payment_type_code = 'Check' Can you sort the list to only include the most recent event?,SELECT name FROM event ORDER BY YEAR DESC LIMIT 1 What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?,"SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = ""scuderia ferrari"" AND engine = ""ferrari v12""" How many unemployed students have payment due?,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.bool = 'pos' Please list the organization names established in the countries where Dutch is spoken.,SELECT T2.Name FROM language AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.Name = 'Dutch' What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006?,"SELECT catalog FROM table_name_62 WHERE issued_title = ""1958 miles"" AND label = ""sony"" AND year < 2006" How many millions of viewers watched the episode directed by Anthony Hemingway?,"SELECT us_viewers__millions_ FROM table_11230937_2 WHERE directed_by = ""Anthony Hemingway""" What district is tom j. murray from?,"SELECT district FROM table_1342013_41 WHERE incumbent = ""Tom J. Murray""" Show the opening year in whcih at least two churches opened.,SELECT open_date FROM church GROUP BY open_date HAVING count(*) >= 2 How many silvers for the nation with under 6 total and under 0 bronze?,SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0 List down the episode ID of episodes aired in 2008 with 5 stars and below.,"SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008' AND T2.stars < 5;" What is the Time of the Player with a Rank of 2?,SELECT time FROM table_name_77 WHERE rank = 2 What are the years they opened?,"SELECT year FROM campuses WHERE county = ""Los Angeles"" AND YEAR < 1950" Total points for a bs automotive entrant?,"SELECT COUNT(points) FROM table_name_7 WHERE entrant = ""bs automotive""" How many times did Boston Red Stockings lose in 2009 postseason?,SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009 "What are the transaction ids of those? | Here is the table of the transaction ids of transcation with an amount smaller than 3000. For example, they are 2, 4 , 5 | What are the transaction type codes of those?",SELECT T2.transaction_type_code FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.,"SELECT Restaurant.ResName , sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;" What date was Montreal the visitor?,"SELECT date FROM table_name_50 WHERE visitor = ""montreal""" "who is the the office with incumbent being ramon r. jimenez, jr.","SELECT office FROM table_1331313_1 WHERE incumbent = ""Ramon R. Jimenez, Jr.""" "What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?","SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = ""May 18, 2009""" Which team had more than 10 wins with a champion of Mat Mladin?,"SELECT team FROM table_name_88 WHERE wins > 10 AND champion = ""mat mladin""" What are the buildings that have more than 50 capacity?,SELECT building FROM classroom WHERE capacity > 50 GROUP BY building What classifications does Fish Rap live! has?,"SELECT classification FROM table_2266990_2 WHERE title = ""Fish Rap Live!""" What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?,"SELECT AVG(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn""" How many organizations are established in countries where people speak Bosnian?,SELECT COUNT(T2.Name) FROM language AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.Name = 'Bosnian' What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service?,"SELECT built FROM table_name_8 WHERE wheels = ""0-4-0"" AND status = ""in service""" Which place has more area (km 2) than 34.42?,SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42 Which Country has a Network of nelonen?,"SELECT country FROM table_name_61 WHERE network = ""nelonen""" What is the total attendance when Stourbridge is the home team?,"SELECT COUNT(attendance) FROM table_name_25 WHERE home_team = ""stourbridge""" What's the heat in the lane less than 3 with a time of 14:48.39?,"SELECT AVG(heat) FROM table_name_99 WHERE lane < 3 AND time = ""14:48.39""" What are the titles of all movies that have not been rated?,SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating) "List out the organization joined and school enrolled by student27, student17 and student101?","SELECT T1.school, T2.organ FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.`name` IN ('student27,student17,studetn101')" Write down the need statement of Family History Project.,SELECT need_statement FROM essays WHERE title = 'Family History Project' "Find the payment method and phone of the party with email ""enrico09@example.com"".","SELECT payment_method_code , party_phone FROM parties WHERE party_email = ""enrico09@example.com""" What is the score of T5 place in the United States?,"SELECT score FROM table_name_67 WHERE country = ""united states"" AND place = ""t5""" Which campus was started in 2002?,SELECT campus from campuses where year = 2002 Name the points classification for quick step-innergetic with stage 7,"SELECT points_classification FROM table_name_66 WHERE team_classification = ""quick step-innergetic"" AND stage = ""7""" What is the highest to par number for Justin Leonard when the total is less than 297?,"SELECT MAX(to_par) FROM table_name_27 WHERE player = ""justin leonard"" AND total < 297" "List name, dates active, and number of deaths for all storms with at least 1 death.","SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1" What is the one of the best team? | Do you mean the team with the most number of wins? | yes,SELECT t2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br GROUP BY T1.team_ID ORDER BY sum ( T2.w ) DESC LIMIT 1 State the name of sport id 19.,SELECT sport_name FROM sport WHERE id = 19 Show all paragraph ids and texts for the document with name 'Welcome to NY'.,"SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'" List the course name of courses sorted by credits.,SELECT CName FROM COURSE ORDER BY Credits Which lead had a season of 2007-08?,"SELECT lead FROM table_name_18 WHERE season = ""2007-08""" List all tracks bought by customer Daan Peeters,"SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = ""Daan"" AND T4.last_name = ""Peeters""" "Find the number of team franchises that are active (have 'Y' as ""active"" information).",SELECT count(*) FROM team_franchise WHERE active = 'Y'; Which roller coasters are longer than 3300?,SELECT Roller_Coaster_ID FROM roller_coaster WHERE LENGTH > 3300 How much Attendance has an Opponent of swindon wildcats?,"SELECT COUNT(attendance) FROM table_name_90 WHERE opponent = ""swindon wildcats""" What are the bore & stroke specifications for an engine with 4-barrel carburetor and VIN code of A?,"SELECT bore_ & _stroke FROM table_name_28 WHERE carburetor = ""4-barrel"" AND vin_code = ""a""" Name the high points for march 30,"SELECT high_points FROM table_27723526_12 WHERE date = ""March 30""" Which Against has a Date of 28 january 1950?,"SELECT AVG(against) FROM table_name_49 WHERE date = ""28 january 1950""" Give the case number and coordinates of the places where child abduction is reported.,"SELECT T1.case_number, T1.latitude, T1.longitude FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.secondary_description = 'CHILD ABDUCTION'" Return the full names and salaries for employees with first names that end with the letter m.,"SELECT first_name , last_name , salary FROM employees WHERE first_name LIKE '%m'" What is the fire control for the sporter target,"SELECT fire_control FROM table_12834315_2 WHERE name = ""Sporter Target""" List the name and city of starting stations which has an above-average duration trips.,"SELECT DISTINCT T1.start_station_name, T2.city FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.duration > ( SELECT AVG(T1.duration) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name )" What is the adverbial for the nominative me?,"SELECT adverbial FROM table_name_92 WHERE nominative = ""me""" "When the year won is 1981, 1987, and the finish is t46, what is the lowest total?","SELECT MIN(total) FROM table_name_58 WHERE finish = ""t46"" AND year_s__won = ""1981, 1987""" "Season of 2002–03, and a Lost larger than 14, what is the lowest goals?","SELECT MIN(goalsfor) FROM table_name_38 WHERE season = ""2002–03"" AND lost > 14" What's the release date of Forward March Hare?,"SELECT release_date FROM table_name_10 WHERE title = ""forward march hare""" "Show the id, name of each editor and the number of journal committees they are on.","SELECT T1.editor_id , T1.Name , COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id" Which film was translated from portuguese?,"SELECT original_name FROM table_name_44 WHERE language = ""portuguese""" Who replaced the manager on Team Cfr Cluj?,"SELECT replaced_by FROM table_17115950_2 WHERE team = ""CFR Cluj""" "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.","SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC" Who was the home team when real juventud was the away team when there were more than 1189 in attendance?,"SELECT home FROM table_name_4 WHERE attendance > 1189 AND away = ""real juventud""" What was the payment type of customer with ID 12?,SELECT payment_type_code FROM Payments WHERE customer_id = 12 How many matches did Atlético Ciudad have with an average higher than 0.61?,"SELECT COUNT(matches) FROM table_name_71 WHERE team = ""atlético ciudad"" AND average > 0.61" "In 1996, how many orders were from customers in the UK?","SELECT COUNT(T1.CustomerID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y', T2.OrderDate) = '1996' AND T1.Country = 'UK'" List all the salary values players received in 2010 and 2001.,SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001 Which religion is most prevalent in Asia?,SELECT T4.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN religion AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Asia' GROUP BY T4.Name ORDER BY SUM(T4.Percentage) DESC LIMIT 1 Name the kr narayanan votes for values being 936 for kr,SELECT kr_narayanan__votes_ FROM table_22897453_1 WHERE kr_narayanan__values_ = 936 "What is the lowest Polish Cup, when Position is ""Midfielder"", when Player is ""Miroslav Radović"", and when Ekstraklasa is less than 1?","SELECT MIN(polish_cup) FROM table_name_47 WHERE position = ""midfielder"" AND player = ""miroslav radović"" AND ekstraklasa < 1" Name the most number,SELECT MAX(no) FROM table_26914076_2 What is the maximum of these prices?,SELECT max ( Price ) FROM WINE WHERE YEAR = 2006 "List at least 5 users that has received less than 5 low compliments from other users.",SELECT user_id FROM Users_Compliments WHERE number_of_compliments LIKE 'Low' GROUP BY user_id ORDER BY COUNT(number_of_compliments) > 5 LIMIT 5 What's the gloss with Castitas(Latin)?,"SELECT gloss FROM table_name_79 WHERE latin = ""castitas""" "List all the coaches with more game lost than won from year 2000-2010. List the coach ID, team name and year.","SELECT DISTINCT T1.coachID, T2.tmID, T1.year FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year BETWEEN 2000 AND 2010 AND T2.lost > T2.won" What is the System with the Current version 3.0.0?,"SELECT system FROM table_name_58 WHERE current_version = ""3.0.0""" How many criteria are associated with ranking system Center for World University Rankings?,SELECT COUNT(T2.criteria_name) FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T1.system_name = 'Center for World University Rankings' What is the win/loss percentage with wins of 63 and losses smaller than 76?,SELECT w_l__percentage FROM table_name_77 WHERE wins = 63 AND losses < 76 How many of the works of Shakespeare are Tragedy?,SELECT COUNT(id) FROM works WHERE GenreType = 'Tragedy' Ben Hogan with a score larger than 66 had a place listed of what?,"SELECT place FROM table_name_77 WHERE score > 66 AND player = ""ben hogan""" Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' "Among the employees who are married and wish to receive e-mail promotions, how much higher is their highest pay rate from the average pay rate?",SELECT MAX(T1.Rate) - SUM(T1.Rate) / COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Employee AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T2.EmailPromotion = 2 AND T3.MaritalStatus = 'M' What is Andreas Kiligkaridis rank?,"SELECT rank FROM table_name_80 WHERE athletes = ""andreas kiligkaridis""" What is the baseline extended and main profiles when level is 1.3?,"SELECT MIN(baseline), _extended_and_main_profiles FROM table_237036_2 WHERE level = ""1.3""" What city licensed the broadcast on virtual channel 8.2?,"SELECT city_of_license FROM table_2857352_3 WHERE virtual_channel = ""8.2""" What are the communities that are grouped together on the central side?,SELECT community_area_name FROM Community_Area WHERE side = 'Central' What are the speeds of the longest roller coaster?,SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1 What are the names of shops in ascending order of open year?,SELECT Shop_Name FROM shop ORDER BY Open_Year What is the date of the game against South Africa and 2nd wickets?,"SELECT date FROM table_name_66 WHERE versus = ""south africa"" AND wicket = ""2nd""" How about winery with the least cases?,SELECT Winery FROM WINE ORDER BY cases asc limit 1 What is the lowest round that a pick had a position of ls?,"SELECT MIN(round) FROM table_name_26 WHERE position = ""ls""" How many members arrived on the main island in week 4?,"SELECT COUNT(member) FROM table_11764007_2 WHERE week_arrived_on_main_island = ""4""" List the lowest number of assists.,SELECT MIN(assists) FROM table_26360571_2 Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?,"SELECT title FROM table_14330096_4 WHERE director = ""Patrick Lau"" AND writer = ""Lisa Holdsworth""" How many totals does Chile have when the number of silvers is more than 0?,"SELECT COUNT(total) FROM table_name_73 WHERE nation = ""chile"" AND silver > 0" "Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?","SELECT MAX(laps) FROM table_name_10 WHERE constructor = ""minardi - fondmetal"" AND driver = ""marc gené"" AND grid > 20" Which episode id did award Outstanding Animated Program (For Programming Less Than One Hour) with an episode star score of 10?,SELECT DISTINCT T1.episode_id FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.award = 'Outstanding Animated Program (For Programming Less Than One Hour)' AND T2.stars = 10; how many of the parties are popular? | What do you mean by popular? | how many parties have the most popular party form?,SELECT count ( * ) FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = ( SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count ( * ) DESC LIMIT 1 ) What are the names of the players who were coached by Robert Chen?,"SELECT T3.player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID where T2.coach_name = ""Robert Chen""" Ken Hemenway is in which Round?,"SELECT round FROM table_name_23 WHERE player = ""ken hemenway""" What role was Julia Roberts nominated for?,SELECT T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.Result = 'Nominee' AND T1.name = 'Julia Roberts' And the state for OU?,SELECT state FROM College WHERE cName = 'OU' What were the cities in which John Aalberg competed?,SELECT T4.city_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T1.full_name = 'John Aalberg' Name the record for score of l 93–104 (ot),"SELECT record FROM table_17288825_8 WHERE score = ""L 93–104 (OT)""" Which school county in the state of New York has a high number of low poverty levels?,SELECT school_county FROM projects WHERE poverty_level = 'low poverty' AND school_state = 'NY' GROUP BY school_state ORDER BY COUNT(poverty_level) DESC LIMIT 1 Who won stage 18?,SELECT winner FROM table_14395920_2 WHERE stage = 18 What are the student id 1's incident type code?,SELECT incident_type_code FROM Behavior_Incident where student_id = 1 What is the name of the race held most recently?,SELECT name FROM races ORDER BY date DESC LIMIT 1 "What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?",SELECT MAX(games) FROM table_name_90 WHERE season > 2001 AND average < 10 OFFSET 838 Show names of pilots that have more than one record.,"SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1" The Western Oval venue has what date?,"SELECT date FROM table_name_37 WHERE venue = ""western oval""" "For each position, what is the average number of points for players in that position?","SELECT POSITION , avg(Points) FROM player GROUP BY POSITION" What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?,"SELECT date_of_birth FROM table_name_80 WHERE party = ""republican"" AND house_term = ""1863-1865""" What is the week 13 result where the week 14 resulted in Maryland (10-1)?,"SELECT week_13_nov_26 FROM table_name_18 WHERE week_14_dec_3 = ""maryland (10-1)""" List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.,SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta' How many patients with shellfish allergies died when they were under 12 years old? Please give their full names.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Shellfish allergy' AND CAST((strftime('%J', T1.deathdate) - strftime('%J', T1.birthdate)) AS REAL) / 365 < 12" "How many incidents are considered ""severe"" in the IUCR classification?",SELECT COUNT(*) FROM IUCR WHERE index_code = 'I' How many different roles are there on the project staff?,SELECT count(DISTINCT role_code) FROM Project_Staff The English translation of Sing has what average points?,"SELECT AVG(points) FROM table_name_86 WHERE english_translation = ""sing""" Who is the manager with the Hewlett-Packard shirt sponsor?,"SELECT manager_1 FROM table_name_72 WHERE shirt_sponsor = ""hewlett-packard""" What type of state is bo qin?,"SELECT type FROM table_name_99 WHERE name = ""bo qin""" "Who is Runner(s)-up that has a Date of may 24, 1999?","SELECT runner_s__up FROM table_name_37 WHERE date = ""may 24, 1999""" What field is an opponent of cannons and resulted with w 16-11?,"SELECT field FROM table_name_88 WHERE opponent = ""cannons"" AND result = ""w 16-11""" Name the steals for 5 blocks,SELECT steals FROM table_22824319_3 WHERE blocks = 5 And how much money does each one have saved?,"SELECT sum ( T2.balance ) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name" How many average points did the player with a time/retired of +16.789 and have more laps than 68 have?,"SELECT AVG(points) FROM table_name_8 WHERE time_retired = ""+16.789"" AND laps > 68" Name the mixed doubles when tour is hong kong super series,"SELECT mixed_doubles FROM table_14496232_2 WHERE tour = ""Hong Kong Super Series""" What is the name of the player with the largest number of votes?,SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1 "How many different types of crimes, according to the primary description, have occurred in the Hermosa neighborhood?",SELECT SUM(CASE WHEN T4.neighborhood_name = 'Hermosa' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T4 ON T4.community_area_no = T3.community_area_no Hello! Can you please list all of the first and last names for all of the students in the database?,"SELECT LastName,FirstName from list" What is the home team that Bradford City is playing against?,"SELECT home_team FROM table_name_72 WHERE away_team = ""bradford city""" What are the date and venue of each debate?,"SELECT Date, Venue FROM debate" What contestant is from santo domingo este and has height smaller than 1.79?,"SELECT contestant FROM table_name_7 WHERE height < 1.79 AND hometown = ""santo domingo este""" What are the mascots for schools with enrollments above the average?,SELECT mascot FROM school WHERE enrollment > (SELECT avg(enrollment) FROM school) What was the result on 10/08/1988?,"SELECT result FROM table_name_52 WHERE date = ""10/08/1988""" "What is the short name and full name of conference uses the homepage ""http://www.informatik.uni-trier.de/~ley/db/conf/ices/index.html""?","SELECT ShortName, FullName FROM Conference WHERE HomePage = 'http://www.informatik.uni-trier.de/~ley/db/conf/ices/index.html'" Which movies have 'Deleted Scenes' as a substring in the special feature?,SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%' Name the first elected for kentucky 1,"SELECT first_elected FROM table_2668378_5 WHERE district = ""Kentucky 1""" How many seasons did Ken Bouchard finish in 38th place?,"SELECT COUNT(year) FROM table_2333416_2 WHERE position = ""38th""" What is the inscription with John Vanbrugh listed as the identification?,"SELECT inscription FROM table_name_26 WHERE identification = ""john vanbrugh""" what's the race winner with location being jacarepaguá,"SELECT race AS Winner FROM table_1140074_2 WHERE location = ""Jacarepaguá""" "What is ""the date in location from"" and ""the date in location to"" for the document with name ""Robin CV""?","SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = ""Robin CV""" What are the first names for all students who are from the major numbered 600?,SELECT Fname FROM Student WHERE Major = 600 Who is the head linesman at game xxxv?,"SELECT head_linesman FROM table_name_66 WHERE game = ""xxxv""" What package offers Fox Sports HD?,"SELECT package_option FROM table_15887683_3 WHERE television_service = ""FOX Sports HD""" "How big was the crowd size, at the Junction Oval venue?","SELECT SUM(crowd) FROM table_name_30 WHERE venue = ""junction oval""" What was the winning score on 7 jun 1976?,"SELECT winning_score FROM table_name_4 WHERE date = ""7 jun 1976""" where is the city where Lyla stays?,"SELECT T1.city FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = ""Lyla""" What's the 69kg of Round 16?,"SELECT round_of_16 FROM table_name_16 WHERE event = ""69kg""" What is the highest season for the 7th position?,"SELECT MAX(season) FROM table_name_61 WHERE position = ""7th""" What was John Strohmeyer's average pick before round 12?,"SELECT AVG(pick) FROM table_name_9 WHERE name = ""john strohmeyer"" AND round < 12" Write down the region and name of the sale team ID of 18 and compare their orders between in-store and online.,"SELECT T2.Region, T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.SalesTeamID = 18 AND T1.`Sales Channel` = 'In-Store' OR T1.`Sales Channel` = 'Online'" What is the name of the race on 9 July?,"SELECT name FROM table_name_72 WHERE date = ""9 july""" how many artists are from Bangladesh,"SELECT count ( * ) from artist where country = ""Bangladesh""" "Among legislators who have an Instagram account, list down their full names and nicknames who have a Thomas ID of less than 1000.","SELECT T1.official_full_name, T1.nickname_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T2.instagram IS NOT NULL AND T1.thomas_id < 1000" What was the away team's score against Hawthorn?,"SELECT away_team AS score FROM table_name_9 WHERE home_team = ""hawthorn""" Can you tell me the 2010 that has the 2008 of grand slam tournaments?,"SELECT 2010 FROM table_name_44 WHERE 2008 = ""grand slam tournaments""" What is the highest number of extra points?,SELECT MAX(extra_points) FROM table_14342480_15 WHAT IS THE PLAYER WITH A PICK OF 219?,SELECT player FROM table_name_1 WHERE pick = 219 "What is the lowest rank of Ukraine with fewer than 14 silver medals, fewer than 3 bronze medals, and a total of 4 medals?","SELECT MIN(rank) FROM table_name_95 WHERE silver < 14 AND bronze < 3 AND total = 4 AND nation = ""ukraine""" Who was the home team at VFL Park?,"SELECT home_team FROM table_name_22 WHERE venue = ""vfl park""" What is the season of the game which causes the player 'Walter Samuel' to get injured?,SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel' "In the South side community, what is the name of the community with the most reported incidents of unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person?","SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.side = 'South' AND T1.description = 'The unlawful taking, carrying, leading, or riding away of property FROM the possession or constructive possession of another person.' GROUP BY T3.community_area_name ORDER BY COUNT(T1.fbi_code_no) DESC LIMIT 1" Who was the athlete that covered biking within 58:52?,"SELECT athlete FROM table_17085947_32 WHERE bike__40km_ = ""58:52""" What's listed for the Elevated category that has an Order of Cardinal-Bishop?,"SELECT elevated FROM table_name_78 WHERE order = ""cardinal-bishop""" "How many instruments does the song ""Badlands"" use?","SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" "Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?","SELECT adelaide FROM table_name_30 WHERE melbourne = ""no"" AND sydney = ""no"" AND gold_coast = ""no""" "How many samples of ""wall"" are there in image no.2353079?",SELECT SUM(CASE WHEN T1.OBJ_CLASS = 'wall' THEN 1 ELSE 0 END) FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2353079 "Which Investing Dragon(s) requested 100,000 in money and has autosafe?","SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = ""100,000"" AND company_or_product_name = ""autosafe""" What is the position for the years 1998-99,"SELECT position FROM table_11545282_11 WHERE years_for_jazz = ""1998-99""" What is the year of the Lotus 25 chassis?,"SELECT AVG(year) FROM table_name_19 WHERE chassis = ""lotus 25""" How many north american brands have world headquarters in sagamihara?,"SELECT COUNT(north_american_brands) FROM table_237199_1 WHERE world_headquarters = ""Sagamihara""" List all employees who are at the maximum level in their job designation.,"SELECT T1.fname, T1.lname FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl = T2.max_lvl" "In between the episode 5 and10 of season 2, how many of them are credited for casting?","SELECT COUNT(credited) FROM Credit WHERE episode_id IN ( 'S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10' ) AND credited = 'true' AND role = 'casting';" List the object number of railways that do not have any trains.,SELECT ObjectNumber FROM railway WHERE Railway_ID NOT IN (SELECT Railway_ID FROM train) How tall is the person born on 1976-12-27?,"SELECT height FROM table_name_2 WHERE date_of_birth = ""1976-12-27""" How many different classes are there?,SELECT count(DISTINCT class_code) FROM CLASS Name the guest 4 for steve lamacq,"SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = ""Steve Lamacq""" How many countries spent at least $51.0 billion in international tourism in 2012?,"SELECT MAX(rank_2012) FROM table_29789_3 WHERE international_tourism_expenditure_2011 = ""$51.0 billion""" what is the name and nation of the singer who have a song having 'Hey' in its name?,"SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'" give me the race class with the most number of races,SELECT CLASS FROM race GROUP BY CLASS ORDER BY count ( * ) DESC LIMIT 1 what is the country of goroka,SELECT country FROM airports where city = 'Goroka' "Who is performing in the back stage position for the song ""Der Kapitan""? Show the first name and last name.","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Der Kapitan"" AND T1.StagePosition = ""back""" What are the average profits of companies?,SELECT AVG(Profits_billion) FROM Companies What was the box score for the game where the away team was the sydney spirit?,"SELECT Box AS score FROM table_name_40 WHERE away_team = ""sydney spirit""" When did the away team carlton play?,"SELECT date FROM table_name_88 WHERE away_team = ""carlton""" In which segment does the customer who purchased the product from the east superstore with the highest original price belong?,SELECT T2.Segment FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T1.Region = 'East' ORDER BY (T1.Sales / (1 - T1.Discount)) DESC LIMIT 1 List the event venues and names that have the top 2 most number of people attended.,"SELECT venue , name FROM event ORDER BY Event_Attendance DESC LIMIT 2" What is the title of the course that is a prerequisite for Mobile Computing?,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') Tell me the party email of the party with id 1?,"SELECT party_email FROM parties WHERE party_id = ""1""" What is the lowest nuber of games drawn in the total column?,"SELECT MIN(drawn) FROM table_name_31 WHERE against = ""total""" What is its zip code?,"SELECT zip_code FROM county where county_name = ""Baltimore County""" How many rounds were 2r?,"SELECT COUNT(result) FROM table_11326124_3 WHERE round = ""2R""" Can you list them with the date of the game and the name of the player who got injured?,"SELECT T1.date , T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id" What was the finishing time of the stage that featured a distance of 18.25km and a start time of 11:31?,"SELECT time FROM table_name_16 WHERE distance = ""18.25km"" AND start_time = ""11:31""" What was the 2nd leg score of the aggregate score of 4-9?,"SELECT 2 AS nd_leg FROM table_name_46 WHERE agg = ""4-9""" Which nationality's pick was 415?,"SELECT nationality FROM table_name_21 WHERE pick = ""415""" How many drivers participated in the race Australian Grand Prix held in 2009?,"SELECT COUNT(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = ""Australian Grand Prix"" AND YEAR = 2009" "Sum up the number sales ids handled by employees called Morningstar, Heather and Dean.","SELECT SUM(IIF(T2.FirstName = 'Morningstar', 1, 0)) + SUM(IIF(T2.FirstName = 'Heather', 1, 0)) + SUM(IIF(T2.FirstName = 'Dean', 1, 0)) AS num FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID" How many students got an A?,SELECT count ( T1.stu_fname ) FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' Retrieve the country that has published the most papers.,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1 What is the largest laps led with the lotus-ford 34/3 chassis?,"SELECT MAX(laps_led) FROM table_181892_4 WHERE chassis = ""Lotus-Ford 34/3""" How many movie reviews does each director get?,"SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director" "Which papers have the substring ""ML"" in their titles? Return the titles of the papers.","SELECT title FROM papers WHERE title LIKE ""%ML%""" What integrated school had a decile of 2 and a roll larger than 55?,"SELECT name FROM table_name_69 WHERE decile = 2 AND authority = ""integrated"" AND roll > 55" "What is the Location, when Event is ""100m Butterfly""?","SELECT location FROM table_name_72 WHERE event = ""100m butterfly""" What is the total units on order from Exotic Liquids?,SELECT SUM(T1.UnitsOnOrder) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Exotic Liquids' What is the cyrillic name for the settlement with the population of 5414?,SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE population__2011_ = 5414 What is the GDP (nominal) for Uzbekistan?,"SELECT gdp__nominal_ FROM table_11780179_1 WHERE country = ""Uzbekistan""" What Viewers (m) has an Episode of school council?,"SELECT AVG(viewers__m_) FROM table_name_82 WHERE episode = ""school council""" What is the percentage of romance films among films produced in India in 2015?,SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Romance' THEN T1.movie_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_COUNTry AS T3 ON T1.movie_id = T3.movie_id INNER JOIN genre AS T4 ON T2.genre_id = T4.genre_id INNER JOIN COUNTry AS T5 ON T3.COUNTry_id = T5.COUNTry_id WHERE T5.COUNTry_name = 'India' AND T1.release_date BETWEEN '2015-01-01' AND '2015-12-31' Show the names of players and names of their coaches.,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID" Who is the villain in Little Mermaid?,SELECT villian FROM characters WHERE movie_title = 'Little Mermaid' What was the score fore the away team Dartford?,"SELECT score FROM table_name_88 WHERE away_team = ""dartford""" Who directed the episode with a UK viewership of exactly 5.77 million?,"SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = ""5.77""" "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.","SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = ""USPS"";" What are the first names of all professors not teaching any classes?,SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num Name the height for the player born in 1981,SELECT height__m_ FROM table_23670057_6 WHERE year_born = 1981 How many hometowns have a height of m (ft 10 1⁄2 in)?,"SELECT COUNT(hometown) FROM table_24192031_2 WHERE height = ""m (ft 10 1⁄2 in)""" What years did the person coach who had more than 31 ties?,SELECT years FROM table_name_5 WHERE ties > 31 "What is the average Played, when Club is ""Burgos CF"", and when Draws is less than 7?","SELECT AVG(played) FROM table_name_32 WHERE club = ""burgos cf"" AND draws < 7" What is the name of the oldest competitor?,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age DESC LIMIT 1 Please find out the total amount of loans offered by each bank branch.,"SELECT sum ( amount ) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname" Calculate the percentage of male patients with viral sinusitis condition.,SELECT CAST(SUM(CASE WHEN T1.gender = 'M' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Viral sinusitis (disorder)' What was the average round score of the player who won in 1978?,"SELECT AVG(total) FROM table_name_72 WHERE year_s__won = ""1978""" What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents?,"SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = ""stephane houdet michael jeremiasz""" "There was only one tip that user No. 69722 gave to the Yelp business, what was the ratings of that business?",SELECT T2.stars FROM Tips AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.user_id = 69722 What is the country where there are 8 children per donor and no data for donor payments?,"SELECT country FROM table_16175217_1 WHERE children_per_donor = ""8 children"" AND donor_payment = ""no data""" What is the title for the episode that written by Michael Miller?,"SELECT title FROM table_19517621_3 WHERE written_by = ""Michael Miller""" What was the record when the team played Boston?,"SELECT record FROM table_17325580_10 WHERE team = ""Boston""" Can you tell me the Time that has the Opponent of phil baroni?,"SELECT time FROM table_name_75 WHERE opponent = ""phil baroni""" "What is the lowest Round with the Location, Las Vegas, Nevada, the Method, Decision (unanimous), and the Event, K-1 World Grand Prix 2003 in Las Vegas II?","SELECT MIN(round) FROM table_name_87 WHERE location = ""las vegas, nevada"" AND method = ""decision (unanimous)"" AND event = ""k-1 world grand prix 2003 in las vegas ii""" How many millions of viewers watched the episode directed by Christine Moore?,"SELECT viewers__in_millions_ FROM table_23255941_1 WHERE directed_by = ""Christine Moore""" How many seasons did Pune Warriors participate in?,SELECT COUNT(T.Season_Year) FROM ( SELECT T4.Season_Year FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Player_Match AS T3 ON T1.Team_Id = T3.Team_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T1.Team_Name = 'Pune Warriors' GROUP BY T4.Season_Year ) T "Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979?",SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979 Who had highest points during game against the Utah Jazz?,"SELECT high_points FROM table_27902171_6 WHERE team = ""Utah Jazz""" What is the mascot for the team smaller than 154 from 49 Marion?,"SELECT mascot FROM table_name_21 WHERE size < 154 AND county = ""49 marion""" "Show the builder of railways associated with the trains named ""Andaman Exp"".","SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID WHERE T2.Name = ""Andaman Exp""" What is the Fatalities when the tail number was unknown and in Kabul>,"SELECT fatalities FROM table_name_53 WHERE tail_number = ""unknown"" AND location = ""kabul""" Find the names of all instructors in the Art department who have taught some course and the course_id.,"SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'" What are the names of scientists who are not working on the project with the most hours?,SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) What event did tedd williams fight bill parker?,"SELECT event FROM table_name_94 WHERE opponent = ""bill parker""" What is business number 1580's net profit?,SELECT LastReceiptCost - StandardPrice FROM ProductVendor WHERE BusinessEntityID = 1580 "What was the score for University of Florida in ""N and S"" in 2014?",SELECT T2.score FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'University of Florida' AND T2.year = 2014 AND T1.criteria_name = 'N and S' What is the winning score of the tournament with Charles Coody as the runner-up?,"SELECT winning_score FROM table_name_91 WHERE runner_s__up = ""charles coody""" what is the highest profits of companies,SELECT max ( Profits_billion ) FROM Companies What Interview subject was on a Date that is 11-92?,"SELECT interview_subject FROM table_name_42 WHERE date = ""11-92""" "What is the total number of Total, when Silver is 1, and when Bronze is 7?","SELECT COUNT(total) FROM table_name_5 WHERE silver = ""1"" AND bronze = ""7""" "yes, the youngest.","select name_first, name_last from player where player_id in ( SELECT T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3 ) order by birth_year, birth_month, birth_day desc limit 1" Which class has laps under 77?,SELECT class FROM table_name_85 WHERE laps < 77 how many classrooms are available?,SELECT count ( distinct classroom ) FROM list What is the total number of routes for each country and airline in that country?,"SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name" What are the titles and genres of the one-act works of Shakespeare?,"SELECT DISTINCT T1.Title, T1.GenreType FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Act = 1" Hello! Can you tell me which role code has the largest number of employees associated with it?,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1 Give me the description of the treatment type whose total cost is the lowest.,SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1 "Under the in-charge of inside sales coordinator, provide the product lists which were shipped to Mexico in 1996.",SELECT T4.ProductName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID WHERE T1.Title = 'Inside Sales Coordinator' AND T2.ShippedDate LIKE '1996%' AND T2.ShipCountry = 'Mexico' Find the names of the swimmers who have no record.,SELECT name FROM swimmer WHERE id NOT IN (SELECT swimmer_id FROM record) What is the first name of the student whose last name starts with the letter S and is taking ACCT-211?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?,"SELECT 1990 FROM table_name_33 WHERE 1996 = ""grand slam tournaments""" What are the names of all the dorms that don't have any amenities?,SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity) "Show the total number of keywords of the movie ""I Hope They Serve Beer in Hell"".",SELECT COUNT(T2.keyword_id) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'I Hope They Serve Beer in Hell' Name the result for massachusetts 3,"SELECT result FROM table_1341897_23 WHERE district = ""Massachusetts 3""" Show the pair of male and female names in all weddings after year 2014,"SELECT T2.name , T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014" What's the 2012 during Wimbledon and had a Q3 in 2008?,"SELECT 2012 FROM table_name_83 WHERE 2008 = ""q3"" AND tournament = ""wimbledon""" "What is Frequency, when Part Number(s) is AY80609004002AC?","SELECT frequency FROM table_name_85 WHERE part_number_s_ = ""ay80609004002ac""" Who directed the most popular movie?,"SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" "Which Opponent in the final has an Outcome of winner, and a Date larger than 1992, and a Surface of clay, and a Score in the final of 3–6, 6–2, 6–1?","SELECT opponent_in_the_final FROM table_name_65 WHERE outcome = ""winner"" AND date > 1992 AND surface = ""clay"" AND score_in_the_final = ""3–6, 6–2, 6–1""" "What brands of beers are manufactured at coordinates 38,566,129, -121,426,432?",SELECT DISTINCT T2.BrandName FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID INNER JOIN geolocation AS T3 ON T1.LocationID = T3.LocationID WHERE T3.Latitude = '38.566129' AND T3.Longitude = '-121.426432' What is the party affiliation for Senator David Goodman? ,"SELECT party FROM table_26129220_2 WHERE senator = ""David Goodman""" Order denominations in descending order of the count of schools with the denomination. Return each denomination with the count of schools.,"SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC" When 9:47:38 is the time (utc) how many measurements of latitude are there?,"SELECT COUNT(latitude) FROM table_24192190_1 WHERE time__utc_ = ""9:47:38""" How many losses does Toronto Downtown Dingos have?,"SELECT losses FROM table_26200568_16 WHERE club = ""Toronto Downtown Dingos""" Calculate percentage of household segment in Indonesia.,"SELECT CAST(SUM(IIF(T1.c_mktsegment = 'HOUSEHOLD', 1, 0)) AS REAL) * 100 / COUNT(T1.c_mktsegment) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'INDONESIA'" How many people reviewed for product named HL Mountain Pedal? What is the average rating?,"SELECT COUNT(T1.ProductID), AVG(T2.Rating) FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'HL Mountain Pedal'" Return the types of film market estimations in 1995.,SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995 How many businesses with music_karaoke attribute are closed?,"SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name = 'music_karaoke' AND T3.active = 'false' AND T2.attribute_value IN ('none', 'no', 'false')" What are the ids of songs that are available in either mp4 format or have resolution above 720?,"SELECT f_id FROM files WHERE formats = ""mp4"" UNION SELECT f_id FROM song WHERE resolution > 720" What is the description for the results whose project detail is 'sint'?,SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' What date was a friendly match played that ended in a 3-0 score?,"SELECT date FROM table_name_74 WHERE result = ""3-0"" AND competition = ""friendly match""" Who was the opponent at the game that had a loss of Shields (1–1)?,"SELECT opponent FROM table_name_12 WHERE loss = ""shields (1–1)""" "What is Term Start, when Name is Prime Ministers 1939 - 1943?","SELECT term_start FROM table_name_38 WHERE name = ""prime ministers 1939 - 1943""" "Among the legislators who have served in the U.S. House, provide the party and the state of the legislators who were born in 1738.","SELECT T1.party, T1.state FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.house_history_id IS NOT NULL AND T2.birthday_bio LIKE '%1738%'" Find the origins from which more than 1 train starts.,SELECT origin FROM train GROUP BY origin HAVING COUNT(*) > 1 Show all role codes and the number of employees in each role.,"SELECT role_code , count(*) FROM Employees GROUP BY role_code" "What was the lowest week at Ralph Wilson Stadium on October 7, 2001?","SELECT MIN(week) FROM table_name_72 WHERE game_site = ""ralph wilson stadium"" AND date = ""october 7, 2001""" Find the average price of wines that are not produced from Sonoma county.,SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') "Great, thank you. What about their names?",SELECT player FROM match_season where country = 4 Would you show the transaction type descriptions if the share count is equal to or larger than 10?,SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count > = 10 Show me all the users.,SELECT name FROM user_profiles For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.,"SELECT DISTINCT classroom , grade FROM list" how many physicians are presented on the table,SELECT COUNT ( * ) FROM Physician How many domestic crime cases has Commander Ronald A. Pontecore Jr. been responsible for investigating?,SELECT SUM(CASE WHEN T2.domestic = 'TRUE' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.commander = 'Ronald A. Pontecore Jr.' Which district has the largest population?,SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1 Provide the name and model of the car with the highest price.,"SELECT T1.car_name, T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1" What are the total enrollments of universities of each affiliation type?,"SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation" "What is Stopping Pattern, when Platform is 4?","SELECT stopping_pattern FROM table_name_92 WHERE platform = ""4""" Great! Can you provide me with the customer addresses for those two customers?,"SELECT customer_address FROM customers WHERE customer_address LIKE ""%TN%""" What city has a building with over 57 floors?,SELECT city FROM table_name_33 WHERE floors > 57 What is the most common first name among the customers?,SELECT first_name FROM customer GROUP BY first_name ORDER BY COUNT(first_name) DESC LIMIT 1 What about the other details?,"SELECT T2.Other_Details FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" "Among the players who had 10 empty net goals in their career, who is the tallest? Show his full name.","SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID GROUP BY T2.playerID, T1.height HAVING SUM(T2.ENG) > 10 ORDER BY T1.height DESC LIMIT 1" "if there are 30 lifts, what is the name of the ski resort?",SELECT name FROM table_25762852_1 WHERE lifts = 30 How many products have a price higher than the average?,SELECT count(*) FROM products WHERE product_price > (SELECT avg(product_price) FROM products) How many rooms in this table?,SELECT count ( distinct room ) FROM stay On what date was the Nike Colorado Classic held?,"SELECT date FROM table_name_39 WHERE tournament = ""nike colorado classic""" What is the average minimum and price of the rooms for each different decor.,"SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;" What is the record when Clayton Mckinney was the opponent?,"SELECT record FROM table_name_93 WHERE opponent = ""clayton mckinney""" What are the staff roles of the staff who,SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18' "What location shows round was 1, and against Ricky Shivers?","SELECT location FROM table_name_43 WHERE round = 1 AND opponent = ""ricky shivers""" How many instructors teach a course in the Spring of 2010?,SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 show me the first and last names of employees whose first name does not contain letter M,"SELECT first_name , last_name FROM employees WHERE first_name NOT LIKE '%M%'" "What is the total avge of John Hall, who has less than 63 goals?","SELECT COUNT(avge) FROM table_name_25 WHERE name = ""john hall"" AND goals < 63" What is the id of the department with the least number of staff?,SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1 What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final?,"SELECT date FROM table_name_89 WHERE opponent_in_the_final = ""kyoko nagatsuka""" "Who was the winning team of the game that was contested on February 1, 2009?","SELECT winning_team FROM table_10548224_1 WHERE date_contested = ""February 1, 2009""" What are the average prices of wines for different years?,"SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR" Show the countries that have both managers of age above 50 and managers of age below 46.,SELECT Country FROM manager WHERE Age > 50 INTERSECT SELECT Country FROM manager WHERE Age < 46 How many hours do the students spend studying in each department?,"SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code" Which home team has an Away team of essendon?,"SELECT home_team AS score FROM table_name_76 WHERE away_team = ""essendon""" What is the 1st ship delivery date of 6 ways?,"SELECT 1 AS st_ship_delivery_date FROM table_name_87 WHERE total_number_of_ways = ""6 ways""" Return the names of all counties sorted by population in ascending order.,SELECT County_name FROM county ORDER BY Population ASC What was duration of the longest trip started on the day that has a maximum wind speed of 30 mph?,SELECT T1.duration FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.max_wind_Speed_mph = 30 ORDER BY T1.duration DESC LIMIT 1 What is the lowest number of poles?,SELECT MIN(poles) FROM table_16710541_2 What is the qual 1 with a 1:09.567 best?,"SELECT qual_1 FROM table_name_70 WHERE best = ""1:09.567""" Which students have professors as their advisors? Find their student ids.,"SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = ""Professor""" What are the weights of entrepreneurs in descending order of money requested?,SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC "Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?","SELECT score FROM table_name_2 WHERE couple = ""jason & edyta"" AND style = ""freestyle""" Compute the total payment made by Sarah Lewis for film rentals so far.,SELECT SUM(T3.amount) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN payment AS T3 ON T1.rental_id = T3.rental_id WHERE T2.first_name = 'SARAH' AND T2.last_name = 'LEWIS' Show the number of transactions for different investors.,"SELECT investor_id , COUNT(*) FROM TRANSACTIONS GROUP BY investor_id" Name the opponent for june 12,"SELECT opponent FROM table_19789597_5 WHERE date = ""June 12""" what is the total number of deadline for completion where description is facebook becomes a publicly traded company,"SELECT COUNT(deadline_for_completion) FROM table_12078626_1 WHERE description = ""Facebook becomes a publicly traded company""" What are the name and id of the team offering the lowest average salary?,"SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;" WHICH SHOP HAS THE LARGEST QUANTITY OF DEVICES IN STOCK,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM ( T1.quantity ) DESC LIMIT 1 "Among the active businesses located at Goodyear, AZ, list the category and atrributes of business with a high review count.","SELECT T3.category_name, T5.attribute_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id INNER JOIN Business_Attributes AS T4 ON T1.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.review_count = 'High' AND T1.city = 'Goodyear' AND T1.state = 'AZ' AND T1.active = 'true'" "What was the date of the game that had a result of Army 16, SMU 14?","SELECT date FROM table_28719193_19 WHERE matchups_results = ""Army 16, SMU 14""" Who won the men's double when Chou Tien-Chen won the men's single?,"SELECT mens_doubles FROM table_12275654_1 WHERE mens_singles = ""Chou Tien-chen""" What is the least ERP W when the freguency MHz is 89.3 fm?,"SELECT MIN(erp_w) FROM table_name_27 WHERE frequency_mhz = ""89.3 fm""" What Rider had a Time of 1:01.50.57?,"SELECT rider FROM table_name_46 WHERE time = ""1:01.50.57""" What position does the player from the Arizona Diamondbacks play?,"SELECT position FROM table_name_6 WHERE team = ""arizona diamondbacks""" What is the date that has yani tseng as the runner (s)-up?,"SELECT date FROM table_name_97 WHERE runner_s__up = ""yani tseng""" Find the name of the customer who made an order most recently.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 "What is the leading scorer of the game with an attendance of 14,096?","SELECT leading_scorer FROM table_name_97 WHERE attendance = ""14,096""" Which states have two or more representatives?,SELECT State FROM representative GROUP BY State HAVING COUNT ( * ) > = 2 What is the full name of customers who dealt with sales person with id 5?,"SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.SalesPersonID = 5" What is the precise location of zip code 95819?,"SELECT T2.Latitude, T2.Longitude FROM location AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID WHERE T1.ZipCode = 95819" What is the method against Paula Mataele?,"SELECT method FROM table_name_26 WHERE opponent = ""paula mataele""" "How much Run 2 has a Run 4 of 57.68, and a Run 3 smaller than 57.9?",SELECT COUNT(run_2) FROM table_name_53 WHERE run_4 = 57.68 AND run_3 < 57.9 "What was the score for the away team, southport?","SELECT score FROM table_name_19 WHERE away_team = ""southport""" "For each position, what is the minimum time students spent practicing?","SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos" What are the names and salaries of instructors who advise students in the Math department?,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'" "What was the manner of departure for the outgoing manager, davide ballardini?","SELECT manner_of_departure FROM table_name_92 WHERE outgoing_manager = ""davide ballardini""" can you list the name of these 10 members,"SELECT Name FROM member WHERE Country = ""United States"" OR Country = ""Canada""" Can you list the states where the secretaries of the Homeland Security department were born?,SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security' Who got the high rebounds if Brook Lopez (15) earned the high points?,"SELECT high_rebounds FROM table_27700375_8 WHERE high_points = ""Brook Lopez (15)""" Who narrated when the vessel operator is de beers?,"SELECT narrated_by FROM table_26168687_3 WHERE vessel_operator = ""De Beers""" What is the prize for the tournament at Ibaraki?,"SELECT prize_fund___¥__ FROM table_26144632_1 WHERE location = ""Ibaraki""" Which Incumbent has a District of California 8?,"SELECT incumbent FROM table_name_75 WHERE district = ""california 8""" Find the rank of the faculty that the fewest faculties belong to.,SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY COUNT(*) LIMIT 1 "What is the date of the tournament played in Madrid, Spain?","SELECT date FROM table_name_90 WHERE tournament = ""madrid, spain""" How many products are never booked with amount higher than 200?,SELECT COUNT(*) FROM Products_for_hire WHERE NOT product_id IN (SELECT product_id FROM products_booked WHERE booked_amount > 200) What are the top 5 nations of suppliers with the lowest account balance?,SELECT T2.n_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey ORDER BY T1.s_acctbal LIMIT 1 What is the tie number total when Harlow Town is the away team?,"SELECT COUNT(tie_no) FROM table_name_5 WHERE away_team = ""harlow town""" Who was the illustrator in 1987?,SELECT illustrator FROM table_name_79 WHERE year = 1987 All high points are team new york.,"SELECT high_points FROM table_17080868_8 WHERE team = ""New York""" "What is maximum and minimum RAM size of phone produced by company named ""Nokia Corporation""?","SELECT max(T1.RAM_MiB) , min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"";" What is the average unit price of a Cookware product?,"SELECT AVG(REPLACE(T1.`Unit Price`, ',', '')) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T2.`Product Name` = 'Cookware'" Which coach had the highest winning rates in the 2009 season? What's coach's nickname.,"SELECT T2.coachID, T1.nameNick FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 2009 ORDER BY CAST(T2.W AS REAL) / (T2.W + T2.L) DESC LIMIT 1" WHAT IS THE HOME TEAM WITH A TIE OF 14?,"SELECT home_team FROM table_name_21 WHERE tie_no = ""14""" "What is the surface for the tournament of manta, ecuador?","SELECT surface FROM table_name_22 WHERE tournament = ""manta, ecuador""" WHAT YEAR WAS ROBERT COOMBES CHAMPION ON MAY 7?,"SELECT COUNT(year) FROM table_name_97 WHERE champion = ""robert coombes"" AND date = ""may 7""" What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team?,"SELECT MAX(year) FROM table_name_1 WHERE start = ""3"" AND team = ""morgan-mcclure"" AND finish = ""40""" "For each director, what are the titles and ratings for all the movies they reviewed?","SELECT T2.title , T1.stars , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != ""null"" GROUP BY director" State the number of disabled students who have payment due.,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.bool = 'neg' Which U15 4th Quad had a U15 3rd Quad of BBC and U15 6th Quad of GT?,"SELECT u15_4th_quad FROM table_name_68 WHERE u15_3rd_quad = ""bbc"" AND u15_6th_quad = ""gt""" What party did Frank J. Becker represent?,"SELECT party FROM table_1342013_31 WHERE incumbent = ""Frank J. Becker""" How many females are in the network?,SELECT count(*) FROM Person WHERE gender = 'female' What is Justin Wilson's Team?,"SELECT team FROM table_name_13 WHERE name = ""justin wilson""" What are the famous title of the artists associated with volumes with more than 2 weeks on top?,SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 List all the comments on the lowest rated Mature 17+ app.,"SELECT T2.Translated_Review FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.""Content Rating"" = 'Mature 17+' ORDER BY T1.Rating LIMIT 1" What is the De Laet term for a Munsee Delaware term of ní·ša?,"SELECT de_laet__1633_ FROM table_name_12 WHERE munsee_delaware = ""ní·ša""" What is every original air date for the number in season of 7?,SELECT original_air_date FROM table_26748314_1 WHERE no_in_season = 7 Find the id and name of customers whose address contains WY state and do not use credit card for payment.,"SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code != ""Credit Card""" "What is the lowest Built, when Floors is greater than 23, and when Rank is 3?",SELECT MIN(built) FROM table_name_38 WHERE floors > 23 AND rank = 3 List the section_name in reversed lexicographical order.,SELECT section_name FROM Sections ORDER BY section_name DESC "what's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early","SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = ""Unaffected"" AND condition = ""Liver failure , early""" who is the department manager? | Do you want the ids of staffs who are department managers? | yes,"SELECT staff_id FROM staff_department_assignments where job_title_code = ""Department Manager""" who are the candidates for district new york 10?,"SELECT candidates FROM table_2668347_14 WHERE district = ""New York 10""" "What is the Away captain when the Result was draw, and a Venue of lord's?","SELECT away_captain FROM table_name_72 WHERE result = ""draw"" AND venue = ""lord's""" "Which Rank number has a Silver of 0, Gold of 2 and total smaller than 2?",SELECT COUNT(rank) FROM table_name_56 WHERE silver = 0 AND gold = 2 AND total < 2 what is the max page size can be used in Plustek MobileOffice D28 Corporate?,"SELECT max_page_size FROM product WHERE product = ""Plustek MobileOffice D28 Corporate""" What is the height in feet of the Illinois player?,"SELECT height_in_ft FROM table_name_11 WHERE school_club_team_country = ""illinois""" List the names of wrestlers in descending order of days held.,SELECT Name FROM wrestler ORDER BY Days_held DESC The highest year for the series titled dragon laws ii: kidnapped is what?,"SELECT MAX(year) FROM table_name_12 WHERE series_title = ""dragon laws ii: kidnapped""" Show the date valid from and the date valid to for the card with card number '4560596484842'.,"SELECT date_valid_from , date_valid_to FROM Customers_cards WHERE card_number = ""4560596484842""" "How is the Credit Rating for company whose rowguid is ""33671A4E-DF2B-4879-807B-E3F930DD5C0C""?",SELECT T1.CreditRating FROM Vendor AS T1 INNER JOIN BusinessEntity AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.rowguid = '33671A4E-DF2B-4879-807B-E3F930DD5C0C' What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine?,"SELECT AVG(year) FROM table_name_25 WHERE points < 6 AND engine = ""maserati straight-6""" "what player has $187,500 and score 66-75-71-69=281","SELECT player FROM table_name_4 WHERE money___$__ = ""187,500"" AND score = 66 - 75 - 71 - 69 = 281" Which competition before 1982 had a score of 2:3?,"SELECT competition FROM table_name_96 WHERE year < 1982 AND score = ""2:3""" What was the number of Personal Staff Units Killed?,"SELECT killed FROM table_name_55 WHERE unit = ""personal staff""" Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4?,SELECT MIN(earnings__) AS $__ FROM table_name_50 WHERE wins = 4 AND rank > 4 Who manufactured the car driven by Will Power and Scott Dixon had the most laps?,"SELECT manufacturer FROM table_27913160_3 WHERE driver = ""Will Power"" AND most_laps_led = ""Scott Dixon""" "Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?","SELECT class FROM table_name_12 WHERE frequency_mhz > 91.5 AND city_of_license = ""hyannis, nebraska""" "Which Date has an Opponent of newcastle united, and a Result of 2–1?","SELECT date FROM table_name_66 WHERE opponent = ""newcastle united"" AND result = ""2–1""" What month before 1973 is listed for the album united we stand?,"SELECT month FROM table_name_83 WHERE year < 1973 AND album = ""united we stand""" "If the varsity team is 6, what is the location?",SELECT location FROM table_22319599_1 WHERE varsity_teams = 6 Calculate the average duration of absense of female students.,SELECT AVG(T2.month) FROM person AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T1.name = T3.name WHERE T3.name IS NULL "In what Week has a Result of l 24–20, and a Opponent of at new england patriots?","SELECT MAX(week) FROM table_name_32 WHERE result = ""l 24–20"" AND opponent = ""at new england patriots""" What is the purpose for the katherine freq of 8rn?,"SELECT purpose FROM table_name_50 WHERE freq_currently = ""8rn"" AND area_served = ""katherine""" How many championships does Evergreen Premier League have?,"SELECT MAX(championships) FROM table_name_48 WHERE league = ""evergreen premier league""" What is the Date of the Competition with a Result of 3–0?,"SELECT date FROM table_name_75 WHERE result = ""3–0""" What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?,"SELECT class FROM table_name_13 WHERE race = ""budweiser grand prix of miami"" AND length = ""3 hours""" Which Score has a Date of may 20?,"SELECT score FROM table_name_76 WHERE date = ""may 20""" What is the greatest interview that has a swimsuit less than 8.838?,SELECT MAX(interview) FROM table_name_98 WHERE swimsuit < 8.838 For which tournament was Anthony Wall the runner-up?,"SELECT tournament FROM table_name_11 WHERE runner_s__up = ""anthony wall""" "Among the country member of 'IOC' organization, which country has the most population?",SELECT T2.Name FROM isMember AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Organization = 'IOC' ORDER BY T2.Population DESC LIMIT 1 "Which Date has a Score of 4–5, and a Game smaller than 4?","SELECT date FROM table_name_33 WHERE score = ""4–5"" AND game < 4" Which school joined in 1971 and left in 1975?,"SELECT school FROM table_name_15 WHERE year_joined = ""1971"" AND year_left = ""1975""" "What is the frequency MHz in tremonton, utah with a ERP W larger than 30?","SELECT frequency_mhz FROM table_name_50 WHERE erp_w > 30 AND city_of_license = ""tremonton, utah""" What is the ship date of the order by the customer named Ann Chong in the central region?,SELECT T2.`Ship Date` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Ann Chong' AND T1.Region = 'Central' "What are the different card types, and how many transactions have been made with each?","SELECT T2.card_type_code , count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code" "What team was the opponent in a week earlier than 17 on June 17, 2006?","SELECT opponent FROM table_name_91 WHERE week < 17 AND date = ""june 17, 2006""" Which of the film directed by director Abbas Kiarostami has the highest average score?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.director_name = 'Abbas Kiarostami' GROUP BY T2.movie_title ORDER BY SUM(T1.rating_score) / COUNT(T1.rating_id) DESC LIMIT 1 What is the 1952 rate when the 1954 is more than 4.2?,SELECT SUM(1952) FROM table_name_37 WHERE 1954 > 4.2 What was the score on 14 march 2004?,"SELECT score FROM table_name_39 WHERE date = ""14 march 2004""" Show the locations of schools that have more than 1 player.,SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1 What result had a score of 3–0?,"SELECT result FROM table_name_50 WHERE score = ""3–0""" "What are the grapes, appelations, and wines with scores above 93, sorted by Name?","SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name" List all the films that are rated as PG-13.,SELECT title FROM film WHERE rating = 'PG-13' Name the try bonus of points against at 430,"SELECT try_bonus FROM table_12792876_4 WHERE points_against = ""430""" What is the enrollment at delaware valley college?,"SELECT MAX(joined_mac) FROM table_261906_2 WHERE institution = ""Delaware Valley College""" "Find the paper ID, title, published year and journal's full name of the paper which included the most number in author.","SELECT T1.Id, T1.Title, T1.Year, T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id GROUP BY T2.AuthorId ORDER BY COUNT(T2.AuthorId) DESC LIMIT 1" What is the percentage ratio of students who are enlisted in foreign legions that have a due payment?,"SELECT CAST(SUM(IIF(T1.bool = 'pos', 1, 0)) AS REAL) * 100 / SUM(IIF(T1.bool = 'neg', 1, 0)) FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'foreign_legion'" What is the primary type of all single female employees hired between 1/1/2008 to 12/31/2008?,"SELECT T2.PersonType FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'F' AND T1.MaritalStatus = 'S' AND STRFTIME('%Y-%m-%d', T1.HireDate) BETWEEN '2008-1-1' AND '2008-12-31' GROUP BY T2.PersonType ORDER BY COUNT(T2.PersonType) DESC LIMIT 1" What is the 2003 value with 1r in 2009 at the Australian Open?,"SELECT 2003 FROM table_name_16 WHERE 2009 = ""1r"" AND tournament = ""australian open""" What was the loss of the game with a record of 54–42?,"SELECT loss FROM table_name_63 WHERE record = ""54–42""" Which position has 5 total apps?,"SELECT position FROM table_name_39 WHERE total_apps = ""5""" "Show the total number of rooms of all apartments with facility code ""Gym"".","SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""" On which date did Geelong play at home?,"SELECT date FROM table_name_74 WHERE home_team = ""geelong""" What district is the parish who had the South Cambridgeshire rural district as the former local authority?,"SELECT district FROM table_name_71 WHERE former_local_authority = ""south cambridgeshire rural district""" Name who wrote number 88,SELECT written_by FROM table_23235679_1 WHERE no_in_series = 88 How many polls taken on different dates show an undecided percentage of 25%?,"SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = ""25%""" Find the names of stores whose number products is more than the average number of products.,SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop) What is every team in the location of Port Moresby?,"SELECT team FROM table_2383498_4 WHERE location = ""Port Moresby""" Which are the 2 rivers located at Belgrade city? Which river is longer and how by much?,"SELECT T1.Name, T1.Length FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN city AS T3 ON T3.Name = T2.City WHERE T3.Name = 'Belgrade'" "How many times did the word pair ""i"" and ""a"" appeared in the Cataln language/page?",SELECT SUM(occurrences) FROM biwords WHERE w1st = 86 AND w2nd = 109 What is the forename and birthdate of person number 18?,"SELECT T1.FirstName, T2.BirthDate FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.BusinessEntityID = 18" What Round is in Ullevaal?,"SELECT round FROM table_name_99 WHERE venue = ""ullevaal""" What is the cable rank for the airdate of 10 december 2009?,"SELECT cable_rank FROM table_24399615_3 WHERE airdate = ""10 December 2009""" What is the longest server time when the call is about the issue of arbitration?,SELECT MAX(T1.ser_time) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.issue = 'Arbitration' "When the home team was fitzroy, what did the away team score?","SELECT away_team AS score FROM table_name_16 WHERE home_team = ""fitzroy""" What are the sale details and dates of transactions with amount smaller than 3000?,"SELECT T1.sales_details , T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000" For all coins with average price more than $1000. State the current status of the coin.,SELECT T1.status FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id GROUP BY T1.name HAVING AVG(T2.price) > 1000 how many people come to visit when the 1654 exhibitions,SELECT COUNT(visitors__total_) FROM table_27685921_1 WHERE exhibitors__total_ = 1654 What are the three products that have the most problems?s,SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3 What is the average number of pages of David Coward's books?,SELECT AVG(T1.num_pages) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'David Coward' "What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?",SELECT SUM(total_region) FROM table_name_2 WHERE year = 1954 AND nebo > 447 What circuit did Innes Ireland win at for the I lombank trophy?,"SELECT circuit FROM table_name_35 WHERE winning_driver = ""innes ireland"" AND race_name = ""i lombank trophy""" What are the names of all pilots 30 years old or young in descending alphabetical order?,SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC What is the code of the project A Magnetic Primer Designer?,SELECT code from Projects WHERE Name = 'A Magnetic Primer Designer' "How many pommel Horses have Rings of 37.461, and a Total smaller than 229.507?",SELECT COUNT(pommel_horse) FROM table_name_16 WHERE rings = 37.461 AND total < 229.507 What is the start of Offy engine and in 1972?,"SELECT start FROM table_name_76 WHERE engine = ""offy"" AND year = 1972" What is the average hours across all projects?,SELECT avg(hours) FROM projects Find the vendor with the least average lead time for Product ID 348.,SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.ProductID = 348 ORDER BY T1.AverageLeadTime ASC LIMIT 1 "What is the opponent on May 25, 2007?","SELECT opponent FROM table_name_98 WHERE date = ""may 25, 2007""" Show the names of members and names of colleges they go to.,"SELECT T2.Name , T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID" what is the nme of the song performed by billy vaughn?,"SELECT song_title FROM table_13804825_2 WHERE artist = ""Billy Vaughn""" what is the claim id of open,select Claim_ID from Claims_Processing_Stages AS T1 JOIN Claims_Processing AS T2 ON T1.Claim_Stage_ID = T2.Claim_Stage_ID WHEREClaim_Status_Name = 'Open' Find the names of customers who have no policies associated.,SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id What are the names of the people who teach math courses?,"SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = ""Math""" "Which venue exceeded a crowd size of 33,642?",SELECT venue FROM table_name_26 WHERE crowd > 33 OFFSET 642 "What are the different ways the name of the author, Randall Davis, is written on their papers?",SELECT DISTINCT T1.Name FROM PaperAuthor AS T1 INNER JOIN Author AS T2 ON T1.AuthorId = T2.Id WHERE T2.Name = 'Randall Davis' AND T1.Name != 'Randall Davis' "Which Pick has a Nationality of canada, and a Round of 5?","SELECT pick FROM table_name_98 WHERE nationality = ""canada"" AND round = 5" What is the number of female graduates between 2011 to 2013 from the state where 'Gateway Community College' is located?,SELECT COUNT(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year BETWEEN 2011 AND 2013 AND T1.chronname = 'Gateway Community College' AND T2.gender = 'F' Who was on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt?,"SELECT jons_team FROM table_23292220_13 WHERE seans_team = ""Matthew Crosby and Kimberly Wyatt""" What is the Airport for New York City?,"SELECT airport FROM table_name_30 WHERE city = ""new york""" What season did Wolverhampton Wanderers win?,"SELECT season FROM table_name_5 WHERE winner = ""wolverhampton wanderers""" What is the label for the album with a catalog number of 83061-2?,"SELECT label FROM table_name_96 WHERE catalog__number = ""83061-2""" What team is Jim Garcia category:Articles with Hcards on?,"SELECT team FROM table_name_95 WHERE player = ""jim garcia category:articles with hcards""" What country of argentina has the To par of 68?,"SELECT to_par FROM table_name_51 WHERE score = 68 AND country = ""argentina""" show me the name of dorms that are no gender specific?,"SELECT dorm_name FROM dorm where gender = ""X""" How much is the total price of all the orders shipped to customers in Argentina?,SELECT SUM(T3.o_totalprice) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey INNER JOIN orders AS T3 ON T1.c_custkey = T3.o_custkey WHERE T2.n_name = 'ARGENTINA' Who is the artist of the Seattle Seahawks track?,"SELECT artist_s_ FROM table_name_39 WHERE team_s_ = ""seattle seahawks""" display the ID for those employees who did two or more jobs in the past.,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 How many images contain 'bridge' as an object element?,SELECT COUNT(DISTINCT T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'bridge' "Which customers have orders with status ""Packing""? Give me the customer names.","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Packing""" "What was the margin of victory for the event in lake forest, illinois?","SELECT margin_of_victory FROM table_275162_1 WHERE location = ""Lake Forest, Illinois""" When was there a result of 5-1?,"SELECT date FROM table_name_41 WHERE result = ""5-1""" Who played the mathematics student?,"SELECT played_by FROM table_2933761_1 WHERE occupation = ""Mathematics Student""" what's the preliminaries with average being 9.360,"SELECT preliminaries FROM table_11970261_2 WHERE average = ""9.360""" What game took place on April 28?,"SELECT game FROM table_name_33 WHERE date = ""april 28""" "Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?","SELECT lead FROM table_name_17 WHERE city = ""winnipeg"" AND third_vice_skip = ""kevin park""" What was his date of birth?,SELECT EMP_DOB FROM employee ORDER BY emp_dob LIMIT 1 How many dogs went through any treatments?,SELECT count(DISTINCT dog_id) FROM Treatments Find the number of different airports which are the destinations of the American Airlines.,SELECT COUNT(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' "For each delegate, find the names of the party they are part of.","SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID" "List the order id, customer id for orders in Cancelled status, ordered by their order dates.","SELECT order_id , customer_id FROM customer_orders WHERE order_status_code = ""Cancelled"" ORDER BY order_date" In which location did he win the Superbrawl 16 event?,"SELECT location FROM table_name_57 WHERE res = ""win"" AND event = ""superbrawl 16""" Which document has the most draft copies? List its document id and number of draft copies.,"SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;" When pokémon ieru kana? bw is the romaji who is the vocalist?,"SELECT vocalist FROM table_2144389_9 WHERE rōmaji = ""Pokémon ieru kana? BW""" What job is person number 322 currently holding?,SELECT T1.Name FROM ContactType AS T1 INNER JOIN BusinessEntityContact AS T2 ON T1.ContactTypeID = T2.ContactTypeID WHERE T2.BusinessEntityID = 332 how much population of zip code D21?,"SELECT population from county where zip_code = ""D21""" List all the scraped work orders for handling damage reason.,SELECT T2.WorkOrderID FROM ScrapReason AS T1 INNER JOIN WorkOrder AS T2 ON T1.ScrapReasonID = T2.ScrapReasonID WHERE T1.Name = 'Handling damage' "What is the description, code and the corresponding count of each service type?","SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code" What is the highest total value when bask and base are each 3?,"SELECT MAX(total) FROM table_name_37 WHERE bask = ""3"" AND base = ""3""" What place has the most flights coming from there?,SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1 Can you please provide me with a list of all customer names and phone numbers?,"SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id" "What are the names, locations, and years of opening for tracks with seating higher than average?","SELECT name , LOCATION , year_opened FROM track WHERE seating > (SELECT avg(seating) FROM track)" What is the name and directors of all the cartoons that are ordered by air date?,"SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date" What is the date of Gavril Radomir's Bulgarian Victory?,"SELECT date FROM table_name_15 WHERE result = ""bulgarian victory"" AND bulgarian_commander = ""gavril radomir""" Oklahoma State produced a player in which position in the draft?,"SELECT position FROM table_name_26 WHERE school_club_team = ""oklahoma state""" What is the last name of the contact individual from the Labour party organization who was contacted most recently?,"SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = ""Labour Party"" ORDER BY t2.date_contact_to DESC LIMIT 1" What was the total attendance with a result of W 31-21 before week 9?,"SELECT COUNT(attendance) FROM table_name_13 WHERE result = ""w 31-21"" AND week < 9" Can you also give me the name of the customer who has made the maximum amount of payment in one claim?,SELECT t3.Customer_Details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = ( SELECT max ( amount_piad ) FROM claim_headers ) "What nation has a total less than 11, more than 1 silver and less than 1 bronze?",SELECT nation FROM table_name_58 WHERE total < 11 AND silver < 1 AND bronze < 1 Which race has a position of 3rd and a speed of 123.628?,"SELECT race FROM table_name_90 WHERE position = ""3rd"" AND speed = ""123.628""" Which Music has a Dance of Modern?,"SELECT music FROM table_name_79 WHERE dance = ""modern""" How many Yelp_Businesses do not provide alcohol?,SELECT COUNT(T1.attribute_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Alcohol' AND T2.attribute_value LIKE 'none' What team opposed Tipperary in the Munster Final game?,"SELECT team FROM table_name_98 WHERE opposition = ""tipperary"" AND game = ""munster final""" What was the winning score in the Sybase Classic tournament?,"SELECT winning_score FROM table_1940012_2 WHERE tournament = ""Sybase Classic""" How many distinct locations have the things with service detail 'Unsatisfied' been located in?,SELECT COUNT(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied' The los angeles kings drafted what player in the 7th round,"SELECT player FROM table_1473672_7 WHERE nhl_team = ""Los Angeles Kings""" What is the date that the record was 51-14?,"SELECT date FROM table_name_62 WHERE record = ""51-14""" Which of those customers have more than 2 orders?,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING count ( * ) > 2 What is the Bronze in the year there was a Total of 0 medals and 6 Competitors?,"SELECT bronze FROM table_name_74 WHERE total = ""0"" AND competitors = ""6""" Name the laid down for completed of 22 october 1934,"SELECT laid_down FROM table_name_67 WHERE completed = ""22 october 1934""" What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?,"SELECT last_match FROM table_name_26 WHERE date_of_vacancy = ""round 2"" AND outgoing_manager = ""ney franco""" What is the route/via when the destination is listed as Madurai?,"SELECT route_via FROM table_29202276_2 WHERE destination = ""Madurai""" show me the types of competition that has at most competitions of that type,SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT ( * ) < = 5 What is the total number of rounds of the player with a pick of 20?,SELECT COUNT(round) FROM table_name_87 WHERE pick = 20 What school has the nickname of Cardinals?,"SELECT MIN(founded) FROM table_name_9 WHERE nickname = ""cardinals""" "Write down the organization, year, award, and award category in which Rene Balcer is the winner.","SELECT T2.organization, T2.year, T2.award, T2.award_category FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T1.name = 'Rene Balcer' AND T2.result = 'Winner'" what is the train number of sewagram exp,"SELECT Train_Num from train where Name = ""Sewagram Exp""" What are the duration's of the longest and shortest track in milliseconds.,"SELECT max ( Milliseconds ) , min ( Milliseconds ) FROM TRACK" What's the average year with a rank less than 3?,SELECT AVG(year) FROM table_name_91 WHERE rank < 3 List the names of editors in ascending order of age.,SELECT Name FROM editor ORDER BY Age ASC What is the verb for the Proto-Austronesian word *diri?,"SELECT verb FROM table_name_86 WHERE proto_austronesian = ""*diri""" How many delivery route location in this table?,"SELECT t2.location_code,count ( * ) FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id" List the 3 highest salaries of the players in 2001?,SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3; What is the release date if the code name is Aoba?,"SELECT release_date FROM table WHERE code_name = ""Aoba""" List the full name its capital of all the countries with parliamentary democracy government.,SELECT T1.Capital FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Government = 'parliamentary democracy' Provide the production companies of the movie that has over 35% average running time per movie in 2016.,"SELECT T.company_name FROM ( SELECT DISTINCT T3.company_name, T1.runtime FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' ) T WHERE T.runtime * 100 > (0.35 * ( SELECT AVG(T1.runtime) FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' ) + ( SELECT AVG(T1.runtime) FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' )) * 100" "Among the sales with a tax applied to retail transaction, how many of them are charged by multiple types of taxes?",SELECT COUNT(SalesTaxRateID) FROM SalesTaxRate WHERE Name LIKE '%+%' "Which country had a series that premiered on September 4, 2006?","SELECT country FROM table_name_77 WHERE series_premiere = ""september 4, 2006""" What is Jimmy Smith's opponent's record?,"SELECT record FROM table_name_70 WHERE opponent = ""jimmy smith""" in the drum module td-5 what are the tom-tom pads,"SELECT tom_tom_pads FROM table_2889300_6 WHERE drum_module = ""TD-5""" "What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost?",SELECT MIN(against) FROM table_name_17 WHERE drawn < 2 AND points = 10 AND lost < 4 "What are the names of wines, sorted in alphabetical order?",SELECT DISTINCT Name FROM WINE ORDER BY Name How many seasons have the production code 7.01 for an episode? ,"SELECT MAX(no_in_season) FROM table_2226817_8 WHERE production_code = ""7.01""" What is the name of the oldest student?,SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' ) Please list the names of the top three movies in the number of likes related to the critic made by the user rating the movie.,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_likes DESC LIMIT 3 "What is Combined, when Super G is less than 10, and when Overall is less than 4?",SELECT combined FROM table_name_46 WHERE super_g < 10 AND overall < 4 "List the name and number of followers for each user, and sort the results by the number of followers in descending order.","SELECT name, followers FROM user_profiles ORDER BY followers DESC" What is the name of the customer with the worst credit score?,SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 Who is the male talent in 1991?,SELECT talent__male_ FROM table_name_39 WHERE year = 1991 How many diffrent dorm amenities are there?,SELECT count(*) FROM dorm_amenity Who was the opponent when Footscray played as the home team?,"SELECT away_team AS score FROM table_name_62 WHERE home_team = ""footscray""" What are the names and headquarters of all companies ordered by descending market value?,"SELECT company , headquarters FROM company ORDER BY market_value DESC" And how many of those six distinct residences have More than one player?,select count ( * ) from ( SELECT * FROM player GROUP BY Residence HAVING COUNT ( * ) > 1 ) Can you list the events that have participents whose details had the substring 'Dr.'?,SELECT T2.event_id FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%' How many artists are male and how many are female?,"SELECT count(*) , gender FROM artist GROUP BY gender" "What is the highest number of wins when draws are larger than 1, and byes are larger than 0?",SELECT MAX(wins) FROM table_name_59 WHERE draws > 1 AND byes > 0 What are the names of students who have taken Statistics courses?,SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' with shares of 45.3% and total seats less than 166. what is the greatest number of seat?,"SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = ""45.3%"" AND total_seats < 166" "Which solution contains files within a more popular repository, the solution ID18 or solution ID19?",SELECT CASE WHEN SUM(CASE WHEN T2.Id = 18 THEN T1.Watchers ELSE 0 END) > SUM(CASE WHEN T2.Id = 19 THEN T1.Watchers ELSE 0 END) THEN 'SolutionID18' WHEN SUM(CASE WHEN T2.Id = 18 THEN T1.Watchers ELSE 0 END) < SUM(CASE WHEN T2.Id = 19 THEN T1.Watchers ELSE 0 END) THEN 'SolutionID19' END isMorePopular FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId Which method was used when Rafael Cavalcante was the opponent?,"SELECT method FROM table_name_2 WHERE opponent = ""rafael cavalcante""" What country did Dmitriy Karpov represent?,"SELECT country FROM table_name_92 WHERE name = ""dmitriy karpov""" How about Salt Lake City? | Would you like a list of the names of all the people who live in Salt Lake City? | Who is the oldest person?,SELECT name from person order by age desc limit 1 "What are the first and last name of the president of the club ""Bootup Baltimore""?","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t2.position = ""President""" "Find the average room count of the apartments that have the ""Studio"" type code.","SELECT avg(room_count) FROM Apartments WHERE apt_type_code = ""Studio""" List every album's title.,SELECT title FROM albums; Can you display the ages associated with those student IDs?,"SELECT age FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""animal"" ) " Find the minimum grade of students who have no friends.,SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) What is the total number of hours per work and number of games played by David Shieber?,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = ""David"" AND T2.Lname = ""Shieber""" "What is the highest Total, when Season is ""1996-97"", and when Second is less than 33?","SELECT MAX(total) FROM table_name_23 WHERE season = ""1996-97"" AND second < 33" How many races did Hamilton participate in after 2010?,SELECT count ( * ) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 and T1.surname = 'Hamilton' GROUP BY T1.driverid How many users are there?,SELECT COUNT(*) FROM useracct "show the customer ids, first name and last name without a Debit card","SELECT customer_id , customer_first_name ,customer_last_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name,T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = ""Debit""" What is the name where p is mf?,"SELECT name FROM table_11891841_2 WHERE p = ""MF""" What is the profits billion of Company ExonMobil?,"SELECT Profits_billion FROM company where company = ""ExxonMobil""" "Among all the current legislators who have served for more than 4 terms, what is the percentage of them being female?","SELECT CAST(SUM(CASE WHEN gender_bio = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.bioguide) FROM ( SELECT T2.bioguide, T1.gender_bio FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 4 ) T3" "How many Assists have a Club of adler mannheim, and Points larger than 57?","SELECT SUM(assists) FROM table_name_60 WHERE club = ""adler mannheim"" AND points > 57" List the distinct positions of pilots older than 30.,SELECT DISTINCT POSITION FROM pilot WHERE Age > 30 Which year has an Engine(s) of yamaha v8?,"SELECT year FROM table_name_6 WHERE engine_s_ = ""yamaha v8""" "Great, and how many courses are there in Arts?","SELECT COUNT ( * ) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Arts""" "Which tournament was held on October 14, 2007?","SELECT tournament FROM table_name_86 WHERE date = ""october 14, 2007""" "In 1958, what has the IRFU All-Stars Home Venue?","SELECT venue FROM table_name_18 WHERE home = ""irfu all-stars"" AND season = 1958" "Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th?","SELECT date FROM table_name_88 WHERE opposing_pitcher = ""jack morris"" AND inning = ""4th""" Show the names of phones and the districts of markets they are on.,"SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID" Which product did Cruz & Sons Co. order on 2003/3/3?,SELECT t4.productName FROM orderdetails AS t1 INNER JOIN orders AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN customers AS t3 ON t2.customerNumber = t3.customerNumber INNER JOIN products AS t4 ON t1.productCode = t4.productCode WHERE t3.customerName = 'Cruz & Sons Co.' AND t2.orderDate = '2003-03-03' Find the number of checking accounts for each account name.,"SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name" "Which archbishop vacated the throne on May 17, 1907?","SELECT archbishop FROM table_name_42 WHERE vacated_throne = ""may 17, 1907""" How many overall in the year 2010-2011?,"SELECT COUNT(overall) FROM table_21756039_1 WHERE year = ""2010-2011""" Return the famous release date for the oldest artist.,SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 What is the IATA that has new south wales as the state/territory beginning on july 2009?,"SELECT iata FROM table_name_1 WHERE state_territory = ""new south wales"" AND begin = ""july 2009""" Which position does Colt Brennan play?,"SELECT position FROM table_10966926_2 WHERE player_name = ""Colt Brennan""" What was the result of the game on week 1?,SELECT result FROM table_name_4 WHERE week = 1 Find mane of the service that has never been used.,SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id What year was Robert Skibniewski born?,"SELECT year_born FROM table_12962773_16 WHERE player = ""Robert Skibniewski""" What's the value for utah when colorado and new mexico are bush?,"SELECT utah FROM table_name_7 WHERE colorado = ""bush"" AND new_mexico = ""bush""" What is the sum of NGC numbers for Constellation vela?,"SELECT SUM(ngc_number) FROM table_name_16 WHERE constellation = ""vela""" Find the titles of items whose rating is higher than the average review rating of all items.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > (SELECT avg(rating) FROM review) "What is the sum of Bronze when the rank is 7, and the total is more than 22?",SELECT SUM(bronze) FROM table_name_19 WHERE rank = 7 AND total > 22 List the builders of railways in ascending alphabetical order.,SELECT Builder FROM railway ORDER BY Builder ASC What year was the game that ended with a score of 24-14?,"SELECT AVG(year) FROM table_name_22 WHERE result = ""24-14""" What title episode did Paris Barclay direct?,"SELECT title FROM table_20726262_2 WHERE directedby = ""Paris Barclay""" What is the smallest production number for the LT series with the Dumb Patrol title?,"SELECT MIN(production_num) FROM table_name_85 WHERE series = ""lt"" AND title = ""dumb patrol""" "Based on the population in 2020, calculate the percentage for the population of Asian in the zip code where the CBSA was Atmore, AL.","SELECT CAST(T2.asian_population AS REAL) * 100 / T2.population_2010 FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Atmore, AL'" "What's listed as the Issue Price (BU) [Clarification Needed] with a Mintage (Proof) of 29,586?","SELECT issue_price__bu_[_clarification_needed_] FROM table_name_57 WHERE mintage__proof_ = ""29,586""" Name the conference record where seed is 3 and record is 24-9,"SELECT conf_record FROM table_16295365_2 WHERE seed = ""3"" AND record = ""24-9""" Which chemical class uses the example Chloroethane (ethyl chloride)?,"SELECT chemical_class FROM table_name_90 WHERE example = ""chloroethane (ethyl chloride)""" I want the greatest attendance when the opponent is the chicago bears,"SELECT MAX(attendance) FROM table_name_64 WHERE opponent = ""chicago bears""" What are the monthly rentals of student?,SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id Find the job ID for those jobs which average salary is above 8000.,SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000 Find the number of schools that have more than one donator whose donation amount is less than 8.5.,SELECT count(*) FROM (SELECT * FROM endowment WHERE amount < 8.5 GROUP BY school_id HAVING count(*) > 1) When mcwilliams-franklin (8) has the highest rebounds what is the date?,"SELECT date FROM table_18904831_6 WHERE high_rebounds = ""McWilliams-Franklin (8)""" What was segment A when segment B was snowboards? ,"SELECT segment_a FROM table_15187735_1 WHERE segment_b = ""Snowboards""" Show the name of the building that has the most company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 "What are flight numbers of flights arriving at Airport ""APG""?","SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ""APG""" "What is listed as the highest Rank that has a Gold that's larger than 0, and Participants that's smaller than 10?",SELECT MAX(rank) FROM table_name_6 WHERE gold > 0 AND participants < 10 On what date did Collingwood play at home?,"SELECT date FROM table_name_20 WHERE home_team = ""collingwood""" Name the distance for stage of 2,"SELECT distance FROM table_name_5 WHERE stage = ""2""" name the total number of top 10 also where the position is 51st ,"SELECT COUNT(top_10) FROM table_1671401_3 WHERE position = ""51st""" What was the highest week with a result of l 16–12?,"SELECT MAX(week) FROM table_name_53 WHERE result = ""l 16–12""" What was the score of the March 14 game?,"SELECT score FROM table_name_95 WHERE date = ""march 14""" "What is the lowest population that has Big Hole Tract 8 (south) as the official name, with an area km 2 greater than 27.82?","SELECT MIN(population) FROM table_name_50 WHERE official_name = ""big hole tract 8 (south)"" AND area_km_2 > 27.82" "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.","SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1" Which Opponent has an Attendance of bye?,"SELECT opponent FROM table_name_76 WHERE attendance = ""bye""" "What is Harris, when Marplan is 1.3%","SELECT harris FROM table_name_84 WHERE marplan = ""1.3%""" Show all cities where at least one customer lives in but no performer lives in.,SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID "Of all the teams coached by the winner of the 1994 NBA Coach of the Year award, which team has lost the most times playing at home?",SELECT T3.tmID FROM awards_coaches AS T1 INNER JOIN coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T1.year = 1994 AND T1.award = 'NBA Coach of the Year' GROUP BY T3.tmID ORDER BY SUM(T3.homeLost) DESC LIMIT 1 What is the average rating of each reviewer.,"SELECT T2.name , avg ( T1.stars ) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name" Who was the developer of XCom: Enemy Unknown?,"SELECT developer_s_ FROM table_name_98 WHERE game = ""xcom: enemy unknown""" What is the precise location of the Sac State American River Courtyard?,"SELECT T2.Latitude, T2.Longitude FROM location AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID WHERE T1.LocationName = 'Sac State American River Courtyard'" What are the title and maximum price of each film?,"SELECT T2.title , max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id" How many records do they have?,"SELECT T2.Pilot_id , COUNT ( * ) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID where T2.pilot_ID = 1 or T2.pilot_id = 2 GROUP BY T2.Pilot_id" "Which customers have an insurance policy with the type code ""Deputy""? Give me the customer details.","SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy""" What are the names of the tourist attractions that can be accessed by bus or walk?,"SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus"" OR How_to_Get_There = ""walk""" "Find and list the company name, company contact name, and contact title of customers from Madrid.","SELECT CompanyName, ContactName, ContactTitle FROM Customers WHERE City = 'Madrid'" How many parks are there in the state of NY?,SELECT count(*) FROM park WHERE state = 'NY'; "What is the average total number of passengers of airports that are associated with aircraft ""Robinson R-22""?","SELECT AVG(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = ""Robinson R-22""" Thank You. Can you provide the department code for each of these?,SELECT distinct ( DEPT_CODE ) FROM DEPARTMENT What gender is Alice?,"SELECT gender from person where name = ""Alice""" What is the number of people in attendance when the time is 3:00?,"SELECT attendance FROM table_name_82 WHERE time = ""3:00""" "What was the venue for the dates 1,2,3,4,6,7 jan 1908?","SELECT venue FROM table_name_64 WHERE date = ""1,2,3,4,6,7 jan 1908""" What is the tries for when the points against is 214?,"SELECT tries_for FROM table_name_25 WHERE points_against = ""214""" "What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376?",SELECT AVG(upper_index_mj__nm_3) FROM table_name_70 WHERE upper_index_kcal__nm_3 = 19 OFFSET 376 Which nominations are connected to the film Totalitarian Romance?,"SELECT nomination FROM table_10236830_4 WHERE film_name = ""Totalitarian Romance""" What was the manner of departure for the manager of Cercle Brugge?,"SELECT manner_of_departure FROM table_27374004_3 WHERE team = ""Cercle Brugge""" "That's an amazingly precise number, thank you again. Then what about the average unit price of Latin and Pop?","SELECT AVG ( UnitPrice ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Latin"" OR T1.Name = ""Pop""" What is the average score of wines not made with white grapes?,"SELECT avg ( score ) FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color ! = ""White""" Which country is the airport that has the highest altitude located in?,SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 Show the names of the buildings that have more than one company offices.,SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 "What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?",SELECT AVG(clean_) & _jerk FROM table_name_8 WHERE total__kg_ > 204 AND snatch > 98 Please show the most common age of editors.,SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1 "How many overs were there in each innings of match ID ""336011""?","SELECT SUM(CASE WHEN Innings_No = 1 THEN 1 ELSE 0 END) AS IN1 , SUM(CASE WHEN Innings_No = 2 THEN 1 ELSE 0 END) AS IN2 FROM Ball_by_Ball WHERE Match_Id = 336011" Please list the IDs of the teachers who have advised more than 4 others to teach.,SELECT p_id_dummy FROM advisedBy GROUP BY p_id_dummy HAVING COUNT(p_id_dummy) > 4 "Name the married filing separately for single of $0–$8,350","SELECT married_filing_separately FROM table_name_77 WHERE single = ""$0–$8,350""" Who was the home team when Sheffield United was the away team and the date was also Sheffield United?,"SELECT home_team FROM table_name_39 WHERE away_team = ""sheffield united"" AND date = ""sheffield united""" "Who are the actors of film titled ""BIRD INDEPENDENCE""?","SELECT T3.first_name, T3.last_name FROM film AS T1 INNER JOIN film_actor AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T2.actor_id = T3.actor_id WHERE T1.title = 'BIRD INDEPENDENCE'" "What types of vocals are used in the song ""Badlands""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" Which nationality does Florida Tech have?,"SELECT nationality FROM table_name_1 WHERE school = ""florida tech""" How many laps did Jeff Burton have when he drove car with a # over 9 and more than 118 points?,"SELECT COUNT(laps) FROM table_name_82 WHERE car__number > 9 AND driver = ""jeff burton"" AND points > 118" In which Olympic Games have the largest number of women participation?,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.gender = 'F' GROUP BY T1.games_name ORDER BY COUNT(T2.person_id) DESC LIMIT 1 what is the minimum production code,SELECT MIN(production_code) FROM table_12294557_3 Could you please help me with the billing addresses of the named customers?,"SELECT T1.FirstName, T1.lastname, T2.billingaddress FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId" "Which Car # has a Driver of ryan newman, and a Position larger than 10?","SELECT MIN(car__number) FROM table_name_39 WHERE driver = ""ryan newman"" AND pos > 10" "List names of all teams in the basketball competition, ordered by all home scores in descending order.",SELECT team_name FROM basketball_match ORDER BY All_Home DESC "Show the rank, first name, and last name for all the faculty.","SELECT rank , Fname , Lname FROM Faculty" How many millions of U.S. viewers watched the episode with the production code of 3AJN01?,"SELECT us_viewers__millions_ FROM table_23242958_1 WHERE production_code = ""3AJN01""" What is every denomination for the school Seymour college?,"SELECT denomination FROM table_22043925_1 WHERE school = ""Seymour College""" What is the number of NBA titles that Ray Allen has won throughout his NBA career?,SELECT COUNT(T1.playerID) FROM player_allstar AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE first_name = 'Ray' AND last_name = 'Allen' How many gold medals on average were earned by Italy when they held the rank of 4?,"SELECT AVG(gold) FROM table_name_5 WHERE nation = ""italy"" AND rank > 4" "Now, can you please tell me the name and id of the good with the highest average rank?","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.rank ) DESC LIMIT 1" Who is the winner of the European Poker Tour Grand Final?,"SELECT winner FROM table_name_11 WHERE event = ""european poker tour grand final""" "What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?","SELECT SUM(week) FROM table_name_97 WHERE opponent = ""houston oilers"" AND attendance > 54 OFFSET 582" List the text of all tweets in the order of date.,SELECT text FROM tweets ORDER BY createdate "List every individual's first name, middle name and last name in alphabetical order by last name.","SELECT individual_first_name , individual_middle_name , individual_last_name FROM individuals ORDER BY individual_last_name" Filter the track table to show only those records with unit price bigger than 1,SELECT * FROM track WHERE UnitPrice>1 In what region is the enrollment ratio in primary 94.40?,"SELECT region FROM table_25042332_22 WHERE primary__6_13_years_ = ""94.40""" "What were the w/l when the final score was 2–6, 5–7, 7–6 (11–9) , 1–6?","SELECT w_l FROM table_23563375_11 WHERE result = ""2–6, 5–7, 7–6 (11–9) , 1–6""" What is the id of every employee who has at least a salary of 100000?,SELECT eid FROM Employee WHERE salary > 100000 What are all the contract ids,SELECT maintenance_contract_id FROM Maintenance_Contracts What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?,"SELECT winning_score FROM table_name_27 WHERE margin_of_victory = ""1 stroke"" AND runner_s__up = ""robert-jan derksen""" What are the ids and names of the battles that led to more than 10 people killed in total.,"SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10" Do you know the total credits for the Civil Eng. Department? | Did you want the sum of total credits across all students in the Civil Eng. department? | Sure.,"SELECT SUM ( tot_cred ) FROM student WHERE dept_name = ""Civil Eng.""" Which Game has High assists of s. threatt (9)?,"SELECT MIN(game) FROM table_name_97 WHERE high_assists = ""s. threatt (9)""" What is the lowest measure number for the measure with a 33.57% yes percentage?,"SELECT MIN(meas_num) FROM table_256286_19 WHERE _percentage_yes = ""33.57%""" What is the percentage of male students in the navy department?,SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM enlist AS T1 LEFT JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy' "Can you show me the director names together with the name and years? | Did you mean the directors of the movies that have the top 3 highest rating stars? | Yes, director names, movie names and years please.","SELECT T2.title , T2.year, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" "For the genus/species arabidopsis thaliana, what are the lengths? ","SELECT length FROM table_15417439_1 WHERE genus_species = ""Arabidopsis thaliana""" "Show the residences that have both a player of gender ""M"" and a player of gender ""F"".","SELECT Residence FROM player WHERE gender = ""M"" INTERSECT SELECT Residence FROM player WHERE gender = ""F""" What is the product with the most profit?,SELECT T1.ProductID FROM ProductListPriceHistory AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID ORDER BY T1.ListPrice - T2.StandardCost DESC LIMIT 1 What is umbro's highest capacity?,"SELECT MAX(capacity) FROM table_name_23 WHERE kitmaker = ""umbro""" "What is Career Win-Loss, when 2002 is ""A"", and when 2001 is ""4R""?","SELECT career_win_loss FROM table_name_70 WHERE 2002 = ""a"" AND 2001 = ""4r""" "Find all the stage positions of the musicians with first name ""Solveig""","SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = ""Solveig""" What is the total number of James Bond 007: Everything or Nothing for each system?,"SELECT COUNT(system) FROM table_10875694_11 WHERE title = ""James Bond 007: Everything or Nothing""" What was the date for the Champs Sports Bowl?,"SELECT date FROM table_20996923_20 WHERE bowl_game = ""Champs Sports Bowl""" Who was the champion that drove the car with the Ford engine in 1971?,"SELECT champion FROM table_name_28 WHERE engine = ""ford"" AND season = ""1971""" What is the total amount of settlement made for all the settlements?,SELECT sum(Amount_Settled) FROM Settlements What is the difference in number of unit price from Chef Anton's Cajun Seasoning product and Chef Anton's Gumbo Mix product of New Orleans Cajun Delights company.,SELECT ( SELECT T1.UnitPrice FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'New Orleans Cajun Delights' AND T1.ProductName LIKE 'Chef Anton%s Cajun Seasoning' ) - ( SELECT T1.UnitPrice FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'New Orleans Cajun Delights' AND T1.ProductName LIKE 'Chef Anton%s Gumbo Mix' ) AS calu Show names of actors in descending order of the year their musical is awarded.,SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC How many students are on scholarship?,SELECT count ( * ) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' "On what date did a friendly competition, hosted in Dubai, result in a draw?","SELECT date FROM table_name_79 WHERE result = ""draw"" AND competition = ""friendly"" AND venue = ""dubai""" What are the countries that contain 3 or more cities?,SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING count(*) >= 3 Find the year which offers the largest number of courses.,SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 Provide the business entity ID who did not achieved projected yearly sales quota in 2013.,"SELECT DISTINCT T1.BusinessEntityID FROM SalesPerson AS T1 INNER JOIN SalesPersonQuotaHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T2.QuotaDate) = '2013' AND T1.SalesQuota < T1.SalesLastYear" What was the venue of season 1907?,"SELECT venue FROM table_name_48 WHERE season = ""1907""" "Return the description of the product called ""Chocolate"".","SELECT product_description FROM products WHERE product_name = ""Chocolate""" Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?,"SELECT opponent FROM table_name_65 WHERE type = ""ud"" AND round = ""10"" AND date = ""2008-06-11""" How many players were in the team Boston Red Stockings in 2000?,SELECT COUNT(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000 Which country is ranked number 2 and has less than 5 total medals?,SELECT COUNT(silver) FROM table_name_61 WHERE rank = 2 AND total < 5 What is listed as the Tie no for Home team of Gillingham?,"SELECT tie_no FROM table_name_43 WHERE home_team = ""gillingham""" What percentage of the movies are PG-13?,"SELECT CAST(SUM(IIF(rating = 'PG-13', 1, 0)) AS REAL) * 100 / COUNT(film_id) FROM film" List the id of students who attended some courses?,SELECT student_id FROM student_course_attendance Yes. Can you please provide the name in alphabetical order?,SELECT name FROM products WHERE price > = 180 order by name ASC State the address of Amy Klobuchar at the term of 4th of January 2001.,SELECT T2.address FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Amy' AND T1.last_name = 'Klobuchar' AND T2.start = '2001-04-01' What is the exact location of the crimes that occurred in the Belmont Cragin community?,"SELECT T2.latitude, T2.longitude FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Belmont Cragin' GROUP BY T2.latitude, T2.longitude" When was Alexey Kuleshov born?,"SELECT birth_date FROM table_19900792_1 WHERE player = ""Alexey Kuleshov""" "What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?","SELECT AVG(season) FROM table_name_64 WHERE venue = ""circuit de nevers magny-cours"" AND drivers > 30" What are the attributes of the widest object in image 400?,SELECT T1.ATT_CLASS FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID WHERE T2.IMG_ID = 400 ORDER BY T3.W DESC LIMIT 1 What is the sum of Swimsuit scores where the average score is 9.733 and the interview score is higher than 9.654?,SELECT SUM(swimsuit) FROM table_name_79 WHERE average = 9.733 AND interview > 9.654 What was the final score when the Maple Leafs played the Columbus Blue Jackets? ,"SELECT score FROM table_16864968_7 WHERE opponent = ""Columbus Blue Jackets""" what is the outcome for the 1887?,SELECT outcome FROM table_name_4 WHERE year = 1887 Which Pavilion depth has a Crown angle of 34.0–34.7°?,"SELECT pavilion_depth FROM table_name_49 WHERE crown_angle = ""34.0–34.7°""" "What is the total number of Attempts when Rank was larger than 4, and Net Yds was smaller than 1674?",SELECT COUNT(attempts) FROM table_name_95 WHERE rank > 4 AND net_yds < 1674 What is the minimum number of f/laps?,SELECT MIN(f_laps) FROM table_26222468_1 what is the total number of purse( $ ) where winner is jimmy powell (2),"SELECT COUNT(purse__) AS $__ FROM table_11622255_1 WHERE winner = ""Jimmy Powell (2)""" What are the ids and names of the medicine that can interact with two or more enzymes?,"SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count ( * ) > = 2" "What is the name of the country with the smallest population, and what is its gross domestic product?","SELECT T1.Name, T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T1.Population ASC LIMIT 1" What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?,"SELECT engine FROM table_name_45 WHERE chassis = ""lola b02/00"" AND rank = ""1st""" "Which Play-Off has Events of –, and a Season of a-6?","SELECT play_off FROM table_name_84 WHERE events = ""–"" AND season = ""a-6""" How many car makers are there in each continents? List the continent name and the count.,"SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;" What are the full names of all the active employees?,"SELECT first_name, last_name FROM staff WHERE active = 1" Find the average height and weight for all males (sex is M).,"SELECT avg(height) , avg(weight) FROM people WHERE sex = 'M'" "How many games were played in park ""Columbia Park"" in 1907?",SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'; "What authority controls the school in Levin that has a decile of 6, and a roll of 226?","SELECT authority FROM table_name_54 WHERE decile = 6 AND area = ""levin"" AND roll = 226" When has a Result of w 41-27?,"SELECT date FROM table_name_23 WHERE result = ""w 41-27""" "How many deciles have Years of 1–8, and a Roll of 49?","SELECT COUNT(decile) FROM table_name_95 WHERE years = ""1–8"" AND roll = 49" What team were the Bulls hosted by on December 7?,"SELECT team FROM table_11960610_7 WHERE date = ""December 7""" Are there any post-production movies in Nederlands?,SELECT DISTINCT CASE WHEN T1.movie_status = 'Post Production' THEN 'YES' ELSE 'NO' END AS YORN FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Nederlands' What NHL team does Rob White play on?,"SELECT nhl_team FROM table_name_45 WHERE player = ""rob white""" What report has gauteng falcons as the opposing team?,"SELECT report FROM table_name_81 WHERE opposing_team = ""gauteng falcons""" Give the neames of wines with prices below 50 and with appelations in Monterey county.,"SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Monterey"" AND T2.price < 50" How many games in the database belong to the genre of sports?,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Sports' "What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?","SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title" Find the names of the regions which were affected by the storm that killed the greatest number of people.,SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 What song was performed when Barbara Windsor was the guest host?,"SELECT musical_guest__song_performed_ FROM table_1590967_7 WHERE guest_host = ""Barbara Windsor""" What division record did the Spartans hold?,"SELECT division_record FROM table_name_26 WHERE team = ""spartans""" Return the staff ids and genders for any staff with the title Department Manager.,"SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Department Manager""" "What is Population density (per km²), when Name is Antigua and Barbuda, and when Capital is St. John's?","SELECT population_density__per_km²_ FROM table_name_81 WHERE name = ""antigua and barbuda"" AND capital = ""st. john's""" "Which Floors have a Location of ljubljana, and a Name of tr3?","SELECT floors FROM table_name_61 WHERE location = ""ljubljana"" AND name = ""tr3""" What is the oldest log id and its corresponding problem id?,"SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1" What is the full name of customer with email ckupis4@tamu.edu?,"SELECT first_name, last_name FROM customer WHERE email = 'ckupis4@tamu.edu'" What are the languages used by the least number of TV Channels and how many channels use it?,"SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;" Return the minister who left office at the latest time.,SELECT minister FROM party ORDER BY left_office DESC LIMIT 1 "Please list the section titles for the document ""David CV""","SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV""" What is the Fourth place with a Year that is 1978?,SELECT fourth_place FROM table_name_58 WHERE year = 1978 What is the difference in the number of goals scored by Pavel Brendl during the regular season versus the playoffs in the 1998-1999 season?,"SELECT T3.Rs_G - T4.Pf_G AS diff FROM ( SELECT T2.PlayerName, T1.G AS Rs_G FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Pavel Brendl' AND T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Regular Season' ) AS T3 INNER JOIN ( SELECT T2.PlayerName, T1.G AS Pf_G FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Pavel Brendl' AND T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Playoffs' ) AS T4 ON T3.PlayerName = T4.PlayerName" "What is maximum and minimum RAM size of phone produced by company named ""Nokia Corporation""?","SELECT MAX(T1.RAM_MiB), MIN(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation""" When was the Masters Tournament?,"SELECT date FROM table_name_9 WHERE tournament = ""masters tournament""" What chassis recorded 5 points?,SELECT chassis FROM table_name_68 WHERE points = 5 What Date has a Circuit of cremona?,"SELECT date FROM table_name_36 WHERE circuit = ""cremona""" Show all distinct cities in the address record.,SELECT DISTINCT city FROM addresses How many customers are there in Canada?,SELECT COUNT(T2.CustomerID) FROM SalesTerritory AS T1 INNER JOIN Customer AS T2 ON T1.TerritoryID = T2.TerritoryID WHERE T1.Name = 'Canada' "Among the movies released from 1991 to 2000, calculate the percentage of comedy movies. Provide any five movie titles and directors.","SELECT CAST(COUNT(CASE WHEN T1.genre = 'Comedy' THEN T1.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_title), group_concat(T1.movie_title), group_concat(T2.director) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) BETWEEN '1991' AND '2000'" List name of all tracks in Balls to the Wall.,"SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall""" How many complaints made by women and served after 3 pm received a timely response from the company?,SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN events AS T3 ON T1.`Complaint ID` = T3.`Complaint ID` WHERE T2.sex = 'Female' AND T1.ser_start BETWEEN '15:00:01' AND '23:59:59' AND T3.`Timely response?` = 'Yes' What are the companies and main industries of all companies that are not headquartered in the United States?,"SELECT company , main_industry FROM company WHERE headquarters != 'USA'" What is the last name of sales person for sales id 100?,SELECT T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID WHERE T2.SalesID = 100 What is the home record for the Maccabi Tel-Aviv club?,"SELECT home FROM table_name_85 WHERE club = ""maccabi tel-aviv""" "Among the divorced male customers, give the income and response of those who has an level of education of 6 and above.","SELECT DISTINCT T3.INCOME_K, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.EDUCATIONNUM > 6 AND T1.SEX = 'Male' AND T1.MARITAL_STATUS = 'Divorced'" What are the lengths of the models that are mm (in) tall?,"SELECT length FROM table_1773707_2 WHERE height = ""mm (in)""" What average bronze has a total less than 1?,SELECT AVG(bronze) FROM table_name_29 WHERE total < 1 Find the names of all physicians and their primary affiliated departments' names.,"SELECT T1.name , T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1" What candidate was re-elected and was first elected in 1942? ,"SELECT candidates FROM table_1342218_35 WHERE result = ""Re-elected"" AND first_elected = 1942" Give me main services for each station,SELECT Main_Services FROM station How many types of tracks are there on the Phoenix International raceway?,"SELECT COUNT(type) FROM table_22673956_1 WHERE track = ""Phoenix International Raceway""" How many solutions are there whose respositories received the number of stars more than one third of the number of forks?,SELECT COUNT(DISTINCT T1.Id) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars > CAST(T1.Forks AS REAL) / 3 How many afc titles were there when there were 2 super bowl wins?,SELECT MAX(afc_titles) FROM table_1952065_4 WHERE super_bowl_wins = 2 "What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?","SELECT SUM(year) FROM table_name_77 WHERE type = ""informal"" AND location = ""justus lipsius building, brussels"" AND date = ""23 may""" "What is the average goals for with a position under 12, draws over 1, and goals against under 28?",SELECT AVG(goals_for) FROM table_name_49 WHERE position < 12 AND draw > 1 AND goals_against < 28 Who is the round winner when entrant is craven mild racing?,"SELECT round_winner FROM table_19886463_1 WHERE entrant = ""Craven Mild Racing""" What is the third least common genre?,"SELECT T2.genre_name FROM movie_genres AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.genre_id GROUP BY T2.genre_id ORDER BY COUNT(T1.movie_id) LIMIT 2, 1" What are the names of wrestlers days held less than 100?,SELECT Name FROM wrestler WHERE Days_held < 100 "Find the start and end dates of behavior incidents of students with last name ""Fahey"".","SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Fahey""" How many solicit on public way prostitution crimes were arrested in West Garfield Park?,SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN IUCR AS T3 ON T2.iucr_no = T3.iucr_no WHERE T1.community_area_name = 'West Garfield Park' AND T3.secondary_description = 'SOLICIT ON PUBLIC WAY' AND T3.primary_description = 'PROSTITUTION' "Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?","SELECT AVG(total) FROM table_name_25 WHERE name = ""alex mcleish category:articles with hcards"" AND league < 494" Thank you could you also add to this list any tourist attractions located at 660 Shea Crescent?,"SELECT T2.Name, t2.Tourist_Attraction_ID FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""660 Shea Crescent"" OR T2.How_to_Get_There = ""walk""" What was the episode number veiwed by 7.43 million viewers?,"SELECT MAX(series_episode) FROM table_27987623_1 WHERE us_viewers__in_million_ = ""7.43""" What district does the road with a MDR number of 47 pass through?,SELECT passes_through___district_s FROM table_26036389_1 WHERE mdr_no = 47 What is the phone number of the man with the first name Timmothy and the last name Ward?,SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward' How many stations have an average bike availability above 10?,select count ( * ) from ( SELECT * FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg ( bikes_available ) > 10 ) Return the average attendance across all shows.,SELECT avg(Attendance) FROM SHOW What number pick was the player drafted in round 3 at #28 overall?,SELECT AVG(pick) FROM table_name_51 WHERE overall < 28 AND round = 3 "What is the number of the game when the opponent was the New York Islanders, and a February less than 24?","SELECT SUM(game) FROM table_name_62 WHERE opponent = ""new york islanders"" AND february < 24" What are the location codes of all the documents?,SELECT distinct location_code FROM Document_locations How many captains are in each rank?,"SELECT count(*) , rank FROM captain GROUP BY rank" What was the Outcome of the match with a Score of w/o?,"SELECT outcome FROM table_name_57 WHERE score = ""w/o""" What was the Decision when the Visitor was Carolina?,"SELECT decision FROM table_name_53 WHERE visitor = ""carolina""" What is the average number of students who registered for the courses with a difficulty of 4?,SELECT CAST(COUNT(T1.student_id) AS REAL) / COUNT(DISTINCT T2.course_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.diff = 4 "Provide the x-coordinate and y-coordinate of the image with an attribute class of ''horse"" and an object class of ""fur"".","SELECT T3.X, T3.Y FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.IMG_ID = T3.IMG_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.ATT_CLASS = 'horse' AND T4.OBJ_CLASS = 'fur'" when was Gina Gegeneres's last update?,SELECT last_update from actor where first_name = 'GINA' and last_name = 'DEGENERES' What is the percentage yield for a DPMO of 3.4?,"SELECT percentage_yield FROM table_222448_1 WHERE dpmo = ""3.4""" What is the week where the game site is Shea Stadium?,"SELECT MIN(week) FROM table_17861179_1 WHERE game_site = ""Shea Stadium""" What was the result for the film with the English name of Morning Undersea? ,"SELECT result FROM table_22118197_1 WHERE english_title = ""Morning Undersea""" Which artist has the most albums?,SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1 What are the names of all the artworks that won?,"SELECT T2.name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID where T1.result = ""Won""" Show the names of singers that have more than one song.,SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1 List all player names who have an overall rating higher than the average.,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > ( SELECT avg(overall_rating) FROM Player_Attributes ) how many song title with artbeingt being chubby checker,"SELECT COUNT(song_title) FROM table_13789248_2 WHERE artist = ""Chubby Checker""" List the age of all music artists.,SELECT Age FROM artist "List the name, address, and phone number of companies that supply products for more than thirty dollars per unit.","SELECT T2.CompanyName, T2.Address, T2.Phone FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice > 30" "what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?","SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = ""1"" AND total_apps = ""35""" What manufacturer makes locomotive number CTN 46?,"SELECT manufacturer FROM table_name_73 WHERE locomotive_number = ""ctn 46""" show the customer ids and first names without a credit card,"SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = ""Credit""" Which film has the longest duration of film screening? Please give its title.,SELECT title FROM film ORDER BY length DESC LIMIT 1 "Return the lot details of lots that belong to investors with details ""l""?","SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = ""l""" "What is the attendance of the November 19, 1990 game?","SELECT attendance FROM table_name_49 WHERE date = ""november 19, 1990""" How many titles were written by Don Shank and Genndy Tartakovsky?,"SELECT COUNT(title) FROM table_2156758_4 WHERE written_by = ""Don Shank and Genndy Tartakovsky""" Name the copa libertadores 1992 for round of 16 and team of fluminense,"SELECT copa_libertadores_1992 FROM table_15013825_8 WHERE copa_conmebol_1992 = ""Round of 16"" AND team = ""Fluminense""" Provide the allergen of the Dominican patient named Dirk Languish.,SELECT T1.DESCRIPTION FROM allergies AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.first = 'Dirk' AND T2.last = 'Langosh' AND T2.ethnicity = 'dominican' what is the year where glos & wilts is gloucester city winget?,"SELECT year FROM table_12043148_2 WHERE glos_ & _wilts = ""Gloucester City Winget""" What date was the Tyre d and Bruce Mclaren won?,"SELECT date FROM table_name_61 WHERE tyre = ""d"" AND winning_driver = ""bruce mclaren""" How many households are in highlands county?,"SELECT AVG(number_of_households) FROM table_name_70 WHERE county = ""highlands""" "What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan?","SELECT chosen_by FROM table_name_10 WHERE couple = ""katee shean joshua allen"" AND choreographer_s_ = ""nakul dev mahajan""" how can find total market rate of the furniture,SELECT sum ( market_rate ) FROM furniture What is the order status of the most recent order?,SELECT order_status FROM orders ORDER BY date_order_placed DESC LIMIT 1 Who had a total of 34?,SELECT name FROM table_name_90 WHERE total = 34 Tell me the pick for pittsburgh penguins,"SELECT pick FROM table_name_12 WHERE nhl_team = ""pittsburgh penguins""" What was the method of resolution for the fight at cage warriors 39?,"SELECT method FROM table_name_87 WHERE event = ""cage warriors 39""" "Which Year is the highest one that has a Bronze of south korea, and a Silver of philippines?","SELECT MAX(year) FROM table_name_27 WHERE bronze = ""south korea"" AND silver = ""philippines""" What are the names of regions with two or more storms?,SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2 in what round types did the opponent come from south africa?,"SELECT round FROM table_25505246_8 WHERE against = ""South Africa""" "What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?","SELECT sample_size FROM table_name_35 WHERE date = ""may 2-7, 2007"" AND democrat = ""hillary clinton""" "What is the average car number of all the drivers who have won $111,683?","SELECT AVG(car__number) FROM table_name_21 WHERE winnings = ""$111,683""" What is the total male graduates in 2012 in the state whereby the institute with the highest average amount of student aid going to undergraduate recipients is located?,SELECT COUNT(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year = 2012 AND T2.gender = 'M' ORDER BY T1.aid_value DESC LIMIT 1 What was the status of tropartic?,"SELECT status FROM table_12001616_4 WHERE car_name = ""TropArtic""" What are the maximum duration and resolution of songs grouped and ordered by languages?,"SELECT max(T1.duration) , max(T2.resolution) , T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages" What team or teams with 18 in the top 10?,SELECT team_s_ FROM table_2012187_3 WHERE top_10 = 18 "What was the production company for the nominated film, Badmouth?","SELECT production_company FROM table_name_33 WHERE rank = ""nominated"" AND film = ""badmouth""" Find the average and maximum rating of all reviews.,"SELECT avg(rating) , max(rating) FROM review" "Oh.. actually somewhat expected that. Thank you, then could you please let me know the average price of all wines?",select avg ( price ) from wine "What location did the team win before 1998 in the europe/africa zone, group i, round robin?","SELECT location FROM table_name_96 WHERE competition = ""europe/africa zone, group i, round robin"" AND result = ""win"" AND year < 1998" "Which Club has a Drawn of 0, and Points of 26?","SELECT club FROM table_name_11 WHERE drawn = ""0"" AND points = ""26""" How many results are there with the theme Group Round?,"SELECT COUNT(result) FROM table_26250253_1 WHERE theme = ""Group Round""" "On which day was the weather more windy in station no.1, 2012/1/1 or 2012/1/2?",SELECT CASE WHEN (SUM(CASE WHEN `date` = '2012-01-01' THEN avgspeed ELSE 0 END) - SUM(CASE WHEN `date` = '2012-01-02' THEN avgspeed ELSE 0 END)) > 0 THEN '2012-01-01' ELSE '2012-01-02' END FROM weather WHERE station_nbr = 1 List down the titles and descriptions of the crimes cases against persons.,"SELECT title, description FROM FBI_Code WHERE crime_against = 'Persons'" List active business ids with opening times of 7AM and closing times of 8PM.,SELECT DISTINCT T4.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T2.business_id = T3.business_id INNER JOIN Business AS T4 ON T3.business_id = T4.business_id WHERE T4.active = 'true' AND T3.opening_time = '7AM' AND T3.closing_time = '8PM' What are the distinct buildings with capacities of greater than 50?,SELECT DISTINCT building FROM classroom WHERE capacity > 50 On what date did the courses start? | Do you mean the registration date of students or the date of attendance of students? | Registration date,SELECT registration_date FROM student_course_registrations "From the list of all movies, which were directed by James Cameron?","SELECT title FROM Movie WHERE director = ""James Cameron""" What prefix has chemical class Iodoalkane?,"SELECT prefix FROM table_name_73 WHERE chemical_class = ""iodoalkane""" "Give the maximum and minimum product prices for each product type, grouped and ordered by product type.","SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code" Which city had the charleston area convention center as its callback location,"SELECT audition_city FROM table_11129123_1 WHERE callback_venue = ""Charleston Area Convention Center""" "What is Second, when Position is greater than 33, when Points is greater than 12, and when Equipment is Zabel-VMC?","SELECT second FROM table_name_51 WHERE position > 33 AND points > 12 AND equipment = ""zabel-vmc""" "Which Bronze is the highest one that has a Rank of 26, and a Total larger than 1?","SELECT MAX(bronze) FROM table_name_48 WHERE rank = ""26"" AND total > 1" What is the dorm ID of the dorm with the lowest student capacity?,SELECT dormid FROM dorm order by student_capacity asc limit 1 "What was the away team score, when the away team was Fitzroy?","SELECT away_team AS score FROM table_name_32 WHERE away_team = ""fitzroy""" Name the team for 19-34,"SELECT team FROM table_23274514_7 WHERE record = ""19-34""" What is the rank in 1940?,"SELECT rank FROM table_name_26 WHERE year = ""1940""" How many positions does Greg Bryant play?,"SELECT COUNT(position) FROM table_11677691_11 WHERE player = ""Greg Bryant""" Name the total for jamie carragher,"SELECT total FROM table_19764939_1 WHERE player = ""Jamie Carragher""" Who is the opponent in 1992?,"SELECT opponent FROM table_name_17 WHERE year = ""1992""" "How many countries have country note description as ""Sources: UN Energy Statistics (2014)""? List the currency of these countries.",SELECT COUNT(DISTINCT T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Sources: UN Energy Statistics (2014)' UNION SELECT DISTINCT t1.CurrencyUnit FROM country AS t1 INNER JOIN countrynotes AS t2 ON t1.CountryCode = t2.Countrycode WHERE t2.Description = 'Sources: UN Energy Statistics (2014)' "In addition, can you also show me the corresponding number of visits in the same list?","SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT ( * ) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID" What are the names of the establishments that met all the required standards for 4 consecutive years?,"SELECT DISTINCT T4.name FROM ( SELECT T3.name, T3.years, row_number() OVER (PARTITION BY T3.name ORDER BY T3.years) AS rowNumber FROM ( SELECT DISTINCT name, STRFTIME('%Y', `date`) AS years FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = 100 ) AS T3 ) AS T4 GROUP BY T4.name, date(T4.years || '-01-01', '-' || (T4.rowNumber - 1) || ' years') HAVING COUNT(T4.years) = 4" Which Points have a Time/Retired of +49.222 secs?,"SELECT MAX(points) FROM table_name_5 WHERE time_retired = ""+49.222 secs""" What's the award for #100?,"SELECT award FROM table_name_84 WHERE result = ""#100""" What are the names of the 3 departments with the most courses?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3 What is the highest attendance for games with stevenage borough at home?,"SELECT MAX(attendance) FROM table_name_9 WHERE home_team = ""stevenage borough""" Who was the arranger for the song that had a lyricist of Sirapatara Kalayapanid?,"SELECT arranger_s_ FROM table_name_8 WHERE lyricist_s_ = ""sirapatara kalayapanid""" What's the lengths behind of Jockey Ramon A. Dominguez?,"SELECT lengths_behind FROM table_name_63 WHERE jockey = ""ramon a. dominguez""" "What is the number of asts when rebs are larger than 1,189?",SELECT asts FROM table_name_76 WHERE rebs > 1 OFFSET 189 Which Visitor has a Record of 9–12–5?,"SELECT visitor FROM table_name_71 WHERE record = ""9–12–5""" Find the saving balance of the account with the highest checking balance.,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 What is the status of payment of student 124?,SELECT `bool` FROM no_payment_due WHERE name = 'student124' What is the last name of the employees who must report to the Vice President of Sales?,"SELECT LastName FROM Employees WHERE ReportsTo = ( SELECT EmployeeID FROM Employees WHERE Title = 'Vice President, Sales' )" What Vancouver canucks game was on a date closest to November 4?,"SELECT MAX(game) FROM table_name_60 WHERE opponent = ""vancouver canucks"" AND november < 4" What are the names of the ships that are not from the United States?,"SELECT Name FROM ship WHERE Nationality != ""United States""" How many members are not living in Hartford?,SELECT count(*) FROM member WHERE address != 'Hartford' Find the name of route that has the highest number of deliveries.,SELECT t1.route_name FROM delivery_routes AS t1 JOIN delivery_route_locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY count(*) DESC LIMIT 1 "Show the positions of the players from the team with name ""Ryley Goldner"".","SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Ryley Goldner""" "Hello, are there any countries that have two or more stadiums?",SELECT country FROM stadium group by country having count ( * ) > = 2 Show the document name and the document date for all documents on project with details 'Graph Database project',"SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'" "Among all the devices with event no.2 happening, what is the percentage of the device being a vivo phone?","SELECT SUM(IIF(T2.phone_brand = 'vivo', 1, 0)) / COUNT(T1.device_id) AS per FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.event_id = T2.device_id WHERE T1.event_id = '2'" What try bonus drew 0 and scored 427 points for?,"SELECT try_bonus FROM table_name_83 WHERE drawn = ""0"" AND points_for = ""427""" "What was the Result F–A on 21 February 2009, when the league position was 1st?","SELECT result_f_a FROM table_name_55 WHERE league_position = ""1st"" AND date = ""21 february 2009""" What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.,"SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'" What is the TV Station of the episode with a Romaji Title of Tokkyuu Tanaka Sangou?,"SELECT tv_station FROM table_name_84 WHERE romaji_title = ""tokkyuu tanaka sangou""" What is the name of that physician who has the Senior Attending Physician title?,SELECT name FROM physician WHERE POSITION LIKE '%senior%' What is the venue where the home team is Footscray?,"SELECT venue FROM table_name_57 WHERE home_team = ""footscray""" What is the average weeks on top of volumes associated with the artist aged 25 or younger?,SELECT avg(T2.Weeks_on_Top) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 25 What is the highest interview for Louisiana with an average above 9.324?,"SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = ""louisiana""" Which season did he have 0 points and 31st position?,"SELECT MAX(season) FROM table_17246160_1 WHERE points = 0 AND position = ""31st""" who was that person? Give me the id.,select customer_id from orders group by customer_id order by count ( * ) desc limit 1 "Show the total amount of invoice from chicago, IL?","SELECT sum ( total ) FROM invoices WHERE billing_city = ""Chicago"" AND billing_state = ""IL""" Find the country that has the most stadiums.,SELECT country FROM stadium GROUP BY country ORDER BY count(*) DESC LIMIT 1 Compute the average price of all the products.,SELECT avg(price) FROM products what is the position of club id 1 | What do you mean by the position of club id 1 | in the table member of club,select position from Member_of_club where clubid = 1 Which region does Hoffman Estates belong to?,SELECT T2.RegionDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T1.TerritoryDescription = 'Hoffman Estates' "What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?","SELECT campus FROM campuses WHERE LOCATION = ""Northridge"" AND county = ""Los Angeles"" UNION SELECT campus FROM campuses WHERE LOCATION = ""San Francisco"" AND county = ""San Francisco""" What are the ids of the problems which are reported before 1978-06-26?,"SELECT problem_id FROM problems WHERE date_problem_reported < ""1978-06-26""" Tell the temperature range of the home weather station of store no.7 on 2014/4/28.,SELECT T1.tmax - T1.tmin AS temprange FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 7 AND T1.`date` = '2014-04-28' What is their average salary?,"SELECT avg ( SALARY ) FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = ""Clara"" ) " Show all ministers and parties they belong to in descending order of the time they took office.,"SELECT minister , party_name FROM party ORDER BY took_office DESC" How many players came from college team reipas lahti (finland)?,"SELECT COUNT(player) FROM table_2840500_4 WHERE college_junior_club_team = ""Reipas Lahti (Finland)""" Which of these have an average bike availability above 10?,"SELECT id FROM station WHERE city = ""San Francisco"" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg ( bikes_available ) > 10" How many apps when the rank was after 13 and having more than 73 goals?,SELECT AVG(apps) FROM table_name_96 WHERE goals > 73 AND rank > 13 What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?,"SELECT MAX(laps) FROM table_name_3 WHERE grid < 4 AND time_retired = ""+ 1 lap""" How many times was Robert Gesink a winner?,"SELECT COUNT(mountains_classification) FROM table_27573848_18 WHERE winner = ""Robert Gesink""" Can you also include the name of the contries that have perpetrators with injures smaller than 20?,SELECT Country FROM perpetrator WHERE Injured < 20 "What are the ids, version numbers, and type codes for each template?","SELECT template_id , version_number , template_type_code FROM Templates" Show all different home cities.,SELECT DISTINCT home_city FROM driver List all the services in the alphabetical order.,SELECT service_name FROM services ORDER BY service_name "Thank you. Then could you please show me the players from Iraq? | Do you want their names? | yes, the 'player' field, so names.","SELECT T1.player FROM match_season as T1 join country as T2 on T1.country = T2.country_id where T2.country_name = ""Iraq""" What is Vijay Singh Chauhan's region name?,SELECT T1.region_name 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 T3.full_name = 'Vijay Singh Chauhan' What is the rank associated with a Height feet / m of 427 / 130?,"SELECT rank FROM table_name_76 WHERE height_feet___m = ""427 / 130""" "Who are all players from hometown of Carbondale, Illinois?","SELECT player FROM table_22824297_1 WHERE hometown = ""Carbondale, Illinois""" What is the Phoneme symbol for ⴥ in Nuskhuri?,"SELECT phoneme FROM table_name_43 WHERE nuskhuri = ""ⴥ""" What is the first leg of team 1 for Hardware stars?,"SELECT 1 AS st_leg FROM table_name_19 WHERE team_1 = ""hardware stars""" What are the names of climbers and the corresponding names of mountains that they climb?,"SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" "With games started smaller than 16 plus receptions of 51, what is the smallest amount of touchdowns listed?",SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16 What was the longitude for the shock that occured on 2010-01-09?,"SELECT longitude FROM table_25675509_1 WHERE date__yyyy_mm_dd_ = ""2010-01-09""" What is the theme and artist name for the exhibition with a ticket price higher than the average?,"SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)" Who tied with 8 losses and 50% wins?,"SELECT tied FROM table_name_19 WHERE losses = ""8"" AND win__percentage = ""50%""" Who are not living in that city with code HKG?,"SELECT fname , lname FROM student WHERE city_code ! = 'HKG'" Name the assets when the rank is 1435,SELECT assets_2013__bil$_ FROM table_24307126_3 WHERE rank_2013 = 1435 And what about all the classes?,SELECT class FROM ship "What is the largest weight wth a Result of –, and a Distance of 7f?","SELECT MAX(weight) FROM table_name_37 WHERE result = ""–"" AND distance = ""7f""" "Within the 5 most crowded cities in the world, which country has the most languages used?","SELECT Name FROM ( SELECT T1.Name, T2.Language FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode GROUP BY T1.Name, T1.Population, T2.Language ORDER BY T1.Population DESC ) AS T3 GROUP BY t3.Name ORDER BY COUNT(Language) DESC LIMIT 1" "Whent he start was 15, what was the Qual?","SELECT qual FROM table_name_4 WHERE start = ""15""" what are all the type where station number is c08,"SELECT type FROM table_11934032_1 WHERE station_number = ""C08""" How many violation of laws are there where no arrest has been made?,SELECT SUM(CASE WHEN T1.description LIKE '%The violation of laws%' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.Arrest = 'FALSE' What score to highest to par did Mike Weir achieve?,"SELECT MAX(to_par) FROM table_name_33 WHERE player = ""mike weir""" What are the names of all movies that were created after the most recent Steven Spielberg film?,"SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = ""Steven Spielberg"")" Who is the prime minister that had a term that ended on 5 March 1930?,"SELECT name FROM table_name_53 WHERE term_end = ""5 march 1930""" What is the price of the car ID 15?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.ID = 15 List the authors who created review for podcast titled 'Pop Rocket' in 2016 with rating less than 5.,SELECT T2.author_id FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Pop Rocket' AND T2.created_at LIKE '2016-%' AND T2.rating < 5 Who was the constructor in the location Monza?,"SELECT constructor FROM table_1140076_2 WHERE location = ""Monza""" Show maximum ticket prices for exhibitions for all years before 2009?,SELECT max ( ticket_price ) FROM exhibition WHERE YEAR < 2009 What kind of Spike has a Name of mia jerkov category:articles with hcards?,"SELECT spike FROM table_name_27 WHERE name = ""mia jerkov category:articles with hcards""" What is the name of the opponent that has a record of 66-69?,"SELECT opponent FROM table_name_46 WHERE record = ""66-69""" Who is the partner of the tournament on 6 July 1987?,"SELECT partner FROM table_name_12 WHERE date = ""6 july 1987""" What are the school names of the schools without school buses?,SELECT school FROM school WHERE school_id NOT IN ( SELECT school_id FROM school_bus ) what are the event details of the services that have the type code 'Marriage'?,SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' What is the location with a frequency (kHz) greater than 1370?,SELECT licensed_location FROM table_name_44 WHERE frequency__khz_ > 1370 What is the average year with an average start smaller than 6.3 and fewer than 0 wins?,SELECT AVG(year) FROM table_name_89 WHERE avg_start < 6.3 AND wins < 0 What are the names of nations where both English and French are official languages?,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" AND T2.IsOfficial = ""T"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""French"" AND T2.IsOfficial = ""T""" What date is listed at place 13,SELECT date FROM table_1140103_6 WHERE _number = 13 Show the Result of inger miller?,"SELECT result FROM table_name_75 WHERE athlete = ""inger miller""" How many games were played against the Chicago Bears?,"SELECT COUNT(record) FROM table_14966537_1 WHERE opponent = ""Chicago Bears""" "What is the roll of Bishop Viard College (An Integrated College), which has a decile larger than 1?","SELECT COUNT(roll) FROM table_name_69 WHERE decile > 1 AND authority = ""integrated"" AND name = ""bishop viard college""" In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?,"SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'" What is the title of the 3 worst rated episodes?,SELECT title FROM Episode ORDER BY rating LIMIT 3 How many papers whose authors include Thomas Wiegand were published in 1995?,SELECT COUNT(T2.Title) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995 What year did he compete in the car class and win 0 stages?,"SELECT year FROM table_name_59 WHERE class = ""car"" AND stages_won = ""0""" How many different cinemas are on the list?,SELECT count ( distinct cinema_id ) from cinema What was the original air date of the episode written by michael glassberg?,"SELECT original_airdate FROM table_26866299_1 WHERE writer = ""Michael Glassberg""" What was the location after 1934 that Philadelphia Eagles lost on October 15?,"SELECT location FROM table_name_98 WHERE year > 1934 AND loser = ""philadelphia eagles"" AND date = ""october 15""" Which region has the most territories?,SELECT T2.RegionID FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID GROUP BY T2.RegionID ORDER BY COUNT(T1.TerritoryID) DESC LIMIT 1 How many meters tall is Ulrike Wolful?,"SELECT height__mtr_ FROM table_23495048_2 WHERE contestant = ""Ulrike Wolful""" How many products have their color described as 'white' or have a characteristic with the name 'hot'?,"SELECT count(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""white"" OR t3.characteristic_name = ""hot""" Can you add their ages and nationalities to the table please?,"SELECT T3.Name , t3.age, t3.Nationality, COUNT ( * ) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name" find id of the tv channels that from the countries where have more than two tv channels.,SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2 What were the names of the episodes that had 3.02 million U.S. viewers?,"SELECT title FROM table_11111116_7 WHERE us_viewers__million_ = ""3.02""" Who did team phoenix visit in their home?,"SELECT home FROM table_name_32 WHERE visitor = ""phoenix""" How many camera lenses are not used in taking any photos?,SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos ) Name the least game for january 29,"SELECT MIN(game) FROM table_23286112_8 WHERE date = ""January 29""" Name the score when the decision is dipietro and the visitor is philadelphia,"SELECT score FROM table_name_76 WHERE decision = ""dipietro"" AND visitor = ""philadelphia""" what is the engine when the tyre is m and the driver is fernando alonso?,"SELECT engine_† FROM table_name_34 WHERE tyre = ""m"" AND driver = ""fernando alonso""" How many customers have cancelled orders? | Do you mean the customers in the previous result? | yes,"SELECT count ( T1.customer_name ) FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = ""Cancel"" AND T4.product_name = ""food""" "Which team has a League from of ontario hockey league, and a Player of tony dehart?","SELECT nhl_team FROM table_name_22 WHERE league_from = ""ontario hockey league"" AND player = ""tony dehart""" Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?,"SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" What city has channel tv (dt) 25 (31)?,"SELECT city_of_license__market FROM table_1353096_1 WHERE channel_tv___dt__ = ""25 (31)""" Find the names of schools that have some students playing in goalie and mid positions.,SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid' "How many bookings did each customer make? List the customer id, first name, and the count.","SELECT T1.customer_id , T1.first_name , count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" When did the first staff for the projects started working?,SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1 Provide the app users IDs and time for the event ID of 82.,"SELECT T1.app_id, T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 82" What is the average capacity for the vehicle having a navigator of Macneall?,"SELECT AVG(capacity) FROM table_name_89 WHERE navigator = ""macneall""" What is the number of colleges with a student population greater than 15000?,SELECT count(*) FROM College WHERE enr > 15000 Which year's label was label?,"SELECT year FROM table_name_57 WHERE ""label"" = ""label""" What is the highest rank for the team that raced a time of 6:50.40?,"SELECT MAX(rank) FROM table_name_10 WHERE time = ""6:50.40""" What is the name of the district with the most residents?,SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1 Show the staff ids of the project staff involved in the most number of project outcomes?,SELECT T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count ( * ) DESC LIMIT 1 Which time/retired has a grid of 9?,"SELECT time_retired FROM table_name_79 WHERE grid = ""9""" State the vendor for product number WB-H098.,SELECT T3.Name FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.ProductNumber = 'WB-H098' Write down the author's name of the book most recently published.,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id ORDER BY T1.publication_date DESC LIMIT 1 "What is the magazine type that ran from March 3, 2009–February 5, 2010?","SELECT magazine_type FROM table_name_94 WHERE magazine_run = ""march 3, 2009–february 5, 2010""" What race contains the Monaco circuit?,"SELECT race FROM table_name_90 WHERE circuit = ""monaco""" What is the event name with the number 8M? ,"SELECT event FROM table_22050544_4 WHERE event__number = ""8M""" What is the smallest rank when there are more than 2 games?,SELECT MIN(rank) FROM table_name_52 WHERE games > 2 Find the name of physicians whose position title contains the word 'senior'.,SELECT name FROM physician WHERE POSITION LIKE '%senior%' Compare the graduate cohort for Auburn University from 2011 to 2013?,"SELECT SUM(CASE WHEN T2.year = 2011 THEN T2.grad_cohort ELSE 0 END), SUM(CASE WHEN T2.year = 2012 THEN T2.grad_cohort ELSE 0 END), SUM(CASE WHEN T2.year = 2013 THEN T2.grad_cohort ELSE 0 END) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.gender = 'B' AND T2.race = 'X' AND T1.chronname = 'Auburn University'" How many suppliers have their accounts in debt?,SELECT COUNT(s_suppkey) FROM supplier WHERE s_acctbal < 0 How many reviewers are there?,SELECT count(*) FROM Reviewer Give me a list of names and years of races that had any driver whose forename is Lewis?,"SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = ""Lewis""" "In 2010, how many loses made by team 'BOS' and how many assists were made by the players?","SELECT SUM(T1.L), SUM(T2.A) FROM Teams AS T1 INNER JOIN Scoring AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.tmID = 'BOS' AND T1.year = 2010" Hello! Can you provide me with a list of all the different product types?,SELECT distinct product_type_code FROM products GROUP BY product_type_code What are the lowest lost has 111 as the goals against?,SELECT MIN(lost) FROM table_name_9 WHERE goals_against = 111 Calculate the total price of orders by Customer#000000013.,SELECT SUM(T1.o_totalprice) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_name = 'Customer#000000013' What are the roles of the cast and crew from countries other than the USA?,SELECT T2.role FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T1.birth_country != 'USA'; "What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma?","SELECT length_of_retirement FROM table_name_49 WHERE president = ""sharma, shankar shankar dayal sharma""" What is the average age of the visitors whose membership level is not higher than 4?,SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4 "Name the current conference for 1974, 1989","SELECT current_conference FROM table_16168849_1 WHERE left = ""1974, 1989""" What's the total appeared that has an RR Rate less than 0.17?,SELECT SUM(appeared) FROM table_name_95 WHERE rr_w_rate < 0.17 Show all locations where a gas station for company with market value greater than 100 is located.,SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 How many European suppliers are there?,SELECT COUNT(T1.n_nationkey) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey INNER JOIN supplier AS T3 ON T1.n_nationkey = T3.s_nationkey WHERE T2.r_name = 'EUROPE' "What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12?",SELECT COUNT(bronze) FROM table_name_62 WHERE gold > 1 AND rank = 2 AND silver < 12 When by80607002907ahbx80607i7720qm is the part number what is the socket?,"SELECT socket FROM table_18823880_10 WHERE part_number_s_ = ""BY80607002907AHBX80607I7720QM""" How many cities whose polulation is larger than 50000 pounds have shipment in 2017?,"SELECT COUNT(*) FROM city AS T1 INNER JOIN shipment AS T2 ON T1.city_id = T2.city_id WHERE T1.population > 50000 AND STRFTIME('%Y', T2.ship_date) = '2017'" When did the term end for the U.S. Marine Corps?,"SELECT term_ended FROM table_name_5 WHERE branch = ""u.s. marine corps""" How many donors were there total?,SELECT count ( distinct donator_name ) FROM endowment which school is hightest founded | Do you mean the school that is founded earliest? | exactly,SELECT school from school order by founded limit 1 What was the score of the game played when the team was 16-17?,"SELECT score FROM table_17104539_12 WHERE record = ""16-17""" What years did the player who's school is Clemson spend in Orlando?,"SELECT years_in_orlando FROM table_15621965_16 WHERE school_club_team = ""Clemson""" How about average amount of transaction for different lots?,"SELECT T2.lot_id , avg ( amount_of_transaction ) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id" "What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez?","SELECT binibining_pilipinas_international FROM table_name_7 WHERE year > 1990 AND binibining_pilipinas_universe = ""maria lourdes gonzalez""" Please list the IDs of the orders with a product whose production is not continuous.,SELECT T2.OrderID FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Discontinued = 1 Can you tell me the Time that has the Lane of 8?,SELECT time FROM table_name_35 WHERE lane = 8 What celebrity is famous for being an actor?,"SELECT celebrity FROM table_name_84 WHERE famous_for = ""actor""" During what year was Representative Spencer Bachus first elected?,"SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = ""Spencer Bachus""" What are the names of the services that have never been used?,SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id Find the name of the most expensive product.,SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1 "How many users belong to ""game-Art Style"" category?",SELECT COUNT(T1.app_id) FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id WHERE T2.category = 'game-Art Style' What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2?,"SELECT yeast_ortholog FROM table_name_19 WHERE subpathway = ""ggr"" AND genecards_entry = ""cetn2""" "Among the customers who come from the place with 25746 inhabitants, how many of them are male?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INHABITANTS_K = 25.746 AND T1.SEX = 'Male' List the days in 2013 when rain and fog occurred together and find the id of bikes borrowed on these days.,"SELECT T2.date, T1.bike_id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2013' AND T2.events = 'Fog-Rain'" How much sea is around the island where Kerinci Mountain is located?,SELECT COUNT(T4.Sea) FROM mountain AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Mountain INNER JOIN island AS T3 ON T3.Name = T2.Island INNER JOIN islandIn AS T4 ON T4.Island = T3.Name WHERE T1.Name = 'Kerinci' How many Points against that have a Team of harlequins and Tries against smaller than 8?,"SELECT SUM(points_against) FROM table_name_37 WHERE team = ""harlequins"" AND tries_against < 8" What frequency has call sign w228bg?,"SELECT frequency_mhz FROM table_name_45 WHERE call_sign = ""w228bg""" How many departments does the college has?,SELECT count(DISTINCT dept_name) FROM department Who was the director of Battalion Wars 2 which was released on GCN after 2004?,"SELECT director FROM table_name_72 WHERE platform_s_ = ""gcn"" AND year > 2004 AND title = ""battalion wars 2""" "With a Total of less than 29, what is Ian Ryan's most Matches?","SELECT MAX(matches) FROM table_name_31 WHERE player = ""ian ryan"" AND total < 29" What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina?,"SELECT year FROM table_name_36 WHERE award = ""kids' choice awards argentina"" AND category = ""best actress""" Please show the team that has the most number of technicians.,SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1 What's the total diameter when longitude is 357.8e later than 1985?,"SELECT COUNT(diameter__km_) FROM table_name_60 WHERE longitude = ""357.8e"" AND year_named > 1985" At what location was the score W 82-76?,"SELECT location FROM table_name_68 WHERE score = ""w 82-76""" and the names of the railways with no trains?,SELECT railway FROM railway WHERE Railway_ID not IN ( SELECT Railway_ID FROM train ) What is the title for episode number 30?,"SELECT title FROM table_26952212_1 WHERE no_in_total = ""30""" How many show times does BIll Schreiner have,SELECT sum ( T1.show_times_per_day ) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id where t2.directed_by = 'Bill Schreiner' GROUP BY T2.directed_by What is the role code with the largest number of employees?,SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 "Excellent! Finally, could you filter this list to show only the players with a height that is greater than 180 cm?",SELECT player_api_id FROM Player WHERE height > 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85 How many copies have they shown up in?,"SELECT sum ( t2.copy_number ) FROM Employees as t1 JOIN Circulation_History as t2 ON t2.employee_id = t1.employee_id GROUP BY t2.document_id , t2.draft_number , t2.copy_number ORDER BY count ( * ) DESC LIMIT 1" Which skill is used in fixing the most number of faults? List the skill id and description.,"SELECT T1.skill_id , T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY count(*) DESC LIMIT 1" Give the distinct names of wines made before 2000 or after 2010.,SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 In which year has the most hired employees?,"SELECT STRFTIME('%Y', hire_date) FROM employee GROUP BY STRFTIME('%Y', hire_date) ORDER BY COUNT(emp_id) DESC LIMIT 1" Who was the player who placed t10?,"SELECT player FROM table_name_4 WHERE place = ""t10""" what is the score when the team is @ cleveland?,"SELECT score FROM table_name_20 WHERE team = ""@ cleveland""" "Show each apartment type code, and the maximum and minimum number of rooms for each type.","SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code" How many faculty do we have?,SELECT count(*) FROM Faculty what is the name of the person who weighs the most?,SELECT Name FROM people order by weight desc limit 1 What is the pali word for rāga in sanskrit?,"SELECT pali FROM table_name_77 WHERE sanskrit = ""rāga""" Which title was developed by Battlecry Studios?,"SELECT title FROM table_name_96 WHERE developer = ""battlecry studios""" How many catalogs do they publish?,"select count ( * ) from catalogs where catalog_publisher in ( SELECT distinct ( catalog_publisher ) FROM catalogs WHERE catalog_publisher LIKE ""%chocolate%"" ) " what are the location of the enzymes?,SELECT distinct Location from enzyme What year did most competitions occur?,SELECT year FROM competition GROUP BY year ORDER BY COUNT ( * ) DESC LIMIT 1 Name the most 10 3 bbl/d (2008) for present share being 1.7%,"SELECT MAX(10 AS _3_bbl_d__2008_) FROM table_23195_5 WHERE present_share = ""1.7%""" "In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?","SELECT MAX(population_density) FROM table_name_93 WHERE county = ""prince"" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135" "Find the emails and phone numbers of all the customers, ordered by email address and phone number.","SELECT email_address , phone_number FROM customers ORDER BY email_address , phone_number" what is the location when the record is 5-1-1?,"SELECT location FROM table_name_90 WHERE record = ""5-1-1""" "What is the sum of Gold, when Total is less than 1?",SELECT SUM(gold) FROM table_name_14 WHERE total < 1 "What is ""the date in location from"" and ""the date in location to"" for the document with name ""Robin CV""?","SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = ""Robin CV""" What is the title of the movie with the most keywords?,SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id GROUP BY T1.title ORDER BY COUNT(T2.keyword_id) DESC LIMIT 1 "How many ""cool"" compliments did user number 33 receive?",SELECT COUNT(T2.compliment_type) FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.user_id = 33 AND T2.compliment_type LIKE 'cool' What's the date for HOF week?,"SELECT date FROM table_name_63 WHERE week = ""hof""" What is the fielding team with 155 runs?,"SELECT fielding_team FROM table_11303072_5 WHERE runs = ""155""" How many positions for denis patry?,"SELECT COUNT(position) FROM table_1965650_6 WHERE player = ""Denis Patry""" Which score was for Toronto Maple Leafs at home on November 12?,"SELECT score FROM table_name_66 WHERE home = ""toronto maple leafs"" AND date = ""november 12""" Show the name of ships whose nationality is either United States or United Kingdom.,"SELECT Name FROM ship WHERE Nationality = ""United States"" OR Nationality = ""United Kingdom""" how many times has a customer chosen car | There are 4 times that a customer chose a policy with type code car. | how about life?,"SELECT count ( * ) FROM Customer_Policies WHERE Policy_type_code = ""Life""" Which distinct source system code includes the substring 'en'?,SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%' "What is Player, when Figures is source: . last updated: 28 june 2007.?","SELECT player FROM table_name_52 WHERE figures = ""source: . last updated: 28 june 2007.""" When was the date of appointment for the manager replacing Wim Jansen? ,"SELECT date_of_appointment FROM table_16075179_6 WHERE outgoing_manager = ""Wim Jansen""" "What is the highest Rank, when Location is Kinshasa, DR Congo, and when Current Seating Capacity is less than 80,000?","SELECT MAX(rank) FROM table_name_90 WHERE location = ""kinshasa, dr congo"" AND current_seating_capacity < 80 OFFSET 000" Who was the incumbent in the Kentucky 8 district? ,"SELECT incumbent FROM table_2668367_7 WHERE district = ""Kentucky 8""" Which song has the most vocals?,SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1 Which object type had an NGC number greater than 6357 and a declination (J2000) of °45′34″?,"SELECT object_type FROM table_name_53 WHERE ngc_number > 6357 AND declination___j2000__ = ""°45′34″""" "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.",SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year Which complaint status has more than 3 records on file?,SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*) > 3 Which is the email of the party that has used the services the most number of times?,SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1 Which country had a tower destroyed in 1899?,"SELECT country FROM table_name_55 WHERE year = ""1899""" How many students attended universities were there in 2011?,SELECT SUM(num_students) FROM university_year WHERE year = 2011 Show times of elimination of wrestlers with days held more than 50.,SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 List all the tires businesses that are opened everyday.,SELECT DISTINCT T2.business_id FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name = 'Tires' GROUP BY T2.business_id HAVING COUNT(day_id) = 7 Find the driver id and number of races of all drivers who have at most participated in 30 races?,"SELECT T1.driverid , count(*) 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" Which points has the driver Paul Tracy?,"SELECT points FROM table_name_56 WHERE driver = ""paul tracy""" and which artist has made the least number of songs?,SELECT artist_name from song group by artist_name order by count ( * ) limit 1 What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?,SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge' Against what opponent did the game end 5-4?,"SELECT opponent FROM table_27539535_5 WHERE score = ""5-4""" "Great, can you sort a list of Computer Science, Arts, and Language by the number of courses, in ascending order?",SELECT T2.subject_name FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT ( * ) ASC Calculate the average duration travelled by subscribers that both started and ended their trip in Mountain View City Hall and indicate the date when the station was first installed.,"SELECT AVG(T1.duration), T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.start_station_name = 'Mountain View City Hall' AND T1.subscription_type = 'Subscriber' AND T1.end_station_name = 'Mountain View City Hall'" What is the position listed for the team the Philadelphia Flyers?,"SELECT position FROM table_1213511_3 WHERE nhl_team = ""Philadelphia Flyers""" What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?,"SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = ""vanderbilt""" Tell me the bore and stroke for Engine of 351-2v cleveland v8,"SELECT bore_ & _stroke FROM table_name_9 WHERE engine = ""351-2v cleveland v8""" What is the name of the different car makers who produced a car in 1970?,SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'; What is the fastest lap in the Le Mans Bugatti circuit?,"SELECT fastest_lap FROM table_name_72 WHERE circuit = ""le mans bugatti""" "What is the title, phone and hire date of Nancy Edwards?","SELECT title, phone, hire_date FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards""" Find the ids of reviewers who didn't only give 4 star.,SELECT rID FROM Rating WHERE stars <> 4 Name the least RD number that has PI GP more than 0 and pick # more than 51,SELECT MIN(rd__number) FROM table_name_13 WHERE pl_gp > 0 AND pick__number > 51 "When the team scored 17 and Slavija placed second, what year was it?","SELECT season FROM table_1474099_6 WHERE goals = 17 AND runners_up = ""Slavija""" How many people directed the show written by Chris Sheridan?,"SELECT COUNT(directed_by) FROM table_14724369_1 WHERE written_by = ""Chris Sheridan""" "List down the business ID with a star range from 2 to 3, located at Mesa.",SELECT business_id FROM Business WHERE city LIKE 'Mesa' AND stars BETWEEN 2 AND 3 What is the Callsign in Brisbane with a Freq currently of 4rph?,"SELECT callsign FROM table_name_52 WHERE area_served = ""brisbane"" AND freq_currently = ""4rph""" "Which male students are unemployed, disable and were absent for 5 month?",SELECT T1.name FROM unemployed AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name INNER JOIN longest_absense_from_school AS T3 ON T3.name = T2.name WHERE T3.month = 5 What is the title of the production with a number of 1039?,"SELECT title FROM table_name_83 WHERE production_number = ""1039""" Name the location for 1829,SELECT location FROM table_1974482_1 WHERE founded = 1829 List the type of bed and name of all traditional rooms.,"SELECT roomName , bedType FROM Rooms WHERE decor = ""traditional"";" What opponent is at Richmond Academy?,"SELECT opponent FROM table_name_38 WHERE location_attendance = ""richmond academy""" In which province is the highest volcano mountain located in?,SELECT T1.Province FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Type = 'volcano' ORDER BY T3.Height DESC LIMIT 1 How many actors appeared in it?,SELECT count ( T1.Name ) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE t2.year = 1986 and t2.category = 'Best Book of a Musical' and t2.Result = 'Nominated' What is the Style of the First Performance of Billy Elliot on 15 November 2007?,"SELECT style FROM table_name_50 WHERE first_performance = ""15 november 2007""" Which tournament was andreas haider-maurer the opponent in?,"SELECT tournament FROM table_name_94 WHERE opponent = ""andreas haider-maurer""" how many height m ( ft ) with notes being via wccv; formerly w236aj,"SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE notes = ""via WCCV; formerly W236AJ""" What week's game had a result of l 35–37?,"SELECT week FROM table_name_88 WHERE result = ""l 35–37""" What company has an unknown date and is an energy business?,"SELECT company FROM table_name_20 WHERE business = ""energy"" AND date = ""unknown""" What's the highest turnout when carlton was playing as the away team?,"SELECT MAX(crowd) FROM table_name_29 WHERE away_team = ""carlton""" What percentage of films are horror films?,"SELECT CAST(SUM(IIF(T2.name = 'Horror', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id" Which Score has a Time of 2:28?,"SELECT score FROM table_name_41 WHERE time = ""2:28""" Who is the voice actor of the hero character from the movie The Little Mermaid?,SELECT T2.`voice-actor` FROM characters AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.movie_title WHERE T1.movie_title = 'The Little Mermaid' AND T2.character = T1.hero where is it located?,"SELECT location from cinema where name = ""Codling""" How many orders have asked for the product Tofu?,SELECT COUNT(T2.OrderID) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductName = 'Tofu' "may i know the class room for the class section 1 | ok, so which column info do you want to return for these classes? | i want to know the class room column",SELECT CLASS_ROOM FROM CLASS WHERE CLASS_SECTION = 1 What are the monthly rentals of student addresses in Texas state?,"SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Texas""" "October 28, 2001 was what week of the season?","SELECT week FROM table_name_98 WHERE date = ""october 28, 2001""" how many people are there whose weight is higher than 85 for each gender?,"SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex" Who was the 1st member of the parliament that was dissolved 23 february 1510?,"SELECT 1 AS st_member FROM table_name_51 WHERE dissolved = ""23 february 1510""" List the short name and home page URL of all the international conferences on artificial intelligence.,"SELECT ShortName, HomePage FROM Conference WHERE FullName LIKE 'International Conference on Artificial Intelligence%'" Which abbreviation corresponds to Jetblue Airways?,"SELECT Abbreviation FROM AIRLINES WHERE Airline = ""JetBlue Airways""" List the campuses in Los Angeles county.,"SELECT campus FROM campuses WHERE county = ""Los Angeles""" What is the total number of stations with a line that is u 6?,"SELECT SUM(stations) FROM table_name_86 WHERE line = ""u 6""" "Great! Which of these countries has the most airlines with an Active status of ""Y""?",SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count ( * ) DESC LIMIT 1 what is the lowest geo id?,SELECT MIN(geo_id) FROM table_18600760_15 Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?,"SELECT name FROM table_name_20 WHERE mission = ""apollo 16"" AND age_at_first_step = ""36y 6m 18d""" What are the teams with the most technicians?,SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1 When chauncey billups (7) has the highest amount of assists what is the score?,"SELECT score FROM table_23285849_10 WHERE high_assists = ""Chauncey Billups (7)""" How many more games were sold on game platform ID 50 than on game platform ID 51 in region ID 1?,SELECT (SUM(CASE WHEN T.game_platform_id = 50 THEN T.num_sales ELSE 0 END) - SUM(CASE WHEN T.game_platform_id = 51 THEN T.num_sales ELSE 0 END)) * 100000 AS nums FROM region_sales AS T WHERE T.region_id = 1 What is the title of series episode 11-05's segment d?,"SELECT segment_d FROM table_15187735_11 WHERE series_ep = ""11-05""" Which product gets the most reviews?,SELECT T2.Name FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID ORDER BY COUNT(T1.ProductReviewID) DESC LIMIT 1 What is the grid when the laps were 24?,SELECT COUNT(grid) FROM table_name_69 WHERE laps = 24 show the transaction type code that occurs the fewest times.,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT ( * ) ASC LIMIT 1 What is the Score with a Date that is 2008-06-28?,"SELECT score FROM table_name_35 WHERE date = ""2008-06-28""" List the name of film studio that have the most number of films.,SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1 "How many points have a difference of 23, with a drawn less than 5?","SELECT COUNT(points) FROM table_name_62 WHERE difference = ""23"" AND drawn < 5" "What is the total number of gold medals Egypt, who has less than 0 silver, has?","SELECT COUNT(gold) FROM table_name_49 WHERE nation = ""egypt"" AND silver < 0" "What are the enrollment dates of all the tests that have result ""Pass""?","SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass""" What is the Romanji Title of a show on TBS with less than 11 episodes?,"SELECT romaji_title FROM table_name_43 WHERE tv_station = ""tbs"" AND episodes < 11" List the name of all products in the west superstore that customers chose for same-day shipment in the year 2013.,SELECT T2.`Product Name` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'Same Day' AND T1.`Ship Date` LIKE '2013%' Can you list their IDs in the table too?,"SELECT T3.festival_id, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT ( * ) > = 2" What is the highest recorded millisecond for a single track ?,select max ( Milliseconds ) from track What is the Weight of the Senior Player with a Height of 6–10?,"SELECT SUM(weight) FROM table_name_78 WHERE year = ""senior"" AND height = ""6–10""" What's Shion Newton's MLB draft result?,"SELECT mlb_draft FROM table_11677100_3 WHERE player = ""Shion Newton""" "Provide the date and tail number of flight with air carrier ""Ross Aviation Inc.: GWE"".","SELECT T1.FL_DATE, T1.TAIL_NUM FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T2.Description = 'Ross Aviation Inc.: GWE'" Which Date has a Record of 3-4?,"SELECT date FROM table_name_54 WHERE record = ""3-4""" Name the team for toshihiro kaneishi,"SELECT team FROM table_name_21 WHERE driver = ""toshihiro kaneishi""" "What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500?","SELECT COUNT(frequency_mhz) FROM table_name_19 WHERE call_sign = ""kgrj"" AND erp_w > 21 OFFSET 500" What was the record when the team played at Oakland Seals?,"SELECT record FROM table_name_36 WHERE home = ""oakland seals""" who are Dan's friends?,SELECT DISTINCT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' What degrees were conferred in San Francisco State University in the year 2001?,"SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND t2.year = 2001" "What are the start date and end date of the apartment bookings made by female guests (gender code ""Female"")?","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = ""Female""" What Silver has the Location of Guangzhou?,"SELECT silver FROM table_name_17 WHERE location = ""guangzhou""" When 1999 is the year how many tournaments are there?,SELECT COUNT(tournament) FROM table_2417741_1 WHERE year = 1999 State the name of captain keeper of the match no.419117.,SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Rolee AS T2 ON T1.Role_Id = T2.Role_Id INNER JOIN Player AS T3 ON T1.Player_Id = T3.Player_Id WHERE T1.Match_Id = '419117' AND T2.Role_Desc = 'CaptainKeeper' "What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and the Driver Chris Jackson?","SELECT team FROM table_name_51 WHERE engine = ""chevrolet 6.0 v8"" AND manufacturer = ""opel"" AND driver = ""chris jackson""" Which cities were once host cities?,SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What are the names of the top 8 countries by total invoice size and what are those sizes?,"SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;" What's the record for january 10?,"SELECT record FROM table_name_48 WHERE date = ""january 10""" what is the capacity of county wicklow,"SELECT Capacity FROM cinema WHERE Location = ""County Wicklow""" What is the total balance of savings accounts not belonging to someone with the name Brown?,SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != 'Brown' What are the names of artists who are Male and are from UK?,"SELECT artist_name FROM artist WHERE country = ""UK"" AND gender = ""Male""" What year were there 29 (32) points?,"SELECT year FROM table_name_3 WHERE points = ""29 (32)""" Provide the list of user ID along with review star of which has the review length of medium with business ID of 35.,"SELECT user_id, review_stars FROM Reviews WHERE business_id = 15 AND review_length = 'Medium'" "For the countries have the population north of a billion, which one has the lowest GDP? Give the full name of the country.",SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Population > 1000000000 ORDER BY T2.GDP ASC LIMIT 1 Indicate the name of all the journals published in the paper database in the year 2001.,SELECT T2.FullName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Year = 2001 AND T1.ConferenceId > 0 AND T1.JournalId > 0 How many employees have salary greater than 70000 but fail the inspection?,SELECT COUNT(DISTINCT T1.employee_id) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.results = 'Fail' AND T1.salary > 70000 Calculate the total payment amount of customers in Nagasaki district.,SELECT SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id WHERE T3.district = 'Nagasaki' What is the highest price for the products?,select max ( product_price ) from products Which venue led to a result of 23rd?,"SELECT venue FROM table_name_96 WHERE result = ""23rd""" "Among the facilities that have undergone at least one inspection in 2010, how many of them are restaurants or cafeterias?","SELECT COUNT(DISTINCT T1.license_no) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T1.inspection_date) = '2010' AND T2.facility_type = 'Restaurant'" What year did the season finale have a total of 10.29 million viewers?,"SELECT season AS Finale FROM table_1348989_2 WHERE viewers__in_millions_ = ""10.29""" Which player is from Joliet Catholic HIgh School?,"SELECT player FROM table_11677691_7 WHERE school = ""Joliet Catholic High school""" How many films was actor id 9 in?,select count ( * ) from film_actor where actor_id = '9' Which 2010 has a 2006 of w?,"SELECT 2010 FROM table_name_51 WHERE 2006 = ""w""" What was the venue on 17/02/2008?,"SELECT venue FROM table_name_1 WHERE date = ""17/02/2008""" What is the rank of Mark Giuliano?,"SELECT rank FROM FACULTY WHERE fname = ""Mark"" AND lname = ""Giuliano""" Name the most draws when goals against is more than 56 and wins is more than 14,SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14 I want the Grid for Laps of 35,SELECT grid FROM table_name_97 WHERE laps = 35 List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.,SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin' "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.","SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'" Show the member name and hometown who registered a branch in 2016.,"SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016" What are the names of all players?,select Player_name from player "What are the names of the clubs that have ""Davis Steven"" as a member?","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Davis"" AND t3.lname = ""Steven""" What is the season # for the production code 3.89?,"SELECT season__number FROM table_29391888_1 WHERE production_code = ""3.89""" Which item provided to a project whose main subject area is Literacy & Language has the highest unit price?,SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_area = 'Literacy & Language' ORDER BY T1.item_unit_price DESC LIMIT 1 How many cities which belong to New Jersey have transported weight greater than 20000?,SELECT COUNT(*) FROM ( SELECT T2.city_id AS CITYID FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.state = 'New Jersey' GROUP BY T2.city_id HAVING SUM(T1.weight) > 20000 ) What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000?,SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000 "What are the first names of all guest with apartment booking status ""Confirmed"" ?","SELECT T2.guest_first_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = ""Confirmed""" Compare the average pay rate of male and female employees.,SELECT AVG(T2.Rate) FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID GROUP BY T1.Gender What is the to par for t10 and Colin Montgomerie?,"SELECT to_par FROM table_name_35 WHERE place = ""t10"" AND player = ""colin montgomerie""" Are the customers holding coupons with amount 500 bad or good?,SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500 Who were the starting actors in the time frame of tuesday 22:00~22:54 8 april 2008 to 17 june 2008?,"SELECT starring_actors FROM table_18539834_2 WHERE time_frame = ""Tuesday 22:00~22:54 8 April 2008 to 17 June 2008""" What is the Telugu word for хонгорцог in Mongolian?,"SELECT telugu_తెలుగు FROM table_1408397_3 WHERE mongolian = ""Хонгорцог""" How many open businesses in the City of Phoenix have users left a long review?,SELECT COUNT(DISTINCT T2.business_id) FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.review_length = 'Long' AND T2.active = 'true' AND T2.city = 'Phoenix' Name the others for cons of 21% and lead of 24%,"SELECT others FROM table_name_60 WHERE cons = ""21%"" AND lead = ""24%""" When playing against Yi Jingqian in the final on a hard surface what was the score?,"SELECT score FROM table_name_29 WHERE surface = ""hard"" AND opponent_in_the_final = ""yi jingqian""" What's the nickname of the students of the school founded in 1933?,SELECT nickname FROM table_1973816_1 WHERE founded = 1933 What's Bulgaria's lane with a time more than 21.55?,"SELECT SUM(lane) FROM table_name_28 WHERE nationality = ""bulgaria"" AND time > 21.55" what is height of Kibo (Uhuru Pk),SELECT height FROM mountain where name = 'Kibo ( Uhuru Pk ) ' Name the class aaaaa for 2005-06,"SELECT class_aAAAA FROM table_14601528_2 WHERE school_year = ""2005-06""" What are the delegate and committee information for each election record?,"SELECT Delegate , Committee FROM election" List the main industry with highest total market value and its number of companies.,"SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1" How many points are there for rank 5 with more than 34 games?,SELECT COUNT(points) FROM table_name_80 WHERE rank = 5 AND games > 34 What's the website for the Listen Live webcast on the 99.3 frequency?,"SELECT website FROM table_name_81 WHERE webcast = ""listen live"" AND frequency = 99.3" On what date does Essendon play as the away team?,"SELECT date FROM table_name_19 WHERE away_team = ""essendon""" what are the name of the reviewers?,SELECT name FROM Reviewer What is the score on December 2?,"SELECT score FROM table_name_51 WHERE date = ""december 2""" Find the name of product that is produced by both companies Creative Labs and Sony.,SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' What was the location and attendance at the game when the record was 9-6?,"SELECT location_attendance FROM table_name_54 WHERE record = ""9-6""" What was album of the year after 2009?,"SELECT result FROM table_name_99 WHERE year > 2009 AND category = ""album of the year""" Find the name of customers who did not pay with Cash.,SELECT customer_name FROM customers WHERE payment_method != 'Cash' "What is Total, when Set 5 is NA, and when Set 2 is 25-13?","SELECT total FROM table_name_62 WHERE set_5 = ""na"" AND set_2 = ""25-13""" "What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?","SELECT date FROM table_name_2 WHERE partner = ""alexander krasnorutskiy"" AND score = ""6–3, 4–6, 6–2""" How many U.S. viewers (million) are there for the episode whose Production code is 3T7051?,"SELECT us_viewers__million_ FROM table_13183076_3 WHERE production_code = ""3T7051""" What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?,"SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = ""Chevrolet Monte Carlo"" AND listed_owner_s_ = ""Teresa Earnhardt"" AND driver_s_ = ""Paul Menard""" What can you say is the word from of sam sep?,"SELECT word_form FROM table_name_30 WHERE other = ""sam sep""" "What is the type when £120,000 is the transfer fee?","SELECT type FROM table_name_49 WHERE transfer_fee = ""£120,000""" How many points are in the scored category for the team that has 8 total points and a position that is less than 10?,SELECT SUM(scored) FROM table_name_38 WHERE points = 8 AND position < 10 What is the name of the competitor who has won the most medals?,SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T4.id != 4 GROUP BY T1.full_name ORDER BY COUNT(T4.id) DESC LIMIT 1 When was Stephen J. Solarz first elected?,"SELECT MIN(first_elected) FROM table_1341663_33 WHERE incumbent = ""Stephen J. Solarz""" What was the venue when Ben Barker finished third?,"SELECT venue FROM table_name_65 WHERE third = ""ben barker""" Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?,"SELECT position FROM table_name_81 WHERE college_junior_club_team = ""hull olympiques (qmjhl)""" Which Frequency MHz is the highest one that has a Call sign of k241an?,"SELECT MAX(frequency_mhz) FROM table_name_65 WHERE call_sign = ""k241an""" What was the result of the election in which Walter E. Rogers was the incumbent? ,"SELECT result FROM table_1341897_45 WHERE incumbent = ""Walter E. Rogers""" State the total pages of the words that has repeated times of 2593.,SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences = 2593 What was the score when she was a runner-up?,"SELECT score FROM table_name_38 WHERE outcome = ""runner-up""" "what is the highest down (up to kbits/s) when resale is yes, up ( up to kbit/s) is 1180 and provider is 1&1?","SELECT MAX(down__up_to_kbit_s_) FROM table_name_26 WHERE resale = ""yes"" AND up__up_to_kbit_s_ = 1180 AND provider = ""1&1""" What is the result in 1994?,SELECT result FROM table_name_36 WHERE year = 1994 What is the record when Tampa Bay is the visitor?,"SELECT record FROM table_name_93 WHERE visitor = ""tampa bay""" What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?,"SELECT one_mora FROM table_name_95 WHERE NOT accented_mora = ""low tone"" AND gloss = ""/˩okiru/ [òkìɽɯ́]""" What is the city id that is associated with match id 6 in 2013?,SELECT hOST_CITY FROM hosting_city WHERE YEAR = 2013 How many orders were shipped by Federal Shipping?,SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Federal Shipping' What was the date of the game in week 3?,SELECT date FROM table_21761882_4 WHERE week = 3 What company is each entrepreneur associated with?,SELECT T1.company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID "When the conference is west coast and the number of bids are at 2, what's the percentage of games won?","SELECT win__percentage FROM table_name_51 WHERE _number_of_bids = 2 AND conference = ""west coast""" What is her policy type code?,SELECT Policy_Type_Code FROM policies where Customer_ID = 380 What was the result in the Arkansas 5 district election? ,"SELECT result FROM table_1341897_6 WHERE district = ""Arkansas 5""" What is the average number of hosts for parties?,SELECT avg(Number_of_hosts) FROM party Which type of locomotive was built in 1923?,SELECT type FROM table_name_46 WHERE built = 1923 "Okay, how many instruments are used in the song ""Baby""?","SELECT count ( DISTINCT instrument ) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Baby""" Which apartments has the largest number of total rooms? | what attribute did you want me to return for the apartment with the largest number of total rooms? the apartment type code? | The apt ID first.,"SELECT apt_id FROM Apartments GROUP BY apt_id ORDER BY sum ( room_count ) DESC LIMIT 1" "Which Points has a Team of são paulo athletic, and a Position larger than 5?","SELECT SUM(points) FROM table_name_15 WHERE team = ""são paulo athletic"" AND position > 5" "Which Result has a Score of 2 – 0, and a Competition of 2006 fifa world cup qualification?","SELECT result FROM table_name_74 WHERE score = ""2 – 0"" AND competition = ""2006 fifa world cup qualification""" Give the name of the university with the most number of students in 2015.,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 ORDER BY T1.num_students DESC LIMIT 1 What are the distinct visit dates?,SELECT DISTINCT Visit_Date FROM VISITS What is the id of the trip that has the shortest duration ?,SELECT id FROM trip ORDER BY duration LIMIT 1 Which aperture were built or used between 1987-2001?,"SELECT aper_in FROM table_23851574_2 WHERE built_used = ""1987-2001""" What is the Home team in the game with a Score of 2–3?,"SELECT home_team FROM table_name_17 WHERE score = ""2–3""" How many allergies have type animal?,"SELECT count(*) FROM Allergy_type WHERE allergytype = ""animal""" "for type diesel-mechanical and configuration b-b, what is the status?","SELECT status FROM table_name_4 WHERE configuration = ""b-b"" AND type = ""diesel-mechanical""" Please show me the age of the youngest and oldest managers,"select min ( age ) ,max ( age ) from manager" "What was the Rd. Time for October 3, 2009?","SELECT rd, _time FROM table_name_86 WHERE date = ""october 3, 2009""" "Show the names of clubs that have players with position ""Right Wing"".","SELECT T1.name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Position = ""Right Wing""" What was the sum of the crowds at Western Oval?,"SELECT SUM(crowd) FROM table_name_65 WHERE venue = ""western oval""" How many male competitors were there who participated in 1948 Summer?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1948 Summer' AND T3.gender = 'M' What Owner's Trainer is Todd A. Pletcher?,"SELECT owner FROM table_name_64 WHERE trainer = ""todd a. pletcher""" How many Japanese suppliers have their accounts in debt?,SELECT COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 AND T2.n_name = 'JAPAN' How many services are there?,SELECT count(*) FROM services List the locations of schools in ascending order of enrollment.,SELECT LOCATION FROM school ORDER BY Enrollment ASC How many games did they play on january 11?,"SELECT COUNT(location_attendance) FROM table_27882867_6 WHERE date = ""January 11""" How many times has that document been accessed?,SELECT access_count FROM documents ORDER BY access_count DESC LIMIT 1 What are the names and locations of all tracks?,"SELECT name , LOCATION FROM track" How much power does dwzf have?,"SELECT power__kw_ FROM table_27588823_2 WHERE callsign = ""DWZF""" How many tries did the player have which ended with 20 Points?,SELECT tries FROM table_name_13 WHERE points = 20 How many services has each resident requested?,"SELECT T1.resident_id, count ( * ) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count ( * ) DESC" What is the fewest laps for a team with a position of DNF and a number smaller than 25 before 2001?,"SELECT MIN(laps) FROM table_name_82 WHERE position = ""dnf"" AND number < 25 AND year < 2001" Which Photography app has the highest total Sentiment subjectivity score?,SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Photography' GROUP BY T1.App ORDER BY SUM(T2.Sentiment_Subjectivity) DESC LIMIT 1 Find the number of players for each hand type.,"SELECT count(*) , hand FROM players GROUP BY hand" How many tracks do we have?,SELECT count(*) FROM track What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.,"SELECT T1.Allergy , T1.AllergyType 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"" ORDER BY T1.Allergy" "What is Time, when Event is ""GCM: Demolition 1""?","SELECT time FROM table_name_85 WHERE event = ""gcm: demolition 1""" Find the number of routes whose destination airports are in Canada.,SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada' How far did flight 99 fly ?,SELECT distance FROM Flight WHERE flno = 99 I want the lowest laps that have a grid of 12,SELECT MIN(laps) FROM table_name_22 WHERE grid = 12 What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%?,"SELECT japanese_title FROM table_name_70 WHERE episodes > 10 AND tv_station = ""tbs"" AND average_ratings = ""14.8%""" Who was the opponent at the game with a score of 7–6?,"SELECT opponent FROM table_name_16 WHERE score = ""7–6""" What is the title of Melsrose Place episode number 168?,SELECT title FROM table_name_90 WHERE no_in_series = 168 "Which Pick has a Nationality of canada, and a Player of dennis maxwell?","SELECT COUNT(pick) FROM table_name_27 WHERE nationality = ""canada"" AND player = ""dennis maxwell""" Return the name of the wrestler who had the lowest number of days held.,SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1 "What is the Number of Households that have a Per Capita Income of $21,345?","SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = ""$21,345""" Name the number of traditional chinese for album number 6th,"SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = ""6th""" Player of herbert s. graver has what position?,"SELECT position FROM table_name_24 WHERE player = ""herbert s. graver""" Who's the player that's male and on the original season of RW: Key West?,"SELECT player FROM table_name_36 WHERE gender = ""male"" AND original_season = ""rw: key west""" "What are the name and assets of each company, sorted in ascending order of company name?","SELECT name , Assets_billion FROM Companies ORDER BY name ASC" Which department offers the most number of degrees? List department name and id.,"SELECT T2.department_name, T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(*) DESC LIMIT 1" How many users received high compliment type in photo?,SELECT COUNT(T1.user_id) FROM Users_Compliments AS T1 INNER JOIN Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.number_of_compliments LIKE 'High' AND T2.compliment_id = 1 "What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?",SELECT AVG(cuts_made) FROM table_name_33 WHERE top_5 = 0 AND top_10 = 1 AND events < 12 "Among the active male employees, how many of them are paid with the highest frequency?",SELECT COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.CurrentFlag = 1 AND T2.Gender = 'M' AND T1.PayFrequency = 2 "Among films with a rental rate of 4.99, what is the total number of films starred by Bob Fawcett?",SELECT COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rental_rate = 4.99 AND T1.first_name = 'Bob' AND T1.last_name = 'Fawcett' I want the outgoing manager for 19 february,"SELECT outgoing_manager FROM table_name_57 WHERE date_of_appointment = ""19 february""" How many penalties were there in the game with a G.F. of 40?,"SELECT penalties FROM table_name_20 WHERE gf = ""40""" find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.,"SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3" how many students enrolled for the accounting department,SELECT count ( * ) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' What is the top grid that is driven by martin brundle?,"SELECT MAX(grid) FROM table_name_78 WHERE driver = ""martin brundle""" What's the location attendance of the milwaukee team?,"SELECT location_attendance FROM table_27721131_2 WHERE team = ""Milwaukee""" What are the names listed in the family il-1f2?,"SELECT name FROM table_29871617_1 WHERE family_name = ""IL-1F2""" Which player ID are left winger and weight more than 200?,SELECT DISTINCT playerID FROM Master WHERE pos LIKE '%L%' AND weight > 200 AND playerID IS NOT NULL AND pos = 'L' What was the 2nd leg score for the match with Lesotho as team 1?,"SELECT 2 AS nd_leg FROM table_name_82 WHERE team_1 = ""lesotho""" How many flights depart from City Aberdeen?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" What are the names of projects that require between 100 and 300 hours?,SELECT name FROM projects WHERE hours BETWEEN 100 AND 300 What is the patient associated with the appointment on 2008-04-24 10:00?,SELECT Patient FROM Appointment WHERE Start = '2008-04-24 10:00' What's the average total viewers that has 17.6% Share?,"SELECT AVG(total_viewers) FROM table_name_96 WHERE share = ""17.6%""" Which stage has a Winner of lucien van impe?,"SELECT stage FROM table_name_19 WHERE winner = ""lucien van impe""" What's the Order with an Elector of Marino Bulcani?,"SELECT order FROM table_name_61 WHERE elector = ""marino bulcani""" "In year 2009, what is the percentage of the episode titled by ""Gone Maggie Gone"" being nominated?",SELECT CAST((SUM(CASE WHEN T1.result = 'Nominee' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.result = 'Winner' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.result) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.title = 'Gone Maggie Gone' AND T1.year = 2009; What are the additional notes for Cotabato?,"SELECT additional_notes FROM table_name_79 WHERE location = ""cotabato""" Which Record has a Time of 4:50?,"SELECT record FROM table_name_58 WHERE time = ""4:50""" Which To par has a Score of 70-73-80-68=291?,SELECT to_par FROM table_name_97 WHERE score = 70 - 73 - 80 - 68 = 291 What is the avg seek time for a device that is less than 3231?,SELECT avg_seek_time_[ms] FROM table_name_26 WHERE device < 3231 In what location was the tail number ZS-SPF?,"SELECT location FROM table_name_83 WHERE tail_number = ""zs-spf""" Which trip had the longest duration? State the start and end station.,"SELECT start_station_name, end_station_name FROM trip WHERE duration = ( SELECT MAX(duration) FROM trip )" Which largest average had 1229 yards?,SELECT MAX(avg) FROM table_name_83 WHERE yards = 1229 What builder has a 2001-02 order year?,"SELECT builder FROM table_name_93 WHERE order_year = ""2001-02""" "What is the smallest Result with a Location of birmingham, and Rank larger than 5?","SELECT MIN(result) FROM table_name_73 WHERE location = ""birmingham"" AND rank > 5" What is the Dorm ID of Dorm-plex 2000?,"SELECT dormid from dorm where dorm_name = ""Dorm-plex 2000""" "How many verbs mean to grow, to produce","SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = ""to grow, to produce""" What warship has horse-power of 1500?,SELECT warship FROM table_23614702_1 WHERE horse__power = 1500 Which award was nominated for in 2000?,"SELECT award FROM table_name_37 WHERE year = 2000 AND result = ""nominated""" Provide the titles and revenues of the movies produced by the DreamWorks company.,"SELECT T1.title, T1.revenue FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T2.company_id = T3.company_id WHERE T3.company_name = 'DreamWorks'" What city was the home team Tigre?,"SELECT city FROM table_name_5 WHERE home_team_s_ = ""tigre""" "Which vocal type has the band mate with last name ""Heilo"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = ""Heilo"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" How many years where Eichstädt had a number of 939?,SELECT COUNT(year) FROM table_11680175_1 WHERE eichstädt = 939 What school in 72 Scott county has an enrollment more than 473 with an AAA IHSAA Class?,"SELECT school FROM table_name_11 WHERE enrollment > 473 AND ihsaa_class = ""aaa"" AND _number___county = ""72 scott""" When did researchers start and stop working?,"SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'researcher'" What Entrant older than 1950 has points smaller than 7?,SELECT entrant FROM table_name_82 WHERE year > 1950 AND points < 7 What is the city with the most customers?,"SELECT T.city FROM ( SELECT T1.city, COUNT(T3.customer_id) AS num FROM city AS T1 INNER JOIN address AS T2 ON T2.city_id = T1.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id GROUP BY T1.city ) AS T ORDER BY T.num DESC LIMIT 1" Who is the opponent when the team is Cork?,"SELECT opposition FROM table_name_32 WHERE team = ""cork""" Find the year in which the least people enter hall of fame.,SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1; What is the name of the body builder with the greatest body weight?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 Which round has a time of 3:01?,"SELECT round FROM table_name_43 WHERE time = ""3:01""" What year did Ivanovic win with Ivanovic greater than 4 and round of R16?,"SELECT SUM(year) FROM table_name_95 WHERE winner = ""ivanovic"" AND ""ivanovic"" > 4 AND round = ""r16""" What are the full names and hire dates for employees in the same department as someone with the first name Clara?,"SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = ""Clara"")" How many high rebounds took place on December 8?,"SELECT COUNT(high_rebounds) FROM table_27712451_6 WHERE date = ""December 8""" What is the group a winner for modena?,"SELECT group_a_winner FROM table_1137142_1 WHERE group_b_winner = ""Modena""" When did Roma host the Olympic Games?,SELECT T3.games_year FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Roma' What is the score when the record was 40–36?,"SELECT score FROM table_name_65 WHERE record = ""40–36""" What is the lowest number of appearances a player had,SELECT MIN(appearances¹) FROM table_24565004_7 What award did the episode that aired on 11/30/2008 win?,SELECT T1.award FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.result = 'Winner' AND T2.air_date = '2008-11-30'; How many students are older than average for each gender?,"SELECT count(*) , sex FROM student WHERE age > (SELECT avg(age) FROM student) GROUP BY sex" "Show the names of donors who donated to both school ""Glenn"" and ""Triton""",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' What are the student ids for those on scholarship in major number 600?,SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' Return the name and id of the furniture with the highest market rate.,"SELECT name, furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1" "What are the names and phone numbers for all suppliers, sorted in alphabetical order of their addressed?","SELECT T1.supplier_name , T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details" "Describe the objects, their attributes, and the relationships that comprise the scene on image no. 1 within the bounding box, represented as (388, 369, 48, 128).","SELECT DISTINCT T2.OBJ_CLASS, T4.ATT_CLASS, T6.PRED_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID INNER JOIN IMG_REL AS T5 ON T1.IMG_ID = T5.IMG_ID INNER JOIN PRED_CLASSES AS T6 ON T5.PRED_CLASS_ID = T6.PRED_CLASS_ID WHERE T1.IMG_ID = 1 AND T1.X = 388 AND T1.Y = 369 AND T1.W = 48 AND T1.H = 128" can you show me song's language?,"SELECT song_name, languages FROM song" What are the maximum price and score of wines for each year?,"SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR" How many cards does customer Art Turcotte have?,"SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Art"" AND T2.customer_last_name = ""Turcotte""" How many CSU campuses are there?,SELECT count(*) FROM campuses "When the year was 1992, what were the points won?","SELECT points_won FROM table_1628607_5 WHERE year = ""1992""" What is the total number of people who has no friend living in the city of Austin?,SELECT count ( DISTINCT name ) FROM PersonFriend WHERE friend NOT IN ( SELECT name FROM person WHERE city = 'Austin' ) "What is the name of the player who won the ""man of the match"" award in the match on 2008/4/18?",SELECT T2.Player_Name FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match WHERE T1.Match_Date = '2008-04-18' What is the most common type of ships?,SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 What are the order date and product name of the order ID CA-2011-137274 from the Central region?,"SELECT T1.`Order Date`, T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Order ID` = 'CA-2011-137274' AND T2.Region = 'Central'" What was the latest year of release for the greatest hits title?,"SELECT MAX(year_of_release) FROM table_name_71 WHERE title = ""greatest hits""" Show the distinct director of films with market estimation in the year of 1995.,SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995 How many rounds was the fight when the record was 4-0?,"SELECT COUNT(round) FROM table_name_74 WHERE record = ""4-0""" What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?,"SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = ""rolls-royce/snecma olympus 593"" AND sfc_in_lb__lbf·h_ < 1.195" Who built the under grid 6 car with under 49 laps?,SELECT constructor FROM table_name_94 WHERE grid < 6 AND laps < 49 What is the Date of the Game with a Score of w 112-107 (ot)?,"SELECT date FROM table_name_29 WHERE score = ""w 112-107 (ot)""" "Write the full name of the customers whose address is at 55 Dorton Pass, Huangqiao.","SELECT DISTINCT T1.first_name, T1.last_name FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id WHERE T3.street_number = 55 AND T3.street_name = 'Dorton Pass' AND T3.city = 'Huangqiao'" "What is the url of the journal in which the paper ""Area Effects in Cepaea"" was published?",SELECT T1.HomePage FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Title = 'Area Effects in Cepaea' What are the names of customers who live in Colorado state?,"SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = ""Colorado""" What shows for monounsaturated fat when the saturated fat is 39g?,"SELECT monounsaturated_fat FROM table_name_32 WHERE saturated_fat = ""39g""" Find the lowest membership amount?,SELECT min ( membership_amount ) FROM branch How did the match end when she played with caroline wozniacki?,"SELECT outcome FROM table_25505246_8 WHERE partner = ""Caroline Wozniacki""" How many seasons have a production code of 204?,SELECT COUNT(no_in_season) FROM table_16581695_3 WHERE production_code = 204 Which policy type appears most frequently in the available policies?,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1 Who was the Minister that served for 307 days?,"SELECT minister FROM table_name_46 WHERE term_in_office = ""307 days""" Who is the shortest player and state the team ID of that player from 1925 to 1936.,"SELECT T2.playerID, T2.tmID FROM ( SELECT playerID FROM Master WHERE height IS NOT NULL ORDER BY height ASC LIMIT 1 ) AS T1 INNER JOIN ( SELECT DISTINCT playerID, tmID FROM Scoring WHERE year BETWEEN 1925 AND 1936 ) AS T2 ON T1.playerID = T2.playerID" What is the number of land areas that have a place name of Ballplay?,"SELECT COUNT(land_area__2010_) FROM table_249512_2 WHERE place_name = ""Ballplay""" What event in guam did Tetsuji Kato win against patrick madayag?,"SELECT event FROM table_name_39 WHERE res = ""win"" AND location = ""guam"" AND opponent = ""patrick madayag""" Which Power has a Name of 9 nc?,"SELECT power FROM table_name_21 WHERE name = ""9 nc""" "For the order with the total price of 231499.38, what was the discounted price for supplier No. 9397?",SELECT T1.l_extendedprice * (1 - T1.l_discount) AS DISCOUNTERPRICE FROM lineitem AS T1 INNER JOIN orders AS T2 ON T2.o_orderkey = T1.l_orderkey WHERE T1.l_suppkey = 9397 AND T2.o_totalprice = 231499.38 Which poll resource provided the most number of candidate information?,SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1 What are the Main Services of station id 3?,select main_services from station where station_id = 3 What was the attendance at the St Kilda home game?,"SELECT AVG(crowd) FROM table_name_54 WHERE home_team = ""st kilda""" Please list down the ID of actors and directors in action movies.,"SELECT T2.actorid, T1.directorid FROM movies2directors AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.genre = 'Action'" State the player ID of player with average height of 75.,SELECT DISTINCT playerID FROM Master GROUP BY playerID HAVING AVG(height) = 75 How many times did episode 1.8 air?,"SELECT COUNT(original_airdate) FROM table_14937957_1 WHERE episode__number = ""1.8""" "That was really quick, thank you. Then can you please tell me how much money they requested, respectively?",SELECT Money_Requested from entrepreneur where Investor = 'Simon Woodroffe' or Investor = 'Peter Jones' What is the student_capacity of Smith Hall? | Are you asking about the student capacity of the dorm named Smith Hall? | Yes,"SELECT student_capacity from dorm where dorm_name = ""Smith Hall""" What date did the project with he 'Lets Share Ideas essay' went live?,SELECT T1.date_posted FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Lets Share Ideas' What country do the Winnipeg Jets come from?,"SELECT nationality FROM table_2679061_7 WHERE nhl_team = ""Winnipeg Jets""" "Who won the race on wednesday, august 27?","SELECT winner FROM table_name_18 WHERE date = ""wednesday, august 27""" The city of Birmingham is what type of location?,"SELECT type FROM table_2273738_1 WHERE city = ""Birmingham""" Which two countries have the longest border in the world? Give the full name of the country.,"SELECT T2.Country1, T2.Country2 FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 ORDER BY T2.Length DESC LIMIT 1" Please list the business IDs of the Yelp_Business that have a business time of longer than 12 hours on Sundays.,SELECT T1.business_id FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T1.closing_time + 12 - T1.opening_time > 12 AND T2.day_of_week LIKE 'Sunday' GROUP BY T1.business_id What are the details and star ratings of the three hotels with the lowest price ranges?,"SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3" How many restaurants can you find in Concord?,SELECT COUNT(id_restaurant) FROM location WHERE city = 'concord' And how many of them are under age 40?,select count ( * ) from person where age < 40 and gender = 'male' "Who was the opponent in a week less than 8 on October 9, 1960?","SELECT opponent FROM table_name_24 WHERE week < 8 AND date = ""october 9, 1960""" "Please list down the last name of players from ""BLB"" team.",SELECT T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'BLB' What venue did the partnership of herschelle gibbs / justin kemp happen?,"SELECT venue FROM table_name_74 WHERE partnerships = ""herschelle gibbs / justin kemp""" Which destination has the least number of flights?,"SELECT destination, count ( * ) FROM Flight GROUP BY destination order by count ( * ) LIMIT 1" Find the male friend of Alice whose job is a doctor?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor' "What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played?",SELECT AVG(goals_for) FROM table_name_19 WHERE drawn > 7 AND goals_against < 86 AND lost > 11 AND played > 42 What are the names of the three nations where the longest river that empties into the Atlantic Ocean stretches to?,SELECT DISTINCT T1.Country FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = ( SELECT Name FROM river WHERE Sea = 'Atlantic Ocean' ORDER BY Length DESC LIMIT 1 ) "In Week 7, what is the highest attendance number?",SELECT MAX(attendance) FROM table_name_77 WHERE week = 7 What clubs are in the evgrapi shevardnadze stadium?,"SELECT clubs FROM table_name_17 WHERE stadium = ""evgrapi shevardnadze stadium""" Which position does Loren Woods play?,"SELECT position FROM table_10015132_21 WHERE player = ""Loren Woods""" "List out full name of patients who have ""Diabetic diet"" in the description of the care plan.","SELECT DISTINCT T2.first, T2.last FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Diabetic diet'" What was the date of the series finale for Peru?,"SELECT series_finale FROM table_29799700_2 WHERE country = ""Peru""" Compute the mean price of procedures physician John Wen was trained in.,"SELECT avg(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" WHAT GAME HAD A SCORE OF 99-112?,"SELECT game FROM table_name_30 WHERE result = ""99-112""" "What is Location, when Circuit is August 16?","SELECT location FROM table_name_1 WHERE circuit = ""august 16""" Which Name had a Rank of 18 Out of a number smaller than 149?,SELECT name FROM table_name_31 WHERE out_of < 149 AND rank = 18 List every album whose title starts with A in alphabetical order.,SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title; What are the total number of students enrolled in ACCT-211?,SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211' When troy is the regular season winner what is the conference tournament?,"SELECT conference AS Tournament FROM table_24160890_3 WHERE regular_season_winner = ""Troy""" Name the status for belletti,"SELECT status FROM table_name_8 WHERE name = ""belletti""" Find the name and gender of the candidate who got the highest support rate.,"SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1" Name the result for william j. driver,"SELECT result FROM table_1342426_5 WHERE incumbent = ""William J. Driver""" What class had a score of 95.1?,SELECT class FROM table_name_33 WHERE score = 95.1 List all of the player ids with a height of at least 180cm and an overall rating higher than 85.,SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85 What is the Japanese title for Fantasy?,"SELECT japanese_title FROM table_11839306_2 WHERE english_title = ""Fantasy""" What is the address of the customer who filed the most recent complaint?,"SELECT t1.address_line_1, t1.address_line_2 FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1" Can you show only the name?,SELECT Name FROM WINE WHERE Price > ( SELECT max ( Price ) FROM WINE WHERE YEAR = 2006 ) "What is Nation, when Date is ""2004-07-22""?","SELECT nation FROM table_name_67 WHERE date = ""2004-07-22""" How many purchase in this above the table,SELECT count ( * ) FROM TRANSACTIONS "Which display has an ISO range of 80-800, and 0.8 Seconds/Frame?","SELECT display FROM table_name_21 WHERE iso_range = ""80-800"" AND seconds_frame = 0.8" Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount.,"SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1" What is the location of the Saints having 1979- as Years in GFL?,"SELECT location FROM table_name_37 WHERE years_in_gfl = ""1979-"" AND nickname = ""saints""" When the VFL played at Junction Oval what was the away score?,"SELECT away_team AS score FROM table_name_15 WHERE venue = ""junction oval""" Show all cities and corresponding number of students.,"SELECT city_code , count(*) FROM Student GROUP BY city_code" What is the proportion of action movies directors who are called 'box office success paradox'?,"SELECT CAST(SUM(IIF(T2.avg_revenue > T2.d_quality, 1, 0)) AS REAL) * 100 / COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN directors AS T2 ON T1.directorid = T2.directorid WHERE T1.genre = 'Action'" Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.,SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005 how many movies are there in total?,SELECT count ( * ) FROM Movie "who was the Stage winner when the stage was smaller than 16, earlier than 1986, and a distance (km) was 19.6?","SELECT stage AS winner FROM table_name_44 WHERE stage < 16 AND year < 1986 AND distance__km_ = ""19.6""" What are the addresses of the employees? | Do you mean all of the employees? | Yes,SELECT address FROM employees "Who are the members of the club named ""Bootup Baltimore""? Give me their last names.","SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore""" Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.,"SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = ""F"" AND T2.Election_Cycle = ""Spring""" What is the English title for the film directed by George Miller?,"SELECT english_title FROM table_name_19 WHERE director = ""george miller""" What is highest rating for the most recent movie and when was it released?,"SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)" What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?,"SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"" AND nickname LIKE ""%s%"";" What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?,"SELECT date FROM table_name_91 WHERE winning_driver = ""stirling moss"" AND race_name = ""vi grand prix de caen""" "What is the Event, when Year is 2002, and when Competition is European Indoor Championships?","SELECT event FROM table_name_6 WHERE year = 2002 AND competition = ""european indoor championships""" Can you show me the total number of phones?,SELECT count ( * ) from phone "What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?","SELECT moving_to FROM table_name_12 WHERE transfer_fee = ""free"" AND nat = ""cyp"" AND transfer_window = ""winter""" what is the date (from) where date (to) is 1919?,"SELECT date__from_ FROM table_12562214_1 WHERE date__to_ = ""1919""" "What is the name of the coach during whose period of coaching, a team has the most numbers of games won in the post-season games?",SELECT coachID FROM coaches ORDER BY post_wins DESC LIMIT 1 Which Second has a Skip of barbora vojtusova?,"SELECT second FROM table_name_27 WHERE skip = ""barbora vojtusova""" What is the average value of Adolescent fertility rate in the country whose Alpha2Code is 1A?,"SELECT CAST(SUM(T2.Value) AS REAL) * 100 / COUNT(T2.Year) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'" What is the To par of the Player with a Score of 70-71=141?,SELECT AVG(to_par) FROM table_name_58 WHERE score = 70 - 71 = 141 Can you show me the credit score of the customer receiving the greatest amount of loan?,SELECT T2.credit_score FROM loan AS T1 JOIN customer AS T2 ON T1.cust_id = T2.cust_id ORDER BY T1.amount DESC limit 1 "Name the team for oct 30, 1989","SELECT team__b_ FROM table_1594772_2 WHERE match_date = ""Oct 30, 1989""" How many IRST figures for the show that premiered on Canale 5 (2006)?,"SELECT COUNT(irst) FROM table_28803803_1 WHERE original_channel = ""Canale 5 (2006)""" Name the publisher who published the most books.,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id GROUP BY T2.publisher_name ORDER BY COUNT(T2.publisher_id) DESC LIMIT 1 "What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?","SELECT SUM(rebounds) FROM table_name_56 WHERE team = ""aris thessaloniki"" AND games > 14" What is the name of the journalist who has worked longest?,SELECT name FROM journalist ORDER BY Years_working DESC LIMIT 1 which game type has least number of games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count ( * ) ASC LIMIT 1 Name the most # of seats won,SELECT MAX(_number_of_seats_won) FROM table_19769687_3 "What kind of restaurants can be found at ""106 E 25th Ave""?",SELECT T1.food_type FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_num = 106 AND T2.street_name = 'e 25th ave' What shareholders have 0 A shares?,SELECT shareholder_name FROM table_206359_1 WHERE a_shares = 0 "Among the trains running east, how many trains have at least 4 cars?","SELECT SUM(CASE WHEN T1.direction = 'east' THEN 1 ELSE 0 END)as count FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS carsNum FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T2.carsNum >= 4" "Which Bronze has a Total smaller than 2, and a Silver larger than 0, and a Gold smaller than 0?",SELECT SUM(bronze) FROM table_name_69 WHERE total < 2 AND silver > 0 AND gold < 0 What score has 7-0 as the result?,"SELECT score FROM table_name_56 WHERE result = ""7-0""" Who wrote the episode that had 6.05 million U.s. viewers?,"SELECT written_by FROM table_28037619_2 WHERE us_viewers__million_ = ""6.05""" What are the names of the heads who are born outside the California state?,SELECT name FROM head WHERE born_state != 'California' What was the condition of Elly Koss on 2009/1/8?,SELECT T2.description FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.START = '2009-01-08' Who took third-place when there were 4 total wins?,SELECT third_place FROM table_17632217_2 WHERE total_wins = 4 "Among the patients with prediabetes, how many are female?",SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.gender = 'F' AND T1.DESCRIPTION = 'Prediabetes' What is the Cyrillic name for Novi Vladimirovac? ,"SELECT cyrillic_name_other_names FROM table_2562572_56 WHERE settlement = ""Novi Vladimirovac""" Show all game names played by at least 1000 hours.,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000 How many episodes have the star score greater than 8?,SELECT COUNT(DISTINCT episode_id) FROM Vote WHERE stars > 8; What is the name of the customer who has been involved in most policies?,SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1 "what is the name of the product with the characteristic ""hot""?","SELECT t1.product_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 t3.characteristic_name = ""hot""" List all the cities in the country where there is high life expectancy at birth.,SELECT T2.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.LifeExpectancy DESC LIMIT 1 what is the silver when the nation is syria (syr) and gold is more than 0?,"SELECT SUM(silver) FROM table_name_38 WHERE nation = ""syria (syr)"" AND gold > 0" can you show me the address of the restaurant with ResID 1?,select address from Restaurant where ResID = 1 in december 7 who made the high points,"SELECT high_points FROM table_30049462_5 WHERE date = ""December 7""" Find the total number of scientists.,SELECT count(*) FROM scientists "Find the number of products with category ""Spices"" and typically sold above 1000.","SELECT count(*) FROM products WHERE product_category_code = ""Spices"" AND typical_buying_price > 1000" "What is the party of the politician who left office on January 12, 1857","SELECT party FROM table_name_47 WHERE left_office = ""january 12, 1857""" List the name of the author that affiliated with University of Illinois Chicago?,SELECT Name FROM Author WHERE Affiliation = 'University of Illinois Chicago' What are the student ids for all male students?,SELECT StuID FROM Student WHERE Sex = 'M' What was Holly Scouler's total votes,"SELECT total_votes FROM table_name_62 WHERE members = ""holly scouler""" Which exaltation has a detriment of Saturn and Cancer as a sign?,"SELECT exaltation FROM table_name_75 WHERE detriment = ""saturn"" AND sign = ""cancer""" What Goals with a Level of 5 or greater is the lowest?,SELECT MIN(goals) FROM table_name_95 WHERE level > 5 "For each constructor id, how many races are there?","SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid" "Which Opponents have a Score of 6–4, 6–3?","SELECT opponents FROM table_name_59 WHERE score = ""6–4, 6–3""" When was Emily Wood hired? Mention her position and salary.,"SELECT T1.hiredate, T2.positiontitle, T1.salary FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'Emily' AND T1.lastname = 'Wood'" List the email of customers that bought the book titled Switch on the Night.,SELECT T4.email FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.title = 'Switch on the Night' "Display the full name , hire date , salaer, and department member of the above results.","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'" What is the total number of deaths and damage for all storms with a max speed greater than the average?,"SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm)" "What is the height of Patrick Femerling, of the Alba Berlin club?","SELECT COUNT(height) FROM table_name_36 WHERE current_club = ""alba berlin"" AND player = ""patrick femerling""" "Which position had fewer rounds than 3, and an overall of less than 48?",SELECT position FROM table_name_96 WHERE round < 3 AND overall < 48 When 0-1 is the aggregate what are the home (1st leg)?,"SELECT home__1st_leg_ FROM table_14219514_2 WHERE aggregate = ""0-1""" "What is Points Against, when Try Bonus is ""Try bonus""?","SELECT points_against FROM table_name_77 WHERE try_bonus = ""try bonus""" What is the favourite movie genre for audiences of age 18?,SELECT T1.genre FROM movies2directors AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid INNER JOIN users AS T3 ON T2.userid = T3.userid WHERE T3.age = 18 GROUP BY T1.genre ORDER BY COUNT(T1.movieid) DESC LIMIT 1 Provide the platform where the Panzer Tactics can be played.,SELECT T4.platform_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.game_name = 'Panzer Tactics' How many of those films do not have any market estimation?,SELECT count ( Title ) FROM film WHERE Film_ID NOT IN ( SELECT Film_ID FROM film_market_estimation ) Tell me the total number of gold for bronze more than 0 and total more than 100,"SELECT COUNT(gold) FROM table_name_2 WHERE bronze > 0 AND rank = ""total"" AND ""total"" > 100" How many contestants did not get voted?,SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes ) What is the Tie no when Swansea City is the Away team with a Score of 2–2?,"SELECT tie_no FROM table_name_75 WHERE score = ""2–2"" AND away_team = ""swansea city""" What is the total population with less than 789 males?,SELECT COUNT(total_population) FROM table_name_12 WHERE male < 789 Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5?,"SELECT programming FROM table_name_53 WHERE channel > 51.2 AND psip_short_name = ""kyaz-5""" How many students are there in total?,SELECT count(*) FROM STUDENT Which car in the database provides the best crash protection based on its weight? How much is it?,"SELECT T1.ID, T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1" "How many services has each resident requested? List the resident id, details, and the count in descending order of the count.","SELECT T1.resident_id , T1.other_details , count(*) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count(*) DESC" What is the highest number of rebounds of the game with a 6-14 record?,"SELECT high_rebounds FROM table_name_53 WHERE record = ""6-14""" Who was the contstructor of the car having a grid of 20?,"SELECT constructor FROM table_name_66 WHERE grid = ""20""" What is the average transaction amount?,SELECT avg ( transaction_amount ) FROM Financial_transactions How many games did they play on october 9?,SELECT COUNT(opponent) FROM table_27539808_3 WHERE october = 9 What home team scored 102-87?,"SELECT home_team FROM table_name_60 WHERE score = ""102-87""" What were the notes for the time of 6:34.51?,"SELECT notes FROM table_name_56 WHERE time = ""6:34.51""" "Who is the narrator of the ""Flight"" episode?",SELECT T3.name FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.title = 'Flight' AND T2.role = 'Narrator' Which Object type has a Constellation of cancer?,"SELECT object_type FROM table_name_58 WHERE constellation = ""cancer""" What are the average score and average staff number of all shops?,"SELECT avg(num_of_staff) , avg(score) FROM shop" What are the balances of checking accounts belonging to people with savings balances greater than the average savings balance?,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM savings)) "Show the distinct leader names of colleges associated with members from country ""Canada"".","SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = ""Canada""" "Find all the instruments ever used by the musician with last name ""Heilo""?","SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" "Name the dishes that cost 180,000.",SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.price = 180000 What is the length for years 2012-2013?,"SELECT length FROM table_name_29 WHERE year = ""2012-2013""" "Find the titles of the papers that contain the word ""ML"".","SELECT title FROM papers WHERE title LIKE ""%ML%""" What is the first name of students enrolled in class ACCT-211 and got grade C?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C' Show the name of colleges that have at least two players.,SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 shows for the artist Santana featuring the product g&b?,"SELECT volume AS :issue FROM table_name_78 WHERE artist = ""santana featuring the product g&b""" What is the original air date for episode 4? ,SELECT original_air_date FROM table_23399481_3 WHERE season__number = 4 "What is the highest number of games drawn, where the games played was less than 7?",SELECT MAX(drawn) FROM table_name_86 WHERE games < 7 "When was there a Time of 18:00, and a Set 1 of 22–25?","SELECT date FROM table_name_92 WHERE time = ""18:00"" AND set_1 = ""22–25""" Which of their position titles contain the word senior in it?,SELECT Position FROM physician WHERE POSITION LIKE '%senior%' Find the name and building of the department with the highest budget.,"SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1" Who had a transfer fee of released and played the position of DF?,"SELECT player FROM table_name_30 WHERE transfer_fee = ""released"" AND pos = ""df""" What is the zip code of the customer Carole Bernhard?,"SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" "What is the relationship between ""feathers"" and ""onion"" in image no.2345528?",SELECT T1.PRED_CLASS FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.OBJ1_SAMPLE_ID = T3.OBJ_SAMPLE_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE (T4.OBJ_CLASS = 'feathers' OR T4.OBJ_CLASS = 'onion') AND T2.IMG_ID = 2345528 GROUP BY T1.PRED_CLASS How many times was the rank (night) 11?,SELECT COUNT(viewers__millions_) FROM table_11253290_2 WHERE rank__night_ = 11 "Hmm, I want to know the asset ids that did not incur any fault log.",Select asset_id from Assets where asset_id not in ( SELECT asset_id from Fault_Log ) Name the season for position 4th,"SELECT COUNT(season) FROM table_25375093_1 WHERE position = ""4th""" What are the names of the artists that released the oldest song on the list?,SELECT artist_name FROM song ORDER BY releasedate LIMIT 1 "Find the addresses of the course authors who teach the course with name ""operating system"" or ""data structure"".","SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""operating system"" OR T2.course_name = ""data structure""" "How many ""Mountain-100 Silver, 38"" were sold by Stearns MacFeather?","SELECT SUM(T2.Quantity) FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Stearns' AND T1.LastName = 'MacFeather' AND T3.Name = 'Mountain-100 Silver, 38'" How many cars on a train that runs in the east direction have a flat roof?,SELECT SUM(CASE WHEN T1.roof = 'flat' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' What is the lowest attendance total on August 26?,"SELECT MIN(attendance) FROM table_name_71 WHERE date = ""august 26""" What is the name of the department that has the largest number of students enrolled?,SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1 Show all locations where a gas station for company with market value greater than 100 is located.,SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 What are the male names in weddings after 2014?,SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id WHERE T1.year > 2014 Which party does Timothy Kirkhope lead?,"SELECT party FROM table_name_50 WHERE leader = ""timothy kirkhope""" What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?,SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama' How many employees came into the Quality Assurance Group in the year 2007?,"SELECT COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID WHERE T2.GroupName = 'Quality Assurance' AND STRFTIME('%Y', T1.StartDate) = '2007'" What is the smallest crowd at the Victoria Park Venue?,"SELECT MIN(crowd) FROM table_name_94 WHERE venue = ""victoria park""" What's the highest bronze with a less than 1 Rank?,SELECT MAX(bronze) FROM table_name_40 WHERE rank < 1 Where was the game when Collingwood was the home team?,"SELECT venue FROM table_name_19 WHERE away_team = ""collingwood""" "Which Artist has an Issue Price of $8,159.95?","SELECT artist FROM table_name_11 WHERE issue_price = ""$8,159.95""" Find the number of matches happened in each year.,"SELECT count(*) , YEAR FROM matches GROUP BY YEAR" Which Status has a Opposing Teams of wales?,"SELECT status FROM table_name_16 WHERE opposing_teams = ""wales""" Which Partner has Opponents in the final of john bromwich frank sedgman?,"SELECT partner FROM table_name_20 WHERE opponents_in_the_final = ""john bromwich frank sedgman""" what is the first name of the student with last name smith?,"SELECT Fname from Student where LName = ""Smith""" "Among the author included in the paper of ""Inspection resistant memory: Architectural support for security from physical examination"", write down the author name and ID who were affiliated with Microsoft Research, USA.","SELECT T2.Name, T1.Id FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Inspection resistant memory: Architectural support for security FROM physical examination' AND T2.Affiliation = 'Microsoft Research, USA'" "List the food type of the restaurant located in 22779 6th St., Hayward City.",SELECT T2.food_type FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_num = 22779 AND T1.street_name = '6th St' AND T2.city = 'hayward' How many students are there for each major?,"SELECT major , count(*) FROM Student GROUP BY major" Show the opening year in which at least two churches opened,SELECT open_date FROM church GROUP BY open_date HAVING count ( * ) > = 2 How many students play video games?,SELECT count(DISTINCT StuID) FROM Plays_games "Who are the technicians from team ""CLE"" and ""CWS""?",select Name from technician where Team = 'CLE' or team = 'CWS' List the description of all the colors.,SELECT color_description FROM ref_colors WHAT WAS HER SONG CHOICE WHEN THE WEEK WAS TOP 10?,"SELECT song_choice FROM table_15778392_1 WHERE week__number = ""Top 10""" How many students are there?,SELECT count(*) FROM student Return the average and minimum age of captains in each class.,"SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS" What is the result under the season coach Rich Rodriguez?,"SELECT result FROM table_name_29 WHERE season_coach = ""rich rodriguez""" What is the average Points for a year before 1955?,SELECT AVG(points) FROM table_name_68 WHERE year < 1955 When were those built?,SELECT built FROM railway GROUP BY LOCATION HAVING COUNT ( * ) > = 2 What skip has switzerland as the country?,"SELECT skip FROM table_name_15 WHERE country = ""switzerland""" What are the product names of all products with the color description red?,"SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""red""" What is the course id for the International Finance course?,SELECT course_id FROM course WHERE title = 'International Finance' "Show the description of transaction type with code ""PUR"".","SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = ""PUR""" Which competition was played on 8 June 2005?,"SELECT competition FROM table_name_90 WHERE date = ""8 june 2005""" Return the structure description of the document that has been accessed the fewest number of times.,SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY count(*) DESC LIMIT 1 "How many values for result correspond to attendance of 74,111?","SELECT COUNT(result) FROM table_15647838_3 WHERE attendance = ""74,111""" Is prothrombin time long when thromboplastin is prolonged?,"SELECT prothrombin_time FROM table_1226250_1 WHERE bleeding_time = ""Prolonged"" AND partial_thromboplastin_time = ""Prolonged""" How many engines are there for model 97H00?,"SELECT COUNT(engine) FROM table_20866024_4 WHERE model_designation = ""97H00""" Which Total has a League Cup smaller than 0?,SELECT MAX(total) FROM table_name_69 WHERE league_cup < 0 What Game had a Result of 125-123 (OT)?,"SELECT game FROM table_name_45 WHERE result = ""125-123 (ot)""" "What was the total Attendance in weeks previous of 5, playing the Seattle Seahawks?","SELECT COUNT(attendance) FROM table_name_47 WHERE week < 5 AND opponent = ""seattle seahawks""" Name the total number of round for against the netherlands,"SELECT COUNT(round) FROM table_22825058_23 WHERE against = ""The Netherlands""" Who is the captain of the team coached by Giles White?,"SELECT captain FROM table_name_28 WHERE coach = ""giles white""" "Who is the one representing the company ""Heli Swaren GmbH & Co. KG""?",SELECT ContactName FROM Suppliers WHERE CompanyName = 'Heli Swaren GmbH & Co. KG' "What player had a transfer window of winter, and free as the transfer fee?","SELECT name FROM table_name_72 WHERE transfer_window = ""winter"" AND transfer_fee = ""free""" Is wireless combo keyboard and mouse support part of the DDM class?,"SELECT ddm_class FROM table_1153898_1 WHERE comparisons = ""Wireless Combo keyboard and mouse support""" What is the highest position of the Bangor City team?,"SELECT MAX(position) FROM table_17366952_1 WHERE team = ""Bangor City""" Name the result for first elected being 1798 1825,"SELECT result FROM table_2668243_18 WHERE first_elected = ""1798 1825""" How many courses are provided in each semester and year?,"SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR" "In the final, who are the opponents of partner Simon Aspelin?","SELECT opponents_in_the_final FROM table_name_9 WHERE partner = ""simon aspelin""" What artist was released in 2005?,SELECT artist FROM table_name_71 WHERE year = 2005 Find the number of different airports which are the destinations of the American Airlines.,SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' Which episodein season 3 had 175020 for a production code?,SELECT _number FROM table_2602958_4 WHERE prod_code = 175020 "How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4?","SELECT COUNT(first_elected) FROM table_name_76 WHERE result = ""re-elected"" AND party = ""republican"" AND district = ""illinois 4""" "What is the score for the game that has an attendance of 5,298?","SELECT score FROM table_name_9 WHERE attendance = ""5,298""" Who are the professors who gave advice to students in the 12th years of program?,SELECT T1.p_id_dummy FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_12' What was the number for Schwante where Bärenklau is 1.270?,"SELECT schwante FROM table_11680175_1 WHERE bärenklau = ""1.270""" What is the pba team for the player who went to santo tomas college?,"SELECT pba_team FROM table_name_50 WHERE college = ""santo tomas""" What is the name of the brand of the beer with the shortest brewed history?,SELECT BrandName FROM rootbeerbrand ORDER BY FirstBrewedYear DESC LIMIT 1 What about before 1950?,"SELECT campus FROM campuses WHERE county = ""Los Angeles"" AND YEAR < 1950" What was Lloyd Mangrum's Score?,"SELECT score FROM table_name_63 WHERE player = ""lloyd mangrum""" "What are the population, name and leader of the country with the largest area?","SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1" What is the lowest overall amount of times they've been in 3rd?,SELECT MIN(3 AS rd) FROM table_24330912_1 Who are the students that have more than one advisor?,SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count ( * ) > 1 What is the Tournament when the winning score was 65-67-68-67=267?,SELECT tournament FROM table_name_70 WHERE winning_score = 65 - 67 - 68 - 67 = 267 What's the source of wealth of the person worth $17 billion?,SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 17 Which kind of part has the least number of faults? List the part name.,SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count(*) ASC LIMIT 1 Can you list the names of all customers who cancelled at least one order as well as the order dates of those cancelled orders?,"SELECT t1.customer_name, T2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id where T2.order_status = ""Cancelled""" "Can you give me a list of all authors from Florida, or Temple? | Do you mean the authors whose college is Florida or Temple? | Yes I did.",SELECT author from submission where college = 'Florida' or college = 'Temple' Who was the winner against finalist Lina Krasnoroutskaya?,"SELECT winner FROM table_name_92 WHERE finalist = ""lina krasnoroutskaya""" "What is the result for Gold Coast when Adelaide and Perth are yes, but Auckland is no?","SELECT gold_coast FROM table_name_6 WHERE adelaide = ""yes"" AND auckland = ""no"" AND perth = ""yes""" How many losses were there with 103 tries for?,"SELECT lost FROM table_name_84 WHERE tries_for = ""103""" what is the id of this name,SELECT t1.Manufacturer_ID 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 are the subjects available?,select subject_name from subjects What is the Venue on 26 jan 2005,"SELECT venue FROM table_name_12 WHERE date = ""26 jan 2005""" How many class 1 senators belong to the Republican party?,SELECT COUNT(bioguide) FROM `current-terms` WHERE class = 1 AND party = 'Republican' What player has 71-72-66=209 as the score?,SELECT player FROM table_name_13 WHERE score = 71 - 72 - 66 = 209 What is the record of the game when Los Angeles was the home team?,"SELECT record FROM table_name_38 WHERE home = ""los angeles""" What are all the different zip codes that have a maximum dew point that was always below 70?,SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70 What are the names and areas of countries with the top 5 largest area?,"SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5" Which Saturday has a Thursday of 木曜日 mokuyōbi,"SELECT saturday FROM table_name_8 WHERE thursday = ""木曜日 mokuyōbi""" Show me the list of all id and names of all artists that have at least 3 albums in alphabetical order?,"SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT ( * ) > = 3 ORDER BY T2.Name" What is the rank for the total that has 3 (20)?,"SELECT rank FROM table_name_11 WHERE total = ""3 (20)""" Hello! How many different Apartment Type Codes are there?,SELECT count ( apt_type_code ) FROM Apartments List the names of counties that do not have any cities.,SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city) "Find the crime rate of the county named ""Burnaby""?",SELECT Crime_rate FROM county_public_safety WHERE Name = 'Burnaby' What is the couple that received a total score of 38?,SELECT couple FROM table_28677723_16 WHERE total = 38 Identify the total number of orders processed by Northwind employee named Andrew Fuller. What percent of those orders was shipped to Austria?,SELECT CAST(COUNT(CASE WHEN T2.ShipCountry = 'Austria' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Andrew' AND T1.LastName = 'Fuller' Tell me the pick for canada centre,"SELECT pick FROM table_name_74 WHERE position = ""centre"" AND nationality = ""canada""" Please list the first name of the players who are good at both left hands and right hands for goalie and have gotten in the Hall of Fame.,"SELECT DISTINCT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.shootCatch IS NULL" "What are the different template type codes, and how many documents use each type?","SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code" What was the minimum population in 2011?,SELECT MIN(population__2011_) FROM table_2328113_1 Who is the top sales person who achived highest percentage of projected sales quota in 2013?,"SELECT BusinessEntityID FROM SalesPerson WHERE BusinessEntityID IN ( SELECT BusinessEntityID FROM SalesPersonQuotaHistory WHERE STRFTIME('%Y', QuotaDate) = '2013' ) ORDER BY CAST(SalesLastYear AS REAL) / SalesQuota DESC LIMIT 1" Name the average grade for şımarık tarkan,"SELECT average_grade FROM table_21829580_1 WHERE song = ""Şımarık Tarkan""" How many customers are there?,SELECT COUNT ( * ) FROM Customers Give the number of users who do not show their genders.,SELECT COUNT(UserID) AS user_number FROM user WHERE Gender = 'Unknown' How many gold are a rank 1 and larger than 16?,"SELECT COUNT(gold) FROM table_name_56 WHERE rank = ""1"" AND total > 16" How many students number in this table?,SELECT count ( * ) FROM student "Could you add in the rates they paid to the table please? | Sorry, did you mean the base price of the room? | The reservation rate, please","SELECT T1.firstname , T1.lastname, T1.Rate FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0" How about country with most papers?,SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count ( * ) DESC LIMIT 1 Which Authority is set for Hauturu School?,"SELECT authority FROM table_name_23 WHERE name = ""hauturu school""" What region is on 11 August 2008?,"SELECT region FROM table_name_4 WHERE date = ""11 august 2008""" WHAT IS THE 2011 PERFORMANCE FOR TOURNAMENTS PLAYED?,"SELECT 2011 FROM table_name_48 WHERE tournament = ""tournaments played""" What's the home team for the junction oval venue?,"SELECT home_team AS score FROM table_name_28 WHERE venue = ""junction oval""" Find the famous titles of artists that do not have any volume.,SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume) Find the number of students in each major.,"SELECT count(*) , major FROM student GROUP BY major" What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions?,"SELECT year FROM table_name_86 WHERE result = ""4–3"" AND champions = ""daegu tongyang orions""" What is the enrollment for the school in bottineau?,"SELECT enrollment__fall_2010_ FROM table_2076522_2 WHERE location_s_ = ""Bottineau""" What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?,SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' "How many with a value R that are dead, died in the USA?",SELECT count ( * ) FROM player WHERE birth_country = 'USA' AND bats = 'R' AND death_year < 2019 AND death_country = 'USA' What nationality has 116 appearances?,SELECT nationality FROM table_name_63 WHERE appearances = 116 What is the official name and status of the city with the most residents?,"SELECT Official_Name , Status FROM city ORDER BY Population DESC LIMIT 1" What is the URL to the movie director page on Mubi of the director whose movie was critic by user 2452551 and was given 39 likes?,SELECT T2.director_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.user_id = 2452551 AND T1.critic_likes = 39 What language is the Lyrics of the release with Catalog number 560 6111?,"SELECT lyrics FROM table_name_59 WHERE catalog_number = ""560 6111""" How many defending points did radek štěpánek have?,"SELECT MAX(points) AS defending FROM table_24431264_18 WHERE player = ""Radek Štěpánek""" Frequency of 100.1 has what on-air id?,"SELECT on_air_id FROM table_name_87 WHERE frequency = ""100.1""" How many people attended on July 5?,"SELECT SUM(attendance) FROM table_name_10 WHERE date = ""july 5""" How many horses are mentioned competing in 1985?,SELECT COUNT(horse) FROM table_21676617_1 WHERE year = 1985 Name the director who has title of transylvania 6-5000,"SELECT director FROM table_name_47 WHERE title = ""transylvania 6-5000""" "Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts?","SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = ""loren roberts""" "In Abadia, what is the word id of the of the Catalan language that appeared the highest amount of times? Indicate the how many times did they said word id appeared.","SELECT T2.wid, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Abadia' ORDER BY T2.occurrences DESC LIMIT 1" Please list all IDs of students who have registered courses,SELECT student_id FROM student_course_registrations What replica has the 5th position?,"SELECT replica FROM table_name_82 WHERE position = ""5th""" "Tell me what the other fault details for that are, please?",SELECT T1.other_fault_details FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1 How many 24 years old competitors competed in Men's Basketball?,SELECT COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN event AS T3 ON T1.event_id = T3.id WHERE T3.event_name LIKE 'Basketball Men%s Basketball' AND T2.age = 24 find the ids of reviewers who did not give 4 star.,SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 What are the names of enzymes in descending order?,SELECT name FROM enzyme ORDER BY name DESC What is the amount of assists when mins is 744:27?,"SELECT assists FROM table_20107762_1 WHERE mins = ""744:27""" List the names of all left-footed players who have overall rating between 85 and 90.,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = ""left"" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90" What was the total attendance of the New York Giants?,"SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = ""New York Giants""" Which club had more than 2 FA trophies and more than 2 FA cups?,SELECT club FROM table_name_34 WHERE fa_trophy > 2 AND fa_cup > 2 Who was the Runner-up in Hossegor?,"SELECT runner_up FROM table_name_68 WHERE location = ""hossegor""" Who is the away captain for Kingsmead?,"SELECT away_captain FROM table_name_81 WHERE venue = ""kingsmead""" In which year were most departments established?,SELECT creation FROM department GROUP BY creation ORDER BY count ( * ) DESC LIMIT 1 What is the most current year signed for separation of † and a separation year of 1997?,"SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = ""†"" AND year_separated = ""1997""" How many metropolitan boroughs have dorridge as a station?,"SELECT COUNT(metropolitan_borough_)[c_] FROM table_15366849_1 WHERE station = ""Dorridge""" can you now just show the director and movie title for the highest grossing movie for the year 2000 or earlier. One result please,"SELECT title , director FROM movie WHERE YEAR < = 2000 ORDER BY gross_worldwide DESC LIMIT 1" What is the contact title for the person who supplied a product that is 10 boxes x 12 pieces.,SELECT T2.ContactTitle FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.QuantityPerUnit = '10 boxes x 12 pieces' what is the first name and last name of the student with the student id 1003,"SELECT Fname, Lname FROM Student WHERE StuID = 1003" How many students are there?,SELECT count ( DISTINCT student_id ) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id "What dishes made their first and last appearances in 1855 and 1900, respectively?",SELECT name FROM Dish WHERE first_appeared = 1855 AND last_appeared = 1900 I want the team with assists greater than 118 and rank less than 2,SELECT team FROM table_name_10 WHERE assists > 118 AND rank < 2 Which writer wrote episode 18-09 (652)?,"SELECT writer_s_ FROM table_name_29 WHERE episode = ""18-09 (652)""" Find the full name of employee who supported the most number of customers.,"SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1" What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?,"SELECT product_name , product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20" Please list the ages of all the users who use a Galaxy Note 2.,SELECT T2.age FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.device_model = 'Galaxy Note 2' What is the Rich Savage percentage in the poll that had undecideds at 68%?,"SELECT rich_savage FROM table_name_82 WHERE undecided = ""68%""" What was the city whose stadium is Gerald J. Ford Stadium?,"SELECT city FROM table_28719193_19 WHERE stadium = ""Gerald J. Ford stadium""" What platform is nds4droid on for the nintendo ds with a license of gpl v2?,"SELECT platform FROM table_name_93 WHERE system = ""nintendo ds"" AND license = ""gpl v2"" AND name = ""nds4droid""" What was the result in 2009 for the US Open Tournament?,"SELECT 2009 FROM table_name_17 WHERE tournament = ""us open""" Which Position has a Name of john taft?,"SELECT position FROM table_name_17 WHERE name = ""john taft""" On what date was it announced that an asset was acquired for US$9 Million? ,"SELECT date_announced FROM table_1373542_1 WHERE reported_cost = ""US$9 million""" Find the total claimed amount of all the claims.,SELECT sum(Amount_Claimed) FROM Claims "How many Played that has Losses of 6, and Wins larger than 33?",SELECT AVG(played) FROM table_name_61 WHERE losses = 6 AND wins > 33 In which year did Around the Horn place the most orders?,"SELECT STRFTIME('%Y', T2.OrderDate) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.CompanyName = 'Around the Horn' GROUP BY STRFTIME('%Y', T2.OrderDate) ORDER BY COUNT(T2.OrderID) DESC LIMIT 1" When 15 is the number in season what is the highest number in series?,SELECT MAX(no_in_series) FROM table_2468961_7 WHERE no_in_season = 15 How old is the average person for each job?,"SELECT avg(age) , job FROM Person GROUP BY job" What is the last name of the musician that has been at the back position the most?,"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = ""back"" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1" List the number of customers that did not have any payment history.,SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments ); What are the most wins with byes more than 0 and 1637 against?,SELECT MAX(wins) FROM table_name_99 WHERE against = 1637 AND byes > 0 Who tied for the highest rebounds during the game against Orlando?,"SELECT high_rebounds FROM table_23248940_8 WHERE team = ""Orlando""" "What is Score, when Attendance is 2,444?","SELECT score FROM table_name_33 WHERE attendance = ""2,444""" Count the number of trips that did not end in San Francisco city.,"SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city != ""San Francisco""" "What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?",SELECT MAX(1995) FROM table_name_4 WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107 Is the Yelp business No. 14033 good for supper?,SELECT T1.attribute_value FROM Business_Attributes AS T1 INNER JOIN Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_name = 'good_for_dinner' AND T1.business_id = 14033 Who is moving to Triestina?,"SELECT name FROM table_name_21 WHERE moving_to = ""triestina""" Barry University had the highest enrollment of what number?,"SELECT MAX(enrollment) FROM table_1183842_1 WHERE institution = ""Barry University""" Name the number of region for 경상남도,"SELECT COUNT(region) FROM table_160510_5 WHERE hangul_chosongul = ""경상남도""" "Hi, could you please let me know what is the average savings balance of all customers?",SELECT avg ( balance ) from savings "For the movie ""Reign of Fire"", which department was Marcia Ross in?",SELECT T4.department_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id INNER JOIN department AS T4 ON T2.department_id = T4.department_id WHERE T3.person_name = 'Marcia Ross' AND T1.title = 'Reign of Fire' Find the name of customers who do not have an saving account.,SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' What is the document type code with most number of documents?,SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 How many verbs mean to bear,"SELECT COUNT(part_4) FROM table_1745843_10 WHERE verb_meaning = ""to bear""" What is the percentage of countries in the Middle East and North Africa that have finished reporting on their real external debt?,SELECT CAST(SUM(CASE WHEN ExternalDebtReportingStatus = 'Actual' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(CountryCode) FROM Country WHERE region = 'Middle East & North Africa' Which Week 3 Sept 14 has a Week 6 Oct 5 of kansas (4-1)?,"SELECT week_3_sept_14 FROM table_name_87 WHERE week_6_oct_5 = ""kansas (4-1)""" Tell me the employee id of the head of the department with the least employees.,SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1; "What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses?",SELECT MAX(goals_for) FROM table_name_97 WHERE goals_against < 63 AND points_1 > 65 AND lost > 10 "List the hardware model name and company name for the phone whose screen mode type is ""Graphics""","SELECT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = ""Graphics"";" List out the seasons that Niklas Eckerblom played.,SELECT DISTINCT T1.SEASON FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Niklas Eckerblom' How many crimes against society happened in the Wentworth district according to the FBI?,SELECT SUM(CASE WHEN T1.crime_against = 'Society' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T3.district_name = 'Wentworth' "Find the full name of the customer with the email ""luisg@embraer.com.br"".","SELECT FirstName , LastName FROM CUSTOMER WHERE Email = ""luisg@embraer.com.br""" "What is the smallest sales area (m²) that has €4,094/m² and more than 2 stores?","SELECT MIN(sales_area__m²_) FROM table_name_20 WHERE sales_per_area = ""€4,094/m²"" AND no_of_stores > 2" Please give me the same information for the movies that have the 3 lowest rating stars.,"SELECT T2.title , T2.year, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars LIMIT 3" What are all church names?,SELECT name from church What is the masculine u form for the old Swedish word with a neuter a form of skipum?,"SELECT masculine_u_stems FROM table_name_68 WHERE neuter_a_stems = ""skipum""" List down the report number of crimes associated with the district commander named Jill M. Stevens.,SELECT SUM(CASE WHEN T1.commander = 'Jill M. Stevens' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no What is the district for carl vinson?,"SELECT district FROM table_1341930_11 WHERE incumbent = ""Carl Vinson""" Show the average price range of hotels that have 5 star ratings and allow pets.,"SELECT avg(price_range) FROM HOTELS WHERE star_rating_code = ""5"" AND pets_allowed_yn = 1" What are the names of parties and their respective regions?,"SELECT T1.party_name , T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id" Name the state for lake county,"SELECT state FROM table_1762887_1 WHERE county = ""Lake county""" "What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?","SELECT MAX(crowd) FROM table_name_30 WHERE ground = ""telstra dome"" AND home_team = ""western bulldogs""" "For the game ending with a score of 28-43, what is the listed as the final record?","SELECT record FROM table_name_86 WHERE score = ""28-43""" What are the ranks of captains that are both in the Cutter and Armed schooner classes?,SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' What country is each member from? | Did you mean show the name of member and the related Nationality? | yes,"SELECT name ,Nationality from member" Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano?,"SELECT elector FROM table_name_86 WHERE cardinalatial_title = ""deacon of ss. cosma e damiano""" What are the ids of all students along with how many sports and games did they play?,"SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID" What was the donation optional support amount for the project 'Armenian Genocide'?,SELECT T2.donation_optional_support FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Armenian Genocide' "What is Player, when Score is ""68-71=139""?",SELECT player FROM table_name_80 WHERE score = 68 - 71 = 139 "What is the credit card number for the sales order ""45793""?",SELECT T2.CardNumber FROM SalesOrderHeader AS T1 INNER JOIN CreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID WHERE T1.SalesOrderID = 45793 Which city has frequency under 106.5MHz and a callsign of w218ck?,"SELECT city_of_license FROM table_name_31 WHERE frequency_mhz < 106.5 AND call_sign = ""w218ck""" Who won on 2007-04-14,"SELECT result FROM table_name_66 WHERE date = ""2007-04-14""" "List the name and residence for players whose occupation is not ""Researcher"".","SELECT Player_name , residence FROM player WHERE Occupation != ""Researcher""" What was the score when the tie no was 12?,"SELECT score FROM table_name_72 WHERE tie_no = ""12""" Count branches opened before 2010 for each city,"SELECT city , count ( * ) FROM branch WHERE open_year < 2010 GROUP BY city" "What are the names and descriptions of the photos taken at the tourist attraction ""film festival""?","SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = ""film festival""" What's Bulgaria's lane?,"SELECT AVG(lane) FROM table_name_19 WHERE nationality = ""bulgaria""" "On what week were there 26,243 in attendance on September 21, 1969?","SELECT COUNT(week) FROM table_name_51 WHERE date = ""september 21, 1969"" AND attendance < 26 OFFSET 243" Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY count ( * ) DESC LIMIT 1 How much does number 26 weigh?,"SELECT weight FROM table_name_31 WHERE number = ""26""" What is the number of different class sections offered in the course ACCT-211?,SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' What are the names of products produced by both Creative Labs and Sony?,SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' "What is the surface of the score, 7–6 (7–3) , 6–3?","SELECT surface FROM table_name_40 WHERE score = ""7–6 (7–3) , 6–3""" What is the ordered list of customer ids?,"SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC" What's the national title of miss international ikumi yoshimatsu?,"SELECT national_title FROM table_name_11 WHERE miss_international = ""ikumi yoshimatsu""" What date was the match against Morocco played?,"SELECT date FROM table_18042031_16 WHERE against = ""Morocco""" What was Arkady Vyatchanin's time?,"SELECT time FROM table_name_86 WHERE name = ""arkady vyatchanin""" what's the pole position with location being hockenheimring,"SELECT pole_position FROM table_1140074_2 WHERE location = ""Hockenheimring""" Name the total for % core moldova for 4.36%,"SELECT total FROM table_19260_1 WHERE _percentage_core_moldova = ""4.36_percentage""" Give the average price and case of wines made from Zinfandel grapes in the year 2009.,"SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = ""Zinfandel""" On what date was the record 4–0–0?,"SELECT date FROM table_name_81 WHERE record = ""4–0–0""" Who has the height of m (ft 9in) and was born on 1980-03-05?,"SELECT name FROM table_name_57 WHERE height = ""m (ft 9in)"" AND date_of_birth = ""1980-03-05""" "Among the employees who have more than 10 hours of sick leave, how many of them wish to receive e-mail promotions?",SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.EmailPromotion = 1 AND T1.SickLeaveHours > 10 What is the maximum stars and year for the most recent movie?,"SELECT MAX(T1.stars), T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MAX(YEAR) FROM Movie)" What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10?,SELECT MIN(minimum_tax_incl_sales_taxes__cad) AS ¢_l_ FROM table_name_27 WHERE min_tax__cad¢_us_gal_ = 105.7 AND federal_excise_tax___cad¢___l__ > 10 Total overall from penn state?,"SELECT SUM(overall) FROM table_name_16 WHERE college = ""penn state""" "Find the title of all the albums of the artist ""AC/DC"".","SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""AC/DC""" What is the number of inhabitants of male customers ages from 20 to 30 years old who are farming or fishing?,SELECT T2.INHABITANTS_K FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.OCCUPATION = 'Farming-fishing' AND T1.SEX = 'Male' AND T1.age >= 20 AND T1.age <= 30 what are the name of players who get more than the average points.,SELECT name FROM player WHERE points > (SELECT avg(points) FROM player) What is the total number of transfer students in all departments?,SELECT sum ( stu_transfer ) from student How many times did the matches were held in MA Chidambaram Stadium from 5/9/2009 to 8/8/2011?,SELECT SUM(CASE WHEN Venue_Name = 'MA Chidambaram Stadium' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE Match_Date BETWEEN '2009-05-09' AND '2011-08-08' "Name the gamecenter that has attendance of 65,212","SELECT gamecenter FROM table_name_17 WHERE attendance = ""65,212""" "What is the official full name of the current legislator whose current official Facebook presence is ""senjoniernst""?",SELECT T1.official_full_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook = 'senjoniernst' What caused the collapse of the Mausoleum at Halicarnassus?,"SELECT cause_of_destruction FROM table_19342760_1 WHERE name = ""Mausoleum at Halicarnassus""" What is the total number of games sold in region ID 1?,SELECT SUM(T.num_sales * 100000) FROM region_sales AS T WHERE T.region_id = 1 Who were the visitors when the Atlanta Falcons were the home team?,"SELECT designated_visitors FROM table_name_42 WHERE designated_home = ""atlanta falcons""" What is the sum of the dates in december that were against the atlanta flames before game 40?,"SELECT SUM(december) FROM table_name_88 WHERE opponent = ""atlanta flames"" AND game < 40" List all club names in ascending order of start year.,SELECT name FROM club ORDER BY Start_year ASC What was the rocket's record when they played against Indiana?,"SELECT record FROM table_27744976_10 WHERE team = ""Indiana""" Which person has the highest height?,SELECT * FROM people order by height desc limit 1 What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' What was the tonnage on 12 september 1942?,"SELECT tonnage FROM table_name_91 WHERE date = ""12 september 1942""" What is the epa highway fuel economy for an electric suv?,"SELECT epa_rated_highway_fuel_economy FROM table_20549371_3 WHERE type_of_powertrain = ""Electric SUV""" Tell me the 1st leg for antwerp bc,"SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = ""antwerp bc""" Name the number in the series for when the viewers is 7.78,"SELECT no_in_series FROM table_15472061_1 WHERE us_viewers__millions_ = ""7.78""" "Tell the question ID for ""Would you bring up a physical health issue with a potential employer in an interview?"".",SELECT questionid FROM Question WHERE questiontext LIKE 'Would you bring up a physical health issue with a potential employer in an interview?' What home team played against Crystal Palace?,"SELECT home_team FROM table_name_68 WHERE away_team = ""crystal palace""" "Who studied at Norterstein University? | did You mean list the name of authors who belong to the institution ""Northeastern University"" | Yes","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Northeastern University""" How many notes are there for the Devon Alexander vs. Shawn Porter fight?,"SELECT COUNT(notes) FROM table_25840200_1 WHERE fight = ""Devon Alexander vs. Shawn Porter""" What is every entry in the win/lose against Sweden?,"SELECT win_lose FROM table_24074130_5 WHERE against = ""Sweden""" Name the venue for margin less than 66 and opponent of north queensland cowboys,"SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = ""north queensland cowboys""" What is the name and age of every male? Order the results by age.,SELECT name FROM Person WHERE gender = 'male' ORDER BY age What is the state for area code of 787?,SELECT DISTINCT T2.state FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 787 What tv season was episode 23 broadcast?,SELECT tv_season FROM table_2669287_1 WHERE episodes = 23 What region has a bronze label and a catalogue of 202 876-270?,"SELECT region FROM table_name_82 WHERE label = ""bronze"" AND catalogue = ""202 876-270""" Name the date for game 9,SELECT date FROM table_16710829_2 WHERE game = 9 How many cities have businesses with active life category? Find the percentage of the city where the review count that is low in total review count.,"SELECT SUM(CASE WHEN T2.category_name LIKE 'Active Life' THEN 1 ELSE 0 END) AS ""num"" , CAST(SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS REAL) * 100 / ( SELECT COUNT(T3.review_count) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T3.review_count LIKE 'Low' ) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id" List the position of players and the average number of points of players of each position.,"SELECT POSITION, AVG(Points) FROM player GROUP BY POSITION" How many of the users who rate the movie with the id '2462959' are female?,SELECT COUNT(T1.userid) FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid WHERE T2.userid = 2462959 AND T1.u_gender = 'F' Wonderful! What is her nationality?,SELECT nationality FROM journalist where journalist_ID = 4 Give the title and author's name of the papers published between 2000 and 2005 that include the topic optical properties.,"SELECT T1.Title, T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Keyword LIKE '%optical properties%' AND T1.Year BETWEEN 2000 AND 2005 AND T1.Title <> ''" When was anne of lorraine born?,"SELECT birth FROM table_name_91 WHERE name = ""anne of lorraine""" Which city has the least number of customers?,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 ( * ) LIMIT 1 What was the highest crowd size at the Western Oval?,"SELECT MAX(crowd) FROM table_name_48 WHERE venue = ""western oval""" Which cities have three airports,SELECT city FROM airports GROUP BY city HAVING count ( * ) = 3 "For Which order was the most profitable, please list the customer name of the order and the profit of the order.","SELECT t3.customerName, (t1.priceEach - t4.buyPrice) * t1.quantityOrdered FROM orderdetails AS t1 INNER JOIN orders AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN customers AS t3 ON t2.customerNumber = t3.customerNumber INNER JOIN products AS t4 ON t1.productCode = t4.productCode GROUP BY t3.customerName, t1.priceEach, t4.buyPrice, t1.quantityOrdered ORDER BY (t1.priceEach - t4.buyPrice) * t1.quantityOrdered DESC LIMIT 1" What is the average rating for the all Yelp businesses that open 24 hours?,"SELECT CAST(SUM(T3.stars) AS REAL) / COUNT(T2.business_id) AS ""avg"" FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.attribute_name LIKE 'Open 24 Hours' AND T2.attribute_value LIKE 'TRUE'" What winning amount has himesh reshammiya as the contestant name?,"SELECT winning_amount FROM table_name_51 WHERE contestant_name = ""himesh reshammiya""" Who were the opponents for week 12?,SELECT opponent FROM table_name_31 WHERE week = 12 How many scenes are there in King John?,SELECT COUNT(T2.Scene) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'King John' Who was the male rep. when Caroline Rhoads was the artistic director?,"SELECT male_rep FROM table_22410780_1 WHERE artistic_director = ""Caroline Rhoads""" "What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have?","SELECT MIN(losses) FROM table_name_96 WHERE rank < 3 AND team = ""united states"" AND wins > 6" Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?,SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 1 What are the names of all the employees? | Do you want first name or last name? | First name please.,SELECT first_name FROM employees "What is the Name, when the Time is 8:10.1?","SELECT name FROM table_name_92 WHERE time = ""8:10.1""" What is the highest number of laps for grid 17?,SELECT MAX(laps) FROM table_name_99 WHERE grid = 17 "What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?","SELECT user FROM table_25479607_3 WHERE max_demand_charge___rs__kva_ = ""1,100"" AND unit__kwh__time_range = ""H-2: Off-peak (22:30-05:30)""" What is the average number of losses for teams with under 16 points and under 3 draws?,SELECT AVG(losses) FROM table_name_8 WHERE points < 16 AND draws < 3 "Between 1970 to 1980, how many movies with a popularity of more than 11,000 were released?",SELECT COUNT(movie_id) FROM movies WHERE movie_release_year BETWEEN '1970' AND '1980' AND movie_popularity > 11000 What is the complete address of store id 1?,"SELECT T3.address, T3.address2, T3.district FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id INNER JOIN store AS T4 ON T3.address_id = T4.address_id WHERE T4.store_id = 1" Show the product ids and the number of unique orders containing each product.,"SELECT product_id , count(DISTINCT order_id) FROM Order_items GROUP BY product_id" Show me all the buildings,SELECT building FROM Faculty Show the names of climbers and the heights of mountains they climb.,"SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID" What is the M60A3 that has 40 rounds as Leclerc?,"SELECT m60a3_patton FROM table_name_28 WHERE leclerc = ""40 rounds""" What is the least wins for a team with against less than 814?,SELECT MIN(wins) FROM table_name_42 WHERE against < 814 Which venue was the opposing team New Zealand on 22/11/1997?,"SELECT venue FROM table_name_11 WHERE opposing_teams = ""new zealand"" AND date = ""22/11/1997""" Name the least field goals for chantel hilliard,"SELECT MIN(field_goals) FROM table_23183195_5 WHERE player = ""Chantel Hilliard""" What is the address that received the most orders?,"SELECT T2.street_name, T2.city FROM cust_order AS T1 INNER JOIN address AS T2 ON T1.dest_address_id = T2.address_id GROUP BY T2.street_number, T2.street_name, T2.city ORDER BY COUNT(T1.dest_address_id) DESC LIMIT 1" What Construction Start has an Inauguration Date of 2010 june?,"SELECT construction_start FROM table_name_39 WHERE inauguration_date = ""2010 june""" Which person whose friends have the oldest average age?,"SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1" Can you tell me the number of research staff in each organisation?,"SELECT employer_organisation_id , count ( * ) from Research_Staff group by employer_organisation_id" Give the average temperature of station no.20 on 2014/10/17.,SELECT tavg FROM weather WHERE `date` = '2014-10-17' AND station_nbr = 20 Show details of all investors if they make any transaction with share count greater than 100.,SELECT T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 what are all the title are on the table | Did you mean to ask for the titles in the table course? | yeah correct,SELECT title FROM course List the pitchers for the 1970 season,"SELECT pitcher FROM table_19839391_3 WHERE seasons = ""1970""" Which Points Classification does the General Classification of Cyril Dessel have?,"SELECT points_classification FROM table_name_9 WHERE general_classification = ""cyril dessel""" How long is the total lesson time took by the customer named Rylan Goodwin?,"SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"";" Show the details of the top 3 most expensive hotels.,SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3 What are names of the movies that are either made before 1980 or directed by James Cameron?,"SELECT title FROM Movie WHERE director = ""James Cameron"" OR YEAR < 1980" "Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?","SELECT opponent FROM table_name_18 WHERE surface = ""hard"" AND outcome = ""winner"" AND partnering = ""jordan kerr""" Can you list the first names of these 3 staff members?,"SELECT T2.first_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.state_province_county = ""Connecticut""" what is the party with the incumbent jim demint?,"SELECT party FROM table_1341423_40 WHERE incumbent = ""Jim DeMint""" How many entered the match with a time of 14:42? ,"SELECT entered FROM table_18438494_3 WHERE time = ""14:42""" great. what is the player with player ID gehrilo01 first and last name?,"SELECT name_first , name_last FROM player where player_id = ""gehrilo01""" "What is the cheapest order price of the book ""The Little House""?",SELECT MIN(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'The Little House' What is the game number when the game was against phoenix?,"SELECT game FROM table_name_83 WHERE team = ""phoenix""" What is the least common media type in all tracks,SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT ( * ) ASC LIMIT 1 What is the surface for the Volos tournament?,"SELECT surface FROM table_name_46 WHERE tournament = ""volos""" What are id and name of the products whose price is lower than 600 or higher than 900?,"SELECT product_id , product_name FROM products WHERE product_price < 600 OR product_price > 900" What's the record of the game on Nov 13?,"SELECT record FROM table_name_80 WHERE date = ""nov 13""" What is the country of origin of the artist who is female and produced a song in Bangla?,"SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female"" AND T2.languages = ""bangla""" How many attended on may 6?,"SELECT COUNT(attendance) FROM table_name_85 WHERE date = ""may 6""" "Who is in charge of the ""Santa Monica"" territory? Give the full name.","SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Santa Monica'" Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?,"SELECT mens_doubles FROM table_12171145_1 WHERE womens_doubles = ""Anastasia Chervyakova Romina Gabdullina""" display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.,"SELECT email FROM employees WHERE commission_pct = ""null"" AND salary BETWEEN 7000 AND 12000 AND department_id = 50" List out the name of orders which have delivery date of 6/13/2018.,"SELECT DISTINCT T FROM ( SELECT IIF(DeliveryDate = '6/13/18', OrderNumber, NULL) AS T FROM `Sales Orders` ) WHERE T IS NOT NULL" Name the D 43 with D 48 of d 9,"SELECT d_43 FROM table_name_70 WHERE d_48 = ""d 9""" What is the phone number of the customer who has filed the most recent complaint?,SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1 How many networks are listed when the year is 2008?,SELECT COUNT(network) FROM table_2941848_10 WHERE year = 2008 What is the full name of the employee in charge of the Southern region who is to report to Andrew Fuller?,"SELECT DISTINCT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T4.RegionDescription = 'Southern' AND T1.ReportsTo = ( SELECT EmployeeID FROM Employees WHERE FirstName = 'Andrew' AND LastName = 'Fuller' )" Which department has a worker who just recently started working?,SELECT T1.Name FROM Department AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.DepartmentID = T2.DepartmentID ORDER BY T2.StartDate DESC LIMIT 1 How many of these members have a black membership card?,SELECT count ( * ) FROM member WHERE Membership_card = 'Black' OR age > 30 What is the average rating for movie titled 'When Will I Be Loved'?,SELECT AVG(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'When Will I Be Loved' What is the year that branch opened?,SELECT T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count ( * ) DESC LIMIT 1 What season was Freiburger FC the RL Süd (2nd) team?,"SELECT season FROM table_20217456_7 WHERE rl_süd__2nd_ = ""Freiburger FC""" What is the highest Total with a Rank that is smaller than 4 and a Nation of tunisia (tun) with a Gold that is smaller than 2?,"SELECT MAX(total) FROM table_name_57 WHERE rank < 4 AND nation = ""tunisia (tun)"" AND gold < 2" "Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0?",SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0 What is the highest grade point for each letter grade?,"SELECT lettergrade, max ( gradepoint ) FROM GRADECONVERSION group by lettergrade" "In 1980, how many cars were made?",SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980; Indicate the quantity of Blade products sold.,SELECT DISTINCT T2.Quantity FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Blade' How many crew are named John Young?,SELECT COUNT(person_id) FROM person WHERE person_name = 'John Young' Find the organisation ids and details of the organisations which are involved in,"SELECT T2.organisation_id , T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount) > 6000" Can you also give me the lowest and the highest balance for checking account.,"select max ( balance ) ,min ( balance ) from CHECKING" What are the coupon amount of the coupons owned by both good and bad customers?,SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad' What is the bayonet lug status for a m4 hbar and m4le carbine equipped?,"SELECT bayonet_lug FROM table_12834315_5 WHERE barrel_profile = ""M4 HBAR"" AND name = ""M4LE Carbine""" List all cities of addresses in alphabetical order.,SELECT city FROM Addresses ORDER BY city "Among the South African players, how many were born before 4/11/1980?",SELECT SUM(CASE WHEN T1.DOB < '1980-4-11' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'South Africa' Please list the titles of all the films starring the actor PENELOPE GUINESS.,SELECT T2.title FROM film_actor AS T1 INNER JOIN film AS T2 ON T1.film_id = T2.film_id INNER JOIN actor AS T3 ON T1.actor_id = T3.actor_id WHERE T3.first_name = 'PENELOPE' AND T3.last_name = 'GUINESS' What position is associated with an overall value of 126?,"SELECT position FROM table_11803648_20 WHERE overall = ""126""" List all of the ids of the representatives belonging to the Democrat party in district 13 that ended their term on 1/3/2019?,SELECT bioguide FROM `current-terms` WHERE type = 'rep' AND party = 'Democrat' AND end = '2019-01-03' AND district = 13 Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?,SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897 Show the names of the three most recent festivals.,SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3 "What is the content of the earliest review for the ""Stuff You Should Know"" podcast?",SELECT T2.content FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.title = 'Stuff You Should Know' ORDER BY T2.created_at ASC LIMIT 1 How many cuts did Reid make in the year when her earnings were n/a?,"SELECT MAX(cuts_made) FROM table_29506171_2 WHERE earnings___€__ = ""n/a""" "Great, I'm a bit curious as to how many players does UNLV have",SELECT count ( * ) FROM match_season where College = 'UNLV' What is the average Draw when the Place is larger than 5?,SELECT AVG(draw) FROM table_name_65 WHERE place > 5 "What was the Area (km²) when the Population (2011) was 8574, and the Population density was larger than 381.4?",SELECT AVG(area__km²_) FROM table_name_21 WHERE population__2011_ = 8574 AND population_density > 381.4 Who made the most assists in a single game in the Stanley Cup finals ?,SELECT playerID FROM ScoringSC ORDER BY A DESC LIMIT 1 What year was number 7 built?,SELECT year_built FROM table_1015421_1 WHERE no_built = 7 What is the total money requested by entrepreneurs with height more than 1.85?,SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85 List down the games ID of games held in Tokyo.,SELECT T1.games_id FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'Tokyo' "When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?","SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = ""baltimore county, howard"" AND committee = ""environmental matters (vice-chair)""" the quartier menpenti has how many 40-59 year olds?,"SELECT _percentage_40_59_years FROM table_29615165_5 WHERE quartier = ""Menpenti""" Give the duration of the film starred by Nick Wahlberg with the highest rental rate.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Nick' AND T1.last_name = 'Wahlberg' ORDER BY T3.rental_rate DESC LIMIT 1 What CFL Team is Pascal Masson on?,"SELECT cfl_team FROM table_name_76 WHERE player = ""pascal masson""" "What is maximum, minimum and average amount of outstanding of customer?","SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;" How many accounts do we have?,SELECT COUNT(*) FROM Accounts Find the busiest source airport that runs most number of routes in China.,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 What is the name of the player when the Score was 72-73-67-72=284?,SELECT player FROM table_name_10 WHERE score = 72 - 73 - 67 - 72 = 284 On what date was the time of 16:24.12 achieved?,"SELECT date FROM table_name_36 WHERE time = ""16:24.12""" Show the names of journalists and the dates of the events they reported.,"SELECT T3.Name , T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID" What city does the employee who helps the customer with postal code 70174 live in?,"SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = ""70174""" What was the score for the game that kicked off at 6:00 p.m.?,"SELECT final_score FROM table_24918268_2 WHERE kickoff = ""6:00 p.m.""" Please list the awards won by coaches who taught the NHL League and have already died.,SELECT DISTINCT T2.award FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T1.deathYear IS NOT NULL AND T2.lgID = 'NHL' What was the broadcaste date for the episode with a run time of 24:44?,"SELECT broadcast_date FROM table_name_60 WHERE run_time = ""24:44""" How many professors do have a Ph.D. degree?,SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' Find the ids of the problems reported after 1978-06-26.,"SELECT problem_id FROM problems WHERE date_problem_reported > ""1978-06-26""" What are the names of those dorms?,SELECT dorm_name FROM dorm Which nominations was the film 27 Stolen Kisses nominated for?,"SELECT nomination FROM table_10236830_6 WHERE film_name = ""27 Stolen Kisses""" what ship is steered by a captain with lieutenant rank? | do you want to return the names of these ships? | yes,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' What is the average salary for employees from ID 1 to 9?,SELECT AVG(Salary) FROM Employees WHERE EmployeeID BETWEEN 1 AND 9 Which club has 16 league goals for a total of 20?,"SELECT club FROM table_name_2 WHERE league_goals = ""16"" AND total = 20" What beer has a record of 4.08?,SELECT beer FROM table_name_67 WHERE recorded = 4.08 "How many routes have a source airport in Canada and a destination airport in the United States, please?",select count ( * ) from ( SELECT rid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'United States' intersect SELECT rid FROM airports AS T3 JOIN routes AS T4 ON T3.apid = T4.src_apid WHERE T3.country = 'Canada' ) "what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?",SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0 List the name of the school with the smallest enrollment.,SELECT school_name FROM school ORDER BY enrollment LIMIT 1 What is the stocked quantity of products manufactured from location ID 40?,SELECT COUNT(*) FROM WorkOrderRouting AS T1 INNER JOIN BillOfMaterials AS T2 ON T1.LocationID = T2.ProductAssemblyID INNER JOIN WorkOrder AS T3 ON T3.WorkOrderID = T1.WorkOrderID WHERE T1.LocationID = 40 Show all product names and the number of order items on each product.,"SELECT T2.product_name , count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name" What engine does Chip Mead of Parts Washer Service use?,"SELECT engine FROM table_name_36 WHERE team = ""parts washer service"" AND drivers = ""chip mead""" What candidates ran in the election that included john shelley?,"SELECT candidates FROM table_1341973_6 WHERE incumbent = ""John Shelley""" Please list the deserts in the countries whose population is over 100000 and covers an area of under 500000.,SELECT T2.Desert FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country WHERE T1.Area > 100000 AND T1.Population < 500000 "What was the date of the game after week 5 with 62,262 fans attending?","SELECT date FROM table_name_82 WHERE week > 5 AND attendance = ""62,262""" How many tries for does waunarlwydd rfc have ?,"SELECT tries_for FROM table_name_2 WHERE club = ""waunarlwydd rfc""" "In Tie #18, who was the away team?","SELECT away_team FROM table_name_76 WHERE tie_no = ""18""" Show the names of all the donors except those whose donation amount less than 9.,SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9 Which Segment B has a Segment D of stone wool insulation?,"SELECT segment_b FROM table_name_92 WHERE segment_d = ""stone wool insulation""" "Among the papers with conference ID of 0, list down the authors of papers with a journal ID less than 100.",SELECT DISTINCT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.ConferenceId = 0 AND T1.JournalId < 100 What is the total if 44 is tosses/pyramids?,"SELECT total FROM table_22014431_3 WHERE tosses_pyramids = ""44""" Which country became independent on 1492-01-01? Give the full name of the country.,SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Independence = '1492-01-01' I want to know the team that was sacked and date of vacancy was 4 december,"SELECT team FROM table_name_68 WHERE manner_of_departure = ""sacked"" AND date_of_vacancy = ""4 december""" What year did the IFG Club form?,"SELECT T1.start_year FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = ""IFG""" How many male students join more than one organization?,"SELECT COUNT(T.a) FROM ( SELECT COUNT(DISTINCT T1.name) AS a, COUNT(T2.organ) AS num FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name GROUP BY T1.name ) T WHERE T.num > 1" "Find the first names of teachers whose email address contains the word ""man"".",SELECT first_name FROM Teachers WHERE email_address LIKE '%man%' "What is the lowest wins that has a year prior to 1999, with draws greater than 1, and points greater than 17?",SELECT MIN(wins) FROM table_name_11 WHERE year < 1999 AND draws > 1 AND points > 17 How many regions had an incarceration rate for females of 63?,SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63 What is the total number of people who has no friend living in the city of Austin.,SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin') Which event in the 2008 Beijing Games had a bronze medal?,"SELECT event FROM table_name_34 WHERE games = ""2008 beijing"" AND medal = ""bronze""" Find id of the candidate whose email is stanley.monahan@example.org?,"SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = ""stanley.monahan@example.org""" What attendance has Washington redskins as the opponent?,"SELECT attendance FROM table_name_89 WHERE opponent = ""washington redskins""" List out the name of products which have been applied 10% discount.,"SELECT T FROM ( SELECT DISTINCT IIF(T1.`Discount Applied` = 0.1, T2.`Product Name`, NULL) AS T FROM `Sales Orders` T1 INNER JOIN Products T2 ON T2.ProductID = T1._ProductID ) WHERE T IS NOT NULL" How many seasons have motopark team?,"SELECT COUNT(season) FROM table_23338693_1 WHERE team = ""Motopark""" What campuses were opened between 1935 and 1939?,SELECT campus FROM campuses WHERE YEAR > = 1935 AND YEAR < = 1939 How many different product types are there?,SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire Which television service has italian for its language?,"SELECT television_service FROM table_name_46 WHERE language = ""italian""" What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?,"SELECT wed_26_aug FROM table_23465864_6 WHERE rider = ""Andrew Farrell 400cc Kawasaki""" Find the room number of the rooms which can sit 50 to 100 students and their buildings.,"SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100" What is id of the city that hosted events in the most recent year?,SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1 "What is the average react of athlete muna lee, who is ranked greater than 3?","SELECT AVG(react) FROM table_name_4 WHERE athlete = ""muna lee"" AND rank > 3" Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.,"SELECT date , max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1" Where was the order No. 10383 shipped to? Show me the address.,"SELECT t2.addressLine1, t2.addressLine2 FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t1.orderNumber = '10383'" "With foreign banks as the bank type, and on-site ATMS less than 218, what is the average off-site ATMs?","SELECT AVG(off_site_atms) FROM table_name_66 WHERE bank_type = ""foreign banks"" AND on_site_atms < 218" What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?,"SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'" "What are the different region names, ordered by labels?",SELECT DISTINCT region_name FROM region ORDER BY Label What is the Time of the Athlete with a Reaction time of 0.164?,SELECT SUM(time) FROM table_name_48 WHERE reaction_time = 0.164 how many products are there,select count ( * ) from Products Which player had a position of t1 and played in the united states?,"SELECT player FROM table_name_49 WHERE place = ""t1"" AND country = ""united states""" What is the name for district total:?,"SELECT name FROM table_name_80 WHERE district = ""total:""" What is the grid total for jean-pierre beltoise?,"SELECT COUNT(grid) FROM table_name_73 WHERE driver = ""jean-pierre beltoise""" "What is Location Attendance, when Team is ""Orlando""?","SELECT location_attendance FROM table_name_16 WHERE team = ""orlando""" "What was the average attendance on october 3, 1976?","SELECT AVG(attendance) FROM table_name_68 WHERE date = ""october 3, 1976""" Who is the director when there is 11.21 million viewers?,"SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = ""11.21""" In which year did the most recent crime happen?,SELECT max(YEAR) FROM perpetrator; What category did MCG get a nominee in?,"SELECT category FROM table_name_62 WHERE label = ""mcg"" AND result = ""nominee""" "Name the No. 5 which has a No. 8 of logan, and a No. 10 of ethan, and a No. 4 of jacob?","SELECT no_5 FROM table_name_39 WHERE no_8 = ""logan"" AND no_10 = ""ethan"" AND no_4 = ""jacob""" "In complaints received in 2014, how many of them were submitted via call?","SELECT COUNT(T2.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Phone' AND strftime('%Y', T1.`Date received`) = '2014'" "Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia?","SELECT silver FROM table_name_76 WHERE bronze = ""1"" AND total = ""4"" AND nation = ""slovakia""" "In users yelping since 2009 to 2011, how many of them have low count of fans?",SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year >= 2009 AND user_yelping_since_year < 2012 AND user_fans = 'Low' "What was the Population (2011) when the Population (2006) was less than 7083, and the Population density less than 342.8, and the Change (%) of 5, and an Area (km²) larger than 4.5?",SELECT COUNT(population__2011_) FROM table_name_2 WHERE population__2006_ < 7083 AND population_density < 342.8 AND change___percentage_ = 5 AND area__km²_ > 4.5 Give me a list of the names of all songs ordered by their resolution.,SELECT song_name FROM song ORDER BY resolution What is the ward ID of the most crowded ward?,SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1 What is the total number of players born between 1970 to 1975?,"SELECT COUNT(Player_Id) FROM Player WHERE strftime('%Y', DOB) BETWEEN '1970' AND '1975'" Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?,"SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = ""1:34:31.522""" Who are the top 5 professors who teaches the highest number of professional or master/undergraduate courses?,SELECT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_500' GROUP BY T2.p_id ORDER BY COUNT(T2.p_id) DESC LIMIT 5 "Can you give me a list of documents that don't have any images? | Do you want document code? | I'd like both the document code and document name, please.","SELECT document_name, document_code FROM documents EXCEPT SELECT t1.document_name, t1.document_code FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id" What is the average profit of all the products from the Clothing category?,SELECT SUM(T1.ListPrice - T1.StandardCost) / COUNT(T1.ProductID) FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID INNER JOIN ProductCategory AS T3 ON T2.ProductCategoryID = T3.ProductCategoryID WHERE T3.Name = 'Clothing' Which average lane has 54.95 as a time?,SELECT AVG(lane) FROM table_name_99 WHERE time = 54.95 Return the phone numbers of employees with salaries between 8000 and 12000.,SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000 "What event had a win, record of 8-1 and n/a round?","SELECT event FROM table_name_98 WHERE res = ""win"" AND round = ""n/a"" AND record = ""8-1""" Which version of opengl is used by model sgx520?,"SELECT opengl AS ES FROM table_1439045_5 WHERE model = ""SGX520""" How many male students (sex is 'M') are allergic to any type of food?,"SELECT count(*) FROM Student WHERE sex = ""M"" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" "What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?","SELECT result FROM table_name_53 WHERE date = ""5,6,7,8 june 1997""" "What is the number of airports per country, ordered from most to least?","SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC" what date did reuschel (12-3) lose?,"SELECT date FROM table_name_36 WHERE loss = ""reuschel (12-3)""" How many female people are on the list?,SELECT count ( * ) FROM Person WHERE gender = 'female' "List the open date of open year of the shop named ""Apple"".","SELECT Open_Date , Open_Year FROM shop WHERE Shop_Name = ""Apple""" Which Date had a Result of 7–20?,"SELECT date FROM table_name_37 WHERE result = ""7–20""" what is their allergy types?,SELECT distinct AllergyType FROM Allergy_Type What was Italy's highest total when there were less than 4 bronze and 1 gold?,"SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = ""italy""" Which role did Joseph Blair play in the show?,SELECT T1.role FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Joseph Blair' "Among the male customers with an level of education of 4 and below, list their income K.",SELECT INCOME_K FROM Demog WHERE GEOID IN ( SELECT GEOID FROM Customers WHERE EDUCATIONNUM < 4 AND SEX = 'Male' ) What is the average number of golds in athletics associated with over 42 silvers?,"SELECT AVG(gold) FROM table_name_66 WHERE sport = ""athletics"" AND silver > 42" How many episodes by different writers were seen by 3.24 million people in the US?,"SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = ""3.24""" Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.,"SELECT name , prominence FROM mountain EXCEPT SELECT T1.name , T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'" What was the goal accuracy % when the total disposals are 481?,SELECT goal_accuracy__percentage FROM table_2814720_1 WHERE total_disposals = 481 What is the pick # of the player with a PI GP less than 0?,SELECT SUM(pick__number) FROM table_name_16 WHERE pl_gp < 0 What is the average GNP and total population in all nations whose government is US territory?,"SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = ""US Territory""" Show the ids of the students who don't participate in any activity.,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in Which physicians have never taken any appointment? Find their names.,SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID "Okay, which cities have not hosted?",SELECT city FROM city where City_ID not in ( select Host_City from hosting_city ) Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.,SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%' "Which Rank has a Total larger than 30, and a Bronze of 14?",SELECT AVG(rank) FROM table_name_61 WHERE total > 30 AND bronze = 14 "List date of the review of the Eagle Capital from Indianapolis, Indiana.",SELECT T2.Date FROM district AS T1 INNER JOIN reviews AS T2 ON T1.district_id = T2.district_id WHERE T2.Product = 'Eagle Capital' AND T1.city = 'Indianapolis' AND T1.state_abbrev = 'IN' "During the 2013 debut, what is the w-I(total) number?",SELECT COUNT(w_l__total_) FROM table_11233358_2 WHERE debut = 2013 What was the Attendance in Week 10?,SELECT attendance FROM table_name_59 WHERE week = 10 Indicate the title of all the films rated as 'Adults Only'.,SELECT title FROM film WHERE rating = 'NC-17' Find the names of reviewers who had given higher than 3 stars ratings.,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3 What is the Higgins with a Davis that is 9%?,"SELECT higgins FROM table_name_90 WHERE davis = ""9%""" What time contains the owner of maine chance farm?,"SELECT time FROM table_name_55 WHERE owner = ""maine chance farm""" What is the office phone number of the location at which Sandy Adams works?,SELECT T2.officephone FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T1.lastname = 'Adams' AND T1.firstname = 'Sandy' Give the number of female employees.,SELECT COUNT(*) FROM employee WHERE gender = 'F' Who is the author of Unicorn Mountain?,SELECT Author_or_Editor FROM book_club where Book_Title = 'Unicorn Mountain' Show the times used by climbers to climb mountains in Country Uganda.,"SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = ""Uganda""" What was the record at the game with a score of 21-16?,"SELECT record FROM table_name_77 WHERE score = ""21-16""" What is the storm name and max speed which affected the greatest number of regions?,"SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1;" List the carriers of devices that have no devices in stock.,SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock) Who directed the episode that had 6.04 million viewers? ,"SELECT director FROM table_12976038_1 WHERE viewers__in_millions_ = ""6.04""" Name the high assists for l 93–103 (ot),"SELECT high_assists FROM table_17288861_9 WHERE score = ""L 93–103 (OT)""" "How much Avg/G has a Loss larger than 117, and a Name of opponents, and a Gain smaller than 2444?","SELECT COUNT(avg_g) FROM table_name_41 WHERE loss > 117 AND name = ""opponents"" AND gain < 2444" Which driver earned 32 points from the Andretti Green team?,"SELECT driver FROM table_name_91 WHERE team = ""andretti green"" AND points = ""32""" Which school players have a number of 255,SELECT college_junior_club_team FROM table_2781227_10 WHERE pick = 255 Display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN,"SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min ( salary ) FROM employees WHERE job_id = 'MK_MAN' ) " Please list the name of crew that were born before 1970.,"SELECT name FROM Person WHERE SUBSTR(birthdate, 1, 4) < '1970';" "Who was the opponent on april 26, 2003?","SELECT opponent FROM table_name_25 WHERE date = ""april 26, 2003""" When did event number 2 happen and how many users were active?,SELECT COUNT(T1.app_id) AS num FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE T1.event_id = 2 AND T1.is_active = 1 GROUP BY T2.timestamp Give the average quantity of stocks.,SELECT avg(Quantity) FROM stock "Indicate the name of the companies that have freighted products for a value greater than 2,000,000.",SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Freight > 2000000 What is the total interview score a contestant from Indiana with an average smaller than 8.3 has?,"SELECT COUNT(interview) FROM table_name_36 WHERE state = ""indiana"" AND average < 8.3" What is the average number of terms for a current female legislator?,SELECT CAST(COUNT(T2.bioguide) AS REAL) / COUNT(DISTINCT T1.bioguide_id) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' What is the first name of the professor who is teaching CIS-220 and QM-261?,SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261' "Among all penalty minutes picked up by Ak Bars Kazan in the 1999-2000 season, identify the percentage picked up by Yevgeni Muratov.",SELECT CAST(SUM(CASE WHEN T2.PlayerName = 'Yevgeni Muratov' THEN T1.PIM ELSE 0 END) AS REAL) * 100 / SUM(T1.PIM) FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1999-2000' AND T1.TEAM = 'Ak Bars Kazan' On what date is Hawthorn the home team?,"SELECT date FROM table_name_10 WHERE home_team = ""hawthorn""" what is the outcome code? | Whose outcome code do you want? | for `deleniti,"SELECT T2.outcome_code FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id where t1.project_details = ""deleniti""" What is the percentage of under $500 thefts among all cases that happened in West Englewood?,SELECT CAST(SUM(CASE WHEN T2.secondary_description = '$500 AND UNDER' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.case_number) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T1.community_area_no = T3.community_area_no WHERE T2.primary_description = 'THEFT' AND T3.community_area_name = 'West Englewood' Show titles of songs and names of singers.,"SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID" What are the customer ids of all customers who who have the customer type code Good Credit Rating?,"SELECT customer_id FROM customers where customer_type_code = ""Good Credit Rating""" What is the price of vehicle id 2 ?,"SELECT price FROM lessons WHERE vehicle_id = ""2""" State all the Facebook ID for current legislators under the democrat party.,SELECT T2.facebook_id FROM `current-terms` AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide = T2.bioguide WHERE T1.party = 'Democrat' GROUP BY T2.facebook_id What was the record as of September 1?,"SELECT record FROM table_name_72 WHERE date = ""september 1""" Find the names of programs that are never broadcasted in the morning.,"SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning""" What is the amount claimed for this customer?,SELECT t1.amount_claimed FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = ( SELECT min ( amount_piad ) FROM claim_headers ) What is the status(es) of the place with an area of 304.06 km2?,"SELECT status FROM table_176521_2 WHERE area_km_2 = ""304.06""" How many airports are in the United States?,"SELECT count ( * ) from airport where country = ""United States""" Who was the runner-up on September 11?,"SELECT runner_up FROM table_21808535_1 WHERE date = ""September 11""" Name the number of giants points for opponents being 31,SELECT COUNT(giants_points) FROM table_16661199_2 WHERE opponents = 31 "Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?","SELECT MIN(seats_2010) FROM table_name_46 WHERE seats_2005 < 9 AND governorate = ""al muthanna governorate"" AND in_de_creased_by > 2" What is the lowest grade of students who do not have any friends?,SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) What is the home team's score when south melbourne is away?,"SELECT home_team AS score FROM table_name_23 WHERE away_team = ""south melbourne""" On what day is geelong the home team?,"SELECT date FROM table_name_37 WHERE home_team = ""geelong""" "What is the nomination title used for the original film, Monsieur Hawarden?","SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = ""monsieur hawarden""" What's the losing bonus count for the club with 9 won games? ,"SELECT losing_bonus FROM table_14070062_3 WHERE won = ""9""" "Hi, could you please let me know the name of instructors in Comp. Sci. department whose salary is higher than 80000?",SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 Which game had 8 bronze and 4 gold?,"SELECT games FROM table_name_61 WHERE bronze = ""8"" AND gold = ""4""" What was the date of the game against Oakland Raiders?,"SELECT date FROM table_name_86 WHERE opponent = ""oakland raiders""" What is the highest number played with a goal difference less than -27?,SELECT MAX(played) FROM table_name_57 WHERE goal_difference < -27 What was the total for the golfer who had a To par of +10 and year won of 1971?,"SELECT SUM(total) FROM table_name_9 WHERE to_par = ""+10"" AND year_s__won = ""1971""" What is the Place of the Player with a To par of –8 and a Score of 67-74-67=208?,"SELECT place FROM table_name_83 WHERE to_par = ""–8"" AND score = 67 - 74 - 67 = 208" What is the Winning Score of the Tournament with Jack Nicklaus as Runner(s)-up?,"SELECT winning_score FROM table_name_15 WHERE runner_s__up = ""jack nicklaus""" What is the most used instrument?,SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1 How many different L2 cache numbers are there for the 7130M model?,"SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = ""7130M""" What is the name for the constituency at number 48?,"SELECT name FROM table_name_38 WHERE constituency_number = ""48""" What is the home team's score when richmond is away?,"SELECT home_team AS score FROM table_name_87 WHERE away_team = ""richmond""" what is the location/attendance when the record is 9-2?,"SELECT location_attendance FROM table_name_23 WHERE record = ""9-2""" Show the outcome code of mailshots along with the number of mailshots in each outcome code.,"SELECT outcome_code, COUNT(*) FROM mailshot_customers GROUP BY outcome_code" What player was drafted to the Detroit Red Wings?,"SELECT player FROM table_1965650_7 WHERE nhl_team = ""Detroit Red Wings""" What is the Prince Devitt when Block A is Yamato?,"SELECT prince_devitt FROM table_name_49 WHERE block_a = ""yamato""" What is Honda's highest grid with a time of +1:38.407?,"SELECT MAX(grid) FROM table_name_61 WHERE manufacturer = ""honda"" AND time = ""+1:38.407""" "Which Rank has a Losing Semi- finalist larger than 1, and a Winner smaller than 5?",SELECT rank FROM table_name_79 WHERE losing_semi__finalist > 1 AND winner < 5 What was the average attendance on October 12?,"SELECT AVG(attendance) FROM table_name_40 WHERE date = ""october 12""" Show me the routes details | do you mean the routes details of John F Kennedy International Airport? | Yes,SELECT * FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport' Who was the away team when Manchester United played at home on 10 February 1951?,"SELECT away_team FROM table_name_91 WHERE date = ""10 february 1951"" AND home_team = ""manchester united""" What was the score of tie number 15?,"SELECT score FROM table_name_6 WHERE tie_no = ""15""" Give me the name and description of the document type code RV.,"SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = ""RV""" "Which location had a round of 3, and an Opponent of matt horwich?","SELECT location FROM table_name_9 WHERE round < 3 AND opponent = ""matt horwich""" Which district elected incumbent Earle Cabell?,"SELECT district FROM table_1341718_44 WHERE incumbent = ""Earle Cabell""" "Count the number of clubs located at ""HHH"".","SELECT count(*) FROM club WHERE clublocation = ""HHH""" Who was the winning team before 1956 on October 21?,"SELECT winner FROM table_name_43 WHERE year < 1956 AND date = ""october 21""" "What are the issue dates of volumes associated with the artist ""Gorgoroth""?","SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = ""Gorgoroth""" List the title of the books purchased by the customer named Zia Roizin.,SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Zia' AND T4.last_name = 'Roizin' What club team was founded before 2011 and plays at the champion window field?,"SELECT club FROM table_name_27 WHERE founded < 2011 AND venue = ""champion window field""" What are the first and last names of all customers who lived in Lockmanfurt?,"SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = ""Lockmanfurt"";" Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1?,"SELECT MIN(time) FROM table_name_66 WHERE nationality = ""jamaica"" AND lane > 4 AND rank < 1" What is the traditional form for 宁陵县?,"SELECT traditional FROM table_2135222_2 WHERE simplified = ""宁陵县""" What type has 5 as the quantity?,SELECT type FROM table_name_26 WHERE quantity = 5 Name the date when bye was opponent,"SELECT date FROM table_name_15 WHERE opponent = ""bye""" "Who was the opponent team on September 30, 1990?","SELECT opponent FROM table_name_23 WHERE date = ""september 30, 1990""" "Show different tourist attractions' names, ids, and the corresponding number of visits.","SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID" Count the active businesses that has an attribute of caters with low review count.,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T3.attribute_name LIKE 'Caters' AND T1.review_count LIKE 'Low' AND T1.active LIKE 'TRUE' Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?,"SELECT opponent FROM table_name_23 WHERE res = ""win"" AND round > 1 AND record = ""42-27-10""" "What season did School/Club Team, East have an Acquisition via of trade?","SELECT season FROM table_name_19 WHERE acquisition_via = ""trade"" AND school_club_team = ""east""" What is the area of 罗山县?,"SELECT area FROM table_2847477_2 WHERE simplified = ""罗山县""" What ranks do we have for faculty?,SELECT DISTINCT rank FROM Faculty Which rider has a time of +2:11.524?,"SELECT rider FROM table_name_92 WHERE time = ""+2:11.524""" What is the average annual revenue of customers who have shipment weight of less than 65000 pounds?,SELECT AVG(T1.annual_revenue) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.weight < 65000 How many districts are in Idaho?,SELECT COUNT(district) FROM `current-terms` WHERE state = 'ID' "List all the items from ""Sax Arts & Crafts"" and the zip code of the schools that received them.","SELECT T2.school_zip, T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name = 'Sax Arts & Crafts'" "What's the avatar image of the user who created the movie list ""250 Favourite Films""?",SELECT T2.user_avatar_image_url FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.list_title = '250 Favourite Films' How many debates did they win total?,SELECT count ( * ) FROM debate_people WHERE If_Affirmative_Win = 'T' Find the name of each user and number of tweets tweeted by each of them.,"SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid" Who was the away team for tie number 9?,"SELECT away_team FROM table_name_6 WHERE tie_no = ""9""" "Which College has a Round of 11, and a Pick of 14?",SELECT college FROM table_name_53 WHERE round = 11 AND pick = 14 What are the comments when the implementation is software running on central processor module?,"SELECT comments FROM table_1206114_2 WHERE implementation = ""Software running on Central Processor Module""" Name the height for demetrius jemison,"SELECT height FROM table_25360865_1 WHERE name = ""Demetrius Jemison""" Show the names of journalists that have reported more than one event.,SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1 Provide the categories and fines for the inspections done by Lisa Tillman in January 2014.,"SELECT DISTINCT T4.category, T3.fine FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T1.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T2.first_name = 'Lisa' AND T2.last_name = 'Tillman' AND strftime('%Y-%m', T1.inspection_date) = '2014-01'" What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?,"SELECT MIN(week) FROM table_name_53 WHERE time__cst_ = ""7:15 p.m."" AND game_site = ""fedexfield""" "What is Final, when Team is United States (USA) USA I?","SELECT final FROM table_name_66 WHERE team = ""united states (usa) usa i""" "Among the Yelp_Businesses which are still running, how many of them fall under the category of ""Food""?",SELECT COUNT(T3.business_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Tips AS T4 ON T3.business_id = T4.business_id WHERE T1.category_name LIKE 'Food' AND T3.active LIKE 'TRUE' "What is the to par that has england as the country, with 66 as a score?","SELECT to_par FROM table_name_95 WHERE country = ""england"" AND score = 66" "When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor?","SELECT constructor FROM table_name_84 WHERE laps > 17 AND grid < 7 AND time_retired = ""+ 1:35.6""" Find the locations that have more than one movie theater with capacity above 300.,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) > 1 "Show the number of transactions with transaction type code ""SALE"" for different investors if it is larger than 0.","SELECT investor_id , COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = ""SALE"" GROUP BY investor_id" what's the won with club being ammanford rfc,"SELECT won FROM table_12828723_3 WHERE club = ""Ammanford RFC""" What is the minimum laid down?,SELECT MIN(laid_down) FROM table_12592074_1 Show average ticket price for exhibitions for year 2005?,SELECT avg ( ticket_price ) FROM exhibition WHERE YEAR = 2005 What are the distinct location names?,SELECT DISTINCT Location_Name FROM LOCATIONS "What is Score In The Final, when Date is ""30 August 1993""?","SELECT score_in_the_final FROM table_name_20 WHERE date = ""30 august 1993""" What was the pick number when Paul Krake was selected?,"SELECT MIN(pick__number) FROM table_2897457_8 WHERE player = ""Paul Krake""" What is the Team with a Machine that is nsr250 and has Points of 8?,"SELECT team FROM table_name_39 WHERE machine = ""nsr250"" AND points = 8" What is the record for the loss in UFC 62?,"SELECT record FROM table_name_26 WHERE res = ""loss"" AND event = ""ufc 62""" Who did the cubs play on june 3?,"SELECT opponent FROM table_name_60 WHERE date = ""june 3""" What was the score when the record became 25–14–9?,"SELECT score FROM table_name_78 WHERE record = ""25–14–9""" What team does Bill Walker play for?,"SELECT team FROM table_name_1 WHERE player = ""bill walker""" What is the name of the product with the color description 'yellow'?,SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow' What was the score of the game played on September 9?,"SELECT score FROM table_name_5 WHERE date = ""september 9""" Tell me the recorded for time of 2:50 and released date of 6/6/77 with track more than 20,"SELECT recorded FROM table_name_84 WHERE track > 20 AND release_date = ""6/6/77"" AND time = ""2:50""" "What is the value for Lost when Drawn is 0, and Tries against is 41?","SELECT lost FROM table_name_33 WHERE drawn = ""0"" AND tries_against = ""41""" How many customers do not have an account?,SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts) What is the per-capita GDP of the country with an overall GDP of 80.955?,"SELECT gdp_per_capita__us$_ FROM table_name_40 WHERE gdp__billion_us$_ = ""80.955""" How about the total number of enrollments for just colleges that were founded after the year 1850?,SELECT sum ( Enrollment ) FROM university WHERE founded > 1850 List all player names who have an overall rating higher than the average.,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > ( SELECT avg(overall_rating) FROM Player_Attributes ) What was the date of the game when the Avalanche had a record of 8–3–1?,"SELECT date FROM table_name_34 WHERE record = ""8–3–1""" What is minimum hours of the students playing in different position?,"SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos" "What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O?","SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = ""1 × 6.4 gt/s qpi"" AND part_number_s_ = ""bx80601975at80601002274aa""" Which player went to college at Tennessee-Chattanooga?,"SELECT player FROM table_name_7 WHERE college = ""tennessee-chattanooga""" what year did Vijay Singh joined?,SELECT Year_Join FROM artist where Name = 'Vijay Singh' From what school was the player drafted in round 3?,SELECT school FROM table_name_88 WHERE round = 3 What is the highest against when the lost is 3 with less than 30 points?,SELECT MAX(against) FROM table_name_73 WHERE lost = 3 AND points < 30 Who is the captain of the team in Southampton? ,"SELECT captain FROM table_18461635_1 WHERE location = ""Southampton""" Show origin and destination for flights with price higher than 300.,"SELECT origin , destination FROM Flight WHERE price > 300" "What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5?",SELECT SUM(balls_faced) FROM table_name_99 WHERE sr > 48.28 AND innings = 3 AND average < 5 Calculate the average population of community areas in the West side.,SELECT AVG(population) FROM Community_Area WHERE side = 'West ' "What is the average rating score of the movie ""When Will I Be Loved"" and who was its director?","SELECT AVG(T1.rating_score), T2.director_name FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved'" "What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?","SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC" Which Director has a Rank of 12?,SELECT director FROM table_name_22 WHERE rank = 12 What is the average pick of Florida State?,"SELECT AVG(pick) FROM table_name_28 WHERE college = ""florida state""" "Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?","SELECT MAX(effic) FROM table_name_56 WHERE avg_g < 305.6 AND gp_gs = ""13-13""" In what year was GWRSn build?,"SELECT Built FROM railway GROUP BY Builder having Builder = ""GWR Swindon"" order by Built desc limit 1" "What is the highest Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012?","SELECT MAX(cycle) FROM table_name_57 WHERE number_of_contestants = ""11"" AND premiere_date = ""september 3, 2012""" What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5?,"SELECT date FROM table_name_26 WHERE decision = ""niittymaki"" AND record = ""30–21–5""" What is the rank that shows 426 games?,"SELECT rank FROM table_name_64 WHERE games = ""426""" What is the first and last name of the professor in biology department?,"SELECT T3.EMP_FNAME , T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = ""Biology""" Which nationality has the most hosts?,SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 What is the average number of international passengers of all airports?,SELECT AVG(International_Passengers) FROM airport What away team played at western oval?,"SELECT away_team FROM table_name_11 WHERE venue = ""western oval""" "Hmm, I want to know the names of the tourist attractions that can be reached by bus.","SELECT name from tourist_attractions where how_to_get_there = ""bus""" what is the name of the episode whose director is Michael Pressman and the number of that episode in that season is less than 10.0? ,"SELECT title FROM table_2791668_1 WHERE directed_by = ""Michael Pressman"" AND no_in_season < 10.0" find the total percentage share of all channels owned by CCTV.,SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV' What are the names of those stations?,SELECT t2.station_id FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY count ( * ) DESC LIMIT 3 Which role is most common for the staff?,SELECT role_code FROM Project_Staff GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 What is the total number of Block for the Player with less than 85 Weight and more than 187 Height?,SELECT COUNT(block) FROM table_name_73 WHERE weight < 85 AND height > 187 "Among the male customers in Sacramento, what percentage bought Dominion root beer in 2013?",SELECT CAST(COUNT(CASE WHEN T4.BrandName = 'Dominion' THEN T1.CustomerID ELSE NULL END) AS REAL) * 100 / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T1.City = 'Sacramento' AND T1.Gender = 'M' AND T2.TransactionDate LIKE '2014%' What is the id of the longest song?,SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 What is the christian amount where work participation rate is the composition?,"SELECT christians FROM table_14598_5 WHERE composition = ""Work Participation Rate""" How many rides did it take to get less than 3 bonus pts in no more than 7 matches?,SELECT MIN(rides) FROM table_name_92 WHERE bonus_pts < 3 AND matches < 7 "Jeff Staples player for which College, Junior or Club league?","SELECT college_junior_club_team__league_ FROM table_name_28 WHERE player = ""jeff staples""" What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?,"SELECT japanese_title FROM table_name_88 WHERE romaji_title = ""ashita wa ashita no kaze ga fuku""" Who wrote title number 38?,SELECT written_by FROM table_26199484_1 WHERE no = 38 What is the high lap total for pedro diniz?,"SELECT MAX(laps) FROM table_name_24 WHERE driver = ""pedro diniz""" what is the building id for the apt number suite 645,"SELECT building_id FROM Apartments where apt_number = ""Suite 645""" "Given the titles of all courses, in order of titles and credits.","SELECT title FROM course ORDER BY title , credits" Show all headquarters with both a company in banking industry and a company in Oil and gas.,SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' find the name of driver who is driving the school bus with the longest working history.,SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1 What is firefox market ahare?,"SELECT market_share from browser where name = ""Firefox""" How much absorption in nm does the orange dye have?,"SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = ""orange""" "How many Canadian players, between the ages of 18 and 24 when they initially played their first NHL, had a cumulative goal total of no more than 5? Indicate their complete names, the year, and the team for which they scored the specified amount of goals.","SELECT T2.nameGiven, T2.lastName, T2.birthYear, birthMon, birthDay , T3.tmID FROM Scoring AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T3.tmID = T1.tmID WHERE (T2.firstNHL - T2.birthYear) BETWEEN 18 AND 24 AND T3.G < 5" Name the transfer wind for giuly,"SELECT transfer_window FROM table_name_15 WHERE name = ""giuly""" Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.,"SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015" Please name all of the cities in California.,SELECT DISTINCT City FROM customers WHERE State = 'CA' What are the resident details containing the substring 'Miss'?,SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%' What is the Tie Number when Barnsley was the away team?,"SELECT tie_no FROM table_name_40 WHERE away_team = ""barnsley""" "How many draws have goals for less than 56, 10 as the postion, with goals against less than 45?",SELECT COUNT(draws) FROM table_name_26 WHERE goals_for < 56 AND position = 10 AND goals_against < 45 How many games were sold on PS3 platform in Japan?,SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'Japan' AND T4.platform_name = 'PS3' What is the email address of clients who submitted their complaints via postal mail?,SELECT T1.email FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Submitted via` = 'Postal mail' "Find the average prices of all products from each manufacture, and list each company's name.","SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" What is the location of the festival with the largest number of audience?,SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1 How much Ekstraklasa has a Total smaller than 3?,SELECT SUM(ekstraklasa) FROM table_name_98 WHERE total < 3 Which item has the suffix containing thiocyanato- (-scn) as a prefix?,"SELECT suffix FROM table_name_77 WHERE prefix = ""thiocyanato- (-scn)""" "Which player has a to par greater than 11, with a total less than 155?",SELECT player FROM table_name_74 WHERE to_par > 11 AND total < 155 What is the lowest number of total goals for a player with 6 league goals?,SELECT MIN(total_goals) FROM table_27170987_5 WHERE league_goals = 6 What was the first year of the Lithuanian National Badminton Championships?,SELECT MIN(year) FROM table_15001753_1 "Name the No. 2 which has a No. 3 of jacob, and a No. 10 of wyatt, and a No. 6 of ethan?","SELECT no_2 FROM table_name_66 WHERE no_3 = ""jacob"" AND no_10 = ""wyatt"" AND no_6 = ""ethan""" Tell me his weight please.,SELECT Weight FROM people where Name = 'Ty Conklin' in the ft pct .667 what is the number of gp-gs,"SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = "".667""" When did Collingwood play?,"SELECT date FROM table_name_36 WHERE home_team = ""collingwood""" "please just show the first, last name, and gpa.","SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1" Tell me the average points with tyres of b and chassis of tf109,"SELECT AVG(points) FROM table_name_23 WHERE tyres = ""b"" AND chassis = ""tf109""" What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.,"SELECT T1.Allergy , T1.AllergyType 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"" ORDER BY T1.Allergy" How many professors in the school?,SELECT count ( * ) FROM professor "What is the highest points for the JBW chassis with a climax straight-4 engine, later than 1961?","SELECT MAX(points) FROM table_name_53 WHERE chassis = ""jbw"" AND engine = ""climax straight-4"" AND year > 1961" Tell me the portfolio of minister of carlo giovanardi,"SELECT portfolio FROM table_name_77 WHERE minister = ""carlo giovanardi""" If the Position is Running Back what is the Total number of Pick #?,"SELECT COUNT(pick__number) FROM table_name_84 WHERE position = ""running back""" Tell me the date with week of 13,SELECT date FROM table_name_21 WHERE week = 13 What was the score for the game in which Al-Qadsia was Team 2?,"SELECT score FROM table_name_55 WHERE team_2 = ""al-qadsia""" What are the ids of stations that are located in San Francisco and have average bike availability above 10.,"SELECT id FROM station WHERE city = ""San Francisco"" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available) > 10" "For the event which happened at 23:33:34 on 2016/5/6, how many installed apps were involved?","SELECT COUNT(T1.event_id) FROM app_events AS T1 INNER JOIN events AS T2 ON T1.event_id = T2.event_id WHERE SUBSTR(T2.`timestamp`, 1, 10) = '2016-05-06' AND T1.is_installed = '1'" "What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs.","SELECT user_id FROM lists_users WHERE user_subscriber = 1 GROUP BY user_id HAVING MAX(SUBSTR(list_creation_date_utc, 1, 4)) - MIN(SUBSTR(list_creation_date_utc, 1, 4)) >= 10" How many student in total participate in the tryout?,SELECT count ( * ) FROM tryout Which Surface has a Result of fernando verdasco?,"SELECT surface FROM table_name_10 WHERE result = ""fernando verdasco""" Who wrote season 23?,SELECT written_by FROM table_2409041_3 WHERE no_in_season = 23 Return the names of all the poker players.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID Who won the Food World 250?,"SELECT winner FROM table_name_14 WHERE race = ""food world 250""" What is north melbourne's score as an away side?,"SELECT away_team AS score FROM table_name_80 WHERE away_team = ""north melbourne""" "Mention the user average star, elite year and the compliment type of user ID 6027 whereby number of compliments reach uber.","SELECT T2.user_average_stars, T1.year_id, T4.compliment_type, T3.number_of_compliments FROM Elite AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id INNER JOIN Users_Compliments AS T3 ON T2.user_id = T3.user_id INNER JOIN Compliments AS T4 ON T3.compliment_id = T4.compliment_id INNER JOIN Years AS T5 ON T1.year_id = T5.year_id WHERE T3.number_of_compliments = 'Uber' AND T3.user_id = 6027" "List the titles of the papers whose authors are from the institution ""Indiana University"".","SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University""" What is the seat percentage when vote percentage is 2.4% (-8.3)?,"SELECT seat_percentage FROM table_name_73 WHERE vote_percentage = ""2.4% (-8.3)""" What is the date of the Cleveland home game with a 20-8 record?,"SELECT date FROM table_name_74 WHERE home = ""cleveland"" AND record = ""20-8""" What are the notes for Ford when the total is 5?,"SELECT notes FROM table_name_23 WHERE builder = ""ford"" AND total = ""5""" What is the most common competition type?,SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1 What is the visitor team on April 4?,"SELECT visitor FROM table_name_98 WHERE date = ""april 4""" Which Captain 2 has a Result of final?,"SELECT captain_2 FROM table_name_50 WHERE result = ""final""" "Opponent of @ edmonton oilers, and a Game smaller than 7, and a Series of oilers lead 3–2 had what score?","SELECT score FROM table_name_38 WHERE opponent = ""@ edmonton oilers"" AND game < 7 AND series = ""oilers lead 3–2""" What brand of beer has been the worst rated most times?,SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T2.BrandID = T1.BrandID WHERE T2.StarRating = 1 GROUP BY T1.BrandName ORDER BY COUNT(T1.BrandName) DESC LIMIT 1 Which company started the earliest the maintenance contract? Show the company name.,SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date LIMIT 1 Which team did the MVP of 1997 NBA season play in?,SELECT DISTINCT T3.tmID FROM players_teams AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T1.tmID = T3.tmID AND T1.year = T3.year WHERE T2.year = 1997 AND T2.award = 'Finals MVP' LIMIT 1 What is the cost for the sports?,SELECT T2.StandardCost FROM Product AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE '%Sport%' Which analog channel has a digital channel of 4.1?,"SELECT analog_channel FROM table_name_31 WHERE digital_channel = ""4.1""" "Among the projects created by a teacher from New York, how many of them have a donor from the same city?",SELECT COUNT(T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_ny_teaching_fellow = 't' AND T2.donor_city = 'New York' What is the earliest year where the result of the election was a retired republican hold?,"SELECT MIN(first_elected) FROM table_1341472_40 WHERE result = ""Retired Republican hold""" How many students and instructors are in each department?,"SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name" What is the name of the stadium which held the most events?,SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1 What is the transfer fee of Diogo?,"SELECT transfer_fee FROM table_name_53 WHERE name = ""diogo""" Which 992 has a 1–2 of 1989 ?,"SELECT 1992 FROM table_name_13 WHERE 1989 = ""1–2""" What is the ID of the Publications Rank criteria?,SELECT id FROM ranking_criteria WHERE criteria_name = 'Publications Rank' "For the students who have been absent from school for the longest time, how many months have they been absent?",SELECT MAX(month) FROM longest_absense_from_school What are the top 5 types of products with the highest selling price? ?,SELECT Name FROM Product ORDER BY ListPrice DESC LIMIT 5 "Which opponent has a week smaller than 15, and a Result of l 23-17?","SELECT opponent FROM table_name_48 WHERE week < 15 AND result = ""l 23-17""" How many statuses are there for the Durham district?,"SELECT COUNT(status) FROM table_2801185_2 WHERE district = ""Durham""" Which nations have hosts younger than 35?,SELECT distinct Nationality FROM HOST WHERE Age < 35 What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?,"SELECT MAX(attendance) FROM table_name_19 WHERE opponent = ""atlanta falcons"" AND week < 10" What position did he finish after 1998 and a note time of 2:31:40?,"SELECT position FROM table_name_71 WHERE year > 1998 AND notes = ""2:31:40""" Find out the average salary of professors?,SELECT avg ( salary ) FROM instructor Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.,SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20 "What is Score, when Country is ""United States"", and when To Par is ""+4""?","SELECT score FROM table_name_56 WHERE country = ""united states"" AND to_par = ""+4""" "Could you get me the average as well, please?",SELECT avg ( used_kb ) FROM screen_mode Who won the regular season when Missouri Valley Conference took place?,"SELECT regular_season_winner FROM table_22779004_1 WHERE conference = ""Missouri Valley conference""" How many different card types are there?,SELECT count(DISTINCT card_type_code) FROM Customers_Cards What was coach Dick Bennett's overall win percentage?,"SELECT overall_win_percentage FROM table_name_5 WHERE coach = ""dick bennett""" List all the wines that use color white grapes. | What kinds of attributes of wines do you want? | List wines made with white grapes.,"SELECT * FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" What is the average number of tweets posted by the users in a city in Argentina?,SELECT SUM(CASE WHEN T2.City = 'Buenos Aires' THEN 1.0 ELSE 0 END) / COUNT(T1.TweetID) AS avg FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.Country = 'Argentina' Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.,SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL') What is every entry for description when the value of %yes is 51.82%?,"SELECT description FROM table_256286_43 WHERE _percentage_yes = ""51.82%""" What was the circumstance that happened on the road to Jalalabad?,"SELECT circumstances FROM table_name_89 WHERE location = ""road to jalalabad""" Which language is spoken by the largest number of countries?,SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1 What is the region where the customer who placed the order id 10276 located?,SELECT T1.Region FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10276 What party did the incumbent Thomas P. Moore belong to?,"SELECT party FROM table_2668254_8 WHERE incumbent = ""Thomas P. Moore""" Which Vertices have a Dual Archimedean solid of truncated dodecahedron?,"SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = ""truncated dodecahedron""" How many episodes received rating of 8.2?,"SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = ""8.2""" "Please show the names of aircrafts associated with airport with name ""London Gatwick"".","SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" Please list any two character names in chapter 18708.,SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.chapter_id = 18708 LIMIT 2 How many goals does mitsuo kato have?,"SELECT MAX(goals) FROM table_name_87 WHERE player = ""mitsuo kato""" When was the most recently named feature named?,SELECT MAX(year_named) FROM table_16799784_13 Name the ICAO for julius nyerere international airport,"SELECT icao FROM table_name_79 WHERE airport = ""julius nyerere international airport""" find the number of medicines offered by each trade.,"SELECT trade_name , count(*) FROM medicine GROUP BY trade_name" WHen jaime aff and christine langner are the performers what is the subject?,"SELECT subject FROM table_191105_3 WHERE performed_by = ""Jaime Aff and Christine Langner""" "Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?","SELECT MIN(pick__number) FROM table_name_44 WHERE nationality = ""canada"" AND team_from = ""sudbury wolves""" What are the names of all instructors who advise students in the math depart sorted by total credits of the student.,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred "Hi! What is the name of the institution that ""Mathias Blume"" is associated with?","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Matthias"" AND t1.lname = ""Blume""" What are the full names of the 10 youngest married male production technicians?,"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle LIKE 'Production Technician%' AND T1.Gender = 'M' AND T1.MaritalStatus = 'M' ORDER BY T1.BirthDate DESC LIMIT 10" What was the type of ballot measures if the % of yes vote is 32.47%?,"SELECT type FROM table_256286_8 WHERE _percentage_yes = ""32.47%""" Please show the categories of the music festivals with count more than 1.,SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1 "What school did the player attend who's hometown was Montvale, NJ?","SELECT school FROM table_11677100_18 WHERE hometown = ""Montvale, NJ""" What was the circuit for alberto ascari josé froilán gonzález?,"SELECT circuit FROM table_name_83 WHERE fastest_lap = ""alberto ascari josé froilán gonzález""" What position is todd hammel?,"SELECT position FROM table_name_99 WHERE player = ""todd hammel""" Which manufacturer has a year made of 4-6-0 — ooooo — ten-wheeler?,"SELECT manufacturer FROM table_name_22 WHERE year_made = ""4-6-0 — ooooo — ten-wheeler""" what is the income class for area 75?,SELECT income_class FROM table_1691800_2 WHERE area__km²_ = 75 "What is the stage of Fabiano Fontanelli, who had a Trofeo Fast Team of Gewiss Playbus and a point classification of Fabrizio Guidi?","SELECT stage FROM table_name_13 WHERE trofeo_fast_team = ""gewiss playbus"" AND points_classification = ""fabrizio guidi"" AND winner = ""fabiano fontanelli""" "List all product only MOQ of 1,000 and with standard cost more than 17.",SELECT T2.Name FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaxOrderQty = 1000 AND T2.StandardCost > 17 How many transactions were paid through MasterCard in 2014?,SELECT COUNT(TransactionID) FROM `transaction` WHERE CreditCardType = 'MasterCard' AND TransactionDate LIKE '2014%' Which player is associated with Temple?,"SELECT player FROM table_name_22 WHERE school_country = ""temple""" When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?,SELECT COUNT(international_tourist_arrivals__2012_) FROM table_14752049_6 WHERE rank = 1 What are the first names of all students who are taking classes from the accounting department?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' List all the territories where Laura Callahan is in charge.,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.FirstName = 'Laura' AND T1.LastName = 'Callahan' can you show their name? | Do you want their first and last names? | first name,SELECT customer_first_name FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Accounts ) What is the High points with a Team with boston?,"SELECT high_points FROM table_name_95 WHERE team = ""boston""" Which Away team score has a Home team of richmond?,"SELECT away_team AS score FROM table_name_58 WHERE home_team = ""richmond""" "What is the location name of the document ""Robin CV""?","SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = ""Robin CV""" What are the facility codes of the apartments with more than four bedrooms?,SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 Show the most common type of artworks?,SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT ( * ) DESC LIMIT 1 What are the names of the states that have some college students playing in the mid position but not the goalie position?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' What is Benito Cheng's Pick number?,"SELECT pick FROM table_name_75 WHERE player = ""benito cheng""" What are the lowest wins for Australia?,"SELECT MIN(wins) FROM table_name_45 WHERE country = ""australia""" Tell me the event for 2012 london games,"SELECT event FROM table_name_70 WHERE games = ""2012 london""" What is the account balance of the supplier with the most parts?,"SELECT T.s_acctbal FROM ( SELECT T1.s_acctbal, COUNT(T2.ps_suppkey) AS num FROM supplier AS T1 INNER JOIN partsupp AS T2 ON T1.s_suppkey = T2.ps_suppkey GROUP BY T1.s_suppkey ) AS T ORDER BY T.num DESC LIMIT 1" How about the total number of songs?,SELECT count ( * ) from song "How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?","SELECT COUNT(total) FROM table_name_60 WHERE gold = 1 AND rank = ""12"" AND silver > 0" List down all the roles of Matt Groening on the episode titled 'In the Name of the Grandfather' along with the episode number and series number.,"SELECT T2.role, T1.episode, T1.number_in_series FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Matt Groening' AND T1.title = 'In the Name of the Grandfather';" What is the population density in Buffalo Lake?,"SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE name = ""Buffalo Lake""" Please list the last names and first names of all-star players whose team were ranked 1 for consecutive 3 years from 1937 to 1940.,"SELECT T5.lastName, T5.firstName FROM players_teams AS T4 INNER JOIN players AS T5 ON T4.playerID = T5.playerID WHERE T4.year BETWEEN 1937 AND 1940 AND T4.tmID IN ( SELECT DISTINCT T1.tmID FROM teams AS T1 INNER JOIN teams AS T2 INNER JOIN teams AS T3 ON T1.tmID = T2.tmID AND T2.tmID = T3.tmID AND T3.year - T2.year = 1 AND T2.year - T1.year = 1 WHERE T1.rank = 1 AND T1.year BETWEEN 1937 AND 1940 )" "What points have 1 for drawn, and 16 as a try bonus?","SELECT points_for FROM table_name_22 WHERE drawn = ""1"" AND try_bonus = ""16""" What is the minimum year born for strasbourg?,"SELECT MIN(year_born) FROM table_12962773_13 WHERE current_club = ""Strasbourg""" "What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?","SELECT AVG(year) FROM table_name_17 WHERE engine = ""cosworth straight-4"" AND entrant = ""ron harris / team lotus""" What hometown is Kyle love from?,"SELECT hometown FROM table_name_47 WHERE name = ""kyle love""" How many subjects have the pinyin shixun?,"SELECT COUNT(subject) FROM table_1216675_1 WHERE pinyin = ""Shixun""" What is the average edispl of the cars of model volvo?,SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo' "What campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled?",SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 What is the average number of million viewers that watched an episode before episode 11 with a share of 4?,"SELECT AVG(viewers__millions_) FROM table_name_28 WHERE episode__number < 11 AND share = ""4""" How many games were won with 2nd oha was standing and there were 62 games?,"SELECT won FROM table_1143966_1 WHERE standing = ""2nd OHA"" AND games = 62" "For each customer who has at least two orders, find the customer name and number of orders made.","SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2" "What is the away score with a record of 7-4, win% of 0.637, and 2010 season?","SELECT away FROM table_name_22 WHERE record = ""7-4"" AND win__percentage = 0.637 AND season = ""2010""" What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?,"SELECT MIN(rank) FROM table_name_85 WHERE lane > 5 AND name = ""elizabeth van welie""" List down the rating of episodes that were produced by Jason Bikowski.,SELECT T1.rating FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Jason Bikowski'; What was the result of the Georgia 8 district?,"SELECT result FROM table_19753079_13 WHERE district = ""Georgia 8""" What was his minimum number wins in a single year?,SELECT MIN(wins) FROM table_25557880_1 "Among the universities in Australia, how many of them have more than 15000 students in 2011?",SELECT COUNT(*) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Australia' AND T2.year = 2011 AND T2.num_students > 15000 How many problems does the product with the most problems have? List the number of the problems and product name.,"SELECT count(*) , T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1" what is zach's job?,SELECT job from Person where name = 'Zach' How many people attended games with st kilda as the home side?,"SELECT SUM(crowd) FROM table_name_57 WHERE home_team = ""st kilda""" show the least three salaries in the table,SELECT salary FROM Employee ORDER BY salary ASC LIMIT 3 "How many authors does the paper ""Equation Solving in Geometrical Theories"" have?",SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Equation Solving in Geometrical Theories' What is the length of the fastest roller coaster in Austria?,"SELECT T2.length FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = ""Austria"" order by T2.speed desc limit 1" "What is Opponent In The Final, when Year is ""1942""?",SELECT opponent_in_the_final FROM table_name_33 WHERE year = 1942 How many word that has number of different words equal to 3?,SELECT COUNT(T2.wid) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 3 Which students didn't attend courses?,SELECT * FROM student_course_registrations WHERE student_id NOT IN ( SELECT student_id FROM student_course_attendance ) which winner has a jockery containing jerry bailey and the owner of overbrook farm?,"SELECT winner FROM table_name_28 WHERE jockey = ""jerry bailey"" AND owner = ""overbrook farm""" What is the lowest number of games with a rank less than 1?,SELECT MIN(games) FROM table_name_48 WHERE rank < 1 Which department has the highest amount of students?,SELECT dept_name FROM student GROUP BY dept_name ORDER BY count ( * ) DESC LIMIT 1 "What are the full names of all left handed players, in order of birth date?","SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date" what was the score in 1990,SELECT score FROM table_name_85 WHERE year = 1990 How many branches where have more than average number of memberships are there?,SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch) What are the different positions of players from UCLA or Duke colleges?,"SELECT DISTINCT POSITION FROM match_season WHERE College = ""UCLA"" OR College = ""Duke""" "Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35","SELECT COUNT(played) FROM table_name_67 WHERE points = ""31-7"" AND position = 16 AND goals_for < 35" Which Date has a Score of 106–112?,"SELECT date FROM table_name_58 WHERE score = ""106–112""" Find the number of distinct courses that have enrolled students.,SELECT count(course_id) FROM Student_Course_Enrolment "When did the ATV that launched on 9 March 2008, deorbit?","SELECT deorbit_date FROM table_name_9 WHERE launch_date = ""9 march 2008""" "Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?",SELECT opponent FROM table_name_95 WHERE yards < 197 AND average < 32 AND year = 1966 In which regions are the stores that have shipped products through the WARE-UHY1004 warehouse?,SELECT T FROM ( SELECT DISTINCT CASE WHEN T3.WarehouseCode = 'WARE-UHY1004' THEN T1.Region END AS T FROM Regions T1 INNER JOIN `Store Locations` T2 ON T2.StateCode = T1.StateCode INNER JOIN `Sales Orders` T3 ON T3._StoreID = T2.StoreID ) WHERE T IS NOT NULL "Wonderful! Of these product type codes, can you tell me which code is the most common one?",SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 "In the Venus and Adonis, what is the description of the last scene listed?",SELECT T2.Description FROM works AS T1 RIGHT JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Venus and Adonis' ORDER BY T2.Scene DESC LIMIT 1 how many policy types are there?,SELECT count ( DISTINCT Policy_Type_Code ) FROM Customer_Policies "Among the students who got a B in the course Machine Learning Theory, how many of them have a gpa of over 3?",SELECT COUNT(student_id) FROM registration WHERE grade = 'B' AND student_id IN ( SELECT student_id FROM student WHERE gpa > 3 AND course_id IN ( SELECT course_id FROM course WHERE name = 'Machine Learning Theory' ) ) "How much February has a Score of 5–2, and Points of 70?","SELECT COUNT(february) FROM table_name_44 WHERE score = ""5–2"" AND points = 70" Name the region before 2008 when name of best 1200,"SELECT region FROM table_name_58 WHERE year < 2008 AND name = ""best 1200""" List down the actor ID of actors with Dee as their last name.,SELECT actor_id FROM actor WHERE last_name = 'Dee' Find the female friends of Alice.,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' Find the name of students who took some course offered by Statistics department.,SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' Can you please show me the minimum damage for all storms with maximum speed higher than 1000?,SELECT min ( damage_millions_USD ) FROM storm WHERE max_speed > 1000 What is the lowest number played with more than 30 points?,SELECT MIN(played) FROM table_name_21 WHERE points > 30 What is the average height in centimeters of all the players in the position of defense?,SELECT CAST(SUM(T2.height_in_cm) AS REAL) / COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.position_info = 'D' What is the most common birth place of people?,SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1 "Among the 'Handgun' weapon used by subject, how many percent were 'Shoot and Miss'?",SELECT CAST(SUM(subject_statuses = 'Shoot and Miss') AS REAL) * 100 / COUNT(case_number) FROM incidents WHERE subject_weapon = 'Handgun' "Can you tell me the Result that has the Date of september 13, 1998?","SELECT result FROM table_name_28 WHERE date = ""september 13, 1998""" "Which State (class) has a Successor of harry f. byrd, jr. (d)? Question","SELECT state__class_ FROM table_name_54 WHERE successor = ""harry f. byrd, jr. (d)""" Find the names of Japanese constructors that have once earned more than 5 points?,"SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = ""Japanese"" AND T2.points > 5" "What is the to par of player johnny miller, who has a t8 place?","SELECT to_par FROM table_name_18 WHERE place = ""t8"" AND player = ""johnny miller""" What is the last name of the customer who placed an order for sales id 178?,SELECT T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.SalesID = 178 What is the place of the player witha 69-69=138 score?,SELECT place FROM table_name_45 WHERE score = 69 - 69 = 138 What 2011 has 12.7% as the 2010?,"SELECT 2011 FROM table_name_33 WHERE 2010 = ""12.7%""" How many of the male patients are allergic to house dust mites?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN allergies AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'House dust mite allergy' AND T1.gender = 'M' What is the rank of Manuel Cortina Martínez?,"SELECT rank FROM table_name_46 WHERE athletes = ""manuel cortina martínez""" "What is Target Version, when License is LGPL or MPL?","SELECT target_version FROM table_name_68 WHERE license = ""lgpl or mpl""" What was the attendance on October 17?,"SELECT attendance FROM table_name_76 WHERE date = ""october 17""" What is the sum of all laps starting at 10 and finishing at 20?,"SELECT SUM(laps) FROM table_name_32 WHERE start = ""10"" AND finish = ""20""" Yes | Sorry. I mean which game OR the sum of attendance of a team in its home game | The sum of attendance of a team in its home game,SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br group by T1.team_id ORDER BY sum ( T1.attendance ) asc limit 1 Give me the full details of Zach,SELECT * FROM Person WHERE name = 'Zach' What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?,"SELECT remelting_at__°c_ FROM table_name_51 WHERE sn_sb___percentage_ = ""9.5/15""" When did Richmond play an away game against Collingwood?,"SELECT date FROM table_name_36 WHERE away_team = ""richmond""" How many times has the points total for the afc cup competion been 289?,SELECT COUNT(afc_cup) FROM table_14460937_1 WHERE points__total_500_ = 289 Return the different descriptions for templates that have been used in a document.,SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID In rounds 7-13 what engine was featured?,"SELECT engine FROM table_name_58 WHERE rounds = ""7-13""" What was the Termination of Mission date for the ambassador who was appointed by Barack Obama?,"SELECT termination_of_mission FROM table_name_40 WHERE appointed_by = ""barack obama""" Who directed Episode 5?,"SELECT director FROM table_12919003_2 WHERE episode = ""episode 5""" "What is the rank of Etihad Tower 5, with less than 62 floors?","SELECT MIN(rank) FROM table_name_90 WHERE floors < 62 AND name = ""etihad tower 5""" The person with a rank of 8 moving to Shakhtar Donetsk was moving from what Ukrainian Football Club as a transfer?,"SELECT moving_from FROM table_name_2 WHERE moving_to = ""shakhtar donetsk"" AND rank = 8" in what industry is BP,"SELECT industry FROM company WHERE name = ""BP""" Who is the person that has no friend?,SELECT name FROM person EXCEPT SELECT name FROM PersonFriend Find the number of bands.,SELECT count(*) FROM Band Name the high points for 21-45 record,"SELECT COUNT(high_points) FROM table_22871239_9 WHERE record = ""21-45""" "Return the names and ids of each account, as well as the number of transactions.","SELECT T2.account_name , T1.account_id , count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id" What is the Chinese Type Chinese Name of the holiday with a Tamil Name of சந்திர புத்தாண்டு (தினம் 3)?,"SELECT chinese_name FROM table_name_25 WHERE type = ""chinese"" AND tamil_name = ""சந்திர புத்தாண்டு (தினம் 3)""" What Competition had a Result of lost 1-2?,"SELECT competition FROM table_name_34 WHERE result = ""lost 1-2""" "What is Record, when High Points is ""Ray Allen (20)""?","SELECT record FROM table_name_98 WHERE high_points = ""ray allen (20)""" "Calculate the average monthly order and percentage of warehouse ""WARE-NMK1003"" in 2019. Among them, mention number of orders for floor lamps.","SELECT CAST(SUM(CASE WHEN T2.WarehouseCode = 'WARE-NMK1003' THEN 1 ELSE 0 END) AS REAL) / 12 , CAST(SUM(CASE WHEN T2.WarehouseCode = 'WARE-NMK1003' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.OrderNumber), COUNT(CASE WHEN T1.`Product Name` = 'Floor Lamps' AND T2.WarehouseCode = 'WARE-NMK1003' THEN T2.`Order Quantity` ELSE NULL END) FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID WHERE T2.OrderDate LIKE '%/%/19'" "Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?","SELECT new_returning_same_network FROM table_name_8 WHERE retitled_as_same = ""same"" AND last_aired > 1984" "What is Result, when Opponent is Cincinnati Bengals?","SELECT result FROM table_name_32 WHERE opponent = ""cincinnati bengals""" How many places have an area of 409.41 (km2)?,"SELECT COUNT(population__2010_) FROM table_261222_1 WHERE area__km_2__ = ""409.41""" What was the largest crowd size at arden street oval?,"SELECT MAX(crowd) FROM table_name_58 WHERE venue = ""arden street oval""" which train number departs pune at 13:00,"SELECT train_number FROM table_29301050_1 WHERE departure_pune = ""13:00""" what is the competition id of the country | Can you clarify? The competition id is not unique to a country. | list all the competition id for russia,"SELECT Competition_ID FROM competition WHERE country = ""Russia""" "Which city has the least number of customers whose type code is ""Good Credit Rating""?","SELECT town_city FROM customers WHERE customer_type_code = ""Good Credit Rating"" GROUP BY town_city ORDER BY count(*) LIMIT 1" What is the max aperture for the Olympus M.Zuiko Digital ED 45mm f/1.8?,"SELECT max_aperture FROM camera_lens WHERE name = ""Olympus M.Zuiko Digital ED 45mm f/1.8""" Name the formed that has type of 4-cor,"SELECT formed_from FROM table_name_58 WHERE type = ""4-cor""" "What policies does Dayana Robel have? | Do you mean the policy types of the customer named ""Dayana Robel""? | yes","SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" Give the city and country for the Alton airport.,"SELECT City , Country FROM AIRPORTS WHERE AirportName = ""Alton""" "Find the name of the products that have the color description ""red"" and have the characteristic name ""fast"".","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""fast""" "What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003?","SELECT 2005 FROM table_name_48 WHERE 2011 = ""q2"" AND 2012 = ""q1"" AND 2003 = ""1r""" "What is the name of the state that the client with the email ""skylar.ramirez@gmail.com"" lives in?",SELECT T3.state FROM state AS T1 INNER JOIN district AS T2 ON T1.StateCode = T2.state_abbrev INNER JOIN client AS T3 ON T2.district_id = T3.district_id WHERE T3.email = 'skylar.ramirez@gmail.com' Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.,"SELECT lname , sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = ""Call of Destiny"" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = ""Works of Widenius"")" When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? ,"SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = ""Orthodox Christianity"" AND type = ""village"" AND cyrillic_name_other_names = ""Ратково""" "From 2011 to 2012, how many Australian players became the ""Man of the Match""?",SELECT SUM(CASE WHEN T1.Match_Date BETWEEN '2011%' AND '2012%' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match INNER JOIN Country AS T3 ON T3.Country_Id = T2.Country_Name WHERE T3.Country_Name = 'Australia' "What is Heat, when Mark is 6.69?","SELECT heat FROM table_name_42 WHERE mark = ""6.69""" Show different occupations along with the number of players in each occupation.,"SELECT Occupation , COUNT(*) FROM player GROUP BY Occupation" How many players are older than Gurkeerat Singh player?,SELECT SUM(CASE WHEN DOB < '1990-06-29' THEN 1 ELSE 0 END) FROM Player WHERE Player_Name != 'Gurkeerat Singh' "Which 2009 has a 2008 of A, and a 2010 of 4r?","SELECT 2009 FROM table_name_84 WHERE 2008 = ""a"" AND 2010 = ""4r""" Provide the title and total time of the recipe which can be made with only lima beans.,"SELECT T1.title, T1.prep_min + T1.cook_min + T1.stnd_min FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'lima beans'" What is the average price for products?,SELECT avg(Product_Price) FROM Products How many coaches who have taught the Buffalo Sabres have died?,SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Buffalo Sabres' AND T3.deathYear IS NOT NULL "What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation of cape verde, and a Silver smaller than 0?","SELECT SUM(gold) FROM table_name_48 WHERE bronze < 7 AND total = 1 AND nation = ""cape verde"" AND silver < 0" "What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?","SELECT socket FROM table_name_34 WHERE release_date = ""september 10, 2009"" AND order_part_number = ""amm300dbo22gq""" "Which station has a license in Fort Collins, Colorado?","SELECT station FROM table_1353096_2 WHERE city_of_license_market = ""Fort Collins, Colorado""" who is the away team when the tie no is more than 13 and the home team is team bath?,"SELECT away_team FROM table_name_30 WHERE tie_no > 13 AND home_team = ""team bath""" "What is the frequency for the magazine that runs September 2, 2010?","SELECT frequency FROM table_name_62 WHERE magazine_run = ""september 2, 2010""" What is the latest date in March when the opponent was the Boston Bruins and the game number was smaller than 66?,"SELECT MAX(march) FROM table_name_94 WHERE opponent = ""boston bruins"" AND game < 66" "In the Western Oval venue, what is the average crowd?","SELECT AVG(crowd) FROM table_name_38 WHERE venue = ""western oval""" What's the minimum total attendance of the Premier League association football?,"SELECT MIN(total_attendance) FROM table_10815352_1 WHERE sport = ""Association football"" AND league = ""Premier league""" "What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?",SELECT COUNT(a_score) FROM table_name_54 WHERE b_score > 9.05 AND total < 16.525 Show me the names of journalists,SELECT Name from journalist How many events in total have happened on the devices in 2016?,"SELECT COUNT(event_id) FROM `events` WHERE SUBSTR(`timestamp`, 1, 4) = '2016'" give me names of all compatible browsers and accelerators in the descending order of compatible year,"SELECT T2.name , T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC" Where was the title released in 1977?,SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977 What category was the the participant/recipient otōto?,"SELECT category FROM table_26282750_1 WHERE participants_recipients = ""Otōto""" Calculate the total number of sales closed by Michel E. DeFrance?,SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE T2.FirstName = 'Michel' AND T2.MiddleInitial = 'e' AND T2.LastName = 'DeFrance' "Which Genre has a Year before 2013, and a Name of kikumana?","SELECT genre FROM table_name_92 WHERE year < 2013 AND name = ""kikumana""" "Find the address of the location named ""UK Gallery"".","SELECT Address FROM LOCATIONS WHERE Location_Name = ""UK Gallery""" How many courses that do not have prerequisite?,SELECT COUNT(*) FROM course WHERE NOT course_id IN (SELECT course_id FROM prereq) List the names of shops that have no devices in stock.,SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock) Which Species/Authority has a Name of true's beaked whale?,"SELECT species_authority FROM table_name_44 WHERE name = ""true's beaked whale""" How many airlines are there?,SELECT count(*) FROM airlines "What is the number & name with an Undergoing overhaul, restoration or repairs date?","SELECT number_ & _name FROM table_name_65 WHERE date = ""undergoing overhaul, restoration or repairs""" Which country is 41% Christian? Give the full name of the country.,SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Christian' AND T2.Percentage = 41 How many students are in the class,SELECT count ( * ) FROM STUDENTS Find the first and last name of students who are not in the largest major.,"SELECT fname , lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)" How many languages are there in the country where Tocantins district belongs?,SELECT COUNT(DISTINCT T2.Language) FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.District = 'Tocantins' What is the Object Number for the item with wheels 4-4-0 and a location of Barrow Hill?,"SELECT objectnumber FROM table_name_95 WHERE location = ""barrow hill"" AND wheels = ""4-4-0""" Who is the vendor of the resources needed by the project that had the highest cost of optional tip?,SELECT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid ORDER BY T2.total_price_including_optional_support - T2.total_price_including_optional_support DESC LIMIT 1 What are their Ids?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in Find the number of scientists involved for each project name.,"SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name" Opponent of leonardo castello branco had what record?,"SELECT record FROM table_name_66 WHERE opponent = ""leonardo castello branco""" What is Northern Colorado's Rnd.?,"SELECT rnd FROM table_name_18 WHERE college = ""northern colorado""" how many genre in the list?,SELECT count ( * ) from Genre Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?,"SELECT pole_position FROM table_29162856_1 WHERE winning_rider = ""Rob Guiver"" AND fastest_lap = ""Kyle Ryde""" can you show me a list of people names?,SELECT Name FROM people What are all the distinct payment types?,SELECT DISTINCT payment_type_code FROM payments List the genre id of the game Pro Evolution Soccer 2012.,SELECT T.genre_id FROM game AS T WHERE T.game_name = 'Pro Evolution Soccer 2012' What are the ids of all aircrafts that can cover a distance of more than 1000?,SELECT aid FROM Aircraft WHERE distance > 1000 What episode did tomoyuki furumaya,"SELECT title FROM table_29039942_1 WHERE director = ""Tomoyuki Furumaya""" What is the result of the game after week 5 against the st. louis rams?,"SELECT result FROM table_name_52 WHERE week > 5 AND opponent = ""st. louis rams""" Tell me the score for international friendly 17 august 2013,"SELECT score FROM table_name_70 WHERE type = ""international friendly"" AND date = ""17 august 2013""" "In year 2010 at schools located in Hawaii, what is the percentage of schools offers an associate's degree?",SELECT CAST(SUM(CASE WHEN T2.level = '2-year' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.level) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.state = 'Hawaii' AND T2.year = 2010 Find all the customer information in state NY.,"SELECT * FROM CUSTOMER WHERE State = ""NY""" "What is the document type name for the document with name ""How to read a book""?","SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = ""How to read a book""" "List the dates of enrollment and completion of the student with personal name ""Karson"".","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = ""Karson""" "Can you tell me the Score that has the Result of win, and the Date of 13 november 2009?","SELECT score FROM table_name_62 WHERE result = ""win"" AND date = ""13 november 2009""" what is the market value of JPMorgan Chase,"SELECT Market_Value_billion FROM Companies where name = ""JPMorgan Chase""" What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ?,"SELECT location FROM table_name_42 WHERE aircraft = ""f-27-600rf"" AND tail_number = ""6o-saz""" Who was the away team at MCG?,"SELECT away_team FROM table_name_12 WHERE venue = ""mcg""" "What is the club or province of Girvan Dempsey, who has 74 caps?","SELECT club_province FROM table_name_3 WHERE caps = 74 AND player = ""girvan dempsey""" "How many customers have at least one order with status ""Cancelled""?","SELECT count(DISTINCT customer_id) FROM customer_orders WHERE order_status = ""Cancelled""" What is the average attendance for the New York Jets?,"SELECT AVG(attendance) FROM table_name_98 WHERE opponent = ""new york jets""" Is there a work order where the planned cost is different from the actual cost?,SELECT CASE WHEN ActualCost = PlannedCost THEN 'No' ELSE 'Yes' END FROM WorkOrderRouting Which role did joemon play before 1991?,"SELECT role FROM table_name_34 WHERE year < 1991 AND direction = ""joemon""" What were the goals on 3/10/97?,"SELECT goals FROM table_name_86 WHERE date = ""3/10/97""" Great! And her fax number?,"SELECT fax FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards""" The catcher went to what school? ,"SELECT school FROM table_11677100_7 WHERE position = ""Catcher""" Please list the IDs of the professors that teaches more than 3 courses.,SELECT T1.p_id FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.professor = 1 GROUP BY T1.p_id HAVING COUNT(DISTINCT T1.course_id) > 3 "List the open date of open year of the shop named ""Apple"".","SELECT Open_Date, Open_Year FROM shop WHERE Shop_Name = ""Apple""" What is the constructor for Brazilian Grand Prix?,"SELECT constructor FROM table_name_48 WHERE grand_prix = ""brazilian grand prix""" List all the locations with a RBMK-1000 reactor.,"SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE reactor_type = ""RBMK-1000""" "For the document Control Assistant who was hired on 2009/1/22, what is the percentage of private documents did he/she have?",SELECT CAST(SUM(CASE WHEN T1.DocumentSummary IS NOT NULL THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.DocumentSummary) FROM Document AS T1 INNER JOIN Employee AS T2 ON T1.Owner = T2.BusinessEntityID WHERE T2.JobTitle = 'Document Control Assistant' AND T2.HireDate = '2009-01-22' Can you tell me the Score that has the Date of 11/17/1979?,"SELECT score FROM table_name_98 WHERE date = ""11/17/1979""" What are the asset acquired date and asset disposed date for asset id 2?,"SELECT asset_acquired_date,asset_disposed_date from assets where asset_id = 2" What are the sources for the data of children who finished primary school education in North American countries?,"SELECT DISTINCT T3.Description FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T2.CountryCode = T3.Countrycode WHERE T1.Region = 'North America' AND T2.IndicatorName = 'Out-of-school children of primary school age, both sexes (number)'" What is the Label of the release in CD Maxi Format?,"SELECT label FROM table_name_65 WHERE format = ""cd maxi""" What is the category when the version is 1.0 and the title is Chord finder? ,"SELECT category FROM table_18138132_2 WHERE version = ""1.0"" AND title = ""Chord Finder""" Which player did the green bay packers pick?,"SELECT player FROM table_2508633_5 WHERE nfl_team = ""Green Bay Packers""" What school has belleville as the city?,"SELECT school FROM table_name_37 WHERE city = ""belleville""" What was the record for game 59?,SELECT record FROM table_name_61 WHERE game = 59 At what venue did the Essendon team play as an away team?,"SELECT venue FROM table_name_92 WHERE away_team = ""essendon""" What is the Latin equivalent for the Phagspa of ꡙ?,"SELECT latin FROM table_name_72 WHERE ’phagspa = ""ꡙ""" What is the smallest amount of WSOP bracelets anyone had?,SELECT MIN(wsop_bracelets) FROM table_23696862_6 Which organization has the least number of male students?,"SELECT T.organ FROM ( SELECT T2.organ, COUNT(T1.name) AS num FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name GROUP BY T2.organ ) T ORDER BY T.num LIMIT 1" Which part fault requires the most number of skills to fix? List part id and name.,"SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1" What is the highest number of games played?,SELECT MAX(games_played) FROM table_18018214_4 What was the result of the game in Milwaukee?,"SELECT result FROM table_name_34 WHERE city = ""milwaukee""" What was the game number on march 27?,"SELECT MIN(game) FROM table_27712702_11 WHERE date = ""March 27""" "When Team 1 is Aalborg BK, what is the 1st Leg?","SELECT 1 AS st_leg FROM table_name_53 WHERE team_1 = ""aalborg bk""" "What venue hosted a match with a 3-0 score on December 7, 2002?","SELECT venue FROM table_name_31 WHERE score = ""3-0"" AND date = ""december 7, 2002""" List by name all customers who provided consent for the tag Older American.,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Tags = 'Older American' AND T2.`Consumer consent provided?` != 'N/A' AND T2.`Consumer consent provided?` IS NOT NULL AND T2.`Consumer consent provided?` != ''" Which opponent has a record of 52-52?,"SELECT opponent FROM table_name_63 WHERE record = ""52-52""" What is the country of the player moving from belgrano with a summer transfer window?,"SELECT country FROM table_name_69 WHERE transfer_window = ""summer"" AND moving_from = ""belgrano""" Which year has most number of concerts?,SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1 Which products by Plutzer Lebensmittelgromrkte AG were discontinued and what are their price?,SELECT T1.UnitPrice FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Plutzer Lebensmittelgromrkte AG' AND T1.Discontinued = 1 "Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?","SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = ""MU, 2-1""" What is the To Par of winning score 71-66-70-67=274?,SELECT to_par FROM table_name_52 WHERE winning_score = 71 - 66 - 70 - 67 = 274 What was the lowest overall for Louis Coleman?,"SELECT MIN(overall) FROM table_name_91 WHERE player = ""louis coleman""" Show all game ids and the number of hours played.,"SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid" Player than won in 2003?,"SELECT player FROM table_name_94 WHERE year_s__won = ""2003""" Name the most game with opponent of hartford whalers,"SELECT MAX(game) FROM table_name_75 WHERE opponent = ""hartford whalers""" How about those who teaches at least one course?,"SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count ( * ) > = 1" List the point IDs and fines of the inspections done on 7th August 2010.,"SELECT T2.point_id, T2.fine FROM inspection AS T1 INNER JOIN violation AS T2 ON T1.inspection_id = T2.inspection_id WHERE T1.inspection_date = '2010-08-07'" What was the recorded flaps of HBR Motorsport team?,"SELECT f_laps FROM table_25369796_1 WHERE team = ""HBR Motorsport""" Find the physician who prescribed the highest dose. What is his or her name?,SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 Names of browsers that are compartable with 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 = 'Fasterfox' What is the Density (hab/ km²) when the population (hab) is 58 414*?,"SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = ""58 414*""" What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals?,"SELECT copa_libertadores_1996 FROM table_name_84 WHERE copa_conmebol_1996 = ""quarterfinals""" What is the name of photo ID 280,SELECT Name FROM PHOTOS where photo_id = 280 What is the average number of customers per sales person?,SELECT CAST(COUNT(T1.CustomerID) AS REAL) / COUNT(T3.EmployeeID) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID "Of these employees, how many did not have a job in the past?",SELECT count ( * ) FROM employees WHERE employee_id NOT IN ( SELECT employee_id FROM job_history ) What's the Score with the Visitor of Montreal Maroons and has a Date of December 28?,"SELECT score FROM table_name_45 WHERE visitor = ""montreal maroons"" AND date = ""december 28""" Name the least draw for elena dermidjean,"SELECT MIN(draw) FROM table_14977252_2 WHERE artist = ""Elena Dermidjean""" What was the final result for Craig Hosmer?,"SELECT result FROM table_1342013_5 WHERE incumbent = ""Craig Hosmer""" "What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley?","SELECT score FROM table_name_38 WHERE country = ""united states"" AND place = ""t3"" AND player = ""chris riley""" What is the average score for the movie Versailles Rive-Gauche?,SELECT AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Versailles Rive-Gauche' What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?,"SELECT T1.staff_name , T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name , T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id" what is the age of Timothy Beckham,"SELECT Age FROM player WHERE Player = ""Timothy Beckham""" "What is the genre of the game ""Mario vs. Donkey Kong""?",SELECT T1.genre_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T2.game_name = 'Mario vs. Donkey Kong' What is the result of the hypo-meeting before 2010?,"SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = ""hypo-meeting""" What current conference is Post University a member of?,"SELECT current_conference FROM table_12936521_2 WHERE institution = ""Post University""" "Show all official native languages that contain the word ""English"".","SELECT Official_native_language FROM country WHERE Official_native_language LIKE ""%English%""" Which professionals have done at least two types of treatments? List the professional id and cell phone.,"SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2" "List all the document names which contains ""CV"".","SELECT document_name FROM documents WHERE document_name LIKE ""%CV%""" "Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?","SELECT surface FROM table_name_52 WHERE opponent_in_the_final = ""don mcneill"" AND year = 1940" actually i mean highest total amount,SELECT total FROM invoices order by total desc limit 1 Calculate the average price of products shipped to the UK.,SELECT AVG(UnitPrice) AS avg FROM Invoices WHERE Country = 'UK' Show me the medicine name which can interact as 'inhibitor'?,SELECT T1.name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' What's the 102kg when the Ri Song-Hui was 226kg?,"SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = ""226kg""" Who is the candidates for district maryland 1?,"SELECT candidates FROM table_2668416_7 WHERE district = ""Maryland 1""" Find the official names of cities with population bigger than 1500 or smaller than 500.,SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500 "What is the Date of the game with an attendance of 72,051 after Week 9?","SELECT date FROM table_name_4 WHERE week > 9 AND attendance = ""72,051""" What is the result on Saturday that's রবিবার robibar on Sunday,"SELECT saturday_shani__saturn_ FROM table_name_14 WHERE sunday_surya__the_sun_ = ""রবিবার robibar""" How many people were in attendance for the game with a score of 98–111?,"SELECT SUM(attendance) FROM table_name_12 WHERE score = ""98–111""" What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?,SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73 What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23? ,"SELECT primary__6_13_years_ FROM table_25042332_22 WHERE preschool__0_5_years_ = ""50.23""" Show the billing address with the highest amount of invoice?,SELECT billing_address FROM invoices ORDER BY total DESC LIMIT 1 Record of 89-67 had what loss?,"SELECT loss FROM table_name_16 WHERE record = ""89-67""" How many different types of sports do we offer?,SELECT count(DISTINCT sportname) FROM Sportsinfo "Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?","SELECT result FROM table_name_22 WHERE venue = ""away"" AND game < 43 AND opponent = ""bournemouth""" How many movies have a popularity of more than 400 but less than 500? Indicate the name of the movies and the highest rating score each movie has received.,"SELECT T1.movie_title, MAX(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_popularity BETWEEN 400 AND 500 GROUP BY T1.movie_title" What are the address numbers that are located in Gansu district?,SELECT address_id FROM address WHERE district = 'Gansu' Show member names without any registered branch.,SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch) "What is Result, when Date is ""June 11, 1994"", and when Venue is ""Miami, United States""?","SELECT result FROM table_name_58 WHERE date = ""june 11, 1994"" AND venue = ""miami, united states""" Find the dates on which more than one revisions were made.,SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1 "What is the low week from october 15, 1961?","SELECT MIN(week) FROM table_name_82 WHERE date = ""october 15, 1961""" "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.","SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2" "What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1?","SELECT MAX(gold) FROM table_name_16 WHERE total < 3 AND rank = ""5"" AND silver > 1" "In the Bay Area, what is the most common type of food served by restaurants?",SELECT T2.food_type FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area' GROUP BY T2.food_type ORDER BY COUNT(T2.food_type) DESC LIMIT 1 Who is the athlete from greece?,"SELECT athlete FROM table_name_13 WHERE country = ""greece""" WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?,"SELECT country FROM table_name_93 WHERE transfer_window = ""summer""" "What is the short name for the journal that published the paper ""A Case of Unilateral Ashy Dermatosis""?",SELECT T2.ShortName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Title = 'A Case of Unilateral Ashy Dermatosis' What is the video ratio on channel 14.2?,SELECT video FROM table_name_75 WHERE channel = 14.2 "What is Power, when Identifier is CBEB-FM?","SELECT power FROM table_name_48 WHERE identifier = ""cbeb-fm""" What is the number of games played for the team with 12 points and an against smaller than 52?,SELECT AVG(played) FROM table_name_59 WHERE points = 12 AND against < 52 How many unofficial languages are used in Italy?,SELECT SUM(CASE WHEN T2.IsOfficial = 'F' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Italy' What is the total surface area of the continents Asia and Europe?,"SELECT sum(SurfaceArea) FROM country WHERE Continent = ""Asia"" OR Continent = ""Europe""" What is the most popular payment method?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) DESC LIMIT 1 What was the result of the event against Nate Mohr?,"SELECT res FROM table_name_57 WHERE opponent = ""nate mohr""" "What is the death date of the archbishop who was ordained as bishop April 26, 1927?","SELECT died FROM table_1656555_1 WHERE ordained_bishop = ""April 26, 1927""" When риба (ríba) is the macedonian what is the proto-slavic?,"SELECT proto_slavic FROM table_26757_4 WHERE macedonian = ""риба (ríba)""" what heat number had a time of 58.44?,"SELECT COUNT(heat) FROM table_name_49 WHERE time = ""58.44""" What is the Position with a round 3 pick for r. jay soward?,"SELECT position FROM table_name_20 WHERE round < 3 AND name = ""r. jay soward""" How many films titled Gie have been nominated?,"SELECT COUNT(original_title) FROM table_13719788_1 WHERE film_title_used_in_nomination = ""Gie""" Which player finished at +10?,"SELECT player FROM table_name_57 WHERE to_par = ""+10""" How many universities got less than 50 scores under ranking criteria ID 6 in 2011?,SELECT COUNT(*) FROM university_ranking_year WHERE ranking_criteria_id = 6 AND year = 2011 AND score < 50 Show me all the films which listed in the table? | There are the titles of all the films. | Show me all films longer than 100 minutes?,SELECT title FROM film WHERE LENGTH > 100 "How many opponents were there at the game with 64,087 people in attendance?","SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = ""64,087""" How many different kinds of lens brands are there?,SELECT count(DISTINCT brand) FROM camera_lens What is the product description of the product booked with an amount of 102.76?,SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76 "Find the name of all the clubs at ""AKW"".","SELECT clubname FROM club WHERE clublocation = ""AKW""" What assets have been aquired? | What kind of information about the assets do you want me to return? | Can you tell me the date each asset was aquired?,SELECT asset_acquired_date FROM Assets How many customers are still active?,SELECT COUNT(customer_id) FROM customer WHERE active = 1 Return the full name of the staff who provided a customer with the first name April and the last name Burns with a film rental.,"SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'" What were the years the building with 44 floors was tallest?,"SELECT years_as_tallest FROM table_name_53 WHERE floors = ""44""" Who sanctioned the event at fayette county speedway?,"SELECT sanction FROM table_16275828_4 WHERE track_name = ""Fayette County Speedway""" What is the percentage of the complaint calls from Mr Mason Javen Lopez has got the consent provided by the customer?,SELECT CAST(SUM(CASE WHEN T2.`Consumer consent provided?` = 'Consent provided' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.`Consumer consent provided?`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Male' AND T1.first = 'Mason' AND T1.middle = 'Javen' AND T1.last = 'Lopez' "What is the smallest rank for passengers more than 73,754?",SELECT MIN(rank) FROM table_name_45 WHERE passengers > 73 OFFSET 754 what is the percentage of male voters where the level of maturity is 123726,SELECT e_vap_ratio_total FROM table_25042332_30 WHERE men_of_voting_age = 123726 What was the vote when the air date is 4 october 1997?,"SELECT vote FROM table_25016824_2 WHERE air_date = ""4 October 1997""" what average grid has laps larger than 52 and contains the driver of andrea de adamich?,"SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = ""andrea de adamich""" Find the name of rooms whose price is higher than the average price.,SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms ); What are the names of the airports associated with each number of routes?,"SELECT T1.name, count ( * ) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name" What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix?,"SELECT MIN(wins) FROM table_name_46 WHERE rank > 6 AND first_win = ""1950 british grand prix""" What is the institution's name of american students within the number of degree-seeking students in the cohort that ranges from 1 to 3?,SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.grad_cohort BETWEEN 1 AND 3 AND T2.race = 'Ai' What are the id and name of the museum visited most times?,"SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1" What is the country of origin of the artist who is female and produced a song in Bangla?,"SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female"" AND T2.languages = ""bangla""" "Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?","SELECT callsign FROM table_name_97 WHERE webcast = ""listen live"" AND frequency < 1210 AND brand = ""newsradio 740 ktrh""" What is the url for repository that has the longest processed time solution?,SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Solution ) Team 2 of Yokohama F. Marinos in the n/a venue had what score?,"SELECT score FROM table_name_90 WHERE venue = ""n/a"" AND team_2 = ""yokohama f. marinos""" How many countries are there on the list?,select count ( Country ) from perpetrator What is the role code with the largest number of employees?,SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1 Name the english gloss for naháŋȟčiŋ,"SELECT english_gloss FROM table_1499791_2 WHERE southern_lakota = ""naháŋȟčiŋ""" Find the last and first name of students who are playing Football or Lacrosse.,"SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Football"" OR T1.SportName = ""Lacrosse""" "Among the female users of the devices, how many of them are under 30?",SELECT COUNT(device_id) FROM gender_age WHERE age < 30 AND gender = 'F' What is the category of the touchdown atlantic?,"SELECT category FROM table_name_76 WHERE event_name = ""touchdown atlantic""" "Display the first and last name, and salary for those employees whose first name is ending with the letter m.","SELECT first_name , last_name , salary FROM employees WHERE first_name LIKE '%m'" Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?,"SELECT music___director FROM table_name_69 WHERE co___singer = ""hemachandra"" AND film = ""khaleja""" Please list the titles of projects by which schools in Abington was donated.,SELECT T2.title FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city LIKE 'Abington' "Perfect, and how many different customers were there?",SELECT COUNT ( distinct customer_id ) FROM BOOKINGS How many residence cities have an English name of Province of Viborg and Nyslott?,"SELECT COUNT(residence_city) FROM table_198175_2 WHERE english_name = ""Province of Viborg and Nyslott""" Which party is Madeleine Plamondon a member of?,"SELECT party FROM table_name_94 WHERE name = ""madeleine plamondon""" Show the name of the party that has the most delegates ?,SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT ( * ) DESC LIMIT 1 What is the sum of Crowd when Essendon was the home team?,"SELECT SUM(crowd) FROM table_name_33 WHERE home_team = ""essendon""" What is the market share of Safari?,"SELECT market_share FROM browser WHERE name = ""Safari""" "What are the names of gymnasts whose hometown is not ""Santo Domingo""?","SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown != ""Santo Domingo""" "What are the team colors from Tolono, Illinois?","SELECT colors FROM table_29612224_1 WHERE location = ""Tolono, Illinois""" What is the average round for Club team of garmisch-partenkirchen riessersee sc (germany 2)?,"SELECT AVG(round) FROM table_name_64 WHERE club_team = ""garmisch-partenkirchen riessersee sc (germany 2)""" "What was the country when the margin was 2 strokes, and when the score was 276 (-4)?","SELECT country FROM table_name_45 WHERE margin = ""2 strokes"" AND score = ""276 (-4)""" List the ISBN of the book published in Spanish.,SELECT T1.isbn13 FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'Spanish' Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht?,"SELECT yacht AS Club FROM table_name_84 WHERE syndicate = ""america 3 foundation"" AND yacht = ""america 3""" List the publication dates of publications with 3 lowest prices.,SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3 Which country has the most languages spoken?,SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(T2.Name) DESC LIMIT 1 What is the name of the airport that is the destination of the most number of routes that start in China?,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.,"SELECT Restaurant.ResName , sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;" "Among the students being advised by Advisor 5, how many students are in the 5th year?",SELECT COUNT(*) FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.p_id_dummy = 5 AND T2.student = 1 AND T2.yearsInProgram = 'Year_5' How many user's compliment in photo has medium in number?,SELECT COUNT(T2.user_id) FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.compliment_type = 'photos' AND T2.number_of_compliments = 'Medium' "Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?","SELECT AVG(latitude) FROM table_name_72 WHERE land___sqmi__ < 35.874 AND pop__2010_ > 35 AND county = ""cass"" AND water__sqmi_ = 0.008" "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is ""PUR""?","SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = ""PUR""" What was the free score of the skater with a total of 156.67?,SELECT free FROM table_name_80 WHERE total = 156.67 "Find the number of vocal types used in song ""Demon Kitty Rag""?","SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Demon Kitty Rag""" When was the birthday for the goalie who had most goal againsts in 1965 season?,"SELECT T1.birthYear, T1.birthMon, birthDay FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1965 ORDER BY T2.GA DESC LIMIT 1" Name the attendance with result of won 1-0,"SELECT attendance FROM table_name_27 WHERE result = ""won 1-0""" What was the score when Minnesota visited?,"SELECT score FROM table_name_86 WHERE visitor = ""minnesota""" Indicate the name of the product that is close to being sold out and that has the lowest cost price.,SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T2.ps_availqty < 10 ORDER BY T2.ps_supplycost LIMIT 1 What year was the wheel arrangement 0-6-0 and a class 302?,"SELECT year_made FROM table_name_76 WHERE wheel_arrangement = ""0-6-0"" AND class = ""302""" What is Corey Peters Card_Number?,SELECT Card_Number FROM member where name = 'Corey Peters' "Show cinema name, film title, date, and price for each record in schedule.","SELECT T3.name , T2.title , T1.date , T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id" How many vendors are having their products ordered with an average delivery time of 25 days?,SELECT COUNT(DISTINCT BusinessEntityID) FROM ProductVendor WHERE AverageLeadTime = 25 When was the date of vacancy for the manager of Kartalspor? ,"SELECT date_of_vacancy FROM table_27091128_3 WHERE team = ""Kartalspor""" What is the name and open year for the branch with most number of memberships registered in 2016?,"SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1" What was the away team's score in the game against North Melbourne?,"SELECT away_team AS score FROM table_name_35 WHERE home_team = ""north melbourne""" What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?,"SELECT elevated FROM table_name_25 WHERE cardinalatial_title = ""priest of s. eusebio and archbishop of benevento""" What is the number of draws when played is less than 38?,SELECT COUNT(draws) FROM table_name_53 WHERE played < 38 Calculate the total profit by Cisco SPA301 for all regions.,SELECT SUM(T1.Profit) + SUM(T2.Profit) + SUM(T3.Profit) + SUM(T4.Profit) AS totalProfit FROM west_superstore AS T1 INNER JOIN east_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN central_superstore AS T3 ON T3.`Customer ID` = T2.`Customer ID` INNER JOIN south_superstore AS T4 ON T4.`Customer ID` = T3.`Customer ID` INNER JOIN product AS T5 ON T5.`Product ID` = T4.`Product ID` WHERE T5.`Product Name` = 'Cisco SPA301' How many points did team Rothmans Honda have in 1992?,"SELECT MIN(points) FROM table_name_7 WHERE team = ""rothmans honda"" AND year = 1992" "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?","SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details , T1.task_id , T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING count(*) > 2" List all the event names by year from the most recent to the oldest.,SELECT name FROM event ORDER BY YEAR DESC what is the colleges' states?,SELECT state from College "What are the names of the county that the delegates on ""Appropriations"" committee belong to?","SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = ""Appropriations""" List phone number and email address of customer with more than 2000 outstanding balance.,"SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;" What is the place of the song 'Never Change'?,"SELECT SUM(place) FROM table_name_79 WHERE song = ""never change""" In which region can you find the highest number of Baskin Robbins restaurants?,SELECT T2.region AS num FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label = 'baskin robbins' GROUP BY T2.region ORDER BY COUNT(T1.city) DESC LIMIT 1 Return the full name and id of the actor or actress who starred in the greatest number of films.,"SELECT T2.first_name , T2.last_name , T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1" What category do Road Frames fall into?,SELECT T2.Name FROM ProductSubcategory AS T1 INNER JOIN ProductCategory AS T2 ON T1.ProductCategoryID = T2.ProductCategoryID WHERE T1.Name = 'Road Frames' "Who was the opposing team in the game attended by 65,554?","SELECT opponent FROM table_name_35 WHERE attendance = ""65,554""" What is the lowest ranking for Paul Mctiernan?,"SELECT MIN(ranking) FROM table_name_67 WHERE name = ""paul mctiernan""" "Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?","SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = ""k213el""" What was the venue that had 5000 m after 2009?,"SELECT venue FROM table_name_98 WHERE year > 2009 AND notes = ""5000 m""" "What is the mascot for the school founded in 1923 with the school colors of blue, red & white?","SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = ""Blue, Red & White""" "How many games in 1885 postseason resulted in ties (that is, the value of ""ties"" is '1')?",SELECT count(*) FROM postseason WHERE YEAR = 1885 AND ties = 1; Which sales team name has the least orders in 2019?,SELECT T2.`Sales Team` FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T1.OrderDate LIKE '%/%/19' GROUP BY T2.`Sales Team` ORDER BY COUNT(T1.OrderNumber) ASC LIMIT 1 Show the country where people older than 30 and younger than 25 are from.,SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30 What is the most common birth place of people?,SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT ( * ) DESC LIMIT 1 what is the number of the chosen club where the hc dukla trenčín (slovakia) is from,"SELECT COUNT(pick) FROM table_2840500_3 WHERE college_junior_club_team = ""HC Dukla Trenčín (Slovakia)""" Please list the titles of any two papers that Jundu has written.,SELECT T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name LIKE 'Jun du%' LIMIT 2 What are the names and scores of all wines?,"SELECT Name , Score FROM WINE" Who is the player who went to Stanford?,"SELECT player FROM table_name_8 WHERE school_club_team = ""stanford""" can you count the number of of games played in atlanta in 2000,SELECT count ( * ) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2000 AND T2.city = 'Atlanta' What is the most common document detail?,SELECT Document_Details FROM Documents_with_expenses GROUP BY Document_Details ORDER BY count ( * ) DESC LIMIT 1 "Among the reference ID of under 10 who got response by marketing department, compare their education status.",SELECT T1.EDUCATIONNUM FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T2.REFID < 10 AND T2.RESPONSE = 'true' What is the percentage of Professor Ogdon Zywicki's research assistants are taught postgraduate students?,SELECT CAST(SUM(CASE WHEN T3.type = 'TPG' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T1.student_id = T3.student_id WHERE T2.first_name = 'Ogdon' AND T2.last_name = 'Zywicki' Which airline has most number of flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1 What is the address of Mary Smith?,SELECT T1.address FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' "Show the employee ids for all employees with role name ""Human Resource"" or ""Manager"".","SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource"" OR T2.role_name = ""Manager""" What place has jack renner as the player?,"SELECT place FROM table_name_48 WHERE player = ""jack renner""" "What are the tags of the release ""sugarhill gang""?",SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'sugarhill gang' "Find the name, headquarter and founder of the manufacturer that has the highest revenue.","SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1" What is the total gold from New zealand and a rank less than 14?,"SELECT SUM(gold) FROM table_name_18 WHERE nation = ""new zealand"" AND rank < 14" How many international builders are there?,"SELECT total FROM table_name_84 WHERE builder = ""international""" What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?,"SELECT 1 AS st_leg FROM table_name_52 WHERE competition = ""uefa champions league"" AND club = ""skonto riga""" Name the most losst for corinthians,"SELECT MIN(lost) FROM table_15319684_1 WHERE team = ""Corinthians""" How many air dates does the episode with 15.50 million viewers have? ,"SELECT COUNT(original_air_date) FROM table_26198709_1 WHERE us_viewers__million_ = ""15.50""" Find the number of distinct type of pets.,SELECT count(DISTINCT pettype) FROM pets What are the full name (first and last name) and salary for all employees who does not have any value for commission?,"SELECT first_name , last_name , salary FROM employees WHERE commission_pct = ""null""" Name the most wins,SELECT MIN(wins) FROM table_24587026_1 What is the budget type code with most number of documents.,SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1 List name of all tracks in Balls to the Wall.,"SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall"";" "What is the percentage of Forks to Stars of repository for solution ""104086""?",SELECT CAST(T1.Forks AS REAL) * 100 / T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 104086 How many writers are listed for the episode with a production code of 5008?,"SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = ""5008""" Please name any three root beer brands that have the highest market evaluation and acceptance.,SELECT DISTINCT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 LIMIT 3 Give the number of students who have payment due.,SELECT COUNT(name) FROM no_payment_due WHERE bool = 'pos' Count the number of cards the customer with the first name Art and last name Turcotte has.,"SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Art"" AND T2.customer_last_name = ""Turcotte""" Who was the opponent in the game where 19041 people attended?,SELECT opponent FROM table_16864968_8 WHERE attendance = 19041 What products have less orders than dvds? | Did you want to return all info of the products or just their names? | What is the total cost of the dvd orders?,SELECT sum ( product_price ) FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id Where t1.product_name = 'dvds' "How many people wrote comments for the question ""Any additional notes or comments.""?",SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Any additional notes or comments' AND T1.AnswerText IS NOT NULL How many unemployed students are enlisted in the navy organization?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'navy' What was the theme of the party held in the latest year?,SELECT theme FROM exhibition order by Year desc limit 1 Find the id and name of the staff who has been assigned for the shortest period.,"SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" "What is the location of the Durfee Mill No. 1, built before 1872 ?","SELECT location FROM table_name_7 WHERE built < 1872 AND name = ""durfee mill no. 1""" "Give the percentage of ""Automotive"" businesses among all the Yelp businesses.","SELECT CAST(SUM(CASE WHEN T2.category_name LIKE 'Automotive' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) AS ""percentage"" FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id" What season was the Formula BMW USA in?,"SELECT season FROM table_name_87 WHERE series = ""formula bmw usa""" Who did Edmonton Oilers get for their draft pick?,"SELECT player FROM table_2886617_8 WHERE nhl_team = ""Edmonton Oilers""" "What is Name, when Only Point is greater than 1, when Catch Taken is greater than 3, when Bonus is greater than 4, and when Total Point is less than 30?",SELECT name FROM table_name_47 WHERE only_point > 1 AND catch_taken > 3 AND bonus > 4 AND total_point < 30 What is the Thai name for the word abbreviated มี.ค.?,"SELECT thai_name FROM table_name_75 WHERE abbr = ""มี.ค.""" Find the names of users whose emails contain ‘superstar’ or ‘edu’.,SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%' How about project AeH3,"SELECT count ( * ) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project where T1.Code = ""AeH3""" What is the verb meaning of *haldaną *fanhaną in part 1?,"SELECT verb_meaning FROM table_name_26 WHERE part_1 = ""*haldaną *fanhaną""" List all instructors who taught a class in Fall 2009 | Did you mean the instructor IDs who taught a class in Fall 2009 | yes,SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 * I have left the chat *,"SELECT market_share FROM browser where name = ""Safari""" How many high assists did the Lakers have?,"SELECT high_assists FROM table_name_84 WHERE team = ""lakers""" Which entrant used the chassis de tomaso 505?,"SELECT entrant FROM table_name_9 WHERE chassis = ""de tomaso 505""" where is Auto Club Speedway located?,SELECT T2.Location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id where T2.Name = 'Auto Club Speedway' Which Party has a Representative of brian bosma?,"SELECT party FROM table_name_61 WHERE representative = ""brian bosma""" What was the location of the club where the home ground is wilfred taylor reserve?,"SELECT location FROM table_name_80 WHERE home_ground = ""wilfred taylor reserve""" "What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?","SELECT rd FROM table_1132568_3 WHERE fastest_lap = ""Michael Schumacher"" AND constructor = ""Ferrari"" AND pole_position = ""Michael Schumacher""" Who is the Driver on Bob Keselowski's team?,"SELECT driver_s_ FROM table_name_57 WHERE owner_s_ = ""bob keselowski""" "What is Score, when Country is ""United States"", and when Player is ""Raymond Floyd""?","SELECT score FROM table_name_98 WHERE country = ""united states"" AND player = ""raymond floyd""" What is the total enrollment number of all colleges?,SELECT sum(enr) FROM College When did the earliest killing take place?,SELECT date FROM perpetrator order by date asc limit 1 Which cities have 2 to 4 parks?,SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4; List official names of cities in descending order of population.,SELECT Official_Name FROM city ORDER BY Population DESC Which wine has the most cases available?,SELECT * FROM WINE ORDER BY cases desc limit 1 Which Country has a Place of t8 and byron nelson?,"SELECT country FROM table_name_11 WHERE place = ""t8"" AND player = ""byron nelson""" How many invoices do we have?,SELECT count(*) FROM Invoices "Show name, opening year, and capacity for each cinema.","SELECT name , openning_year , capacity FROM cinema" What are the student ids of the students with the last name Smith?,SELECT StuID from Student where LName = 'Smith' Tell me the name for round of e,"SELECT name FROM table_name_29 WHERE round = ""e""" show the outcome code in the Table Name: Project Outcomes,SELECT DISTINCT outcome_code FROM Project_Outcomes What was the final score for the January 23 game?,"SELECT score FROM table_name_23 WHERE date = ""january 23""" "What is the total number of females where the total population is less than 2,195?",SELECT COUNT(female) FROM table_name_65 WHERE total_population < 2 OFFSET 195 Find the id of the candidate who got the lowest oppose rate.,SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1 "Which the Fastest Laps that have Poles of 0, and a Season of 2002, and a Podiums smaller than 0?","SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = ""2002"" AND podiums < 0" What is the name of the episode with 418 as the production code?,SELECT title FROM table_2818164_5 WHERE production_code = 418 What's Ontario's highest Ends Lost?,"SELECT MAX(ends_lost) FROM table_name_11 WHERE locale = ""ontario""" What are the titles of episodes with 5.66 million US viewers?,"SELECT title FROM table_2866514_1 WHERE us_viewers__million_ = ""5.66""" "For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?","SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = ""columbia pictures"" AND director_s_ = ""martin campbell""" "Give the client ID of the complaint received on April 16, 2014 and submitted through fax.",SELECT T2.Client_ID FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.`Submitted via` = 'Fax' AND T1.`Date received` = '2014-04-16' "What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?","SELECT SUM(year) FROM table_name_56 WHERE role = ""nan taylor, alias of nan ellis, aka mrs. andrews"" AND director = ""william keighley""" What is the Clubs when there are 4 for the number of fixtures?,SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 4 What was the number of nickname founded 1918?,SELECT COUNT(nickname) FROM table_11604804_5 WHERE founded = 1918 What was the result when John Barrow was the incumbent first elected in 2004?,"SELECT result FROM table_19753079_13 WHERE first_elected = 2004 AND incumbent = ""John Barrow""" Find the name and country of origin for all artists who have release at least one song of resolution above 900.,"SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING count(*) >= 1" What is the id of Rio de Janeiro?,SELECT id FROM city WHERE city_name = 'Rio de Janeiro' What was the qual when the rank was 2?,"SELECT qual FROM table_name_63 WHERE rank = ""2""" "Describe the violation dates, risk categories, descriptions and names of the eateries under Jade Chocolates LLC.","SELECT T1.`date`, T1.risk_category, T1.description, T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.owner_name = 'Jade Chocolates LLC'" "What day was the location Cleveland, Ohio in Round 6?","SELECT date FROM table_name_2 WHERE city_location = ""cleveland, ohio"" AND round = 6" "What are the names, address roads, and cities of the branches ordered by opening year?","SELECT name , address_road , city FROM branch ORDER BY open_year" What is the Console when Space Invaders is the Arcade?,"SELECT console FROM table_name_59 WHERE arcade = ""space invaders""" Show the code and description of the least frequent detention type?,"SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count ( * ) ASC LIMIT 1" What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?,"SELECT score FROM table_name_60 WHERE home = ""cavaliers"" AND leading_scorer = ""lebron james (46)""" Which school left in 1968 and has the team name of Panthers?,"SELECT school FROM table_name_81 WHERE team_name = ""panthers"" AND year_left = ""1968""" Which country won in 1988?,"SELECT country FROM table_name_19 WHERE year_s__won = ""1988""" "How many tags does the release ""city funk"" have?",SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'city funk' Which directors had a movie both in the year 1999 and 2000?,SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999 what is the location of Bootup Baltimore,select ClubLocation from Club where ClubName = 'Bootup Baltimore' What was the score in the final on 14 august 1994?,"SELECT score_in_the_final FROM table_name_36 WHERE date = ""14 august 1994""" Show the budget type code and description and the corresponding document id.,"SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code" Show the ids of the faculty who don't participate in any activity.,SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in Which tournament had a winning score of −5 (69-69-73=211)?,SELECT tournament FROM table_name_37 WHERE winning_score = −5(69 - 69 - 73 = 211) Find the name of the target user with the lowest trust score.,SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1 Count the number of different nationalities.,SELECT count(DISTINCT Nationality) FROM people "What is the number of faculty lines in campus ""Long Beach State University"" in 2002?","SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = ""Long Beach State University""" What are the majors of all the students with sex F?,"SELECT Major FROM STUDENT where sex = ""F""" "Among the supplied products from Australia, describe the discontinued products and the category.","SELECT T2.ProductName, T3.CategoryName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T1.Country = 'Australia' AND T2.Discontinued = 1" "If -750 is 45.505, what is the maximum rank?","SELECT MAX(rank) FROM table_1912276_2 WHERE __750m = ""45.505""" How many seasons are there with Formula Holden?,"SELECT COUNT(seasons) FROM table_2822193_1 WHERE series = ""Formula Holden""" Find the name and building of the department with the highest budget.,"SELECT dept_name, building FROM department ORDER BY budget DESC LIMIT 1" Find the states where both owners and professionals live.,SELECT state FROM Owners INTERSECT SELECT state FROM Professionals Thanks. Could you please tell me the Club Location?,"SELECT clublocation from club where clubname = ""Bootup Baltimore""" "Sum up the number of business with ""ambience_romantic"" attribute.",SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name = 'ambience_romantic' AND T2.attribute_value = 'true' "What are the name, phone number and email address of the customer who made the largest number of orders?","SELECT T1.customer_name , T1.customer_phone , T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1" Find the average number of staff working for the museums that were open before 2009.,SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009 Please list any three events that have the longitude and latitude of 0.,SELECT event_id FROM events WHERE longitude = 0 AND latitude = 0 LIMIT 3 Return the name of the member who is in charge of the most events.,SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 "List the names of all distinct medications, ordered in an alphabetical order.",SELECT DISTINCT name FROM medication ORDER BY name how many students are in the history department?,SELECT count ( name ) FROM student WHERE dept_name = 'History' Count all of the living patients that had a stroke.,SELECT COUNT(DISTINCT T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.description = 'Stroke' AND T2.deathdate IS NULL In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?,"SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = ""episode 7"" AND entrepreneur_s_ = ""jerry mantalvanos & paul merker""" What's the score of Lee Janzen in T4 place?,"SELECT score FROM table_name_94 WHERE place = ""t4"" AND player = ""lee janzen""" "How many wins did SD Eibar, which played less than 38 games, have?","SELECT SUM(wins) FROM table_name_24 WHERE club = ""sd eibar"" AND played < 38" Where did Brendon Labatte get picked?,"SELECT MIN(pick__number) FROM table_16575609_1 WHERE player = ""Brendon LaBatte""" How man innings were there during the period with a career average of 41.43?,"SELECT innings FROM table_21100348_10 WHERE average = ""41.43""" How many units of item 7 have been sold by store 7 when the snow is less than 5 inches?,SELECT SUM(units) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr INNER JOIN sales_in_weather AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.store_nbr = 7 AND T3.item_nbr = 7 AND T1.snowfall < 5 What are the order quantities and dates for all orders that were paid for with cash?,"SELECT t3.order_quantity, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.payment_method = ""Cash""" What is the average number of hours spent practicing for students who got rejected?,SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no' Find the last names of the teachers that teach fifth grade.,SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 When did TDB depart?,"SELECT MAX(year) FROM table_name_16 WHERE departed_from = ""tdb""" "Among the shipments to a customer from Texas, what percentage of the shipments shipped in 2017?","SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', T1.ship_date) = '2017' THEN 1 ELSE 0 END) AS REAL ) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'TX'" What is the lowest effic with a 58.9 avg/g?,SELECT MIN(effic) FROM table_name_58 WHERE avg_g = 58.9 "What is Team, when Circuit is Queensland Raceway, and when Winner is Garth Tander?","SELECT team FROM table_name_96 WHERE circuit = ""queensland raceway"" AND winner = ""garth tander""" "Which venue has a Score of 1–0, and a Competition of 2002 world cup qualifier?","SELECT venue FROM table_name_91 WHERE score = ""1–0"" AND competition = ""2002 world cup qualifier""" Show ids of students who play video games and sports?,SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games How many apartment bookings are there in total?,SELECT count(*) FROM Apartment_Bookings Please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in Brooklyn.,SELECT T2.donation_message FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' AND T1.school_magnet = 't' "What is the viewership on november 9, 2007?","SELECT viewers__m_ FROM table_11251109_3 WHERE air_date = ""November 9, 2007""" What was the average temperature difference between store number 18 and 19 on 16 September 2022?,SELECT SUM(CASE WHEN T1.store_nbr = 18 THEN T2.tavg ELSE 0 END) - SUM(CASE WHEN T1.store_nbr = 19 THEN T2.tavg ELSE 0 END) FROM relation AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.`date` = '2012-09-16' "Name the date for s. valentino alla muta , italia","SELECT date FROM table_30073089_2 WHERE location = ""S. Valentino Alla Muta , Italia""" What is the current official Instagram handle of current legislator Bob Corker?,SELECT T2.instagram FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Bob Corker' Who did the most high rebounds in the game played on November 1?,"SELECT high_rebounds FROM table_17326036_5 WHERE date = ""November 1""" Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70,"SELECT COUNT(grid) FROM table_name_66 WHERE time_retired = ""+2 laps"" AND laps < 70" Who many games were played for the series with the Sawhorse Dollar trophy?,"SELECT games_played FROM table_name_77 WHERE trophy = ""sawhorse dollar""" which country did participated in the most number of Tournament competitions?,SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1 When relay is the station type and 5kw is the power kw what is the branding?,"SELECT branding FROM table_23394920_1 WHERE power_kw = ""5kW"" AND station_type = ""Relay""" What is the score of university ID 68 in 2015?,SELECT score FROM university_ranking_year WHERE year = 2015 AND university_id = 68 What is the percentage of subject who are female used the Vehicle as weapon?,SELECT CAST(SUM(T1.subject_weapon = 'Vehicle') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN subjects T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F' What construction completed on 08/10/2007?,"SELECT listed FROM table_name_46 WHERE construction_completed = ""08/10/2007""" What is the team's record on februrary 23?,SELECT record FROM table_name_29 WHERE february = 23 How many names in this table?,SELECT count ( Name ) FROM branch what is the country of support rep id 5,SELECT country from customers where support_rep_id = 5 List the name of all New Zealand umpires.,SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'New Zealand' What is the Community Band with a 4BCB Callsign?,"SELECT band FROM table_name_95 WHERE purpose = ""community"" AND callsign = ""4bcb""" What is the Hanja/Kanji of the Province with a Korean name of Chungcheong-Bukdo?,"SELECT hanja___kanji FROM table_name_5 WHERE korean_name = ""chungcheong-bukdo""" what is the city when the country is libya and the iata is ben?,"SELECT city FROM table_name_57 WHERE country = ""libya"" AND iata = ""ben""" What was the score of the game when the home was Atlanta?,"SELECT score FROM table_name_99 WHERE home = ""atlanta""" Give the state and type of term of the legislator with the google entity ID of kg:/m/02pyzk.,"SELECT T2.state, T2.type FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.google_entity_id_id = 'kg:/m/02pyzk'" What are the racing teams for which the average finish is 23.3?,"SELECT team_s_ FROM table_2190919_1 WHERE avg_finish = ""23.3""" What is reserved for Jawad?,"SELECT reserved_for___sc___st__none_ FROM table_name_27 WHERE name = ""jawad""" Name the US Hot 100 for album of I like you,"SELECT us_hot_100 FROM table_name_81 WHERE album = ""i like you""" Find the salaries of all distinct instructors that are less than the largest salary.,SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor) "What is the most recent year with the Album/Song ""the best worst-case scenario""?","SELECT MAX(year) FROM table_name_19 WHERE album___song = ""the best worst-case scenario""" What competition did the maccabi haifa fc club play?,"SELECT competition FROM table_name_87 WHERE club = ""maccabi haifa fc""" What is the Korean dialect with a jeolla RR Romaja?,"SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = ""jeolla""" "When the Mandarins won more than 1 bronze medals, how many gold medals did they win?","SELECT COUNT(gold_medals) FROM table_name_3 WHERE ensemble = ""mandarins"" AND bronze_medals > 1" What are the different names and ages of every friend of either Dan or alice?,"SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'" Which finish has 33 as a rank and 200 for laps?,"SELECT finish FROM table_name_24 WHERE rank = ""33"" AND laps = 200" Which Trident version has a Gecko value of 19.0?,"SELECT trident FROM table_name_57 WHERE gecko = ""19.0""" List the group name has the most downloaded that have released jazz genres from 1982 or later.,SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'jazz' AND T1.groupYear >= 1982 ORDER BY T1.totalSnatched DESC LIMIT 1 "How many clubs are located at ""HHH""?","SELECT count(*) FROM club WHERE clublocation = ""HHH""" "In language where Thursday is برس وار bres'var, what is Sunday?","SELECT sunday_surya__the_sun_ FROM table_1277350_3 WHERE thursday_guru__jupiter_ = ""برس وار Bres'var""" What percentage of the total prices of all orders are shipped internationally?,SELECT CAST(SUM(CASE WHEN T3.method_name = 'International' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cust_order AS T1 INNER JOIN order_line AS T2 ON T1.order_id = T2.order_id INNER JOIN shipping_method AS T3 ON T3.method_id = T1.shipping_method_id What is the name of this restaurant?,SELECT ResName FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' What is the Enrollment at Whitman College Founded after 1859?,"SELECT AVG(enrollment) FROM table_name_6 WHERE institution = ""whitman college"" AND founded > 1859" where is hte second place winner from united kingdom?,"SELECT winner FROM table_1359212_2 WHERE second_place = ""United Kingdom""" who is the candidate in district south carolina 2?,"SELECT candidates FROM table_1342370_39 WHERE district = ""South Carolina 2""" "What is From Club, when Player is ""Robinho""?","SELECT from_club FROM table_name_80 WHERE player = ""robinho""" Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?,SELECT call_sign FROM table_name_15 WHERE frequency_mhz > 88.7 AND erp_w = 99 what is the course id of English course?,"SELECT course_id FROM courses where course_name = ""English""" Find the names of all modern rooms with a base price below $160 and two beds.,SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern'; "Which week's game had an attendance of 90,138?","SELECT week FROM table_name_37 WHERE attendance = ""90,138""" What was the loss of the Mariners game when they had a record of 22-35?,"SELECT loss FROM table_name_96 WHERE record = ""22-35""" List all the books published by BBC Audiobooks.,SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'BBC Audiobooks' "In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?","SELECT rainfall_by_depth__mm_year_ FROM table_25983027_1 WHERE land_area__km_2__ = ""8,543.2""" "Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56?",SELECT MAX(rank) FROM table_name_98 WHERE react > 0.20400000000000001 AND time > 45.56 List street names in San Francisco city.,SELECT street_name FROM location WHERE city = 'San Francisco' "Great! Can you provide me with the name, location, and product for each enzyme that is associated with the ""inhibitor"" interaction type?","SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'" "Can you tell me the lowest Races that has the Team Name of piquet gp, and the Points larger than 24?","SELECT MIN(races) FROM table_name_16 WHERE team_name = ""piquet gp"" AND points > 24" Which Date has a Score of 6–1 7–6 (8–6)?,"SELECT date FROM table_name_11 WHERE score = ""6–1 7–6 (8–6)""" What League's Round is Sup and Position is Right Wing?,"SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = ""right wing"" AND round = ""sup""" Which Land (sqmi) has a GEO ID smaller than 3800587900?,SELECT MIN(land___sqmi__) FROM table_name_49 WHERE geo_id < 3800587900 What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593?,SELECT MAX(tied) FROM table_name_8 WHERE pct < 0.5593 AND lost = 551 What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?,"SELECT nationality FROM table_name_12 WHERE nhl_team = ""vancouver canucks"" AND college_junior_club_team__league_ = ""swift current broncos (whl)"" AND round = 8" What is the ISO for South Sudan?,"SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = ""South Sudan""" "How many places have yamaha as the machine, and 89.85mph as the speed?","SELECT SUM(place) FROM table_name_30 WHERE machine = ""yamaha"" AND speed = ""89.85mph""" What is the A-league with 39 saves?,SELECT a_league FROM table_name_7 WHERE saves = 39 Which surface do opponents of Thomas Oger Nicolas Tourte have?,"SELECT surface FROM table_name_18 WHERE opponents = ""thomas oger nicolas tourte""" What are the names of the physician who prescribed the highest dose?,SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 Which Attendance has a Score of 0:2?,"SELECT MAX(attendance) FROM table_name_29 WHERE score = ""0:2""" Who is directed by Star Wars? | Did you mean to ask for the name of the director who directed Star Wars? | Yes,"SELECT director FROM Movie WHERE title = ""Star Wars""" What was the average round when he had a 3-0 record?,"SELECT AVG(round) FROM table_name_18 WHERE record = ""3-0""" "What is the air date of TV series with Episode ""A Love of a Lifetime""?","SELECT Air_Date FROM TV_series WHERE Episode = ""A Love of a Lifetime"";" What is the donation message for donation ID a84dace1ff716f6f0c7af8ef9090a5d5?,SELECT donation_message FROM donations WHERE donationid = 'a84dace1ff716f6f0c7af8ef9090a5d5' What are all episodes with a viewing figure of 6.72 million?,"SELECT episode FROM table_15026994_2 WHERE viewing_figure = ""6.72 million""" List the names of teachers in ascending order of age.,SELECT Name FROM teacher ORDER BY Age How many patients of Irish ethnicity take medication for 'myocardial infarction'?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.REASONDESCRIPTION = 'Myocardial Infarction' AND T1.ethnicity = 'irish' "Which week starts on November 23, 1997?","SELECT week FROM table_name_55 WHERE date = ""november 23, 1997""" What is the opponent for the date of august 5?,"SELECT opponent FROM table_name_75 WHERE date = ""august 5""" What are the prices of those?,"SELECT Product_Price FROM Products WHERE Product_Type_Code = ""Food""" Which Xenon has a Helium of 5.1?,"SELECT xenon FROM table_name_29 WHERE helium = ""5.1""" How many lakes in the Canary Islands cover an area of over 1000000?,SELECT COUNT(T2.Name) FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T1.Province = 'Canary Islands' AND T2.Area > 1000000 And which of those aircraft won a match?,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft What are the names of each of those?,"SELECT name,installation_date FROM station WHERE city = ""San Jose""" "For Chosun University, what was its score on ""Influence Rank"" in 2015?",SELECT T2.score FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'Chosun University' AND T1.criteria_name = 'Influence Rank' AND T2.year = 2015 "WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5?","SELECT MIN(laps) FROM table_name_22 WHERE points > 5 AND team = ""forsythe racing"" AND grid = 5" What is the name of the most expensive car that was produced by the USA?,SELECT T4.car_name FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price DESC LIMIT 1 "What are the full names of the course authors who teach the course with the name ""advanced database"" please?","SELECT T1.personal_name, t1.middle_name, t1.family_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""advanced database""" list both the countries with mountains height less than 5200 and height more than 5600 in the same table,SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200 WHICH BROWSER IS COMPATIBLE WITH ACCELERATOR 'CPROXY' AFTER YEAR 1998,SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998 What are the award description with Format album?,"SELECT award_description_s_ FROM table_name_84 WHERE format_s_ = ""album""" What is the largest supplier's account balance?,SELECT MAX(s_acctbal) FROM supplier "What are the ""en"" methods with solutions from repository ""1093""",SELECT DISTINCT T2.id FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 1093 AND T2.Lang = 'en' what's the mole with winner being frédérique huydts,"SELECT the_mole FROM table_13036251_1 WHERE winner = ""Frédérique Huydts""" What is average age for different job title?,"SELECT avg(age) , job FROM Person GROUP BY job" "When the date is July 8, and the score is 8-12, who is the opponent?","SELECT opponent FROM table_name_78 WHERE date = ""july 8"" AND score = ""8-12""" Which team does Andreas Jamtin belong to?,SELECT DISTINCT T1.TEAM FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Andreas Jamtin' What are the order IDs that have those product IDs?,select T2.order_id from Products as T1 join Order_Items as T2 where T1.product_id = T2.product_id and T1.product_name = 'food' Name the opponents stanford,"SELECT opponents FROM table_21092444_1 WHERE opponent = ""Stanford""" List the writers who have written more than one book.,SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1 "For the player who had the most rebounds throughout his allstar appearances, what was his weight and height?","SELECT T1.weight, T1.height FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID ORDER BY T2.rebounds DESC LIMIT 1" What are the names of all cities with more than one airport and how many airports do they have?,"SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1" Tell me the command set with FDD capacity of 270kb and sides of ds with #FDD more than 1,"SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = ""270kb"" AND sides = ""ds"" AND _number_fdd > 1" Show the number of document types.,SELECT count(*) FROM Ref_document_types When was there a game at Kardinia Park?,"SELECT date FROM table_name_78 WHERE venue = ""kardinia park""" What are the names of players who train between 500 and 1500 hours?,SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 what is the date when the format is cd (limited edition steel-box) from united kingdom?,"SELECT date FROM table_name_16 WHERE format = ""cd (limited edition steel-box)"" AND country = ""united kingdom""" What player was picked for Buffalo Sabres?,"SELECT player FROM table_2886617_8 WHERE nhl_team = ""Buffalo Sabres""" "WHAT ARE THE BYES WITH A DRAWS OF 1, SMW ROVERS, AND WINS LARGER THAN 6?","SELECT AVG(byes) FROM table_name_76 WHERE draws = 1 AND mininera_dfl = ""smw rovers"" AND wins > 6" What is the average access count of documents?,SELECT avg(access_count) FROM documents What is the customer ID of America Jaskolski,SELECT Customer_ID FROM customers where Customer_name = 'America Jaskolski' Which restaurant has highest rating? List the restaurant name and its rating.,"SELECT ResName , Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1;" Calculate the average level difference between the Marketing editors hired by the US and non-US publishers?,SELECT (CAST(SUM(CASE WHEN T1.country = 'USA' THEN job_lvl ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.country = 'USA' THEN 1 ELSE 0 END)) - (CAST(SUM(CASE WHEN T1.country != 'USA' THEN job_lvl ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.country != 'USA' THEN 1 ELSE 0 END)) FROM publishers AS T1 INNER JOIN employee AS T2 ON T1.pub_id = T2.pub_id INNER JOIN jobs AS T3 ON T2.job_id = T3.job_id WHERE T3.job_desc = 'Managing Editor' "What is in 2002 has a 2001 score 1–0, and a 2000 of 3–0?","SELECT 2002 FROM table_name_85 WHERE 2001 = ""1–0"" AND 2000 = ""3–0""" What's the lowest team 1 number that had asolo fonte (veneto b) as the Agg.?,"SELECT MIN(team_1) FROM table_name_89 WHERE agg = ""asolo fonte (veneto b)""" What is the lowest election that has cinisello balsamo as the municipality?,"SELECT MIN(election) FROM table_name_4 WHERE municipality = ""cinisello balsamo""" When was the incumbent in the Tennessee 4 district first elected? ,"SELECT first_elected FROM table_1341453_44 WHERE district = ""Tennessee 4""" What are the first and last names of all the candidates?,"SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id" What is the name of the person whose country is West Indies.,"SELECT name FROM table_name_53 WHERE country = ""west indies""" What is the record where aaron brooks (6) is high assists?,"SELECT record FROM table_23281862_9 WHERE high_assists = ""Aaron Brooks (6)""" How many crimes had happened in the community area with the most population?,SELECT COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no GROUP BY T1.community_area_name ORDER BY T1.population DESC LIMIT 1 What is the name of the highest rated wine?,SELECT Name FROM WINE ORDER BY Score LIMIT 1 "What is the sum of Wins, when Against is less than 1033, when Golden Rivers is ""Nullawil"", and when Byes is less than 2?","SELECT SUM(wins) FROM table_name_85 WHERE against < 1033 AND golden_rivers = ""nullawil"" AND byes < 2" How many new entries are there for a second phase that has 4 winners from previous rounds?,"SELECT new_entries_this_round FROM table_name_71 WHERE phase = ""second phase"" AND winners_from_previous_round = ""4""" What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?,SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010; "For each manufacturer name, what are the names and prices of their most expensive product?","SELECT T1.Name , max(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" On what date was Hawthorn the home team?,"SELECT date FROM table_name_45 WHERE home_team = ""hawthorn""" Name the march 27-29 for november 3 being 133,"SELECT march_27_29 FROM table_1708610_3 WHERE november_3 = ""133""" "In 1950, how many players whose teams have the losing rate less than 20%?",SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE CAST(T3.lost AS REAL) * 100 / (T3.lost + T3.won) < 20 What team is from the Eastern province?,"SELECT team FROM table_19905183_1 WHERE province = ""Eastern""" Can you list the names of all the customers who never placed a single order?,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id Can you show me the top three highest support rates for the candidates?,SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 How many employees are in the General Medicine department?,select Head from Department where Name = 'General Medicine' What are the names of each of the films?,SELECT Title FROM film When id the episode broadcast with Mark Webber as Jamie and John's guest?,"SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = ""Mark Webber""" Which vehicle had a class of car in years after 2009 with 0 stages won and position of 5?,"SELECT vehicle FROM table_name_87 WHERE class = ""car"" AND year > 2009 AND stages_won = ""0"" AND position = ""5""" Who leads the general classification in stage 3?,SELECT general_classification FROM table_26010857_13 WHERE stage = 3 "Which Away team played when they had a Crowd of over 29,000 people?",SELECT away_team FROM table_name_14 WHERE crowd > 29 OFFSET 000 What is the km2 area for the population of 311?,SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311 What is the date of the game played with Birmingham City as the away team?,"SELECT date FROM table_24887326_7 WHERE away_team = ""Birmingham City""" Find the id and location of circuits that belong to France or Belgium?,"SELECT circuitid , LOCATION FROM circuits WHERE country = ""France"" OR country = ""Belgium""" What IMAP sharing options exist for software with a web UI?,"SELECT imap_shared FROM table_name_93 WHERE web_ui = ""web ui""" What are the forename and surname of the driver who has the smallest laptime?,"SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1" how many are female,"select count ( * ) from person where gender = ""female""" Count the number of subscribers who started their trips in Market at 4th.,SELECT COUNT(CASE WHEN subscription_type = 'Subscriber' AND start_station_name = 'Market at 4th' THEN id END) FROM trip "What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?","SELECT SUM(overall) FROM table_name_50 WHERE round < 24 AND college = ""north carolina state""" What are the names of any scientists who worked on projects named 'Matter of Time' and 'A Puzzling Pattern'?,SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax' "What are card ids, customer ids, card types, and card numbers for each customer card?","SELECT card_id , customer_id , card_type_code , card_number FROM Customers_cards" Which player number is 2.10 meters tall?,"SELECT no FROM table_12962773_10 WHERE height = ""2.10""" "What are the total number of domestic passengers of airports that contain the word ""London""?","SELECT sum ( Domestic_Passengers ) FROM airport WHERE Airport_Name LIKE ""%London%""" What is the least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won?,"SELECT MIN(silver) FROM table_name_8 WHERE bronze > 1 AND nation = ""total"" AND ""total"" > 18" How many different jobs are listed?,SELECT count(DISTINCT job) FROM Person "What was the final score on the February 19, 2012 final?","SELECT score_in_the_final FROM table_name_46 WHERE date = ""february 19, 2012""" What is the maac when the overall is 26-8?,"SELECT maac FROM table_21756039_1 WHERE overall = ""26-8""" "What Surface has a Tournament of pune, india?","SELECT surface FROM table_name_61 WHERE tournament = ""pune, india""" What is the name of the oldest student?,"SELECT LName,Fname FROM Student WHERE age = ( SELECT max ( age ) FROM Student ) " Which IHSAA Class has a School of mitchell?,"SELECT ihsaa_class FROM table_name_4 WHERE school = ""mitchell""" List the name of singers in ascending order of net worth.,SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC How many solutions contain files found within the repository most people like?,SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = ( SELECT MAX(Stars) FROM Repo ) In what year was the feature at a 33.3S latitude named? ,"SELECT MAX(year_named) FROM table_16799784_8 WHERE latitude = ""33.3S""" What is the Overall of 15 Club team with a Nationality of Canada?,"SELECT club_team FROM table_name_37 WHERE nationality = ""canada"" AND overall = ""15""" What is the time (GMT) for the 12A Serial?,"SELECT time___gmt__ FROM table_name_9 WHERE serial = ""12a""" What is the total number of rounds of the player from lehigh college with an overall less than 152?,"SELECT COUNT(round) FROM table_name_39 WHERE college = ""lehigh"" AND overall < 152" what's the cylinders/ valves with model being 1.8 20v,"SELECT cylinders__valves FROM table_1176162_3 WHERE model = ""1.8 20V""" Identify the name and product category for the most expensive and the least expensive products.,"SELECT T2.ProductName, T1.CategoryName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.UnitPrice IN (( SELECT MIN(UnitPrice) FROM Products ), ( SELECT MAX(UnitPrice) FROM Products ))" What is the club for Sam Magri?,"SELECT current_club FROM table_name_9 WHERE player = ""sam magri""" What is the average rating stars and title for the oldest movie?,"SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)" Find the number of flights landing in the city of Aberdeen or Abilene.,"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = ""Aberdeen"" OR T2.city = ""Abilene""" What is the longest review?,SELECT title FROM reviews ORDER BY LENGTH(content) DESC LIMIT 1 Which Rank has a Total of 12?,SELECT AVG(rank) FROM table_name_72 WHERE total = 12 Who was the incumbent when henry e. barbour ran?,"SELECT candidates FROM table_1342379_5 WHERE incumbent = ""Henry E. Barbour""" Details of staff id 1? | Do you mean the staff gender and staff name of staff id 1? | yes,"SELECT staff_gender, staff_name FROM staff where staff_id = 1" Name the US R&B for 1981,SELECT us_r & b FROM table_name_39 WHERE year = 1981 What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?,"SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = ""Victor Cook"" AND written_by = ""Brat Jennett""" List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?,"SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000" How many productions are shown for rd 2?,"SELECT COUNT(production) FROM table_26686908_2 WHERE rd = ""Rd 2""" can you tell me the Id of these users?,"SELECT t2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Susan""" How many players are there?,SELECT count(*) FROM player What is the Pinyin for the item that has a density of 77?,"SELECT hanyu_pinyin FROM table_name_65 WHERE density___km²_ = ""77""" When Cincinnati is the tournament winner how many regular season winners are there?,"SELECT COUNT(regular_season_winner) FROM table_24160890_3 WHERE tournament_winner = ""Cincinnati""" What scores happened on February 9?,"SELECT score FROM table_23486853_7 WHERE date = ""February 9""" What is the character that won the award in Primetime Emmy 2009?,SELECT DISTINCT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.award_category = 'Primetime Emmy' AND T1.year = 2009 AND T1.result = 'Winner'; Who are the voice actors in the movie that came out on 11/24/2010?,"SELECT T2.`voice-actor` FROM movies_total_gross AS T1 INNER JOIN `voice-actors` AS T2 ON T1.movie_title = T2.movie WHERE T1.release_date = 'Nov 24, 2010'" Which Position has a Pick of 174?,SELECT position FROM table_name_66 WHERE pick = 174 "What is Rank, when Run 2 is 2:06.62?","SELECT rank FROM table_name_74 WHERE run_2 = ""2:06.62""" What is the average salary of all employees with a 2 year degree position?,"SELECT AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.educationrequired = '2 year degree'" What is the date of the Kmart greater greensboro open in North Carolina?,"SELECT date FROM table_name_65 WHERE location = ""north carolina"" AND tournament = ""kmart greater greensboro open""" List the names and phone numbers of all the distinct suppliers who supply red jeans.,"SELECT DISTINCT T1.supplier_name , T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = ""red jeans""" Name the least founded for gutenberg college,"SELECT MIN(founded) FROM table_2076533_1 WHERE school = ""Gutenberg College""" What is the total number of picks for PBA team san miguel beermen who picked rommel daep?,"SELECT COUNT(pick) FROM table_name_26 WHERE pba_team = ""san miguel beermen"" AND player = ""rommel daep""" What is the highest lake area coverage of a country?,SELECT T2.Area * 100 / T3.Area FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country ORDER BY T2.Longitude DESC LIMIT 1 What's the highest level of team Astana since 2007?,"SELECT MAX(level) FROM table_name_96 WHERE team = ""astana"" AND season > 2007" How many districts are respresented by Alex McMillan?,"SELECT COUNT(status) FROM table_1341522_36 WHERE incumbent = ""Alex McMillan""" Show details of all visitors.,SELECT Tourist_Details FROM VISITORS "How many points have utenis utena as the club, with loses less than 16?","SELECT SUM(points) FROM table_name_68 WHERE club = ""utenis utena"" AND loses > 16" Show me the number of students of all cities | Do you mean the total count of students | Yes,SELECT count ( * ) FROM student What is the highest draw represented?,SELECT MAX(draw) FROM table_19523708_1 What gender of users retweet more than 30 times?,SELECT DISTINCT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.RetweetCount > 30 "Give the FBI code for the crime described by ""The killing of one human being by another.""",SELECT fbi_code_no FROM FBI_Code WHERE description = 'The killing of one human being by another.' What percentage of projects that have not received a cash donation have received a portion of a donation included corporate sponsored giftcard?,SELECT CAST(SUM(CASE WHEN payment_included_campaign_gift_card = 't' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(donationid) FROM donations WHERE payment_method = 'no_cash_received' "How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?","SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = ""total northern villages"" AND population__2006_ > 11414" "What is Yearly Cost For Paid Account, when Montly Cost For Paid Account is 5 USD, and when Userpics Paid is 50?","SELECT yearly_cost_for_paid_account FROM table_name_94 WHERE monthly_cost_for_paid_account = ""5 usd"" AND userpics_paid = ""50""" List down the restaurant ID of restaurants located in Sunnyvale.,SELECT id_restaurant FROM location WHERE city = 'sunnyvale' What is the average age of the students living in each dorm?,"SELECT avg ( T1.age ) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" what college has paul seiler as a player?,"SELECT college FROM table_name_22 WHERE player = ""paul seiler""" What years did the player ranked less than 8 and had 447 matches play?,SELECT years FROM table_name_83 WHERE rank < 8 AND matches = 447 What about in Indonesia?,"SELECT school FROM school WHERE location like ""%Indonesia"" and school_id IN ( SELECT school_id FROM school_bus ) " "What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?",SELECT AVG(rank) FROM table_name_26 WHERE total > 73 AND gold > 44 AND bronze > 76 Awesome! Can you add the building of the Comp Sci department to that list as well?,"SELECT dept_name,building, budget FROM department order by budget limit 1" "How many districts did John Conyers, Jr. serve in total?","SELECT COUNT(T3.district) FROM ( SELECT T2.district FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'John Conyers, Jr.' GROUP BY T2.district ) T3" What is the average account balance of customers with credit score below 50 for the different account types?,"SELECT avg(acc_bal) , acc_type FROM customer WHERE credit_score < 50 GROUP BY acc_type" List all product names under Confections.,SELECT T1.ProductName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.CategoryName = 'Confections' Name the iso for chungcheongnam,"SELECT iso FROM table_160510_5 WHERE rr_romaja = ""Chungcheongnam""" Identify customer IDs who bought products priced from 1000 to 2000.,SELECT DISTINCT T2.CustomerID FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Price BETWEEN 1000 AND 2000 What countries are those songs from?,"SELECT country FROM song WHERE resolution > ( SELECT min ( resolution ) FROM song WHERE languages = ""english"" ) " What is the attendance with a 45 tie no.?,"SELECT attendance FROM table_name_73 WHERE tie_no = ""45""" Find the name of tourney that has more than 10 matches.,SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10 What is the stage reached for venue edmonton green?,"SELECT stage_reached FROM table_name_23 WHERE venue = ""edmonton green""" How many total gold medals did India receive?,"SELECT gold FROM table_name_10 WHERE nation = ""india""" "What was the surface on march 2, 1997?","SELECT surface FROM table_name_91 WHERE date = ""march 2, 1997""" "Which Seasons have Entries larger than 52, and Poles of 33?",SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33 What was the resultado when E.E.U.U was the country?,"SELECT resultado FROM table_27501971_2 WHERE country = ""E.E.U.U""" How many seasons has John Mcfadden coached?,"SELECT COUNT(seasons) FROM table_name_71 WHERE coach = ""john mcfadden""" "What is the nba draft for the player from the hometown of virginia beach, va?","SELECT nba_draft FROM table_11677760_1 WHERE hometown = ""Virginia Beach, VA""" "Which school has National Championships smaller than 2, and a Nickname of lions?","SELECT school FROM table_name_21 WHERE national_championships < 2 AND nickname = ""lions""" "Which Surface has a Tournament of st. petersburg , russia?","SELECT surface FROM table_name_53 WHERE tournament = ""st. petersburg , russia""" "Among the students who took the course Machine Learning Theory, how many of them are undergraduates?",SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Machine Learning Theory' AND T1.type = 'UG' What is the weight of the shortest person?,SELECT Weight FROM people ORDER BY Height ASC LIMIT 1 Find the players whose names contain letter 'a'.,SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' What was José María Olazábal's score?,"SELECT to_par FROM table_name_68 WHERE player = ""josé maría olazábal""" Which Year has a cause of firedamp and a Death toll larger than 11?,"SELECT SUM(year) FROM table_name_87 WHERE cause = ""firedamp"" AND death_toll > 11" What is the name of the university with the highest score in teaching in the year 2011?,SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 ORDER BY T2.score DESC LIMIT 1 List the names of technicians in ascending order of age.,SELECT Name FROM technician ORDER BY Age how many students from age of 18,SELECT count ( * ) from student where age = 18 How many schools with the highest level of poverty have received a portion of a donation included corporate sponsored gift card?,SELECT COUNT(T1.schoolid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.payment_included_campaign_gift_card = 't' AND T1.poverty_level = 'highest poverty' How many actors are there?,SELECT count(*) FROM actor "Name the competition on august 25, 2007","SELECT competition FROM table_name_83 WHERE date = ""august 25, 2007""" What is the most used instrument?,SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1 How many voting records do we have?,SELECT count(*) FROM VOTING_RECORD Which document has the most draft copies? List its document id and number of draft copies.,"SELECT document_id , count(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY count(copy_number) DESC LIMIT 1;" What is the full address of business number 24?,"SELECT T1.AddressLine1, T1.AddressLine2 FROM Address AS T1 INNER JOIN BusinessEntityAddress AS T2 ON T1.AddressID = T2.AddressID WHERE T2.BusinessEntityID = 24" Who was the girl on week 4 after week 3's Mikaela James?,"SELECT week_4 FROM table_name_12 WHERE week_3 = ""mikaela james""" How many items appear in the viewers column when the draw is 2?,SELECT COUNT(viewers) FROM table_27994983_8 WHERE draw = 2 What are all of the lots?,select * from Lots what is the country when the score is 68-72-67=207?,SELECT country FROM table_name_75 WHERE score = 68 - 72 - 67 = 207 Find the first names of all professors in the Accounting department who is teaching some course and the class room.,"SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'" what is the 1st prize for may 21,"SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_19 WHERE date = ""may 21""" What are the course codes for every class that the student with the last name Smithson took?,SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson' Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.,SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' Find the name of the storm that affected both Afghanistan and Albania regions.,SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania' "Among the competitors with age ranges 24 and below, calculate the difference between the number of competitors who weighed greater than 70 kg and competitors who weighted less than 70 kg.",SELECT COUNT(CASE WHEN T1.weight > 70 THEN 1 ELSE NULL END) - COUNT(CASE WHEN T1.weight < 70 THEN 1 ELSE NULL END) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.age < 24 Where did Essendon play as the away team?,"SELECT venue FROM table_name_83 WHERE away_team = ""essendon""" Return the names of singers who are from UK and released an English song.,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english""" Find the payment method that is used most frequently.,SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 Which county in northern California has the highest number of cities?,SELECT county FROM geographic WHERE region = 'northern california' GROUP BY county ORDER BY COUNT(city) DESC LIMIT 1 "Find the first and last name of the author(s) who wrote the paper ""Nameless, Painless"".","SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Nameless , Painless""" What is the name and number in 1962 when livery was Br Bauxite?,"SELECT number_ & _name FROM table_name_18 WHERE date = ""1962"" AND livery = ""br bauxite""" "Find the names of the clubs that have at least a member from the city with city code ""HOU"".","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = ""HOU""" What are the different district names in order of descending city area?,SELECT DISTINCT District_name FROM district ORDER BY city_area DESC "Among the customers from a place with more than 20,000 and less than 30,000 inhabitants, how many of them are Machine-op-inspcts?",SELECT COUNT(T1.GEOID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.OCCUPATION = 'Machine-op-inspct' AND T2.INHABITANTS_K > 20 AND T2.INHABITANTS_K < 30 What is the loan club with bbc sport as the start source and ended in 3 February?,"SELECT loan_club FROM table_name_41 WHERE start_source = ""bbc sport"" AND ended = ""3 february""" Show all main industry and total market value in each industry.,"SELECT main_industry , sum(market_value) FROM company GROUP BY main_industry" "For each journal_committee, find the editor name and the journal theme.","SELECT T2.Name , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID" Name the number of processors for nec sx-4 vector processor,"SELECT no_of_processors FROM table_27765443_2 WHERE cpu_type = ""NEC SX-4 vector processor""" How many unemployed students are enlisted in the Army organization?,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.organ = 'army' How many regions had an hdi of 0.896?,"SELECT COUNT(combined_gross_enrollment_ratio__2009_) FROM table_25042332_33 WHERE hdi = ""0.896""" "What was the average number of ""goals for"", scored in the club Real Oviedo that had a ""goal difference"" lower than -16 and fewer than 9 wins?","SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = ""real oviedo"" AND wins < 9" how many game are there,SELECT count ( * ) from game "What opponent had an attendance of 63,659?","SELECT opponent_number FROM table_name_78 WHERE attendance = ""63,659""" what is the status date of the product name Book collection C ?,"SELECT status_date FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE product_name = ""Book collection C""" "What was the home team for the game with more than 25,000 crowd?",SELECT home_team FROM table_name_70 WHERE crowd > 25 OFFSET 000 What is the first names of the professors from the history department who do not teach a class.,SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num What is the average lead time of product ID 843? Calculate for its profit on net and indicate the full location to which the vendor is located.,"SELECT T1.AverageLeadTime, T1.LastReceiptCost - T1.StandardPrice, T4.AddressLine1, T4.AddressLine2 , T4.City, T4.PostalCode FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN BusinessEntityAddress AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID INNER JOIN Address AS T4 ON T3.AddressID = T4.AddressID WHERE T1.ProductID = 843" "How many customers are living in city ""Lake Geovannyton""?","SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = ""Lake Geovannyton""" What are the names of players in team 1?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Team AS T3 ON T2.Team_Id = T3.Team_Id WHERE T3.Team_Id = 1 GROUP BY T1.Player_Name "Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.",SELECT T1.customerNumber FROM customers AS T1 INNER JOIN payments AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.city = 'Boston' GROUP BY T1.customerNumber ORDER BY SUM(T2.amount) / COUNT(T2.paymentDate) DESC LIMIT 1 How in prothrombin affected by glanzmann's thrombasthenia.,"SELECT prothrombin_time FROM table_1226250_1 WHERE condition = ""Glanzmann's thrombasthenia""" What date has the format of CD and catalog of alca-274?,"SELECT date FROM table_name_72 WHERE format = ""cd"" AND catalog = ""alca-274""" Show the people that have been governor the most times.,SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 "What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35?","SELECT MAX(population) FROM table_name_70 WHERE status = ""town"" AND census_ranking = ""1,379 of 5,008"" AND area_km_2 < 8.35" What is the type of glycosylase that has an E. coli of Muty?,"SELECT type FROM table_name_11 WHERE e_coli = ""muty""" Name the candidates for felix walker,"SELECT candidates FROM table_2668329_18 WHERE incumbent = ""Felix Walker""" Name the total number for period of validity for upper volta,"SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = ""Upper Volta""" What is the low lap total for the under 4 grid car driven by juan pablo montoya?,"SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = ""juan pablo montoya""" Show all publishers which do not have a book in 1989.,SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989 what is the lname of linda,SELECT LName FROM Student where Fname = 'Linda' What is the average longitude of stations located in San Jose city?,"SELECT avg ( long ) FROM station WHERE city = ""San Jose""" What is the name of the most expensive product?,SELECT Name FROM Products WHERE Price = ( SELECT MAX(Price) FROM Products ) What is the highest cr number?,SELECT MAX(cr_no) FROM table_1886270_1 What are the positions and teams of pilots?,"SELECT POSITION , Team FROM pilot" "Give the name of the director of the movie in which Verna Felton was the voice actor for its character ""Aunt Sarah"".",SELECT T1.director FROM director AS T1 INNER JOIN `voice-actors` AS T2 ON T2.movie = T1.name WHERE T2.character = 'Aunt Sarah' AND T2.`voice-actor` = 'Verna Felton' Find the distinct ages of students who have secretary votes in the fall election cycle.,"SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = ""Fall""" "What is the country ID of the movie with the title of ""Pirates of the Caribbean: Dead Man's Chest""?",SELECT T2.COUNTry_id FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title LIKE 'Pirates of the Caribbean: Dead Man%s Chest' When 155 is the jersey what is the highest amount of different holders?,SELECT MAX(different_holders) FROM table_18676973_3 WHERE jerseys = 155 When is the first broadcast for episodes where Rufus's guest is Jack Whitehall?,"SELECT first_broadcast FROM table_19930660_3 WHERE rufus_guest = ""Jack Whitehall""" Calculate the average of authors for each paper from the year of 1990 to 2000.,SELECT CAST(COUNT(DISTINCT T2.AuthorId) AS REAL) / COUNT(DISTINCT T1.Title) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year BETWEEN 1990 AND 2000 Name the least 2 credits for straight hand,"SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = ""Straight""" "For entries with a lost of 5, what is the sum of the draw entry?",SELECT SUM(draw) FROM table_name_23 WHERE lost = 5 How much more expensive in percentage is the product with the highest selling price from the product with the lowest selling price in the Clothing category?,SELECT (MAX(T1.ListPrice) - MIN(T1.ListPrice)) * 100 / MIN(T1.ListPrice) FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID INNER JOIN ProductCategory AS T3 ON T2.ProductCategoryID = T3.ProductCategoryID WHERE T3.Name = 'Clothing' "What is Tournament, when Margin is Victory of 6 Strokes?","SELECT tournament FROM table_name_30 WHERE margin_of_victory = ""6 strokes""" How many don't have a banking industry?,"SELECT count ( * ) FROM Companies WHERE Industry ! = ""Banking""" show the names of editors that are on at least two journal committees?,SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT ( * ) > = 2 "Which Livery has a Description of 20t tanker, with a date later than 1941?","SELECT livery FROM table_name_32 WHERE description = ""20t tanker"" AND date > 1941" List all the films that Karl Berr starred in and rated as PG.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'KARL' AND T1.last_name = 'BERRY' AND T3.rating = 'PG' "Show the names of festivals that have nominated artworks of type ""Program Talent Show"".","SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = ""Program Talent Show""" What 2009 has 345 as the 2007?,"SELECT 2009 FROM table_name_33 WHERE 2007 = ""345""" What are the names of the songs that are modern or sung in English?,"SELECT song_name FROM song WHERE genre_is = ""modern"" OR languages = ""english""" Who was the opponent at the game that had a loss of Harden (9-6)?,"SELECT opponent FROM table_name_27 WHERE loss = ""harden (9-6)""" What did the visiting team score at brunswick street oval?,"SELECT away_team AS score FROM table_name_67 WHERE venue = ""brunswick street oval""" How many branches where have more than average number of memberships are there?,SELECT count(*) FROM branch WHERE membership_amount > (SELECT avg(membership_amount) FROM branch) Which allergy has most number of students affected?,SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1 How many different countries are all the swimmers from?,SELECT count(DISTINCT nationality) FROM swimmer What position do the bc lions pick?,"SELECT position FROM table_name_22 WHERE cfl_team = ""bc lions""" "What is the Label of the September 19, 2008 release in Germany?","SELECT label FROM table_name_25 WHERE date = ""september 19, 2008"" AND region = ""germany""" "In romantic movies, how many of them starred by John Travolta?",SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Genre = 'Romance' AND T3.Name = 'John Travolta' "Among the products under the office supplies category, what is the product that made the highest sales in the Central region?",SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Office Supplies' AND T2.Region = 'Central' ORDER BY T1.Sales DESC LIMIT 1 What number in season is the episode directed by Gene Stupnitsky?,"SELECT no_in_season FROM table_17482534_1 WHERE directed_by = ""Gene Stupnitsky""" What are all sports names?,select distinct SportName from SportsInfo What was the gender of the contestant on RR: South Pacific season?,"SELECT gender FROM table_18974269_1 WHERE original_season = ""RR: South Pacific""" What game site has a result of bye?,"SELECT game_site FROM table_name_52 WHERE result = ""bye""" List line items shipped by truck with delivery time before 1997.,"SELECT l_linenumber FROM lineitem WHERE STRFTIME('%Y', l_shipdate) < 1997 AND l_shipmode = 'truck'" Who directed episode number 3?,SELECT directed_by FROM table_158088_2 WHERE episode_no = 3 "What was the Opponent before Week 11 with an Attendance of 63,571?","SELECT opponent FROM table_name_94 WHERE week < 11 AND attendance = ""63,571""" What is the time for the second qualification where the first qualification time was 1:21.523?,"SELECT qual_2 FROM table_name_21 WHERE qual_1 = ""1:21.523""" what is the engine for year less than 1959 and points more than 4?,SELECT engine FROM table_name_7 WHERE year < 1959 AND points > 4 "Provide the country, population, capital city, and official language of the country with the smallest surface area.","SELECT T1.Name, T1.Population, T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' ORDER BY T1.SurfaceArea LIMIT 1" What is the first name of the legislator whose address at 1005 Longworth HOB; Washington DC 20515-1408?,SELECT T1.first_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.address = '1005 Longworth HOB Washington DC 20515-1408' GROUP BY T1.first_name What was the result when the time was 4:15?,"SELECT res FROM table_name_66 WHERE time = ""4:15""" List all deserts that are not between latitudes 30 and 40.,SELECT Name FROM desert WHERE Latitude < 30 OR Latitude > 40 "Then my last inquiry, could you please let me know Amersham's high temperature and wind speed on Friday?","SELECT t1.high_temperature,t1.wind_speed_mph FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id where t1.day_of_week = 'Friday' and T2.network_name = 'Amersham'" In which week was the team record 7–2?,"SELECT MIN(week) FROM table_24481478_1 WHERE team_record = ""7–2""" Indicate the name of the products that have been shipped to the city of Paris.,SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.ShipCity = 'Paris' "When the Flap is less than 15 and the podium is larger than 11, what is the pole?",SELECT pole FROM table_name_95 WHERE flap < 15 AND podium > 11 What is the largest payment amount?,SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 On what surface did a score of 4–6 6–3 6–4 occur at the Tournament of Lahore?,"SELECT surface FROM table_name_78 WHERE tournament = ""lahore"" AND score = ""4–6 6–3 6–4""" "What country has an LP format, catalog s 31503?","SELECT country FROM table_name_20 WHERE format = ""lp"" AND catalog = ""s 31503""" Excellent. Can you include to this list the review rating for each of these items?,"SELECT T1.title, T1.i_id, rating FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3" In which county is the swann covered bridge located?,"SELECT county FROM table_name_4 WHERE name = ""swann covered bridge""" Find the name of the swimmer who has at least 2 records.,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING count(*) >= 2 "Who is the director of the movie Sex, Drink and Bloodshed?","SELECT director_name FROM movies WHERE movie_title = 'Sex, Drink and Bloodshed'" What was the average points in the quarterfinals domestic cup?,"SELECT AVG(points) FROM table_name_72 WHERE domestic_cup = ""quarterfinals""" What date has wrexham as the home team?,"SELECT date FROM table_name_69 WHERE home_team = ""wrexham""" What school has the greyhounds as mascots?,"SELECT school FROM table_name_56 WHERE mascot = ""greyhounds""" What are all the locations with a cinema?,SELECT DISTINCT LOCATION FROM cinema "State the ID number for the attribute named ""Accepts Insurance""?",SELECT attribute_id FROM Attributes WHERE attribute_name = 'Accepts Insurance' Who was the director of the episode written by Russell T Davies and James Moran?,"SELECT director FROM table_name_67 WHERE writer = ""russell t davies and james moran""" What is the average number of bank customers?,SELECT avg(no_of_customers) FROM bank What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?,SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81 What is the name of the company which has market value 213.7?,SELECT Company FROM company where Market_Value = 213.7 what position did the player from connecticut play,"SELECT position FROM table_10015132_7 WHERE school_club_team = ""Connecticut""" Where did Celestino Tugot place?,"SELECT place FROM table_name_43 WHERE player = ""celestino tugot""" "what is the maximum rank with per capita income being $17,013","SELECT MAX(rank) FROM table_1350350_2 WHERE per_capita_income = ""$17,013""" Which player played for Western Kentucky?,"SELECT player FROM table_name_61 WHERE school_club_team = ""western kentucky""" What is the typical selling price of product paper?,SELECT typical_selling_price FROM products where product_name = 'peper' Please list the short name of countries which have the latest trade data after 2010.,SELECT ShortName FROM Country WHERE LatestTradeData > 2010 "For the Temple Square station, what is the park & ride lot name?","SELECT park_and_ride_lot FROM table_name_53 WHERE station_name = ""temple square""" What is the competition that occured on 27 July 2004?,"SELECT competition FROM table_name_98 WHERE date = ""27 july 2004""" What is the highest win for losses less than 2?,SELECT MAX(wins) FROM table_name_65 WHERE losses < 2 How many trains with fully loaded head cars are running east?,SELECT COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_num = 3 how many parties are on the table?,SELECT count ( * ) FROM parties What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?,"SELECT province FROM table_27369069_4 WHERE soccer_stadium = ""terrain #2 of Complexe sportif Claude-Robillard""" When the entrant is fred saunders what is the driver?,"SELECT driver FROM table_name_11 WHERE entrant = ""fred saunders""" How many of them are females?,SELECT 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 T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' Who was the manufacturer in the year when the race lasted 2:30:28?,"SELECT manufacturer FROM table_2266976_1 WHERE race_time = ""2:30:28""" What is the July temperature where the annual precipitation is 514mm (20.2in)?,"SELECT july FROM table_name_23 WHERE annual_precipitation = ""514mm (20.2in)""" How many years have a Catalog Number of 80429 / bta80429?,"SELECT COUNT(year) FROM table_name_69 WHERE catalog_number = ""80429 / bta80429""" What are the sales in Japan for the release totaling 1.82 million?,"SELECT japan FROM table_name_88 WHERE total = ""1.82 million""" "When Tujunga is moderate, what is La Crescenta-Montrose?","SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = ""moderate""" Find the parties associated with the delegates from district 1. Who served as governors of the parties?,SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 Find the name and hours of project that has the most number of scientists.,"SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1" What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?,SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 0 How many times is the sodium content in Lasagne-Spinach Spirals to Beef and Spinach Pita Pockets?,SELECT CAST(SUM(CASE WHEN T1.title = 'Lasagne-Spinach Spirals' THEN T2.sodium ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.title = 'Beef and Spinach Pita Pockets' THEN T2.sodium ELSE 0 END) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id Which gender makes up the majority of the staff?,SELECT gender FROM staff GROUP BY gender ORDER BY count(*) DESC LIMIT 1 "Hmm, I also want to know how many mills are built by Canadian architects.",SELECT count ( * ) FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'Canadian' What time for the entrant weighing 54.4kg?,"SELECT time FROM table_20626467_1 WHERE weight__kg_ = ""54.4kg""" "From 1975 to 1980, how much is the total amount CO2 emmission in kiloton of the the world? Indicate which year the world recorded its highest CO2 emmissions.","SELECT SUM(T1.Value), T1.Year FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'CO2 emissions (kt)' AND T1.Year >= 1975 AND T1.Year < 1981 AND T1.CountryCode = 'WLD' AND T2.SpecialNotes = 'World aggregate.'" "What are the different card types, and how many cards are there of each?","SELECT card_type_code , count(*) FROM Customers_cards GROUP BY card_type_code" What are the names and distances of aircraft that have more than 5000 distance?,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 How many players are from energa czarni?,"SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = ""Energa Czarni""" "What are dates of birth of all the guests whose gender is ""Male""?","SELECT date_of_birth FROM Guests WHERE gender_code = ""Male""" In which year did the least people enter hall of fame?,SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1; What is the nationality of Acquafresca?,"SELECT nat FROM table_name_9 WHERE name = ""acquafresca""" What is the percentage of English used in Australia?,SELECT T2.Percentage FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Australia' AND T2.Language = 'English' Find the total number of matches.,SELECT COUNT(*) FROM matches "what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8?","SELECT years FROM table_name_51 WHERE notes = ""laredo, limited, overland"" AND engine = ""5.7l hemi v8""" that was held in 1964?,SELECT event FROM table_name_39 WHERE year = 1964 who organized the Pure Church of Christ?,"SELECT organized_by FROM church where name = ""Pure Church of Christ""" How many goals have a goal ration less than 0.8 with 56 games?,SELECT COUNT(goals) FROM table_name_49 WHERE goal_ratio < 0.8 AND games = 56 Can you also show me the birth dates?,"SELECT T1.birth_year, T1.birth_month, T1.birth_day FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count ( * ) DESC LIMIT 3" How much is the tax amount of the purchase order with the biggest tax amount? Indicate the purchase order ID.,"SELECT TaxAmt, PurchaseOrderID FROM PurchaseOrderHeader ORDER BY TaxAmt DESC LIMIT 1" List the name of England players.,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'England' List all countries of markets in descending order of number of cities.,SELECT Country FROM market ORDER BY Number_cities DESC What is the name of that catalog?,"SELECT catalog_name FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" "When the team is newman/haas racing and the grid size is 3, what's the time/retired?","SELECT time_retired FROM table_name_8 WHERE team = ""newman/haas racing"" AND grid = 3" Find the names of customers who are not living in the state of California.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' "What was the earliest week the team played the chicago cardinals in front of less than 25,312?","SELECT MIN(week) FROM table_name_12 WHERE opponent = ""chicago cardinals"" AND attendance < 25 OFFSET 312" What's the density in the district with 2320529 citizens in 2011?,SELECT density_in_2011___km²_ FROM table_2801442_1 WHERE population__2011_census_ = 2320529 Find the rooms of faculties with rank professor who live in building NEB.,"SELECT Room FROM FACULTY WHERE Rank = ""Professor"" AND Building = ""NEB""" How many epsidode(s) had 3.63 million viewers?,"SELECT COUNT(episode__number) FROM table_22353769_3 WHERE viewers__millions_ = ""3.63""" In how many venues did team 2 win the toss and lose the match?,SELECT SUM(CASE WHEN T1.Team_2 = T1.Match_Winner THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Team_1 = T1.Toss_Winner "List the id, genre and artist name of English songs ordered by rating.","SELECT f_id , genre_is , artist_name FROM song WHERE languages = ""english"" ORDER BY rating" What are the ids and names of the architects who built at least 3 bridges ?,"SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) >= 3" What's the status of the player with 3041 points?,SELECT status FROM table_27615896_20 WHERE points = 3041 What is the highest number of draws that correlates with a percentage of 0.00% and less than 1 loss?,"SELECT MAX(drawn) FROM table_name_92 WHERE percentage = ""0.00%"" AND lost < 1" "What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?","SELECT current_club FROM table_name_28 WHERE first_team_appearances = ""ongoing"" AND position = ""midfielder"" AND player = ""samir carruthers""" How many games did the team play when they were 1-3?,"SELECT COUNT(score) FROM table_13619053_4 WHERE record = ""1-3""" Tell me the player for 7 round,SELECT player FROM table_name_74 WHERE round = 7 Who is the author of the book with the biggest page count?,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id ORDER BY T1.num_pages DESC LIMIT 1 Who scored the most assists in game 59?,SELECT high_assists FROM table_15780718_8 WHERE game = 59 What was the weight in kg when the jockey was B. York? ,"SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = ""B. York""" How many Bronze medals did Switzerland with less than 3 Silver medals receive?,"SELECT MIN(bronze) FROM table_name_75 WHERE nation = ""switzerland"" AND silver < 3" And how many characteristics does this product have?,"SELECT count ( * ) 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 = ""laurel""" Which part has the least faults?,SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count ( * ) ASC LIMIT 1 What are the top 2 countries with the highest number of indebted suppliers?,"SELECT T.n_name FROM ( SELECT T2.n_name, SUM(T1.s_acctbal) AS num FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 GROUP BY T1.s_nationkey ) AS T ORDER BY T.num LIMIT 2" what is the number of the episode in the season that had 5.60 millions of north american spectors?,"SELECT no FROM table_2866509_1 WHERE us_viewers__million_ = ""5.60""" what is the position when the year [A} is after 2011 and the pick is 28?,"SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = ""28""" Of them which are left footed?,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = ""left"" AND T2.overall_rating > = 85 AND T2.overall_rating < = 90" What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?,"SELECT COUNT(draws) FROM table_name_7 WHERE losses > 11 AND wins < 4 AND golden_rivers = ""wakool""" "Which Tonnage (GRT) has a Nationality of united kingdom, and a Name of king gruffydd?","SELECT MIN(tonnage__grt_) FROM table_name_44 WHERE nationality = ""united kingdom"" AND name = ""king gruffydd""" What are the names for all aircrafts with at least 2 flights?,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING count(*) >= 2 Please list the titles of the top 3 films with the highest replacement cost.,SELECT title FROM film WHERE replacement_cost = ( SELECT MAX(replacement_cost) FROM film ) LIMIT 3 How many played where the points were 80?,"SELECT played FROM table_12807904_5 WHERE points = ""80""" Calculate the average satisfaction of the good students with their courses.,SELECT CAST(SUM(sat) AS REAL) / COUNT(course_id) FROM registration WHERE grade = 'B' there are in tobago species name helicops angulatus,"SELECT tobago FROM table_1850282_5 WHERE species = ""Helicops angulatus""" "Which Byes have an Against smaller than 1466, and Losses smaller than 6?",SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6 "What round was adelaide united the opposition with an attendance of 18,345?","SELECT round FROM table_name_32 WHERE opposition = ""adelaide united"" AND attendance = ""18,345""" What is the paperID code for University of Oxford?,select distinct T1.paperID from Papers AS T1 JOIN Authorship AS T2 JOIN Inst AS T3 where T3.name = 'University of Oxford' What is the broadcast date of the episode on 16mm t/r that ran 23:25?,"SELECT broadcast_date FROM table_2101431_1 WHERE archive = ""16mm t/r"" AND run_time = ""23:25""" Calculate the average height in centimeter of all players who played in Acadie-Bathurst Titan during regular season.,SELECT CAST(SUM(T1.height_in_cm) AS REAL) / COUNT(T2.ELITEID) FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height INNER JOIN SeasonStatus AS T3 ON T2.ELITEID = T3.ELITEID WHERE T3.TEAM = 'Acadie-Bathurst Titan' AND T3.GAMETYPE = 'Regular Season' tell me the name of head id 1,SELECT name FROM head WHERE head_ID = 1 What are the line 1 and average monthly rentals of all student addresses?,"SELECT T1.line_1 , avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id" Which team has the location attendance of American Airlines Center 19954?,"SELECT team FROM table_23285805_8 WHERE location_attendance = ""American Airlines Center 19954""" What day was there a hard surface when the partner was Marc Gicquel?,"SELECT date FROM table_name_64 WHERE surface = ""hard"" AND partner = ""marc gicquel""" "Provide the ranking system name for the ""Quality of Education Rank"" criteria.",SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Quality of Education Rank' Show the invoice number and the number of transactions for each invoice.,"SELECT invoice_number , count(*) FROM Financial_transactions GROUP BY invoice_number" "What is the average, maximum, and minimum budget for all movies before 2000.","SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000" Find the names of the products with length smaller than 3 or height greater than 5.,SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 List down the customer's reference ID with true response.,SELECT REFID FROM Mailings1_2 WHERE RESPONSE = 'true' List all region names in alphabetical order.,SELECT region_name FROM region ORDER BY region_name; "What is Country of Origin, when Type is Disposable, when Primary Cartridge is 105mm, and when Year of Intro is less than 2008?","SELECT country_of_origin FROM table_name_74 WHERE type = ""disposable"" AND primary_cartridge = ""105mm"" AND year_of_intro < 2008" Who is the person whose age is below 30?,SELECT name FROM Person WHERE age < 30 What is the first name of these people?,"SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T1.lesson_status_code = ""Cancelled"" GROUP BY T2.first_name" "Who was the home team when the crowd was larger than 13,557?",SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557 What is the Age of dorothy Peel as of 1 February 2014 ?,"SELECT age_as_of_1_february_2014 FROM table_name_18 WHERE name = ""dorothy peel""" "What place has a score greater than 68, and camilo villegas as the player?","SELECT place FROM table_name_51 WHERE score > 68 AND player = ""camilo villegas""" When 4 is the episode what is the air date?,SELECT first_air_date FROM table_28980706_4 WHERE episode = 4 What was the score for alcobaça when the opponent was in the final of xinyun han?,"SELECT score FROM table_name_27 WHERE tournament = ""alcobaça"" AND opponent_in_the_final = ""xinyun han""" Show all region code and region name sorted by the codes.,"SELECT region_code , region_name FROM region ORDER BY region_code" Which SANSKRT has a CHINESE of 摩拏羅 / mónáluó?,"SELECT sanskrt FROM table_name_76 WHERE chinese = ""摩拏羅 / mónáluó""" How many rounds did Virginia have?,"SELECT round FROM table_20860739_1 WHERE college = ""Virginia""" "Name the numbers for date of feb 27, 1996","SELECT s_no FROM table_1594772_2 WHERE match_date = ""Feb 27, 1996""" What is the average salary for each job title?,"SELECT job_title , AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title" Calculate the percentage of part supply that costs more than 500.,"SELECT CAST(SUM(IIF(ps_supplycost > 500, 1, 0)) AS REAL) * 100 / COUNT(ps_suppkey) FROM partsupp" What team was the opponent when the score was 25-0?,"SELECT opponent FROM table_name_7 WHERE score = ""25-0""" "Which nationality's distance was 500m before 2012, when the record was 1:37.071s?","SELECT nationality FROM table_name_26 WHERE distance = ""500m"" AND year < 2012 AND record = ""1:37.071s""" Name the qual for year of 1960,"SELECT qual FROM table_name_25 WHERE year = ""1960""" State the name of vendor that supplies book resources to all school with literacy subject as their primary focus.,SELECT DISTINCT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.primary_focus_subject LIKE 'Literacy' List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.,"SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'" "How many institutions with over 50,000 students in 2011 had a percentage of oversea students of more than 10%?",SELECT COUNT(*) FROM university_year WHERE year = 2011 AND num_students > 50000 AND pct_international_students > 10 What year did the 11th place play 26 games?,"SELECT year FROM table_name_96 WHERE place = ""11th"" AND played = 26" What team does Anthony Redmond ride for?,"SELECT team FROM table_name_32 WHERE rider = ""anthony redmond""" How many times is the player vaughn taylor listed?,"SELECT COUNT(before) FROM table_28498999_3 WHERE player = ""Vaughn Taylor""" "If the province is Manitoba, what is the Arabs 2001 number?","SELECT MAX(arabs_2001) FROM table_1939367_1 WHERE province = ""Manitoba""" Compute the average profits companies make.,SELECT avg(Profits_billion) FROM Companies What is all the information about the Marketing department?,SELECT * FROM departments WHERE department_name = 'Marketing' Who wrote episode 94?,SELECT written_by FROM table_10718631_2 WHERE no_in_series = 94 What are the ids of all vehicles?,SELECT vehicle_id FROM Vehicles; What are the names of the states that have some college students playing in the positions of goalie and mid-field?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' What was the number of earnings were cuts made are 19 and money list rank is 3?,SELECT earnings__€_ FROM table_12821159_14 WHERE cuts_made = 19 AND money_list_rank = 3 What type of paper is the 1 cent denominations made on?,"SELECT paper_type FROM table_name_3 WHERE denomination = ""1 cent""" Name the lead with left bloc of 8.4%,"SELECT lead FROM table_name_25 WHERE left_bloc = ""8.4%""" Count the number of distinct instructors who have taught a course.,SELECT COUNT (DISTINCT id) FROM teaches Show the school name and type for schools without a school bus.,"SELECT school , TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)" How many poles does status grand prix have?,"SELECT poles FROM table_name_57 WHERE racing_team = ""status grand prix""" How many draft copies does the document with id 2 have?,SELECT count(*) FROM Draft_Copies WHERE document_id = 2; When Type was rowexit what was the Category?,"SELECT category FROM table_name_88 WHERE type = ""rowexit""" How many locations featured the Webb Family?,"SELECT COUNT(location_s_) FROM table_19897294_11 WHERE family_families = ""The Webb Family""" what is the y = 2008 when the expression is easter day (julian calendar)?,"SELECT y_ = _2008 FROM table_214479_8 WHERE expression = ""Easter Day (Julian calendar)""" List the names and origins of people who are not body builders.,"SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id" "For each organisations with headquarters in the USA, provide the its full name and the city where the headquarter is located at.","SELECT Name, City FROM organization WHERE Country = 'USA'" What is the category of the business with short review length and highest review stars within business ID from 5 t0 10?,SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Short' AND T2.business_id BETWEEN 5 AND 10 ORDER BY T1.review_stars DESC LIMIT 1 Who wrote Infiltration?,"SELECT writer FROM table_name_86 WHERE title = ""infiltration""" What are the locations of those?,select location from gas_station where manager_name = ( SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count ( * ) DESC LIMIT 1 ) Please list all of the contact information for the police district Near West.,"SELECT phone, fax, tty, twitter FROM District WHERE district_name = 'Near West'" Find all airlines that have fewer than 200 flights.,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200 "In the game on or before week 9, who was the opponent when the attendance was 61,626?","SELECT opponent FROM table_name_49 WHERE week < 9 AND attendance = ""61,626""" By how much did Elly Koss's weight increase from the observation in 2008 to the observation in 2009?,"SELECT SUM(CASE WHEN strftime('%Y', T2.date) = '2009' THEN T2.VALUE END) - SUM(CASE WHEN strftime('%Y', T2.date) = '2008' THEN T2.VALUE END) AS increase , T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description = 'Body Height'" Which shipping method is preferred by customers the most?,SELECT T2.method_name FROM cust_order AS T1 INNER JOIN shipping_method AS T2 ON T1.shipping_method_id = T2.method_id GROUP BY T2.method_name ORDER BY COUNT(T2.method_id) DESC LIMIT 1 What are the names of all the reviewers and movie names?,SELECT name FROM Reviewer UNION SELECT title FROM Movie Could you please find the products with the pages per minute color larger than 5?,SELECT product FROM product WHERE pages_per_minute_color > 5 How many cups of almonds do you need for a chicken pocket sandwich?,SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Chicken Pocket Sandwich' AND T3.name = 'almonds' AND T2.unit = 'cup(s)' Provide the address of the legislator with the contact form of http://www.carper.senate.gov/contact/.,SELECT address FROM `current-terms` WHERE contact_form = 'http://www.carper.senate.gov/contact/' "What is the name of the person with a type of transfer, and a Transfer fee of €8m + €2m in variables?","SELECT name FROM table_name_64 WHERE type = ""transfer"" AND transfer_fee = ""€8m + €2m in variables""" Which city has most number of customers?,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; How few km 2 does the area with Nay Pyi Taw as capital cover?,"SELECT MIN(area__km_2__) FROM table_28741_1 WHERE capital = ""Nay Pyi Taw""" Which state is Mount Chiginagak located in?,"SELECT state FROM table_name_8 WHERE mountain_peak = ""mount chiginagak""" how many airports are there in each country?,"SELECT count(*) , country FROM airport GROUP BY country" "List all the product names with the color description ""white"".","SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""white""" Can you please list all of the locations with only one station?,SELECT LOCATION FROM station GROUP BY LOCATION HAVING count ( * ) = 1 Find the personal names of students not enrolled in any course.,SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id "What is the original language of the movie with the tagline ""An offer you can't refuse.""?",SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id INNER JOIN language_role AS T4 ON T2.language_role_id = T4.role_id WHERE T4.language_role = 'Original' AND T1.tagline LIKE 'An offer you can%t refuse.' Thank you for that! Could you update this list to include the channel name?,"SELECT t1.name,t2.Channel_ID FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'" List the products ordered by Becky Martin around the Central region.,SELECT DISTINCT T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Becky Martin' AND T3.Region = 'Central' What is the constructor for the driver with grid less than 2?,SELECT constructor FROM table_name_6 WHERE grid < 2 "What is the Record with a Date that is may 20, 1961?","SELECT record FROM table_name_73 WHERE date = ""may 20, 1961""" How many purses were there for the mar 16?,"SELECT COUNT(purse__) AS $__ FROM table_11622771_1 WHERE date = ""Mar 16""" What engine was in the year of 1961?,SELECT engine FROM table_name_85 WHERE year = 1961 How many millions of people in the US watched the episode with season number 8?,SELECT us_viewers__millions_ FROM table_19925114_1 WHERE no_in_season = 8 Who was the most clutch player in 1986? Give his full name.,"SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1986 GROUP BY T2.playerID ORDER BY SUM(T2.GWG) DESC LIMIT 1" What is the game name that was held in Beijing in 2008?,SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Beijing' AND T3.games_year = 2008 List the problem id and log id which are assigned to the staff named Rylan Homenick.,"SELECT DISTINCT T2.problem_id , T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = ""Rylan"" AND T1.staff_last_name = ""Homenick""" What is the time for Brazil?,"SELECT time FROM table_name_5 WHERE country = ""brazil""" "With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many?","SELECT MIN(attendance) FROM table_name_35 WHERE record = ""48-51""" What is the GameID of the GName RNG Stone ?,SELECT gtype FROM Video_games where gameid = 1 Give me the the first and last name of the faculty who advises the most students.,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1" What is every entry for area if capital is Port-au-Prince?,"SELECT area__km²_ FROM table_298550_1 WHERE capital = ""Port-au-Prince""" How many questions did user No.5 answer?,SELECT COUNT(QuestionID) FROM Answer WHERE UserID = 5 Find the first name of students who is older than 20.,SELECT fname FROM student WHERE age > 20 Who was the election winner with a BJP incumbent in Chhattisgarh?,"SELECT election_winner FROM table_name_77 WHERE incumbent = ""bjp"" AND state = ""chhattisgarh""" What day was a friendly game held that had a score of 2:3?,"SELECT date FROM table_name_87 WHERE type_of_game = ""friendly"" AND results¹ = ""2:3""" How many points were scored by the player who played 348 games?,"SELECT points FROM table_name_30 WHERE games = ""348""" What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?,SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge' Which title had rank 9?,SELECT title FROM table_name_28 WHERE rank = 9 Which round was played on 10 May?,"SELECT round FROM table_name_91 WHERE date = ""10 may""" what is the name of the product with the lowest price?,SELECT product_name from products order by product_price limit 1 List all countries and their number of airlines in the descending order of number of airlines.,"SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC" "Could you order those by average share count, please?","SELECT investor_id , avg ( share_count ) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg ( share_count ) " Which artist has the most albums?,SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1 "Find the ""date became customers"" of the customers whose ID is between 10 and 20.",SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 Which campus has the most faculties in year 2003?,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 Show all opening years and the number of churches that opened in that year.,"SELECT open_date , count(*) FROM church GROUP BY open_date" How many business have been reviewed by user ID 3 and how long have this user been with Yelp?,"SELECT COUNT(T1.business_id) , strftime('%Y', 'now') - T2.user_yelping_since_year FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.user_id = 3" "How many members of ""Bootup Baltimore"" are older than 18?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.age > 18" "What is the Population where the Median House-hold Income is $25,016?","SELECT MIN(population) FROM table_name_59 WHERE median_house__hold_income = ""$25,016""" When did Robert G. Miner present his credentials?,"SELECT presentation_of_credentials FROM table_name_62 WHERE name = ""robert g. miner""" What was the result of Robert L. F. Sikes' election bid?,"SELECT result FROM table_1342256_10 WHERE incumbent = ""Robert L. F. Sikes""" What type did match ID 336000 win?,SELECT T2.Win_Type FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id WHERE T1.Match_Id = 336000 Can you show the Name of the Products of Code 1?,SELECT Name FROM Products WHERE Code = 1 "What is the task of the method whose tokenized name is ""online median filter test median window filling""?","SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE NameTokenized = 'online median filter test median window filling'" Which project made the most number of outcomes? List the project details and the project id.,"SELECT T1.project_details , T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1;" Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.,"SELECT T2.Name , T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name ASC" What are the names of wines whose production year are before the year of all wines by Brander winery?,"SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = ""Brander"")" "Among all students, calculate the percentage of disabled students.",SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name What is the lowest overall pick for a player from Washington?,"SELECT MIN(overall) FROM table_name_11 WHERE college = ""washington""" What is the sum of goals scored for the Al Wahda team with less than 4 drawn and more than 22 plays?,"SELECT SUM(goals_for) FROM table_name_6 WHERE drawn < 4 AND team = ""al wahda"" AND played > 22" Find the average and total capacity of dorms for the students with gender X.,"SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'" What is the degree summary name that has the most number of students enrolled?,SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1 What is the total medals in 1964?,"SELECT MIN(total) FROM table_name_24 WHERE year_s__won = ""1964""" What is the number of routes whose destinations are Italian airports?,SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' How many directors are on the list?,SELECT count ( director ) FROM Movie Which Season has a Final Place of 8th and 8 Podiums?,"SELECT season FROM table_name_79 WHERE final_placing = ""8th"" AND podiums = ""8""" What is the Result F-A that was the quarter-final first leg round with a H/A of h?,"SELECT result_f_a FROM table_name_96 WHERE h___a = ""h"" AND round = ""quarter-final first leg""" How many Deciles are coed?,"SELECT COUNT(decile) FROM table_name_51 WHERE gender = ""coed""" "What is the average score of player lee trevino, who has a t8 place?","SELECT AVG(score) FROM table_name_39 WHERE place = ""t8"" AND player = ""lee trevino""" For which team did Adidas manufacture kits and TDK sponsor shirts?,"SELECT team FROM table_name_75 WHERE kit_manufacturer = ""adidas"" AND shirt_sponsor = ""tdk""" "When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap?",SELECT flap FROM table_name_79 WHERE pole > 0 AND podium < 44 AND race < 16 which company is highest assets value,SELECT NAME FROM Companies ORDER BY Assets_billion DESC LIMIT 1 "What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?","SELECT MIN(mintage) FROM table_name_93 WHERE artist = ""dora de pédery-hunt"" AND year < 2002" tell the final for lindsey graham,"SELECT result FROM table_1133844_4 WHERE senator = ""Lindsey Graham""" "Name the chinese with subject of adjectives, adverbs, mostly with reduplication","SELECT chinese FROM table_name_50 WHERE subject = ""adjectives, adverbs, mostly with reduplication""" "What is Outcome, when Surface is ""Carpet (I)"", and when Date is ""15 November 1993""?","SELECT outcome FROM table_name_32 WHERE surface = ""carpet (i)"" AND date = ""15 november 1993""" Who made the purchase order with the greatest total due before freight? Indicate her employee ID and calculate for his/her age when he/she was hired.,"SELECT T2.BusinessEntityID, STRFTIME('%Y', T2.HireDate) - STRFTIME('%Y', T2.BirthDate) FROM PurchaseOrderHeader AS T1 INNER JOIN Employee AS T2 ON T1.EmployeeID = T2.BusinessEntityID ORDER BY T1.TotalDue DESC LIMIT 1" "Which nominees have nominated musicals for ""Tony Award""?","SELECT distinct Nominee FROM musical WHERE Award = ""Tony Award""" Provide the full name of the employee who processed the sales order with ID 10274.,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderID = 10274" How many goals occurred with Diego Milito in a debut year later than 2008?,"SELECT COUNT(goals) FROM table_name_40 WHERE name = ""diego milito"" AND debut_year > 2008" Who is the heaviest player? State player ID of 5 heaviest players.,SELECT playerID FROM Master ORDER BY weight DESC LIMIT 5 What is every country with a TV network of AXN India?,"SELECT country FROM table_18821196_1 WHERE tv_network_s_ = ""AXN India""" Which apps have multiple genres and what is the total sentiment subjectivity of these apps?,SELECT SUM(T2.Sentiment_Subjectivity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres > 1 "Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?","SELECT MIN(drawn) FROM table_name_5 WHERE nationality = ""england"" AND matches < 510 AND lost = 4 AND win__percentage < 28.6" Which city has spanish news on the website ultimahora.com ?,"SELECT city FROM table_name_3 WHERE language = ""spanish"" AND website = ""ultimahora.com""" What is the laops of marcis auto racing?,"SELECT laps FROM table_12001616_4 WHERE entrant = ""Marcis Auto Racing""" How many stories were done in 2008 with a 16 rank?,"SELECT COUNT(stories) FROM table_name_85 WHERE completed = 2008 AND rank = ""16""" What is the maximum and minimum height of all players?,"SELECT max(weight) , min(weight) FROM Player" "Can you list the loan types, branch names and ids, and loan amounts? | Did you mean the Ids of the branches? | Yes, please.","SELECT T2.loan_type, T1.bname, T2.branch_ID, T2.amount FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname" "Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?","SELECT moving_from FROM table_name_38 WHERE type = ""transfer"" AND transfer_window = ""summer"" AND ends < 2013" and which contract id is associated with that contract,SELECT T2.maintenance_contract_id FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date ASC LIMIT 1 Please show the different statuses of cities and the average population of cities with each status.,"SELECT Status , avg(Population) FROM city GROUP BY Status" "Which Field has a Discovery of na, and an Operator(s) of woc, and a Geological Trend of western","SELECT field FROM table_name_15 WHERE discovery = ""na"" AND operator_s_ = ""woc"" AND geological_trend = ""western""" The album titled I had what chart positions?,"SELECT chart_positions FROM table_name_21 WHERE album_title = ""i""" what was the largest attendance at kardinia park?,"SELECT MAX(crowd) FROM table_name_74 WHERE venue = ""kardinia park""" What Club/province have caps less than 2 and Jonathan Sexton as player?,"SELECT club_province FROM table_name_74 WHERE caps < 2 AND player = ""jonathan sexton""" Who is the h.s. principal during 1973-1974?,"SELECT hs_principal FROM table_name_81 WHERE year = ""1973-1974""" What is the task of the method that is in the Czech language?,"SELECT DISTINCT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Lang = 'cs'" What is the socket for Order Part Number TMDTL68HAX5DM?,"SELECT socket FROM table_name_67 WHERE order_part_number = ""tmdtl68hax5dm""" Which Player has a Place of T2 and a Country listed as Fiji?,"SELECT player FROM table_name_33 WHERE place = ""t2"" AND country = ""fiji""" What is the score of player bob rosburg?,"SELECT score FROM table_name_90 WHERE player = ""bob rosburg""" "what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?",SELECT COUNT(goals_for) FROM table_name_48 WHERE ties > 0 AND goals_against > 35 AND wins < 2 On what date was the record 4-2?,"SELECT date FROM table_name_66 WHERE record = ""4-2""" Please list the location and the winning aircraft name.,"SELECT T2.Location , T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft" What is the average number of items shipped each day in April of 1994?,SELECT AVG(l_linenumber) FROM lineitem WHERE l_shipdate BETWEEN '1994-01-01' AND '1994-01-30' Name the suppliers that supply products under the category 'cheeses.',SELECT DISTINCT T1.CompanyName FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T3.Description = 'Cheeses' "What are the name, latitude, and city of the station with the lowest latitude?","SELECT name, lat, city FROM station ORDER BY lat LIMIT 1" What attendance has detroit lions as the opponent?,"SELECT attendance FROM table_name_14 WHERE opponent = ""detroit lions""" When was the oldest one created?,SELECT log_entry_date FROM problem_log ORDER BY log_entry_date asc LIMIT 1 Which phone number should I call if I want to reach Nancy Davolio's home?,SELECT HomePhone FROM Employees WHERE LastName = 'Davolio' AND FirstName = 'Nancy' Write the title and all the keywords of the episode that was aired on 3/22/2009.,"SELECT T1.title, T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.air_date = '2009-03-22';" How many students who are female are allergic to milk or eggs?,"SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = ""F"" AND T1.allergy = ""Milk"" OR T1.allergy = ""Eggs""" What's the area coordinator for the municipality with 1715 people living in it in 2010?,SELECT area_coordinator FROM table_2402209_1 WHERE population__2010_ = 1715 "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.","SELECT avg(capacity) , min(capacity) , max(capacity) FROM cinema WHERE openning_year >= 2011" Which venue did Kolkata Knight Riders play most of their matches as a Team 1?,SELECT T3.Venue_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Team_1 INNER JOIN Venue AS T3 ON T2.Venue_Id = T3.Venue_Id WHERE T1.Team_Name = 'Kolkata Knight Riders' GROUP BY T3.Venue_Id ORDER BY COUNT(T3.Venue_Id) DESC LIMIT 1 What was the number of the audience for it?,SELECT num_of_audience FROM festival_detail where year = 2008 Return the money rank of the player with the greatest earnings.,SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 What are the Odds for Trainer Barclay Tagg?,"SELECT odds FROM table_name_87 WHERE trainer = ""barclay tagg""" "Please list the titles of all the releases with the tag ""1980s"".",SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' List all player names who have an overall rating lower than the average.,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating < ( SELECT avg ( overall_rating ) FROM Player_Attributes ) "Who was the runner-up on Jan 19, 1964?","SELECT runner_s__up FROM table_name_89 WHERE date = ""jan 19, 1964""" What is the episode title that had a US viewership of 8.16?,"SELECT title FROM table_24910737_1 WHERE us_viewers__millions_ = ""8.16""" In what year is the status of won?,"SELECT year FROM table_name_72 WHERE status = ""won""" "Show me the details for the whole project id of the table ""projects""","select Project_ID,Project_Details from Projects" "Which Pick has a Name of ed hickerson, and a Round smaller than 10?","SELECT SUM(pick) FROM table_name_56 WHERE name = ""ed hickerson"" AND round < 10" How many players held the high point records for game 34?,SELECT COUNT(high_points) FROM table_27698941_8 WHERE game = 34 "What is Score, when Date is ""13 March 1985"", and when Away Team is ""Millwall""?","SELECT score FROM table_name_67 WHERE date = ""13 march 1985"" AND away_team = ""millwall""" "What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?","SELECT serial_no FROM table_name_71 WHERE colour = ""black"" AND pilot_car_no > 2 AND engine_no = 1008" What is the number of races having top 5s over 2 and average starts of 6.5?,SELECT races FROM table_name_51 WHERE top_5 > 2 AND avg_start = 6.5 What are the first names and date of birth of professors teaching course ACCT-211?,"SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = ""ACCT-211""" "What time did the game start on saturday, april 20?","SELECT kickoff FROM table_24481478_1 WHERE date = ""Saturday, April 20""" What are all the customer phone numbers under the most popular policy type?,SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1) What is the Away team when the match score was norths 19 manly 4?,"SELECT away_team FROM table_name_54 WHERE match_score = ""norths 19 manly 4""" What was the date when the away team was carlisle united?,"SELECT date FROM table_name_50 WHERE away_team = ""carlisle united""" "What is each customer's move in date, and the corresponding customer id and details?","SELECT T2.date_moved_in , T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id" What are the names and years of the movies that has the top 3 highest rating star?,"SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" On what day did Dirk Nowitzki (14) have a high rebound? ,"SELECT date FROM table_17288869_7 WHERE high_rebounds = ""Dirk Nowitzki (14)""" "Count the image numbers that contain the ""paint"" object.",SELECT COUNT(DISTINCT T1.IMG_ID) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'paint' "What is United States total in the year(s) won of 2000 , 2005 , 2006?","SELECT MIN(total) FROM table_name_1 WHERE country = ""united states"" AND year_s__won = ""2000 , 2005 , 2006""" "For teams that played 5 games, what was the smallest number of wins?",SELECT MIN(win) FROM table_14288212_1 WHERE played = 5 Find the number of female students (with F sex) living in Smith Hall,SELECT 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 T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' Please provide the id of the respository that the most people like.,SELECT Id FROM Repo WHERE Stars = ( SELECT MAX(Stars) FROM Repo ) What is the name of the most recent movie?,SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie) "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is ""PUR""?","SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = ""PUR""" "Who attended the school in 2006, that Whitney Powell attended in 2007?","SELECT 2006 FROM table_name_32 WHERE 2007 = ""whitney powell""" "Who is the h.h. principal with Jim Haught as h.s. principal, Charlie Taylor as maplemere principal, and Rich Auerbach as w.r. principal?","SELECT hh_principal FROM table_name_55 WHERE hs_principal = ""jim haught"" AND maplemere_principal = ""charlie taylor"" AND wr_principal = ""rich auerbach""" How many in the year 2000?,SELECT count ( * ) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000 "What was the name of the Competition in Rome, Italy?","SELECT competition FROM table_name_46 WHERE venue = ""rome, italy""" Which legislator has the YouTube channel 'RoskamIL06?' Write the official full name.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T2.youtube = 'RoskamIL06' what is the name of the player that played position 3b?,"SELECT name FROM table_name_54 WHERE position = ""3b""" What is the salary range for sales representative in Northwind?,"SELECT ( SELECT MIN(Salary) FROM Employees WHERE Title = 'Sales Representative' ) AS MIN , ( SELECT MAX(Salary) FROM Employees WHERE Title = 'Sales Representative' ) AS MAX" Show all role codes with at least 3 employees.,SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3 What is the street address of the building with 5 floors?,"SELECT street_address FROM table_name_9 WHERE floors = ""5""" What's the location when the opponent was Lyoto Machida?,"SELECT location FROM table_name_15 WHERE opponent = ""lyoto machida""" What is the total attendance for Detroit on hasek?,"SELECT COUNT(attendance) FROM table_name_50 WHERE home = ""detroit"" AND decision = ""hasek""" Name the most fa cup apps for league apps being 27,SELECT MAX(fa_cup_apps) FROM table_2979789_1 WHERE league_apps = 27 What is the name of the DVD where the number of discs is greater than 2.0,SELECT dvd_name FROM table_1180228_1 WHERE num_of_discs > 2.0 Calculate the percentage of businesses who located in Mesa. What is attribute value of these businesses.,"SELECT CAST(COUNT(T1.city) AS REAL) * 100 / ( SELECT COUNT(business_id) FROM Business ), T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Mesa'" How many shows were launched on CBS (2002)?,"SELECT COUNT(launched) FROM table_28803803_1 WHERE original_channel = ""CBS (2002)""" "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.","SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name ASC" List the name of playlist which has number of tracks greater than 100.,SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100; What stadium was the Fiesta Bowl played at?,"SELECT stadium FROM table_name_74 WHERE bowl_game = ""fiesta bowl""" Find the name and address of the department that has the highest number of students.,"SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1" "How many counties have people before profit as the party, and a borough greater than 0?","SELECT SUM(county) FROM table_name_16 WHERE party = ""people before profit"" AND borough > 0" What are the names of projects that have taken longer than the average number of hours for all projects?,SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects) Name the 2012 when 2011 is qf,"SELECT 2012 FROM table_name_97 WHERE 2011 = ""qf""" "How many music festivals have had each kind of result, ordered descending by count?","SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC" What year was Jerry Huckaby first elected?,"SELECT first_elected FROM table_1341663_19 WHERE incumbent = ""Jerry Huckaby""" Which institution type has the smallest number of institutions?,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count ( * ) ASC LIMIT 1 Find the total number of king beds available.,SELECT sum(beds) FROM Rooms WHERE bedtype = 'King'; Show all the locations with at least two cinemas with capacity above 300.,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) >= 2 Thank you! Can you now tell me the all the headquarters of a company in Oil and gas?,SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' "Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25?","SELECT composer_s_ FROM table_name_44 WHERE arranger_s_ = ""banana boat"" AND length = ""4:25""" What is the gender for Otama?,"SELECT gender FROM table_name_23 WHERE area = ""otama""" What was the Zakspeed 1500/4 1.5 l4 t chassis?,"SELECT chassis FROM table_name_42 WHERE engine = ""zakspeed 1500/4 1.5 l4 t""" Which territory does Ms. Laura Callahan's direct supervisor work in? Give the name of the territory.,SELECT T3.TerritoryDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T1.EmployeeID = ( SELECT ReportsTo FROM Employees WHERE TitleOfCourtesy = 'Ms.' AND FirstName = 'Laura' AND LastName = 'Callahan' ) When did the city of Novi Sad participate?,"SELECT date FROM table_name_14 WHERE city = ""novi sad""" What are the names of the photographers who used those lenses?,SELECT T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country ! = 'Ethiopia' "What was the highest week with a w 21-17 result, and more than 45,254 in attendance?","SELECT MAX(week) FROM table_name_81 WHERE result = ""w 21-17"" AND attendance > 45 OFFSET 254" Name the title of the episode that received the highest star score and the highest number of votes.,"SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id ORDER BY T2.stars DESC, T2.votes DESC LIMIT 1;" In which ceremony was Harnam Singh Rawail nominated for an award?,"SELECT ceremony FROM table_name_80 WHERE nominee = ""harnam singh rawail""" "How many complaints were served in 5 minutes or less by DORIT and responded to the customer with an explanation, were made by phone?",SELECT COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.ser_time < '00:05:00' AND T1.server = 'DORIT' AND T2.`Submitted via` = 'Phone' AND T2.`Company response to consumer` = 'Closed with explanation' How many production codes are there for episode 10 in the season?,"SELECT COUNT(production_code) FROM table_24425976_2 WHERE season = ""10""" What venue featured essendon as home team?,"SELECT venue FROM table_name_25 WHERE home_team = ""essendon""" What is the nationality of the journalist with the largest number of years working?,SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1 what is the bathroom count and bedroom count of the apartment number suite 645?,"SELECT bathroom_count, bedroom_count FROM Apartments where apt_number = ""Suite 645""" "Which Score-Final has a Rank-Final of 2, and a Year smaller than 2008?",SELECT SUM(score_final) FROM table_name_42 WHERE rank_final = 2 AND year < 2008 In which venue did Kochi Tuskers Kerala play most of their matches?,SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.Venue_Id = T2.Venue_Id INNER JOIN Team AS T3 ON T2.Team_1 = T3.Team_Id WHERE T3.Team_Name = 'Kochi Tuskers Kerala' GROUP BY T1.Venue_Name Find the name and college of students whose decisions are yes in the tryout.,"SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" Which team was in 1951?,SELECT team FROM table_name_40 WHERE year = 1951 How many bookings are there?,SELECT count ( * ) FROM BOOKINGS Show all school names in alphabetical order.,SELECT school_name FROM school ORDER BY school_name What was the manner of departure for the team whose incoming manager was George Burley?,"SELECT manner_of_departure FROM table_26593762_3 WHERE incoming_manager = ""George Burley""" How many male (sex is M) students have class senator votes in the fall election cycle?,"SELECT count(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = ""M"" AND T2.Election_Cycle = ""Fall""" What is the away team at glenferrie oval?,"SELECT away_team FROM table_name_33 WHERE venue = ""glenferrie oval""" "Which Game is the highest one that has an Opponent of new york islanders, and a December larger than 10?","SELECT MAX(game) FROM table_name_35 WHERE opponent = ""new york islanders"" AND december > 10" What document types do have more than 10000 total access number.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count) > 10000 What percentage of votes are from the nominated episodes?,SELECT CAST(SUM(CASE WHEN T1.result = 'Nominee' THEN T2.votes ELSE 0 END) AS REAL) * 100 / SUM(T2.votes) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id; What date did Paul Goldstein play the final?,"SELECT date FROM table_name_69 WHERE opponent_in_the_final = ""paul goldstein""" "What is the date of the circuit of nürburgring, which had Graham Hill as the winning driver?","SELECT date FROM table_name_47 WHERE winning_driver = ""graham hill"" AND circuit = ""nürburgring""" What are their names?,SELECT Employee_Name FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed Return the name and max speed of the storm that affected the most regions.,"SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1" Give the songs included in volumes that have more than 1 week on top.,SELECT Song FROM volume WHERE Weeks_on_Top > 1 Where was something built earlier than 1858?,SELECT where_built FROM table_name_79 WHERE year_built < 1858 Which highest pick number had Akeem Dent as a name and where the overall was less than 91?,"SELECT MAX(pick__number) FROM table_name_24 WHERE name = ""akeem dent"" AND overall < 91" Which detailed product did Mr Lennox Oliver Drake complain about?,SELECT DISTINCT T2.`Sub-product` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Lennox' AND T1.middle = 'Oliver' AND T1.last = 'Drake' AND T1.sex = 'Male' What is the Format for the alca-487 catalog?,"SELECT format FROM table_name_12 WHERE catalog = ""alca-487""" Show the name of track with most number of races.,SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1 find the id of tv channels that do not play any cartoon directed by Ben Jones.,SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' "Among the devices with event no.2 happening, how many of them are vivo devices?",SELECT COUNT(T1.device_id) FROM phone_brand_device_model2 AS T1 INNER JOIN events AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'vivo' AND T2.event_id = 2 "Among the players whose total NHL games played in their first 7 years of NHL career is no less than 500, what is the name of the player who committed the most rule violations?",SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.sum_7yr_GP > 500 ORDER BY T2.PIM DESC LIMIT 1 When 70489 is without walls what is the inns of court and chancery?,SELECT inns_of_court_and_chancery FROM table_16677738_1 WHERE without_the_walls = 70489 What FCC info is listed for the ERP W of 2?,SELECT fcc_info FROM table_name_96 WHERE erp_w = 2 What draft pick is a goaltender?,"SELECT pick__number FROM table_2897457_1 WHERE position = ""Goaltender""" Which away team plays at the venue glenferrie oval?,"SELECT away_team FROM table_name_63 WHERE venue = ""glenferrie oval""" What is the hometown of the player that attends UCLA?,"SELECT hometown FROM table_name_99 WHERE college = ""ucla""" Which players were born in 1983 and play as forward position?,"SELECT player FROM table_23670057_5 WHERE year_born = 1983 AND position = ""Forward""" What is the highest vendor's selling price for Hex Nut 5?,SELECT T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Hex Nut 5' ORDER BY T1.StandardPrice DESC LIMIT 1 "What is the last name of the staff member with the first name ""Janessa""?","SELECT last_name from staff where first_name = ""Janessa""" Give me their salary and their manager's salary | do you mean the salary and manager's salary of all people? | Give me the name and salary of the highest paid employee and their manager,"select first_name,last_name,salary,manager_id from employees order by salary desc limit 1" What year was the first store that had a hypermarket of 3?,SELECT first_store FROM table_name_2 WHERE hypermarkets = 3 "How many tickets were sold/available when the gross revenue (2011) was $366,916?","SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = ""$366,916""" What was the loss of the game with a record of 84-71?,"SELECT loss FROM table_name_29 WHERE record = ""84-71""" Give me the maximum low temperature and average precipitation at the Amersham station.,"SELECT max(t1.low_temperature) , avg(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = ""Amersham"";" What are the total grosses for the movies with Jim Cummings as the voice actor?,"SELECT T2.movie_title FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T2.movie_title = T1.movie WHERE T1.`voice-actor` = 'Jim Cummings' ORDER BY CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" Player from which team has the highest point per minute in NBA from 1991 to 2000?,SELECT tmID FROM players_teams WHERE year BETWEEN 1991 AND 2000 ORDER BY CAST(points AS REAL) / minutes DESC LIMIT 1 What are the slovenian names of the villages that had 65.9% of slovenes in 1951?,"SELECT village__slovenian_ FROM table_10797463_1 WHERE percent_of_slovenes_1951 = ""65.9%""" "What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?",SELECT MAX(rank) FROM table_name_98 WHERE gold < 3 AND silver > 2 AND total < 5 "What player has +7 as the to par, and 69-69-75-74=287 as the score?","SELECT player FROM table_name_55 WHERE to_par = ""+7"" AND score = 69 - 69 - 75 - 74 = 287" What final was Farhad Rezaei in?,"SELECT final FROM table_name_46 WHERE athlete = ""farhad rezaei""" "Please show the songs that have result ""nominated"" at music festivals.","SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = ""Nominated""" What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?,SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to < (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code = 'Clerical Staff') Which parties did not have any delegates in elections?,SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election) Find the name of rooms booked by some customers whose first name contains ROY.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%' What the rank of the Virgin Islands athlete with react under 0.168?,"SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = ""virgin islands""" List the customer's name from the South region with a standard class ship mode and sales greater than the 88% of the average sales of all orders.,SELECT DISTINCT T2.`Customer Name` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.Region = 'South' AND T1.`Ship Mode` = 'Standard Class' AND 100 * T1.Sales / ( SELECT AVG(Sales) FROM south_superstore ) > 88 "What are the average, minimum, and max ages for each of the different majors?","SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major" "Which Points has a Position of 3, and a Drawn smaller than 2?",SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2 How many crimes were committed at 018XX S KOMENSKY AVEin May 2018?,SELECT SUM(CASE WHEN date LIKE '5/%/2018%' THEN 1 ELSE 0 END) FROM Crime WHERE block = '018XX S KOMENSKY AVE' What date was marcos daniel the opponent?,"SELECT date FROM table_name_16 WHERE opponent = ""marcos daniel""" What is the representative name of Newport Rd?,"SELECT Representative_Name from gas_station where Location = ""Newport Rd""" What's the least number of routes that an airline runs?,SELECT count ( * ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count ( * ) ASC LIMIT 1 Show all the Store_Name of drama workshop groups.,SELECT Store_Name FROM Drama_Workshop_Groups what is the name of not assigned project with the least hours?,SELECT Name FROM Projects WHERE Code NOT IN ( SELECT Project FROM AssignedTo ) order by Hours limit 1 What is the first and last name of the student participating in the most activities?,"SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1" How many knockout of the night occurred when joe lauzon fought. ,"SELECT knockouts_of_the_night FROM table_21114902_1 WHERE fighter = ""Joe Lauzon""" "What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is ""35""?",SELECT points FROM table_name_17 WHERE draws < 7 AND wins < 16 AND goals_for = 35 "What is the average price of the dishes on the menu ""Zentral Theater Terrace""?",SELECT SUM(T1.price) / COUNT(T1.price) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id WHERE T3.name = 'Zentral Theater Terrace' How many sales does game platform id 3871 make in Europe?,SELECT T2.num_sales * 100000 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Europe' AND T2.game_platform_id = 3871 Find the total account balance of each customer from Utah or Texas.,SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas' List the names and birth dates of people in ascending alphabetical order of name.,"SELECT Name, Birth_Date FROM people ORDER BY Name" How many pages does 'Seaward' have?,SELECT num_pages FROM book WHERE title = 'Seaward' "On September 30, 1979, in a week before week 8, what was the result?","SELECT result FROM table_name_71 WHERE week < 8 AND date = ""september 30, 1979""" What is the Record of the game on September 6?,"SELECT record FROM table_name_49 WHERE date = ""september 6""" How many Yelp_Businesses in Scottsdale have received positive comments in the Elitestar rating?,SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Scottsdale' AND stars > 3 List all the work orders that is related to the Down Tube.,SELECT T2.WorkOrderID FROM Product AS T1 INNER JOIN WorkOrder AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Down Tube' "In 2012, how many Asian female graduates were seeking another type of degree or certificate at the 4-year institution at University of Alaska at Anchorage?",SELECT COUNT(*) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T1.unitid = T2.unitid WHERE T2.gender = 'F' AND T2.race = 'A' AND T1.chronname = 'University of Alaska at Anchorage' AND T2.cohort = '4y other' "If the second leg is Instituto, what is the total number of aggregate?","SELECT COUNT(aggregate) FROM table_17968233_2 WHERE home__2nd_leg_ = ""Instituto""" What title runs for 3:22?,"SELECT title FROM table_name_5 WHERE time = ""3:22""" Name all disabled students that are enrolled in SMC.,SELECT T2.name FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.school = 'smc' What is the average launch date of the vmv-1 vessel in Germany?,"SELECT AVG(launched) FROM table_name_37 WHERE location = ""germany"" AND ship = ""vmv-1""" What did United States place when the score was 71-70-72-68=281?,"SELECT place FROM table_name_17 WHERE country = ""united states"" AND score = 71 - 70 - 72 - 68 = 281" Which polling institute showed a lead of 6%?,"SELECT polling_institute FROM table_name_1 WHERE lead = ""6%""" what is the least number of no decisions for scott feldman category:articles with hcards,"SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = ""Scott Feldman Category:Articles with hCards""" Which record has a Loss of eichhorn (8-5)?,"SELECT record FROM table_name_54 WHERE loss = ""eichhorn (8-5)""" "Name the sum of inversions for opened of april 20, 2002","SELECT SUM(inversions) FROM table_name_89 WHERE opened = ""april 20, 2002""" Give the number of games which were published by Ascaron Entertainment GmbH.,SELECT COUNT(T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id WHERE T1.publisher_name = 'Ascaron Entertainment GmbH' "What is the elevation of the city belonging to Hampden, Massachusetts?",SELECT T3.elevation FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T1.name = 'Massachusetts' AND T2.county = 'HAMPDEN' GROUP BY T3.elevation What is the total amount of products purchased before 2018-03-17 07:13:53?,"SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < ""2018-03-17 07:13:53""" What are the roles for each performance?,"SELECT T2.Performance_ID,T1.Role from member as T1 join member_attendance as T2 on T1.Member_ID = T2.Member_ID group by T2.Performance_ID" Who sponsored Greg Biffle's win on April 14?,"SELECT sponsor FROM table_name_46 WHERE winning_driver = ""greg biffle"" AND date = ""april 14""" What venue has g1 as the group?,"SELECT venue FROM table_name_45 WHERE group = ""g1""" What is the checking balance of the account whose owner’s name contains the substring ‘ee’?,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' What nation had a ship named Roma?,"SELECT nat FROM table_name_24 WHERE name = ""roma""" List of majors?,SELECT distinct ( Major ) FROM STUDENT What is the difference between the number of matches where SC Ganguly played as a Captain and those matches where he played other roles?,SELECT SUM(CASE WHEN T3.Role_Id = 1 THEN 1 ELSE 0 END) - SUM(CASE WHEN T3.Role_Id > 1 THEN 1 ELSE 0 END) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T2.Player_Name = 'SC Ganguly' When did the old manager vacate his position in Plymouth Argyle?,"SELECT date_of_vacancy FROM table_19359427_6 WHERE team = ""Plymouth Argyle""" What position did Lamar Green play?,"SELECT position FROM table_11545282_7 WHERE player = ""Lamar Green""" What is the score for game #7?,SELECT score FROM table_20745685_1 WHERE _number = 7 Who was the opponent before week 8 when the result was l 28-17?,"SELECT opponent FROM table_name_49 WHERE week < 8 AND result = ""l 28-17""" List the names of all left-footed players who have overall rating between 85 and 90.,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = ""left"" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90" "Find the number of students that have at least one grade ""B"".","SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = ""B""" "When a variant without niqqud is as middle letter: וו with a phonemic value of /v/, what is the variant with niqqud?","SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = ""/v/"" AND without_niqqud = ""as middle letter: וו""" In what Year is the Works No. 2040-2049?,"SELECT year FROM table_name_80 WHERE works_no = ""2040-2049""" What is the Music if the Dance is Jive?,"SELECT music FROM table_name_75 WHERE dance = ""jive""" "What is the sum of Ends with a Name of abidal, and has a Since larger than 2007?","SELECT SUM(ends) FROM table_name_58 WHERE name = ""abidal"" AND since > 2007" What did Hawthorn score as the home team?,"SELECT home_team AS score FROM table_name_21 WHERE home_team = ""hawthorn""" How many documents do not have any expense?,SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses ) List down the platform IDs of the games released in 2007.,SELECT DISTINCT T.platform_id FROM game_platform AS T WHERE T.release_year = 2007 Return names of songs in volumes that are by artists that are at least 32 years old.,SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 What is the name of the shop that has the most different kinds of devices in stock?,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1 What are the id of each employee and the number of document destruction authorised by that employee?,"SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID" "What is Rating, when Air Date is ""July 24, 2008*"", and when Weekly Winner is ""Sales Rep. Oscar Ledezma""?","SELECT rating FROM table_name_7 WHERE air_date = ""july 24, 2008*"" AND weekly_winner = ""sales rep. oscar ledezma""" Great! Can you filter this list to show only the names and ids for tourist attractions that were visited 2 or more times?,"SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count ( * ) > = 2" What term did an Electorate of indi have in office?,"SELECT term_in_office FROM table_name_73 WHERE electorate = ""indi""" "Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?","SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = ""2%"" AND state_pensions = ""7%"" AND working_tax_credit = ""2%"" AND employment___salaries_ & _wages_ = ""66%""" What is the total and minimum enrollment of all schools?,"SELECT SUM(enrollment), MIN(enrollment) FROM university" What is the name of the production company that made the most movies?,SELECT T1.company_name FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id ORDER BY COUNT(T2.movie_id) DESC LIMIT 1 "Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?","SELECT MIN(league) AS championships FROM table_name_78 WHERE venue = ""penn state ice pavilion"" AND club = ""penn state nittany lions men's ice hockey""" What year was jerry marion drafted?,"SELECT MAX(draft_year) FROM table_13758243_1 WHERE player = ""Jerry Marion""" What are the names of Bob's friends?,"SELECT friend from personfriend where name = ""Bob""" "What name was listed 02/21/1990, and a CERCLIS ID of scd980844005?","SELECT name FROM table_name_97 WHERE listed = ""02/21/1990"" AND cerclis_id = ""scd980844005""" What is the id of the patient who stayed in room 111 most recently?,SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1 Tell me the goals for score of 38-28,"SELECT goals FROM table_name_54 WHERE score = ""38-28""" Who was the pilot of max altitude of 55.9 miles?,"SELECT pilot FROM table_221315_3 WHERE max_altitude__miles_ = ""55.9""" What circuit did marlboro team penske win with an unknown fastest lap?,"SELECT circuit FROM table_name_67 WHERE winning_team = ""marlboro team penske"" AND fastest_lap = ""unknown""" "For each faculty rank, show the number of faculty members who have it.","SELECT rank , count(*) FROM Faculty GROUP BY rank" What are the number of games played for students under the age of 20?,SELECT sum ( gamesplayed ) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20 Return the names of products in the category 'Spices'.,"SELECT product_name FROM products WHERE product_category_code = ""Spices""" What is the lowest Pick # of Saint Vincent College?,"SELECT MIN(pick__number) FROM table_name_78 WHERE college = ""saint vincent college""" What's the record for the match when the res was a win and the method was a decision?,"SELECT record FROM table_name_91 WHERE method = ""decision"" AND res = ""win""" In what round was a player from Michigan selected?,"SELECT MAX(round) FROM table_name_54 WHERE school_club_team = ""michigan""" "What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?","SELECT location FROM table_name_77 WHERE fastest_lap = ""ben spies"" AND pole_position = ""ben spies"" AND winner = ""ben spies"" AND date = ""tooele, utah""" Name the F. Goals for games of 22 22 and points of 012 12,"SELECT F.goals FROM table_name_31 WHERE games = ""22 22"" AND points = ""012 12""" List all the dates of the urgent orders.,SELECT o_orderdate FROM orders WHERE o_orderpriority = '1-URGENT' What are the first name and last name of Linda Smith's advisor?,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = ""Linda"" AND T2.lname = ""Smith""" find the number of routes from the United States to Canada,SELECT count ( * ) FROM routes WHERE dst_apid IN ( SELECT apid FROM airports WHERE country = 'Canada' ) AND src_apid IN ( SELECT apid FROM airports WHERE country = 'United States' ) Which team 1 played against team 2 of Tours FC (D2)?,"SELECT team_1 FROM table_name_21 WHERE team_2 = ""tours fc (d2)""" How many phones are there?,SELECT count(*) FROM phone "Which Mac OS X has a Linux of no, and an AmigaOS of no, and an Android of unknown?","SELECT mac_os_x FROM table_name_88 WHERE linux = ""no"" AND amigaos = ""no"" AND android = ""unknown""" How much US dollars does a Ford Torino cost?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'ford torino' Find the buildings which have rooms with capacity more than 50.,SELECT DISTINCT building FROM classroom WHERE capacity > 50 "What was the surface of the score of 7–5, 3–6, 7–6?","SELECT surface FROM table_name_58 WHERE score = ""7–5, 3–6, 7–6""" How many total campuses were opened?,SELECT count ( * ) FROM campuses "Which Total has a Country of united states, and a Player of andy north?","SELECT AVG(total) FROM table_name_12 WHERE country = ""united states"" AND player = ""andy north""" "When the Away team of essendon was playing, what was the Home team's score?","SELECT home_team AS score FROM table_name_62 WHERE away_team = ""essendon""" Now show the number of airports in each of those cities,"SELECT city , count ( * ) FROM airports GROUP BY city HAVING count ( * ) > 1" Who was the Best Male MC if Best Album won the Best Male Lyricist?,"SELECT best_male_mc FROM table_22546460_4 WHERE best_male_lyricist = ""Best Album""" "List the id, genre and artist name of English songs ordered by rating.","SELECT f_id , genre_is , artist_name FROM song WHERE languages = ""english"" ORDER BY rating" Give me the match ID and date of the matches that were held in Kingsmead for three consecutive days.,"SELECT T1.Match_Id, T1.Match_Date FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T2.Venue_Name = 'Kingsmead'" Show the most common apartment type code among apartments with more than 1 bathroom.,SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1 Describe the voice actors and villains in Cinderella.,"SELECT T1.`voice-actor`, T2.villian FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T2.movie_title = 'Cinderella'" How old was the goaltender who scored the fewest goals while on the ice when he retired from the NHL?,"SELECT T2.lastNHL - T2.birthYear FROM GoaliesSC AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.lastNHL IS NOT NULL GROUP BY T2.lastNHL, T2.birthYear ORDER BY SUM(GA) LIMIT 1" "What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?","SELECT AVG(total) FROM table_name_23 WHERE silver > 2 AND gold > 1 AND nation = ""total""" Who got 59.486 for Qual 2?,"SELECT name FROM table_name_15 WHERE qual_2 = ""59.486""" Which two countries does the Detroit River flow through? Give the full name of the country.,SELECT T3.Name FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country WHERE T2.Name = 'Detroit River' Name the driver for june 23 and team of penske racing,"SELECT driver FROM table_16493961_1 WHERE date = ""June 23"" AND team = ""Penske Racing""" Which team had a manager replaced by Ebrahim Talebi?,"SELECT team FROM table_22297140_3 WHERE replaced_by = ""Ebrahim Talebi""" What is the 2004 value in the 2011 Grand Slam Tournaments?,"SELECT 2004 FROM table_name_46 WHERE 2011 = ""grand slam tournaments""" Name the equipment for bike number being 3,SELECT equipment FROM table_16941304_4 WHERE bike_no = 3 Name the number of nationalities for ryan mckie,"SELECT COUNT(nationality) FROM table_2840500_8 WHERE player = ""Ryan Mckie""" What is the biggest number of basses suggested in either one of the references?,SELECT MAX(basses) FROM table_2414_1 How many unique users have seen tweet with text `Happy New Year to all those AWS instances of ours!`?,SELECT Reach FROM twitter WHERE text = 'Happy New Year to all those AWS instances of ours!' Can you find the name of the most expensive hardware product please?,SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1 What are airlines that have flights arriving at airport 'AHD'?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = ""AHD""" How many female users use ZenFone 5 devices?,SELECT COUNT(T1.gender) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T2.device_id = T1.device_id WHERE T1.gender = 'F' AND T2.device_model = 'ZenFone 5' Count the number of documents.,SELECT count(*) FROM Documents What was the lowest win% with an away score of 3-2 in 2011 season?,"SELECT MIN(win__percentage) FROM table_name_53 WHERE away = ""3-2"" AND season = ""2011""" Which chapter was founded later than 2012?,SELECT chapter FROM table_name_14 WHERE founding_date > 2012 What is the race title of Dick Johnson Racing?,"SELECT race_title FROM table_name_73 WHERE team = ""dick johnson racing""" What Country does Larry Mize play for?,"SELECT country FROM table_name_67 WHERE player = ""larry mize""" What is the away team at victoria park?,"SELECT away_team FROM table_name_69 WHERE venue = ""victoria park""" "Which Competition has a Year larger than 1990 in seville , spain?","SELECT competition FROM table_name_5 WHERE year > 1990 AND venue = ""seville , spain""" show me the programmes | Do you mean all the program ids? | yes,SELECT Program_id from program What are the countries that have never participated in any friendly-type competitions?,SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' How many respondents who participated in the survey in 2014 work remotely at least 50% of the time?,SELECT COUNT(T1.AnswerText) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 93 AND T1.SurveyID = 2014 AND T1.AnswerText = 'Yes' Name the professor who got graduation from the University of Boston.,"SELECT first_name, last_name FROM prof WHERE graduate_from = 'University of Boston'" Which city and country is the Alton airport at?,"SELECT City , Country FROM AIRPORTS WHERE AirportName = ""Alton""" "In the country where Bush won 4333 votes, what percentage did other receive?",SELECT other__percentage FROM table_13625792_1 WHERE bush__number = 4333 "What year had an issue price of $2,995.95, and a theme of grizzly bear?","SELECT MAX(year) FROM table_name_10 WHERE issue_price = ""$2,995.95"" AND theme = ""grizzly bear""" What is the title and author ID of paper with conference ID less than 100 in year 2006?,"SELECT DISTINCT T1.Title, T2.AuthorId FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 2006 AND T1.ConferenceId < 100" What school does John Crotty play for?,"SELECT school_club_team FROM table_name_35 WHERE player = ""john crotty""" What is the highest amount of difference between the ordered quantity and actual quantity received in a single purchase order and to which vendor was the purchase order made?,"SELECT T2.OrderQty - T2.ReceivedQty, VendorID FROM PurchaseOrderHeader AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.PurchaseOrderID = T2.PurchaseOrderID ORDER BY T2.OrderQty - T2.ReceivedQty DESC LIMIT 1" How many shipments were shipped to customers living in California in year 2016?,"SELECT COUNT(*) AS per FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE STRFTIME('%Y', T2.ship_date) = '2016' AND T1.state = 'CA'" "What date has friendly as the competition, with pretoria, South Africa as the venue?","SELECT date FROM table_name_79 WHERE competition = ""friendly"" AND venue = ""pretoria, south africa""" Who had the highest points on January 2?,"SELECT high_points FROM table_23274514_6 WHERE date = ""January 2""" "What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?","SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = ""football"" AND bronze > 1" Which has the highest amount of transaction?,"SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = ""PUR"" ORDER BY T3.amount_of_transaction DESC LIMIT 1" What's the total when the position was more than 6 and had an A Score of less than 7.6?,SELECT MAX(total) FROM table_name_83 WHERE position > 6 AND a_score < 7.6 "For the students with an intelligence of 5, list the full name and courses taken by them who have less than a 3 GPA.","SELECT T1.f_name, T1.l_name, T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.intelligence = 5 AND T1.gpa < 3" What are the names of the storms that affected both the regions of Afghanistan and Albania?,SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania' Which Label has a Date of 20 July?,"SELECT label FROM table_name_48 WHERE date = ""20 july""" How many deserts are there in a country where over 90% of people speaks Armenian?,SELECT COUNT(T2.Desert) FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T1.Code = T2.Country WHERE T3.Name = 'Armenian' AND T3.Percentage > 90 What cities are located in Northern California?,SELECT city FROM geographic WHERE region = 'northern california' List the id of students who registered some courses and the number of their registered courses?,"SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id" What was the final in the game that boris diaw (34) scored the most points?,"SELECT score FROM table_29181479_5 WHERE high_points = ""Boris Diaw (34)""" "Please give me the url of the movie ""La Antena"".",SELECT movie_url FROM movies WHERE movie_title = 'La Antena' Please list the names of the characters in the movie Look Who's Talking.,SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Look Who''s Talking' Which station has programming of Me-TV?,"SELECT station FROM table_name_33 WHERE programming = ""me-tv""" Which Record has a Date on december 18?,"SELECT record FROM table_name_55 WHERE date = ""december 18""" "What is the sum of t (µm), when Technology is MJ?","SELECT SUM(t__µm_) FROM table_name_26 WHERE technology = ""mj""" Which kinds of grapes are white?,"SELECT Grape FROM GRAPES WHERE Color = ""White""" Show all team names.,SELECT Name FROM Team Who was the runner-up (a) if K. P. Ramalingam won the election?,"SELECT runner_up_a FROM table_22752982_5 WHERE winner = ""K. P. Ramalingam""" "please list by crime rate in ascending order | Would you like the crime rates for all counties in ascending order of crime rate? | no, just for the 2 counties from the previous query","SELECT Name, Crime_rate FROM county_public_safety WHERE Name = 'Campbell River' OR Name = 'Central Saanich' ORDER BY Crime_rate ASC" What is the lowest drawn that has games less than 7?,SELECT MIN(drawn) FROM table_name_83 WHERE games < 7 Show the name and age for all male people who don't have a wedding.,"SELECT name , age FROM people WHERE is_male = 'T' AND people_id NOT IN (SELECT male_id FROM wedding)" What was the number of the game when the record was 11-12?,"SELECT game FROM table_name_82 WHERE record = ""11-12""" Where is competitor Estelle Nze Minko from?,SELECT T1.region_name 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 T3.full_name = 'Estelle Nze Minko' Find the number of manufactures that are based in Tokyo or Beijing.,SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' Which date is associated with a venue of Luxembourg?,"SELECT date FROM table_name_29 WHERE venue = ""luxembourg""" What was the innings when caught was 20?,SELECT innings FROM table_24039597_26 WHERE caught = 20 What is the average number of hours spent practicing for students who got rejected?,SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no' Find the faculty rank that has the least members.,SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1 List the 1st air date for the show where the writers are russel friend & garrett lerner.,"SELECT original_air_date FROM table_22904780_1 WHERE written_by = ""Russel Friend & Garrett Lerner""" What directors won an award on 14/6/6?,"SELECT director_s_ FROM table_name_98 WHERE date = ""14/6/6""" What day(s) did the team play indiana?,"SELECT date FROM table_17340355_7 WHERE team = ""Indiana""" Great! Which publishers have the most published catalogues?,SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count ( * ) DESC LIMIT 1 What is the To par and holds the t8 place of the United States player Tiger Woods?,"SELECT to_par FROM table_name_62 WHERE country = ""united states"" AND place = ""t8"" AND player = ""tiger woods""" "Which tournament has a 2007 of 2r, and a 2011 of 2r?","SELECT tournament FROM table_name_93 WHERE 2007 = ""2r"" AND 2011 = ""2r""" how many got injured in japan?,SELECT sum ( Injured ) FROM perpetrator where country = 'Japan' Show writers who have published a book with price more than 4000000.,SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000 How much did Petit Auto pay on 2004-08-09?,SELECT t1.amount FROM payments AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.customerName = 'Petit Auto' AND t1.paymentDate = '2004-08-09' Which series number had 1.98 million viewers?,"SELECT MIN(no_in_series) FROM table_22347090_4 WHERE us_viewers__million_ = ""1.98""" How many different Leagues are associated with Billy Meredith Category:Articles with hCards?,"SELECT COUNT(league) FROM table_14962287_2 WHERE name = ""Billy Meredith Category:Articles with hCards""" Which head's name has the substring 'Ha'? List the id and name,"SELECT head_id , name FROM head WHERE name LIKE '%Ha%'" "Which NFL Club has a Player of sam tidmore, and a Pick of 81?","SELECT nfl_club FROM table_name_43 WHERE player = ""sam tidmore"" AND pick = 81" Find and list the part key of the parts which has an above-average retail price.,SELECT p_partkey FROM part WHERE p_retailprice > ( SELECT AVG(p_retailprice) FROM part ) What was the most laps with a finish of 10 and qualification of 106.185?,"SELECT MAX(laps) FROM table_name_84 WHERE finish = ""10"" AND qual = ""106.185""" How many customers in Chicago ordered at least 10 Cardinal EasyOpen D-Ring Binders in a single order?,SELECT COUNT(DISTINCT T1.`Customer ID`) FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Cardinal EasyOpen D-Ring Binders' AND T2.City = 'Chicago' AND T1.Quantity > 10 Which surface had Yew-Ming Si as a partner?,"SELECT surface FROM table_name_83 WHERE partner = ""yew-ming si""" "Between Centromeric protein E, putative and conserved hypothetical protein, which has the highest divergence from human lineage?","SELECT divergence_from_human_lineage FROM protein where protein_name = ""Centromeric protein E, putative"" or protein_name = ""conserved hypothetical protein""" Show the country name and capital of all countries.,"SELECT Country_name, Capital FROM country" What is that city's area?,SELECT City_Area FROM district ORDER BY city_population DESC LIMIT 1 How many businesses in Glendale are reviewed by user with the ID of 20241?,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Glendale' AND T2.user_id = 20241 What are the flight numbers for the aircraft Airbus A340-300?,"SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = ""Airbus A340-300""" What is the description of document type 'Paper'?,"SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = ""Paper""" Find the average unit price of tracks from the Rock genre.,"SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Rock""" What is the grid number for troy corser with under 22 laps?,"SELECT SUM(grid) FROM table_name_48 WHERE rider = ""troy corser"" AND laps < 22" Sate the author name and published year for paper id 2?,"SELECT T1.Name, T3.Year FROM Author AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.AuthorId INNER JOIN Paper AS T3 ON T2.PaperId = T3.Id WHERE T2.PaperId = 2" What word would a Castilian speaker use for the Italian word auto(mobile)?,"SELECT castilian FROM table_name_17 WHERE italian = ""auto(mobile)""" What game was developed by Ubisoft Montreal?,"SELECT game FROM table_name_53 WHERE developer_s_ = ""ubisoft montreal""" What is the number of monarchs that had Yan Maw la Mon as the heir?,"SELECT COUNT(monarch) FROM table_26460435_5 WHERE heir = ""Yan Maw La Mon""" "What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?",SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104 Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk,"SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = ""wood"" AND date_commissioned > 1846 AND ship = ""esk""" "Tell me the booking status code for the apartment with number ""Suite 634"".","SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = ""Suite 634""" list out the product names,SELECT product_name FROM Products "How many gold(s) for teams with a total of 14, and over 6 bronze medals?",SELECT SUM(gold) FROM table_name_26 WHERE total = 14 AND bronze > 6 Can you list each test result and it's count in descending order based on count?,"SELECT test_result , COUNT ( * ) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT ( * ) DESC" What is the rank of the arch with a length in meters of 75/55?,"SELECT rank FROM table_name_29 WHERE length___m__ = ""75/55""" Average frequency with ERP W of 62?,"SELECT AVG(frequency_mhz) FROM table_name_88 WHERE erp_w = ""62""" Find the name and id of the top 3 expensive rooms.,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3;" "Which Attendance has an Opponent of new york giants, and a Week smaller than 5?","SELECT AVG(attendance) FROM table_name_88 WHERE opponent = ""new york giants"" AND week < 5" What is the full name of the driver who transported the first shipment of the company?,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id ORDER BY T1.ship_date ASC LIMIT 1" What is the flange thickness (mm) for the weight (kg/m) 10.4?,"SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = ""10.4""" "What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979?","SELECT MAX(wins) FROM table_name_7 WHERE class = ""350cc"" AND team = ""yamaha"" AND points < 37 AND year > 1979" What is the nationality of the player named Kelly Tripucka?,"SELECT nationality FROM table_11545282_19 WHERE player = ""Kelly Tripucka""" What are the names and salaries of instructors who advise students in the Math department?,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'" how many students have not enrolled in any courses,SELECT COUNT ( * ) FROM STUDENT WHERE StuID NOT IN ( SELECT StuID FROM ENROLLED_IN ) What is the home team that played on M.C.G. grounds?,"SELECT home_team FROM table_16388398_2 WHERE ground = ""M.C.G.""" Find the major and age of students who do not have a cat pet.,"SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')" Name the lelast decile for roll of 428,SELECT MIN(decile) FROM table_name_63 WHERE roll = 428 What is the title and director for the movie with highest worldwide gross in the year 2000 or before?,"SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1" "Name the Away team score which has an Away team of st kilda, and a Crowd of 8157?","SELECT away_team AS score FROM table_name_3 WHERE away_team = ""st kilda"" AND crowd = 8157" Mention the series code of countries using pound sterling as their currency unit. Which country belongs to high income group among them.,"SELECT DISTINCT T1.CountryCode, T1.CurrencyUnit, T1.IncomeGroup FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Pound sterling' AND T1.IncomeGroup LIKE '%high income%'" Which states have more than 2 parks?,SELECT state FROM park GROUP BY state HAVING count(*) > 2; Which position did David Nugent play with an overall small than 187?,"SELECT position FROM table_name_79 WHERE overall > 187 AND player = ""david nugent""" What college did john sullivan attend?,"SELECT college FROM table_name_28 WHERE player = ""john sullivan""" "who was the opponent when the attendance was larger than 54,766?",SELECT opponent FROM table_name_27 WHERE attendance > 54 OFFSET 766 How many professors are in the accounting dept?,"SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = ""Accounting""" "Please list the years of film market estimations when the market is in country ""Japan"" in descending order.","SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = ""Japan"" ORDER BY T1.Year DESC" Find the ids and first names of the 3 teachers that have the most number of assessment notes?,"SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3" What is the google entity ID of Benjamin Hawkins?,SELECT google_entity_id_id FROM historical WHERE first_name = 'Benjamin' AND last_name = 'Hawkins' "For the goalie who had the most shutouts in 2010, what's his catching hand?",SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2010 GROUP BY T2.playerID ORDER BY SUM(T2.SHO) DESC LIMIT 1 List the names of people that are not entrepreneurs.,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur) what is the major of Tracy,select Major from Student where Fname = 'Tracy' Which sales person made the sale of 1635823.3967 last year? Give the Business Entity ID.,SELECT BusinessEntityID FROM SalesPerson WHERE SalesLastYear = '1635823.3967' Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team?,"SELECT record FROM table_name_59 WHERE visitor = ""nashville"" AND decision = ""ellis"" AND game > 32" What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?,"SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'" What are the codes of the countries that do not speak English and whose government forms are not Republic?,"SELECT Code FROM country WHERE GovernmentForm != ""Republic"" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = ""English""" What kind of car has the NASCAR Camping World Truck Series record?,"SELECT car_make FROM table_name_7 WHERE record = ""nascar camping world truck series""" What Bello has a 27 Liscumb and 6539 Libweshya?,"SELECT bello FROM table_name_35 WHERE liscumb = ""27"" AND libweshya = ""6539""" What is the broadcast date of the episode with 9.65 million viewers?,SELECT broadcast_date FROM table_name_39 WHERE viewership__millions_ = 9.65 How many horror movies were made by the worst directors?,SELECT COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid INNER JOIN directors AS T3 ON T1.directorid = T3.directorid WHERE T1.genre = 'horror' AND T3.d_quality = 0 "If the district is Chittorgarh, what is the area?","SELECT area__km²_ FROM table_2168295_1 WHERE district = ""Chittorgarh""" "Among the NBA All-star players in 1996 season , which have more than 70% free throw rate? Please give their player id.",SELECT playerID FROM player_allstar WHERE season_id = 1996 AND CAST(ft_made AS REAL) * 100 / ft_attempted > 70 Find the name of medication used on the patient who stays in room 111?,SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 Which model had a wheelbase of 136 inches?,"SELECT model FROM table_name_54 WHERE wheelbase_in = ""136""" How old is Zach?,"SELECT age from person where name = ""Zach""" what is TV Lounge amenity id?,SELECT T1.amenid FROM dorm_amenity AS T1 where T1.amenity_name = 'TV Lounge' What was the total for radio luxembourg?,"SELECT total FROM table_19439864_2 WHERE song = ""Radio Luxembourg""" How many starts did Hendrick motorsports have?,"SELECT MIN(starts) FROM table_1012730_1 WHERE team_s_ = ""Hendrick Motorsports""" What is the height of the fastest roller coaster in Austria?,"SELECT T2.Height FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = ""Austria"" order by T2.speed desc limit 1" What is the sector is the establishment is 110313?,SELECT sector FROM table_23802822_1 WHERE establishments = 110313 "Who are the actors starred in the film ""Bound Cheaper""?","SELECT T1.first_name, T1.last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'BOUND CHEAPER'" How many types of credit cards are there and how many are vista?,SELECT COUNT(CardNumber) FROM CreditCard WHERE CardType = 'vista' which last names are both used by customers and by staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city For the player fero lasagavibau who has the lowest start?,"SELECT MIN(start) FROM table_name_71 WHERE player = ""fero lasagavibau""" "Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?","SELECT MAX(season) FROM table_name_52 WHERE score = ""3 – 3 aet , 4–3 pen""" "Hmm, I also want to know the average savings balance of all savings accounts.",SELECT avg ( balance ) FROM savings "If the latitude is 08.979° s, what is the depth?","SELECT depth FROM table_25675509_1 WHERE latitude = ""08.979° S""" What is the most frequent status of bookings?,SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY COUNT(*) DESC LIMIT 1 List the names of the country that officially uses English as their language.,SELECT T2.Name FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.IsOfficial = 'T' AND T1.Language = 'English' List the project details of the projects which did not hire any staff for a researcher role ?,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) "What was the result when the attendance was 12,000?","SELECT result FROM table_name_77 WHERE attendance = ""12,000""" Show the id and salary of Mark Young.,"SELECT eid , salary FROM Employee WHERE name = 'Mark Young'" "Who directed the episodes that aired December 15, 1956? ","SELECT director FROM table_25800134_1 WHERE airdate = ""December 15, 1956""" What are the languages of the first two published books?,SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id ORDER BY T1.publication_date ASC LIMIT 2 "Attendance of 23,150 had what opponent?","SELECT opponent FROM table_name_49 WHERE attendance = ""23,150""" Which organization hired the most research staff?,SELECT * FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count ( * ) DESC LIMIT 1 How many tracks are in each genre?,"SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;" When 98 is the points what is the club?,"SELECT club FROM table_17941032_1 WHERE points = ""98""" What is the maximum weeks on top in the table?,SELECT Weeks_on_Top FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 Calculate the total price of shipped orders belonging to Land of Toys Inc. under the classic car line of products.,SELECT SUM(t3.priceEach * t3.quantityOrdered) FROM customers AS t1 INNER JOIN orders AS t2 ON t1.customerNumber = t2.customerNumber INNER JOIN orderdetails AS t3 ON t2.orderNumber = t3.orderNumber INNER JOIN products AS t4 ON t3.productCode = t4.productCode WHERE t4.productLine = 'Classic Cars' AND t1.customerName = 'Land of Toys Inc.' AND t2.status = 'Shipped' List the names of editors that are not on any journal committee.,SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee) What are department ids for departments with managers managing more than 3 employees?,"SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" "For the weather station has store no.9, what was the increased percentage of the average temperature from 2012/2/2 to 2012/2/3?",SELECT CAST((SUM(CASE WHEN T1.`date` = '2012-02-03' THEN T1.tavg * 1 ELSE 0 END) - SUM(CASE WHEN T1.`date` = '2012-02-02' THEN T1.tavg * 1 ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T1.`date` = '2012-02-02' THEN T1.tavg * 1 ELSE 0 END) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 9 What generation is the member born on 1992.12.23 in?,"SELECT generation FROM table_name_4 WHERE birthday = ""1992.12.23""" Identify the full name of the driver who delivered a shipment to the city of New York in February 2016.,"SELECT T3.first_name, T3.last_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T2.city_name = 'New York' AND T1.ship_date LIKE '2016-02%'" how about the total number of companies?,SELECT COUNT ( * ) from culture_company what about for each of the last two policies?,"SELECT count ( * ) , Policy_type_code FROM Customer_Policies GROUP BY Policy_type_code having policy_type_code = ""Life"" or policy_type_code = ""Car""" "What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has?","SELECT AVG(silver) FROM table_name_87 WHERE bronze < 15 AND nation = ""montenegro"" AND total > 11" How many times in total did the team Boston Red Stockings participate in postseason games?,SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ); What is the percentage of the podcast that are categorized in four or more categories?,SELECT COUNT(T1.podcast_id) FROM ( SELECT podcast_id FROM categories GROUP BY podcast_id HAVING COUNT(category) >= 4 ) AS T1 display all the information of the employees whose salary if within the range of smallest salary and 2500.,SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500 which tweet has the newest creation date?,SELECT * FROM tweets order by createdate desc limit 1 What ship was built in 2012?,SELECT ship FROM table_name_91 WHERE built = 2012 Opponent of @ atlanta flames had what game?,"SELECT game FROM table_name_44 WHERE opponent = ""@ atlanta flames""" What is the origin of aircraft in service in 1943 and retired in 1954?,"SELECT national_origin FROM table_13605170_2 WHERE retired = ""1954"" AND in_service = ""1943""" Which historical female legislator that have their term ended on the 3rd of March 1791?,"SELECT T1.first_name, T1.last_name FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.end = '1791-03-03' AND T1.gender_bio = 'F'" And what is the range of resolution in songs?,"SELECT min ( resolution ) , max ( resolution ) FROM song" What are the oppose rates of those?,SELECT Oppose_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 What is the Arrival time of the Patna Junction Station?,"SELECT arrival FROM table_name_62 WHERE station_name = ""patna junction""" What was the Margin of victory in the southwest golf classic Tournament?,"SELECT margin_of_victory FROM table_name_84 WHERE tournament = ""southwest golf classic""" What is the original air date of season 18?,SELECT original_air_date FROM table_11664625_2 WHERE no_in_season = 18 What is the location of the venue owned by johnson c. smith university?,"SELECT location FROM table_name_26 WHERE owner = ""johnson c. smith university""" What are the first name and last name of all the instructors?,"SELECT fname , lname FROM Faculty WHERE Rank = ""Instructor""" "What is the sum of checking and savings balances for all customers, ordered by the total balance?",SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance What about the advisor with the least number of students,SELECT advisor FROM Student GROUP BY advisor ORDER BY count ( * ) asc LIMIT 1 What are the names of the cameras that have taken picture of the most mountains?,SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1 What rank has a rating of 146.8? ,"SELECT rank FROM table_19517448_3 WHERE rating = ""146.8""" What is the order id and order details for the order more than two invoices.,"SELECT T2.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count(*) > 2" Give the mean life expectancy of countries in which English is not the official language.,"SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" AND T2.IsOfficial = ""T"")" What school colors for the friends' school with over 1000 enrolled?,"SELECT school AS Colors FROM table_name_70 WHERE enrolment > 1000 AND school = ""the friends' school""" What was the score of the Mariners game when they had a record of 56–21?,"SELECT score FROM table_name_91 WHERE record = ""56–21""" What was the percentage in 1980 in Brooklyn?,"SELECT MIN(1980) FROM table_name_70 WHERE borough = ""brooklyn""" Name the score for yuliya ustyuzhanina,"SELECT score FROM table_name_84 WHERE opponent = ""yuliya ustyuzhanina""" List any five countries which use English as an official language.,SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' LIMIT 5 Show the distinct position of players from college UCLA or Duke.,"SELECT DISTINCT POSITION FROM match_season WHERE College = ""UCLA"" OR College = ""Duke""" What are the names of the tourist attractions that have only been visited once?,SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count ( * ) = 1 Show the name and theme for all concerts and the number of singers in each concert.,"SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id" Who directs before 1949 with linda darnell leading and jonathan kent?,"SELECT director FROM table_name_60 WHERE year < 1949 AND leading_lady = ""linda darnell"" AND role = ""jonathan kent""" How many projects are there?,SELECT count(*) FROM Projects "Among all the customers of store no.1, how many of them are active?",SELECT COUNT(customer_id) FROM customer WHERE active = 1 AND store_id = 1 What are the dates for those support rates?,SELECT Date FROM candidate ORDER BY support_rate DESC LIMIT 3 How many titles have directors of matthew Penn and number in series of 143?,"SELECT COUNT(title) FROM table_2618119_1 WHERE directed_by = ""Matthew Penn"" AND no_in_series = 143" What was the lowest round for Paul Hubbard?,"SELECT MIN(round) FROM table_name_21 WHERE name = ""paul hubbard""" What is the latest year that data is available for?,SELECT MAX(year) FROM table_22834834_12 Give the address of the business with the most number of the low risk violations.,SELECT T2.address FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'Low Risk' GROUP BY T2.address ORDER BY COUNT(T1.business_id) DESC LIMIT 1 What is the average number of metres for the Dzelzavas Street 74?,"SELECT AVG(metres) FROM table_name_61 WHERE name = ""dzelzavas street 74""" Can you please provide me with a list of all paper IDs that are associated with author ID 57?,SELECT paperID FROM Authorship where authID = 57 "what are the items with highest average rating | Do you mean the the title of the item with the highest average rating? | yes, title of the item with highest average rating",SELECT T1.title 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 What is the high point toal for martine foubert placing below 2?,"SELECT MAX(points) FROM table_name_32 WHERE artist = ""martine foubert"" AND place > 2" what is the highest year that the U.S. captain is ken venturi?,"SELECT MAX(year) FROM table_name_61 WHERE us_captain = ""ken venturi""" What is the April 28 rank when the Mar 24 is 17?,"SELECT april_28 FROM table_name_92 WHERE mar_24 = ""17""" "Please list the social security numbers of the male employees with a salary of over $70,000 a year.","SELECT ssn FROM employee WHERE gender = 'M' AND CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) > 70000" Find the names of schools that have more than one donator with donation amount above 8.5.,SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING count(*) > 1 What colors does David Langdon use?,"SELECT colours FROM table_19624708_1 WHERE owner = ""David Langdon""" Give the average number of cities within markets that had a low market estimation larger than 10000?,SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000 "Can you show me all the product names, codes and ids? | Do you mean the product names, color codes and ids? | Yes please.","SELECT product_name,color_code,product_id from Products" "What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?","SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = ""-3"" AND democratic__republican = ""2/5""" What was the away team's score when Collingwood was the home team?,"SELECT away_team AS score FROM table_name_17 WHERE home_team = ""collingwood""" "What is Caps, when Province / Club is DRFC, and when Position is Center?","SELECT caps FROM table_name_49 WHERE province___club = ""drfc"" AND position = ""center""" Where was home with a record of 7–5–2?,"SELECT home FROM table_name_77 WHERE record = ""7–5–2""" Who wrote the lyrics for Mukti?,"SELECT lyricist FROM table_name_14 WHERE film = ""mukti""" "For the 1948-49 season, what was the At Home record?","SELECT home FROM table_name_31 WHERE season = ""1948-49""" List the order for all in-store sales along with the products sold.,"SELECT DISTINCT T1.OrderNumber, T2.`Product Name` FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T1.`Sales Channel` = 'In-Store'" "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 name of Constituency number 108?,"SELECT name FROM table_name_65 WHERE constituency_number = ""108""" What are the full names and cities of employees who have the letter Z in their first names?,"SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'" Which year was Codling open?,"SELECT openning_year FROM cinema where name = ""Codling""" "what is the venue when the score is 1 goal and the date is october 11, 1997?","SELECT venue FROM table_name_96 WHERE score = ""1 goal"" AND date = ""october 11, 1997""" What is the ID of the device used by the youngest user?,SELECT device_id FROM gender_age WHERE age = ( SELECT MIN(age) FROM gender_age ) What is the venue of game 3?,SELECT venue FROM table_name_88 WHERE game = 3 How many years has the Mercury Prize award been given?,"SELECT COUNT(year) FROM table_name_47 WHERE award = ""mercury prize""" "Tell the language of the movie ""C'era una volta il West"".",SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T1.title LIKE 'C%era una volta il West' Where was the Fairfield Barnett classic tournament held?,"SELECT location FROM table_11622771_1 WHERE tournament = ""Fairfield Barnett Classic""" Add a column with department name,"select T1.DEPARTMENT_ID, T1.DEPARTMENT_NAME, count ( * ) from departments AS T1 JOIN employees AS T2 where T1.DEPARTMENT_ID = T2.DEPARTMENT_ID group by T1.DEPARTMENT_ID" Show me the winery they are from,SELECT distinct Appelation FROM WINE WHERE Score > 93 List the address in Texas in the ascending order of city id.,SELECT address FROM address WHERE district = 'Texas' AND city_id = ( SELECT MIN(city_id) FROM address WHERE district = 'Texas' ) What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?,"SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" What is the record in the atlantic coast conference for the Miami team?,"SELECT acc_record FROM table_28744929_2 WHERE team = ""Miami""" "What is the highest Density for the independencia province, with an area smaller than 2,007.4?","SELECT MAX(density) FROM table_name_88 WHERE province = ""independencia"" AND area < 2 OFFSET 007.4" Name the player that went to notre dame,"SELECT player FROM table_name_88 WHERE college = ""notre dame""" May I also see the names of bottom 5 countries by number of invoices. Please show me country names and number of invoices.,"SELECT billing_country , COUNT ( * ) FROM invoices GROUP BY billing_country ORDER BY count ( * ) LIMIT 5" "Which year won has a Finish of t24, and a Country of england?","SELECT AVG(year_won) FROM table_name_6 WHERE finish = ""t24"" AND country = ""england""" What is the jersey number of the player from years 1986 – 1991 1997 – 1999?,"SELECT jersey_number_s_ FROM table_name_54 WHERE years = ""1986 – 1991 1997 – 1999""" What is the party and state of the legislator that has an open secrets ID of N00003689 and thomas ID of 186?,"SELECT T2.party, T2.state FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.opensecrets_id = 'N00003689' AND T1.thomas_id = 186 GROUP BY T2.party, T2.state" Who did the Jays play on August 30?,"SELECT opponent FROM table_name_53 WHERE date = ""august 30""" "Show me IDs of workshop groups that have bookings with status code ""stop""","SELECT T2.Workshop_Group_ID FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop""" "Which record has a Boxscore of w2, and a Loss of kline (2–3)?","SELECT record FROM table_name_89 WHERE boxscore = ""w2"" AND loss = ""kline (2–3)""" What's the address of the union bank of California tower?,"SELECT street_address FROM table_name_27 WHERE name = ""union bank of california tower""" What genre is the Banpresto game tittled Ranma ½: netsuretsu kakutouhen?,"SELECT genre FROM table_name_34 WHERE developer = ""banpresto"" AND japanese_title = ""ranma ½: netsuretsu kakutouhen""" What is the name and job title of the staff who was assigned the latest?,"SELECT T1.staff_name , T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1" What is the score when a loss was listed with Lannan (4-8)?,"SELECT score FROM table_name_48 WHERE loss = ""lannan (4-8)""" Where did Dennis Byrd go to college?,"SELECT college FROM table_name_29 WHERE player = ""dennis byrd""" How many viewers saw the episode written by kevin biegel & bill lawrence?,"SELECT us_viewers__in_million_ FROM table_27987623_1 WHERE written_by = ""Kevin Biegel & Bill Lawrence""" "Calculate the percentage of inspections with verified quality. Among them, how many businesses were from Chicago?","SELECT CAST(COUNT(CASE WHEN T2.results LIKE '%Pass%' THEN T2.inspection_id END) AS REAL) * 100 / COUNT(T2.inspection_id), COUNT(DISTINCT T2.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.city = 'CHICAGO'" What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?,"SELECT AVG(T3.Rate) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN EmployeePayHistory AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Engineering' AND STRFTIME('%Y', EndDate) > '2007' AND STRFTIME('%Y', T1.StartDate) < '2007'" Show the title and publication dates of books.,"SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID" Can you please list the room name and room id associated with each of those 3 base prices?,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3" "Among the customers with customer ID of 100 and below, how many of them have Thomas as their last name?",SELECT COUNT(customer_id) FROM customer WHERE last_name = 'Thomas' AND customer_id < 100 How many FA cup goals did dick taylor score in the year that he had 0 league goals?,"SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE name = ""dick taylor"" AND league_goals < 0" Which Year jennifer tarol barrientos is in?,"SELECT MAX(year) FROM table_name_50 WHERE delegate = ""jennifer tarol barrientos""" Who was the opponent before week 6 at cleveland municipal stadium?,"SELECT opponent FROM table_name_19 WHERE week < 6 AND game_site = ""cleveland municipal stadium""" "what is the number of points when the place is less than 7, the draw is more than 2 and the artist is piece of cake?","SELECT COUNT(points) FROM table_name_76 WHERE place < 7 AND draw > 2 AND artist = ""piece of cake""" Find the abbreviation and country of the airline that has fewest number of flights?,"SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1" How many courses are there in total?,SELECT count(*) FROM COURSE What is the average pick number for Washington State?,"SELECT AVG(pick) FROM table_name_32 WHERE school = ""washington state""" "What is the result of the game at kyiv, ukraine?","SELECT result FROM table_name_2 WHERE venue = ""kyiv, ukraine""" What is the weight in pounds of the heaviest player?,SELECT MAX(T2.weight_in_lbs) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id How many templates do we have?,SELECT count(*) FROM Templates What place was the player from Italy in ?,"SELECT place FROM table_name_32 WHERE country = ""italy""" "what is the result when the venue is singapore on september 8, 1996?","SELECT result FROM table_name_37 WHERE venue = ""singapore"" AND date = ""september 8, 1996""" What are the ids of all male students who do not play football?,"SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" Find names and times of trains that run through stations for the local authority Chiltern.,"SELECT t3.name , t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = ""Chiltern""" List all Zimbabwean players.,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'Zimbabwea' "Where us the club named ""Tennis Club"" located?","SELECT clublocation FROM club WHERE clubname = ""Tennis Club""" "what are the names of the buildings with institutions founded before 2003?",SELECT T1.name from building as T1 JOIN institution as T2 on T1.building_id = T2.building_id WHERE T2.founded < 2003 What is the average weight for each type of pet?,"SELECT avg(weight) , pettype FROM pets GROUP BY pettype" Where was the score 67-71-70=208?,SELECT place FROM table_name_26 WHERE score = 67 - 71 - 70 = 208 What are the names of all clubs that do not have any players?,SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player) Which year do the majority of the players were born?,SELECT DOB FROM Player GROUP BY DOB ORDER BY COUNT(DOB) DESC LIMIT 1 Return the countries of the mountains that have a height larger than 5000.,SELECT Country FROM mountain WHERE Height > 5000 What date did the show air when Rhod Gilbert was the headliner?,"SELECT airdate FROM table_23122988_1 WHERE headliner = ""Rhod Gilbert""" Give the language that is spoken in the most countries.,SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1 "Interesting... Okay, I can only see the first three entries on that table, so I assumed ""rem"" and ""auf"" were lower down and I simply couldn't see them. Can you show me a list of all of the different product names on the ""Product"" table?",SELECT product_name from product Find the number of medications prescribed for each brand.,"SELECT count(*) , T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand" What subdivision names (RU) have a code of by-hr?,"SELECT subdivision_name___ru____bgn_pcgn_ FROM table_290017_1 WHERE code = ""BY-HR""" What is the lowest number of laps for kyle petty with under 118 points?,"SELECT MIN(laps) FROM table_name_99 WHERE points < 118 AND driver = ""kyle petty""" What are the names of the products that were ordered by Alejandro Grove?,SELECT DISTINCT T3.`Product Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Alejandro Grove' "What is the total value for Solo, when the value of Sacks is 2, and when the Team is New York Jets?","SELECT COUNT(solo) FROM table_name_45 WHERE sacks = 2 AND team = ""new york jets""" WHAT PLACE WAS A SCORE 67-70=137?,SELECT place FROM table_name_48 WHERE score = 67 - 70 = 137 What are the names of all the physicians who took appointments.,SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID Which Away has an Opponent of slavia prague?,"SELECT away FROM table_name_7 WHERE opponent = ""slavia prague""" What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?,"SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" OR T2.Tourist_Details = ""Vivian""" What's the total number of episodes with the production code 2395113A?,"SELECT COUNT(title) FROM table_10953197_4 WHERE production_code = ""2395113A""" "Show the faculty id of each faculty member, along with the number of students he or she advises.","SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID" "Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many total number of matches?",SELECT COUNT(matches) FROM table_name_5 WHERE drawn < 24 AND lost < 17 AND win__percentage < 31.25 What category does the item ordered by Katherine Murray on 11/4/2018 in the South region belong to?,SELECT DISTINCT T3.Category FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Katherine Murray' AND T1.`Order Date` = '2018-11-04' AND T2.Region = 'South' Episode of 16 involves which performer 1?,SELECT performer_1 FROM table_name_64 WHERE episode = 16 What was the high rebounds from the date of April 14?,"SELECT high_rebounds FROM table_name_29 WHERE date = ""april 14""" Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.,"SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = ""PIT""" What is the membership card held by both members living in Hartford and ones living in Waterbury address?,SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury' what is the location when the time is 3:15?,"SELECT location FROM table_name_7 WHERE time = ""3:15""" Which player became the man of the series in the year 2012? Give the name and country of this player.,"SELECT T2.Player_Name, T3.Country_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Season_Year = 2012" "For the team with 39+1 points and fewer than 7 draws, how many wins were scored?","SELECT COUNT(wins) FROM table_name_32 WHERE points = ""39+1"" AND draws < 7" What are the first names of the professors who do not play Canoeing or Kayaking as activities?,SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' What are the names and decor of rooms with a king bed? Sort them by their price,"SELECT roomName , decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice;" What is the Record on July 12?,"SELECT record FROM table_name_10 WHERE date = ""july 12""" show names of all aircrafts?,select name from aircraft "In Shakespeare's works before 1600, list down the title of the tragic story he had written that involved a character named ""Tybalt"".",SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.DATE < 1600 AND T1.GenreType = 'Tragedy' AND T4.CharName = 'Tybalt' "Which winning team has Iowa city as the site, and december 3, 2006 as the date?","SELECT winning_team FROM table_name_42 WHERE site = ""iowa city"" AND date = ""december 3, 2006""" "How many rooms cost more than 120, for each different decor?","SELECT decor , count(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor;" What is the sum of all crowds present at the Glenferrie Oval venue?,"SELECT SUM(crowd) FROM table_name_35 WHERE venue = ""glenferrie oval""" "What is the average rank when the bronze is larger than 1, and silver is less than 0?",SELECT AVG(rank) FROM table_name_52 WHERE bronze > 1 AND silver < 0 What is the location of the Id no-1?,SELECT Location FROM party where Party_ID = 1 "What is the linearized sequenced of API calls of the method whose solution path is ""mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln""?",SELECT T2.ApiCalls FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln' What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active?,"SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = ""United Nations Observer Mission Uganda-Rwanda""" And on which date was this policy opened?,"SELECT t2.date_opened FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = ""Dayana Robel""" What is the deleted for tolland?,"SELECT deleted FROM table_name_71 WHERE county = ""tolland""" Who is the company's highest-paid single female employee? Include her full name and job title.,"SELECT T3.FirstName, T3.MiddleName, T3.LastName, T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'S' AND T1.Gender = 'F' ORDER BY T2.Rate DESC LIMIT 1" "Hmm, which poll source did this candidate belong to?",SELECT poll_source FROM candidate ORDER BY oppose_rate LIMIT 1 What was the date when the against was 3?,SELECT date FROM table_name_35 WHERE against = 3 "What was the score on a clay surface on May 29, 2006?","SELECT score FROM table_name_5 WHERE surface = ""clay"" AND date = ""may 29, 2006""" When were those branches opened?,"SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id" Return the number of airlines in the USA.,"SELECT count(*) FROM AIRLINES WHERE Country = ""USA""" What years were the Iowa State school/club team have a jazz club?,"SELECT years_for_jazz FROM table_11545282_19 WHERE school_club_team = ""Iowa State""" What is the id and trade name of the medicines can interact with at least 3 enzymes?,"SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3" On what date did the Team Minnesota play?,"SELECT date FROM table_17323092_7 WHERE team = ""Minnesota""" How many of the cmdlets are the 2008 version?,"SELECT COUNT(cmdlets) FROM table_14465871_2 WHERE version = ""2008""" Count the number of different nationalities of conductors.,SELECT count(DISTINCT Nationality) FROM conductor how many origin in the train table,SELECT count ( distinct origin ) FROM train "How many Byes have an Against of 972, and more than 11 wins?",SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11 "What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws?","SELECT COUNT(position) FROM table_name_83 WHERE difference = ""- 6"" AND lost = 3 AND drawn > 4" How many students does each advisor have?,"SELECT Advisor , count(*) FROM STUDENT GROUP BY Advisor" "On December 4, Tampa Bay has a record of 12-13-2.","SELECT record FROM table_name_42 WHERE home = ""tampa bay"" AND date = ""december 4""" "Provide the inspection ID of the establishment named ""PIZZA RUSTICA, INC.""","SELECT DISTINCT T2.inspection_id FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'PIZZA RUSTICA, INC'" "Which one took place on December 3, 1995?","SELECT result FROM table_name_60 WHERE date = ""december 3, 1995""" What is the electorates in 2009 for Modi Nagar?,"SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = ""modi nagar""" "What is the lowest number of districts (kecamatan) in the north sulawesi province with more than 1,510 villages?","SELECT MIN(number_of_districts__kecamatan_) FROM table_name_97 WHERE province = ""north sulawesi"" AND villages > 1 OFFSET 510" Name the height in ft for the player from wyoming,"SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = ""wyoming""" What player came from Cornell University (NCAA)?,"SELECT player FROM table_2897457_2 WHERE college_junior_club_team = ""Cornell University (NCAA)""" Who was the Visitor when the Home team was Anaheim on the Date of April 12?,"SELECT visitor FROM table_name_49 WHERE home = ""anaheim"" AND date = ""april 12""" What's the version of AutoCAD Architectural Desktop 3?,"SELECT version FROM table_19329117_1 WHERE official_name = ""AutoCAD Architectural Desktop 3""" What is zip code of customer with first name as Carole and last name as Bernhard?,"SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?,"SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = ""seattle thunderbirds"" AND pick__number < 131" what is the competition when the result is 1-1 and venue is gwangju?,"SELECT competition FROM table_name_35 WHERE result = ""1-1"" AND venue = ""gwangju""" Find the number of employees we have.,SELECT count(*) FROM Employees What is the total price of the order 10100?,SELECT SUM(t.priceEach * t.quantityOrdered) FROM orderdetails t WHERE t.orderNumber = '10100' What are the bed type of room id RND?,"SELECT bedType FROM Rooms where roomid = ""RND""" What is the code of the prevalent disease with the highest occurrences?,SELECT T2.code FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON T1.ITEM = T2.DESCRIPTION ORDER BY T1.OCCURRENCES DESC LIMIT 1 Name the least attendance for 10 october 2006,"SELECT MIN(attendance) FROM table_name_82 WHERE date = ""10 october 2006""" "What instrument did the musician with last name ""Heilo"" use in the song ""Badlands""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Badlands""" Find the total number of available hotels.,SELECT count(*) FROM HOTELS What is the literacy rate for groups that grew 103.1% between 1991 and 2001?,"SELECT literacy___percentage_ FROM table_10710364_2 WHERE growth__1991_2001_ = ""103.1%""" "What is the average, minimum, maximum, and total transaction amount?","SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions" Which directors had a movie in either 1999 or 2000?,SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000 Who are the players who were not in the Hall of Fame list.,"SELECT firstName, lastName FROM Master WHERE hofID IS NULL" Calculate the total rating of winners in OFTA Television Award and WGA Award (TV).,"SELECT SUM(T2.rating) FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.award_category IN ('Jupiter Award ', 'WGA Award (TV)');" When was the home Los Angeles Lakers?,"SELECT date FROM table_name_87 WHERE home = ""los angeles lakers""" Please list the names of all the restaurants that have met all requirements in one inspection.,SELECT DISTINCT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = 100 List the names of journalists who have not reported any event.,SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report) What is the swimsuit score when the interview was 9.74?,"SELECT swimsuit FROM table_11884814_3 WHERE interview = ""9.74""" What nation started in lane 3 of heat 2?,SELECT nationality FROM table_name_78 WHERE heat = 2 AND lane = 3 How many universities have a location that contains NY?,"SELECT count(*) FROM university WHERE LOCATION LIKE ""%NY%""" What was the position that Chris Robinson played?,"SELECT position FROM table_name_79 WHERE player = ""chris robinson""" What about their last names?,"select first_name,last_name from employees where first_name LIKE '%z%'" Show all information on the airport that has the largest number of international passengers.,SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 What number of voters did the Bronx have when the total number was 2054?,SELECT the_bronx FROM table_1108394_34 WHERE total = 2054 What are the total products value shipped to Brazil by Speedy Express Company?,SELECT SUM(T2.Quantity * T2.UnitPrice) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Shippers AS T3 ON T1.ShipVia = T3.ShipperID WHERE T3.CompanyName = 'Speedy Express' AND T1.ShipCountry = 'Brazil' "What is the average week on November 7, 1976 with an attendance less than 46,735?","SELECT AVG(week) FROM table_name_94 WHERE date = ""november 7, 1976"" AND attendance < 46 OFFSET 735" What was the Attendance after Week 7 at Tiger Stadium?,"SELECT COUNT(attendance) FROM table_name_27 WHERE game_site = ""tiger stadium"" AND week > 7" what country is Nou Mestalla in?,"SELECT country FROM stadium where name = ""Nou Mestalla""" I want to know the catalog number for album and seed records label for cd and title of grey,"SELECT catalog_number FROM table_name_66 WHERE format = ""album"" AND label = ""seed records"" AND formats = ""cd"" AND title = ""grey""" Which railroad is 112.6 kilometers from kingston? ,"SELECT name FROM table_16226584_1 WHERE km_from_kingston = ""112.6""" Please list any three customers with debt.,SELECT c_name FROM customer WHERE c_acctbal < 0 LIMIT 3 What are the albums produced in year 2010?,SELECT * FROM Albums WHERE YEAR = 2010 "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?",SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year "Which Position has Goals For of 52, and Goals Against larger than 70?",SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70 What kind of Socket has a Order part number of tmrm72dam22gg?,"SELECT socket FROM table_name_44 WHERE order_part_number = ""tmrm72dam22gg""" Which cities have exactly 3 parks?,SELECT city FROM park GROUP BY city HAVING count ( * ) = 3 "Which Method has a Round of 1, and a Record of 4–2?","SELECT method FROM table_name_37 WHERE round = 1 AND record = ""4–2""" Which round was Tom Morris picked in?,"SELECT COUNT(round) FROM table_name_16 WHERE player = ""tom morris""" Show the facility codes of apartments with more than 4 bedrooms.,SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 Give the flight numbers of flights arriving in Aberdeen.,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" At what Site was the Result W13-7?,"SELECT site FROM table_name_59 WHERE result = ""w13-7""" What is the enrollment for Foote Field?,"SELECT MAX(enrollment) FROM table_12896884_1 WHERE football_stadium = ""Foote Field""" List all payment methods and number of payments using each payment methods.,"SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;" What Russian word translates to bucket?,"SELECT russian FROM table_name_34 WHERE translation = ""bucket""" Which event happened in 1988?,"SELECT name FROM table_name_91 WHERE year = ""1988""" What was the series where the game was 5?,SELECT series FROM table_23286158_11 WHERE game = 5 Find the name of people whose age is greater than any engineer sorted by their age.,SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age How many of the faculties are the rank of professors?,"SELECT COUNT ( * ) FROM FACULTY WHERE rank = ""Professor""" Show the names of countries and the average speed of roller coasters from each country.,"SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name" Return the ids of templates that have the code PP or PPT.,"SELECT template_id FROM Templates WHERE template_type_code = ""PP"" OR template_type_code = ""PPT""" What is the average price for a dating application?,SELECT AVG(Price) FROM playstore WHERE Genres = 'Dating' What are the entry names of catalog with the attribute possessed by most entries.,SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1) How many league cup goals for tyrone thompson with 0 FLT goals?,"SELECT MIN(league_cup_goals) FROM table_name_46 WHERE name = ""tyrone thompson"" AND flt_goals > 0" What is the IHSAA class for Tipton?,"SELECT ihsaa_class FROM table_name_3 WHERE school = ""tipton""" "What shape has nickel as the metal, and one rupee as the denomination?","SELECT shape FROM table_name_78 WHERE metal = ""nickel"" AND denomination = ""one rupee""" What player is associated with soenderjyske.dk?,"SELECT name FROM table_name_58 WHERE source = ""soenderjyske.dk""" Name the sum of pick # for round less than 1,SELECT SUM(pick__number) FROM table_name_92 WHERE round < 1 What is the report for Challenge Stadium?,"SELECT report FROM table_name_29 WHERE venue = ""challenge stadium""" "Show the songs that have result ""nominated"" at music festivals.","SELECT T2.Song FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T1.Result = ""Nominated""" What are the names of the technicians that are assigned to repair machines with more point values than 70?,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70 Did the I Brazilian Grand Prix have a report?,"SELECT report FROM table_1140088_6 WHERE race_name = ""I Brazilian Grand Prix""" List all of the player ids with a height of at least 180cm and an overall rating higher than 85.,SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85 What was the win for 4 matches with a success rate of 25%?,"SELECT wins FROM table_name_70 WHERE matches = ""4"" AND success_rate = ""25%""" How about the name of the document that was accessed the most amount of times?,SELECT document_name FROM documents ORDER BY access_count DESC LIMIT 1 What are the average maximum and minimum temperatures in May 2015 when the mean humidity is between 65 and 75?,"SELECT AVG(max_temperature_f), AVG(min_temperature_f) FROM weather WHERE date LIKE '5/%/2015' AND mean_humidity BETWEEN 65 AND 75" What is the average area with valparaíso as the capital?,"SELECT AVG(area) FROM table_name_34 WHERE capital = ""valparaíso""" What is the location of the match with a round bigger than 1 where the opponent was Yoshihiro Akiyama?,"SELECT location FROM table_name_62 WHERE round > 1 AND opponent = ""yoshihiro akiyama""" " who is the runner-up where location is ellenton, fl and year is 2004","SELECT runner_up FROM table_11214772_1 WHERE location = ""Ellenton, FL"" AND year = ""2004""" Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department.,"SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'" "What are the ids, names and genders of the architects who built two bridges or one mill?","SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 1" List all of the award winners' birth dates.,SELECT T1.birthdate FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Winner'; Who has the low lap total in a maserati with grid 2?,"SELECT MIN(laps) FROM table_name_47 WHERE constructor = ""maserati"" AND grid = 2" "What is the average week for the game against baltimore colts with less than 41,062 in attendance?","SELECT AVG(week) FROM table_name_12 WHERE opponent = ""baltimore colts"" AND attendance < 41 OFFSET 062" "Write the messages of those who donated to the Newark School District in the coordinates of 40.735332, -74.196014.",SELECT T1.donation_message FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_latitude = 40.735332 AND T2.school_longitude = -74.196014 AND T2.school_district = 'Newark School District' "What are the states or counties of the address of the stores with marketing region code ""CA""?","SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = ""CA""" what percentage is brooklyn when manhattan is 15.5%?,"SELECT brooklyn FROM table_23837321_4 WHERE manhattan = ""15.5_percentage""" What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall?,"SELECT MIN(bronze) FROM table_name_51 WHERE total = 1 AND rank = ""12"" AND gold < 1" How many distinct parties are there for representatives?,SELECT COUNT(DISTINCT Party) FROM representative What is average and maximum salary of all employees.,"SELECT avg ( salary ) , max ( salary ) FROM Employee" "who were the ""candidate"" of South Carolina 6?","SELECT candidates FROM table_2668243_22 WHERE district = ""South Carolina 6""" Who is team c when dhez javier is team e?,"SELECT team_c FROM table_name_44 WHERE team_e = ""dhez javier""" List the airport code and name in the city of Anthony.,"SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = ""Anthony""" What are the names of the drama workshop groups with address in Feliciaberg city?,"SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" How many state delegates did Candidate Mitt Romney have?,"SELECT MAX(state_delegate) FROM table_16186152_1 WHERE candidate = ""Mitt Romney""" What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?,SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE san_javier_municipality___percentage_ = 31 "Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000?","SELECT country FROM table_name_10 WHERE rank > 68 AND capacity = ""32,000"" AND city = ""santa fe""" Filter the list to show only those rows with a number in the count column that is greater than 1,"SELECT T2.track_id,T2.name,count ( * ) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id having count ( * ) > 1" What did the away team score when playing South Melbourne?,"SELECT away_team AS score FROM table_name_44 WHERE home_team = ""south melbourne""" On which track did Takashi Kogure hold pole position?,"SELECT track FROM table_name_86 WHERE pole_position = ""takashi kogure""" Can you list all schools with less than 5 different departments?,SELECT school_code FROM department GROUP BY school_code HAVING count ( DISTINCT dept_name ) < 5 What was the capacity for the Denver Broncos?,"SELECT capacity_percentage FROM table_28884858_2 WHERE team = ""Denver Broncos""" "In books published by Ace Book, what is the percentage of English books published?",SELECT CAST(SUM(CASE WHEN T1.language_name = 'English' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM book_language AS T1 INNER JOIN book AS T2 ON T1.language_id = T2.language_id INNER JOIN publisher AS T3 ON T3.publisher_id = T2.publisher_id WHERE T3.publisher_name = 'Ace Book' Tell me total number of Male students and total number of female students.....,"SELECT sex, count ( * ) FROM STUDENT group by sex" What is the link abilities when the predecessors is ti-85?,"SELECT link_abilities FROM table_11703336_1 WHERE predecessors = ""TI-85""" show the maximum number of floors for all buildings?,SELECT max ( floors ) FROM building "How many current drivers, as of March 20, 2010 does Denmark have?","SELECT current_march_20, _2010 FROM table_19487922_2 WHERE country = ""Denmark""" What were the drawn with points against at 416?,"SELECT drawn FROM table_12828723_5 WHERE points_against = ""416""" "Find the name, city, and country of the airport that has the highest latitude.","SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1" Show all the activity names and the number of faculty involved in each activity.,"SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID" What was the amount of orders for the customer that had that most orders?,SELECT count ( * ) FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 "Who won the event with a top prize of $2,434,061?","SELECT name FROM table_name_28 WHERE prize = ""$2,434,061""" Which physicians prescribe a medication of brand X? Tell me the name and position of those physicians.,"SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" How many of the directors have more than 1 film?,SELECT count ( distinct T1.director ) FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title "For the Australian Open, in 2007 the result was A, but what was the result in 2012?","SELECT 2012 FROM table_name_4 WHERE 2007 = ""a"" AND tournament = ""australian open""" "If the amount of U.S. viewers is 2.14 million, who was the episode directed by?","SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = ""2.14""" "In season is 2008–09, how many wins did they have?","SELECT w__ot_so_ FROM table_20833768_4 WHERE season = ""2008–09""" Please list the names of all the suppliers for parts under Brand#55.,SELECT T3.s_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_brand = 'Brand#55' Show the station name and number of trains in each station.,"SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id" what is the customer name of customer id 2,SELECT customer_name FROM Customers WHERE customer_id = 2 "If I'm from the Muscle Machine Inc, to which e-mail adress should I write a letter if I want to reach the superior of my sales representitive?",SELECT t2.email FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t1.customerName = 'Muscle Machine Inc' Who was the opponent of the game on August 8?,"SELECT opponent FROM table_name_36 WHERE date = ""august 8""" "If the episode title is Pressures, what are the names of the cast?","SELECT cast FROM table_2570269_2 WHERE episode_title = ""Pressures""" How many girl students who are younger than 25?,SELECT count(*) FROM student WHERE sex = 'F' AND age < 25 How many rebound did the person who scored 147 points have?,SELECT COUNT(rebounds) FROM table_22824199_1 WHERE points = 147 What was the total number of games on January 20?,SELECT COUNT(game) FROM table_name_75 WHERE january = 20 What is the Apps for the player with 150 Goals and a Ratio of 0.52?,SELECT apps FROM table_name_81 WHERE ratio = 0.52 AND goals = 150 "Japan (JPN) with a total of less than 5, has what average gold medals?","SELECT AVG(gold) FROM table_name_51 WHERE nation = ""japan (jpn)"" AND total < 5" "What are the paper IDs of papers presented in conferences has a homepage starts with ""http://www.informatik.uni-trier.de/~ley/db/conf/""?",SELECT T1.Id FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.HomePage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%' What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5?,"SELECT COUNT(co_2_g_km) FROM table_name_20 WHERE fuel_type = ""diesel"" AND manufacturer = ""fiat"" AND l_100km_urban__cold_ > 6.3 AND mpg_uk_combined = 43.5" How many cities does congressman Pierluisi Pedro represent?,SELECT COUNT(DISTINCT T1.city) FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Pierluisi' AND T3.last_name = 'Pedro' Name the percentage change yoy for presbyterian college,"SELECT percentage_change_yoy FROM table_27956_3 WHERE institution = ""Presbyterian College""" Which professor taught the least amount of courses?,SELECT p_id FROM taughtBy GROUP BY p_id ORDER BY COUNT(course_id) ASC LIMIT 1 Find the payment method that is used most frequently.,SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 How many ranks had 205 matches?,SELECT COUNT(rank) FROM table_name_54 WHERE matches = 205 What day did the team play charlotte?,"SELECT date FROM table_17058116_6 WHERE team = ""Charlotte""" Calculate the total cost of the orders by Brad Thomas in 2016.,"SELECT SUM((T1.Sales / (1 - T1.Discount)) * T1.Quantity - T1.Profit) AS cost FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T1.`Product ID` = T3.`Product ID` AND T1.Region = T3.Region WHERE T1.Region = 'East' AND T2.`Customer Name` = 'Brad Thomas' AND strftime('%Y', T1.`Order Date`) = '2016'" "Find the names of the users whose number of followers is greater than that of the user named ""Tyler Swift"".",SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift') "Wolfgang Reitherman has directed several Disney movies, which one has the highest grossing after accounting for inflation?","SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Wolfgang Reitherman' ORDER BY CAST(REPLACE(SUBSTR(inflation_adjusted_gross, 2), ',', '') AS REAL) DESC LIMIT 1" Name the name of bowl for 2006 season,"SELECT COUNT(name_of_bowl) FROM table_2517159_1 WHERE last_appearance = ""2006 Season""" List the name of a building along with the name of a company whose office is in the building.,"SELECT T3.name , T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id" What is the lowest game when the score is 102-104?,"SELECT MIN(game) FROM table_name_53 WHERE score = ""102-104""" Name the segment b for 226 episode,SELECT segment_b FROM table_15187735_18 WHERE episode = 226 "What Investing Dragons had a request of £100,000?","SELECT investing_dragon_s_ FROM table_name_87 WHERE money_requested__£_ = ""100,000""" In what Season does the Internazionale Club have more than 2 Apps?,"SELECT season FROM table_name_90 WHERE apps > 2 AND club = ""internazionale""" What is the male and female ratio among the professors?,SELECT CAST(SUM(CASE WHEN gender = 'Male' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN gender = 'Female' THEN 1 ELSE 0 END) FROM prof Name the club team for overall of 188 for canada,"SELECT club_team FROM table_name_72 WHERE nationality = ""canada"" AND overall = 188" Provide hockey's sport id.,SELECT id FROM sport WHERE sport_name = 'Hockey' "Provide the destination city of the shipment shipped by January 16, 2017.",SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_date = '2017-01-16' How many platforms have nanaly fletch as the character?,"SELECT COUNT(platform) FROM table_28178595_2 WHERE character = ""Nanaly Fletch""" What are the maximum and minimum resolution of songs whose duration is 3 minutes?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""" What is the 2nd leg of goiás team 2?,"SELECT 2 AS nd_leg FROM table_name_29 WHERE team__number2 = ""goiás""" When fc schwandorf is the oberpfalz what is the oberbayern b?,"SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = ""FC Schwandorf""" "WHich Venue has a Year larger than 2003, and a Position of 10th?","SELECT venue FROM table_name_11 WHERE year > 2003 AND position = ""10th""" "Hello! Could you provide me with a list of all of the channel IDs for which the ""time of day"" is morning?",SELECT Channel_ID from broadcast WHERE Time_of_day = 'Morning' In which game did the opponent score more than 103 and the record was 1-3?,"SELECT AVG(game) FROM table_name_32 WHERE record = ""1-3"" AND opponents > 103" On what date did Goal 24 take place?,SELECT date FROM table_name_76 WHERE goal = 24 Which premiere had more than 15 episodes?,SELECT premiere FROM table_name_36 WHERE episodes > 15 "Show gas station id, location, and manager_name for all gas stations ordered by open year.","SELECT station_id , LOCATION , manager_name FROM gas_station ORDER BY open_year" Name the IATA for jessore,"SELECT iata FROM table_name_80 WHERE city = ""jessore""" What is the Country of the Player with a Score of 75-70-74=219?,SELECT country FROM table_name_13 WHERE score = 75 - 70 - 74 = 219 What is the head of that department?,SELECT head FROM department GROUP BY departmentID ORDER BY count ( departmentID ) LIMIT 1 Who was the Coat of Cash Wearing Celebrity in Episode 6?,SELECT coat_of_cash_wearing_celebrity FROM table_name_81 WHERE episode_number = 6 Which station has a number less than 5 and an l stop?,"SELECT station FROM table_name_43 WHERE number < 5 AND stop = ""l""" Show the first name and last name for the customer with account name 900.,"SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""900""" what is the jobe title code of department id 5,SELECT job_title_code from Staff_Department_Assignments where department_id = 5 What was the official rating 16-39 of episode 9?,SELECT official_rating_16_39 FROM table_29773532_21 WHERE episode = 9 To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.,SELECT T2.GroupName FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID GROUP BY T2.GroupName ORDER BY COUNT(T1.BusinessEntityID) LIMIT 1 what's the player where 50 is 2 and n/o is 0,SELECT player FROM table_10621256_1 WHERE 50 = 2 AND n_o = 0 How many players named Jeff Brown were drafted,"SELECT COUNT(position) FROM table_16441561_5 WHERE player = ""Jeff Brown""" List the first and last name of all players in the order of birth date.,"SELECT first_name , last_name FROM players ORDER BY birth_date" Which one of the songs was originally performed by Rickie Lee Jones?,"SELECT song_choice FROM table_12310814_1 WHERE original_artist = ""Rickie Lee Jones""" "In episode nominated in Annie Awards, how many of the episodes have a percent greater than 6?",SELECT COUNT(*) FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.organization = 'Annie Awards' AND T1.result = 'Nominee' AND T2.percent > 6; what player has place t10,"SELECT player FROM table_name_37 WHERE place = ""t10""" List the names of teachers in ascending order of age.,SELECT Name FROM teacher ORDER BY Age ASC What position did the player from the saskatchewan roughriders (via toronto) play?,"SELECT position FROM table_name_31 WHERE cfl_team = ""saskatchewan roughriders (via toronto)""" "For each station, return its longitude and the average duration of trips that started from the station.","SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id" What tournament in 2006 had a score of 0-0?,"SELECT tournament FROM table_name_5 WHERE 2006 = ""0-0""" What are their jobs?,"select name, job from person where name in ( select friend from PersonFriend where name = ""Zach"" ) " "What are the ids of the problems that are from the product ""voluptatem"" and are reported after 1995?","SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = ""voluptatem"" AND T1.date_problem_reported > ""1995""" what is the city of Alice,SELECT city FROM Person where name = 'Alice' Which main cast seasons were portrayed by Joe Jonas?,"SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by = ""joe jonas""" State the name of the city with the most venues.,SELECT T1.City_Name FROM City AS T1 INNER JOIN Venue AS T2 ON T1.City_Id = T2.City_Id GROUP BY T1.City_Id ORDER BY COUNT(T2.Venue_Id) DESC LIMIT 1 What is average age for different job title?,"SELECT AVG(age), job FROM Person GROUP BY job" Which Crowd has a Home team of richmond?,"SELECT SUM(crowd) FROM table_name_14 WHERE home_team = ""richmond""" hi. can you tell me which product made the highest number of outcomes? | What attributes of the product that made the highest number of outcomes would you like to know? | I would like to know the most number of outcomes for all outcome codes,SELECT count ( outcome_code ) from project_outcomes group by outcome_code order by count ( outcome_code ) desc limit 1 How many orders are there?,SELECT count ( * ) FROM orders "Find the number of members of club ""Pen and Paper Gaming"".","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Pen and Paper Gaming""" "With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?","SELECT number FROM table_name_15 WHERE builder = ""baldwin locomotive works"" AND works_number = 40864" What are the notes with the time 6:24.21?,"SELECT notes FROM table_name_94 WHERE time = ""6:24.21""" who is the sponsor of jean luc bouche?,"SELECT Sponsor_Name FROM player WHERE Player_name = ""Jean Luc Bouché""" What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?,SELECT COUNT(longitude) FROM table_name_1 WHERE ansi_code = 1036573 AND water__sqmi_ < 0.404 "what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?","SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = ""london overground"" AND destination = ""west croydon""" "At Time Warner Cable Arena 12,096, what was the high points?","SELECT high_points FROM table_name_85 WHERE location_attendance = ""time warner cable arena 12,096""" what was the score in the loss to tapani (0-1)?,"SELECT score FROM table_name_39 WHERE loss = ""tapani (0-1)""" Which team was the away team when home team was essendon?,"SELECT away_team FROM table_29090919_1 WHERE home_team = ""Essendon""" "Among the transactions made in July, 2014, how many of them were made by a male customer?","SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Gender = 'M' AND STRFTIME('%Y-%m', T2.TransactionDate) = '2014-07'" How many DVD volumes was identified by Skippy Johnson?,"SELECT dvd_volume FROM table_name_36 WHERE identity_ies_ = ""skippy johnson""" On which episode number is event 4 The Wall and event 1 the Pendulum?,"SELECT COUNT(episode_number) FROM table_17257687_1 WHERE event_4 = ""The Wall"" AND event_1 = ""Pendulum""" Who was the winning driver in the FR2.0 11 series? ,"SELECT winning_driver FROM table_25572068_1 WHERE series = ""FR2.0 11""" How many camera lenses have a focal length longer than 15 mm?,SELECT count(*) FROM camera_lens WHERE focal_length_mm > 15 "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?",SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4 Show the number of card types.,SELECT count(DISTINCT card_type_code) FROM Customers_Cards "What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?","SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested" What is the city code of student Tracy kim?,"SELECT city_code from student where fname = ""Tracy"" and lname = ""Kim""" What nationality is Northwood School (N.Y.)?,"SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = ""northwood school (n.y.)""" What was the position of the team Minneapolis Lakers during round T?,"SELECT position FROM table_name_62 WHERE round = ""t"" AND team = ""minneapolis lakers""" "What is the Date, when Partnering is ""Francesca Lubiani"", and when Opponent in Final is ""Yuliya Beygelzimer / Jennifer Hopkins""?","SELECT date FROM table_name_10 WHERE partnering = ""francesca lubiani"" AND opponent_in_final = ""yuliya beygelzimer / jennifer hopkins""" What Winning driver has a Name of mugello circuit?,"SELECT winning_driver FROM table_name_55 WHERE name = ""mugello circuit""" What team has a 118 Point for?,"SELECT team FROM table_name_24 WHERE points_for = ""118""" "Find the location of the club ""Pen and Paper Gaming"".","SELECT clublocation FROM club WHERE clubname = ""Pen and Paper Gaming""" "Give me the product type, name and price for all the products supplied by supplier id 3.","SELECT T2.product_type_code , T2.product_name , T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3" What is the Score with a Date that is march 12?,"SELECT score FROM table_name_93 WHERE date = ""march 12""" how many players played running back where status is made 53-man roster at start of 2009 season,"SELECT COUNT(player) FROM table_20898602_1 WHERE status = ""Made 53-man roster at start of 2009 season"" AND position = ""Running back""" In how many counties did McCain get 65.72% of the votes?,"SELECT COUNT(county) FROM table_20799587_1 WHERE mccain_percentage = ""65.72%""" What was the first leg score in the 2nd round?,"SELECT first_leg FROM table_name_41 WHERE round = ""2nd""" Return the id and name of the document with the most paragraphs.,"SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1" "How many events with ""Marriage"" type codes are there? | There are 5 events with the ""Marriage"" service type code. | What are event details associated with the event of this type code?",SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage' Does Trinity (valhalla) have HDMI?,"SELECT hdmi FROM table_name_29 WHERE codename = ""trinity (valhalla)""" What is the first name and job id for all employees in the Finance department?,"SELECT T1.first_name, T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'" Find the distinct winery of wines having price between 50 and 100.,SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100 "Count the number of games taken place in park ""Columbia Park"" in 1907.",SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'; Which nation has the highest GDP? Please give the nation's full name.,SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1 What was the course called that had an Edition of 117th?,"SELECT course FROM table_name_68 WHERE edition = ""117th""" What buildings have course sections offered then?,SELECT building FROM SECTION where semester = 'Fall' and YEAR = 2002 Find the white grape used to produce wines with scores above 90.,"SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White"" AND T2.score > 90" What is the score for the game larger than 4 in series 3-2?,"SELECT score FROM table_name_77 WHERE game > 4 AND series = ""3-2""" "Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?",SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0 State the delivery date of cookware.,"SELECT T FROM ( SELECT DISTINCT IIF(T2.`Product Name` = 'Cookware', T1.DeliveryDate, NULL) AS T FROM `Sales Orders` T1 INNER JOIN Products T2 ON T2.ProductID = T1._ProductID ) WHERE T IS NOT NULL" How many tracks have an unformatted capacity per side of 2000kb?,"SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = ""2000kb""" Which country has Hydra Head Records with a 2lp format?,"SELECT country FROM table_name_97 WHERE format = ""2lp"" AND label = ""hydra head records""" "For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team?","SELECT winning_team FROM table_name_15 WHERE winning_driver = ""emerson fittipaldi"" AND pole_position = ""michael andretti"" AND circuit = ""cleveland burke lakefront airport""" WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?,"SELECT COUNT(round) FROM table_name_59 WHERE player = ""nicholas tremblay""" WHAT IS THE PLACE WITH A SCORE OF 76-69-64-70=279?,SELECT place FROM table_name_62 WHERE score = 76 - 69 - 64 - 70 = 279 What are all the names of the pilots who flew a flight in the United States?,SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' Which physicians are affiliated with either Surgery or Psychiatry department? Give me their names.,SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry' "What is the score of the United States, which has a to par of +5?","SELECT score FROM table_name_84 WHERE country = ""united states"" AND to_par = ""+5""" What are the word pairs that occured only twice?,"SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.occurrences = 2" "What English word has the same meaning as the German word ""german""?","SELECT english FROM table_name_3 WHERE ""german"" = ""german""" Name the total number of wind m/s for sunday emmanuel,"SELECT COUNT(wind__m_s_) FROM table_1231316_6 WHERE athlete = ""Sunday Emmanuel""" Can you show me the id of the instructor who is from the History department?,SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' How did the election end for Terry L. Bruce?,"SELECT result FROM table_1341586_14 WHERE incumbent = ""Terry L. Bruce""" How many budget types do we have?,SELECT count(*) FROM Ref_budget_codes "What is the owner's name of the of the business that violates 103156 on June 12, 2014?",SELECT DISTINCT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.violation_type_id = 103156 AND T1.`date` = '2014-06-12' Show the statuses of roller coasters longer than 3300 or higher than 100.,SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100 "Where was d: ~50nm, l: ~600nm geometry researched?","SELECT researched_at FROM table_30057479_1 WHERE geometry = ""D: ~50nm, L: ~600nm""" List the official full names and genders of legislators who have Collins as their last name.,"SELECT official_full_name, gender_bio FROM current WHERE last_name = 'Collins'" When did they visit parking?,"SELECT T3.visit_date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" union SELECT T3.VISIT_DATE FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Marcelle""" What year resulted in 54 laps?,SELECT year FROM table_name_39 WHERE laps = 54 On which datebis arco arena 17361 the location attendance?,"SELECT date FROM table_23285805_8 WHERE location_attendance = ""Arco Arena 17361""" How did Kyran Muller submit his complaint?,SELECT DISTINCT T2.`Submitted via` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Kyran' AND T1.last = 'Muller' What's the original season in 11th place?,"SELECT original_season FROM table_name_15 WHERE placing = ""11th place""" What is the count of the car models produced in the United States?,SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa'; What is the score of the scores when Game had a Record of 17-29?,"SELECT SUM(game) FROM table_name_27 WHERE record = ""17-29""" How many gold medals when the total is more than 1 and 18 silver?,SELECT MIN(gold) FROM table_name_80 WHERE total > 1 AND silver = 18 What is the publication date of the book with the most pages?,SELECT publication_date FROM book ORDER BY num_pages DESC LIMIT 1 What are the names of all video games that are collectible cards?,"SELECT gname FROM Video_games WHERE gtype = ""Collectible card game""" Show all statement id and the number of accounts for each statement.,"SELECT STATEMENT_ID , count(*) FROM Accounts GROUP BY STATEMENT_ID" What is the most common first name among the vendor contact?,SELECT FirstName FROM Person WHERE PersonType = 'VC' GROUP BY FirstName ORDER BY COUNT(*) DESC LIMIT 1 "What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?","SELECT MIN(grid) FROM table_name_28 WHERE team = ""pkv racing"" AND points = 13 AND laps < 64" how many projects has stuff worked as leaders total?,SELECT count ( distinct project_id ) FROM Project_Staff WHERE role_code = 'leader' What are the names of all students who took a class and the corresponding course descriptions?,"SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code" How many bike stations were installed in San Jose in 2014? Indicate the names of the stations.,"SELECT SUM(CASE WHEN city = 'San Jose' AND SUBSTR(installation_date, -4) = '2014' THEN 1 ELSE 0 END) FROM station UNION SELECT name FROM station WHERE city = 'San Jose' AND SUBSTR(installation_date, -4) = '2014'" What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?,"SELECT eagle_riders FROM table_name_27 WHERE japanese_voice_actor = ""katsuji mori""" Which word has the most repetitions in the Catalan language? Give the ID of the word.,SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words ) What are the names of body builders?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID What contestant had a starting BMI of 42.2?,SELECT contestant FROM table_name_10 WHERE start_bmi = 42.2 "Find all the papers published by ""Aaron Turon"".","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Aaron"" AND t1.lname = ""Turon""" What date was the claim made?,SELECT Date_Claim_Made FROM Claims What date was the game that home team torquay united played?,"SELECT date FROM table_name_76 WHERE home_team = ""torquay united""" "How many times greater is the appearances of the biword pair ""a base"" than ""a decimal""?",SELECT CAST(occurrences AS REAL) / ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'decimal' ) ) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'base' ) Which business had the highest number of inspections done? Calculate the percentage of passed and failed inspections of the said business.,"SELECT T2.dba_name , CAST(SUM(CASE WHEN T1.results = 'Pass' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.inspection_id) AS percentagePassed , CAST(SUM(CASE WHEN T1.results = 'Fail' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.inspection_id) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no GROUP BY T2.dba_name ORDER BY COUNT(T1.license_no) DESC LIMIT 1" Provide the match IDs which were held on 18th April 2015.,SELECT Match_Id FROM Match WHERE Match_Date LIKE '%2015-04-18%' what is the average of account balance?,SELECT avg ( acc_bal ) FROM customer Show all the cinema names and opening years in descending order of opening year.,"SELECT name , openning_year FROM cinema ORDER BY openning_year DESC" Give the product ID and name of the product with the highest prices among the quantity ranges from 400 to 500.,"SELECT T1.ProductID, T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T2.quantity BETWEEN 400 AND 500 ORDER BY T1.Price DESC LIMIT 1" Find the name and checking balance of the account with the lowest savings balance.,"SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" Show the album names and ids for albums that contain tracks with unit price bigger than 1.,"SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID" What are the names of all the scientists in alphabetical order?,SELECT name FROM scientists ORDER BY name who is using Appliance (Linux) Operating system? | Do you want the name of the accelerator? | yes,"SELECT name from Web_client_accelerator where operating_system = ""Appliance ( Linux ) """ What season did a United States center play in?,"SELECT season FROM table_name_46 WHERE nationality = ""united states"" AND position = ""center""" "What's the score for 1992, with the result of a loss?","SELECT score FROM table_name_65 WHERE year = 1992 AND result = ""loss""" what are their names?,SELECT name FROM browser What are their names?,"SELECT LName, Fname FROM STUDENT" What is the Home team score for the Home team of Melbourne?,"SELECT home_team AS score FROM table_name_98 WHERE home_team = ""melbourne""" Calculate the difference between sales of games from region ID 2 and region ID 3.,SELECT SUM(CASE WHEN T.region_id = 2 THEN T.num_sales ELSE 0 END) - SUM(CASE WHEN T.region_id = 3 THEN T.num_sales ELSE 0 END) FROM region_sales t "Given the branches are Alexandre, Popert, Stanley, Zytogorski, Cochrane, Taverner, Saint Amant, and Brooke Greville, which have members in Louisville, Kentucky?","SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville, Kentucky'" WHAT IS THE BIGGEST BUDGET OF MOVIE TABLE?,SELECT Budget_million FROM movie order by Budget_million desc limit 1 What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?,SELECT f_id FROM song WHERE resolution > (SELECT max(resolution) FROM song WHERE rating < 8) What is the highest total number?,SELECT MAX(total) FROM table_25831483_1 How many 180s have legs won of 45?,SELECT MAX(180 AS s) FROM table_20948329_1 WHERE legs_won = 45 "Return the apartment numbers of the apartments with type code ""Flat"".","SELECT apt_number FROM Apartments WHERE apt_type_code = ""Flat""" What score has a record of 21-25-7-4?,"SELECT score FROM table_name_92 WHERE record = ""21-25-7-4""" how many store are presented on the table,SELECT count ( * ) FROM store What is the profit of the product with the highest list price and of the product with the lowest list price other than 0? Indicates the depth the component is from its parent.,"SELECT ( SELECT ListPrice - StandardCost FROM Product WHERE ListPrice != 0 ORDER BY ListPrice DESC LIMIT 1 ) , ( SELECT ListPrice - StandardCost FROM Product WHERE ListPrice != 0 ORDER BY ListPrice LIMIT 1 )" What is the lowest number of laps with more than 16 points?,SELECT MIN(laps) FROM table_name_29 WHERE points > 16 How many were penanced for a total of 7666?,"SELECT penanced FROM table_name_48 WHERE total = ""7666""" How much money for 1st place with a to par less than 1?,"SELECT COUNT(money___) AS $__ FROM table_name_51 WHERE place = ""1"" AND to_par < 1" List the name and assets of each company in ascending order of company name.,"SELECT name , Assets_billion FROM Companies ORDER BY name ASC" What year had a record of 4-21?,"SELECT year FROM table_name_32 WHERE record = ""4-21""" Who were the Australian swimmers?,SELECT name FROM swimmer where nationality = 'Australia' Provide the International Standard Book Number of the book The Mystery in the Rocky Mountains.,SELECT isbn13 FROM book WHERE title = 'The Mystery in the Rocky Mountains' What is the swimsuit score for the item that has 7.61 as evening gown,"SELECT swimsuit FROM table_15081939_4 WHERE evening_gown = ""7.61""" "List all the names of the stores assigned to the sales person with the id ""277"".",SELECT Name FROM Store WHERE SalesPersonID = 277 Who drove the car with over 66 laps with a grid of 5?,SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 5 Which finish has a 99.550 Qual?,"SELECT finish FROM table_name_13 WHERE qual = ""99.550""" "Can you show me the climbers who climbed mountains in Country Uganda? | The climbers with IDs of 9 and 10 climbed mountains in the country Uganda | Hmm, I want to know the times used by the climbers to climb mountains in Country Uganda please.","SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = ""Uganda""" How many students are there?,SELECT COUNT(*) FROM Student what is the highest gold when the rank is 12 for the nation vietnam?,"SELECT MAX(gold) FROM table_name_18 WHERE rank = ""12"" AND nation = ""vietnam""" Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS?,"SELECT winning_driver FROM table_1769428_2 WHERE team = ""Hendrick Motorsports"" AND make = ""Chevrolet Impala SS""" "For each advisor, report the total number of students advised by him or her.","SELECT Advisor , count(*) FROM STUDENT GROUP BY Advisor" "What's the description for the movie list ""Short and pretty damn sweet""?",SELECT list_description FROM lists WHERE list_title = 'Short and pretty damn sweet' What is the latest year when Phil Anderson won?,"SELECT MAX(year) FROM table_name_28 WHERE winner = ""phil anderson""" What is the first and last name of the oldest employee?,"SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1" "What are the names of the parts manufactured by manufacturer 3 that have a supply cost of 1,000?",SELECT T2.p_name FROM partsupp AS T1 INNER JOIN part AS T2 ON T1.ps_partkey = T2.p_partkey WHERE T1.ps_supplycost = 1000 AND T2.p_mfgr = 'Manufacturer#3' "What's listed for the Turnout % with a Ngilu of 3,429?","SELECT turnout__percentage FROM table_name_11 WHERE ngilu = ""3,429""" Show names of shops that have more than one kind of device in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1 What airline serves the most flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1 What is contact Type ID No.16 represent for?,SELECT Name FROM ContactType WHERE ContactTypeID = '16' What round did Ray Kurpis play?,"SELECT round FROM table_name_2 WHERE player = ""ray kurpis""" Show the number of audience in year 2008 or 2010.,SELECT Num_of_Audience FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010 "When there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts?",SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 13 What is the name of the product stored in location 1 compartment L container 6?,SELECT T2.Name FROM ProductInventory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.LocationID = 1 AND T1.Shelf = 'L' AND T1.Bin = 6 What is the venue where john zibnack was the runner-up?,"SELECT venue FROM table_name_54 WHERE runner_up = ""john zibnack""" How many players has the birth country in USA?,select count ( player_id ) from player where birth_country = 'USA' "Of customers who provide other services, how many are from places where inhabitants are more than 20000?",SELECT COUNT(T2.GEOID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.OCCUPATION = 'Other-service' AND T2.INHABITANTS_K > 20 When interplanet janet is the episode title who is the music by?,"SELECT music_by FROM table_191105_3 WHERE episode_title = ""Interplanet Janet""" Please show me how many female students have the major 600,SELECT count ( * ) FROM student WHERE sex = 'F' AND Major = 600 Tell me the record for december 3,"SELECT record FROM table_name_47 WHERE date = ""december 3""" What is the number of useful votes that the user 52592 received when reviewed for business number 2?,SELECT review_votes_useful FROM Reviews WHERE user_id = 52592 AND business_id = 2 What is the hire date of the person who gets the lowest pct commission?,SELECT HIRE_DATE FROM employees order by COMMISSION_PCT asc limit 1 What date was the game with a score of w 116–93 (ot)?,"SELECT date FROM table_27715173_6 WHERE score = ""W 116–93 (OT)""" What is Ben Hogan's Place?,"SELECT place FROM table_name_21 WHERE player = ""ben hogan""" What districts are they from?,select District from election where Committee = 'Appropriations' Find the number of concerts happened in the stadium with the highest capacity .,select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1) "What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?","SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE province = ""Azarbaijan, West""" "List all the podcasts reviewed by a reviewer who has a review titled ""Inspired & On Fire!"".",SELECT T1.title FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'Inspired & On Fire!' "Hmm, can you just list his salary?",SELECT T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count ( * ) DESC LIMIT 1 "How many starts are associated with an oldsmobile engine, 21 finishes and before 2001?","SELECT SUM(start) FROM table_name_17 WHERE engine = ""oldsmobile"" AND finish = 21 AND year < 2001" How many users became an elite user the same year they joined Yelp?,SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = T2.year_id How many airports are there?,SELECT count ( * ) FROM airport What Slalom was Switzerland in?,"SELECT slalom FROM table_name_2 WHERE country = ""switzerland""" What is the total number of all football games played by scholarship students?,"SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = ""Football"" AND onscholarship = 'Y'" who is the the mixed doubles with mens singles being peter moritz,"SELECT mixed_doubles FROM table_15002265_1 WHERE mens_singles = ""Peter Moritz""" How many silvers for nations with over 3 golds and under 6 bronzes?,SELECT COUNT(silver) FROM table_name_60 WHERE bronze < 6 AND gold > 3 Which County has a School of bloomfield?,"SELECT county FROM table_name_32 WHERE school = ""bloomfield""" What is th title of the episode written by Nick Thiel?,"SELECT title FROM table_2828803_1 WHERE written_by = ""Nick Thiel""" "What's the lowest bronze with a 6 rank, smaller than 5 gold, and a total of more than 1?","SELECT MIN(bronze) FROM table_name_91 WHERE gold < 5 AND rank = ""6"" AND total > 1" State the inflation rate of Greece.,SELECT T2.Inflation FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Greece' How many cuts did he make in the tournament with 3 top 25s and under 13 events?,SELECT MAX(cuts_made) FROM table_name_44 WHERE top_25 = 3 AND events < 13 "What are the average access counts of documents that have the functional area description ""Acknowledgement""?","SELECT avg(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = ""Acknowledgement""" Who is the author of the book The Mystery in the Rocky Mountains?,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.title = 'The Mystery in the Rocky Mountains' List the names of people that have not been on the affirmative side of debates.,SELECT Name FROM people WHERE People_id NOT IN (SELECT Affirmative FROM debate_people) What are the names of customers who have taken both Mortgage and Auto loans?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' WHO WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03,"SELECT written_by FROM table_12033013_1 WHERE production_code = ""1ADK-03""" Who won stage 16?,"SELECT winner FROM table_name_87 WHERE stage = ""16""" What is Bruce Cerone overall?,"SELECT MIN(overall) FROM table_10361230_1 WHERE player_name = ""Bruce Cerone""" How many totals have a play-off less than 0?,SELECT COUNT(total) FROM table_name_47 WHERE play_offs < 0 What was the county with a longitude of -102.302775?,"SELECT county FROM table_18600760_3 WHERE longitude = ""-102.302775""" The customer who filed the latest complaint uses which phone number?,SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1 How many medicines are offered by each trade name?,"SELECT trade_name , count(*) FROM medicine GROUP BY trade_name" "What school is in Radford, Va?","SELECT school FROM table_name_74 WHERE location = ""radford, va""" When fairuz fauzy is the winning driver what is the date?,"SELECT date FROM table_25572118_1 WHERE winning_driver = ""Fairuz Fauzy""" What is the latest founded year?,SELECT MAX(founded) FROM table_1973729_2 List the names of authors affiliated with the University of Oxford in alphabetical order.,SELECT Name FROM Author WHERE Affiliation = 'University of Oxford' ORDER BY Name ASC What is the length for iin range 51-55?,"SELECT length FROM table_15905399_1 WHERE iin_ranges = ""51-55""" From when did Rodrick Heaney became a customer?,"SELECT T1.active_from_date FROM Customer_Contact_Channels AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = ""Rodrick Heaney""" "What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is less than 348?",SELECT SUM(1891) FROM table_name_63 WHERE 1872 < 685 AND 1881 < 348 List down the dba name of restaurants that were inspected due to license.,SELECT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.inspection_type = 'License' What is the sex of professor | I am sorry. Which professor are you referring to? | Rank profeesor,"SELECT Sex FROM Faculty WHERE Rank = ""Professor""" Name the cardinal points for 19-4 record,"SELECT MIN(cardinal_points) FROM table_23192661_3 WHERE record = ""19-4""" What are the course names for courses taught on MTW?,"SELECT CName FROM COURSE WHERE Days = ""MTW""" "Among the chapters in ""As You Like It"", how many chapters have a paragraph number of no more than 50?",SELECT COUNT(T3.chapter_id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id WHERE T1.Title = 'As You Like It' AND T3.ParagraphNum < 50 What is the username of the current official Facebook presence of the oldest current legislator?,SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id ORDER BY T1.birthday_bio LIMIT 1 Out of these accelerators which are compatible with browsers that have a market share higher than 25.,SELECT DISTINCT T2.name from accelerator_compatible_browser as T1 join Web_client_accelerator as T2 on T1.accelerator_id = T2.id join browser as T3 on T3.id = T1.browser_id where T1.compatible_since_year > = 1996 and T3.market_share > 25 Please show the most common reigns of wrestlers.,SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1 What is the alternate of the nation with Erkki Lill as the skip?,"SELECT alternate FROM table_name_55 WHERE skip = ""erkki lill""" What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?,"SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1" What round does Duncan Tappy drive in?,"SELECT MAX(sf_round) FROM table_23293785_3 WHERE driver = ""Duncan Tappy""" What capital has a population of 596268?,SELECT capital FROM table_1404414_2 WHERE population_census_2009 = 596268 How many episodes are there for the three darts challenge with Sharon Osbourne?,"SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = ""Sharon Osbourne""" What format name has dv as video coding and 4:1:1 as the color sampling?,"SELECT format_name FROM table_name_44 WHERE video_coding = ""dv"" AND color_sampling = ""4:1:1""" Which address do not have any member with the black membership card?,SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card = 'Black' Find the id and local authority of the station with has the highest average high temperature.,"SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY avg(high_temperature) DESC LIMIT 1" "Who wrote the episode that aired on September 26, 2010?","SELECT written_by FROM table_27169029_1 WHERE original_air_date = ""September 26, 2010""" "How many chapters are there in ""Midsummer Night's Dream""?",SELECT COUNT(T2.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Midsummer Night''s Dream' List the living players who have two positions. State their given name the position they play.,"SELECT firstName, lastName, pos FROM Master WHERE deathYear IS NULL AND pos LIKE '%/%'" What is the name and category code of the product with the highest price?,"SELECT product_name , product_category_code FROM products ORDER BY product_price DESC LIMIT 1" What is the average number of wins for events larger than 28?,SELECT AVG(wins) FROM table_name_22 WHERE events > 28 How many figures are given for McCain's % in Davidson county?,"SELECT COUNT(mccain_percentage) FROM table_20799905_1 WHERE county = ""DAVIDSON""" What years did the person coach who had less than 82 wins and more than 24 losses?,SELECT years FROM table_name_99 WHERE wins < 82 AND losses > 24 What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?,SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date > '2005-08-23 02:06:01' ) What are the id and details of the customers who have at least 3 events?,"SELECT T1.customer_id , T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 3" "From 1/3/97 to 8/10/97, how many orders were shipped via Federal Shipping?",SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Federal Shipping' AND T1.ShippedDate BETWEEN '1997-03-01 00:00:00' AND '1997-10-08 23:59:59' Which 3 players won the most player awards? List their full name and id.,"SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;" What services were in the area of operation Wadi Borjuj?,"SELECT services FROM table_name_2 WHERE area_of_operation = ""wadi borjuj""" How many faculty lines are there in the university that conferred the most number of degrees in year 2002?,SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1 Show the transaction type code that occurs the fewest times.,SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1 What are the stations in Tarzana? ,"SELECT stations FROM table_2093995_1 WHERE city__neighborhood = ""Tarzana""" State the highest profit made by Anna Chung's orders in the Central Superstore.,SELECT MAX(T2.Profit) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Anna Chung' "Find the number of the products that have their color described as ""red"" and have a characteristic named ""slow"".","SELECT count(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""slow""" Which formula has thial as a chemical class?,"SELECT formula FROM table_name_7 WHERE chemical_class = ""thial""" What is the average body mass index for patients with higher total cholesterol?,SELECT SUM(T1.VALUE) / COUNT(T1.PATIENT) FROM observations AS T1 INNER JOIN ( SELECT DISTINCT PATIENT FROM observations WHERE DESCRIPTION = 'Total Cholesterol' AND VALUE > 200 ) AS T2 ON T1.PATIENT = T2.PATIENT WHERE T1.DESCRIPTION = 'Body Mass Index' Show the top 3 most common colleges of players in match seasons.,SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3 What was the win loss record the lady who appeard in 1969?,"SELECT win_loss FROM table_25820584_7 WHERE year_s_ = ""1969""" What is the number and name where the date is earlier than 1905?,SELECT number_ & _name FROM table_name_37 WHERE date < 1905 How many percent of orders in 2020 used international shipping?,"SELECT CAST(SUM(CASE WHEN T2.method_name = 'International' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cust_order AS T1 INNER JOIN shipping_method AS T2 ON T1.shipping_method_id = T2.method_id WHERE STRFTIME('%Y', T1.order_date) = '2020'" "Please list two people who are the nominees for the ""Outstanding Voice-Over Performance"" award for season 20.",SELECT person FROM Award WHERE result = 'Nominee' AND award = 'Outstanding Voice-Over Performance' AND episode_id LIKE 'S20%' LIMIT 2; "Find the name, checking balance and saving balance of all accounts in the bank.","SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid" what is the date of week 7,SELECT date FROM table_name_92 WHERE week = 7 What are the birth date and birth place of the body builder with the highest total points?,"SELECT T2.Birth_Date , T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1" What is the lowest stage when the yellow jersey is Ronan Pensec?,"SELECT MIN(stage) FROM table_275506_1 WHERE yellow_jersey = ""Ronan Pensec""" Which station is from China and has a frequency of 684khz?,"SELECT station FROM table_name_79 WHERE country_of_origin = ""china"" AND frequency = ""684khz""" What player went to Ohio State College?,"SELECT player FROM table_10812938_5 WHERE college = ""Ohio State""" What is the namesake of the feature found at 189.5w longitude? ,"SELECT namesake FROM table_16768245_2 WHERE longitude = ""189.5W""" How many matches have 7 points of winning margin?,SELECT COUNT(Match_Id) FROM Match WHERE win_margin = 7 What is the acceleration of the most expensive car?,SELECT T1.acceleration FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T2.price DESC LIMIT 1 What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21',"SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'" What pick number was the player that was picked by Edmonton?,"SELECT pick__number FROM table_28059992_5 WHERE cfl_team = ""Edmonton""" Show the ids of all employees who have authorized destruction.,SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed What's the Slovene word for Thursday?,"SELECT thursday_fourth_day FROM table_1277350_5 WHERE day__see_irregularities__ = ""Slovene""" Which driver retired from a collision after 41 laps?,"SELECT driver FROM table_name_54 WHERE time_retired = ""collision"" AND laps = ""41""" What are the apartment number and the room count of each apartment?,"SELECT apt_number , room_count FROM Apartments" Can you show me the names of the five parties?,SELECT party_name FROM party how many song_name in the song table,SELECT count ( * ) FROM song Who are the nominees who have been nominated more than two times?,SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2 How many male users are in the age group of M32-38?,SELECT COUNT(gender) FROM gender_age WHERE gender = 'M' AND `group` = 'M32-38' On what date did episode 2 air?,SELECT original_air_date FROM table_2343740_1 WHERE episode_number = 2 What are the total number of students enrolled in ACCT-211?,SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211' what is the mission when the location is brasilia?,"SELECT mission FROM table_name_18 WHERE location = ""brasilia""" "What is the rank for the player with events greater than 23 and prize money in excess of $823,783?",SELECT COUNT(rank) FROM table_name_33 WHERE events > 23 AND prize_money__$__ > 823 OFFSET 783 Find the names of the products with length smaller than 3 or height greater than 5.,SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 Which artist was 2003?,SELECT artist FROM table_name_32 WHERE year = 2003 Find the titles of albums that contain tracks of both the Reggae and Rock genres.,SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock' What is the most common hometown of gymnasts?,SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1 What was the crowd size for the game at Footscray?,"SELECT COUNT(crowd) FROM table_name_2 WHERE away_team = ""footscray""" what is the lowest viewers (m) when the share is more than 13?,SELECT MIN(viewers__m_) FROM table_name_69 WHERE share > 13 "Among the wikipedia pages on Catalan with more than 300 different words, how many of them have a revision ID of over 28330000?",SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 300 AND revision > 28330000 "Show the studios that have produced films with director ""Nicholas Meyer"" and ""Walter Hill"".","SELECT Studio FROM film WHERE Director = ""Nicholas Meyer"" INTERSECT SELECT Studio FROM film WHERE Director = ""Walter Hill""" What is the founded year of the non public school that was founded most recently?,SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 "Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?","SELECT railway FROM table_name_58 WHERE location = ""shildon"" AND objectnumber = ""1975-7022""" List the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents.,"SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;" "can you give me the project ID? | Sorry, what would you like the project id for? | the project that had the highest number of outcomes",SELECT T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count ( * ) DESC LIMIT 1 What was the manner of departure of Nicolae Manea?,"SELECT manner_of_departure FROM table_17115950_2 WHERE outgoing_manager = ""Nicolae Manea""" What are the ids of all students who have advisor number 1121?,SELECT StuID FROM Student WHERE Advisor = 1121 What is the average round of the s position player from the college of Mississippi and has an overall less than 214?,"SELECT AVG(round) FROM table_name_79 WHERE position = ""s"" AND college = ""mississippi"" AND overall < 214" What are the number of rooms for each bed type?,"SELECT bedType , count(*) FROM Rooms GROUP BY bedType;" Who is the player from the United States with a total less than 293 and won in 1984?,"SELECT player FROM table_name_74 WHERE country = ""united states"" AND total < 293 AND year_s__won = ""1984""" How many times was Mike McIntyre elected?,"SELECT COUNT(results) FROM table_1805191_34 WHERE incumbent = ""Mike McIntyre""" What are the state and country of all the cities that have post codes starting with 4.\,"SELECT state_province_county , country FROM addresses WHERE zip_postcode LIKE ""4%""" What is the hashed password of David Bradley?,SELECT T2.PasswordHash FROM Person AS T1 INNER JOIN Password AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley' What is the date with geelong as Away team?,"SELECT date FROM table_name_63 WHERE away_team = ""geelong""" Where is Subway located?,SELECT Address FROM Restaurant where ResName = 'Subway' What was the result when the new england patriots played?,"SELECT result FROM table_name_33 WHERE opponent = ""new england patriots""" what type over school is Clemson?,"SELECT school_type FROM table_28744929_1 WHERE institution = ""Clemson""" What is every date successor seated for the Virginia 11th District?,"SELECT date_successor_seated FROM table_225199_4 WHERE district = ""Virginia 11th""" How much Rank has Points larger than 282.5?,SELECT COUNT(rank) FROM table_name_11 WHERE points > 282.5 "That was quick, thank you again. Then could you please tell me the department name of instructor Wieland?","SELECT dept_name FROM instructor where name = ""Wieland""" Which owner has the time of 2:02.20 and the year of 1957?,"SELECT owner FROM table_name_86 WHERE time = ""2:02.20"" AND year = ""1957""" What is the Location for the jiu-jitsu vs martial arts?,"SELECT location FROM table_name_36 WHERE event = ""jiu-jitsu vs martial arts""" What Podiums listing has a World Rally Championship series entry?,"SELECT podiums FROM table_name_74 WHERE series = ""world rally championship""" Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77,"SELECT MIN(average) FROM table_name_42 WHERE interview > 9.57 AND country = ""delaware"" AND evening_gown > 9.77" "How much did the Hydra team from Bronx, New York raise?","SELECT raised FROM table_name_35 WHERE original_team = ""hydra"" AND hometown = ""bronx, new york""" how many faculty lines are there in the university that conferred the least number of degrees in year 2001?,SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1 "What is Builder, when Date is 1925?","SELECT builder FROM table_name_21 WHERE date = ""1925""" What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?,"SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = ""marius călugăru ciprian petre porumb""" And how many devices from the list use the iOS platform?,"SELECT count ( * ) FROM device where Software_Platform = ""iOS""" "hi, how many teachers have addresses with zip code ""918""","SELECT count ( * ) FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = ""918""" Name the howard baker for ronald reagan of 72%,"SELECT howard_baker FROM table_name_46 WHERE ronald_reagan = ""72%""" What was the score on 20/6/97?,"SELECT score FROM table_name_9 WHERE date = ""20/6/97""" Find the last name of the individuals that have been contact individuals of an organization.,SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id The game that has a save of lynch (4) ended with what score?,"SELECT score FROM table_name_41 WHERE save = ""lynch (4)""" What year did a school leave that was founded in 1880?,SELECT left FROM table_11658094_3 WHERE founded = 1880 How many users who started yelping since 2012 have sent a high number of funny votes?,SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2012 AND user_votes_funny LIKE 'High' What language is the moviein that is on UMP movies network through Sky service?,"SELECT language FROM table_name_87 WHERE genre = ""movies"" AND service = ""sky"" AND network = ""ump movies""" Which languages are offered in the coverage area of klang petaling jaya shah alam?,"SELECT language FROM table_1837570_1 WHERE coverage_area = ""Klang Petaling Jaya Shah Alam""" "For each zip code, return the average mean temperature of August there.","SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE ""8/%"" GROUP BY zip_code" How many votes did Obama get in Lake County?,"SELECT MIN(obama_number) FROM table_20799905_1 WHERE county = ""LAKE""" Who is the manager of FK Andijan? ,"SELECT manager FROM table_25527255_2 WHERE team = ""FK Andijan""" "Among all the customers in Germany, how many of them have an account balance of over 1000?",SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'GERMANY' AND T1.c_acctbal > 1000 "haha I am sorry, Thanks again for your answer! :) Then could you please let me know which entrepreneur requested for the biggest amount of money?",SELECT Entrepreneur_ID from entrepreneur order by Money_Requested desc limit 1 Great! Can you tell me which ClaimID is associated with the largest claim amount?,SELECT claim_id FROM Claims order by amount_claimed desc limit 1 Find the average hours for the students whose tryout decision is no.,SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no' How many number does Fordham school have?,"SELECT COUNT(no) FROM table_10015132_14 WHERE school_club_team = ""Fordham""" What was the home team's score when North Melbourne was the away team?,"SELECT home_team AS score FROM table_name_39 WHERE away_team = ""north melbourne""" Who served as an advisor for students who have treasurer votes in the spring election cycle?,"SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = ""Spring""" How many businesses in AZ state do not open on Thursday?,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Checkins AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.label_time_4 LIKE 'None' AND T1.state LIKE 'AZ' AND T3.day_of_week LIKE 'Thursday' "Which region is ""Columbia"" in?",SELECT T2.RegionDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T1.TerritoryDescription = 'Columbia' When esv ingolstadt is the oberbayern b what is the niederbayern?,"SELECT niederbayern FROM table_23224961_1 WHERE oberbayern_b = ""ESV Ingolstadt""" "Which Scrapped/Sold has a Builder of derby, and a Name as rebuilt of ben madigan?","SELECT scrapped_sold FROM table_name_74 WHERE builder = ""derby"" AND name_as_rebuilt = ""ben madigan""" What is Kerry J. Donley's First Election date?,"SELECT first_election FROM table_name_23 WHERE name = ""kerry j. donley""" In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?,"SELECT year_s__won FROM table_name_34 WHERE total < 291 AND to_par = ""+10"" AND player = ""raymond floyd""" What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL?,"SELECT fleet__number FROM table_19643196_1 WHERE transmission = ""Voith D863.4"" AND engine = ""Cummins ISL""" What was the lowest attendance recorded at a game on September 28?,"SELECT MIN(attendance) FROM table_name_79 WHERE date = ""september 28""" "What are the paths of solutions in repository ""https://github.com/ecoffey/Bebop.git""",SELECT DISTINCT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/ecoffey/Bebop.git' Show the most common apartment type code.,SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) DESC LIMIT 1 What year were the latest elections?,SELECT MAX(first_elected) FROM table_1341930_10 List top 3 highest Rating TV series. List the TV series's Episode and Rating.,"SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;" What were the total apps for Dunne in season where he had 0 league goals? ,SELECT total_apps FROM table_2980024_1 WHERE league_goals = 0 Name the total number for mens single for 2002/2003,"SELECT COUNT(mens_singles) FROM table_12193259_1 WHERE season = ""2002/2003""" "Find all the films rated PG, except those who cost more than 200 for replacement?",SELECT title FROM film WHERE rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200 "Show the years, book titles, and publishers for all books, in descending order by year.","SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC" What episode number in the season was written by Greg nelson and directed by Keith samples?,"SELECT no FROM table_27547668_3 WHERE written_by = ""Greg Nelson"" AND directed_by = ""Keith Samples""" What is the location coordinates of the bike station from which the bike for the trip that last the longest was borrowed?,"SELECT T2.lat, T2.long FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.duration = ( SELECT MAX(T1.duration) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name )" What date has the format of cd?,"SELECT date FROM table_name_40 WHERE format = ""cd""" What is the score for the game with 213 attending?,"SELECT score FROM table_name_3 WHERE attendance = ""213""" In which year did London hold its earliest Olympic game?,SELECT T3.games_year FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London' ORDER BY T3.games_year LIMIT 1 In which year did he finish 8th?,"SELECT year FROM table_name_3 WHERE result = ""8th""" "What is the number of graduates in ""San Francisco State University"" in year 2004?","SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Francisco State University""" "Among all the orders made by Aimee Bixby, how many of them chose the slowest delivery speed?",SELECT COUNT(DISTINCT T2.`Order ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T2.`Ship Mode` = 'Standard Class' A list of the top 10 countries by average invoice size. List country name and average invoice size.,"SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;" Tell me the lowest bronze for panama and total larger than 8,"SELECT MIN(bronze) FROM table_name_84 WHERE nation = ""panama"" AND total > 8" What is the average edispl for all volvos?,SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'; "What loss has 16,458 as an Att.?","SELECT loss FROM table_name_82 WHERE att = ""16,458""" Can you tell me the names of the cities affected by storm?,SELECT region_name FROM region WHERE region_id IN ( SELECT region_id FROM affected_region ) What was the record for the game on March 25?,"SELECT record FROM table_name_27 WHERE date = ""march 25""" "Hi, I was wondering how many users do not have tweets?",SELECT count ( * ) FROM user_profiles WHERE UID NOT IN ( SELECT UID FROM tweets ) What are the first names of all the different drivers in alphabetical order?,SELECT DISTINCT forename FROM drivers ORDER BY forename ASC What is the competition type when the score is 1-1?,"SELECT competition FROM table_name_44 WHERE score = ""1-1""" What skip has denmark as the country?,"SELECT skip FROM table_name_58 WHERE country = ""denmark""" "What score has money ($) greater than 400, with gene sarazen as the player?","SELECT score FROM table_name_99 WHERE money___$__ > 400 AND player = ""gene sarazen""" Find the brand Id of the root beer which has the most number of customers who gave 1-star ratings.,SELECT BrandID FROM rootbeerreview WHERE StarRating = 1 GROUP BY BrandID ORDER BY COUNT(BrandID) DESC LIMIT 1 "List each owner's first name, last name, and the size of his for her dog.","SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id" What are the numbers for any players from Washington?,"SELECT no_s_ FROM table_name_94 WHERE school_club_team_country = ""washington""" "What region has a 2002 date, and a Catalog dos 195?","SELECT region FROM table_name_70 WHERE date = ""2002"" AND catalog = ""dos 195""" "What player's hometown is Washington, IN?","SELECT player FROM table_name_83 WHERE hometown = ""washington, in""" What week # featured first solo as the theme?,"SELECT week__number FROM table_21501564_1 WHERE theme = ""First Solo""" Which Theme has a Result of eliminated?,"SELECT theme FROM table_name_95 WHERE result = ""eliminated""" How many sections does course ACCT-211 has?,SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' "What is the Title, when the Lyricist(s) is Yarosake, and when the Composer(s) is Yarosake?","SELECT title FROM table_name_69 WHERE lyricist_s_ = ""yarosake"" AND composer_s_ = ""yarosake""" What are the names of representatives in descending order of votes?,SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC what is the minimum rank,SELECT MIN(rank) FROM table_11174272_1 "What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?","SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = ""december 23, 1986""" "In geographic identifier from 10 to 30, how many of them has an income below 2000?",SELECT COUNT(GEOID) FROM Demog WHERE INCOME_K < 2000 AND GEOID >= 10 AND GEOID <= 30 "Compute the average age of the members in the club ""Tennis Club"".","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Tennis Club""" What shows for opened for the Nascar Major Series?,"SELECT opened FROM table_name_84 WHERE major_series = ""nascar""" Who was the home team in the match with an away team of Millwall?,"SELECT home_team FROM table_name_6 WHERE away_team = ""millwall""" How many accounts have an address that is too long?,SELECT COUNT(*) FROM Address WHERE AddressLine2 <> '' How many draws were there in played games?,"SELECT drawn FROM table_17941032_2 WHERE ""played"" = ""played""" Please list the three episodes with the highest number of votes for the worst star rating.,SELECT T1.title FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = ( SELECT MIN(stars) FROM Vote ) ORDER BY T2.votes DESC LIMIT 3; Show the locations of parties with hosts older than 50.,SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 What is the year range of season 4?,SELECT season FROM table_22383603_1 WHERE no = 4 Which skip (club) had 31 PA and 9 blank ends?,SELECT skip__club_ FROM table_29546030_2 WHERE pa = 31 AND blank_ends = 9 "Lastly, do you have his salary?","SELECT T2.name,T2.salary FROM department AS T1 JOIN instructor AS T2 ON T1.dept_name = T2.dept_name where T1.dept_name = 'Astronomy'" What is the date of the match that has the highest wager on the final result of a game?,SELECT Match_Date FROM `Match` ORDER BY Win_Margin DESC LIMIT 1 What is the number of Justin Jeffries?,"SELECT COUNT(number) FROM table_name_31 WHERE name = ""justin jeffries""" "What is Away Team, when Home Team is ""Boston United""?","SELECT away_team FROM table_name_30 WHERE home_team = ""boston united""" Okay. Name and flags of ships not steered by any captain of Midshipman rank?,"SELECT Name, flag FROM ship WHERE ship_id NOT IN ( SELECT ship_id FROM captain WHERE rank = 'Midshipman' ) " please list out the paper id,SELECT paperID FROM papers Provide me with the names of all the villages (German) that has 76.3% of Slovenes in 1951.,"SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = ""76.3%""" "Which country had a production (bbl/day) of 2,494,000 (10th)?","SELECT country FROM table_166346_1 WHERE production___bbl__day_ = ""2,494,000 (10th)""" Who is the captain of the 2012 NRL season competition?,"SELECT captain_s_ FROM table_name_75 WHERE competition = ""2012 nrl season""" Name the least matches for not out being 44,SELECT MIN(matches) FROM table_21486890_1 WHERE not_out = 44 What is the first and last name of the students who are not in the largest major?,"SELECT fname , lname FROM student WHERE major != (SELECT major FROM student GROUP BY major ORDER BY count(*) DESC LIMIT 1)" What engine has an output of ps (kw; hp) @4700 rpm?,"SELECT engine FROM table_name_85 WHERE output = ""ps (kw; hp) @4700 rpm""" Name the team for school of milford,"SELECT team FROM table_name_44 WHERE school = ""milford""" What is the percentage of female audiences who viewed movies with rating 2?,"SELECT CAST(SUM(IIF(T2.u_gender = 'F', 1, 0)) AS REAL) * 100 / COUNT(T2.userid) FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.rating = 2" What is the result of districk georgia's 1st?,"SELECT result FROM table_27021001_1 WHERE district = ""Georgia's 1st""" how tall is someone who is able to wear 33-24-35,"SELECT height FROM table_27515452_3 WHERE sizes = ""33-24-35""" In what tie were Leeds United the away team?,"SELECT MAX(tie_no) FROM table_17736890_5 WHERE away_team = ""Leeds United""" List the name of teachers whose hometown is not `` Little Lever Urban District '' .,"SELECT name FROM teacher WHERE hometown <> ""little lever urban district""" What's the compression ratio of the model with L35 RPO and 5 applications?,"SELECT compression_ratio FROM table_20007413_6 WHERE rpo = ""L35"" AND applications = 5" What Season has Goals greater than 0 and less than 33 Apps?,SELECT season FROM table_name_34 WHERE goals > 0 AND apps < 33 Which payment method is used by most customers?,SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1 "Who led in assists on January 17, and with how many?","SELECT high_assists FROM table_27712702_9 WHERE date = ""January 17""" Which customer status code has least number of customers?,SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1 Thank you for that! Can you please filter this list to show only the row of the staff member who has the most recent date_assigned_from value?,"SELECT staff_id, date_assigned_from from Staff_Department_Assignments order by date_assigned_from desc limit 1" the corresponding number of gymnasts? | Can you clarity what do you mean by the corresponding number? | how many gymnasts are in table?,SELECT COUNT ( * ) FROM gymnast List the document ids for any documents with the status code done and the type code paper.,"SELECT document_id FROM Documents WHERE document_status_code = ""done"" AND document_type_code = ""Paper"";" "Show the teams that have wrestlers eliminated by ""Orton"".","SELECT Team FROM Elimination WHERE Eliminated_By = ""Orton""" What are the first names of all teachers who have taught a course and the corresponding course codes?,"SELECT T2.emp_fname , T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num" who is the driver with the grid of 13?,SELECT driver FROM table_name_84 WHERE grid = 13 "Among the elderlies, state the last name of whose complaint is handled in server YIFAT?",SELECT T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.age > 65 AND T2.server = 'YIFAT' "What is the name of the person who has the oldest average age for their friends, and what is that average age?","SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1" "Among the worst actresses, how many of them got a rating of more than 3 to the movies they starred?",SELECT COUNT(T1.userid) FROM u2base AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid INNER JOIN users AS T4 ON T1.userid = T4.userid WHERE T3.a_quality = 0 AND T1.rating > 3 AND T4.u_gender = 'F' Please list the names of coins that has been disappeared.,SELECT name FROM coins WHERE status = 'extinct' Please list the path of the solution that contains files found within the repository most people like.,SELECT DISTINCT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = ( SELECT MAX(Stars) FROM Repo ) "What are the papers published under the institution ""Indiana University""?","SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Indiana University""" List the first name of all employees with job code PROF ordered by their date of birth.,SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob What does a hand of Theoretical return have as a 3 credit?,"SELECT 3 AS _credits FROM table_name_34 WHERE hand = ""theoretical return""" What is the average number of silvers for nations with over 1 bronze medal?,SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1 What is the hot 100 reaction in week of top 13 for Kanye West?,"SELECT hot_100_reaction FROM table_name_41 WHERE week = ""top 13"" AND performer_s_ = ""kanye west""" "What is the percentage of crime cases that have been classified as ""drug abuse"" by the FBI and happened on the street?",SELECT CAST(SUM(CASE WHEN T2.title = 'Drug Abuse' AND T1.location_description = 'STREET' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.fbi_code_no) FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no "Which Power (MW) has a Voltage (kV) of 500, and a Country of argentina?","SELECT AVG(power__mw_) FROM table_name_26 WHERE voltage__kv_ = 500 AND country = ""argentina""" What county is the town with a rank of 205 located in?,SELECT county FROM table_name_78 WHERE population_rank = 205 How many degrees were conferred at San Jose State University in 2000?,"SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND t2.year = 2000" who is the athlete when react is 0.164?,SELECT athlete FROM table_name_46 WHERE react = 0.164 name the title of the episode with production code 201,SELECT title FROM table_28081876_4 WHERE production_code = 201 Please list the full names of all the male clients in the Pacific division.,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Pacific' AND T1.sex = 'Male'" "For the game played against the L.A. Lakers, where was the match played and what was the attendance level?","SELECT location_attendance FROM table_name_80 WHERE team = ""l.a. lakers""" What is the lowest number of FA cups associated with 0 malaysia cups?,SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0 "Among the products that are purchased, how many of them have never received the highest rating?",SELECT COUNT(T1.ProductID) FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.MakeFlag = 0 AND T1.Rating != 5 What is the name of the Winner in north carolina at the greater greensboro open?,"SELECT winner FROM table_name_71 WHERE location = ""north carolina"" AND tournament = ""greater greensboro open""" how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith,"SELECT COUNT(us_viewers__million_) FROM table_26259391_1 WHERE written_by = ""Chris Sheridan & Danny Smith""" Provide the patients' full names who received the extraction of wisdom tooth.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Extraction of wisdom tooth'" What are the top 3 highest support rates?,SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 What is the traditional with density of 820?,SELECT traditional FROM table_2135222_2 WHERE density = 820 How many shops have a score of above 37?,SELECT count ( * ) FROM shop where score > 37 What was the earliest year for the Ligier Gitanes?,"SELECT MIN(year) FROM table_name_46 WHERE entrant = ""ligier gitanes""" How many passengers (in millions) flew from Seoul in 2012?,"SELECT 2012 AS _passengers__in_millions_ FROM table_16066063_1 WHERE city_1 = ""Seoul""" "Which tournament happened on september 25, 2006?","SELECT tournament FROM table_name_78 WHERE date = ""september 25, 2006""" How many of the elected officials are on the Economic Matters committee?,"SELECT COUNT(first_elected) FROM table_14009909_1 WHERE committee = ""Economic Matters""" What was the finish for Billy Casper?,"SELECT finish FROM table_name_59 WHERE player = ""billy casper""" Who was the new Santos manager?,"SELECT replaced_by FROM table_29414946_3 WHERE team = ""Santos""" Find the destination of the airport least number of routes in china?,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count ( * ) ASC LIMIT 1 Was the tag in the complaint filed by Matthew Pierce on 2016/10/28 approved by himself?,"SELECT CASE WHEN T2.`Consumer consent provided?` IN (NULL, 'N/A', 'Empty') THEN 'No' ELSE 'Yes' END FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Matthew' AND T1.last = 'Pierce' AND T2.`Date received` = '2016-10-28'" List all the student details in reversed lexicographical order.,SELECT other_student_details FROM Students ORDER BY other_student_details DESC Who is the directed by when 2t6404 is the production code?,"SELECT directed_by FROM table_2866456_1 WHERE production_code = ""2T6404""" "Of those three, who is the oldest?",SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 order by T3.age desc limit 1 Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.,"SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'" Which Record has a Team of philadelphia?,"SELECT record FROM table_name_66 WHERE team = ""philadelphia""" Which Channel has an Aspect of 4:3 and a Programming of me-tv?,"SELECT channel FROM table_name_10 WHERE aspect = ""4:3"" AND programming = ""me-tv""" What is the mean number of events when top-5 is 1?,SELECT AVG(events) FROM table_name_51 WHERE top_5 = 1 Who was the contestant eliminated on episode 8 of RW: Key West season?,"SELECT player FROM table_18974269_1 WHERE original_season = ""RW: Key West"" AND eliminated = ""Episode 8""" "Among the inspections carried out in 2016, how many of them are routine?","SELECT COUNT(`date`) FROM inspections WHERE STRFTIME('%Y', `date`) = '2016' AND type = 'Routine - Unscheduled'" What was the date of the game played at Fenway Park?,"SELECT date FROM table_name_28 WHERE game_site = ""fenway park""" How many players only played for the Jazz in only 2010?,"SELECT COUNT(no) FROM table_11545282_7 WHERE years_for_jazz = ""2010""" What is the first name of faculty partcipating in most activities?,SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID ORDER BY count ( * ) DESC LIMIT 1 What is Michael Stewart's school or club team?,"SELECT school_club_team FROM table_name_93 WHERE player = ""michael stewart""" "When the away team was collingwood, what was the away team score?","SELECT away_team AS score FROM table_name_86 WHERE away_team = ""collingwood""" "What is the id, forename and surname of the driver who had the first position in terms of laptime at least twice?","SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2" Which host university is based in Missoula?,"SELECT host FROM table_name_40 WHERE city = ""missoula""" what's the premiere with hk viewers of 2.09 million,"SELECT premiere FROM table_11174272_1 WHERE hk_viewers = ""2.09 million""" Find the manager name and district of the shop whose number of products is the largest.,"SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1" Which Placement in Miss Universe has a Delegate of janine mari raymundo tugonon?,"SELECT placement_in_miss_universe FROM table_name_72 WHERE delegate = ""janine mari raymundo tugonon""" "Which papers did the author ""Olin Shivers"" write? Give me the paper titles.","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Olin"" AND t1.lname = ""Shivers""" where did obama get 41.3%,"SELECT county FROM table_20424014_1 WHERE obama__percentage = ""41.3%""" What is the most common result of the music festival?,SELECT RESULT FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 Find the payment method of Tillman Ernser.,"SELECT payment_method FROM Customers WHERE customer_name = ""Tillman Ernser""" "What is the latest week with the date of november 5, 1995?","SELECT MAX(week) FROM table_name_40 WHERE date = ""november 5, 1995""" Who has the Home Score of 52-54?,"SELECT home FROM table_name_76 WHERE score = ""52-54""" What year was first-elected for the row of Texas 2?,"SELECT first_elected FROM table_1342218_43 WHERE district = ""Texas 2""" Show ids for all transactions whose amounts are greater than the average.,SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT avg(transaction_amount) FROM Financial_transactions) What is the artist with less than a 2 draw?,SELECT artist FROM table_name_88 WHERE draw < 2 What is the highest lane that has nimrod shapira bar-or as the name?,"SELECT MAX(lane) FROM table_name_38 WHERE name = ""nimrod shapira bar-or""" what is the written by and production code is 3wab03?,"SELECT writtenby FROM table_20726262_4 WHERE production_code = ""3WAB03""" Has Episode 1b-16 (42) been preserved?,"SELECT preservation FROM table_name_16 WHERE episode = ""1b-16 (42)""" During the play-off quarter-final which team scored position was the team that scored 56 points?,"SELECT pos FROM table_name_91 WHERE play_offs = ""quarter-final"" AND pts = ""56""" What did Steve Elkington par?,"SELECT to_par FROM table_name_47 WHERE player = ""steve elkington""" What is the game number on April 7?,"SELECT COUNT(game) FROM table_name_43 WHERE date = ""april 7""" Who played home team at Victoria Park?,"SELECT home_team FROM table_name_41 WHERE venue = ""victoria park""" What is the largest lost stat when the difference is - 19?,"SELECT MAX(lost) FROM table_name_36 WHERE difference = ""- 19""" What is the attendance of week 8?,SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8 What was the time on September 1?,"SELECT local_time FROM table_name_46 WHERE date = ""september 1""" what is the name of the company with more than 200 sales?,SELECT name FROM company WHERE Sales_in_Billion > 200 How many square miles of water does the township at latitude 48.064751 have?,"SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = ""48.064751""" Who won best actress?,"SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = ""Best Actress""" Great! Also add to that list the starting year and age of each technician?,"SELECT T2.Name , T1.machine_id,T2.starting_year,T2.age FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID" "For each start station id, what is its name, longitude and average duration of trips started there?","SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id" How many freedom indices does the country of Austria have?,"SELECT COUNT(2013 AS _press_freedom_index) FROM table_1604579_2 WHERE country = ""Austria""" How many races involve incumbent Pat Cannon?,"SELECT COUNT(result) FROM table_1342256_10 WHERE incumbent = ""Pat Cannon""" What is the average life expentancy of countries that speak Arabic?,SELECT AVG(T1.LifeExpectancy) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Arabic' What are the first name and last name of the professionals who have done treatment with cost below average?,"SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )" What is the highest game number with a record of 12-8-1?,"SELECT MAX(game) FROM table_name_29 WHERE record = ""12-8-1""" Show different locations and the number of performances at each location.,"SELECT LOCATION , COUNT(*) FROM performance GROUP BY LOCATION" Which Third has a Second of scott pfeifer?,"SELECT third FROM table_name_29 WHERE second = ""scott pfeifer""" In which city was the game held where the oldest competitor participated?,SELECT T4.city_name FROM games_competitor AS T1 INNER JOIN games AS T2 ON T1.games_id = T2.id INNER JOIN games_city AS T3 ON T1.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id ORDER BY T1.age DESC LIMIT 1 How many ministers are there when the cabinet (nickname) is Steingrímur Hermannsson III?,"SELECT ministers FROM table_21422977_2 WHERE cabinet__nickname_ = ""Steingrímur Hermannsson III""" Who is the newest hired employee? Give the full name.,"SELECT FirstName, LastName FROM Employees WHERE HireDate = ( SELECT MAX(HireDate) FROM Employees )" What is the name of that editor?,SELECT name FROM editor ORDER BY Age ASC LIMIT 1 What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs?,"SELECT result FROM table_name_23 WHERE location = ""arrowhead stadium"" AND loser = ""kansas city chiefs""" How many books were published by Kensington?,SELECT COUNT(T1.book_id) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Kensington' When it is season 10 who are the writers?,SELECT written_by FROM table_20967430_3 WHERE season = 10 Where did Trinidad and Tobago play?,"SELECT place FROM table_name_99 WHERE country = ""trinidad and tobago""" Calculate the average score per university under Alumni criteria in 2008.,SELECT AVG(T2.score) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id WHERE T1.criteria_name = 'Alumni' AND T2.year = 2008 List the ranking criteria under the Shanghai Ranking system.,SELECT T2.criteria_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T1.system_name = 'Shanghai Ranking' Find the number of routes from the United States to Canada.,SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') What team did a manager leave on 12 Dec 2009,"SELECT team FROM table_22297198_3 WHERE date_of_vacancy = ""12 Dec 2009""" What are the product id and product type of the cheapest product?,"SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1" Who has the high assists when 0-1 is the series?,"SELECT high_assists FROM table_22871316_11 WHERE series = ""0-1""" Show the name of ships whose nationality is either United States or United Kingdom.,"SELECT Name FROM ship WHERE Nationality = ""United States"" OR Nationality = ""United Kingdom""" What is the average number of movies added to the lists of user 8516503? Give the user profile image URL on Mubi.,"SELECT AVG(T1.list_movie_number), T2.user_avatar_image_url FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T2.user_id = 8516503" What isssue has 7th heaven as an actual title?,"SELECT issue FROM table_name_51 WHERE actual_title = ""7th heaven""" "What was the outcome for the Rome 2, Italy tournament?","SELECT outcome FROM table_name_73 WHERE tournament = ""rome 2, italy""" Where does the student live? | Which student are you referring to? | Is there any students living in HKG or CHI?,"SELECT count ( * ) FROM Student WHERE city_code = ""HKG"" OR city_code = ""CHI""" "Which height has a College of wyoming, and a Name of guy frazier?","SELECT height FROM table_name_72 WHERE college = ""wyoming"" AND name = ""guy frazier""" What is average year for ayan mukerji?,"SELECT AVG(year) FROM table_name_29 WHERE director = ""ayan mukerji""" "What is the highest Season, when Super G is 19?",SELECT MAX(season) FROM table_name_63 WHERE super_g = 19 How many departments did Sheela Ward work in between 1/1/2011 to 12/31/2012,"SELECT COUNT(T3.Name) FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.FirstName = 'Sheela' AND T1.LastName = 'Word' AND STRFTIME('%Y', T3.ModifiedDate) BETWEEN '2011' AND '2012'" "Which employee handled the most amount of orders in 1996? Give the full name, title, and address of this employee.","SELECT FirstName, LastName, Title, address FROM Employees WHERE EmployeeID = ( SELECT T1.EmployeeID FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T2.OrderDate BETWEEN '1996-01-01 00:00:00' AND '1997-01-01 00:00:00' GROUP BY T1.EmployeeID ORDER BY COUNT(T2.OrderID) DESC LIMIT 1 )" "what is the lowest position when the name is esv türkheim, and Drawn more than 0?","SELECT MIN(position) FROM table_name_12 WHERE name = ""esv türkheim"" AND drawn > 0" Which player who showed as the third goalie in a game has the biggest weight? Give the full name of the player.,"SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.stint = 3 ORDER BY T1.weight DESC LIMIT 1" "What title was release November 17, 2009 in a 16:9 aspect ratio?","SELECT dvd_title FROM table_name_5 WHERE aspect_ratio = ""16:9"" AND release_date = ""november 17, 2009""" What are the descriptions of all the project outcomes?,SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code What Date had a Partner of urszula radwańska?,"SELECT date FROM table_name_87 WHERE partner = ""urszula radwańska""" How many females are there?,"SELECT count ( * ) from people where sex = ""F""" "What time has humber college north as the ground, and toronto downtown dingos as the home?","SELECT time FROM table_name_58 WHERE ground = ""humber college north"" AND home = ""toronto downtown dingos""" "Find the first names of all the authors who have written a paper with title containing the word ""Functional"".","SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE ""%Functional%""" "Thank you for that! Can you filter the list to show the names of only the players whose decision is ""yes""?",SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' Tell me the loewst assume office for madeleine bordallo,"SELECT MIN(assumed_office) FROM table_name_60 WHERE name = ""madeleine bordallo""" Show the project details of the Table Name: Projects,SELECT project_details FROM projects What was the result of the 1978 Atlanta Falcons season when the record was 1-2?,"SELECT result FROM table_16710971_2 WHERE record = ""1-2""" What is the product description for this product?,"SELECT product_description FROM products WHERE product_name = ""chervil""" Mention the height of people who belong to region id 7.,SELECT T2.height FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T1.region_id = 7 Who was the incumbent in Pennsylvania 27?,"SELECT incumbent FROM table_1342256_38 WHERE district = ""Pennsylvania 27""" In what Round was the Memphis Player drafted?,"SELECT AVG(round) FROM table_name_75 WHERE school_club_team = ""memphis""" What was the score for the Toshiba Senior Classic?,"SELECT score FROM table_11621799_1 WHERE tournament = ""Toshiba Senior Classic""" At what Latitude and Longitude is the store that has used the WARE-PUJ1005 warehouse the fewest times?,"SELECT T2.Latitude, T2.Longitude FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.WarehouseCode = 'WARE-PUJ1005' GROUP BY T2.StoreID ORDER BY COUNT(T1.WarehouseCode) ASC LIMIT 1" How many networks aired the franchise in 1981 only?,"SELECT COUNT(network) FROM table_12438767_1 WHERE dates_aired = ""1981""" Which Ship has a Year larger than 2013?,SELECT ship FROM table_name_54 WHERE year > 2013 "Give the review of the restaurant at 430, Broadway.",SELECT T1.review FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'Broadway' AND T2.street_num = 430 Can you Please list all departments?,SELECT DEPT_NAME FROM DEPARTMENT What is the average age for each gender?,"SELECT avg(age) , gender FROM Person GROUP BY gender" "What is the smallest pick for the player, brett lindros?","SELECT MIN(pick) FROM table_1013129_1 WHERE player = ""Brett Lindros""" Who had the most points in games over 59?,SELECT high_points FROM table_name_12 WHERE game > 59 Find the full name and email address of inactive customers whose record was created in 2006.,"SELECT first_name, last_name, email FROM customer WHERE STRFTIME('%Y',create_date) = '2006' AND active = 0" Who was the trainer when the jockey was Luke Nolen?,"SELECT trainer FROM table_24915874_1 WHERE jockey = ""Luke Nolen""" How many annual interchanges are at that station?,SELECT T2.Annual_interchanges FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count ( * ) DESC LIMIT 1 What is the course on 1 June?,"SELECT course FROM table_name_10 WHERE date = ""1 june""" how many times does ROY SWEAZY has reserved a room,"SELECT count ( * ) FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY""" "What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?","SELECT social_ao FROM table_name_83 WHERE external_co = ""simonas savickas"" AND internal_co = ""pieter kuijsten""" Give the bounding box of the kite in image no.2324765.,"SELECT T2.X, T2.Y, T2.W, T2.H FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2324765 AND T1.OBJ_CLASS = 'kite'" state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna,"SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = ""Impreuna pentru totdeauna""" What's the attendance of the game with a score of 5-4?,"SELECT attendance FROM table_name_52 WHERE score = ""5-4""" Name who wrote the episode by lawrence trilling,"SELECT written_by FROM table_27504682_1 WHERE directed_by = ""Lawrence Trilling""" What country has the SBA Towers Tower Hayneville?,"SELECT country FROM table_name_71 WHERE name = ""sba towers tower hayneville""" When were the boston bruins the home team?,"SELECT date FROM table_name_95 WHERE home = ""boston bruins""" What is the average horizontal bar points for all gymnasts?,SELECT avg(Horizontal_Bar_Points) FROM gymnast "Among the current legislators who do not have accounts on OpenSecrets.org., how many of them do not have instagram accounts either?",SELECT SUM(CASE WHEN T1.instagram IS NULL THEN 1 ELSE 0 END) AS count FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.opensecrets_id IS NULL OR T2.opensecrets_id = '' Tell me the constructor for alberto colombo and chassis of a1,"SELECT constructor FROM table_name_3 WHERE driver = ""alberto colombo"" AND chassis = ""a1""" How much higher is the salary of Andrew Fuller than that of Nancy Davolio?,SELECT ( SELECT Salary FROM Employees WHERE LastName = 'Fuller' AND FirstName = 'Andrew' ) - ( SELECT Salary FROM Employees WHERE LastName = 'Davolio' AND FirstName = 'Nancy' ) AS RESULT "Which championship had a final score of 6–4, 2–6, 6–4, 7–6(3)?","SELECT championship FROM table_2362486_1 WHERE score_in_the_final = ""6–4, 2–6, 6–4, 7–6(3)""" How many menus were created for steamship?,SELECT COUNT(*) FROM Menu WHERE venue = 'STEAMSHIP' Which Surface has an Opponent in the final of daniella dominikovic?,"SELECT surface FROM table_name_5 WHERE opponent_in_the_final = ""daniella dominikovic""" What was the SPA FEA when the LMS FEA was 5?,"SELECT spa_fea FROM table_name_60 WHERE lms_fea = ""5""" In the final against Ashley Harkleroad what was the score?,"SELECT score FROM table_name_21 WHERE opponent_in_the_final = ""ashley harkleroad""" Which of the titles have a duration time of 4:57?,"SELECT title FROM table_name_81 WHERE duration = ""4:57""" Find the number of users in each role.,"SELECT count(*) , role_code FROM users GROUP BY role_code" What was the attendance when Essendon played as the home team?,"SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = ""essendon""" Who was the nominee having a Tony award?,"SELECT nominee FROM table_name_16 WHERE award = ""tony award""" Which driver was in 8 rounds with a chassis of dallara f306?,"SELECT driver FROM table_name_57 WHERE chassis = ""dallara f306"" AND rounds = ""8""" display the employee ID for each employee and the date on which he ended his previous job.,"SELECT employee_id , MAX(end_date) FROM job_history GROUP BY employee_id" List all church names in descending order of opening date.,SELECT name FROM church ORDER BY open_date DESC "Which Points have a December smaller than 6, and a Score of 1–1 ot, and a Game smaller than 28?","SELECT MIN(points) FROM table_name_1 WHERE december < 6 AND score = ""1–1 ot"" AND game < 28" "Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?","SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = ""04h17m35.8s""" "What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue?","SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = ""100 van ness avenue""" Which time/retired had 75 laps and Pedro de la Rosa as a driver?,"SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = ""pedro de la rosa""" Show the nicknames of schools that are not in division 1.,"SELECT Nickname FROM school_details WHERE Division != ""Division 1""" "Which printer issued sheets on October 5, 2006?","SELECT printer FROM table_name_79 WHERE date_of_issue = ""october 5, 2006""" Which City has a Lead of steve gould?,"SELECT city FROM table_name_52 WHERE lead = ""steve gould""" what is the average genes when the reference is 2009 and the strain is rku-1?,"SELECT AVG(genes) FROM table_name_84 WHERE reference = ""2009"" AND strain = ""rku-1""" which department has the most professors?,SELECT * FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count ( * ) desc LIMIT 1 What network has a Play-by-play by Jack Edwards in 2000?,"SELECT network FROM table_name_3 WHERE play_by_play = ""jack edwards"" AND year = 2000" What was the attendance for the game on August 16?,"SELECT SUM(attendance) FROM table_name_74 WHERE date = ""august 16""" "Which department, altogether, has the most personnel who work the evening shift?",SELECT T3.Name FROM EmployeeDepartmentHistory AS T1 INNER JOIN Shift AS T2 ON T1.ShiftId = T2.ShiftId INNER JOIN Department AS T3 ON T1.DepartmentID = T3.DepartmentID WHERE T2.Name = 'Night' GROUP BY T3.Name ORDER BY COUNT(T1.BusinessEntityID) DESC LIMIT 1 what about black?,SELECT Name FROM city ORDER BY Black DESC LIMIT 1 Which fatality was at ankara for the aircraft douglas c-47?,"SELECT fatalities FROM table_name_60 WHERE location = ""ankara"" AND aircraft = ""douglas c-47""" What was the type when there were 175932 yes votes? ,SELECT type FROM table_256286_40 WHERE yes_votes = 175932 What are the names of musicals who have no actors?,SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor) how many airports on this table,SELECT COUNT ( DISTINCT name ) FROM airport What is the name of the manufacturer that has the third lowest revenue?,"SELECT name FROM manufacturers ORDER BY revenue asc LIMIT 2,1" What is the email and phone number of Astrid Gruber the customer?,"SELECT email , phone FROM customers WHERE first_name = ""Astrid"" AND last_name = ""Gruber"";" "what is the venue on october 28, 2008?","SELECT venue FROM table_name_43 WHERE date = ""october 28, 2008""" Who is the sponsor of the player with the least amount of votes?,SELECT Sponsor_name FROM player ORDER BY Votes asc LIMIT 1 What was the surface of the game that resulted in a final score of 6-1 7-5?,"SELECT surface FROM table_name_90 WHERE score = ""6-1 7-5""" What is the percentage of the trip were done by a subscriber?,SELECT CAST(COUNT(subscription_type) AS REAL) * 100 / ( SELECT COUNT(subscription_type) FROM trip ) FROM trip WHERE subscription_type = 'Subscriber' Hello! Can you please provide me with a list of the player IDs and player names?,"SELECT player_api_id, player_name FROM Player" "What is the Surface of the match played on October 5, 1987?","SELECT surface FROM table_name_77 WHERE date = ""october 5, 1987""" what's the election date where electorate is christchurch country,"SELECT election_date FROM table_1193568_1 WHERE electorate = ""Christchurch Country""" "What are the names of the parts that have a part supply cost of at least 1,000?",SELECT T1.p_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T2.ps_supplycost > 1000 what is the date for the tournament joué-lès-tours?,"SELECT date FROM table_name_52 WHERE tournament = ""joué-lès-tours""" Who called the race in 1998? ,SELECT race_caller FROM table_22583466_3 WHERE year = 1998 Show the names of buildings except for those having an institution founded in 2003.,SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003 How many female legislators become representatives for California in 2015?,"SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE STRFTIME('%Y', T2.start) = '2015' AND T2.state = 'CA' AND T1.gender_bio = 'F'" which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?,"SELECT copa_libertadores_1996 FROM table_name_10 WHERE supercopa_1995 = ""round 1"" AND team = ""argentinos juniors""" "Find the name and nationality of the swimmer who has won (i.e., has a result of ""win"") more than 1 time.","SELECT t1.name , t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING count(*) > 1" How many cities have a salt lake located in it?,SELECT COUNT(T1.City) FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T2.Type = 'salt' Was Anthony Azzara's role in episode tt0629204 displayed in the credits at the end of the episode?,SELECT T1.credited FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'Anthony Azzara' AND T1.episode_id = 'tt0629204' "Among the orders made by customers in the household segment, how many of them are urgent?",SELECT COUNT(T1.o_orderpriority) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'HOUSEHOLD' AND T1.o_orderpriority = '1-URGENT' "Among all recipes containing cheese, what is the percentage of recipes with calories greater than 200?",SELECT CAST(SUM(CASE WHEN T4.calories > 200 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id INNER JOIN Nutrition AS T4 ON T4.recipe_id = T1.recipe_id WHERE T3.category = 'cheese' "Who is the coach who had coached the the most seasons in MTL? State his given name, date of birth and all teams he had coaches before.","SELECT T2.nameGiven , T2.birthYear, T2.birthMon, T2.birthDay, T3.name FROM Goalies AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T3.lgID = T1.lgID WHERE T3.tmID = 'MTL' GROUP BY T2.nameGiven, T2.birthYear, T2.birthMon, T2.birthDay, T3.name ORDER BY COUNT(T2.coachID) DESC LIMIT 1" "On what date was the attendance of the crowd 78,431?","SELECT date FROM table_name_54 WHERE attendance = ""78,431""" "What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?","SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = ""germany (ger)"" AND gold < 1" "Among the players from South Africa, provide the players' names who were born in 1984.",SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'South Africa' AND T1.DOB LIKE '1984%' Show the names of customers who have the most mailshots.,SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Who were the candidates when Sid Simpson was the incumbent?,"SELECT candidates FROM table_1342249_13 WHERE incumbent = ""Sid Simpson""" "Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?","SELECT pole_position FROM table_25773116_2 WHERE fastest_lap = ""Victor Carbone"" AND location = ""Braselton, Georgia""" "What is Speed, when Time is 1:24.23.0?","SELECT speed FROM table_name_98 WHERE time = ""1:24.23.0""" What is the official language spoken in the country whose head of state is Beatrix?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = ""Beatrix"" AND T2.IsOfficial = ""T""" "For the Ligue 2 game that made the most goals, who is the winner of that game?",SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam ELSE T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Ligue 2' ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1 "What are the first year and last year of the parties whose theme is ""Spring"" or ""Teqnology""?","SELECT First_year , Last_year FROM party WHERE Party_Theme = ""Spring"" OR Party_Theme = ""Teqnology""" How many users have rated 1 each for the UK's second newest movies with a running time of 2?,SELECT COUNT(T2.userid) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'UK' AND T1.runningtime = 2 AND T2.rating = 1 AND T1.year = 2 how many accelerators are there?,SELECT count ( * ) FROM web_client_accelerator Show the property type descriptions of properties belonging to that code.,SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code Tell me the artist id and album id for title Balls to the Wall ?,"SELECT AlbumID, ArtistId FROM ALBUM where Title = 'Balls to the Wall'" Which Copa del Rey has a La Liga smaller than 0?,SELECT SUM(copa_del_rey) FROM table_name_80 WHERE la_liga < 0 What is the nationality of the journalist with the largest number of years working?,SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1 Find the names and number of works of the three artists who have produced the most songs.,"SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3" Who was the bodybuilder when Coventry was operating?,"SELECT bodybuilder FROM table_28035004_1 WHERE operator = ""Coventry""" How many criteria belong to ranking system ID 3?,SELECT COUNT(id) FROM ranking_criteria WHERE ranking_system_id = 3 What is the number of the cars with horsepower more than 150?,SELECT count(*) FROM CARS_DATA WHERE horsepower > 150; What are the titles of segment c for series episode is 21-08?,"SELECT segment_c FROM table_15187735_21 WHERE series_ep = ""21-08""" List the name of the players born between 1970 and 1990 in descending order of age.,SELECT Player_Name FROM Player WHERE DOB BETWEEN '1970-01-01' AND '1990-12-31' ORDER BY DOB DESC What does dan do for work?,SELECT job FROM Person WHERE name = 'Dan' "What is the average Bronze, when Total is 7, and when Silver is greater than 1?",SELECT AVG(bronze) FROM table_name_23 WHERE total = 7 AND silver > 1 What is the team's record in 3a volleyball?,"SELECT record FROM table_name_89 WHERE class = ""3a"" AND sport = ""volleyball""" "What was the latest year with a position of 1st at Maputo, Mozambique?","SELECT MAX(year) FROM table_name_60 WHERE position = ""1st"" AND venue = ""maputo, mozambique""" "What are the enrollments of schools whose denomination is not ""Catholic""?","SELECT Enrollment FROM school WHERE Denomination != ""Catholic"";" "Name the most points for champion, won in the final against amélie mauresmo","SELECT MAX(points) FROM table_1973321_5 WHERE status = ""Champion, won in the final against Amélie Mauresmo""" Which leagues entered an extra preliminary round?,"SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE round = ""Extra Preliminary round""" What is the Attendance of the game against the Florida Panthers?,"SELECT SUM(attendance) FROM table_name_8 WHERE opponent = ""florida panthers""" What is the attendance of week 1,SELECT attendance FROM table_name_92 WHERE week = 1 What year was owner Michael E. Pegram's last win?,"SELECT MAX(year) FROM table_name_42 WHERE owner = ""michael e. pegram""" Who had the fastest lap where Joan Lascorz was the winner?,"SELECT fastest_lap FROM table_name_45 WHERE race_winner = ""joan lascorz""" What nationality is the player who went to school at South Florida?,"SELECT nationality FROM table_16494599_1 WHERE school_club_team = ""South Florida""" "Show the first year and last year of parties with theme ""Spring"" or ""Teqnology"".","SELECT First_year, Last_year FROM party WHERE Party_Theme = ""Spring"" OR Party_Theme = ""Teqnology""" What date is the circuit at wanneroo park?,"SELECT date FROM table_name_64 WHERE circuit = ""wanneroo park""" What percentage of the orders placed by Kaleena were shipped by the international method?,SELECT CAST(SUM(CASE WHEN T3.method_name = 'International' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T1.first_name = 'Kaleena' What party won with a margin of 105731?,SELECT party FROM table_22756549_1 WHERE margin = 105731 "What're the names of the enzymes in the medicine ""Amisulpride"" that can serve as an inhibitor?",SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor' how many times was the high rebounds by Mcdyess (9) and the high assists was by Billups (10)?,"SELECT COUNT(high_points) FROM table_11960944_4 WHERE high_rebounds = ""McDyess (9)"" AND high_assists = ""Billups (10)""" "What is the id, name and IATA code of the airport that had most number of flights?","SELECT T1.id, T1.name, T1.IATA FROM airport as t1 JOIN flight AS t2 ON t1.id = t2.airport_id GROUP BY t1.id ORDER BY count(*) DESC LIMIT 1" Which date is associated with the player Wilbert Robinson?,"SELECT date FROM table_name_40 WHERE player = ""wilbert robinson""" How many different degree names are offered?,SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs Name the 2011 for 2010 of olympic games,"SELECT 2011 FROM table_name_64 WHERE 2010 = ""olympic games""" "Among the products, how many of them are freebies?",SELECT COUNT(ProductID) FROM Products WHERE Price = 0 What is the average age for each dorm and what are the names of each dorm?,"SELECT avg(T1.age) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" What was the new membership total at the nchc (men only) conference?,"SELECT new_membership_total FROM table_27671835_3 WHERE conference = ""NCHC (men only)""" Find the category descriptions of the products whose descriptions include letter 't'.,SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' whats he average number of staffs in charge,select avg ( Num_of_shaff_in_charge ) from happy_hour What are total salaries and department id for each department that has more than 2 employees?,"SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2" What is the job id for each employee in the Finance department?,SELECT T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance' Find the addresses and author IDs of the course authors that teach at least two courses.,"SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count ( * ) > = 2" List the project details of the projects which did not hire any staff for a researcher role.,SELECT project_details FROM Projects WHERE project_id NOT IN ( SELECT project_id FROM Project_Staff WHERE role_code = 'researcher' ) "Attendance of 48,510 had what highest week?",SELECT MAX(week) FROM table_name_30 WHERE attendance = 48 OFFSET 510 What are the lowest points for an engine with a Dallara F303 chassis?,"SELECT MIN(points) FROM table_name_93 WHERE chassis = ""dallara f303""" "List all the films with the word ""Lacklusture"" in their description.",SELECT title FROM film_text WHERE description LIKE '%Lacklusture%' What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?,SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80 on what date of the performance with the highest number of attendees?,SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1 Name the total number of bids of the sun belt conference,"SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = ""Sun Belt""" Find the government form name and total population for each government form whose average life expectancy is longer than 72.,"SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72" Find the number of students taught by TARRING LEIA.,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""TARRING"" AND T2.lastname = ""LEIA""" Which character did Orlando Bloom play in the movie Pirates of the Caribbean: The Curse of the Black Pearl?,SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND T3.person_name = 'Orlando Bloom' For what Class A is the school year 1987-88?,"SELECT class_a FROM table_name_24 WHERE school_year = ""1987-88""" What is the average number of professional or master/undergraduate courses being taught by each professor?,SELECT CAST(COUNT(T1.course_id) AS REAL) / COUNT(DISTINCT T2.p_id) FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_500' Name the score for 30 january 2013,"SELECT score FROM table_name_24 WHERE date = ""30 january 2013""" "Can you please list the last names of the faculty in Barton one more time, in alphabetical order?","SELECT Lname FROM FACULTY WHERE Building = ""Barton"" ORDER BY Lname" what was the date of the game on week 2?,SELECT date FROM table_name_2 WHERE week = 2 In what Year is the Gauge 2 ft 6 in?,"SELECT year FROM table_name_22 WHERE gauge = ""2 ft 6 in""" "For the employees who have the highest pay frequency, please list their vacation hours.",SELECT T2.VacationHours FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.BusinessEntityID = ( SELECT BusinessEntityID FROM EmployeePayHistory ORDER BY Rate DESC LIMIT 1 ) What was the number of others votes in Columbia county?,"SELECT MIN(others_number) FROM table_20693870_1 WHERE county = ""Columbia""" what's the loss with try bonus being 5 and points for being 390,"SELECT lost FROM table_12828723_3 WHERE try_bonus = ""5"" AND points_for = ""390""" List all country and league names.,"SELECT T1.name , T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id" Which tournament in 2013 had a 2010 finish of 1R?,"SELECT 2013 FROM table_name_44 WHERE 2006 = ""a"" AND 2010 = ""1r""" What is the id and family name of the driver who has the longest laptime?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1" Find the entry names of the catalog with the attribute that have the most entries.,SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1) Who is the person associated with the crew id 1325273?,SELECT person_name FROM person WHERE person_id = 1325273 Gary Barnett who has been in 0 FA Cups plays what position?,"SELECT position FROM table_name_7 WHERE fa_cup_apps = ""0"" AND name = ""gary barnett""" What is the infinitive stem that has a subjunctive present of ou?,"SELECT inf_stem FROM table_name_10 WHERE subj_pres = ""ou""" Find the name and age of the person who is a friend of Dan or Alice.,"SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'" What nations participated in 2007?,"SELECT nations FROM table_name_87 WHERE year = ""2007""" What is the id and last name of the driver who participated in the most races after 2010?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1" What is the total number of picks for the position of OL?,"SELECT SUM(pick__number) FROM table_name_87 WHERE position = ""ol""" When was the school founded?,SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 What's the language of Draw number 9?,SELECT language FROM table_name_65 WHERE draw = 9 "What's the network in Pachuca, Hidalgo?","SELECT network FROM table_name_14 WHERE city_of_license = ""pachuca, hidalgo""" "Find the start and end dates of behavior incidents of students with last name ""Bergnaum""?","SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Bergnaum""" Please list all of the episodes that aired in 2008 that have the highest number of votes for the maximum star rating.,"SELECT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008' ORDER BY T2.votes DESC LIMIT 1;" "What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?","SELECT COUNT(position) FROM table_name_58 WHERE gymnast = ""oleksandr vorobiov ( ukr )"" AND total > 16.25" List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.,"SELECT T2.Hardware_Model_name , T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32;" What is Turon's author id?,"select authid from authors where lname = ""Turon""" What are the unique ids of those departments where any manager is managing 4 or more employees.,"SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" What is the status of the ENG Country with the name of Farquharson?,"SELECT status FROM table_name_79 WHERE country = ""eng"" AND name = ""farquharson""" Who directed the episode with production code 7aff03?,"SELECT directed_by FROM table_10749143_2 WHERE production_code = ""7AFF03""" What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?,"SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = ""208km/h (129mph)""" What is the score when the points are larger than 74 and the game is 57?,SELECT score FROM table_name_7 WHERE points > 74 AND game = 57 What was the time when Shinya Aoki was the opponent?,"SELECT time FROM table_name_57 WHERE opponent = ""shinya aoki""" Names of browsers that are compartable with cachebox?,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' What are the id of students who registered courses or attended courses?,SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance What are the names of all enzymes that can serve as inhibitors?,SELECT distinct ( T1.name ) FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T2.interaction_type = 'inhibitor' How many friends does Dan have?,SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' Which schools have goalie player?,"SELECT cName FROM tryout WHERE pPos = ""goalie""" Find the name of rooms booked by some customers whose first name contains ROY.,SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%' "How many people played at the club that had a ""goal difference"" of -8 and a position lower than 12?",SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12 Find the names of stores whose number products is more than the average number of products.,SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop) List the dishes included on page number 30 with the least in full height.,"SELECT T3.name FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T1.page_number = 30 ORDER BY T1.full_height DESC, T1.full_height ASC LIMIT 1" "Among the companies to which Adventure Works Cycles purchases parts or other goods, what is the profit on net obtained from the vendor who has an above average credit rating? Kindly indicate each names of the vendor and the corresponding net profits.","SELECT T2.Name, T1.LastReceiptCost - T1.StandardPrice FROM ProductVendor AS T1 INNER JOIN Vendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.CreditRating = 3" what is the natural change (per 1000) when the crude death rate (per 1000) is 10?,SELECT natural_change__per_1000_ FROM table_name_61 WHERE crude_death_rate__per_1000_ = 10 Where did he finish when he started at 21.6?,"SELECT COUNT(finish) FROM table_2649597_1 WHERE start = ""21.6""" Who is fourth when Anders Martinson USA is second?,"SELECT fourth FROM table_name_98 WHERE second = ""anders martinson usa""" How many faculty members do we have for each faculty rank?,"SELECT rank , count(*) FROM Faculty GROUP BY rank" What Position has a Round that's larger than 21?,SELECT position FROM table_name_86 WHERE round > 21 What is the alias of the city called Hartford?,SELECT DISTINCT T2.alias FROM zip_data AS T1 INNER JOIN alias AS T2 ON T1.zip_code = T2.zip_code WHERE T1.city = 'Hartford' What is the name of the network in the United Kingdom which aired in 1985–1992?,"SELECT network FROM table_name_44 WHERE region_country = ""united kingdom"" AND dates_aired = ""1985–1992""" "Show id,first and last names for all customers with at least two cards?","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 2" "In the Tournament during which Jiří Novák made it to the 1st round(1R) in 1995, how did he do in 2001?","SELECT 2001 FROM table_name_32 WHERE 1995 = ""1r""" Find the number of students for each department.,"SELECT count(*) , dept_code FROM student GROUP BY dept_code" Tell me the WL doubles with a debut of 1999,SELECT w_l__doubles_ FROM table_name_73 WHERE debut = 1999 "What is the Result of the game with an Attendance of 64,104?","SELECT result FROM table_name_25 WHERE attendance = ""64,104""" "Who has a total of the Bronze less than 4, gold more than 0, and no silver?",SELECT SUM(bronze) FROM table_name_30 WHERE total < 4 AND gold > 0 AND silver = 0 "What is the Location when the opponent shows vs. ole miss, and a Loss of mckean (4-1)?","SELECT location FROM table_name_41 WHERE opponent = ""vs. ole miss"" AND loss = ""mckean (4-1)""" What are the work type of Kamila Porczyk?,"SELECT T1.Work_Type FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T2.Name = ""Kamila Porczyk""" How many disabled students are male?,SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name What are the names of students who have more than one advisor?,SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1 Find the names of the items that did not receive any review.,SELECT title FROM item WHERE NOT i_id IN (SELECT i_id FROM review) "Hello, how many total documents are there?",select count ( * ) from documents what is the least number of goals for when the goals against is 70 and the ties less than 0?,SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0 Great! Can you update this list to include the average roller coaster speed for each of these three countries?,"SELECT T1.Name , avg ( T2.Speed ) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name" What region has the catalog sir021-6?,"SELECT region FROM table_name_93 WHERE catalog = ""sir021-6""" How many votes were cast in Wayne county?,"SELECT MAX(total__number) FROM table_13625792_1 WHERE county = ""Wayne""" Who were the cover model(s) on the 4-05 issue?,"SELECT cover_model FROM table_1566852_6 WHERE date = ""4-05""" Who was the turbine manufacturer for the Wheatland county?,"SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = ""Wheatland""" What is the biggest number of females where the males are at 28.2 with a rank greater than 5?,SELECT MAX(females) FROM table_name_46 WHERE males = 28.2 AND rank > 5 Who is the player from round 13 that plays center?,"SELECT player FROM table_name_47 WHERE round = 13 AND position = ""center""" Write the names of the podcasts in the music category that have a rating greater than 3.,SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'music' AND T2.rating > 3 What is the sum of all points when number played is less than 18?,SELECT SUM(points) FROM table_name_40 WHERE played < 18 Find the phone number of all the customers and staff.,SELECT phone_number FROM customers UNION SELECT phone_number FROM staff What place has a draw smaller than 2?,SELECT AVG(place) FROM table_name_90 WHERE draw < 2 what is the average attendance of Cowboys Stadium,"SELECT Average_Attendance FROM stadium WHERE name = ""Cowboys Stadium""" Show the name of track with most number of races.,SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1 "Which opponent has September 14, 2003 as the date?","SELECT opponent FROM table_name_14 WHERE date = ""september 14, 2003""" What is the away team's score at princes park?,"SELECT away_team AS score FROM table_name_49 WHERE venue = ""princes park""" "Show the names of journalists FROM ""England"" or ""Wales"".","SELECT Name FROM journalist WHERE Nationality = ""England"" OR Nationality = ""Wales""" "Show name, opening year, and capacity for each cinema.","SELECT name , openning_year , capacity FROM cinema" What is the total number of students enrolled in schools without any goalies?,"SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos = ""goalie"")" What are project ids of projects that have 2 or more corresponding documents?,SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2 "If the branding is Yes! FM 91.1 Boracay, what is the power?","SELECT power__kw_ FROM table_19874169_3 WHERE branding = ""YES! FM 91.1 Boracay""" "What is the first name, last name, and phone of the customer with account name 162?","SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""162""" what are their ids?,SELECT student_id FROM student_course_registrations GROUP BY student_id having count ( * ) = 1 "What are the maximum, minimum and average home games each stadium held?","SELECT max(home_games) , min(home_games) , avg(home_games) FROM stadium" What about faculty members who participate in Mountain Climbing?,SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Mountain Climbing' How many percent of domestic violence cases were arrested in West Pullman?,SELECT CAST(COUNT(CASE WHEN T2.arrest = 'TRUE' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'West Pullman' AND T2.domestic = 'TRUE' what's the district with first elected being 1972,SELECT district FROM table_1341586_39 WHERE first_elected = 1972 How was the Temple of Artemis at Ephesus destroyed?,"SELECT cause_of_destruction FROM table_19342760_1 WHERE name = ""Temple of Artemis at Ephesus""" Who had the high points when high assists is tim duncan (5)?,"SELECT high_points FROM table_27715173_8 WHERE high_assists = ""Tim Duncan (5)""" What date has boston as the visitor?,"SELECT date FROM table_name_21 WHERE visitor = ""boston""" Okay. How many races did he participate in?,SELECT count ( * ) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count ( * ) limit 1 Give the different hometowns of gymnasts that have a total point score of above 57.5.,SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5 "For the city with the most elders, what's its area code?",SELECT T2.area_code FROM zip_data AS T1 INNER JOIN area_code AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.area_code ORDER BY T1.over_65 DESC LIMIT 1 Find the first name and country code of the oldest player.,"SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1" At what venue was the game played where the away team was South Melbourne,"SELECT venue FROM table_name_49 WHERE away_team = ""south melbourne""" Who is the artist with catalog number ZK 34354?,"SELECT artist FROM table_name_38 WHERE catalog__number = ""zk 34354""" On what date was their record 26-19?,"SELECT date FROM table_name_70 WHERE record = ""26-19""" What is the unique id number identifying the onion object class?,SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS = 'onion' What rocket has a COSPAR ID of 2002-001a?,"SELECT rocket FROM table_name_31 WHERE cospar_id = ""2002-001a""" What is the event in a year before 1989?,SELECT event FROM table_name_37 WHERE year < 1989 Who is the kitmaker for TPS?,"SELECT kitmaker FROM table_25129482_1 WHERE club = ""TPS""" Name the total number of years for usisl pro league,"SELECT COUNT(year) FROM table_2511876_1 WHERE league = ""USISL Pro league""" How many different courses offered by Physics department?,SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics' How many courses are provided in each semester and year?,"SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR" In what city is the Estonian University of Life Sciences located?,"SELECT city FROM table_name_42 WHERE name = ""estonian university of life sciences""" "How many users were trialists when they rated the movie ""A Way of Life""?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1 List the player's name of Mumbai Indians in the match ID 335990.,SELECT T3.Team_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T2.Player_Id = T1.Player_Id INNER JOIN Team AS T3 ON T3.Team_Id = T2.Team_Id WHERE T2.Match_Id = 335990 AND T3.Team_Name = 'Mumbai Indians' GROUP BY T3.Team_Name What is the total attendance of the match with a 1:2 score?,"SELECT COUNT(attendance) FROM table_name_92 WHERE score = ""1:2""" What city ranked 7?,SELECT city FROM table_name_20 WHERE rank = 7 What is the name and dose of the medication?,"SELECT distinct T4.Name, T3.Dose FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE T2.Name = 'John Smith'" Which urban area has a 2011 population of 5010? ,SELECT urban_area FROM table_1940144_1 WHERE population_2011 = 5010 "Which Played has a Lost larger than 2, and a Team of américa?","SELECT played FROM table_name_4 WHERE lost > 2 AND team = ""américa""" How many have won at least two matches?,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT ( * ) > = 2 Where was the ship when the ship had captured as the disposition of ship and was carrying 225 tonnage?,"SELECT location FROM table_name_29 WHERE disposition_of_ship = ""captured"" AND tonnage = ""225""" Count the number of different ranks of captain.,SELECT count(DISTINCT rank) FROM captain "What is the sum of Poles, when Podiums is 0, and when Races is 17?",SELECT SUM(poles) FROM table_name_35 WHERE podiums = 0 AND races = 17 What is the record on October 30?,"SELECT record FROM table_name_74 WHERE date = ""october 30""" What is Thad Jemison's position?,"SELECT position FROM table_name_85 WHERE player = ""thad jemison""" Name the D 41 √ for having D 43 of r 13,"SELECT d_41_√ FROM table_name_20 WHERE d_43_o = ""r 13""" What is the highest score of round 1 where they also shot 90 in round 2,SELECT MAX(round_1) FROM table_14708760_3 WHERE round_2 = 90 Which country does Malina Johnson live in?,SELECT T4.country_name FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id INNER JOIN country AS T4 ON T4.country_id = T3.country_id WHERE T1.first_name = 'Malina' AND T1.last_name = 'Johnson' AND T2.status_id = 2 Who scored the lowest with 8 gold medals and less than 4 silver medals?,SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 4 Name the film title for okkar á milli: í hita og þunga dagsins,"SELECT film_title_used_in_nomination FROM table_name_98 WHERE original_name = ""okkar á milli: í hita og þunga dagsins""" What are the names of banks in the state of New York?,SELECT bname FROM bank WHERE state = 'New York' Which province is grey and bell electorate in,"SELECT province FROM table_1024710_2 WHERE electorate = ""Grey and Bell""" "Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers.","SELECT title, revision FROM pages WHERE lid = 1 LIMIT 3" What is the average enrollment of schools?,SELECT avg(Enrollment) FROM school List out the category name of business id 5.,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T2.business_id = 5 List each test result and its count in descending order of count.,"SELECT test_result , COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC" Which Goals For has a Played larger than 34?,SELECT MIN(goals_for) FROM table_name_86 WHERE played > 34 In which state can you find the highest amount of good performing Account Representatives?,SELECT T2.state FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T1.performance = 'Good' GROUP BY T2.state ORDER BY COUNT(T2.state) DESC LIMIT 1 What is the score that the player who placed t4 from the united states get?,"SELECT score FROM table_name_80 WHERE country = ""united states"" AND place = ""t4""" What are all names for the position FS?,"SELECT name FROM table_14624447_24 WHERE position = ""FS""" When Bianca Manalo won Miss Universe Philippines who was the second runner-up?,"SELECT second_runner_up FROM table_name_46 WHERE miss_universe_philippines = ""bianca manalo""" List at least 10 users ID that has 4 as an average ratings of all reviews sent.,SELECT COUNT(user_id) FROM Users WHERE user_average_stars = 4 LIMIT 10 What is the record on April 28?,"SELECT record FROM table_name_81 WHERE date = ""april 28""" What is the 2010 value with a 1r in 2012 and an A in 2005?,"SELECT 2010 FROM table_name_75 WHERE 2012 = ""1r"" AND 2005 = ""a""" How many female students joined a marines and air force organization?,"SELECT COUNT(name) FROM enlist WHERE organ IN ('marines', 'air_force') AND name NOT IN ( SELECT name FROM male )" "List the names of the customers who have once bought product ""food"".","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = ""food"" GROUP BY T1.customer_id HAVING count(*) >= 1" Hello There! Can you provide me with a list of all customer names?,SELECT customer_name FROM customers What was Nick Faldo's score?,"SELECT score FROM table_name_73 WHERE player = ""nick faldo""" What is the average weight of Japanese cars with 4 cylinders that were produced from 1975 to 1980?,SELECT AVG(T1.weight) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T2.model_year BETWEEN 1975 AND 1980 AND T1.cylinders = 4 AND T3.country = 'Japan' what is the rank of mark,"select Rank from Faculty where Fname = ""Mark""" What is the name of the following phone number 515.123.4569? Tell me Employer ID,"SELECT employee_id, first_name, last_name from employees where phone_number = ""515.123.4569""" How many images have at least 25 attributes?,SELECT COUNT(*) FROM ( SELECT IMG_ID FROM IMG_OBJ_att GROUP BY IMG_ID HAVING COUNT(ATT_CLASS_ID) > 25 ) T1 Show names of companies and that of employees in descending order of number of years working for that employee.,"SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working" "What is No. 8, when No. 10 is Hunter?","SELECT no_8 FROM table_name_76 WHERE no_10 = ""hunter""" What is the Davao's power (kW)?,"SELECT power__kw_ FROM table_name_44 WHERE location = ""davao""" "How many papers were published in 2011 in the journal whose short name is ""Mol Brain""?",SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2011 AND T1.ShortName = 'Mol Brain' Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10,SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING sum ( T1.budgeted ) > 100 OR sum ( T3.amount ) > 10 What are the names of all the media types?,SELECT name FROM media_types; I want to know the number of public universities,SELECT count ( * ) FROM university WHERE affiliation = 'Public' What is the address for the Scorpions' mascot?,"SELECT address FROM table_name_80 WHERE mascot = ""scorpions""" now how many purchases did members with level 6 make?,SELECT count ( * ) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 Who was the home team of the game at the time of 15:00?,"SELECT home FROM table_name_33 WHERE time = ""15:00""" What is the snowfall for ski resort Snowmass?,"SELECT MAX(snowfall__in_year_) FROM table_25762852_1 WHERE name = ""Snowmass""" What is the total number in January when the St. Louis Blues had a game smaller than 42?,"SELECT COUNT(january) FROM table_name_83 WHERE opponent = ""st. louis blues"" AND game < 42" Count the number of different account types.,SELECT count(DISTINCT acc_type) FROM customer "In films with a rental rate of 2.99, how many of the films are starred by Nina Soto?",SELECT COUNT(T1.film_id) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.rental_rate = 2.99 AND T2.first_name = 'Nina' AND T2.last_name = 'Soto' Provide the name of the location where transaction no.100885 happened.,SELECT T2.LocationName FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T1.TransactionID = 100885 "What is the grid number with less than 52 laps and a Time/Retired of collision, and a Constructor of arrows - supertec?","SELECT COUNT(grid) FROM table_name_42 WHERE laps < 52 AND time_retired = ""collision"" AND constructor = ""arrows - supertec""" Where does the customer with the first name Linda live? And what is her email?,"SELECT T2.address , T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'" Which class has less in quantity than 174 between the years 1921–23?,"SELECT class FROM table_name_43 WHERE quantity < 174 AND date = ""1921–23""" Find the distinct number of president votes.,SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD How many goals when more than 10 games played?,SELECT AVG(goals_for) FROM table_name_79 WHERE played > 10 list the authors who have submissions to more than one workshop.,SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT ( DISTINCT T1.workshop_id ) > 1 What are the descriptions of the service types with product price above 100?,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 How many users belong to the MOBA category?,SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T2.label_id = T1.label_id WHERE T1.category = 'MOBA' "Which League that has a Open Cup of 1st round, and a Year of 2009?","SELECT league FROM table_name_99 WHERE open_cup = ""1st round"" AND year = 2009" "What is the total number of Year of Intro(s), when Country of Origin is Soviet Union, when Type is Reusable, when Primary Cartridge is 40mm, and when Name/ Designation is RPG-29?","SELECT COUNT(year_of_intro) FROM table_name_87 WHERE country_of_origin = ""soviet union"" AND type = ""reusable"" AND primary_cartridge = ""40mm"" AND name__designation = ""rpg-29""" How many male patients have been described as immune to quadrivalent HPV?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'HPV quadrivalent' AND T1.gender = 'M' Where did the games that had Wake Forest as Acc Team take place?,"SELECT location FROM table_29535057_4 WHERE acc_team = ""Wake Forest""" * I have left the chat *,"SELECT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Germany""" How many events have a time of 1:48.322?,"SELECT event FROM table_16308030_1 WHERE time = ""1:48.322""" Give the area code of the city with the white population ranging between 1700 to 2000.,SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.white_population BETWEEN 1700 AND 2000 Name the party for tim lee hall,"SELECT party FROM table_1341672_14 WHERE incumbent = ""Tim Lee Hall""" What date did episode 10 in the series originally air?,SELECT original_air_date FROM table_27910411_1 WHERE no_in_series = 10 What is the ship ID of shipments shipped to the city with the largest area?,SELECT T1.ship_id FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.area DESC LIMIT 1 How many times has Sunrisers Hyderabad been the toss winner of a game?,SELECT SUM(CASE WHEN Toss_Winner = ( SELECT Team_Id FROM Team WHERE Team_Name = 'Sunrisers Hyderabad' ) THEN 1 ELSE 0 END) FROM `Match` WHAT IS ROOM ID OF MODERN DECOR?,SELECT roomId FROM Rooms WHERE decor = 'modern' What player is a cornerback?,"SELECT player FROM table_name_57 WHERE position = ""cornerback""" What was the away team that played against Melbourne?,"SELECT away_team FROM table_name_96 WHERE home_team = ""melbourne""" What is the name of the department htat has no students minoring in it?,SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO "Give the abbreviation name for the character ""Earl of Westmoreland"".",SELECT DISTINCT Abbrev FROM characters WHERE CharName = 'Earl of Westmoreland' What are the maximum and minimum number of cities in all markets.,"SELECT max ( Number_cities ) , min ( Number_cities ) FROM market" what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador?,"SELECT MIN(capacity___mw__) FROM table_name_99 WHERE rank < 46 AND province = ""newfoundland and labrador""" How many products are there in the records?,SELECT count(*) FROM catalog_contents "What is the Outcome of the game with a Score of 6–4, 6–4?","SELECT outcome FROM table_name_45 WHERE score = ""6–4, 6–4""" What is the genre of the movie title with the lowest revenue generated?,SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id ORDER BY T1.revenue LIMIT 1 What is the last 10 meetings that have 12 as the games played?,"SELECT last_10_meetings FROM table_name_43 WHERE games_played = ""12""" What are the different main industries for all companies?,SELECT DISTINCT main_industry FROM company How many speak german?,"SELECT number FROM table_name_50 WHERE language = ""german""" "What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?","SELECT event FROM table_name_34 WHERE position = ""1st"" AND year = 1983 AND venue = ""budapest""" Which Video has an Aspect of 16:9?,"SELECT video FROM table_name_14 WHERE aspect = ""16:9""" Indicate the complete address of customers located in Lazaro Cardenas.,"SELECT street_number, street_name, city, country_id FROM address WHERE city = 'Lazaro Cardenas'" What is the lost On August 20,"SELECT loss FROM table_name_3 WHERE date = ""august 20""" How many customers live in the city of Prague?,"SELECT count(*) FROM customers WHERE city = ""Prague"";" Under what label was the album with the catalog of 3645 and came out later than 1987?,"SELECT label FROM table_name_42 WHERE catalog = ""3645"" AND date > 1987" Which Comparative has a Link of sourcecode webserver?,"SELECT comparative FROM table_name_43 WHERE link = ""sourcecode webserver""" What is the average number of games in all game types?,"SELECT gtype, count ( * ) FROM Video_games GROUP BY gtype" Did the name change for the program last aired in 1958?,SELECT retitled_as_same FROM table_169766_13 WHERE last_aired = 1958 What was the position of the team that used an oldsmobile engine and DNQ?,"SELECT finish FROM table_name_10 WHERE engine = ""oldsmobile"" AND start = ""dnq""" When did Mrs. Ira Deckow have the standard pregnancy test?,SELECT T2.date FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Ira' AND T1.last = 'Deckow' AND T2.description = 'Standard pregnancy test' "Which away team has an attendance of more than 17,000?",SELECT away_team FROM table_name_30 WHERE crowd > 17 OFFSET 000 Name the result for north carolina 9,"SELECT COUNT(result) FROM table_2668329_18 WHERE district = ""North Carolina 9""" What was the time for Screen Your Friend?,"SELECT time FROM table_name_48 WHERE winner = ""screen your friend""" What is the average number of years spent working as a journalist?,SELECT AVG(Years_working) FROM journalist What is the least number of laps for the driver Jo Siffert?,"SELECT MIN(laps) FROM table_name_58 WHERE driver = ""jo siffert""" Show names of musicals which have at least three actors.,SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3 How many different players did the most high assists on the March 4 game?,"SELECT COUNT(high_assists) FROM table_23286223_8 WHERE date = ""March 4""" What is the total number of people who have no friends living in Austin?,SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin') Which player had the score 71-72=143 in Spain?,"SELECT player FROM table_name_45 WHERE score = 71 - 72 = 143 AND country = ""spain""" "What is the total number of Super Cup, when Title Playoff is ""0"", when Total is greater than 9, and when League is less than 11?",SELECT COUNT(super_cup) FROM table_name_97 WHERE title_playoff = 0 AND total > 9 AND league < 11 What are the profits (in billions) of the company with a market value of 172.9 billion?,"SELECT profits__billion_$_ FROM table_1682026_3 WHERE market_value__billion_$_ = ""172.9""" Show the name and location of track with 1 race.,"SELECT T2.name , T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING count(*) = 1" "In which region can you find the stores located in the state whose median income is no more than 30,000?",SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.`Median Income` < 30000 THEN T1.Region END AS T FROM Regions T1 INNER JOIN `Store Locations` T2 ON T2.StateCode = T1.StateCode ) WHERE T IS NOT NULL In which season is the runner-up Lase-R/Riga?,"SELECT season FROM table_25058269_1 WHERE runner_up = ""Lase-R/Riga""" How long did it take to ride when the laps were 23 and the grid of 13?,SELECT time FROM table_name_65 WHERE laps = 23 AND grid = 13 What was the time for the G2 group at the Hobartville Stakes?,"SELECT time FROM table_name_62 WHERE group = ""g2"" AND race = ""hobartville stakes""" "What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?",SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 6 "If the rank is 11, what is the total amount?",SELECT total FROM table_21995420_9 WHERE rank = 11 "How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?","SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = ""atlantic marine"" AND area__km²__exclusive_economic_zone < 996 OFFSET 439" "Hmm, I also want to know their years working.","SELECT Driver_ID, Years_Working, If_full_time FROM school_bus" "Which chassis had Rounds of 7, and an Entrant of Ecurie Rosier?","SELECT chassis FROM table_name_15 WHERE rounds = ""7"" AND entrant = ""ecurie rosier""" What method resulted in a win and a time of 4:36?,"SELECT method FROM table_name_44 WHERE res = ""win"" AND time = ""4:36""" What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?,"SELECT host_country___countries FROM table_name_42 WHERE silver = ""[[|]] (2)"" AND bronze = ""czechoslovakia (3)""" Name the most common predicate class of image ID 4434.,SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.IMG_ID = 4434 ORDER BY T2.PRED_CLASS DESC LIMIT 1 "Find the name of the products that have the color description ""red"" and have the characteristic name ""fast"".","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""fast""" "What is the unemployment rate for the county with a market income per capita of $20,958?","SELECT COUNT(unemployment_rate) FROM table_22815568_2 WHERE market_income_per_capita = ""$20,958""" What were the highest goals against when the position was larger than 19 and the goals smaller than 36?,SELECT MAX(goals_against) FROM table_name_32 WHERE position > 19 AND goals_for < 36 How much freedom can did the people of Guinea experience in 2013?,"SELECT freedom_in_the_world_2013 FROM table_1604579_2 WHERE country = ""Guinea""" What is the mean vertical relief in feet when the rank is more than 40 and the location is va0573?,"SELECT AVG(vertical_relief__ft_) FROM table_name_94 WHERE rank > 40 AND location = ""va0573""" How many employees does role code ED have?,"SELECT count ( * ) from employees where role_code = ""ED""" What is the state where the title is listed as count?,"SELECT state FROM table_name_63 WHERE title = ""count""" "What is Height in Ft., when Years With Spurs is 1973-74?","SELECT height_in_ft FROM table_name_87 WHERE years_with_spurs = ""1973-74""" Which year had the most number of trips that started at stations in San Francisco?,"SELECT SUBSTR(CAST(T1.start_date AS TEXT), INSTR(T1.start_date, ' '), -4) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'San Francisco' GROUP BY T1.start_station_name ORDER BY COUNT(T1.id) DESC LIMIT 1" Which attractions did Vincent go to?,"SELECT * FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent""" What is the market share of Chabudai?,"SELECT Market_Rate FROM furniture WHERE name = ""Chabudai""" Calculate the percentage of running business among all business.,SELECT CAST(SUM(CASE WHEN active = 'true' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(business_id) FROM Business Return the total revenue of companies with headquarters in Tokyo or Taiwan.,SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' what is the virtual callsign if is wnet,"SELECT _virtual_ FROM table_1979203_1 WHERE callsign = ""WNET""" "Among the players that weigh more than 90 kg, what is the name of the player that has the most attendance in the player's first 7 years of NHL career?",SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 AND T1.sum_7yr_GP = ( SELECT MAX(T1.sum_7yr_GP) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 ) Please show the team that has the most number of technicians.,SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1 What is the percentage of solutions for the method that needs to be compiled in the English methods?,SELECT CAST(SUM(CASE WHEN T1.WasCompiled = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Lang) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'en' what would be the name of the station?,"SELECT t2.id,t2.network_name FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id where t1.precipitation = 10" who was running in the section pennsylvania 5,"SELECT candidates FROM table_2668378_13 WHERE district = ""Pennsylvania 5""" What player is from Seton Hall University?,"SELECT player FROM table_name_24 WHERE school = ""seton hall university""" Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?,"SELECT ep_winning_team FROM table_29225103_2 WHERE fm_winning_team = ""Brabham - Ford"" AND hm_winning_team = ""Osca""" How many perpetrators are there?,SELECT COUNT(*) FROM perpetrator What are the last names of those teachers?,SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id Where are the shelves where the down tube product was stored?,SELECT T2.Shelf FROM Product AS T1 INNER JOIN ProductInventory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'Down Tube' "What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko?","SELECT MIN(points) FROM table_name_98 WHERE games > 34 AND name = ""andrew panko""" "What is Place, when Player is ""John Cook""?","SELECT place FROM table_name_49 WHERE player = ""john cook""" When did eleonor magdalene of the palatinate-neuburg become duchess?,"SELECT became_duchess FROM table_name_77 WHERE name = ""eleonor magdalene of the palatinate-neuburg""" What's the number of the player from Boise State?,"SELECT no FROM table_10015132_3 WHERE school_club_team = ""Boise State""" What are the names of the singers who are not French citizens?,"SELECT Name FROM singer WHERE Citizenship != ""France""" "Return the detail of the location named ""UK Gallery"".","SELECT Other_Details FROM LOCATIONS WHERE Location_Name = ""UK Gallery""" What percentage of other candidates did the county which voted 52.1% for Kerry vote for?,"SELECT MAX(others_number) FROM table_name_69 WHERE kerry_percentage = ""52.1%""" "What is the total quantity that Cindy Stewart order ""Lexmark X 9575 Professional All-in-One Color Printer"" in the south superstore?",SELECT SUM(T1.Quantity) FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Cindy Stewart' AND T3.`Product Name` = 'Lexmark X 9575 Professional All-in-One Color Printer' In which region have the most 1-star reviews been done?,SELECT T3.Region FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T1.Stars = 1 GROUP BY T3.Region ORDER BY COUNT(T3.Region) DESC LIMIT 1 What brand of vehicle won a race driven by Tazio Nuvolari?,"SELECT winning_constructor FROM table_name_81 WHERE winning_drivers = ""tazio nuvolari""" What episode number in the series had 2.528 million u.s. viewers?,"SELECT no_in_series FROM table_24223834_3 WHERE us_viewers__in_millions_ = ""2.528""" "List out the number of object samples in image no.41 which are in the class of ""kitchen""?",SELECT SUM(CASE WHEN T2.OBJ_CLASS = 'kitchen' THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 41 "Of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?","SELECT ( SELECT category FROM categories WHERE category = 'arts-books' OR category = 'arts-design' GROUP BY category ORDER BY COUNT(podcast_id) DESC LIMIT 1 ) ""has more podcasts"" , ( SELECT SUM(CASE WHEN category = 'arts-books' THEN 1 ELSE 0 END) - SUM(CASE WHEN category = 'arts-design' THEN 1 ELSE 0 END) FROM categories ) ""differenct BETWEEN arts-books and arts-design""" What was Kilgore's (R) percentage when Potts (I) polled at 1%?,"SELECT kilgore__r_ FROM table_name_95 WHERE potts__i_ = ""1%""" "How many instructors are in the department with the highest budget, and what is their average salary?","SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1" How many pages does the Catalan language have in Wikipedia?,SELECT pages FROM langs WHERE lang = 'ca' What is the title of the film that has the highest high market estimation.,SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1 I want the fastest lap for round of 16,SELECT fastest_lap FROM table_name_18 WHERE round = 16 State the phone name which has the least price on the list?,SELECT Name FROM phone AS T2 ORDER BY price ASC LIMIT 1 What are the first names of all students who took ACCT-211 and received a C?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C' Return the id and full name of the customer who has the fewest accounts.,"SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1" Provide the products list which were ordered in 1996 by the company in Norway.,"SELECT T4.ProductName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID WHERE T1.Country = 'Norway' AND STRFTIME('%Y', T2.OrderDate) = '1996'" What is the name of the ship with the largest tonnage?,SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 "What is Place, when Weapon is ""35mm/Small arms fire""?","SELECT place FROM table_name_6 WHERE weapon = ""35mm/small arms fire""" What type of car does Jeff Fuller drive?,"SELECT car_s_ FROM table_2182170_1 WHERE driver_s_ = ""Jeff Fuller""" What is the name of the customer who has the largest number of orders?,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1 Who is the constructor whose circuit was Oulton Park?,"SELECT constructor FROM table_name_71 WHERE circuit = ""oulton park""" Find the name of dorms that do not have amenity TV Lounge.,SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' What is the lowest numbered lane of Sue Rolph with a rank under 5?,"SELECT MIN(lane) FROM table_name_17 WHERE name = ""sue rolph"" AND rank < 5" "Ranking higher than 2, what Team has Player Paolo Maldini?","SELECT team FROM table_name_52 WHERE rank > 2 AND name = ""paolo maldini""" Find the number of departments in each school.,"SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code" Find the country of origin for the artist who made the least number of songs?,SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1 "Give me the product type, name and price for all the products supplied by supplier id 3.","SELECT T2.product_type_code, T2.product_name, T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3" "Which county has a median family income of $50,227?","SELECT county FROM table_name_99 WHERE median_family_income = ""$50,227""" Who is the director of the fimm Biola Tak Berdawai?,"SELECT director FROM table_13719788_1 WHERE original_title = ""Biola tak berdawai""" can you give me the students with president vote 1004 | What attributes of that student do you want? | first and last names please,"SELECT T1.LNAME, T1.FNAME FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.StuID WHERE T2.PRESIDENT_VOTE = ""1004""" What is the capital of the country that has the Licancabur Mountain?,SELECT T4.Capital FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Province = T3.Name WHERE T1.Name = 'Licancabur' Find the name of customers who are living in Colorado?,"SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = ""Colorado""" Name the team in which the coach won the title 'NBA Coach of the Year' in 2010.,SELECT DISTINCT T1.tmID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 2010 AND T2.award = 'NBA Coach of the Year' List down the name of venues in season 2.,SELECT T2.Venue_Name FROM Match AS T1 INNER JOIN Venue AS T2 ON T2.Venue_Id = T1.Venue_Id WHERE T1.Season_Id = 2 GROUP BY T2.Venue_Name What is the title of episode that won the Best International TV Series Award in 2017?,"SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2017' AND T1.award = 'Best International TV Series' AND T1.result = 'Winner';" Return the dates of ceremony and the results of all music festivals,"SELECT Date_of_ceremony , RESULT FROM music_festival" What are the maximum price and score of wines in each year?,"SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR" what's the electorate where election date is 16 cannot handle non-empty timestamp argument!,"SELECT electorate FROM table_1193568_1 WHERE election_date = ""16 Cannot handle non-empty timestamp argument!""" What is the result for opponent TCU?,"SELECT result FROM table_name_89 WHERE opponent_number = ""tcu""" Who is the player with a t7 place?,"SELECT player FROM table_name_56 WHERE place = ""t7""" How many Annual Meeting events happened in the United Kingdom region?,"SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = ""United Kingdom"" AND t3.Event_Name = ""Annaual Meeting""" What is the distinguished service cross when the navy cross is Coast Guard commendation medal?,"SELECT distinguished_service_cross FROM table_2104176_1 WHERE navy_cross = ""Coast Guard Commendation Medal""" Who are the players played both in NHL and WHA. List the given name and first year they were in NHL and first year in WHA.,"SELECT nameGiven, firstNHL, firstWHA FROM Master WHERE firstNHL IS NOT NULL AND firstWHA IS NOT NULL" What type of political party Sherrod Brown has in 2005?,SELECT T1.party FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name = 'Sherrod' AND T2.last_name = 'Brown' AND T1.start LIKE '%2005%' "In the West, how many stores are there in the city whose land area is below 20,000,000?",SELECT SUM(CASE WHEN T1.Region = 'West' AND T2.`Land Area` < 20000000 THEN 1 ELSE 0 END) FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode "What player has E as the to par, and The United States as the country?","SELECT player FROM table_name_6 WHERE to_par = ""e"" AND country = ""united states""" Find the number of dog pets that are raised by female students (with sex F).,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog' What is Tony O'Sullivan's county?,"SELECT county FROM table_name_67 WHERE player = ""tony o'sullivan""" "What are the last names of staff with email addressed containing the substring ""wrau""?","SELECT last_name FROM staff WHERE email_address LIKE ""%wrau%""" "What is the total number of Bronze when rank is 11, and the total is less than 1?","SELECT COUNT(bronze) FROM table_name_8 WHERE rank = ""11"" AND total < 1" Who was the writer that the director was Alice Troughton and the producer was Phil Collinson?,"SELECT writer FROM table_name_89 WHERE producer = ""phil collinson"" AND director = ""alice troughton""" Name the saka era for malayalam മിഥുനം,"SELECT saka_era FROM table_169955_1 WHERE in_malayalam = ""മിഥുനം""" "Provide the genre of a movie title with a tagline of ""A long time ago in a galaxy far, far away…"".","SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T3.genre_id = T2.genre_id WHERE T1.tagline = 'A long time ago in a galaxy far, far away...'" What is the id of the reviewer whose name has substring “Mike”?,"SELECT rID FROM Reviewer WHERE name LIKE ""%Mike%""" How many states that have some college students playing in the mid position but not in the goalie position.,SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie') "Find the 5-star business in Ahwatukee, AZ and identify it's business category.","SELECT T1.business_id, T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T1.city = 'Ahwatukee' AND T1.stars = 5" "What are the names, headquarters and founders of the company with the highest revenue?","SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1" Which team is 9th in wickets?,"SELECT fielding_team FROM table_1670921_1 WHERE wicket = ""9th""" How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?,SELECT sydney FROM table_24291077_4 WHERE melbourne = 334000 "Among the criminal sexual assaults in the district of Adnardo Gutierrez, how many cases happened in the residence?",SELECT COUNT(T2.report_no) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T3.title = 'Criminal Sexual Assault' AND T1.commander = 'Adnardo Gutierrez' AND T2.location_description = 'RESIDENCE' What is the part 3 of the word in class 7a?,"SELECT part_3 FROM table_1745843_8 WHERE class = ""7a""" What are the movie titles with the highest average rating and what are those ratings?,"SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1" Name the incumbent for candidates Joseph Hiester (dr) 83.2% Roswell Wells (f) 16.8%.,"SELECT incumbent FROM table_2668401_12 WHERE candidates = ""Joseph Hiester (DR) 83.2% Roswell Wells (F) 16.8%""" What is the name and country of origin for each artist who has released a song with a resolution higher than 900?,"SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING count(*) >= 1" Which positions were in Toronto in 2004?,"SELECT position FROM table_10015132_2 WHERE years_in_toronto = ""2004""" When semi final (2nd leg) is the round what is the highest attendance?,"SELECT MAX(attendance) FROM table_28181401_4 WHERE round = ""Semi Final (2nd leg)""" What is the precise location or coordinate where most of the robberies in Rogers Park occurred?,"SELECT T2.latitude, T2.longitude FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.community_area_name = 'Rogers Park' AND T3.title = 'Robbery' AND T3.fbi_code_no = 3" How many lost stats have a played number of less than 8?,SELECT COUNT(lost) FROM table_name_1 WHERE played < 8 "What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?",SELECT COUNT(yds_att) FROM table_name_10 WHERE net_yds = 1818 AND rank > 1 "What Opponent has a Site of razorback stadium • fayetteville, ar, and a Date of october 7, 1967?","SELECT opponent FROM table_name_29 WHERE site = ""razorback stadium • fayetteville, ar"" AND date = ""october 7, 1967""" How many stories does that building have?,SELECT stories FROM buildings ORDER BY Height DESC LIMIT 1 Which continent has the most diverse languages?,SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1 What player represented Vista Murrieta High School?,"SELECT player FROM table_11677691_10 WHERE school = ""Vista Murrieta High school""" Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.,SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008 Who is the winner for the match on October 7?,"SELECT winner FROM table_name_20 WHERE date = ""october 7""" Name the products via wholesale channel of the store under Pacific/Honolulu time zone.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T3.`Time Zone` = 'Pacific/Honolulu' AND T2.`Sales Channel` = 'Wholesale' THEN T1.`Product Name` ELSE NULL END AS T FROM Products T1 INNER JOIN `Sales Orders` T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` T3 ON T3.StoreID = T2._StoreID ) WHERE T IS NOT NULL How many different kinds of information sources are there for injury accidents?,SELECT COUNT(DISTINCT SOURCE) FROM injury_accident How many christmas albums were released in 2004?,SELECT COUNT(T1.id) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'christmas' AND T1.groupYear = 2004 AND T1.releaseType LIKE 'album' "If the water square milage is 1.701, what is the land square milage?","SELECT land___sqmi__ FROM table_18600760_7 WHERE water__sqmi_ = ""1.701""" What day is class?,"SELECT Days FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" What is the charge amount of the most expensive charge type?,SELECT max(charge_amount) FROM Charges Which away team had a Score of 2–0?,"SELECT away_team FROM table_name_53 WHERE score = ""2–0""" Find the name of customers who have both saving and checking account types.,SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' Find the number of flights landing in the city of Aberdeen or Abilene.,"SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = ""Aberdeen"" OR T2.city = ""Abilene""" What are the top 3 companies operating the most cargo flights?,"SELECT * FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id where T1.Principal_activities = ""Cargo"" group BY T1.name order by count ( * ) limit 3" What is the average value of the sales order?,SELECT SUM(UnitPrice * Quantity * (1 - Discount)) / COUNT(OrderID) FROM `Order Details` How many laps did pere riba ride?,"SELECT SUM(laps) FROM table_name_52 WHERE rider = ""pere riba""" Name the date for motogp winner of casey stoner and grand prix of valencian grand prix,"SELECT date FROM table_name_15 WHERE motogp_winner = ""casey stoner"" AND grand_prix = ""valencian grand prix""" What are the names of people in ascending order of height?,SELECT Name FROM People ORDER BY Height What is the population of northfield parish that has an area less than 342.4?,"SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = ""northfield""" "What is % of All, when Dennis Kucinich is ""5%""?","SELECT _percentage_of_all FROM table_name_52 WHERE dennis_kucinich = ""5%""" Show names of pilots that have more than one record.,"SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1" "What team has 0 points and a contact tired/retired, and 71 laps?","SELECT team FROM table_name_80 WHERE points = 0 AND time_retired = ""contact"" AND laps = 71" What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?,"SELECT COUNT(population__2005_) FROM table_1480455_1 WHERE population_density___km_2__ = ""35.9""" Which IHSAA Football Class has a School of wood memorial?,"SELECT ihsaa_football_class FROM table_name_71 WHERE school = ""wood memorial""" What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Rylan"" AND T4.staff_last_name = ""Homenick"" )" Can you list all driver IDs?,SELECT driverId FROM drivers Find the number of people whose age is greater than all engineers.,SELECT COUNT(*) FROM Person WHERE age > (SELECT MAX(age) FROM person WHERE job = 'engineer') Show white percentages of cities and the crime rates of counties they are in.,"SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" Tiger Woods has played less than 21 events and is what rank?,"SELECT COUNT(rank) FROM table_name_90 WHERE player = ""tiger woods"" AND events < 21" What is the name and id of the department with the most number of degrees ?,"SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1" What is the year and semester with the most courses?,"SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1" Calculate the average number of students of all universities in 2012.,SELECT AVG(num_students) FROM university_year WHERE year = 2012 How many wins has more than 165 against?,SELECT MAX(wins) FROM table_name_80 WHERE against > 165 "How many of the first 60,000 customers from the place with the highest average income per month have sent a true response to the incentive mailing sent by the marketing department?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T2.RESPONSE = 'true' ORDER BY T3.INCOME_K DESC LIMIT 1 What was the margin of victory when the runner-up was Janet Coles?,"SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = ""janet coles""" How many footnotes did Aruba got on different series code in the year 2002?,SELECT COUNT(T2.SeriesCode) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Year = 'YR2002' "Which paper is published in an institution in ""USA"" and have ""Turon"" as its second author?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""USA"" AND t2.authorder = 2 AND t1.lname = ""Turon""" What is the maximal elevation of the summit of the shortest mountain that can be found in the island of Madagaskar? Indicate what type of mountain it is.,"SELECT T3.Height, T3.Type FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T1.Name = 'Madagaskar' ORDER BY T3.Height DESC LIMIT 1" What is the last name of the youngest student?,SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student) How many carries for the player with under 6 yards and an average of over 5?,SELECT COUNT(car) FROM table_name_48 WHERE yards < 6 AND avg > 5 What is the age group for figure skating?,"SELECT age_groups FROM table_name_40 WHERE sport = ""figure skating""" What is his height?,SELECT Height FROM people where Name = 'Ty Conklin' What was the 3rd Party in the Election of 1922?,"SELECT 3 AS rd_party FROM table_name_35 WHERE election = ""1922""" Provide the losing team's name in the match ID 336039.,SELECT Team_Name FROM Team WHERE Team_Id = ( SELECT CASE WHEN Team_1 = Match_Winner THEN Team_2 ELSE Team_1 END FROM Match WHERE match_id = 336039 ) How many numbers were listed under attendance for March 2?,"SELECT COUNT(location_attendance) FROM table_11959669_7 WHERE date = ""March 2""" "What are the names of all instructors who have taught a course, as well as the corresponding course id?","SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID" What is the highest position for less than 42 played?,SELECT MAX(position) FROM table_name_48 WHERE played < 42 List all countries of markets in ascending alphabetical order.,SELECT Country FROM market ORDER BY Country ASC Who has a walking data of 214.061km?,"SELECT athlete FROM table_name_66 WHERE data = ""214.061km""" How many episodes had a production code 120?,SELECT COUNT(series__number) FROM table_27720737_1 WHERE production_code = 120 What was arrows racing team's highest points after 1982?,"SELECT MAX(points) FROM table_name_51 WHERE entrant = ""arrows racing team"" AND year > 1982" How many lessons taught by staff whose first name has letter 'a' in it?,"SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE ""%a%""" What is the average height of the male Olympic competitors from Finland?,SELECT AVG(T3.height) 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 = 'Finland' AND T3.gender = 'M' How many points did the visiting team score at south melbourne?,"SELECT away_team AS score FROM table_name_94 WHERE home_team = ""south melbourne""" Name the title that was written by r. scott gemmill,"SELECT title FROM table_17356042_1 WHERE written_by = ""R. Scott Gemmill""" Name the overall record for indian river,"SELECT overall_record FROM table_name_9 WHERE school = ""indian river""" What are the ids of those?,SELECT project_id FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count ( * ) DESC LIMIT 1 ) What is the total amount of money Mary Smith has spent on film rentals?,SELECT SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'MARY' AND T2.last_name = 'SMITH' What are the names of procedures physician John Wen was trained in?,"SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" How many chapters does the character Demetrius show in the story?,SELECT COUNT(DISTINCT T2.chapter_id) FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Demetrius' Identify by conference full name all papers in which a journal was not published but a conference.,SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.ConferenceId != 0 AND T1.JournalId = 0 AND T1.Year != 0 "What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.",SELECT Weight FROM Product WHERE WeightUnitMeasureCode = 'LB' GROUP BY Weight ORDER BY COUNT(Style) DESC LIMIT 1 "List down the customer IDs and names that start with alphabet ""W"".","SELECT DISTINCT CustomerID, `Customer Names` FROM Customers WHERE `Customer Names` LIKE 'W%' ORDER BY `Customer Names` DESC" What are the ages of the oldest and youngest user that were surveyed? Indicate their user id.,"SELECT MAX(T1.AnswerText), MIN(T1.AnswerText) , ( SELECT T1.UserID FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 1 ORDER BY T1.AnswerText LIMIT 1 ) AS ""youngest id"" FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 1" What is the age group of most OPPO users?,"SELECT T.`group` FROM ( SELECT T1.`group`, COUNT(T1.`group`) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'OPPO' GROUP BY T1.`group` ) AS T ORDER BY T.num DESC LIMIT 1" State the origin country of the fastest car in the database.,SELECT T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country ORDER BY T1.horsepower DESC LIMIT 1 State the game publisher IDs of the games with a platform ID of 16.,SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 16 Which episode did the composer win for Outstanding Music Composition for a Series (Original Dramatic Score) with more than 200 votes?,SELECT DISTINCT T1.episode_id FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.role = 'composer' AND T1.award = 'Outstanding Music Composition for a Series (Original Dramatic Score)' AND T2.votes > 200; what is the throughput (including analysis) when the analysis time is 4 hours?,"SELECT throughput__including_analysis_ FROM table_name_77 WHERE analysis_time = ""4 hours""" What is the store email of the store chain South?,"SELECT T1.store_email FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = ""West""" What is the total when the score of set 1 is 15–11?,"SELECT total FROM table_name_5 WHERE set_1 = ""15–11""" Who is the artist with the least number of exhibitions?,SELECT * FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count ( * ) LIMIT 1 "What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?","SELECT album_number FROM table_name_66 WHERE chinese__simplified_ = ""情歌没有告诉你""" How many postal points with unique post office types are there in Ohio?,SELECT COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Ohio' AND T2.type = 'Unique Post Office' Which label was in the United Kingdom region?,"SELECT label FROM table_name_17 WHERE region = ""united kingdom""" What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points?,"SELECT MIN(laps) FROM table_name_85 WHERE team = ""dale coyne racing"" AND time_retired = ""mechanical"" AND points < 5" Give the maximum and minimum weeks on top across all volumes.,"SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume" What are the first names and ids for customers who have two or more accounts?,"SELECT T2.customer_first_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2" "What's the latest year with a hometown of san carlos, pangasinan?","SELECT MAX(year) FROM table_name_50 WHERE hometown = ""san carlos, pangasinan""" "Which week had an attendance of 70,225","SELECT MIN(week) FROM table_name_27 WHERE attendance = ""70,225""" What are the ids and trade names of the medicine that can interact with at least 3 enzymes?,"SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3" show names of technicians by order of quality rank of machine they are assigned from worst to best,SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank What is the Pick # for the Edmonton Eskimos?,"SELECT COUNT(pick__number) FROM table_name_14 WHERE cfl_team = ""edmonton eskimos""" What is the nationality of the player from Duke?,"SELECT nationality FROM table_name_18 WHERE school_club_team = ""duke""" Which currency pair's average exchange rate for the day is the highest?,"SELECT FromCurrencyCode, ToCurrencyCode FROM CurrencyRate ORDER BY AverageRate DESC LIMIT 1" What year shows the Entrant of bmw motorsport?,"SELECT SUM(year) FROM table_name_15 WHERE entrant = ""bmw motorsport""" Give the location id of West Sussex State.,SELECT DISTINCT LocationID FROM location WHERE State = 'West Sussex' Can you tell me the ids of the movies not reviewed by Brittany Harris?,"SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" What name has the highest followers?,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1 Tell the number of movies made by Paramount Animation.,SELECT COUNT(T2.movie_id) FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id WHERE T1.company_name = 'Paramount Animation' Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?,SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 "What is Date, when Away Team is ""Liverpool""?","SELECT date FROM table_name_91 WHERE away_team = ""liverpool""" "Show the total number of rooms of the apartments in the building with short name ""Columbus Square"".","SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = ""Columbus Square""" Find the average rank of winners in all matches.,SELECT avg(winner_rank) FROM matches "Who was the opponent after week 9 with an attendance of 44,020?","SELECT opponent FROM table_name_96 WHERE week > 9 AND attendance = ""44,020""" When dydek (11) has the highest rebounds what is the date?,"SELECT date FROM table_18904831_6 WHERE high_rebounds = ""Dydek (11)""" What position did the draft pick number play that was overall pick number 133?,SELECT position FROM table_name_20 WHERE overall = 133 list the name of college in az?,SELECT cName FROM College WHERE state = 'AZ' How much is the amount of transaction for transaction with id 3,SELECT amount_of_transaction from transactions where transaction_id = 3 What is the most common allergy among patients?,SELECT DESCRIPTION FROM allergies GROUP BY DESCRIPTION ORDER BY COUNT(DESCRIPTION) DESC LIMIT 1 What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2 What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?,"SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'" "What is the id, name and nationality of the architect who built most mills?","SELECT T1.id , T1.name , T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" What is the year to april when the revenue is 434.8 million dollars?,"SELECT year_to_april FROM table_18077713_1 WHERE revenue__us_$million_ = ""434.8""" Name the goalies who are good at left hand and also has become a coach after retirement. Name all teams he had played before.,"SELECT DISTINCT firstName, lastName, T3.name FROM Goalies AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T1.playerID IS NOT NULL AND T2.coachID IS NOT NULL AND T2.shootCatch = 'L' AND T2.pos = 'G'" how many Lessons there,SELECT count ( * ) FROM Lessons "What is the lowest week number that had a game on December 3, 1967?","SELECT MIN(week) FROM table_name_97 WHERE date = ""december 3, 1967""" Name the womens singles for korea open super series,"SELECT womens_singles FROM table_14496232_2 WHERE tour = ""Korea Open Super Series""" What is the average capacity of each cinema?,SELECT avg ( capacity ) from cinema What is the method against Björn Bregy?,"SELECT method FROM table_name_29 WHERE opponent = ""björn bregy""" How many caps does stephen hoiles have?,"SELECT SUM(caps) FROM table_name_96 WHERE player = ""stephen hoiles""" How many touchdowns were there when Heston was in play?,"SELECT MAX(touchdowns) FROM table_14342592_7 WHERE player = ""Heston""" What is the amount of match points for a club that lost 18 and has 11 bonus points?,"SELECT match_points FROM table_name_6 WHERE lost = ""18"" AND bonus_points = ""11""" How much does the rental cost for address id 3?,SELECT monthly_rental from Student_Addresses where address_id = 3 What are airport names at City 'Aberdeen'?,"SELECT AirportName FROM AIRPORTS WHERE City = ""Aberdeen""" What is the highest number lost with more than 29 points and an against less than 19?,SELECT MAX(lost) FROM table_name_58 WHERE points > 29 AND against < 19 What is the e-mail address of the employee who switched departments for the most times?,SELECT T2.EmailAddress FROM EmployeeDepartmentHistory AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID GROUP BY T2.BusinessEntityID ORDER BY COUNT(T1.DepartmentID) DESC LIMIT 1 Can you give me the billing cities for these invoices? | here are the billing cities of the invoices from the state in the USA with the most invoices | How about postal codes for these invoices?,"SELECT DISTINCT billing_postal_code FROM invoices WHERE billing_state = ( SELECT billing_state FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT ( * ) DESC LIMIT 1 ) " What is the name of party with most number of members?,SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1 "Among the users who received low compliments from other users, which users joined Yelp in 2012?",SELECT DISTINCT T2.user_id FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2012 AND T2.number_of_compliments = 'Low' "What are the average, maximum and total revenues of all companies?","SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers" "Which school is in Riverside, CA?","SELECT school FROM table_name_76 WHERE hometown = ""riverside, ca""" @ Chicago had a high points of what?,"SELECT high_points FROM table_17355408_7 WHERE team = ""@ Chicago""" What are the names and ids of all countries with at least one car maker?,"SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;" Which Position has a School/Club Team of illinois?,"SELECT position FROM table_name_89 WHERE school_club_team = ""illinois""" "What is the maximum, minimum and average years spent working on a school bus?","SELECT max(years_working) , min(years_working) , avg(years_working) FROM school_bus" Please list the phone numbers of all the suppliers for the parts ordered in order no.1.,SELECT T2.s_phone FROM lineitem AS T1 INNER JOIN supplier AS T2 ON T1.l_suppkey = T2.s_suppkey WHERE T1.l_orderkey = 1 "Which Swimming has a Total larger than 35, and a Volleyball of 1?","SELECT swimming FROM table_name_96 WHERE total > 35 AND volleyball = ""1""" What was the result in a year before 2013 that the nomination category was Presenter Talent Show?,"SELECT result FROM table_name_52 WHERE year < 2013 AND category = ""presenter talent show""" "Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand?","SELECT SUM(total) FROM table_name_70 WHERE bronze > 12 AND silver > 772 AND country = ""thailand""" What are the official languages of the country where you can find the city with the least population?,SELECT T2.Language FROM City AS T1 INNER JOIN CountryLanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IsOfficial = 'T' ORDER BY T1.Population ASC LIMIT 1 "In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?","SELECT lyrics FROM table_name_48 WHERE date = ""august 10, 2005"" AND catalog_number = ""tocp-66427""" Excellent! Can you now list for me all of the staff IDs that have researcher as their role code?,SELECT staff_id FROM Project_Staff where role_code = 'researcher' What are the names and other details for accounts corresponding to the customer named Meaghan Keeling?,"SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Meaghan"" AND T2.customer_last_name = ""Keeling""" "What is the total overall in round 1, in which Charles White was a player?","SELECT SUM(overall) FROM table_name_2 WHERE player = ""charles white"" AND round < 1" "Return the name, phone number and email address for the customer with the most orders.","SELECT T1.customer_name , T1.customer_phone , T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY count(*) DESC LIMIT 1" What is the review length of user 35026 to business with business ID 2?,SELECT review_length FROM Reviews WHERE user_id = 35026 AND business_id = 2 Which formats have a region of Europe and Catalog value of WEBB185?,"SELECT format_s_ FROM table_name_28 WHERE region = ""europe"" AND catalog = ""webb185""" What horror movies have a running time of at least 2? Please list movie IDs.,SELECT T1.movieid FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.runningtime >= 2 AND T1.genre = 'Horror' How many years has Sasol Jordan Yamaha as an Entrant?,"SELECT AVG(year) FROM table_name_79 WHERE entrant = ""sasol jordan yamaha""" "Which coach has 0 conference titles, more than 2 seasons, higher than 87 losses and 0 NCAA?","SELECT coach FROM table_name_18 WHERE conference_titles = ""0"" AND seasons > 2 AND losses > 87 AND ncaa = ""0""" After season 2010 how many different kinds of injuries were there?,SELECT count ( DISTINCT T1.injury ) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.season > 2010 What is the class of the co-driver emanuele pirro jj lehto?,"SELECT class FROM table_name_58 WHERE co_drivers = ""emanuele pirro jj lehto""" "What are the names and seatings for all tracks opened after 2000, ordered by seating?","SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating" actually i mean which movie rating is high | Would you like the movie with the greatest number of rating stars? | exactly,SELECT * FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 1 What is the movie id and rating date of the movie with 5 stars?,"SELECT mID , ratingDate FROM Rating where stars = 5" What is FM 99.9's Format?,"SELECT format FROM table_name_78 WHERE frequency = ""fm 99.9""" Give the full name of the legislators with an independent party.,SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Independent' GROUP BY T1.official_full_name What position does Boggs play?,"SELECT position FROM table_25517718_3 WHERE player = ""Boggs""" What are characteristic names used at least twice across all products?,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 GROUP BY t3.characteristic_name HAVING COUNT(*) >= 2 "Which week was the game on December 14, 1967?","SELECT week FROM table_name_27 WHERE date = ""december 14, 1967""" What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0?,SELECT SUM(gold) FROM table_name_81 WHERE participants = 4 AND silver < 0 Show the name of the party that has the most delegates.,SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1 How many strategy games are there?,SELECT COUNT(CASE WHEN T1.genre_name = 'Strategy' THEN T2.id ELSE NULL END) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id How many wins are there for the Races of 12/12?,"SELECT wins FROM table_name_36 WHERE races_† = ""12/12""" What are the average extra runs given in the second innings of every match?,SELECT AVG(Innings_No) FROM Extra_Runs WHERE Innings_No = 2 "How many years in all was less than 105,005 the total for the year?",SELECT COUNT(year) FROM table_name_59 WHERE total_for_year < 105 OFFSET 005 In what district was Tim Holden the incumbent? ,"SELECT district FROM table_1341453_40 WHERE incumbent = ""Tim Holden""" Show the names of conductors that have conducted more than one orchestras.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1 "Among Daisey Lamball's orders, how many were shipped via International shipping?",SELECT COUNT(*) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T1.first_name = 'Daisey' AND T1.last_name = 'Lamball' AND T3.method_name = 'International' Show the ids of all the faculty members who participate in an activity and advise a student.,SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student "If the representative is Dave Hall, when was the term limited?","SELECT term_limited FROM table_26131768_4 WHERE representative = ""Dave Hall""" How many different kinds of lens brands are there?,SELECT count(DISTINCT brand) FROM camera_lens Name the date for irish points being 89,SELECT date FROM table_22875369_3 WHERE irish_points = 89 What schools were founded before 1890?,SELECT School FROM school WHERE Founded < 1890 Which items from store 1 have the highest units sold during rainy day?,SELECT T2.item_nbr FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr AND T1.station_nbr = T3.station_nbr WHERE T2.store_nbr = 1 AND T1.codesum LIKE '%' OR 'RA' OR '%' GROUP BY T2.item_nbr ORDER BY T2.units DESC LIMIT 1 State the number of states in the United Kingdom.,SELECT COUNT(State) AS State_number FROM location WHERE Country = 'United Kingdom' On what day did tommy ellis drive?,"SELECT date FROM table_28178756_1 WHERE driver = ""Tommy Ellis""" What is the week for Result of w 28-17?,"SELECT week FROM table_name_70 WHERE result = ""w 28-17""" What club is R. H. C. Human who has a right arm medium pace bowling style a member of?,"SELECT club FROM table_name_41 WHERE bowling_style = ""right arm medium pace"" AND name = ""r. h. c. human""" "If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter?","SELECT condition_parameter FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = ""ln[(1 + √5)/2] ≅ 0.481""" What's the record on April 12 when the location was The Omni?,"SELECT record FROM table_name_25 WHERE location_attendance = ""the omni"" AND date = ""april 12""" how many earn below the average?,SELECT count ( * ) FROM Employee WHERE salary < ( SELECT avg ( salary ) FROM Employee ) What is the Team 2 with a Team 1 that is milli piyango sk?,"SELECT team_2 FROM table_name_34 WHERE team_1 = ""milli piyango sk""" What are the names of all the states with college students playing in the mid position but no goalies?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' "WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?","SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = ""no"" AND charting = ""no"" AND web_publishing = ""no"" AND name = ""microsoft exchange server""" What are the release dates for songs in 2003?,SELECT release_date FROM table_12588029_3 WHERE year = 2003 What was the playing surface for the Tournament of Great Britain F16?,"SELECT surface FROM table_name_44 WHERE tournament = ""great britain f16""" What are the different majors?,SELECT DISTINCT Major FROM Student how many number of storms for each region?,"SELECT T1.region_name , count ( * ) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id" what is the debut year for player terry fulton with games less than 51?,"SELECT AVG(debut_year) FROM table_name_83 WHERE player = ""terry fulton"" AND games < 51" What's the IHSAA class of the Red Devils?,"SELECT ihsaa_class FROM table_name_77 WHERE mascot = ""red devils""" What is the invoice number and invoice date for the invoice with most number of transactions?,"SELECT T2.invoice_number , T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1" How many aircrafts have distance between 1000 and 5000?,SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 How many churches have a wedding in year 2016?,SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016 What are the minutes of the Player from Real Madrid Club with a Rank of 7 or larger?,"SELECT SUM(minutes) FROM table_name_73 WHERE rank > 7 AND club = ""real madrid""" "How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze?",SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3 What is the average number of institutions? | Average number of institutions over what? | What is the institution type with the largest number of institutions?,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1 Name the candidates for georgia 8,"SELECT candidates FROM table_1341604_11 WHERE district = ""Georgia 8""" How many addresses are in the district of California?,SELECT count(*) FROM address WHERE district = 'California' How many kicks did he get in the year when he played 7 games?,"SELECT kicks FROM table_name_61 WHERE games = ""7""" In what Week is the Opponent the New Orleans Saints?,"SELECT AVG(week) FROM table_name_43 WHERE opponent = ""new orleans saints""" Which city does student Linda Smith live in?,"SELECT city_code FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith"";" What is the 1st party during the 1857 election?,"SELECT 1 AS st_party FROM table_name_34 WHERE election = ""1857""" Which Team has a Record of 17–8?,"SELECT team FROM table_name_74 WHERE record = ""17–8""" "What is the percentage of users who are in the same behavior category as ""Academic Information""?","SELECT SUM(IIF(T1.category = 'Academic Information', 1.0, 0)) / COUNT(T2.app_id) AS per FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id" find the average age,select avg ( age ) from person What is the venue for week 1?,"SELECT venue FROM table_name_58 WHERE week = ""1""" list the name for the largest amount of donation,SELECT donator_name FROM endowment ORDER BY amount DESC LIMIT 1 Find and list the full name of customers who rented more than five types of movies.,"SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, COUNT(T1.customer_id) AS num FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id INNER JOIN film_category AS T5 ON T4.film_id = T5.film_id GROUP BY T1.first_name, T1.last_name ) AS T WHERE T.num > 5" What about the icao? | the icao of Aloha Airlines is AAH | What's the call sign of airline id 5?,SELECT callsign from airlines where alid = 5 "Which year opened is located in west mifflin, pennsylvania?","SELECT year_opened FROM table_name_50 WHERE location = ""west mifflin, pennsylvania""" What is the total salary paid by team Boston Red Stockings in 2010?,SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 What was the result in 2007 when the 2011 was F and 2009 was W?,"SELECT 2007 FROM table_name_16 WHERE 2011 = ""f"" AND 2009 = ""w""" "List all the tokenized name of the solution path ""jurney_P4Backup\P4Backup\P4Backup.sln "".",SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'jurney_P4BackupP4BackupP4Backup.sln' What is the venue when the result was position of 17th?,"SELECT venue FROM table_name_27 WHERE position = ""17th""" What is the 2000-2001 Team with a Jersey # that is 19?,SELECT 2000 AS _2001_team FROM table_name_15 WHERE jersey__number = 19 What is the Pick # with an Overall of 19?,SELECT MAX(pick__number) FROM table_name_22 WHERE overall = 19 What was Laura Diaz's score for place t9?,"SELECT score FROM table_name_72 WHERE place = ""t9"" AND player = ""laura diaz""" Count the number of documents with expenses.,SELECT count(*) FROM Documents_with_expenses When did the Cyclones get 46 points?,SELECT date FROM table_23184448_3 WHERE cyclones_points = 46 What is the education required for David Whitehead to reach his current position?,SELECT T2.educationrequired FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.firstname = 'David' AND T1.lastname = 'Whitehead' AND T1.gender = 'M' Show the station name with greatest number of trains.,SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1 "What venue did group g play at on Mar 8, 1998?","SELECT venue FROM table_name_42 WHERE stage = ""group g"" AND date = ""mar 8, 1998""" Find all the campuses opened in 1958.,SELECT campus FROM campuses WHERE YEAR = 1958 Who was the runner-up in 1980 at the Pocking venue?,"SELECT runner_up FROM table_name_93 WHERE venue = ""pocking"" AND year = ""1980""" What are the types of film market estimations in year 1995?,SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995 Who was the away captain at Brisbane Cricket Ground?,"SELECT away_captain FROM table_name_34 WHERE venue = ""brisbane cricket ground""" What kind of fuel propulsion do these pilots' aircrafts use?,SELECT distinct ( Fuel_Propulsion ) from aircraft Which item resulted in a score of 4-1?,"SELECT score FROM table_name_77 WHERE result = ""4-1""" Find the name of dorms which have both TV Lounge and Study Room as amenities.,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' "What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?","SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = ""boston college eagles"" AND wins > 6" "What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1?",SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1 Which district has John Culpepper (f) as the vacator?,"SELECT district FROM table_225093_4 WHERE vacator = ""John Culpepper (F)""" How many arrests were made in 2018 in an animal hospital under FBI code 08B?,SELECT SUM(CASE WHEN arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime WHERE date LIKE '%2018%' AND location_description = 'ANIMAL HOSPITAL' AND fbi_code_no = '08B' Name the D 49 √ for when D 46 √ of i 1 @,"SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = ""i 1 @""" Name the Drawn for tries against of 36 and points of 66,"SELECT drawn FROM table_name_60 WHERE tries_against = ""36"" AND points = ""66""" "Which Position has Goals against larger than 32, and points larger than 30?",SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30 What is the most points when the entrant was Jaguar racing earlier than 2001?,"SELECT MAX(points) FROM table_name_25 WHERE entrant = ""jaguar racing"" AND year < 2001" What are the addresses for these three branches?,SELECT Address_road FROM branch ORDER BY membership_amount DESC LIMIT 3 "Between November 25–30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what?","SELECT shows___sellout FROM table_22123920_4 WHERE sellout___percentage_ = ""75%""" "and of those, please now just show the female students",SELECT * FROM student WHERE sex = 'F' AND age < 25 What country in Asia has the largest gross national product(GNP)?,SELECT Name FROM Country WHERE Continent = 'Asia' ORDER BY GNP DESC LIMIT 1 Show the first name and last name for the customer with account name 900.,"SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = ""900""" What is the entire inhabitants in Southeast Asia?,"SELECT MIN(total_population) FROM table_1389609_3 WHERE region = ""Southeast Asia""" Who was the GTO winning team when the TO winning team was #84 Camaro? ,"SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = ""#84 Camaro""" Name the outgoing manager for 10 june 2009,"SELECT COUNT(outgoing_manager) FROM table_22848931_3 WHERE date_of_vacancy = ""10 June 2009""" Who was the womens double winner when the womens singles winner was Ding Ning?,"SELECT womens_doubles FROM table_28138035_32 WHERE womens_singles = ""Ding Ning""" Which game was played on march 2?,"SELECT AVG(game) FROM table_name_4 WHERE date = ""march 2""" "Who had 8 points, later than 1980, and a theodore ty02 chassis?","SELECT entrant FROM table_name_73 WHERE year > 1980 AND pts = 8 AND chassis = ""theodore ty02""" What is the winner of gold that also has ↓ 1 in the sport of cycling?,"SELECT gold FROM table_name_97 WHERE bronze = ""↓ 1"" AND sport = ""cycling""" "What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?","SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = ""january 6, 2008""" What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?,"SELECT AVG(lost) FROM table_name_79 WHERE team = ""matlock town"" AND goals_against > 66" What date has ed as an actual title?,"SELECT date FROM table_name_93 WHERE actual_title = ""ed""" "Which of the building full names have the word ""court"" in it?",SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name like '%Court%' WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?,"SELECT school FROM table_11677691_2 WHERE college = ""South Carolina""" What was the pick number for Andrew Quarless? ,"SELECT MAX(pick__number) FROM table_26077092_7 WHERE player = ""Andrew Quarless""" WHAT IS THE SCORE WITH A DATE OF NOVEMBER 18?,"SELECT score FROM table_name_80 WHERE date = ""november 18""" What are the first names and ages of all students who are playing both Football and Lacrosse?,"SELECT fname , age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = ""Football"" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = ""Lacrosse"")" What position does Mikhail Kravets play?,"SELECT position FROM table_name_15 WHERE player = ""mikhail kravets""" "For all trips which took less 5 minutes, state the station name where the bike were borrowed and returned. Indicate mean temperature of the day.","SELECT T1.start_station_name, T1.end_station_name, T2.mean_temperature_f FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.duration < 300" What age group is the most using SM-T2558 model phones?,"SELECT T.`group` FROM ( SELECT T1.`group`, COUNT(T1.device_id) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'SM-T2558' GROUP BY T1.`group` ) AS T ORDER BY T.num DESC LIMIT 1" List out all the medals won by Lee Chong Wei.,SELECT DISTINCT T1.medal_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id INNER JOIN games_competitor AS T3 ON T2.competitor_id = T3.id INNER JOIN person AS T4 ON T3.person_id = T4.id WHERE T4.full_name = 'Lee Chong Wei' AND T2.medal_id <> 4 "What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?",SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059 Where was game number 5 played?,SELECT location_attendance FROM table_23286112_12 WHERE game = 5 What was the pick number for the person from the United States who as drafted to the SF position from North Carolina?,"SELECT pick FROM table_name_78 WHERE nationality = ""united states"" AND college_high_school_club = ""north carolina"" AND position = ""sf""" How many platforms have a southern opertator and the pattern is all stations via clapham junction?,"SELECT COUNT(platform) FROM table_1569516_1 WHERE operator = ""Southern"" AND service_pattern = ""All stations via Clapham Junction""" "What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3?","SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = ""1"" AND mrhma = ""2"" AND rthk = ""3""" Which Chicken wing has no steal/intercept ball?,"SELECT chicken_wing FROM table_name_76 WHERE steal_intercept_ball = ""no""" "How many of them had participants whose details had substring ""Dr""?",SELECT count ( * ) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%' "Which Score has a To par of –3, and a Player of santiago luna?","SELECT score FROM table_name_69 WHERE to_par = ""–3"" AND player = ""santiago luna""" What are their first names?,SELECT T2.fname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' How many ministers were there?,SELECT count ( minister ) FROM party "What was the Goal in Stade Roi Baudouin, Brussels?","SELECT AVG(goal) FROM table_name_81 WHERE venue = ""stade roi baudouin, brussels""" Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.,"SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Meaghan"" AND T2.customer_last_name = ""Keeling""" What score has 2 as the place?,"SELECT score FROM table_name_78 WHERE place = ""2""" What is the category that the most app users belong to?,"SELECT T.category FROM ( SELECT T1.category, COUNT(T2.app_id) AS num FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id GROUP BY T1.label_id ) AS T ORDER BY T.num DESC LIMIT 1" Where is the area of operation that had drilling during the year 1999?,"SELECT area_of_operation FROM table_name_19 WHERE services = ""drilling"" AND years_of_operation = ""1999""" What was the result of the Top 12 Men theme?,"SELECT result FROM table_27614707_1 WHERE theme = ""Top 12 Men""" What is the smallest grid for driver of juan pablo montoya?,"SELECT MIN(grid) FROM table_name_92 WHERE driver = ""juan pablo montoya""" What School has Colors of navy blue orange?,"SELECT school FROM table_name_17 WHERE colors = ""navy blue orange""" What is the most common major among female (sex is F) students?,"SELECT Major FROM STUDENT WHERE Sex = ""F"" GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1" Could you list them grouped by state?,"SELECT billing_state, COUNT ( * ) FROM invoices WHERE billing_country = ""USA"" group by billing_state" Name the score for 10 april 2007 and opponent of selima sfar,"SELECT score FROM table_name_43 WHERE date = ""10 april 2007"" AND opponent = ""selima sfar""" Which job title has the lowest pay?,SELECT T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T2.Rate ASC LIMIT 1 What is the name of the body builder with the greatest body weight?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 What is the ratio of female users to male users who uses a vivo device?,"SELECT SUM(IIF(T1.gender = 'M', 1, 0)) / SUM(IIF(T1.gender = 'F', 1, 0)) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo'" What championship was played with Allan Stone as a partner?,"SELECT championship FROM table_2820584_3 WHERE partner = ""Allan Stone""" What are the color descriptions of those?,"SELECT t4.color_description 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t3.characteristic_name = ""slow""" What is the amount of mailshots that Wendell has?,"SELECT count ( * ) FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id where T2.customer_name = ""Wendell""" What country is Adam Scott from?,"SELECT country FROM table_name_19 WHERE player = ""adam scott""" What was the final score for the game Bursaspor vs Denizlispor on 2009/4/26?,"SELECT FTHG, FTAG FROM matchs WHERE Date = '2009-04-26' AND HomeTeam = 'Bursaspor' AND AwayTeam = 'Denizlispor'" What is the duration of the oldest actor?,SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1 what is the no when the distance is 4168km?,"SELECT no FROM table_26745820_1 WHERE distance = ""4168km""" "Name the high assists for delta center 19,639","SELECT high_assists FROM table_15869204_5 WHERE location_attendance = ""Delta Center 19,639""" Compare and get the difference of the number of businesses that are open in Monday and Tuesday from 10 am to 9 pm.,SELECT SUM(CASE WHEN T3.day_of_week = 'Monday' THEN 1 ELSE 0 END) - SUM(CASE WHEN T3.day_of_week = 'Tuesday' THEN 1 ELSE 0 END) AS DIFF FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time = '10AM' AND T2.closing_time = '9PM' And for LSU? | Would you like to know the enrollment for the college named LSU? | Yes I would.,SELECT enr FROM College WHERE cName = 'LSU' Which university had the most students in 2011? Show its name.,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.num_students DESC LIMIT 1 What is the score of the team with the 14-9 record?,"SELECT score FROM table_name_43 WHERE record = ""14-9""" In which state is the college that Charles attends?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' In what title did he act in 1940?,SELECT title FROM table_name_65 WHERE year = 1940 How many editions have a most wins value of Franco Marvulli (4)?,"SELECT COUNT(number_of_editions) FROM table_1840433_2 WHERE most_wins_by = ""Franco Marvulli (4)""" what is the overall number of times when the calendar showed october 6,"SELECT COUNT(record) FROM table_27733909_1 WHERE date = ""October 6""" What was the score of the game played in the 2012 Africa Cup of Nations?,"SELECT score FROM table_name_90 WHERE competition = ""2012 africa cup of nations""" "How many weeks had an attendance at 69,149?","SELECT COUNT(week) FROM table_name_12 WHERE attendance = ""69,149""" what is the employee DOB of employee no 101,SELECT EMP_DOB FROM employee WHERE EMP_NUM = 101 What is the score for Jock Hutchison?,"SELECT score FROM table_name_89 WHERE player = ""jock hutchison""" Show the transaction types and the total amount of transactions.,"SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type" Whats the name of segment D in the episode where segment A is tequila,"SELECT segment_d FROM table_15187735_16 WHERE segment_a = ""Tequila""" Count the Prominence (m) of Col (m) smaller than 0?,SELECT AVG(prominence__m_) FROM table_name_9 WHERE col__m_ < 0 What's the 1991 census of the city of Carpi?,"SELECT MAX(1991 AS _census) FROM table_10138926_1 WHERE city = ""Carpi""" Compute the average percentage of female students.,SELECT AVG(pct_female_students) FROM university_year "Find the titles of papers whose first author is affiliated with an institution in the country ""Japan"" and has last name ""Ohori""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""Japan"" AND t2.authorder = 1 AND t1.lname = ""Ohori""" What are all their birthdays?,"SELECT T2.date_of_birth FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.city = ""Port Melyssa""" "Which institution is the author ""Matthias Blume"" belong to? Give me the name of the institution.","SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = ""Matthias"" AND t1.lname = ""Blume""" List the height and weight of people in descending order of height.,"SELECT Height , Weight FROM people ORDER BY Height DESC" "How many donors have endowment for school named ""Glenn""?","SELECT COUNT(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = ""Glenn""" Find the number of rooms with a king bed.,"SELECT count(*) FROM Rooms WHERE bedType = ""King"";" what is the total amount of players for the rockets in 1998 only?,"SELECT COUNT(player) FROM table_11734041_16 WHERE years_for_rockets = ""1998""" Show all transaction ids with transaction code 'PUR'.,SELECT transaction_id FROM TRANSACTIONS WHERE transaction_type_code = 'PUR' Select the name of the products with a price less than or equal to $200.,SELECT name FROM products WHERE price <= 200 What was the state that had the vassal name of li?,"SELECT state FROM table_name_8 WHERE name = ""li""" "What is the zip code of the address where the teacher with first name ""Lyla"" lives?","SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = ""Lyla""" Show the name of the customer who has the most orders.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Who was the opponent with a score of 30-12?,"SELECT opponent FROM table_name_72 WHERE result = ""30-12""" How many bookings do we have?,SELECT count(*) FROM BOOKINGS What player played guard for toronto in 1996-97?,"SELECT player FROM table_10015132_11 WHERE position = ""Guard"" AND years_in_toronto = ""1996-97""" What is the mean played number where the goals conceded is less than 16?,SELECT AVG(played) FROM table_name_81 WHERE goals_conceded < 16 What was the score when Edmonton was the home team?,"SELECT score FROM table_name_10 WHERE home = ""edmonton""" What is the IHSAA Class for football for the team joining in 1968?,SELECT ihsaa_class AS Football FROM table_name_15 WHERE year_joined = 1968 "What is the total of the roll with a Decile of 8, and an Area of hororata?","SELECT SUM(roll) FROM table_name_73 WHERE decile = 8 AND area = ""hororata""" Who are the ministers who took office after 1961 or before 1959?,SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959 What are the names of all races held between 2009 and 2011?,SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011 "What regular season result had an average attendance bigger than 3,170?",SELECT reg_season FROM table_name_67 WHERE avg_attendance > 3 OFFSET 170 Name the general classification with roman kreuziger and points classification of fabian cancellara,"SELECT general_classification FROM table_name_97 WHERE young_rider_classification = ""roman kreuziger"" AND points_classification = ""fabian cancellara""" How many female users were surveyed in the mental health survey for 2017 in the state of Nebraska?,SELECT COUNT(*) FROM ( SELECT T2.UserID FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID INNER JOIN Survey AS T3 ON T2.SurveyID = T3.SurveyID WHERE T3.Description = 'mental health survey for 2017' AND T1.questionid = 2 AND T2.AnswerText = 'Female' UNION SELECT T2.UserID FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID INNER JOIN Survey AS T3 ON T2.SurveyID = T3.SurveyID WHERE T1.questionid = 4 AND T2.AnswerText = 'Nebraska' AND T3.Description = 'mental health survey for 2017' ) "What is the title for the project that got the donation message as ""Donation on behalf of Matt Carpenter because I'm a strong believer in education"".",SELECT T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_message LIKE 'Donation on behalf of Matt Carpenter because I''m a strong believer in education.' What is the maximum share count of all of the different transaction type codes?,"SELECT transaction_type_code , max ( share_count ) FROM TRANSACTIONS GROUP BY transaction_type_code" How many seasons was series number 47 shown?,SELECT COUNT(season_no) FROM table_11630008_4 WHERE series_no = 47 "For each state, find the total account balance of customers whose credit score is above 100.","SELECT sum(acc_bal) , state FROM customer WHERE credit_score > 100 GROUP BY state" What is Disney's highest grossing action movie?,"SELECT movie_title FROM movies_total_gross WHERE genre = 'Action' ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" "If the ansi code is 1036632, what is the name of the township?",SELECT township FROM table_18600760_7 WHERE ansi_code = 1036632 What country has a compulsory deduction of 29.3%?,"SELECT country FROM table_24486462_1 WHERE compulsory_deduction = ""29.3%""" list the titles of all movies,SELECT title FROM Movie How many laps for alexander wurz with a grid under 12?,"SELECT COUNT(laps) FROM table_name_22 WHERE grid < 12 AND driver = ""alexander wurz""" What is the highest amount of bonus earned by the sales person in Canada?,SELECT T2.Bonus FROM SalesTerritory AS T1 INNER JOIN SalesPerson AS T2 ON T1.TerritoryID = T2.TerritoryID WHERE T1.CountryRegionCode = 'CA' ORDER BY T2.SalesQuota DESC LIMIT 1 "Game site of miami orange bowl, and a Attendance larger than 49,754 happened on what highest week?","SELECT MAX(week) FROM table_name_60 WHERE game_site = ""miami orange bowl"" AND attendance > 49 OFFSET 754" What is the most common issue for the highest priority complaints?,SELECT T1.Issue FROM events AS T1 INNER JOIN callcenterlogs AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.priority = 2 GROUP BY T1.Issue ORDER BY COUNT(T1.Issue) DESC LIMIT 1 how many shops opened later than 2012?,select count ( Location ) from shop where Open_Year>'2012' Hi - Can you tell me which department has the most students?,SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count ( * ) DESC LIMIT 1 Find the names of customers who either have an deputy policy or uniformed policy.,"SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy"" OR t1.policy_type_code = ""Uniform""" What is its product price?,SELECT product_price FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1 Compute the average price of all the products.,SELECT AVG(price) FROM products Name the number of mens doubles for 2004/2005,"SELECT COUNT(mens_doubles) FROM table_12193259_1 WHERE season = ""2004/2005""" Who had the high points while Dirk Nowitzki (13) had the high rebounds?,"SELECT high_points FROM table_17288869_7 WHERE high_rebounds = ""Dirk Nowitzki (13)""" Which seasonal discount had the highest discount percentage?,SELECT Description FROM SpecialOffer WHERE Type = 'Seasonal Discount' ORDER BY DiscountPct DESC LIMIT 1 Who had the most high points and rebounds than charles oakley (9)?,"SELECT high_points FROM table_13812785_8 WHERE high_rebounds = ""Charles Oakley (9)""" "How many players are from Delray Beach, Florida?","SELECT COUNT(player) FROM table_11677691_11 WHERE hometown = ""Delray Beach, Florida""" What is the total when the score for set 1 is 14–25?,"SELECT total FROM table_name_75 WHERE set_1 = ""14–25""" To whom did the company transport its heaviest shipment?,SELECT T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id ORDER BY T1.weight DESC LIMIT 1 Show the most common type code across products.,SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1 When was the highest amount of donated? How much was the amount?,"SELECT donation_timestamp, donation_total FROM donations WHERE donation_total = ( SELECT donation_total FROM donations ORDER BY donation_total DESC LIMIT 1 )" Find the distinct number of president votes.,SELECT COUNT(DISTINCT President_Vote) FROM VOTING_RECORD Find the name and training hours of players whose hours are below 1500.,"SELECT pName , HS FROM Player WHERE HS < 1500" Who is the commander of Morgan Park district?,SELECT commander FROM District WHERE district_name = 'Morgan Park' What Time/Retired has a Laps of 86 and the Team of HVM Racing?,"SELECT time_retired FROM table_name_73 WHERE laps = 86 AND team = ""hvm racing""" Show the start dates and end dates of all the apartment bookings.,"SELECT booking_start_date , booking_end_date FROM Apartment_Bookings" How many official languages does Afghanistan have?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Afghanistan"" AND IsOfficial = ""T""" Please give more detailed information about the first three books that sell the best.,SELECT T1.notes FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id ORDER BY T2.qty DESC LIMIT 3 what is the last name and gender of all students who played both Call of Destiny and Works of Widenius?,"SELECT lname , sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = ""Call of Destiny"" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = ""Works of Widenius"")" On how many projects where the teacher has ordered between 5 to 10 items are from are from Quill.com?,SELECT COUNT(projectid) FROM resources WHERE vendor_name = 'Quill.com' AND item_quantity BETWEEN 5 AND 10 What is the incumbent for ohio 12?,"SELECT incumbent FROM table_1342249_35 WHERE district = ""Ohio 12""" What are the names of the different artists that have produced a song in English but have never receieved a rating higher than 8?,"SELECT DISTINCT artist_name FROM song WHERE languages = ""english"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8" "Provide the position status and IDs of professor who advised student ID ""303"".","SELECT T2.hasPosition, T1.p_id_dummy FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id_dummy = T2.p_id WHERE T1.p_id = 303" What is every GICS sector for free float of 0.3180?,"SELECT gics_sector FROM table_20667854_1 WHERE free_float = ""0.3180""" Can you list all student IDs that have any kind of allergy?,SELECT StuID FROM Has_allergy Which Position has Draws smaller than 7 and a Played larger than 22?,SELECT AVG(position) FROM table_name_16 WHERE draws < 7 AND played > 22 "What was the arrival for Wansford, Peterborough East?","SELECT arrival FROM table_18332845_2 WHERE calling_at = ""Wansford, Peterborough East""" Name the interview for peru delegate,"SELECT interview FROM table_11674683_2 WHERE delegate = ""Peru""" what is typical selling price of cumin,"SELECT typical_selling_price FROM Products WHERE product_name = ""cumin""" List all pilot names in ascending alphabetical order.,SELECT Name FROM pilot ORDER BY Name ASC "What turbo has a L2 cache of 4 × 256 kb, a release date of June 2013, and a Model number of core i7-4770s?","SELECT turbo FROM table_name_78 WHERE l2_cache = ""4 × 256 kb"" AND release_date = ""june 2013"" AND model_number = ""core i7-4770s""" What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?,SELECT SUM(drawn) FROM table_name_42 WHERE first_game < 2006 AND played < 2 which college enrollment is 22000?,SELECT cName FROM College WHERE enr = 22000 Which World Rank happened in 1977?,SELECT world_rank FROM table_name_81 WHERE year = 1977 How many taverns failed in July 2010?,"SELECT COUNT(DISTINCT T1.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y-%m', T2.inspection_date) = '2010-07' AND T2.results = 'Fail' AND T1.facility_type = 'Restaurant'" And what is their address?,SELECT address FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' ) "What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?",SELECT SUM(lost) FROM table_name_10 WHERE points > 21 AND draw = 2 List by ID the businesses with the reviews with the lowest veracity of Paradise Valley.,SELECT business_id FROM Business WHERE stars > 3 AND city = 'Paradise Valley' AND review_count = 'Low' Who held the Male Sports Rep position in 2011?,"SELECT 2011 FROM table_name_73 WHERE position = ""male sports rep""" Show institution names along with the number of proteins for each institution,"SELECT T1.institution , count ( * ) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id" Return the unique name for stations that have ever had 7 bikes available.,SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7 List down all of the film IDs with highest rental duration.,SELECT film_id FROM film WHERE rental_duration = ( SELECT MAX(rental_duration) FROM film ) "Which City has a Date of june 9, 1976?","SELECT city FROM table_name_39 WHERE date = ""june 9, 1976""" Find the building address of building manager Melyssa.,"SELECT building_address FROM Apartment_Buildings WHERE building_manager = ""Melyssa""" What is the highest total price paid for an order?,SELECT UnitPrice * Quantity * (1 - Discount) AS THETOP FROM `Order Details` ORDER BY UnitPrice * Quantity * (1 - Discount) DESC LIMIT 1 "What is the average number of runner-up that National University, which has more than 2 total championships, has?","SELECT AVG(runner_up) FROM table_name_62 WHERE university = ""national university"" AND total_championships > 2" "State the nick name of the tallest player? If the player had left NHL, mention the last season he was with NHL.","SELECT nameNick, lastNHL FROM Master ORDER BY height DESC LIMIT 1" List all the streets with more than 10 restaurants in Alameda county.,SELECT T2.street_name FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.county = 'alameda county' GROUP BY T2.street_name HAVING COUNT(T2.id_restaurant) > 10 What is the venue of the game with Man of the Match Vaclav Zavoral?,"SELECT venue FROM table_17120964_8 WHERE man_of_the_match = ""Vaclav Zavoral""" Provide the names and birthdates of players who have left-arm fast skills.,"SELECT T1.Player_Name, T1.DOB FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T2.Bowling_Id = T1.Bowling_skill WHERE T2.Bowling_skill = 'Left-arm fast'" "Hi, could you please let me know the date of birth of the investors Simon Woodroffe and Peter Jones?","SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = ""Simon Woodroffe"" OR T1.Investor = ""Peter Jones""" who got the first position when fujieda city government got the fourth position?,"SELECT champions FROM table_21632864_1 WHERE fourth_place = ""Fujieda City Government""" What is the lowest overall with more than 17 rounds?,SELECT MIN(overall) FROM table_name_25 WHERE round > 17 Name the player for 1945 for player,"SELECT ""player"" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = ""player""" What are the greatest and average capacity for rooms in each building?,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building" Provide the players' names in both teams of the match that was held in June 2014.,"SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id WHERE SUBSTR(T3.Match_Date, 1, 4) = '2014' AND SUBSTR(T3.Match_Date, 7, 1) = '6' LIMIT 2" Count the number of customer cards of the type Debit.,"SELECT count(*) FROM Customers_cards WHERE card_type_code = ""Debit""" "What are the name of rooms booked by customers whose first name has ""ROY"" in part?",SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE firstname LIKE '%ROY%' What kind of animal corresponds to the accession number xp_852505.1?,"SELECT common_name FROM table_15417439_1 WHERE accession_number = ""XP_852505.1""" What day was geelong the home team?,"SELECT date FROM table_name_81 WHERE home_team = ""geelong""" How many cars on train no.1 have the roof open?,SELECT COUNT(id) FROM cars WHERE train_id = 1 AND roof = 'none' Name the years for spain with 215 goals,"SELECT years FROM table_name_31 WHERE nationality = ""spain"" AND goals = 215" "What is the average First year that has a Notes of replaced by us 12 when i-94 replaced us 12, and a Final year larger than 1961?","SELECT AVG(first_year) FROM table_name_31 WHERE notes = ""replaced by us 12 when i-94 replaced us 12"" AND final_year > 1961" "What is the Root of All Evil with an Original air date that is september 3, 2008?","SELECT root_of_all_evil FROM table_name_33 WHERE original_air_date = ""september 3, 2008""" WHich Position has a Player of david laliberte?,"SELECT position FROM table_name_50 WHERE player = ""david laliberte""" Which Oricon has a Romaji title of nakitakunalu?,"SELECT MAX(oricon) FROM table_name_17 WHERE romaji_title = ""nakitakunalu""" "What tournament or series was played in England, when games played was 4, points for were 121?","SELECT tournament_or_series FROM table_name_15 WHERE played_in = ""england"" AND games_played___tests__ = ""4"" AND points_for___tests__ = ""121""" Show location and name for all stadiums with a capacity between 5000 and 10000.,"SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000" What is the launched date for the Harusame ship?,"SELECT launched FROM table_name_18 WHERE name = ""harusame""" What was the score when 7260 people attended the game?,SELECT score FROM table_20745746_1 WHERE attendance = 7260 "what's the number of households with per capita income being $16,820","SELECT number_of_households FROM table_1350350_2 WHERE per_capita_income = ""$16,820""" "What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is ""Flying Dutchman""?","SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = ""flying dutchman""" Please write down the footnote descriptions of Albania in 1981.,SELECT DISTINCT T1.Description FROM FootNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Year = 'YR1981' AND T2.ShortName = 'Albania' "Tell the number of papers that were presented at ""International Symposium on Software Testing and Analysis"" conference.",SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Symposium on Software Testing and Analysis' Name the party for pennsylvania 10,"SELECT party FROM table_25030512_41 WHERE district = ""Pennsylvania 10""" "What is Finish, when To Par is less than 14, and when Year(s) Won is ""1952 , 1963""?","SELECT finish FROM table_name_85 WHERE to_par < 14 AND year_s__won = ""1952 , 1963""" Find the names of all directors whose movies are rated by Sarah Martinez.,SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' Find the id of instructors who taught a class in Fall 2009 but not in Spring 2010.,SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 What was the average attendance in week 2?,SELECT AVG(attendance) FROM table_name_61 WHERE week = 2 What winner has the sanremo to cuneo as the course?,"SELECT winner FROM table_name_51 WHERE course = ""sanremo to cuneo""" "What are each owner's first name, last name, and the size of their dog?","SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id" Which extra resulted in 2nd before 2005?,"SELECT extra FROM table_name_30 WHERE result = ""2nd"" AND year < 2005" "Show names of people whose nationality is not ""Russia"".","SELECT Name FROM people WHERE Nationality != ""Russia""" "Which Against has a Position larger than 8, and Points larger than 9?",SELECT against FROM table_name_67 WHERE position > 8 AND points > 9 Who was the Republican when the green was Harold Burbank?,"SELECT republican FROM table_name_27 WHERE green = ""harold burbank""" What are the first names of all students taking accoutning and Computer Information Systems classes?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' What is the average attendance of stadiums with capacity percentage higher than 100%?,SELECT average_attendance FROM stadium WHERE capacity_percentage > 100 How many directors directed an episode that reached 2.48 million viewers?,"SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = ""2.48""" What was the class when part 2 was *hēt?,"SELECT class FROM table_name_61 WHERE part_2 = ""*hēt""" What are the card numbers of members from Kentucky?,"SELECT card_number FROM member WHERE Hometown LIKE ""%Kentucky%""" what name was on the year 2012,"SELECT name FROM table_name_22 WHERE year * __est_ = ""2012""" What are the names of mountains in the area?,SELECT Name FROM mountain Select the names of manufacturer whose products have an average price higher than or equal to $150.,"SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150" What is the venue that is located in zhodino?,"SELECT venue FROM table_name_84 WHERE location = ""zhodino""" How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?,SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia' What is the average number of working horses of farms with more than 5000 total number of horses?,SELECT avg(Working_Horses) FROM farm WHERE Total_Horses > 5000 How many composer are there?,SELECT count ( Composer ) FROM TRACK Find the number of distinct stages in claim processing.,SELECT count(*) FROM claims_processing_stages Can you list the number of invoices from the US grouped by billing city?,"SELECT billing_city, COUNT ( * ) FROM invoices where billing_country = ""USA"" group by billing_city" list out the customers first name,SELECT customer_first_name FROM Customers What are the names of players who train between 500 and 1500 hours?,SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 How many movie theatres have a capacity of at least 300 people?,SELECT count ( * ) FROM cinema WHERE capacity > = 300 How many more black female victims than white female victims were discovered?,SELECT SUM(race = 'B') - SUM(race = 'W') FROM subjects WHERE gender = 'F' which customers pay with debit card?,"select * from customers where payment_method = ""Direct Debit""" What was the percentage of others when the number for Bush was 3196? ,SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 3196 Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.,"SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;" What's the average hours per week all students played athletics?,select avg ( HoursPerWeek ) from SportsInfo What position is 1999?,SELECT position FROM table_name_83 WHERE year = 1999 In what year did Morgan Brian win?,"SELECT AVG(year) FROM table_name_75 WHERE winner = ""morgan brian""" "What is the Presentation of Credentials has a Termination of Mission listed as August 15, 2000?","SELECT presentation_of_credentials FROM table_name_91 WHERE termination_of_mission = ""august 15, 2000""" What is the Time with a Ground that is humber college north?,"SELECT time FROM table_name_7 WHERE ground = ""humber college north""" "List the games from the publisher ""Activision"".",SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'Activision' "In the games at corio oval, what was the highest crowd?","SELECT MAX(crowd) FROM table_name_62 WHERE venue = ""corio oval""" What is the total number of professors with a Ph.D. ?,SELECT count(*) FROM professor WHERE prof_high_degree = 'Ph.D.' Can you show me what dates appear more than once again?,SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count ( * ) > 1 What episode # has govinda & david dhawan as the eliminated contestant?,"SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = ""govinda & david dhawan""" "Among the sales people, who are hired prior to 2010?","SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'SP' AND SUBSTR(T1.HireDate, 0, 4) < 2010" What are the numbers of races for each constructor id?,"SELECT COUNT(*), constructorid FROM constructorStandings GROUP BY constructorid" Please give the first name and phone number of the client whose complaint id is CR0922485.,"SELECT T1.first, T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Complaint ID` = 'CR0922485'" "What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims?",SELECT COUNT(assists) FROM table_name_85 WHERE goals = 0 AND points > 1 AND pims > 0 list the hardware model name,SELECT Hardware_Model_name FROM phone When 4 is the week what is the location?,SELECT location FROM table_24136365_2 WHERE week = 4 How many campuses are there in Los Angeles county?,"SELECT count(*) FROM campuses WHERE county = ""Los Angeles""" Tell me the label for digital download for bonus tracks version,"SELECT label FROM table_name_39 WHERE format = ""digital download"" AND edition_s_ = ""bonus tracks version""" What was the time for tracks before 19 on 8/26/69?,"SELECT time FROM table_name_75 WHERE release_date = ""8/26/69"" AND track < 19" Indicate the slug and the itunes url of the podcast whose review content was written Can't stop listening.,"SELECT slug, itunes_url FROM podcasts WHERE podcast_id IN ( SELECT podcast_id FROM reviews WHERE content = 'Can''t stop listening' )" "For each room, find its name and the number of times reservations were made for it.","SELECT T2.roomName , count(*) , T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room" Provide the university name and ID of the university found in Turkey.,"SELECT T1.university_name, T1.id FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey'" What are the keywords for episode 426 of the series?,SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.number_in_series = 426; Find the codes of countries that have more than 50 players.,SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50 What network has an aspect of 4:3 and a PSIP Short Name of qvc?,"SELECT network FROM table_name_80 WHERE aspect = ""4:3"" AND psip_short_name = ""qvc""" What Player's To par is −6?,"SELECT player FROM table_name_54 WHERE to_par = ""−6""" When fort irwin-barstow/victorville is the type of fare what is the cash fare?,"SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = ""Fort Irwin-Barstow/Victorville""" What is the Date of the Middlesbrough Home game?,"SELECT date FROM table_name_42 WHERE home_team = ""middlesbrough""" What engine was used after 1984?,SELECT engine FROM table_name_87 WHERE year > 1984 "What is the name of the publisher of the book ""The Illuminati""?",SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Illuminati' Show me the name of the medicines that are present in both the tables?,SELECT T1.name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' Name the most withdrawn for 37 lstr no.,SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37 What is the fleet number for the model of Gillig Phantom 3096TB?,"SELECT fleet_number FROM table_name_95 WHERE model = ""gillig phantom 3096tb""" What is the pick of player don waddell from round 7?,"SELECT pick FROM table_name_96 WHERE round = ""7"" AND player = ""don waddell""" Where was the 1400 m held?,"SELECT venue FROM table_14981555_1 WHERE distance = ""1400 m""" How many models of Ford Maverick were produced?,SELECT COUNT(DISTINCT T2.model_year) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'ford maverick' Give the location of the university ID 112.,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.id = 112 "When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?","SELECT conversion_from_patent_application FROM table_2279413_1 WHERE maximum_term = ""10 years"" AND pct_route_available = ""Yes""" List by their id all customers who have a debit balance in their accounts.,SELECT c_custkey FROM customer WHERE c_acctbal < 0 "Show the advisors of the students whose city of residence has city code ""BAL"".","SELECT Advisor FROM STUDENT WHERE city_code = ""BAL""" List the cities where the product 'Mishi Kobe Niku' were shipped to.,SELECT T1.ShipCity FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T3.ProductName = 'Mishi Kobe Niku' What Surface has a Date of 1 september 2008?,"SELECT surface FROM table_name_18 WHERE date = ""1 september 2008""" What is the screen size and pixel amount of model p5000 when the dimensions are 98×64.5×41?,"SELECT screen_size, pixels FROM table_name_28 WHERE dimensions_w×h×d__mm_ = ""98×64.5×41"" AND model = ""p5000""" "What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?","SELECT l1_cache FROM table_24096813_15 WHERE sspec_number = ""SL2Z3, SL28Q (myA0)""" Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?,"SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = ""Team Impul"" AND circuit = ""Twin Ring Motegi""" what is the score when the away team is rivercity rage?,"SELECT score FROM table_name_99 WHERE away_team = ""rivercity rage""" What is the sum of againsts the team with less than 38 played had?,SELECT SUM(against) FROM table_name_86 WHERE played < 38 What is the High rebounds with a Series with 4–2?,"SELECT high_rebounds FROM table_name_13 WHERE series = ""4–2""" "Which category is the film ""Beach Heartbreakers"" falls into?",SELECT T3.name FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.title = 'BEACH HEARTBREAKERS' Tell me the status of eliminated of anton dela paz,"SELECT status FROM table_name_15 WHERE eliminated = ""anton dela paz""" what's the artist id for Everybody Have Fun Tonight,"SELECT artist_id FROM volume WHERE Song LIKE ""%Everybody Have Fun Tonight%""" On what date was the away team Sheffield Wednesday?,"SELECT date FROM table_name_51 WHERE away_team = ""sheffield wednesday""" What was the crowd size for the Home team of melbourne?,"SELECT COUNT(crowd) FROM table_name_54 WHERE home_team = ""melbourne""" What's the position of the club with w-l-d of 6-2-8?,"SELECT MAX(position) FROM table_13713206_1 WHERE w_l_d = ""6-2-8""" how many distinct names of the products have characteristc name warm?,"SELECT count ( DISTINCT t1.product_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 t3.characteristic_name = ""warm""" What is the name of the medication used for the patient staying in room 111?,SELECT T4.name FROM stay AS T1 JOIN patient AS T2 ON T1.Patient = T2.SSN JOIN Prescribes AS T3 ON T3.Patient = T2.SSN JOIN Medication AS T4 ON T3.Medication = T4.Code WHERE room = 111 What is the name of the tallest building?,SELECT name FROM building ORDER BY height_feet DESC LIMIT 1 What is the long for the player with under 30 carries and 0 yards?,"SELECT long FROM table_name_78 WHERE car < 30 AND yards = ""0""" "For teams that won exactly 15, how many points were scored?","SELECT points FROM table_27293285_6 WHERE won = ""15""" Who is the player from Sweden from a round after 3?,"SELECT player FROM table_name_77 WHERE nationality = ""sweden"" AND round > 3" "What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?","SELECT MIN(year_built) FROM table_name_26 WHERE location = ""sonnemannstraße/rückertstraße, ostend"" AND height__m_ > 185" "In language where Wednesday is বুধবার budhbar, what is Thursday?","SELECT thursday_guru__jupiter_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = ""বুধবার Budhbar""" Find the total amount of bonus given in all the evaluations.,SELECT sum(bonus) FROM evaluation "Among all the shipments to Florida, what is the percentage of the shipment to Jacksonville?",SELECT CAST(SUM(CASE WHEN T2.city_name = 'Jacksonville' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.state = 'Florida' I want to know advisor with the most number of students,SELECT advisor FROM Student GROUP BY advisor ORDER BY count ( * ) DESC LIMIT 1 "Find the papers which have ""Olin Shivers"" as an author.","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Olin"" AND t1.lname = ""Shivers""" What duration is listed for Christian de la Fuente?,"SELECT duration FROM table_11210576_3 WHERE actor = ""Christian de la Fuente""" Name the number of first elected for phil crane,"SELECT COUNT(first_elected) FROM table_1341672_14 WHERE incumbent = ""Phil Crane""" When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?,"SELECT year FROM table_name_73 WHERE points < 1 AND engine = ""cosworth v8"" AND entrant = ""jolly club switzerland""" What year was the last European Grand Prix held in Spain?,"SELECT T1.year FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" order by T1.year desc limit 1" "What is the path of solution of ""spinachLexer.mT__55"" method?",SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'spinachLexer.mT__55' WHich representative has the lowest votes?,SELECT representative_id from election order by votes asc limit 1 What is the name of the movie that is rated by most of times?,"SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1" Mention the status of payment of student 299.,SELECT bool FROM no_payment_due WHERE name = 'student299' when was the premiere when a 3.3 millions of North American watched the episode whose writer was Rob Wright?,"SELECT original_air_date FROM table_21313498_1 WHERE us_viewers__millions_ = ""3.3"" AND written_by = ""Rob Wright""" What was the number of murders the year forcible rapes were at 166? ,SELECT murder FROM table_25271777_1 WHERE forcible_rape = 166 Which kind of policy type was chosen by the most customers?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1 What are the maximum scores the team Boston Red Stockings got when the team won in postseason?,SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'; How many ends lost when shot % is 88 and ends won are 31?,SELECT COUNT(ends_lost) FROM table_name_72 WHERE shot_pct = 88 AND ends_won = 31 What's the version that has a 20.0 mbit/s downstream rate?,"SELECT version FROM table_name_81 WHERE downstream_rate = ""20.0 mbit/s""" What college did the player who was drafted by Calgary go to?,"SELECT college FROM table_28059992_6 WHERE cfl_team = ""Calgary""" How many times was the high assists earl watson (5) and the date of the game was december 2?,"SELECT COUNT(score) FROM table_11964154_7 WHERE high_assists = ""Earl Watson (5)"" AND date = ""December 2""" How many games is collingwood the home side?,"SELECT COUNT(crowd) FROM table_name_4 WHERE home_team = ""collingwood""" List all the customers with name containing the word 'Group'.,"SELECT T FROM ( SELECT IIF(`Customer Names` LIKE '%Group%', `Customer Names`, NULL) AS T FROM Customers ) WHERE T IS NOT NULL" Name the venue for staines town,"SELECT venue FROM table_name_43 WHERE opponent = ""staines town""" "Give the review of the restaurant located in Ocean St., Santa Cruz.",SELECT T2.review FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.city = 'santa cruz' AND T1.street_name = 'ocean st' WHAT ARE THEIR NAMES?,SELECT name FROM instructor WHERE id NOT IN ( SELECT id FROM teaches ) How many captains are there younger than 50 in each rank?,"SELECT count ( * ) , rank FROM captain WHERE age < 50 GROUP BY rank" Great! How about the lowest salary?,SELECT T1.name FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg ( T2.salary ) ASC LIMIT 1 what is the name of the employee that supported the most number of customers?,"SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 1" What was the host city of the 8th edition in the the host country of Croatia?,"SELECT host_city FROM table_26669939_1 WHERE host_country = ""Croatia"" AND edition = ""8th""" how much years old is Anna Powierza ?,"SELECT T1.Age FROM editor AS T1 where T1.Name = ""Anna Powierza""" "Show all official native languages that contain the word ""English"".","SELECT Official_native_language FROM country WHERE Official_native_language LIKE ""%English%""" What is the Match with Points that are 24?,SELECT match FROM table_name_11 WHERE points = 24 what is the date when the round is sf?,"SELECT date FROM table_name_52 WHERE round = ""sf""" What is the pick # when the new jersey devils is the nhl team?,"SELECT pick__number FROM table_2897457_3 WHERE nhl_team = ""New Jersey Devils""" "What is Date, when Against is ""22""?",SELECT date FROM table_name_87 WHERE against = 22 "What is the lowest Game, when High Assists is ""Maurice Williams (8)""?","SELECT MIN(game) FROM table_name_11 WHERE high_assists = ""maurice williams (8)""" what is the competition when the score is 2-1?,"SELECT competition FROM table_name_28 WHERE score = ""2-1""" What was the date of appointment for javier aguirre's replacement?,"SELECT date_of_appointment FROM table_name_53 WHERE outgoing_manager = ""javier aguirre""" What about events that had failure for their event details?,SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail' What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?,"SELECT competition FROM table_name_37 WHERE opponents = ""sv werder bremen"" AND score = ""1-2""" What date did the player from Santo André debut?,"SELECT date_joined FROM table_name_27 WHERE from__club_ = ""santo andré""" What is the ICAO with commenced operations before 1989?,SELECT icao FROM table_name_2 WHERE commenced_operations < 1989 "If the just cents is 84.46, what is the just ratio?","SELECT just_ratio FROM table_18955077_1 WHERE just__cents_ = ""84.46""" "What is the catalog of the release from January 23, 2002?","SELECT catalog FROM table_name_59 WHERE date = ""january 23, 2002""" How many orders were there?,SELECT count ( DISTINCT order_id ) FROM order_items What is the L2 cache for the processor with a 750MHz frequency?,"SELECT l2_cache FROM table_name_93 WHERE frequency = ""750mhz""" What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R?,"SELECT 1996 FROM table_name_4 WHERE 1994 = ""lq"" AND 1992 = ""3r""" How many courses does the student with the highest GPA this semester take?,SELECT COUNT(course_id) FROM registration WHERE student_id IN ( SELECT student_id FROM student WHERE gpa = ( SELECT MAX(gpa) FROM student ) ) What was the away team's score at windy hill?,"SELECT away_team AS score FROM table_name_71 WHERE venue = ""windy hill""" How much does the most recent treatment cost?,SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1 What kind of free practice is there with a Ford RS2 engine +?,"SELECT free_practice_driver_s_ FROM table_name_8 WHERE engine_† = ""ford rs2""" "Out of those 6 people, how many of them are female?","SELECT count ( * ) FROM people WHERE weight > 85 AND Sex = ""F""" how many times is the jewel malachite?,"SELECT COUNT(birthday) FROM table_26615633_1 WHERE jewel = ""Malachite""" which channel are highest rating percent on the table,SELECT name from channel where rating_in_percent = ( select max ( rating_in_percent ) from channel ) What is the reserved for the constituency of 192?,"SELECT reserved_for___sc___st__none_ FROM table_name_34 WHERE constituency_number = ""192""" Give me all their model names and ram mib,"SELECT Model_name,RAM_MiB FROM chip_model WHERE model_name NOT IN ( SELECT chip_model FROM phone ) " How many trains are there that run in the east direction?,SELECT COUNT(id) FROM trains WHERE direction = 'east' Who is the Visitor on april 8?,"SELECT visitor FROM table_name_94 WHERE date = ""april 8""" What is the location code that has the largest number of documents?,SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count ( * ) DESC LIMIT 1 What was the score for Game 3?,SELECT score FROM table_name_18 WHERE game = 3 List the cities which have more than one airport and number of airports.,"SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1" "What was the surface when the result was 6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6?","SELECT surface FROM table_name_82 WHERE result = ""6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6""" What are the names of the songs whose rating is below the rating of all songs in English?,SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english') "In cities that do not implement daylight savings, what is the total number of cities?",SELECT COUNT(T1.area_code) FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.daylight_savings = 'No' Who advises student 1004?,SELECT Advisor FROM Student WHERE StuID = 1004 What's the number of electorates for constituency number 56?,"SELECT SUM(number_of_electorates__2009_) FROM table_name_56 WHERE constituency_number = ""56""" What is the team 2 for team 1 of Valletta?,"SELECT team_2 FROM table_name_60 WHERE team_1 = ""valletta""" Identify by papers title those in which conferences have been published that do not have a website..,SELECT T2.Title FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.HomePage = '' AND T2.Title <> '' "Among students registered for the most difficult course, list the students' full names who got grade A.","SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade = 'A' ORDER BY T3.diff DESC LIMIT 1" How man teams have a writer named harry angus?,"SELECT COUNT(name_of_team_song) FROM table_28243323_1 WHERE writer_composer = ""Harry Angus""" Which Total has a Player of matt ruth?,"SELECT total FROM table_name_40 WHERE player = ""matt ruth""" "What is the name of the city that already served as host more than once? | The names in English or Hanzi? | English, please.",SELECT t1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING count ( * ) > 1 What is the home team score when st kilda is the away team?,"SELECT home_team AS score FROM table_name_51 WHERE away_team = ""st kilda""" How many towns exist on the government area with a surface of 110 square kilometers?,"SELECT MIN(towns) FROM table_23685890_2 WHERE land_area__km²_ = ""110""" When was the Hopperstad Stavkyrkje built?,"SELECT year_built FROM table_name_83 WHERE church_name = ""hopperstad stavkyrkje""" What is the highest cable ranking?,SELECT MAX(cable_rank) FROM table_24399615_6 List the buildings that have an institution and their street address.,"SELECT name, street_address FROM building WHERE building_id IN ( SELECT building_id FROM institution ) " What are the names of customers who have both savings and checking accounts?,SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking' What is the product ID of the most frequently ordered item on invoices?,SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1 Name the final score for week 5,SELECT final_score FROM table_24126606_2 WHERE week = 5 Which district has both stores with less than 3000 products and stores with more than 10000 products?,SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 What is the torque formula for the 1.6 Duratec ti-vct model/engine?,"SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = ""1.6 Duratec Ti-VCT""" What was the stadium that held that game after week 15?,SELECT stadium FROM table_name_28 WHERE week > 15 how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%,"SELECT COUNT(party) FROM table_1342013_34 WHERE candidates = ""John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%""" List out city name of businesses which have medium length of review.,SELECT DISTINCT T1.city FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_length = 'Medium' What original air date has 5.85 u.s. viewers (million)?,"SELECT original_air_date FROM table_27117365_1 WHERE us_viewers__million_ = ""5.85""" "What was the average election year that has less than 136 deputies, and 1,560,753 votes received?","SELECT AVG(election_date) FROM table_name_86 WHERE number_of_deputies < 136 AND number_of_votes_received = ""1,560,753""" I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may 2011,"SELECT plaid_cymru FROM table_name_77 WHERE polling_organisation_client = ""yougov/itv wales"" AND date_s__conducted = ""4 may 2011""" Which state has a royal house of Ying?,"SELECT state FROM table_name_66 WHERE royal_house = ""ying""" What is the largest amount of top division titles featuring the tammeka club?,"SELECT MAX(top_division_titles) FROM table_name_56 WHERE club = ""tammeka""" "Which To par has a Place of t6, and a Player of nick faldo?","SELECT to_par FROM table_name_56 WHERE place = ""t6"" AND player = ""nick faldo""" Can you add their genders into the table please?,"select artist_name, gender from artist where artist_name in ( SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7 ) " What Haydon had a 33 Ben-Tahir?,"SELECT haydon FROM table_name_68 WHERE ben_tahir = ""33""" "What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?","SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title" How many resulted in draws with 34 tries for?,"SELECT drawn FROM table_name_99 WHERE tries_for = ""34""" What is the discounted price of line item number 1?,SELECT l_extendedprice * (1 - l_discount) FROM lineitem WHERE l_linenumber = 1 What are the names of all departments in alphabetical order?,SELECT dept_name FROM department ORDER BY dept_name In which year did the least people enter hall of fame?,SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY COUNT(*) LIMIT 1 What is the highest Week with the Opponent Buffalo Bills?,"SELECT MAX(week) FROM table_name_67 WHERE opponent = ""buffalo bills""" "Find products with max page size as ""A4"" and pages per minute color smaller than 5.","SELECT product FROM product WHERE max_page_size = ""A4"" AND pages_per_minute_color < 5" Show date of transaction where amount of transaction larger than 1000,SELECT date_of_transaction FROM TRANSACTIONS WHERE amount_of_transaction > 1000 "What was the music for the team who earned a score of 13 (5, 4, 4)?","SELECT music FROM table_name_99 WHERE score = ""13 (5, 4, 4)""" Which event has notes of women +60kg quarterfinal?,"SELECT event FROM table_name_43 WHERE notes = ""women +60kg quarterfinal""" What is the example with the associative type?,"SELECT example FROM table_name_56 WHERE type = ""associative""" Who was the high rebounder on game 1?,SELECT high_rebounds FROM table_27715173_12 WHERE game = 1 "Find the average age of members of the club ""Hopkins Student Enterprises"".","SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" What is the label for catalog number CRG3P-90054?,"SELECT label FROM table_name_96 WHERE catalog = ""crg3p-90054""" Which telescopes were sponsored by or originated in Belgium?,"SELECT name FROM table_23851574_2 WHERE nationality_sponsors = ""Belgium""" What is the time/retired when there are less than 22 laps and honda is the manufacturer?,"SELECT time_retired FROM table_name_67 WHERE laps < 22 AND manufacturer = ""honda""" "Please list all the paths of the solutions containing files within the repository whose url is ""https://github.com/maxild/playground.git"".",SELECT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/maxild/playground.git' What is the original name of the place by designer Glen Peloso with a Location of n/a?,"SELECT original_name FROM table_name_4 WHERE designer = ""glen peloso"" AND location = ""n/a""" "Based on business in Phoenix, calculate the percentage of business with low funny votes.",SELECT CAST(SUM(CASE WHEN T2.review_votes_funny = 'Low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Phoenix' display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.,SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.,"SELECT invoice_number FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" how many address are presented on the table,SELECT count ( * ) from addresses Can you please tell me the names of the artists who don't have any exhibitions?,SELECT name FROM artist WHERE artist_id NOT IN ( SELECT artist_id FROM exhibition ) What is Bob Tway's To par?,"SELECT to_par FROM table_name_27 WHERE player = ""bob tway""" What is the highest number of laps when honda is the manufacturer and the grid number is 12?,"SELECT MAX(laps) FROM table_name_27 WHERE manufacturer = ""honda"" AND grid = 12" Who is the youngest journal committee member?,SELECT T1.name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID order by T1.age asc limit 1 How many different results came out of the round in which #98 All American Racers became the GTU winning team? ,"SELECT COUNT(results) FROM table_13643320_2 WHERE gtu_winning_team = ""#98 All American Racers""" What was the score in the tournament in which Michael Stich took third place?,"SELECT score FROM table_name_32 WHERE third_place = ""michael stich""" What were the San Francisco resident's years in assembly?,"SELECT years_in_assembly FROM table_name_54 WHERE residence = ""san francisco""" How many of them participated in more than 5 races?,select count ( * ) from ( SELECT ( T1.driverid ) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count ( * ) > 5 ) List name and damage for all storms in a descending order of max speed.,"SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC;" What are the results for testing the species with voges-proskauer when citrate yields a positive result?,"SELECT voges_proskauer FROM table_16083989_1 WHERE citrate = ""Positive""" What's the series number of the episode with a broadcast order s04 e07?,"SELECT MAX(number_in_series) FROM table_1231892_4 WHERE broadcast_order = ""S04 E07""" How many activities do we have?,SELECT count(*) FROM Activity How many points did the Falcons score when the record was 4-4? ,"SELECT falcons_points FROM table_16710971_2 WHERE record = ""4-4""" Who was the high rebounds of team @ Detroit?,"SELECT high_rebounds FROM table_27721131_10 WHERE team = ""@ Detroit""" What about Mrs. Hanna Willms ? | Did you mean the number of policies Mrs. Hanna Willms has listed? | Yes,"SELECT count ( * ) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id where Customer_name = ""Mrs. Hanna Willms""" "What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71?","SELECT COUNT(upper_index_kcal__nm_3) FROM table_name_59 WHERE fuel_gas = ""iso-butane"" AND lower_index_mj__nm_3 < 84.71" What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?,"SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = ""pedro martínez de luna y gotor""" Which years was there a To par of +1?,"SELECT year_s__won FROM table_name_45 WHERE to_par = ""+1""" Report the distinct registration date and the election cycle.,"SELECT DISTINCT Registration_Date , Election_Cycle FROM VOTING_RECORD" WHAT ARE THE BROWSERS LISTED IN THE TABLE,select name from browser What is the average heat that has 52.83 sb mark and lane less than 4?,"SELECT AVG(heat) FROM table_name_28 WHERE mark = ""52.83 sb"" AND lane < 4" How many editors are there?,SELECT count(*) FROM editor What is the id and name of the employee with the highest salary?,"SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1" Which coach has serviced in NBA for more than 10 years.,SELECT coachID FROM coaches WHERE lgID = 'NBA' GROUP BY coachID HAVING MAX(year) - MIN(year) > 10 what is most common participant type,SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY count ( * ) DESC LIMIT 1 What is the average pick # of the player from round 11?,SELECT AVG(pick__number) FROM table_name_21 WHERE round = 11 "Among the schools donated by donor ""000eebf28658900e63b538cf8a73afbd"",how many schools whose poverty level are highest?",SELECT COUNT(T1.schoolid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.poverty_level = 'highest poverty' AND T2.donor_acctid = '000eebf28658900e63b538cf8a73afbd' How many members have professor edward acton as vice-chancellor?,"SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = ""Professor Edward Acton""" what is the country where the player is phil mickelson?,"SELECT country FROM table_13282157_1 WHERE player = ""Phil Mickelson""" Show the ids for projects with at least 2 documents.,SELECT project_id FROM Documents GROUP BY project_id HAVING COUNT(*) >= 2 What is the nationality of the person with number 27?,"SELECT nationality FROM table_name_96 WHERE jersey_number_s_ = ""27""" Hello! Can you provide me with a list of all of the player IDs in the database?,SELECT player_id FROM hall_of_fame In which special stage named Tempo 2 was Sébastien Loeb the leader?,"SELECT stage FROM table_21326205_2 WHERE rally_leader = ""Sébastien Loeb"" AND name = ""Tempo 2""" Who is the voice actor of the hero in Lion King?,SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T2.movie_title = 'Lion King' AND T1.character = 'Lion King' What is the first and last name of all students 18 years old who have vice president votes?,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18" What is the total rank for the lane before 2?,SELECT SUM(rank) FROM table_name_87 WHERE lane < 2 "What is the full name of the customer that had made the most transactions in August, 2014?","SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y-%m', T2.TransactionDate) = '2014-08' GROUP BY T1.CustomerID ORDER BY COUNT(T2.CustomerID) DESC LIMIT 1" What is the maximum overall number?,SELECT MAX(_number) FROM table_2985714_2 What is the High rebounds with a Game that is 62?,SELECT high_rebounds FROM table_name_71 WHERE game = 62 What is the number of professors who are in the Accounting or Biology departments?,SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?,SELECT SalesYTD - SalesQuota FROM SalesPerson WHERE BusinessEntityID = 288 What is the average profit of all the low class universal road frames? Indicate how many variety of sizes are there and the available colors.,"SELECT AVG(T1.ListPrice - T1.StandardCost), COUNT(DISTINCT T1.Size) , COUNT(DISTINCT T1.Style) FROM Product AS T1 INNER JOIN ProductSubcategory AS T2 ON T1.ProductSubcategoryID = T2.ProductSubcategoryID WHERE T1.Class = 'L' AND T2.Name = 'Road Frames' GROUP BY T1.Class, T1.Color" "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.","SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1" What are the 3 most common cloud covers in the zip code of 94107?,SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3 Find the names of all reviewers who have contributed three or more ratings.,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3 Which Song of the Year was 42 on the UK charts prior to 1994?,"SELECT song FROM table_name_14 WHERE year < 1994 AND uk_chart = ""42""" Find the number of different cities which banks are located at.,SELECT count(DISTINCT city) FROM bank What is the ratio of students who have payment due and those who do not have payment due?,"SELECT CAST(SUM(IIF(`bool` = 'pos', 1, 0)) AS REAL) / SUM(IIF(`bool` = 'neg', 1, 0)) FROM no_payment_due" Who are the owners of the programs that broadcast both in the morning and at night?,"SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning"" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Night""" "What are the nationalities of swimmers ""Grant Hackett"" and ""Craig Stevens""?","SELECT nationality FROM swimmer WHERE name = ""Grant Hackett"" OR name = ""Craig Stevens""" What are the ids of courses offered in Fall of 2009 but not in Spring of 2010?,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 Which Crowd has an Away team of collingwood?,"SELECT SUM(crowd) FROM table_name_79 WHERE away_team = ""collingwood""" Whatis the original title for lion's den?,"SELECT original_title FROM table_13834298_1 WHERE film_title_used_in_nomination = ""Lion's Den""" What is the average rating of reviews of user id1?,SELECT avg ( T2.rating ) FROM useracct WHERE T2.u_id = 1 AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id How many rentals were returned on 5/27/2005?,SELECT COUNT(rental_id) FROM rental WHERE rental_date = '2005-05-27' Show the names of all the activities Mark Giuliano participates in.,"SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" How many settlements does each claim correspond to? List the claim id and the number of settlements.,"SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id" What are the titles of courses that are offered in more than one department?,SELECT title FROM course GROUP BY title HAVING count(*) > 1 What is the company where Eduardo Martins is a customer?,"SELECT company FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins"";" The color diamond is assigned to which Terminus?,"SELECT terminus FROM table_name_46 WHERE color = ""diamond""" "What is the total number of goals for when the drawn is less than 7, less than 21 games have been lost, and there are 1 of 33 points?","SELECT COUNT(goals_for) FROM table_name_33 WHERE drawn < 7 AND lost < 21 AND points_1 = ""33""" "What is the position when the League is the malaysian super league, and a Year of 2011?","SELECT position FROM table_name_85 WHERE league = ""malaysian super league"" AND year = ""2011""" Name the total episode for runtime of 24:11,"SELECT COUNT(episode) FROM table_2105721_1 WHERE run_time = ""24:11""" Which staff started the earliest?,SELECT staff_id from project_staff order by date_from limit 1 What round was the player Ty Lawson with a pick earlier than 18?,"SELECT AVG(round) FROM table_name_90 WHERE player = ""ty lawson"" AND pick < 18" Can you also give me the countries?,"SELECT T1.first_name , T1.last_name, T1.city, T1.state, T1.country FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5" What is the name of the winning driver where the circuit name is posillipo?,"SELECT winning_driver FROM table_1140105_6 WHERE circuit = ""Posillipo""" Count the number of countries.,SELECT count(*) FROM county_public_safety Can I also get the numbers of assets for each of these contracts,"SELECT T1.maintenance_contract_id, T2.asset_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id" How many document types are there?,SELECT count(*) FROM Ref_document_types What is the average snatch score of body builders?,SELECT avg(Snatch) FROM body_builder How many managers are from United States on the list?,SELECT count ( * ) FROM manager where country = 'United States' "During what years did the tallest building, located at 211 Union Street, have less than 31 floors?","SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = ""211 union street""" When did the DC Comics title that debuted in 1937 end?,"SELECT last_year FROM table_name_65 WHERE first_year = ""1937"" AND publisher = ""dc comics""" Tell me the NHL team for ryan johnson,"SELECT nhl_team FROM table_name_69 WHERE player = ""ryan johnson""" "Ok ,, what are the cuatomers id that have order of quantity 1?",SELECT T1.Customer_ID FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 "Among the LG brand users, calculate the percentage of the Nexus 5 model user. What is the ratio of male and female users of it?","SELECT SUM(IIF(T1.device_model = 'Nexus 5', 1, 0)) * 100 / COUNT(T1.device_id) AS per , SUM(IIF(T1.device_model = 'Nexus 5' AND T2.gender = 'M', 1, 0)) / SUM(IIF(T1.device_model = 'Nexus 5' AND T2.gender = 'F', 1, 0)) AS r FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.phone_brand = 'LG'" In what season was the conference record for the Pandas 15-1-1? ,"SELECT season FROM table_27069503_2 WHERE conf_record = ""15-1-1""" How many airlines are there?,SELECT COUNT ( * ) FROM airlines "How much Elevation (m) has a Prominence (m) larger than 2,876?",SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ > 2 OFFSET 876 Find courses that ran in Fall 2009 or in Spring 2010.,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 How many video games do you have?,SELECT count(*) FROM Video_games How many people whose age is greater 30 and job is engineer?,SELECT count ( * ) FROM Person WHERE age > 30 AND job = 'engineer' Which GPU has the cushaw application?,"SELECT gpu‡ FROM table_name_31 WHERE application = ""cushaw""" Yes. What is their date of birth?,SELECT date_of_birth FROM Employees WHERE employee_id IN ( SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed ) How many titles did Mary Smith rent in 2005? Determine the percentage of titles rented in June 2005.,"SELECT COUNT(T2.rental_id) , CAST(SUM(IIF(STRFTIME('%m',T2.rental_date) = '7', 1, 0)) AS REAL) * 100 / COUNT(T2.rental_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller' AND STRFTIME('%Y',T2.rental_date) = '2005'" "Find the titles of the papers the author ""Stephanie Weirich"" wrote.","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Stephanie"" AND t1.lname = ""Weirich""" Please list all unique Product Names,SELECT DISTINCT product_name FROM Products When did the program air on Vier?,"SELECT premiere___aired FROM table_178242_1 WHERE channel = ""VIER""" "List the title of all cartoon directed by ""Ben Jones"" or ""Brandon Vietti"".","SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"" OR Directed_by = ""Brandon Vietti"";" "What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?","SELECT SUM(grid) FROM table_name_80 WHERE time_retired = ""+8.180 secs"" AND laps < 47" How many books were ordered by customer Kandy Adamec?,SELECT COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Kandy' AND T3.last_name = 'Adamec' How many patients' prescriptions are made by physician John Dorian?,"SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = ""John Dorian""" "For each nationality, how many different constructors are there?","SELECT count(*) , nationality FROM constructors GROUP BY nationality" What are the distinct names of products purchased by at least two different customers?,SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id) >= 2 Give the name of the nation that uses the greatest amount of languages.,SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1 Show budget type codes and the number of documents in each budget type.,"SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code" What is the venue of the match with more than 8 against and ireland as the opposing team?,"SELECT venue FROM table_name_33 WHERE against > 8 AND opposing_teams = ""ireland""" What are the names of storms that did not affect any regions?,SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region) Which cities have 4 or more airports,SELECT city FROM airports GROUP BY city HAVING count ( * ) > = 4 What is the full name of the actor who starred in most movies?,"SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, COUNT(T1.film_id) AS num FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.first_name, T2.last_name ) AS T ORDER BY T.num DESC LIMIT 1" "Find the subject ID, subject name, and the corresponding number of available courses for each subject.","SELECT T1.subject_id , T2.subject_name , COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id" Find the movies with the highest average rating. Return the movie titles and average rating.,"SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1" what is the name of the station where the metlink code is mata?,"SELECT station FROM table_3005450_1 WHERE metlink_code = ""MATA""" "Calculate the average income made by movies using the keyword ""paris"". List the title of the movies.","SELECT AVG(T1.revenue), T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'paris'" "What is the lowest Place, when Televotes is 15424?",SELECT MIN(place) FROM table_name_50 WHERE televotes = 15424 Provide the air carrier description of the flight with the highest actual elapsed time.,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID ORDER BY T2.ACTUAL_ELAPSED_TIME DESC LIMIT 1 Which student have allergy to both milk and cats? | Here are the student ids of the students who have allergies to both milk and cat. | What are their last names?,"SELECT lname FROM Student WHERE StuID IN ( SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"" ) " "B.P. of 0, and a Pts Agst smaller than 247 has how many total number of played?",SELECT COUNT(played) FROM table_name_25 WHERE bp = 0 AND pts_agst < 247 What city has the museum that holds the Sue specimen?,"SELECT museum AS city FROM table_name_48 WHERE name = ""sue""" What is the total number of tweets sent by male users on Mondays?,SELECT COUNT(DISTINCT T1.TweetID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' AND T1.Weekday = 'Monday' "Riggs of e, and a Buechel & Manhart spelling (pronunciation) of e had what ullrich?","SELECT ullrich FROM table_name_92 WHERE riggs = ""e"" AND buechel_ & _manhart_spelling__pronunciation_ = ""e""" What year has a make & model of mci d4000n?,"SELECT year FROM table_name_79 WHERE make_ & _model = ""mci d4000n""" And how about the lowest?,SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance LIMIT 1 When was the school with the largest enrollment founded?,SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 What are the names of all the songs that have a higher rating than some song of the blues genre?,"SELECT song_name FROM song WHERE rating > ( SELECT max ( rating ) FROM song WHERE genre_is = ""blues"" ) " Can you tell me the Venue that has the Away team of south dragons?,"SELECT venue FROM table_name_98 WHERE away_team = ""south dragons""" "How many phone hardware models are produced by the company named ""Nokia Corporation""?","SELECT COUNT(*) FROM phone WHERE Company_name = ""Nokia Corporation""" What was the attendance on August 2?,"SELECT attendance FROM table_name_48 WHERE date = ""august 2""" what is the highest runners when the jockey is frankie dettori and the placing is higher than 1?,"SELECT MAX(runners) FROM table_name_68 WHERE jockey = ""frankie dettori"" AND placing > 1" Count the number of employees for each city.,"SELECT count(*) , city FROM employee GROUP BY city" "which Streak has a Location/Attendance of staples center, and a Score of 67–89?","SELECT streak FROM table_name_1 WHERE location_attendance = ""staples center"" AND score = ""67–89""" what is the average salary for all teams?,SELECT avg ( salary ) FROM salary Which film titles have the most expensive rental rate?,SELECT title FROM film WHERE rental_rate = ( SELECT MAX(rental_rate) FROM film ) Which Fencing Victories (pts) has a Total of 5640?,SELECT fencing_victories__pts_ FROM table_name_68 WHERE total = 5640 What was the score of the away team at Junction Oval venue?,"SELECT away_team AS score FROM table_name_8 WHERE venue = ""junction oval""" What person on team Minardi Team USA with a qual of 1:17.481?,"SELECT name FROM table_name_59 WHERE team = ""minardi team usa"" AND qual_1 = ""1:17.481""" Show all sport name and the number of students.,"SELECT sportname , count(*) FROM Sportsinfo GROUP BY sportname" What is the genre of PG rated movie starred by the actor with highest net worth?,"SELECT T1.Genre FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.`MPAA Rating` = 'PG' ORDER BY CAST(REPLACE(REPLACE(T3.NetWorth, ',', ''), '$', '') AS REAL) DESC LIMIT 1" How many hours do the players train on average?,SELECT avg(HS) FROM Player What are the names of the two students who are playing multiple sports?,"SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID having count ( * ) >1" What are the name of courses that have at least five enrollments?,SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5 What their names?,SELECT name FROM swimmer WHERE id NOT IN ( SELECT swimmer_id FROM record ) Hi there! Can you show me a list of all of the cities including city IDs and city names?,"SELECT City_ID,Name FROM city" Count the number of credit cards that the customer with first name Blanche and last name Huels has.,"SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Blanche"" AND T2.customer_last_name = ""Huels"" AND T1.card_type_code = ""Credit""" "Find the names of the swimmers who have both ""win"" and ""loss"" results in the record.",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' "when was the first start date that actually began on august 6, 1969","SELECT launched FROM table_291768_1 WHERE commissioned = ""August 6, 1969""" What is the rank of user id 3?,SELECT T2.rank FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id WHERE T2.u_id = 3 State the customer name of orders which has shipped date in 7/8/2018.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.ShipDate = '7/8/18' THEN T1.`Customer Names` END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) WHERE T IS NOT NULL what is the enrollment of the conference | The enrollment of the oldest college is 19067.0. | list the enrollment and primary-conference of the oldest college,"SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1" "what are the names of the products with category ""Herbs""","SELECT T1.product_name FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" What are the official names of cities that have not hosted a farm competition?,SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition) What is the Round for the jiu-jitsu vs martial arts?,"SELECT round FROM table_name_20 WHERE event = ""jiu-jitsu vs martial arts""" What happened in week 12 when week 13 resulted in Tennessee (9-1)?,"SELECT week_12_nov_19 FROM table_name_20 WHERE week_13_nov_26 = ""tennessee (9-1)""" "What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation?","SELECT MIN(total) FROM table_name_46 WHERE bronze = 1 AND nation = ""czech republic (cze)""" Find the average number of followers for the users who had some tweets.,SELECT AVG(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets) "What is the host year of city ""Taizhou ( Zhejiang )""?","SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = ""Taizhou ( Zhejiang )""" Name the constructor for alberto ascari,"SELECT constructor FROM table_21977704_1 WHERE driver = ""Alberto Ascari""" What championship had Francesca Schiavone in the finals?,"SELECT championship FROM table_name_81 WHERE opponent_in_the_final = ""francesca schiavone""" What is the Attendance of the game with a Record of 37–21–12 and less than 86 Points?,"SELECT AVG(attendance) FROM table_name_44 WHERE record = ""37–21–12"" AND points < 86" What is the name of the patient who made the most recent appointment?,SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 "Which City has Seasons in league of 17, and a Club of shakhter?","SELECT city FROM table_name_99 WHERE seasons_in_league = 17 AND club = ""shakhter""" How many film categories are there?,SELECT COUNT(DISTINCT category_id) FROM category Name the total number of points with year less than 1955 and rank of 5th with wins less than 0,"SELECT COUNT(points) FROM table_name_31 WHERE year < 1955 AND rank = ""5th"" AND wins < 0" Show me the open year of all shops in numerical order.,select open_year from shop order by open_year What are the years that Andretti Autosport is a team?,"SELECT COUNT(year) FROM table_name_44 WHERE team = ""andretti autosport""" "What is College, when Pick is less than 145, and when Player is Jeff Wilkins?","SELECT college FROM table_name_34 WHERE pick < 145 AND player = ""jeff wilkins""" Which Neon has a Argon of −189.6?,"SELECT neon FROM table_name_95 WHERE argon = ""−189.6""" How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?,"SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = ""qingdao suncare nutritional technology""" Name the surface for philadelphia,"SELECT surface FROM table_23235767_4 WHERE championship = ""Philadelphia""" Name the pinyin for kɵkyar k̡irƣiz yezisi,"SELECT pinyin FROM table_2008069_2 WHERE uyghur___yenɡi_yezik̢__ = ""Kɵkyar K̡irƣiz yezisi""" what number is associated with the baltic fleet and leninets (ленинец)?,"SELECT number FROM table_name_49 WHERE fleet = ""baltic"" AND name = ""leninets (ленинец)""" "What was the score on May 12, 2008?","SELECT score FROM table_name_8 WHERE date = ""may 12, 2008""" Name the highest week for result of w 38-13,"SELECT MAX(week) FROM table_name_7 WHERE result = ""w 38-13""" Who wrote the series number 14?,SELECT written_by FROM table_18734298_1 WHERE no_in_series = 14 Which one has the least amount of years worked?,"SELECT journalist_ID FROM journalist where Nationality = 'England' order by Years_working limit 1" When five is the new channel what is the date of original removal?,"SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = ""Five""" How many schools have some students playing in goalie and mid positions.,SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid') "What is Minister, when Party is ""AN""?","SELECT minister FROM table_name_89 WHERE party = ""an""" Calculate the total number of sales in North America.,SELECT SUM(T2.num_sales) * 100000 AS nums FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'North America' How many students are enrolled in some classes that are taught by an accounting professor?,SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' Find the name and ID of the product whose total order quantity is the largest.,"SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1" Find the ship type that are used by both ships with Panama and Malta flags?,SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' What was the least amount of wins when he had 10 poles? ,SELECT MIN(wins) FROM table_24584486_1 WHERE poles = 10 Show all publishers and the number of books for each publisher.,"SELECT publisher, COUNT(*) FROM book_club GROUP BY publisher" When did the venue of round 3 happen?,"SELECT date FROM table_name_23 WHERE venue = ""round 3""" "Among episodes aired in 2009, which episode has received the worst response based on the rating.",SELECT episode_id FROM Episode WHERE air_date LIKE '2009%' ORDER BY rating LIMIT 1; What opponent did they have a bye result against before week 14?,"SELECT opponent FROM table_name_19 WHERE result = ""bye"" AND week < 14" How many customers have credit cards?,"SELECT count ( * ) FROM Customers_cards where card_type_code = ""Credit""" "According to the observation on 2008/3/11, what was the height of Elly Koss?","SELECT T2.value, T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.date = '2008-03-11' AND T2.description = 'Body Height'" march 27-29 where june 10-11 is 127?,"SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = ""127""" What are the first names and birthdates of the professors in charge of ACCT-211?,"SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = ""ACCT-211""" What was the date for monaco grand prix?,"SELECT date FROM table_1140067_2 WHERE race = ""Monaco Grand Prix""" What player has a date of 12-02-2003?,"SELECT player FROM table_name_98 WHERE date = ""12-02-2003""" what is the competition played in budva against italy?,"SELECT competition FROM table_name_56 WHERE town = ""budva"" AND opponent = ""italy""" Which game is named tsegay kebede category:articles with hcards?,"SELECT games FROM table_name_70 WHERE name = ""tsegay kebede category:articles with hcards""" Find the average age of students who are living in the dorm with the largest capacity.,SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT max(student_capacity) FROM dorm) Name the fat for protein being 4 and calories 80,"SELECT fat__g_ FROM table_2493389_1 WHERE protein__g_ = ""4"" AND calories__1_tbsp__ = 80" List out the start date of the care plan of alive patients.,SELECT DISTINCT T1.START FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.deathdate IS NULL Can you sort them in descending order?,"SELECT apt_type_code, avg ( room_count ) FROM Apartments GROUP BY apt_type_code order by avg ( room_count ) desc" What is the average latitude and longitude of the starting points of all trips?,"SELECT AVG(T1.lat), AVG(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id" How tall is Ye Fei?,"SELECT height FROM table_name_36 WHERE players = ""ye fei""" Can you sort the list in descending order of sales and profits,"SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion , Profits_in_Billion DESC" How many of the matches are Superover?,SELECT SUM(CASE WHEN T2.Outcome_Type = 'Superover' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Outcome AS T2 ON T2.Outcome_Id = T1.Outcome_type Name the sum of total for gold less than 1 and bronze of 3,SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND bronze = 3 What was the retired time on someone who had 43 laps on a grip of 18?,SELECT time_retired FROM table_name_17 WHERE laps = 43 AND grid = 18 "For each dorm, how many amenities does it have?","SELECT count(*) , T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid" In which continent does the country with the smallest surface area belongs?,SELECT Continent FROM Country ORDER BY SurfaceArea LIMIT 1 Mention the type of game that Matthias Trattnig played.,SELECT DISTINCT T1.GAMETYPE FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.PlayerName = 'Matthias Trattnig' Who won the event against U.S.A.?,"SELECT status FROM table_name_39 WHERE opposing_teams = ""u.s.a.""" Show the locations that have more than one railways.,SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*) > 1 What's the total attendance of the leagues in season of 2010?,"SELECT COUNT(total_attendance) FROM table_10815352_1 WHERE season = ""2010""" What is the race date for the course Jaén to Córdoba?,"SELECT date FROM table_name_64 WHERE course = ""jaén to córdoba""" Loss of finley (8-7) had what record?,"SELECT record FROM table_name_99 WHERE loss = ""finley (8-7)""" What was the most recent race at Kyalami with Keke Rosberg competing?,"SELECT MAX(year) FROM table_name_41 WHERE venue = ""kyalami"" AND driver = ""keke rosberg""" "Which was the position for overall less than 254, round less than 5 and pick number less than 13?",SELECT position FROM table_name_64 WHERE overall < 254 AND round < 5 AND pick__number < 13 Name the organization which hold the award id 328.,SELECT organization FROM Award WHERE award_id = 328; What state/territory has 121 m as the height?,"SELECT state___territory FROM table_name_58 WHERE height = ""121 m""" Phil Klemmer wrote all titles and production code is 3t6455. ,"SELECT title FROM table_27115960_1 WHERE written_by = ""Phil Klemmer"" AND production_code = ""3T6455""" What is Jonty Rhodes's batting style?,"SELECT batting_style FROM table_name_95 WHERE player = ""jonty rhodes""" what is Planned Delivery Date of customer id 516,SELECT Planned_Delivery_Date FROM Customer_Orders where Customer_ID = 516 What engine was in the lotus 44 f2 Chassis?,"SELECT engine FROM table_name_27 WHERE chassis = ""lotus 44 f2""" Show the name of the shop that has the most kind of devices in stock.,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1 Which song lasts 3:34?,"SELECT song FROM table_name_59 WHERE length = ""3:34""" Name the public for mikey and melanie,"SELECT public FROM table_26375386_22 WHERE couple = ""Mikey and Melanie""" "What is the average value of Adjusted net enrolment rate, primary, both sexes (%) indicator in Algeria from 1975 to 1980?","SELECT CAST(SUM(Value) AS REAL) / COUNT(CountryCode) FROM Indicators WHERE CountryName = 'Algeria' AND Year > 1974 AND Year < 1981 AND IndicatorName = 'Adjusted net enrolment rate, primary, both sexes (%)'" Find the number of medications prescribed for each brand.,"SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand" "What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?","SELECT original_title FROM table_name_56 WHERE year = ""1996 (11th)"" AND winner_and_nominees = ""breaking the waves""" What was the date of game 21?,SELECT date FROM table_name_85 WHERE game = 21 "Among the coaches who taught the teams in 1922's Stanley Cup finals, how many of them are from the USA?",SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN TeamsSC AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.year = 1922 AND T3.birthCountry = 'USA' "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.","SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1" "List all of the papers written by the author ""Karin Rengefors.""",SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Karin Rengefors' What is the largest amount of floors in the 70m (233ft) Tupper building (educational)?,"SELECT MAX(floors) FROM table_name_11 WHERE height = ""70m (233ft)"" AND building = ""tupper building (educational)""" "Find the name, class and rank of all captains.","SELECT name , CLASS , rank FROM captain" Name the 2006 with 2003 of a and 2012 of a,"SELECT 2006 FROM table_name_1 WHERE 2003 = ""a"" AND 2012 = ""a""" When was SPLC founded?,"SELECT MIN(founded) FROM table_11318462_29 WHERE abbreviation = ""SPLC""" "Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to?","SELECT moving_to FROM table_name_64 WHERE transfer_fee = ""undisclosed"" AND name = ""odjidja-ofoe""" Now remove the residences with less than 2 people,"SELECT Residence, count ( * ) FROM player EXCEPT SELECT Residence, count ( * ) FROM player WHERE count ( * ) < 2" Show all cities without a branch having more than 100 memberships.,SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 What are the names of body builders in descending order of total scores?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC What item names have a rating of 5?,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id where rating = 5 "What is the repository id of the method with tokenized name ""crc parameters get hash code""?",SELECT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'crc parameters get hash code' "List the full names, gender and positions who's location is in New York city.","SELECT T1.firstname, T1.lastname, T1.gender, T3.positiontitle FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T2.locationcity = 'New York City'" What is the smallest scored with a result of 46-18?,"SELECT MIN(scored) FROM table_name_49 WHERE result = ""46-18""" What was the home teams score at Arden Street Oval?,"SELECT home_team AS score FROM table_name_50 WHERE venue = ""arden street oval""" List out female students that enrolled in occ school and ulca?,"SELECT name FROM enrolled WHERE school IN ('occ', 'ulca') AND name NOT IN ( SELECT name FROM male )" State the category of the label that represented the behavior category of app id 4955831798976240000.,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 4955831798976240000 What was the Result on the Date of 25th?,"SELECT result FROM table_name_82 WHERE date = ""25th""" Show the first names and last names of customers without any account.,"SELECT customer_first_name , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What's the Super G when the combined was 13 and the overall was more than 7?,"SELECT super_g FROM table_name_77 WHERE overall > 7 AND combined = ""13""" What is the team with grid 9?,SELECT team FROM table_name_10 WHERE grid = 9 Hello! Can you show me a list of all the claim IDs and their associated claim amount?,"SELECT claim_id, amount_claimed FROM Claims" What year did Karl Schnabl win the Winter Olympics?,"SELECT winter_olympics FROM table_174491_2 WHERE winner = ""Karl Schnabl""" "How many items shipped by REG AIR were ordered on March 22, 1995?",SELECT COUNT(T1.o_orderkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'REG AIR' AND T1.o_orderdate = '1995-03-22' "For how many times has the scene ""OLIVIA’S house."" appeared in Twelfth Night?",SELECT COUNT(T2.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'OLIVIA’S house.' AND T1.Title = 'Twelfth Night' Name the discipline for 1561 fis points,SELECT discipline FROM table_30073089_2 WHERE fis_points = 1561 How many addresses have zip code 197?,"SELECT COUNT(*) FROM ADDRESSES WHERE zip_postcode = ""197""" list out the authors,SELECT Author FROM submission Name the college for calgary stampeders,"SELECT college FROM table_16575609_4 WHERE cfl_team = ""Calgary Stampeders""" What is the average absent month for a unemployed male students?,SELECT AVG(T2.month) AS avg FROM unemployed AS T1 INNER JOIN longest_absense_from_school AS T2 ON T2.name = T1.name INNER JOIN male AS T3 ON T3.name = T2.name What is the Loss of the game at Nationwide Arena with a Score of 4–3?,"SELECT loss FROM table_name_42 WHERE score = ""4–3"" AND arena = ""nationwide arena""" What is the record which shows Kickoff as kickoff?,"SELECT record FROM table_name_75 WHERE ""kickoff"" = ""kickoff""" "Among public magnet schools,what percentage of schools that receive the donated resources as books?",SELECT CAST(SUM(CASE WHEN T1.project_resource_type = 'Books' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.projectid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_magnet = 't' What is the first year for Popgun?,"SELECT first_year FROM table_name_41 WHERE title = ""popgun""" "How many caps figures are there for Norwich City, Coventry City?","SELECT COUNT(cap_s_) FROM table_28286776_52 WHERE club_s_ = ""Norwich City, Coventry City""" "Among the customers from Indiana, what is the percentage of their purchased orders in the Central region with no discount?",SELECT CAST(SUM(CASE WHEN T2.Discount = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.Region = 'Central' AND T1.State = 'Indiana' What is the number of rounds that took place for the fight that lasted 6:21?,"SELECT COUNT(round) FROM table_name_1 WHERE time = ""6:21""" Show the details and star ratings of the 3 least expensive hotels.,"SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3" Which tournament had a 2R categorization in 2009 and SF in 2010?,"SELECT tournament FROM table_name_83 WHERE 2009 = ""2r"" AND 2010 = ""sf""" "What are the vocal types used in song ""Badlands""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" List the titles of books that are not published.,SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication) Who replaced outgoing manager José Ángel Ziganda?,"SELECT replaced_by FROM table_17201869_3 WHERE outgoing_manager = ""José Ángel Ziganda""" What is the team with 1st period at 12:37?,"SELECT team FROM table_name_53 WHERE period = ""1st"" AND time = ""12:37""" Find the average age of students who do not have any pet .,select avg(age) from student where stuid not in (select stuid from has_pet) What are the ages of the editors that are at least two journal committees.,SELECT T1.Age FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT ( * ) > = 2 when was the premiere of the episode where the amount of North American spectators was 1.76 millions?,"SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = ""1.76""" What is the group name when 3yo hcp restricted maiden was raced?,"SELECT group FROM table_14981555_1 WHERE race = ""3yo Hcp Restricted Maiden""" How many enzymes are there?,SELECT count ( * ) FROM enzyme "Name the paper which is cited most times and the paper which is cited least times? Also, find the number of times each one is cited.","SELECT cited_paper_id, COUNT(cited_paper_id), ( SELECT cited_paper_id FROM cites GROUP BY cited_paper_id ORDER BY COUNT(cited_paper_id) ASC LIMIT 1 ), ( SELECT COUNT(cited_paper_id) FROM cites GROUP BY cited_paper_id ORDER BY COUNT(cited_paper_id) ASC LIMIT 1 ) FROM cites GROUP BY cited_paper_id ORDER BY COUNT(cited_paper_id) DESC LIMIT 1" "Give the number of movies with ""saving the world"" as the keyword.",SELECT COUNT(T2.movie_id) FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id WHERE keyword_name = 'saving the world' List the bad alias of the postal point located in Camuy.,SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Camuy' "Which Date has a Result of w, and a Score of 3-0?","SELECT date FROM table_name_94 WHERE result = ""w"" AND score = ""3-0""" What is every prefix class for the equivalent of NTE101?,"SELECT prefix_class FROM table_30011_2 WHERE equivalent = ""NTE101""" What is the Western Division of Wins with a 4th Finish?,"SELECT wins FROM table_name_95 WHERE division = ""western"" AND finish = ""4th""" What is the number of tourists who didn't make any visit?,SELECT count ( * ) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ) how many types of products have rodrick heaney bought in total?,"SELECT count ( DISTINCT t3.product_id ) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" What was the decision on November 26?,"SELECT decision FROM table_name_18 WHERE date = ""november 26""" "What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?","SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is" "How many users rated the movie ""The Magnificent Ambersons"" gave a rating score of no more than 2? List all the URL to the rating on Mubi.","SELECT COUNT(T2.user_id), T2.rating_url FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_title = 'The Magnificent Ambersons' AND T2.rating_score <= 2" "Which Ages have a Capacity larger than 21, and an Ofsted of 106168?",SELECT ages FROM table_name_90 WHERE capacity > 21 AND ofsted = 106168 What is the highest round of the player with an overall of 152?,SELECT MAX(round) FROM table_name_38 WHERE overall = 152 "What is the sum of bronze medals when the rank is greater than 2, and less than 2 total medals with silver medals being more than 0?",SELECT COUNT(bronze) FROM table_name_2 WHERE rank > 2 AND total < 2 AND silver > 0 "What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?",SELECT MAX(bodyweight) FROM table_name_37 WHERE clean_ & _jerk > 120 AND total__kg_ = 245 What is the color of the grape whose wine products had the lowest average price?,SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG ( Price ) LIMIT 1 Which country does customer with first name as Carole and last name as Bernhard live in?,"SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" "Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?",SELECT COUNT(matches) FROM table_name_24 WHERE runs < 6106 AND inns < 146 What are the ids of the train running east?,SELECT id FROM trains WHERE direction = 'east' What is the role of Mark Hammel?,SELECT T2.job FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Mark Hammel' What are the appelations for wines produced after 2008 but not in the Central Coast area?,"SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast""" "What are the first and last name of the president of the club ""Bootup Baltimore""?","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t2.position = ""President""" "What is District, when Incumbent is ""Richard Neal""?","SELECT district FROM table_name_8 WHERE incumbent = ""richard neal""" List the id of students who attended statistics courses in the order of attendance date.,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.date_of_attendance" "Which Japanese title has a Disc smaller than 12, and an Artist of kōzō murashita?","SELECT japanese_title FROM table_name_44 WHERE disc < 12 AND artist = ""kōzō murashita""" Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio?,"SELECT stage FROM table_name_5 WHERE mountains_classification = ""mariano piccoli"" AND winner = ""giuseppe citterio""" Name the number location of georgia perimeter college,"SELECT COUNT(location) FROM table_16734640_1 WHERE institution = ""Georgia Perimeter College""" Can you show me the minimum enrollment of all schools?,SELECT min ( enrollment ) FROM school What are all locations of train stations?,SELECT DISTINCT LOCATION FROM station "For the grocery store located at ""3635 W DIVERSEY AVE"", how many inspections did it have?",SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.address = '3635 W DIVERSEY AVE ' AND T1.facility_type = 'Grocery Store' what is 2012 when the tournament is win %?,"SELECT 2012 FROM table_name_9 WHERE tournament = ""win %""" What are the catalog entry names of the products with next entry ID above 8?,SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8 what is the number of area where the county is marsabit?,"SELECT COUNT(area__km_2__) FROM table_1404486_1 WHERE county = ""Marsabit""" What is the enrollment for the institution that joined in 1987? ,SELECT MIN(enrollment) FROM table_2562113_1 WHERE joined = 1987 And the gender that is housed?,"SELECT T1.dorm_name,T1.gender FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name,T1.gender FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'" "What language was the film Pelle Erobreren, which received the best actor nomination, in?","SELECT language FROM table_name_11 WHERE category = ""best actor"" AND original_title = ""pelle erobreren""" what's the points total when points against was points against?,"SELECT points_for FROM table_name_8 WHERE points_against = ""points against""" WHo is the Visitor on april 14?,"SELECT visitor FROM table_name_78 WHERE date = ""april 14""" What are the login names and family names of course author and tutors?,"SELECT login_name , family_name FROM Course_Authors_and_Tutors" How many countries are listed?,SELECT count(*) FROM COUNTRIES; What was the constructor when there were 95 laps and a grid less than 15?,SELECT constructor FROM table_name_85 WHERE grid < 15 AND laps = 95 "For the race called by Marshall Cassidy, who was the host?","SELECT s_host FROM table_22583466_5 WHERE race_caller = ""Marshall Cassidy""" What are the classes of races that have two or more corresponding races?,SELECT CLASS FROM race GROUP BY CLASS HAVING count(*) >= 2 What position did athlete play from Tennessee state?,"SELECT pos FROM table_name_86 WHERE college = ""tennessee state""" how many first elected with district is kansas 3,"SELECT COUNT(first_elected) FROM table_1342359_15 WHERE district = ""Kansas 3""" Name the number of former wnba team for 2,SELECT COUNT(former_wnba_team) FROM table_17308269_2 WHERE pick = 2 display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.,"SELECT employee_id, job_id FROM employees WHERE salary < (SELECT MIN(salary) FROM employees WHERE job_id = 'MK_MAN')" What is Tiger Woods' to par?,"SELECT to_par FROM table_name_5 WHERE player = ""tiger woods""" "In the state with the highest state appropriations to higher education in fiscal year 2011 per resident, which institution has the lowest number of undergraduates in 2010?",SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state INNER JOIN institution_grads AS T3 ON T3.unitid = T1.unitid WHERE T1.student_count = ( SELECT MIN(T1.student_count) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state INNER JOIN institution_grads AS T3 ON T3.unitid = T1.unitid WHERE T3.year = 2010 ) AND T3.year = 2010 GROUP BY T1.state ORDER BY SUM(T2.state_appr_value) DESC LIMIT 1 What is the Home team score for the Away team of North Melbourne?,"SELECT home_team AS score FROM table_name_69 WHERE away_team = ""north melbourne""" What is the phone number of all companies where the last name of the contact person starts with the letter M and are not from Germany?,SELECT phone FROM customers WHERE contactLastName LIKE 'M%' AND country != 'Germany' how many home game there,SELECT count ( * ) FROM home_game What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?,"SELECT copa_conmebol_1996 FROM table_name_49 WHERE recopa_sudamericana_1996 = ""champions""" What is every institution with the nickname of Quakers?,"SELECT institution FROM table_261954_1 WHERE nickname = ""Quakers""" Find the salary and manager number for those employees who is working under a manager.,"SELECT salary , manager_id FROM employees WHERE manager_id != ""null""" What categories have two or more corresponding books that were made after 1989?,SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2 What is the result when the candidates are alexander smyth (dr) 100%,"SELECT result FROM table_2668336_24 WHERE candidates = ""Alexander Smyth (DR) 100%""" What is the number of league goals for players with 10 league matches and a TeBe career of 2003?,"SELECT league_goals FROM table_28730459_3 WHERE league_matches = 10 AND tebe_career = ""2003""" Name the most recent movie rented by Dorothy Taylor.,SELECT T4.title FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.first_name = 'DOROTHY' AND T1.last_name = 'TAYLOR' ORDER BY T2.rental_date DESC LIMIT 1 List the names of aircrafts and that did not win any match.,SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH) Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata?,"SELECT res FROM table_name_10 WHERE method = ""decision (unanimous)"" AND opponent = ""wataru sakata""" List down person's name who has nickname.,SELECT name FROM Person WHERE nickname IS NOT NULL; What country has david toms as the player?,"SELECT country FROM table_name_43 WHERE player = ""david toms""" When is the earliest year opened for huff hall that was established after 1974?,"SELECT MIN(opened) FROM table_name_20 WHERE venue = ""huff hall"" AND established > 1974" How many addresses does it have?,SELECT COUNT ( * ) FROM address AS T1 JOIN city AS T2 ON T1.city_id = T2.city_id GROUP BY T1.city_id ORDER BY count ( * ) DESC LIMIT 1 Who was the away team at the Win Entertainment Centre?,"SELECT away_team FROM table_name_31 WHERE venue = ""win entertainment centre""" "Find the id and last name of the teacher that has the most detentions with detention type code ""AFTER""?","SELECT T1.teacher_id , T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = ""AFTER"" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1" "In what division was there a population density in km2 of 4,491.8 in 2011? ","SELECT administrative_division FROM table_24027047_1 WHERE population_density___km²_2011_ = ""4,491.8""" "Among the objects that have multiple relations, how many images whose captions for the prediction class ids are ""on""?",SELECT COUNT(T2.PRED_CLASS_ID) FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.OBJ1_SAMPLE_ID != T1.OBJ2_SAMPLE_ID AND T2.PRED_CLASS = 'on' What NHL team picked Sergei Luchinkin?,"SELECT nhl_team FROM table_2886617_8 WHERE player = ""Sergei Luchinkin""" Find the name and partition id for users who tweeted less than twice.,"SELECT T1.name , T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) < 2" "What is the average of all transactions? | The average of all transactions is 11198167.237771427 | What is the average of all transactions with the transaction type code ""PUR""?","SELECT avg ( amount_of_transaction ) FROM TRANSACTIONS WHERE transaction_type_code = ""PUR""" What is the total value of cancelled orders?,SELECT SUM(T1.quantityOrdered * T1.priceEach) FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber WHERE T2.status = 'Cancelled' Which song had Central Station as a label and whose album was Various - Wild Nights 4?,"SELECT song FROM table_name_33 WHERE label = ""central station"" AND album = ""various - wild nights 4""" Which Country has a Score of 67?,SELECT country FROM table_name_84 WHERE score = 67 who is third place when the tournament is delray beach?,"SELECT third_place FROM table_name_77 WHERE tournament = ""delray beach""" "How many Lanes have a Time larger than 13.59, and a Rank larger than 8?",SELECT SUM(lane) FROM table_name_36 WHERE time > 13.59 AND rank > 8 "State the podcast title, content review and rating for all reviews with titled 'Love it!'","SELECT DISTINCT T1.title, T2.content, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.title = 'Love it!'" In which country's latest trade data and latest water withdrawal data were both updated in the year 2013? Give its long name and Alpha 2 code.,"SELECT LongName, Alpha2Code FROM Country WHERE LatestTradeData = 2013 AND LatestWaterWithdrawalData = 2013" What's the record of the game with number 40?,SELECT record FROM table_23285761_7 WHERE game = 40 Which country does customer with first name as Carole and last name as Bernhard lived in?,"SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = ""Carole"" AND T1.last_name = ""Bernhard""" List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.,"SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;" What is the up/down associated with the Subiaco Oval?,"SELECT up_down FROM table_2472711_32 WHERE venue = ""Subiaco Oval""" "When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap?","SELECT fastest_lap FROM table_name_97 WHERE winning_team = ""mathiasen motorsports"" AND pole_position = ""jonathan bomarito""" What is the first and last name of all students who play Football or Lacrosse?,"SELECT T2.lname , T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Football"" OR T1.SportName = ""Lacrosse""" Which song has the most vocals?,SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1 Who came in 3rd place in 1990?,"SELECT 3 AS rd_place FROM table_name_20 WHERE year = ""1990""" What was John Fought's score?,"SELECT score FROM table_name_96 WHERE player = ""john fought""" "What is the lowest Round, when Pick is 9 (via Hamilton)?","SELECT MIN(round) FROM table_name_66 WHERE pick = ""9 (via hamilton)""" Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert?,"SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = ""john davidson"" AND play_by_play = ""marv albert"" AND year > 1992" What is the least popular kind of decor?,SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY count(T2.decor) ASC LIMIT 1; What is the date of the Last Performance of Billy Elliot with a Cast Status of past replacement?,"SELECT last_performance FROM table_name_46 WHERE status = ""past replacement""" Write all the review titles and the contents belonging to the podcast 'More Stupider: A 90-Day Fiance Podcast' with a review rating of 1.,"SELECT title, content FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'More Stupider: A 90-Day Fiance Podcast' ) AND rating = 1" How many dates of polls occur in the Madhya Pradesh state?,"SELECT COUNT(date_of_polls) FROM table_15329030_1 WHERE state = ""Madhya Pradesh""" What injury had maicon | Maicon had the injury Knee problem. | how may total attendance have fedexfield,"SELECT total_attendance from stadium where name = ""FedExField""" What are the ids of instructors who taught in the Fall of 2009 but not in the Spring of 2010?,SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010 "What is largest series number for the episode that aired February 16, 1957?","SELECT MAX(series__number) FROM table_25800134_1 WHERE airdate = ""February 16, 1957""" A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.,"SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;" "Great. Would you please list the ids, names and genders of architects have built one mill?","SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count ( * ) = 1" For the group name European Progressive Democrats what is the French abbr?,"SELECT french_abbr FROM table_name_23 WHERE group_name = ""european progressive democrats""" Show the names of cities in counties that have a crime rate less than 100.,SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100) "What are the types of vocals used in the song ""Le Pop""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" Can you show me the names of the first five customers?,SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5 "In rated PG movies, how many of them released in June 1990?",SELECT COUNT(*) FROM movie WHERE `MPAA Rating` = 'PG' AND `Release Date` LIKE '1990-06%' What is the amount of snow where the days for storms are 31?,SELECT SUM(snow__days_year_) FROM table_name_61 WHERE storms__days_year_ = 31 Name the crew chief for rhonda thorson,"SELECT crew_chief FROM table_24535095_2 WHERE listed_owner_s_ = ""Rhonda Thorson""" Which tourist attractions are visited at least twice? Give me their names and ids.,"SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2" What city is fuhlsbüttel airport in?,"SELECT city FROM table_name_1 WHERE airport = ""fuhlsbüttel airport""" What is the value in 2009 at the French Open?,"SELECT 2009 FROM table_name_86 WHERE tournament = ""french open""" What was the highest number of games played when they had over 14 against and 3 losses?,SELECT MAX(played) FROM table_name_27 WHERE against > 14 AND lost = 3 What is the phonetic when the standard thai is ผ่า?,"SELECT phonetic FROM table_name_88 WHERE standard_thai = ""ผ่า""" Name the total number of pick number being henry ellard,"SELECT COUNT(pick__number) FROM table_2508633_2 WHERE player = ""Henry Ellard""" What is the language used most often in the songs?,SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 What tyres were used with the mp4/14 chassis?,"SELECT tyres FROM table_name_40 WHERE chassis = ""mp4/14""" what is the least draw when the place is higher than 4?,SELECT MIN(draw) FROM table_name_62 WHERE place > 4 When was the golden slipper race?,"SELECT date FROM table_name_53 WHERE race = ""golden slipper""" "What chapter is located in Normal, Illinois?","SELECT chapter FROM table_name_65 WHERE location = ""normal, illinois""" What is the velocity of the pilot named 'Thompson'?,SELECT avg(velocity) FROM flight WHERE pilot = 'Thompson' Which region has the highest number of restaurants?,SELECT T1.region FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city GROUP BY T1.region ORDER BY COUNT(T2.id_restaurant) DESC LIMIT 1 Please list all the female students that have filed for bankruptcy.,SELECT name FROM filed_for_bankrupcy WHERE name NOT IN ( SELECT name FROM male ) What position is number 35 whose height is 6-6?,"SELECT position FROM table_11734041_2 WHERE height_in_ft = ""6-6"" AND no_s_ = ""35""" Show the id of employees with role Role_Code,"SELECT Employee_ID,Role_Code FROM Employees" "What is 1989, when 1982 is ""SF""?","SELECT 1989 FROM table_name_37 WHERE 1982 = ""sf""" "What was current legislator Sherrod Brown's Washington, D.C. office phone number during his term starting on 2013/1/3?",SELECT T1.phone FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Sherrod Brown' AND T1.start = '2013-01-03' Who is the driver whose car was constructed by Renault and whose Q1 pos is greater than 2?,"SELECT driver FROM table_name_4 WHERE constructor = ""renault"" AND q1_pos > 2" What are the names and descriptions of all the sections?,"SELECT section_name, section_description FROM Sections" What is the Other transliteration for value 1 000?,"SELECT other FROM table_name_9 WHERE value = ""1 000""" What activities do we have?,SELECT activity_name FROM Activity What are the names of customers who have a loan of more than 3000 in amount?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 Show me a list of all shipping agent codes,SELECT shipping_agent_code FROM Ref_Shipping_Agents Which 2006 tournament had a 4R performance in 2001?,"SELECT 2006 FROM table_name_96 WHERE 2001 = ""4r""" What country is the player ho had a To par of +1 and a score of 69-70-72=211 from?,"SELECT country FROM table_name_92 WHERE to_par = ""+1"" AND score = 69 - 70 - 72 = 211" What nation is the cyclist hat has a UCI ProTour Points of 25?,SELECT nation FROM table_name_95 WHERE uci_protour_points = 25 Which School/Club Team has a Player of deandre liggins?,"SELECT school_club_team FROM table_name_34 WHERE player = ""deandre liggins""" Where can I find the Valley Bicycle Specialists store?,"SELECT T2.AddressLine1, T2.AddressLine2 FROM BusinessEntityAddress AS T1 INNER JOIN Address AS T2 ON T1.AddressID = T2.AddressID INNER JOIN Store AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T3.Name = 'Valley Bicycle Specialists'" "What is Top Division Debut, when Tournaments is ""12"", and when Name is ""Yamamotoyama""?","SELECT top_division_debut FROM table_name_67 WHERE tournaments = 12 AND name = ""yamamotoyama""" What are the details of the lots which are not used in any transactions?,SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id What is the dates where Hillcrest Reserve is the home grounds?,"SELECT first_season FROM table_18752986_1 WHERE home_ground_s_ = ""Hillcrest Reserve""" Show the names of editors of age either 24 or 25.,SELECT Name FROM editor WHERE Age = 24 OR Age = 25 Calculate ratio between the highest unit cost and the lowest unit cost?,"SELECT ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(`Unit Cost`, ',', '') DESC LIMIT 1 ) / ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` WHERE REPLACE(`Unit Cost`, ',', '') = ( SELECT REPLACE(`Unit Cost`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Cost`, ',', '') ASC LIMIT 1 ) ORDER BY REPLACE(`Unit Cost`, ',', '') ASC LIMIT 1 )" Calculate the average net profit for bakeware product.,"SELECT AVG(REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '')) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID WHERE T2.`Product Name` = 'Bakeware'" "How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4?","SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = ""elizabeth anastasiou"" AND jury > 4" What was the original air date for episode number 96 in the series?,SELECT original_airdate FROM table_26866299_1 WHERE series__number = 96 Name the date for the australian grand prix.,"SELECT date FROM table_name_12 WHERE grand_prix = ""australian grand prix""" Name the 0-100 km/hs for name of 2.0 8v,"SELECT 0 AS _100km_h, s FROM table_17941111_2 WHERE name = ""2.0 8v""" What are the names of the states where at least 3 heads were born?,SELECT born_state FROM head GROUP BY born_state HAVING COUNT(*) >= 3 What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?,SELECT riaa_sales_certification FROM table_name_1 WHERE billboard_200_peak = 21 Which Location has a Time of 4:13.48?,"SELECT location FROM table_name_83 WHERE time = ""4:13.48""" Who are all the players from the united states?,"SELECT name FROM table_24302700_6 WHERE nationality = ""United States""" "Write down the award ID, award name and winner for character named ""Homer simpson 20"".","SELECT T1.award_id, T1.award, T1.person FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.character = 'Homer Simpson' AND T1.result = 'Winner';" Who is the alternate for Magnus Swartling as Second?,"SELECT alternate FROM table_name_38 WHERE second = ""magnus swartling""" What is the lowest after when the player is adam scott?,"SELECT MIN(after) FROM table_28498999_3 WHERE player = ""Adam Scott""" What was the score of the tie that had Tottenham Hotspur as the home team?,"SELECT score FROM table_name_35 WHERE home_team = ""tottenham hotspur""" What was the lowest attendance figure at Football Park?,"SELECT lowest FROM table_1161065_28 WHERE venue = ""Football Park""" Tell me the time for martin kampmann,"SELECT time FROM table_name_90 WHERE opponent = ""martin kampmann""" Name the averae top 25 with events less than 0,SELECT AVG(top_25) FROM table_name_31 WHERE events < 0 Identify the number of movies rented by Maria Miller.,SELECT COUNT(T2.rental_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'Maria' AND T1.last_name = 'Miller' Name the candidate first elected in 1942,SELECT candidates FROM table_1341897_23 WHERE first_elected = 1942 "How many person have a projected yearly sales of no more than 50,000?",SELECT COUNT(BusinessEntityID) FROM SalesPersonQuotaHistory WHERE SalesQuota < 500000 "Find the names of customers who have used either the service ""Close a policy"" or the service ""Upgrade a policy"".","SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = ""Close a policy"" OR t3.service_name = ""Upgrade a policy""" "Among the restaurants on street number below 1000, how many of them are in Railroad St.?",SELECT COUNT(city) FROM location WHERE street_name = 'railroad' AND street_num < 1000 "For the list with more than 200 followers, state the title and how long the list has been created?","SELECT list_title , 365 * (strftime('%Y', 'now') - strftime('%Y', list_creation_timestamp_utc)) + 30 * (strftime('%m', 'now') - strftime('%m', list_creation_timestamp_utc)) + strftime('%d', 'now') - strftime('%d', list_creation_timestamp_utc) FROM lists WHERE list_followers > 200" What is the date for the game with an opponent of the Houston Oilers from before week 3?,"SELECT date FROM table_name_11 WHERE week < 3 AND opponent = ""houston oilers""" what is the department id for surgery?,"SELECT departmentID from department where name = ""Surgery""" What is the most popular payment method?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1 "Which Avg/G has a Name of david allen, and a Gain larger than 371?","SELECT AVG(avg_g) FROM table_name_60 WHERE name = ""david allen"" AND gain > 371" How many are there?,SELECT count ( organisation_id ) FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details Which city does student Linda Smith live in?,"SELECT city_code FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.,SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith' what is the name of the episode whose writers were jeff astrof & matt goldman? ,"SELECT title FROM table_27914606_1 WHERE written_by = ""Jeff Astrof & Matt Goldman""" How many flights on 2018/8/1 were operated by American Airlines Inc.?,SELECT COUNT(*) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T2.FL_DATE = '2018/8/1' AND T3.Description = 'American Airlines Inc.: AA' "For the Yelp business which had the most number of ""short"" tips, which category does it belong to?",SELECT DISTINCT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Tips AS T4 ON T3.business_id = T4.business_id WHERE T4.tip_length LIKE 'short' What is the width feet in meeters for the truss with a source of nbi (2009)?,"SELECT width_feet__m_ FROM table_name_63 WHERE source__year_ = ""nbi (2009)""" Show the account id and name with at least 4 transactions.,"SELECT T1.account_id , T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING count(*) >= 4" What are the different locations of the school with the code BUS?,SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS' List the names of players who played as a keeper.,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Keeper' GROUP BY T1.Player_Name Indicate the country name of the city Las Marias.,SELECT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Las Marias' Find the list of attribute data types possessed by more than 3 attribute definitions.,SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3 How many different courses are there?,SELECT count ( distinct CRS_CODE ) from course WHAT IS THE TO PAR FOR ERNIE ELS?,"SELECT to_par FROM table_name_3 WHERE player = ""ernie els""" Which mean number of losses had a played number that was bigger than 34?,SELECT AVG(losses) FROM table_name_58 WHERE played > 34 "How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?","SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = ""1"" AND flt_apps = ""0 (1)""" Who are the top 3 players in terms of overall rating?,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3 Which student failed the course Intro to Database 2? Please give his or her full name.,"SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade IS NULL AND T3.name = 'Intro to Database 2'" Hello! Can you show me a list of all director names who have directed more than one movie?,SELECT distinct T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title ! = T2.title What was the maximum total USD collected by Pebble Technology?,"SELECT MAX(total_usd) FROM table_27155990_1 WHERE creator = ""Pebble Technology""" How many of these women are under 25 years old?,SELECT count ( * ) FROM student WHERE sex = 'F' AND age < 25 How many disabled students have payment due?,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN no_payment_due AS T2 ON T2.name = T1.name WHERE T2.bool = 'pos' How many students have each different allergy?,"SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy" where is the location of Codling?,"SELECT location FROM cinema where name = ""Codling""" "What internet explorer has 1.67% as the opera, with 2012 q1 as the period?","SELECT internet_explorer FROM table_name_4 WHERE opera = ""1.67%"" AND period = ""2012 q1""" Which Opposition has a City of taunton?,"SELECT opposition FROM table_name_17 WHERE city = ""taunton""" What is the stories of highest building?,SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1 What team finished in 4th place in 2007? ,SELECT 4 AS th_place FROM table_2388763_1 WHERE year = 2007 What is the percentage difference between month 0 absence and month 9 absence?,"SELECT CAST(((SUM(IIF(month = 0, 1, 0)) - SUM(IIF(month = 9, 1, 0)))) AS REAL) * 100 / SUM(IIF(month = 0, 1, 0)) FROM longest_absense_from_school" List out the name of the top 10 spenders and what credit card type are they using.,"SELECT T1.First, T1.Last, T2.CreditCardType FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID GROUP BY T1.CustomerID ORDER BY SUM(T2.PurchasePrice) DESC LIMIT 10" I want the date for aníbal sánchez,"SELECT date FROM table_name_58 WHERE pitcher = ""aníbal sánchez""" State the full name of clients with server time of 20 minutes and above.,"SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE strftime('%M', T2.ser_time) > '20'" How many students has the longest absense from school for 5 months?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 5 Find the names of customers who never ordered product Latte.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' WHo is the Winner of andre agassi Finalist?,"SELECT winner FROM table_name_97 WHERE finalist = ""andre agassi""" Which classroom has the most students?,SELECT classroom FROM list GROUP BY classroom ORDER BY count ( * ) DESC LIMIT 1 "Among the users who have posted more than 10 reviews, how many users are elite users?",SELECT COUNT(T4.user_id) FROM ( SELECT T1.user_id FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id INNER JOIN Reviews AS T3 ON T1.user_id = T3.user_id WHERE T3.user_id IS NOT NULL GROUP BY T3.user_id HAVING COUNT(T3.user_id) > 10 ) T4 Name the store with ID 7066 and calculate the percentage of the the quantity ordered that were on 'Net 30' payment terms.,"SELECT T2.stor_name , CAST(SUM(CASE WHEN payterms = 'Net 30' THEN qty ELSE 0 END) AS REAL) * 100 / SUM(qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE T1.stor_id = '7066' GROUP BY T2.stor_name" When Giovanni Gaetano Orsini was the elector who was the elevator?,"SELECT elevator FROM table_name_63 WHERE elector = ""giovanni gaetano orsini""" What is the highest number of laps for Darren Manning?,"SELECT MAX(laps) FROM table_17319931_1 WHERE driver = ""Darren Manning""" What is the Athlete from Burbank High School?,"SELECT athlete FROM table_name_25 WHERE school = ""burbank high school""" When did the party elected in jun. 1959 enter office?,"SELECT entered_office FROM table_name_43 WHERE election = ""jun. 1959""" List all products with the color yellow.,SELECT ProductID FROM Product WHERE Color = 'Yellow' What is the total number of journalists?,SELECT COUNT ( * ) FROM journalist What is the total shipping cost of all the orders made by Page Holsey? Indicate how many of the said orders were ordered in 2022.,"SELECT SUM(T3.cost) FROM customer AS T1 INNER JOIN cust_order AS T2 ON T1.customer_id = T2.customer_id INNER JOIN shipping_method AS T3 ON T3.method_id = T2.shipping_method_id WHERE T1.first_name = 'Page' AND T1.last_name = 'Holsey' AND STRFTIME('%Y', T2.order_date) = '2022'" Who holds the time of 17:11.572?,"SELECT race FROM table_name_88 WHERE time = ""17:11.572""" Find the number of distinct gender for dorms.,SELECT COUNT(DISTINCT gender) FROM dorm "What is the average age of clients whose complaint type is ""TT""?",SELECT AVG(T1.age) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.type = 'TT' Name the average losses for draws larger than 6 and played more than 38,SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38 On what date did Northerly place 6th?,"SELECT date FROM table_1358608_4 WHERE result = ""6th""" "size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?",SELECT MAX(size__cents_) FROM table_name_26 WHERE size__steps_ = 15 AND just__cents_ > 435.08 What is the highest price at which a customer bought the book 'The Prophet'?,SELECT MAX(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'The Prophet' Find the GPD for Bosnia and Herzegovina and the type of government it belongs to.,"SELECT T1.GDP, T2.Government FROM economy AS T1 INNER JOIN politics AS T2 ON T1.Country = T2.Country INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Bosnia and Herzegovina'" which countries have more than 2 airports?,SELECT country FROM airport GROUP BY country HAVING count(*) > 2 Which game was on September 12?,"SELECT game FROM table_name_2 WHERE date = ""september 12""" What is the episode title for episode number 12?,SELECT title FROM table_25640730_7 WHERE _number = 12 Who is the coach for 'BOS' team in year 1950. List the coach ID together with the number of game won and lost.,"SELECT coachID, won, lost FROM coaches WHERE year = 1950 AND tmID = 'BOS'" Which festival has the least number of audience?,select Festival_Name from festival_detail order by Num_of_Audience limit 1 Name the number of tn seshan values for kr values is 478608,SELECT COUNT(tn_seshan__values_) FROM table_22897453_1 WHERE kr_narayanan__values_ = 478608 When was the earliest claim made?,SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1 What was the course on 13 may?,"SELECT course FROM table_name_99 WHERE date = ""13 may""" Find the name and email for the users who have more than one follower.,"SELECT T1.name , T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > 1" Who was the rider with a Fri 3 June time of 18' 19.68 123.516mph?,"SELECT rider FROM table_29218221_2 WHERE fri_3_june = ""18' 19.68 123.516mph""" "Please list all the keywords of the episode ""Refuge: Part 1"".",SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Refuge: Part 1' Which countries has the most number of airlines whose active status is 'Y'?,SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 Which player is no. 53?,"SELECT player FROM table_11545282_5 WHERE no = ""53""" What was the Report for the Monaco race?,"SELECT report FROM table_name_32 WHERE location = ""monaco""" What Datacenter is listed against the network access connections: rras Feature?,"SELECT datacenter FROM table_name_85 WHERE features = ""network access connections: rras""" WHAT IS THE VAL-DE-MARNE WITH A Seine-Saint-Denis of 2.7%?,"SELECT val_de_marne FROM table_name_18 WHERE seine_saint_denis = ""2.7%""" What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?,"SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = ""equity bank"" AND number_of_branches < 44" State the short description for the project which got the donation at 14:44:29 on 2012/9/6.,SELECT T1.short_description FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_timestamp LIKE '2012-09-06 14:44:29' Name the team of vitali yeremeyev,"SELECT nhl_team FROM table_name_97 WHERE player = ""vitali yeremeyev""" what are the total revenues of all companies?,SELECT sum ( revenue ) FROM manufacturers What party is John McHugh a member of?,"SELECT party FROM table_1341453_34 WHERE incumbent = ""John McHugh""" What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?,"SELECT episode FROM table_name_19 WHERE year = 2009 AND show = ""dexter""" Show all the ranks and the number of male and female faculty for each rank.,"SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex" "What are the names of the products with the color description ""red""?","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red""" What is the highest evening gown with an average of 9.531 and swimsuit smaller than 9.449?,SELECT MAX(evening_gown) FROM table_name_8 WHERE average = 9.531 AND swimsuit < 9.449 "Votes of 27,391 has which quotient?","SELECT quotient FROM table_name_10 WHERE votes = ""27,391""" What dates did they become customers?,"SELECT t1.customer_name, T1.date_became_customer FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max ( order_quantity ) FROM order_items ) " "List the product ID of the top five products, by descending order, the number of quantities in stock.",SELECT ProductID FROM Products ORDER BY UnitsInStock DESC LIMIT 5 "What is the lowest Gold, when Silver is 0, and when Bronze is 2?",SELECT MIN(gold) FROM table_name_52 WHERE silver = 0 AND bronze = 2 Thank you. Can you tell me how many of them are males?,"SELECT count ( * ) FROM employee WHERE Sex = ""M""" What is the enrollment at the private university?,"SELECT enrollment FROM table_29483673_1 WHERE affiliation = ""Private""" "How many games have high assists as earl watson (11) and location attendance as Keyarena 16,841?","SELECT COUNT(game) FROM table_28768469_7 WHERE high_assists = ""Earl Watson (11)"" AND location_attendance = ""KeyArena 16,841""" Name 5 students with due payments that are enlisted alongside which organization they were enlisted.,"SELECT T2.organ, T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.bool = 'pos' LIMIT 5" What is the average round number with wide receiver as position and Clark University as the college and the pick number is bigger than 166?,"SELECT AVG(round__number) FROM table_name_18 WHERE position = ""wide receiver"" AND college = ""clark university"" AND pick__number > 166" "What are the first names for all faculty professors, ordered by first name?","SELECT Fname FROM FACULTY WHERE Rank = ""Professor"" ORDER BY Fname" What is the name of the document with the most number of sections?,SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code ORDER BY count(*) DESC LIMIT 1 "For each faculty rank, show the number of faculty members who have it.","SELECT rank, COUNT(*) FROM Faculty GROUP BY rank" Name the Losing BP of Newport Saracens RFC and has a Lost of 19.,"SELECT losing_bp FROM table_name_14 WHERE lost = ""19"" AND club = ""newport saracens rfc""" What is the minimum sum?,SELECT MIN(total) FROM table_30018460_1 How many papers were preprinted between the years 1990 and 2000?,SELECT COUNT(id) FROM Paper WHERE Year BETWEEN '1990' AND '2000' AND ConferenceId = 0 AND JournalId = 0 What are the countries having at least one car maker? List name and id.,"SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;" What are the names for tracks without a race in class 'GT'.,SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT' list all cartoon titles and their directors ordered by their air date,"SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date" find the name of the user who gives 1 rank,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id where T2.rank = 1 How many teams scored 616 points?,SELECT COUNT(won) FROM table_13018091_1 WHERE pts_for = 616 What ethnic group had the largest population in сурдук in 2002?,"SELECT largest_ethnic_group__2002_ FROM table_2562572_53 WHERE cyrillic_name = ""Сурдук""" Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?,"SELECT college_junior_club_team FROM table_1473672_3 WHERE nhl_team = ""Buffalo Sabres""" What kind of round was played when Hanne Skak Jensen faced Austria?,"SELECT round FROM table_25505246_7 WHERE against = ""Austria""" what location is each institution in?,"SELECT institution, location from institution" What is the result of 2003 eaff championship preliminary on 2 march 2003?,"SELECT result FROM table_name_70 WHERE competition = ""2003 eaff championship preliminary"" AND date = ""2 march 2003""" What building in Louisville had more than 35 floors?,"SELECT name FROM table_name_56 WHERE city = ""louisville"" AND floors > 35" What is the document id with least number of paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1 "Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?",SELECT country FROM table_name_18 WHERE 2012 > 0 AND 2009 > 0 AND 2008 = 0 AND 2004 > 0 On what Date were the Results¹ 4:0?,"SELECT date FROM table_name_47 WHERE results¹ = ""4:0""" What are the names and locations of all enzymes listed?,"SELECT name , LOCATION FROM enzyme" Which car won the 1.4litre to 1.8litre award in 2001?,"SELECT 2001 FROM table_name_17 WHERE category = ""1.4litre to 1.8litre""" What are the names of gymnasts?,SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID "For how many times has player no.41 won the ""man of the match"" award?",SELECT COUNT(Match_Id) FROM `Match` WHERE Man_of_the_Match = 41 Which Third has a Skip of ellen vogt?,"SELECT third FROM table_name_58 WHERE skip = ""ellen vogt""" What is the average first prize of the tournament with a score of 279 (–9)?,"SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_47 WHERE score = ""279 (–9)""" Find the first name and major of the students who are not allegry to soy.,"SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Soy"")" Which hometown is the played Dajuan Wagner from?,"SELECT hometown FROM table_name_11 WHERE player = ""dajuan wagner""" who is the runner-up when the winning score is −16 (68-70-65-65=268)?,SELECT runner_up FROM table_name_26 WHERE winning_score = −16(68 - 70 - 65 - 65 = 268) Who are the local hosts for the United States in years earlier than 2007?,"SELECT local_host_s_ FROM table_name_86 WHERE country = ""united states"" AND year < 2007" find the package option of the tv channel that do not have any cartoon directed by Ben Jones.,SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones') which shop has happy hour most frequently? List its id and number of happy hours.,"SELECT shop_id , count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1" Give the title of the film starred by Liza Bergman with the highest replacement cost.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'Liza' AND T1.last_name = 'Bergman' ORDER BY replacement_cost DESC LIMIT 1 Tell me the grantee for las pulgas in 1795,"SELECT grantee FROM table_name_6 WHERE date = 1795 AND concession = ""las pulgas""" List all movies with the best rating score. State the movie title and number of Mubi user who loves the movie.,"SELECT DISTINCT T2.movie_title, T2.movie_popularity FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_score = 5" "Who were the opponents on a hard surface with a score of 6-4, 7-6(2)?","SELECT opponents_in_the_final FROM table_name_23 WHERE surface = ""hard"" AND score = ""6-4, 7-6(2)""" What is the highest round played by Chris Phillips?,"SELECT MAX(round) FROM table_name_67 WHERE player = ""chris phillips""" "In businesses with a score lower than 95 and located around the postal code of 94110, what is the percentage of businesses with a risk category of low risk?",SELECT CAST(SUM(CASE WHEN T1.risk_category = 'Low Risk' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.risk_category) FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN businesses AS T3 ON T2.business_id = T3.business_id WHERE T2.score < 95 AND T3.postal_code = 94110 What position did the person finish in with a notes of junior men individual 5.64km?,"SELECT position FROM table_name_95 WHERE notes = ""junior men individual 5.64km""" "Among the patients who were immunized with meningococcal MCV4P, how many have viral sinusitis disorder after getting the immunization?",SELECT COUNT(DISTINCT T1.patient) FROM immunizations AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.DESCRIPTION = 'meningococcal MCV4P' AND T2.DESCRIPTION = 'Viral sinusitis (disorder)' How many aircrafts are there?,SELECT count(*) FROM aircraft list out the movies on the table,SELECT * FROM Movie What was the match id in 2013?,SELECT MATCH_ID FROM hosting_city WHERE YEAR = 2013 how artist are from India,"SELECT count ( * ) from artist where country = ""India""" Who playes the sport of athletics?,"SELECT sportsperson FROM table_name_36 WHERE sport = ""athletics""" Name the location on 2006-04-07 for direct fire,"SELECT location FROM table_name_9 WHERE date = ""2006-04-07"" AND circumstances = ""direct fire""" "Hmm, I want to know the name of the city with this population.",SELECT city FROM city ORDER BY Regional_Population DESC LIMIT 1 what are all the pixels are presented on the table,SELECT pixels FROM screen_mode Which product did Phillina Ober buy?,SELECT DISTINCT T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Phillina Ober' How many female customers have an education level of over 11?,SELECT COUNT(ID) FROM Customers WHERE EDUCATIONNUM > 11 AND SEX = 'Female' Which state is Tehachapi Pass Wind Farm located in?,"SELECT state_province FROM table_name_72 WHERE wind_farm = ""tehachapi pass wind farm""" What instrumental has chven-s as the adverbial?,"SELECT instrumental FROM table_name_87 WHERE adverbial = ""chven-s""" Give me the social number and state of the client whose phone number is 100-121-8371.,"SELECT T1.social, T1.state FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T1.phone = '100-121-8371'" List the courses' IDs and students' IDs who failed to pass the course.,"SELECT course_id, student_id FROM registration WHERE grade IS NULL OR grade = ''" For how long did Bolivia have a lane greater than 6?,"SELECT COUNT(time) FROM table_name_56 WHERE country = ""bolivia"" AND lane > 6" Hi there! Can you show me a list of all customer IDs for customers not located in the state of California?,SELECT customer_id FROM customers EXCEPT SELECT t1.customer_id FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' Show the party that has the most people,SELECT Party FROM people GROUP BY Party ORDER BY COUNT ( * ) DESC LIMIT 1 Provide the shipping dates and products of the orders by Gene Hale.,"SELECT DISTINCT T2.`Ship Date`, T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Gene Hale'" "How many players born in USA are right-handed batters? That is, have the batter value 'R'.",SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'; What is the score of the friendly match competition on 24 July 2008?,"SELECT score FROM table_name_3 WHERE competition = ""friendly match"" AND date = ""24 july 2008""" What is the team in 1989?,"SELECT team FROM table_name_50 WHERE year = ""1989""" How many people watch at Western Oval venue?,"SELECT COUNT(crowd) FROM table_name_4 WHERE venue = ""western oval""" Which position has a School of green valley high school?,"SELECT position FROM table_name_26 WHERE school = ""green valley high school""" What are the ids of the students who registered course statistics by order of registration date?,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.registration_date" "Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.","SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY COUNT(*) DESC" How many points does the team with 3 losses have?,"SELECT points FROM table_name_52 WHERE lost = ""3""" "Among the male users, how many users use device model of Desire 820?",SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'Desire 820' AND T1.gender = 'M' What was the prize won by Sebastian Ruthenberg?,"SELECT prize FROM table_name_88 WHERE name = ""sebastian ruthenberg""" What is the median income of Maule?,"SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = ""Maule""" What is the province amount if the % 2011 is 0.0%,"SELECT COUNT(province) FROM table_1939367_1 WHERE _percentage_2011 = ""0.0%""" What is the average number of complaints on credit cards filed by clients from New York in the 3 consecutive years starting from 2015?,"SELECT CAST(COUNT(T2.`Complaint ID`) AS REAL) / 3 AS average FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE strftime('%Y', T2.`Date received`) BETWEEN '2015' AND '2017' AND T1.city = 'New York City' AND T2.Product = 'Credit card'" What team was the home team when Tottenham Hotspur is the away team?,"SELECT home_team FROM table_name_86 WHERE away_team = ""tottenham hotspur""" How many items were sold by store 9 during a snowy day?,SELECT COUNT(DISTINCT item_nbr) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr INNER JOIN sales_in_weather AS T3 ON T2.store_nbr = T3.store_nbr WHERE T3.store_nbr = 9 AND T1.snowfall <> 0 AND T1.snowfall IS NOT NULL What is the total number of Asian patients who are allergic to peanuts?,SELECT COUNT(T2.patient) FROM allergies AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Allergy to peanuts' AND T2.race = 'asian' "What is the name and country of origin of the artist who released a song that has ""love"" in its title?","SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE ""%love%""" What country is Richard Vanquelef from?,"SELECT nationality² FROM table_24565004_22 WHERE name = ""Richard Vanquelef""" Name the main character of Disney's most popular adventure movie based on its inflation-adjusted gross.,"SELECT T2.hero FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Adventure' ORDER BY CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" What are the response received dates for the documents described as 'Regular'?,SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' What is the minimum number of wins?,SELECT MIN(wins) FROM table_15431122_2 What is th IATA for Norway with an ICAO of ENTO?,"SELECT iata FROM table_name_99 WHERE country = ""norway"" AND icao = ""ento""" What are the first names of staff who did not give any lesson?,SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id Which loss happened april 18?,"SELECT loss FROM table_name_87 WHERE date = ""april 18""" When was the result 3-1?,"SELECT date FROM table_name_22 WHERE result = ""3-1""" Wh owas the captian of the north east stars?,"SELECT captain FROM table_25794138_1 WHERE team = ""North East Stars""" Which player has the lowest HS score?,SELECT pName FROM Player ORDER BY HS ASC LIMIT 1 What is the contact URL of Claire McCaskill?,SELECT T2.contact_form FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Claire McCaskill' GROUP BY T2.contact_form Name the surface when the partner is carlos berlocq,"SELECT surface FROM table_name_13 WHERE partner = ""carlos berlocq""" Give all the bounding boxes for image 2222 whose object classes are feathers.,"SELECT T2.X, T2.Y, T2.H, T2.W FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 2222 AND T1.OBJ_CLASS = 'feathers'" "How many of the actors are named ""Dan""?",SELECT COUNT(actor_id) FROM actor WHERE first_name = 'Dan' Which school is the player who is headed to Duke from?,"SELECT school FROM table_name_68 WHERE college = ""duke""" How many restaurants are on Irving Street?,SELECT COUNT(id_restaurant) FROM location WHERE street_name = 'irving' What's the name of that movie?,SELECT title FROM Movie WHERE YEAR = ( SELECT max ( YEAR ) FROM Movie ) What are the names of the departments they teach classes for?,SELECT DISTINCT T4.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code What was the final score at texas stadium on September 17?,"SELECT final_score FROM table_name_43 WHERE stadium = ""texas stadium"" AND date = ""september 17""" On what date is St Kilda the away team?,"SELECT date FROM table_name_31 WHERE away_team = ""st kilda""" "Among the books published by publisher ID 1929, how many of them have over 500 pages?",SELECT COUNT(*) FROM book WHERE publisher_id = 1929 AND num_pages > 500 What are the different locations of the school with the code BUS?,SELECT count(DISTINCT dept_address) FROM department WHERE school_code = 'BUS' In what region was Degeneration released in digital format on 19 July 2008?,"SELECT region FROM table_name_41 WHERE format = ""digital"" AND date = ""19 july 2008""" "Hello! Can you please list all of the product names that have the color description of ""white""?","SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""white""" When was tony parker (guard) born?,"SELECT MAX(year_born) FROM table_name_31 WHERE position = ""guard"" AND player = ""tony parker""" What is the industry of the company named General Electric?,"SELECT Industry FROM Companies WHERE name = ""General Electric""" "What are the names of entrepreneurs whose investor is not ""Rachel Elnaugh""?","SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor <> ""Rachel Elnaugh""" What is the party of the representative first elected in 1894 from the Ohio 16 district?,"SELECT party FROM table_name_22 WHERE first_elected = 1894 AND district = ""ohio 16""" Who's ranked less than 2?,SELECT player FROM table_name_32 WHERE rank < 2 Who was the prep nurse of that appointment?,SELECT PrepNurse FROM appointment ORDER BY START DESC LIMIT 1 What are the names of the events they reported?,"SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID" Can you show me all the id of the department store that has both marketing and managing department?,"SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""marketing"" INTERSECT SELECT T2.dept_store_id , T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = ""managing""" Give the number of claims did Ms. Abbie Cole have in the year of 2011.,SELECT COUNT(T2.BILLABLEPERIOD) FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Abbie' AND T1.last = 'Cole' AND T2.BILLABLEPERIOD BETWEEN '2010-12-31' AND '2012-01-01' "Did legendsID ""P194502"" personally attend his Hall of Fame dedication?","SELECT IIF(T1.note = 'posthumous', 'YES', 'NO') FROM AwardsMisc AS T1 RIGHT JOIN Master AS T2 ON T1.ID = T2.playerID WHERE T2.legendsID = 'P194502'" List all the public institutes from the state with the least number of graduate cohort in 2013.,SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T1.state = T2.state WHERE T2.year = 2013 AND T1.control = 'Public' ORDER BY T2.grad_cohort LIMIT 1 "What is the home for league 3rd liga, and an away of 4-0?","SELECT home FROM table_name_11 WHERE league = ""3rd liga"" AND away = ""4-0""" What nation had a moving from of espanyol?,"SELECT nat FROM table_name_97 WHERE moving_from = ""espanyol""" What was the attendance of the Cup Quarterfinals game?,"SELECT attendance FROM table_name_21 WHERE game_site = ""cup quarterfinals""" "WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5?",SELECT MAX(points) FROM table_name_1 WHERE goals_for > 48 AND wins < 19 AND goals_against < 44 AND draws > 5 Name the time for georgia,"SELECT time FROM table_26842217_10 WHERE visiting_team = ""Georgia""" What was the attendance on 10 november 2004?,"SELECT AVG(attendance) FROM table_name_31 WHERE date = ""10 november 2004""" "What is the sum of points for teams with more than 10 matches, more than 0 draws, and 7 losses?",SELECT SUM(points) FROM table_name_86 WHERE draw > 0 AND lost = 7 AND match > 10 What are all the distinct participant ids who attended any events?,SELECT count(DISTINCT participant_id) FROM participants_in_Events What was the To par for United States golfer fred couples?,"SELECT to_par FROM table_name_17 WHERE country = ""united states"" AND player = ""fred couples""" Please provide the id of the respository that received the most forks among the respositories that receive 21 stars.,SELECT Id FROM Repo WHERE Stars = 21 AND Forks = ( SELECT MAX(Forks) FROM Repo WHERE Stars = 21 ) How many distinct governors are there?,SELECT count(DISTINCT Governor) FROM party What are the states of the colleges where students who tried out for the striker position attend?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' "What's the total number of floors built after 2006, and have a rank of 12?",SELECT SUM(floors) FROM table_name_73 WHERE built > 2006 AND rank = 12 "From year 1991 to 2000, calculate the difference betweeen the total number of papers published under the conference ""International Conference on Supercomputing "" and ""Informatik & Schule""?",SELECT SUM(CASE WHEN T2.FullName = 'Informatik & Schule' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.FullName = 'International Conference on Supercomputing' THEN 1 ELSE 0 END) AS DIFF FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year > 1990 AND T1.Year < 2001 "What is the brand name of the root beer that gained a 1-star rating from customer ID 331115 while saying, ""Yuk, more like licorice soda""?","SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.CustomerID = 331115 AND T2.Review = 'Yuk, more like licorice soda.' AND T2.StarRating = 1" "What is the total shipment by ""cargo transport 5"" cost of all purchase orders created on 12/14/2011?",SELECT SUM(t2.freight) FROM ShipMethod AS t1 INNER JOIN PurchaseOrderHeader AS t2 ON t1.shipmethodid = t2.shipmethodid WHERE t1.name = 'cargo transport 5' AND t2.orderdate = '2011-12-14' What is the average height of all players?,SELECT avg ( height ) FROM player Which pilot won the most matches?,SELECT winning_pilot FROM match group by winning_pilot order by count ( * ) desc limit 1 What college has a pick greater than 4 and an overall of 21?,SELECT college FROM table_name_9 WHERE pick > 4 AND overall = 21 "For all movies where users left a critic, find the movie name, user, rating and critics comments from the user.","SELECT T2.movie_title, T1.user_id, T1.rating_score, T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.critic IS NOT NULL" What is the precise location of the establishment with the highest number of failed inspections?,"SELECT T1.latitude, T1.longitude FROM establishment AS T1 INNER JOIN ( SELECT license_no FROM inspection WHERE results = 'Fail' GROUP BY license_no ORDER BY COUNT(results) DESC LIMIT 1 ) AS T2 ON T1.license_no = T2.license_no" When boston university is the team what is the record?,"SELECT record FROM table_29846807_5 WHERE team = ""Boston University""" What is the nickname of the NBA player whose team competed in the Western Conference in the season 2006 and who had a total of two blocks?,SELECT T2.nameNick FROM player_allstar AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.blocks = 2 AND T1.conference = 'West' AND T1.season_id = 2006 Which Type has a Company of epcor?,"SELECT type FROM table_name_21 WHERE company = ""epcor""" Which of the mill names contains the french word 'Moulin'?,SELECT name FROM mill WHERE name LIKE '%Moulin%' "Which conference does the school from Gainesville, Florida, play in?","SELECT present_conference FROM table_name_5 WHERE location = ""gainesville, florida""" What is the home ground for the team whose home city is Trondheim with 27 seasons? ,"SELECT home_ground FROM table_2522473_1 WHERE seasons = 27 AND home_city = ""Trondheim""" What are the names of all airports whose elevation is between -50 and 50?,SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50 Can you just list the id of the most recent order?,SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1 What are the names and ids of the tourist attractions that are visited at most once?,"SELECT T1.Name , T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) <= 1" How many different departments are there in each school that has less than 5 apartments?,"SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name) < 5" Who is in October when Carina Ragnarsson is in November?,"SELECT october FROM table_name_61 WHERE november = ""carina ragnarsson""" "Find the names of the workshop groups where services with product name ""film"" are performed.","SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = ""film""" What are the project ids that staff member worked on?,SELECT project_id from Project_staff where staff_id = '5137097.0' What is the 1991 when 1997 is 18?,"SELECT 1991 FROM table_name_26 WHERE 1997 = ""18""" What are the name and ID of the product bought the most.,"SELECT t2.product_details , t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY sum(t1.order_quantity) LIMIT 1" State the description of the reason why Angelo Buckridge needs the care plan.,SELECT DISTINCT T1.REASONDESCRIPTION FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.first = 'Angelo' AND T2.last = 'Buckridge' who were the semifinalists for the tournament in montreal?,"SELECT semifinalists FROM table_name_95 WHERE tournament = ""montreal""" How many patients do each physician take care of? List their names and number of patients they take care of.,"SELECT T1.name , count(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid" "Released on April 12, 1968 in LP format, what was the catalog?","SELECT catalog FROM table_name_20 WHERE format = ""lp"" AND date = ""april 12, 1968""" "Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?","SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = ""1:48:11.023""" Find the product list of the product name?,SELECT product_name FROM products Name the total number of date for score being l 106–116 (ot),"SELECT COUNT(date) FROM table_23281862_10 WHERE score = ""L 106–116 (OT)""" "Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)?","SELECT partner FROM table_name_64 WHERE score = ""6–3, 7–6 (7–3)""" What is the area of Tuscany?,"SELECT MAX(area__km²_) FROM table_14532_1 WHERE region = ""Tuscany""" "Find the supply key of the top ten suppliers with the most account balance, and list the supply key along with the account balance in descending order of account balance.","SELECT s_suppkey, s_acctbal FROM supplier ORDER BY s_acctbal DESC LIMIT 10" "Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077?","SELECT COUNT(week) FROM table_name_74 WHERE opponent = ""washington redskins"" AND attendance > 56 OFFSET 077" What state was the president who was elected earlier than 1848 born in?,SELECT birth_state FROM table_name_43 WHERE election_year < 1848 "What is the description of the claim status ""Open""?","SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = ""Open""" Show names for all regions except for Denmark.,SELECT region_name FROM region WHERE region_name != 'Denmark'; What is the last name and office of the professor from the history department?,"SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'" "List the names of customers who have once canceled the purchase of the product ""food"" (the item status is ""Cancel"").","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = ""Cancel"" AND T4.product_name = ""food"" GROUP BY T1.customer_id HAVING count(*) >= 1" What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?,SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010; Show the average price of hotels for different pet policy.,"SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn" "Show names of people whose nationality is not ""Russia"".","SELECT Name FROM people WHERE Nationality <> ""Russia""" "What Partner had a Score of 6–3, 2–6, 6–3?","SELECT partner FROM table_name_31 WHERE score = ""6–3, 2–6, 6–3""" how many students have a food allergy?,"SELECT count ( * ) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = ""food""" Team with average of 1.035?,SELECT team FROM table_name_79 WHERE average = 1.035 What is the largest weight that appears in the people table?,SELECT weight from people order by weight desc limit 1 "What is TV Time, when Date is December 22, 1996?","SELECT tv_time FROM table_name_91 WHERE date = ""december 22, 1996""" "What is the height of the player who is from Huntington, WV?","SELECT height FROM table_name_93 WHERE hometown = ""huntington, wv""" "Show the names of phones with carrier either ""Sprint"" or ""TMobile"".","SELECT Name FROM phone WHERE Carrier = ""Sprint"" OR Carrier = ""TMobile""" Find out the first name and last name of staff living in city Damianfort.,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = ""Damianfort"";" Name the least population 1.1.2008 with population per square km of 1.957 and population 1.1.2006 less than 12.67,SELECT MIN(population_112008) FROM table_name_62 WHERE population_per_square_km = 1.957 AND population_112006 < 12.67 Which Host Team has Final Score of 42-23?,"SELECT host_team FROM table_name_86 WHERE final_score = ""42-23""" What's the class when the identifier is cbf-fm-14?,"SELECT class FROM table_name_94 WHERE identifier = ""cbf-fm-14""" How many video game publishers have Interactive in their names?,SELECT COUNT(T.id) FROM publisher AS T WHERE T.publisher_name LIKE '%Interactive%' What is the premium associated with tariff code g9?,"SELECT approx_premium FROM table_10408617_5 WHERE tariff_code = ""g9""" What Away team is visiting Carlton?,"SELECT away_team FROM table_name_27 WHERE home_team = ""carlton""" What is the human development index for the year 2000 where the ingei code is 10?,SELECT human_development_index__2000_ FROM table_1480455_1 WHERE inegi_code = 10 "What is 2012, when Tournament is ""French Open""?","SELECT 2012 FROM table_name_55 WHERE tournament = ""french open""" How many male employees do not wish to receive e-mail promotion?,SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.EmailPromotion = 0 AND T1.Gender = 'M' What are the first name and major of the students who are able to consume soy?,"SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Soy"")" Who was the visiting team when Winnipeg was the home team?,"SELECT visitor FROM table_name_33 WHERE home = ""winnipeg""" "How many papers have ""Atsushi Ohori"" published?","SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Atsushi"" AND t1.lname = ""Ohori""" How about their e-mail addresses?,SELECT T1.email FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5 What are the names of the contestants whose names are not 'Jessie Alloway',SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway' Add another column showing the shipping agent name,"SELECT T1.shipping_agent_code, T1.shipping_agent_name, count ( * ) FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T2.shipping_agent_code = T1.shipping_agent_code group by T2.shipping_agent_code" What track name had Terry Tamm as the soloist?,"SELECT track FROM table_28715942_3 WHERE soloist_s_ = ""Terry Tamm""" "What is the total number of Lost, when Played is less than 34?",SELECT COUNT(lost) FROM table_name_91 WHERE played < 34 NJame the total number of population for towns/villages for 217,SELECT COUNT(population) FROM table_16278825_1 WHERE towns__villages = 217 "Name the Production Number with a Director of friz freleng, and a Title of wacky worm, the?","SELECT production_number FROM table_name_52 WHERE director = ""friz freleng"" AND title = ""wacky worm, the""" Which Year has the Orginal title of La Cérémonie?,"SELECT year FROM table_name_13 WHERE original_title = ""la cérémonie""" List down the district's commander associated with the crime that happened at the yard and has a beat of 532.,"SELECT T2.address, T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.location_description = 'YARD' AND T1.beat = 532" What is the catalogue number for Brazil?,"SELECT catalogue__number FROM table_name_8 WHERE country = ""brazil""" Calculate the percentage of business which opened on Sunday from 9AM to 9PM based on the number of business opened on Sunday.,SELECT CAST(SUM(CASE WHEN T2.opening_time = '9AM' AND T2.closing_time = '9PM' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.day_id) FROM Days AS T1 INNER JOIN Business_Hours AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' Which player from Scotland has a To Par score of +7?,"SELECT player FROM table_name_50 WHERE to_par = ""+7"" AND country = ""scotland""" Which opponent is friendly and played on 15-08-2012?,"SELECT opponent FROM table_name_38 WHERE competition = ""friendly"" AND date = ""15-08-2012""" What is the Time with an Away that is broadview hawks?,"SELECT time FROM table_name_91 WHERE away = ""broadview hawks""" Who was the opposing team during the game in Zagreb?,"SELECT opponent FROM table_name_80 WHERE city = ""zagreb""" What are the first names of the professors who do not teach a class.,SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num what was the car grade?,SELECT Grade FROM list where LastName = 'CAR' List all orders where its products were shipped from Daly City.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.`City Name` = 'Daly City' THEN T1.OrderNumber END AS T FROM `Sales Orders` T1 INNER JOIN `Store Locations` T2 ON T2.StoreID = T1._StoreID ) WHERE T IS NOT NULL Who was the winning pitcher on june 25?,"SELECT winning_pitcher FROM table_12125069_2 WHERE date = ""June 25""" How many sections does course ACCT-211 has?,SELECT COUNT(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' Which Round has a Club team of brandon wheat kings (whl)?,"SELECT round FROM table_name_92 WHERE club_team = ""brandon wheat kings (whl)""" "Which Record has a Method of submission (heel hook), a Round larger than 1, and a Time of 2:28?","SELECT record FROM table_name_32 WHERE method = ""submission (heel hook)"" AND round > 1 AND time = ""2:28""" What is the party of the governor under Hugh Thomas Miller.,"SELECT governor FROM table_name_4 WHERE name = ""hugh thomas miller""" What is the title of the episode with the most nominations?,SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.result = 'Nominee' GROUP BY T2.episode_id ORDER BY COUNT(T1.result) DESC LIMIT 1 How many main actors are there in the movie Pirates of the Caribbean: At World's End?,SELECT COUNT(T2.cast_order) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T3.gender_id = T2.gender_id WHERE T3.gender = 'Male' OR T3.gender = 'Female' AND T1.title = 'Pirates of the Caribbean: At World''s End' AND T2.cast_order = ( SELECT MIN(T2.cast_order) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T3.gender_id = T2.gender_id WHERE T3.gender = 'Male' OR T3.gender = 'Female' AND T1.title = 'Pirates of the Caribbean: At World''s End' ) What is the Shift start time for Shift ID No.2?,SELECT StartTime FROM Shift WHERE ShiftID = '2' What is the least september 1943 when late 1943 is 78000,SELECT MIN(sept_1943) FROM table_1115992_1 WHERE late_1943 = 78000 What was the team that scored 122 points?,SELECT team FROM table_17968274_2 WHERE points = 122 What date sent has cancer as the constellation?,"SELECT date_sent FROM table_name_29 WHERE constellation = ""cancer""" What are the states with the most invoices?,"SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;" How many distinct FDA approval statuses are there for the medicines?,SELECT count(DISTINCT FDA_approved) FROM medicine Who is the lowest ranked player from the United States that has less than 3 Wins?,"SELECT MIN(rank) FROM table_name_59 WHERE country = ""united states"" AND wins < 3" Calculate the total price of products purchased by Adam.,SELECT SUM(T3.Price * T2.quantity) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Adam' Give me the name of the customer who ordered the most items in total.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) DESC LIMIT 1 "How many members of club ""Bootup Baltimore"" are younger than 18?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.age < 18" Which students not enrolled in any course? Find their personal names.,SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id Which building is the highest?,SELECT name FROM buildings ORDER BY Height DESC LIMIT 1 Who was the winner for the Winton Motor Raceway circuit?,"SELECT winner FROM table_name_51 WHERE circuit = ""winton motor raceway""" "How many members of ""Bootup Baltimore"" are older than 18?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.age > 18" What are the numbers of constructors for different nationalities?,"SELECT count(*) , nationality FROM constructors GROUP BY nationality" Return the flag that is most common among all ships.,SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1 Show the ids of all employees who don't destroy any document.,SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed and can you tell me if OU is the college with the largest size?,SELECT cName FROM college ORDER BY enr DESC LIMIT 1 What is the distance of the race at the Atlanta Motor Speedway?,"SELECT distance FROM table_name_48 WHERE venue = ""atlanta motor speedway""" What are the names of students who have no friends?,SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id What the number of matches when the BBI is 3/27?,"SELECT MIN(matches) FROM table_28846752_9 WHERE bbi = ""3/27""" "What is the lowest round of Ed Smith, who had a pick lower than 19?","SELECT MIN(round) FROM table_name_29 WHERE player = ""ed smith"" AND pick > 19" On how many days in October was the score 6-1?,"SELECT COUNT(october) FROM table_27537870_3 WHERE score = ""6-1""" "What is the overall number for Louisiana Tech college, and a pick more than 10?","SELECT SUM(overall) FROM table_name_59 WHERE college = ""louisiana tech"" AND pick__number > 10" List the name of employees who had left the company? When were they hired?,"SELECT T1.FirstName, T1.LastName, T2.HireDate FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T3.EndDate IS NOT NULL" What ws the method of resolution for the fight against joe kielur?,"SELECT method FROM table_name_35 WHERE opponent = ""joe kielur""" What is the theme and artist name for the exhibition with a ticket price higher than the average?,"SELECT T1.theme , T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT avg(ticket_price) FROM exhibition)" "Select the average price of each manufacturer's products, showing only the manufacturer's code.","SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer" What are the awards won by the coach who coached the team with the most number of victories of all time? Indicate the choach ID.,"SELECT DISTINCT T2.coachID, T1.award FROM AwardsCoaches AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID GROUP BY T2.coachID, T1.award ORDER BY SUM(T2.w) DESC LIMIT 1" Which Home team has an Away team of everton?,"SELECT home_team FROM table_name_57 WHERE away_team = ""everton""" What is the lowest enrolled school that was founded in 1992 and joined a conference before 1998?,"SELECT MIN(enrollment) FROM table_name_19 WHERE founded = ""1992"" AND joined_conference < 1998" what is the country when the bie recognised is no and years(s) is 2014?,"SELECT country FROM table_name_83 WHERE bie_recognised = ""no"" AND year_s_ = ""2014""" What is the share of votes in the 2000 (2nd) election?,"SELECT share_of_votes FROM table_name_20 WHERE election = ""2000 (2nd)""" What is the name of the plaza where the toll for heavy vehicles with 2 axles is r87.00?,"SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = ""R87.00""" What date was the game played on the hard surface at the Tournament of Sweden f2?,"SELECT date FROM table_name_77 WHERE surface = ""hard"" AND tournament = ""sweden f2""" "What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?","SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = ""danish kaneria"" AND average > 13.8" "Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18?","SELECT AVG(laps) FROM table_name_72 WHERE time_retired = ""+ 4 laps"" AND grid > 18" Which publisher published the most games?,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t" What is the average February that has 56 as the game?,SELECT AVG(february) FROM table_name_77 WHERE game = 56 "What is the lowest number of attempts for the player with a rank number larger than 3, who started after 1984 and had less than 6.1 yds/att?",SELECT MIN(attempts) FROM table_name_57 WHERE rank > 3 AND start > 1984 AND yds_att < 6.1 Who are the customers that Steve supports? | This is the information for all the customers that Steve Johnson supports | How many customers does he support?,"SELECT count ( * ) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = ""Steve"" AND T1.last_name = ""Johnson""" Show the country where people older than 30 and younger than 25 are from.,SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30 What's the part 4 for the verb whose part 3 is borgen?,"SELECT part_4 FROM table_1745843_7 WHERE part_3 = ""borgen""" Give the full address of the office of the highest paid manager.,SELECT T2.address FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Manager' ORDER BY T1.salary DESC LIMIT 1 What is the rank of Israel?,"SELECT MAX(rank) FROM table_name_97 WHERE country = ""israel""" What nationality has a ranking less than 7 with tony stenson as the name?,"SELECT nationality FROM table_name_13 WHERE ranking < 7 AND name = ""tony stenson""" How many leagues are there in England?,"SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id WHERE T1.name = ""England""" List out the all technician name,SELECT Name FROM technician Who wrote episode 23 of the season?,SELECT written_by FROM table_29436007_1 WHERE no_in_season = 23 What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?,SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097 Name the average rank for west germany when gold is more than 1,"SELECT AVG(rank) FROM table_name_15 WHERE nation = ""west germany"" AND gold > 1" Which cities hosted at least 3 Olympic games?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id GROUP BY T2.id HAVING COUNT(T1.games_id) >= 3 Who is the commanding officer in the district with the highest number of disorderly conduct?,SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Disorderly Conduct' AND T2.fbi_code_no = 24 GROUP BY T2.fbi_code_no ORDER BY COUNT(T1.district_no) DESC LIMIT 1 "How many students have personal names that contain the word ""son""?","SELECT COUNT(*) FROM Students WHERE personal_name LIKE ""%son%""" What was the method of elimination for Kofi Kingston/ ,"SELECT method_of_elimination FROM table_24628683_2 WHERE wrestler = ""Kofi Kingston""" What is the number of the dail with 61 seats?,SELECT dáil FROM table_name_55 WHERE seats = 61 How many different loser names are there?,SELECT count(DISTINCT loser_name) FROM matches Thank you! Can you filter that list to show only the entries with a rank that is higher than 3 please? | Are you looking for ranks that are better than 3 or higher in value than 3? | I would like to filter the list to show the entries which have a rank value that is higher than 3 please.,"SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3" Which of the film released in 2008 scored the highest?,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year = 2008 ORDER BY T1.rating_score DESC LIMIT 1 Tell me the bullet tip color of headstamp id of h1z,"SELECT bullet_tip_color FROM table_name_54 WHERE headstamp_id = ""h1z""" Against what team did the Islanders have a 5-18-5 record?,"SELECT opponent FROM table_27539535_5 WHERE record = ""5-18-5""" Which player has a subtotal of more than 3 and more than 8 in round 1?,SELECT player FROM table_name_59 WHERE subtotal > 3 AND round_1 > 8 How many students have a food allergy?,"SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = ""food""" How many clients from Mozambique required orders with a low priority order?,SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey INNER JOIN orders AS T3 ON T1.c_custkey = T3.o_custkey WHERE T2.n_name = 'MOZAMBIQUE' AND T3.o_orderpriority = '5-LOW' What are the names of all directors whose movies have been reviewed by Sarah Martinez?,SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez' how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?,"SELECT COUNT(party) FROM table_2668347_14 WHERE candidates = ""Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%""" What are the ids and durations of the trips with the top 3 durations?,"SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3" Show the country of appelations Amador County?,SELECT county FROM APPELLATIONS WHERE appelation = 'Amador County' What year had an Allison B400R transmission and a model of BRT?,"SELECT year FROM table_19643196_1 WHERE transmission = ""Allison B400R"" AND model = ""BRT""" Give me the nationality of the unemployed people,SELECT Nationality FROM people WHERE People_ID NOT IN ( SELECT People_ID FROM employment ) What is the party of the representative that has the smallest number of votes.,SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes ASC LIMIT 1 Show all card type codes and the number of cards in each type.,"SELECT card_type_code, COUNT(*) FROM Customers_cards GROUP BY card_type_code" What are the trains names that go to chennai?,SELECT name FROM train WHERE destination = 'Chennai' List down all of the venues in Mumbai.,SELECT T2.Venue_Name FROM City AS T1 INNER JOIN Venue AS T2 ON T2.City_Id = T1.City_Id WHERE T1.City_Name = 'Mumbai' What about the visit dates?,"SELECT T2.Visit_Date FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" What was the decision of the game with Washington as the visitor team on October 13?,"SELECT decision FROM table_name_96 WHERE visitor = ""washington"" AND date = ""october 13""" Please list the titles of the Wikipedia pages on the Catalan language with more than 4000 words.,SELECT title FROM pages WHERE lid = 1 AND words > 4000 "What are the different template type codes, and how many templates correspond to each?","SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code" "Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″?","SELECT constellation FROM table_name_3 WHERE ngc_number < 2775 AND declination___j2000__ = ""°05′07″""" "What novelty has USA as the location, and coryloides as the name?","SELECT novelty FROM table_name_70 WHERE location = ""usa"" AND name = ""coryloides""" "Which customers have the substring ""Diana"" in their names? Return the customer details.","SELECT customer_details FROM customers WHERE customer_details LIKE ""%Diana%""" What is the name of the longest movie title? When was it released?,"SELECT movie_title, movie_release_year FROM movies ORDER BY LENGTH(movie_popularity) DESC LIMIT 1" What is the average 1st place with a Rank that is larger than 10?,SELECT AVG(1 AS st_place) FROM table_name_26 WHERE rank > 10 "In which division was the match between Hibernian, the away team, and Hearts, the home team, played? To which country does this division belong?","SELECT DISTINCT T2.division,T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Hearts' AND T1.AwayTeam = 'Hibernian'" I want to know what product has been ordered the greatest number of times.,SELECT * FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY count ( * ) DESC LIMIT 1 What is the name of country that has the shortest life expectancy in Asia?,"SELECT Name FROM country WHERE Continent = ""Asia"" ORDER BY LifeExpectancy LIMIT 1" "List all characteristics of product named ""sesame"" with type code ""Grade"".","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"" AND t3.characteristic_type_code = ""Grade""" What was the term of office for noel beaton?,"SELECT term_of_office FROM table_name_1 WHERE member = ""noel beaton""" "What is the highest death/2013 when the death/2012 is 12,7?","SELECT MAX(death_2013) FROM table_25703_1 WHERE death_2012 = ""12,7""" How much in total had the customers in Italy spent on film rentals?,SELECT SUM(T5.amount) FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN country AS T3 ON T2.country_id = T3.country_id INNER JOIN customer AS T4 ON T1.address_id = T4.address_id INNER JOIN payment AS T5 ON T4.customer_id = T5.customer_id WHERE T3.country = 'Italy' What country is Bandar Abbas in?,"SELECT country FROM table_name_8 WHERE city = ""bandar abbas""" How many songs have a lead vocal?,"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""lead""" What parties have at least three representatives?,SELECT Party FROM representative GROUP BY Party HAVING COUNT(*) >= 3 "What is the name of the vendor that supplies resources to the project ""iMath""?",SELECT DISTINCT T1.vendor_name FROM resources AS T1 INNER JOIN essays AS T3 ON T1.projectid = T3.projectid WHERE T3.title = 'iMath' What was the tie no when the away team was northwich victoria?,"SELECT tie_no FROM table_name_21 WHERE away_team = ""northwich victoria""" During what years did Chris Corchiani play in Orlando?,"SELECT years_in_orlando FROM table_15621965_3 WHERE player = ""Chris Corchiani""" What is Jeremy Hill's hometown?,"SELECT hometown FROM table_11677691_1 WHERE player = ""Jeremy Hill""" What was the attendance on June 27?,"SELECT MIN(att) FROM table_name_6 WHERE date = ""june 27""" Which Visitor is listed as having a Date of December 17?,"SELECT visitor FROM table_name_13 WHERE date = ""december 17""" what is the country for zhang xiuyun?,"SELECT country FROM table_name_91 WHERE athlete = ""zhang xiuyun""" What are the names of all colleges with a larger enrollment than the largest college in Florida?,SELECT cName FROM college WHERE enr > (SELECT max(enr) FROM college WHERE state = 'FL') "How many papers are published by the institution ""Tokohu University""?","SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""Tokohu University""" Who directed the episode written by karina csolty,"SELECT directed_by FROM table_27969432_2 WHERE written_by = ""Karina Csolty""" Where is the history department?,SELECT dept_address FROM department WHERE dept_name = 'History' "Which negatively correlated, genetically interacting genes are non-essential? What percentage do they represent with respect to those that are essential?",SELECT CAST(COUNT(T1.GeneID) AS REAL) * 100 / ( SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr < 0 ) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr < 0 AND T1.Essential = 'Non-Essential' What are the earpads for the headphones that are Reference class and have MSRP of $695?,"SELECT earpads FROM table_name_88 WHERE headphone_class = ""reference"" AND us_msrp = ""$695""" what position requires the least playing time?,SELECT pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos order by min ( T2.HS ) limit 1 "Define the gender of ""student995"" and his/her enrolled schools.","SELECT IIF(T2.name IS NULL, 'female', 'male') AS gen , T1.school FROM enrolled AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T1.name = 'student995'" What was the high assist when the high point was Eric Gordon (21)?,"SELECT high_assists FROM table_name_35 WHERE high_points = ""eric gordon (21)""" What's different average revenue status for director who directed the movie that got the most 1 ratings?,SELECT DISTINCT T1.avg_revenue FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 5 "What is the percentage, by number of sales order units, for orders with quantities not greater than 3 and a discount of 0.2?",SELECT CAST(SUM(CASE WHEN OrderQty < 3 AND UnitPriceDiscount = 0.2 THEN 1 ELSE 0 END) AS REAL) / COUNT(SalesOrderID) FROM SalesOrderDetail How many points were there when there more than 6 losses and less than 14 matches?,SELECT COUNT(points) FROM table_name_16 WHERE lost > 6 AND match < 14 what is the school for chris mcnamara?,"SELECT last_school_college FROM table_29598261_1 WHERE name = ""Chris McNamara""" What was the Constructor for the race that had Derek Warwick as its Fastest Lap?,"SELECT constructor FROM table_name_36 WHERE fastest_lap = ""derek warwick""" How many events have happened on the device of the youngest female user?,"SELECT COUNT(T1.event_id) FROM events AS T1 INNER JOIN gender_age AS T2 ON T1.device_id = T2.device_id WHERE T2.gender = 'F' GROUP BY T1.event_id, T2.age ORDER BY T2.age LIMIT 1" Which type of weapon was used to attack the victim in the record number 031347-2015? What is the victim's race and gender?,"SELECT T1.subject_weapon, T2.race, T2.gender FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T1.case_number = '031347-2015'" What is the identity of the brighton works built train?,"SELECT identity FROM table_name_48 WHERE builder = ""brighton works""" "which department has least number of head? tell me department ID,And department name?","select departmentid,name from department order by head limit 1" How many viewers watched the 16mm t/r episode?,"SELECT viewers__in_millions_ FROM table_1849243_1 WHERE archive = ""16mm t/r""" What is the name of Rhode Island College's softball stadium?,"SELECT softball_stadium FROM table_1974545_3 WHERE school = ""Rhode Island College""" "What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0?","SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = ""fahmi hatta"" AND malaysia_cup < 0" What Band has a Frequency of 0 99.7 in the Area of Newcastle?,"SELECT band FROM table_name_34 WHERE frequency = ""0 99.7"" AND area_served = ""newcastle""" How many rounds have Fabio Carbone for fastest lap?,"SELECT COUNT(round) FROM table_26137666_3 WHERE fastest_lap = ""Fabio Carbone""" Which home team has a venue of Arden Street Oval?,"SELECT home_team FROM table_name_94 WHERE venue = ""arden street oval""" List all students in the air force and which school they were enrolled at.,"SELECT T1.name, T1.school FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'air_force'" What are the first names of all students who are taking classes from both the accounting department and the Computer Info. Systems department?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' show the maximum amount of memberships for all branches opened in 2011 or located at city location,SELECT max ( membership_amount ) FROM branch WHERE open_year = 2011 OR city = 'London' "What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A?","SELECT AVG(enrollment_08_09) FROM table_name_28 WHERE previous_counference = ""lake"" AND ihsaa_class = ""3a""" what are the top 3 highest support rates?,SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3 What was the date for the pole position of alain prost?,"SELECT date FROM table_1140067_2 WHERE pole_position = ""Alain Prost""" "How many recipes include the ingredient ""graham cracker crumbs""?",SELECT COUNT(*) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T1.ingredient_id = T2.ingredient_id WHERE T1.name = 'graham cracker crumbs' What is the partially deleted result for a completed construction of m– in St. Maries Creosote?,"SELECT partially_deleted FROM table_name_47 WHERE construction_completed = ""–"" AND name = ""st. maries creosote""" "Of all the beer styles produced by Stevens Point Brewery, how many percent do they allot for American Adjunct Lager?","SELECT CAST(SUM(IIF(T1.style = 'American Adjunct Lager', 1, 0)) AS REAL) * 100 / COUNT(T1.brewery_id) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Stevens Point Brewery'" WHAT TEAM WAS AN NCAA CHAMPION?,"SELECT team FROM table_name_76 WHERE notes = ""ncaa champion""" What did the Surname Lindberg rank?,"SELECT COUNT(rank) FROM table_name_47 WHERE surname = ""lindberg""" What day in November has the game less than 12?,SELECT november FROM table_name_55 WHERE game < 12 Count the number of courses in the Physics department.,SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics' Show all home cities except for those having a driver older than 40.,SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age > 40 How many orders have been shipped through United Package?,SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package' What is the largest overall where the position was linebacker and the pick number was more than 9?,"SELECT MAX(overall) FROM table_name_32 WHERE position = ""linebacker"" AND pick__number > 9" "Name the total number of rnd for kim baker, bobby archer, tommy archer","SELECT COUNT(rnd) FROM table_27965906_2 WHERE ss_winning_car = ""Kim Baker, Bobby Archer, Tommy Archer""" Show the names of people that are on affirmative side of debates with number of audience bigger than 200.,SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200 What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?,SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2 Show the name for regions and the number of storms for each region.,"SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id" Who broadcasts in malaysia?,"SELECT broadcaster FROM table_name_12 WHERE territory = ""malaysia""" What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?,"SELECT processor FROM table_199666_1 WHERE wireless_lan = ""Intel centrino Wireless-N 105""" What is the department description for the one whose name has the word computer?,SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' What round did the spartak moscow club play?,"SELECT round FROM table_name_12 WHERE club = ""spartak moscow""" Which owner had MRT 1 HD?,"SELECT owner FROM table_name_73 WHERE name = ""mrt 1 hd""" Who is moving to Chelsea on loan?,"SELECT name FROM table_name_84 WHERE type = ""loan"" AND moving_to = ""chelsea""" Awesome! That's great! Can you filter this list to show only the employee IDs and correpsonding salaries that are above the average salary?,"SELECT employee_id , salary FROM employees WHERE salary > ( SELECT AVG ( salary ) FROM employees ) " "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.","SELECT T2.Name , T2.age , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme ASC" "How many games for keith j. miller, who debuted after 1974 with less than 1 goal?","SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = ""keith j. miller"" AND debut_year > 1974" how many members are from united states or canada,"SELECT count ( Name ) FROM member WHERE Country = ""United States"" OR Country = ""Canada""" Find the checking balance of the accounts whose savings balance is higher than the average savings balance.,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN ( SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > ( SELECT avg ( balance ) FROM savings ) ) When 6.66 is the amount of viewers what is the lowest production code?,"SELECT MIN(production_code) FROM table_24781886_2 WHERE viewers = ""6.66""" what is the capacity when the home city is zagreb and the manager is zlatko kranjčar?,"SELECT AVG(capacity) FROM table_name_88 WHERE home_city = ""zagreb"" AND manager = ""zlatko kranjčar""" Great! Can you tell me how many of these artists above age 46 joined after 1990?,SELECT count ( * ) FROM artist WHERE age > 46 AND Year_Join > 1990 What was the lowest crowd size when Carlton was the away team.,"SELECT MIN(crowd) FROM table_name_65 WHERE away_team = ""carlton""" Who is the husband of the image of renata of lorraine?,"SELECT husband FROM table_name_87 WHERE image = ""renata of lorraine""" Which grades have 4 or more high schoolers?,SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4 Who directed the film that had phyllis welch as the leading lady?,"SELECT director_s_ FROM table_name_74 WHERE leading_lady = ""phyllis welch""" How many grand final dual television commentators were there in 1961?,SELECT COUNT(grand_final_dual_television_commentator) FROM table_1368649_9 WHERE year_s_ = 1961 Show storm name with at least two regions and 10 cities affected.,SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10 What's the highest League Cup with an FA Cup thats larger than 2?,SELECT MAX(league) AS Cup FROM table_name_95 WHERE fa_cup > 2 how many title are presented on the table,SELECT count ( title ) FROM papers List the first Name and last name of all players not from USA and who are born in 1990 .,"SELECT firstName, lastName FROM Master WHERE birthYear = 1990 AND birthCountry != 'USA'" On what Week was the Detroit Lions the Opponent?,"SELECT week FROM table_name_66 WHERE opponent = ""detroit lions""" Find the id and city of the student address with the highest average monthly rental.,"SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1" What is stanford's average overall?,"SELECT AVG(overall) FROM table_name_66 WHERE college = ""stanford""" "WHAT EPISODE HAS A REGION NUMBER BIGGER THAN 1, AND 32 DVDS?","SELECT episode_no FROM table_name_58 WHERE region_no > 1 AND no_of_dvds = ""32""" Which 2005 has a Güzelçamlı’s Lost Panther of green fairy?,"SELECT 2005 FROM table_name_76 WHERE güzelçamlı’s_lost_panther = ""green fairy""" What was the position for team corinthians with over 14 against?,"SELECT AVG(position) FROM table_name_90 WHERE team = ""corinthians"" AND against > 14" stae the least number of wins in 1986,"SELECT MIN(wins) FROM table_19864214_3 WHERE seasons = ""1986""" list all dates available,SELECT Date FROM performance "List the full name and age of the player when he won the ""Finals MVP"" in 2003.","SELECT T1.firstName, T1.middleName, T1.lastName , 2003 - strftime('%Y', T1.birthDate) FROM awards_players AS T2 JOIN players AS T1 ON T2.playerID = T1.playerID WHERE T2.award = 'Finals MVP' AND T2.year = 2003" Find the top 3 products which have the largest number of problems?,SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3 now please show the product type codes which have at least two products,SELECT product_type_code FROM products GROUP BY product_type_code HAVING count ( * ) > = 2 "Among all the tweets posted from Buenos Aires, how many of them were posted on Thursdays?",SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.City = 'Buenos Aires' AND T1.Weekday = 'Thursday' What is the smallest amount of silver?,SELECT MIN(silver) FROM table_22355_29 "What is the average, maximum, and minimum budget for all movies before 2000.","SELECT AVG(budget_million), MAX(budget_million), MIN(budget_million) FROM movie WHERE YEAR < 2000" Which area has a telephone of (052) of 3862279?,"SELECT area__km_2__ FROM table_name_1 WHERE telephone__052_ = ""3862279""" Show the train name and station name for each train,"SELECT T2.name , T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id" What is the total number of draws when there are fewer than 3 wins?,SELECT COUNT(draws) FROM table_name_20 WHERE wins < 3 Who won the Paris-Roubaix in 2006?,SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006 List categories that have at least two books after year 1989.,SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2 What is the title of Amenemhat II?,"SELECT title FROM table_name_78 WHERE name = ""amenemhat ii""" Give the advisor with the most students.,SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1 What is the Opponent in final with an All England Open Outcome?,"SELECT opponent_in_the_final FROM table_name_58 WHERE outcome = ""all england open""" How many games had three pointers where the number of points was 581?,SELECT COUNT(three_pointers) FROM table_22824324_2 WHERE points = 581 "Can you show all the events that have one, two or three notes with their property ids?","SELECT T1.Customer_Event_ID , T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count ( * ) BETWEEN 1 AND 3" "For score 7–6 (7–3) , 6–4 please mention total number of outcome","SELECT COUNT(outcome) FROM table_27877656_7 WHERE score = ""7–6 (7–3) , 6–4""" "How many section titles are there for the document ""David CV""?","SELECT count ( t2.section_title ) FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = ""David CV""" What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.,"SELECT T1.Allergy, T1.AllergyType 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"" ORDER BY T1.Allergy" What is the name of a league in the sport of baseball?,"SELECT league FROM table_name_96 WHERE sport = ""baseball""" Can you display the first and last names associated with those staff ids?,"SELECT staff_id,first_name, last_name FROM Staff WHERE staff_address_id = 14" "An attendance larger than 33,684 and an opponent of Hamilton Academical had this listed as a result?","SELECT result FROM table_name_55 WHERE opponent = ""hamilton academical"" AND attendance > 33 OFFSET 684" What was the score for the game in which Emeka Okafor (10) had high rebounds?,"SELECT score FROM table_11907963_6 WHERE high_rebounds = ""Emeka Okafor (10)""" How about the average?,SELECT avg ( HS ) FROM Player What was the venue when the home team was footscray?,"SELECT venue FROM table_name_81 WHERE home_team = ""footscray""" "Name the total number of high assists for fedexforum 11,283","SELECT COUNT(high_assists) FROM table_27756474_6 WHERE location_attendance = ""FedExForum 11,283""" "What is the series name of the TV Channel that shows the cartoon ""The Rise of the Blue Beetle""?","SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = ""The Rise of the Blue Beetle!"";" How many playlists in this table?,SELECT count ( id ) from playlists Who won the mountains classification when Maarten Tjallingii won most corageous?,"SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = ""Maarten Tjallingii""" Find all airlines that have flights from both airports 'APG' and 'CVO'.,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""APG"" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = ""CVO""" Count the number of customers.,SELECT count(*) FROM Customers "For the tweet which got a reach number of 547851, which country did it come from?",SELECT T2.Country FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Reach = 547851 what is average of volume?,SELECT avg ( volume ) FROM music_festival What are the names of the reviewers who have rated a movie more than 3 stars before?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3 What is Roy Hall's highest round?,"SELECT MAX(round) FROM table_name_67 WHERE name = ""roy hall""" WHich Rules has a Method of ko (punch)?,"SELECT rules FROM table_name_26 WHERE method = ""ko (punch)""" What is the constructor when the Q1 order is 4?,SELECT constructor FROM table_1706942_1 WHERE q1_order = 4 Waht was the away team when the home team is colchester united?,"SELECT away_team FROM table_name_95 WHERE home_team = ""colchester united""" "What is Lijsttrekker, when Cabinet is ""Hans Van Mierlo"", and when Fractievoorzitter is ""Thom De Graaf""?","SELECT lijsttrekker FROM table_name_81 WHERE cabinet = ""hans van mierlo"" AND fractievoorzitter = ""thom de graaf""" Which Score has an Opponent of melanie south?,"SELECT score FROM table_name_58 WHERE opponent = ""melanie south""" Show me the names | Do you mean the name of all the person? | name of all the persons,SELECT name FROM Person What district is Samuel A. Bridges ( D ) assigned to as a successor?,"SELECT district FROM table_228439_4 WHERE successor = ""Samuel A. Bridges ( D )""" How many transactions have a share count larger than 50?,SELECT count ( * ) FROM TRANSACTIONS WHERE share_count >50 Where are the headquarters of the company whose sales were 69.2 billion?,"SELECT headquarters FROM table_1682026_3 WHERE sales__billion_$_ = ""69.2""" What is the song in the volume with the maximum weeks on top?,SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 "Which Winners is the highest one that has a Rank larger than 7, and a Third smaller than 1?",SELECT MAX(winners) FROM table_name_44 WHERE rank > 7 AND third < 1 What player was on the Grizzlies from 2009-2013?,"SELECT player FROM table_16494599_1 WHERE years_for_grizzlies = ""2009-2013""" "What is the total number of golds having a total of 1, bronzes of 0, and from West Germany?","SELECT COUNT(gold) FROM table_name_61 WHERE total = 1 AND bronze < 1 AND nation = ""west germany""" Find the average ram mib size of the chip models that are never used by any phone.,SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone) How many countries belong to the Algeria region?,SELECT COUNT(T1.r_name) FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey WHERE T2.n_name = 'ALGERIA' How many people are guest 1 on episodes where guest 4 is Des Kelly?,"SELECT COUNT(guest_1) FROM table_20466963_9 WHERE guest_4 = ""Des Kelly""" Calculate the total salary for employees from UK.,SELECT SUM(Salary) FROM Employees WHERE Country = 'UK' What is the meaning of the constellation that has puppis /ˈpʌpɨs/ as genitive?,"SELECT meaning FROM table_287159_1 WHERE genitive = ""Puppis /ˈpʌpɨs/""" What is the total number of ratings that has more than 3 stars?,SELECT count(*) FROM Rating WHERE stars > 3 Which AFL team has a pick 4 for the offensive tackle position?,"SELECT afl_team FROM table_name_14 WHERE position = ""offensive tackle"" AND pick = 4" What is the Man of the Match of the Competition with a Result of lost 2-5?,"SELECT man_of_the_match FROM table_name_73 WHERE result = ""lost 2-5""" Serge Beaudoin was drafted when in the 1972 NHL draft,"SELECT MIN(pick__number) FROM table_1473672_7 WHERE player = ""Serge Beaudoin""" "what is the average points when the goal difference is less than 17, the club is getafe cf and the goals for is more than 30?","SELECT AVG(points) FROM table_name_86 WHERE goal_difference < 17 AND club = ""getafe cf"" AND goals_for > 30" Find the names of users whose emails contain ‘superstar’ or ‘edu’.,SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%' What is the cell phone number of the student whose address has the lowest monthly rental?,SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1 Name the total number of districts for first elected being 1998,"SELECT COUNT(district) FROM table_25030512_24 WHERE first_elected = ""1998""" What is the total salary expenses of team Boston Red Stockings in 2010?,SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 What is the 2nd leg that Team 1 is Union Berlin?,"SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = ""union berlin""" Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?,"SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = ""Lacey"" AND T3.staff_last_name = ""Bosco"" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = ""Kenton"" AND T3.staff_last_name = ""Champlin""" Find the different first names and cities of the students who have allergy to milk or cat.,"SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = ""Milk"" OR T2.Allergy = ""Cat""" Which country is Harvard University in?,SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'Harvard University' How many more scenes are there in Act 1 than in Act 5 in Twelfth Night?,"SELECT SUM(IIF(T2.Act = 1, 1, 0)) - SUM(IIF(T2.Act = 5, 1, 0)) AS more FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Twelfth Night'" ID 1 is for which Campus?,SELECT campus FROM campuses where id = '1' What is the council area for the Larkhall urban sub-area?,"SELECT council_area FROM table_name_51 WHERE urban_sub_area = ""larkhall""" Who is the opponent of the submission (triangle choke) method of submission?,"SELECT opponent FROM table_name_41 WHERE method = ""submission (triangle choke)""" Yes.,"SELECT grade from list where FirstName like ""%MAUDE%""" "What affiliation is Erie, Pennsylvania?","SELECT affiliation FROM table_16381914_1 WHERE location = ""Erie, Pennsylvania""" Give the airport code and airport name corresonding to the city Anthony.,"SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = ""Anthony""" What's season 3's premiere date?,SELECT premiere_air_dates FROM table_1949994_7 WHERE no = 3 Who is the friend of Zach with longest year relationship?,SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach') "What are the country names, area and population which has both roller coasters with speed higher","SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55" What is the average number of gold medals with more than 1 bronze medal?,SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1 "How many type classifications are given to the measure with the description, calling convention to revise state constitution? ","SELECT COUNT(type) FROM table_256286_5 WHERE description = ""Calling Convention to revise State Constitution""" What is the total number of faculty members?,SELECT count(*) FROM Faculty "Which competition has a Year of 2008, a Surface of carpet, and a Date of 31 jan?","SELECT competition FROM table_name_65 WHERE year = 2008 AND surface = ""carpet"" AND date = ""31 jan""" What was the vacator for georgia 2nd?,"SELECT vacator FROM table_2417340_4 WHERE district = ""Georgia 2nd""" What is the address of the restaurant Subway?,"SELECT Address FROM Restaurant WHERE ResName = ""Subway"";" "What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?",SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 22 What is the license award date for North East England?,"SELECT licence_award_date FROM table_10712301_5 WHERE region = ""North East England""" Give the title and credits for the course that is taught in the classroom with the greatest capacity.,"SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)" Name the game for june 7,"SELECT game FROM table_18894744_5 WHERE date = ""June 7""" What is the largest goal number when the transfer fee was £0.8m?,"SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = ""£0.8m""" "What is the average number of votes of representatives from party ""Republican""?","SELECT AVG(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = ""Republican""" What is the sum of points when Bruce Arena has 21 wins?,"SELECT SUM(pts) FROM table_name_96 WHERE wins = 21 AND coach = ""bruce arena""" What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?,select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 ) Can you list the customer names and ids who have credit cards?,"SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_type_code = ""Credit""" What is the Winning score when the To par was −21?,"SELECT winning_score FROM table_name_21 WHERE to_par = ""−21""" In what year did the #14 FitzBradshaw Racing compete?,"SELECT year FROM table_1909647_2 WHERE team_s_ = ""#14 FitzBradshaw Racing""" Which Courtside reporter has a Channel of fsn new england in 2006-07?,"SELECT courtside_reporter FROM table_name_43 WHERE channel = ""fsn new england"" AND year = ""2006-07""" Who are the players that have names containing the letter a?,SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' What is the away team score with geelong home team?,"SELECT away_team AS score FROM table_name_68 WHERE home_team = ""geelong""" "How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?","SELECT SUM(losses) FROM table_name_26 WHERE goal_difference < -2 AND club = ""cd sabadell"" AND played > 38" "How many entries are listed under ""current status"" for the WJW-TV ++ Station?","SELECT COUNT(current_status) FROM table_1353096_2 WHERE station = ""WJW-TV ++""" "When the total score is 740, what is tromso?",SELECT MIN(tromsø) FROM table_19439864_2 WHERE total = 740 What is the average number of Byes when there were less than 0 losses and were against 1247?,SELECT AVG(byes) FROM table_name_75 WHERE against = 1247 AND draws < 0 And what about electronics?,SELECT sum ( product_price ) FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id Where t1.product_name = 'electronics' "What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses?",SELECT AVG(played) FROM table_name_91 WHERE wins < 11 AND goals_for > 42 AND points > 22 AND losses = 11 What are the names of the directors who made exactly one movie?,SELECT director FROM Movie GROUP BY director HAVING COUNT(*) = 1 How many tweets have been posted on Wednesday?,SELECT COUNT(TweetID) FROM twitter WHERE Weekday = 'Wednesday' What was the name in English that had a Stat of 7th cut?,"SELECT english_name FROM table_name_43 WHERE stat = ""7th cut""" "Give the state corresponding to the line number building ""6862 Kaitlyn Knolls"".","SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE ""%6862 Kaitlyn Knolls%""" Please list the names of the teams that had a tie in 1909.,"SELECT T2.name, T3.name FROM TeamVsTeam AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN Teams AS T3 ON T1.year = T3.year AND T1.oppID = T3.tmID WHERE T1.year = 1909 AND T1.T = 1" How many wins does the team have whose goaltender have the most number of successfully stopping the other team from scoring during the entire game?,SELECT SUM(W) FROM Goalies GROUP BY tmID ORDER BY SUM(SHO) DESC LIMIT 1 "Find all information about student addresses, and sort by monthly rental in descending order.",SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC What about the min?,SELECT min ( HS ) FROM Player What country had an opponent of Sampdoria?,"SELECT country FROM table_name_44 WHERE opponent = ""sampdoria""" What are the different ids and names of the battles that lost any 'Brig' type shipes?,"SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'" What was the score when Spennymoor United as the away team?,"SELECT score FROM table_name_67 WHERE away_team = ""spennymoor united""" What is the least amount of games for Luis scola with a rank greater than 1?,"SELECT MIN(games) FROM table_name_88 WHERE rank > 1 AND name = ""luis scola""" what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio?,"SELECT MIN(laps) FROM table_name_45 WHERE grid < 5 AND driver = ""juan manuel fangio""" How many colleges has more than 15000 students?,SELECT count(*) FROM College WHERE enr > 15000 How many values for number of clubs have Shandong as the runner-up?,"SELECT COUNT(number_of_clubs) FROM table_17632217_1 WHERE runners_up = ""Shandong""" How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?,"SELECT COUNT(platelet_count) FROM table_221653_1 WHERE prothrombin_time = ""Prolonged"" AND bleeding_time = ""Prolonged""" how many match points rotherham lose,"SELECT match_points FROM table_27987767_2 WHERE losers = ""Rotherham""" "What are the titles and categories of all the podcasts with a review that has ""Absolutely fantastic"" in it?","SELECT T2.title, T1.category FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T3.content LIKE '%Absolutely fantastic%'" Which of the movies directed by Ron Clements has the highest total gross?,"SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Ron Clements' ORDER BY CAST(REPLACE(trim(T2.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?,"SELECT days FROM table_name_79 WHERE party = ""ulster unionist"" AND constituency = ""fermanagh and south tyrone""" "Of all the claims, what was the earliest date when any claim was made?",SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1 WHAT IS THE BROWSER ID OF OPERA,"SELECT T1.id FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T1.name = ""Opera""" List email address and birthday of customer whose first name as Carole.,"SELECT email_address , date_of_birth FROM Customers WHERE first_name = ""Carole""" who authored the paper Binders Unbound? | What information do you want about the author of the paper Binders Unbound? | i want their names,"SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Binders Unbound""" How many teams are listed for February 18?,"SELECT COUNT(team) FROM table_15869204_7 WHERE date = ""February 18""" Which party won in the election in voting district Kentucky 5?,"SELECT party FROM table_1342218_17 WHERE district = ""Kentucky 5""" what is 2010 when 2009 is w and 2007 is qf?,"SELECT 2010 FROM table_name_8 WHERE 2009 = ""w"" AND 2007 = ""qf""" Which vocal type is the most frequently appearring type?,SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 "How many episodes have the keyword ""2d animation""?",SELECT COUNT(episode_id) FROM Keyword WHERE keyword = '2d animation'; What is the average distance and price for all flights from LA?,"SELECT avg(distance) , avg(price) FROM Flight WHERE origin = ""Los Angeles""" "List the voice actors from the movie ""Meet the Robinsons"".",SELECT 'voice-actor' FROM `voice-actors` WHERE movie = 'Meet the Robinsons' Show me the dates of those exhibitions,SELECT T1.date FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 "What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?",SELECT AVG(goals_for) FROM table_name_99 WHERE losses > 12 AND wins > 10 AND points < 29 AND draws > 3 "For the order with the total price of 218195.43, which supplier handled the returned item? Give the supplier id.",SELECT T2.l_suppkey FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_totalprice = 218195.43 AND T2.l_returnflag = 'R' Overall of 208 occurred in what round?,SELECT round FROM table_name_67 WHERE overall = 208 During which round was the first defensive end with an overall rank larger than 186 drafted?,"SELECT MIN(round) FROM table_name_65 WHERE overall > 186 AND position = ""defensive end""" Which region has Stanford University as host?,"SELECT region FROM table_name_12 WHERE host = ""stanford university""" Name the package/option for number being 543,SELECT package_option FROM table_15887683_8 WHERE n° = 543 How many books by William Shakespeare were published by Penguin Classics?,SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'William Shakespeare' AND T4.publisher_name = 'Penguin Classics' "Name a music director, belonging to a year after 2003?",SELECT music_director FROM table_name_86 WHERE year > 2003 Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.,SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000 When was the game in which Deron Williams (13) did the high assists played?,"SELECT date FROM table_23286223_5 WHERE high_assists = ""Deron Williams (13)""" Which Player has a Team from of south shore kings?,"SELECT player FROM table_name_11 WHERE team_from = ""south shore kings""" What are the swimsuits for south africa?,"SELECT swimsuit FROM table_11674683_2 WHERE delegate = ""South Africa""" Did the legislation pass that had 42.87% yes votes?,"SELECT passed FROM table_256286_63 WHERE _percentage_yes = ""42.87%""" What fleet numbers have a diagram less than 99 and built in 1960?,"SELECT fleet_numbers FROM table_name_68 WHERE diagram < 99 AND built = ""1960""" What is the method of opponent georges st-pierre?,"SELECT method FROM table_name_22 WHERE opponent = ""georges st-pierre""" How many times was the sabres record 2-5-1?,"SELECT COUNT(location_attendance) FROM table_27537870_3 WHERE record = ""2-5-1""" What Constructor did Michael Schumacher have with a Grid smaller than 5?,"SELECT constructor FROM table_name_62 WHERE grid < 5 AND driver = ""michael schumacher""" Please indicate the names of the customers whose order with a total price over $300000.,SELECT T2.c_name FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T1.o_totalprice > 300000 Who had to take Clopidogrel 75 MG Oral Tablet for over 10 years?,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Clopidogrel 75 MG Oral Tablet' AND strftime('%Y', T2.STOP) - strftime('%Y', T2.START) > 10" "Which format is released on May 27, 2009?","SELECT format FROM table_name_31 WHERE date = ""may 27, 2009""" What is the depth of the quake that occurred at 19:48?,"SELECT depth FROM table_name_35 WHERE time__utc_ = ""19:48""" what is the rank for the rating 4.4?,"SELECT rank__night_ FROM table_15681686_4 WHERE rating = ""4.4""" Which week did the Baltimore Ravens play at home ?,"SELECT week FROM table_name_79 WHERE host_team = ""baltimore ravens""" show all the customers name,SELECT customer_name FROM Customers What is the total account balance for customers with a credit score of above 100 for the different states?,"SELECT sum(acc_bal) , state FROM customer WHERE credit_score > 100 GROUP BY state" "How many starts had an avg start of less than 37 and won $1,636,827?","SELECT SUM(starts) FROM table_name_66 WHERE winnings = ""$1,636,827"" AND avg_start < 37" Find the number of distinct students enrolled in courses.,SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment List the names of all journalists from England.,"SELECT name FROM journalist WHERE Nationality = ""England""" List the names of customers whose accounts are in debt.,SELECT c_name FROM customer WHERE c_acctbal < 0 What is the fleet number with a 4-6-0 wheel arrangement made in 1890?,"SELECT fleet_number_s_ FROM table_name_94 WHERE wheel_arrangement = ""4-6-0"" AND year_made = ""1890""" "Show all document type codes, document type names, document type descriptions.","SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types" What is the total work number of Gowrie with a 0-6-4t type after 1908?,"SELECT COUNT(works_number) FROM table_name_51 WHERE type = ""0-6-4t"" AND name = ""gowrie"" AND date > 1908" What is the age of female customers within the number of inhabitants below 30?,SELECT age FROM Customers WHERE GEOID IN ( SELECT GEOID FROM Demog WHERE INHABITANTS_K < 30 ) AND SEX = 'Female' "For directors who had more than one movie, return the titles and produced years of all movies directed by them.","SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title" Which club had 2 wins and 1 draw?,"SELECT club FROM table_17941032_2 WHERE drawn = ""1"" AND won = ""2""" what is the total viewers (m) when the rating is 6.4 and the share is more than 11?,SELECT COUNT(viewers__m_) FROM table_name_12 WHERE rating = 6.4 AND share > 11 What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?,SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200 "Which papers have ""Stephanie Weirich"" as an author?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Stephanie"" AND t1.lname = ""Weirich""" How many projects have their resources provided by the vendor Lakeshore Learning Materials and are created by a teacher with a doctor degree?,SELECT COUNT(T1.projectid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name = 'Lakeshore Learning Materials' AND T2.teacher_prefix = 'Dr.' How many hectars of land is in Kaxholmen?,"SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = ""Kaxholmen""" What ship does Captain Henry steer? | Do you mean the name of ships of Captain Henry? | Yes the name of the ship of Captain Henry,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.Name like '%Henry%' List down five movie titles that were released before 2000.,"SELECT title FROM movie WHERE CAST(STRFTIME('%Y', release_date) AS INT) < 2000 LIMIT 5" "List the top five cities in terms of the number of 5-star ratings in 2016 reviews, in descending order.",SELECT T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 5 AND T1.Date LIKE '2016%' ORDER BY T1.Date DESC LIMIT 5 "What is the Home team on November 16, 1946?","SELECT home FROM table_name_38 WHERE date = ""november 16, 1946""" What is the home team score at lake oval?,"SELECT home_team AS score FROM table_name_45 WHERE venue = ""lake oval""" how many ships have a single captain?,Select count ( * ) from ( SELECT * FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count ( * ) = 1 ) "How much Elevation (m) has a Col (m) smaller than 562, and a Rank of 10, and a Prominence (m) larger than 1,598?",SELECT COUNT(elevation__m_) FROM table_name_15 WHERE col__m_ < 562 AND rank = 10 AND prominence__m_ > 1 OFFSET 598 What is the difference in salary of the top 2 employees with the highest number of territories in charge?,"SELECT MAX(Salary) - MIN(Salary) FROM ( SELECT T1.Salary FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID GROUP BY T1.EmployeeID, T1.Salary ORDER BY COUNT(T2.TerritoryID) DESC LIMIT 2 ) T1" what is the average of the milliseconds?,SELECT avg ( Milliseconds ) from Track How many rounds did Ken Wharton go?,"SELECT rounds FROM table_name_64 WHERE driver = ""ken wharton""" List the names and business certificates of the eateries which got inspection score under 50.,"SELECT T2.name, T2.business_id FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score < 50" "What was the margin of victory with the winning score ""63-68-68-68=267""?",SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = 63 - 68 - 68 - 68 = 267 How many times is the couple kerry & daniel?,"SELECT COUNT(place) FROM table_29583818_3 WHERE couple = ""Kerry & Daniel""" On what Date was the Opponent the Tennessee Titans?,"SELECT date FROM table_name_47 WHERE opponent = ""tennessee titans""" what is the race where the pole position is niki lauda and the date is 27 april?,"SELECT race FROM table_1140085_2 WHERE pole_position = ""Niki Lauda"" AND date = ""27 April""" What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?,SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9 What was the last year that they had less than 16 points in class 500cc?,"SELECT MAX(year) FROM table_name_11 WHERE points < 16 AND class = ""500cc""" "What location has a killed of 100.9, and a year later than 1993?","SELECT location FROM table_name_81 WHERE year > 1993 AND killed = ""100.9""" "Which Week has an Attendance of 72,855?","SELECT MAX(week) FROM table_name_47 WHERE attendance = ""72,855""" "Hello, how many different nationalities of pilots are there?",SELECT count ( distinct Nationality ) FROM pilot "What venue saw a crowd larger than 29,840?",SELECT venue FROM table_name_13 WHERE crowd > 29 OFFSET 840 What is the Total of the Player who won in 1979 with a To par of less than 11?,"SELECT MAX(total) FROM table_name_28 WHERE year_s__won = ""1979"" AND to_par < 11" How many joined this Private/Church of God institution?,"SELECT joined FROM table_255205_1 WHERE type = ""Private/Church of God""" Who took test #4?,SELECT test_taker FROM table_10749367_3 WHERE _number = 4 "In the year 2012, which conference had the most papers presented? Give the short name of the conference.",SELECT T2.ShortName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year = '2012' GROUP BY T1.ConferenceId ORDER BY COUNT(T1.Id) DESC LIMIT 1 What is the Date of Week 9?,SELECT date FROM table_name_6 WHERE week = 9 What is the document type name and the document type description and creation date for all the documents?,"SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code" Who was the Prato Elector with a faction of Italian?,"SELECT elector FROM table_name_51 WHERE faction = ""italian"" AND nationality = ""prato""" What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed?,"SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = ""2770"" AND first_time_as_hc_climb < 1992" What is the highest win for the team Nacional?,"SELECT MAX(wins) FROM table_14871601_1 WHERE team = ""Nacional""" Name the number of teams for college/junior club for philadelphia flyers,"SELECT COUNT(college_junior_club_team) FROM table_1473672_4 WHERE nhl_team = ""Philadelphia Flyers""" "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.","SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1" Who is the player when the economy is 5.29?,"SELECT player FROM table_28846752_9 WHERE economy = ""5.29""" Name the total number of number disc for jimmy kaufman,"SELECT COUNT(no_disc) FROM table_15430606_1 WHERE directed_by = ""Jimmy Kaufman""" What is solution 1's processing time and how many methods have been using this solution?,"SELECT T1.ProcessedTime, COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 1" In what parish is the Askrova Bedehuskapell church?,"SELECT parish__prestegjeld_ FROM table_178381_1 WHERE church_name = ""Askrova bedehuskapell""" How many students passed the test?,"SELECT count ( T1.student_id ) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Pass""" What team has 33 starts?,"SELECT team FROM table_name_22 WHERE start = ""33""" "At a longitude of 321.9e, what is the latitude of the features found?","SELECT latitude FROM table_16799784_3 WHERE longitude = ""321.9E""" Show the name and opening year for three churches that opened most recently.,"SELECT name , open_date FROM church ORDER BY open_date DESC LIMIT 3" "Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA.","SELECT cName , enr FROM College WHERE enr > 10000 AND state = ""LA""" I'd like to know about the prerequisites for courses,"select course_id, prereq_id from prereq" What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap?,"SELECT winning_team FROM table_name_84 WHERE winning_driver = ""jonathan bomarito"" AND fastest_lap = ""jonathan summerton""" List the names of poker players ordered by the final tables made in ascending order.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made What finals have grant brebner as the name?,"SELECT finals FROM table_name_40 WHERE name = ""grant brebner""" What the cores with a release date of February 2011 and a BGA-1023 socket?,"SELECT cores FROM table_name_81 WHERE socket = ""bga-1023"" AND release_date = ""february 2011""" "What is the date where the attendance was 31,220?","SELECT date FROM table_name_62 WHERE attendance = ""31,220""" What are the official names of cities that have hosted more than one competition?,SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1 What is the highest episode of Wood Flutes segment c?,"SELECT MAX(episode) FROM table_name_65 WHERE segment_c = ""wood flutes""" Name the 2003 for atp masters series 1998,"SELECT 2003 FROM table_name_83 WHERE 1998 = ""atp masters series""" Tell me the player for team 1 in the season 1996 ?,"SELECT player from match_season WHERE season = ""1996.0"" AND team = ""1""" "What are the coordinates of the school where project 'Look, Look, We Need a Nook!' Was donated to and what resource type is it?","SELECT T2.school_latitude, T2.school_longitude, T2.resource_type FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'Look, Look, We Need a Nook!'" What number pick was Danny Walters in the 1983 NFL draft?,"SELECT COUNT(pick__number) FROM table_2508633_4 WHERE player = ""Danny Walters""" and ones that do?,SELECT ObjectNumber FROM railway WHERE Railway_ID IN ( SELECT Railway_ID FROM train ) "How many instrument does the musician with last name ""Heilo"" use?","SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" What's the total score of Danny Edwards?,"SELECT SUM(score) FROM table_name_39 WHERE player = ""danny edwards""" What is the description of the marketing region China?,"SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = ""China""" What are the other account details for the account with the name 338?,"SELECT other_account_details FROM Accounts WHERE account_name = ""338""" "On the title feature brad mehldau as the performer, what is the original album?","SELECT original_album FROM table_name_92 WHERE performer = ""brad mehldau""" What is the maximum folded value of the team whose stadium is Fraser Field?,"SELECT MAX(folded) FROM table_24334261_1 WHERE stadium = ""Fraser Field""" Name province of 1936 viana do castelo,"SELECT province_of_1936 FROM table_221375_1 WHERE district = ""Viana do Castelo""" "What is the College/Junior/Club Team (League) when the position is rw, and the player is Don Murdoch?","SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = ""rw"" AND player = ""don murdoch""" "Find the name, address, number of students in the departments that have the top 3 highest number of students.","SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3" What episode number had a cable ranking of 8?,"SELECT MIN(episode_no) FROM table_24399615_4 WHERE cable_rank = ""8""" What are the names of all the songs that have a lower rating than some song of the blues genre?,"SELECT song_name FROM song WHERE rating < ( SELECT max ( rating ) FROM song WHERE genre_is = ""blues"" ) " What is the to par for the score 72-69-68=209?,SELECT to_par FROM table_name_11 WHERE score = 72 - 69 - 68 = 209 What is the address of address id 3?,SELECT * FROM Addresses where address_id = 3 List the names of all players who have a crossing score higher than 90 and prefer their right foot.,"SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = ""right""" What are the years won when the to par is +5?,"SELECT year_s__won FROM table_name_76 WHERE to_par = ""+5""" List the locations of schools that do not have any player.,SELECT LOCATION FROM school WHERE School_ID NOT IN (SELECT School_ID FROM Player) What is the zip code for Port Chelsea?,SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea' What is the fame number when the Montreal Canadiens were the opponent?,"SELECT COUNT(game) FROM table_name_56 WHERE opponent = ""montreal canadiens""" "What is the lowest Bronze, when Gold is less than 0?",SELECT MIN(bronze) FROM table_name_58 WHERE gold < 0 "What school is located in Chestnut Hill, Massachusetts?","SELECT institution FROM table_1973842_1 WHERE location = ""Chestnut Hill, Massachusetts""" What are the names of shops in ascending order of open year?,SELECT Shop_Name FROM shop ORDER BY Open_Year ASC Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004,"SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = ""oliver gavin jan magnussen"" AND class = ""gts"" AND year < 2004" "What is the Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6?","SELECT opponent FROM table_name_57 WHERE score = ""4–6, 4–6"" AND tournament = ""banja luka""" Can you tell me the Season that has the Score of 1-0?,"SELECT season FROM table_name_34 WHERE score = ""1-0""" WHICH PARK HAS HIGHEST SPEED OF ROLL COASTER,select Park from roller_coaster order by Speed desc limit 1 What Gauthier had a 15 Liscumb?,"SELECT gauthier FROM table_name_65 WHERE liscumb = ""15""" With a nominative of chven-i what is the ergative?,"SELECT ergative FROM table_name_56 WHERE nominative = ""chven-i""" What was the round when he fought Joe Stevenson?,"SELECT round FROM table_name_26 WHERE opponent = ""joe stevenson""" "Name the surface for february 25, 1996","SELECT surface FROM table_name_58 WHERE date = ""february 25, 1996""" How many countries are using the same type of currency? Please list the short names of any 3 countries.,SELECT ShortName FROM country WHERE currencyunit = 'U.S. dollar' LIMIT 3 "Among the students who filed for bankruptcy, how many students are disabled?",SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name "Find the name, address, number of students in the departments that have the top 3 highest number of students.","SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3" Which Att-Cmp has a TD-INT of 7-8?,"SELECT att_cmp FROM table_name_21 WHERE td_int = ""7-8""" "What is the percent yes of Alberta, which had a percent no larger than 60.2?","SELECT COUNT(percent_yes) FROM table_name_68 WHERE jurisdiction = ""alberta"" AND percent_no > 60.2" What are the points for ktm-vmc equipment? ,"SELECT points FROM table_16729457_18 WHERE equipment = ""KTM-VMC""" What's the total attendance at anaheim stadium after 1983 when the result is 14-28?,"SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = ""anaheim stadium"" AND result = ""14-28""" What is the location and attendance of game 44?,SELECT location_attendance FROM table_name_65 WHERE game = 44 "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?","SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'" Find the average and minimum price of the rooms in different decor.,"SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;" Swimmer Jiao Liuyang has what for the sum of lane?,"SELECT COUNT(lane) FROM table_name_50 WHERE name = ""jiao liuyang""" List the title of all cartoons in alphabetical order.,SELECT Title FROM Cartoon ORDER BY title What are those parties?,SELECT Party FROM party GROUP BY Party HAVING COUNT ( * ) > = 2 What is the total number of people who could stay in the modern rooms in this inn?,SELECT sum(maxOccupancy) FROM Rooms WHERE decor = 'modern'; What is the event name when the method is submission (brabo choke)?,"SELECT event FROM table_name_20 WHERE method = ""submission (brabo choke)""" Name the number of cfl teams for jeff traversy,"SELECT COUNT(cfl_team) FROM table_28059992_2 WHERE player = ""Jeff Traversy""" "Show the ministers and the time they took and left office, listed by the time they left office.","SELECT minister , took_office , left_office FROM party ORDER BY left_office" Give the name of the business which met all the required standards during the unscheduled routine inspection on 2016/9/28.,SELECT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = 100 AND T1.`date` = '2016-09-28' AND T1.type = 'Routine - Unscheduled' "Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?","SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = ""evans (7)"" AND high_assists = ""evans, ollie (3)""" actually i mean how many product are on the table | Did you mean to ask for the distinct number of product ids in the table Products_Booked? | exactly,SELECT COUNT ( DISTINCT product_id ) FROM Products_Booked WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?,"SELECT seats_in_hamburgische_bürgerschaft FROM table_name_57 WHERE name__english_ = ""alliance '90/the greens""" Who is the entrant when the chassis is ferrari 125?,"SELECT entrant FROM table_name_88 WHERE chassis = ""ferrari 125""" What is the highest numbered grid for piercarlo ghinzani with over 3 laps?,"SELECT MAX(grid) FROM table_name_80 WHERE driver = ""piercarlo ghinzani"" AND laps > 3" What is the D43 associated with a D41 of r 21?,"SELECT d_43 FROM table_name_44 WHERE d_41 = ""r 21""" What venue was the tour match against eastern province played at with more than 0 against?,"SELECT venue FROM table_name_31 WHERE status = ""tour match"" AND against > 0 AND opposing_team = ""eastern province""" "List the dates of enrollment and completion of the student with family name ""Zieme"" and personal name ""Bernie"".","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = ""Zieme"" AND T2.personal_name = ""Bernie""" Can you find the first and last names of all people who paid less than the rooms' base prices?,"SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice < 0" What is the phone number of the customer who owns the credit card of number 6011179359005380?,SELECT DISTINCT T1.PhoneNumber FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.CreditCardNumber = 6011179359005382 What was the lowest re-elected result for Sylvester C. Smith?,"SELECT MIN(first_elected) FROM table_name_47 WHERE result = ""re-elected"" AND incumbent = ""sylvester c. smith""" Can you list the color code that has a color description of 'white'?,select color_code from Ref_Colors where color_description = 'white' What rank was the team from Australia?,"SELECT COUNT(rank) FROM table_name_77 WHERE country = ""australia""" Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014.,"SELECT DISTINCT T1.Email, T1.PhoneNumber FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.StarRating > 3 AND T1.City = 'Sacramento' AND T2.ReviewDate BETWEEN '2014-01-01' AND '2014-12-31'" Name the landesliga mitte for fc gundelfingen and vfl frohnlach,"SELECT landesliga_mitte FROM table_20181270_3 WHERE landesliga_süd = ""FC Gundelfingen"" AND landesliga_nord = ""VfL Frohnlach""" "Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?",SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13 What is the most popular file format?,SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 Could you tell me the name of the customer that made the order that had the largest quantity of items in it?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max ( order_quantity ) FROM order_items ) What county has a school mascot of the Pioneers?,"SELECT county FROM table_name_71 WHERE mascot = ""pioneers""" Which language does the film AIRPORT POLLOCK use? List the language name.,SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK' "What is Surface, when Edition is 2012, and when Outcome is Winner?","SELECT surface FROM table_name_51 WHERE edition = 2012 AND outcome = ""winner""" what is the iata for malta international airport?,"SELECT iata FROM table_name_89 WHERE airport = ""malta international airport""" What is the average attendance for all events held at Palmerston Park venue?,"SELECT AVG(attendance) FROM table_name_24 WHERE venue = ""palmerston park""" What's the target of the antibody rituximab?,"SELECT target FROM table_name_90 WHERE antibody = ""rituximab""" Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?,"SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = ""Gionna Cabrera""" "Which biwords pair has a higher occurrence, ""àbac-xinès"" or ""àbac-grec""?",SELECT CASE WHEN ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) > ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'grec' ) ) THEN 'àbac-xinès' ELSE 'àbac-grec' END AS CALUS FROM words LIMIT 1 What is the number of unemployed and bankrupt students?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name Who are the authors for the malasaurus of the vyazniki assemblage?,"SELECT authors FROM table_name_16 WHERE unit = ""vyazniki assemblage"" AND name = ""malasaurus""" When was Glassfish released?,"SELECT release_date FROM table_name_15 WHERE product = ""glassfish""" What are the names of all the clubs ordered in descending alphabetical order?,SELECT name FROM club ORDER BY name DESC * I have left the chat *,select distinct rid from routes where alid = '410' "What was the incident in imam sahib area, kunduz province?","SELECT nature_of_incident FROM table_name_99 WHERE location = ""imam sahib area, kunduz province""" "Among the menu pages on which the dish ""Paysanne Soup"" had appeared, how many of them had a stable price for the dish?",SELECT SUM(CASE WHEN T1.name = 'Paysanne Soup' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.highest_price IS NULL What is the least number of people to attend a game when Los Angeles was the home team?,"SELECT MIN(attendance) FROM table_name_97 WHERE home = ""los angeles""" What year was the institution of St. Catharine College founded?,"SELECT MIN(founded) FROM table_262534_2 WHERE institution = ""St. Catharine College""" Where did Footscray play as the away team?,"SELECT venue FROM table_name_27 WHERE away_team = ""footscray""" What is the total number of against when they had 14 losses and more than 0 byes?,SELECT SUM(against) FROM table_name_34 WHERE losses = 14 AND byes > 0 How many students are enrolled in Chinese Painting?,select count ( * ) from Student_Course_Enrolment AS T1 JOIN Courses AS T2 ON T2.course_id = T1.course_id WHERE course_name = 'Chinese Painting' Show the first names and last names of customers without any account.,"SELECT customer_first_name , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" what is the name of the swimmer id 4?,SELECT name FROM swimmer where id = 4 Which country has the widest range of religious practices?,SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(DISTINCT T2.Name) DESC LIMIT 1 What are the number of different course codes?,SELECT count(DISTINCT crs_code) FROM CLASS What Weblink has a College or Campus Name of anna university college of engineering kanchipuram?,"SELECT weblink FROM table_name_85 WHERE college_or_campus_name = ""anna university college of engineering kanchipuram""" Count the number of parties.,SELECT count(*) FROM party What is the total amount purchased of those?,"SELECT T1.supplier_id,T1.total_amount_purchased FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = 'red jeans'" How many accounts have a savings balance above the average savings balance?,SELECT count(*) FROM savings WHERE balance > (SELECT avg(balance) FROM savings) What are the names of the people who have no friends who are students?,SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' Name the number of population density 2010 for duque de caxias,"SELECT COUNT(population_density_2010___km²_) FROM table_14986292_1 WHERE administrative_division = ""Duque de Caxias""" What school has a county of 69 ripley?,"SELECT school FROM table_name_74 WHERE county = ""69 ripley""" Count the number of products with the 'hot' charactersitic.,"SELECT count(*) 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 t3.characteristic_name = ""hot""" "What is the end (UTC) if the duration is 6 hours, 55 minutes?","SELECT end__utc_ FROM table_22385461_8 WHERE duration = ""6 hours, 55 minutes""" How many credits is Care and Feeding of Cats?,SELECT credits FROM course WHERE title = 'Care and Feeding of Cats' What are the names of all tracks that belong to the Rock genre and whose media type is MPEG?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" OR T3.name = ""MPEG audio file"";" Who is the youngest employee in the company? List employee's first and last name.,"SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;" What is the valvetrain with an engine model that is engine model?,"SELECT valvetrain FROM table_name_94 WHERE ""engine_model"" = ""engine_model""" Find the title and star rating of the movie that got the least rating star for each reviewer.,"SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID" Who was the opponent at the qf(r) round?,"SELECT opponent FROM table_name_9 WHERE round = ""qf(r)""" Sort the list of names and costs of all procedures in the descending order of cost.,"SELECT name , cost FROM procedures ORDER BY cost DESC" What is the Wavelength of Frequency (MHz) 14.050–14.150?,"SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = ""14.050–14.150""" Show theme and year for all exhibitions with ticket prices lower than 15.,"SELECT theme , YEAR FROM exhibition WHERE ticket_price < 15" Return the name of the heaviest entrepreneur.,SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 "Which Player has a Round smaller than 11, and a Pick smaller than 152, and a Position of guard?","SELECT player FROM table_name_10 WHERE round < 11 AND pick < 152 AND position = ""guard""" On what date was god & guns released?,"SELECT date_of_release FROM table_name_15 WHERE title = ""god & guns""" what is the name of the policy types used by more than 2 customers?,SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count ( * ) > 2 Which NBA team that didn't play in playoffs had the most winning rate in the 2000 NBA regular season?,SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.PostGP = 0 AND T1.year = 2000 ORDER BY CAST(T2.won AS REAL) / (T2.won + T2.lost) DESC LIMIT 1 "If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals?","SELECT semifinals FROM table_26335424_86 WHERE round_of_16 = ""Yulius Fernando ( INA ) L PTS 5-6""" How many additional timers were born in USA?,SELECT COUNT(*) FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.role = 'additional timer' AND T1.birth_country = 'USA'; What is the capacity of 3500v volts?,"SELECT capacity FROM table_name_4 WHERE volts = ""3500v""" Which class from 1928 had a class to 1928 of BDi-21?,"SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = ""bdi-21""" "What was the result on October 8, 1985?","SELECT result FROM table_name_58 WHERE date = ""october 8, 1985""" "what is the lowest week when the date is september 16, 1979 and the attendance less than 54,212?","SELECT MIN(week) FROM table_name_2 WHERE date = ""september 16, 1979"" AND attendance < 54 OFFSET 212" "Where is the place of birth of the actor with the number nm0007064 who has not been credited for playing the role of a ""Narrator""?",SELECT DISTINCT T1.birth_place FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.person_id = T2.person_id WHERE T1.person_id = 'nm0007064' AND T2.role = 'Narrator' AND T2.credited = 'false' What is the indoor number for the NJ wing/ ,"SELECT indoor FROM table_19534874_2 WHERE wing = ""NJ""" What is the season number of the episode seen by 10.11 million people in the US?,"SELECT no_in_season FROM table_19995378_1 WHERE us_viewers__millions_ = ""10.11""" What is the percentage of the words that have been repeated under 180 times in the Catalan language?,SELECT CAST(COUNT(CASE WHEN T2.occurrences < 180 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.lid) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T1.lang = 'ca' What are the names of those users?,"select uid, name from user_profiles where uid in ( SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Mary"" OR T1.name = ""Susan"" ) " How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)?,"SELECT COUNT(nhl_team) FROM table_2850912_7 WHERE college_junior_club_team = ""Newton North High School (USHS-MA)""" How many enzymes do not have any interactions?,SELECT count ( * ) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ) How many votes for brown in the place that had 84.1% for coakley?,"SELECT MAX(brown_votes) FROM table_24115349_6 WHERE coakley__percentage = ""84.1%""" "WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27,100?",SELECT MIN AS $50___1_2_oz FROM table_name_59 WHERE year = 1997 AND $25___1_4_oz > 27 OFFSET 100 What is the ratio of game sales between North America and Japan?,SELECT SUM(CASE WHEN T2.region_name = 'North America' THEN T1.num_sales ELSE 0 END) / SUM(CASE WHEN T2.region_name = 'Japan' THEN T1.num_sales ELSE 0 END) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id what is the lowest points when name is ehc münchen ii and position is less than 7?,"SELECT MIN(points) FROM table_name_24 WHERE name = ""ehc münchen ii"" AND position < 7" "What is the average Area (in km²), when Markatal is less than 0?",SELECT AVG(area__in_km²_) FROM table_name_81 WHERE markatal < 0 What are the issues of the complains of male clients and products from age 25 and below?,SELECT DISTINCT T2.Issue FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Male' AND T1.age < 25 What is the r (ω/km) when the frequency is 10k?,"SELECT r__ω_km_ FROM table_261642_3 WHERE frequency__hz_ = ""10k""" Return the channel code and contact number of the customer contact channel whose active duration was the longest.,"SELECT channel_code , contact_number FROM customer_contact_channels WHERE active_to_date - active_from_date = (SELECT active_to_date - active_from_date FROM customer_contact_channels ORDER BY (active_to_date - active_from_date) DESC LIMIT 1)" Which common has an area (km2) of 38.38?,"SELECT common FROM table_1449169_1 WHERE area__km_2__ = ""38.38""" Find the names of songs whose genre is modern or language is English.,"SELECT song_name FROM song WHERE genre_is = ""modern"" OR languages = ""english""" What position was the team who had less then 63 goals against and less than 6 losses?,SELECT AVG(position) FROM table_name_20 WHERE goals_against < 63 AND lost < 6 What's the change over same quarter the previous year in the period when the 89.6% of the trains arrive within 5 minutes of scheduled time (over three months)?,"SELECT change_over_same_quarter_the_previous_year FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ = ""89.6%""" Show the name and age for all male people who don't have a wedding.,"SELECT name, age FROM people WHERE is_male = 'T' AND NOT people_id IN (SELECT male_id FROM wedding)" How man students were from Maryland in Fall 05?,"SELECT fall_05 FROM table_15055594_6 WHERE states = ""Maryland""" Which general election had a vote swing of 1.84?,"SELECT general_election FROM table_149330_1 WHERE votes_swing = ""1.84""" Does Thomas Carnes have an account on ballotpedia.org?,SELECT CASE WHEN ballotpedia_id IS NULL THEN 'doesn''t have' ELSE 'have' END AS HaveorNot FROM historical WHERE first_name = 'Thomas' AND last_name = 'Carnes' What season number corresponds to series number 102?,SELECT MAX(season__number) FROM table_15717093_1 WHERE series__number = 102 What are the title and id of the film which has a rental rate of 0.99 and an inventory of below 3?,"SELECT title , film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count(*) < 3" "Which Attendance has a Date of november 18, 1951?","SELECT attendance FROM table_name_22 WHERE date = ""november 18, 1951""" "Among orders shipping to Brazil, mention the supplier company of the order which was done by employee Anne Dodsworth in December, 1996 .",SELECT T5.CompanyName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID INNER JOIN Products AS T4 ON T3.ProductID = T4.ProductID INNER JOIN Suppliers AS T5 ON T4.SupplierID = T5.SupplierID WHERE T1.FirstName = 'Anne' AND T1.LastName = 'Dodsworth' AND T2.ShipCountry = 'Brazil' AND T2.OrderDate LIKE '1996-12%' What is the mail date of the document with id 7?,SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7; What season was the overall record 29-7?,"SELECT season FROM table_14609295_4 WHERE overall = ""29-7""" Can you include the artist names and their genders too?,"SELECT T1.artist_name , T1.gender,T2.song_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE ""%Mar%""" what is the height of John Danks,"select height from people where name = ""John Danks""" What are the countries of markets and their corresponding years of market estimation?,"SELECT T2.Country , T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID" Who was the winner against Lindsay Davenport?,"SELECT winner FROM table_name_42 WHERE finalist = ""lindsay davenport""" What is the description of the product category with the code 'Spices'?,"SELECT product_category_description FROM ref_product_categories WHERE product_category_code = ""Spices""" "How many pageants were in san fernando, pampanga?","SELECT COUNT(pageant) FROM table_1825751_14 WHERE hometown = ""San Fernando, Pampanga""" Find the number of employees hired in each shop; show the shop name as well.,"SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name" Please give the url of the repository whose files are contained in solution ID 9?,SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 9 What is the age of the oldest male user of the app?,SELECT MAX(age) FROM gender_age WHERE gender = 'M' List the full name of all the 'Production Technician - WC50',"SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 USING (BusinessEntityID) WHERE T1.JobTitle = 'Production Technician - WC50' GROUP BY T2.FirstName, T2.MiddleName, T2.LastName" Show the names of the buildings,SELECT name FROM buildings Please show different software platforms and the corresponding number of devices using each.,"SELECT Software_Platform , COUNT(*) FROM device GROUP BY Software_Platform" What is the maximum number of wins?,SELECT MAX(wins) FROM table_26222468_1 "List all the keywords with ""christmas"" in them.",SELECT keyword_name FROM keyword WHERE keyword_name LIKE '%christmas%' Which entrant has a year after 1955?,SELECT entrant FROM table_name_59 WHERE year > 1955 "How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13?",SELECT COUNT(field_goals__5_points_) FROM table_name_59 WHERE total_points = 123 AND touchdowns__5_points_ > 13 "When the away team was north melbourne, what was the away team score?","SELECT away_team AS score FROM table_name_63 WHERE away_team = ""north melbourne""" What are the names of ships that have more than one captain?,SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1 How many games has each stadium held?,"SELECT T1.id , count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id" "For the root beer brand which got the review with the content of ""The quintessential dessert root beer. No ice cream required."", what is the current retail price of the root beer?",SELECT T1.CurrentRetailPrice - T1.WholesaleCost AS price FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.Review = 'The quintessential dessert root beer. No ice cream required.' "What is the earliest year a red maple had a mintage over 15,000?","SELECT MIN(year) FROM table_name_48 WHERE theme = ""red maple"" AND mintage > 15 OFFSET 000" On which continent is the country with the most erosion of real income?,SELECT T1.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code ORDER BY T4.Inflation DESC LIMIT 1 What years did art grand prix compete?,"SELECT season FROM table_10748727_1 WHERE team_name = ""ART Grand Prix""" can you show me a list of grades?,SELECT Grade FROM list WHAT IS THE AWAY TEAM WITH A TIE NUMBER 1?,"SELECT away_team FROM table_name_46 WHERE tie_no = ""1""" How many times did Fiji win r1?,"SELECT COUNT(r1) FROM table_18812411_3 WHERE country = ""Fiji""" What is the height in feet of player number 24?,"SELECT height_in_ft FROM table_name_70 WHERE no_s_ = ""24""" Who received gold when the event is road race details and silver is max weber germany (ger)?,"SELECT gold FROM table_name_96 WHERE event = ""road race details"" AND silver = ""max weber germany (ger)""" Please provide a link to the most well-known repository's Github address.,SELECT Url FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo ) "What game number was played on April 23, with Boston as the road team?","SELECT game FROM table_name_73 WHERE road_team = ""boston"" AND date = ""april 23""" Which service types had both success and failure for their event details?,SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail' On how many different dates was the race at the Silverstone circuit?,"SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = ""Silverstone""" List the id of students who never attends courses?,SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance) How many players have an overall rating lower than the average?,SELECT count ( DISTINCT T1.id ) FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating < ( SELECT avg ( overall_rating ) FROM Player_Attributes ) What are the rounds for the B tyres and Ferrari 053 engine +?,"SELECT rounds FROM table_name_50 WHERE tyre = ""b"" AND engine_† = ""ferrari 053""" What is the highest population in the millions that has an influence of 1.02?,SELECT MAX(population_millions) FROM table_name_55 WHERE influence = 1.02 Who is the director of the production number 9368?,"SELECT director FROM table_name_51 WHERE production_number = ""9368""" What is the NCBI Accession Number of the Homo Sapiens species?,"SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE species = ""Homo sapiens""" Report all majors that have less than 3 students.,SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3 What is the lowest number of points for an entrant with a Jordan 192 chassis?,"SELECT MIN(pts) FROM table_name_20 WHERE chassis = ""jordan 192""" What is the id and last name of the driver who participated in the most races after 2010?,"SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count ( * ) DESC LIMIT 1" Who was the opponent at the game at Madison Square Garden?,"SELECT opponent FROM table_name_19 WHERE location_attendance = ""madison square garden""" How many teachers are there?,SELECT count ( name ) FROM instructor WHERE id IN ( SELECT id FROM teaches ) What was the Opponent in the game with a Result of W 23-7?,"SELECT opponent FROM table_name_30 WHERE result = ""w 23-7""" "When the away team is Millwall, what is the total possible amount of tie numbers?","SELECT COUNT(tie_no) FROM table_24887326_7 WHERE away_team = ""Millwall""" "Among the employees who are married, how many of them have a western name style?",SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.NameStyle = 0 AND T1.MaritalStatus = 'M' What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?,SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge' Which Shakespeare story with character ID 324 has description of 'this friend of Caesar'?,SELECT T1.Title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T2.id = '324' AND T2.Description = 'friend to Caesar' "What is the Total medals the Year Yugoslavia had 1 Sport and won 0 Gold, Bronze or Silver?","SELECT total FROM table_name_94 WHERE gold = ""0"" AND bronze = ""0"" AND silver = ""0"" AND sports = ""1""" Name the total number of round 3 for class tt1,"SELECT COUNT(round_3) FROM table_18646111_13 WHERE class = ""TT1""" Find the name of the campuses opened before 1800.,SELECT campus FROM campuses WHERE YEAR < 1800 "Please list all the brands that contain a part under the type ""promo brushed steel"".",SELECT p_brand FROM part WHERE p_type = 'PROMO BRUSHED STEEL' State the max temperature of the weather station which has the no.21 store on 2012/11/9.,SELECT tmax FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 21 AND T1.`date` = '2012-11-09' What year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?,"SELECT MAX(year_named) FROM table_name_78 WHERE latitude = ""76.0n"" AND diameter__km_ > 548" What was the score for the matchup having attendance of 354?,SELECT score FROM table_name_25 WHERE att = 354 Give the names of universities with number of students ranges from 400 to 1000.,SELECT DISTINCT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.num_students BETWEEN 400 AND 1000 How many states had a population density of 10188.8?,"SELECT COUNT(state) FROM table_22916979_1 WHERE population_density__people_per_mi_2__ = ""10188.8""" Find the name of the person who has no student friends.,SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' How many movie directors are there?,SELECT COUNT (DISTINCT director) FROM movie For Model e12 what is the IFLs/uIFLs?,"SELECT ifls___uifls FROM table_name_77 WHERE model = ""e12""" What position did someone play from 1982-84?,"SELECT position FROM table_name_78 WHERE years_for_jazz = ""1982-84""" On what date was the bridge located in McClain listed?,"SELECT listed FROM table_name_29 WHERE location = ""mcclain""" What is the name of the player with the largest number of votes?,SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1 How many rounds had an overall of 211?,SELECT COUNT(round) FROM table_name_24 WHERE overall = 211 What are the names of the airports in the city of Goroka?,SELECT name FROM airports WHERE city = 'Goroka' Find the name and email of the user whose name contains the word ‘Swift’.,"SELECT name , email FROM user_profiles WHERE name LIKE '%Swift%'" What was the manner of departure for the appointment date of 21 september 2010,"SELECT manner_of_departure FROM table_27495117_3 WHERE date_of_appointment = ""21 September 2010""" List from which date and to which date these staff work: project staff of the project which hires the most staffs,"SELECT date_from , date_to FROM Project_Staff WHERE project_id IN( SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY count(*) DESC LIMIT 1 ) UNION SELECT date_from , date_to FROM Project_Staff WHERE role_code = 'leader';" Which team was the opponent on october 21?,"SELECT team FROM table_27734577_2 WHERE date = ""October 21""" What is the category that came before 2011?,SELECT category FROM table_name_44 WHERE year < 2011 What is the 1986 value with A in 1991 and A in 1987?,"SELECT 1986 FROM table_name_17 WHERE 1991 = ""a"" AND 1987 = ""a""" Which colleges have the english abbreviation MTC?,"SELECT english_name FROM table_11390711_4 WHERE abbreviation = ""MTC""" What party is incumbent Oliver H. Cross?,"SELECT party FROM table_1342331_43 WHERE incumbent = ""Oliver H. Cross""" Which country placed t3 and had the player Fred Couples?,"SELECT country FROM table_name_37 WHERE place = ""t3"" AND player = ""fred couples""" How many members are in theat club?,SELECT count ( * ) from club as T1 join member_of_club as T2 on T1.clubid = T2.clubid group by T2.clubid order by count ( * ) desc limit 1 How many active businesses are opened during late afternoon in the Phoenix city? List out the top 3 categories name for these businesses.,SELECT DISTINCT T4.category_name FROM Business_Hours AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.active = 'true' AND T2.city = 'Phoenix' AND T1.opening_time >= '5PM' LIMIT 3 Was the missile intercepted by patriot when the parking lot was damaged?,"SELECT intercepted_by_patriot FROM table_23014685_1 WHERE area_damaged = ""Parking lot""" What is the name of the stadium which held the most events?,SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY count(*) DESC LIMIT 1 What are all the distinct payment types?,SELECT DISTINCT payment_type_code FROM payments Find the details for all chip models.,SELECT * FROM chip_model What is the model that was made in the years 2011 2012-?,"SELECT model FROM table_name_27 WHERE years = ""2011 2012-""" What are the names of the products that have a color description of 'red' and the 'fast' characteristic?,"SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""fast""" Which Attendance has an Opponent of carolina panthers?,"SELECT attendance FROM table_name_27 WHERE opponent = ""carolina panthers""" Show all allergies and their types.,"SELECT allergy , allergytype FROM Allergy_type" What are the names of the products that were ordered that have a unit price of no more than 5?,SELECT DISTINCT T1.ProductName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.UnitPrice < 5 "What is the description of the discount for the product with the id ""762""?",SELECT T2.Description FROM SpecialOfferProduct AS T1 INNER JOIN SpecialOffer AS T2 ON T1.SpecialOfferID = T2.SpecialOfferID WHERE T1.ProductID = 762 "What are all the instruments used by the musician with the last name ""Heilo""?","SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" Provide the name of competitors from Greece.,SELECT T3.full_name 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 = 'Greece' What was the score when the away team was Footscray?,"SELECT away_team AS score FROM table_name_25 WHERE away_team = ""footscray""" What date was the game where the visiting team was philadelphia?,"SELECT date FROM table_name_10 WHERE visitor = ""philadelphia""" "What is the lowest losses for a team that has 0 draws, fewer than 4 wins, and no Byes?",SELECT MIN(losses) FROM table_name_68 WHERE draws = 0 AND wins < 4 AND byes < 0 What was the pick number for the wide receiver drafted from Michigan State?,"SELECT pick__number FROM table_name_7 WHERE position = ""wide receiver"" AND college = ""michigan state""" What is the last name of the musician that have produced the most number of songs?,SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 Which chassis had an entrant of John Mecom?,"SELECT chassis FROM table_name_37 WHERE entrant = ""john mecom""" Show the most common position of players in match seasons.,SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1 Which language does the film AIRPORT POLLOCK use? List the language name.,SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK' What work type do those journalists do?,"SELECT T3.Name , T1.Work_Type FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID" Where is ropery lane and la matches 7 location?,"SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = ""Ropery Lane""" Which Series has a Score of 3 – 8?,"SELECT series FROM table_name_63 WHERE score = ""3 – 8""" What is the silver total for nations with 10 bronze medals?,SELECT SUM(silver) FROM table_name_93 WHERE bronze = 10 What is the address of each course author or tutor?,SELECT address_line_1 FROM Course_Authors_and_Tutors What is the roll of the school in Oakura?,"SELECT SUM(roll) FROM table_name_59 WHERE area = ""oakura""" What was the amount of winners share (in $) in the game with a margin victory of 2 strokes?,"SELECT winners_share___$__ FROM table_1940012_2 WHERE margin_of_victory = ""2 strokes""" What is the total decile in the area of Normanby with a roller smaller than 157?,"SELECT SUM(decile) FROM table_name_99 WHERE area = ""normanby"" AND roll < 157" How many different addresses do the students currently live?,SELECT COUNT(DISTINCT current_address_id) FROM Students "What location has a home ground of n/a, and position in 2012-13 of 13th, third division?","SELECT location FROM table_name_2 WHERE home_ground = ""n/a"" AND position_in_2012_13 = ""13th, third division""" Who was the Home Captain at Sabina Park?,"SELECT home_captain FROM table_name_65 WHERE venue = ""sabina park""" What is the yield in NTS Area U2R when the purpose is weapons development?,"SELECT yield FROM table_name_69 WHERE purpose = ""weapons development"" AND location = ""nts area u2r""" Which Athlete is from the United Kingdom?,"SELECT athlete FROM table_name_14 WHERE country_state = ""united kingdom""" What is the capital city of the country with largest population?,SELECT T1.Capital FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T1.Population DESC LIMIT 1 What is the tyre for the peugeot a20 engine?,"SELECT tyre FROM table_name_40 WHERE engine_† = ""peugeot a20""" Where is the headquarter of the company founded by James?,SELECT headquarter FROM manufacturers WHERE founder = 'James' Find the number of voting records in total.,SELECT count(*) FROM VOTING_RECORD Find the number of customers in the banks at New York City.,SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City' Identify the name of the sales person with employee ID 7.,"SELECT FirstName, MiddleInitial, LastName FROM Employees WHERE EmployeeID = 7" how many different meanings does Wednesday have?,"SELECT COUNT(english_day_name_meaning) FROM table_2624098_1 WHERE modern_english_day_name = ""Wednesday""" What are the different first names for customers from Brazil who have also had an invoice?,"SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Brazil""" Which Against has a Position larger than 11?,SELECT COUNT(against) FROM table_name_32 WHERE position > 11 "Which category does the product named ""flax"" belong to?","SELECT product_category_code FROM products WHERE product_name = ""flax""" How many students play Lacrosse?,"SELECT count ( * ) FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = ""Lacrosse""" What is the report for round 9?,SELECT report FROM table_name_9 WHERE round = 9 What is the gender of the Roman Catholic school is AL4?,"SELECT gender FROM table_28523_3 WHERE religious_affiliation = ""Roman Catholic"" AND location = ""AL4""" What was his record when he went over 1 round?,SELECT record FROM table_name_81 WHERE round > 1 "What is the total number of rounds that had draft pick 97, duncan mccoll?","SELECT COUNT(round) FROM table_name_62 WHERE player = ""duncan mccoll"" AND pick < 97" In what percentage of counties has the ABC Read project been launched?,SELECT CAST(SUM(CASE WHEN T2.title LIKE 'ABC Read' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.school_county) FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?,"SELECT party FROM table_2668401_17 WHERE result = ""Re-elected"" AND first_elected = ""1797"" AND district = ""Virginia 5""" What livery belongs to the steam Locomotive type builder that was building before 1989?,"SELECT livery FROM table_name_69 WHERE year_built < 1989 AND locomotive_type = ""steam""" What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?,"SELECT emissions_co2 FROM table_name_76 WHERE max_speed = ""km/h (mph)"" AND car_model = ""panamera 4s""" "Which Tournament has a 2010 of 2r, and a 2011 of 1r?","SELECT tournament FROM table_name_21 WHERE 2010 = ""2r"" AND 2011 = ""1r""" "Which is the publisher for the game ""Prism: Light the Way""?",SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Prism: Light the Way' "What is their name, please?",select name from member where level in ( SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count ( * ) ASC LIMIT 1 ) "During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?","SELECT kalamazoo__azo_ FROM table_1637981_7 WHERE lansing__lan_ = ""$433.59""" Please list down ID of movies acted by top 5 actors based on actor rating.,SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5 Which report shows that Frank Lockhart was a winning driver?,"SELECT report FROM table_name_79 WHERE winning_drivers = ""frank lockhart""" Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?,"SELECT title FROM table_26824484_1 WHERE directed_by = ""Jeff Woolnough"" AND written_by = ""Christopher Ambrose""" "What attraction type do most tourist attractions belong to? | Did you want to know the attraction type that most tourist attractions belong to? code or description? | Yes, can you give me the codes please?",SELECT T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 "What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?","SELECT MAX(fiscal_year) FROM table_name_95 WHERE revenues = ""$4.3 billion"" AND employees > 85 OFFSET 335" What years did Representative Frank A. Oliver serve?,"SELECT years FROM table_name_70 WHERE representative = ""frank a. oliver""" "If the weight is 126g and the NFC is yes, what is the battery (MAH)?","SELECT battery___mah__ FROM table WHERE nfc = ""Yes"" AND weight = ""126g""" Who build the boat where Ken Read was the skipper?,"SELECT builder FROM table_19872699_1 WHERE skipper = ""Ken Read""" How many distinct artists do the volumes associate to?,SELECT COUNT(DISTINCT Artist_ID) FROM volume What was home team Essendon's opponents score?,"SELECT away_team AS score FROM table_name_9 WHERE home_team = ""essendon""" Original airdate for #6 with 1.246 viewers?,"SELECT original_airdate FROM table_name_73 WHERE nightly_rank = ""#6"" AND viewers__millions_ = 1.246" What tournament has petra mandula patricia wartusch as the opponent in the final?,"SELECT tournament FROM table_name_40 WHERE opponent_in_the_final = ""petra mandula patricia wartusch""" Hello there! Can you provide me with a list of all of the customer names and their corresponding payment methods?,"SELECT customer_name, payment_method FROM Customers" What are the grant amounts of those?,SELECT T3.grant_amount FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Initial Application' What won the Best Female Artist if People's Male MC won the Best Female Lyricist?,"SELECT best_female_artist FROM table_22546460_4 WHERE best_female_lyricist = ""People's Male MC""" Who was the home team at the game played at Kardinia Park?,"SELECT home_team FROM table_name_44 WHERE venue = ""kardinia park""" What is the Tournament with a Margin of victory that was 4 strokes?,"SELECT tournament FROM table_name_57 WHERE margin_of_victory = ""4 strokes""" "In game site AOL Arena, who are all the opponents?","SELECT opponent FROM table_25380472_2 WHERE game_site = ""AOL Arena""" What was the date of the friendly competition with a score of 4-0?,"SELECT date FROM table_name_31 WHERE competition = ""friendly"" AND score = ""4-0""" How many attended the game when the score was tie at 4?,"SELECT attendance FROM table_name_65 WHERE tie_no = ""4""" Which chassis had 16 points?,SELECT chassis FROM table_name_43 WHERE points = 16 Who's average is 24.8?,"SELECT player FROM table_16912000_13 WHERE kr_avg = ""24.8""" Which institution type has the largest number of institutions?,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1 What is the name of the bank branch that has lent the greatest amount?,SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY sum(T2.amount) DESC LIMIT 1 Find the names and phone numbers of customers living in California state.,"SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'" Find all the customer information in state NY.,"SELECT * FROM CUSTOMER WHERE State = ""NY""" What is the most consecutive games tied by Ebbsfleet as an away team in the 2008 season?,SELECT COUNT(*) FROM matchs WHERE season = 2008 AND AwayTeam = 'Ebbsfleet' AND FTR = 'D' How much Hyndburn has a Fylde larger than 3?,SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3 What venue did melbourne play at as the away team?,"SELECT venue FROM table_name_60 WHERE away_team = ""melbourne""" "Among the episodes aired in 2008 with votes ranges from 920 to 950, list their percent.","SELECT T2.percent FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE SUBSTR(T1.air_date, 1, 4) = '2008' AND T1.votes BETWEEN 950 AND 960;" What is the total amount of payment?,SELECT sum(Amount_Payment) FROM Payments Which unique cities are in Asian countries where Chinese is the official language ?,"SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = ""asia""" Name the total number of male rank for fiji,"SELECT COUNT(male_rank) FROM table_2701625_1 WHERE country = ""Fiji""" Who was taking charge of orders from Morristown?,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Morristown'" What is Pat Burke's Nationality?,"SELECT nationality FROM table_name_34 WHERE player = ""pat burke""" Which locations have the most cinemas?,SELECT location from cinema GROUP BY LOCATION ORDER BY count ( * ) DESC LIMIT 1 What is the 2007 estimate when the rank (csa) is 4,"SELECT 2007 AS _estimate FROM table_12720275_1 WHERE rank__csa_ = ""4""" What is the average number of gold medals for a club?,SELECT avg(Gold) FROM club_rank How many league goals did the player with 10 league apps and 0 FA cup goals have?,"SELECT COUNT(league_goals) FROM table_name_93 WHERE fa_cup_goals = 0 AND league_apps = ""10""" Return the grade that has the greatest number of high schoolers.,SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1 What are their names?,"SELECT name FROM Person WHERE job ! = ""student""" "What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate?","SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate" Who many votes did E. Greenberg receive in Morris County?,"SELECT COUNT(e_greenberg) FROM table_17820556_4 WHERE county = ""Morris""" What candidates ran in the election that featured harry lane englebright?,"SELECT candidates FROM table_1342370_5 WHERE incumbent = ""Harry Lane Englebright""" "What is Trial Start Date, when Candidate Name is Notes?","SELECT trial_start_date FROM table_name_36 WHERE candidate_name = ""notes""" Who is week 1 if week 3 is Natasha Budhi?,"SELECT week_1 FROM table_name_3 WHERE week_3 = ""natasha budhi""" What percentage of nations have achieved independence since 1993 and practice parliamentary democracy? Please include any three parliament-based democracies that attained independence after 1993.,"SELECT SUM(IIF(government = 'parliamentary democracy', 1, 0)) , CAST(SUM(IIF(government = 'parliamentary democracy', 1, 0)) AS REAL) * 100 / COUNT(*) FROM politics AS t1 WHERE STRFTIME('%Y', independence) >= '1993'" What is the word ID for the second word for the biwords pair with most repetitions?,SELECT w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords ) What Tournament of monte carlo had 1996 and a 1987 of nme?,"SELECT 1996 FROM table_name_45 WHERE 1987 = ""nme"" AND tournament = ""monte carlo""" Provide a list of restaurants from Marin county.,SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county' What is the depth of the aftershock at 18:00:22?,"SELECT depth FROM table_24518475_1 WHERE time__utc_ = ""18:00:22""" How many distinct claim outcome codes are there?,SELECT COUNT(DISTINCT claim_outcome_code) FROM claims_processing Find the id of year 1956? | do you mean the id of the campus that is opened in 1956? | Yes,SELECT id from campuses where year = 1956 Show ids of all students who do not have any friends.,SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend What is the paper type for the date of issue July 8?,"SELECT paper_type FROM table_25468520_1 WHERE date_of_issue = ""July 8""" "What is the duration, file size, and song format for every pop song, ordered by title alphabetically?","SELECT T1.duration , T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = ""pop"" ORDER BY T2.song_name" how many employee in table?,SELECT count ( * ) from employee Name the title for us viewers being 18.29,"SELECT title FROM table_19501664_1 WHERE us_viewers__millions_ = ""18.29""" What are the customer details of order id 2?,"SELECT customer_details FROM customers WHERE customer_id = ""2""" How many different departments offer degrees?,SELECT count(DISTINCT department_id) FROM Degree_Programs Show all company name and main industry with gas station?,"SELECT company , main_industry FROM company WHERE company_id IN ( SELECT company_id FROM station_company ) " What are the names of all of Bob's friends?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' "Show the first year and last year of parties with theme ""Spring"" or ""Teqnology"".","SELECT First_year , Last_year FROM party WHERE Party_Theme = ""Spring"" OR Party_Theme = ""Teqnology""" "Describe the ages, genders and numbers of events participated by the users at coordinates of (-102,38).","SELECT DISTINCT T1.age, T1.gender, COUNT(T2.event_id) FROM gender_age AS T1 INNER JOIN `events` AS T2 ON T2.device_id = T1.device_id WHERE T2.longitude = -102 AND T2.latitude = 38 GROUP BY T1.age, T1.gender, T2.longitude, T2.latitude" How many milliseconds long is Fast As a Shark?,"SELECT milliseconds FROM tracks WHERE name = ""Fast As a Shark"";" On what date did Limerick play in the All-Ireland Final game?,"SELECT date FROM table_name_38 WHERE opposition = ""limerick"" AND game = ""all-ireland final""" Which country is ranked 56 overall and has a heat rank smaller than 8?,"SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = ""56""" What was the smallest grid for Prince bira?,"SELECT MIN(grid) FROM table_name_29 WHERE driver = ""prince bira""" What was the average crowd size of games held at Glenferrie Oval?,"SELECT AVG(crowd) FROM table_name_43 WHERE venue = ""glenferrie oval""" What is the id of the product that was ordered the most often?,SELECT product_id FROM order_items GROUP BY product_id ORDER BY count(*) DESC LIMIT 1 What Russian has a Ratio of 40?,"SELECT russian FROM table_name_60 WHERE ratio = ""40""" Which Crowd has an Away team of st kilda?,"SELECT crowd FROM table_name_28 WHERE away_team = ""st kilda""" What is the lowest overall number for total(min. 2 medals)?,SELECT MIN(total_min_2_medals_) FROM table_22355_65 "Which Score has an Opponent of @ la lakers, and a Record of 8-6?","SELECT score FROM table_name_84 WHERE opponent = ""@ la lakers"" AND record = ""8-6""" List down the customer ids who placed order with Michael Suyama.,SELECT T2.CustomerID FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama' "Which Week has an Attendance of 63,447?","SELECT week FROM table_name_35 WHERE attendance = ""63,447""" What is the full name of the professor who graduated from an Ivy League School?,"SELECT first_name, last_name FROM prof WHERE graduate_from IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' )" What tries against value does burry port rfc have?,"SELECT tries_against FROM table_name_87 WHERE club = ""burry port rfc""" Which Capacity has a Location of mogilev?,"SELECT SUM(capacity) FROM table_name_38 WHERE location = ""mogilev""" What is the area code of the city with the largest land area?,SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.land_area = ( SELECT MAX(land_area) FROM zip_data ) What is the title that was first published in August 2010?,"SELECT title FROM table_name_39 WHERE first_issue = ""august 2010""" What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?,SELECT MIN(goals_for) FROM table_name_25 WHERE wins > 15 AND goal_difference > 35 Who had the highest rebounds on December 30?,"SELECT high_rebounds FROM table_name_4 WHERE date = ""december 30""" "What Time has Ad Freq of 15 minutes, and a Show Name of country today?","SELECT time FROM table_name_37 WHERE ad_freq = ""15 minutes"" AND show_name = ""country today""" "What is the Format(s) of the release on September 23, 2008?","SELECT format_s_ FROM table_name_40 WHERE date = ""september 23, 2008""" What record has march 30 as the date?,"SELECT record FROM table_name_1 WHERE date = ""march 30""" What is the difference in the average number of players out by lbw and runout in the matches?,SELECT AVG(T1.Player_Out) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE T2.Out_Name = 'lbw' What is the Hanja for the sakju province?,"SELECT hanja FROM table_name_78 WHERE province = ""sakju""" How many Jewish residents are there in Moldova?,SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Moldova' AND T2.Name = 'Jewish' "What are the name, latitude, and city of the station with the lowest latitude?","SELECT name , lat , city FROM station ORDER BY lat LIMIT 1" "What is the maximum, minimum and average years spent working on a school bus?","SELECT max(years_working) , min(years_working) , avg(years_working) FROM school_bus" Find the location of businesses that has business hours from 7 am to 7 pm every Wednesday.,SELECT DISTINCT T1.city FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T2.opening_time = '7AM' AND T2.closing_time = '7PM' AND T3.day_of_week = 'Wednesday' Can you show me how many documents there are in total?,SELECT count ( * ) FROM documents What was the best discount applied to sales orders in 2020?,SELECT MAX(`Discount Applied`) FROM `Sales Orders` WHERE OrderDate LIKE '%/%/20' Which teams have winning rate less than 50%?,SELECT name FROM teams WHERE CAST(won AS REAL) * 100 / (won + lost) < 50 How many countries have a republic as their form of government?,"SELECT COUNT(*) FROM country WHERE GovernmentForm = ""Republic""" Find the name of the most expensive hardware product.,SELECT product_name FROM products WHERE product_type_code = 'Hardware' ORDER BY product_price DESC LIMIT 1 List all the pay rates of all employees that were hired at 20 years of age.,"SELECT T2.Rate FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) = 20" What are the names and trade names of the medicines which has 'Yes' value in the FDA record?,"SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes'" What are the highest number of games drawn for games numbered under 6?,SELECT MAX(drawn) FROM table_name_80 WHERE games < 6 Which weight class had a time of 4:59?,"SELECT weight_class FROM table_name_65 WHERE time = ""4:59""" In what competition was the score reported as 12.8 (80) - 8.7 (55)?,"SELECT competition FROM table_name_30 WHERE score = ""12.8 (80) - 8.7 (55)""" Can you tell me the name of the driver who is driving the school bus with the longest working history?,SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1 "For the lists that got more than 3000 followers, how many did the users who created those lists are paying subscribers?",SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 3000 AND T1.user_has_payment_method = 1 return the smallest salary for every departments.,"SELECT MIN(salary) , department_id FROM employees GROUP BY department_id" Give average earnings of poker players who are taller than 200.,SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200 "What is Status, when Area km 2 is greater than 303.73?",SELECT status FROM table_name_93 WHERE area_km_2 > 303.73 "Find the names of the users whose number of followers is greater than that of the user named ""Tyler Swift"".",SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift') What is the total amount of Gold from guatemala and silver smaller than 0?,"SELECT SUM(gold) FROM table_name_88 WHERE nation = ""guatemala"" AND silver < 0" What is the number of faculty at Long Beach State University in 2002?,"SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = ""Long Beach State University""" Who were the opponents when the record was 11-2?,"SELECT opponent FROM table_22862203_2 WHERE record = ""11-2""" What countries are the female artists who sung in the language Bangla from?,"SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female"" AND T2.languages = ""bangla""" What is the highest win percentage when there were 23 losses?,SELECT MAX(win_percentage) FROM table_name_18 WHERE losses = 23 Where was the player from se missouri state drafted?,"SELECT COUNT(pick__number) FROM table_24540893_6 WHERE school = ""SE Missouri State""" What is the pick number of the defensive back?,"SELECT COUNT(overall_pick__number) FROM table_12165135_1 WHERE position = ""Defensive Back""" "Can you filter this list to show the name of the shop that has the largest quantity of stock, and please also display the quantity of stock?","SELECT T2.Shop_Name,T1.quantity FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM ( T1.quantity ) DESC LIMIT 1" What is the room number of Biology?,"SELECT Room FROM DEPARTMENT WHERE DName = ""Biology""" "What are the total points of gymnasts, ordered by their floor exercise points descending?",SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC In what year was Lesli Margherita nominated?,"SELECT SUM(year) FROM table_name_90 WHERE nominee = ""lesli margherita""" Which weather station does the store that sold the highest quantity of item 9 belongs to?,SELECT station_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.item_nbr = 9 GROUP BY T2.station_nbr ORDER BY SUM(T1.units) DESC LIMIT 1 Thank you! Can you tell me what the average typical selling price is of all of the product types? | do you mean the average typical selling price of all product category code? | Yes! Can you provide me with the average typical selling price of all product category code?,"select product_category_code, avg ( typical_buying_price ) from Products group by product_category_code" Return the phone numbers for all customers and suppliers.,SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers When was there a Result of 8–0 and a Score of 1–0?,"SELECT date FROM table_name_48 WHERE result = ""8–0"" AND score = ""1–0""" What is the name of the customer who has made the largest amount of claim in a single claim?,SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers) What was the opponent for the tournament of taranto?,"SELECT opponent FROM table_name_97 WHERE tournament = ""taranto""" what is the frequency when the city of license is belleville?,"SELECT frequency FROM table_name_42 WHERE city_of_license = ""belleville""" "What is the winning song for the artist with a debut album ""mike""?","SELECT winning_song FROM table_1646960_3 WHERE debut_album = ""Mike""" "Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?",SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11 Please list the names of all the neighborhoods in the community area with the most population.,SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T2.community_area_no ORDER BY T2.population DESC LIMIT 1 What chassis has the year 1987?,SELECT chassis FROM table_name_87 WHERE year = 1987 What is the first and second line for all addresses?,"SELECT line_1 , line_2 FROM addresses" How many employees are there?,SELECT count(*) FROM employee "Hi, can you please tell me which country has a manager of age above 50?",SELECT Country FROM manager WHERE Age > 50 How many touchdowns did Redden score?,"SELECT MIN(touchdowns) FROM table_14342210_12 WHERE player = ""Redden""" "What is Jockey, when Time is 1:15.89?","SELECT jockey FROM table_name_55 WHERE time = ""1:15.89""" What's the authority when the roll is less than 234 for the massey east area?,"SELECT authority FROM table_name_79 WHERE roll < 234 AND area = ""massey east""" What year was the comp 33?,"SELECT year FROM table_name_99 WHERE comp = ""33""" What ranking is james franklin?,"SELECT rank FROM table_name_69 WHERE player = ""james franklin""" Can you tell me the Competing entities that has the First held smaller than 1970?,SELECT competing_entities FROM table_name_4 WHERE first_held < 1970 "List the names, color descriptions and product descriptions of products with category ""Herbs"".","SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" what is the highest unit price?,SELECT max ( unitprice ) from Track Which director had the most popular film from 1937 to 1990?,"SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name INNER JOIN movies_total_gross AS T3 ON T3.movie_title = T1.movie_title WHERE SUBSTR(T3.release_date, LENGTH(T3.release_date) - 3, LENGTH(T3.release_date)) BETWEEN '1937' AND '1990' ORDER BY CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" What are the number of losses that have Ties of 1 and 3 or more poll wins?,SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 3 What is the highest salary and what employee id has it?,"select EMPLOYEE_ID,SALARY from employees order by salary desc limit 1" Can you add to the table the phone ids from the table phone market that are associated with each market id?,"SELECT t1.market_id,t1.district,t2.phone_id from market as t1 join phone_market as t2 on t1.market_id = t2.market_id" Please list the IDs of the universities with the top 3 female students percentage in 2011.,SELECT university_id FROM university_year WHERE year = 2011 ORDER BY pct_female_students DESC LIMIT 3 What is the total of bronze medals from nations with more than 16 total medals and ranks larger than 3?,SELECT COUNT(bronze) FROM table_name_68 WHERE total = 16 AND rank > 3 What is RJCM's IATA?,"SELECT iata FROM table_name_76 WHERE icao = ""rjcm""" Name the location attendance for 22-8,"SELECT location_attendance FROM table_22654073_7 WHERE record = ""22-8""" "The head coach, steve radoslavic, is related to which websites?","SELECT website FROM table_11365528_2 WHERE head_coach = ""Steve Radoslavic""" What is the largest silver from Malaysia with a Total smaller than 23?,"SELECT MAX(silver) FROM table_name_34 WHERE nation = ""malaysia"" AND total < 23" What place for roger pontare?,"SELECT place FROM table_name_62 WHERE artist = ""roger pontare""" "What is the rating of the show ranked tba, aired on April 21, 2009?","SELECT rating FROM table_name_63 WHERE rank___number_ = ""tba"" AND air_date = ""april 21, 2009""" List the names of representatives that have not participated in elections listed here.,SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election) What team has a grid of 15?,SELECT team FROM table_name_6 WHERE grid = 15 "What is the Result of the game with an Attendance of 55,353?","SELECT result FROM table_name_53 WHERE attendance = ""55,353""" "Please list the names of all the dishes that appeared on the menu ""Zentral Theater Terrace"".",SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Zentral Theater Terrace' "Which club has the most members majoring in ""600""?","SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = ""600"" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1" "Which Competition has a Venue of Seoul, and Result of 4-1?","SELECT competition FROM table_name_36 WHERE venue = ""seoul"" AND result = ""4-1""" "What is the discounted price of the part ""burnished seashell gainsboro navajo chocolate"" in order no.1?",SELECT T1.l_extendedprice * (1 - T1.l_discount) FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name = 'burnished seashell gainsboro navajo chocolate' AND T1.l_orderkey = 1 "What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?","SELECT MIN(votes) FROM table_name_97 WHERE rank = ""5th"" AND occupation = ""retired"" AND riding = ""brant""" What is the max torque of model 1.4 16v?,"SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = ""1.4 16v""" How many roles are there?,SELECT count(*) FROM ROLES What College/Junior/Club Team has Pick 50 before Round 8?,SELECT college_junior_club_team FROM table_name_19 WHERE round < 8 AND pick = 50 What is the maximum number of final tables made among poker players with earnings less than 200000?,SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 What are the names of the customers who have made two or less orders?,SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2 When has a Week of 8?,SELECT date FROM table_name_73 WHERE week = 8 What is 2002 when 2009 is 54.0?,"SELECT 2002 FROM table_27146868_1 WHERE 2009 = ""54.0""" What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?,"SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE ""12/%""" what is the age of the host id 3?,SELECT age from host where Host_ID = 3 Which business had the most number of inspections? Give the Id number for that business.,SELECT business_id FROM inspections GROUP BY business_id ORDER BY COUNT(business_id) DESC LIMIT 1 "Among all the donors from New York, how many of them are teachers?",SELECT COUNT(donationid) FROM donations WHERE is_teacher_acct = 't' AND donor_city = 'New York' How many courses does the department of Computer Information Systmes offer?,"SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Computer Info. Systems""" What was the resolution of the fight where andre roberts record was 9-1?,"SELECT res FROM table_name_60 WHERE record = ""9-1""" What is the average and total capacity for all dorms who are of gender X?,"SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'" "Which year did the ""Internet, Multimedia Systems and Applications"" conference publish the most papers?","SELECT T2.Year FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Internet, Multimedia Systems and Applications' GROUP BY T2.Year ORDER BY COUNT(T2.Id) DESC LIMIT 1" Nice! Can you show me a list of the names of all of the schools?,SELECT School FROM university What are the clean and jerk score of the body builder with the highest total score?,SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1 What catalog had an Epic Records label in CD format?,"SELECT catalog FROM table_name_16 WHERE label = ""epic records"" AND format = ""cd""" Which College/junior/club team has a Pick # of 1?,"SELECT college_junior_club_team FROM table_name_27 WHERE pick__number = ""1""" In which platform does the game titled 15 Days available?,SELECT T1.platform_name 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 INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = 'Counter Force' What was the Champion of the Tournament with a Score of 79–75 OT?,"SELECT champion__seed_ FROM table_name_1 WHERE score = ""79–75 ot""" Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.,SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' Which bike had a grid less than 35 and time at 37:58.607?,"SELECT bike FROM table_name_13 WHERE grid < 35 AND time = ""37:58.607""" "What is the average of all transactions with the transaction type code ""SALE""?","SELECT avg ( amount_of_transaction ) FROM TRANSACTIONS WHERE transaction_type_code = ""SALE""" "What is the restaurant's name and ID located at Ocean Avenue, San Francisco?","SELECT T2.label, T1.id_restaurant FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.city = 'san francisco' AND T1.street_name = 'ocean avenue'" Show me the policy id of the policy type code Life insurance?,"SELECT Policy_ID FROM available_policies where policy_type_code = ""Life Insurance""" find the name of the customers who have at most two orders,SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count ( * ) < = 2 what is the ID of the Church of Christ?,"SELECT church_id FROM church where name = ""Pure Church of Christ""" "Score of 118–114, and a Record of 8–1 is what lowest game?","SELECT MIN(game) FROM table_name_64 WHERE score = ""118–114"" AND record = ""8–1""" How many review did he have,SELECT count ( * ) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count ( * ) DESC LIMIT 1 What's the Years as tallest with a Street address of 324 E. 11th Street?,"SELECT years_as_tallest FROM table_name_12 WHERE street_address = ""324 e. 11th street""" "What Utah Jazz guard, played at BYU?","SELECT player FROM table_name_52 WHERE position = ""guard"" AND school_club_team = ""byu""" What is the surface area and GNP of the country where Namibe district belongs?,"SELECT T2.SurfaceArea, T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.District = 'Namibe'" "Who wrote the episode originally aired on September 29, 1999?","SELECT written_by FROM table_18646432_4 WHERE original_air_date = ""September 29, 1999""" Please list the countries and years of film market estimations.,"SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID" How many companies were created by Andy?,SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy' Who was the pole position for the rnd equalling 12?,"SELECT pole_position FROM table_10707176_2 WHERE rnd = ""12""" What is the first and last name of the student participating in the most activities?,"SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1" Show all template type codes with less than three templates.,SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3 Who plays goaltender for the Vancouver Canucks?,"SELECT player FROM table_name_22 WHERE position = ""goaltender"" AND nhl_team = ""vancouver canucks""" What year did the term end for the office elected in 1984,SELECT term_ended FROM table_1602620_1 WHERE elected = 1984 What is the 2004 tournament that has a Q1 of 2011?,"SELECT 2004 FROM table_name_10 WHERE 2011 = ""q1""" What is the total point count of the youngest gymnast?,SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC LIMIT 1 what gender has an asian black bear?,"SELECT gender FROM table_26615633_3 WHERE species = ""Asian black bear""" What is the average number of draws that have a total of 1 and a goal difference of 2:0?,"SELECT AVG(draws) FROM table_name_67 WHERE total = 1 AND goal_difference = ""2:0""" What was the average game with a record of 4-4-0?,"SELECT AVG(game) FROM table_name_58 WHERE record = ""4-4-0""" "Between 2014 to 2016, what is the average inpsection score of the establishment owned by Yiu Tim Chan in 808 Pacific Ave, San Francisco?","SELECT AVG(T1.score) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE STRFTIME('%Y', T1.`date`) BETWEEN '2014' AND '2016' AND T2.owner_name = 'Yiu Tim Chan' AND T2.address = '808 Pacific Ave' AND T2.city = 'San Francisco'" "what is the material of the surface in the dehradun , uttarakhand, india location","SELECT surface FROM table_29127804_3 WHERE location = ""Dehradun , Uttarakhand, India""" "Please name the coin that ranked first among the coins traded on April 29, 2013.",SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-29' AND T2.cmc_rank = 1 "Which crytocurrency had a bigger number of coins circulating in the market and in the general public's hands on 2013/4/28, Bitcoin or Litecoin?","SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T1.name IN ('Bitcoin', 'Litecoin') ORDER BY T2.circulating_supply DESC LIMIT 1" Which city has the lowest GDP? Please list the city name and its GDP.,"SELECT city , GDP FROM city ORDER BY GDP LIMIT 1" Give the level of education and occupation of customers ages from 20 to 35 with an income K of 2000 and below.,"SELECT T1.EDUCATIONNUM, T1.OCCUPATION FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T2.INCOME_K < 2000 AND T1.age >= 20 AND T1.age <= 35" Name who wrote 5ajn11,"SELECT written_by FROM table_23235679_1 WHERE production_code = ""5AJN11""" Find the payment method that is used most frequently.,SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1 "Which Start has a 0 Conv, 0 Pens and 8 Tries?","SELECT start FROM table_name_54 WHERE conv = ""0"" AND pens = ""0"" AND tries = ""8""" List the distinct police forces of counties whose location is not on east side.,"SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != ""East""" Name the team with high assists of nelson (5),"SELECT team FROM table_name_83 WHERE high_assists = ""nelson (5)""" What are the names of the students who took classes in 2009 or 2010?,SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010 "What are the names of the courses taught by the tutor whose personal name is ""Julio""?","SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = ""Julio""" "what is the date for the game in prague for the world group, consolation round competition?","SELECT date FROM table_name_57 WHERE location = ""prague"" AND competition = ""world group, consolation round""" What was the highest number of points when flaps were 0?,SELECT MAX(points) FROM table_24405773_1 WHERE flaps = 0 Show the names of all the activities Mark Giuliano participates in.,"SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" Show the name of the company with company id 1?,SELECT company FROM company WHERE company_id = '1' "What is the season number of the episode written by Matt Witten , Richard Sweren?","SELECT no_in_season FROM table_2618152_1 WHERE written_by = ""Matt Witten , Richard Sweren""" "Who is the villain in the movie ""The Great Mouse Detective""?",SELECT villian FROM characters WHERE movie_title = 'The Great Mouse Detective' "What is the highest position with less than 17 losses, more than 57 goals, and a goal difference less than 4?",SELECT MAX(position) FROM table_name_39 WHERE losses < 17 AND goals_for > 57 AND goal_difference < 4 Name the candidates for new york 21,"SELECT candidates FROM table_2668243_17 WHERE district = ""New York 21""" Which district in Chicago has the most community areas?,SELECT side FROM Community_Area GROUP BY side ORDER BY COUNT(side) DESC LIMIT 1 what is the f id of bangala,SELECT f_id from song where languages = 'bangla' Who were the candidates when gregory w. meeks was the incumbent,"SELECT candidates FROM table_1341395_33 WHERE incumbent = ""Gregory W. Meeks""" What film did michaylo ilyenko make with best actor in a supporting role?,"SELECT film_name FROM table_10236830_1 WHERE director = ""Michaylo Ilyenko"" AND nomination = ""Best Actor in a Supporting Role""" "What were the total number of points when there was a lost larger than 6, when the team was Once Municipal, and when the number of goals scored was less than 8?","SELECT COUNT(points) FROM table_name_45 WHERE lost > 6 AND team = ""once municipal"" AND goals_scored < 8" How many of the papers are preprinted?,SELECT COUNT(Id) FROM Paper WHERE ConferenceId = 0 AND JournalId = 0 Who is the winner of the Florence to Genoa course?,"SELECT winner FROM table_name_95 WHERE course = ""florence to genoa""" what is the teams for season 1950-51?,"SELECT teams FROM table_name_89 WHERE season = ""1950-51""" "What is the number of faculty lines in campus ""Long Beach State University"" in 2002?","SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = ""Long Beach State University""" How many times did Boston Red Stockings lose in 2009 postseason?,SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009; When was the first movie released and who directed it?,"SELECT movie_release_year, director_name FROM movies WHERE movie_release_year IS NOT NULL ORDER BY movie_release_year ASC LIMIT 1" "Who was the driver/passengar when the position was smaller than 8, the third was 1, and there was 1 win?","SELECT driver___passenger FROM table_name_56 WHERE third = ""1"" AND position < 8 AND wins = ""1""" How many Professors are in building NEB?,"SELECT count(*) FROM Faculty WHERE Rank = ""Professor"" AND building = ""NEB""" What's the average Year for the Position of 7th (sf)?,"SELECT AVG(year) FROM table_name_47 WHERE position = ""7th (sf)""" "What is the highest attendance on September 14, 1986?","SELECT MAX(attendance) FROM table_name_84 WHERE date = ""september 14, 1986""" "What is the average rank of a nation that had 219,721 in 2012?",SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721 "What is the customer first, last name and id with the most number of accounts?","SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count ( * ) DESC LIMIT 1" "Among the dishes, how many of them were created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC.",SELECT SUM(CASE WHEN T2.created_at BETWEEN '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id What are the descriptions of those courses?,"SELECT crs_description FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Computer Info. Systems""" Name the market value for rhb capital,"SELECT market_value__billion_$_ FROM table_19112_3 WHERE company = ""RHB Capital""" "List the organisation id with the maximum outcome count, and the count.","SELECT T1.organisation_id , count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1" Name the total number of years for brm straight-4,"SELECT COUNT(year) FROM table_name_65 WHERE engine = ""brm straight-4""" What are the campuses that opened in 1958?,SELECT campus FROM campuses WHERE YEAR = 1958 "Name the most rank for population more than 93,378",SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378 What was the opponent for july 21?,"SELECT opponent FROM table_name_35 WHERE date = ""july 21""" What is the minimum share count of the transaction type code PUR?,"SELECT share_count FROM TRANSACTIONS where transaction_type_code = 'PUR' and share_count ! = """" order by share_count limit 1" Name the rally base for 5 round,SELECT rally_base FROM table_23385853_1 WHERE round = 5 Who was Dainty June when Boyd Gaines was Herbie?,"SELECT dainty_june FROM table_name_27 WHERE herbie = ""boyd gaines""" What was the position in 2010 with team notes?,"SELECT position FROM table_name_90 WHERE year = 2010 AND notes = ""team""" How many failed the exam?,SELECT count ( * ) FROM Student_Tests_Taken where test_result = 'Fail' How many viewers tuned into the show directed by Matt Earl Beesley?,"SELECT us_viewers__millions_ FROM table_10718525_2 WHERE directed_by = ""Matt Earl Beesley""" How about swimmers with no record?,SELECT count ( * ) FROM swimmer WHERE id NOT IN ( SELECT swimmer_id FROM record ) "when province is monseñor nouel, what is the area (km²)?","SELECT area__km²_ FROM table_1888051_1 WHERE province = ""Monseñor Nouel""" Please indicate which writer has an episode star score greater than 5 in 2009.,"SELECT T1.person FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE SUBSTR(T1.year, 1, 4) = '2009' AND T1.role = 'writer' AND T2.votes > 5;" Which Opponent has a Record of 65-95?,"SELECT opponent FROM table_name_12 WHERE record = ""65-95""" Tell me the reason for Lavelle Vandervort's encounter on 11/20/2013?,SELECT T2.REASONDESCRIPTION FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T2.DATE = '2013-11-20' AND T1.first = 'Lavelle' AND T1.last = 'Vandervort' What are the original names of the districts where the population in the 2010 census was 210450?,SELECT original_name FROM table_1104312_5 WHERE population_at_2010_census = 210450 "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.","SELECT T3.Name , T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking" What was the home team when the away team was Frickley Athletic?,"SELECT home_team FROM table_name_3 WHERE away_team = ""frickley athletic""" How many of these people cancelled their lesson?,"SELECT count ( DISTINCT T2.staff_id ) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T1.lesson_status_code = ""Cancelled""" Which allergy has the most number of students affected?,SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count ( * ) DESC LIMIT 1 List all the seas with which the deepest sea merges.,SELECT T2.Sea2 FROM sea AS T1 INNER JOIN mergesWith AS T2 ON T1.Name = T2.Sea1 WHERE T1.Name = ( SELECT Name FROM sea ORDER BY Depth DESC LIMIT 1 ) "Among the clients in Middle Atlantic, how many are them are female and no more than 18 years old?",SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T2.division = 'Middle Atlantic' AND T1.sex = 'Female' AND T1.age < 18 Show the type of school and the number of buses for each type.,"SELECT T2.type , count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type" Return the name of the marketing region the store Rob Dinning is located in.,"SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = ""Rob Dinning""" What is the grid total for cars that went 17 laps?,SELECT SUM(grid) FROM table_name_60 WHERE laps = 17 In what year was his money list rank 3? ,SELECT MIN(year) FROM table_22839669_12 WHERE money_list_rank = 3 What is the commissioned for Vietnam?,"SELECT commissioned FROM table_name_29 WHERE operator = ""vietnam""" "born on 1983-03-14, what is the cb's name?","SELECT name FROM table_name_28 WHERE pos = ""cb"" AND date_of_birth = ""1983-03-14""" "What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15?","SELECT set_3 FROM table_name_7 WHERE score = ""3–1"" AND set_2 = ""13–15""" What squad plays at comunale in darfo boario terme?,"SELECT name FROM table_name_40 WHERE home_venue = ""comunale"" AND city = ""darfo boario terme""" "What call sign is licensed in soledad, california?","SELECT call_sign FROM table_name_65 WHERE city_of_license = ""soledad, california""" What is the home port of m40?,"SELECT home_port FROM table_name_62 WHERE pennant = ""m40""" "Name the comprehension for non-fluent, effortful, slow","SELECT auditory_comprehension FROM table_2088_1 WHERE fluency = ""non-fluent, effortful, slow""" "What is the largest attendance that has December 16, 1962 as the date?","SELECT MAX(attendance) FROM table_name_84 WHERE date = ""december 16, 1962""" Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?,"SELECT socialist_labor_ticket FROM table_name_49 WHERE republican_ticket = ""cuthbert w. pound""" What is the original air date of the episode with the production code 1115? ,SELECT original_air_date FROM table_18367694_2 WHERE production_code = 1115 Which Points have a Record of 21–20–6?,"SELECT SUM(points) FROM table_name_36 WHERE record = ""21–20–6""" What is the organisation type and id of the organisation which has the most number of research staff?,"SELECT T1.organisation_type , T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1;" What is the highest pick of the back player from round 28?,"SELECT MAX(pick) FROM table_name_42 WHERE position = ""back"" AND round = 28" What's the HR number when the LMS number is 14758?,SELECT hr_no FROM table_name_36 WHERE lms_no = 14758 How many road numbers are before 1922?,SELECT COUNT(road_number) FROM table_name_18 WHERE year < 1922 Show party names and the number of events for each party.,"SELECT T2.party_name , count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" Name the year for laps of 200 and rank of 24,"SELECT year FROM table_name_14 WHERE laps = 200 AND rank = ""24""" "For the teacher who wrote the project 'ABC Read', which city was he/she in?",SELECT T2.school_city FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title = 'ABC Read' What team raced with a Foyt engine in the Texas Grand Prix?,"SELECT team FROM table_1405704_1 WHERE race_name = ""Texas Grand Prix"" AND engine = ""Foyt""" What is the place of player tom watson?,"SELECT place FROM table_name_25 WHERE player = ""tom watson""" What is the percentage of employees who work the night shift?,SELECT CAST(SUM(CASE WHEN T1.Name = 'Night' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.BusinessEntityID) FROM Shift AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.ShiftId = T2.ShiftId What number of win% has a postseason of did not qualify and rank larger than 8?,"SELECT COUNT(win_percentage) FROM table_name_89 WHERE postseason = ""did not qualify"" AND rank > 8" What is the name of the team that won the most number of matches in season 1?,SELECT Team_Name FROM Team WHERE Team_Id = ( SELECT Match_Winner FROM `Match` WHERE season_Id = 1 GROUP BY Match_Winner ORDER BY COUNT(Match_Winner) DESC LIMIT 1 ) What are the teams that have both wrestlers eliminated by Orton and wrestlers eliminated by Benjamin?,"SELECT Team FROM Elimination WHERE Eliminated_By = ""Orton"" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = ""Benjamin""" List all the devices' brands and models of events on 5/7/2016 at 6:03:22 AM.,"SELECT T1.phone_brand, T1.device_model FROM phone_brand_device_model2 AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T2.timestamp = '2016-05-07 06:03:22'" How many drafts have they shown up in?,"SELECT t1.employee_name, sum ( t2.draft_number ) FROM Employees as t1 JOIN Circulation_History as t2 ON t2.employee_id = t1.employee_id GROUP BY t2.document_id , t2.draft_number , t2.copy_number ORDER BY count ( * ) DESC LIMIT 1" How many ages for player Amy Cato?,"SELECT COUNT(age) FROM table_24501530_1 WHERE candidate = ""Amy Cato""" How about the names of different persons who have friends with age above 40 and under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN ( SELECT name FROM Person WHERE age > 40 ) union SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN ( SELECT name FROM Person WHERE age < 30 ) How many of Gary Trousdale's movies are adventure movies?,SELECT COUNT(T.name) FROM ( SELECT T1.name FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Gary Trousdale' AND T2.genre = 'Adventure' GROUP BY T1.name ) T What is the email for the employee whose first name does not contain the letter M with the highest salary.,SELECT email FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY salary DESC LIMIT 1 What's the frequency when the identifier is cbf-fm-9?,"SELECT frequency FROM table_name_47 WHERE identifier = ""cbf-fm-9""" Name all the trip on the days when it rained. State the duration of the trip,"SELECT T1.id, T1.duration FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T2.events LIKE '%Rain%' OR T2.events LIKE '%rain%'" "Which vocal type has the band mate with first name ""Solveig"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = ""Solveig"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" Thank you for that! Can you update the list with the job of each person as well? | Would you like me to show you the names of all persons and also their corresponding job? | Yes please!,"SELECT name, job FROM Person" Who was the visiting team on December 17?,"SELECT visitor FROM table_name_90 WHERE date = ""december 17""" Show the theme for exhibitions with both records of an attendance below 100 and above 500.,SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 What are the last names of faculty who are part of the computer science department?,"SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = ""Computer Science""" how many people are there?,SELECT count ( people_id ) from people How many technicians are there?,SELECT count(*) FROM technician "What is the percentage of the object samples in the class of ""man"" in image no.1?",SELECT CAST(COUNT(CASE WHEN T1.OBJ_CLASS = 'man' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.OBJ_CLASS_ID) FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.IMG_ID = 1 How many restaurant is the Sandwich type restaurant?,SELECT count(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' When winner is the status and 77 is the total days in pbb house what is the edition?,"SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = ""Winner""" What is the last name of the musicians who has played back position the most?,"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = ""back"" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1" What are the ids and names of the medicine that can interact with two or more enzymes?,"SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" Name the total number of televote points for cry on my shoulders,"SELECT COUNT(televote_points) FROM table_21378339_5 WHERE song = ""Cry on my shoulders""" tell me how many settlements each claim responds to | Did you mean to ask for the claim id and number of settlements that each claim responds to? | list the claim ids,SELECT Claim_ID FROM Claims How many Indian restaurants are there in the Los Angeles area?,SELECT COUNT(T1.city) FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.food_type = 'indian' AND T1.region = 'los angeles area' What's the authority when the roll is 40?,SELECT authority FROM table_name_7 WHERE roll = 40 What is the home leg who are opponents of rotor volgograd,"SELECT home_leg FROM table_name_88 WHERE opponents = ""rotor volgograd""" What was the second leg score from the group stage on matchday 5?,"SELECT second_leg FROM table_name_35 WHERE phase = ""group stage"" AND round = ""matchday 5""" Name the location of 64-74,"SELECT location_attendance FROM table_17103729_8 WHERE score = ""64-74""" Tyne and Wear County has what total membership for their metropolitan area?,"SELECT metropolitan_area FROM table_2273738_1 WHERE county = ""Tyne and Wear""" Which record has a score of 135–134?,"SELECT record FROM table_name_7 WHERE score = ""135–134""" What is that teacher's last name?,SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 5 How many matches did Team 10 play in 2012?,"SELECT SUM(CASE WHEN Team_1 = 10 OR Team_2 = 10 THEN 1 ELSE 0 END) FROM `Match` WHERE SUBSTR(Match_Date, 1, 4) = '2012'" How many flights depart from 'APG'?,"SELECT count(*) FROM FLIGHTS WHERE SourceAirport = ""APG""" "What was the number of ""The Word"" segments for episode number 727?",SELECT COUNT(the_wørd) FROM table_25691838_6 WHERE episode__number = 727 "What is Surface, when Score in Final is 3-6, 6-3, 6-2?","SELECT surface FROM table_name_23 WHERE score_in_final = ""3-6, 6-3, 6-2""" On what date was the Opponent Chicago Bears?,"SELECT date FROM table_name_84 WHERE opponent = ""chicago bears""" What is the average attendance of shows?,SELECT avg(Attendance) FROM SHOW What is the total number of rounds of the end player with a pick number greater than 303?,"SELECT COUNT(round) FROM table_name_21 WHERE pick > 303 AND position = ""end""" How many students received a yes from tryouts?,SELECT count(*) FROM tryout WHERE decision = 'yes' List all media types.,SELECT name FROM media_types; Tell me the catalog for date larger than 2004,SELECT catalog FROM table_name_72 WHERE date > 2004 Who is the opponent in the final of the Tournament of Blenheim?,"SELECT opponent_in_the_final FROM table_name_42 WHERE tournament = ""blenheim""" What was the game's points against Team 2 Deportivo Anzoátegui?,"SELECT points FROM table_17282875_2 WHERE team__number2 = ""Deportivo Anzoátegui""" "Calculate the highest points where the win,loss, tie ratio is 28-12-6","SELECT MAX(points) FROM table_23308178_7 WHERE record = ""28-12-6""" Show me the policy type code with policy id 257?,"SELECT policy_type_code FROM available_policies where Policy_ID = 257" Which method was used in the welterweight class with a preliminary card?,"SELECT method FROM table_name_58 WHERE weight_class = ""welterweight"" AND card = ""preliminary""" What was the lowest FA Cup for a Malaysia Cup of 0?,SELECT MIN(fa_cup) FROM table_name_64 WHERE malaysia_cup < 0 "Among the movies starring Tom Cruise, which one of them has the best quality?",SELECT T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Tom Cruise' ORDER BY T1.Rating DESC LIMIT 1 What was the pick number of Conor Jackson?,"SELECT AVG(pick) FROM table_name_72 WHERE player = ""conor jackson""" How many singers do we have?,SELECT count(*) FROM singer what is the name of the product with color code 4?,SELECT product_name FROM products where color_code = 4 "When did the project ""Photojournalists Want to Exhibit Their Best Works"" go live?",SELECT T1.date_posted FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Photojournalists Want to Exhibit Their Best Works' "Which clay has a Record of 2–0, and a Hard 1–0?","SELECT clay FROM table_name_36 WHERE record = ""2–0"" AND hard = ""1–0""" What is the name of the aircraft that has won an award the most?,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1 Tell me the market share of safari?,"SELECT market_share from browser where name = ""Safari""" "List all cartoon directed by ""Ben Jones"".","SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"";" How many school colors is there for the main campus location of highland?,"SELECT COUNT(school_colors) FROM table_12434380_1 WHERE main_campus_location = ""Highland""" "Which vocal type has the band mate with last name ""Heilo"" played the most?","SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = ""Heilo"" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1" Please list the cities of the Yelp_Businesses that have gotten a 5 in the Elitestar rating.,SELECT city FROM Business WHERE stars = 5 GROUP BY city What is the opposition when the tally was 0-11?,"SELECT opposition FROM table_name_25 WHERE tally = ""0-11""" What is the highest numbered draft pick?,SELECT MAX(pick__number) FROM table_28059992_5 ok fine then list out the artists name,SELECT name FROM artist "what is the date when saros is more than 124, the type is total, the magnitude is more than 1.0535 and the time (greatest) is 20:55:28?","SELECT date FROM table_name_21 WHERE saros > 124 AND type = ""total"" AND magnitude > 1.0535 AND time__greatest_ = ""20:55:28""" Find the name and id of the good with the highest average rank.,"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.rank) DESC LIMIT 1" "Which users have the most popular role? | Do you mean the user name of the users who have the most popular role? | Yes, can you list all the usernames and passwords of the users who have the most popular role?","SELECT user_name , password FROM users GROUP BY role_code ORDER BY count ( * ) DESC LIMIT 1" What is the number of voters in 1800 that have boroughs named Drogheda?,"SELECT COUNT(voters_in_1800) FROM table_24329520_8 WHERE borough = ""Drogheda""" List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.,SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services' "Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?","SELECT college FROM table_name_59 WHERE round < 3 AND pick__number > 4 AND position = ""wide receiver""" "Show all document ids, names and the number of paragraphs in each document.","SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id" Who was the writer in the episode directed by Jesse Peretz?,"SELECT written_by FROM table_26961951_6 WHERE directed_by = ""Jesse Peretz""" Please list the order number of the customer whose credit card has a limit of 45300.,SELECT t1.orderNumber FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.creditLimit = 45300 what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?,"SELECT cpu FROM table_11703336_1 WHERE ram = ""28 KB of ram"" AND display_size = ""128×64 pixels 21×8 characters""" Which title has a Black Ice for a guest performer and a length of 5:49?,"SELECT title FROM table_name_50 WHERE guest_performer = ""black ice"" AND time = ""5:49""" What is the name of the visitor on 2006-11-04?,"SELECT visitor FROM table_name_46 WHERE date = ""2006-11-04""" Locate all events on devices of women under 30 years old.,SELECT T1.device_id FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T1.age < 30 What was the score of the game when the record was 59-65?,"SELECT score FROM table_name_77 WHERE record = ""59-65""" What position did the player play in the european cross country championships in 2008?,"SELECT position FROM table_name_90 WHERE competition = ""european cross country championships"" AND year = 2008" Show teams that have suffered more than three eliminations.,SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 What is the aircraft name for the flight with number 99,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 Find all airlines that have at least 10 flights.,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10 Name the original air date for number in season being 13,"SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = ""13""" Show the member names which are in both the party with id 3 and the party with id 1.,SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 "What is the project detail for the project with document ""King Book""?","SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = ""King Book""" What is the location of the party with the most hosts?,SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 Which trip started from the station with the largest dock count? Give me the trip id.,SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id = T2.id ORDER BY T2.dock_count DESC LIMIT 1 Find the number of students whose age is older than the average age for each gender.,"SELECT count(*) , sex FROM student WHERE age > (SELECT avg(age) FROM student) GROUP BY sex" "What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?",SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15 "Result of w 24–21, and a Week smaller than 6 had what sum of attendance?","SELECT SUM(attendance) FROM table_name_9 WHERE result = ""w 24–21"" AND week < 6" "What is the total sales of furniture products in the east superstore in the year 2016. ","SELECT SUM(T1.Sales) FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE STRFTIME('%Y', T1.`Order Date`) = '2016' AND T2.Category = 'Furniture'" What was the surface for the game that was played on 12-Apr-2005?,"SELECT surface FROM table_name_50 WHERE date = ""12-apr-2005""" What's the name of the song by afro-dite that had a points total greater than 100?,"SELECT song FROM table_name_31 WHERE points > 100 AND artist = ""afro-dite""" "What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4?","SELECT MAX(games) FROM table_name_26 WHERE rebounds > 100 AND name = ""nikola peković"" AND rank < 4" How many tweets have a klout of over 50?,SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Klout > 50 "How many bike trips started on the days in September, 2013 with the hottest temperature over 70 degrees Fahrenheit in the area where the zip code is 94107?",SELECT COUNT(T1.id) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '9/%/2013' AND T2.zip_code = 94107 AND T2.max_temperature_f > 70 What was the average finish the year Bodine finished 3rd?,"SELECT avg_finish FROM table_2387790_2 WHERE position = ""3rd""" "List the all the assets make, model, details by the disposed date ascendingly.","SELECT asset_make , asset_model , asset_details FROM Assets ORDER BY asset_disposed_date ASC" Show the names of companies and the number of employees they have,"SELECT T3.Name , COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name" Who is the opponent of Game 1 with a 3-2-0 record?,"SELECT opponent FROM table_name_21 WHERE game > 1 AND record = ""3-2-0""" "What are the first, middle, and last names of all staff?","SELECT first_name , middle_name , last_name FROM Staff;" What is the mail date of the document with id 7?,SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7 What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?,SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120 When was 10 (10) bought?,"SELECT owned_since FROM table_1353096_1 WHERE channel_tv___dt__ = ""10 (10)""" Which cities have higher temperature in Feb than in Jun or have once served as host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city "What is the first name, gpa and phone number of the top 5 students with highest gpa?","SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5" What is the record for the Utah Jazz?,"SELECT record FROM table_name_4 WHERE team = ""utah jazz""" Return the address of customer 10.,SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10 "In total, how many shipments were transported to Olympic Camper Sales Inc?",SELECT COUNT(T2.ship_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'Olympic Camper Sales Inc' what is the number of areas where the townland is brittas?,"SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = ""Brittas""" What is the percentage of the the users who would bring up a mental health issue with a potential employer in an interview?,SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questionid = 12 How many years as tallest building was the Tenth Presbyterian Church?,"SELECT years_as_tallest FROM table_name_78 WHERE name = ""tenth presbyterian church""" Name the surface for 20 march 2007,"SELECT surface FROM table_name_5 WHERE date = ""20 march 2007""" If 4 went to iran and the amount that survived was less than 12.0 how many were there in 1990?,SELECT COUNT(1990) FROM table_1817852_1 WHERE to_iran = 4 AND survived < 12.0 What are the apps that users pretty like this app and how many installs amount of these apps?,"SELECT DISTINCT T1.App, T1.Installs FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment_Polarity > 0" How many degrees does the engineering department have?,SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer' what is the average top-10 when the cuts made is less than 9 and the events is more than 14?,SELECT AVG(top_10) FROM table_name_48 WHERE cuts_made < 9 AND events > 14 Find the famous titles of artists that do not have any volume.,SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume) What is the per capital income for Charles county?,"SELECT per_capita_income FROM table_name_9 WHERE county = ""charles""" How many districts had republican Bob Goodlatte as a candidate?,"SELECT COUNT(district) FROM table_17503169_1 WHERE republican = ""Bob Goodlatte""" What are the average score and average staff number of all shops?,"SELECT avg(num_of_staff) , avg(score) FROM shop" "What was the Result on October 27, 2002?","SELECT result FROM table_name_66 WHERE date = ""october 27, 2002""" List the full names of 10 legislators who only have a Facebook account.,SELECT T2.official_full_name FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE (T1.youtube IS NULL OR T1.youtube = '') AND (T1.instagram IS NULL OR T1.instagram = '') AND (T1.twitter IS NULL OR T1.twitter = '') AND T1.facebook IS NOT NULL AND T1.facebook != '' What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?,"SELECT partial_thromboplastin_time FROM table_221653_1 WHERE prothrombin_time = ""Prolonged"" AND bleeding_time = ""Prolonged""" Show different citizenship of singers and the number of singers of each citizenship.,"SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship" What team played between the years of 2008-2010?,"SELECT team FROM table_name_75 WHERE played = ""2008-2010""" Which department has the most disabled students?,"SELECT T2.organ, COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` GROUP BY T2.organ ORDER BY COUNT(T1.name) DESC LIMIT 1" What city is the bucharest tower center (btc) located in?,"SELECT city FROM table_name_47 WHERE building = ""bucharest tower center (btc)""" What is the total area of the Arkansas River outlet with a % in-state of a021 100%?,"SELECT total_area FROM table_name_61 WHERE outlet = ""arkansas river"" AND _percentage_in_state = ""a021 100%""" Who is the player in round 6?,SELECT player FROM table_name_94 WHERE round = 6 List all goalies with more lost than won games for two seasons or more. State the name of the player and team he played.,"SELECT DISTINCT T1.firstName, T1.lastName, T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.year = T3.year AND T2.tmID = T3.tmID WHERE T1.pos = 'G' AND T2.L > T2.W GROUP BY T1.firstName, T1.lastName, T3.name HAVING COUNT(T3.year) > 2" "What is the Team with a game of more than 56, and the score is l 85–90 (ot)?","SELECT team FROM table_name_76 WHERE game > 56 AND score = ""l 85–90 (ot)""" What's the Qual listed with a Rank of 27?,"SELECT qual FROM table_name_41 WHERE rank = ""27""" Which events id does not have any participant with detail 'Kenyatta Kuhn'?,SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn' who is the the candidates with first elected being 1977,SELECT candidates FROM table_1341586_19 WHERE first_elected = 1977 Return the names of singers who are from UK and released an English song.,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english""" Who directed series # 422?,SELECT director FROM table_25800134_11 WHERE series__number = 422 When was the tournament at Orange?,"SELECT date FROM table_name_30 WHERE tournament = ""orange""" What are the first names and birthdates of the professors in charge of ACCT-211?,"SELECT DISTINCT T1.EMP_FNAME , T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = ""ACCT-211""" What is the document id of that document?,"SELECT document_id from all_documents where document_name = ""Robin CV""" How many different partners were played with during French Open (0/1)?,"SELECT COUNT(partner) FROM table_2201541_3 WHERE championship__titles_finals_ = ""French Open (0/1)""" and the user id followed by Mary?,"SELECT t2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = ""Susan"" or T1.name = ""Mary""" Who are the players that have attended Stanford?,"SELECT player FROM table_16494599_10 WHERE school_club_team = ""Stanford""" List venues of all matches in the order of their dates starting from the most recent one.,SELECT venue FROM MATCH ORDER BY date DESC How many different countries serve as headquarters?,SELECT count ( distinct Headquarters ) FROM company "Among all goalies who are still alive, whose first season in NHL in before 1950. List the team names they were in.",SELECT DISTINCT T3.name FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID INNER JOIN Teams AS T3 ON T2.lgID = T3.lgID AND T2.year = T3.year WHERE T1.deathYear IS NOT NULL AND T1.firstNHL < 1950 What are the id of all the files in mp3 format?,"SELECT f_id FROM files WHERE formats = ""mp3""" Please indicate the names of customers whose orders are eligible for 10% discount with order dates between 1/1/1994 and 1/1/1995.,"SELECT T3.c_name FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey INNER JOIN customer AS T3 ON T1.o_custkey = T3.c_custkey WHERE T2.l_discount = 0.1 AND STRFTIME('%Y', T1.o_orderdate) BETWEEN 1994 AND 1995" "What is the sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?",SELECT SUM(december) FROM table_name_95 WHERE july = 0.36 AND february > 0.35000000000000003 "Find the number of companies whose industry is ""Banking"" or ""Conglomerate"",","SELECT count(*) FROM Companies WHERE Industry = ""Banking"" OR Industry = ""Conglomerate""" State the average period of Ms. Angelena Kertzmann's several normal pregnancies.,"SELECT CAST(SUM(strftime('%J', T2.STOP) - strftime('%J', T2.START)) AS REAL) / COUNT(T2.PATIENT) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Angelena' AND T1.last = 'Kertzmann' AND T2.description = 'Normal pregnancy'" How many schools are there?,SELECT count ( school_code ) FROM department Name the F. Goals with tries of 0 0 and games of 05 5,"SELECT F.goals FROM table_name_18 WHERE tries = ""0 0"" AND games = ""05 5""" Which movies did the company Paramount Pictures produce in 2000?,"SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Paramount Pictures' AND CAST(STRFTIME('%Y', T3.release_date) AS INT) = 2000" Who were the authors of series episode #25?,SELECT written_by FROM table_12030612_3 WHERE series__number = 25 Tell me the name for Investigation of thrombus imaging and Route of administration of iv,"SELECT name FROM table_name_68 WHERE route_of_administration = ""iv"" AND investigation = ""thrombus imaging""" What are all the fault descriptions and the fault status of all the faults recoreded in the logs?,"SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id" What is the name of the vendors serving material for projects for grades 9-12?,SELECT DISTINCT T1.vendor_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.grade_level = 'Grades 9-12' I want to know the opponent that ha a week of 3,"SELECT opponent FROM table_name_61 WHERE week = ""3""" Give the number of documentary films.,SELECT COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id WHERE T2.name = 'Documentary' How many languages are used in Cyprus?,SELECT SUM(CASE WHEN T1.Name = 'Cyprus' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode What was the rating of the episodes that Jace Alexander worked on?,SELECT T1.rating FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T3.name = 'Jace Alexander' Name the engine with rounds of 7 with geki driver,"SELECT engine FROM table_name_57 WHERE rounds = ""7"" AND driver = ""geki""" What was the province if the electorate was Collingwood?,"SELECT province FROM table_27592654_2 WHERE electorate = ""Collingwood""" What is the most points that the Maserati 250F chassis scored in years after 1955?,"SELECT MAX(points) FROM table_name_39 WHERE chassis = ""maserati 250f"" AND year > 1955" Find the number of members living in each address.,"SELECT count(*) , address FROM member GROUP BY address" What was the greatest number of laps run?,SELECT MAX(laps) FROM table_27940569_1 "Name the Social Sec Leeds has Fixtures Sec of n/a, and a General Sec of n/a, and the Season of 2005–2006?","SELECT social_sec_leeds FROM table_name_23 WHERE fixtures_sec = ""n/a"" AND general_sec = ""n/a"" AND season = ""2005–2006""" "Name The Title which has a Track number of 07, and a Record label of emi on 21 april 2006?","SELECT title FROM table_name_73 WHERE track_number = ""07"" AND record_label = ""emi"" AND release_date = ""21 april 2006""" What is the 1944 result for the U.S. Championships?,"SELECT 1944 FROM table_name_52 WHERE tournament = ""u.s. championships""" What are the names and type codes of products?,"SELECT Product_Name , Product_Type_Code FROM Products" Count the number of different languages in these films.,SELECT count(DISTINCT language_id) FROM film "What is the Opponent in the final of the game on february 2, 2004?","SELECT opponent_in_the_final FROM table_name_68 WHERE date = ""february 2, 2004""" How many positions does rene villemure play?,"SELECT COUNT(position) FROM table_1473672_2 WHERE player = ""Rene Villemure""" how many endings have american pronounciation əs,"SELECT COUNT(australian) FROM table_17798093_20 WHERE american = ""əs""" What is the customer name with the highest bank balance? | Do you mean his savings balance? | yes savings balance?,SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid order by T2.balance desc limit 1 What Rank has a Team of roma?,"SELECT rank FROM table_name_14 WHERE team = ""roma""" What was the polling firm with others of 1%?,"SELECT polling_firm FROM table_name_25 WHERE others = ""1%""" "For each building, show the name of the building and the number of institutions in it.","SELECT T1.name , count(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id" What 2007-08 season has marcianise as the city?,"SELECT 2007 AS _08_season FROM table_name_60 WHERE city = ""marcianise""" "Which character was mentioned in the paragraph ""Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.""? Give the character name.","SELECT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.PlainText = 'Would he do so, I''ld beg your precious mistress,Which he counts but a trifle.'" What is the density (hab/ km²) when the altitude m is 1300?,"SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = ""1300""" What is the name of the team with a qual 1 time of 1:17.481?,"SELECT team FROM table_name_77 WHERE qual_1 = ""1:17.481""" List the name of actors in ascending alphabetical order.,SELECT Name FROM actor ORDER BY Name ASC What was the role in the chipmunk adventure?,"SELECT role FROM table_name_53 WHERE title = ""the chipmunk adventure""" How many clubs does the student Eric Tai belong to?,"SELECT count ( DISTINCT t1.clubname ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Eric"" AND t3.lname = ""Tai""" What is the duration of the song where the major instrument is the piano and the date is 2004-02-03?,"SELECT duration FROM table_10416547_1 WHERE major_instrument_s_ = ""Piano"" AND date = ""2004-02-03""" What is the name of the movie produced after 2000 and directed by James Cameron?,SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000 Show me the number of parks the state of NY has.,SELECT count(*) FROM park WHERE state = 'NY'; How many football divisions does England have?,SELECT COUNT(division) FROM divisions WHERE country = 'England' "Among the male patients, list down 5 birth dates of patients taking the medication ""Penicillin V Potassium 250 MG"".",SELECT DISTINCT T2.birthdate FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Penicillin V Potassium 250 MG' AND T2.gender = 'M' LIMIT 5 How many trips lasted at least that long? | Do you mean the number of trips whose duration is longer than the average duration of trips in zip code 94103? | yes,SELECT count ( * ) FROM trip WHERE duration > = ( SELECT avg ( duration ) FROM trip WHERE zip_code = 94103 ) What are the first and last names of the top 10 longest-serving employees?,"SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;" What are the first names of the top 5 staff who have handled the greatest number of complaints?,SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5 What is the average goals scored of the team who scored 44 points and placed higher than 5?,"SELECT AVG(goals_scored) FROM table_name_48 WHERE points = ""44"" AND place > 5" In which city is the European Bank for Reconstruction and Development's headquarters? Please include the city and province where the headquarters are located in your answer.,"SELECT City, Province FROM organization WHERE Name = 'European Bank for Reconstruction and Development'" What is the lowest Loss number when the Gain is less than 61 and the Avg/G is 6?,SELECT MIN(loss) FROM table_name_94 WHERE gain < 61 AND avg_g = 6 "How many customers used credit cards? ?","SELECT COUNT ( customer_id ) FROM customers WHERE payment_method = ""Credit Card""" What player is in the place of t1 and has the score of 67-70=137?,"SELECT player FROM table_name_85 WHERE place = ""t1"" AND score = 67 - 70 = 137" What is Song's 会呼吸的痛 Index?,"SELECT index FROM table_name_54 WHERE song = ""会呼吸的痛""" What was the score of game 82?,SELECT score FROM table_name_91 WHERE game = 82 "What is the first name, GPA, and phone number of the students with the top 5 GPAs?","SELECT stu_gpa , stu_phone , stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5" What was the distance when the weight was 6.11?,SELECT distance FROM table_name_21 WHERE weight = 6.11 Show the names of journalists that have reported more than one event.,SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1 what are the names and classes of the ships that do not have any captain yet?,"SELECT name , CLASS FROM ship WHERE ship_id NOT IN ( SELECT ship_id FROM captain ) " Which major has least number of students?List the students First name?,"SELECT Major , Fname FROM Student where major = ( select major from student group by major order by count ( * ) asc limit 1 ) " What is the marital status of the customer ages 62 with an level of education of 7?,SELECT DISTINCT MARITAL_STATUS FROM Customers WHERE EDUCATIONNUM = 7 AND age = 62 "In which year did the user who has given the most number of ""short"" tips join the Yelp?",SELECT T2.user_yelping_since_year FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.tip_length LIKE 'short' GROUP BY T2.user_yelping_since_year ORDER BY COUNT(T1.tip_length) DESC LIMIT 1 What are the first names of the faculty members playing both Canoeing and Kayaking?,SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking' How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started?,"SELECT teams_that_can_still_qualify FROM table_23995075_2 WHERE teams_that_have_secured_qualification = ""0"" AND teams_started = ""52""" How many movies for mature audiences or parental guidance suggested did Bill Thompson work as a voice actor?,SELECT COUNT(T.movie) FROM ( SELECT T1.movie FROM `voice-actors` AS T1 INNER JOIN movies_total_gross AS T2 ON T1.movie = T2.movie_title WHERE MPAA_rating = 'PG' AND `voice-actor` = 'Bill Thompson' GROUP BY T1.movie ) AS T Hello! Can you provide me with a list of the tourist attractions that are walking distance? | do you want to just return their names? | Ah yes! For now could you please return both the tourist attraction id and the name?,"SELECT Name, Tourist_Attraction_ID FROM Tourist_Attractions WHERE How_to_Get_There = ""walk""" On what date were Perth Wildcats the away team?,"SELECT date FROM table_name_28 WHERE away_team = ""perth wildcats""" How many dams are there in the Lake and Peninsula area?,"SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = ""Lake and Peninsula""" What are the names of courses with 1 credit?,SELECT CName FROM COURSE WHERE Credits = 1 What was the lowest week in the month of August against Andrew Combs?,"SELECT MIN(week) FROM table_name_60 WHERE month = ""august"" AND offensive = ""andrew combs""" How many complaints are not in process with an agent?,SELECT COUNT(outcome) FROM callcenterlogs WHERE outcome != 'AGENT' "What are the invoice dates, order ids, and order details for all invoices?","SELECT T1.invoice_date , T1.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id" "Show the phone, room, and building for the faculty named Jerry Prince.","SELECT phone , room , building FROM Faculty WHERE Fname = ""Jerry"" AND Lname = ""Prince""" What is the maximum stars and year for the most recent movie?,"SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)" What is the total number of purchases for members with level 6?,SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 Count the number of different software platforms.,SELECT count(DISTINCT Software_Platform) FROM device What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?,"SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = ""detroit"" AND record = ""36–13–5""" Who is in heat 5 from Guyana?,"SELECT name FROM table_name_64 WHERE heat = 5 AND country = ""guyana""" In what Year is the Works no. 2040-2049?,"SELECT year FROM table_name_86 WHERE works_no = ""2040-2049""" How many bikes have been borrowed at San Jose Diridon Caltrain Station on the date and time of 10/20/2013 8:11:01 AM and indicate the station's coordinates.,"SELECT SUM(T2.bikes_available), T1.long, T1.lat FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.time = '2013/10/20 8:11:01' AND T1.name = 'San Jose Diridon Caltrain Station'" List all of the restaurants on Park St.,SELECT T2.label FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.street_name = 'park st' show all the customer details,select customer_details from customers Who won in 1988 with a total less than 287?,"SELECT player FROM table_name_21 WHERE total < 287 AND year_s__won = ""1988""" What is the lowest pick of player paul stasiuk from a round greater than 12?,"SELECT MIN(pick) FROM table_name_45 WHERE player = ""paul stasiuk"" AND round > 12" "When the total is larger than 1,and the bronze is less than 3, and silver larger than 2, and a gold larger than 2, what is the nation?",SELECT nation FROM table_name_24 WHERE total > 1 AND bronze < 3 AND silver > 2 AND gold > 2 "What is the year 2001 with a total larger than 1, and 2009 with 8?","SELECT 2001 FROM table_name_26 WHERE total > 1 AND 2009 = ""8""" Who had 0 total votes in the purple team?,"SELECT status FROM table_name_18 WHERE total_votes = ""0"" AND couples_team = ""purple team""" List all region names in alphabetical order.,SELECT region_name FROM region ORDER BY region_name What Driver has 1 in Grid?,SELECT driver FROM table_name_98 WHERE grid = 1 Show names and phones of customers who do not have address information.,"SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)" How many countries on the European Continent has an infant mortality rate per thousand of over 100?,SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN population AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' AND T4.Infant_Mortality < 100 What is the Customer Name who has the most policies listed ?,SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count ( * ) DESC LIMIT 1 What state had an elected/assumed office in 2013?,SELECT state FROM table_name_98 WHERE elected_assumed_office = 2013 Can you show me the ids for all these attractions? | Do you mean Tourist Attraction IDs? | yes,"SELECT Name, Tourist_attraction_ID FROM Tourist_attractions" How many points did the team that won 5 games make?,SELECT pts_for FROM table_28201906_1 WHERE won = 5 Who has a friend that is from new york city?,SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city' How many persons are on the list?,SELECT count ( * ) FROM Person The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.,SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3 What is the lowest number of bronze medals for teams ranked below 13?,SELECT MIN(bronze) FROM table_name_91 WHERE rank > 13 What class is assigned to frequencies lower than 90.5?,SELECT class FROM table_name_49 WHERE frequency_mhz < 90.5 What is the total and maximum duration of trips with bike id 636?,"SELECT SUM(duration), MAX(duration) FROM trip WHERE bike_id = 636" Indicate the name of all the games published for the 'SCD' platform.,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T4.platform_name = 'SCD' What are the distinct type of mills that are built by American or Canadian architects?,SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian' The Le Mans Porsche team Joest Racing is in which class?,"SELECT class FROM table_name_53 WHERE team = ""le mans porsche team joest racing""" "What is the Total for the Player who won in 1922, 1932?","SELECT AVG(total) FROM table_name_44 WHERE year_s__won = ""1922, 1932""" How many different services are provided by all stations?,SELECT count(DISTINCT services) FROM station "Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?","SELECT rank FROM table_name_21 WHERE winning_party_2003 = ""labour"" AND swing_to_gain > 2.13 AND result = ""lab hold"" AND constituency = ""linlithgow""" What are the minimum and maximum vote percents of elections?,"SELECT min(Vote_Percent) , max(Vote_Percent) FROM election" What is the name of the airport in São Filipe that has an IATA of sfl?,"SELECT airportname FROM table_name_3 WHERE city___town = ""são filipe"" AND iata = ""sfl""" Find the names of all reviewers who rated Gone with the Wind.,SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind' "At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?","SELECT opponent FROM table_name_7 WHERE competition = ""vfl reserves"" AND score = ""18.6 (114) - 21.14 (140)""" "What instruments does the song ""Le Pop"" use?","SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" what is the name of the movie without any ratings?,SELECT title FROM Movie WHERE mID NOT IN ( SELECT mID FROM Rating ) "Find the phone number and email address of customer ""Harold"".","SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = ""Harold""" Who manufactured the car that won with an average speed of 126.259 mph?,"SELECT manufacturer FROM table_22298383_1 WHERE average_speed__mph_ = ""126.259""" What is all the information about employees who have never had a job in the past?,SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history) Find the id of the order made most recently.,SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1 "What is the power, in kW, of channel TV-23, callsign DYCG-TV?","SELECT power_kw__erp_ FROM table_2610582_3 WHERE ch__number = ""TV-23"" AND callsign = ""DYCG-TV""" What U.S. Rap has life in the concrete jungle as the album?,"SELECT us_rap FROM table_name_15 WHERE album = ""life in the concrete jungle""" "What is Probate Activities, when Reserved Instruments is No, and when Regulator is Chartered Institute of Legal Executives?","SELECT probate_activities FROM table_name_6 WHERE reserved_instruments = ""no"" AND regulator = ""chartered institute of legal executives""" What is the most common domain for the email address among all the customers?,"SELECT SUBSTR(email, INSTR(email, '@') + 1, LENGTH(email) - INSTR(email, '@')) AS ym FROM customer GROUP BY SUBSTR(email, INSTR(email, '@') + 1, LENGTH(email) - INSTR(email, '@')) ORDER BY COUNT(*) DESC LIMIT 1" "Which film has a higher replacement cost, ACE GOLDFINGER or ACADEMY DINOSAUR?","SELECT title FROM film WHERE title IN ('ACE GOLDFINGER', 'ACADEMY DINOSAUR') ORDER BY replacement_cost DESC LIMIT 1" Find the name and email of the user followed by the least number of people.,"SELECT name , email FROM user_profiles ORDER BY followers LIMIT 1" What district is incumbent robert l. mouton from?,"SELECT district FROM table_1342292_17 WHERE incumbent = ""Robert L. Mouton""" "Who was playing when the score was 5–7, 6–7 (4–7)?","SELECT opponents FROM table_2186447_1 WHERE score = ""5–7, 6–7 (4–7)""" What is the highest place of a song by Henri Dès that has fewer than 8 points?,"SELECT MAX(place) FROM table_name_6 WHERE artist = ""henri dès"" AND points < 8" "With 10 as the points for foundation, what is the maximum points for ordinary?",SELECT MAX(points_for_ordinary) FROM table_name_97 WHERE points_for_foundation = 10 What are the reigns and days held of all wrestlers?,"SELECT Reign , Days_held FROM wrestler" How many students are 18 years old?,SELECT count(*) FROM Student WHERE age = 18 What is the lowest number of points of the team with 2 losses and a lower than 1 position?,SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1 "Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22?",SELECT AVG(react) FROM table_name_72 WHERE lane < 4 AND rank > 4 AND time > 23.22 What is every deduction for pyramids of 49?,"SELECT deductions FROM table_21995420_6 WHERE pyramids = ""49""" What nationality is Barry Duench?,"SELECT nationality FROM table_name_6 WHERE player = ""barry duench""" Give the id and product type of the product with the lowest price.,"SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1" Which authority has a rocket launch called shahpar-2?,"SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = ""Shahpar-2""" "Among the papers published in the journal ""Molecular Brain"", how many of them were published in the year 2011?",SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2011 AND T1.FullName = 'Molecular Brain' "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?","SELECT DISTINCT T1.state , T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" What is the code of the type of service that is performed the most often?,SELECT T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT ( * ) DESC LIMIT 1 What's the total silver medals having less than 2 gold and 2 bronze?,SELECT COUNT(silver) FROM table_name_29 WHERE bronze = 2 AND gold < 2 Ok!. Can you please give me the names of the accounts where the checking balance is more than 3000,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid where T2.balance>3000 List all the document name?,SELECT document_name FROM documents When tajik is the ethnicity what is islam?,"SELECT islam FROM table_16642_1 WHERE ethnicity = ""Tajik""" What is the date of the game that took place at the Resch Center?,"SELECT date FROM table_name_41 WHERE game_site = ""resch center""" On what yacht was the sail number aus70?,"SELECT yacht FROM table_1858574_3 WHERE sail_number = ""AUS70""" "For the only Yelp business in ""Yuma"" city, how many ""medium"" reviews did it get?",SELECT COUNT(T2.review_length) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Yuma' AND T2.review_length LIKE 'Medium' what is the forename of the race that occurred most recently?,"SELECT name , date FROM races ORDER BY date DESC LIMIT 1" Which Lead Pitch/mm has a Part Number of tsop24/28?,"SELECT MAX(lead_pitch_mm) FROM table_name_13 WHERE part_number = ""tsop24/28""" Calculate the percentage of total payment of MARGARET MOORE customers.,"SELECT CAST(SUM(IIF(T2.first_name = 'MARGARET' AND T2.last_name = 'MOORE', T1.amount, 0)) AS REAL) * 100 / SUM(T1.amount) FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id" Show the citizenship shared by singers with birth year before 1945 and after 1955.,SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955 List the names of studios that have at least two films.,SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2 Operation start of 2015 has what gross mw?,"SELECT gross_mw FROM table_name_56 WHERE operation_start = ""2015""" Name the opponent which has a home/away of home and date of july 27,"SELECT opponent FROM table_name_9 WHERE home_away = ""home"" AND date = ""july 27""" What is the ad frequency for the Show Off The Bench?,"SELECT ad_freq FROM table_name_28 WHERE show_name = ""off the bench""" Name the population for бачки моноштор (croatian: monoštor),"SELECT population__2011_ FROM table_2562572_22 WHERE cyrillic_name_other_names = ""Бачки Моноштор (Croatian: Monoštor)""" WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE?,SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298 How many council taxes are collected for renting arrears ?,SELECT count(*) FROM rent_arrears "Based on the number of current legislators, calculate the percentage of legislators that served in 21st-Century.","SELECT CAST(SUM(CASE WHEN strftime('%Y', T2.start) BETWEEN '2000' AND '2017' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.bioguide_id) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide" What titles were fought for on 1997-04-12?,"SELECT titles FROM table_12262182_2 WHERE date = ""1997-04-12""" What was the result of the 2011 US Open when the 2007 was F?,"SELECT 2011 FROM table_name_59 WHERE 2007 = ""f"" AND tournament = ""us open""" what is the sum of spartak when played is 102 and draw is less than 19?,SELECT SUM(spartak) FROM table_name_54 WHERE played = 102 AND draw < 19 "Which country does the customer with the email ""rturbitt2@geocities.jp"" from?",SELECT T4.country_name FROM customer AS T1 INNER JOIN customer_address AS T2 ON T1.customer_id = T2.customer_id INNER JOIN address AS T3 ON T3.address_id = T2.address_id INNER JOIN country AS T4 ON T4.country_id = T3.country_id WHERE T1.email = 'rturbitT2@geocities.jp' What was the hometown/high school of 170 pound player tyler wilson?,"SELECT hometown_highschool FROM table_name_81 WHERE weight = 170 AND name = ""tyler wilson""" Which Notre Dame coach lost 15 games?,SELECT coach FROM table_name_27 WHERE losses = 15 For how many times has London held the Olympic games?,SELECT COUNT(T1.games_id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London' Count the number of female students who belong to marines organization.,SELECT COUNT(*) FROM person AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T1.name = T3.name WHERE T2.organ = 'marines' AND T3.name IS NULL Which countries has the most number of airlines whose active status is 'Y'?,SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1 Name the most 4/inns,SELECT MAX(4 AS _inns) FROM table_17900317_5 What are the names of movies made after 2000?,SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.year > 2000 When 10% is the percentage of electricity reduction how many sets of universities are there?,"SELECT COUNT(universities) FROM table_29538735_1 WHERE _percentage_electricity_reduction = ""10%""" what is the product price of red jeans,"SELECT product_PRICE FROM products WHERE product_name = ""red jeans""" Indicate the business id and days which are opened from 8AM to 6PM.,SELECT DISTINCT day_id FROM Business_Hours WHERE opening_time = '8AM' AND closing_time = '6PM' Which of those has a prominence greater than 1000?,SELECT Name FROM mountain WHERE Height > 5000 AND prominence > 1000 what are the shortest tracks?,SELECT min ( Milliseconds ) FROM TRACK What is the score of the friendly match?,"SELECT score FROM table_name_63 WHERE competition = ""friendly match""" What is the smallest number of points for a match less than 12?,SELECT MIN(points) FROM table_name_6 WHERE match < 12 What are the source airports of those routes?,SELECT t1.src_ap FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines' What is the Time of the Athlete in Lane 4?,SELECT COUNT(time) FROM table_name_34 WHERE lane = 4 What is the IATA code for the city with ICAO code of RCMQ?,"SELECT iata FROM table_name_98 WHERE icao = ""rcmq""" How many players received Rookie of the Year award from 1969 to 2010?,SELECT COUNT(playerID) FROM awards_players WHERE year BETWEEN 1969 AND 2010 AND award = 'Rookie of the Year' What team(s) did they play on march 9?,"SELECT team FROM table_17311783_9 WHERE date = ""March 9""" "List the names of all genres in alphabetical oder, together with its ratings.","SELECT g_name , rating FROM genre ORDER BY g_name" What is the name of the employee whose role name is Manager?,"SELECT T1.Employee_Name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Manager""" When was successor David Atwood (R) seated?,"SELECT date_successor_seated FROM table_2417345_4 WHERE successor = ""David Atwood (R)""" In which country and state does Janessa Sawayn live?,"SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Which IHSAA Class has a Mascot of tigers?,"SELECT ihsaa_class FROM table_name_32 WHERE mascot = ""tigers""" What is the gender of the student Linda Smith?,"SELECT Sex FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith"";" Which accelerator did the client user have? | Do you mean the name of the accelerator that the client named user has? | Yes,SELECT name FROM web_client_accelerator WHERE client = 'user' Tell me the position in 2012-13 and number of seasons in leigue 1 of 30 with ligue 1 titles of 1,SELECT position_in_2012_13 FROM table_name_69 WHERE number_of_seasons_in_ligue_1 = 30 AND ligue_1_titles = 1 Find the id and color description of the products with at least 2 characteristics.,"SELECT t1.product_id , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING count(*) >= 2" Which opponent plays against the Pohang Steelers?,"SELECT name FROM table_name_58 WHERE opponent = ""pohang steelers""" Show different locations and the number of performances at each location.,"SELECT LOCATION, COUNT(*) FROM performance GROUP BY LOCATION" What are the names of all students taking a course who received an A or C?,"SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'" What is the team when the name is alex sperafico?,"SELECT team FROM table_name_58 WHERE name = ""alex sperafico""" What did Denmark time at?,"SELECT time FROM table_name_87 WHERE country = ""denmark""" List down name of dishes from menu with menu page ID 1389.,SELECT T2.name FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T1.menu_page_id = 1389 Which professor advised Faina Mallinar to become a research assistant? Please give his or her full name.,"SELECT T1.first_name, T1.last_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.f_name = 'Faina' AND T3.l_name = 'Mallinar'" Could you please tell me their party affiliations?,SELECT Party FROM people WHERE People_id NOT IN ( SELECT Affirmative FROM debate_people ) "In books authored by Abraham Lincoln, what is the percentage of the books published in 1992?","SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', T1.publication_date) = '1992' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Abraham Lincoln'" Which game did rudy gay (12) have the highest points?,"SELECT game FROM table_27756474_2 WHERE high_points = ""Rudy Gay (12)""" "Which apartments have type code ""Flat""? Give me their apartment numbers.","SELECT apt_number FROM Apartments WHERE apt_type_code = ""Flat""" Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.,SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000 "Among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to be compiled if user wants to implement it?",SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Repo ) AND T2.WasCompiled = 1 Find the name of customers who have loans of both Mortgages and Auto.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' How many eateries are located in Hayward?,SELECT COUNT(business_id) FROM businesses WHERE city = 'HAYWARD' who were the winners in west virginia,"SELECT candidates_winning_candidate_in_bold FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = ""West Virginia""" What are names of the movies that are either made before 1980 or directed by James Cameron?,"SELECT title FROM Movie WHERE director = ""James Cameron"" OR YEAR < 1980" Who directed El Nido?,"SELECT director FROM table_10798928_1 WHERE original_title = ""El nido""" "List the clubs having ""Davis Steven"" as a member.","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Davis"" AND t3.lname = ""Steven""" What is the release date of the 6 mb L3 cache with the part number by80607005259aabx80607i7740qm?,"SELECT release_date FROM table_name_92 WHERE l3_cache = ""6 mb"" AND part_number_s_ = ""by80607005259aabx80607i7740qm""" Name the rank where the municipality is sunndal?,"SELECT rank FROM table_12280396_1 WHERE municipality = ""Sunndal""" How many medals for spain with 1 silver?,"SELECT SUM(total) FROM table_name_68 WHERE silver = ""1"" AND nation = ""spain""" Which season has the fewest number of matches?,SELECT Season_Id FROM `Match` GROUP BY Season_Id ORDER BY COUNT(Match_Id) LIMIT 1 "Among the films starring PENELOPE GUINESS, how many of them are released in 2006?",SELECT COUNT(T2.film_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.release_year = 2006 AND T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' What is the annual revenue of Klett & Sons Repair?,SELECT annual_revenue FROM customer WHERE cust_name = 'Klett & Sons Repair' What are the downhill points for the skier with total of 9.31 points?,"SELECT SUM(downhill_points) FROM table_name_50 WHERE total = ""9.31""" What is the life expectancy of the countries that uses Japanese as their language?,SELECT AVG(T2.LifeExpectancy) FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.Language = 'Japanese' What is the To par of the Player from New Zealand who had a Score of 75-70=145?,"SELECT to_par FROM table_name_51 WHERE score = 75 - 70 = 145 AND country = ""new zealand""" List any five countries which use English as an official language.,SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' LIMIT 5 How many users mildly likes the 7 Minute Workout app and when was it last updated?,"SELECT COUNT(T2.Sentiment_Polarity), T1.""Last Updated"" FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = '7 Minute Workout' AND T2.Sentiment_Polarity BETWEEN 0 AND 0.5" How many courses does the student with id 171 actually attend?,SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171 "What school is in Lagrange, with an IHSAA Class of aaa?","SELECT school FROM table_name_80 WHERE location = ""lagrange"" AND ihsaa_class = ""aaa""" Identify the border's coordinates on the X and Y axes that enclose a folk in image no. 6.,"SELECT T1.X, T1.Y FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 6 AND T2.OBJ_CLASS = 'folk'" How many percent of the population of China used Chinese as their language?,SELECT T2.Percentage FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'China' AND T2.Language = 'Chinese' "For grants that have descriptions of Regular and Initial Applications, what are their start dates?",SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application' How many voice actors for the movie Aladdin?,SELECT COUNT('voice-actor') FROM `voice-actors` WHERE movie = 'Aladdin' Name the surface for 12 september 2006,"SELECT surface FROM table_name_3 WHERE date = ""12 september 2006""" Which Championship was louise suggs the runner-up by 3 strokes?,"SELECT championship FROM table_name_8 WHERE runner_s__up = ""louise suggs"" AND margin = ""3 strokes""" Which Game 1 has a fullback?,"SELECT game_1 FROM table_name_88 WHERE position = ""fullback""" How many average wins does bruce fleisher have?,"SELECT AVG(wins) FROM table_name_40 WHERE player = ""bruce fleisher""" Who had the high assists when the score was w 107–95 (ot)?,"SELECT high_assists FROM table_27715173_6 WHERE score = ""W 107–95 (OT)""" What did the away team Carlton score?,"SELECT away_team AS score FROM table_name_29 WHERE away_team = ""carlton""" "who is the champion when the year is earlier than 2012, the runner-up (average in final) is steve beaton (97.16)?","SELECT champion FROM table_name_25 WHERE year < 2012 AND runner_up__average_in_final_ = ""steve beaton (97.16)""" How many times is the position lb and the overall is less than 46?,"SELECT COUNT(pick) FROM table_name_25 WHERE position = ""lb"" AND overall < 46" What is the lowest overall year?,SELECT MIN(year) FROM table_16677738_1 How many different facilities are there?,SELECT count ( * ) FROM Apartment_Facilities what is the margin of victory when the runner-up is amy alcott and the winning score is –9 (72-68-67=207)?,"SELECT margin_of_victory FROM table_name_78 WHERE runner_s__up = ""amy alcott"" AND winning_score = –9(72 - 68 - 67 = 207)" "What was the competition on October 21, 2003?","SELECT competition FROM table_name_83 WHERE date = ""october 21, 2003""" Find the number of scientists involved for the projects that require less than 300 hours,SELECT count ( distinct Scientist ) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours < 300 "List the films' titles which were rented on 24th May,2005.","SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id INNER JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id WHERE SUBSTR(T3.rental_date, 1, 10) = '2005-05-24'" "How many military deaths were there when there were 1,615 total casualties?","SELECT military_deaths FROM table_name_92 WHERE total_casualties = ""1,615""" Who was the opponent at the game that had a loss of Saarloos (7-7)?,"SELECT opponent FROM table_name_7 WHERE loss = ""saarloos (7-7)""" Name the date for zi yan jie zheng opponent,"SELECT date FROM table_name_64 WHERE opponents = ""zi yan jie zheng""" Excellent! Can you show the class time and class room for ACCt-211?,"SELECT CLASS_TIME,CLASS_ROOM from CLASS where CRS_CODE = 'ACCT-211'" "Failures larger than 0, and a Successes of 1 has what lowest partial failures?",SELECT MIN(partial_failures) FROM table_name_64 WHERE failures > 0 AND successes = 1 Who directed # (season #) is 1 ( 2 )?,"SELECT directed_by FROM table_28210383_1 WHERE _number__season__number_ = ""1 ( 2 )""" "Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China?","SELECT company FROM table_name_37 WHERE type = ""joint venture"" AND principal_activities = ""cargo airline"" AND incorporated_in = ""china""" Calculate the total quantity of products that are gifts.,SELECT SUM(T2.Quantity) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Price = 0 What was the score and game outcome when High Points was andre miller (17)?,"SELECT score FROM table_17323042_11 WHERE high_points = ""Andre Miller (17)""" "What was the reason for change when the successor was William Milnes, Jr. (C)?","SELECT reason_for_change FROM table_2417345_4 WHERE successor = ""William Milnes, Jr. (C)""" "What is the total number of Length Feet, when Parish is Clarendon, when Km From Kingston is 71.2, and when Length Meters is less than 21.3?","SELECT COUNT(length_feet) FROM table_name_97 WHERE parish = ""clarendon"" AND km_from_kingston = 71.2 AND length_meters < 21.3" "What was the winning score in the tournament, ending with Birdie Kim as a runner-up?","SELECT winning_score FROM table_1940012_2 WHERE runner_s__up = ""Birdie Kim""" Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.,"SELECT Date , Venue FROM workshop ORDER BY Venue" Find the maximum and minimum durations of tracks in milliseconds.,"SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK" "Where is the European Grand Prix held? | Do you want to return the location, country or latitude and longitude? | Country please.",SELECT distinct T2.country FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T1.name = 'European Grand Prix' What were the lowest laps of Tarso Marques?,"SELECT MIN(laps) FROM table_name_69 WHERE driver = ""tarso marques""" Name the station and city with the most borrowed bike.,"SELECT T2.start_station_name, T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name GROUP BY T2.start_station_name ORDER BY COUNT(T2.start_station_name) DESC LIMIT 1" What is the average pick after Round 2?,SELECT AVG(pick) FROM table_name_33 WHERE round > 2 "On July 15, 1984 what surface was used?","SELECT surface FROM table_name_15 WHERE date = ""july 15, 1984""" What was the location when the stolen ends is 12 and shot pct is 77%?,"SELECT locale FROM table_1543845_63 WHERE stolen_ends = 12 AND shot_pct = ""77%""" Where is the University at Albany located?,"SELECT location FROM table_12936521_2 WHERE institution = ""University at Albany""" What country won gold in the year(s) that Chinese Taipei won bronze?,"SELECT gold FROM table_name_50 WHERE bronze = ""chinese taipei""" In what year did the team compete in the USISL Pro League?,"SELECT year FROM table_1939214_1 WHERE league = ""USISL Pro league""" Which country has more than 2 members?,SELECT Country FROM member GROUP BY Country HAVING COUNT ( * ) > 2 What was the Record on the Date May 8?,"SELECT record FROM table_name_15 WHERE date = ""may 8""" Margin of victory on no. 4 was?,SELECT margin_of_victory FROM table_21649285_2 WHERE no = 4 What are the descriptions of all the project outcomes?,SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code What was the home team that played Geelong?,"SELECT home_team AS score FROM table_name_43 WHERE away_team = ""geelong""" Provide the directions for all the trains that have 2 or less cars.,"SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T2.trailPosi <= 2" What were the amount of rebounds in game 2?,SELECT high_rebounds FROM table_23248910_11 WHERE game = 2 What is the low grid total for a retired due to steering in under 15 laps?,"SELECT MIN(grid) FROM table_name_21 WHERE time_retired = ""steering"" AND laps < 15" "What is the reviewer name, film title, movie rating, and rating date for every movie ordered by reviewer name, movie title, then finally rating?","SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars" What was the year when the diameter was 729 km?,SELECT year_named FROM table_name_59 WHERE diameter__km_ = 729 Provide the sunrise time recorded by the home weather station of store no.30 on 2014/2/21.,SELECT T1.sunrise FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2014-02-21' AND store_nbr = 30 "What is the lowest FA cup that has mohd faizal desa as the player, with a total greater than 0?","SELECT MIN(fa_cup) FROM table_name_22 WHERE player = ""mohd faizal desa"" AND total > 0" What is the social number of the person who made the most complaints?,SELECT T1.social FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID GROUP BY T1.client_id ORDER BY COUNT(T1.client_id) DESC LIMIT 1 How many employees have salary between 100000 and 200000?,SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000 Which makers designed more than 3 car models? List full name and the id.,"SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;" "What is the average quantity of each order for the book ""Life Without Fear""?",SELECT CAST(SUM(T2.qty) AS REAL) / COUNT(T1.title_id) FROM titles AS T1 INNER JOIN sales AS T2 ON T1.title_id = T2.title_id WHERE T1.title = 'Life Without Fear' List all the types of forms.,SELECT DISTINCT form_type_code FROM forms What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?,SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I' What organization had the founding date of 1998-11-08? ,"SELECT organization FROM table_2538117_12 WHERE founding_date = ""1998-11-08""" Find the first name of students not enrolled in any course.,SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN) What is the ratio of author with affiliation and without affiliation?,SELECT CAST(SUM(CASE WHEN Affiliation IS NULL THEN 1 ELSE 0 END) AS REAL) / COUNT(*) FROM Author What was the type of game with a 1:6 result?,"SELECT type_of_game FROM table_name_5 WHERE results¹ = ""1:6""" How many areas are named West Isles? ,"SELECT COUNT(area_km_2) FROM table_170969_2 WHERE official_name = ""West Isles""" What is the Date if the Site is Shriver Field?,"SELECT date FROM table_name_34 WHERE site = ""shriver field""" "In district Pennsylvania 11, what was the total numbers of results?","SELECT COUNT(results) FROM table_1805191_39 WHERE district = ""Pennsylvania 11""" Name the record on june 22,"SELECT record FROM table_name_89 WHERE date = ""june 22""" What is the Year for Jazz club of Houston?,"SELECT years_for_jazz FROM table_name_54 WHERE school_club_team = ""houston""" How many percent of senators were from class 1?,SELECT CAST(SUM(CASE WHEN class = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `historical-terms` WHERE type = 'sen' Which delegates are from counties with population smaller than 100000?,SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 What are the Student names who have played Gname The Vanishing of Eric Calder.,"SELECT T3.Fname, T3.lname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T2.Gname = ""The Vanishing of Eric Calder""" How many players played as a captain in season year 2008?,SELECT COUNT(T1.Player_Id) FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Captain' AND T2.Match_Date LIKE '2008%' How many film are there?,SELECT COUNT(*) FROM film Find the last name of the first ever contact person of the organization with the highest UK Vat number.,SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1 When 5 is the l what is the lowest amount of stolen ends?,SELECT MIN(stolen_ends) FROM table_29565541_2 WHERE l = 5 Show the details of all trucks in the order of their license number.,SELECT truck_details FROM trucks ORDER BY truck_licence_number What is the numerical value of those two companies' revenues?,"SELECT name,Revenue FROM manufacturers WHERE revenue < ( SELECT min ( revenue ) FROM manufacturers WHERE headquarter = 'Austin' ) " Name the total number of districts for rob teplitz,"SELECT COUNT(district) FROM table_1979619_3 WHERE representative = ""Rob Teplitz""" "What are all the order #s from the week ""top 6""?","SELECT order__number FROM table_29756040_1 WHERE week__number = ""Top 6""" What school year is vaucluse public school?,"SELECT years FROM table_name_10 WHERE school = ""vaucluse public school""" What network is working in 2014?,SELECT network FROM table_name_19 WHERE year = 2014 "What was the Cowboys' record for Nov. 5, 1966?","SELECT record FROM table_22801165_1 WHERE date = ""Nov. 5""" "In California, how many representatives ended their term in 1995?",SELECT COUNT(*) FROM `current-terms` WHERE state = 'CA' AND type = 'rep' AND end LIKE '1995%' Name the number of appearances for yugoslavia,"SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = ""Yugoslavia""" "When the pick was below 42 and the player was Chris Horton, what's the highest Overall pick found?","SELECT MAX(overall) FROM table_name_15 WHERE name = ""chris horton"" AND pick < 42" how many orders do each of them have?,SELECT COUNT ( * ) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT ( * ) DESC LIMIT 10 Find the total student enrollment for different affiliation type schools.,"SELECT SUM(enrollment), affiliation FROM university GROUP BY affiliation" What is the title of the first crime movie ever released?,SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Crime' ORDER BY T1.release_date LIMIT 1 List the store ID of the films with a rental rate greater than the 60% of average rental rate of all listed films.,SELECT T2.store_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T1.rental_rate > ( SELECT AVG(T1.rental_rate) * 0.6 FROM film AS T1 ) Where is the history department?,SELECT dept_address FROM department WHERE dept_name = 'History' Indicate the release year of the game with more than 200000 sales in Japan.,SELECT DISTINCT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 > 200000 AND T1.region_name = 'Japan' Can you list the ages of all the artists from United States?,"SELECT age from artist where country = ""United States""" "What are the names, details and data types of the characteristics which are never used by any product?","SELECT characteristic_name , other_characteristic_details , characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id" What are the results of a first elected prior to year 1982?,SELECT results FROM table_name_48 WHERE first_elected < 1982 "What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?","SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = ""wheeling"" AND erp_kw < 4.5" what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?,"SELECT date__from_ FROM table_12562214_1 WHERE notes = ""Apeldoornsche Tramweg-Maatschappij""" Can you tell me the Team that has the Date of march 17?,"SELECT team FROM table_name_77 WHERE date = ""march 17""" How many wins were there in 1994?,SELECT SUM(wins) FROM table_name_20 WHERE year = 1994 Where is Rix from?,"SELECT nat FROM table_name_36 WHERE name = ""rix""" Name the sum of rank for silver less than 0,SELECT SUM(rank) FROM table_name_55 WHERE silver < 0 In what venue was the Batting team India who featured partners Sachin Tendulkar and Rahul Dravid?,"SELECT venue FROM table_name_15 WHERE batting_team = ""india"" AND batting_partners = ""sachin tendulkar and rahul dravid""" What are the different product names? What is the average product price for each of them?,"SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name" List the name of products in ascending order of price.,SELECT Product_Name FROM Products ORDER BY Product_Price What is game 34's record?,SELECT record FROM table_name_11 WHERE game = 34 Which team has the most victories as the home team in matches of the Bundesliga division?,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'H' GROUP BY T1.HomeTeam ORDER BY COUNT(T1.FTR) DESC LIMIT 1 Find the phone number of all the customers and staff.,SELECT phone_number FROM customers UNION SELECT phone_number FROM staff "Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?","SELECT surname FROM table_name_64 WHERE throws = ""r"" AND position = ""p"" AND dob = ""26 april 1989""" How many points does g a vandervell have?,"SELECT points FROM table_name_95 WHERE entrant = ""g a vandervell""" List all company names with a book published by Alyson.,SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson' What is the name of the integrated where the component are customers?,"SELECT integrated FROM table_11944282_1 WHERE component = ""Customers""" State the country and its population with population growth greater than 2% but infant mortality rate less than 5%.,"SELECT T1.Name, T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T2.Population_Growth > 2 AND T2.Infant_Mortality < 5" How many universities are located in Japan?,SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Japan' Name the poles for avg start being 4.7,"SELECT poles FROM table_2308381_2 WHERE avg_start = ""4.7""" "What are the population, name and leader of the country with the largest area?","SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1" "How many times does the word ""riu"" appears in the biwords pair?",SELECT COUNT(T1.wid) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'riu' Who was the Centerfold model when O.J. Simpson was the Interview Subject?,"SELECT centerfold_model FROM table_name_72 WHERE interview_subject = ""o.j. simpson""" Please list the titles of all the recipes that are salt/sodium-free.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.sodium < 5 "How many albums does the artist ""Metallica"" have?","SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""Metallica""" What is the theme and artist name for the exhibition with a ticket price higher than the average?,"SELECT T1.theme , T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT avg(ticket_price) FROM exhibition)" What was the final score in the game against the Cincinnati Bengals?,"SELECT final_score FROM table_name_78 WHERE visiting_team = ""cincinnati bengals""" How many participants belong to the type 'Organizer'?,SELECT count(*) FROM participants WHERE participant_type_code = 'Organizer' "What is the average household income in the city known as ""Danzig""?",SELECT T2.avg_income_per_household FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Danzig' What is the average number of authors for all titles?,"SELECT paperID,avg ( authOrder ) FROM authorship group by paperID" How many years have had the position of 2nd?,"SELECT COUNT(year) FROM table_name_66 WHERE position = ""2nd""" "Find the first name, last name and id for the top three players won the most player awards.","SELECT T1.name_first , T1.name_last , T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;" "which week had an attendance of 53,677?","SELECT COUNT(week) FROM table_name_43 WHERE attendance = ""53,677""" "If there are 28 points, what is the time/retired?","SELECT time_retired FROM table_17330069_1 WHERE points = ""28""" Show all distinct positions of matches.,SELECT DISTINCT POSITION FROM match_season What is the average age of your drivers?,SELECT avg ( Age ) FROM driver What is the name of the Olympic game with the most competitors held in Barcelona?,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T4.city_name = 'Barcelona' GROUP BY T1.id ORDER BY COUNT(T2.person_id) DESC LIMIT 1 Who is the jockey for the winning horse Rafael Bejarano?,"SELECT winning_horse FROM table_name_81 WHERE winning_jockey = ""rafael bejarano""" Name the sum To par for score of 71-74-71-72=288,SELECT SUM(to_par) FROM table_name_26 WHERE score = 71 - 74 - 71 - 72 = 288 what is the name of the actor that starred in most films?,"SELECT T2.first_name , T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY count ( * ) DESC LIMIT 1" Who was the director where the role was Fred Ayres?,"SELECT director FROM table_name_13 WHERE role = ""fred ayres""" "How many restaurants in Broadway, Oakland received a review of no more than 3?",SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.street_name = 'broadway' AND T2.review < 3 AND T1.city = 'oakland' What is the highest number of points before 1954?,SELECT MAX(points) FROM table_name_5 WHERE year < 1954 "What is the latitude, longitude, city of the station from which the shortest trip started?","SELECT T1.lat , T1.long , T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1" What sales channels are used the most in the 3 places with the highest median income?,SELECT `Sales Channel` FROM ( SELECT T1.`Sales Channel` FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID ORDER BY T2.`Median Income` DESC LIMIT 3 ) GROUP BY `Sales Channel` ORDER BY COUNT(`Sales Channel`) DESC LIMIT 1 "How many events were held at coordinate 97,40?",SELECT COUNT(event_id) FROM `events` WHERE latitude = 40 AND longitude = 97 How many lessons taught by staff whose first name has letter 'a' in it?,"SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE ""%a%""" What is the Film title used in nomination of Cilvēka Bērns?,"SELECT film_title_used_in_nomination FROM table_name_91 WHERE original_title = ""cilvēka bērns""" Name the scientific name for veiled chameleon,"SELECT scientific_name FROM table_175442_1 WHERE common_name = ""Veiled chameleon""" Please list all the years in which the car model Chevrolet Impala was introduced in the market.,SELECT DISTINCT T1.model_year FROM production AS T1 INNER JOIN data AS T2 ON T1.ID = T2.ID WHERE T2.car_name = 'chevrolet impala' What is the average attendance at a game held at Firhill for the 5(r) round?,"SELECT AVG(attendance) FROM table_name_26 WHERE venue = ""firhill"" AND round = ""5(r)""" Please show the employee first names and ids of employees who serve at least 10 customers.,"SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10" how many course id in the table?,Select count ( distinct course_id ) from student_course_registrations "LIST ALL THE COUNTRIES WITH ORIGINS OF LEAST PLAYERS | Isn't it the same question as the last one? | NO, LIST THREE COUNTRIES WHICH ARE THE ORIGINS OF THE LEAST PLAYERS",SELECT birth_country FROM player GROUP BY birth_country ORDER BY count ( * ) ASC LIMIT 3 Could you please provide the total tracks on each top 5 genres by number of tracks?,"SELECT T1.id,COUNT ( * ) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count ( * ) DESC LIMIT 5" What is the highest possible level?,SELECT MAX(level) FROM table_1751142_2 How many coaches of the Montreal Canadiens have gotten in the Hall of Fame?,SELECT COUNT(DISTINCT hofID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Montreal Canadiens' What are the details for the projects which were launched by the organization with the most projects?,SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 ) Frequency MHz of 93.7 has what class?,SELECT class FROM table_name_4 WHERE frequency_mhz = 93.7 Which last names are both used by customers and staff?,SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24),"SELECT shuji_kondo FROM table_name_90 WHERE mazada = ""x"" AND ryuji_hijikata = ""hijikata (14:24)""" what is the height of Boardwalk Bullet,SELECT Height FROM roller_coaster where Name = 'Boardwalk Bullet' Which Chief Judge has Active service of 1873–1875?,"SELECT chief_judge FROM table_name_23 WHERE active_service = ""1873–1875""" What is the status of the Hamaoka-3 unit?,"SELECT status FROM table_name_33 WHERE unit = ""hamaoka-3""" What is 2010 when 2003 is 5.6?,"SELECT 2010 FROM table_27146868_1 WHERE 2003 = ""5.6""" What is the GDP and population of Nanjing (Jiangsu)?,"SELECT distinct t1.gdp , t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city where t1.city = 'Nanjing ( Jiangsu ) '" "Which titles have the content ""love"" but the category is art produced between 2018 and 2019.",SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE (T2.created_at LIKE '2018-%' AND T1.category = 'arts' AND T2.content LIKE '%love%') OR (T2.created_at LIKE '2019-%' AND T1.category = 'arts' AND T2.content LIKE '%love%') Show the card type codes and the number of transactions.,"SELECT T2.card_type_code , count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code" Write the name of the player who was the man of the series more than one time.,SELECT T2.Player_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id WHERE T1.Man_of_the_Series > 1 "In what Week was the Attendance 17,737?","SELECT COUNT(week) FROM table_name_19 WHERE attendance = ""17,737""" Who directed hamateur night?,"SELECT director FROM table_name_2 WHERE title = ""hamateur night""" "What were the dates of those transactions? | Do you mean the transactions with share count equal to or larger than 10? | Yes please, if you don't mind?",SELECT T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count > = 10 What city had a rank before 3 and primary carrier JetBlue Airways?,"SELECT city FROM table_name_78 WHERE rank < 3 AND carriers = ""jetblue airways""" In what Venue was Surrey the Opposition in the 2nd Wicket?,"SELECT venue FROM table_name_45 WHERE opposition = ""surrey"" AND wicket = ""2nd""" How many types of work is хромая судьба?,"SELECT COUNT(type_of_work) FROM table_207795_1 WHERE russian_title = ""Хромая судьба""" How many matches did team Kings XI Punjab win in season year 2008?,SELECT COUNT(DISTINCT T2.Match_Id) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Player_Match AS T3 ON T1.Team_Id = T3.Team_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T1.Team_Name = 'Kings XI Punjab' AND T4.Season_Year = 2008 Show me the name of the aircraft with the fewest people who have its certificate,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count ( * ) ASC LIMIT 1 What is Tyler Swift's email?,"SELECT email FROM user_profiles where name = ""Tyler Swift""" What is the total number of degrees granted after 2000 for each Orange county campus?,"SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = ""Orange"" AND T2.year >= 2000 GROUP BY T1.campus" What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?,"SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;" What is the highest round that has an overall of 143 and a pick greater than 6?,SELECT MAX(round) FROM table_name_36 WHERE overall = 143 AND pick > 6 What is the birthday of the staff member with the first and last name as Janessa and Sawayn?,"SELECT date_of_birth FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn""" How many movies were added to the list with the most number of movies? Indicate whether the user was a paying subscriber or not when he created the list.,"SELECT T1.list_movie_number, T2.user_has_payment_method FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id ORDER BY T1.list_movie_number DESC LIMIT 1" "What is the goal difference sum that has goals against smaller than 33, draws larger than 13?",SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13 "ok, name the body builders whose total score is higher than 250",SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 250 What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?,SELECT AVG(cuts_made) FROM table_name_93 WHERE top_10 = 11 AND wins < 1 "What is the total price including optional support received by the teacher who posted the essay titled ""Recording Rockin' Readers""?",SELECT SUM(T1.total_price_including_optional_support) FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title = 'Recording Rockin'' Readers' how many different author logins are there?,SELECT count ( distinct login_name ) from Course_Authors_and_Tutors What language is the film Marion Bridge?,"SELECT language FROM table_name_46 WHERE film = ""marion bridge""" What's the average damage in millions usd for all storms?,SELECT avg ( Damage_millions_USD ) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id How many golds were there when there was more than 11 bronze and 29 in total?,SELECT COUNT(gold) FROM table_name_92 WHERE bronze > 11 AND total = 29 How many directed have the product code of 2.8?,"SELECT COUNT(directed_by) FROM table_20124413_2 WHERE prod_code = ""2.8""" "Which Score has a Set 2 of 25–17, and a Time of 16:00?","SELECT score FROM table_name_9 WHERE set_2 = ""25–17"" AND time = ""16:00""" List out the full name and URL link of ICCI?,"SELECT FullName, HomePage FROM Conference WHERE ShortName = 'ICCI'" How many race 3 winners were there when Mitch Evans won race 2?,"SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = ""Mitch Evans""" List all countries of markets in descending order of number of cities.,SELECT Country FROM market ORDER BY Number_cities DESC Which distinct car models are the produced after 1980?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980; Provide the order comments for at least 5 orders made by customers in the furniture segment.,SELECT T1.o_comment FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_mktsegment = 'Furniture' LIMIT 5 how many chroma format with name being high profile,"SELECT COUNT(chroma_format) FROM table_1376890_2 WHERE name = ""High profile""" Indicate the name of the parts without discount.,SELECT T3.p_name FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T2.l_discount = 0.0000 What is that student's personal name?,"select personal_name from Students where family_name = ""Zieme""" "What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?","SELECT date FROM table_name_61 WHERE line_judge = ""bob beeks"" AND head_linesman = ""jerry bergman"" AND back_judge = ""paul baetz""" How many tracks do we have?,SELECT COUNT(*) FROM track "For each stadium, how many concerts play there?","SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id" How many of the complaints are longer than 15 minutes?,"SELECT COUNT(ser_time) FROM callcenterlogs WHERE strftime('%M', ser_time) > '15'" List the names of the directors whose films grossed over $100 million.,"SELECT DISTINCT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name INNER JOIN movies_total_gross AS T3 ON T1.movie_title = T3.movie_title WHERE CAST(REPLACE(trim(T3.total_gross, '$'), ',', '') AS REAL) > 100000000" Which Province has a IATA of aku?,"SELECT province FROM table_name_62 WHERE iata = ""aku""" List 5 customers in the West region who had their item shipped 'Second Class.',SELECT DISTINCT T2.`Customer Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.Region = 'West' AND T1.`Ship Mode` = 'Second Class' LIMIT 5 Tell me the date for original week less than 16 and result of l 23–22,"SELECT date FROM table_name_81 WHERE original_week < 16 AND result = ""l 23–22""" what is the party where the incumbent is edward boland?,"SELECT party FROM table_1341690_21 WHERE incumbent = ""Edward Boland""" How many UK events won for the contestant that won under 1 US event?,SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1 How many holes does Player Vijay Singh have?,"SELECT COUNT(hole) FROM table_name_79 WHERE player = ""vijay singh""" What is the name of the person whose age is below 30?,SELECT name FROM Person WHERE age < 30 What are their managers?,SELECT building_manager FROM Apartment_Buildings WHERE building_description = 'Studio' What is the rice amount when the potato amount is 79?,"SELECT rice_[b_] FROM table_name_7 WHERE potato_[d_] = ""79""" "On channel 32, when the power is 32 kW horizontal, what is the frequency?","SELECT frequency FROM table_name_32 WHERE power = ""32 kw horizontal"" AND channel = 32" For how many terms has current legislator Sherrod Brown served as a representative for district no.13?,SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Sherrod Brown' AND T2.district = 13 "What is the Average of bergen, norway?","SELECT MIN(average) FROM table_name_81 WHERE city = ""bergen, norway""" How many men under the age of 23 have apps installed but are not active on their devices?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id INNER JOIN app_events_relevant AS T3 ON T2.event_id = T3.event_id WHERE T1.gender = 'M' AND T3.is_active = 0 AND T1.age < 23 What rank is the common with an area of 47.3 km^2?,"SELECT rank FROM table_1449176_1 WHERE area__km_2__ = ""47.3""" State the title of employee id 2?,select title from employee where employeeid = 2 Count the number of documents with the type code BK that correspond to each product id.,"SELECT count(*) , project_id FROM Documents WHERE document_type_code = ""BK"" GROUP BY project_id" What are the response received dates for the documents with a grant amount more than 100?,SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T3.grant_amount > 100 What strike rate is 9 the matches?,"SELECT strike_rate FROM table_name_97 WHERE matches = ""9""" Who was the highest picked defensive end,"SELECT MAX(pick__number) FROM table_15353123_1 WHERE position = ""Defensive end""" "How many ratings on the movie ""A Way of Life"" are made after the year 2011?",SELECT COUNT(T1.rating_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.rating_timestamp_utc >= '2012-01-01' "What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?","SELECT nation FROM table_name_37 WHERE competition = ""preseason"" AND year < 2011 AND club = ""chivas de guadalajara""" "List all every engineer's first name, last name, details and coresponding skill description.","SELECT T1.first_name , T1.last_name , T1.other_details , T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id" what are the busiest airport in china? | busiest source airport or destination airport? | busiest source airport,SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count ( * ) DESC LIMIT 1 Hello there! How are you? Could you please provide me with a list of all trip IDs for the zip code 94002?,SELECT id FROM trip WHERE zip_code = 94002 Show all different home cities.,SELECT DISTINCT home_city FROM driver "What is the email of the student with first name ""Emma"" and last name ""Rohan""?","SELECT email_address FROM Students WHERE first_name = ""Emma"" AND last_name = ""Rohan""" What are the names of all the different reviewers who rates Gone with the Wind?,SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind' Who was drafted to litvinov (czechoslovakia)?,"SELECT player FROM table_2679061_12 WHERE college_junior_club_team = ""Litvinov (Czechoslovakia)""" "What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?","SELECT stu_fname , stu_lname , stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1" Calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006.,SELECT SUM(CASE WHEN T1.model_year = '2005' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.model_year = '2006' THEN 1 ELSE 0 END) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id "What is Opposing Teams, when Against is less than 6?",SELECT opposing_teams FROM table_name_86 WHERE against < 6 how many broadcast are presented on the table,SELECT count ( * ) from broadcast How many of the reviews have a rating greater than or equal to 5?,SELECT count ( * ) FROM review WHERE rating > = 5 "What is the Name when the position is g, and weight is 190 pounds?","SELECT name FROM table_name_54 WHERE position = ""g"" AND weight__lbs_ = 190" "Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?","SELECT MIN(1977) FROM table_name_23 WHERE county = ""zzz bucharest"" AND 2011 < 1883425" What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?,"SELECT COUNT(attendance) FROM table_name_64 WHERE record = ""26-35""" Which films participated in the 61st Berlin international film festival?,"SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = ""61st Berlin International film_festival""" What is the risk level of the establishment that Bob Benson inspected?,SELECT DISTINCT T3.risk_level FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN establishment AS T3 ON T2.license_no = T3.license_no WHERE T1.first_name = 'Bob' AND T1.last_name = 'Benson' Who was perfomer one on 30 January 1988?,"SELECT performer_1 FROM table_14934885_1 WHERE date = ""30 January 1988""" Which Year has a Binibining Pilipinas International of alma concepcion?,"SELECT year FROM table_name_54 WHERE binibining_pilipinas_international = ""alma concepcion""" Find the name of the product that has the smallest capacity.,SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1 Where did the player who won in 1991 finish?,"SELECT finish FROM table_name_1 WHERE year_s__won = ""1991""" "On 1887-07-21, what was the event that lead to the creation of menu id 21380?",SELECT event FROM Menu WHERE date = '1887-07-21' AND id = 21380 What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197?,SELECT MIN(08 AS _09_gp_jgp_2nd) FROM table_23938357_7 WHERE ws_points = 3197 Name the people who wrote number 67,SELECT written_by FROM table_12419515_5 WHERE series__number = 67 How many churches opened before 1850 are there?,SELECT count(*) FROM Church WHERE Open_Date < 1850 Show all artist names and the year joined who are not from United States.,"SELECT name , year_join FROM artist WHERE country != 'United States'" WHAT IS THE LEAGUE WITH HOME 1-1?,"SELECT league FROM table_name_63 WHERE home = ""1-1""" What is the sum of all ratings at a weekly rank of 10 and a share less than 11?,"SELECT SUM(rating) FROM table_name_33 WHERE weekly_rank___number_ = ""10"" AND share < 11" "What is the highest Loss, when Long is greater than 0, when Gain is greater than 484, and when Avg/g is greater than 126.4?",SELECT MAX(loss) FROM table_name_75 WHERE long > 0 AND gain > 484 AND avg_g > 126.4 Lists all parts supplied by Supplier#000000034.,SELECT T3.p_name FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T2.s_name = 'Supplier#000000034' What was the result when there were 6 matches?,"SELECT result FROM table_name_13 WHERE matches = ""6""" what are the names of the ships ordered by ascending tonnage?,SELECT Name FROM ship ORDER BY Tonnage ASC What is the number of entries associated with more than 11 wins?,SELECT entries FROM table_name_51 WHERE wins > 11 Can you tell me the Country that has the Year(s) Won of 1988?,"SELECT country FROM table_name_21 WHERE year_s__won = ""1988""" Show the most common position of players in match seasons.,SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1 Show the years and the official names of the host cities of competitions.,"SELECT T2.Year , T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID" "Find the number of products for each manufacturer, showing the name of each company.","SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" Who played SS when paul konerko played 1st base?,"SELECT shortstop FROM table_12142298_2 WHERE first_baseman = ""Paul Konerko""" "Calculate the monthly average salary of the employee with highest salary. Mention his name, position title and location city.","SELECT SUM(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) / 12 AS avg, T1.firstname, T1.lastname , T2.positiontitle, T3.locationcity FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID INNER JOIN location AS T3 ON T1.locationID = T3.locationID WHERE CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID INNER JOIN location AS T3 ON T1.locationID = T3.locationID )" What college team did Derek Fisher play for?,"SELECT school_club_team FROM table_name_19 WHERE player = ""derek fisher""" "Who was the opponent at the game attended by 23,203?","SELECT opponent FROM table_name_63 WHERE attendance = ""23,203""" which opponent is from February 12?,"SELECT opponent FROM table_name_1 WHERE date = ""february 12""" What is the name of the most popular restaurant serving Asian foods in San Francisco?,SELECT label FROM generalinfo WHERE food_type = 'asian' AND city = 'san francisco' AND review = ( SELECT MAX(review) FROM generalinfo WHERE food_type = 'asian' AND city = 'san francisco' ) "Which Total has a Rank of 4, and a Silver smaller than 4?","SELECT AVG(total) FROM table_name_36 WHERE rank = ""4"" AND silver < 4" "That was fast, thank you again :) Could you please let me know which station is located in the highest latitude?",select name from station order by lat desc limit 1 And the average?,SELECT avg ( stars ) FROM Rating ORDER BY stars aSC LIMIT 1 "Which institution is located in Reading, PA?","SELECT institution FROM table_name_44 WHERE location = ""reading, pa""" "For each position, what is the maximum number of hours for students who spent more than 1000 hours training?","SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos" Which is the highest Rd 1 has a Province of utrecht and a Rd 4 larger than 0?,"SELECT MAX(rd_1) FROM table_name_70 WHERE province = ""utrecht"" AND rd_4 > 0" How many players had a best winning average of 20?,"SELECT COUNT(games_won) FROM table_27533947_1 WHERE best_winning_average = ""20""" On which date did they play Leicester City in Venue A?,"SELECT date FROM table_name_38 WHERE venue = ""a"" AND opponents = ""leicester city""" What is the Type for l. publilius philo vulscus?,"SELECT type FROM table_name_46 WHERE name = ""l. publilius philo vulscus""" How many cities are in the Philippines?,SELECT COUNT(ID) FROM City WHERE Name = 'PHL' What's the smallest total with a bronze count of 5 and a gold count less than 8?,SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8 List the titles of the books in ascending order of issues.,SELECT Title FROM book ORDER BY Issues ASC In which year did the least people enter hall of fame?,SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1; Count the number of distinct store locations.,SELECT count(DISTINCT LOCATION) FROM shop What Song's Index is F6?,"SELECT song FROM table_name_58 WHERE index = ""f6""" "Which Frequency MHz is the highest one that has a City of license of byron, ga?","SELECT MAX(frequency_mhz) FROM table_name_38 WHERE city_of_license = ""byron, ga""" Who was the home team in the game where North Melbourne was the away team?,"SELECT home_team AS score FROM table_name_25 WHERE away_team = ""north melbourne""" What players were those draft pick numbers for? | do you want to see both the players and the draft pick numbers? | Yes please.,"Select player, draft_pick_number from match_season where draft_class in ( SELECT DISTINCT draft_class FROM match_season WHERE College = ""UCLA"" OR College = ""Duke"" ) " How many arrests have been made due to forcible entry burglary that took place in a day care center?,SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.location_description = 'DAY CARE CENTER' AND T1.secondary_description = 'FORCIBLE ENTRY' AND T1.primary_description = 'BURGLARY' How many of the customer's reference ID that has a TRUE response?,SELECT COUNT(REFID) FROM Mailings1_2 WHERE RESPONSE = 'true' Find the product name of the ALA synthase?,"SELECT Product from enzyme where name = ""ALA synthase""" What is the produdction code and channel of the most recent cartoon ?,"select production_code , channel from cartoon order by original_air_date desc limit 1" Which Title has a Termination of Mission of current?,"SELECT title FROM table_name_94 WHERE termination_of_mission = ""current""" How many years have a Form album of the thing?,"SELECT SUM(year) FROM table_name_39 WHERE from_album = ""the thing""" List the hosts of performances in ascending order of attendance.,SELECT HOST FROM performance ORDER BY Attendance ASC "What is Language, when Content is Monoscopio?","SELECT language FROM table_name_27 WHERE content = ""monoscopio""" "What is the highest Attendance, when Result is l 26-16, and when Week is less than 12?","SELECT MAX(attendance) FROM table_name_36 WHERE result = ""l 26-16"" AND week < 12" Name the year for not nominated for alberto aruelo,"SELECT year__ceremony_ FROM table_18123274_1 WHERE result = ""Not Nominated"" AND director = ""Alberto Aruelo""" Find the number of patients who are not using the medication of Procrastin-X.,SELECT count(*) FROM patient WHERE SSN NOT IN ( SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X' ) "What is the supply cost for the part ""violet olive rose ivory sandy""?",SELECT T2.ps_supplycost FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T1.p_name = 'violet olive rose ivory sandy' Find the ids of the departments where any manager is managing 4 or more employees.,"SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" What is the lowest lost from drawn of 1 or greater?,SELECT MIN(lost) FROM table_name_18 WHERE drawn > 1 "If the median income is $57,407, what is the per capita income?","SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = ""$57,407""" Which date was the show aired on the RTL Televizija network?,"SELECT date_aired FROM table_name_35 WHERE network = ""rtl televizija""" Show the party that has the most people.,SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1 Perfect! Can you update the list to include all of the candidate IDs in addition to these email addresses?,"SELECT T2.candidate_id,T1.email_address FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id" How many students enlisted in the fire-department?,SELECT COUNT(name) FROM enlist WHERE organ = 'fire_department' What are the distinct last names of the students who have president votes and have 8741 as the advisor?,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""8741""" What is the name of the product with the highest retail price?,SELECT p_name FROM part WHERE p_retailprice = ( SELECT MAX(p_retailprice) FROM part ) Which catalog content has the smallest capacity? Return the catalog entry name.,SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1 What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time?,"SELECT score FROM table_name_93 WHERE time = ""14:30"" AND venue = ""happy valley recreation ground pitch #2""" Name the least transfers out when transfers is 21,SELECT MIN(transfers_out) FROM table_17650725_1 WHERE total_transfers = 21 "Which Melbourne has an Auckland of no, and a Gold Coast of no?","SELECT melbourne FROM table_name_14 WHERE auckland = ""no"" AND gold_coast = ""no""" Find the name of the teacher who teaches the largest number of students.,"SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1" What is the name of all tracks in the Rock genre?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"";" When was the release date for technology that has a Multi 1 of 10.5×?,"SELECT release_date FROM table_name_72 WHERE multi_1 = ""10.5×""" what accelerators are not compatible with the browsers?,SELECT * FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser ) How many connections aux in using FIrewire?,"SELECT COUNT(aux_in) FROM table_24384861_1 WHERE dock_connection = ""FireWire""" What is the station that is transmitted at 20 kw and has a frequency of 48 uhf?,"SELECT television_station FROM table_1601792_4 WHERE transmitted = ""20 kW"" AND frequency = ""48 UHF""" What is the percentage of severe cases that are related to sexual assault?,SELECT CAST(SUM(CASE WHEN primary_description = 'CRIM SEXUAL ASSAULT' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM IUCR WHERE index_code = 'I' add a column for company id,"SELECT count ( * ) , T1.company_id, T1.building_id FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id" Who wrote the episode with the production code 211?,SELECT written_by FROM table_27610775_1 WHERE prod_code = 211 What is the date that a ship sank in the South Atlantic?,"SELECT date FROM table_name_59 WHERE where_sunk = ""south atlantic""" What are the names of players that have run scored less than 3?,SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Batsman_Scored AS T3 ON T2.Match_ID = T3.Match_ID WHERE T3.Runs_Scored < 3 GROUP BY T1.Player_Name What is the minimum and maximum number of bathrooms of all the apartments?,"SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments" What actor plays Marie-Rose De Putter?,"SELECT actor FROM table_name_73 WHERE character = ""marie-rose de putter""" When did customer with first name as Carole and last name as Bernhard became a customer?,"SELECT date_became_customer FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard""" Which E. coli has a human value of HNEIL1?,"SELECT e_coli FROM table_name_78 WHERE human = ""hneil1""" What is indicator code of Rural population?,SELECT DISTINCT IndicatorCode FROM Indicators WHERE IndicatorName = 'Rural population' List the employees who have not showed up in any circulation history of documents. List the employee's name.,SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id "Show first name, last name, age for all female students. Their sex is F.","SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'" Give me the count for the students older than the average age.,select count ( fname ) from student where age > ( SELECT avg ( age ) FROM STUDENT ) What is its item id?,SELECT 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 ) LIMIT 1 "Find the description of the club ""Pen and Paper Gaming"".","SELECT clubdesc FROM club WHERE clubname = ""Pen and Paper Gaming""" "Find all the male members of club ""Hopkins Student Enterprises"". Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t3.sex = ""M""" "Who is the president of the club ""Bootup Baltimore""? Give me the first and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t2.position = ""President""" How many line items were returned in 1998?,"SELECT l_linenumber FROM lineitem WHERE STRFTIME('%Y', l_shipdate) < 1997 AND l_shipmode = 'TRUCK'" How big was the crowd when Richmond was the away team?,"SELECT crowd FROM table_name_28 WHERE away_team = ""richmond""" "What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju?","SELECT modern_equivalent FROM table_name_88 WHERE post_1009_province = ""gyeongsang -do"" AND administrative_district = ""jinju -mok"" AND province_of_silla = ""gangju""" What was the number of Bitcoins verifiably burned until 2013/4/28?,SELECT T2.max_supply - T2.total_supply FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-04-28' AND T1.name = 'Bitcoin' "Provide the name of artists who had no more than 100 downloads and are tagged ""funk"" in 1980.",SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'funk' AND T1.groupYear = 1980 AND T1.totalSnatched <= 100 Find the name of bank branches that provided some loans.,SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id "What is Ground, when Away Team is Sydney?","SELECT ground FROM table_name_73 WHERE away_team = ""sydney""" what is the prof high degree of department HIST,"SELECT prof_high_degree from professor where DEPT_CODE = ""HIST""" Which players are from Indonesia?,"SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = ""Indonesia""" "How many people were in attendance on January 4, 2008?","SELECT SUM(attendance) FROM table_name_33 WHERE date = ""january 4, 2008""" What type of proposal is measure number 3?,SELECT type FROM table_256286_21 WHERE meas_num = 3 "What is the Attendance with a Date that is november 25, 1965?","SELECT attendance FROM table_name_96 WHERE date = ""november 25, 1965""" "Which Pick has a Round larger than 17, and a Name of gene stewart?","SELECT COUNT(pick) FROM table_name_46 WHERE round > 17 AND name = ""gene stewart""" "Which record has 5:00 as the time, jess liaudin as the opponent for the location of england?","SELECT record FROM table_name_49 WHERE time = ""5:00"" AND opponent = ""jess liaudin"" AND location = ""england""" "Show ids, customer ids, names for all accounts.","SELECT account_id , customer_id , account_name FROM Accounts" What are the file sizes and formats for all songs with a resolution lower than 800?,"SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800" What is the opening time of the active businesses in Chandler that has a medium review count.,SELECT DISTINCT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Chandler' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Medium' Count the male actors born in USA that starred in Ghost.,SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Ghost' AND T3.Gender = 'Male' AND T3.`Birth Country` = 'USA' Show the number of trains,SELECT count(*) FROM train "Show the account name, id and the number of transactions for each account.","SELECT T2.account_name , T1.account_id , count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id" How many types in this table?,SELECT count ( distinct Type ) FROM ship Which opponent led to a 5-2 record?,"SELECT opponent FROM table_24560733_1 WHERE record = ""5-2""" List the university ID of the university that scored 100 in 2011.,SELECT university_id FROM university_ranking_year WHERE score = 100 AND year = 2011 Find the number of items that did not receive any review.,SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review) Which physicians are in charge of more than one patient? Give me their names.,SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING count(*) > 1 Which location has a rank of 147?,SELECT location FROM table_name_95 WHERE rank = 147 what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?,"SELECT lifespan FROM table_name_56 WHERE imperial = ""7ft 8 in"" AND nationality = ""fiji""" "WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?",SELECT MAX(bronze) FROM table_name_46 WHERE silver > 1 AND rank > 1 What is Steven King's Salary and Job id?,"select JOB_ID,SALARY from employees where FIRST_NAME = 'Steven' and LAST_NAME = 'King'" What is the abbr for zug?,"SELECT abbr FROM table_name_75 WHERE common_english = ""zug""" Give the gender of the user who made the highest klout tweet on Wednesdays.,SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T1.Weekday = 'Wednesday' ORDER BY T1.Klout DESC LIMIT 1 List the number of episodes directed by linda mendoza.,"SELECT COUNT(production_code) FROM table_25548213_1 WHERE directed_by = ""Linda Mendoza""" "In 2010, how many single patients took Nitrofurantoin 5 mg/ML [Furadantin] to cure cystitis?","SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.marital = 'S' AND T2.REASONDESCRIPTION = 'Cystitis' AND T2.DESCRIPTION = 'Nitrofurantoin 5 MG/ML [Furadantin]' AND strftime('%Y', T2.START) = '2010'" What date has uefa euro 2008 qualification as the competition?,"SELECT date FROM table_name_55 WHERE competition = ""uefa euro 2008 qualification""" "What is Tie no, when Date is ""18 Nov 1989"", and when Home Team is ""Doncaster Rovers""?","SELECT tie_no FROM table_name_32 WHERE date = ""18 nov 1989"" AND home_team = ""doncaster rovers""" "What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?","SELECT MIN(points) FROM table_name_84 WHERE team = ""san martín de tucumán"" AND played < 38" Calculate the total trading quantity of Abraham sold to Aaron Alexander.,SELECT SUM(T2.Quantity) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID WHERE T2.SalesPersonID = 1 AND T1.FirstName = 'Aaron' AND T1.LastName = 'Alexander' AND T3.FirstName = 'Abraham' What was the claim ID for the earliest claim?,SELECT Claim_ID FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1 What Country's team is Rajasthan Royals at the 2008 Indian Premier League?,"SELECT country FROM table_name_87 WHERE domestic_tournament = ""2008 indian premier league"" AND team = ""rajasthan royals""" Find the name of product that is produced by both companies Creative Labs and Sony.,SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' "What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?","SELECT opponents_in_the_final FROM table_name_84 WHERE score = ""4-1 5-4 (7) 4-2""" What are the name and results of the battles when the bulgarian commander is not 'Boril',"SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'" "What is the average Silver, when Gold is less than 0?",SELECT AVG(silver) FROM table_name_47 WHERE gold < 0 How many books under 300 pages has HarperCollins Publishers published?,SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'HarperCollins Publishers' AND T1.num_pages < 300 What is the name of the owner of rock 97.7?,"SELECT owner FROM table_name_38 WHERE branding = ""rock 97.7""" "Which professional did not operate any treatment on dogs? List the professional's id, role and email.","SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id" What are the document ids for the budget type code 'SF'?,SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF' Find the name of captains whose rank are either Midshipman or Lieutenant.,SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant' What country had a paste publication in 2009?,"SELECT country FROM table_name_9 WHERE year = 2009 AND publication = ""paste""" What is the Senators' division record?,"SELECT division_record FROM table_name_39 WHERE team = ""senators""" When 24th is the final placing how many wins are there?,"SELECT COUNT(wins) FROM table_26815674_1 WHERE final_placing = ""24th""" What is the pole position of the Belgian Grand Prix?,"SELECT pole_position FROM table_name_27 WHERE grand_prix = ""belgian grand prix""" Who has less than 3 lanes for France?,"SELECT name FROM table_name_88 WHERE nationality = ""france"" AND lane < 3" What is the engine for the bmw motorsport entrant with 123 points before 2004?,"SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = ""bmw motorsport"" AND points = 123" Calculate the average rent amount paid by the customer with customer id 15.,SELECT AVG(amount) FROM payment WHERE customer_id = 15 What are their names?,"select lname,fname from student where stuid in ( select stuid from member_of_club group by stuid having count ( * ) = 1 ) " Round 1 is in what circuit?,"SELECT circuit FROM table_26267607_2 WHERE round = ""1""" Who won the womens singles when Marc Zwiebler won the men's singles?,"SELECT womens_singles FROM table_12121208_1 WHERE mens_singles = ""Marc Zwiebler""" What is the abbreviation of the airilne has the fewest flights and what country is it in?,"SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1" What was the engine class that was built on 1906-08?,"SELECT class FROM table_25695027_1 WHERE years_built = ""1906-08""" "Name the number of high rebounds for united center 19,335","SELECT COUNT(high_rebounds) FROM table_22669044_9 WHERE location_attendance = ""United Center 19,335""" What was the record when chicago was the home team?,"SELECT record FROM table_name_63 WHERE home = ""chicago""" How many work orders with quantities ranging from 100 to 250 have a reorder point of no more than 375?,SELECT COUNT(T1.TransactionID) FROM TransactionHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Quantity BETWEEN 100 AND 250 AND T2.ReorderPoint <= 375 Who directed the film with the title three summer days?,"SELECT director FROM table_22265716_1 WHERE film_title_used_in_nomination = ""Three Summer Days""" Can you give me the apartment ids for the same list?,"SELECT T1.apt_id FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = ""Female""" What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.,"SELECT T1.cmi_cross_ref_id , T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING count(*) >= 1" What is the defending forces when Al-Murassas shows for name?,"SELECT defending_forces FROM table_name_21 WHERE name = ""al-murassas""" Name the opponent for may 12,"SELECT opponent FROM table_name_73 WHERE date = ""may 12""" Show the membership level with most number of members.,SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1 What is the game with the golden state warriors?,"SELECT game FROM table_name_37 WHERE team = ""golden state warriors""" Which Player has a School/Club Team of Illinois?,"SELECT player FROM table_name_5 WHERE school_club_team = ""illinois""" What is the rank of the time of 6:30.53?,"SELECT COUNT(rank) FROM table_name_89 WHERE time = ""6:30.53""" "What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?","SELECT AVG(episode) AS number FROM table_name_96 WHERE original_airdate = ""march 21, 2010"" AND season < 3" What is the lowest attendance that East End Park has ever had?,"SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = ""East End Park""" what is the rank when bronze is less than 1 and silver is less than 1?,SELECT rank FROM table_name_52 WHERE bronze < 1 AND silver < 1 Please show the most common occupation of players.,SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1 "What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0",SELECT COUNT(industrial_and_commercial_panel) FROM table_name_45 WHERE labour_panel > 1 AND nominated_by_the_taoiseach < 11 AND cultural_and_educational_panel < 0 What project has the most staff?,SELECT project_id from Project_Staff group by project_id order by count ( staff_id ) DESC limit 1 Which positions have made 4 touchdowns?,SELECT position FROM table_14342592_5 WHERE touchdowns = 4 "How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws?",SELECT SUM(goals_conceded) FROM table_name_16 WHERE points > 58 AND wins < 27 AND draws < 1 Find the SSN and name of scientists who are assigned to the project with the longest hours.,"SELECT T3.ssn , T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects)" How many car numbers were listed for Rusty Wallace?,"SELECT COUNT(car__number) FROM table_1769428_2 WHERE winning_driver = ""Rusty Wallace""" What team plays at home at Windy Hill?,"SELECT home_team FROM table_name_28 WHERE venue = ""windy hill""" "Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?","SELECT tv_season FROM table_name_61 WHERE season < 8 AND households__in_millions_ = ""15.92 (17.1 rating)""" "Please list all the links to the ratings on the movie ""A Way of Life"" with a critic.",SELECT T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.critic IS NOT NULL How many eastbound trains have rectangular-shaped head cars?,SELECT COUNT(T.train_id) FROM (SELECT T1.train_id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T2.direction = 'east' AND T1.shape = 'rectangle' GROUP BY T1.train_id)as T What was the background of the contestant whose result was 11th place?,"SELECT background FROM table_19810459_1 WHERE result = ""11th place""" When tracy mcgrady (8) is leading in assists what is the date?,"SELECT date FROM table_17288825_6 WHERE high_assists = ""Tracy McGrady (8)""" What years did two or more churches open in?,SELECT open_date FROM church GROUP BY open_date HAVING count ( * ) > = 2 How many companies operates airlines in each airport?,"SELECT T3.id , count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id" Which breed do the most dogs have? Give me the breed name.,SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1 What is the opening time of the active businesses in Surprise that has a low review count.,SELECT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city LIKE 'Surprise' AND T1.active LIKE 'TRUE' AND T1.review_count LIKE 'Low' GROUP BY T2.opening_time WHAT OPPONENT HAD A SCORE OF 5:5?,"SELECT opponent FROM table_name_47 WHERE score = ""5:5""" What is the used id 1? | Do you mean what is the name of the user with id 1? | yes,SELECT name FROM useracct WHERE u_id = 1 What is the name of that airline?,SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count ( * ) DESC LIMIT 1 Which students are unaffected by allergies?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy "Of all the nonessential genes that are not of the motorprotein class and whose phenotype is cell cycle defects, how many do not have a physical type of interaction?",SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Type != 'Physical' AND T1.Phenotype = 'Cell cycle defects' AND T1.Class != 'Motorproteins' AND T1.Essential = 'Non-Essential' What is the name of tracks whose genre is Rock?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock"";" "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?","SELECT Adults FROM Reservations WHERE CheckIn = ""2010-10-23"" AND FirstName = ""CONRAD"" AND LastName = ""SELBIG"";" Okay. How many had jobs in the past?,SELECT count ( * ) FROM employees WHERE employee_id IN ( SELECT employee_id FROM job_history ) "What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?",SELECT MIN(bronze) FROM table_name_63 WHERE gold > 0 AND total = 36 AND silver > 11 What years had a ranking of 1?,SELECT years FROM table_name_99 WHERE ranking = 1 Where are they located?,"SELECT T2.Shop_Name,Location FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT ( * ) DESC LIMIT 1" "Among the active businesses in Arizona, how many businesses work after 12PM?",SELECT COUNT(DISTINCT T2.business_id) FROM Business_Hours AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.active = 'true' AND T2.state = 'AZ' AND T1.opening_time > '12PM' What is the position of the team player from Aik?,"SELECT position FROM table_name_69 WHERE team_from = ""aik""" What are the clubs with 46 matches?,SELECT clubs FROM table_name_57 WHERE matches = 46 Name the cyrillic name for lazarevo,"SELECT cyrillic_name_other_names FROM table_2562572_35 WHERE settlement = ""Lazarevo""" What is the Country of the Player in Place 1?,"SELECT country FROM table_name_39 WHERE place = ""1""" Calculate the percentage of American cars among all cars.,SELECT CAST(SUM(CASE WHEN T3.country = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country What is the name of the department with the most credits?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1 Show the names of editors that are on at least two journal committees.,SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2 How many weapons violation crimes have occurred in the Calumet district?,SELECT SUM(CASE WHEN T3.district_name = 'Calumet' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'WEAPONS VIOLATION' What department does employee 163 work under?,SELECT department_id FROM employees WHERE employee_id = 163 the episode directed by art dielhenn was what number in the series? ,"SELECT no_in_series FROM table_2818164_8 WHERE directed_by = ""Art Dielhenn""" What away has toronto downtown dingos as the home?,"SELECT away FROM table_name_71 WHERE home = ""toronto downtown dingos""" how many times is the building type residential and the locale yashodham?,"SELECT COUNT(sr_no) FROM table_name_22 WHERE building_type = ""residential"" AND locale = ""yashodham""" Which Height has a Player of mike bibby?,"SELECT height FROM table_name_43 WHERE player = ""mike bibby""" Which character won before 2006?,"SELECT character FROM table_name_44 WHERE result = ""won"" AND year < 2006" What is the original date of the repeat air date of 26/01/1969?,"SELECT originalairdate FROM table_13403120_1 WHERE repeatairdate_s_ = ""26/01/1969""" How many different types of transactions are there?,SELECT count(DISTINCT transaction_type) FROM Financial_Transactions what is the age of George Gilchrist,"SELECT age FROM journalist WHERE Name = ""George Gilchrist""" Find all the distinct district names ordered by city area in descending.,SELECT DISTINCT District_name FROM district ORDER BY city_area DESC What was the population of the area that was formerly under the authority of the Audenshaw Urban District?,"SELECT population FROM table_name_65 WHERE former_local_authority = ""audenshaw urban district""" What is the care plan for the patient with social security number 999-15-3685?,SELECT DISTINCT T1.DESCRIPTION FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.ssn = '999-15-3685' What is bool's attribute name? | Do you mean the attribute names for attributes whose attribute data type is bool? | Yes please,"SELECT attribute_name FROM Attribute_Definitions WHERE attribute_data_type = ""Bool""" "Finally, could you add the average booked count for the products?","SELECT max ( booked_count ) , min ( booked_count ) , avg ( booked_count ) FROM products_booked" What team did the suns play on April 21? ,"SELECT team FROM table_29997127_4 WHERE date = ""April 21""" What is the average number of book pages written by Zilpha Keatley Snyder?,SELECT AVG(T3.num_pages) FROM book_author AS T1 INNER JOIN author AS T2 ON T1.author_id = T2.author_id INNER JOIN book AS T3 ON T3.book_id = T1.book_id WHERE T2.author_name = 'Zilpha Keatley Snyder' How many schools are in Walkerton?,"select count ( * ) from school where location = ""Walkerton""" How many points for when the points was 53?,"SELECT points_for FROM table_13564637_4 WHERE points = ""53""" What is the rating of the season 10?,"SELECT rating FROM table_name_12 WHERE season = ""season 10""" What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less?,SELECT AVG(heat) FROM table_name_97 WHERE rank = 34 AND time < 49.49 Which Points difference has Points against of 786?,"SELECT points_difference FROM table_name_20 WHERE points_against = ""786""" What was the maximum number of wins?,SELECT MAX(wins) FROM table_22081847_1 Name the record with result of w 13-11,"SELECT record FROM table_name_51 WHERE result = ""w 13-11""" What Location Attendance has a Game of 4?,"SELECT location_attendance FROM table_name_9 WHERE game = ""4""" Provide the publisher name of the book with ISBN 76092025986.,SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.isbn13 = 76092025986 Show project ids and the number of documents in each project.,"SELECT project_id , count(*) FROM Documents GROUP BY project_id" Who was placed third when the ruuner up was Guangzhou Apollo?,"SELECT third_place FROM table_17632217_2 WHERE runners_up = ""Guangzhou Apollo""" Name the hdtv for sky famiglia and dar 16:9 for mydeejay,"SELECT hdtv FROM table_15887683_10 WHERE package_option = ""Sky Famiglia"" AND dar = ""16:9"" AND television_service = ""myDeejay""" What is the loan start source when the loan club is fulham?,"SELECT start_source FROM table_name_42 WHERE loan_club = ""fulham""" How many French customers does Gerard Hernandez take care of?,SELECT COUNT(t1.customerNumber) FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t1.country = 'France' AND t2.firstName = 'Gerard' AND t2.lastName = 'Hernandez' "How many kinds of violations did ""Stacks Restaurant"" have on 2016/10/4?",SELECT COUNT(DISTINCT T1.violation_type_id) FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Stacks Restaurant' AND T1.`date` = '2016-10-04' What is the earliest April date with a game less than 76?,SELECT MIN(april) FROM table_name_10 WHERE game < 76 In which region were the assistant location managers born?,SELECT T2.birth_region FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.role = 'president of NBC West Coast' "What is the incident type description for the incident type with code ""VIOLENCE""?","SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = ""VIOLENCE""" State top 3 emails of UK Sales Rep who have the highest credit limit.,"SELECT T2.email FROM customers AS T1 INNER JOIN employees AS T2 ON T1.salesRepEmployeeNumber = T2.employeeNumber WHERE T2.jobTitle = 'Sales Rep' AND T1.country = 'UK' GROUP BY T1.customerName, T2.email ORDER BY SUM(T1.creditLimit) DESC LIMIT 3" Can you also add the name associated with that people id into the table?,"SELECT people_id, name, weight from people order by weight desc limit 1" Find the number of users in each role.,"SELECT count(*) , role_code FROM users GROUP BY role_code" What is the total 1961 number of the plandište Macedonian population with a 1981 value greater than 1027?,"SELECT COUNT(1961) FROM table_name_47 WHERE macedonian_population_in_vojvodina = ""plandište"" AND 1981 > 1027" What is the number of employees from each city?,"SELECT count(*) , city FROM employee GROUP BY city" What is the gender of the youngest user?,SELECT gender FROM gender_age WHERE age = ( SELECT MIN(age) FROM gender_age ) "Out of those games, how many of them were played in Columbia Park? | Did you mean how many games were played in park ""Columbia Park"" in 1907 | Yes please.",SELECT count ( * ) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park' What is the internet when the position is more than 13?,SELECT internet FROM table_name_12 WHERE position > 13 What is the average height of player who were born in 1990 and after? Compare the average height with players who were born before 1990.,"SELECT AVG(IIF(birthYear < 1990, height, NULL)) - AVG(IIF(birthYear >= 1990, height, NULL)) FROM Master" What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?,"SELECT MIN(year) FROM table_name_56 WHERE start = ""saint-gaudens"" AND stage < 15" Tell me the the date when the first claim was made.,SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1 Who was the opponent on June 29?,"SELECT opponent FROM table_name_86 WHERE date = ""june 29""" What was the record in the game where the opponent wasd the atlanta falcons?,"SELECT record FROM table_name_40 WHERE opponent = ""atlanta falcons""" In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?,"SELECT date FROM table_name_33 WHERE competition = ""1936 summer olympics"" AND score = ""6-1""" "List all the product names with the color description ""white"".","SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""white""" Wonderful! Can you show me the associated structure code for each of those document names?,SELECT document_structure_code FROM documents Whatis the number of total goals maximum?,SELECT MAX(total_goals) FROM table_10240125_2 "For each distinct product name, show its average product price.","SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name" Find the name and active to date of the customers that use email as the contact channel.,"SELECT t1.customer_name , t2.active_to_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'" Give me all the information about hiring.,SELECT * FROM hiring "How many customers with a canceled shipment have a credit limit greater than 115,000?",SELECT COUNT(T1.customerNumber) FROM customers AS T1 INNER JOIN orders AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.status = 'Cancelled' AND T1.creditLimit > 115000 What are the visit date and details of the visitor whose detail is 'Vincent'?,"SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" What is the role of K Goel in the match ID 335992?,SELECT T3.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T2.Player_Id = T1.Player_Id INNER JOIN Rolee AS T3 ON T3.Role_Id = T2.Role_Id WHERE T2.Match_Id = 335992 AND T1.Player_Name = 'K Goel' What is the city located in Bay Area of Santa Clara?,SELECT city FROM geographic WHERE region = 'bay area' AND county = 'santa clara county' Who won Miss Universe Philippines when Regina Hahn was second runner-up?,"SELECT miss_universe_philippines FROM table_name_86 WHERE second_runner_up = ""regina hahn""" What is Jake Johnson's position?,"SELECT position FROM table_name_60 WHERE players = ""jake johnson""" Who are the top 3 players in terms of overall rating?,SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3 What is the low loss total for teams with under 3 years and a less than 0.625% winning percentage?,SELECT MIN(lost) FROM table_name_44 WHERE pct < 0.625 AND years < 3 "What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?","SELECT SUM(silver) FROM table_name_19 WHERE total < ""6"" AND rank = ""6"" AND nation = ""bulgaria""" Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640,SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640 What is the most common first name of staff?,SELECT first_name FROM Staff group by first_name order by count ( * ) desc limit 1 "Among the zip code under Saint Croix county, which zip code has the biggest land area?",SELECT T1.zip_code FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'SAINT CROIX' ORDER BY T2.land_area DESC LIMIT 1 What is the greatest goals for Curtis Davies if ends is greater than 2012?,"SELECT MAX(goals) FROM table_name_9 WHERE name = ""curtis davies"" AND ends > 2012" "Who directed the episode that aired on July 29, 2011?","SELECT directed_by FROM table_18424435_5 WHERE us_air_date = ""July 29, 2011""" what is the time/retired when the grid is less than 3 and 45 laps?,SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45 What are the highest recorded attendance rates of the stadiums with an average attendance of 4752?,SELECT highest FROM table_11208143_9 WHERE average = 4752 What was the result of the election featuring incumbent norman sisisky?,"SELECT results FROM table_1341423_46 WHERE incumbent = ""Norman Sisisky""" what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?,"SELECT SUM(rank) FROM table_name_3 WHERE sites > 62 AND circuit = ""cineplex entertainment""" "ok,show the count of all room",SELECT count ( DISTINCT room ) FROM Reservations How many female students have milk or egg allergies?,"SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = ""F"" AND T1.allergy = ""Milk"" OR T1.allergy = ""Eggs""" Show all locations with only 1 station.,SELECT LOCATION FROM station GROUP BY LOCATION HAVING COUNT(*) = 1 "What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?","SELECT magnitude FROM table_name_67 WHERE epicenter = ""vrancea county"" AND intensity = ""unknown"" AND time__utc_ = ""06:36""" What is the position for the Rockets years of 2004-05?,"SELECT position FROM table_name_75 WHERE years_for_rockets = ""2004-05""" What is the role of the aircraft that has a registration of s5-hpb?,"SELECT role FROM table_name_51 WHERE registration = ""s5-hpb""" List the names of all songs that have 4 minute duration or are in English.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""4:%"" UNION SELECT song_name FROM song WHERE languages = ""english""" Name the Venue which has a Position of 5th?,"SELECT venue FROM table_name_39 WHERE position = ""5th""" What was the nationality of every player that attended Baylor?,"SELECT nationality FROM table_name_55 WHERE school_country = ""baylor""" How much in total does customer with first name as Carole and last name as Bernhard paid?,"SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Carole"" AND T2.last_name = ""Bernhard""" Find the number of distinct amenities.,SELECT COUNT(*) FROM dorm_amenity show me the price of the rooms also,"SELECT roomName, decor, basePrice FROM Rooms WHERE bedtype = 'King'" What is the attendance of tie no. 23?,"SELECT attendance FROM table_name_34 WHERE tie_no = ""23""" What is the list of program origins ordered alphabetically?,SELECT origin FROM program ORDER BY origin Show the headquarters shared by more than two companies.,SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 2 "List the ids, names and market shares of all browsers.","SELECT id , name , market_share FROM browser" List all the animation titles.,SELECT T3.title AS per FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T2.name = 'Animation' List all open years when at least two shops are opened.,SELECT open_year FROM branch GROUP BY open_year HAVING count(*) >= 2 What is the score of the game with Pacers as the Visitor?,"SELECT score FROM table_name_32 WHERE visitor = ""pacers""" What are the names of all the persons who are friends with Alice?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' Which opponent had the result of W 24-14?,"SELECT opponent FROM table_name_64 WHERE result = ""w 24-14""" What was the Pure Church of Christ's Split off/ Continuation?,"SELECT split_off___continuation_of FROM table_name_40 WHERE church_name = ""pure church of christ""" Visitor of minnesota has what average attendance?,"SELECT AVG(attendance) FROM table_name_30 WHERE visitor = ""minnesota""" How many players are there?,SELECT count(*) FROM players "Tell me what was commissioned december 30, 1965","SELECT commissioned FROM table_name_12 WHERE launched = ""december 30, 1965""" List the power output for Phoenix. ,"SELECT power__kw_ FROM table_2523809_1 WHERE coverage = ""Phoenix""" How many people did not enjoy the finale episode?,SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode = 24 AND T2.stars = 1 What is the color of the grape whose wine products has the highest average price?,SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1 what is the position of Pedro Álvarez,"SELECT Position FROM player WHERE Player = ""Pedro Álvarez""" How many chassis used number 34?,SELECT COUNT(chassis) FROM table_15491596_1 WHERE no = 34 What position does Maryland have a player for Round 3?,"SELECT position FROM table_name_81 WHERE school_club_team = ""maryland"" AND round = 3" Who played Lily Cahill in the Australian 2012 production?,"SELECT australian_cast, _2012 FROM table_29289213_1 WHERE character = ""Lily Cahill""" "What is Season, when # Of Episodes is ""10"", and when Date Released is ""1 April 2010""?","SELECT season FROM table_name_97 WHERE _number_of_episodes = 10 AND date_released = ""1 april 2010""" "What is the lowest rank for Andre Vonarburg, when the notes are FB?","SELECT MIN(rank) FROM table_name_54 WHERE notes = ""fb"" AND athlete = ""andre vonarburg""" "Return the themes of farm competitions, sorted by year ascending.",SELECT Theme FROM farm_competition ORDER BY YEAR ASC What is the brand name for the antibody Brentuximab Vedotin?,"SELECT brand_name FROM table_1661124_1 WHERE antibody = ""Brentuximab vedotin""" What is the average number of dishes per menu page of menu ID12882?,SELECT CAST(COUNT(dish_id) AS REAL) / COUNT(T3.page_count) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id WHERE T2.menu_id = 12882 "Show all paragraph texts for the document ""Customer reviews"".","SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = ""Customer reviews""" Give the title of the course offered in Chandler during the Fall of 2010.,SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010 "Among the top 5 heaviest shipments, how many shipments were transported via Mack?",SELECT COUNT(T2.ship_id) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Mack' ORDER BY T2.weight DESC LIMIT 1 What is the number of the apartment with the greatest number of bedrooms?,SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1 How many female competitors were from Iran?,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 = 'Iran' AND T3.gender = 'F' What is the credit card type used by Kenneth Walton?,SELECT DISTINCT T2.CreditCardType FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Kenneth' AND T1.Last = 'Walton' What structure is in Chile?,"SELECT structure FROM table_name_88 WHERE country = ""chile""" What is the lowest rank of the athlete with a taijiquan greater than 9.42 and a 19.02 total?,SELECT MIN(rank) FROM table_name_89 WHERE taijiquan > 9.42 AND total = 19.02 What is the total number of word cited under that class labelled 'AI'?,SELECT COUNT(DISTINCT T2.word_cited_id) FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI' Write all the review content belonging to StormCast: The Official Warhammer Age of Sigmar Podcast.,SELECT content FROM reviews WHERE podcast_id = ( SELECT podcast_id FROM podcasts WHERE title = 'StormCast: The Official Warhammer Age of Sigmar Podcast' ) What about the other artist?,"select count ( * ) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.artist_name = ( SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" and T1.artist_name ! = ""Enrique"" GROUP BY T2.artist_name HAVING count ( * ) > = 1 ) " Find the common login name of course authors and students.,SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students What is the region for the album with a catalog number of 7567-83061-2?,"SELECT region FROM table_name_60 WHERE catalog__number = ""7567-83061-2""" Thank you. Can you also show me the statement detail for the statement with the most number of accounts?,"SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count ( * ) DESC LIMIT 1" I want the displacement for version of db,"SELECT displacement FROM table_name_28 WHERE version = ""db""" When koki mizuno is the player how man positions are there?,"SELECT COUNT(position) FROM table_18254488_2 WHERE player = ""Koki Mizuno""" When was the park demolished in 1994 closed?,SELECT MIN(closed) FROM table_1987995_5 WHERE demod = 1994 What is the Home team at the Blackburn Rovers Away game?,"SELECT home_team FROM table_name_70 WHERE away_team = ""blackburn rovers""" "Which Date had an Outcome of runner-up, and a Surface of carpet?","SELECT date FROM table_name_85 WHERE outcome = ""runner-up"" AND surface = ""carpet""" Who was the runner-up with the margin of victory of 8 strokes?,"SELECT runner_s__up FROM table_name_6 WHERE margin_of_victory = ""8 strokes""" What is the Place of the Player with a To par of –1?,"SELECT place FROM table_name_61 WHERE to_par = ""–1""" "What is Syracuse, when Utica is Union Springs Shale And Limestone, and when Rochester is Union Springs Shale And Limestone?","SELECT syracuse FROM table_name_20 WHERE utica = ""union springs shale and limestone"" AND rochester = ""union springs shale and limestone""" "Show the distinct fate of missions that involve ships with nationality ""United States""","SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Nationality = ""United States""" Which cities' temperature in March is lower than that in July or higher than that in Oct?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct "Among the movies from France, how many of them are drama?",SELECT COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'France' AND T1.genre = 'drama' What is the place of the player who scored less than 70?,SELECT place FROM table_name_96 WHERE score < 70 How many publications were published in relation to the conference 'Adaptive Multimedia Retrieval' in 2007?,SELECT COUNT(T2.ConferenceId) FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Adaptive Multimedia Retrieval' AND T2.Year = 2007 What are the instructors name for each of those ids the are advising more than one student?,SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count ( * ) > 1 Name the awardee for tingya,"SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = ""Tingya""" Can you sort the list to show only the 3 highest base prices?,SELECT basePrice FROM Rooms ORDER BY basePrice DESC LIMIT 3 "Who was the opponent in the mallorca 2, spain tournament?","SELECT opponent FROM table_name_54 WHERE tournament = ""mallorca 2, spain""" "how many varsity teams are in west roxbury, ma?","SELECT MAX(varsity_teams) FROM table_2439728_1 WHERE location = ""West Roxbury, MA""" What are the titles of all the albums by artist id 4?,SELECT Title FROM ALBUM where ArtistId = 4 Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?,"SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = ""Mike Milbury"" AND ice_level_reporters = ""Darren Pang""" Which kind of part has the least number of faults? List the part name.,SELECT T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY COUNT(*) LIMIT 1 Name the written by for production code 4g07,"SELECT written_by FROM table_20967430_2 WHERE prod_code = ""4G07""" "The prize of £1,000,000 was given by an event in what city?","SELECT city FROM table_name_56 WHERE prize = ""£1,000,000""" Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert?,"SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = ""joseph planckaert""" Names of headquarters that have at least two companies?,SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT ( * ) > = 2 Show the host names for parties with number of hosts greater than 20.,SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 What are the id and name of the photos for mountains?,"SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000" Who is the television commentator when the spokesperson is Kateryna Osadcha?,"SELECT television_commentator FROM table_1998037_9 WHERE spokesperson = ""Kateryna Osadcha""" what is the address of customer id 2?,SELECT customer_address from Customers where customer_id = 2 Which Rank has an Opposition of limerick?,"SELECT rank FROM table_name_12 WHERE opposition = ""limerick""" Select the name and price of the cheapest product.,"SELECT name , price FROM Products ORDER BY price ASC LIMIT 1" "How many pick #'s have james britt as the name, with a round greater than 2?","SELECT COUNT(pick__number) FROM table_name_91 WHERE name = ""james britt"" AND round > 2" What is the name of the location that has more than one gas station?,SELECT LOCATION FROM gas_station GROUP BY LOCATION having count ( * ) > 1 How many songs have a shared vocal?,"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""shared""" "Clerk#000000936 dealt with a ""Not Specified"" order on 1995/3/13, what was the charge for the part of the order shipped by truck?",SELECT T2.l_extendedprice * (1 - T2.l_discount) * (1 + T2.l_tax) AS num FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_clerk = 'Clerk#000000936' AND T2.l_shipmode = 'TRUCK' AND T1.o_orderstatus = '4-NOT SPECIFIED' AND T1.o_orderdate = '1995-03-13' Who is the host on the series aired on 18 January 2012?,"SELECT host_s_ FROM table_27487310_5 WHERE air_dates = ""18 January 2012""" Tell me the Lieutenant Governor name for the year 1998 ?,"SELECT Lieutenant_Governor FROM party WHERE year = ""1998.0""" What was the flyers' record when the visitors were florida?,"SELECT record FROM table_name_63 WHERE visitor = ""florida""" What is the Latin term for the Greek symbol μ?,"SELECT latin FROM table_name_80 WHERE greek = ""μ""" When did woking compete?,"SELECT date FROM table_name_92 WHERE opponent = ""woking""" Which player went to college at Saint Mary's?,"SELECT player FROM table_10812938_3 WHERE college = ""Saint Mary's""" List the names of entrepreneurs and their companies in descending order of money requested?,"SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested" Which leagues entered in rounds where there were 16 winners from the previous round?,"SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE winners_from_previous_round = ""16""" What was the first year to have a Chassis of Jordan 193?,"SELECT MIN(year) FROM table_name_89 WHERE chassis = ""jordan 193""" How many publishers have published more than 3 puzzle games?,"SELECT COUNT(T.publisher_name) FROM ( SELECT T3.publisher_name, COUNT(DISTINCT T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' GROUP BY T3.publisher_name HAVING COUNT(DISTINCT T1.id) > 3 ) t" What's the Finish rank of 31?,"SELECT finish FROM table_name_71 WHERE rank = ""31""" "What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?","SELECT SUM(games) FROM table_name_30 WHERE Pwin_percentage = — AND term_[c_] = ""1987–1988"" AND win_percentage < 0.506" "What is the type earlier than 1968, and a Title of stretchin' out?","SELECT type FROM table_name_42 WHERE year < 1968 AND title = ""stretchin' out""" "Which lowest played has a Position of 2, and Goals against larger than 53?",SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53 Calculate the average number of current male legislators who chose Democrat from 2000 until 2021.,SELECT CAST(COUNT(T1.bioguide_id) AS REAL) / 22 FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND CAST(T2.start AS DATE) >= 2000 AND CAST(T2.END AS DATE) <= 2021 AND T2.party = 'Democrat' Who is the oldest person whose job is student?,SELECT name FROM Person WHERE job = 'student' AND age = (SELECT MAX(age) FROM person WHERE job = 'student') How about in CV?,"SELECT count ( * ) FROM Documents where Document_Type_Code = ""CV""" What's the smallest track written by dennis linde that's 2:50 minutes long,"SELECT MIN(track) FROM table_name_37 WHERE writer_s_ = ""dennis linde"" AND time = ""2:50""" What is the cardinalatial order of the elector elevated circa 1116?,"SELECT cardinalatial_order_and_title FROM table_name_26 WHERE elevated = ""circa 1116""" State the team id which has the highest rank in the list?,select team_id from team order by rank limit 1 "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.","SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000" Which event names were used more than twice for party events?,SELECT event_name FROM party_events GROUP BY event_name HAVING count(*) > 2 What is the name on the Republican ticket when the Socialist ticket was louis waldman?,"SELECT republican_ticket FROM table_name_17 WHERE socialist_ticket = ""louis waldman""" Hi! May i ask how many total games were played?,SELECT count ( * ) FROM game What is the nationality of th player who's school is Clemson?,"SELECT nationality FROM table_15621965_16 WHERE school_club_team = ""Clemson""" "What championship had a final score of 6–4, 6–2, 6–2?","SELECT championship FROM table_22839669_1 WHERE score_in_the_final = ""6–4, 6–2, 6–2""" If the aircraft was ussr mig-25 rb how many were destroyed?,"SELECT destroyed FROM table_1817852_1 WHERE aircraft = ""USSR MiG-25 RB""" Who were the opponents during game 30?,SELECT opponent FROM table_name_82 WHERE game = 30 Name the year for jerry sichting,"SELECT year FROM table_name_26 WHERE color_commentator_s_ = ""jerry sichting""" What is the lowest Perigee with a Launch date of 1970-08-26?,"SELECT MIN(perigee__km_) FROM table_name_30 WHERE launch_date = ""1970-08-26""" "What are the names of the three artists who have produced the most songs, and how many works did they produce?","SELECT T1.artist_name , count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3" What is Alice friend name?,SELECT friend from personfriend where name = 'Alice' List the state in the US with the most invoices.,"SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;" Please list director IDs who have the quality of at least 3 and have made at least 2 different genres of movies.,SELECT T1.directorid FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality >= 3 GROUP BY T1.directorid HAVING COUNT(T2.movieid) >= 2 Which team played on April 9?,"SELECT team FROM table_27744976_11 WHERE date = ""April 9""" How many services has each resident requested,"SELECT T1.resident_id ,count ( * ) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id" "Which Opponent has Attendances of 60,594?","SELECT opponent FROM table_name_34 WHERE attendance = ""60,594""" Who has rank 5?,SELECT name FROM table_name_23 WHERE rank = 5 What is the lowest ranking team in Australia?,"SELECT MIN(rank) FROM table_name_57 WHERE country = ""australia""" Which city has most population other than its capital in Bangladesh?,SELECT T3.Name FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T1.Name = 'Bangladesh' AND T3.Name <> T1.Capital ORDER BY T3.Population DESC LIMIT 1 Could you please find the products with the pages per minute color smaller than 5?,SELECT product FROM product WHERE pages_per_minute_color < 5 Show all locations and the number of gas stations in each location ordered by the count.,"SELECT LOCATION , count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)" Show different carriers of phones together with the number of phones with each carrier.,"SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier" What's the voltage for the pentium dual-core e2140?,"SELECT voltage FROM table_name_49 WHERE model_number = ""pentium dual-core e2140""" "Among the coaches who have served more than 2 NBA teams, during which coach's period of coaching, a team has the least numbers of games lost in the post-season games?",SELECT coachID FROM coaches WHERE lgID = 'NBA' AND post_wins != 0 AND post_losses != 0 AND coachID IN ( SELECT coachID FROM coaches WHERE lgID = 'NBA' GROUP BY coachID HAVING COUNT(tmID) > 2 ) ORDER BY post_losses ASC LIMIT 1 "Among the students enrolled in UCLA, what is the percentage of male students in the air force department?",SELECT CAST(COUNT(T4.name) AS REAL) * 100 / COUNT(T2.name) FROM enlist AS T1 INNER JOIN person AS T2 ON T1.name = T2.name INNER JOIN enrolled AS T3 ON T3.name = T2.name LEFT JOIN male AS T4 ON T2.name = T4.name WHERE T3.school = 'ucla' AND T1.organ = 'air_force' "How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?","SELECT SUM(poles) FROM table_name_39 WHERE class = ""125cc"" AND team = ""matteoni racing team"" AND points > 3" What ship has a pennant number h05?,"SELECT ship FROM table_name_89 WHERE pennant_number = ""h05""" "Name the high assists for madison square garden 19,763 and record is 39–38","SELECT high_assists FROM table_27713583_11 WHERE location_attendance = ""Madison Square Garden 19,763"" AND record = ""39–38""" "What is his address, please?","SELECT address FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida""" find the code of the country where has the greatest number of players.,SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1 "What is the template type descriptions for template type code ""AD"".","SELECT template_type_description FROM Ref_template_types WHERE template_type_code = ""AD""" what is the position for the competitor that has a score more than 7,SELECT position FROM table_name_44 WHERE a_score > 7 "Among the Ivy League Schools, which school have the highest number of Hispanic graduates of all time?","SELECT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname IN ( 'Brown University', 'Columbia University', 'Cornell University', 'Dartmouth College', 'Harvard University', 'Princeton University', 'University of Pennsylvania', 'Yale University' ) AND T2.race = 'H' GROUP BY T1.chronname ORDER BY SUM(T2.grad_cohort) DESC LIMIT 1" how many programs are there?,SELECT count(*) FROM program What Shooter has a Total of 28?,"SELECT shooter FROM table_name_9 WHERE total = ""28""" How many years did BBC One rank 20th?,"SELECT COUNT(year) FROM table_103084_4 WHERE bbc_one_rank = ""20th""" Find the names of all instructors in Comp. Sci. department with salary > 80000.,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 What's the number of infant mortality in Switzerland in a year?,SELECT T2.Infant_Mortality * T1.Population * T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland' What is the ratio for subscriber to customer given that the starting and the ending stations is 2nd at South Park?,"SELECT CAST(SUM(IIF(subscription_type = 'Subscriber', 1, 0)) AS REAL) / SUM(IIF(subscription_type = 'Customer', 1, 0)) FROM trip WHERE start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'" "List all the actors who have played characters with ""captain"" in their names.",SELECT DISTINCT T1.person_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T2.character_name LIKE '%captain%' how many district there,SELECT count ( * ) FROM district What catalogue has a length of 2:10?,"SELECT catalogue FROM table_name_82 WHERE time = ""2:10""" What is the lowest top-5 of the tournament with less than 1 top-10 and less than 1 top-25?,SELECT MIN(top_5) FROM table_name_74 WHERE top_10 < 1 AND top_25 < 1 What is the average and maximum age for each pet type?,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype" Give the total number of all graduated students from a 2-year public schools in Alabama in 2011.,SELECT SUM(T2.grad_cohort) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.state = 'Alabama' AND T2.year = 2011 AND T1.level = '2-year' AND T1.control = 'Public' AND T2.race = 'X' When did Ismail Qemali Bej's term start?,"SELECT term_start FROM table_name_61 WHERE name = ""ismail qemali bej""" what is the place for ireland?,"SELECT place FROM table_name_64 WHERE country = ""ireland""" What was the overall score when the score for set 3 is 21–25?,"SELECT score FROM table_name_55 WHERE set_3 = ""21–25""" "What is the Speed when Construction begun in 2010, and an Expected start of revenue services of 2015?","SELECT speed FROM table_name_3 WHERE construction_begun = ""2010"" AND expected_start_of_revenue_services = 2015" When did South Melbourne play as the home team?,"SELECT date FROM table_name_66 WHERE home_team = ""south melbourne""" What was the highest pick for a player from a school or club team of Arkansas?,"SELECT MAX(pick) FROM table_name_9 WHERE school_club_team = ""arkansas""" How many fault status codes are recorded in the fault log parts table?,SELECT DISTINCT fault_status FROM Fault_Log_Parts "Return the distinct name of customers whose order status is Pending, in the order of customer id.","SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""Pending"" ORDER BY T2.customer_id" How many different female users have rated movies from France?,SELECT COUNT(DISTINCT T2.userid) FROM users AS T1 INNER JOIN u2base AS T2 ON T1.userid = T2.userid INNER JOIN movies AS T3 ON T2.movieid = T3.movieid WHERE T1.u_gender = 'F' AND T3.country = 'France' "Among the actors who acted in UK movies, what percentage of actors received a rating of at least 3?","SELECT CAST(SUM(IIF(T3.a_quality >= 3, 1, 0)) AS REAL) * 100 / COUNT(T1.movieid) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid WHERE T1.country = 'UK'" What was the score with a 16–14–6 record?,"SELECT score FROM table_name_37 WHERE record = ""16–14–6""" How many different colleges are there?,SELECT count(*) FROM College "What is the long title of the Shakespeare's work with Act 4 Scene 5 described as ""Mytilene. A street before the brothel.""?",SELECT T1.LongTitle FROM works AS T1 RIGHT JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Description = 'Mytilene. A street before the brothel.' Find the names of catalog entries with level number 8.,"SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" How many flights were there on 2018/8/1?,SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' Count the number of friends Kyle has.,"SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""" 4tab of commercial broadcaster Radio Tab broadcasts at what frequency?,"SELECT frequency FROM table_name_75 WHERE purpose = ""commercial"" AND on_air_id = ""radio tab"" AND callsign = ""4tab""" Show the maximum and minimum share count of different transaction types.,"SELECT transaction_type_code , max(share_count) , min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code" What is the result at match reports?,"SELECT result FROM table_name_98 WHERE location = ""match reports""" What is the location for the club trophy?,"SELECT location FROM table_name_69 WHERE type = ""club trophy""" "What are the names of the movie that was rated by the user between 1/1/2013 to 12/31/2013 by the user who created the list ""100 Greatest Living American Filmmakers""? Calculate for the average rating score of those movies in 2013.",SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists AS T3 ON T3.user_id = T1.user_id WHERE T1.rating_timestamp_utc BETWEEN '2013-01-01' AND '2013-12-31' AND T3.list_title = '100 Greatest Living American Filmmakers' What is the song name that featured Marcus Temu as the lead supporting vocalist?,"SELECT song FROM table_name_12 WHERE lead_supporting_vocal = ""marcus temu""" "Decision of parent, and a Home of philadelphia, and a Record of 20–16–7 is on what date?","SELECT date FROM table_name_23 WHERE decision = ""parent"" AND home = ""philadelphia"" AND record = ""20–16–7""" Thank you! Can you list the facility codes for each of those apartment IDs (3 4 6 11 12 13 15)?,select T2.facility_code from Apartments as T1 JOIN Apartment_Facilities as T2 ON T1.apt_id = T2.apt_id WHERE T1.bedroom_count > 4 What was the average year that Thuppakki movies came out?,"SELECT AVG(year) FROM table_name_12 WHERE movie = ""thuppakki""" Name the start with Laps of 199 with qual of 224.838,"SELECT start FROM table_name_13 WHERE laps = 199 AND qual = ""224.838""" Name the most game for w 113–96 (ot),"SELECT MAX(game) FROM table_23281862_10 WHERE score = ""W 113–96 (OT)""" Can you also show me what clubs they are in?,"SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = ""600"" GROUP BY t1.clubname" "Among all the employees, how many percent more for the publishers than designers?",SELECT CAST(SUM(CASE WHEN T2.job_desc = 'publisher' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.job_desc = 'designer' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.job_id) FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id Which gender logged in the most to an event in the first 10 days of May 2016?,"SELECT T.gender FROM ( SELECT T1.gender, COUNT(T1.device_id) AS num FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE date(T2.timestamp) BETWEEN '2016-05-01' AND '2016-05-10' GROUP BY T1.gender ) AS T ORDER BY T.num DESC LIMIT 1" "How many communes associated with over 10 cantons and an area (Square km) of 1,589?",SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 "Among all the incidents with no arrest made, what is the percentage of them having a generic description of ""BATTERY"" in the IUCR classification?",SELECT CAST(SUM(CASE WHEN T1.primary_description = 'BATTERY' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*)FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.arrest = 'FALSE' "Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?",SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62 How many points did North Melbourne score?,"SELECT home_team AS score FROM table_name_12 WHERE home_team = ""north melbourne""" Which team drafted Esa Tikkanen? ,"SELECT nhl_team FROM table_2679061_4 WHERE player = ""Esa Tikkanen""" how many viewers (m) with overall being 91/101,"SELECT COUNT(viewers__m_) FROM table_13110459_2 WHERE overall = ""91/101""" Which Advisor has most of students? List advisor and the number of students.,"SELECT Advisor , count(*) FROM Student GROUP BY Advisor ORDER BY count(Advisor) DESC LIMIT 1;" Who is Birmingham City's outgoing manager?,"SELECT outgoing_manager FROM table_name_12 WHERE team = ""birmingham city""" Which club has fewer than 40 seasons in Liga MX and 65 seasons in the top division?,SELECT club FROM table_name_32 WHERE number_of_seasons_in_liga_mx < 40 AND number_of_seasons_in_top_division = 65 "Which is the country of the city named ""Rajkot""?",SELECT T1.Country_Name FROM Country AS T1 INNER JOIN city AS T2 ON T1.Country_Id = T2.Country_Id WHERE city_name = 'Rajkot' what are the names of the payment method of customers who have both mailshot in 'Order' outcome and mailshot in 'No response' outcome.,"SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response'" How many tracks does each genre have and what are the names of the top 5?,"SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;" Show names of pilots that have more than one record.,"SELECT T2.Pilot_name, COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name HAVING COUNT(*) > 1" How many clubs are there?,SELECT count(*) FROM club Tell me the class time for class section 3 ?,SELECT CLASS_TIME FROM CLASS where CLASS_SECTION = 3 what are the details of the lots which are not used in any transactions?,SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id Which To par has a Player of momoko ueda?,"SELECT to_par FROM table_name_64 WHERE player = ""momoko ueda""" What is the smallest grid for Bob Anderson?,"SELECT MIN(grid) FROM table_name_89 WHERE driver = ""bob anderson""" What was the result of the game on week 4?,SELECT result FROM table_name_37 WHERE week = 4 I want the driver with Laps larger than 16 with a ferrari and grid less than 15,"SELECT driver FROM table_name_44 WHERE laps > 16 AND constructor = ""ferrari"" AND grid < 15" What is the engineer visit id of that fault log entry id?,SELECT T2.engineer_visit_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id where T2.fault_log_entry_id = ( SELECT T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1 ) How many buildings are in the list?,SELECT count ( DISTINCT building ) FROM classroom Where is john daly of united states from?,"SELECT place FROM table_name_77 WHERE country = ""united states"" AND player = ""john daly""" List the car's name with a price worth greater than 85% of the average price of all cars.,SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price * 100 > ( SELECT AVG(price) * 85 FROM price ) What was the winning score when the runner-up was Neal Briggs?,"SELECT winning_score FROM table_name_9 WHERE runner_s__up = ""neal briggs""" On what date did Gunnar Nilsson make the fastest lap?,"SELECT date FROM table_name_38 WHERE fastest_lap = ""gunnar nilsson""" What was the winning score of the event where Brian Kamm was the runner-up?,"SELECT winning_score FROM table_name_47 WHERE runner_s__up = ""brian kamm""" Name the Rank of Rank Mountain Peak of crested butte pb?,"SELECT rank FROM table_name_43 WHERE mountain_peak = ""crested butte pb""" How many parties have at least two records?,SELECT COUNT ( * ) FROM ( SELECT Party FROM party GROUP BY Party HAVING COUNT ( * ) > = 2 ) "List down the inspection ID with the inspector's comment ""A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED"" and inspection category of Personnel.",SELECT T2.inspection_id FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Personnel' AND T2.inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.' What was Mike Hailwood's highest laps when he had a grid more than 7?,"SELECT MAX(laps) FROM table_name_16 WHERE driver = ""mike hailwood"" AND grid > 7" In what district was John E. Miller the incumbent? ,"SELECT district FROM table_1342338_5 WHERE incumbent = ""John E. Miller""" What is the full name of the employee that inspected establishments with license 1334073?,"SELECT DISTINCT T1.first_name, T1.last_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.license_no = 1334073" How many counties have a population of 2266?,SELECT COUNT(county) FROM table_22815568_3 WHERE population = 2266 "What is the PreferredVendorStatus for the company which has the rowguid of ""684F328D-C185-43B9-AF9A-37ACC680D2AF""?",SELECT T1.PreferredVendorStatus FROM Vendor AS T1 INNER JOIN BusinessEntity AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.rowguid = '684F328D-C185-43B9-AF9A-37ACC680D2AF' What are the paper id of Gibbons?,"SELECT DISTINCT paperID FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid WHERE t1.lname = ""Gibbons""" What is the earliest year the world junior championships has 1500 m notes?,"SELECT MIN(year) FROM table_name_85 WHERE notes = ""1500 m"" AND competition = ""world junior championships""" What was the score in the final when the outcome was winner in 1989?,"SELECT score_in_the_final FROM table_23235546_1 WHERE outcome = ""Winner"" AND year = 1989" What are their majors?,SELECT T2.major FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' "What was the sum total of the region after 1976 when Mareeba had population was more than 18,212?",SELECT SUM(population__region_total_) FROM table_name_1 WHERE year > 1976 AND population__mareeba_ > 18 OFFSET 212 "For player Les Ames, what was the venue?","SELECT venue FROM table_name_29 WHERE player = ""les ames""" Please list the location and the winning aircraft name.,"SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft" "What Viewers (m) has a Rating of 1.7, and an Episode of the game of life?","SELECT MAX(viewers__m_) FROM table_name_54 WHERE rating = ""1.7"" AND episode = ""the game of life""" "Which club is located in Thomson, Victoria?","SELECT club FROM table_name_15 WHERE location = ""thomson, victoria""" What are the complaint id of client who were born in 1931?,SELECT T2.`Complaint ID` FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.year = 1931 What are their founder names?,select Name from Manufacturers List the names of players that do not have coaches.,SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach) what is the diameter (km) of the feature of latitude 23.0s,"SELECT diameter__km_ FROM table_16799784_7 WHERE latitude = ""23.0S""" What event did Mikhail Avetisyan win by method of DQ (eye gouging)?,"SELECT event FROM table_name_98 WHERE method = ""dq (eye gouging)""" How many employees have salary between 100000 and 200000?,SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000 "What country was the player, rod pampling, from who placed t10?","SELECT country FROM table_name_43 WHERE place = ""t10"" AND player = ""rod pampling""" Can you show me the carriers that have phones with memories smaller than 32?,SELECT Carrier FROM phone WHERE Memory_in_G < 32 Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)?,"SELECT MAX(year) FROM table_name_58 WHERE category = ""best original song (รอเธอหันมา – โฟกัส จิระกุล)""" What is the name of the customer who has the largest number of orders?,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Who has friends that are younger than the average age?,SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < ( SELECT avg ( age ) FROM person ) How many resorts have 118 runs?,"SELECT COUNT(name) FROM table_25762852_1 WHERE runs = ""118""" Find the id of the pet owned by student whose last name is ‘Smith’.,SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith' Who was the runner-up at the South Florida Semi-Finalist #1?,"SELECT runner_up FROM table_name_96 WHERE semi_finalist__number1 = ""south florida""" How many dates did Daniel Ruiz win the Spanish Grand Prix?,"SELECT COUNT(date) FROM table_28925058_1 WHERE grand_prix = ""Spanish grand_prix"" AND race_winner = ""Daniel Ruiz""" Name the publisher of the Chronicles of the Sword game.,SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Chronicles of the Sword' "Which High points have High rebounds of lamar odom (15), and a Date of april 27?","SELECT high_points FROM table_name_80 WHERE high_rebounds = ""lamar odom (15)"" AND date = ""april 27""" "What is the minimum, maximum, and average seating for all tracks.","SELECT MIN(seating), MAX(seating), AVG(seating) FROM track" What episode has 7.8 million viewers?,"SELECT episode FROM table_name_13 WHERE viewers__in_millions_ = ""7.8""" Provide the names of podcasts in the art category in 2018.,SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'arts' AND T2.created_at LIKE '2018-%' What is the division with wins of 2?,"SELECT division FROM table_name_76 WHERE wins = ""2""" what day did the team go to toronto,"SELECT date FROM table_name_97 WHERE visitor = ""toronto""" What is title of album which track Balls to the Wall belongs to?,"SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = ""Balls to the Wall"";" How many faculty members participate in an activity?,SELECT count(DISTINCT FacID) FROM Faculty_participates_in What is the largest number of silver that had 0 bronzes and total less than 1?,SELECT MAX(silver) FROM table_name_67 WHERE bronze = 0 AND total < 1 Which Top-5 is the lowest one that has Wins smaller than 0?,SELECT MIN(top_5) FROM table_name_27 WHERE wins < 0 What is the perfect stem for the word that has a future stem of emango?,"SELECT perfect_stem FROM table_name_79 WHERE future_stem = ""emango""" What is the varsity name of the university of mcgill university?,"SELECT varsity_name FROM table_27369069_4 WHERE university = ""McGill university""" What is the genre of the game developed by Nintendo EAD?,"SELECT genre FROM table_name_85 WHERE developer_s_ = ""nintendo ead""" What is the event # when the winner is what is 7x6?,"SELECT event__number FROM table_22050544_1 WHERE winner = ""what is 7x6""" Where are those companies' headquarters located?,"SELECT company,headquarters from company where main_industry = ""Banking""" Report the total number of students for each fourth-grade classroom.,"SELECT classroom, COUNT(*) FROM list WHERE grade = ""4"" GROUP BY classroom" "In the year that the Montreal Canadiens had 24 penalty minutes in the Stanley Cup finals, how many wins did the team had in total?",SELECT T2.W FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens' AND T2.PIM = 24 "What was the first year that had a prize of 50,000?","SELECT first_year_aired FROM table_name_28 WHERE prize = ""50,000""" What is the lowest decile that Ohau School has?,"SELECT MIN(decile) FROM table_name_10 WHERE name = ""ohau school""" How many burglaries occurred in the city where the violent crime rate was 974.7?,"SELECT burglary FROM table_1818254_1 WHERE violent_crime = ""974.7""" What Score has a Record of 35-28-6?,"SELECT score FROM table_name_65 WHERE record = ""35-28-6""" What country has a less than 136.1 total and a 0.02 solar?,SELECT country FROM table_name_38 WHERE total < 136.1 AND solar = 0.02 What are the names of the mills which are not located in 'Donceel'?,SELECT name FROM mill WHERE LOCATION != 'Donceel' Can you list all of the members?,SELECT * FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid Which language do 1% of males speak?,"SELECT percentage___percentage_ FROM table_name_31 WHERE males = ""1""" Return the maximum and minimum population among all counties.,"SELECT max(Population) , min(Population) FROM county" find the names of people who are taller than 200 or lower than 190.,SELECT name FROM people WHERE height > 200 OR height < 190 What is the least game that was played in Alexander Memorial Coliseum on October 16?,"SELECT MIN(game) FROM table_name_98 WHERE location_attendance = ""alexander memorial coliseum"" AND date = ""october 16""" what tims is wed may 28 and mon may 26 is 17' 58.34 125.960mph?,"SELECT wed_28_may FROM table_14209455_1 WHERE mon_26_may = ""17' 58.34 125.960mph""" List all the log ids and their descriptions from the problem logs.,"SELECT problem_log_id , log_entry_description FROM problem_log" List all living goalies who have greater than 50% wins among all games played. State their last name and first name.,"SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T1.deathYear IS NOT NULL GROUP BY T1.playerID HAVING CAST(SUM(T2.Min) AS REAL) / SUM(T2.GP) > 0.5" Name the driver/passenger for position 8,SELECT driver___passenger FROM table_16729457_16 WHERE position = 8 show me a list of original air date?,select original_air_date from film Who is the runner(s)-up with a winning score of −5 (72-71-68=211)?,SELECT runner_s__up FROM table_name_48 WHERE winning_score = −5(72 - 71 - 68 = 211) What are their photo names?,SELECT T1.name from photos as T1 join camera_lens as T2 on T1.camera_lens_id = T2.id where T2.brand = 'Sigma' "Among the players that went to high school in New York and have won the MVP, what is their average height?",SELECT AVG(T1.height) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Most Valuable Player' AND T1.birthCity = 'New York' "What record has points less than 16, and detroit as the home?","SELECT record FROM table_name_13 WHERE points < 16 AND home = ""detroit""" What's the sum of tie no for home team burgess hill town?,"SELECT SUM(tie_no) FROM table_name_76 WHERE home_team = ""burgess hill town""" find the name of employee who was awarded the most times in the evaluation.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1 what is the highest city population?,SELECT max ( City_Population ) FROM district What are the colors of Howard Hall?,"SELECT colors FROM table_15873547_1 WHERE residence_hall = ""Howard Hall""" What was the date of the Cross Code debut that had an Int'l Debut in the year 2008?,"SELECT date FROM table_name_20 WHERE year = ""2008""" "How many games in 1885 postseason resulted in ties (that is, the value of ""ties"" is '1')?",SELECT COUNT(*) FROM postseason WHERE YEAR = 1885 AND ties = 1 What are their ages?,SELECT age FROM artist WHERE artist_id NOT IN ( SELECT artist_id FROM exhibition ) What rooms do they live in? Please add it to the table.,"SELECT Fname , Lname, room FROM FACULTY WHERE sex = ""M"" AND Building = ""NEB""" How many numbers in series were for the number in season of 8?,SELECT COUNT(no_in_series) FROM table_2618119_1 WHERE no_in_season = 8 when were they built?,SELECT built FROM railway WHERE Railway_ID not IN ( SELECT Railway_ID FROM train ) "What is the name of the player for the 2010-2011 season, from a Free Agency and is Number 14?","SELECT name FROM table_name_13 WHERE season = ""2010-2011"" AND acquisition_via = ""free agency"" AND number = ""14""" Who had the highest points against new york?,"SELECT high_points FROM table_23211041_5 WHERE team = ""New York""" state the round that had a game score 50-10,"SELECT round FROM table_21256068_3 WHERE score = ""50-10""" On how many different dates was event 1 Suspension Bridge?,"SELECT COUNT(air_date) FROM table_17257687_1 WHERE event_1 = ""Suspension Bridge""" Find the percentage of 5 stars rated business.,SELECT CAST(SUM(CASE WHEN stars = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(stars) FROM Business Find the minimum salary for the departments whose average salary is above the average payment of all instructors.,"SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)" List the names of patients who have made appointments.,SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn How many professors are there in total?,SELECT count ( * ) FROM professor Can you please show me name of the products?,SELECT distinct product_name from Products Who is the championship for the year of 1993?,SELECT championship FROM table_22834834_2 WHERE year = 1993 Which films participated when the category was Best Newcomer?,"SELECT participants_recipients FROM table_29644931_1 WHERE category = ""Best Newcomer""" "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.","SELECT T1.School_name , T1.Mascot , T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested , T2.total_budget_percent_budgeted" Which team won the match of the Bundesliga division on 2020/10/2?,SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam WHEN T1.FTR = 'A' THEN T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga' Show names of ships involved in a mission launched after 1928.,SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 list the names of the companies with more than 200 sales in the descending order of sales and profits.,"SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion , Profits_in_Billion DESC" Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.,SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000 What is the total number of active businesses in AZ with a low review count?,SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND active LIKE 'True' AND review_count LIKE 'low' When was the incumbent from the Virginia 10 district first elected? ,"SELECT first_elected FROM table_2668401_17 WHERE district = ""Virginia 10""" What Ken Watanabe film as nominated?,"SELECT film FROM table_name_96 WHERE status = ""nominated"" AND name = ""ken watanabe""" how many persons in department manger,"SELECT count ( * ) from Staff_Department_Assignments where job_title_code = ""Department Manager""" Return all players sorted by college in ascending alphabetical order.,SELECT player FROM match_season ORDER BY College ASC Name the position for san beda,"SELECT position FROM table_15463188_7 WHERE school_club_team = ""San Beda""" "In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.","SELECT SUM(T1.l), T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.notes = 'interim' AND T1.year = '1997' AND T2.name = 'Tampa Bay Lightning' GROUP BY T1.coachID" "Can you list the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance?",SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > ( SELECT avg ( balance ) FROM checking ) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < ( SELECT avg ( balance ) FROM savings ) "How many Crowd that has a Date on saturday, 29 january and an Away team of collingwood?","SELECT AVG(crowd) FROM table_name_67 WHERE date = ""saturday, 29 january"" AND away_team = ""collingwood""" What circuit was the FR3.5 11 series on? ,"SELECT circuit FROM table_25572068_1 WHERE series = ""FR3.5 11""" For what country is the skip Andy Kapp?,"SELECT country FROM table_name_49 WHERE skip = ""andy kapp""" How many places featured the DXCL Callsign?,"SELECT COUNT(location) FROM table_12547903_3 WHERE callsign = ""DXCL""" "What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver?","SELECT shortstop FROM table_name_40 WHERE catcher = ""johnny roseboro"" AND third_baseman = ""jim lefebvre"" AND second_baseman = ""nate oliver""" What is the branding for the station with a frequency of 93.1mhz and a coverage of Zamboanga?,"SELECT branding FROM table_name_45 WHERE frequency = ""93.1mhz"" AND coverage = ""zamboanga""" "How many lanes have a Nationality of united states, and a Name of aaron peirsol?","SELECT COUNT(lane) FROM table_name_28 WHERE nationality = ""united states"" AND name = ""aaron peirsol""" "Among the shipments shipped to Cicero, Illinois, how many shipments weighed between 9,000 to 15,000?",SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city_name = 'Cicero' AND T2.state = 'Illinois' AND T1.weight BETWEEN 9000 AND 15000 Who was the lead when Ritvars Gulbis was the skip?,"SELECT lead FROM table_name_10 WHERE skip = ""ritvars gulbis""" What is the affiliation of the University of Maryland?,"SELECT affiliation FROM table_name_54 WHERE school = ""university of maryland""" "What are the years that ""WiiU"" got a new game?",SELECT T2.release_year FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T1.platform_name = 'WiiU' ORDER BY T2.release_year DESC LIMIT 1 what is the object type when the ngc number is 3314?,SELECT object_type FROM table_name_98 WHERE ngc_number = 3314 List the names of the games held in Paris.,SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Paris' How many employees are there in Sydney?,SELECT COUNT(employeeNumber) FROM employees WHERE officeCode = ( SELECT officeCode FROM offices WHERE city = 'Sydney' ) Which product cost the least in 2013?,SELECT ProductID FROM ProductCostHistory WHERE StartDate LIKE '2013%' ORDER BY StandardCost LIMIT 1 "Find all the male members of club ""Hopkins Student Enterprises"". Show the first name and last name.","SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t3.sex = ""M""" What is the highest year with field reporter Steve Lyons?,"SELECT MAX(year) FROM table_2941848_2 WHERE s_field_reporter = ""Steve Lyons""" What side does Ryan Overland Bat/Throws from?,"SELECT bats_throws FROM table_name_9 WHERE players = ""ryan overland""" Show the names of companies and the number of employees they have,"SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name" What is the score on october 7?,"SELECT score FROM table_name_95 WHERE date = ""october 7""" what is the owner of the c501,"SELECT owner FROM table_name_2 WHERE locomotive = ""c501""" Which team plays against Footscray as the home team?,"SELECT home_team FROM table_name_2 WHERE away_team = ""footscray""" "For directors who had more than one movie, return the titles and produced years of all movies directed by them.","SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title" In which city is the lake located at coordinates longitude -85.35 and latitude 11.6?,SELECT T2.City FROM lake AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN city AS T4 ON T4.Province = T3.Name WHERE T1.Longitude = -85.35 AND T1.Latitude = 11.6 What is the recoupa sudamericana 1996 result of team corinthians?,"SELECT recopa_sudamericana_1996 FROM table_name_7 WHERE team = ""corinthians""" How much does one room with the King size bed cost per night?,"SELECT avg ( basePrice ) FROM Rooms WHERE bedType = ""King""" Which teachers teach in classroom 109? Give me their last names.,SELECT lastname FROM teachers WHERE classroom = 109 "WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?","SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = ""2008"" AND pole < 1" What is the authority who set the budget limit (£m) at 900?,"SELECT authority FROM table_25316812_1 WHERE budget_limit__£m_ = ""900""" "Who is the coach with a w-l% greater than 0.516, a first yr before 1925, a yr plyf greater than 2, and a last yr in 1967?",SELECT coach FROM table_name_51 WHERE w_l_percentage > 0.516 AND first_yr < 1925 AND yr_plyf > 2 AND last_yr = 1967 Show all product colors.,SELECT DISTINCT product_color FROM Products What is the average number of casualties for the convoy with a number of U-844?,"SELECT AVG(casualties) FROM table_name_5 WHERE number = ""u-844""" What is the Departure time at Kanpur Central Station?,"SELECT departure FROM table_name_67 WHERE station_name = ""kanpur central""" Find the ids and names of members who are under age 30,"SELECT name , member_id FROM member WHERE age < 30" Who is in the town of new york?,"SELECT name from person where city = ""new york city""" When 6 is the rank what is the time for Tuesday August 25th?,SELECT tues_25_aug FROM table_23465864_3 WHERE rank = 6 what is the name of all tracks in balls to wall,"SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall""" How much Frequency MHz has a Call sign of w264bg?,"SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = ""w264bg""" Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?,SELECT all_bills_sponsored FROM table_name_57 WHERE bills_originally_cosponsored > 113 AND all_amendments_cosponsored < 47 How many more tweets with a positive sentiment than the tweets with a neutral sentiment were posted by male users?,SELECT SUM(CASE WHEN T1.Sentiment > 0 THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.Sentiment = 0 THEN 1 ELSE 0 END) AS diff FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' What is the description and code of the type of service that is performed the most often?,"SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" How many games were released in 2001?,SELECT COUNT(T.id) FROM game_platform AS T WHERE T.release_year = 2001 What are the names of wresters and their elimination times whose days held is greater than 50?,"SELECT T2.name, T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50" "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.","SELECT fname, lname FROM student WHERE city_code <> 'HKG' ORDER BY age" "Return the the ""active to date"" of the latest contact channel used by the customer named ""Tillman Ernser"".","SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" What are all the stations with a license in Cincinnati?,"SELECT station FROM table_1847523_2 WHERE city_of_license__market = ""Cincinnati""" "Among the cars produced in 1975, provide IDs, names, and producing countries of the cars with the maximum number of cylinders.","SELECT T1.ID, T1.car_name, T3.country FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T2.model_year = 1975 ORDER BY T1.cylinders DESC LIMIT 1" Find the total account balance of each customer from Utah or Texas.,SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas' "What was the result of the match that took place in Perth, featuring a score of 48-12?","SELECT result FROM table_name_33 WHERE score = ""48-12"" AND city = ""perth""" "Which accelerator name contains substring ""Opera""?","SELECT name FROM web_client_accelerator WHERE name LIKE ""%Opera%""" How many employees don't have certificates?,SELECT COUNT ( * ) FROM Employee EXCEPT SELECT aid FROM Certificate How many songs have a short duration less than 4 minutes?,SELECT count ( * ) from files where duration < 4 What is the car model with the highest mpg ?,select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1; "Please give the name of the course in which most numbers of the students got an A. Also, list the full name of the students who got an A in this course.","SELECT T3.name, T2.f_name, T2.l_name FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T1.course_id = T3.course_id WHERE T1.grade = 'A' GROUP BY T3.name ORDER BY COUNT(T1.student_id) DESC LIMIT 1" What is the Official Name of the Community with an Area km 2 of 16.13?,SELECT official_name FROM table_name_50 WHERE area_km_2 = 16.13 "Please list the names of the authors of the paper ""Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers"".",SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers' "State the full name of conference for paper ""The Dissimilarity Representation as a Tool for Three-Way Data Classification: A 2D Measure"".",SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'The Dissimilarity Representation as a Tool for Three-Way Data Classification: A 2D Measure' now what are their major | Do you mean the major of the students whose faculty have at least 2 students? | yes,SELECT T2.major FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count ( * ) > = 2 What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?,SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to < (SELECT MAX(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code = 'Clerical Staff') "How many members of club ""Bootup Baltimore"" are younger than 18?","SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Bootup Baltimore"" AND t3.age < 18" What is the name of organization that has the greatest number of contact individuals?,SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1 "What are the customer name and date of the orders whose status is ""Delivered"".","SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Delivered""" What was the position of the team that had a goal difference of less than -11 and played less than 38 games?,SELECT SUM(position) FROM table_name_98 WHERE goal_difference < -11 AND played < 38 What are the total sales of those companies?,"SELECT sum ( sales_billion ) FROM Companies WHERE Industry ! = ""Banking""" What is the total revenue of all companies whose main office is at Tokyo or Taiwan?,SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' How many of the line items have been shipped by rail with a quantity less than 30?,SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity < 30 AND l_shipmode = 'RAIL' "Return the average transaction amount, as well as the total amount of all transactions.","SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions" What is the name of the constellation that has a NGC number smaller tha 5457?,SELECT constellation FROM table_name_19 WHERE ngc_number < 5457 "Before 2008, if the Manufacturer is dodge and the start is under 9, what's the highest finish time?","SELECT MAX(finish) FROM table_name_17 WHERE manufacturer = ""dodge"" AND start < 9 AND year < 2008" What are the names of customers who have purchased both products Latte and Americano?,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE product_details = 'Americano' "What tournament did she win with a final score of 4–6, 7–5, 6–2?","SELECT championship FROM table_19047_2 WHERE score_in_the_final = ""4–6, 7–5, 6–2""" What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?,select max(mpg) from cars_data where cylinders = 8 or year < 1980 Game 71 was played against what team?,SELECT opponent FROM table_name_99 WHERE game = 71 "Can you tell me the Year(s) Won that has the To par larger than 5, and the Total smaller than 155, and the Country of united states?","SELECT year_s__won FROM table_name_18 WHERE to_par > 5 AND total < 155 AND country = ""united states""" Who does have a deputy policy?,"SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = ""Deputy""" What was the place and how many people attended the game on July 11?,"SELECT location_attendance FROM table_18813011_6 WHERE date = ""July 11""" "Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?","SELECT location FROM table_283203_1 WHERE capacity = ""10,517 5,006""" What was the rank of the player in lane 6?,SELECT AVG(rank) FROM table_name_73 WHERE lane = 6 Thank you. What are the office extensions numbers of professor Donelly and Blalock please?,"SELECT T3.DEPT_EXTENSION FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE EMP_LNAME = ""Donelly"" or EMP_LNAME = ""Blalock""" What is the item number of the product with the highest number of units sold in store number 1 on 1/1/2012?,SELECT item_nbr FROM sales_in_weather WHERE `date` = '2012-01-01' AND store_nbr = 1 ORDER BY units DESC LIMIT 1 Which player played in 2007?,"SELECT player FROM table_name_17 WHERE season = ""2007""" What is the local name of Ukraine that they are also known for?,SELECT LocalName FROM Country WHERE Name = 'Ukraine' What league is ordabasy-2 in?,"SELECT league FROM table_name_64 WHERE team = ""ordabasy-2""" What is the average area for code 98030 with population over 312?,SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 what is the salary of the employee id 101,select SALARY from employees where EMPLOYEE_ID = 101 What is NK Rijeka's away score in Round 2?,"SELECT away FROM table_name_97 WHERE round < 2 AND club = ""nk rijeka""" Give the name of the person who was responsible for case No.JB524952.,SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB524952' "In 2011, which university got the lowest score in teaching criteria?",SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 ORDER BY T2.score ASC LIMIT 1 what is the wheel arrangement when the year made is 1881?,"SELECT wheel_arrangement FROM table_name_78 WHERE year_made = ""1881""" Which Giant Slalom was obtained in the 1997 season?,SELECT Giant AS slalom FROM table_name_29 WHERE season = 1997 Which date has a Record of 4-5?,"SELECT date FROM table_name_71 WHERE record = ""4-5""" what is the source airport id?,SELECT T1.apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count ( * ) DESC LIMIT 1 display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.,"SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = ""Clara"") AND first_name <> ""Clara""" How much total time was in lane 4?,SELECT COUNT(time) FROM table_name_66 WHERE lane = 4 What are the names of the artists that are from the UK and sang songs in English?,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT artist_name FROM song WHERE languages = ""english""" How many users participated in the Survey No.2016?,SELECT COUNT(DISTINCT UserID) FROM Answer WHERE SurveyID LIKE 2016 List the player's name who played as a captain.,SELECT T2.Player_Name FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Captain' GROUP BY T2.Player_Name What are distinct locations where tracks are located?,SELECT DISTINCT LOCATION FROM track State the number of violations did Royal Thai Cuisine has during the 2015/5/8 inspection.,SELECT COUNT(T3.point_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T2.inspection_date = '2015-05-08' AND T1.dba_name = 'ROYAL THAI CUISINE' "Opponent of sergei bondarovich, and a Record of 2–0 had what method?","SELECT method FROM table_name_72 WHERE opponent = ""sergei bondarovich"" AND record = ""2–0""" "How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?",SELECT SUM(2003) FROM table_name_97 WHERE 2001 = 0 AND 2009 > 0 AND 1999 < 0 Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?,"SELECT elector FROM table_name_91 WHERE cardinalatial_title = ""priest of s. sabina and archbishop of reims""" In which city is MUB located?,"SELECT city FROM table_name_29 WHERE abbr = ""mub""" Provide the name of the artist who released his or her Single-Table in 2012 with the highest number of downloads. Name the Single-Table title as well.,"SELECT artist, groupName FROM torrents WHERE groupYear = 2012 AND releaseType LIKE 'Single' ORDER BY totalSnatched DESC LIMIT 1" Name the title directed by charles beeson by jeremy carver,"SELECT title FROM table_19396259_1 WHERE directed_by = ""Charles Beeson"" AND written_by = ""Jeremy Carver""" "Which date has a Terrain of plain stage, and a Stage of 4?","SELECT date FROM table_name_34 WHERE terrain = ""plain stage"" AND stage = ""4""" "What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4?",SELECT MIN(gold) FROM table_name_21 WHERE silver < 1 AND total < 4 AND bronze > 1 How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?,"SELECT league_cup_goals FROM table_name_29 WHERE total > 15 AND fa_cup_goals = 3 AND club = ""chesterfield""" Show the park of the roller coaster with the highest speed.,SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1 Who wrote the episode with the production code 2j5153?,"SELECT written_by FROM table_25830834_2 WHERE production_code = ""2J5153""" Which artists from Bangladesh have never received a rating higher that 7?,"SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7" what is the pick when the overall is less than 297 and the college is alabama?,"SELECT pick FROM table_name_16 WHERE overall < 297 AND college = ""alabama""" What is the monthly average number of products shipped via Federal Shipping for the year 1996?,SELECT CAST(SUM(T1.ShipVia) AS REAL) / 12 FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Federal Shipping' AND T1.ShippedDate LIKE '1996%' "What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?","SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = ""145.0"" AND snatch < 122.5" "What is the sum of Position, when Points 1 is greater than 23, and when Goals For is ""77""?",SELECT SUM(position) FROM table_name_44 WHERE points_1 > 23 AND goals_for = 77 Who is the winner of the H.E.B. Texas open?,"SELECT winner FROM table_name_76 WHERE tournament = ""h.e.b. texas open""" Which Max 1-min wind mph (km/h) that has Dates active on september22– september28?,"SELECT max_1_min_wind_mph__km_h_ FROM table_name_26 WHERE dates_active = ""september22– september28""" "What is the average React, when Name is ""Candice Davis"", and when Lane is less than 3?","SELECT AVG(react) FROM table_name_91 WHERE name = ""candice davis"" AND lane < 3" What was the date of appointment for paco chaparro's replacement?,"SELECT date_of_appointment FROM table_name_12 WHERE outgoing_manager = ""paco chaparro""" How many dishes do not have correct data for the year in which it appeared first?,SELECT COUNT(*) FROM Dish WHERE first_appeared < 1851 OR first_appeared > 2012 What episode is directed by Bryan Spicer and written by Terence Paul Winter?,"SELECT title FROM table_23958944_5 WHERE directed_by = ""Bryan Spicer"" AND written_by = ""Terence Paul Winter""" Who wrote the episodes watched by 1.575 million people in Canada?,"SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = ""1.575""" What is the series score of the game with Vancouver as the visiting team on April 16?,"SELECT series FROM table_name_73 WHERE visitor = ""vancouver"" AND date = ""april 16""" "Name the Surface that of Tournament of valencia , spain?","SELECT surface FROM table_name_92 WHERE tournament = ""valencia , spain""" "For each customer who has at least two orders, find the customer name and number of orders made.","SELECT T2.customer_name, COUNT(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) >= 2" What is the height of the person whose position is Libero?,"SELECT MAX(height) FROM table_name_15 WHERE position = ""libero""" What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?,"SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = ""norway"" AND gold > 10" What is the per-capita GDP for the country with an overall GDP of 156.640?,"SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = ""156.640""" When 129 is the number in the series who is the writer?,SELECT written_by FROM table_228973_7 WHERE no_in_series = 129 "Before round 9, when Takashi Kogure held pole position, who was the team?","SELECT team FROM table_name_85 WHERE round < 9 AND pole_position = ""takashi kogure""" Name the artist for 1595 televotes,SELECT artist FROM table_21378339_5 WHERE televotes = 1595 Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.,"SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm)" How many bathrooms are in each of these apartments?,"SELECT bathroom_count FROM Apartments WHERE apt_number IN ( SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed"" ) AND bedroom_count = 3" "Among the beverages, which product has the highest customer satisfaction?",SELECT T1.ProductName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.CategoryName = 'Beverages' ORDER BY T1.ReorderLevel DESC LIMIT 1 "What is the Date of the game with an Outcome of runner-up and Score of 5–7, 3–6, 6–3, 2–6?","SELECT date FROM table_name_83 WHERE outcome = ""runner-up"" AND score = ""5–7, 3–6, 6–3, 2–6""" What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?,"SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = ""engine"" AND driver = ""luigi piotti""" What is the lowest number of games played for deportivo español?,"SELECT MIN(played) FROM table_14460085_3 WHERE team = ""Deportivo Español""" Out of those 12 how many of them are more than 3 credits?,SELECT count ( * ) FROM course where dept_name = 'Mech. Eng.' and credits > 3 "What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?",SELECT SUM(net_profit__) AS £m_ FROM table_name_75 WHERE earnings_per_share__p_ = 27.4 AND profit__loss__before_tax__£m_ < 194.6 How many territories are there in the Eastern Region?,SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Eastern' How many rental IDs belong to Eleanor Hunt?,SELECT COUNT(T1.rental_id) FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'Eleanor' AND T2.last_name = 'Hunt' "Give me the times and numbers of all trains that go to Chennai, ordered by time.","SELECT TIME, train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME" "When Fitzroy are the away team, what is the average crowd size?","SELECT AVG(crowd) FROM table_name_65 WHERE away_team = ""fitzroy""" How many distinct currency codes are there for all drama workshop groups?,SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups What movie title has the highest rating? | Do you mean the title of the movie with the highest stars? | Yes,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY T1.stars DESC LIMIT 1 "What is the round at St. Mirren Park with more than 4,555 people attending?","SELECT round FROM table_name_37 WHERE venue = ""st. mirren park"" AND attendance > 4 OFFSET 555" "What are the names of the artists who released a song that has the word love in its title, and where are the artists from?","SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE ""%love%""" "Tell me their employee numbers, first and last names, and job titles, please.","SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max ( salary ) FROM employees WHERE job_id = 'PU_MAN' ) " What's the classification of the institution nicknamed Dolphins?,"SELECT classification FROM table_12936521_2 WHERE nickname = ""Dolphins""" What was the date of the 24–27–6 Lightning home game against Tampa Bay that had a decision of Ramo?,"SELECT date FROM table_name_93 WHERE home = ""tampa bay"" AND decision = ""ramo"" AND record = ""24–27–6""" "For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?","SELECT MIN(quantity) FROM table_name_60 WHERE name = ""raison blue"" AND nicotine > 0.30000000000000004" What was the latest season with a nick production number of 942?,SELECT MAX(season__number) FROM table_2655016_10 WHERE nick_prod__number = 942 How many cards does customer Art Turcotte have?,"SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Art"" AND T2.customer_last_name = ""Turcotte""" "What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind?","SELECT county FROM table_name_64 WHERE elevation__m_ < 1833 AND isolation__km_ > 18 AND peak = ""store lenangstind""" State description of medication taken by Joe Homenick.,SELECT T1.DESCRIPTION FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.first = 'Joye' AND T2.last = 'Homenick' What school in Dalefield has a roll less than 81?,"SELECT name FROM table_name_61 WHERE roll < 81 AND area = ""dalefield""" "What is the average total score of Belarus, which had an E score less than 8.2?","SELECT AVG(total) FROM table_name_71 WHERE nation = ""belarus"" AND e_score < 8.2" what is the round for jake gardiner?,"SELECT AVG(round) FROM table_name_3 WHERE player = ""jake gardiner""" Which city has hosted the most events?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1 what is the average attendance per match wheree the elevation is 1500 m?,"SELECT average_attendance_per_match FROM table_27708484_3 WHERE elevation = ""1500 m""" List 5 github address that the solutions can be implemented without the need of compilation.,SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.WasCompiled = 1 LIMIT 5 Show all member names and registered branch names sorted by register year.,"SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year" What is the percentage of flights from Los Angeles International airport that were cancelled due to a type C cancellation code?,"SELECT CAST(SUM(CASE WHEN T2.CANCELLATION_CODE = 'C' THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/15' AND T2.CANCELLATION_CODE IS NOT NULL AND T1.Description = 'Los Angeles, CA: Los Angeles International'" How many people with the name Alex are single and occupying organization level of 1?,SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.FirstName = 'Alex' AND T1.MaritalStatus = 'S' AND T1.OrganizationLevel = 1 What is the high assists that has @ detroit as the team?,"SELECT high_assists FROM table_name_93 WHERE team = ""@ detroit""" display all the details from Employees table for those employees who was hired before 2002-06-21.,SELECT * FROM employees WHERE hire_date < '2002-06-21' Show student ids who are on scholarship and have major 600.,SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' "In the year 1998, how many home wins did the team which had the 1st round, 12th pick have that year?",SELECT T2.homeWon FROM draft AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.draftYear = T2.year WHERE T1.draftRound = 1 AND T1.draftSelection = 12 AND T1.draftYear = 1998 Find the number of students for the cities where have more than one student.,"SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1" What day was St. Louis the visitor?,"SELECT date FROM table_name_85 WHERE visitor = ""st. louis""" "What is the highest number supporting prohibition in British Columbia when the percent opposing is more than 10.8, the percent supporting is less than 72.2, number against is less than 4,756?","SELECT MAX(for_prohibition) FROM table_name_43 WHERE percent_against > 10.8 AND percent_for < 72.2 AND jurisdiction = ""british columbia"" AND against_prohibition < 4 OFFSET 756" "Among HTC Butterfly phone users, list any five devices' IDs used by females.",SELECT T2.device_id FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T1.device_model = 'Butterfly' AND T2.gender = 'F' AND T1.phone_brand = 'HTC' LIMIT 5 "What is the number of laps for the honda vehicle, with a grid of 13?","SELECT laps FROM table_name_17 WHERE constructor = ""honda"" AND grid = ""13""" "Of the orders with a lower delivery priority, how many have an urgent priority order?",SELECT COUNT(o_orderkey) FROM orders WHERE o_orderpriority = '1-URGENT' GROUP BY o_orderdate ORDER BY o_orderdate DESC LIMIT 1 Please show the employee last names that serves no more than 20 customers.,SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20 What are the names of all campuses located at Chico?,"SELECT campus FROM campuses WHERE LOCATION = ""Chico""" What is the WIAA classification of Oakland Alternative High School? ,"SELECT wiaa_classification FROM table_1414702_3 WHERE high_school = ""Oakland Alternative""" "When the person died May 22, 1895 is the reason for vacancy what is the district?","SELECT district FROM table_2417445_4 WHERE reason_for_vacancy = ""Died May 22, 1895""" show me the types of competition that have atleast five competition of that type,SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT ( * ) > = 5 find the name of all departments that do actually have one or more employees assigned to them.,SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id "List the date of each treatment, together with the first name of the professional who operated it.","SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id" "What is Jockey, when Horse is ""Eight Belles""?","SELECT jockey FROM table_name_74 WHERE horse = ""eight belles""" Which Pick has a College of ohio state?,"SELECT MIN(pick) FROM table_name_22 WHERE college = ""ohio state""" "Baldwin Locomotive Works, also with works number 40864, is listed as what number?","SELECT number FROM table_name_2 WHERE builder = ""baldwin locomotive works"" AND works_number = 40864" List the total points of gymnasts in descending order of floor exercise points.,SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC Which player finished t35?,"SELECT player FROM table_name_89 WHERE finish = ""t35""" "What was the Result on November 9, 1958?","SELECT result FROM table_name_77 WHERE date = ""november 9, 1958""" "What event had a prize of €900,000?","SELECT event FROM table_name_80 WHERE prize = ""€900,000""" "What is the average Total, when Gold is less than 0?",SELECT AVG(total) FROM table_name_12 WHERE gold < 0 What is the name of the district with the highest number of domestic violence cases?,SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.domestic = 'TRUE' GROUP BY T2.district_name ORDER BY COUNT(T1.district_no) DESC LIMIT 1 How many ships are there?,SELECT count ( * ) FROM ship What is the quantity when the DRG was E 62 01–E 62 05?,"SELECT COUNT(quantity) FROM table_name_93 WHERE drg_number_s_ = ""e 62 01–e 62 05""" What is the average grid with more than 23 laps?,SELECT AVG(grid) FROM table_name_78 WHERE laps > 23 Find the maximum price of wines from the appelations in Central Coast area and produced before the year of 2005.,"SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""Central Coast"" AND T2.year < 2005" What distinct accelerator names are compatible with the browswers that have market share higher than 15?,SELECT DISTINCT T1.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 T3.market_share > 15; When 7th bw attached to 43rd sw is the unit what is the b-52 model?,"SELECT b_52_model FROM table_18933037_3 WHERE unit = ""7th BW attached to 43rd SW""" "list Project codes, names, and hours worked by scientist by ssn and name","SELECT T3.Code , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T1.SSN" "Can you list all apartment IDs with ""Flat"" as the apartment type?",SELECT apt_id FROM Apartments WHERE apt_type_code = 'Flat' "What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?",SELECT SUM(population_2001_census) FROM table_name_10 WHERE population_1991_census = 476 OFFSET 815 "When the mark is 7.35, what's the lowest Lane found?","SELECT MIN(lane) FROM table_name_32 WHERE mark = ""7.35""" What pick number did the linebacker from the denver broncos get?,"SELECT pick FROM table_name_34 WHERE position = ""linebacker"" AND team = ""denver broncos""" What were the laps of aprilia with a grid of 10?,"SELECT laps FROM table_name_72 WHERE manufacturer = ""aprilia"" AND grid = 10" What is the truck's model year used to ship the ship ID 1245?,SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1245' What game has 2 points?,SELECT MAX(games) FROM table_name_58 WHERE points = 2 By what percentage is the average salary of Trainees higher than the minimum salary of this postion?,"SELECT 100 * (AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) - CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T2.minsalary, 4), ',', '') AS REAL) AS per FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Trainee'" How many cabins were built in the time between 1967-1987?,"SELECT built FROM table_name_51 WHERE period = ""1967-1987""" "Show the zip code of the county with name ""Howard"".","SELECT Zip_code FROM county WHERE County_name = ""Howard""" How many times was incumbent onzlee ware elected?,"SELECT COUNT(elected) FROM table_13618584_2 WHERE incumbent = ""Onzlee Ware""" Name the performance order for 2.15%,"SELECT performance_order FROM table_26267849_11 WHERE percentage_of_votes = ""2.15%""" How many customers in total?,SELECT count(*) FROM Customers; What degree does the professor of account hold?,SELECT T3.prof_high_degree FROM professor AS T3 JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting' What is the minimum number of opponents?,SELECT MIN(opponents) FROM table_18847692_2 "If the equation is (10 times 1) + 3, what is the 2nd throw?","SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = ""(10 times 1) + 3""" what is the country for geoff ogilvy?,"SELECT country FROM table_name_88 WHERE player = ""geoff ogilvy""" What is the date of appointment for the date of vacancy of 22 august 2010?,"SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = ""22 August 2010""" "Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?","SELECT venue FROM table_name_39 WHERE score = ""0:0"" AND season > 2010 AND team_1 = ""t&t hanoi""" Can you list the cities of these students? | Do you want both the cities and the first names of the students? | Yes. Can you please provide both simultaneously?,"SELECT DISTINCT T1.city_code, T1.fname FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = ""Milk""" "How many ranks are higher than lane 4 from Great Britain, raced by Margaretha Pedder?","SELECT COUNT(rank) FROM table_name_83 WHERE lane > 4 AND nationality = ""great britain"" AND name = ""margaretha pedder""" What is the low number of top 25s in an event with over 15 appearances?,SELECT MIN(top_25) FROM table_name_42 WHERE events > 15 Can you tell me the Game that has the Opponent of miami heat?,"SELECT game FROM table_name_19 WHERE opponent = ""miami heat""" What is the number of technicians?,SELECT count(*) FROM technician What Function (figure) has Serial number AF 934103?,"SELECT function__figure_ FROM table_name_95 WHERE serial_number = ""af 934103""" Show the names of all the clients with no booking.,SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID "What is the first name of the aldermen of wards with more than 50,000 inhabitants?",SELECT alderman_first_name FROM Ward WHERE Population > 50000 "What shows for gold when the rank is less than 3, and silver less than 1?",SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 1 What company constructed the vehicle when the driver shows as not held?,"SELECT constructor FROM table_name_61 WHERE driver = ""not held""" What was the total score for january 18?,"SELECT COUNT(score) FROM table_22883210_7 WHERE date = ""January 18""" "What home team has had a crowd bigger than 20,000?",SELECT home_team FROM table_name_95 WHERE crowd > 20 OFFSET 000 Name the high rebounds for american airlines center,"SELECT high_rebounds FROM table_22879323_9 WHERE location_attendance = ""American Airlines Center""" What bike has 26 as the grid?,SELECT bike FROM table_name_20 WHERE grid = 26 What place is Scott McCarron in?,"SELECT place FROM table_name_4 WHERE player = ""scott mccarron""" "What language is the book Miss Macintosh, My Darling in?","SELECT language FROM table_name_17 WHERE book_title = ""miss macintosh, my darling""" What is the name of the product with the highest price?,SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1 How many airports are there per city in the United States? Order the cities by decreasing number of airports.,"SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC" What are the main places for the streymoy region with an area of larger than 6.1?,"SELECT main_places FROM table_name_91 WHERE regions = ""streymoy"" AND area > 6.1" "What is the max training hours of all players, please?",SELECT max ( HS ) FROM Player Name the october when the september is dalene kurtis,"SELECT october FROM table_name_47 WHERE september = ""dalene kurtis""" What construction completed is named nelson tunnel/commodore waste rock?,"SELECT construction_completed FROM table_name_76 WHERE name = ""nelson tunnel/commodore waste rock""" What is the total when the score of set 1 was 15–11?,"SELECT total FROM table_name_68 WHERE set_1 = ""15–11""" What teak was Brady Browne drafted onto?,"SELECT cfl_team FROM table_16575609_5 WHERE player = ""Brady Browne""" What place did Fred Couples finish in?,"SELECT place FROM table_name_84 WHERE player = ""fred couples""" "Show the location code, the starting date and ending data in that location for all the documents.","SELECT location_code, date_in_location_from, date_in_locaton_to FROM Document_locations" "What is the highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Satō, and when # Of Candidates is less than 328?","SELECT MAX(_number_of_constituency_votes) FROM table_name_18 WHERE election < 1976 AND leader = ""eisaku satō"" AND _number_of_candidates < 328" How many bronzes have a Total of 9?,SELECT SUM(bronze) FROM table_name_68 WHERE total = 9 What was the French title of the story published in 1968?,SELECT french_title FROM table_23963073_1 WHERE date_of_publication = 1968 What is the time of Yuliya Yefimova?,"SELECT time FROM table_name_53 WHERE name = ""yuliya yefimova""" What is the average pages per minute color?,SELECT avg(pages_per_minute_color) FROM product Who won in 1979 with +8 to par?,"SELECT player FROM table_name_46 WHERE to_par = ""+8"" AND year_s__won = ""1979""" What are the different types of transactions?,SELECT DISTINCT transaction_type FROM Financial_Transactions What is the total of pick numbers with a Reg GP larger than 0?,SELECT COUNT(pick__number) FROM table_name_80 WHERE reg_gp > 0 What was the value in 2011 for United States?,"SELECT 2011 FROM table_name_95 WHERE country = ""united states""" What is the smallest diameter for Eirene Tholus?,"SELECT MIN(diameter__km_) FROM table_name_97 WHERE name = ""eirene tholus""" How many likes does Kyle have?,"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""" Provide the ID of the university with the highest percentage of female students in 2012.,SELECT university_id FROM university_year WHERE year = 2012 ORDER BY pct_female_students DESC LIMIT 1 How many Asian female patients take oxaliplatin 5 MG/ML [Eloxatin]?,SELECT COUNT(DISTINCT T2.patient) FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'oxaliplatin 5 MG/ML [Eloxatin]' AND T2.race = 'asian' AND T2.gender = 'F' Which car won the same award in 2001 that the toyota 1nz-fxe hybrid prius won in 1999?,"SELECT 2001 FROM table_name_76 WHERE 1999 = ""toyota 1nz-fxe hybrid prius""" Show the location codes with at least 3 documents.,SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3 what are the country id ? | Did you mean country id which has both roller coasters with speed higher than 60 and roller coasters with speed lower than 55? | Yes!,SELECT T1.Country_ID FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.Country_ID FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55 What is the Name of the D Player from the Dinamo Moscow Club?,"SELECT name FROM table_name_76 WHERE club = ""dinamo moscow"" AND pos = ""d""" How many episodes when the tv station is ntv and the japanese title is たったひとつの恋?,"SELECT episodes FROM table_name_47 WHERE tv_station = ""ntv"" AND japanese_title = ""たったひとつの恋""" "What is the abbreviation of Airline ""JetBlue Airways""?","SELECT Abbreviation FROM AIRLINES WHERE Airline = ""JetBlue Airways""" How many grids does dave walker have?,"SELECT COUNT(grid) FROM table_name_6 WHERE driver = ""dave walker""" What date had a game with a score of 5-4?,"SELECT date FROM table_name_63 WHERE score = ""5-4""" "Which city is the address of the store named ""FJA Filming"" located in?","SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = ""FJA Filming""" what is the product id for red jeans?,"SELECT product_id FROM products WHERE product_name = ""red jeans""" What was the lowest score.,SELECT MIN(goals¹) FROM table_24565004_21 What is the Tournament in the Year of 1986?,"SELECT tournament FROM table_name_21 WHERE year = ""1986""" What is the earliest season with driver Farad Bathena?,"SELECT MIN(season) FROM table_name_34 WHERE driver = ""farad bathena""" In which regions has the game 'Pengo' been sold?,SELECT T5.region_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id INNER JOIN region AS T5 ON T4.region_id = T5.id WHERE T1.game_name = 'Pengo' "What are the special features for the film ""Smoochy Control""?",SELECT special_features FROM film WHERE title = 'SMOOCHY CONTROL' What is the average unit price for tracks in the Rock genre?,"SELECT avg ( T2.unit_price ) FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock""" Name the title of the episode where Pamela Hayden voiced the character 'Ruthie.',SELECT T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.person = 'Pamela Hayden' AND T2.role = 'Ruthie'; How many airlines are there?,SELECT COUNT(*) FROM airlines List the personal names and family names of all the students in alphabetical order of family name.,"SELECT personal_name , family_name FROM Students ORDER BY family_name" "Finally, can you show me the complaint outcome code for each of these two entries?",SELECT complaint_outcome_code FROM complaints GROUP BY complaint_status_code HAVING count ( * ) > 3 "Which player is from Tampa, Florida?","SELECT player FROM table_name_68 WHERE hometown = ""tampa, florida""" Which Player has a Score of 67 in united states?,"SELECT player FROM table_name_17 WHERE score = 67 AND country = ""united states""" Name the minimum total for ireland,"SELECT MIN(total) FROM table_1456056_1 WHERE country = ""Ireland""" What is every game on November 21?,SELECT game FROM table_27539535_4 WHERE november = 21 Which team is located in missouri and was established in 1963?,"SELECT team FROM table_name_99 WHERE state_province = ""missouri"" AND est = ""1963""" Which couple participated in the Contemporary style of dance?,"SELECT couple FROM table_name_27 WHERE style = ""contemporary""" "What is the highest draft after round 2, is from the United States and has picked less than 113?","SELECT MAX(draft) FROM table_name_89 WHERE round > 2 AND nationality = ""united states"" AND pick < 113" Name the literature for pradit prasarttong,"SELECT literature FROM table_name_72 WHERE performing_arts = ""pradit prasarttong""" "What are the keywords for the paper which was published on ""Modeling Identification and Control"" in 1994?",SELECT T2.Keyword FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Modeling Identification and Control' AND T2.Year = 1994 What is the value in 1965 when 7 is the value for 1967?,"SELECT 1965 FROM table_name_81 WHERE 1967 = ""7""" What are the different cities where people live?,SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id "Who was the away team on 30 January 1988, when the home team was Everton?","SELECT away_team FROM table_name_45 WHERE home_team = ""everton"" AND date = ""30 january 1988""" Was there HDTV when the service was Privè?,"SELECT hdtv FROM table_15887683_19 WHERE television_service = ""PRIVÈ""" what's Smith Hall student capacity?,"SELECT DISTINCT ( T1.student_capacity ) FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = ""Smith Hall""" Which source reported 32.60% of browsers used Chrome?,"SELECT source FROM table_name_43 WHERE chrome = ""32.60%""" What is the scientific pitch when the Helmholtz pitch is D?,"SELECT scientific_pitch FROM table_name_33 WHERE helmholtz_pitch = ""d""" How many teams had a point margin of 48?,SELECT COUNT(eliminated_from_competition) FROM table_28068063_3 WHERE points_margin = 48 "Thank you. Can you please tell me the name of the engineer that was contacted by each manager? | Of course. First or Last name? | First and Last name, please.","SELECT T3.first_name , T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id" "What is the result for November 25, 2001?","SELECT result FROM table_name_45 WHERE date = ""november 25, 2001""" "Please list the names of the authors of the paper ""Area Effects in Cepaea"".",SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Area Effects in Cepaea' How many friends does Dan have?,SELECT count(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan' What is the name of the episode that had 8.51 million viewers?,"SELECT title FROM table_26139405_1 WHERE viewers__in_millions_ = ""8.51""" What was the original air date for season number 2?,SELECT original_air_date FROM table_21781578_2 WHERE season_no = 2 How many weight of Francesco Postiglione?,"SELECT weight FROM people where name = ""Francesco Postiglione""" Find the capacity and gender type of the dorm whose name has substring ‘Donor’.,"SELECT student_capacity , gender FROM dorm WHERE dorm_name LIKE '%Donor%'" "How many category names start with the word ""game""?",SELECT COUNT(label_id) FROM label_categories WHERE category LIKE 'game%' what is the highest amount claimed on the claim headers,SELECT max ( amount_claimed ) from claim_headers Tell me the sum of draws for position less than 15 with played more than 38,SELECT SUM(draws) FROM table_name_95 WHERE position < 15 AND played > 38 "Show the guest first names, start dates, and end dates of all the apartment bookings.","SELECT T2.guest_first_name , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id" Name the drivetrain for 2ur-fse,"SELECT drivetrain FROM table_21530474_1 WHERE engine_code = ""2UR-FSE""" Calculate the total amount of donations made in 2011 for an honoree with payment via campaign page.,SELECT SUM(donation_total) FROM donations WHERE donation_timestamp LIKE '2011%' AND via_giving_page = 't' AND for_honoree = 't' Select the name and price of the cheapest product.,"SELECT name , price FROM Products ORDER BY price ASC LIMIT 1" what is the winner of stage 3,SELECT winner FROM table_name_75 WHERE stage = 3 Who was the play by play commentator for ABC after 1998?,"SELECT play_by_play FROM table_name_61 WHERE network = ""abc"" AND year > 1998" What was the score for Spain?,"SELECT score FROM table_name_28 WHERE country = ""spain""" What Outcome has a Rocket launch of rehnuma-11?,"SELECT outcomes FROM table_name_93 WHERE rocket_launch = ""rehnuma-11""" What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km?,"SELECT SUM(population__2010_census_) FROM table_name_16 WHERE administrative_division = ""japeri"" AND area__km²_ < 82.9" "On the day with the highest max temperature in 2012, how many items in store no.3 had no sales?","SELECT COUNT(DISTINCT T1.item_nbr) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr AND T1.store_nbr = 3 AND SUBSTR(T1.`date`, 1, 4) = '2012' AND T1.units = 0 GROUP BY T3.tmax ORDER BY T3.tmax DESC LIMIT 1" What are their product descriptions?,"SELECT T1.product_name , T2.color_description , T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" What venue has eng by 10 runs as the result?,"SELECT venue FROM table_name_2 WHERE result = ""eng by 10 runs""" What is the average age of the female students with secretary votes in the spring election cycle?,"SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = ""F"" AND T2.Election_Cycle = ""Spring""" What machine has 5 as the place?,SELECT machine FROM table_name_95 WHERE place = 5 Which city has most number of customers?,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; What is the total round of the 129 pick?,SELECT COUNT(round) FROM table_name_49 WHERE pick__number = 129 "Among the businesses with a category of Food, what is the percentage of the business with greater than 3 stars?",SELECT CAST(SUM(CASE WHEN T1.stars > 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Food' "Which competition was held on September 10, 2005?","SELECT competition FROM table_name_58 WHERE date = ""september 10, 2005""" Which airport had the most domestic passengers?,SELECT airport_name FROM airport order by Domestic_Passengers desc limit 1 List the words that are cited in both AI and IR class label.,SELECT DISTINCT T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.class_label = 'AI' OR T1.class_label = 'IR' What is the League a for 1908–1928?,"SELECT league_a FROM table_name_30 WHERE years = ""1908–1928""" What is the theme where the original artist is Noemi feat. Fiorella Mannoia?,"SELECT theme FROM table_25374338_1 WHERE original_artist = ""Noemi feat. Fiorella Mannoia""" Identify the number of employees in Northern sales region.,SELECT COUNT(T2.EmployeeID) FROM Territories AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.TerritoryID = T2.TerritoryID INNER JOIN Region AS T3 ON T1.RegionID = T3.RegionID WHERE T3.RegionDescription = 'Northern' Name the site with game of game 6,"SELECT site FROM table_name_49 WHERE game = ""game 6""" How many millions of U.S. viewers whatched episodes written by Krystal Houghton?,"SELECT us_viewers__millions_ FROM table_11411026_2 WHERE written_by = ""Krystal Houghton""" What is the combined crowd in Vancouver on may 22?,"SELECT SUM(attendance) FROM table_name_43 WHERE home = ""vancouver"" AND date = ""may 22""" I want to know the names of advisors available,"SELECT fname , lname FROM Faculty" Count the number of customers who have an account.,SELECT count(DISTINCT customer_id) FROM Accounts "Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor?","SELECT name FROM table_name_8 WHERE term_expires = ""december 31, 2020"" AND appointing_governor = ""terry branstad""" "What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?","SELECT genre FROM table_name_48 WHERE role = ""episode actor"" AND original_title = ""franciska vasárnapjai (hungarian)""" "Who has a term that expires on December 31, 2020 and Terry Branstad for an appointing governor?","SELECT name FROM table_name_33 WHERE term_expires = ""december 31, 2020"" AND appointing_governor = ""terry branstad""" Who wrote the episode for s02 e07?,"SELECT written_by FROM table_16384596_4 WHERE broadcast_order = ""S02 E07""" How many accounts have a savings balance above the average savings balance?,SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings) What is the average typical buying price?,"SELECT avg ( typical_buying_price ) FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" List the products involved in the complaints received on March 2017 via TOVA server.,SELECT DISTINCT T2.Product FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T1.server = 'TOVA' AND T2.`Date received` LIKE '2017-03%' "Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year?","SELECT SUM(year) FROM table_name_39 WHERE location = ""saint paul"" AND final_score > 14.35 AND event = ""all around""" "What are the ids, scores, and dates of the games which caused at least two injury accidents?","SELECT T1.id , T1.score , T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING count(*) >= 2" "What is the character and work ID of the text ""Fear not thou, man, thou shalt lose nothing here.""?","SELECT T2.character_id, T1.work_id FROM chapters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.chapter_id WHERE T2.PlainText = 'Fear not thou, man, thou shalt lose nothing here.'" "What are all the characteristic names of product ""sesame""?","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 the numbers of the shortest flights?,SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3 "What are the master index IDs for all except whose detail includes Schmidt, Kertzmann and Lubowitz?","SELECT master_customer_id FROM Customer_Master_Index where cmi_details ! = ( 'Schmidt, Kertzmann and Lubowitz' ) " List all channel names ordered by their rating in percent from big to small.,SELECT name FROM channel ORDER BY rating_in_percent DESC Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.,"SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" "What are the name and typical buying and selling prices of the products that have color described as ""yellow""?","SELECT t1.product_name , t1.typical_buying_price , t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = ""yellow""" In which year was Panzer Tactics released on DS?,SELECT T4.release_year FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T5.platform_name = 'DS' What is the total gold with a total less than 1?,SELECT SUM(gold) FROM table_name_2 WHERE total < 1 "Find all the building full names containing the word ""court"".","SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE ""%court%""" What shows for IATA for the City of sapporo?,"SELECT iata FROM table_name_89 WHERE city = ""sapporo""" List the population density per kilometer for the city of abra de ilog.,"SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = ""Abra de Ilog""" "For each station, find its latitude and the minimum duration of trips that ended at the station.","SELECT T1.name , T1.lat , min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id" When santiago del estero is the hometown who is the contestant?,"SELECT contestant FROM table_18626383_2 WHERE hometown = ""Santiago del Estero""" Report all majors that have less than 3 students.,SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3 "What is the Margin of Victory, when Tournament is Mercedes Championships (3)?","SELECT margin_of_victory FROM table_name_24 WHERE tournament = ""mercedes championships (3)""" Find the names of customers who are not living in the state of California.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' Name the lfop for 5/11/09 with lfop 1/9/09 of 5%,"SELECT ifop_5_11_09 FROM table_name_18 WHERE ifop_1_9_09 = ""5%""" "What are the names of gymnasts whose hometown is not ""Santo Domingo""?","SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown != ""Santo Domingo""" What is the percentage of Swedish players in playoffs games in the 1997 - 2000 season?,"SELECT DISTINCT CAST(COUNT(CASE WHEN T1.nation = 'Sweden' THEN T1.ELITEID ELSE NULL END) OVER (PARTITION BY T2.SEASON) AS REAL) * 100 / COUNT(T1.ELITEID) OVER (PARTITION BY T2.SEASON) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.SEASON IN ('1997-1998', '1998-1999', '1999-2000')" How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.,"SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1" Can you tell me how many different purchases Lucas Mancini has made?,"SELECT count ( * ) FROM invoices AS T2 JOIN customers AS T1 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini""" Trains that run in which direction have more rectangle-shaped cars in total?,"SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS rectCarsNum FROM cars WHERE shape = 'rectangle' GROUP BY train_id ) AS T2 ON T1.id = T2.train_id ORDER BY T2.rectCarsNum DESC" List down the game platform ID and region name where the games achieved 20000 sales and below.,"SELECT T2.game_platform_id, T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 <= 20000" Which station has park & ride lot parking? ,"SELECT stations FROM table_2093995_1 WHERE parking = ""Park & Ride Lot""" "In what year was this event held in Oslo, Norway?","SELECT year FROM table_name_13 WHERE venue = ""oslo, norway""" Find the top 3 wineries with the greatest number of wines made of white color grapes.,"SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = ""White"" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3" "What is the Brigade, when the Type is Rural, and when the value for Tankers is 1?","SELECT brigade FROM table_name_10 WHERE type = ""rural"" AND tankers = 1" "OK, now list all the people who live in Winnipeg and their gender.","SELECT Player_name, Gender FROM player WHERE Residence = ""Winnipeg""" "What Giant Slalom has Victories larger than 27, a Slalom of –, and a Career of 1996–2009?","SELECT giant_slalom FROM table_name_45 WHERE victories > 27 AND slalom = ""–"" AND career = ""1996–2009""" "Among the employees whose pay frequencies are the highest, how many of them are married?",SELECT COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.MaritalStatus = 'M' AND T1.PayFrequency = ( SELECT PayFrequency FROM EmployeePayHistory ORDER BY PayFrequency DESC LIMIT 1 ) "Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc?",SELECT COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T1.cust_name = 'S K L Enterprises Inc' AND T3.first_name = 'Sue' AND T3.last_name = 'Newell' How many tries were there for club cwmtwrch rfc?,"SELECT tries_against FROM table_name_52 WHERE club = ""cwmtwrch rfc""" "What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?","SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = ""學警雄心""" What is the latest season number that Eric Tuchman directed? ,"SELECT MAX(season__number) FROM table_2219961_2 WHERE director = ""Eric Tuchman""" What is the Date with a Score with 86–108?,"SELECT date FROM table_name_7 WHERE score = ""86–108""" Show the denomination shared by schools founded before 1890 and schools founded after 1900,SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900; What Version has a Title of alarm clock?,"SELECT version FROM table_name_77 WHERE title = ""alarm clock""" What is the result for the Outer Critics Circle award earlier than 2004?,"SELECT result FROM table_name_6 WHERE award = ""outer critics circle award"" AND year < 2004" I want the total number of Laps for time/retired for + 4 Laps and grid more than 20,"SELECT COUNT(laps) FROM table_name_32 WHERE time_retired = ""+ 4 laps"" AND grid > 20" What was the max points you when when you place 9th?,"SELECT MAX(points) FROM table_17289224_1 WHERE final_placing = ""9th""" "On which date was the match in Manama, Bahrain?","SELECT date FROM table_name_63 WHERE venue = ""manama, bahrain""" How many orders placed were with more than 5 product quantities?,"SELECT SUM(IIF(`Order Quantity` > 5, 1, 0)) FROM `Sales Orders`" What are the names of players whose training hours is between 500 and 1500?,SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 Find the titles of all movies that have no ratings.,SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating) Find the ids of reviewers who didn't only give 4 star.,SELECT rID FROM Rating WHERE stars != 4 How many orders with a quantity greater than 5 have been shipped by the fastest delivery method?,SELECT COUNT(DISTINCT `Order ID`) FROM central_superstore WHERE Quantity > 5 AND `Ship Mode` = 'First Class' How many businesses in AZ state have the beer_and_wine attribute?,SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id WHERE T2.attribute_value LIKE 'beer_and_wine' AND T1.state LIKE 'AZ' What is the winner for Virginia?,"SELECT winner FROM table_name_99 WHERE location = ""virginia""" What are the names for the top three branches with most number of membership?,SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 What player has a To Par of +1 with a score of 71-67-73=211?,"SELECT player FROM table_name_89 WHERE to_par = ""+1"" AND score = 71 - 67 - 73 = 211" Please list the texts of all the tweets that are not in English.,SELECT text FROM twitter WHERE Lang != 'en' What is the average price for wines not produced in Sonoma county?,SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') How many type of governments are in Africa?,"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = ""Africa""" What is the population of the district with the least population?,SELECT SUM(population) FROM Community_Area GROUP BY side ORDER BY SUM(population) LIMIT 1 "Name the country for 11,891 area","SELECT country FROM table_160510_5 WHERE area = ""11,891""" What was the To par when the place was 4?,"SELECT to_par FROM table_name_60 WHERE place = ""4""" What is the Martin McGuinness with a David Norris that is 10.3%?,"SELECT martin_mcguinness FROM table_name_16 WHERE david_norris = ""10.3%""" To which menu does the menu page image ID5189412 belong? Please give its name.,SELECT T1.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.image_id = 5189412 Find the id of instructors who didn't teach any courses?,SELECT id FROM instructor EXCEPT SELECT id FROM teaches "what are the companies that produce the most expensive furniture | Do you mean the names of manufacturers that produce the most expensive furniture? | yes, the names of the company that produces the most expensive furniture",SELECT t1.name 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's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?","SELECT MIN(react) FROM table_name_90 WHERE lane > 3 AND time < 20.3 AND nationality = ""zimbabwe"" AND rank > 1" "What is the total number of Total, when To Par is ""7""?",SELECT COUNT(total) FROM table_name_50 WHERE to_par = 7 Find the name of instructor who is the advisor of the student who has the highest number of total credits.,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 What is the name of the game in which the oldest Olympian has ever participated?,SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id ORDER BY T2.age LIMIT 1 How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?,"SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = ""bahgallah"" AND byes > 3" What were the high points on september 9?,"SELECT high_points FROM table_name_16 WHERE date = ""september 9""" What are the names of teams that do no have match season record?,SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season) What position had a debut in round 6?,"SELECT position FROM table_name_66 WHERE debut = ""round 6""" What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?,"SELECT player FROM table_name_21 WHERE division = ""west"" AND team = ""special teams"" AND school = ""toledo western michigan""" What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?,"SELECT result FROM table_name_46 WHERE location = ""riverfront stadium"" AND opponent = ""miami dolphins""" What are the different names of mountains ascended by climbers from the country of West Germany?,"SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = ""West Germany""" How many teachers does the student named CHRISSY NABOZNY have?,"SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""CHRISSY"" AND T1.lastname = ""NABOZNY""" "Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?","SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = ""greg proops"" AND performer_3 = ""ryan stiles"" AND date = ""25 august 1995""" "Which class has a city of Richmond, Virginia?","SELECT class FROM table_name_20 WHERE city_of_license = ""richmond, virginia""" What are the names of wines whose production year are before the year of all wines by Brander winery?,"SELECT Name FROM WINE WHERE YEAR < (SELECT MIN(YEAR) FROM WINE WHERE Winery = ""Brander"")" what is the name of the party with region ID 3,SELECT party_name FROM party WHERE Region_id = 3 Who are the technicians?,SELECT Name FROM technician Who is the employee with the highest salary? Specify his/her full name.,"SELECT firstname, lastname FROM employee WHERE CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL)) FROM employee )" "Which Blagojevich (D) has a Source of zogby/wsj, and a Topinka (R) of 33.2%?","SELECT blagojevich__d_ FROM table_name_5 WHERE source = ""zogby/wsj"" AND topinka__r_ = ""33.2%""" In which city is the sea whose depth is 4232 meters less than that of the Bay of Bengal?,SELECT T2.City FROM sea AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Sea INNER JOIN city AS T3 ON T3.Name = T2.City WHERE ( SELECT Depth FROM sea WHERE Name LIKE '%Bengal%' ) - T1.Depth = 4235 "What are the descriptions of the courses with name ""database""?","SELECT course_description FROM COURSES WHERE course_name = ""database""" Which District has a Result of Re-elected and a First Elected of 1898?,"SELECT district FROM table_name_95 WHERE result = ""re-elected"" AND first_elected = 1898" Who is the away team at junction oval?,"SELECT away_team FROM table_name_74 WHERE venue = ""junction oval""" "Among all shipments delivered by Sue Newel, identify the percentage of shipments that were placed by Autoware Inc.",SELECT CAST(SUM(CASE WHEN T3.cust_name = 'Autoware Inc' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id INNER JOIN customer AS T3 ON T3.cust_id = T1.cust_id WHERE T2.first_name = 'Sue' AND T2.last_name = 'Newell' Who was the coach who had 215 losses?,SELECT coach FROM table_name_33 WHERE losses = 215 Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.,"SELECT Ref_Shipping_Agents.shipping_agent_name , count(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY count(Documents.document_id) DESC LIMIT 1;" How many different kinds of reports are there for races that Juan Manuel Fangio won?,"SELECT COUNT(report) FROM table_1140111_5 WHERE winning_driver = ""Juan Manuel Fangio""" "What are the titles of papers published by ""Jeremy Gibbons""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Jeremy"" AND t1.lname = ""Gibbons""" How many game types do you have?,SELECT count ( distinct gtype ) FROM Video_games What years did Troy Hudson play for the Jazz?,"SELECT years_for_jazz FROM table_name_29 WHERE player = ""troy hudson""" "What is the full name of the conference in which the paper ""2004 YD5"" was published?",SELECT T1.FullName FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T2.Title = '2004 YD5' Who was the constructor of the car that Jan Lammers made 7-14 rounds in?,"SELECT constructor FROM table_name_25 WHERE driver = ""jan lammers"" AND rounds = ""7-14""" "What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats?",SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000 who is the the winning driver with pole position being paul tracy and race name being miller genuine draft 200,"SELECT winning_driver FROM table_14638077_2 WHERE pole_position = ""Paul Tracy"" AND race_name = ""Miller Genuine Draft 200""" What are the building short name of building id 133?,SELECT building_short_name FROM Apartment_Buildings WHERE building_id = 133 Find the number of distinct projects.,SELECT count(DISTINCT name) FROM projects "Among highest quality user of under ID 100, mention compliment type which got highest compliment number and user's followers.","SELECT T1.compliment_type, T3.user_fans FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T2.number_of_compliments = 'Uber' AND T2.user_id < 100" what's the date of birth with end of term being 5july1978,"SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = ""5July1978""" Where is the headquarters of the company general electric?,"SELECT Headquarters FROM company where Company = ""General Electric""" Return the hispanic percentage for cities in which the black percentage is greater than 10.,SELECT Hispanic FROM city WHERE Black > 10 How many different professors are there?,SELECT count ( distinct EMP_NUM ) FROM employee where EMP_JOBCODE = 'PROF' Who was the opponent when the H/A was H and the scorer was Ferguson?,"SELECT opponents FROM table_name_14 WHERE h___a = ""h"" AND scorers = ""ferguson""" What was the date when the attendance was n/a and the Man of the Match was unknown?,"SELECT date FROM table_name_32 WHERE attendance = ""n/a"" AND man_of_the_match = ""unknown""" Who is the author of the publication named 'Real-Time Automata'?,SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Real-Time Automata' Name of the capitals of the countries that have less than 99.95% less population than the country that has the most population.,SELECT Capital FROM country WHERE Population <= ( SELECT MAX(Population) - MAX(Population) * 0.9995 FROM country ) What is the highest Purse for aug 3–5?,"SELECT MAX(purse__) AS $_ FROM table_name_80 WHERE dates = ""aug 3–5""" Who is the winning driver of the race with no race as the winning manufacturer?,"SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = ""no race""" Who won the tournament for Australia in the year when Byron Nelson was Honoree?,"SELECT player FROM table_1515346_2 WHERE country = ""Australia"" AND honoree_s_ = ""Byron Nelson""" What are the names of the tourist attractions Vincent and Marcelle visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Vincent"" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Marcelle""" What are the codes of template types that have fewer than 3 templates?,SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3 What is the home team of the game with tie number 34?,"SELECT home_team FROM table_name_76 WHERE tie_no = ""34""" What was the largest crowd at the Brunswick Street Oval?,"SELECT MAX(crowd) FROM table_name_75 WHERE venue = ""brunswick street oval""" How many wins in 1992?,SELECT wins FROM table_name_52 WHERE year = 1992 list out the names,SELECT Name FROM city Which player has an A-League of 150 (4)?,"SELECT name FROM table_name_40 WHERE a_league = ""150 (4)""" Who was the original artist of the Top 12 Men theme?,"SELECT original_artist FROM table_27614707_1 WHERE theme = ""Top 12 Men""" What is the nationality of the player from the University of Michigan (NCAA)?,"SELECT nationality FROM table_1965650_11 WHERE college_junior_club_team = ""University of Michigan (NCAA)""" What tie no has Watford as the date?,"SELECT tie_no FROM table_name_92 WHERE date = ""watford""" Find all the albums in 2012.,SELECT * FROM Albums WHERE YEAR = 2012 "Show cinema name, film title, date, and price for each record in schedule.","SELECT T3.name , T2.title , T1.date , T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id" "For each bed type, find the average base price of different bed type.","SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;" Which Production Technician has the highest pay rate?,SELECT T1.BusinessEntityID FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle LIKE 'Production Technician%' ORDER BY T2.Rate DESC LIMIT 1 "In 2020, what were the total orders of all stores in Maricopa County?",SELECT SUM(CASE WHEN T2.County = 'Maricopa County' AND OrderDate LIKE '%/%/20' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID What are the different states that have students trying out?,SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName When was the match with a result of sa by 10 wkts?,"SELECT date FROM table_name_23 WHERE result = ""sa by 10 wkts""" "Could you tell me when those departments were founded, and display the name next to each founding year?","SELECT Creation, Name FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'" When was the game with a record of 9-3?,"SELECT date FROM table_name_65 WHERE record = ""9-3""" Can you please show me the names of all male architects by their names lexicographically?,SELECT name FROM architect WHERE gender = 'male' ORDER BY name "For the professor who is working with Harrietta Lydford, how is his popularity?",SELECT T1.popularity FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.f_name = 'Harrietta' AND T3.l_name = 'Lydford' What is the strongs transliteration of the hebrew word יוֹחָנָן?,"SELECT strongs_transliteration FROM table_1242447_1 WHERE hebrew_word = ""יוֹחָנָן""" What are the names for tracks without a race in class 'GT'.,SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT' Who are the mens singles and womens singles with sun yu?,"SELECT mens_singles FROM table_13553701_1 WHERE womens_singles = ""Sun Yu""" How many disabled students have never been absent from school?,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` = 0 What's the name of train number 15647/48?,"SELECT train_name FROM table_12095519_1 WHERE train_no = ""15647/48""" Find the names of the trains that do not pass any station located in London.,"SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = ""London"")" What is the highest game number?,SELECT MAX(game) FROM table_27755784_10 Calculate the increment percentage of elite user for each year since year 2005.,SELECT CAST(COUNT(CASE WHEN year_id < 2014 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(CASE WHEN year_id = 2005 THEN 1.0 ELSE NULL END) AS increment FROM Elite What was the record against Washington?,"SELECT COUNT(record) FROM table_17121262_10 WHERE team = ""Washington""" "What is the average ROM size of phones produced by the company named ""Nokia Corporation""?","SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"";" Find the names of the campus which has more faculties in 2002 than every campus in Orange county.,"SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = ""Orange"")" Find the checking balance and saving balance in the Brown’s account.,"SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'" What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?,"SELECT _percentage_of_all_immigrants_2007 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2008 = ""1.7%""" What player has 69-70-68-73=280 as the score?,SELECT player FROM table_name_52 WHERE score = 69 - 70 - 68 - 73 = 280 Which Platelet count has a Partial thromboplastin time of prolonged or unaffected?,"SELECT platelet_count FROM table_name_20 WHERE partial_thromboplastin_time = ""prolonged or unaffected""" Give id of the instructor who advises students in the History department.,SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History' Which college had an overall pick of 9?,SELECT college FROM table_name_31 WHERE overall = 9 What is the result against everton?,"SELECT result FROM table_name_73 WHERE opponent = ""everton""" Which Week 6 Oct 5 has a Week 14 Nov 30 of texas (11-1)?,"SELECT week_6_oct_5 FROM table_name_37 WHERE week_14_nov_30 = ""texas (11-1)""" "What's the comp in Olympic Stadium Tokyo, Japan?","SELECT comp FROM table_name_60 WHERE venue = ""olympic stadium tokyo, japan""" Write down the top ten companies with the most total sales by amount.,SELECT CompanyName FROM `Sales Totals by Amount` ORDER BY SaleAmount DESC LIMIT 10 Which movie's song title has the highest total gross?,"SELECT T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" Find the name and id of accounts whose checking balance is below the maximum checking balance.,"SELECT T1.custid , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT max(balance) FROM checking)" How was the episode seen by 2.26 million HK viewers ranked?,"SELECT rank FROM table_19210674_1 WHERE hk_viewers = ""2.26 million""" What was Geelong's score when they were the home team?,"SELECT home_team AS score FROM table_name_9 WHERE home_team = ""geelong""" In what place did Bob Tway finish?,"SELECT finish FROM table_name_71 WHERE player = ""bob tway""" How many losses did Notre Dame have in 1904?,"SELECT AVG(losses) FROM table_name_43 WHERE years = ""1904""" Find the name of customers who have loans of both Mortgages and Auto.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' Who did they lose to on may 9?,"SELECT loss FROM table_name_83 WHERE date = ""may 9""" Where was the Fury FC 4: High Voltage event held?,"SELECT location FROM table_name_5 WHERE event = ""fury fc 4: high voltage""" What is the greatest total score received by aylar & egor when karianne Gulliksen gave an 8?,"SELECT MAX(total) FROM table_28677723_16 WHERE couple = ""Aylar & Egor"" AND karianne_gulliksen = 8" What is the name of the episodes which had 1.22 million U.S. viewers?,"SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = ""1.22""" What is the Jobbik percentage with a Fidesz of 61% and others of 2%?,"SELECT jobbik FROM table_name_41 WHERE fidesz = ""61%"" AND others = ""2%""" "How about the order with invoice number 13, when was that order placed?",SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 13 What is the average access count of documents that have the least common structure?,SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1 What are the different ranges of the 3 mountains with the highest prominence?,SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3 List the names of journalists in ascending order of years working.,SELECT Name FROM journalist ORDER BY Years_working "for the other of mouy, what's the khmer?","SELECT khmer FROM table_name_20 WHERE other = ""mouy""" What player has t5 as the place?,"SELECT player FROM table_name_38 WHERE place = ""t5""" What is HMS Gorgon's rank?,"select T1.Rank from captain as T1 join Ship as T2 on T1.Ship_ID = T2.Ship_ID where T2.Name = ""HMS Gorgon""" What is the name of the swimmer in lane 6?,SELECT name FROM table_name_87 WHERE lane = 6 When is the most recent year with more than 27 points and more than 5 wins?,SELECT MAX(year) FROM table_name_69 WHERE points > 27 AND wins > 5 Which of the top 3 economies by GDP has the lowest proportion of the economy devoted to agriculture?,"SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC, T2.Agriculture ASC LIMIT 1" How many patients in this table?,SELECT count ( patient ) FROM Stay Which European Cup is in the 2006-07 season?,"SELECT european_cup FROM table_name_91 WHERE season = ""2006-07""" Name the most minutes for morgan jennings,"SELECT MAX(minutes) FROM table_23183195_5 WHERE player = ""Morgan Jennings""" What is the bowling skill used by most players?,SELECT T1.Bowling_Skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T2.Bowling_skill = T1.Bowling_Id GROUP BY T1.Bowling_Skill ORDER BY COUNT(T1.Bowling_Skill) DESC LIMIT 1 What is the lowest Against when the played is more than 10?,SELECT MIN(against) FROM table_name_4 WHERE played > 10 Please provide the path of solution of method whose tokenized name is html parser feed.,SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'html parser feed' what is the name of journalist ID 2,select Name from journalist where journalist_ID = 2 "What is the revision ID for the page on Catalan titled ""Arqueologia""?",SELECT revision FROM pages WHERE lid = 1 AND title = 'Arqueologia' "Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009?","SELECT MIN(inhabitants) FROM table_name_4 WHERE mayor = ""matteo renzi"" AND election > 2009" List out all the players fullname who won the championship in 1970.,"SELECT DISTINCT T3.firstName, T3.middleName, T3.lastName FROM series_post AS T1 INNER JOIN players_teams AS T2 ON T1.tmIDWinner = T2.tmID INNER JOIN players AS T3 ON T3.playerID = T2.playerID WHERE T1.year = 1970 AND T1.round = 'F'" Excellent! Can you tell me how many people in total have Santo Domingo as their Hometown?,"SELECT count ( * ) FROM people WHERE Hometown = ""Santo Domingo""" "What is the average ROM size of phones produced by the company named ""Nokia Corporation""?","SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"";" List out the state of driver who transported the shipment id 1055.,SELECT T2.state FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1055' How many songs have a shared vocal?,"SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = ""shared""" What is the percentage of historical works that have not fewer than five scenes in the 1500s?,SELECT CAST(( SELECT COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'History' AND T1.DATE BETWEEN 1500 AND 1599 GROUP BY T1.id HAVING COUNT(T2.Scene) >= 5 ) AS REAL) * 100 / COUNT(id) FROM works WHERE GenreType = 'History' AND DATE BETWEEN 1500 AND 1599 What is the name of the department in the Building Mergenthaler?,"SELECT DName FROM DEPARTMENT WHERE Building = ""Mergenthaler""" What is the average number of laps for the driver Piero Taruffi?,"SELECT AVG(laps) FROM table_name_50 WHERE driver = ""piero taruffi""" Find the number of users who posted some tweets.,SELECT COUNT(DISTINCT UID) FROM tweets Find the number of accounts with a savings balance that is higher than the average savings balance.,SELECT count(*) FROM savings WHERE balance > (SELECT avg(balance) FROM savings) "Awesome, Im almost done, but can you tell me overall who worked the least amount of years as well?","SELECT journalist_ID FROM journalist order by Years_working limit 1" "What is the employee's last name at 7211 S Hermitage Ave, Chicago, IL?",SELECT last_name FROM employee WHERE address = '7211 S Hermitage Ave' AND city = 'Chicago' AND state = 'IL' What is the highest Attendance when the away team was Wrexham?,"SELECT MAX(attendance) FROM table_name_39 WHERE away_team = ""wrexham""" What are the names of the tourist attractions that can be accessed by bus?,"SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus""" "Who published the book ""The Secret Garden""?",SELECT DISTINCT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Secret Garden' Name the attendance for time of 1:31,"SELECT attendance FROM table_name_21 WHERE time = ""1:31""" list the amount for the largest donation,SELECT amount FROM endowment ORDER BY amount DESC LIMIT 1 What are the dimensions of the coin worth ₩200?,"SELECT dimensions FROM table_298883_5 WHERE value = ""₩200""" What is the lowest no. in series?,SELECT MIN(no_in_series) FROM table_17758010_2 What is the Musical Guest/Song with an original airdate of january 2008?,"SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = ""january 2008""" Great! Can you tell me how many employees have ED as their Role_code?,"SELECT count ( * ) FROM Employees where role_code = ""ED""" "What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?","SELECT MIN(silver) FROM table_name_15 WHERE bronze = 1 AND total = 1 AND rank = ""17"" AND gold < 0" What year ranked larger than 5?,SELECT year FROM table_name_18 WHERE rank > 5 What is the current official Youtube username of Chris Van Hollen?,SELECT T2.youtube FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Chris Van Hollen' "Pick larger than 229, and a Round smaller than 12, and a Position of defensive back is what school/club team?","SELECT school_club_team FROM table_name_66 WHERE pick > 229 AND round < 12 AND position = ""defensive back""" State the title of papers published in the Ibm Journal of Research and Development.,SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Ibm Journal of Research and Development' Show the id of the game platform with the most sales in region 2.,"SELECT T1.game_platform_id FROM ( SELECT T.game_platform_id, SUM(T.num_sales) FROM region_sales AS T WHERE T.region_id = 2 GROUP BY T.game_platform_id ORDER BY SUM(T.num_sales) DESC LIMIT 1 ) T1" What is the average silver with a Rank smaller than 2 and more than 1 gold?,SELECT AVG(silver) FROM table_name_61 WHERE rank < 2 AND gold > 1 please list out the titles on the table,SELECT title FROM papers "Write down the store IDs and region of the state ""Michigan"".","SELECT DISTINCT T2.StoreID, T1.Region FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T2.State = 'Michigan'" "What is the Proto-Oceanic verb for to die, be dead?","SELECT proto_oceanic FROM table_name_44 WHERE verb = ""to die, be dead""" Very good! Can display a list of all of the employees first names which contain a letter Z in their first name? | which colums to return? | Oh thanks! You went ahead and added the last name and city! Could you also add to this list which country each of these people live in?,"SELECT T1.first_name , T1.last_name , T3.city ,T3.COUNTRY_ID FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'" "How much Total has a Player of todd hamilton, and a To par smaller than 15?","SELECT COUNT(total) FROM table_name_55 WHERE player = ""todd hamilton"" AND to_par < 15" What round had a time of 0:39?,"SELECT MIN(round) FROM table_name_21 WHERE time = ""0:39""" What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?,"SELECT MIN(year) FROM table_name_99 WHERE entrant = ""rotary watches stanley brm"" AND chassis = ""brm p207"" AND points > 0" Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.,"SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;" Name the winner for 29 march,"SELECT winning_driver FROM table_name_98 WHERE date = ""29 march""" is there any person who has no student friends,SELECT * FROM person EXCEPT SELECT * FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' What is the district name for District id 11?,SELECT district_name from district where district_id = 11 "How many Pick #s have a Name of tory epps, and a Round larger than 8?","SELECT COUNT(pick__number) FROM table_name_96 WHERE name = ""tory epps"" AND round > 8" Thank you. Can you please provide the price of each of these items as well sorted by lowest price first?,"SELECT name, price FROM products WHERE price > = 180 order by price asc" "What are the first names of all players, and their total ranking points?","SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name" what is the date the high assists was andre miller (7)?,"SELECT date FROM table_27734769_8 WHERE high_assists = ""Andre Miller (7)""" What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.,"SELECT date , cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5" Which state has the most players selected as all stars?,SELECT T1.birthState FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID GROUP BY T1.birthState ORDER BY COUNT(DISTINCT T1.playerID) DESC LIMIT 1 What's the record of the @ miami team?,"SELECT record FROM table_27734577_8 WHERE team = ""@ Miami""" "Which orders are made by the customer named ""Jeramie""? Give me the order ids and status.","SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" Which student's age is older than 18 and is majoring in 600? List each student's first and last name.,"SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major = 600;" Give the postal code for the address No.65.,SELECT postal_code FROM address WHERE address_id = 65 Name the points aginst when drawn is 1 and points is 51,"SELECT points_against FROM table_17625749_1 WHERE drawn = ""1"" AND points = ""51""" What was the game result against the minnesota vikings?,"SELECT result FROM table_name_3 WHERE opponent = ""minnesota vikings""" "What was the share for the episode with the air date december 10, 2008?","SELECT share FROM table_11238597_4 WHERE air_date = ""December 10, 2008""" Can you tell me the names of all compatible browsers and accelerators?,"SELECT T2.name , T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id" "What is the Attendance, when the Opponent is the Tampa Bay Buccaneers?","SELECT attendance FROM table_name_80 WHERE opponent = ""tampa bay buccaneers""" "What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is ""January 2059"", and when HD Designation is ""HD193664""?","SELECT date_sent FROM table_name_75 WHERE signal_power___kw__ < 126 AND arrival_date = ""january 2059"" AND hd_designation = ""hd193664""" What is the college/junior/club team (league) of the player who was pick number 130?,"SELECT college_junior_club_team__league_ FROM table_14209245_9 WHERE pick__number = ""130""" What's the time for the match with a record of 2-0?,"SELECT time FROM table_name_74 WHERE record = ""2-0""" What was the manner in which Petrik Sander departed?,"SELECT manner_of_departure FROM table_17085981_2 WHERE outgoing_manager = ""Petrik Sander""" What is the description and code of the type of service that is performed the most often?,"SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" "Which vocal type did the musician with last name ""Heilo"" played in the song with title ""Der Kapitan""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = ""Heilo"" AND T2.title = ""Der Kapitan""" "How many characteristics does the product named ""laurel"" have?","SELECT count(*) 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 = ""laurel""" Could you show me a list of employees with a salary less than the average?,SELECT name FROM Employee WHERE salary < ( SELECT avg ( salary ) FROM Employee ) Can you show me the number of drivers who are from Hartford City?,SELECT count ( * ) FROM driver WHERE home_city = 'Hartford' Find the name and id of the good with the highest average rank.,"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.rank) DESC LIMIT 1" What are the names of products whose availability equals to 1?,SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1 Name the record for april 1,"SELECT record FROM table_17102076_10 WHERE date = ""April 1""" What kind of surface was the Tournament at Sunderland played on?,"SELECT surface FROM table_name_32 WHERE tournament = ""sunderland""" "How many world rankings are after Aug 5, 1980 ?","SELECT SUM(world_ranking) FROM table_name_80 WHERE date = ""aug 5"" AND year > 1980" What date has a solitudering circuit,"SELECT date FROM table_1140103_6 WHERE circuit = ""Solitudering""" Find the distinct last names of all the students who have president votes and whose advisor is not 2192.,"SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = ""2192""" How many part supplies were nearly out of stock?,SELECT COUNT(ps_suppkey) FROM partsupp WHERE ps_availqty < 10 Which apartments have unit status availability of both 0 and 1? Return their apartment numbers.,SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1 "How many players born in USA are right-handed batters? That is, have the batter value 'R'.",SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'; Find the name of the user who gave the highest rating.,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1 Who and what were the high points player for the game against Detroit?,"SELECT high_points FROM table_27756572_6 WHERE team = ""Detroit""" How many Grand Prix were the winning constructor Benetton - Ford and the pole position was Michael Schumacher?,"SELECT COUNT(grand_prix) FROM table_1137702_3 WHERE winning_constructor = ""Benetton - Ford"" AND pole_position = ""Michael Schumacher""" What was the Tie no when the Home team was wealdstone?,"SELECT tie_no FROM table_name_34 WHERE home_team = ""wealdstone""" Which rank is the start of totals?,"SELECT rank FROM table_name_78 WHERE start = ""totals""" Who was the developer of Resident Evil 4?,"SELECT developer_s_ FROM table_name_4 WHERE game = ""resident evil 4""" What was the score of the game on June 1?,"SELECT score FROM table_name_38 WHERE date = ""june 1""" Can you show me the name of the bank branch providing the greatest total amount of loans to customers?,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id GROUP BY T2.bname ORDER BY sum ( T1.amount ) DESC limit 1 "What is the maximum L3 cache of the processor whose speed is 2.00 GHZ, has a QPI speed of 4.8 gt/s, and is model e5504?","SELECT MAX(l3_cache__mb_) FROM table_269920_17 WHERE qpi_speed__gt_s_ = ""4.8"" AND speed__ghz_ = ""2.00"" AND model = ""E5504""" Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling?,"SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = ""Meaghan"" AND T2.customer_last_name = ""Keeling""" What is the average length in feet of the bridges?,SELECT avg(length_feet) FROM bridge What is the customer names of orders which have unit cost greater than 4000USD?,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.`Unit Cost` > 4000 THEN T1.`Customer Names` END AS T FROM Customers T1 INNER JOIN `Sales Orders` T2 ON T2._CustomerID = T1.CustomerID ) WHERE T IS NOT NULL "WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?","SELECT team FROM table_name_8 WHERE location_attendance = ""target center 11,921""" Which driver for Greenfield Mowers Racing has fewer than 36 points?,"SELECT driver FROM table_name_82 WHERE points < 36 AND team = ""greenfield mowers racing""" List the locations that are shared by more than two wrestlers.,SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2 what is the selling price of lotus?,"SELECT t1.typical_selling_price 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 = ""lotus""" Find the name of the user who gave the highest rating.,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1 what is the total number of songs?,select count ( * ) from song How many numbers were recorded points against when the tries were for 43?,"SELECT COUNT(points_against) FROM table_13564637_5 WHERE tries_for = ""43""" "What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps?","SELECT SUM(grid) FROM table_name_27 WHERE time_retired = ""+ 1:33.141"" AND laps < 70" "What is Score, when High Assists is ""Rajon Rondo (12)"", and when High Points is ""Paul Pierce (27)""?","SELECT score FROM table_name_64 WHERE high_assists = ""rajon rondo (12)"" AND high_points = ""paul pierce (27)""" What week did the Galaxy play the Amsterdam Admirals?,"SELECT week FROM table_24814477_2 WHERE opponent = ""Amsterdam Admirals""" what product Id has the highest price? | Do you mean the id of the product which has the highest price? | yes,SELECT product_id from products order by product_price desc limit 1 Show the hometowns shared by at least two teachers.,SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2 "What are the populations of the counties they come from, please?",select T1.Population from county AS T1 JOIN election AS T2 where T1.County_Id = District and T2.Committee = 'Appropriations' What original air dates are associated with a viewing figure of 7.27 million?,"SELECT original_air_date FROM table_15026994_2 WHERE viewing_figure = ""7.27 million""" Show distinct first and last names for all customers with an account.,"SELECT DISTINCT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id" What are their names?,SELECT Party FROM party Find the name of the first 5 customers.,SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5 "display the full name (first and last name), and salary of those employees who working in any department located in London.","SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'" Which Opponent has a October larger than 20 with a Score of 2–2?,"SELECT opponent FROM table_name_42 WHERE october > 20 AND score = ""2–2""" "Who played the No.2 character in the credit list of the movie ""American Hustle""?",SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'American Hustle' AND T2.creditOrder = '2' Which kit maker have Trond Sollied as a manager?,"SELECT kit_maker FROM table_name_44 WHERE manager = ""trond sollied""" Which country did Bradford Team belongs to?,SELECT DISTINCT T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Bradford' OR T1.AwayTeam = 'Bradford' "What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?",SELECT COUNT(position) FROM table_name_56 WHERE points > 5 AND drawn = 3 AND lost < 2 When did Carole Bernhard first become a customer?,"SELECT date_became_customer FROM Customers WHERE first_name = ""Carole"" AND last_name = ""Bernhard"";" "What are the degrees conferred in ""San Francisco State University"" in 2001?","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND t2.year = 2001" which rooms have reservations ?,SELECT DISTINCT room FROM reservations What are the ids of all songs that have higher resolution of the average resolution in the modern genre?,"SELECT f_id FROM song WHERE resolution > (SELECT avg(resolution) FROM song WHERE genre_is = ""modern"")" Which Tonnage is on 25 july 1942?,"SELECT tonnage FROM table_name_66 WHERE date = ""25 july 1942""" "What is Rank, when Event is ""LAPT4 São Paulo""?","SELECT rank FROM table_name_66 WHERE event = ""lapt4 são paulo""" Who is the quarterback for Arkansas State?,"SELECT player FROM table_name_38 WHERE position = ""quarterback"" AND college = ""arkansas state""" "Who was the home team at the game that had a crowd of over 24,520?",SELECT home_team FROM table_name_80 WHERE crowd > 24 OFFSET 520 What is the name of the constructor when report shows report in 1955?,"SELECT constructor FROM table_name_48 WHERE ""report"" = ""report"" AND year = ""1955""" "Among the universities in Australia, how many of them have a student staff ratio of over 15 in 2011?",SELECT COUNT(*) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Australia' AND T2.student_staff_ratio > 15 AND T2.year = 2011 What is the average for the couple anh & luda?,"SELECT average FROM table_23465011_5 WHERE couple = ""Anh & Luda""" What are the race ids that the driver with the surname Nakajima was in?,"SELECT T2.raceID FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid where T1.surname = ""Nakajima""" "What is the full number of Total Seats with a constituency seat number bigger than 0 with the Liberal Democrat party, and the Regional seat number is smaller than 6?","SELECT SUM(total_seats) FROM table_name_26 WHERE constituency_seats > 0 AND party = ""liberal democrat"" AND regional_seats < 6" Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.,SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased) > 50000 OR avg(total_amount_purchased) < 30000 Show me the ages of the 9 female students with ages under 25 years.,SELECT Age FROM student WHERE sex = 'F' AND age < 25 List the names of climbers in descending order of points.,SELECT Name FROM climber ORDER BY Points DESC What is the Director of Children of Sarajevo?,"SELECT director FROM table_name_39 WHERE film_title_used_in_nomination = ""children of sarajevo""" What are all the customer phone numbers under the most popular policy type?,SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1) "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.","SELECT T1.School_name , T1.Mascot , T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested , T2.total_budget_percent_budgeted" Return the amount of the largest payment.,SELECT amount FROM payment ORDER BY amount DESC LIMIT 1 What was the place when the score was 67-73-73=213?,SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213 What's the Proto Germanic when then German is /s/ or /ts/?,"SELECT proto_germanic FROM table_name_41 WHERE german = ""/s/ or /ts/""" What were the total number of entries in 2001 that had a front row smaller than 13?,"SELECT COUNT(entries) FROM table_name_55 WHERE season = ""2001"" AND front_row_starts < 13" How heavy were the players who attended Arkansas?,"SELECT weight FROM table_15582870_1 WHERE college = ""Arkansas""" What was David Backes' Offer Team?,"SELECT offer_team FROM table_name_59 WHERE player = ""david backes""" List all the official and unofficial languages used by the country that declared its independence in 1830.,"SELECT T2.Language, T2.IsOfficial FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.IndepYear = 1830 GROUP BY T2.Language, T2.IsOfficial" "How many times is the number of keywords in ""Refuge: Part 1"" episode than ""Shield"" episode?",SELECT CAST(SUM(CASE WHEN T1.title = 'Refuge: Part 1' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.title = 'Shield' THEN 1 ELSE 0 END) FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id what is the 2001 % for the status widowed or surviving partner?,"SELECT 2001 AS __percentage FROM table_273617_6 WHERE status = ""Widowed or surviving partner""" Find the average weight for each pet type.,"SELECT avg(weight) , pettype FROM pets GROUP BY pettype" Show ids of students who play video game and play sports.,SELECT StuID FROM Sportsinfo INTERSECT SELECT StuID FROM Plays_games How many teachers are not involved in any of them?,select count ( * ) from ( SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id ) What is the id of the event with the most participants?,SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY COUNT(*) DESC LIMIT 1 Name the points for with drawn of 0 and points of 88,"SELECT points_for FROM table_name_33 WHERE drawn = ""0"" AND points = ""88""" Calculate the percentage of penalty minutes of Swedish players in OHL league among all players.,SELECT CAST(COUNT(CASE WHEN T1.nation = 'Sweden' THEN T2.PIM ELSE NULL END) AS REAL) * 100 / COUNT(*) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.LEAGUE = 'OHL' What rowers have FA as the notes?,"SELECT rowers FROM table_name_41 WHERE notes = ""fa""" What is the current series where the new series began in June 2011?,"SELECT current_series FROM table_1000181_1 WHERE notes = ""New series began in June 2011""" What is the current status of the person named Nicholls?,"SELECT status FROM table_name_65 WHERE name = ""nicholls""" "How many domestic violence cases were brought in the ward that uses ""ward13@cityofchicago.org""?",SELECT SUM(CASE WHEN T2.domestic = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no WHERE T1.ward_email = 'ward13@cityofchicago.org' Which driver has a grid of 3?,SELECT driver FROM table_name_59 WHERE grid = 3 What is Michael and Melanie's rank?,"SELECT rank FROM table_19744915_15 WHERE couple = ""Michael and Melanie""" what is the competition on 10 august 2011?,"SELECT competition FROM table_name_75 WHERE date = ""10 august 2011""" Which trip had the shortest duration and started at the station that can hold 15 bikes?,SELECT T1.id FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.dock_count = 15 AND T1.duration = ( SELECT MIN(T1.duration) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.dock_count = 15 ) How many points total for san lorenzo?,"SELECT COUNT(points) FROM table_14460085_3 WHERE team = ""San Lorenzo""" what is the investor id of transaction id 3?,SELECT T1.investor_id FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id WHERE T2.transaction_id = 3 Which cmi cross reference id is not related to any parking taxes?,SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines Return the poll source corresponding to the candidate who has the oppose rate.,SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 Construction start of 1 december 1984 is what unit?,"SELECT unit FROM table_name_75 WHERE construction_start = ""1 december 1984""" What is the amount of renewable electricity without hydrogen power when the percentage of renewable energy is 83.4?,"SELECT renewable_electricity_w_o_hydro__gw•h_ FROM table_25244412_1 WHERE _percentage_renewable = ""83.4""" What is the zip code of the district represented by Steven A King?,SELECT T2.zip_code FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.first_name = 'King' AND T1.last_name = 'Steven A' List the full names of customers who have paid more than 10$.,"SELECT T2.first_name, T2.last_name FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T1.amount > 10" "Which place is payne stewart, the player in?","SELECT place FROM table_name_40 WHERE player = ""payne stewart""" Which different vendor has the most amount of orders? Calculate the total estimated earnings.,"SELECT DISTINCT T1.productVendor, T1.MSRP - T1.buyPrice FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode GROUP BY T1.productVendor, T1.MSRP, T1.buyPrice ORDER BY COUNT(T2.quantityOrdered) DESC LIMIT 1" Please list the names of all the characters played by Tom Cruise.,SELECT T1.`Character Name` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T2.Name = 'Tom Cruise' Find the total population of the top 3 districts with the largest area.,SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3 Name the total number of affiliation for enrollment being 14898,SELECT COUNT(affiliation) FROM table_16383772_1 WHERE enrollment = 14898 What counties are not in the Bay Area Region?,SELECT DISTINCT county FROM geographic WHERE region != 'bay area' "Which team played them when andray blatche , javale mcgee (20) had the high points?","SELECT team FROM table_27721131_6 WHERE high_points = ""Andray Blatche , JaVale McGee (20)""" What is the percentage ratio between positive sentiments and negative sentiments that are in Fate/Grand Order? Also indicate the current version.,"SELECT CAST(SUM(CASE WHEN T2.Sentiment = 'Positive' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Sentiment = 'Negative' THEN 1 ELSE 0 END), T1.`Current Ver` FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Fate/Grand Order (English)' AND T1.`Current Ver` = '1.18.0'" "What was the date of the friendly match, ending in a result of 1-1?","SELECT date FROM table_name_30 WHERE competition = ""friendly match"" AND result = ""1-1""" Which catalog content has the highest height? Give me the catalog entry name.,SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 Which bike traveled the most often in zip code 94002?,SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1 Hi what are the first and last name for those employees who works either in department 70 or 90?,"SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90" Name the most recent movie directed by Chris Buck. Which of his movies was more successful in terms of grossing? Use the current gross for comparison.,"SELECT T1.movie_title, MAX(T1.release_date), MAX(T1.inflation_adjusted_gross) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Chris Buck'" "Thank you for that! Can you update this list to include the associated customer names, customer address city and the date from and date to for each row?","SELECT T2.customer_name , T3.city , T1.date_from , T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id" Who has a larger than 70.99 km2?,SELECT comune FROM table_name_52 WHERE total__km²_ > 70.99 "Which customer come from a place with more inhabitants, customer no.0 or customer no.1?",SELECT T1.ID FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.ID = 0 OR T1.ID = 1 ORDER BY INHABITANTS_K DESC LIMIT 1 Which home team had the score 1-3?,"SELECT home_team FROM table_name_6 WHERE score = ""1-3""" What are the first names of student who only took one course?,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1 Who had the most assists and how many did they have on January 5?,"SELECT high_assists FROM table_29556461_7 WHERE date = ""January 5""" "What's the value of the indicator whose long definition is ""Adolescent fertility rate is the number of births per 1,000 women ages 15-19."" for the Arab World in 1960?","SELECT T1.Value FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName INNER JOIN Country AS T3 ON T1.CountryCode = T3.CountryCode WHERE T2.LongDefinition = 'Adolescent fertility rate is the number of births per 1,000 women ages 15-19.' AND T3.ShortName = 'Arab World' AND T1.Year = 1960" What is the total donation amount made for projects whose main subject area are Literacy & Language?,SELECT SUM(T2.dollar_amount) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.primary_focus_area = 'Literacy & Language' What are the names of the albums that have more than 10 tracks?,SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10; What percentage of seats were filled in 2006?,SELECT seat_factor FROM table_105344_2 WHERE year = 2006 "Among the area code 787, list the country of the cities with a postal point type of unique postal office.",SELECT DISTINCT T2.county FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN zip_data AS T3 ON T1.zip_code = T3.zip_code WHERE T1.area_code = '787' AND T3.type = 'Unique Post Office' Name the Company which has a Price in USD of free / negotiable?,"SELECT company FROM table_name_69 WHERE price_in_usd = ""free / negotiable""" How much does the youngest dog weigh?,SELECT weight FROM pets ORDER BY pet_age LIMIT 1 Who is the nominee who has been nominated for the most musicals?,SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 How many items appear in the written by column in episode 3?,SELECT COUNT(written_by) FROM table_27155243_4 WHERE episode__number = 3 How many accounts does each customer have? List the number and customer id.,"SELECT count(*) , customer_id FROM Accounts GROUP BY customer_id" How many rankings are associated with giuseppe meazza holding over 3 titles?,"SELECT COUNT(rank) FROM table_name_35 WHERE player = ""giuseppe meazza"" AND titles > 3" List all the image name and URLs in the order of their names.,"SELECT image_name , image_url FROM images ORDER BY image_name" What year did they open?,"SELECT name, open_year FROM branch ORDER BY membership_amount DESC LIMIT 3" Count the number of documents that use the PPT template type.,SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT' Where was the ID 336005 match held? Please give me the venue and the city.,"SELECT T2.Venue_Name, T3.City_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id INNER JOIN City AS T3 ON T2.City_Id = T3.City_Id WHERE T1.Match_Id = '336005'" Return the names and classes of ships that do not have a captain?,"SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)" How many orders was handled by employees who reported to employee id 5?,SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.ReportsTo = 5 Did the project 'I Can't See It...Can You Help Me???' get the tip for the donation?,SELECT T2.donation_included_optional_support FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'I Can''t See It...Can You Help Me???' What country does Bobby Nichols play for?,"SELECT country FROM table_name_70 WHERE player = ""bobby nichols""" What is the title written by David Mamet?,"SELECT title FROM table_10908676_7 WHERE written_by = ""David Mamet""" "Calculate the average age of clients whose response is ""Closed with relief"".",SELECT AVG(T1.age) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'Closed with relief' List the companies and the investors of entrepreneurs.,"SELECT Company, Investor FROM entrepreneur" What are the details and id of the project with the most outcomes?,"SELECT T1.project_details , T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY count(*) DESC LIMIT 1" what are the recommendations are given to student?,SELECT recommendations FROM Behavior_Incident Which competition had a year of 2010 with Snatch weight of 185kg?,"SELECT competition FROM table_name_23 WHERE year = 2010 AND snatch = ""185kg""" "List the description, code and the number of services for each service type.","SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code" When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?,SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_tns_gallup_ratings = 1575000 Please list any three criminal sexual assault cases against persons where the criminals have been arrested.,SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.title = 'Criminal Sexual Assault' AND T2.arrest = 'TRUE' AND T1.crime_against = 'Persons' LIMIT 3 What is the highest chart number for the song Yardbirds aka Roger the Engineer?,"SELECT MAX(chart_no) FROM table_name_17 WHERE title = ""yardbirds aka roger the engineer""" What is the away side's score when richmond is at home?,"SELECT away_team AS score FROM table_name_3 WHERE home_team = ""richmond""" Count the number of courses without prerequisites.,SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) What is the round of club bečej?,"SELECT round FROM table_name_38 WHERE club = ""bečej""" When has a Centerfold model of krista kelly?,"SELECT date FROM table_name_20 WHERE centerfold_model = ""krista kelly""" What are the label IDs and app IDs of the Chinese Classical Mythology category?,"SELECT T1.label_id, T2.app_id FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'Chinese Classical Mythology'" What race is 12 hours in length?,"SELECT race FROM table_name_52 WHERE length = ""12 hours""" "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.","SELECT name , city , country , elevation FROM airports WHERE city = 'New York'" "What is To Par, when Money ( $ ) is Playoff, and when Score is 68-73-77-65=283?","SELECT to_par FROM table_name_97 WHERE money___$__ = ""playoff"" AND score = 68 - 73 - 77 - 65 = 283" What was the score on 24 February 2013?,"SELECT score FROM table_name_32 WHERE date = ""24 february 2013""" "In What Tournament did Boris Becker have a Score of 7–6, 6–4?","SELECT name_of_tournament FROM table_name_84 WHERE champions = ""boris becker"" AND score = ""7–6, 6–4""" Please show the employee last names that serves no more than 20 customers.,SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20 Which department has the most people?,SELECT T1.department_name FROM department AS T1 INNER JOIN movie_crew AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(T2.department_id) DESC LIMIT 1 What was the record following game 67?,SELECT record FROM table_name_37 WHERE game = 67 Show ids for all employees who don't have a certificate.,SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate Which date has time (GMT) of 23:34?,"SELECT date FROM table_name_45 WHERE time___gmt__ = ""23:34""" show the minimum amount of memberships for all branches opened in 2011 or located at city location,SELECT min ( membership_amount ) FROM branch WHERE open_year = 2011 OR city = 'London' What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?,SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama' What is the name of the department with the most students minoring in it?,SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1 What is John Cole's overall pick number?,"SELECT COUNT(overall) FROM table_name_47 WHERE name = ""john cole""" Who did Clinton appoint as a Chief Judge?,"SELECT chief_judge FROM table_name_2 WHERE appointed_by = ""clinton""" what is the savings balance of id 1? | Did you mean the saving balance of the customer with id 1? | yes,SELECT balance from savings where custid = 1 Which channel comes out of Israel?,"SELECT channel FROM table_name_83 WHERE country = ""israel""" "WHAT IS THE TV TIME WOTH A WEEK BIGGER THAN 15, WITH THE OAKLAND RAIDERS AS OPPONENT?","SELECT tv_time FROM table_name_33 WHERE week > 15 AND opponent = ""oakland raiders""" What are all values for U.S. viewers(millions) with Kevin Curran as a writer?,"SELECT us_viewers__millions_ FROM table_20942925_1 WHERE written_by = ""Kevin Curran""" what is the age of bob,"SELECT age FROM Person WHERE name = ""Bob""" Count the number of different teams involved in match season.,SELECT count(DISTINCT Team) FROM match_season "Betweeen 2016 to 2019, which year recorded the highest number of people with mental illness?",SELECT T1.SurveyID FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.SurveyID BETWEEN 2016 AND 2019 AND T2.questionid = 34 AND T1.AnswerText LIKE 'Yes' GROUP BY T1.SurveyID ORDER BY COUNT(T1.UserID) DESC LIMIT 1 "What percentage of households are in ""Coroyell"" out of its state?",SELECT CAST(SUM(CASE WHEN T1.county = 'CORYELL' THEN T2.households ELSE 0 END) AS REAL) * 100 / SUM(T2.households) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code List the names of all the customers in alphabetical order.,SELECT customer_details FROM customers ORDER BY customer_details How many wins when the points are 0 and podiums are less than 0?,"SELECT SUM(wins) FROM table_name_51 WHERE points = ""0"" AND podiums < 0" What is the mecha with a condor bird uniform?,"SELECT mecha FROM table_name_33 WHERE bird_uniform = ""condor""" List the names of editors who are older than 25.,SELECT Name FROM editor WHERE Age > 25 Find the name of amenities Smith Hall dorm have.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' How many performances are there?,SELECT COUNT(*) FROM performance What league is entering this round with 24 clubs remaining?,SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 24 What is the percentage of Japanese cars in the database?,SELECT CAST(SUM(CASE WHEN T2.country = 'Japan' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin What is the amount for donator name Distrito Nacional?,"SELECT amount FROM endowment where donator_name = ""Distrito Nacional""" How many different colleges were represented at tryouts?,SELECT count(DISTINCT cName) FROM tryout What is the venue for the match ID 829768?,SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.venue_id = T2.venue_id WHERE T2.match_id = 829768 Tell me the highest time for spain and lane larger than 8,"SELECT MAX(time) FROM table_name_35 WHERE country = ""spain"" AND lane > 8" "What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?","SELECT week_14_nov_24 FROM table_name_44 WHERE week_11_nov_3 = ""usc (6-2)""" What TV order is written by gail simone?,"SELECT television_order FROM table_20360535_3 WHERE written_by = ""Gail Simone""" Find the names of districts where have both city mall and village store type stores.,"SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""City Mall"" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = ""Village Store""" "Among the players who have won the award of Rookie of the year, what is the height of the tallest player?",SELECT T1.height FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Rookie of the Year' ORDER BY T1.height DESC LIMIT 1 Where country does Baghdad belongs to?,SELECT Name FROM country WHERE Province = 'Baghdad' What was the date for Colorado?,"SELECT date FROM table_name_92 WHERE state = ""colorado""" "What is the state of the city of denver, which has a rank less than 10?","SELECT state FROM table_name_99 WHERE rank < 10 AND city = ""denver""" "What is the average difference in the y coordinate of 2 object samples with the relation ""parked on"" in image no.1?",SELECT CAST(SUM(T3.Y) AS REAL) / COUNT(CASE WHEN T1.PRED_CLASS = 'parked on' THEN 1 ELSE NULL END) FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T2.OBJ1_SAMPLE_ID = T3.OBJ_CLASS_ID WHERE T2.IMG_ID = 1 AND T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID Name the indanapolis concerts for dr. alexandre manette,"SELECT indianapolis_concerts FROM table_17085724_1 WHERE character = ""Dr. Alexandre Manette""" "Which Ofsted has a School of marple hall school, and a Capacity larger than 1711?","SELECT MIN(ofsted) FROM table_name_63 WHERE school = ""marple hall school"" AND capacity > 1711" "Can you find me the names of all the swimmers who have both ""win"" and ""loss"" results in the record?",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' What are the themes of competitions that have corresponding host cities with more than 1000 residents?,SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000 What roles have not been credited at the end of the episodes?,SELECT DISTINCT role FROM Credit WHERE credited = 'false' "Which event was in Tokyo, Japan and had an opponent of rumina sato?","SELECT event FROM table_name_38 WHERE location = ""tokyo, japan"" AND opponent = ""rumina sato""" What is the example of the Early Modern English ( [x] → /f/) /ɔf/?,"SELECT example FROM table_28177800_5 WHERE early_modern_english = ""( [x] → /f/) /ɔf/""" "On the menu with the most dishes, how many dishes were there on its second page?",SELECT COUNT(T1.dish_id) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id WHERE T2.page_number = 2 GROUP BY T3.name ORDER BY T3.dish_count DESC LIMIT 1 "How many orders were shipped by ""Speedy Express""?",SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' What is the quarterfinal week for Austin Anderson?,"SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE name_name_of_act = ""Austin Anderson""" What are their names?,"SELECT name FROM member WHERE membership_card = ""White""" what is the number of proteins for each institution?,"SELECT T1.institution , count ( * ) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id" WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED?,"SELECT away_team FROM table_name_44 WHERE home_team = ""leeds united""" Show all information on the airport that has the largest number of international passengers.,SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 What is the average number of attendance at home games for each year?,"SELECT YEAR, AVG(attendance) FROM home_game GROUP BY YEAR" display the employee ID and job name for all those jobs in department 80.,"SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80" What is the played number when the points against is 179?,"SELECT played FROM table_name_78 WHERE points_against = ""179""" Please list the employees who have more than 20 vacations hours and wish to receive e-mail promotions.,SELECT T1.BusinessEntityID FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.EmailPromotion = 1 AND T1.VacationHours > 20 "What average silver has belarus as the nation, with a total less than 1?","SELECT AVG(silver) FROM table_name_23 WHERE nation = ""belarus"" AND total < 1" Only show the first result.,SELECT patient FROM undergoes ORDER BY dateundergoes DESC limit 1 Name the average total for years won of 1975,"SELECT AVG(total) FROM table_name_47 WHERE year_s__won = ""1975""" Which translation had a unit of Uncia?,"SELECT translation FROM table_name_10 WHERE unit = ""uncia""" What is the format for the MCA label?,"SELECT format FROM table_name_40 WHERE label = ""mca""" What was the result for round r3?,"SELECT result FROM table_name_10 WHERE round = ""r3""" Find the name of the teacher who teaches the largest number of students.,"SELECT T2.firstname , T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname , T2.lastname ORDER BY count ( * ) DESC LIMIT 1" "Show the names of pilots from team ""Bradley"" or ""Fordham"".","SELECT Pilot_name FROM pilot WHERE Team = ""Bradley"" OR Team = ""Fordham""" What were the total 2012 births when the 2012 deaths were 163?,SELECT MIN(birth_2012) FROM table_25703_2 WHERE death_2012 = 163 What is the city of license that has lp as the class?,"SELECT city_of_license FROM table_name_40 WHERE class = ""lp""" What is the customer's address for the shipment with ship ID 1117?,SELECT T2.address FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1117' Which couple participated in the Paso Doble style and were safe?,"SELECT couple FROM table_name_91 WHERE results = ""safe"" AND style = ""paso doble""" How many students have more than one credit?,SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING T1.tot_cred > 1 Name the To par for leland gibson,"SELECT to_par FROM table_name_59 WHERE player = ""leland gibson""" What are the descriptions for each color?,SELECT color_description FROM ref_colors How many courses are there?,SELECT count ( * ) FROM course "Please list all the critics made by the user rating the movie ""A Way of Life"".",SELECT T1.critic FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' "What are the names of the dishes in the menu sponsored by The Society of Cumberland that was created for the 19th reunion at Grand Pacific Hotel in Chicago, Illinois?","SELECT T4.name FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id INNER JOIN MenuItem AS T3 ON T2.id = T3.menu_page_id INNER JOIN Dish AS T4 ON T3.dish_id = T4.id WHERE T1.sponsor = 'THE SOCIETY OF THE CUMBERLAND' AND T1.event = '19NTH REUNION' AND T1.place = 'GRAND PACIFIC HOTEL,CHICAGO,ILL'" "On average, how many scenes are there in each of the comedy works written by Shakespeare?",SELECT CAST(SUM(T2.Scene) AS REAL) / COUNT(T1.id) FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.GenreType = 'Comedy' "What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?",SELECT COUNT(total) FROM table_name_53 WHERE silver > 3 AND rank = 3 AND bronze > 2 "Great, can you show me all wines that have a higher price than the one currently in the table?",SELECT * FROM WINE WHERE Price > ( SELECT max ( Price ) FROM WINE WHERE YEAR = 2006 ) Count the number of accounts.,SELECT count(*) FROM Accounts Show different colleges along with the number of authors of submission from each college.,"SELECT College , COUNT(*) FROM submission GROUP BY College" What is the record number of the game where Guardado lost?,"SELECT record FROM table_name_9 WHERE loss = ""guardado""" "Which city is the address of the store named ""FJA Filming"" located in?","SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = ""FJA Filming""" What is Kaitlin's last name? | Do you mean the last name of the staff whose first name is Kaitlin? | Yes,SELECT last_name from staff where first_name = 'Kaitlin' "How many papers are written by authors from the institution ""University of Pennsylvania""?","SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Pennsylvania""" What is all the information on the airport with the largest number of international passengers?,SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 Find the physician who was trained in the most expensive procedure?,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 Which Nation has the USA-18 sail?,"SELECT nation FROM table_name_91 WHERE sail = ""usa-18""" What are the phone and email for customer Harold?,"SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = ""Harold""" "What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?",SELECT MIN(gold) FROM table_name_45 WHERE silver < 23 AND rank > 5 AND bronze = 6 Who won mixed doubles in the 2002 season?,SELECT mixed_doubles FROM table_name_42 WHERE season = 2002 What is Ivan Ciernik's average points with less than 11 goals?,"SELECT AVG(points) FROM table_name_29 WHERE player = ""ivan ciernik"" AND goals < 11" How many questions in 2014's survey had more than 200 answers?,SELECT COUNT(QuestionID) FROM Answer WHERE SurveyID LIKE 2014 GROUP BY QuestionID ORDER BY COUNT(QuestionID) > 200 LIMIT 1 State the number of public magnet schools in New York Manhattan.,SELECT COUNT(schoolid) FROM projects WHERE school_county = 'New York (Manhattan)' AND school_magnet = 't' What is the Crankarm product's net profit?,SELECT T2.LastReceiptCost - T2.StandardPrice FROM Product AS T1 INNER JOIN ProductVendor AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE '%Crankarm%' Name the record for 9-4 score,"SELECT record FROM table_name_61 WHERE score = ""9-4""" "Among the lists with at least one follower, how many were created by user who was subscriber when created the list?",SELECT COUNT(T1.list_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers >= 1 AND T1.user_subscriber = 1 What is recorded as the lowest Round for the Player Jim Thompson?,"SELECT MIN(round) FROM table_name_26 WHERE player = ""jim thompson""" "Who was the opponent on November 15, 1981?","SELECT opponent FROM table_name_70 WHERE date = ""november 15, 1981""" How many customers are there in the customer type with the most customers?,SELECT COUNT(*) FROM customers GROUP BY customer_type_code ORDER BY COUNT(*) DESC LIMIT 1 Find how many school locations have the word 'NY'.,"SELECT count(*) FROM university WHERE LOCATION LIKE ""%NY%""" "Please show the different statuses, ordered by the number of cities that have each.",SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC What are the last updated date for English film titles that were released in 2006?,SELECT DISTINCT T1.last_update FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T2.`name` = 'English' AND T1.release_year = 2006 When was the audio book with target number 069 69 released?,"SELECT release_date FROM table_20174050_1 WHERE target__number = ""069 69""" What activities do we have?,SELECT activity_name FROM Activity "How many products have the characteristic named ""hot""?","SELECT COUNT(*) 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 t3.characteristic_name = ""hot""" * I have left the chat *,SELECT product_id from Order_Items where order_item_id = 1 "What is Player, when Total is greater than 288, and when Country is ""South Africa""?","SELECT player FROM table_name_54 WHERE total > 288 AND country = ""south africa""" How many actors with the surname Kilmer are there?,SELECT COUNT(actor_id) FROM actor WHERE last_name = 'Kilmer' What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?,SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011 "Which driver has less than 61 points, but winnings of $67,675?","SELECT SUM(laps) FROM table_name_33 WHERE winnings = ""$67,675"" AND points < 61" hello there! Can you please provide me with a list of all college names?,SELECT cName FROM college "What was the manner of departure for the outgoing manager, giuseppe iachini?","SELECT manner_of_departure FROM table_name_77 WHERE outgoing_manager = ""giuseppe iachini""" What artist's song was performed in the week with theme of Billboard #1?,"SELECT artist FROM table_name_89 WHERE theme = ""billboard #1""" "What are the names of the products with the category ""Herbs"" please?","SELECT T1.product_name FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" "Which Number of electorates (2009) has a District of jhajjar, and a Reserved for (SC/ST/None) of sc, and a Constituency number smaller than 66?","SELECT COUNT(number_of_electorates__2009_) FROM table_name_56 WHERE district = ""jhajjar"" AND reserved_for___sc___st__none_ = ""sc"" AND constituency_number < 66" "What were the notes when the Venue was Turin, Italy?","SELECT notes FROM table_name_62 WHERE venue = ""turin, italy""" What was the 1st leg score when Mufulira Wanderers played as Team 2?,"SELECT 1 AS st_leg FROM table_name_6 WHERE team_2 = ""mufulira wanderers""" Which driver won the Phillip Island Grand Prix Circuit?,"SELECT winner FROM table_name_61 WHERE circuit = ""phillip island grand prix circuit""" What is the To par of T9 Place Player Ernie Els?,"SELECT to_par FROM table_name_95 WHERE place = ""t9"" AND player = ""ernie els""" Name the region for iwate,"SELECT region FROM table_1585609_2 WHERE prefecture = ""Iwate""" Hello! Can you show a list of all publishers who did not publish any books in 1989?,SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989 "WHo is the Player got a Pick # smaller than 61, and a College of texas?","SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = ""texas""" what is the name of Department ID 3,SELECT Name FROM department WHERE department_id = 3 From which country is the tweet with the most likes posted?,SELECT T2.Country FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID ORDER BY T1.Likes DESC LIMIT 1 What was the Winning Score when Betsy Rawls was the Runner(s)-up?,"SELECT winning_score FROM table_name_96 WHERE runner_s__up = ""betsy rawls""" What are the First names of students living in smith hall?,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' Which title has the Translation of vesoul?,"SELECT title FROM table_name_28 WHERE translation = ""vesoul""" Which wine has the highest score?,SELECT * FROM WINE ORDER BY score desc limit 1 What is the start address when the network number bit field is 16?,"SELECT start_address FROM table_name_88 WHERE size_of_network_number_bit_field = ""16""" what is the latitude when the distance is 42.5km?,"SELECT latitude FROM table_name_70 WHERE distance = ""42.5km""" What country declared its independence in 1994?,SELECT Name FROM Country WHERE IndepYear = 1994 "What is the URL to the movie director page on Mubi of the movie titled ""Red Blooded American Girl""",SELECT director_url FROM movies WHERE movie_title LIKE 'Red Blooded American Girl' What are all the residences?,SELECT DISTINCT Residence FROM player "Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1?",SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 1 Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?,"SELECT hs_principal FROM table_name_99 WHERE wr_principal = ""dave lovering"" AND ms_principal = ""marty pizur""" What is the Japanese orthography for National Fisheries University?,"SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = ""National Fisheries University""" "What is Place, when Player is ""Phil Mickelson""?","SELECT place FROM table_name_17 WHERE player = ""phil mickelson""" How many points does Kohta Nozane have with a Motobi TSR 6?,"SELECT points FROM table_name_42 WHERE bike = ""motobi tsr 6"" AND riders = ""kohta nozane""" What position did the draft pick going to saskatchewan play?,"SELECT position FROM table_28059992_5 WHERE cfl_team = ""Saskatchewan""" Please tell me the names of the person who has friends with age above 40 and under age 30.,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN ( SELECT name FROM Person WHERE age > 40 ) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN ( SELECT name FROM Person WHERE age < 30 ) What job does Bob do?,"SELECT job from person where name = ""Bob""" "Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of –11?","SELECT date FROM table_name_14 WHERE tournament = ""at&t pebble beach national pro-am"" AND margin_of_victory = ""1 stroke"" AND to_par = ""–11""" Who is the winner constructor with driver riccardo patrese?,"SELECT winning_constructor FROM table_name_79 WHERE winning_driver = ""riccardo patrese""" what type is the institute that enrolled 2102,SELECT type FROM table_1974632_1 WHERE enrollment = 2102 What was strikeforce: barnett vs. cormier's record?,"SELECT record FROM table_name_26 WHERE event = ""strikeforce: barnett vs. cormier""" What is the Motion Picture Association of America rating for the movie featuring a villain named Turbo?,SELECT T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T2.movie_title = T1.movie_title WHERE T2.villian = 'Turbo' Provide the number of staff at the University of Auckland in 2015.,SELECT CAST(SUM(T1.num_students) AS REAL) / SUM(T1.student_staff_ratio) FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'University of Auckland' AND T1.year = 2015 "What are the total number of Domestic Passengers of airports that contain the word ""London.""","SELECT sum ( Domestic_Passengers ) FROM airport WHERE Airport_Name LIKE ""%London%""" Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.,"SELECT circuit FROM table_name_53 WHERE fastest_lap = ""john surtees"" AND winning_driver = ""john surtees""" How many tries against did the club with 383 points against have?,"SELECT tries_against FROM table_name_39 WHERE points_against = ""383""" List all the ingredients of Apricot Yogurt Parfaits.,"SELECT T3.name, T3.category FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Apricot Yogurt Parfaits'" What is the rank of the team with 1 bronze and 0 gold medals?,SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 0 How many people watched episode number 13?,SELECT viewers FROM table_27547668_3 WHERE _number = 13 How many checks were issued by Euro+ Shopping Channel in the year 2004?,"SELECT COUNT(T1.checkNumber) FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE customerName = 'Euro+ Shopping Channel' AND STRFTIME('%Y', T1.paymentDate) = '2004'" what is the place when the event is 4000 m individual pursuit?,"SELECT place FROM table_name_94 WHERE event = ""4000 m individual pursuit""" What is the district with the incumbent john nicholas?,"SELECT district FROM table_2668405_17 WHERE incumbent = ""John Nicholas""" How many country uses the 2008 System of National Accounts methodology? List our their table name.,SELECT TableName FROM Country WHERE SystemOfNationalAccounts = 'Country uses the 2008 System of National Accounts methodology.' What are the names of products with price at most 200?,SELECT name FROM products WHERE price <= 200 What is the genre of the movie title which was well-received by the audiences but made the lowest revenue?,"SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id ORDER BY T1.vote_average DESC, T1.revenue LIMIT 1" "Which Silver has a Nation of total, and a Bronze smaller than 18?","SELECT MAX(silver) FROM table_name_1 WHERE nation = ""total"" AND bronze < 18" "What is Date, when Away is High Park Demons?","SELECT date FROM table_name_43 WHERE away = ""high park demons""" What Displacement has 185hp (138kw) Power o,"SELECT displacement FROM table_name_57 WHERE power = ""185hp (138kw)""" What is the total number of rounds with a 4-0 record?,"SELECT COUNT(round) FROM table_name_57 WHERE record = ""4-0""" Find the name and age of the person who is a friend of both Dan and Alice.,"SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'" What are the addresses of all the customers with credit cards?,"SELECT T2.customer_address FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_type_code = ""Credit""" How many allergies does the food allergy type have?,select count ( Allergy ) from Allergy_Type where AllergyType = 'food' For how long was Elly Koss required to take Acetaminophen?,"SELECT strftime('%J', T2.STOP) - strftime('%J', T2.START) AS days FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description LIKE 'Acetaminophen%'" "If the innings is 68, what is the average?",SELECT average FROM table_23316034_16 WHERE innings = 68 How many debates are there?,SELECT COUNT(*) FROM debate Which school has a decile of 8 and a roll of 705?,SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705 What was the away team score at Corio Oval?,"SELECT away_team AS score FROM table_name_42 WHERE venue = ""corio oval""" "Where was the tournament where the score was 1–6, 6–3, 3–6?","SELECT tournament FROM table_name_66 WHERE score = ""1–6, 6–3, 3–6""" What notes have the 8th position?,"SELECT notes FROM table_name_39 WHERE position = ""8th""" What is the largest jersey number for the player from maryland,"SELECT MAX(no) FROM table_11545282_4 WHERE school_club_team = ""Maryland""" Tell the number of 4-year public schools in UT whose graduation rate exceeds the average for the state.,SELECT COUNT(DISTINCT T1.chronname) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'UT' AND T1.level = '4-year' AND T1.control = 'Public' AND T1.awards_per_value > T1.awards_per_state_value Show all cities where students live.,SELECT DISTINCT city_code FROM Student Which school has a state authority and a roll of 318?,"SELECT name FROM table_name_27 WHERE authority = ""state"" AND roll = 318" What is the title of the episode written by David J. Burke?,"SELECT title FROM table_name_6 WHERE written_by = ""david j. burke""" What is the lowest number of three pointers in games where the number of rebounds was 178?,SELECT MIN(three_pointers) FROM table_22824324_2 WHERE rebounds = 178 What is the score [A] of the match at Vanuatu (n) on 5 September 1998?,"SELECT score_[a_] FROM table_name_39 WHERE venue = ""vanuatu (n)"" AND date = ""5 september 1998""" What position did Roseau High School (USHS-MN) play?,"SELECT position FROM table_2897457_7 WHERE college_junior_club_team = ""Roseau High School (USHS-MN)""" "Among all the Olympic competitors from Finland, how many of them are female?",SELECT COUNT(T3.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 = 'Finland' AND T3.gender = 'F' Give the religion of the legislator whose YouTube name is MaxineWaters.,SELECT T2.religion_bio FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T1.youtube = 'MaxineWaters' "How many attempts did the player ranking with a number higher than 1, who started after 1997 and had yds/att of 5 have?",SELECT SUM(attempts) FROM table_name_66 WHERE start > 1997 AND yds_att = 5 AND rank > 1 "Who was the opponent on september 27, 1998?","SELECT opponent FROM table_name_16 WHERE date = ""september 27, 1998""" Show first name for all students with major 600.,SELECT Fname FROM Student WHERE Major = 600 "what is the township when the land (sqmi) is more than 36.112, the geo id is higher than 3801985060 and the latitude is 46.062384?",SELECT township FROM table_name_20 WHERE land___sqmi__ > 36.112 AND geo_id > 3801985060 AND latitude = 46.062384 "What is the lowest total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2","SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = ""1:2"" AND losses > 1" What is the opening time of the active businesses in Glendale that have a medium review count.,SELECT DISTINCT T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.city = 'Glendale' AND T1.review_count = 'Medium' AND T1.active = 'true' what is the minimum kerry # with bush % being 78.40%,"SELECT MIN(kerry__number) FROM table_13606924_1 WHERE bush__percentage = ""78.40%""" What was Footscray's score when it played as the home team?,"SELECT home_team AS score FROM table_name_2 WHERE home_team = ""footscray""" Find the average age and number of male students (with sex M) from each city.,"SELECT count(*) , avg(age) , city_code FROM student WHERE sex = 'M' GROUP BY city_code" Who won best actor?,"SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = ""Best Actor""" Find the countries in south Asia which are in the low-income group. What is the source of their recent income and expenditure data? List it alongside the table name of the countries.,"SELECT TableName, SourceOfMostRecentIncomeAndExpenditureData FROM Country WHERE Region = 'South Asia' AND IncomeGroup = 'Low income'" "What is the comment of the product ""burlywood plum powder puff mint""?",SELECT p_comment FROM part WHERE p_name = 'burlywood plum powder puff mint' Please list the IDs of the advisors of the students who are in the 5th year of their program.,SELECT T1.p_id_dummy FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_5' show the train name and station name for each train.,"SELECT T2.name , T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id" What is the college name for that one?,SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' On what date does Yuji Tachikawa have the fastest lap in round 1?,"SELECT date FROM table_name_24 WHERE fastest_lap = ""yuji tachikawa"" AND round = 1" "When did the Senior Tool Designer, who was 33 years old at the time he was hired, stopped working in the Engineering department?","SELECT T2.EndDate FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.JobTitle = 'Senior Tool Designer' AND STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) = 33 AND T2.EndDate IS NOT NULL" Find the number of different products that are produced by companies at different headquarter cities.,"SELECT count(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter" "What is the area of the parish with a population larger than 1,172 and a census ranking of 1,871 of 5,008?","SELECT COUNT(area_km_2) FROM table_name_16 WHERE census_ranking = ""1,871 of 5,008"" AND population > 1 OFFSET 172" Who was in the East when TUS Geretsried II was in the South?,"SELECT east FROM table_name_9 WHERE south = ""tus geretsried ii""" "What percentage of businesses in the Northwest US have forecasted annual sales of above 300,000?",SELECT CAST(SUM(CASE WHEN T1.SalesQuota > 300000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.BusinessEntityID) FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 ON T1.TerritoryID = T2.TerritoryID WHERE T2.CountryRegionCode = 'US' AND T2.Name = 'Northwest' What are the first and last names of the employee with the earliest date of birth?,"SELECT emp_fname , emp_lname FROM employee ORDER BY emp_dob LIMIT 1" "Show names of actors that have appeared in musical with name ""The Phantom of the Opera"".","SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = ""The Phantom of the Opera""" What is the position of the player with an overall of 45?,SELECT position FROM table_name_70 WHERE overall = 45 In which country and state does staff with first name as Janessa and last name as Sawayn live?,"SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Who are the co-authors for Jei Keon Chae and what is the title of paper written by them?,"SELECT T2.AuthorId, T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Jei Keon Chae'" Provide the number of airplanes that landed on Oakland Airport on 2018/8/7.,SELECT SUM(CASE WHEN T1.Description LIKE '%Oakland%' THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/7' "If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface?","SELECT surface FROM table_22597626_2 WHERE partner = ""Fleming"" AND opponents_in_the_final = ""Hewitt McMillan""" How many distinct delegates are from counties with population larger than 50000?,SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 What is the date of the game when the home team is melbourne?,"SELECT date FROM table_29090919_1 WHERE home_team = ""Melbourne""" Name the publisher for resident evil 4,"SELECT publisher_s_ FROM table_14325653_2 WHERE video_game = ""Resident Evil 4""" What date was game 78 played on?,SELECT date FROM table_23248967_10 WHERE game = 78 Show names of technicians and series of machines they are assigned to repair.,"SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID" "On games against the Devil Rays and a score of 2 - 1 (10), what was the attendance?","SELECT AVG(attendance) FROM table_name_52 WHERE opponent = ""devil rays"" AND score = ""2 - 1 (10)""" "What is the sum of Games for Allofs, Klaus, with Goals less than 177?","SELECT SUM(games) FROM table_name_53 WHERE name = ""allofs, klaus"" AND goals < 177" "Where was the attendance more than 57,347?",SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347 Which country scored 66-68=134?,SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134 Show institution names along with the number of proteins for each institution.,"SELECT T1.institution , count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id" "Which Venue has a Date of january 9, 2011?","SELECT venue FROM table_name_51 WHERE date = ""january 9, 2011""" What is the name of the country with the most number of home airlines?,SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1 How many votes did the security guard get?,"SELECT votes FROM table_name_78 WHERE occupation = ""security guard""" What is the description of document type 'Paper'?,"SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = ""Paper"";" What country was the player with the score line 69-71-72-69=281 from?,SELECT country FROM table_name_6 WHERE score = 69 - 71 - 72 - 69 = 281 How many directors have multiple show times?,SELECT count ( distinct T2.directed_by ) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id where T1.show_times_per_day>1 Give the names and scores of wines made from white grapes.,"SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" What was the result of the dance which had a style of contemporary jazz?,"SELECT results FROM table_name_1 WHERE style = ""contemporary jazz""" "What is the percentage of star score 5 that was collected by title ""Sex, Pies and Idiot Scrapes""?","SELECT CAST(SUM(CASE WHEN T2.stars = 5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Sex, Pies and Idiot Scrapes';" Which chassis was used when over 6 points were earned?,SELECT chassis FROM table_name_47 WHERE points = 6 Where was the game played when the score was 1-4?,"SELECT venue FROM table_name_72 WHERE score = ""1-4""" "When was the first ever project went live on the site and what were the names of the resources being requested? If there are multiple projects that have the same date, indicate each of them and their items.","SELECT T2.date_posted, T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.date_posted = ( SELECT date_posted FROM projects ORDER BY date_posted ASC LIMIT 1 )" Where is il-36β located?,"SELECT chromosomal_location FROM table_29871617_1 WHERE name = ""IL-36β""" How many injury accidents are there in total?,SELECT count ( * ) from injury_accident What was the date of the game in which Holt (4-4) took the loss?,"SELECT date FROM table_name_36 WHERE loss = ""holt (4-4)""" What's the smallest amount of laps that suzuki ran with a grid value of 8?,"SELECT MIN(laps) FROM table_name_26 WHERE manufacturer = ""suzuki"" AND grid = 8" Great! Can you tell me where Jack Campbells birthplace was?,"SELECT birth_place FROM people WHERE name = ""Jack Campbell""" What category would the report fall into?,SELECT Budget_type_code FROM Documents_with_Expenses How many holes did Mike Reid from United States have?,"SELECT hole FROM table_name_75 WHERE country = ""united states"" AND player = ""mike reid""" What are the names of the cars worth 20000?,SELECT T1.car_name FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = 20000 How many documents have document type code CV or BK?,"SELECT count(*) FROM All_documents WHERE document_type_code = ""CV"" OR document_type_code = ""BK""" How many poles for the Netherlands?,"SELECT MAX(poles) FROM table_19487922_1 WHERE country = ""Netherlands""" What are the names of all students taking a course who received an A or C?,"SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'" "When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1?","SELECT week_1 FROM table_name_69 WHERE week_3 = ""alinna d penta""" Count the number of employees,SELECT count(*) FROM employee WHAT IS THE EMAIL ADDRESS OF LYLA WILSON MEDHURST ?,SELECT email_address FROM Teachers WHERE first_name = 'Lyla' and middle_name = 'Wilson' and last_name = 'Medhurst' "What is the first name and last name of the customer that has email ""luisg@embraer.com.br""?","SELECT FirstName, LastName FROM CUSTOMER WHERE Email = ""luisg@embraer.com.br""" What states is Tesco located in? | do you mean the address id or the address details? | The address details.,SELECT T3.address_details FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id where T1.supplier_name = 'Tesco' What are the names of the drama workshop groups with address in Feliciaberg city?,"SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = ""Feliciaberg""" "Among the projects whose donators are teachers, what is the percentage of projects that affected more than 30 students?",SELECT CAST(SUM(CASE WHEN T1.students_reached > 30 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.projectid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.is_teacher_acct = 't' Find the name and salary of instructors who are advisors of the students from the Math department.,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'" College of lsu has how many rounds?,"SELECT COUNT(round) FROM table_name_52 WHERE college = ""lsu""" Please show the countries and the number of climbers from each country.,"SELECT Country , COUNT(*) FROM climber GROUP BY Country" At what date and time did San Jose Diridon Caltrain Station have most bikes available.,SELECT T2.time FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.bikes_available = ( SELECT MAX(T2.bikes_available) FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T1.name = 'San Jose Diridon Caltrain Station' ) Sort all captain names by their ages from old to young.,SELECT name FROM captain ORDER BY age DESC who is highest rating?,SELECT artist_name from song order by rating desc limit 1 What is the maximum point for climbers whose country is United Kingdom?,"SELECT max(Points) FROM climber WHERE Country = ""United Kingdom""" "If the language is another native, what is the San Benito Municipality total number?","SELECT COUNT(san_benito_municipality) FROM table_2509112_3 WHERE language = ""Another native""" How many tracks in this table?,SELECT count ( * ) from tracks How many female Professors do we have?,"SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = ""Professor""" "What is GPU Frequency, when Frequency is 1.67 GHz, and when sSpec Number is SLBX9(A0)?","SELECT gpu_frequency FROM table_name_71 WHERE frequency = ""1.67 ghz"" AND sspec_number = ""slbx9(a0)""" Which state has the most customers?,SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1 "For the team with 7 points, how many points were scored against this season?",SELECT COUNT(pts_agst) FROM table_21991074_1 WHERE points = 7 What was his employee hire date?,SELECT EMP_HIREDATE FROM employee ORDER BY emp_dob LIMIT 1 Name the theatre name for french,"SELECT theatre_name FROM table_2461720_1 WHERE language_of_films = ""French""" What are the distinct ages of the heads who are acting?,SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes' How many airports had Thompson driven by August 1963?,"SELECT count ( * ) FROM airport as T1 JOIN flight as T2 on T1.id = T2.airport_id WHERE T2.pilot = 'Thompson' and T2.date > 'August 16, 1963'" Which allergy type is the least common?,SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1 How many games did the tallest player have ever played?,SELECT T1.GP FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T2.ELITEID = ( SELECT t.ELITEID FROM PlayerInfo t ORDER BY t.height DESC LIMIT 1 ) Then could you please show me the list of wines those are more expensive than the average?,select * from wine where price > ( select avg ( price ) from wine ) "Find the average prices of all products from each manufacture, and list each company's name.","SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" what is the date in 1986?,SELECT date FROM table_name_14 WHERE year = 1986 What was the timeslot for the episode in the year 2008?,SELECT timeslot FROM table_2639433_4 WHERE year = 2008 "How long has the ""Clear Green Turtle"" dish appeared on the menu, and tell me when its latest update was?","SELECT T1.last_appeared - T1.first_appeared, T2.updated_at FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle'" "What is the difference in price between HL Mountain Frame - Black, 42 and LL Mountain Frame - Black, 42?","SELECT ( SELECT Price FROM Products WHERE Name = 'HL Mountain Frame - Black, 42' ) - ( SELECT Price FROM Products WHERE Name = 'LL Mountain Frame - Black, 42' ) AS num" Which character is portrayed by Elias Koteas?,"SELECT character FROM table_name_10 WHERE portrayed_by = ""elias koteas""" What was the compression ration when the engine was Wasp Jr. T1B2?,"SELECT compression_ratio FROM table_1123802_1 WHERE engine = ""Wasp Jr. T1B2""" "What is the sum of Game, when Date is ""Wed. Nov. 14""?","SELECT SUM(game) FROM table_name_26 WHERE date = ""wed. nov. 14""" What is the Apartment type code of building id 808?,SELECT apt_type_code FROM Apartments where building_id = 808 "What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38?","SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = ""january 26, 2009"" AND production_no < 38" "What is the Track in Louisville, Kentucky?","SELECT track FROM table_name_56 WHERE location = ""louisville, kentucky""" What is his sponsor name?,SELECT Sponsor_name FROM player GROUP BY Occupation ORDER BY COUNT ( * ) desc LIMIT 1 List all the cities in Sumatra and state the population of each city.,"SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T3.Name = 'Sumatra'" Which residence is the one with more than one player?,SELECT residence FROM player GROUP BY Residence HAVING COUNT ( * ) > 1 Who are the friends of Bob?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob' How many breweries are there in Australia?,SELECT COUNT(BreweryName) FROM rootbeerbrand WHERE Country = 'Australia' Which Segment A has a Segment C of poster restoration?,"SELECT segment_a FROM table_name_70 WHERE segment_c = ""poster restoration""" What character is portrayed by Joe Jonas?,"SELECT character FROM table_name_59 WHERE portrayed_by = ""joe jonas""" What is the most common participant type?,SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY count(*) DESC LIMIT 1 Name the womens doubles when tour is malaysia super series,"SELECT womens_doubles FROM table_14496232_2 WHERE tour = ""Malaysia Super Series""" What are the names of counties that do not contain any cities?,SELECT Name FROM county_public_safety WHERE County_ID NOT IN (SELECT County_ID FROM city) Name the player for fiji,"SELECT player FROM table_name_29 WHERE country = ""fiji""" What was the earliest year with rank 20 and less than 60 floors?,SELECT MIN(year) FROM table_name_65 WHERE rank = 20 AND floors < 60 Name the club when tries for is 83,"SELECT club FROM table_13564702_3 WHERE tries_for = ""83""" What was the home team when the visiting team was Toronto?,"SELECT home FROM table_name_22 WHERE visitor = ""toronto""" What are the last names of students in room 111?,SELECT lastname FROM list WHERE classroom = 111 What is the full name of the customer who rented the highest number of movies of all time?,"SELECT T.first_name, T.last_name FROM ( SELECT T2.first_name, T2.last_name, COUNT(T1.rental_id) AS num FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.first_name, T2.last_name ) AS T ORDER BY T.num DESC LIMIT 1" "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.","SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1" Mention the series code of countries using Australian dollar as their currency unit. Which country belongs to middle income group among them.,"SELECT T1.CountryCode, T2.SeriesCode FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Australian dollar' AND T1.IncomeGroup = 'Lower middle income'" "What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name?","SELECT transfer_window FROM table_name_63 WHERE transfer_fee = ""n/a"" AND moving_to = ""free agent"" AND name = ""joe sagar""" Identify the percent of long reviews among all 5-star reviews given to businesses by the Yelp users.,SELECT CAST(SUM(CASE WHEN review_length = 'Long' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(review_length) FROM Reviews WHERE review_stars = 5 "Show all storm names affecting region ""Denmark"".",SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'; What is the status of the county that has a 14.7% poverty rate?,"SELECT status FROM table_22815568_1 WHERE poverty_rate = ""14.7%""" HOw many no votes were there when there were 45.60% yes votes,"SELECT MIN(no_votes) FROM table_256286_20 WHERE _percentage_yes = ""45.60%""" "Name the Score of jack nicklaus, united states, ?","SELECT score FROM table_name_13 WHERE country = ""united states"" AND player = ""jack nicklaus""" What is the US modern rock rank of code bad 0003?,"SELECT us_modern_rock FROM table_name_90 WHERE code = ""bad 0003""" Show all male student ids who don't play football.,"SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" and for the Jazz tracks?,"SELECT AVG ( T2.Milliseconds ) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Jazz""" "How many different instruments does the musician with the last name ""Heilo"" use?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" "What was November 4, 1973 attendance?","SELECT attendance FROM table_name_64 WHERE date = ""november 4, 1973""" What was the highest attendance when the result was L 6-28?,"SELECT MAX(attendance) FROM table_name_40 WHERE result = ""l 6-28""" Can you list the residents by the count of services in descending order by count of services? | Do you just want the resident ids? | The resident_id and count of services,"SELECT T1.resident_id, count ( * ) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY count ( * ) DESC" How many high assists are listed for the game with a score of 68-60?,"SELECT COUNT(high_assists) FROM table_17118657_8 WHERE score = ""68-60""" "What is the total amount paid for rentals made on July 29, 2005?",SELECT SUM(T2.amount) FROM rental AS T1 INNER JOIN payment AS T2 ON T1.rental_id = T2.rental_id WHERE date(T1.rental_date) = '2005-07-29%' Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.,"SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count(*) < 2" "What is the sum of the points of the game with philadelphia as the visitor and an attendance greater than 7,284?","SELECT SUM(points) FROM table_name_26 WHERE visitor = ""philadelphia"" AND attendance > 7 OFFSET 284" What is the average number of reckless homicides that happened in a district?,SELECT CAST(COUNT(T2.report_no) AS REAL) / COUNT(DISTINCT T1.district_name) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.secondary_description = 'RECKLESS HOMICIDE' What is the average credit score for customers who have taken a loan?,SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) What is the content of the series Sky Radio?,"SELECT Content FROM TV_Channel WHERE series_name = ""Sky Radio"";" How many membership cards are black?,"SELECT count ( * ) FROM member WHERE membership_card = ""Black""" list all female (sex is F) candidate names in the alphabetical order.,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t1.sex = 'F' ORDER BY t1.name What is the most common nationality of people?,SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 Calculate the average salary per order for Andrew Fuller.,SELECT CAST(SUM(T1.Salary) AS REAL) / COUNT(T2.EmployeeID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Andrew' AND T1.LastName = 'Fuller' "Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima?","SELECT MAX(gdp_per_capita__us) AS $___2004_ FROM table_name_37 WHERE area__km²_ > 148825.6 AND state = ""roraima""" What are the names of the other people who work for that company?,"SELECT first_name,last_name FROM customers WHERE company = ""Riotur"" AND first_name ! = ""Roberto"" AND last_name ! = ""Almeida""" Return the minister who left office at the latest time.,SELECT minister FROM party ORDER BY left_office DESC LIMIT 1 How many items appear in the average column when the totals were 105-161?,"SELECT COUNT(average) FROM table_28628309_6 WHERE totals = ""105-161""" "What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms?","SELECT MIN(year) FROM table_name_96 WHERE main = ""eintracht frankfurt"" AND rhein = ""waldhof mannheim"" AND saar = ""fk pirmasens"" AND hessen = ""wormatia worms""" List the names of clubs that do not have any players.,SELECT name FROM CLub WHERE Club_ID NOT IN (SELECT Club_ID FROM player) Name the crew chief for ricky craven,"SELECT crew_chief FROM table_2187178_1 WHERE driver_s_ = ""Ricky Craven""" Which department has the highest average instructor salary?,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1 "Who did the Seahawks play on September 4, 1983?","SELECT opponent FROM table_13258876_2 WHERE date = ""September 4, 1983""" "Return reviewer name, movie title, stars, and rating date. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.","SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars" "Can you tell me the lowest Total natches that has the Points won of 3, and the Year of 1994?","SELECT MIN(total_matches) FROM table_name_11 WHERE points_won = 3 AND year = ""1994""" What is the name with the builder of Kerr Stuart,"SELECT name FROM table_142159_1 WHERE builder = ""Kerr Stuart""" What is the score for round 2 for team Toshiba?,"SELECT COUNT(round2) FROM table_16815824_1 WHERE team = ""team Toshiba""" What is the full place of birth of Rene Chenevert Balcer?,"SELECT birth_place, birth_region FROM Person WHERE birth_name = 'Rene Chenevert Balcer'" Show all the buildings that have at least 10 professors.,"SELECT building FROM Faculty WHERE rank = ""Professor"" GROUP BY building HAVING COUNT(*) >= 10" What is the rank of the gatchaman of Jinpei?,"SELECT rank FROM table_name_76 WHERE gatchaman = ""jinpei""" When did event number 7 happen for user number -8022267440849930000?,SELECT T1.timestamp FROM events_relevant AS T1 INNER JOIN app_events AS T2 ON T1.event_id = T2.event_id WHERE T2.app_id = -8022267440849930000 AND T1.event_id = 7 What is his visit details?,"SELECT T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = ""Vincent""" What is the kosal with hatibandha as the sambalpuri cinema?,"SELECT kosal FROM table_name_94 WHERE sambalpuri_cinema = ""hatibandha""" What was the record at the game with a result of W 13-12 after week 4?,"SELECT record FROM table_name_10 WHERE week > 4 AND result = ""w 13-12""" How many students have never been absent from school?,SELECT COUNT(name) FROM longest_absense_from_school WHERE `month` = 0 What are all distinct country for artists?,SELECT DISTINCT country FROM artist "What is the location and attendance after game 2, and the team New Orleans?","SELECT location_attendance FROM table_name_99 WHERE game > 2 AND team = ""new orleans""" oh wow that's a lot! and how many stations have those started from?,"SELECT count ( distinct start_station_name ) FROM trip WHERE start_date LIKE ""8/%""" What was the score of the home team in the match at Western Oval?,"SELECT home_team AS score FROM table_name_3 WHERE venue = ""western oval""" Name the title of the book with the most number of pages that was published from 1990 to 2000 by publisher Free Press.,"SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Free Press' AND STRFTIME('%Y', T1.publication_date) BETWEEN '1990' AND '2000' ORDER BY T1.num_pages DESC LIMIT 1" Tell me the count of total number of residents,SELECT count ( * ) FROM Residents What was the score on February 21 when the home team was the Pittsburgh Penguins?,"SELECT score FROM table_name_6 WHERE home = ""pittsburgh penguins"" AND date = ""february 21""" Calculate the production volume of the dairy product 'Mascarpone Fabioli'.,SELECT SUM(UnitsInStock + UnitsOnOrder) FROM Products WHERE ProductName = 'Mascarpone Fabioli' "What is the production code for the episode that originally aired on January 8, 1993?","SELECT MAX(production_code) FROM table_2409041_5 WHERE original_air_date = ""January 8, 1993""" On which date was the game played at Tiger Stadium?,"SELECT date FROM table_14958620_1 WHERE game_site = ""Tiger Stadium""" Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.,SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25 "What is Set 5, when Date is Jun 26, and when Set 2 is 25-22?","SELECT set_5 FROM table_name_46 WHERE date = ""jun 26"" AND set_2 = ""25-22""" What is the season for no award given for rookie of the year?,"SELECT season FROM table_13082900_1 WHERE rookie_of_the_year = ""No award given""" What country is charley hoffman from?,"SELECT country FROM table_28498999_4 WHERE player = ""Charley Hoffman""" Which constructor was present at the Redex Trophy race?,"SELECT constructor FROM table_1140114_5 WHERE race_name = ""RedeX Trophy""" What was actor Teresa Graves's series before the year 1993?,"SELECT series FROM table_name_82 WHERE year < 1993 AND actor = ""teresa graves""" How much gold did South Korea get?,"SELECT SUM(gold) FROM table_name_49 WHERE nation = ""south korea""" "In 2014, what is the name of the university which was considered a leader in the publications rank?",SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Publications Rank' AND T2.year = 2014 AND T1.id = 17 ORDER BY T2.score DESC LIMIT 1 Return all reviewer names and movie names together in a single list.,SELECT name FROM Reviewer UNION SELECT title FROM Movie What is the height of the building named 555 17th street?,"SELECT height_ft___m FROM table_name_77 WHERE name = ""555 17th street""" WHAT POSITION HAS A 23 PICK?,SELECT position FROM table_name_50 WHERE pick = 23 What years did the sdrive16d model have a Torque of n·m (lb·ft)@1750-3000?,"SELECT years FROM table_name_74 WHERE torque = ""n·m (lb·ft)@1750-3000"" AND model = ""sdrive16d""" Return the name and gender of the staff who was assigned in 2016.,"SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE ""2016%""" Find the names of states that have some college students playing in the mid position but not in the goalie position.,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' Who is the home team that tied no 2?,"SELECT home_team FROM table_name_2 WHERE tie_no = ""2""" "Among the movies directed by Wolfgang Reitherman, which one of them was the most popular?",SELECT T2.movie_title FROM director AS T1 INNER JOIN movies_total_gross AS T2 ON T1.name = T2.movie_title WHERE T1.director = 'Wolfgang Reitherman' ORDER BY T2.total_gross DESC LIMIT 1 On which day was the most verbose complaint received?,SELECT `Date received` FROM callcenterlogs WHERE ser_time = ( SELECT MAX(ser_time) FROM callcenterlogs ) "can you list the elimination times of those with the largest days held? | Again, there can only be one with the largest days held, would you like that one? There are not multiple that can be ""largest"" | yes, please",SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 What are the home team scores when richmond is the home team?,"SELECT home_team AS score FROM table_16388506_1 WHERE home_team = ""Richmond""" what album is 4:30 long,"SELECT album FROM table_name_95 WHERE length = ""4:30""" what's the s mestizo with asians being 0.2% and whites being 74.8%,"SELECT s_mestizo FROM table_1333612_1 WHERE asians = ""0.2%"" AND whites = ""74.8%""" Okay good to know. How many products have a daily hire cost lower than 20?,SELECT COUNT ( product_id ) FROM products_for_hire WHERE daily_hire_cost < 20 "How many broadband subscribers are there where there are ~47,372 users?","SELECT number_of_broadband_subscribers FROM table_name_56 WHERE number_of_users = ""~47,372""" "What are the name and description for role code ""MG""?","SELECT role_name , role_description FROM ROLES WHERE role_code = ""MG""" What is the average number of international passengers of all airports?,SELECT avg(International_Passengers) FROM airport What was the score of the game that had a loss of Cerutti (0-1)?,"SELECT score FROM table_name_91 WHERE loss = ""cerutti (0-1)""" What is the year of daylight service when the builder was Alco?,"SELECT years_of_daylight_service FROM table_name_7 WHERE builder = ""alco""" "What is the profit for the product ""792""?",SELECT T1.ListPrice - T2.StandardCost FROM ProductListPriceHistory AS T1 INNER JOIN ProductCostHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID = 792 "What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?","SELECT overall_record FROM table_name_4 WHERE last_10_meetings = ""ou, 7-3"" AND at_norman = ""ou, 18-3""" state the projects with least hours? | Do you need the project code or name? | name,SELECT name FROM projects ORDER BY hours LIMIT 1 who had high rebounds when score is w 111–92 (ot),"SELECT high_rebounds FROM table_13762472_4 WHERE score = ""W 111–92 (OT)""" Who is the oldest player?,SELECT Player_Name FROM Player ORDER BY DOB ASC LIMIT 1 List the name of all the products with order quantities greater than or equal to 10 in the central superstore that has been shipped by the slowest delivery method.,SELECT DISTINCT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'Standard Class' AND T1.Quantity >= 10 Hello! Can you display a list of all of the Savings Account customer IDs and the associated balances?,"select custid,balance from savings" "Among the countries with the African ethnic group, how many of them has a population of over 10000000?",SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' AND T1.Area > 10000000 "What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1?","SELECT MIN(silver) FROM table_name_4 WHERE total > 2 AND bronze = 3 AND gold > 0 AND rank = ""1""" "What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964?","SELECT january_15_16 FROM table_25216791_3 WHERE june_10_11 = ""June 10, 1964""" "What is the Competition where the Score was 3–0, and the was Goal larger than 4?","SELECT competition FROM table_name_59 WHERE score = ""3–0"" AND goal > 4" What position did team scandia finish when their engine was cosworth?,"SELECT finish FROM table_name_72 WHERE engine = ""cosworth"" AND team = ""team scandia""" can you show me a list of active to date?,select active_to_date from customer_contact_channels Name the least touchdowns for 11 points,SELECT MIN(touchdowns) FROM table_14342592_8 WHERE points = 11 Name the comptroller for office of prohibition,"SELECT comptroller FROM table_22607062_1 WHERE ticket___office = ""Prohibition""" What is the highest series # directed by ken whittingham?,"SELECT MAX(series__number) FROM table_27720737_1 WHERE directed_by = ""Ken Whittingham""" Find the number of customers who live in the city called Lake Geovannyton.,"SELECT count(*) FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = ""Lake Geovannyton""" "Find and list the full name of employees who are from the territory, Wilton.","SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Wilton'" What was the rank # for opponent AT Baylor?,"SELECT rank_number FROM table_name_27 WHERE opponent_number = ""at baylor""" Return the name and id of the furniture with the highest market rate.,"SELECT name , furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1" how many times was the player felipe lopez?,"SELECT COUNT(nba_draft) FROM table_11677760_1 WHERE player = ""Felipe Lopez""" how many degrees were conferred between 1998 and 2002?,"SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus" What is the status when the against is 11?,SELECT status FROM table_name_68 WHERE against = 11 Which coach of the Chicago Bulls during the year 1981 won the NBA Coach of the Year award in the 1970s?,SELECT DISTINCT T2.coachID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN teams AS T3 ON T3.tmID = T1.tmID WHERE T2.award = 'NBA Coach of the Year' AND T2.year BETWEEN 1970 AND 1979 AND T1.year = 1981 AND T3.name = 'Chicago Bulls' Name the seasons and winners that airs 28 january 2007,"SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = ""28 January 2007""" "Who was the race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august?","SELECT race AS Winner FROM table_name_58 WHERE pole_position = ""james hunt"" AND fastest_lap = ""james hunt"" AND date = ""15 august""" What is the score of game 4?,SELECT score FROM table_27756014_1 WHERE game = 4 Final question is How many Address ids in the table?,SELECT count ( address_id ) FROM addresses "What are the phone, room, and building of the faculty member called Jerry Prince?","SELECT phone , room , building FROM Faculty WHERE Fname = ""Jerry"" AND Lname = ""Prince""" What is the average and maximum number of total passengers for train stations in London or Glasgow?,"SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'" How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?,SELECT COUNT(deposits) FROM table_name_63 WHERE non_interest_income = 0.9500000000000001 AND no_of_branches_offices < 17 What is the date assigned to clerical staff?,"SELECT date_assigned_to FROM Staff_Department_Assignments WHERE job_title_code = ""Clerical Staff""" "What is the lowest Laps, when Rider is Sylvain Guintoli, and when Grid is less than 16?","SELECT MIN(laps) FROM table_name_68 WHERE rider = ""sylvain guintoli"" AND grid < 16" "For the quantities, what percent more did the store in Fremont sell than the store in Portland in 1993?","SELECT CAST(SUM(CASE WHEN T2.city = 'Fremont' THEN qty END) - SUM(CASE WHEN T2.city = 'Portland' THEN qty END) AS REAL) * 100 / SUM(CASE WHEN T2.city = 'Fremont' THEN qty END) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id WHERE STRFTIME('%Y', T1.ord_date) = '1993'" How many of them are male?,"SELECT count ( * ) FROM people WHERE weight > 85 AND Sex = ""M""" What was the record when the game was at the Rose Garden?,"SELECT record FROM table_name_75 WHERE location = ""rose garden""" What date was the opponent the Portland Trail Blazers?,"SELECT date FROM table_name_67 WHERE opponent = ""portland trail blazers""" "Find all the instruments ever used by the musician with last name ""Heilo""?","SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = ""Heilo""" "List the contestant numbers and names, ordered by contestant name descending.","SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC" On what date was the rented material for the movie BLOOD ARGONAUTS returned?,SELECT T1.rental_date FROM rental AS T1 INNER JOIN inventory AS T2 ON T1.inventory_id = T2.inventory_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'BLOOD ARGONAUTS' "Holy smokes that's a lot! Okay, let's narrow that down. How many left footed players have a height between 180cm and 190cm?","SELECT COUNT ( * ) FROM ( SELECT player_api_id FROM Player WHERE height > = 180 AND height < = 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = ""left"" ) " Who are Bob's friends?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob' What is the second-least common method of shipping?,"SELECT T2.method_name FROM cust_order AS T1 INNER JOIN shipping_method AS T2 ON T1.shipping_method_id = T2.method_id GROUP BY T2.method_name ORDER BY COUNT(T2.method_id) ASC LIMIT 1, 1" What is the full official name of the current legislator that has served for the most number of terms?,"SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide GROUP BY T1.official_full_name, T2.bioguide ORDER BY COUNT(T2.bioguide) DESC LIMIT 1" "Among the customers having at least one shipment in 2017, how many of them have an annual revenue of over 30000000?","SELECT COUNT(COUNTCUSID) FROM ( SELECT COUNT(T1.cust_id) AS COUNTCUSID FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE STRFTIME('%Y', T2.ship_date) = '2017' AND T1.annual_revenue > 30000000 GROUP BY T1.cust_id HAVING COUNT(T2.ship_id) >= 1 ) T3" What is the average number of bedrooms of all apartments?,SELECT AVG(bedroom_count) FROM Apartments Give me the minimum and maximum bathroom count among all the apartments.,"SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments" Name the least total apaps for txema,"SELECT MIN(total_apps) FROM table_22542179_3 WHERE player = ""Txema""" One 6 November 2007 what was the manner of departure for the coach release in football league one?,"SELECT manner_of_departure FROM table_28181347_6 WHERE date_of_appointment = ""6 November 2007""" Which controller has an interface of pcie 2.0 × 8?,"SELECT controller FROM table_name_37 WHERE interface = ""pcie 2.0 × 8""" How many number of floors are in Tampa City Hall ?,SELECT Floors FROM building WHERE Name = 'Tampa City Hall' What city joined the Independents conference after 1963?,"SELECT city FROM table_name_26 WHERE year_joined > 1963 AND conference_joined = ""independents""" What is the fewest losses for teams with points of 53 and more than 73 goals for?,"SELECT MIN(lost) FROM table_name_23 WHERE points_1 = ""53"" AND goals_for > 73" Count the number of players who enter hall of fame for each year.,"SELECT yearid , count(*) FROM hall_of_fame GROUP BY yearid;" "For the USAC National Championship, what is the Discipline?","SELECT discipline FROM table_name_31 WHERE championship = ""usac national championship""" What was the Premiership Years that had in the Competition of 1983-1992?,"SELECT premiership_years FROM table_name_65 WHERE years_in_competition = ""1983-1992""" "For project titled 'Toot Your Flute!', what is the main subject of the project materials intended for? Name the other projects with the similar focus.",SELECT T2.primary_focus_subject FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title = 'Toot Your Flute!' Name the total number of roll for st joseph's school when decile is less than 5,"SELECT COUNT(roll) FROM table_name_19 WHERE name = ""st joseph's school"" AND decile < 5" How many security forces?,SELECT MAX(security_forces) FROM table_21636599_1 List all tracks bought by customer Daan Peeters.,"SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = ""Daan"" AND T4.last_name = ""Peeters"";" What's the royalty for the bestseller book?,SELECT royalty FROM titles ORDER BY ytd_sales DESC LIMIT 1 Please show me the name of the highest mountain.,select Name from mountain order by Height desc limit 1 "Who was the match played against in the final on March 14, 2008?","SELECT opponents_in_the_final FROM table_name_2 WHERE date = ""march 14, 2008""" What is the score of the game that was played on 29 November at State Sports Centre?,"SELECT score FROM table_name_29 WHERE date = ""29 november"" AND venue = ""state sports centre""" How many races were there when Sigachev had 38 points?,"SELECT MIN(races) FROM table_25421463_1 WHERE points = ""38""" "which Partial thromboplastin time has a Condition of liver failure , early?","SELECT partial_thromboplastin_time FROM table_name_61 WHERE condition = ""liver failure , early""" What team is in the dhl-höllin arena?,"SELECT team FROM table_name_5 WHERE arena = ""dhl-höllin""" "What are the completion dates of all the tests that have result ""Fail""?","SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = ""Fail""" What is the highest crowd at windy hill?,"SELECT MAX(crowd) FROM table_name_51 WHERE venue = ""windy hill""" Find the phone number of all the customers and staff.,SELECT phone_number FROM customers UNION SELECT phone_number FROM staff Which track translates to Flemish Women?,"SELECT track FROM table_name_96 WHERE translation = ""flemish women""" "Which Points have a Record of 21–36–9, and an Attendance larger than 14,768?","SELECT SUM(points) FROM table_name_9 WHERE record = ""21–36–9"" AND attendance > 14 OFFSET 768" Please show the countries and the number of climbers from each country.,"SELECT Country , COUNT(*) FROM climber GROUP BY Country" What is the first name and last name employee helps the customer with first name Leonie?,"SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = ""Leonie""" How many deaths occurred during Darby?,"SELECT deaths FROM table_name_64 WHERE storm_name = ""darby""" "Tell me the highest week for metropolitan stadium for attendance more than 47,644","SELECT MAX(week) FROM table_name_80 WHERE venue = ""metropolitan stadium"" AND attendance > 47 OFFSET 644" How many patients with 'allergy to eggs' have been immunized with 'Td (adult) preservative free'?,SELECT COUNT(DISTINCT T2.patient) FROM allergies AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN immunizations AS T3 ON T2.patient = T3.PATIENT WHERE T1.DESCRIPTION = 'Allergy to eggs' AND T3.DESCRIPTION = 'Td (adult) preservative free' "For each end station id, what is its name, latitude, and minimum duration for trips ended there?","SELECT T1.name , T1.lat , min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id" "What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria?","SELECT duration FROM table_name_53 WHERE count_palatine_of_the_rhine = ""charles albert, elector of bavaria""" Name the vcore for multi 11x,"SELECT v_core FROM table_27277284_8 WHERE mult_1 = ""11x""" "What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?","SELECT COUNT(season) FROM table_name_85 WHERE engine = ""cosworth"" AND team = ""kraco racing""" "Find the membership amount of the popert? | did you mean the membership amount of the branch with the name ""Popert""? | yes",SELECT membership_amount FROM branch where Name = 'Popert' What are these residences?,SELECT distinct Residence FROM player That's great. Can you tell me the total number of documents that do have images?,SELECT count ( * ) FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id Who was in the original berkley cast while stark sands was in the original broadway cast? ,"SELECT original_berkeley_cast FROM table_24353141_1 WHERE original_broadway_cast = ""Stark Sands""" what is the order status of George,"SELECT T2.order_status FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id where T1.customer_name = ""George""" how many skills are presented on the table,SELECT count ( * ) FROM skills Can you list the name and opening year of the branch that opened the earliest?,"SELECT name, open_year FROM branch where open_year = ( select min ( open_year ) from branch ) " "If the armor is bronze cuirass , linothorax, what are the close ranged weapons?","SELECT close_ranged_weapons FROM table_27704991_1 WHERE armor = ""Bronze cuirass , Linothorax""" What is the number of gold medals when the number of bronze medals is 8?,"SELECT gold FROM table_name_88 WHERE bronze = ""8""" What is the total attendance of each stadium?,"SELECT T1.id , sum ( Total_Attendance ) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id" What is the total number of campuses?,SELECT count(*) FROM campuses Which Lead has a Skip of pavol pitonak?,"SELECT lead FROM table_name_94 WHERE skip = ""pavol pitonak""" How many orders have been cancelled in 2022?,"SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Cancelled' AND STRFTIME('%Y', T2.status_date) = '2022'" How about the lowest?,SELECT t1.school FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 Who was the opponent for the 2003 davis cup europe/africa group ii?,"SELECT opponent FROM table_name_23 WHERE edition = ""2003 davis cup europe/africa group ii""" "What is the lowest rank of Qaanaaq, which has a population greater than 231?","SELECT MIN(rank) FROM table_name_28 WHERE population > 231 AND name = ""qaanaaq""" Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.,SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted) > 100 OR sum(T3.amount) > 10 "Show cinema name, film title, date, and price for each record in schedule.","SELECT T3.name, T2.title, T1.date, T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id" which countries did participated in both Friendly and Tournament type competitions.,SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' What are the ids of the students who attended courses in the statistics department in order of attendance date.,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.date_of_attendance" What was the away team when the venue was Lake Oval?,"SELECT away_team FROM table_name_30 WHERE venue = ""lake oval""" Show the product name and total order quantity for each product.,"SELECT T1.product_name , sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id" What are the prices on cheese products?,SELECT T2.UnitPrice FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.Description = 'Cheeses' What are the titles of the podcasts whose reviews were created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00?,SELECT DISTINCT T1.title FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at BETWEEN '2018-08-22T11:53:16-07:00' AND '2018-11-20T11:14:20-07:00' What is the lowest goals against value for a team with 83 points and a difference over 50?,SELECT MIN(goals_against) FROM table_name_31 WHERE points = 83 AND goal_difference > 50 How many laps did Jackie Oliver do?,"SELECT laps FROM table_name_41 WHERE driver = ""jackie oliver""" What role has the team of Troyes AC Grenoble Foot?,"SELECT role FROM table_name_89 WHERE teams = ""troyes ac grenoble foot""" What was the No. 4 name when Madison was No. 5 and Abigail was No. 9?,"SELECT no_4 FROM table_name_83 WHERE no_5 = ""madison"" AND no_9 = ""abigail""" What is the number range for the Gloucester RCW builder introduced in 1937?,"SELECT number_range FROM table_name_84 WHERE builder = ""gloucester rcw"" AND introduced = ""1937""" "Ok, can you show me the list of the source system codes?",SELECT source_system_code FROM CMI_Cross_References Who was the home team when walsall was the away team?,"SELECT home_team FROM table_name_8 WHERE away_team = ""walsall""" Who were the candidates in the Kentucky 4 voting district?,"SELECT candidates FROM table_1342218_17 WHERE district = ""Kentucky 4""" What player has 1 as the place?,"SELECT player FROM table_name_69 WHERE finish = ""1""" Show the number of roller coasters of Australia and Finland.,"SELECT T1.Name,count ( * ) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT ( * ) > 1" What is the series episode number of the episode with production code 303?,"SELECT no_in_series FROM table_16581695_4 WHERE production_code = ""303""" Which Championship has a Scoreboard that is 22-14?,"SELECT champion FROM table_name_74 WHERE scoreboard = ""22-14""" When did France come in second?,"SELECT second FROM table_name_54 WHERE nation = ""france""" "What percentage more for the ""Women's Clothing"" Yelp businesses to ""Men's Clothing""?","SELECT CAST(SUM(CASE WHEN T2.category_name LIKE 'Women''s Clothing' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) - CAST(SUM(CASE WHEN T2.category_name LIKE 'Men''s Clothing' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.business_id) AS ""more percentage"" FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id" Name the total number for race caller for bob costas and charlsie cantey,"SELECT COUNT(race_caller) FROM table_22514845_2 WHERE trophy_presentation = ""Bob Costas and Charlsie Cantey""" Give the name of the driver of shipment no.1021.,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1021'" What is the average amount of appearances for the Bronze Meals less than 0?,SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0 Which TV Station has Average Ratings of 16.89%?,"SELECT tv_station FROM table_name_54 WHERE average_ratings = ""16.89%""" How many rooms have not had any reservation yet?,SELECT count(*) FROM rooms WHERE roomid NOT IN (SELECT DISTINCT room FROM reservations) What is the smallest number of tries for in a game?,SELECT MIN(tries_for) FROM table_16770037_3 Show me the attendance of the team_id CH1?,SELECT attendance FROM home_game where team_id = 'CH1' how many females have president votes?,"SELECT count ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" What is the artist name of that song?,SELECT artist_name FROM files ORDER BY duration DESC LIMIT 1 What were the points for a team that 414 points against?,"SELECT points_for FROM table_name_52 WHERE points_against = ""414""" How many cities in total with post code starting with 4?,"SELECT count ( distinct city ) FROM addresses WHERE zip_postcode LIKE ""4%""" What is the name of member in charge of greatest number of events?,SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1 Show the number of cities in counties that have a population more than 20000.,SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000) How many years did he have an average start of 20.7?,"SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = ""20.7""" What did the Home team score when they were in MCG?,"SELECT home_team AS score FROM table_name_25 WHERE venue = ""mcg""" List the name and country of the players who got more than average catches in ascending order of the number of catches.,"SELECT T1.Player_Name, T4.Country_Name FROM Player AS T1 INNER JOIN Wicket_Taken AS T2 ON T1.Player_Id = T2.Fielders INNER JOIN Out_Type AS T3 ON T2.Kind_Out = T3.Out_Id INNER JOIN Country AS T4 ON T1.Country_Name = T4.Country_Id GROUP BY T1.Player_Name ORDER BY COUNT(T3.Out_Name) ASC" What is the class for trafen in part 3?,"SELECT class FROM table_name_49 WHERE part_3 = ""trafen""" What Greek word means the same thing as the German word ebbe?,"SELECT greek FROM table_name_99 WHERE german = ""ebbe""" "Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?","SELECT outcome FROM table_name_78 WHERE surface = ""hard (i)"" AND date = ""28 january 2003""" Find the locations that have more than one movie theater with capacity above 300.,SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING count(*) > 1 What are the times of elimination for any instances in which the elimination was done by Punk or Orton?,"SELECT TIME FROM elimination WHERE Eliminated_By = ""Punk"" OR Eliminated_By = ""Orton""" "What is the hardware model name for the phones that were produced by ""Nokia Corporation"" but whose screen mode type is not Text?","SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = ""Nokia Corporation"" AND T1.Type ! = ""Text""" "How many silvers have a Nation of hungary, and a Rank larger than 10?","SELECT COUNT(silver) FROM table_name_30 WHERE nation = ""hungary"" AND rank > 10" What is the name of the department with the most credits?,SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1 Who is the choreographer with the style pas de deux?,"SELECT choreographer_s_ FROM table_name_10 WHERE style = ""pas de deux""" List the names of the top 5 oldest people.,SELECT Name FROM People ORDER BY Age DESC LIMIT 5 How many companies are there?,select count ( * ) from Manufacturers What is the date of the game with a 17-31 record?,"SELECT date FROM table_name_90 WHERE record = ""17-31""" Who directed episode 53 in the series?,SELECT directed_by FROM table_24319661_5 WHERE no_in_series = 53 What is the name of each course and the corresponding number of student enrollment?,"SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name" what is the most number where the calendar shows october 20,"SELECT high_points FROM table_27733909_1 WHERE date = ""October 20""" How many drawn does the team Corinthians have?,"SELECT drawn FROM table_15352382_1 WHERE team = ""Corinthians""" "What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy?","SELECT year FROM table_name_96 WHERE opponent_in_the_final = ""brenda schultz-mccarthy"" AND score = ""6–7(5), 2–6""" "What is the time of the honda cbr1000rr bike, which has less than 25 laps?","SELECT time FROM table_name_49 WHERE laps < 25 AND bike = ""honda cbr1000rr""" What were the total number of sales for the song 21 Seconds?,"SELECT COUNT(sales) FROM table_name_21 WHERE song_title = ""21 seconds""" Great! Can you filter this list to show just the forename and surname of the driver who has the smallest lap time?,"SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1" what's the id of that song?,"SELECT f_id FROM files where duration = ""5:23""" What language was the most used in movies released in 2006?,"SELECT T.language_id FROM ( SELECT T1.language_id, COUNT(T1.language_id) AS num FROM film AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE STRFTIME('%Y',T1.release_year) = '2006' GROUP BY T1.language_id ) AS T ORDER BY T.num DESC LIMIT 1" What points larger than 1950 has a maserati straight-6 engine?,"SELECT points FROM table_name_68 WHERE year > 1950 AND engine = ""maserati straight-6""" what is the country of University of Oxford,"SELECT country from Inst where name = ""University of Oxford""" "What are the types of vocals that the musician with the first name ""Solveig"" played in the song ""A Bar in Amsterdam""?","SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = ""Solveig"" AND T2.title = ""A Bar In Amsterdam""" What is the name of the artist that issued the single on 23 February?,"SELECT artist FROM table_name_43 WHERE issue_date_s_ = ""23 february""" How many routes are not operated by American Airlines?,SELECT count ( * ) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name ! = 'American Airlines' What year was the winning race time 1:55:13?,"SELECT MAX(year) FROM table_17801022_1 WHERE race_time = ""1:55:13""" Find all students taught by MARROTTE KIRK. Output first and last names of students.,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""MARROTTE"" AND T2.lastname = ""KIRK""" Calvin Abueva Calvin Abueva had what statistic?,"SELECT statistic FROM table_name_70 WHERE name = ""calvin abueva calvin abueva""" What was the average crowd size at Victoria Park?,"SELECT AVG(crowd) FROM table_name_22 WHERE venue = ""victoria park""" Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.,SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000 Who are their coaches?,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID" "What is the average score for ""Chairman Bao"" in all its unscheduled routine inspections?",SELECT CAST(SUM(CASE WHEN T2.name = 'Chairman Bao' THEN T1.score ELSE 0 END) AS REAL) / COUNT(CASE WHEN T1.type = 'Routine - Unscheduled' THEN T1.score ELSE 0 END) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id list the details of the purchases,SELECT purchase_details FROM Purchases In what position did Salina Kosgei finish in the Tokyo Marathon?,"SELECT position FROM table_name_23 WHERE competition = ""tokyo marathon""" How many appearances were made by people that had 5 goals and less than 7 rank?,SELECT COUNT(appearances) FROM table_name_95 WHERE goals = 5 AND rank < 7 What was the score when Mark parterned with lorenzo manta?,"SELECT score FROM table_name_19 WHERE partner = ""lorenzo manta""" "Find the start and end dates of detentions of teachers with last name ""Schultz"".","SELECT T1.datetime_detention_start , datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = ""Schultz""" What percent did LINKE get in Tyrol?,"SELECT linke FROM table_name_99 WHERE state = ""tyrol""" How many students are over 18 and do not have allergy to food type or animal type?,"SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" OR T2.allergytype = ""animal"")" Which Player has a Position of forward?,"SELECT player FROM table_name_18 WHERE position = ""forward""" Show the id and name of the employee with maximum salary.,"SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1" Which label is in a limited edition cd/dvd format?,"SELECT label FROM table_name_19 WHERE format = ""limited edition cd/dvd""" What country has the player Tiger Woods?,"SELECT country FROM table_name_60 WHERE player = ""tiger woods""" Who was the driver of truck no.3 on 2016/9/19? Tell the full name.,"SELECT T3.first_name, T3.last_name FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T1.truck_id = '3' AND T2.ship_date = '2016-09-19'" Which recipe needs the most frozen raspberries in light syrup? State its title.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'frozen raspberries in light syrup' AND T2.max_qty = T2.min_qty What was the format for the 4 disc season that had less than 22 episodes and n/a for region 4?,"SELECT format FROM table_name_86 WHERE _number_episodes < 22 AND _number_disc_s_ = 4 AND region_4 = ""n/a""" What is the most recent year that Queen Nefertiti (pegasus two) was built?,"SELECT MAX(built) FROM table_name_44 WHERE name = ""queen nefertiti (pegasus two)""" How many competitor ids does Martina Kohlov have?,SELECT COUNT(T2.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T1.full_name = 'Martina Kohlov' What are ids of the faculty members who not only participate in an activity but also advise a student.,SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student What's the score of the game with 31-29 record?,"SELECT score FROM table_22669044_10 WHERE record = ""31-29""" How much donations have been collected for project 'Whistle While We Work!'?,SELECT SUM(T2.donation_to_project) FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title = 'Whistle While We Work!' How many entries are there for vote when the air date was 15 november 1997?,"SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = ""15 November 1997""" State the address location of store No.1.,"SELECT T1.address, T1.address2, T1.district FROM address AS T1 INNER JOIN store AS T2 ON T1.address_id = T2.address_id WHERE T2.store_id = 1" Name the most no votes,SELECT MAX(no_votes) FROM table_256286_14 List the director's name of the movies released between 1/01/1916 and 12/31/1925.,SELECT T2.person_name FROM movie_cast AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.person_id INNER JOIN movie AS T3 ON T1.movie_id = T3.movie_id INNER JOIN movie_crew AS T4 ON T1.movie_id = T4.movie_id WHERE T4.job = 'Director' AND T3.release_date BETWEEN '1916-01-01' AND '1925-12-31' How many solutions does the repository which has 1445 Forks contain?,SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = 1445 How many products were ordered in the order with the highest freight?,SELECT COUNT(T2.ProductID) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID GROUP BY T2.ProductID ORDER BY COUNT(T1.Freight) DESC LIMIT 1 What country has a fire store of 1991 and a hard discounter of 397?,"SELECT country FROM table_name_2 WHERE first_store = ""1991"" AND hard_discounters = ""397""" How many amenities are offered in all dorms?,select count ( * ) from Dorm_amenity Count the number of courses with more than 2 credits.,SELECT count(*) FROM COURSE WHERE Credits > 2 What are the payment method codes that have been used by more than 3 parties?,SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*) > 3 Which weather station has the highest number of stores?,SELECT station_nbr FROM relation GROUP BY station_nbr ORDER BY COUNT(store_nbr) DESC LIMIT 1 Question doesn't make sense since there is no team of pramac d'antin ducati,"SELECT MIN(year) FROM table_name_46 WHERE team = ""pramac d'antin ducati""" Return the cities with more than 3 airports in the United States.,SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3 What is the class of the Middletown High School team that is in the DSHA league?,"SELECT class FROM table_name_98 WHERE league = ""dsha"" AND school = ""middletown high school""" How many sales teams are there in the Midwest?,SELECT SUM(CASE WHEN Region = 'Midwest' THEN 1 ELSE 0 END) FROM `Sales Team` What is the 2nd leg where Team 2 is fc 105 libreville?,"SELECT 2 AS nd_leg FROM table_name_9 WHERE team_2 = ""fc 105 libreville""" Name the featuring for pat mills,"SELECT featuring FROM table_1620397_2 WHERE author = ""Pat Mills""" Name the director for maya vision international ltd,"SELECT director_s_ FROM table_name_81 WHERE recipient = ""maya vision international ltd""" "Name the date for result of draw, and venue of edgbaston","SELECT date FROM table_name_37 WHERE result = ""draw"" AND venue = ""edgbaston""" Which city has the most bad aliases?,SELECT T2.city FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T1.bad_alias ORDER BY COUNT(T1.zip_code) DESC LIMIT 1 find the ids of reviewers who did not give 4 star.,SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 What are the types and countries of competitions?,"SELECT Competition_type , Country FROM competition" Name the outcome on 6 october 2013,"SELECT outcome FROM table_name_70 WHERE date = ""6 october 2013""" What are the publishers who have published a book in both 1989 and 1990?,SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990 What are names of stations that have average bike availability above 10 and are not located in San Jose city?,"SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = ""San Jose""" Show all card type codes.,SELECT DISTINCT card_type_code FROM Customers_Cards Who is a Creator of hyriand?,"SELECT name FROM table_name_47 WHERE creator = ""hyriand""" Name the frequency mhz for fcc and ERP W of 9 watts,"SELECT frequency_mhz FROM table_name_7 WHERE fcc_info = ""fcc"" AND erp_w = ""9 watts""" What are the number of votes from state 'NY' or 'CA'?,SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA' list out the campuses name,SELECT campus FROM campuses "Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position.","SELECT College FROM match_season WHERE POSITION = ""Midfielder"" INTERSECT SELECT College FROM match_season WHERE POSITION = ""Defender""" "How many goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1?",SELECT COUNT(goals_against) FROM table_name_85 WHERE lost > 7 AND goals_for < 27 AND drawn > 1 How much salary does Jessica Anthony receive?,SELECT salary FROM employee WHERE first_name = 'Jessica' AND last_name = 'Anthony' What is the site of the game with a Record of 6-2?,"SELECT game_site FROM table_name_35 WHERE record = ""6-2""" What is the id for the employee called Ebba?,"SELECT employee_ID FROM Employees WHERE employee_name = ""Ebba""" How many Rebounds did Novica Veličković get in less than 22 Games?,"SELECT SUM(rebounds) FROM table_name_6 WHERE name = ""novica veličković"" AND games < 22" How many active employees whose payrate is equal or below 30 per hour.,SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.CurrentFlag = 1 AND T2.Rate <= 30 What's the draw having the result of 10%?,"SELECT AVG(draw) FROM table_name_29 WHERE result = ""10%""" Find the number of students who participate in the tryout for each college ordered by descending count.,"SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC" And for Blake?,"SELECT pID FROM Player WHERE pName = ""Blake""" What date did Jamie McMurray win the race?,"SELECT date FROM table_17801022_1 WHERE driver = ""Jamie McMurray""" Show the transaction type descriptions and dates if the share count is smaller than 10.,"SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10" "What is the total balance of ""Weeks"" Checking and savings.","SELECT T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = ""Weeks""" "show the order id, product id with order quantity","SELECT order_id, product_id, order_quantity FROM INVOICES" What is the most expensive product?,SELECT ProductName FROM Products WHERE UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) can you show me their ratings?,"SELECT artist_name, rating FROM song" "Which region does ""Supplier#000000129"" belong to?",SELECT T3.r_name FROM nation AS T1 INNER JOIN supplier AS T2 ON T1.n_nationkey = T2.s_nationkey INNER JOIN region AS T3 ON T1.n_regionkey = T3.r_regionkey WHERE T2.s_name = 'Supplier#000000129' "What positions were drafted from Las Vegas, NV?","SELECT position FROM table_11677100_16 WHERE hometown = ""Las Vegas, NV""" Who wears the jersey number 20 and has the position of SG?,"SELECT player FROM table_name_5 WHERE position = ""sg"" AND jersey_number_s_ = ""20""" "Which Competition has a Year smaller than 2009, and Notes of 56.16 m?","SELECT competition FROM table_name_13 WHERE year < 2009 AND notes = ""56.16 m""" Who are shown as candidates when George Darden is the incumbent?,"SELECT candidates FROM table_1341598_11 WHERE incumbent = ""George Darden""" Find the title and star rating of the movie that got the least rating star for each reviewer.,"SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID" What player attended Graceland College?,"SELECT player FROM table_name_94 WHERE college = ""graceland""" List all students' first names and last names who majored in 600.,"SELECT Fname , Lname FROM Student WHERE Major = 600;" State 10 emails of UK Sales Rep who have the lowest credit limit.,SELECT DISTINCT T2.email FROM customers AS T1 INNER JOIN employees AS T2 ON T1.salesRepEmployeeNumber = T2.employeeNumber WHERE T2.jobTitle = 'Sales Rep' AND T1.country = 'UK' ORDER BY T1.creditLimit LIMIT 10 What was the result of the election of the incumbent clyde doyle?,"SELECT result FROM table_1341973_6 WHERE incumbent = ""Clyde Doyle""" Which nation has the America 3 Foundation syndicate and the jayhawk yacht?,"SELECT nation FROM table_name_81 WHERE syndicate = ""america 3 foundation"" AND yacht = ""jayhawk""" "Which Lost has Drawn larger than 12, and Goals Against of 54?",SELECT MAX(lost) FROM table_name_94 WHERE drawn > 12 AND goals_against = 54 What is the route for the destination of guruvayur?,"SELECT route_via FROM table_29770377_1 WHERE destination = ""Guruvayur""" What is the date when jameer nelson (10) had the high assists?,"SELECT date FROM table_27700530_10 WHERE high_assists = ""Jameer Nelson (10)""" How many bronze medals did the team have with 0 total silver and less than 3 total medals?,SELECT bronze FROM table_name_4 WHERE total < 3 AND silver > 0 What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb?,"SELECT MIN(number_of_episodes) FROM table_name_22 WHERE airing_date = ""12 jan- 6 feb""" What film was released in 1996?,SELECT film FROM table_name_76 WHERE year = 1996 "Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?","SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = ""terang-mortlake""" What was the score of the home team when Richmond was the away team?,"SELECT home_team AS score FROM table_name_42 WHERE away_team = ""richmond""" When did the first staff for the projects started working?,SELECT date_from FROM Project_Staff ORDER BY date_from ASC LIMIT 1; How many departments are there?,select count ( * ) from department What is the range of capacity among rooms in each building?,"SELECT max ( capacity ) , min ( capacity ) , building FROM classroom GROUP BY building" What is the H/A of the game on 24 january 2009?,"SELECT h___a FROM table_name_50 WHERE date = ""24 january 2009""" "Among the shipments in 2017, how many of them have the destination in New Jersey?","SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' AND T2.state = 'New Jersey'" Name the golden ticket for invesco field,"SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = ""Invesco Field""" "Name the production code for november 08, 1985","SELECT prod_code FROM table_20967430_2 WHERE original_air_date = ""November 08, 1985""" Count the branches opened before 2010?,SELECT count ( * ) FROM branch WHERE open_year < 2010 "What's the mean attendance number when the record is 12-4 and the average is less than 10,027?","SELECT AVG(attendance) FROM table_name_24 WHERE record = ""12-4"" AND average < 10 OFFSET 027" How many black patients stopped their care plan in 2017?,"SELECT COUNT(DISTINCT T2.patient) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.race = 'black' AND strftime('%Y', T1.STOP) = '2017'" On which circuit does lorenzo bandini have the fastest lap as well as the pole position?,"SELECT circuit FROM table_name_91 WHERE fastest_lap = ""lorenzo bandini"" AND pole_position = ""lorenzo bandini""" What publishers have the word 'Entertainment' in their name?,SELECT T.publisher_name FROM publisher AS T WHERE T.publisher_name LIKE '%Entertainment%' How many Points has a Position of 8?,SELECT AVG(points) FROM table_name_45 WHERE position = 8 Indicate the name and category of the most recent award received by the show.,"SELECT award, award_category FROM Award WHERE result = 'Winner' ORDER BY year DESC LIMIT 1;" "What is the lowest Draws, when Against is ""1547"", and when Wins is greater than 3?",SELECT MIN(draws) FROM table_name_42 WHERE against = 1547 AND wins > 3 How many cities have an enrollment of 19082?,SELECT COUNT(city) FROM table_12896884_1 WHERE enrollment = 19082 How many research postgraduate students are there?,SELECT COUNT(student_id) FROM student WHERE type = 'RPG' How many allergies are there?,SELECT count(DISTINCT allergy) FROM Allergy_type "What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?",SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1 What is the document id with 1 to 2 paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2 "What is the season of the game where a competitor who weighted 73 kg and 180 cm tall, participated?",SELECT DISTINCT T1.season FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.height = 180 AND T3.weight = 73 When and where did Eddie Smith win the mixed veteran?,"SELECT COUNT(date_location) FROM table_28211674_3 WHERE mixed_veteran = ""Eddie Smith""" Which three cities have the largest regional population?,SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?,"SELECT constructor FROM table_name_54 WHERE rounds = ""8"" AND chassis = ""156 158 1512""" Give the player id of the man who had the most turnovers whose team missed the playoffs in year 1988.,SELECT T2.playerID FROM players_teams AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.PostGP = 0 AND T1.year = 1988 ORDER BY T1.turnovers DESC LIMIT 1 How many times was Arizona the team and the round was bigger than 11?,"SELECT COUNT(overall) FROM table_name_86 WHERE school_club_team = ""arizona"" AND round > 11" "Who was the recipient of an award of £4,203?","SELECT recipient FROM table_name_22 WHERE award = ""£4,203""" Give the maximum and minimum gradepoints for students living in NYC?,"SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" "Find the club which has the largest number of members majoring in ""600"".","SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = ""600"" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1" Which city holds Newcastle Airport?,"SELECT city FROM table_name_98 WHERE airport = ""newcastle airport""" "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?","SELECT name , height , prominence FROM mountain WHERE range != 'Aberdare Range'" Which operating system has a storage (flash) of 128MB?,"SELECT operating_system_version FROM table_name_18 WHERE storage___flash__ = ""128mb""" "Give the number of female users of ""E派"" brand devices.",SELECT COUNT(T2.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T2.phone_brand = 'E派' Which character has the longest screen time in the movie Batman?,SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Batman' ORDER BY T2.screentime DESC LIMIT 1 What swimsuit score did the state of Virginia contestant achieve?,"SELECT COUNT(swimsuit) FROM table_12338595_1 WHERE state = ""Virginia""" What is the title of book number 7?,"SELECT title FROM table_2950964_1 WHERE _number = ""7""" When was the $32650.65157 car introduced to the market? State the year.,SELECT T1.model FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = '32650.65157' How many high-class products are sold by preferred vendors?,SELECT COUNT(T2.Name) FROM ProductVendor AS T1 INNER JOIN Product AS T2 USING (ProductID) INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T3.PreferredVendorStatus = 1 AND T2.Class = 'M' "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is ""LG-P760"".","SELECT T1.Char_cells, T1.Pixels, T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = ""LG-P760""" Show each author and the number of workshops they submitted to.,"SELECT T2.Author , COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author" What is the series number for the episode written by Kristen Dunphy and David Ogilvy?,"SELECT MAX(series__number) FROM table_19517621_3 WHERE written_by = ""Kristen Dunphy and David Ogilvy""" What's the winning rate of Club Brugge in the 2021 Premier League?,SELECT CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) + COUNT(CASE WHEN T1.FTR = 'A' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(t1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.AwayTeam = 'Club Brugge' OR T1.HomeTeam = 'Club Brugge' When did the Browns play the Pittsburgh Steelers?,"SELECT date FROM table_name_80 WHERE opponent = ""pittsburgh steelers""" "Write 10 coordinates with the object class ""pizza.""","SELECT T1.IMG_ID, T1.X, T1.Y FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.OBJ_CLASS = 'pizza' LIMIT 10" What is the code of Gwynedd State?,SELECT DISTINCT StateCode FROM location WHERE State = 'Gwynedd' Which team has a Reg GP over 62?,SELECT team__league_ FROM table_name_12 WHERE reg_gp > 62 Who was the home team when grimsby town was the away team?,"SELECT home_team FROM table_name_91 WHERE away_team = ""grimsby town""" Which employees did not destroy any documents? | Do you want the ids of all the employees who did not destroy any documents? | Yes. Show the IDs of all employees who didn't destroy any documents please.,SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed Name the title and publisher for title ID BU 2075. Provide all the royalty percentage for all ranges.,"SELECT T1.title, T3.pub_name, T2.lorange, T2.hirange, T2.royalty FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id INNER JOIN publishers AS T3 ON T1.pub_id = T3.pub_id WHERE T1.title_id = 'BU2075'" What are the name of pilots aged 25 or older?,SELECT Name FROM pilot WHERE Age >= 25 What was the record for the game that had a score of 105-72?,"SELECT record FROM table_name_45 WHERE score = ""105-72""" "When the value world rank is 7, what is the rank?","SELECT rank FROM table_21109892_1 WHERE value_world_rank = ""7""" Find the id and local authority of the station whose maximum precipitation is higher than 50.,"SELECT t2.id , t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING max(t1.precipitation) > 50" What was the record on April 22?,"SELECT record FROM table_name_1 WHERE date = ""april 22""" how many genre id,SELECT count ( distinct genre_id ) from tracks What is the podium for 144 points?,SELECT podiums FROM table_10420426_1 WHERE points = 144 "When the away team was geelong, what was the away team score?","SELECT away_team AS score FROM table_name_7 WHERE away_team = ""geelong""" what is the year for the game dead space 2?,"SELECT year FROM table_name_53 WHERE game = ""dead space 2""" Find the number of professionals who have not treated any dogs.,SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments ) How many points did Team Rothmans International have after 1975 when their Chassis was a March 771?,"SELECT points FROM table_name_91 WHERE year > 1975 AND entrant = ""team rothmans international"" AND chassis = ""march 771""" Name the won promotion for kalmar ff,"SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = ""Kalmar FF""" When did the game in whalley range take place?,"SELECT date FROM table_name_87 WHERE h___a = ""whalley range""" Which winery is the wine that has the highest score from?,SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1 What are the top 3 enrollment numbers among the schools?,SELECT enr FROM college ORDER BY enr DESC LIMIT 3 "When the scoring rank was 117, what was the best finish?","SELECT best_finish FROM table_10021158_3 WHERE scoring_rank = ""117""" How many schools are listed for the player who played the years for Jazz in 2010-11?,"SELECT COUNT(school_club_team) FROM table_11545282_5 WHERE years_for_jazz = ""2010-11""" Find the last names of all the teachers that teach GELL TAMI.,"SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = ""GELL"" AND T1.lastname = ""TAMI""" How many caps for alister campbell from brumbies?,"SELECT MIN(caps) FROM table_name_67 WHERE club_province = ""brumbies"" AND player = ""alister campbell""" Show all locations with only 1 station.,SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1 How many respondents who participated in the survey in 2019 have ever sought treatment for a mental health disorder from a mental health professional?,SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 7 AND T1.SurveyID = 2019 AND T1.AnswerText = 1 When the elevator was Innocent IV what was the nationality?,"SELECT nationality FROM table_name_98 WHERE elevator = ""innocent iv""" How many object elements are there on average in each image?,SELECT CAST(COUNT(OBJ_CLASS_ID) AS REAL) / COUNT(DISTINCT IMG_ID) FROM IMG_OBJ What is the address of employee Nancy Edwards?,"SELECT address FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" Can you also list the title of albums that have the number of tracks greater than 10?,SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count ( T1.id ) > 10 "How many users liked the movie ""A Way of Life"" to the highest extent?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'A Way of Life' AND T1.rating_score = 5 What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?,SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998 Name the rank for laps less than 130 and year of 1951,"SELECT rank FROM table_name_31 WHERE laps < 130 AND year = ""1951""" "Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2?",SELECT MAX(drawn) FROM table_name_64 WHERE position < 4 AND lost < 2 What are the ids and names of customers with addressed that contain WY and who do not use a credit card for payment?,"SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code != ""Credit Card""" "What is the Country of the 10,000m Event?","SELECT country FROM table_name_39 WHERE event = ""10,000m""" Thank you! Could you please display the name and job title of this staff person?,"SELECT staff_name,job_title_code from Staff_Department_Assignments as T1 join Staff as T2 on T1.staff_id = T2.staff_id where T1.staff_id = '1'" "What is the sport name of ""Cross Country Skiing Men's 10/15 kilometres Pursuit"" event?",SELECT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T2.event_name LIKE 'Cross Country Skiing Men%s 10/15 kilometres Pursuit' What are the names of actors ordered descending by the year in which their musical was awarded?,SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC "What is the average Total, when FA Cup Goals is 1, when League Goals is 10, and when Club is Crystal Palace?","SELECT AVG(total) FROM table_name_20 WHERE fa_cup_goals = ""1"" AND league_goals = ""10"" AND club = ""crystal palace""" Show all product sizes.,SELECT DISTINCT product_size FROM Products Name the number of master recording for doobie brothers the doobie brothers,"SELECT COUNT(master_recording) FROM table_22457674_1 WHERE artist = ""Doobie Brothers The Doobie Brothers""" what is the mountain peak when the location is 53.1370°n 119.2667°w?,"SELECT mountain_peak FROM table_name_74 WHERE location = ""53.1370°n 119.2667°w""" What is round 10's nationality?,SELECT nationality FROM table_name_55 WHERE round = 10 When did the episode with production code 410 air?,SELECT original_air_date FROM table_11630008_6 WHERE production_code = 410 "Users in which country has posted more numbers of positive tweets, Argentina or Australia?","SELECT T2.Country FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.Country IN ('Argentina', 'Australia') AND T1.Sentiment > 0 GROUP BY T2.Country ORDER BY COUNT(T1.TweetID) DESC LIMIT 1" How many platforms are available for the game Pro Evolution Soccer 2016?,SELECT COUNT(T2.id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = 'Pro Evolution Soccer 2016' Tell me the sum of year for extra of junior team competition,"SELECT SUM(year) FROM table_name_31 WHERE extra = ""junior team competition""" Find the number of routes with destination airports in Italy.,SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy' List all the authors who wrote fewer pages than the average.,SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.num_pages < ( SELECT AVG(num_pages) FROM book ) What is the lowest lane in the Czech Republic and a time larger than 21.05?,"SELECT MIN(lane) FROM table_name_85 WHERE nationality = ""czech republic"" AND time > 21.05" Please state the longest river that flows to the Mediterranean Sea.,SELECT Name FROM river WHERE Sea = 'Mediterranean Sea' ORDER BY Length DESC LIMIT 1 How old is Mr. Cristian Halvorson II?,SELECT age FROM pilot where name = 'Mr. Cristian Halvorson II' List the studios which average gross is above 4500000.,SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000 How many employees have obtained a doctorate?,SELECT COUNT(EmployeeID) FROM Employees WHERE TitleOfCourtesy = 'Dr.' What are the ids of the students who are not involved in any activity,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in What is the id for the employee called Ebba?,"SELECT employee_ID FROM Employees WHERE employee_name = ""Ebba""" Which party had Clair Engle as an incumbent?,"SELECT party FROM table_1342149_6 WHERE incumbent = ""Clair Engle""" What is the category of the label that represented the behavior category of app id 5902120154267990000?,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = 5902120154267990000 What are the authors of submissions and their colleges?,"SELECT Author , College FROM submission" Calculate the revenues made by Fantasy Films and Live Entertainment.,"SELECT SUM(T3.revenue) FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name IN ('Fantasy Films', 'Live Entertainment')" What loss occurred on June 10?,"SELECT loss FROM table_name_81 WHERE date = ""june 10""" Show all the locations where some cinemas were opened in year 2010,SELECT LOCATION FROM cinema WHERE openning_year = 2010 What is the website of the cunningham hill infant school?,"SELECT school AS website FROM table_28523_2 WHERE school = ""Cunningham Hill Infant school""" How many years have a Title of kriegspiel?,"SELECT COUNT(year) FROM table_name_16 WHERE title = ""kriegspiel""" Which length has a Stage of 9?,"SELECT length FROM table_name_37 WHERE stage = ""9""" What's the lowest total when there's less than 16 bronze and more than 6 silver?,SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6 WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?,"SELECT carrier FROM table_name_25 WHERE package_version = ""4.7.0.208""" What are the names of the songs that have a lower rating than at least one blues song?,"SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = ""blues"")" Thank you! Can you update that list to include the building ID for each of those apartment IDs?,"SELECT building_id, apt_id FROM Apartments WHERE apt_type_code = 'Flat'" How many courses are taught?,SELECT COUNT ( * ) FROM Courses What is the ratio of professors and students?,SELECT CAST(SUM(CASE WHEN professor = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN student = 1 THEN 1 ELSE 0 END) AS per FROM person Show the name of the county with the biggest population.,SELECT County_name FROM county ORDER BY Population DESC LIMIT 1 What was the host of the round at Hammons Student Center?,"SELECT host FROM table_name_12 WHERE venue = ""hammons student center""" What is the latest death with a description of BR-Built inspection saloon?,"SELECT MAX(date) FROM table_name_4 WHERE description = ""br-built inspection saloon""" Provide the first name of employee who did inspection ID 48225?,SELECT T1.first_name FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 48225 Which Platelet count has a Condition of bernard-soulier syndrome?,"SELECT platelet_count FROM table_name_34 WHERE condition = ""bernard-soulier syndrome""" How many customers live in Prague city?,"SELECT count(*) FROM customers WHERE city = ""Prague"";" "What percentage of Catalan-language Wikipedia pages have more than 10,000 words?",SELECT CAST(COUNT(CASE WHEN T2.words > 10000 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.page) FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T1.lang = 'ca' List the title for the season episode number of 8.,SELECT title FROM table_23916272_6 WHERE season__number = 8 What is the average snatch score of body builders?,SELECT avg(Snatch) FROM body_builder How many customers are there of each gender?,"SELECT gender , count(*) FROM Customers GROUP BY gender" "Which Games have Years at club of 1974–1975, and Goals of 4?","SELECT AVG(games) FROM table_name_89 WHERE years_at_club = ""1974–1975"" AND goals = 4" What is the lowest size of the school with titans as the mascot?,"SELECT MIN(size) FROM table_name_93 WHERE mascot = ""titans""" What is the percent for when against prohibition is 2978?,SELECT percent_for FROM table_120778_1 WHERE against_prohibition = 2978 How many times was Elly Koss given a care plan between 1/11/2009 and 10/23/2010?,SELECT COUNT(T2.PATIENT) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.START BETWEEN '2009-01-11' AND '2010-10-23' what is the prof extension of hist,SELECT PROF_EXTENSION from PROFESSOR where DEPT_CODE = 'HIST' What's the category in 1998 with the role/episode of David Duchovny?,"SELECT category FROM table_name_37 WHERE year = 1998 AND role_episode = ""david duchovny""" Which class has a Qual position of 30?,SELECT class FROM table_name_48 WHERE qual_pos = 30 What year was Sam Kazman a producer?,"SELECT year FROM table_name_35 WHERE producer = ""sam kazman""" How many departments are in each school?,"SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code" "Which Artist has a Draw smaller than 14, and Points less than 73, and a Language of turkish?","SELECT artist FROM table_name_70 WHERE draw < 14 AND points < 73 AND language = ""turkish""" "can you tell me their first names and offices, please?","SELECT EMP_FNAME, PROF_OFFICE FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num WHERE T1.CRS_CODE = ""ACCT-211""" How many vendors does Adventure Works still work with but are not preferable?,SELECT COUNT(BusinessEntityID) FROM Vendor WHERE PreferredVendorStatus = 0 AND ActiveFlag = 1 State the opensecrets_id of the legislator whose YouTube name is Bluetkemeyer.,SELECT T1.opensecrets_id FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T2.youtube = 'BLuetkemeyer' "What is the earliest date of a transcript release, and what details can you tell me?","SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1" What's Pedro S Afonso's job title?,SELECT T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.fname = 'Pedro' AND T1.minit = 'S' AND T1.lname = 'Afonso' "What is the lowest Week when the result was l 13–10, November 30, 1975, with more than 44,982 people in attendance?","SELECT MIN(week) FROM table_name_93 WHERE result = ""l 13–10"" AND date = ""november 30, 1975"" AND attendance > 44 OFFSET 982" "Perfect, and how many of those students are majoring in 600?",SELECT count ( * ) FROM Student WHERE Major = 600 Which house has an abbreviation of G?,"SELECT house FROM table_name_60 WHERE abbr = ""g""" "What was the team's record after week 7 with 28,161 attending?","SELECT record FROM table_name_58 WHERE week > 7 AND attenmdance = ""28,161""" What are the 1994 results with a career SR of 0 / 3?,"SELECT 1994 FROM table_name_98 WHERE career_sr = ""0 / 3""" "What was the most common answer for the question ""What country do you work in?""?",SELECT T1.AnswerText FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext = 'What country do you work in?' GROUP BY T1.AnswerText ORDER BY COUNT(T1.AnswerText) DESC LIMIT 1 Which episode was watched by 7.2 million viewers?,"SELECT episode FROM table_2101431_1 WHERE viewers__in_millions_ = ""7.2""" The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent?,"SELECT incumbent FROM table_2668336_17 WHERE candidates = ""Charles Fisher (DR) 65.1% W. Jones (F) 34.9%""" what are the departments? | Do you want the names of all department? | yes,SELECT name FROM department How many goals against did Clitheroe have when the loss was larger than 2?,"SELECT COUNT(goals_against) FROM table_name_44 WHERE team = ""clitheroe"" AND lost > 2" Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.,"SELECT T2.FirstName, T2.MiddleName, T2.LastName, T1.HireDate FROM Employee AS T1 INNER JOIN Person AS T2 USING (BusinessEntityID) WHERE T1.JobTitle = 'Vice President of Engineering'" What are the names of parties that do not have delegates in election?,SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election) "Return the city with the customer type code ""Good Credit Rating"" that had the fewest customers.","SELECT town_city FROM customers WHERE customer_type_code = ""Good Credit Rating"" GROUP BY town_city ORDER BY count(*) LIMIT 1" Who is the driver that transported the lightest weight of shipment? Provide the full name of the driver.,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id ORDER BY T1.weight ASC LIMIT 1" "What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?","SELECT MIN(points) FROM table_name_70 WHERE time_retired = ""+30.7 secs"" AND laps < 165" Who had the most assist when the opponent was Cleveland?,"SELECT high_assists FROM table_15780049_6 WHERE team = ""Cleveland""" "Please find all the papers published by ""Aaron Turon""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Aaron"" AND t1.lname = ""Turon""" What are the average prominence of the mountains in country 'Morocco'?,SELECT avg(prominence) FROM mountain WHERE country = 'Morocco' Can you list all product names and their corresponding type codes of the products with prices below the average price?,"SELECT Product_Name, Product_Type_Code FROM Products WHERE Product_Price < ( SELECT AVG ( Product_Price ) FROM Products ) " Who is the driver with 1 grid?,SELECT driver FROM table_name_30 WHERE grid = 1 How many players whose teams were ranked 6 in 1937?,SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T3.year = 1937 AND T3.rank = 6 Who is the director of Little Beau Porky?,"SELECT director FROM table_name_31 WHERE title = ""little beau porky""" How many different types of beds are there?,SELECT count(DISTINCT bedType) FROM Rooms; What is the term of acharya shree vasudevprasadji maharaj?,"SELECT term FROM table_name_5 WHERE name_of_acharya = ""acharya shree vasudevprasadji maharaj""" "Which of the two courses, ""Advanced Operating System"" or ""Intro to BlockChain', did most of the students receive an A in?","SELECT T2.name FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T1.grade = 'A' AND T2.name IN ('Advanced Operating System', 'Intro to BlockChain') GROUP BY T2.name ORDER BY COUNT(T1.student_id) DESC LIMIT 1" Who was the leading lady for Uni studio and Frank Strayer?,"SELECT leading_lady FROM table_name_71 WHERE studio = ""uni"" AND director = ""frank strayer""" How many students are affected by cat allergies?,"SELECT count(*) FROM Has_allergy WHERE Allergy = ""Cat""" "Find all the product whose name contains the word ""Scanner"".","SELECT product FROM product WHERE product LIKE ""%Scanner%""" How many times what the comptroller alan hevesi and the party working families?,"SELECT COUNT(year) FROM table_name_78 WHERE comptroller = ""alan hevesi"" AND party = ""working families""" "In which city has the greatest population, what is its percentage to its country population?","SELECT T3.Name, CAST(T3.Population AS REAL) * 100 / T1.Population FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Country = T2.Country ORDER BY T3.Population DESC LIMIT 1" What is the name of the customer who has greatest total loan amount?,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1 What is the name of the school with the Tornadoes Lady Tornadoes?,"SELECT school FROM table_name_41 WHERE nickname_s_ = ""tornadoes lady tornadoes""" Find the name of players whose card is yes in the descending order of training hours.,SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC State the different ethnic group and percentage of the language in Singapore.,"SELECT T1.Name, T1.Percentage FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Singapore' GROUP BY T1.Name, T1.Percentage" Find the states of the colleges that have students in the tryout who played in striker position.,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' Please list all the customers that have Steve Patterson as their sales representitive.,SELECT t1.customerName FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t2.firstName = 'Steve' AND t2.lastName = 'Patterson' List the names of the countries with the below-average number of customers in ascending order of customer numbers.,SELECT T2.n_name FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey GROUP BY T2.n_name HAVING COUNT(T1.c_name) > ( SELECT COUNT(customer.c_name) / COUNT(DISTINCT nation.n_name) FROM customer INNER JOIN nation ON customer.c_nationkey = nation.n_nationkey ) ORDER BY COUNT(T1.c_name) Name the least season,SELECT MIN(season) FROM table_2223177_3 Which Asian countries have a population that is larger than any country in Africa?,"SELECT Name FROM country WHERE Continent = ""Asia"" AND population > (SELECT max(population) FROM country WHERE Continent = ""Africa"")" Who had the lowest interview score from South Dakota with an evening gown less than 8.513?,"SELECT MIN(interview) FROM table_name_52 WHERE state = ""south dakota"" AND evening_gown < 8.513" How many people on average attend round f?,"SELECT AVG(attendance) FROM table_name_28 WHERE round = ""f""" What are the names of all the physicians who took appointments.,SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID what is the school code for accounting?,"SELECT school_code from department where dept_name = ""Accounting""" List total amount of invoice from Germany?,"SELECT sum ( total ) FROM invoices WHERE billing_country = ""Germany""" How many people lived in the census division spread out on 9909.31 km2 in 1996?,"SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = ""9909.31""" What is employee Nancy Edwards's phone number?,"SELECT phone FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards"";" "Among orders in 2020, name the customers who had the greatest discount applied for 'Cocktail Glasses'","SELECT DISTINCT T1.`Customer Names` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products AS T3 ON T3.ProductID = T2._ProductID WHERE T3.`Product Name` = 'Cocktail Glasses' AND SUBSTR(T2.OrderDate, -2) = '20' AND T2.`Discount Applied` = ( SELECT T2.`Discount Applied` FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID INNER JOIN Products AS T3 ON T3.ProductID = T2._ProductID WHERE T3.`Product Name` = 'Cocktail Glasses' AND T2.OrderDate LIKE '%/%/20' ORDER BY T2.`Discount Applied` DESC LIMIT 1 )" List the names and birthdays of the top five players in terms of potential.,"SELECT DISTINCT T1.player_name , T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5" what is the director name of Star Wars,SELECT director FROM Movie WHERE title = 'Star Wars' What is the location of the fight against Zaza Tkeshelashvili?,"SELECT location FROM table_name_26 WHERE opponent = ""zaza tkeshelashvili""" "Among the episodes which have star score greater than 5, how many episodes have air date in 2008?","SELECT COUNT(DISTINCT T2.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE strftime('%Y', T1.air_date) = '2008' AND T2.stars > 5;" Which allergy has the least number of students affected?,SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count ( * ) asc LIMIT 1 Find the name of the organization that has published the largest number of papers.,SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1 What was the aggregate for the match with a team 2 of Hafia FC?,"SELECT agg FROM table_name_98 WHERE team_2 = ""hafia fc""" What is the kr td when mfg lg is 64?,SELECT kr_td FROM table_16912000_13 WHERE mfg_lg = 64 Find the last name of the student who has a cat that is age 3.,SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat' Calculate the percentage of the app user IDs under Industry tag category.,"SELECT SUM(IIF(T1.category = 'Industry tag', 1, 0)) * 100 / COUNT(T2.app_id) AS per FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T2.label_id = T1.label_id" "What years for the rockets did player ford, alton alton ford play?","SELECT years_for_rockets FROM table_11734041_6 WHERE player = ""Ford, Alton Alton Ford""" What is the nationality with a 13.21 time?,SELECT nationality FROM table_name_55 WHERE time = 13.21 Which Home Town had the weight of 201?,SELECT home_town FROM table_name_67 WHERE weight = 201 "which Completion % has a Yards of 2,175?","SELECT completion__percentage FROM table_name_57 WHERE yards = ""2,175""" What is the smallest point total when the grid is larger than 5 and the time/retired is fire?,"SELECT MIN(points) FROM table_name_52 WHERE grid > 5 AND time_retired = ""fire""" Name and describe all projects created by New York teachers.,"SELECT T1.title, T1.short_description FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.teacher_ny_teaching_fellow = 't'" Which league is for baseball with Laredo Apaches?,"SELECT league FROM table_name_31 WHERE sport = ""baseball"" AND club = ""laredo apaches""" What was the date when there were 26 golden tickets?,SELECT date FROM table_name_57 WHERE golden_tickets = 26 How many throws did Torey have?,"SELECT throws FROM table_name_77 WHERE first = ""torey""" What is the appliance at the station in St Neots?,"SELECT appliances FROM table_name_69 WHERE location = ""st neots""" What is the sum of Sylvain Guintoli's laps?,"SELECT SUM(laps) FROM table_name_8 WHERE rider = ""sylvain guintoli""" When less than 30 games have been played what is the average goals scored?,SELECT AVG(goals_scored) FROM table_name_18 WHERE games_played < 30 "Which Engine has a Model of sl500, and a Chassis smaller than 129.067?","SELECT MIN(engine) FROM table_name_60 WHERE model = ""sl500"" AND chassis < 129.067" How many different source system code for the cmi cross references are there?,SELECT COUNT(DISTINCT source_system_code) FROM CMI_cross_references Provide the contact email of Moss Zarb.,SELECT email FROM customer WHERE first_name = 'Moss' AND last_name = 'Zarb' What is the percentage of the number of 4-year public schools from Madison Area Technical College's home state in the Alabama?,SELECT CAST(COUNT(DISTINCT CASE WHEN T1.state = ( SELECT T1.state FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state WHERE T1.chronname = 'Madison Area Technical College' ) AND T1.level = '4-year' AND T1.control = 'Public' THEN T1.chronname ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT CASE WHEN T2.state = 'Alabama' THEN T1.chronname ELSE NULL END) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state "Provide the genre ID of the movie with the title of ""The Dark Knight"".",SELECT T2.genre_id FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'The Dark Knight' What is the lowest Attendance when the home team was slough town?,"SELECT MIN(attendance) FROM table_name_62 WHERE home_team = ""slough town""" What is the date deng (20) had high points?,"SELECT date FROM table_11960610_10 WHERE high_points = ""Deng (20)""" Why did Mrs. Annabelle Pouros take leucovorin 100 mg injection on 1970/12/19? State the reason.,SELECT T2.reasondescription FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Annabelle' AND T1.last = 'Pouros' AND T2.start = '1970-12-19' AND T2.description = 'Leucovorin 100 MG Injection' What's the mean game number for the olympiacos team when there's less than 17 rebounds?,"SELECT AVG(games) FROM table_name_75 WHERE team = ""olympiacos"" AND rebounds < 17" "Of the customers with two orders or less, what are their names?",SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count ( * ) < = 2 "what is the material of the surface in noida , uttar pradesh, india","SELECT surface FROM table_29127804_3 WHERE location = ""Noida , Uttar Pradesh, India""" What Captain has Lost 13?,SELECT captain FROM table_name_28 WHERE lost = 13 How many legislators have an Instagram account?,SELECT COUNT(*) FROM `social-media` WHERE instagram IS NOT NULL AND instagram <> '' What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?,"SELECT career_w_l FROM table_name_23 WHERE 1968 = ""a"" AND 1974 = ""4r""" What was part 2 when part 4 was *haldanaz?,"SELECT part_2 FROM table_name_69 WHERE part_4 = ""*haldanaz""" List the titles of all the books that Peter H. Smith wrote.,SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Peter H. Smith' What winning team has volleyball as the sport?,"SELECT winning_team FROM table_name_91 WHERE sport = ""volleyball""" "From 1962 to 1975, how many coaches received the award?",SELECT COUNT(DISTINCT coachID) FROM awards_coaches WHERE year BETWEEN 1962 AND 1975 Which event has a Round larger than 2?,SELECT event FROM table_name_88 WHERE round > 2 What is the original title of the film submitted by Greece?,"SELECT original_title FROM table_18994724_1 WHERE submitting_country = ""Greece""" Return the the details of all products.,SELECT DISTINCT product_details FROM products "List the first name, last name, height and weight of the players who has all free throw attempted successfully made.","SELECT DISTINCT T1.firstName, T1.lastName, T1.height, T1.weight FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.ft_attempted > 0 AND ft_attempted = ft_made" How many calories does the turkey tenderloin bundles recipe have?,SELECT T2.calories FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Turkey Tenderloin Bundles' "What is Result, when Year is 1948, and when Date is November 7?","SELECT result FROM table_name_31 WHERE year = 1948 AND date = ""november 7""" How many cities have a stadium that was opened before the year of 2006?,SELECT count(DISTINCT city) FROM stadium WHERE opening_year < 2006 what is the sum of tonnage when the type of ship is twin screw ro-ro motorship and the date entered service is 11 february 1983?,"SELECT SUM(tonnage) FROM table_name_73 WHERE type_of_ship = ""twin screw ro-ro motorship"" AND date_entered_service = ""11 february 1983""" How many departments are led by heads who are not mentioned?,SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management); Who was the writer of the episode number in series 4?,"SELECT written_by FROM table_16581695_2 WHERE no_in_series = ""4""" "What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0?","SELECT AVG(total) FROM table_name_85 WHERE rank > 11 AND nation = ""switzerland"" AND silver < 0" "What are the names of cities, as well as the names of the counties they correspond to?","SELECT T1.Name , T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" "What is the Date with a Time of 17:37, and the Set 4 is 25–15?","SELECT date FROM table_name_38 WHERE time = ""17:37"" AND set_4 = ""25–15""" list out the room names,SELECT roomName FROM Rooms What are the details and ways to get to tourist attractions related to royal family?,"SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID" Name surface for 8 round,SELECT surface FROM table_23385853_1 WHERE round = 8 "What is the total of Greece, which is placed below 8?","SELECT COUNT(total) FROM table_name_32 WHERE nation = ""greece"" AND place > 8" Provide the weight of the shipment to U-haul Center Of N Syracuse on 2016/9/21.,SELECT T1.weight FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.cust_name = 'U-haul Center Of N Syracuse' AND T1.ship_date = '2016-09-21' Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3,SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3 Which Calendar has WYSIWYG Editor of yes and an Unread message tracking of yes?,"SELECT calendar FROM table_name_56 WHERE wysiwyg_editor = ""yes"" AND unread_message_tracking = ""yes""" Indicate the title of all the pages in which the word comunitat appears.,SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'comunitat' "What was the career of the rank higher than 1, with an average less than 36.13 and 15 wickets, and player George O'Brien?","SELECT career FROM table_name_71 WHERE rank > 1 AND average < 36.13 AND wickets = 15 AND player = ""george o'brien""" "Among the root beers sold in bottles, how many are sold at the location 38.559615, -121.42243?",SELECT COUNT(T4.BrandID) FROM `transaction` AS T1 INNER JOIN geolocation AS T2 ON T1.LocationID = T2.LocationID INNER JOIN location AS T3 ON T1.LocationID = T3.LocationID INNER JOIN rootbeer AS T4 ON T1.RootBeerID = T4.RootBeerID WHERE T2.Latitude = 38.559615 AND T2.Longitude = -121.42243 AND T4.ContainerType = 'Bottle' "What are the names of organizations, ordered by the date they were formed, ascending?",SELECT organization_name FROM organizations ORDER BY date_formed ASC Who wrote the episode with 3.92 million US viewers?,"SELECT written_by FROM table_25740548_3 WHERE us_viewers__million_ = ""3.92""" What is the highest age of the the Artists from the United States?,SELECT max ( age ) FROM artist WHERE country = 'United States' What was the result for the candidate first elected in 1820?,"SELECT result FROM table_2668243_19 WHERE first_elected = ""1820""" What is the other that has 20.80% as the firefox?,"SELECT other FROM table_name_85 WHERE firefox = ""20.80%""" display the department id and the total salary for those departments which contains at least two employees.,"SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2" Which IHSAA Class has a Size larger than 511?,SELECT ihsaa_class FROM table_name_84 WHERE size > 511 What is the total number of gold medals of the nation with 1 bronze and less than 1 total medal?,SELECT COUNT(gold) FROM table_name_49 WHERE bronze = 1 AND total < 1 Display the first name and department name for each employee.,"SELECT T1.first_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id" "For each player, show the team and the location of school they belong to.","SELECT T1.Team , T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID" Find how many school locations have the word 'NY'.,"SELECT count(*) FROM university WHERE LOCATION LIKE ""%NY%""" "Please list the names of all the suppliers for the part ""hot spring dodger dim light"".",SELECT T2.s_name FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_name = 'hot spring dodger dim light' Which team of players has the smallest age? | Did you mean to ask for the team of the player with the smallest age? | yes,SELECT Team FROM player ORDER BY Age LIMIT 1 which Pada 4 has a Pada 2 of थ tha?,"SELECT pada_4 FROM table_name_32 WHERE pada_2 = ""थ tha""" "How many cities are there in state ""Colorado""?","SELECT count(*) FROM addresses WHERE state_province_county = ""Colorado""" "Find the names and descriptions of courses that belong to the subject named ""Computer Science"".","SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Computer Science""" Can you tell me the Team that has the Laps of 379?,SELECT team FROM table_name_23 WHERE laps = 379 "What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?",SELECT SUM(delegates) FROM table_name_22 WHERE counties_carries = 4 AND state_delegate > 1 OFFSET 903 "What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?","SELECT presentation_of_credentials FROM table_name_7 WHERE title = ""ambassador extraordinary and plenipotentiary"" AND representative = ""raúl h. castro""" How many students play sports?,SELECT count(DISTINCT StuID) FROM Sportsinfo What country has CD format and catalog RCD 10523?,"SELECT country FROM table_name_45 WHERE format = ""cd"" AND catalog = ""rcd 10523""" "Show the prices of publications whose publisher is either ""Person"" or ""Wiley""","SELECT Price FROM publication WHERE Publisher = ""Person"" OR Publisher = ""Wiley""" Return the hosts of competitions for which the theme is not Aliens?,SELECT Hosts FROM farm_competition WHERE Theme != 'Aliens' What was the record for the Argonauts on September 7?,"SELECT record FROM table_24136814_3 WHERE date = ""September 7""" What is the rental price per day of the most expensive children's film?,SELECT T1.rental_rate FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Children' ORDER BY T1.rental_rate / T1.rental_duration DESC LIMIT 1 What is the average access count of documents?,SELECT avg(access_count) FROM documents What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8?,"SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = ""alessandria"" AND density__inhabitants_km_2__ < 461.8" "Tell the number of ""hair removal"" Yelp businesses.",SELECT COUNT(T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name LIKE 'Hair Removal' In which year did Kati Klinzing finish 3rd?,"SELECT year FROM table_name_24 WHERE third = ""kati klinzing""" What is the sum of participants in 2013 for Russia when there were 5 in 2010 and less than 4 in 2012?,"SELECT SUM(2013) FROM table_name_99 WHERE 2010 = 5 AND country = ""russia"" AND 2012 < 4" Which allergy type is most common?,SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1 What's the name of the document that was accessed the least amount of times?,SELECT document_name FROM documents ORDER BY access_count ASC LIMIT 1 Provide the movie titles and the estimated inflation rate of the highest total grossed movie.,"SELECT movie_title, CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) / CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) FROM movies_total_gross ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1" What are the countries that participated in both friendly and tournament type competitions?,SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament' How many of the crew members who are taller than 1.70m were born in Canada?,SELECT COUNT(name) FROM Person WHERE height_meters > 1.70 AND birth_country = 'Canada'; with distribution of 20.6% what is the code name?,"SELECT code_name FROM table_name_90 WHERE distribution = ""20.6%""" What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?,"SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = ""acgs"" AND year_11_2nd_viii = ""nc""" What venue hosted the 2003 event?,SELECT venue FROM table_name_91 WHERE year = 2003 What is the average minimum and price of the rooms for each different decor.,"SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;" Who is the Driver with the Team of P & L Mechanical Services?,"SELECT driver FROM table_name_1 WHERE team = ""p & l mechanical services""" What are the numbers of constructors for different nationalities?,"SELECT count(*) , nationality FROM constructors GROUP BY nationality" "hello, what are the maximum price and score of wines in each year?","SELECT max ( Price ) , max ( Score ) , YEAR FROM WINE GROUP BY YEAR" "What are all the different product names, and how many complains has each received?","SELECT t1.product_name , count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name" What is the pID for Andrew?,"SELECT pID FROM Player WHERE pName = ""Andrew""" Return the first names and last names of all guests,"SELECT guest_first_name , guest_last_name FROM Guests" Show the name of the earliest platform in the database.,SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id ORDER BY T1.release_year ASC LIMIT 1 "What is the average sales of the companies ranked 1, 2 and 3?",select avg ( sales_billion ) from company where rank = 1 or rank = 2 or rank = 3 How many games were played when the record was 26-21?,"SELECT COUNT(game) FROM table_13619135_6 WHERE record = ""26-21""" "With a statistic of most points, what is the stage?","SELECT stage FROM table_name_7 WHERE statistic = ""most points""" What are the names of all the states with college students playing in the mid position but no goalies?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' How many video game types exist?,SELECT COUNT(DISTINCT gtype) FROM Video_games "What are the average, maximum, and minimum number of floors for all buildings?","SELECT AVG(floors), MAX(floors), MIN(floors) FROM building" What are the names of all movies directed by Steven Spielberg?,SELECT title FROM Movie WHERE director = 'Steven Spielberg' "What are the elimination moves of wrestlers whose team is ""Team Orton""?","SELECT Elimination_Move FROM Elimination WHERE Team = ""Team Orton""" What is the role of W Jaffer in season year 2012?,SELECT T4.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id INNER JOIN Season AS T5 ON T3.Season_Id = T5.Season_Id WHERE T1.Player_name = 'W Jaffer' AND T5.Season_Year = 2012 What was the date of the game against Oxford United?,"SELECT date FROM table_name_87 WHERE opposing_team = ""oxford united""" What is the record when George Hill (11) had the high rebounds?,"SELECT record FROM table_name_58 WHERE high_rebounds = ""george hill (11)""" "What is the person's business ID with a vista credit card number ""11113366963373""?",SELECT T2.BusinessEntityID FROM CreditCard AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.CreditCardID = T2.CreditCardID WHERE T1.CardNumber = 11113366963373 What is the date of the performance by Jatin Shah and co-contestant is Shalini Chandran?,"SELECT date_performed FROM table_name_89 WHERE main_contestant = ""jatin shah"" AND co_contestant__yaar_vs_pyaar_ = ""shalini chandran""" what is the position for the united states u-20 affiliation ,"SELECT position FROM table_29626583_1 WHERE affiliation = ""United States U-20""" I want the year for the three musketeers,"SELECT year FROM table_name_13 WHERE serial_title = ""the three musketeers""" List the names of all the customers in alphabetical order.,SELECT customer_details FROM customers ORDER BY customer_details What are the ids of templates with template type code PP or PPT?,"SELECT template_id FROM Templates WHERE template_type_code = ""PP"" OR template_type_code = ""PPT""" "Which Bats have Throws of r, and a DOB of 22 may 1973?","SELECT bats FROM table_name_49 WHERE throws = ""r"" AND dob = ""22 may 1973""" What is the age of the oldest device user?,SELECT MAX(age) FROM gender_age What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos?,"SELECT transfer_fee FROM table_name_97 WHERE ends = 2011 AND moving_from = ""thrasyvoulos""" Which of these is operated by American Airlines?,SELECT * FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' list results by project by scientists names | Do you mean list the project names by scientists names? | yes,SELECT T3.Name FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T1.Name Thank you very much! Can you filter this list to show only the cities in the country with the largest population?,"SELECT T2.Name, T1.Name FROM county_public_safety as T1 join city as T2 on T1.County_ID = T2.County_ID order by Population desc limit 1" How many goals were scored on 21 Junio 2008?,"SELECT COUNT(goal) FROM table_name_26 WHERE date = ""21 junio 2008""" Find the title of course that is provided by Statistics but not Psychology departments.,SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' "Who is the runner up when the score was 3–6, 6–3, [10–4]?","SELECT runner_up FROM table_name_50 WHERE score = ""3–6, 6–3, [10–4]""" When was Windy Hill used as a venue?,"SELECT date FROM table_name_90 WHERE venue = ""windy hill""" How many celebrities had an 18October2007 Original air Date?,"SELECT COUNT(celebrity) FROM table_11642945_1 WHERE original_air_date = ""18October2007""" What models have an a2 barrel profile?,"SELECT name FROM table_12834315_5 WHERE barrel_profile = ""A2""" what are the decor of those rooms?,SELECT distinct decor FROM Rooms WHERE bedtype = 'King' What is the court rank of the person with a courtesy title of nagato-no-kami?,"SELECT court_rank FROM table_name_70 WHERE courtesy_title = ""nagato-no-kami""" " What is the school of the player from Lake Charles, LA?","SELECT school FROM table_11677100_18 WHERE hometown = ""Lake Charles, LA""" Find the employee id for all employees who earn more than the average salary.,SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) What is the lowest brup when long is 94?,SELECT MIN(brup) FROM table_26176081_29 WHERE long = 94 What's the full name of the team that won the most games in 2001 but didn't make the playoffs?,SELECT T2.tmID FROM players_teams AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.PostGP = 0 ORDER BY T2.won DESC LIMIT 1 What is the total number of active business in AZ with a high review count?,SELECT COUNT(business_id) FROM Business WHERE state LIKE 'AZ' AND review_count LIKE 'High' AND active LIKE 'True' What event had the opponent Ryan Bow?,"SELECT event FROM table_name_89 WHERE opponent = ""ryan bow""" Which college/junior/club team (league) did Brett Sonne play in?,"SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = ""brett sonne""" "Which venue had a match played on August 16, 2006?","SELECT venue FROM table_name_90 WHERE date = ""august 16, 2006""" "Which Avg/G has a Long of 93, and a Loss smaller than 249?",SELECT SUM(avg_g) FROM table_name_71 WHERE long = 93 AND loss < 249 How many total domestic passengers were there?,SELECT sum ( Domestic_Passengers ) FROM airport How many states are there?,SELECT count(*) FROM area_code_state What is the lowest overall amount of assists?,SELECT MIN(assists) FROM table_25016555_5 "Name the Surface which has a Score in the final of 6–3, 6–2 and Opponents in the final of mansour bahrami diego pérez?","SELECT surface FROM table_name_87 WHERE score_in_the_final = ""6–3, 6–2"" AND opponents_in_the_final = ""mansour bahrami diego pérez""" what is the check in and check out of the room id RND ?,"SELECT T1.checkin, T1.checkout FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.roomid = ""RND""" Which college is Kellen Davis from?,"SELECT college FROM table_name_44 WHERE player = ""kellen davis""" Could you tell me the ID and name of the San Francisco station?,"SELECT distinct start_station_name , start_station_id FROM trip WHERE start_station_name = 'San Francisco Caltrain 2 ( 330 Townsend ) '" What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?,"SELECT SUM(goals) FROM table_name_48 WHERE team = ""torpedo moscow"" AND division = 1 AND apps < 29" What is the Draw for skra warszawa?,"SELECT draw FROM table_name_5 WHERE team = ""skra warszawa""" what was the score when scoville jenkins was the opponent?,"SELECT score FROM table_name_59 WHERE opponent = ""scoville jenkins""" "Which pre-season has a Mar. 3 of nr, and a Poll of usa today/espn coaches' poll (top 25)?","SELECT pre__season FROM table_name_24 WHERE mar_3 = ""nr"" AND poll = ""usa today/espn coaches' poll (top 25)""" "What is the average Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is greater than 4?","SELECT AVG(bike_no) FROM table_name_34 WHERE driver___passenger = ""joris hendrickx / kaspars liepins"" AND position > 4" How many have a DOB after 1978?,"SELECT COUNT ( * ) FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor"" AND T1.Date_of_Birth > 1978" "In Western Oval, what was the away team score?","SELECT away_team AS score FROM table_name_33 WHERE venue = ""western oval""" What was the score when the record was 19–35,"SELECT score FROM table_23248869_8 WHERE record = ""19–35""" "What are the degrees conferred in ""San Francisco State University"" in 2001.","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Francisco State University"" AND t2.year = 2001" "What are the average download times for the a release tagged ""1980s""?",SELECT CAST(SUM(T1.totalSnatched) AS REAL) / COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' What is the contact name for product Teatime Chocolate Biscuits?,SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Teatime Chocolate Biscuits' What purses had a winners share equal to $428650?,SELECT purse___$__ FROM table_1520559_1 WHERE winners_share__$_ = 428650 "Give me the address, home phone and salary of the Sales Manager.","SELECT Address, HomePhone, Salary FROM Employees WHERE Title = 'Sales Manager'" In which district is the incumbent John Breaux?,"SELECT district FROM table_1341690_18 WHERE incumbent = ""John Breaux""" How much is the highest number in 2006 with fewer than 0 in 2002?,SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0 What is the population as of 11-01-2010 for Bayan County?,"SELECT population__2010_11_01_ FROM table_name_50 WHERE name = ""bayan county""" "When the home team was geelong, what did the away team score?","SELECT away_team AS score FROM table_name_6 WHERE home_team = ""geelong""" "What is Run 2, when Run 1 is 2:09.09?","SELECT run_2 FROM table_name_84 WHERE run_1 = ""2:09.09""" What are the first names of all students who took ACCT-211 and received a C?,SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C' What is the id of the event with the most participants?,SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1 Name the least points for chassis of kurtis kraft 500a,"SELECT MIN(points) FROM table_name_54 WHERE chassis = ""kurtis kraft 500a""" List down the customer's geographic identifier who are handlers or cleaners.,SELECT GEOID FROM Customers WHERE OCCUPATION = 'Handlers-cleaners' Which team had the least number of attendances in home games in 1980?,SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1; What is the result of the game that was played at Soldier Field?,"SELECT result FROM table_name_90 WHERE game_site = ""soldier field""" "Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir?","SELECT MIN(year_completed) FROM table_name_31 WHERE dam_type = ""concrete gravity"" AND impounded_body_of_water = ""deep creek reservoir""" What is the shortest trip made starting from Franklin at Maple and what is the maximum wind speed at that date?,"SELECT MIN(T1.duration), MAX(T2.max_wind_Speed_mph) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_station_name = 'Franklin at Maple' AND T2.date = '9/4/2013'" What is the Away team score with north melbourne as home team?,"SELECT away_team AS score FROM table_name_50 WHERE home_team = ""north melbourne""" show all the branches opened in 2000?,SELECT Branch_ID FROM branch WHERE open_year = 2000 What time did Sara Nordenstam get?,"SELECT time FROM table_name_40 WHERE name = ""sara nordenstam""" How many colleges did the player drafted at 36 attend?,SELECT COUNT(college) FROM table_16575609_5 WHERE pick__number = 36 At what average position is the drawn 9 and the points greater than 25?,SELECT AVG(position) FROM table_name_75 WHERE drawn = 9 AND points > 25 What is the page count for menu with page ID of 130?,SELECT T1.page_count FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T2.id = 130 What was the away team score at kardinia park?,"SELECT away_team AS score FROM table_name_40 WHERE venue = ""kardinia park""" List the infant mortality of country with the least Amerindian.,SELECT T1.Infant_Mortality FROM population AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Country = T2.Country WHERE T2.Name = 'Amerindian' ORDER BY T2.Percentage ASC LIMIT 1 What is the Home with an Away that is toronto rebels?,"SELECT home FROM table_name_94 WHERE away = ""toronto rebels""" How many pick numbers did Matt Marquess have?,"SELECT COUNT(pick__number) FROM table_name_57 WHERE player = ""matt marquess""" What is the highest value for race?,SELECT MAX(races) FROM table_15852257_1 Show member names without any registered branch?,SELECT name FROM member WHERE member_id NOT IN ( SELECT member_id FROM membership_register_branch ) Where is the place that menu with ID 12472 was created for?,SELECT location FROM Menu WHERE id = 12472 On what date was the score 0-0?,"SELECT date FROM table_name_33 WHERE score = ""0-0""" How many of the professors are female?,SELECT COUNT(prof_id) FROM prof WHERE gender = 'Female' List in alphabetic order the names of all distinct instructors.,SELECT DISTINCT name FROM instructor ORDER BY name What was the lowest year for TCU?,"SELECT MIN(year) FROM table_name_79 WHERE winner = ""tcu""" Can I see list of names and classes of ships that don't have any captain?,"SELECT name , CLASS FROM ship WHERE ship_id NOT IN ( SELECT ship_id FROM captain ) " What is the score for Set 1 at 19:21?,"SELECT score FROM table_name_59 WHERE set_1 = ""19:21""" Show headquarters with at least two companies in the banking industry.,SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING count(*) >= 2 What is the highest no. in season?,SELECT MAX(no_in_season) FROM table_10701133_1 "How many players have the hometown Pennsauken, NJ?","SELECT COUNT(player) FROM table_11677100_12 WHERE hometown = ""Pennsauken, NJ""" "What is the ICAO for Denmark, and the IATA is bll?","SELECT icao FROM table_name_7 WHERE country = ""denmark"" AND iata = ""bll""" what team scored on december 19,"SELECT record FROM table_name_65 WHERE date = ""december 19""" How many medicines were not approved by the FDA?,SELECT count(*) FROM medicine WHERE FDA_approved = 'No' Calculate the total production for each product which were supplied from Japan,SELECT SUM(T1.UnitsInStock + T1.UnitsOnOrder) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Japan' how many visa card use to payment,"SELECT count ( * ) FROM INVOICES where payment_method_code = ""Visa""" What are the titles of all movies that were not reviewed by Chris Jackson?,SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' WWhich rder had a vehicle manufactured by kr211v?,"SELECT rider FROM table_name_26 WHERE manufacturer = ""kr211v""" What is the description for the CIS-220 and how many credits does it have?,"SELECT crs_credit , crs_description FROM course WHERE crs_code = 'CIS-220'" What is the patient id of that appointment?,select patient from appointment order by start desc limit 1 Return the total points of the gymnast with the lowest age.,SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC LIMIT 1 what's the result with opponent being at new england patriots,"SELECT result FROM table_14951643_1 WHERE opponent = ""at New England Patriots""" "How many appearances does the word ID No. 2823 have in the Wikipedia page ""Astre""?",SELECT SUM(T2.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Astre' AND T2.wid = 2823 Which athlete from Brazil has 2.20 O and 2.25 of XXX?,"SELECT athlete FROM table_name_81 WHERE 220 = ""o"" AND 225 = ""xxx"" AND nationality = ""brazil""" What round was Nick Gillis?,"SELECT round FROM table_name_32 WHERE player = ""nick gillis""" Which province has the contestant elixandra tobias carasco?,"SELECT province, _community FROM table_name_81 WHERE contestant = ""elixandra tobias carasco""" "What is the average total of the census after 1971 with 10,412 (32.88%) Serbs?","SELECT AVG(total) FROM table_name_90 WHERE year_of_census > 1971 AND serbs = ""10,412 (32.88%)""" What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?,"SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" What is Mark Henry's brand?,"SELECT brand FROM table_name_28 WHERE entrant = ""mark henry""" Which Casualties have a hostile Nature of incident and Circumstances of mortar attack?,"SELECT casualties FROM table_name_67 WHERE nature_of_incident = ""hostile"" AND circumstances = ""mortar attack""" What is the 1980 value with a 1r in 1984 and a 1r in 1981?,"SELECT 1980 FROM table_name_48 WHERE 1984 = ""1r"" AND 1981 = ""1r""" "If the passengers are 15,505,566, what is the iata code?","SELECT iata_code FROM table_18047346_4 WHERE passengers = ""15,505,566""" In what season was the final placing NC† and the team SL Formula Racing? ,"SELECT season FROM table_25421463_1 WHERE final_placing = ""NC†"" AND team_name = ""SL Formula Racing""" When was andrea gámiz the opponent?,"SELECT date FROM table_name_97 WHERE opponent = ""andrea gámiz""" What are the ids of the students who registered for course 301?,SELECT student_id FROM student_course_attendance WHERE course_id = 301 What is the maximum fc matches at the racecourse?,"SELECT MAX(fc_matches) FROM table_1176371_1 WHERE name_of_ground = ""The Racecourse""" What years did the magazine Vaillant and Pif run?,"SELECT years FROM table_name_78 WHERE magazine = ""vaillant and pif""" What Super G has a Career of 1980–1996?,"SELECT super_g FROM table_name_25 WHERE career = ""1980–1996""" Find the names of the candidates whose support percentage is lower than their oppose rate.,SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate Which allergy affects student ID 1002,SELECT Allergy FROM Has_allergy where StuID = 1002 Show the number of audience in year 2008 or 2010.,SELECT Num_of_Audience FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010 avg passengers in 2012 for 2009 more than 104.5 and 2010 less than 162.6 and 2011 less than 141.8 is what?,SELECT AVG(2012) FROM table_name_22 WHERE 2009 > 104.5 AND 2010 < 162.6 AND 2011 < 141.8 What group info is available for the 56.5 kg weight?,"SELECT group FROM table_1358608_2 WHERE weight__kg_ = ""56.5""" What is the duration of that song?,SELECT duration FROM files ORDER BY duration DESC LIMIT 1 What industry does petrochina belong to?,"SELECT industry FROM company where name = ""PetroChina""" Which team opponent had a loss with their pitcher Dotson (8-6)?,"SELECT opponent FROM table_name_93 WHERE loss = ""dotson (8-6)""" Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)?,"SELECT edition_publisher FROM table_name_5 WHERE language = ""italian"" AND page_size = ""8 inches (20cm) x 5.4 inches (14cm)""" What is the name origin of Morrigan Linea?,"SELECT name AS origin FROM table_16799784_9 WHERE name = ""Morrigan Linea""" What are the dates of the outgoing manager colin hendry does appointments? ,"SELECT date_of_appointment FROM table_11207040_6 WHERE outgoing_manager = ""Colin Hendry""" what is the age of Bob,SELECT age FROM Person where name = 'Bob' 2007 of 1r is involved in what 2001?,"SELECT 2001 FROM table_name_31 WHERE 2007 = ""1r""" Name the city with september of 83 °f / 28.3 °c,"SELECT city FROM table_name_15 WHERE sep = ""83 °f / 28.3 °c""" Tkkm o te ara rima has a decile less than 4 in what years?,"SELECT years FROM table_name_36 WHERE decile < 4 AND name = ""tkkm o te ara rima""" "Which actively running Yelp business in ""Gilbert"" has got the most reviews? Give the business id.",SELECT DISTINCT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.active = 'true' AND T1.city = 'Gilbert' AND T1.review_count = 'Uber' How many pounds did Sue Newell transport during her first shipment?,SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Sue' AND T2.last_name = 'Newell' ORDER BY T1.ship_date ASC LIMIT 1 "Show the minimum, maximum, and average age for all people.","SELECT min(age) , max(age) , avg(age) FROM people" Show the statement id and the statement detail for the statement with most number of accounts.,"SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1" How many point categories are there for the 3 mile run? ,SELECT COUNT(points) FROM table_19534874_2 WHERE mile_run = 3 How many customers use each payment method?,"SELECT payment_method_code , count(*) FROM customers GROUP BY payment_method_code" What was the rank in 1955?,"SELECT rank FROM table_name_89 WHERE year = ""1955""" "How many devices belong to model ""A51""?",SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE device_model = 'A51' Which Tournament has a Score of 4-6 6-2 6-1?,"SELECT tournament FROM table_name_40 WHERE score = ""4-6 6-2 6-1""" "What are the first names, office locations of all lecturers who have taught some course?","SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num" What is the name of a spice with buying price of 352447.2874677?,SELECT product_name from products where typical_buying_price = 352447.2874677 Hello. What is the name of the employee that has showed up the most in circulation history documents?,SELECT t1.employee_name FROM Employees as t1 JOIN Circulation_History as t2 ON t2.employee_id = t1.employee_id group by t1.employee_name order by count ( * ) desc limit 1 "When was the first year he placed 2nd in Izmir, Turkey?","SELECT MIN(year) FROM table_name_3 WHERE result = ""2nd"" AND venue = ""izmir, turkey""" What tournament had a winning score of –9 (69-71-67=207)?,SELECT tournament FROM table_name_72 WHERE winning_score = –9(69 - 71 - 67 = 207) "For all cities where Seine is located at, which city has the greatest population? Calculate the difference from the city with least population.",SELECT MAX(T1.Population) - MIN(T1.population) FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Seine' Could you please tell me the average amount paid in claim headers?,SELECT avg ( amount_piad ) FROM claim_headers Which Minnesota North Stars' goalkeeper had the most Goal Againsts in his play time?,SELECT playerID FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.name = 'Minnesota North Stars' GROUP BY T1.playerID ORDER BY SUM(T1.GA) DESC LIMIT 1 "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.","SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC" List the title of books published by AK Press.,SELECT T1.title FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'AK Press' "How many singles were released between 1979 and 1981 labeled as ""soul""?",SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'soul' AND T1.groupYear BETWEEN 1979 AND 1981 AND T1.releaseType LIKE 'single' How many apartments do not have any facility?,SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities) Which airline has abbreviation 'UAL'?,"SELECT Airline FROM AIRLINES WHERE Abbreviation = ""UAL""" what is the credits of C Programming,"SELECT credits FROM course WHERE title = ""C Programming""" List all reviews created in May 2019. State the title of podcast and review rating.,"SELECT DISTINCT T1.title, T2.rating FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.created_at LIKE '2019-05-%'" Who has 0 points in 1974?,SELECT entrant FROM table_name_3 WHERE points = 0 AND year = 1974 "What is Weight, when Club is ""Maadi""?","SELECT weight FROM table_name_86 WHERE club = ""maadi""" Which country does Sasebo belong to?,SELECT T1.country FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id WHERE T2.city = 'Sasebo' Which Opponent has an Event of king of the cage: shock and awe?,"SELECT opponent FROM table_name_8 WHERE event = ""king of the cage: shock and awe""" "How many nicknames does the school in Newark, DE have","SELECT COUNT(nickname) FROM table_16432543_1 WHERE location = ""Newark, DE""" "What is Opponent, when Event is ""ISCF - Southeast Championships""?","SELECT opponent FROM table_name_17 WHERE event = ""iscf - southeast championships""" "How many products with the id ""989"" were sold in August 2013?",SELECT SUM(Quantity) FROM TransactionHistory WHERE TransactionDate LIKE '2013-08%' AND TransactionType = 'S' AND ProductID = 989 What was the to par score of the golfer that had a score of 68-70=138?,SELECT to_par FROM table_name_91 WHERE score = 68 - 70 = 138 How many orders were shipped to Venezuela in 1996?,"SELECT COUNT(OrderID) FROM Orders WHERE ShipCountry = 'Venezuela' AND STRFTIME('%Y', ShippedDate) = '1996'" "List down the names of the cities belonging to Noble, Oklahoma.",SELECT T3.city FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T1.name = 'Oklahoma' AND T2.county = 'NOBLE' What place is the team that completed 6 races?,SELECT position FROM table_10748727_1 WHERE races = 6 Show the most frequently used carrier of the phones.,SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1 Hello. What universities are in San Francisco? | Would you like to know the names of all campuses located in San Francisco? | That would be great!,SELECT Campus FROM Campuses WHERE Location = 'San Francisco' List the names of departments where some physicians are primarily affiliated with.,SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1 Which United States province is home to the greatest number of corporations' corporate headquarters?,SELECT T1.Province FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'United States' GROUP BY T1.Province ORDER BY COUNT(T1.Name) DESC LIMIT 1 "How many debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5?",SELECT COUNT(debut_in_europe) FROM table_name_77 WHERE goals < 76 AND games > 151 AND rank > 5 What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?,"SELECT MAX(total_medals) FROM table_name_27 WHERE gold_medals = 0 AND ensemble = ""east 80 indoor percussion""" Who is the operator when willowbrook was the bodybuilder?,"SELECT operator FROM table_28035004_1 WHERE bodybuilder = ""Willowbrook""" What is the shape of the tail car on train no.1?,SELECT shape FROM cars WHERE train_id = 1 AND position = 4 The product ids of all products whose prices are above the average product price are listed.,select product_name from products where product_price> ( SELECT avg ( product_price ) from products ) What date was the U21 pennant laid down?,"SELECT laid_down FROM table_name_26 WHERE pennant = ""u21""" "What about products with the characteristic name ""slow""?","SELECT product_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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t3.characteristic_name = ""slow""" in what playoffs the league was in the semifinals,"SELECT league FROM table_1908049_1 WHERE playoffs = ""Semifinals""" Which county has the lowest amount of police officers?,SELECT Name FROM county_public_safety ORDER BY Population LIMIT 1 How many Vista cards expired before the year 2007?,SELECT COUNT(CreditCardID) FROM CreditCard WHERE CardType = 'Vista' AND ExpYear < 2007 "What years did Tymerlan Huseynov, whose average is larger than 0.361, play?","SELECT career FROM table_name_94 WHERE average > 0.361 AND player = ""tymerlan huseynov""" List the district name of the city with the smallest population.,SELECT District FROM City ORDER BY Population LIMIT 1 What counties are they from?,select T1.County_name from county AS T1 JOIN election AS T2 where T1.County_Id = District and T2.Committee = 'Appropriations' "What L2 cache had a release date of august 26, 2007?","SELECT l2_cache FROM table_name_71 WHERE release_date = ""august 26, 2007""" Hmm. Please return all the committees that have delegates from Liberal party.,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal""" What is the name of UMass Boston's softball stadium?,"SELECT softball_stadium FROM table_1974545_3 WHERE school = ""UMass Boston""" What is the lowest pick from Elitserien (Sweden)?,"SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = ""elitserien (sweden)""" State the name of the city that held game id 3.,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T1.games_id = 3 Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates?,"SELECT lunar_eva_dates FROM table_name_27 WHERE mission = ""apollo 12"" AND name = ""pete conrad""" Which 2003 has a 2012 of 1–4?,"SELECT 2003 FROM table_name_24 WHERE 2012 = ""1–4""" Which date has a format's album?,"SELECT date FROM table_name_31 WHERE format_s_ = ""album""" What is the smallest place number when the total is 16 and average is less than 16?,SELECT MIN(place) FROM table_name_52 WHERE total = 16 AND average < 16 Show the names of customers having an order with shipping method FedEx and order status Paid.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid' What bike subcategories are there?,SELECT T1.Name FROM ProductSubcategory AS T1 INNER JOIN ProductCategory AS T2 ON T1.ProductCategoryID = T2.ProductCategoryID WHERE T2.name = 'Bikes' What did South Africa place?,"SELECT place FROM table_name_89 WHERE country = ""south africa""" What is the neighborhood name in the community area of Lake View?,SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'Lake View' Show me these names in descending order based on number of player votes.,"SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC" "Which Wins has a Draws smaller than 3, and Points of 26?",SELECT AVG(wins) FROM table_name_79 WHERE draws < 3 AND points = 26 List down the address of patients who have billable period in 2010.,SELECT DISTINCT T1.address FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T2.BILLABLEPERIOD LIKE '2010%' Write down the release date of the movies produced by Twentieth Century Fox Film Corporation.,SELECT T3.release_date FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Twentieth Century Fox Film Corporation' Can you please show me the characteristic name used by least number of products?,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 GROUP BY t3.characteristic_name ORDER BY count ( * ) LIMIT 1 Name the player for mercer,"SELECT player FROM table_17308269_2 WHERE college_country_team = ""Mercer""" List the title of the earliest published Japanese book.,SELECT T1.title FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'Japanese' ORDER BY T1.publication_date ASC LIMIT 1 How many courses do the student whose id is 171 attend?,SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171 "Among the employees who work as a Trainee, how many of them have a salary of over &20,000 a year?","SELECT COUNT(*) FROM employee AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) > 20000 AND T2.positiontitle = 'Trainee'" "Show the apartment numbers of apartments with bookings that have status code both ""Provisional"" and ""Confirmed""","SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed"" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Provisional""" What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?,"SELECT entrant FROM table_name_17 WHERE chassis = ""maserati 250f"" AND year < 1957 AND points < 6" Who's the race leader of Cuneo to Turin?,"SELECT race_leader FROM table_name_90 WHERE course = ""cuneo to turin""" What is the maximum number in the series for the episode directed by Harvey S. Laidman?,"SELECT MAX(no_in_series) FROM table_228973_9 WHERE directed_by = ""Harvey S. Laidman""" What Position has a Level of tier 4 with a Season smaller than 2003?,"SELECT position FROM table_name_85 WHERE level = ""tier 4"" AND season < 2003" Does student348 have a due payment?,SELECT bool FROM no_payment_due WHERE name = 'student348' Which city has the lowest GDP? Please list the city name and its GDP.,"SELECT city , GDP FROM city ORDER BY GDP LIMIT 1" What are the cities no customers live in?,SELECT city FROM addresses WHERE city NOT IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id) "What is the sum of the grid of driver ryan hunter-reay, who has more than 24 points?","SELECT SUM(grid) FROM table_name_7 WHERE driver = ""ryan hunter-reay"" AND points > 24" which one has the most followers?,SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1 What is the average vitamin C amount of all cakes?,SELECT AVG(T1.vitamin_c) FROM Nutrition AS T1 INNER JOIN Recipe AS T2 ON T2.recipe_id = T1.recipe_id WHERE T2.title LIKE '%cake%' How many crimes happened in longitude -8772658001?,SELECT COUNT(*) FROM Crime WHERE longitude = '-87.72658001' Which membership card has more than 5 members?,SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5 What was the 08-09 i/o best of the player with 1386 points?,SELECT 08 AS _09_i_o_best FROM table_24990183_5 WHERE ws_points = 1386 List 5 patients' name that need medication due to streptococcal sore throat disorder.,"SELECT DISTINCT T2.first, T2.last FROM medications AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)' LIMIT 5" Please give the title of the film starring PENELOPE GUINESS and has the highest replacement cost.,SELECT T3.title FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T1.first_name = 'PENELOPE' AND T1.last_name = 'GUINESS' ORDER BY T3.replacement_cost DESC LIMIT 1 What is the date that the Montreal Canadiens hosted a game with a record of 14–11–3?,"SELECT date FROM table_name_77 WHERE home = ""montreal canadiens"" AND record = ""14–11–3""" "What is the title of the episode that aired on May 10, 1958?","SELECT title FROM table_25800134_2 WHERE airdate = ""May 10, 1958""" What is the name of the airline that flew the most flights to Chicago Midway International?,"SELECT T3.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST INNER JOIN `Air Carriers` AS T3 ON T2.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T1.Description = 'Chicago, IL: Chicago Midway International' AND T2.DEST = 'MDW' GROUP BY T3.Description ORDER BY COUNT(T3.Description) DESC LIMIT 1" In 1983 what is the tournament that is 0 / 1?,"SELECT tournament FROM table_name_24 WHERE 1983 = ""0 / 1""" What are the document ids for the budget type code 'SF'?,SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF' List all customer status codes and the number of customers having each status code.,"SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code" What was the highest round that had northwestern?,"SELECT MAX(round) FROM table_name_18 WHERE school = ""northwestern""" In what district is the city listed in Serial number 9?,SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 9 What is the total number of games played?,SELECT sum(gamesplayed) FROM Sportsinfo What was the W-L record when HIgh Points was andre miller (30)?,"SELECT record FROM table_17323042_11 WHERE high_points = ""Andre Miller (30)""" Please list all clients' phone numbers and complaint IDs which are still in progress.,"SELECT T1.phone, T2.`Complaint ID` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Company response to consumer` = 'In progress'" Who was the team with the smallest crowd at the Princes Park venue?,"SELECT MIN(crowd) FROM table_name_73 WHERE venue = ""princes park""" Round that greg huntington went in?,"SELECT round FROM table_name_54 WHERE name = ""greg huntington""" "Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on february 28?","SELECT score FROM table_name_52 WHERE home = ""quebec nordiques"" AND visitor = ""vancouver blazers"" AND date = ""february 28""" What type of video coding has a format name of dvcam?,"SELECT video_coding FROM table_name_69 WHERE format_name = ""dvcam""" How many of those bookings were studio apartments?,"SELECT count ( * ) FROM apartment_bookings as T1 join apartments as T2 on T1.apt_id = T2.apt_id where T1.booking_start_date like ""%2016%"" and T2.apt_type_code = ""Studio""" Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.,SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component > 10 What score to par won in 1998?,SELECT to_par FROM table_18862490_2 WHERE year = 1998 What's Sara Isakovič's lane number that had a heat of 3?,"SELECT SUM(lane) FROM table_name_43 WHERE heat = 3 AND name = ""sara isakovič""" What is Melbourne's home venue?,"SELECT venue FROM table_name_74 WHERE home_team = ""melbourne""" Name the party for new york 4,"SELECT party FROM table_19753079_35 WHERE district = ""New York 4""" "What are the ages of the gymnasts, ordered descending by their total points?",SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC "How many countries are there in the region whose comment description is ""asymptotes sublate after the r.""",SELECT COUNT(T1.n_nationkey) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey WHERE T2.r_comment = 'asymptotes sublate after the r' Which Spanish voice actor does the same character as French voice actor Dennis Boileau?,"SELECT spanish_voice_actor FROM table_name_61 WHERE french_voice_actor = ""dennis boileau""" How many unique room numbers are currently in the table?,SELECT count ( distinct room_number ) FROM classroom WHERE capacity > 50 Which head's name has the substring 'Ha' ? List the id and name.,"SELECT head_id , name FROM head WHERE name LIKE '%Ha%'" What is Mike Skinner's Chevrolet's Car #?,"SELECT COUNT(car__number) FROM table_name_74 WHERE make = ""chevrolet"" AND driver = ""mike skinner""" What was the record for July 26?,"SELECT record FROM table_name_16 WHERE date = ""july 26""" Name the students with above-average capability.,"SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN RA AS T2 ON T1.student_id = T2.student_id WHERE T2.capability > ( SELECT AVG(capability) FROM RA )" "Perfect, what about the lowest consider rate?",SELECT min ( consider_rate ) FROM candidate What is the station type of DWZM-TV?,"SELECT station_type FROM table_24673888_1 WHERE callsign = ""DWZM-TV""" "What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?","SELECT AVG(grid) FROM table_name_45 WHERE bike = ""honda cbr1000rr"" AND laps = 18 AND time = ""+1:12.884""" how many songs has Enrique produced?,"SELECT count ( * ) FROM song where artist_name = ""Enrique""" What was the attendance at the game that had a loss of Ayala (6-12)?,"SELECT attendance FROM table_name_49 WHERE loss = ""ayala (6-12)""" Find the first name and gender of the student who has allergy to milk but not cat.,"SELECT fname, sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" Which Date has a Partner of daniella dominikovic?,"SELECT date FROM table_name_66 WHERE partner = ""daniella dominikovic""" What is the most recent year that Iftiraas was the winner?,"SELECT MAX(year) FROM table_name_68 WHERE winner = ""iftiraas""" What's the sum of points for the 1963 season when there are more than 30 games?,"SELECT SUM(points) FROM table_name_8 WHERE season = ""1963"" AND games > 30" "When the opponent was Yan Zi Jie Zheng, what was the outcome?","SELECT outcome FROM table_2516282_3 WHERE opponents = ""Yan Zi Jie Zheng""" "When the mark is 8.54, the reaction time was over 0.23800000000000002 seconds, what's the highest amount of points recorded?","SELECT MAX(points) FROM table_name_79 WHERE mark = ""8.54"" AND react > 0.23800000000000002" Can you tell me the Season that has the Team 2 of hanoi acb?,"SELECT season FROM table_name_99 WHERE team_2 = ""hanoi acb""" Who was North Melbourne's home opponent?,"SELECT home_team FROM table_name_26 WHERE away_team = ""north melbourne""" What was the surface where the outcome was winner on 12 march 1989?,"SELECT surface FROM table_name_19 WHERE outcome = ""winner"" AND date = ""12 march 1989""" Tell me the organization type of organisation_id 1?,SELECT organisation_type FROM Organisations where organisation_id = 1 How much would be the total sales profit for shopping cart ID 20621 ?,SELECT SUM((T1.ListPrice - T1.StandardCost) * T2.Quantity) FROM Product AS T1 INNER JOIN ShoppingCartItem AS T2 ON T1.ProductID = T2.ProductID WHERE T2.ShoppingCartID = 20621 Alright! Now can you update this list to show the associated complain type code for these two status codes?,"SELECT complaint_status_code,complaint_type_code FROM complaints GROUP BY complaint_status_code HAVING count ( * ) > 3" What states have at least two representatives?,SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2 How many rooms have a king bed?,"SELECT count(*) FROM Rooms WHERE bedType = ""King"";" What was the score of the game that had a loss of Wegman (2-6)?,"SELECT score FROM table_name_7 WHERE loss = ""wegman (2-6)""" Which character is the villain of the most popular movie?,SELECT T2.villian FROM `movies_total_gross` AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title ORDER BY T1.total_gross DESC LIMIT 1 What year was the brabham bt46 bt48 bt49 Chassis common?,"SELECT AVG(year) FROM table_name_89 WHERE chassis = ""brabham bt46 bt48 bt49""" What was the date of the game when Colorado was the visiting team and Chicago was the home team?,"SELECT date FROM table_name_36 WHERE visitor = ""colorado"" AND home = ""chicago""" Count the number of chip model that do not have wifi.,SELECT count(*) FROM chip_model WHERE wifi = 'No' "What is the season # for the episode with air date february 2, 1970?","SELECT MAX(season__number) FROM table_25800134_14 WHERE airdate = ""February 2, 1970""" Show the date of the tallest perpetrator.,SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 Which Reigon has a Village of Chassagne-Montrachet?,"SELECT region FROM table_name_82 WHERE village = ""chassagne-montrachet""" What is the average price of all wine products?,SELECT avg ( Price ) from wine What are the final tables made and best finishes for all poker players?,"SELECT Final_Table_Made , Best_Finish FROM poker_player" Who was the home team at Brunswick Street Oval?,"SELECT home_team FROM table_name_65 WHERE venue = ""brunswick street oval""" When circuit ricardo tormo is the circuit what is the round?,"SELECT COUNT(round) FROM table_21191496_1 WHERE circuit = ""circuit Ricardo Tormo""" "On average, how many Starts have Wins that are smaller than 0?",SELECT AVG(starts) FROM table_name_86 WHERE wins < 0 What is the score when high points is from pierce (30)?,"SELECT score FROM table_11959669_6 WHERE high_points = ""Pierce (30)""" "Which kickoff had an attendance of 58,120?","SELECT kickoff_[a_] FROM table_name_9 WHERE attendance = ""58,120""" What was the result of the election when Tic Forrester ran as an incumbent?,"SELECT result FROM table_1342149_11 WHERE incumbent = ""Tic Forrester""" Where is store number 2 located?,"SELECT T1.address, T1.address2, T1.district FROM address AS T1 INNER JOIN store AS T2 ON T1.address_id = T2.address_id WHERE T2.store_id = 2" How many laps have a race time of 3:31:24?,"SELECT laps FROM table_2226343_1 WHERE race_time = ""3:31:24""" Who played hte home team when the score was 2:1?,"SELECT home FROM table_name_45 WHERE score = ""2:1""" How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?,SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990; What is the maximum torque at rpm for the engine with code BMM?,"SELECT max_torque_at_rpm FROM table_name_90 WHERE engine_code_s_ = ""bmm""" What trains have a category of express and a weekly frequency?,"SELECT train_name FROM table_21716139_1 WHERE category = ""Express"" AND frequency = ""Weekly""" find the name of all departments that do actually have one or more employees assigned to them.,SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id How many distinct countries are the climbers from?,SELECT COUNT(DISTINCT Country) FROM climber Who was the opponent when the result was 2-2 (draw)?,"SELECT opponenent FROM table_name_70 WHERE result = ""2-2 (draw)""" What is the location of Classification of T12?,"SELECT location FROM table_name_96 WHERE classification = ""t12""" What year was there a Tony award category of Best Revival of a Musical?,"SELECT year FROM table_name_72 WHERE award = ""tony award"" AND category = ""best revival of a musical""" What was the attendance for the week 1 game?,SELECT attendance FROM table_name_9 WHERE week = 1 What American Southwest Conference school was founded in 1883?,"SELECT institution FROM table_name_87 WHERE founded > 1883 AND current_conference = ""american southwest""" "What is the date of enrollment in the course named ""database""?","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 = ""database""" Find the name of the department which has the highest average salary of professors.,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1 "What is the lowest First Elected, when Results is ""Re-elected"", and when Incumbent is ""Lincoln Davis""?","SELECT MIN(first_elected) FROM table_name_38 WHERE results = ""re-elected"" AND incumbent = ""lincoln davis""" What is last name of William?,"SELECT STU_LNAME FROM student where STU_FNAME = ""William""" "Among the matches, what percentage have a winning margin above 100?",SELECT CAST(COUNT(CASE WHEN Win_Margin > 100 THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(Match_Id) FROM `Match` "Provide the name, located country, and life expectancy of the most populated city","SELECT T2.Name, T1.Code, T1.LifeExpectancy FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode ORDER BY T2.Population DESC LIMIT 1" "What are the names of the chairs of festivals, sorted in ascending order of the year held?",SELECT Chair_Name FROM festival_detail ORDER BY YEAR What are the employee ids for employees who make more than the average?,SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) "Which city is the headquarter of the store named ""Blackville"" in?","SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = ""Blackville""" When did the episode viewed by 10.50 millions of people in the US run for the first time?,"SELECT original_air_date FROM table_23799653_1 WHERE us_viewers__millions_ = ""10.50""" Tell me the shigella for yersinia yopb,"SELECT shigella FROM table_name_52 WHERE yersinia = ""yopb""" Where is the city of Maharashtra's Pune team?,"SELECT city FROM table_name_31 WHERE state = ""maharashtra"" AND team = ""pune""" How many female clients are there older than 30?,SELECT COUNT(sex) FROM client WHERE sex = 'Female' AND age > 30 Which 2009 tournament had Grand Slams?,"SELECT tournament FROM table_name_58 WHERE 2009 = ""grand slams""" How many incumbents were first elected in 1930?,SELECT COUNT(party) FROM table_1342292_45 WHERE first_elected = 1930 Give me the immunization codes and dates on which Ms. Jacquelyn Shanahan was immunized with influenza seasonal injectable preservative-free vaccine.,"SELECT DISTINCT T2.CODE, T2.DATE FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' AND T2.DESCRIPTION = 'Influenza seasonal injectable preservative free'" Which poll source had an other of 15%?,"SELECT poll_source FROM table_name_38 WHERE other = ""15%""" are in tobago species liophis cobellus cobellus?,"SELECT tobago FROM table_1850282_5 WHERE species = ""Liophis cobellus cobellus""" Of which company is Mr. Eduardo Martins a customer?,"SELECT company FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins""" "In the Catalan language, which biwords pair appeared the most in this language/page?","SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )" Name the un region for 378000 population,SELECT un_region FROM table_16278349_1 WHERE population = 378000 What are the full names of employees who with in department 70 or 90?,"SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90" What are the different colleges this season?,SELECT DISTINCT college FROM match_season What is the party of the legislator named Susan M. Collins?,SELECT T2.party FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Susan M. Collins' GROUP BY T2.party And what is his phone number?,"SELECT phone FROM customers WHERE first_name = ""Eduardo"" AND last_name = ""Martins""" How many games did they lose when they tied less than 2 games?,SELECT lost FROM table_name_39 WHERE draw < 2 Give the address of the staff member who has the first name Elsa.,SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa' What was the average value for Fall 07 when Fall 09 is less than 296?,SELECT AVG(fall_07) FROM table_name_99 WHERE fall_09 < 296 What position did the Belenenses club occupy in 1960/61?,"SELECT position_in_1960_1961 FROM table_name_2 WHERE clubs = ""belenenses""" "What is the engine type when the max torque at rpm is n·m ( lbf·ft ) @ 4,800 Answers:?","SELECT engine_type FROM table_1147705_1 WHERE max_torque_at_rpm = ""N·m ( lbf·ft ) @ 4,800""" How many customers have no payment histories?,SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments ); Which class has a power output larger than 700 and a class of 48?,SELECT class FROM table_name_75 WHERE power_output__kw_ > 700 AND number_in_class = 48 "Which event is a win by an opponent of Nicolas Smith, with the round marked n/a?","SELECT event FROM table_name_24 WHERE res = ""win"" AND round = ""n/a"" AND opponent = ""nicolas smith""" "Find the personal name, family name, and author ID of the course author that teaches the most courses.","SELECT T1.personal_name , T1.family_name , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1" "List the official full names of all the legislators who have facebook, instagram, twitter and youtube accounts.",SELECT T1.official_full_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook IS NOT NULL AND T2.instagram IS NOT NULL AND T2.twitter IS NOT NULL AND T2.youtube IS NOT NULL What was the total attendance on 10/05/1974?,"SELECT COUNT(attendance) FROM table_name_10 WHERE date = ""10/05/1974""" What is the outcome of the tournament with partner ilie năstase?,"SELECT outcome FROM table_name_65 WHERE partner = ""ilie năstase""" How many picks were from round 6?,SELECT COUNT(pick) FROM table_name_84 WHERE round = 6 Name the score for 2 june 2008,"SELECT score FROM table_name_97 WHERE date = ""2 june 2008""" "OK, do you have the names of the above stores?",SELECT store_name FROM department_stores GROUP BY dept_store_chain_id ORDER BY count ( * ) DESC LIMIT 2 what's the district  with candidates being william madison whittington (d) unopposed,"SELECT district FROM table_1342379_23 WHERE candidates = ""William Madison Whittington (D) Unopposed""" What are the names and buying prices of all the products?,"SELECT product_name , typical_buying_price FROM products" What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""254 Ottilie Junction"" OR T2.How_to_Get_There = ""bus""" Who did the team play against in the game that resulted with a loss?,"SELECT opponent FROM table_21063459_1 WHERE result = ""Loss""" Name the series number directed by richard thorpe written by dee johnson,"SELECT MAX(series__number) FROM table_17355579_1 WHERE directed_by = ""Richard Thorpe"" AND written_by = ""Dee Johnson""" Show the names of members and the location of the performances they attended.,"SELECT T2.Name , T3.Location 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" "What are the number of international and domestic passengers of the airport named London ""Heathrow""?","SELECT International_Passengers , Domestic_Passengers FROM airport WHERE Airport_Name = ""London Heathrow""" What is the percentage of matches that are won by runs?,SELECT CAST(SUM(CASE WHEN T1.win_type = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Win_Type) FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id What is the distance from Jaffa of Jerusalem station?,"SELECT distance_from_jaffa FROM table_name_1 WHERE name_location = ""jerusalem""" "How many gains have a long greater than 8, with avg/g of 124.9?",SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9 What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?,"SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )" What is the role of the aircraft that originates from the European Union?,"SELECT role FROM table_name_41 WHERE origin = ""european union""" What is average salary of the players in the team named 'Boston Red Stockings' ?,SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' On which island is Esperadinha airport located?,"SELECT island FROM table_name_53 WHERE airportname = ""esperadinha airport""" Which building has most faculty members?,SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1 Find the ids and names of stations from which at least 200 trips started.,"SELECT start_station_id , start_station_name FROM trip GROUP BY start_station_id HAVING COUNT(*) >= 200" What is the first name of the student whose permanent address is different from his or her current one?,SELECT first_name FROM Students WHERE current_address_id != permanent_address_id What are all the different first names of the drivers who are in position as standing and won?,SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 What are the shipping methods for the orders on 12/31/1994?,SELECT DISTINCT T2.l_shipmode FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderdate = '1994-12-31' Which role has the most common contact among businesses?,SELECT T1.Name FROM ContactType AS T1 INNER JOIN BusinessEntityContact AS T2 ON T1.ContactTypeID = T2.ContactTypeID GROUP BY T1.Name ORDER BY COUNT(T1.Name) DESC LIMIT 1 What is the total amount of money spent by Lucas Mancini?,"SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = ""Lucas"" AND T1.last_name = ""Mancini"";" How many leagues are there in England?,"SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id WHERE T1.name = ""England""" What opponent has april 10 as the date?,"SELECT opponent FROM table_name_14 WHERE date = ""april 10""" What is hugh white's weight?,"SELECT MAX(weight) FROM table_14342210_13 WHERE player = ""Hugh White""" Count the number of courses in the Physics department.,SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics' "Which Description has a Year of Issue of 1983, and a Weight of 3.50grams?","SELECT description FROM table_name_67 WHERE year_of_issue = 1983 AND weight = ""3.50grams""" Who wrote the song that runs for 2:22?,"SELECT author_s_ FROM table_name_35 WHERE time = ""2:22""" When was the status test match with an opposing team of south africa?,"SELECT date FROM table_name_77 WHERE status = ""test match"" AND opposing_teams = ""south africa""" Return the name of the high school student with the most friends.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 What time does the company's night shift begin? Indicate the answer in regular form.,SELECT StartTime FROM Shift WHERE Name = 'Night' Please show the employee last names that serves no more than 20 customers.,SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20 Who was the customer of shipment no.1275? Give the customer's name.,SELECT T1.cust_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.ship_id = '1275' What is the name of the airport with an ICAO of ULLI?,"SELECT airport FROM table_name_40 WHERE icao = ""ulli""" Count the number of high schoolers.,SELECT count(*) FROM Highschooler how many countries are in Asia?,"SELECT count(*) FROM country WHERE continent = ""Asia""" What are their planned delivery dates?,SELECT T1.Planned_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 How about the most recent one?,SELECT log_entry_date FROM problem_log ORDER BY log_entry_date DESC LIMIT 1 What is the highest listed year for the partner of Marcel Granollers and a hard surface?,"SELECT MAX(year) FROM table_name_28 WHERE partner = ""marcel granollers"" AND surface = ""hard""" How many businesses have more than 1 attribute?,SELECT COUNT(business_id) FROM Business_Attributes WHERE attribute_value > 1 Provide the number of predicted classes.,SELECT COUNT(PRED_CLASS_ID) FROM PRED_CLASSES Show all the wind speeds in miles per hour.,select wind_speed_mph from weekly_weather What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008?,"SELECT 2012 FROM table_name_67 WHERE 2010 = ""1.3"" AND 2008 = ""3.6""" Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin?,"SELECT actor_in_moscow, _2007 FROM table_name_91 WHERE voyage = ""varenka bakunin""" What is the highest total medals winter athlete Clara Hughes has?,"SELECT MAX(total) FROM table_name_41 WHERE type = ""winter"" AND athlete = ""clara hughes""" What was the largest crowd at a game where Collingwood was the away team?,"SELECT MAX(crowd) FROM table_name_13 WHERE away_team = ""collingwood""" What was the position (P) for Clapham?,"SELECT p FROM table_12608427_8 WHERE name = ""Clapham""" What is the Location for Belshina?,"SELECT location FROM table_name_99 WHERE team = ""belshina""" What was the max demand charge for the user with a tariff of 8.85?,"SELECT max_demand_charge___rs__kva_ FROM table_25479607_3 WHERE tariff___rs__kwh_ = ""8.85""" what can you tell me about Rob Dinning?,"SELECT * from stores where store_name = ""Rob Dinning""" List the name and country of origin for all singers who have produced songs with rating above 9.,"SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9" Thank you! Can you show me the total number of occurrences for Purchased AAC as the media type?,"SELECT T1.Name,count ( * ) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT ( * ) ASC LIMIT 1" What are the names and salaries of instructors who advises students in the History department?,"SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'" What are the different cities where students live?,SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id Which region has the most number of sales team?,SELECT Region FROM `Sales Team` GROUP BY Region ORDER BY COUNT(DISTINCT `Sales Team`) DESC LIMIT 1 "Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?","SELECT rider_names FROM table_27833186_1 WHERE location = ""Euer Valley, CA"" AND horse_name = ""Magic Sirocco""" What is the location shared by most counties?,SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 Who are the students that are between 20 and 25 years of age? | Do you mean the last name or the first name of the students between 20 and 25 years of age? | What are the first names of the students who are between 20 and 25 years of age?,SELECT fname FROM student WHERE age BETWEEN 20 AND 25 What is the ratio of good to bad business star for a businesses that are opened all the time?,SELECT CAST(SUM(CASE WHEN T1.stars BETWEEN 3.5 AND 5 THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.stars BETWEEN 1 AND 2.5 THEN 1 ELSE 0 END) AS ratio FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id What is the organisation type for each organisation?,SELECT organisation_type from Organisations What were the notes when his position was 10th?,"SELECT notes FROM table_name_2 WHERE position = ""10th""" "Describe ID and active status of the business under category of ""Diagnostic Imaging"".","SELECT T2.business_id, T3.active FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name = 'Diagnostic Imaging'" What are the titles of the cartoons sorted alphabetically?,SELECT Title FROM Cartoon ORDER BY title "Among the teams that had more wins than loses in the year 2006, how many of them have over 100 points?",SELECT COUNT(tmID) FROM Teams WHERE year = 2006 AND W > L AND Pts > 100 What are the notes of the death events which has substring 'East'?,SELECT note FROM death WHERE note LIKE '%East%' What was head count in 2010 where the farm production is 6.9?,"SELECT MAX(2010 AS _population__000_) FROM table_13618358_1 WHERE agri_culture_b = ""6.9""" Which money has player Jack Fleck with t1 place?,"SELECT money___$__ FROM table_name_4 WHERE place = ""t1"" AND player = ""jack fleck""" How many journalists are there?,SELECT count(*) FROM journalist What original channel is associated with B Mountain Channel 9?,"SELECT original_channel FROM table_name_39 WHERE b_mountain_channel = ""9""" "Who danced the Cha-Cha-Cha on November 18, 2008?","SELECT pair FROM table_name_2 WHERE dance = ""cha-cha-cha"" AND date = ""november 18, 2008""" How many figures for Other in the district where the GN division is 95?,SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95 "What is Round, when Tournament is ""Paris""?","SELECT round FROM table_name_61 WHERE tournament = ""paris""" "What is Club Source [I ], when Name is ""Andrew McCombie Category:Articles With hCards""?","SELECT club_source_[i_] FROM table_name_14 WHERE name = ""andrew mccombie category:articles with hcards""" Which gene is ongoing and has an intramuscular route of administration?,"SELECT gene FROM table_name_42 WHERE route_of_administration = ""intramuscular"" AND status = ""ongoing""" What is the attendance that has a record of 43-28?,"SELECT attendance FROM table_name_86 WHERE record = ""43-28""" How many Bronze medals did the Nation with 0 Silver receive?,SELECT MAX(bronze) FROM table_name_37 WHERE silver < 0 List the names of climbers whose country is not Switzerland.,"SELECT Name FROM climber WHERE Country != ""Switzerland""" Who was the winner in the Tournament of Graz-Seiersberg?,"SELECT winner FROM table_name_56 WHERE tournament = ""graz-seiersberg""" When did NASA launch the wide field infrared explorer (wire)?,"SELECT launch_date FROM table_name_11 WHERE space_agency = ""nasa"" AND name = ""wide field infrared explorer (wire)""" How many distinct locations have the things with service detail 'Unsatisfied' been located in?,SELECT count ( DISTINCT T2.Location_Code ) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied' How many ids are in part_fault_id...Tell me total number,SELECT count ( distinct part_fault_id ) from skills_required_to_fix "Of all the claims, what was the earliest date when any claim was made?",SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1 Who was the Japan open runner up?,"SELECT runner_up FROM table_name_21 WHERE tournament = ""japan open""" What is the city_code of the city that the most students live in?,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 "Among professors with the highest popularity, how many of their students have research capability of 5?",SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T1.capability = 5 ORDER BY T2.popularity DESC LIMIT 1 Provide business ids with opening hours 10AM on Saturday.,SELECT DISTINCT business_id FROM Business_Hours WHERE day_id = 6 AND opening_time = '10AM' "Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?","SELECT document_name , access_count FROM documents ORDER BY access_count DESC LIMIT 1" Name the average wins outdoor with rank more than 4 and wins less than 3 with outdoor wins more than 0,SELECT AVG(wins__outdoor_) FROM table_name_61 WHERE rank > 4 AND wins__total_ < 3 AND wins__indoor_ > 0 List in alphabetic order all different amenities.,SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name "Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?","SELECT erp_w FROM table_name_54 WHERE frequency_mhz > 89.1 AND city_of_license = ""de queen, arkansas""" What's the total when the gold is less than 0 and silver is less than 1?,SELECT AVG(total) FROM table_name_95 WHERE silver = 1 AND gold < 0 Which membership card has more than 5 members?,SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*) > 5 What was the record on March 22?,"SELECT record FROM table_name_58 WHERE date = ""march 22""" Please list the names of the courses taken by Laughton Antonio.,SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.f_name = 'Laughton' AND T1.l_name = 'Antonio' Find the name of dorms that can accommodate more than 300 students.,SELECT dorm_name FROM dorm WHERE student_capacity > 300 What Position did Aaron Williams play?,"SELECT position FROM table_name_12 WHERE player = ""aaron williams""" "List the top 10 USA movies, by descending order, from the highest to the lowest, the user rating.",SELECT T1.movieid FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'USA' GROUP BY T1.movieid ORDER BY AVG(T1.rating) DESC LIMIT 10 What is the quantity when the seats number was 16 and the class was kss 1913?,"SELECT quantity FROM table_name_67 WHERE seats = 16 AND class = ""kss 1913""" How many documents do not have expense reports?,SELECT count ( * ) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses ) What is the name of the player who is a height of 182?,SELECT player FROM table_name_84 WHERE height = 182 What date were the high assists rondo (5) and the high rebounds rondo (10)?,"SELECT date FROM table_name_18 WHERE high_assists = ""rondo (5)"" AND high_rebounds = ""rondo (10)""" WHAT WAS THE SURFACE MADE OF WHEN THE OPPONENT WAS GEORGE KHRIKADZE?,"SELECT surface FROM table_16741821_8 WHERE opponent = ""George Khrikadze""" How many parks does Atlanta city have?,SELECT count(*) FROM park WHERE city = 'Atlanta'; What is the season of the game which causes the player 'Walter Samuel' to get injured?,SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel' What is the ICAO when the IATA is ika?,"SELECT icao FROM table_name_19 WHERE iata = ""ika""" "How many Watts has a Class of a, and a Frequency of 91.5 fm, and a City of license of elkhart, kansas?","SELECT MIN(watts) FROM table_name_37 WHERE class = ""a"" AND frequency = ""91.5 fm"" AND city_of_license = ""elkhart, kansas""" List countries that have more than one swimmer.,"SELECT nationality , count(*) FROM swimmer GROUP BY nationality HAVING count(*) > 1" Name the series result for season being 1998,"SELECT series AS result FROM table_2554479_2 WHERE season = ""1998""" "What season was Barcelona ranked higher than 12, had more than 96 goals and had more than 26 apps?","SELECT season FROM table_name_59 WHERE apps > 26 AND club = ""barcelona"" AND goals > 96 AND rank > 12" Name the date for pescara,"SELECT date FROM table_name_76 WHERE circuit = ""pescara""" "How many values of powershell (cmdlet) are valid when unix shell is env, export, set, setenv?","SELECT COUNT(powershell__cmdlet_) FROM table_14465871_1 WHERE unix_shell = ""env, export, set, setenv""" What's the slalom when the average time was greater than 99.25?,SELECT AVG(slalom) FROM table_name_5 WHERE average > 99.25 What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91?,SELECT SUM(run_3) FROM table_name_5 WHERE run_1 > 53.75 AND run_2 < 52.91 "Which Score has a Losing Team of sydney roosters, and a Total of 88?","SELECT score FROM table_name_77 WHERE losing_team = ""sydney roosters"" AND total = 88" "What is the minimum shipping charge for ""OVERSEAS - DELUXE""?",SELECT ShipBase FROM ShipMethod WHERE Name = 'OVERSEAS - DELUXE' Show all director names who have a movie in both year 1999 and 2000.,SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999 Which physician was trained in the procedure that costs the most.,SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 What date has yani tseng as the runner (s)-up?,"SELECT date FROM table_name_91 WHERE runner_s__up = ""yani tseng""" Name the languages for cyprus,"SELECT languages FROM table_21133193_1 WHERE member_countries = ""Cyprus""" What are their typical selling prices?,"SELECT T1.typical_selling_price FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" How many shipments were ordered by a customer in Florida?,SELECT COUNT(T1.cust_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.state = 'FL' What was the active period for the pop genre?,"SELECT period_active FROM table_name_87 WHERE genre = ""pop""" Calculate the percentage of bronze medals won by men's basketball players.,SELECT CAST(COUNT(CASE WHEN T4.medal_name = 'Bronze' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN event AS T3 ON T1.event_id = T3.id INNER JOIN medal AS T4 ON T1.medal_id = T4.id WHERE T3.event_name LIKE 'Basketball Men%s Basketball' can you show me a list of player position?,SELECT pPos FROM Tryout What is the size of the smallest crowd that watched a game at Arden Street Oval?,"SELECT MIN(crowd) FROM table_name_32 WHERE venue = ""arden street oval""" How many students at the university earned a score of 90 in 2011?,SELECT COUNT(*) FROM university_year AS T1 INNER JOIN university_ranking_year AS T2 ON T1.university_id = T2.university_id WHERE T2.score = 90 AND T1.year = 2011 How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th?,"SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = ""20' 05.19 112.703mph""" "Among all the rivers finally flows to the sea of 540m in depth, which one has the longest length?",SELECT T2.Name FROM sea AS T1 INNER JOIN river AS T2 ON T2.Sea = T1.Name WHERE T1.Depth = 540 ORDER BY T2.Length DESC LIMIT 1 "What was the date of the finale for the season that premiered on September 22, 1976?","SELECT finale FROM table_name_72 WHERE premiere = ""september 22, 1976""" Find the name of dorms that do not have any amenity.,SELECT dorm_name FROM dorm WHERE dormid NOT IN (SELECT dormid FROM has_amenity) what is the date for game 3?,SELECT date FROM table_name_71 WHERE game = 3 Who was eliminated a person at 18:48?,"SELECT eliminated AS by FROM table_29692554_2 WHERE time = ""18:48""" "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?","SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details != 'Schmidt , Kertzmann and Lubowitz'" Give the full name of the divison that had the most 0-0 games.,SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTAG = 0 AND T1.FTHG = 0 GROUP BY T2.division ORDER BY COUNT(T1.FTAG) DESC LIMIT 1 What are the names and release years for all the songs of the youngest singer?,"SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1" "Awesome! Of these different codes, can you tell me which individual code was used by the largest number of orders?",SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count ( * ) DESC LIMIT 1 What are the different location codes for documents?,SELECT DISTINCT location_code FROM Document_locations Show the names of trains and locations of railways they are in.,"SELECT T2.Name , T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID" How many of the non-sales employees are married?,SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'EM' AND T1.MaritalStatus = 'M' What is the Win % in the Span of 2011–2013 with a Lost of less than 1?,"SELECT AVG(win__percentage) FROM table_name_91 WHERE span = ""2011–2013"" AND lost < 1" "For how many times had the dish ""Chicken gumbo"" appeared on a menu page?",SELECT SUM(CASE WHEN T1.name = 'Chicken gumbo' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id Show the phone number of the sanitarian who was responsible for inspection no.634597.,SELECT T2.phone FROM inspection AS T1 INNER JOIN employee AS T2 ON T1.employee_id = T2.employee_id WHERE T1.inspection_id = 634597 AND T2.title = 'Sanitarian' What are the names of the tourist attractions that can be accessed by bus?,"SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = ""bus""" Location of hemisfair arena had what record?,"SELECT record FROM table_name_43 WHERE location = ""hemisfair arena""" Who was Bob Bryan's partner/s on a hard surface in 2003?,"SELECT partner FROM table_29163303_1 WHERE year = 2003 AND surface = ""Hard""" What is the number of the credit card that Frank-Paul Santangelo used to purchase root beers on 2014/7/7?,SELECT DISTINCT T2.CreditCardNumber FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Frank-Paul' AND T1.Last = 'Santangelo' AND T2.TransactionDate = '2014-07-07' What is the Film with winner Jerome Kern in the 19th Ceremony?,"SELECT film FROM table_name_47 WHERE ceremony = ""19th"" AND name = ""jerome kern""" "Under the category name of ""Coffee & Tea"", mention any 5 business ID , their state and city.","SELECT T2.business_id, T3.state, T3.city FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name = 'Coffee & Tea' LIMIT 5" "What is the primary language used in the film, Black Book?","SELECT main_language_s_ FROM table_name_53 WHERE film_title_used_in_nomination = ""black book""" Whose permanent address is different from his or her current address? List his or her first name.,SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id What was the first year he placed 12th,"SELECT MIN(year) FROM table_name_9 WHERE result = ""12th""" Find the appelations that produce wines after the year of 2008 but not in Central Coast area.,"SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast""" What was the constructor for jo bonnier of 6 rounds?,"SELECT constructor FROM table_name_69 WHERE entrant = ""jo bonnier"" AND rounds = ""6""" What was the 1987 result for the tournament with 1986 result of 3R and 1989 of A?,"SELECT 1987 FROM table_name_81 WHERE 1989 = ""a"" AND 1986 = ""3r""" "What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?","SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name" List the long name of countries with indicator name in 1980.,SELECT DISTINCT T1.LongName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Year = 1980 AND T2.IndicatorName IS NOT NULL How many inhabitants does Sweden have per square kilometer?,"SELECT pop_density_people_km_2 FROM table_24066938_1 WHERE member_state = ""Sweden""" Which movies have 'Deleted Scenes' as a substring in the special feature?,SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%' Show the names of products that are in at least 3 events?,SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT ( * ) > = 3 What is the name of the youngest captain?,SELECT name FROM captain ORDER BY age LIMIT 1 How many members are in each party?,"SELECT T2.party_name , count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id" List all the products with lower than average cost.,SELECT DISTINCT T2.ProductID FROM ProductCostHistory AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.StandardCost < ( SELECT SUM(StandardCost) / COUNT(ProductID) FROM Product ) Show the names of all ships from United Kingdom?,"SELECT Name FROM ship WHERE Nationality = ""United Kingdom""" What is the difference in the number of bad alias between Aguada city and Aguadilla city?,SELECT COUNT(CASE WHEN T2.city = 'Aguada' THEN T1.bad_alias ELSE NULL END) - COUNT(CASE WHEN T2.city = 'Aguadilla' THEN T1.bad_alias ELSE NULL END) AS DIFFERENCE FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code When did Julie gets Validated originally air?,"SELECT original_air_date FROM table_name_84 WHERE title = ""julie gets validated""" Find the name and account balance of the customer whose name includes the letter ‘a’.,"SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%'" Who had the high assists in the game against Memphis?,"SELECT high_assists FROM table_name_13 WHERE team = ""memphis""" What is the average and maximum number of hours students who made the team practiced?,"SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" What are the staff names with job title code Sales Person?,"SELECT T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person""" Name the stadium with final score of 20-10,"SELECT stadium FROM table_name_35 WHERE final_score = ""20-10""" "Give me the product type, name and price for all the products supplied by supplier id 3.","SELECT T2.product_type_code , T2.product_name , T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3" Which Matches have a Rank of 2?,SELECT COUNT(matches) FROM table_name_94 WHERE rank = 2 What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?,"SELECT aug_2008 FROM table_23680576_2 WHERE sep_2008 = ""5.0%""" How much is the total bonus received by sales person and what is the percentage of it against the projected yearly sales quota in 2013?,"SELECT SUM(T1.Bonus) , CAST(SUM(T1.Bonus) AS REAL) * 100 / SUM(T1.SalesQuota) FROM SalesPerson AS T1 INNER JOIN SalesPersonQuotaHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T2.QuotaDate) = '2013'" "When Event has Bubbles of yes, Cancelable of yes, Category of mouse, and a Type of contextmenu what is the Attribute?","SELECT attribute FROM table_name_41 WHERE bubbles = ""yes"" AND cancelable = ""yes"" AND category = ""mouse"" AND type = ""contextmenu""" What is the maximum administrative population of the city with Chinese translation 昆明?,"SELECT MAX(administrative_population__2010_) FROM table_16489766_2 WHERE chinese = ""昆明""" How many businesses in Glendale city that are still running is opened from 8AM to 6PM?,SELECT COUNT(T1.category_name) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Hours AS T4 ON T3.business_id = T4.business_id WHERE T3.city LIKE 'Glendale' AND T4.opening_time LIKE '8AM' AND T4.closing_time LIKE '6PM' Which classroom has the most students?,SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1 "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%' ORDER BY department_id" "What is the lowest attendance on September 3, 1972?","SELECT MIN(attendance) FROM table_name_52 WHERE date = ""september 3, 1972""" Show the most common college of authors of submissions.,SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1 What is the codename for the Core i3-32xxt?,"SELECT codename__main_article_ FROM table_24538587_11 WHERE brand_name__list_ = ""Core i3-32xxT""" Which dish has the longest history?,SELECT name FROM Dish ORDER BY last_appeared - Dish.first_appeared DESC LIMIT 1 Thanks! What is the respective revenues of Hewlett-Packard and Winchester?,"select Name,Revenue from Manufacturers where Revenue<100" "What instrument did the musician with last name ""Heilo"" use in the song ""Le Pop""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Le Pop""" What are the names of the people who have been on the affirmative side of debates?,SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name Which program was launched most recently? Return the program name.,SELECT name FROM program ORDER BY launch DESC LIMIT 1 What circuit is the Sprint Cup series championship?,"SELECT circuit FROM table_name_29 WHERE championship = ""sprint cup series""" List the details of the customers who do not have any policies.,SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id What is the number in season of the episode whose production code is pabf05?,"SELECT _number FROM table_28194879_1 WHERE production_code = ""PABF05""" What was the season number for the episode with the series number 61?,SELECT MAX(season__number) FROM table_11630008_5 WHERE series__number = 61 Tell me professor employee number for course code ACCT-211 ?,SELECT PROF_NUM FROM CLASS where CRS_CODE = 'ACCT-211' What are their names?,SELECT cName FROM College WHERE enr > 18000 who is the vacator whre the district is new jersey 2nd?,"SELECT vacator FROM table_1651764_3 WHERE district = ""New Jersey 2nd""" What player has a no pick position in 1976?,"SELECT player FROM table_name_33 WHERE position = ""no pick"" AND year = 1976" What is the production code for the episode that had 1.32 million U.S. viewers?,"SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = ""1.32""" What are the positions and teams of pilots?,"SELECT POSITION , Team FROM pilot" Who built Warren Booth's car with the Cosworth DFV V8 engine?,"SELECT constructor FROM table_name_88 WHERE engine = ""cosworth dfv v8"" AND driver = ""warren booth""" COuld you list the account names of all customers with the letter G or A in their first or last names?,"SELECT T2.account_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id where T1.customer_first_name like ""%G%"" or T1.customer_first_name like ""%A%"" or T1.customer_last_name like ""%G%"" or T1.customer_last_name like ""%A%""" "How many faculty lines are there in ""San Francisco State University"" in year 2004?","SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = ""San Francisco State University""" What is the project id and detail for the project with at least two documents?,"SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2" How many positions are there for RB1 Motorsports?,"SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = ""RB1 Motorsports""" What is the short description of the crime committed the most by criminals in the least populated community?,"SELECT T3.title FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no GROUP BY T3.title ORDER BY T1.population ASC, T3.fbi_code_no DESC LIMIT 1" How many Jewish legislators do not have facebook?,SELECT COUNT(T3.bioguide_id) FROM ( SELECT T1.bioguide_id FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.facebook IS NULL GROUP BY T1.bioguide_id ) T3 Who is the youngest male?,SELECT name FROM Person WHERE gender = 'male' AND age = ( SELECT min ( age ) FROM person WHERE gender = 'male' ) "Name the successor for election was successfully contested july 30, 1861","SELECT successor FROM table_2417330_4 WHERE reason_for_change = ""Election was successfully contested July 30, 1861""" what game was on may 29,"SELECT result FROM table_name_5 WHERE date = ""may 29""" "Which artist has id ""16""? Provide her or his tag genre.",SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.id = 16 What was the time for the match with Cena? ,"SELECT time FROM table_18438494_3 WHERE wrestler = ""Cena""" Find the max and min grade point for all letter grade?,"SELECT max ( gradepoint ) , min ( gradepoint ) FROM GRADECONVERSION" What rank is aliyya qadi with less than 1421 votes?,"SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = ""aliyya qadi"" AND votes < 1421" How many wins for team nsu and over 2 points?,"SELECT AVG(wins) FROM table_name_54 WHERE team = ""nsu"" AND points > 2" What is the population for the area that has a Hanzi of 延寿县?,"SELECT population__2010_11_01_ FROM table_name_30 WHERE hanzi = ""延寿县""" When did Shakespeare create his work that has 154 scenes?,"SELECT T1.Date, T1.id FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T2.Scene = 154" What is the millisecond cycle for the Fieldbus?,"SELECT sub_millisecond_cycle FROM table_name_28 WHERE ""fieldbus"" = ""fieldbus""" "What red list is in the artiodactyla order and the cervidae family with a Species Authority of odocoileus virginianus zimmermann, 1780?","SELECT red_list FROM table_name_22 WHERE order = ""artiodactyla"" AND family = ""cervidae"" AND species_authority = ""odocoileus virginianus zimmermann, 1780""" what is the name of the branding where the virtual is 13.1,"SELECT branding FROM table_1979203_1 WHERE _virtual_ = ""13.1""" Which free app has the most Negative comments?,SELECT T1.App FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Type = 'Free' AND T2.Sentiment = 'Negative' GROUP BY T1.App ORDER BY COUNT(T2.Sentiment) DESC LIMIT 1 how many employees earn above the average salary?,SELECT count ( * ) FROM Employee WHERE salary > ( SELECT avg ( salary ) FROM Employee ) "What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?","SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = ""02 2"" AND sales__billion_$_ > 113.1" What are the valid from and valid to dates for the card with the number 4560596484842?,"SELECT date_valid_from , date_valid_to FROM Customers_cards WHERE card_number = ""4560596484842""" Name the greatest competition finish with average more than 32.9 and number of dances more than 16,SELECT MAX(competition_finish) FROM table_name_4 WHERE average > 32.9 AND number_of_dances > 16 "Give the object number of the sample which has the relationship of ""lying on"" with object sample no.1 from image no.2345524.",SELECT T2.OBJ1_SAMPLE_ID FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.IMG_ID = 2345524 AND T1.PRED_CLASS = 'lying on' AND T2.OBJ2_SAMPLE_ID = 1 How many airports' names have the word Interanation in them?,SELECT count(*) FROM airports WHERE name LIKE '%International%' What campus has the most degrees conferrred over its entire existence?,SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1 how many people are there whose weight is higher than 85 for each gender?,"SELECT count(*) , sex FROM people WHERE weight > 85 GROUP BY sex" "In the 2008/2009 season one team had 47 tries against, how many games did they win that year?","SELECT won FROM table_13399573_4 WHERE tries_against = ""47""" Which award show nominated Cole Sprouse for the Favorite TV Actor category?,"SELECT award FROM table_name_49 WHERE category = ""favorite tv actor"" AND recipient = ""cole sprouse""" What is the name of Team 2 with a Team 1 of Al Qadsia?,"SELECT team_2 FROM table_name_4 WHERE team_1 = ""al qadsia""" Great! Can you update this list to show the chromosome associated with each enzyme on this list?,"SELECT DISTINCT T1.name , T1.location , T1.product, T1.chromosome FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'" What is the average number of laps with 16 grids?,SELECT AVG(laps) FROM table_name_54 WHERE grid = 16 What college is pick number 268 from?,"SELECT college FROM table_name_44 WHERE pick__number = ""268""" What is the date of the game that ended with a score of 96-89?,"SELECT date FROM table_name_92 WHERE score = ""96-89""" Which team had fewer than 167 points in the 250cc class?,"SELECT team FROM table_name_72 WHERE points < 167 AND class = ""250cc""" "Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?","SELECT name FROM table_name_63 WHERE intra_molecular_structure = ""no"" AND link = ""webserver"" AND comparative = ""no""" "Which Days of the week has a Time of broadcast in january–february, june 2002?","SELECT days_of_the_week FROM table_name_31 WHERE time_of_broadcast = ""january–february, june 2002""" What is the Country of origin for the film directed by George Miller?,"SELECT country FROM table_name_3 WHERE director = ""george miller""" What are the products that people who were born after 2005 complain about?,SELECT DISTINCT T2.Product FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year > 2005 What is the location of business number 1?,SELECT T1.AddressLine1 FROM Address AS T1 INNER JOIN BusinessEntityAddress AS T2 USING (AddressID) WHERE T2.BusinessEntityID = 1 What place did the person who left on day 3 finish in?,"SELECT finished FROM table_name_54 WHERE exited = ""day 3""" "What are the last names of the author of the paper titled ""Binders Unbound""?","SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = ""Binders Unbound""" What is the name/designation for the under development status?,"SELECT name_designation FROM table_name_79 WHERE status = ""under development""" what is the places when for the soviet union with a rank more than 11?,"SELECT SUM(places) FROM table_name_38 WHERE nation = ""soviet union"" AND rank > 11" What is the English title of 餓狼伝説バトルアーカイブズ2?,"SELECT english_title FROM table_name_95 WHERE japanese_title = ""餓狼伝説バトルアーカイブズ2""" Find the first and last names of all the female (sex is F) students who have president votes.,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" Find the major and age of students who do not have a cat pet.,"SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')" How many people attended the game on january 10 with a Score of 3 – 2?,"SELECT COUNT(attendance) FROM table_name_96 WHERE score = ""3 – 2"" AND date = ""january 10""" "Which gymnast had a balance beam larger than 8.687, had a total less than 38.049, had a floor exercise less than 9.462, and a vault less than 9.275?",SELECT gymnast FROM table_name_91 WHERE balance_beam > 8.687 AND total < 38.049 AND floor_exercise < 9.462 AND vault < 9.275 Name the incumbent for alabama 6,"SELECT incumbent FROM table_19753079_4 WHERE district = ""Alabama 6""" How many gallery type attractions are there? | Can you give more info about this ? | How many attractions belong to gallery type?,"SELECT count ( * ) FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code where Attraction_Type_Description = ""gallery""" Which Water has a Metal of contracting?,"SELECT water FROM table_name_72 WHERE metal = ""contracting""" What is the essay title of the project that have the highest total price excluding optional support and who is the biggest donor? Identify the donor and calculate how many percent did he/she donated in the project.,"SELECT T1.title, T3.donor_acctid, CAST(T3.donation_to_project AS REAL) / T2.total_price_excluding_optional_support FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid ORDER BY T3.donation_to_project DESC LIMIT 1" Can you show me the location and year opened for these tracks?,"SELECT Location, Year_Opened FROM track WHERE track_id NOT IN ( SELECT track_id FROM race ) " How many complaints have the client Diesel Galloway filed?,SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Diesel' AND T1.last = 'Galloway' Which episode number saw 1.312 million U.S. Wviewers?,"SELECT no FROM table_29085880_1 WHERE us_viewers__million_ = ""1.312""" What is the weight of the bullet used in a Remington?,"SELECT bullet_weight FROM table_16010376_1 WHERE source = ""Remington""" Show the number of accounts.,SELECT count(*) FROM Accounts What was the score in game 81?,SELECT score FROM table_17311797_10 WHERE game = 81 Which 1990-91 has an average number of 1.035?,SELECT 1990 AS _91 FROM table_name_34 WHERE average = 1.035 What was the race that featured stirling moss winning with a maserati at aintree?,"SELECT race_name FROM table_name_45 WHERE constructor = ""maserati"" AND circuit = ""aintree"" AND winning_driver = ""stirling moss""" What horse was induced in 2011 with a sire of cowboy p-12?,"SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = ""cowboy p-12""" what's the swimsuit where average is 8.670,"SELECT swimsuit FROM table_12094609_1 WHERE average = ""8.670""" And how many companies are there with this type?,SELECT count ( DISTINCT name ) FROM operate_company WHERE Type = 'Subsidiary' What is the ratio of the number of app users that belong to the Securities category to the number of app users that belong to the Finance category?,"SELECT SUM(IIF(T2.category = 'Securities', 1, 0)) / SUM(IIF(T2.category = 'Finance', 1, 0)) AS per FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id" Can you show me the corresponding party id and host id to each theme?,"SELECT T1.party_id , T1.host_id, T3.party_theme FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" What is the average duration of songs that have mp3 format and resolution below 800?,"SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" Who was the entrant before 1988?,SELECT entrant FROM table_name_41 WHERE year < 1988 "Among the calls from California, what percentage are priority 1?",SELECT CAST(SUM(CASE WHEN T1.priority = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.priority) FROM callcenterlogs AS T1 INNER JOIN client AS T2 ON T1.`rand client` = T2.client_id INNER JOIN district AS T3 ON T2.district_id = T3.district_id INNER JOIN state AS T4 ON T3.state_abbrev = T4.StateCode WHERE T4.State = 'California' Please show different types of artworks with the corresponding number of artworks of each type.,"SELECT TYPE, COUNT(*) FROM artwork GROUP BY TYPE" Show all director names who have a movie in the year 1999 or 2000.,SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000 How many contestants did not get voted?,SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes) What company collaborated in SBI-087 for rheumatoid arthritis?,"SELECT collaboration FROM table_name_7 WHERE name = ""sbi-087"" AND indication = ""rheumatoid arthritis""" What is the earliest year that the discus throw event occur?,"SELECT MIN(year) FROM table_name_2 WHERE event = ""discus throw""" March 0.41 in July? ,"SELECT july FROM table_15945862_1 WHERE march = ""0.41""" Show each student's first name and last name.,"SELECT DISTINCT firstname , lastname FROM list" Show all headquarters without a company in banking industry.,SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' "List down the labels' IDs and categories of the app ID ""5758400314709850000"".","SELECT T1.label_id, T2.category FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id WHERE T1.app_id = 5758400314709850000" List the directors of movies that feature a song.,SELECT T2.director FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.song IS NOT NULL GROUP BY T2.director Which line is the Geumjeong tunnel?,"SELECT line FROM table_name_82 WHERE name = ""geumjeong tunnel""" Which airports do not have departing or arriving flights?,SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) What are the different names for each station that has ever had 7 bikes available?,SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7 What is the earliest season with an advertising account manager profile?,"SELECT MIN(season) FROM table_name_38 WHERE profile = ""advertising account manager""" Where was the former private member that was founded in 1891 and left in 1975?,"SELECT location FROM table_name_98 WHERE left = 1975 AND type = ""private"" AND founded = 1891" What is the maximum page size for everything that has more than 3 products listed?,SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3 How many movies are in the list?,SELECT count ( * ) FROM Movie "Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?","SELECT opponents FROM table_name_13 WHERE score_f_a = ""3–0"" AND date = ""31 july 2007""" "When was the most recent game that he partnered with nicklas kulti and they scored 3–6, 7–6, 6–4?","SELECT MAX(date) FROM table_name_19 WHERE partner = ""nicklas kulti"" AND score = ""3–6, 7–6, 6–4""" What other companies are located in Corporativo BBVA Bancomer?,"SELECT T3.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id where T2.name = ""Corporativo BBVA Bancomer"" and T3.name ! = ""General Electric""" "Hello Yes, I'm interested to know which college has two players",SELECT College FROM match_season GROUP BY College HAVING count ( * ) = 2 Where was the cup on 07.02.2009 held?,"SELECT location FROM table_20462111_1 WHERE date = ""07.02.2009""" Which name has notes b and the game of tennis?,"SELECT name FROM table_name_13 WHERE sport = ""tennis"" AND notes = ""b""" What Dutch word has the same meaning as the Greek word πλέω (pléō)?,"SELECT dutch FROM table_name_1 WHERE greek = ""πλέω (pléō)""" Age and sex of Smith Linda? | The age and sex of the student whose last name is Smith and first name is Linda are 18 and F respectively. | What type of game is 'The Vanishing of Eric Calder'?,SELECT GType from Video_games where GName = 'The Vanishing of Eric Calder' "Provide the name, model, sweep volume, and introduced year of the car with the best crash protection.","SELECT T1.car_name, T1.model, T1.displacement / T1.cylinders, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID ORDER BY T1.weight DESC LIMIT 1" Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.,SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000 Wat episode number had 5.46 million viewers?,"SELECT episode__number FROM table_27846651_1 WHERE viewers__millions_ = ""5.46""" "Which operating system did the client End user, ISP have?","SELECT Operating_system FROM web_client_accelerator WHERE client = 'End user, ISP'" "What is the theme, date, and attendance for the exhibition in year 2004?","SELECT T2.theme , T1.date , T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004" "What is City, when IATA is ""LAO""?","SELECT city FROM table_name_75 WHERE iata = ""lao""" What is the total laps for grid 19?,SELECT COUNT(laps) FROM table_name_24 WHERE grid = 19 And what is his occupation?,"SELECT occupation from player WHERE Player_name LIKE ""Jim%""" Hiw many losses have 30 for the goals with points greater than 24?,SELECT COUNT(losses) FROM table_name_71 WHERE goals_for = 30 AND points > 24 "Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?","SELECT MAX(year) FROM table_name_16 WHERE next_highest_spender = ""aarp"" AND us_cham_spending = ""$39,805,000"" AND us_cham_rank > 1" what are the different address type?,SELECT DISTINCT address_type FROM customer_addresses Which GNU/Linux had no haiku and a client of airdc++?,"SELECT gnu_linux FROM table_name_60 WHERE haiku = ""no"" AND client = ""airdc++""" "Return the account details with the greatest value, as well as those that include the character 5.","SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE ""%5%""" "Among undergraduate students, list the name of the course with the highest student satisfaction.",SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.type = 'UG' ORDER BY T2.sat DESC LIMIT 1 How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles,"SELECT COUNT(womens_doubles) FROM table_14903999_1 WHERE mixed_doubles = ""Broddi Kristjánsson Drífa Harðardóttir""" How many cars are there on train no.1?,SELECT COUNT(id) FROM cars WHERE train_id = 1 "What competition has a result of W on June 30, 1966?","SELECT competition FROM table_name_31 WHERE result = ""w"" AND date = ""june 30, 1966""" What is the most widely used shipping company in the United States of America?,SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.ShipCountry = 'USA' GROUP BY T2.CompanyName ORDER BY COUNT(T2.CompanyName) DESC LIMIT 1 What was the record on November 1?,"SELECT record FROM table_17288869_5 WHERE date = ""November 1""" What are the names of the campus that have more faculties in 2002 than the maximum number in Orange county?,"SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = ""Orange"")" What are the names of the songs whose rating is below the rating of all songs in English?,SELECT song_name FROM song WHERE rating < (SELECT min(rating) FROM song WHERE languages = 'english') What is the top speed of a 4-speed automatic with production in 2002-2005?,"SELECT top_speed FROM table_1857216_1 WHERE transmission = ""4-speed automatic"" AND production = ""2002-2005""" What address was the document with id 4 mailed to?,SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 4; What Event is at the Time 1:16?,"SELECT event FROM table_name_70 WHERE time = ""1:16""" What is the pick number for the player(s) drafted in round 8?,"SELECT pick__number FROM table_name_31 WHERE round = ""round 8""" "What are the different reviewer names, movie titles, and stars for every rating where the reviewer had the same name as the director?","SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name" What are all the different food allergies?,"SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = ""food""" What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.,"SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country" List down the keyword and crew member's name for episode id S20-E1.,"SELECT T1.keyword, T2.person FROM Keyword AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.episode_id = 'S20-E1';" Who is the player with a score of 68-71=139?,SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139 "Write down the ID, active status and city of the business which are in CA state.","SELECT business_id, active, city FROM Business WHERE state = 'CA' AND active = 'true'" Who is the person whose age is below 30?,SELECT name FROM Person WHERE age < 30 "Among the competitors of the 1994 Winter Olympic Game, what is the percentage of those from Finland?",SELECT CAST(COUNT(CASE WHEN T5.region_name = 'Finland' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T3.id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id INNER JOIN person_region AS T4 ON T3.id = T4.person_id INNER JOIN noc_region AS T5 ON T4.region_id = T5.id WHERE T1.games_name = '1994 Winter' Show the name of the sport with the most events.,SELECT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id GROUP BY T1.sport_name ORDER BY COUNT(T2.event_name) DESC LIMIT 1 "What is the lowest against for games played in the stade colombes, paris venue?","SELECT MIN(against) FROM table_name_51 WHERE venue = ""stade colombes, paris""" What was the nationality of the player ranking 3?,"SELECT nationality FROM table_name_13 WHERE ranking = ""3""" List the names of people that are not perpetrators.,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM perpetrator); What date is the record 4-3-0?,"SELECT date FROM table_name_94 WHERE record = ""4-3-0""" "Find the average age of students who live in the city with code ""NYC"" and have secretary votes in the spring election cycle.","SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" How many cars were released in the USA in 1981?,SELECT COUNT(*) FROM production AS T1 INNER JOIN country AS T2 ON T1.country = T2.origin WHERE T2.country = 'USA' AND T1.model_year = 1981 How many losses have points against less than 15?,SELECT COUNT(lost) FROM table_name_1 WHERE against < 15 Name the Venue which has a Score of 8 – 1?,"SELECT venue FROM table_name_61 WHERE score = ""8 – 1""" What is the margin of victory when the tournament is konica san jose classic?,"SELECT margin_of_victory FROM table_name_23 WHERE tournament = ""konica san jose classic""" how many screen modes on the table,select count ( * ) from screen_mode "What nationality is mark eaton, center position?","SELECT nationality FROM table_name_51 WHERE position = ""center"" AND player = ""mark eaton""" Show the maximum share count of transactions where the amount is smaller than 10000,SELECT max(share_count) FROM TRANSACTIONS WHERE amount_of_transaction < 10000 Describe category name which had above 10% in comparing with all business and categories.,SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id GROUP BY T2.category_id HAVING COUNT(T2.business_id) > ( SELECT COUNT(T3.business_id) FROM Business_Categories AS T3 ) * 0.1 Name the Report has a Name of lyon grand prix?,"SELECT report FROM table_name_70 WHERE name = ""lyon grand prix""" What is the Time/Retired for less than 52 laps in grid 19?,SELECT time_retired FROM table_name_52 WHERE laps < 52 AND grid = 19 Who was the Manchester performer of Lisa Davina Phillip's character?,"SELECT original_manchester_performer FROM table_22460085_1 WHERE original_west_end_performer = ""Lisa Davina Phillip""" "Who was the director of the film with the original title of ""The Patience Stone""? ","SELECT director FROM table_17155250_1 WHERE original_title = ""The Patience Stone""" "Among the users who uses a vivo device, how many of them are female and under 30?",SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T2.phone_brand = 'vivo' AND T1.age < 30 how many student of there,SELECT count ( * ) from student Which Record has a Score of 105-115?,"SELECT record FROM table_name_91 WHERE score = ""105-115""" Who drove the dodge with a car # less than 5?,"SELECT driver FROM table_name_42 WHERE car__number < 5 AND make = ""dodge""" What is the area of drummond village?,"SELECT MAX(area_km_2) FROM table_name_45 WHERE status = ""village"" AND official_name = ""drummond""" When the match lasted 2:16 how was it decided?,"SELECT method FROM table_name_12 WHERE time = ""2:16""" What are the meanings of the flag whose name transliterates to dvojka?,"SELECT meaning FROM table_29997112_3 WHERE transliteration = ""dvojka""" "Which opponent had 38,642 attendance?","SELECT opponent FROM table_name_69 WHERE attendance = ""38,642""" "What is the name, address, and number of students in the departments that have the 3 most students?","SELECT T2.dept_name , T2.dept_address , count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3" "From 1962 to 2011, how many coaches received both NBA and ABA awards?",SELECT COUNT(DISTINCT coachID) FROM awards_coaches WHERE year BETWEEN 1962 AND 2011 AND award = 'ABA Coach of the Year' AND coachID IN ( SELECT coachID FROM awards_coaches WHERE year BETWEEN 1962 AND 2011 AND award = 'NBA Coach of the Year' ) "How many wins did he have when he had $95,180 in winnings?","SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = ""$95,180""" Than what is it's typical selling price?,"SELECT typical_selling_price FROM products where product_name = ""laurel""" "What is the lowest attendance on October 3, 1965?","SELECT MIN(attendance) FROM table_name_17 WHERE date = ""october 3, 1965""" What is the name of the ship with the largest tonnage?,SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1 Tell me the least amount of democratic colation,SELECT MIN(democratic_coalition) FROM table_15306124_1 "What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?","SELECT place_of_birth FROM table_name_65 WHERE elevator = ""lucius iii"" AND cardinalatial_title = ""deacon of s. giorgio in velabro""" Flags of ships not steered by any captain with Midshipman rank?,SELECT flag FROM ship WHERE ship_id NOT IN ( SELECT ship_id FROM captain WHERE rank = 'Midshipman' ) What is the id and detail of the vehicle used in lessons for most of the times?,"SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1" What is the name of the most followed list?,SELECT list_title FROM lists ORDER BY list_followers DESC LIMIT 1 What college did Jim Bennett attend?,"SELECT college FROM table_26996293_1 WHERE player = ""Jim Bennett""" how about the number of checking accounts?,select count ( * ) from checking "What years does Kakahi school, with a decile of 3, have?","SELECT years FROM table_name_9 WHERE decile = 3 AND name = ""kakahi school""" "WhichScore has a Location Attendance of seattle center coliseum 11,497?","SELECT score FROM table_name_15 WHERE location_attendance = ""seattle center coliseum 11,497""" Which winery is the wine that has the highest score from?,SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1 What country has a to par larger than 5 and a player John Mahaffey?,"SELECT country FROM table_name_38 WHERE to_par > 5 AND player = ""john mahaffey""" How was Sammy Lee's team doing on the table before being replaced?,"SELECT position_in_table FROM table_name_49 WHERE outgoing_manager = ""sammy lee""" "who is the constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen?","SELECT constructor FROM table_name_62 WHERE laps < 68 AND grid > 20 AND driver = ""thierry boutsen""" Ok. Can you show me the models produced by Nokia Corporation?,"SELECT Hardware_Model_name FROM phone where Company_name = ""Nokia Corporation""" The Fall Nationals has what sessions?,"SELECT session FROM table_name_84 WHERE event = ""fall nationals""" What was the attendance at the Fitzroy home game?,"SELECT SUM(crowd) FROM table_name_36 WHERE home_team = ""fitzroy""" Which label has a catalog of y8hr 1006 in 1972?,"SELECT label FROM table_name_91 WHERE catalog = ""y8hr 1006"" AND date = ""1972""" "If the Venue was princes park, which Date did the game take place on?","SELECT date FROM table_name_58 WHERE venue = ""princes park""" List the movie titles and associated songs directed by Ron Clements.,"SELECT T1.movie_title, T1.song FROM characters AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Ron Clements'" Please list the names of the Olympic games that were held in London.,SELECT T3.games_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'London' which friend of zachs has the longest year relationship?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = ( SELECT max ( YEAR ) FROM PersonFriend WHERE name = 'Zach' ) "From the trip record, find the number of unique bikes.",SELECT count(DISTINCT bike_id) FROM trip How many flights from Dallas to Santa Ana departed on time?,SELECT COUNT(*) FROM Airlines WHERE DEST = 'SNA' AND ORIGIN = 'DFW' AND DEP_DELAY = 0 What is the weeks rank for the episode with the production code 1alf05? ,"SELECT MAX(rank__week_) FROM table_26198709_1 WHERE production_code = ""1ALF05""" "Find the number of papers published by the institution ""University of Pennsylvania"".","SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Pennsylvania""" What was the Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching?,"SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = ""spvgg unterhaching""" Who was the away team that had attendance under 2614 and a home team of Victoria?,"SELECT away FROM table_name_69 WHERE attendance < 2614 AND home = ""victoria""" What pick number was marc deschamps?,"SELECT pick__number FROM table_2897457_5 WHERE player = ""Marc Deschamps""" "What is the elevation of Vanuatu, when the rank is smaller than 3?","SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = ""vanuatu"" AND rank < 3" Show the hometowns shared by people older than 23 and younger than 20.,SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20 What grid has 2 laps?,"SELECT grid FROM table_name_93 WHERE laps = ""2""" How many users participated in the mental health survey for 2014?,SELECT COUNT(DISTINCT T1.UserID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2014' When is the rhel release date when scientific linux release is 3.0.4,"SELECT rhel_release_date FROM table_1500146_1 WHERE scientific_linux_release = ""3.0.4""" Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.,"SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1" "For each country and airline name, how many routes are there?","SELECT T1.country, T1.name, count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country, T1.name" Could you give the list of all projects along with the names of scientists that worked on them? | Do you mean a list of the names of all the projects and the names of scientists that worked on them? | Yes Please!,"SELECT T3.name,T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN" What's the percentage of people in Cayman Islands speak English?,SELECT T1.Percentage FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Cayman Islands' AND T1.Name = 'English' "What is the last name of the professor whose office is located in DRE 102, and when were they hired?","SELECT T1.emp_lname , T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'" "Great! Can you tell me what the total number of papers are for each of these author IDs?...in other words, how many papers have each of these authors published?","SELECT authID,count ( * ) from Authorship group by authID" "What start has a year later than 2010, and chip ganassi racing as the team?","SELECT start FROM table_name_17 WHERE year > 2010 AND team = ""chip ganassi racing""" "Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?","SELECT time_retired FROM table_name_78 WHERE laps < 14 AND rider = ""darren barton""" What are the names of the schools with the top 3 largest class sizes?,SELECT cName FROM college ORDER BY enr DESC LIMIT 3 When mcg is the Venue what's the Away team?,"SELECT away_team FROM table_name_99 WHERE venue = ""mcg""" Which tournament had Richard Krajicek as a finalist?,"SELECT tournament FROM table_name_85 WHERE finalist = ""richard krajicek""" "What is the project detail for the project with document ""King Book""?","SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = ""King Book""" Find the government form name and total population for each government form whose average life expectancy is longer than 72.,"SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72" What is the company name of Fabrizio Buonocore?,"SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Name = ""Fabrizio Buonocore""" Who's leading in the general classification in stage 1a?,"SELECT general_classification FROM table_12261714_2 WHERE stage = ""1a""" What is the total pages of Wikipedia in Catalan language?,SELECT pages FROM langs WHERE lang = 'ca' Where was the high school of the player who had the most rebounds in the NBA allstar history?,SELECT T2.highSchool FROM player_allstar AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID ORDER BY T1.rebounds DESC LIMIT 1 What were their denominations?,SELECT denomination FROM school WHERE Founded > 1900 Name the number of ranks for international tourist arrivals being 6.2 million,"SELECT COUNT(rank) FROM table_14752049_5 WHERE international_tourist_arrivals__2011_ = ""6.2 million""" What is the total Hours Played of all Students?,SELECT sum ( hours_played ) FROM Plays_games When 8 is the public and the result is safe what is the highest rank?,"SELECT MAX(rank) FROM table_19744915_18 WHERE result = ""Safe"" AND public = 8" What is the card type code with most number of cards?,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1 What are the last names for all scholarship students?,SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y' And the amount of courses?,SELECT count ( DISTINCT t1.course_id ) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id What are the names of the countries with no car makers?,SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country; Which Japanese name has a Korean name ² of 경칩 (驚蟄) gyeongchip?,"SELECT japanese_name FROM table_name_8 WHERE korean_name_² = ""경칩 (驚蟄) gyeongchip""" When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?,"SELECT MAX(year) FROM table_14319023_2 WHERE mixed_doubles = ""Didit Juang Indrianto Yayu Rahayu""" "Find the name of department that offers the class whose description has the word ""Statistics"".",SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.,SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2 How many engineer visits are required at most for a single fault log? List the number and the log entry id.,"SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1" What is the greatest length of the border between 2 independent countries?,SELECT MAX(T3.Length) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Independence IS NOT NULL Name the partner for opponents of františek čermák michal mertiňák,"SELECT partner FROM table_name_46 WHERE opponents_in_the_final = ""františek čermák michal mertiňák""" Who had a high rebound where the associated record is 11-13?,"SELECT high_rebounds FROM table_17104539_10 WHERE record = ""11-13""" Name the phoneme for realizaiton of [ɪj],"SELECT phoneme FROM table_name_13 WHERE realization = ""[ɪj]""" Who is directed by The Sound of Music?,SELECT director FROM Movie WHERE title = 'The Sound of Music' How many orders of more than 10 items have been returned?,SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity > 10 AND l_returnflag = 'R' How many different students are involved in sports?,SELECT count(DISTINCT StuID) FROM Sportsinfo what is the song name of tagore,SELECT song_name from song where genre_is = 'tagore' What is the name of the department with an instructure who has a name like 'Soisalon'?,SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' Find the number of times ROY SWEAZY has reserved a room.,"SELECT count(*) FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY"";" What is the earliest year a song with a position less than 1 has?,SELECT MIN(year) FROM table_name_5 WHERE position < 1 Who is the oldest captain?,SELECT name FROM captain order by age desc limit 1 How many kinds of products did order No. 10252 contain?,SELECT COUNT(t.productCode) FROM orderdetails t WHERE t.orderNumber = '10252' "What is the start source of the irl country, which ended on 13 April?","SELECT start_source FROM table_name_7 WHERE country = ""irl"" AND ended = ""13 april""" "Where was the game played on January 23, 2008?","SELECT location FROM table_name_8 WHERE date = ""january 23, 2008""" "What round had a result of 6–7 (6–8) , 1–6?","SELECT round FROM table_name_83 WHERE result = ""6–7 (6–8) , 1–6""" What is the 2010 Lukoil oil prodroduction when in 2009 oil production 21.662 million tonnes?,"SELECT 2010 FROM table_name_25 WHERE 2009 = ""21.662""" What is the transfer window when moving to alianza atlético by the name of v. zapata?,"SELECT transfer_window FROM table_name_76 WHERE moving_to = ""alianza atlético"" AND name = ""v. zapata""" What was the score for the game with a record of 11-22 and a H/A/N of A?,"SELECT score FROM table_name_60 WHERE h_a_n = ""a"" AND record = ""11-22""" How many total team penalties are there when cross country penalties is 30.40?,"SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = ""30.40""" "Which Position player was born June 30, 1981?","SELECT position FROM table_name_90 WHERE birthdate = ""june 30, 1981""" Give the ids of documents that have between one and two paragraphs.,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2 Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?,"SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= ""1975-01-01"" AND T1.date_order_placed <= ""1976-01-01""" Name the title that aired on 5 august 1967,"SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = ""5 August 1967""" What are the committee names for the counties with population smaller than 100000?,SELECT T2.Committee FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 Find the number of scientists involved for the projects that require more than 300 hours.,"SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name" What is terry's record when he fights julio paulino?,"SELECT record FROM table_name_21 WHERE opponent = ""julio paulino""" "Find the id of the item whose title is ""orange"".","SELECT i_id FROM item WHERE title = ""orange""" List the 3 highest salaries of players on ATL in 2001.,"SELECT salary FROM salary WHERE YEAR = 2001 and team_id = ""ATL"" ORDER BY salary DESC LIMIT 3" What is the number of starts for 1987?,SELECT COUNT(starts) FROM table_13026799_3 WHERE year = 1987 Which country does Ranchi city belong to?,SELECT T2.Country_Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.Country_Id = T2.Country_Id WHERE T1.City_Name = 'Ranchi' What is the phone number of the station located at 53 Dayton Road?,"SELECT phone FROM table_name_46 WHERE address = ""53 dayton road""" What is the lowest tier for a postseason result of quarterfinalist?,"SELECT MIN(tier) FROM table_name_68 WHERE postseason = ""quarterfinalist""" How many numbers were recorded under Obama when he had 29.9% voters?,"SELECT COUNT(obama_number) FROM table_20693870_1 WHERE obama_percentage = ""29.9%""" "What are the name, independence year, and surface area of the country with the smallest population?","SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1" What are the staff ids and genders of all staffs whose job title is Department Manager?,"SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Department Manager""" Count the number of distinct player positions.,SELECT count(DISTINCT POSITION) FROM player "Which To par has a Country of united states, and a Player of duffy waldorf?","SELECT to_par FROM table_name_22 WHERE country = ""united states"" AND player = ""duffy waldorf""" List the sources for the Net Migration in South American countries in 2002.,SELECT T2.Source FROM CountryNotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode INNER JOIN Country AS T3 ON T1.Countrycode = T3.CountryCode INNER JOIN SeriesNotes AS T4 ON T2.SeriesCode = T4.Seriescode WHERE T4.Year LIKE '%2002%' AND T2.IndicatorName = 'Net migration' What is the tries for when 52 was the tries against?,"SELECT tries_for FROM table_name_89 WHERE tries_against = ""52""" What was the total opponents points for the game were the Oilers scored 21?,SELECT opponents FROM table_15986020_3 WHERE oilers_points = 21 how many purchases did each member make?,"SELECT T1.member_id, count ( * ) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id group by T1.member_id" Wonderful! Can you tell me what is the total amount of money requested by the people who ARE entrepreneurs?,SELECT sum ( money_requested ) from entrepreneur Show the names and heights of buildings with at least two institutions founded after 1880.,"SELECT T1.name , T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING count(*) >= 2" what is the country when the score is 71-65-69=205?,SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205 What visiting team played on October 18?,"SELECT visiting_team FROM table_name_36 WHERE date = ""october 18""" How many candidates ran in the election where Mike Doyle was the incumbent? ,"SELECT COUNT(candidates) FROM table_1341453_40 WHERE incumbent = ""Mike Doyle""" What is the first and last name of the oldest employee?,"SELECT emp_fname, emp_lname FROM employee ORDER BY emp_dob LIMIT 1" List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.,"SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;" "What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143?",SELECT AVG(preliminaries) FROM table_name_65 WHERE swimsuit < 9.297 AND evening_gown = 9.617 AND interview > 9.143 Give the names of the courses with at least five enrollments.,SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5 What is the lowest rank for Chris Brown with react greater than 0.244?,"SELECT MIN(rank) FROM table_name_44 WHERE athlete = ""chris brown"" AND react > 0.244" Show the names of schools with only girls?,SELECT School FROM school WHERE Boys_or_Girls = 'Girls' Can you show me which bank branch provided the highest number of loans to customers with credit scores below 100?,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum ( T1.amount ) DESC LIMIT 1 What are the titles of all movies that have rating star is between 3 and 5?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 What are the lowest points in 2004?,SELECT MIN(points) FROM table_name_96 WHERE year = 2004 How many employees are in the circulation history with the document id 1?,SELECT COUNT ( employee_id ) FROM circulation_history WHERE document_id = 1 "If the equation is 0 × 9² + 3 × 9 + 3, what is the result?","SELECT MIN(result) FROM table_17265535_7 WHERE equation = ""0 × 9² + 3 × 9 + 3""" "Hello, how many students are over 18?",SELECT count ( * ) from student where age > 18 Find the number of employees whose title is IT Staff from each city?,"SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city" What type of Competition has a Goal of 3?,SELECT competition FROM table_name_84 WHERE goal = 3 Provide the Instagram username of the legislator named Benjamin Hawkins.,SELECT T1.instagram FROM `social-media` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name = 'Benjamin' AND T2.last_name = 'Hawkins' "Give the name of the 4-year public school in ""ID"" with the lowest graduation 100 value.",SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'ID' AND T1.level = '4-year' AND T1.control = 'Public' GROUP BY T1.chronname ORDER BY SUM(T1.grad_100_value) ASC LIMIT 1 Give the ids of documents that have expenses and contain the letter s in their names.,SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' What is the Home team with an Away team that is oxford united?,"SELECT home_team FROM table_name_87 WHERE away_team = ""oxford united""" How many people have a vl type in a region greater than 3?,"SELECT SUM(population) FROM table_name_49 WHERE type = ""vl"" AND region > 3" Calculate average price for all tracks,SELECT avg ( UnitPrice ) FROM track "List the order numbers and product names which were ordered on 6th June, 2018.","SELECT DISTINCT OrderNumber, `Product Name` FROM ( SELECT IIF(T2.OrderDate = '6/6/18', T2.OrderNumber, NULL) AS ""OrderNumber"" , IIF(T2.OrderDate = '6/6/18', T1.`Product Name`, NULL) AS ""Product Name"" FROM Products T1 INNER JOIN `Sales Orders` T2 ON T2._ProductID = T1.ProductID ) WHERE OrderNumber IS NOT NULL AND `Product Name` IS NOT NULL" How many counties correspond to each police force?,"SELECT Police_force , COUNT(*) FROM county_public_safety GROUP BY Police_force" "Among all the active customers, how many of them live in Arlington?",SELECT COUNT(T2.customer_id) FROM address AS T1 INNER JOIN customer AS T2 ON T1.address_id = T2.address_id INNER JOIN city AS T3 ON T1.city_id = T3.city_id WHERE T2.active = 1 AND T3.city = 'Arlington' How many roles are in that club?,select count ( position ) from member_of_club where clubid = ( SELECT T2.clubid from club as T1 join member_of_club as T2 on T1.clubid = T2.clubid group by T2.clubid order by count ( * ) desc limit 1 ) Calculate the average number of disabled female students enrolled in UCI.,"SELECT CAST(SUM(IIF(T1.school = 'uci' AND T4.name IS NULL, 1, 0)) AS REAL) / COUNT(T1.name) FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name INNER JOIN person AS T3 ON T1.name = T3.name LEFT JOIN male AS T4 ON T3.name = T4.name" Find the album id of accept? | The album ids of the artist named 'Accept' are 2 and 3. | How many artists in this table?,SELECT count ( distinct t1.ArtistId ) FROM ARTIST as t1 join ALBUM as t2 on t1.artistid = t2.artistid WHERE t1.name = 'Accept' "Other than zero, what is the lowest price paid by a customer for an order?",SELECT MIN(price) FROM order_line WHERE price <> 0 What of their least expensive product?,"SELECT T1.Name , min ( T1.Price ) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" Tell me the named for latitude of 6.4,SELECT named AS after FROM table_name_61 WHERE latitude = 6.4 "Which Losses has a Wins of 6, and an Against smaller than 1741?",SELECT MIN(losses) FROM table_name_56 WHERE wins = 6 AND against < 1741 What is the lowest grid that Paul Tracy had when he had over 4 points?,"SELECT MIN(grid) FROM table_name_67 WHERE name = ""paul tracy"" AND points > 4" "What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?","SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC" What years were actress Nadine Garner on the show?,"SELECT tenure FROM table_name_75 WHERE actor_actress = ""nadine garner""" Who write episode number 48 in the series?,"SELECT written_by FROM table_2453243_5 WHERE no_in_series = ""48""" How many donations from teachers were done in the state of Colorado?,SELECT COUNT(donationid) FROM donations WHERE is_teacher_acct = 't' AND donor_state = 'CO' What are all info of students who registered courses but not attended courses?,SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance) What are the names of people in ascending order of weight?,SELECT Name FROM People ORDER BY Weight How many motorcycles have been ordered in 2004?,"SELECT SUM(t2.quantityOrdered) FROM orders AS t1 INNER JOIN orderdetails AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN products AS t3 ON t2.productCode = t3.productCode WHERE t3.productLine = 'motorcycles' AND STRFTIME('%Y', t1.orderDate) = '2004'" Find the id and name of customers whose address contains WY state and do not use credit card for payment.,"SELECT customer_id , customer_name FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code != ""Credit Card""" "Tell me the launched for august 31, 1964","SELECT launched FROM table_name_23 WHERE commissioned = ""august 31, 1964""" What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?,SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock' "On February 26, who was the leading scorer?","SELECT leading_scorer FROM table_name_30 WHERE date = ""february 26""" List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?,"SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000" What is the Place of the Player with a To par of +3 and Score of 73-70-73=216?,"SELECT place FROM table_name_45 WHERE to_par = ""+3"" AND score = 73 - 70 - 73 = 216" When was Mario Elie picked in a round before 7?,"SELECT MAX(pick) FROM table_name_75 WHERE player = ""mario elie"" AND round < 7" What was the Tie no when the Home team was carshalton athletic?,"SELECT tie_no FROM table_name_50 WHERE home_team = ""carshalton athletic""" Say the field with a result of w 12-11,"SELECT field FROM table_name_43 WHERE result = ""w 12-11""" what Area has the frequency of 100.3 and an On-air ID of yass fm?,"SELECT area_served FROM table_name_94 WHERE frequency = ""100.3"" AND on_air_id = ""yass fm""" What was the year of previous participation for the school in the Kagoshima prefecture?,"SELECT year_of_previous_participation FROM table_2518850_4 WHERE prefecture = ""Kagoshima""" What type has a population of 370?,SELECT type FROM table_name_77 WHERE population = 370 On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s?,"SELECT date FROM table_name_11 WHERE match < 14 AND ground = ""h"" AND opponent = ""aston villa under 18s""" What is the original air date for the episode written by Bob Goodman?,"SELECT original_airdate FROM table_16581695_2 WHERE written_by = ""Bob Goodman""" Find the number of universities that have over a 20000 enrollment size for each affiliation type.,"SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation" What is the rear sight type on the model with the acr muzzle brake device? ,"SELECT rear_sight_type FROM table_19901_1 WHERE muzzle_device = ""ACR muzzle brake""" who is the founder where date is c. 1900,"SELECT founder FROM table_11256021_1 WHERE date = ""c. 1900""" What event has unknown as the days held.?,"SELECT event FROM table_name_98 WHERE days_held = ""unknown""" what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?,"SELECT employee__real_name_ FROM table_name_9 WHERE pick__number > 10 AND brand__to_ = ""raw""" What about employees who don't work with employees in those departments?,SELECT * FROM employees WHERE department_id NOT IN ( SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200 ) what is the date when the home is st. louis?,"SELECT date FROM table_name_30 WHERE home = ""st. louis""" "What is the homepage address for paper ""Energy-efficiency bounds for noise-tolerant dynamic circuits""?",SELECT T2.HomePage FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Energy-efficiency bounds for noise-tolerant dynamic circuits' yes | Please clarify which one do you need | I need the Checking balance,SELECT balance FROM checking WHERE custid = 2 "Find the last name of the staff whose email address contains ""wrau"".","SELECT last_name FROM staff WHERE email_address LIKE ""%wrau%""" "How many Yelp_Business falls under the category of ""Shopping""?",SELECT COUNT(T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name LIKE 'Shopping' What is the religion of current legislator Sherrod Brown?,SELECT religion_bio FROM current WHERE official_full_name = 'Sherrod Brown' What were the round results when Hanne Skak Jensen faced Austria?,"SELECT result FROM table_25505246_7 WHERE against = ""Austria""" Would you please show me the ids of all employees who do destroy any documents?,SELECT employee_id FROM Employees as t1 join Documents_to_be_destroyed as t2 on t1.Employee_ID = t2.Destroyed_by_Employee_ID What are the statement id and statement detail for the statement that has the most corresponding accounts?,"SELECT T1.statement_id , T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1" Find the number of scientists who are not assigned to any project.,SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) At what latitude is the Thomas Kemper brand beer consumed the most?,SELECT T3.Latitude FROM rootbeer AS T1 INNER JOIN rootbeerbrand AS T2 ON T1.BrandID = T2.BrandID INNER JOIN geolocation AS T3 ON T1.LocationID = T3.LocationID WHERE T2.BrandName = 'Thomas Kemper' GROUP BY T3.Latitude ORDER BY COUNT(T1.BrandID) DESC LIMIT 1 "Of the faculty members in building Barton, how many are in each rank?","SELECT rank, count ( * ) FROM FACULTY WHERE Building = ""Barton"" group by rank" What are the records when Elzbieta Urbanczik competed?,"SELECT record FROM table_14884844_2 WHERE athletes = ""Elzbieta Urbanczik""" how manty editors are there?,SELECT COUNT ( Author_or_Editor ) from book_club "What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950?","SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE single = ""$8,351– $33,950""" What was the place for the celebrity whose aggregate was 35? ,SELECT place FROM table_25931938_1 WHERE aggregate = 35 how many times is there more than 0 draws and more than 0 losses?,SELECT COUNT(played) FROM table_name_5 WHERE drawn > 0 AND lost > 0 "What is the total number of legislators with ""John"" as their first name?",SELECT COUNT(*) FROM current WHERE first_name = 'John' List all document ids with at least two paragraphs.,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2 "When was the game that had 58,025 people in attendance?","SELECT date FROM table_name_26 WHERE attendance = ""58,025""" What is the ratio of having the best to worse elite user in 2013?,"SELECT CAST(SUM(CASE WHEN T1.user_average_stars = 1 THEN 1 ELSE 0 END) AS REAL) / COUNT(T2.user_id) , SUM(CASE WHEN T1.user_average_stars = 5 THEN 1 ELSE 0 END) * 1.0 / COUNT(T2.user_id) FROM Users AS T1 INNER JOIN Elite AS T2 ON T1.user_id = T2.user_id WHERE T2.year_id = 2013" What are different nationalities of people and the corresponding number of people from each nation?,"SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality" Name of ships not steered by by any captain with Midshipman rank?,SELECT name FROM ship WHERE ship_id NOT IN ( SELECT ship_id FROM captain WHERE rank = 'Midshipman' ) What is the lowest number of games drawn associated with over 39 games played?,SELECT MIN(drawn) FROM table_name_39 WHERE played > 39 Show name and salary for all employees sorted by salary.,"SELECT name , salary FROM Employee ORDER BY salary" What is the lowest attendance on November 18?,"SELECT MIN(attendance) FROM table_name_94 WHERE date = ""november 18""" What team was the away team when the home team was Hereford United?,"SELECT away_team FROM table_name_32 WHERE home_team = ""hereford united""" "What is the language for film titled ""CHILL LUCK""?",SELECT T2.`name` FROM film AS T1 INNER JOIN `language` AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'CHILL LUCK' what is the middle name of teacher id 1?,SELECT T1.middle_name FROM Teachers AS T1 WHERE T1.teacher_id = 1 Return the id of the department with the fewest staff assignments.,SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1 What was the Rockies record at their game that had a loss of Hernandez (3–5)?,"SELECT record FROM table_name_21 WHERE loss = ""hernandez (3–5)""" What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?,SELECT MIN(cuts_made) FROM table_name_63 WHERE top_25 < 6 AND wins < 0 "What shows for playing when the opponent was Real España, in the 2012–13 season?","SELECT playing_for FROM table_name_76 WHERE opponent = ""real españa"" AND season = ""2012–13""" Show me the details of the body builders | Which information would you like to know about the body builders? | Heights of the body builders,SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID In which department Mr. Mird work for?,SELECT dept_name FROM instructor where name = 'Mird' which player has 11 tries?,"SELECT player FROM table_name_68 WHERE tries = ""11""" How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.,"SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1" Who had a time of 56.07?,SELECT name FROM table_name_21 WHERE time = 56.07 What is the highest average of the contestant from Texas with an evening gown larger than 8.875?,"SELECT MAX(average) FROM table_name_57 WHERE state = ""texas"" AND evening_gown > 8.875" What is the average amount of items ordered in each order?,SELECT avg(order_quantity) FROM order_items What are the names of all instructors who advise students in the math depart sorted by total credits of the student.,SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?,"SELECT second FROM table_name_78 WHERE lead = ""sarah macintyre (jr) anne laird (w)""" "How many events have each participants attended? List the participant id, type and the number.","SELECT T1.Participant_ID , T1.Participant_Type_Code , count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_ID" How many people ha Romanian as their mother tongue in 2006?,"SELECT MAX(population__2006_) FROM table_name_12 WHERE mother_tongue = ""romanian""" What company collaborated in non-hodgkin lymphoma?,"SELECT collaboration FROM table_name_63 WHERE indication = ""non-hodgkin lymphoma""" Can you show the number of different products that are produced by companies at different headquarter cities?,"SELECT count ( DISTINCT T1.name ) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter" What is the full name of each student who is not allergic to any type of food.,"SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"")" Name the original air date for prod code 201,SELECT original_air_dates FROM table_2322716_2 WHERE prod_code = 201 What is the total number of episodes where hugh laurie was the 3rd performer?,"SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = ""hugh laurie""" What is the record for the team on January 19?,"SELECT record FROM table_17288825_7 WHERE date = ""January 19""" how many storms caused damage to any regions?,select count ( * ) from storm Calculate the average of object samples for the image.,SELECT CAST(COUNT(OBJ_SAMPLE_ID) AS REAL) / COUNT(DISTINCT IMG_ID) FROM IMG_OBJ Who has friends that are older than the average age? Print their friends and their ages as well,"SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)" What is the barony for the Ballintaggart townland?,"SELECT barony FROM table_30120619_1 WHERE townland = ""Ballintaggart""" What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value?,SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0 "List the clubs having ""Davis Steven"" as a member.","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = ""Davis"" AND t3.lname = ""Steven""" List down product names of free gifts.,SELECT Name FROM Products WHERE Price = 0 List the name of musicals that do not have actors.,SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor) Which venue has a scoreof 2–0?,"SELECT venue FROM table_name_60 WHERE score = ""2–0""" What was the score when the series was 3-2?,"SELECT score FROM table_name_7 WHERE series = ""3-2""" What is the highest crowd number of the game where the away team was south melbourne?,"SELECT MAX(crowd) FROM table_name_71 WHERE away_team = ""south melbourne""" What number is the Monaco Grand Prix?,"SELECT rd FROM table_1132568_3 WHERE grand_prix = ""Monaco grand_prix""" How many orders that Medsep Group had made?,SELECT SUM(CASE WHEN T1.`Customer Names` = 'Medsep Group' THEN 1 ELSE 0 END) FROM Customers AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._CustomerID = T1.CustomerID Show the name of technicians aged either 36 or 37,SELECT Name FROM technician WHERE Age = 36 OR Age = 37 List down the enrolled schools and duration of student214.,"SELECT school, month FROM enrolled WHERE name = 'student214'" What is the ICAO for Asiana Airlines?,"SELECT icao FROM table_name_8 WHERE airline = ""asiana airlines""" Name the matches for mark taylor category:articles with hcards,"SELECT MAX(matches) FROM table_21486890_1 WHERE name = ""Mark Taylor Category:Articles with hCards""" Show distinct types of artworks that are nominated in festivals in 2007.,SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007 Dallas Burn's draft pick was which position?,"SELECT position FROM table_26141160_2 WHERE team = ""Dallas Burn""" What are the notes for Happy Camp?,"SELECT notes FROM table_name_79 WHERE title = ""happy camp""" Which department has the most number of night shifts?,SELECT T3.Name FROM Shift AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.ShiftId = T2.ShiftId INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID GROUP BY T2.DepartmentID ORDER BY COUNT(T1.Name = 'Night') DESC LIMIT 1 What is the average age of the students in this major?,select avg ( age ) from student where major = ( SELECT major FROM Student GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 ) What is the average number of points when the ranking is 7th and the draw is less than 4?,"SELECT AVG(points) FROM table_name_63 WHERE rank = ""7th"" AND draw < 4" Which away has apoel as the club?,"SELECT away FROM table_name_41 WHERE club = ""apoel""" How many customers did not rent material at Mike's store?,SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN store AS T2 ON T1.store_id = T2.store_id INNER JOIN staff AS T3 ON T2.manager_staff_id = T3.staff_id WHERE T3.first_name != 'Mike' "Which contact channel has been used by the customer with name ""Tillman Ernser""?","SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" "What is Away Team, when Home Team is ""Ipswich Town"", and when Date is ""6 February 1986""?","SELECT away_team FROM table_name_90 WHERE home_team = ""ipswich town"" AND date = ""6 february 1986""" What is the percentage of the cases involved more than 3 officers from year 2010 to 2015?,"SELECT CAST(SUM(IIF(officer_count > 3, 1, 0)) AS REAL) * 100 / COUNT(case_number) FROM incidents WHERE STRFTIME('%Y', date) BETWEEN '2010' AND '2015'" What is the attendance when oadby town is away?,"SELECT attendance FROM table_name_37 WHERE away_team = ""oadby town""" What is their name | First name or last name? | What is their customer id,SELECT t1.customer_id FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500 Which three cities have the largest regional population?,SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?,SELECT count(DISTINCT state) FROM college WHERE enr < (SELECT avg(enr) FROM college) "Ok, what is the first and last name of the student who has president votes?","SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_Vote" Show the people that have been comptroller the most times and the corresponding number of times.,"SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1" How many departments are in each school?,"SELECT count(DISTINCT dept_name) , school_code FROM department GROUP BY school_code" How many orders were from Hanna Moos company in 1999?,"SELECT COUNT(T2.OrderID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE STRFTIME('%Y', T2.OrderDate) = '1999' AND T1.CompanyName = 'Hanna Moos'" Show all the cinema names and opening years in descending order of opening year.,"SELECT name , openning_year FROM cinema ORDER BY openning_year DESC" "Which method has the summary ""Write a command to the log""?",SELECT Name FROM Method WHERE Summary = 'Write a command to the log' Which NBA draft has a School of st. mary's high school?,"SELECT nba_draft FROM table_name_91 WHERE school = ""st. mary's high school""" What is the name of the customer?,SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count ( * ) DESC LIMIT 1 Who is the owner of the business that has a high risk violation of 103109 and described as unclean or unsanitary food contact surfaces?,SELECT DISTINCT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T1.violation_type_id = 103109 AND T1.description = 'Unclean or unsanitary food contact surfaces' What is the lowest value for int. caps?,SELECT MIN(int_caps) FROM table_29743928_5 What ship has a norway nationality?,"SELECT ship FROM table_name_18 WHERE nationality = ""norway""" What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.,"SELECT date , cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5" List the names of people that are not poker players.,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player) How many month names are there for the tenth numbered month?,"SELECT COUNT(month_name) FROM table_28985631_1 WHERE numbered_month = ""Tenth""" "List all role codes, role names, and role descriptions.","SELECT role_code , role_name , role_description FROM ROLES" What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?,"SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5" Name the constituency for 175130,SELECT constituency FROM table_22754310_1 WHERE margin = 175130 Please give the full name of the customer who had made the biggest amount of payment in one single film rental.,"SELECT T2.first_name, T2.last_name FROM payment AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id ORDER BY T1.amount DESC LIMIT 1" What are the full names of the top 3 employees who handled the highest number of sales?,"SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID GROUP BY T2.SalesPersonID, T1.FirstName, T1.MiddleInitial, T1.LastName ORDER BY COUNT(T2.SalesID) DESC LIMIT 3" What other buildings is JPMorgan Chase also located in?,"SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id where T3.name = ""JPMorgan Chase"" and T2.name ! = ""Torre KOI""" What was the time for the country of kazakhstan?,"SELECT time FROM table_name_13 WHERE country = ""kazakhstan""" What proportion of suppliers are from Asia?,"SELECT CAST(SUM(IIF(T1.r_name = 'ASIA', 1, 0)) AS REAL) * 100 / COUNT(T1.r_regionkey) FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey INNER JOIN supplier AS T3 ON T2.n_nationkey = T3.s_nationkey" Can you list all the colleges and their enrollments?,"SELECT cName, enr FROM college" What is the average price of clothes?,SELECT avg(product_price) FROM products WHERE product_type_code = 'Clothes' Which class was on the Las Vegas Motor Speedway for 2 hours?,"SELECT class FROM table_name_3 WHERE length = ""2 hours"" AND circuit = ""las vegas motor speedway""" VIE is the IATA for which city?,"SELECT airport FROM table_name_80 WHERE iata = ""vie""" Tell me the sum of attendane for a result of w 12-3 and week more than 12,"SELECT SUM(attendance) FROM table_name_64 WHERE result = ""w 12-3"" AND week > 12" What are the top three total number of passengers?,SELECT total_passengers FROM station ORDER BY total_passengers DESC LIMIT 3 Find the student ID and login name of the student with the most course enrollments,"SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" What student won 3rd with Peter Agre as Chief Judge?,"SELECT name FROM table_name_78 WHERE chief_judge = ""peter agre"" AND award = ""3rd""" How about the name of the director? | Do you mean the name of the director of Avatar? | yes,"SELECT director FROM Movie WHERE title = ""Avatar""" Which part fault requires the most number of skills to fix? List part id and name.,"SELECT T1.part_id , T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY count(*) DESC LIMIT 1" "From 2003 to 2004, how many customers have paid more than three times?","SELECT COUNT(customernumber) FROM ( SELECT customernumber FROM payments WHERE STRFTIME('%Y', paymentDate) >= '2003' AND STRFTIME('%Y', paymentDate) <= '2004' GROUP BY customernumber HAVING COUNT(customernumber) > 3 ) T" What are the maximum and minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm" Which customer made the most orders? Find the customer name.,SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 Show the names of all the buildings.,SELECT name FROM building What is the score in the final with runner-up as the outcome and hard (i) as the surface?,"SELECT score_in_the_final FROM table_name_38 WHERE outcome = ""runner-up"" AND surface = ""hard (i)""" What is the type of the gps iif-10 satellite?,"SELECT type FROM table_name_38 WHERE satellite = ""gps iif-10""" What away team did Carlton play?,"SELECT away_team FROM table_name_77 WHERE home_team = ""carlton""" What is the most common participant type?,SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY count(*) DESC LIMIT 1 "What is 2008, when 2009 is ""A"", and when Tournament is ""Madrid Masters""?","SELECT 2008 FROM table_name_91 WHERE 2009 = ""a"" AND tournament = ""madrid masters""" "For the Yelp businesses which received a ""5"" star review with ""uber"" number of votes for funny, which one is located in ""Phoenix""? Give the business ID.",SELECT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Phoenix' AND T2.review_stars = 5 AND T2.review_votes_funny = 'Uber' How many entrepreneurs are there?,SELECT count(*) FROM entrepreneur Which settlement has a cyrillic and other name of војводинци (romanian: voivodinţ)?,"SELECT settlement FROM table_2562572_46 WHERE cyrillic_name_other_names = ""Војводинци (Romanian: Voivodinţ)""" "When they played Universidad de Chile, what was the score of the first leg?","SELECT COUNT(1 AS st_leg) FROM table_17282875_3 WHERE team__number2 = ""Universidad de Chile""" "The book name ""The Season: A Candid Look at Broadway"" was published by which publisher?",SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Season: A Candid Look at Broadway' What is the away team for the game at Windy Hill?,"SELECT away_team FROM table_name_72 WHERE venue = ""windy hill""" give the state county each belongs to,"SELECT City_Town, State_County FROM Addresses" Which Team/Chassis has a Year larger than 1987?,SELECT team_chassis FROM table_name_46 WHERE year > 1987 "Which location names contain the word ""film""?","SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE ""%film%""" How many businesses that are registered in the database can be attributed to 'Good for Kids'?,SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name = 'Good for Kids' AND T2.attribute_value = 'true' what is the points against when the losing bonus is 0 and the club is banwen rfc?,"SELECT points_against FROM table_name_32 WHERE losing_bonus = ""0"" AND club = ""banwen rfc""" "What departments employ more than 100,000 employees?",select * from department where num_employees > 100000 Name all the tournaments that took place in Rhode Island.,"SELECT tournament FROM table_11622840_1 WHERE location = ""Rhode Island""" List the air carrier's description of the flights with 0 departure delay.,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.DEP_DELAY = 0 GROUP BY T1.Description How many countries have governments that are republics?,"SELECT count(*) FROM country WHERE GovernmentForm = ""Republic""" What is the average BMI of an All-star player?,SELECT AVG(CAST(T1.weight AS REAL) / (T1.height * T1.height)) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID How many points did ginger have when she was ranked 5th on a 350cc class bike?,"SELECT COUNT(points) FROM table_name_73 WHERE class = ""350cc"" AND rank = ""5th""" What about the numbers of papers published by University of Oxford?,"SELECT count ( DISTINCT t1.title ) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Oxford""" "What mark has over 813 points in the United States, and a 0.152 react?","SELECT mark FROM table_name_51 WHERE points > 813 AND country = ""united states"" AND react > 0.152" "What day was the attendance at the staples center 18,176?","SELECT date FROM table_13619135_7 WHERE location_attendance = ""Staples Center 18,176""" What is the smallest frames per minute when the pixels are 5.0,"SELECT least_compression_at_24_fps FROM table_1251878_3 WHERE mpix = ""5.0""" What is the total number of episodes where alexa wyatt is the writer?,"SELECT COUNT(series__number) FROM table_16175064_3 WHERE writer_s_ = ""Alexa Wyatt""" What was the attendance at Moorabbin Oval?,"SELECT AVG(crowd) FROM table_name_41 WHERE venue = ""moorabbin oval""" Find the number of scientists involved for the projects that require more than 300 hours.,"SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name" Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?,"SELECT 1 AS st_runner_up FROM table_24014744_1 WHERE putri_pariwisata_indonesia = ""Albertina Fransisca Mailoa""" What is the Arena o Kazan?,"SELECT arena__capacity_ FROM table_name_19 WHERE town = ""kazan""" Give the mean GNP and total population of nations which are considered US territory.,"SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = ""US Territory""" How many times did Charles Jarrott report?,"SELECT COUNT(report) FROM table_18893428_1 WHERE driver = ""Charles Jarrott""" What actor was nominated for or won an award before 1971?,SELECT actor FROM table_name_94 WHERE year < 1971 What is the average administrative panel of the composition nominated by Taoiseach 0 times with a total less than 4?,SELECT AVG(administrative_panel) FROM table_name_36 WHERE nominated_by_the_taoiseach = 0 AND total < 4 "Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200","SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = ""$117,451–$190,200""" Provide a list of directors from the 1990s.,"SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name AND CAST(SUBSTR(release_date, INSTR(release_date, ', ') + 1) AS int) BETWEEN 1990 AND 2000 GROUP BY T2.director" List all of the information about the music department's casts and crews.,"SELECT DISTINCT person, name, birthdate, birth_name, birth_place , birth_region, birth_country, height_meters, nickname FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Music Department';" "Does Yelp business No.""4960"" have TV?",SELECT DISTINCT CASE WHEN T1.attribute_name LIKE 'Has TV' THEN 'yes' ELSE 'no' END FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.business_id = 4960 On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?,"SELECT date FROM table_name_61 WHERE home = ""detroit red wings"" AND record = ""10–41–6""" Which work order transaction number has the highest product quantity?,SELECT TransactionID FROM TransactionHistory WHERE TransactionType = 'W' ORDER BY Quantity DESC LIMIT 1 What is the sum of the goals on 2007-06-16?,"SELECT SUM(goals) FROM table_name_16 WHERE date = ""2007-06-16""" Show the names of all reviewers.,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name What is the average total for 0 bronze?,SELECT AVG(total) FROM table_name_98 WHERE bronze < 0 Find the number of projects which each scientist is working on and scientist's name.,"SELECT count(*) , T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name" Which country had the game that Away team made the most goals?,SELECT T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division GROUP BY T2.country ORDER BY SUM(T1.FTAG) DESC LIMIT 1 "What is Record, when Event is ""UFC 40""?","SELECT record FROM table_name_57 WHERE event = ""ufc 40""" How many seed entries are there when points are 2175?,SELECT COUNT(seed) FROM table_29572583_19 WHERE points = 2175 What is the size of the crowd for the home team of Footscray?,"SELECT crowd FROM table_name_28 WHERE home_team = ""footscray""" State the email id of custormer id 1?,select email from customer where customerid = '1' How many of the matches are Superover?,SELECT SUM(CASE WHEN T2.win_type = 'wickets' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id How many hours does a mid need to play to meet the minimum?,"SELECT min ( T2.HS ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID where T1.ppos = ""mid"" GROUP BY T1.pPos" How long does track Fast As a Shark has?,"SELECT milliseconds FROM tracks WHERE name = ""Fast As a Shark"";" "Which Earnings ($) is the lowest one that has a Rank of 1, and Events smaller than 22?",SELECT MIN(earnings___) AS $__ FROM table_name_60 WHERE rank = 1 AND events < 22 What is the average number of honorary professors in the economics department with 1 lecturer?,"SELECT AVG(honorary_professors) FROM table_name_9 WHERE lecturers = 1 AND department = ""economics""" "What's the score at Olympic Stadium Tokyo, Japan?","SELECT score FROM table_name_49 WHERE venue = ""olympic stadium tokyo, japan""" Which College/Junior/Club Team (league) does Matthew Bartkowski play for?,"SELECT college_junior_club_team__league_ FROM table_name_31 WHERE player = ""matthew bartkowski""" How many customers paid over the amount of 10 on August 2005?,"SELECT COUNT(customer_id) FROM payment WHERE SUBSTR(payment_date, 1, 7) LIKE '2005-08'" What is the wheel arrangement of the locomotive with number 6 or 4?,"SELECT wheel_arrangement FROM table_name_95 WHERE number = ""6 or 4""" What is the city_code of the city that the most students live in?,SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 "What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29?","SELECT profession FROM table_name_1 WHERE entered_the_house = ""day 1"" AND evicted = ""day 29"" AND name = ""skaj vikler""" How about employee number?,SELECT T4.EMP_NUM FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count ( * ) DESC LIMIT 1 Name the league for 1994,"SELECT league FROM table_name_16 WHERE year = ""1994""" For how long did the complaint filed on 2017/3/27 by Rachel Hicks last?,SELECT T2.ser_time FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.first = 'Rachel' AND T1.last = 'Hicks' AND T2.`Date received` = '2017-03-27' How many claim processing stages are there in total?,SELECT count(*) FROM claims_processing_stages WHAT IS Val-de-Marne WITH Seine-Saint-Denis of 4.0%?,"SELECT val_de_marne FROM table_name_52 WHERE seine_saint_denis = ""4.0%""" Who wrote the episode with 7.52 million US viewers?,"SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = ""7.52""" Which store owns the fewest items?,SELECT * FROM inventory GROUP BY store_id ORDER BY count ( * ) asc LIMIT 1 Find the names of scientists who are not working on the project with the highest hours.,SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT max(hours) FROM projects) Who did the Toronto Blue Jays play against where the score was 4 - 2?,"SELECT opponent FROM table_name_66 WHERE score = ""4 - 2""" What was the margin of victory when the winning score was −5 (69-69-73=211)?,SELECT margin_of_victory FROM table_name_21 WHERE winning_score = −5(69 - 69 - 73 = 211) Indicate the address of the company Eastern Connection whose contact name is Ann Devon.,SELECT Address FROM Customers WHERE CompanyName = 'Eastern Connection' AND ContactName = 'Ann Devon' What is the yacht type of Icap Leopard? ,"SELECT yacht AS type FROM table_25561560_2 WHERE yacht = ""ICAP Leopard""" WHo won men's singles in 1994?,SELECT mens_singles FROM table_14904221_1 WHERE year = 1994 How many percent more of the Forks for the repository of solution No.53546 than No.1502?,SELECT CAST(SUM(CASE WHEN T2.Id = 53546 THEN T1.Forks ELSE 0 END) - SUM(CASE WHEN T2.Id = 1502 THEN T1.Forks ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 1502 THEN T1.Forks ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId What students aren't taught by Otha Moyer? | Did you want to return their full names? | Yes please,"SELECT DISTINCT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom EXCEPT SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = ""OTHA"" AND T2.lastname = ""MOYER""" What was the loss of the game when the record was 32–34?,"SELECT loss FROM table_name_52 WHERE record = ""32–34""" Show the station name and number of trains in each station.,"SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id" what is the integrated in which the holding allied-unrelated is many?,"SELECT holding FROM table_11944282_1 WHERE allied_unrelated = ""Many""" What visitor has march 26 as the date?,"SELECT visitor FROM table_name_17 WHERE date = ""march 26""" what is the enrollment of cranbrook school,"SELECT enrollment from school where school = ""Cranbrook School""" List the last name of all current legislators who live in California.,SELECT T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'CA' GROUP BY T1.last_name What was the method in round 1 of the UFC 20 event?,"SELECT method FROM table_name_87 WHERE round = 1 AND event = ""ufc 20""" "Find the number of vocal types used in song ""Demon Kitty Rag""?","SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Demon Kitty Rag""" What is the most common type?,SELECT TYPE FROM operate_company GROUP BY TYPE ORDER BY count ( * ) DESC LIMIT 1 Which company placed the order with the id 10257?,SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.OrderID = 10257 What is the average number of passengers carried via air transport per year by Bulgaria between 1970 to 1980? Indicate the country's system of trade.,"SELECT AVG(T1.Value), T2.SystemOfTrade FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Air transport, passengers carried' AND T1.Year >= 1970 AND T1.Year < 1981 AND T1.CountryName = 'Bulgaria'" When the earning per share is listed as 22.0 what is the year to april?,"SELECT COUNT(year_to_april) FROM table_18077713_1 WHERE earnings_per_share__¢_ = ""22.0""" What are the makers and models?,"SELECT Maker , Model FROM MODEL_LIST;" List all high rebound entries from May 11.,"SELECT high_rebounds FROM table_22654073_13 WHERE date = ""May 11""" Find the name and capacity of products with price greater than 700 (in USD).,"SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700" Tell me title name for all course ids....,"SELECT course_id, title FROM course" Which location has 111 as the days held?,"SELECT location FROM table_name_4 WHERE days_held = ""111""" What is Celta's Agg.?,"SELECT agg FROM table_name_81 WHERE team_1 = ""celta""" The sales of how many territories is Nancy Davolio in charge of?,SELECT COUNT(T2.TerritoryID) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Nancy' AND T1.LastName = 'Davolio' In what barony are both the townland Dawstown and the civil parish Matehy located?,"SELECT barony FROM table_30120566_1 WHERE townland = ""Dawstown"" AND civil_parish = ""Matehy""" "Where was the match held when the result was win, and tko as the method?","SELECT location FROM table_name_32 WHERE res = ""win"" AND method = ""tko""" What is the Winter in 1906?,SELECT winter FROM table_name_99 WHERE year = 1906 Find the cities which were once a host city after 2010?,SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010 What is every value for TDP if model is x53xx?,"SELECT tdp FROM table_2467150_2 WHERE model__list_ = ""X53xx""" "What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?","SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = ""diesel"" AND length = ""40'"" AND numbers__quantity_ordered_ = ""3701-3729 (29 buses)""" In which country Swan River ' Perth located ?,"SELECT country FROM MATCH where Location = 'Swan River , Perth'" Excellent! Which had the greatest number of votes?,SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1 Which complex used the Soyuz (r) launcher to facilitate 14 orbital flights?,"SELECT launch_complex FROM table_name_35 WHERE launcher = ""soyuz (r)"" AND flights = ""14 orbital""" What are the first name and last name of Linda Smith's advisor?,"SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = ""Linda"" AND T2.lname = ""Smith""" What is the latest year that Cicely Tyson is the Golden Globe Award actor?,"SELECT MAX(year) FROM table_name_76 WHERE actor = ""cicely tyson""" Please show the police forces and the number of counties with each police force.,"SELECT Police_force , COUNT(*) FROM county_public_safety GROUP BY Police_force" Which episode of The simpson 20s: Season 20 has received the most nominations? Indicate the title.,SELECT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id GROUP BY T1.episode_id ORDER BY COUNT(*) DESC LIMIT 1; What are the names of the criteria under Center for World University Rankings?,SELECT T2.criteria_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T1.system_name = 'Center for World University Rankings' What is every origin for the destination of Manchester?,"SELECT origin FROM table_3005999_1 WHERE destination = ""Manchester""" Please show different types of artworks with the corresponding number of artworks of each type.,"SELECT TYPE , COUNT(*) FROM artwork GROUP BY TYPE" "What is Player, when Country is ""England"", and when Place is ""T7""?","SELECT player FROM table_name_50 WHERE country = ""england"" AND place = ""t7""" What is the id of the reviewer named Daniel Lewis?,"SELECT rID FROM Reviewer WHERE name = ""Daniel Lewis""" What is the rank of player Jason Dunstall?,"SELECT rank FROM table_name_55 WHERE player = ""jason dunstall""" How many songs have a resolution below 800?,SELECT count ( T2.song_name ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 When was the game developed by Microvision released?,"SELECT initial_release_date FROM table_12744399_1 WHERE developer = ""Microvision""" "What were property taxes in a year when total revenue was $40,891,700 after 2002?","SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = ""$40,891,700""" Which Weekly Rank for a Live Final Show has an Official Ratings (millions) greater than 5.2?,"SELECT weekly_rank FROM table_name_8 WHERE official_ratings__millions_ > 5.2 AND show = ""live final""" Who is the script supervisor of the series in episode tt0629204?,SELECT T2.name FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T1.episode_id = 'tt0629204' AND T1.role = 'script supervisor' What is the title of the Catalan language Wikipedia page that has the highest number of different words?,SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) What is the location for the team name of eagles?,"SELECT location FROM table_24195232_1 WHERE team_name = ""Eagles""" Return the maximum enrollment across all schools.,SELECT max(Enrollment) FROM university Find the name of students who didn't take any course from Biology department.,SELECT name FROM student WHERE NOT id IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology') Which districts have at least two addresses?,SELECT district FROM address GROUP BY district HAVING count(*) >= 2 "what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?","SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = ""n3 type, v4 type"" AND total_vessels_built_for_usmc = ""13 ships for usmc""" Give the game publisher ID of records with platform ID 15.,SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 15 Name the surface for australian open for winner,"SELECT surface FROM table_2009095_2 WHERE championship = ""Australian Open"" AND outcome = ""Winner""" "Show all document type codes, document type names, document type descriptions.","SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types" What grapes are red color?,"SELECT grape FROM grapes where Color = ""Red""" Show me the names containing cv,"SELECT document_name FROM documents WHERE document_name LIKE ""%CV%""" Please show which departments have greater than 4 employees,select Name from Department where Head>4 "what is the result for the week higher than 7 on november 4, 1979?","SELECT result FROM table_name_16 WHERE week > 7 AND date = ""november 4, 1979""" what is the average of rank in series?,SELECT AVG ( Rank_in_series ) FROM film How many months did a student in the Air Force miss school the most?,SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1 Name the D 46 which has a D 43 of majority→,"SELECT d_46 FROM table_name_34 WHERE d_43 = ""majority→""" Name the finish top 10 being 8 ,SELECT MAX(finish) FROM table_24119784_1 WHERE top_10 = 8 Which position was selected for by the Toronto Maple Leafs?,"SELECT position FROM table_2850912_4 WHERE nhl_team = ""Toronto Maple Leafs""" "Can you filter the table to only include transactions with share counts that are at least 100, or with amounts bigger than 100?","SELECT share_count, amount_of_transaction FROM TRANSACTIONS where share_count > = 100 or amount_of_transaction > = 100" Which country is the youngest player from?,SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T1.Country_Id = T2.Country_Name ORDER BY T2.DOB DESC LIMIT 1 What are the names of the cities where Carl Lewis Borack competed?,SELECT T4.city_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T1.full_name = 'Carl Lewis Borack' Please list the username of the current official Facebook presence of all the current legislators that are famous or impact.,SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.wikipedia_id IS NOT NULL GROUP BY T2.facebook Name the audition city for hyatt regency chicago,"SELECT audition_city FROM table_22897967_1 WHERE callback_venue = ""Hyatt Regency Chicago""" Tell me the label for US region and catalog of 10008-2,"SELECT label FROM table_name_2 WHERE region = ""us"" AND catalog = ""10008-2""" Which Pinyin has a County of changhua?,"SELECT pinyin FROM table_name_44 WHERE county = ""changhua""" How many yards for the player with tfl-yds of 2.5-4?,"SELECT no_yds FROM table_18064020_21 WHERE tfl_yds = ""2.5-4""" Which circuit did Guy Edwards win?,"SELECT circuit FROM table_name_11 WHERE winning_driver = ""guy edwards""" Find the first and last name of all the students of age 18 who have vice president votes.,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18" What is the total number of establishments with the highest risk level?,SELECT COUNT(license_no) FROM establishment WHERE risk_level = 3 What is the average price for flights from Los Angeles to Chicago,"SELECT avg ( price ) FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Chicago""" What is the nationality of school/club team of barton cc (ks)?,"SELECT nationality FROM table_name_65 WHERE school_club_team = ""barton cc (ks)""" What is the 1st leg in the match where Remo (PA) is team 1?,"SELECT 1 AS st_leg FROM table_name_26 WHERE team_1 = ""remo (pa)""" Find the number of distinct type of pets.,SELECT COUNT(DISTINCT pettype) FROM pets "What is the name of the team that has 1,317 attempts?","SELECT team FROM table_name_8 WHERE attempts = ""1,317""" "Which region had the date of November 18, 2002?","SELECT region FROM table_name_41 WHERE date = ""november 18, 2002""" List down the record ID of records released between 2000 to 2003.,SELECT T.id FROM game_platform AS T WHERE T.release_year BETWEEN 2000 AND 2003 How many clients with the last name Alvarado are from Maryland?,SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T1.state_abbrev = T3.StateCode WHERE T2.last = 'Alvarado' AND T2.state = 'MD' How many appointments are there?,SELECT COUNT(*) FROM appointment What are the names of the players?,SELECT player_name from player What are the countries that have at least two perpetrators?,"SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2;" Can you show me the years of those movies as well?,"SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3" What is the division in the season with 13 tms and pos smaller than 8?,SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 8 What is Guard Kerri Shields Hometown?,"SELECT hometown FROM table_name_94 WHERE position = ""guard"" AND name = ""kerri shields""" What is the headquarter of the company with the largest sales?,SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1 "What is Away Team, when Ground is Colonial Stadium?","SELECT away_team FROM table_name_19 WHERE ground = ""colonial stadium""" Count the number of characteristics of the product named 'laurel'.,"SELECT count(*) 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 = ""laurel""" What is the most common device model among female users between the ages 27 to 28?,SELECT T2.device_model FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'F27-28' AND T1.gender = 'F' ORDER BY T2.device_id DESC LIMIT 1 when was the site listed when the county is cochise?,"SELECT listed FROM table_name_14 WHERE county = ""cochise""" "What is the type of the RCA RW-2110, which has 2 MB of storage and a v.90 modem?","SELECT type FROM table_name_88 WHERE modem = ""v.90"" AND storage = ""2 mb"" AND brand = ""rca"" AND model = ""rw-2110""" Calculate how many percent of customers were located in India.,"SELECT CAST(SUM(IIF(T1.country = 'India', 1, 0)) AS REAL) * 100 / COUNT(T4.customer_id) FROM country AS T1 INNER JOIN city AS T2 ON T1.country_id = T2.country_id INNER JOIN address AS T3 ON T2.city_id = T3.city_id INNER JOIN customer AS T4 ON T3.address_id = T4.address_id" "How much Drawn has Points 1 of 51, and a Lost larger than 5?",SELECT COUNT(drawn) FROM table_name_5 WHERE points_1 = 51 AND lost > 5 Name the saka era for sign of zodiac being pisces,"SELECT saka_era FROM table_169955_1 WHERE sign_of_zodiac = ""Pisces""" "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.","SELECT Support_rate , Consider_rate , Oppose_rate FROM candidate ORDER BY unsure_rate" How many points did Stuart have when he had less than 1 touchdown?,"SELECT SUM(points) FROM table_name_80 WHERE player = ""stuart"" AND touchdowns < 1" "How many students are from each city, and which cities have more than one cities?","SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1" What was the total number of games played by se freising when their points were larger than 13?,"SELECT COUNT(played) FROM table_name_61 WHERE name = ""se freising"" AND points > 13" "Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?","SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = ""warrack eagles"" AND draws < 0" "Game site of kingdome, and a Result of w 24-6 has what record?","SELECT record FROM table_name_32 WHERE game_site = ""kingdome"" AND result = ""w 24-6""" How about the total number of dorms?,SELECT count ( * ) FROM dorm What is the maintenance contract id and supplier company id for asset id 2?,"SELECT maintenance_contract_id,supplier_company_id from assets where asset_id = 2" What rank was the country with no bronze but at least 1 silver medals?,SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1 How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?,SELECT SUM(sr) FROM table_name_35 WHERE runs_scored = 161 AND average > 26.83 What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?,SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport' "Show the distinct apartment numbers of the apartments that have bookings with status code ""Confirmed"".","SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = ""Confirmed""" What score did Jack Nicklaus have when he placed t6?,"SELECT score FROM table_name_92 WHERE place = ""t6"" AND player = ""jack nicklaus""" Please list the names of all the Olympic competitors from Finland.,SELECT T3.full_name 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 = 'Finland' Did he win or lose rof 32: respect?,"SELECT res FROM table_name_47 WHERE event = ""rof 32: respect""" "Among all employees, who have job level greater than 200. State the employee name and job description.","SELECT T1.fname, T1.lname, T2.job_desc FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.job_lvl > 200" What group has 1200 m as the distance?,"SELECT group FROM table_name_82 WHERE distance = ""1200 m""" What episode did actor Daniel Macpherson's character have the rank of Detective Senior Constable,"SELECT episodes FROM table_name_46 WHERE rank = ""detective senior constable"" AND actor_actress = ""daniel macpherson""" What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?,SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' What was the average attendance for games with a loss of papelbon (0–1)?,"SELECT AVG(attendance) FROM table_name_66 WHERE loss = ""papelbon (0–1)""" How many video games exist?,SELECT count(*) FROM Video_games What day did they play in week 6?,SELECT date FROM table_name_36 WHERE week = 6 What team was the host on september 11?,"SELECT host_team FROM table_name_37 WHERE date = ""september 11""" What was the date of appointment for incoming manager Roy Hodgson and the team is Liverpool?,"SELECT date_of_appointment FROM table_24172157_3 WHERE team = ""Liverpool"" AND incoming_manager = ""Roy Hodgson""" What is the attribute of the business with highest star rating?,SELECT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id ORDER BY T1.stars DESC LIMIT 1 what's the individual winners with nation being australia,"SELECT individual_winners FROM table_1458666_4 WHERE nation = ""Australia""" Count the number of entrepreneurs.,SELECT count(*) FROM entrepreneur Count how many appointments have been made in total.,SELECT count(*) FROM appointment And what about their age?,"SELECT lname , age FROM Student WHERE StuID IN ( SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"" ) " How many different scores did Team Europe get when Mika Koivuniemi played for them?,"SELECT COUNT(score) FROM table_19072602_1 WHERE team_europe = ""Mika Koivuniemi""" Which cities have exactly 4 parks?,SELECT city FROM park GROUP BY city HAVING count ( * ) = 4 how many parks are name beltzville state park?,"SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = ""beltzville state park""" What is the average round for the record of 1-1?,"SELECT AVG(round) FROM table_name_25 WHERE record = ""1-1""" What was the record on February 2?,"SELECT record FROM table_name_42 WHERE date = ""february 2""" "What type of surface was used for the game played on September 20, 1993?","SELECT surface FROM table_name_93 WHERE date = ""september 20, 1993""" What day did the team play week 13?,SELECT date FROM table_name_87 WHERE week = 13 What is the most amount of goals any of the players had? ,SELECT MAX(goals) FROM table_23963781_3 What was the crowd when the VFL played Windy Hill?,"SELECT SUM(crowd) FROM table_name_49 WHERE venue = ""windy hill""" What numbered game did they play on april 5?,"SELECT MAX(game) FROM table_27755603_11 WHERE date = ""April 5""" Which year had playoffs of champion?,"SELECT AVG(year) FROM table_name_27 WHERE playoffs = ""champion""" "What is the latest Year, when the Venue is Lübker Golf Resort?","SELECT MAX(year) FROM table_name_16 WHERE venue = ""lübker golf resort""" Can you list all of the staff first names please?,SELECT first_name FROM Staff WHich Speed has a Rank of 2?,SELECT speed FROM table_name_59 WHERE rank = 2 The Europe listing of 117 0 (8) belongs to what league?,"SELECT league FROM table_name_5 WHERE europe = ""117 0 (8)""" Where was the game played when the final score was 35-62?,"SELECT stadium FROM table_name_71 WHERE final_score = ""35-62""" What was the length of the game where the Baltimore Colts were at home?,"SELECT length_of_game FROM table_name_95 WHERE home_team = ""baltimore colts""" "Which Team has Podiums of 0, and a Position of nc†?","SELECT team FROM table_name_94 WHERE podiums = ""0"" AND position = ""nc†""" "Who has got the most number of ""funny"" type of compliments? Give the user ID.",SELECT user_id FROM Users_Compliments WHERE compliment_id IN ( SELECT compliment_id FROM Compliments WHERE compliment_type LIKE 'funny' ) What is the issue date of the volume with the minimum weeks on top?,SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1 What is maximum and minimum death toll caused each time?,"SELECT max(killed) , min(killed) FROM death" "On May 13, what was the team's record?","SELECT record FROM table_name_33 WHERE date = ""may 13""" Find and list the full name of customers who rented more family movies than Sci-Fi movies.,"SELECT DISTINCT IIF(SUM(IIF(T5.name = 'Family', 1, 0)) - SUM(IIF(T5.name = 'Sci-Fi', 1, 0)) > 0, T1.first_name, 0) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film_category AS T4 ON T4.film_id = T3.film_id INNER JOIN category AS T5 ON T4.category_id = T5.category_id GROUP BY T1.customer_id" How many bridges was built by Frank Lloyd Wright?,"SELECT count ( * ) from architect as T1 join bridge as T2 on T1.id = T2.architect_id where T1.name = ""Frank Lloyd Wright""" Who is h.t. brewer when je armstrong is c.p. greeks?,"SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = ""C.P. Greeks""" What is the length of the coaster with the unknown speed,"SELECT length__ft_ FROM table_2665085_1 WHERE speed__mph_ = ""unknown""" What team has jordan 193 chassis after 1990?,"SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = ""jordan 193""" "Among the matches held in 2015, who is the winning team in the match ID 829768?",SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner WHERE T1.Match_Date LIKE '2015%' AND T1.Match_Id = 829768 What are the names of departments that have primarily affiliated physicians.,SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1 How many campuses opened between 1935 and 1939?,SELECT count ( campus ) FROM campuses WHERE YEAR > = 1935 AND YEAR < = 1939 What is the earliest election with 2 seats and the outcome of the election of minority in parliament?,"SELECT MIN(election) FROM table_name_67 WHERE outcome_of_election = ""minority in parliament"" AND seats = ""2""" What position does Jamar Chaney play?,"SELECT position FROM table_name_45 WHERE name = ""jamar chaney""" What is the population of the year featuring an 87.5% German population?,"SELECT population FROM table_name_51 WHERE germans = ""87.5%""" Who was the player with a 36.74 average?,"SELECT player FROM table_26041144_11 WHERE average = ""36.74""" Which manufacturer was used after 1969 with a finish position of 34?,SELECT manufacturer FROM table_name_14 WHERE year > 1969 AND finish = 34 what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?,"SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = ""10h18m58.4s""" Name the part which is most profitable.,"SELECT T.p_name FROM ( SELECT T3.p_name , T2.l_extendedprice * (1 - T2.l_discount) - T1.ps_supplycost * T2.l_quantity AS num FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey ) AS T ORDER BY T.num DESC LIMIT 1" "Yes please | Which one? Do you mean the publishers of the result table that also have publications with prices lower than 5000000 or any publisher that has a publication with a price lower than 5000000? | in the table that you just created, add the names of the publishers with price lower than 5000000, and include their price in the table too.","SELECT Publisher, Price FROM publication WHERE Price > 10000000 or Price < 5000000" "What is the total goals with 12 assists, and less than 291 apps?",SELECT SUM(goals) FROM table_name_52 WHERE assists = 12 AND apps < 291 Which catalog contents have length below 3 or above 5? Find the catalog entry names.,SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 "Which Bronze has a Rank of 3, and a Silver larger than 0?",SELECT MIN(bronze) FROM table_name_39 WHERE rank = 3 AND silver > 0 hmmm. Can you also show me the name and age of the oldest editor?,"SELECT Name, age FROM editor WHERE Age = ( select max ( age ) from editor ) " What are the names of the songs they have sung?,"select song_name from song where artist_name in ( SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7 ) " "When the lead margin was 35, what were the Democrat: Vivian Davis Figures?",SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE lead_margin = 35 Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.,SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2 Can you also include their id?,"SELECT last_name ,teacher_id FROM Teachers EXCEPT SELECT T1.last_name ,T1.teacher_id FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id" What is the total population for all the districts that have an area larger tahn the average city area?,SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district) Who is the owner of the branding gx94?,"SELECT owner FROM table_name_78 WHERE branding = ""gx94""" How many attended tie number 3?,"SELECT MAX(attendance) FROM table_name_97 WHERE tie_no = ""3""" Who won when the Patriots played the Denver Broncos?,"SELECT record FROM table_name_38 WHERE opponent = ""denver broncos""" What type of document is that?,SELECT document_type_code FROM documents ORDER BY access_count DESC LIMIT 1 Find distinct cities of addresses of people?,SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id who is the the candidates with incumbent being james o'connor,"SELECT candidates FROM table_1342393_17 WHERE incumbent = ""James O'Connor""" What is the average gpa of Ogdon Zywicki's research assistants?,SELECT SUM(T3.gpa) / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T1.student_id = T3.student_id WHERE T2.first_name = 'Ogdon' AND T2.last_name = 'Zywicki' How many films have a rental duration of over 6 days?,SELECT COUNT(film_id) FROM film WHERE rental_duration > 6 What is the appointment day for 4 December 2008 vacancy?,"SELECT date_of_appointment FROM table_name_40 WHERE date_of_vacancy = ""4 december 2008""" Name the samurai for stampede of t. mask,"SELECT samurai FROM table_name_97 WHERE stampede = ""t. mask""" Which steal/intercept ball has no for both the sliding tackle and dump tackle?,"SELECT steal_intercept_ball FROM table_name_37 WHERE sliding_tackle = ""no"" AND dump_tackle = ""no""" What is the highest number of losses where a team scored more than 45 goals and had 32 against?,SELECT MAX(losses) FROM table_name_23 WHERE goals_against = 32 AND goals_for > 45 "When the incumbent was William Elliott, what was the result?","SELECT result FROM table_name_75 WHERE incumbent = ""william elliott""" State the headquarter of the truck which completed shipment no.1045.,SELECT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = 1045 Show all artist names with an average exhibition attendance over 200.,SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance) > 200 What is the round for a year earlier than 1987?,SELECT round FROM table_name_19 WHERE year < 1987 "List the name, nationality and id of all male architects ordered by their names lexicographically?","SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name" What team did Alireza mansourian leave?,"SELECT team FROM table_22297198_3 WHERE outgoing_manager = ""Alireza Mansourian""" What was the margin of victory when the winning score was −9 (72-68-64-67=271)?,SELECT margin_of_victory FROM table_name_84 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271) "Of those 18, how many doctorates are employed by the accounting department?","SELECT count ( * ) from professor where prof_high_degree = ""Ph.D."" and dept_code = ""ACCT""" Name the team for 48 game,SELECT team FROM table_name_16 WHERE game = 48 What is the Final Four with a win percentage of .750?,"SELECT final_four FROM table_name_32 WHERE win__percentage = "".750""" Who did he fight in Rumble of the Kings 6?,"SELECT opponent FROM table_name_87 WHERE event = ""rumble of the kings 6""" What is the total number of deaths and damage for all storms with a max speed greater than the average?,"SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm);" "What is the result for a year after 2003, when the nominee(s) is john wells?","SELECT result FROM table_name_64 WHERE year > 2003 AND nominee_s_ = ""john wells""" What are the names and locations of tracks that have had exactly 1 race?,"SELECT T2.name , T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING count(*) = 1" What country does Tiger Woods play for?,"SELECT country FROM table_name_17 WHERE player = ""tiger woods""" How many flights were there from San Diego International airport to Los Angeles International airport in the August of 2018?,"SELECT COUNT(FL_DATE) FROM Airlines WHERE FL_DATE LIKE '2018/8%' AND ORIGIN = ( SELECT T2.ORIGIN FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'San Diego, CA: San Diego International' ) AND DEST = ( SELECT T4.DEST FROM Airports AS T3 INNER JOIN Airlines AS T4 ON T3.Code = T4.DEST WHERE T3.Description = 'Los Angeles, CA: Los Angeles International' )" What was the score of the game that put the team at 27-32?,"SELECT loss FROM table_name_51 WHERE record = ""27-32""" where did arron oberholser play?,"SELECT country FROM table_name_84 WHERE player = ""arron oberholser""" List the names and prices of the cars with model 82 and mileage per gallon of greater than 30.,"SELECT T2.car_name, T1.price FROM price AS T1 INNER JOIN data AS T2 ON T1.ID = T2.ID WHERE T2.model = 82 AND T2.mpg > 30" "Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?","SELECT name FROM table_name_70 WHERE aafc_team = ""los angeles dons"" AND position = ""fb"" AND college = ""oklahoma a&m""" what is the rate of kill in south korea,"SELECT Killed FROM perpetrator WHERE country = ""South Korea""" "Hello, what are the names of the faculty members who don't participate in any activity?","SELECT Lname, Fname FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in" Which home team competed against the away team of Melbourne?,"SELECT home_team FROM table_name_56 WHERE away_team = ""melbourne""" "How many times is the number of ""Women's Clothing"" Yelp businesses to ""Men's Clothing""?",SELECT CAST(SUM(CASE WHEN T2.category_name = 'Women''s Clothing' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.category_name = 'Men''s Clothing' THEN 1 ELSE 0 END) AS TIMES FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id What are the names of everyone else who lives in Austin?,"select name from person where city = ""austin""" How many mountains in this table?,SELECT count ( * ) FROM mountain "display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.","SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')" List all the issues of the complaints made by Kaitlyn Eliza Elliott.,SELECT DISTINCT T2.Issue FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Kaitlyn' AND T1.middle = 'Eliza' AND T1.last = 'Elliott' What is the least number of Races for a Racer with less than 0 Points?,SELECT MIN(races) FROM table_name_31 WHERE points < 0 "What instrument did the musician with last name ""Heilo"" use in the song ""Le Pop""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Le Pop""" Return the name and id of the furniture with the highest market rate.,"SELECT name , furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1" What is the average score of all universities in 2012?,SELECT AVG(score) FROM university_ranking_year WHERE year = 2012 How many flaps did he have when he had 109 points?,SELECT MAX(flaps) FROM table_23128286_1 WHERE points = 109 "How many ""servant to Timon"" characters are there?",SELECT COUNT(id) FROM characters WHERE Description = 'servant to Timon' What is the party of the election in which Robert Bauman is the incumbent?,"SELECT party FROM table_1341690_20 WHERE incumbent = ""Robert Bauman""" How many laps did the grid 1 engine have?,"SELECT SUM(laps) FROM table_name_96 WHERE time_retired = ""engine"" AND grid = 1" "What is the most recent year in which the score was 4–6, 6–3, 7–5?","SELECT MAX(year) FROM table_name_91 WHERE score = ""4–6, 6–3, 7–5""" Name the minimum inhabitants for markatal 49,SELECT MIN(inhabitants_per_km²) FROM table_16278673_1 WHERE markatal = 49 Name the broadcast date of 6.9 million viewers,"SELECT broadcast_date FROM table_2114308_1 WHERE viewers__in_millions_ = ""6.9""" "What are flight numbers of flights departing from Airport ""APG""?","SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = ""APG""" What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2–0?,"SELECT away_team FROM table_name_33 WHERE score = ""2–0"" AND home_team = ""wolverhampton wanderers""" At which race did reg parnell win the goodwood trophy?,"SELECT race FROM table_name_47 WHERE event = ""goodwood trophy"" AND driver = ""reg parnell""" How many devices are there?,SELECT COUNT(*) FROM device Find the instructor id of all instructors in the Statistics department,"select ID from instructor where dept_name = 'Statistics'" "Which res has a Time of 5:00, and a Method of decision (unanimous), and a Record of 1–0?","SELECT res FROM table_name_25 WHERE time = ""5:00"" AND method = ""decision (unanimous)"" AND record = ""1–0""" Find the distinct names of all songs that have a higher resolution than some songs in English.,"SELECT DISTINCT song_name FROM song WHERE resolution > ( SELECT min ( resolution ) FROM song WHERE languages = ""english"" ) " When was the game with 13-5-6 record played?,"SELECT date FROM table_23308178_5 WHERE record = ""13-5-6""" film description?,SELECT T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count ( * ) DESC LIMIT 1 What is the average duration of bike trips in the city of Palo Alto?,SELECT AVG(T1.duration) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Palo Alto' "What is Version, when Genre is ""Action"", and when Title is ""Hairball""?","SELECT version FROM table_name_39 WHERE genre = ""action"" AND title = ""hairball""" "Who is the sales person in charge of the territory with the id ""9""? Provide their full name.","SELECT T2.FirstName, T2.MiddleName, T2.LastName FROM SalesPerson AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.TerritoryID = 9" List the project details of the project both producing patent and paper as outcomes.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent' What is the nominal GDP per capita when the population is 63.056 million?,"SELECT MIN(gdp_per_capita_nominal__) AS $_ FROM table_1610496_3 WHERE population__millions_ = ""63.056""" "What is the unit of measurement of product named ""cumin""?","SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = ""cumin""" What is the maximum length in meters for the bridges and what are the architects' names?,"SELECT max(T1.length_meters) , T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id = T2.id" what is the date on week 6,SELECT date FROM table_name_97 WHERE week = 6 "Which film has the most number of actors or actresses? List the film name, film id and description.","SELECT T2.title , T2.film_id , T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1" Who was the away team when North Melbourne was the home team?,"SELECT away_team FROM table_name_17 WHERE home_team = ""north melbourne""" Show the years in which orchestras that have given more than one performance are founded.,SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1 What is the highest infant mortality rate per thousand of the countries whose inflation is under 3?,SELECT MAX(T2.Infant_Mortality) FROM economy AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE T1.Inflation < 3 What was the date of the show titled Beat the Star?,"SELECT date_aired FROM table_name_54 WHERE title = ""beat the star""" Calculate the percentage of countries that belong to the American region.,"SELECT CAST(SUM(IIF(T1.r_name = 'America', 1, 0)) AS REAL) * 100 / COUNT(T2.n_name) FROM region AS T1 INNER JOIN nation AS T2 ON T1.r_regionkey = T2.n_regionkey" "Among all the crimes that had happened in Central Chicago, how many of them were cases of domestic violence?",SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' AND T1.domestic = 'TRUE' How many students are on scholarships?,"SELECT count ( distinct stuid ) FROM SportsInfo WHERE OnScholarship = ""Y""" How many urgent orders did Clerk#000000001 handle in 1997?,"SELECT COUNT(o_orderkey) FROM orders WHERE STRFTIME('%Y', o_orderdate) = '1997' AND o_clerk = 'Clerk#000000001' AND o_orderpriority = '1-URGENT'" What country is Alain Labrecque from?,"SELECT nationality FROM table_1965650_10 WHERE player = ""Alain Labrecque""" "What are names of customers who have both mailshots in ""order"" outcome? | Do you want the names of customers who have mailshot with an outcome code ""Order""? | Yes",SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' "1980 smaller than 719, and a 1960 smaller than 205, and a 1996[2] smaller than 364, and a 1970 larger than 251 is what 1990 highest?",SELECT MAX(1990) FROM table_name_94 WHERE 1980 < 719 AND 1960 < 205 AND 1996[2] < 364 AND 1970 > 251 Who was the jockey in 7th position?,"SELECT jockey FROM table_22265261_1 WHERE position = ""7th""" Find the emails of customers who has filed a complaints of the product with the most complaints.,SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY COUNT(*) LIMIT 1 Calculate the average age of patients with prediabetes care plan.,"SELECT CAST(SUM(CASE WHEN T1.deathdate IS NULL THEN strftime('%Y', T2.STOP) - strftime('%Y', T1.birthdate) ELSE strftime('%Y', T1.deathdate) - strftime('%Y', T1.birthdate) END) AS REAL) / COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN careplans AS T2 ON T1.patient = T2.PATIENT WHERE T2.REASONDESCRIPTION = 'Prediabetes'" Show the names of roles with role code..,"SELECT role_code,role_name FROM ROLES" What is the accrediation for united tribes technical college?,"SELECT accreditation FROM table_2076522_2 WHERE school = ""United Tribes Technical College""" Identify all the restaurants in Marin County by their id.,SELECT T1.id_restaurant FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county' What is average age of male for different job title?,"SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job" List the name of ships that are not involved in any mission,SELECT Name FROM ship WHERE Ship_ID NOT IN ( SELECT Ship_ID FROM mission ) "Show the first name, last name, and phone number for all female faculty members.","SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'" "What is the record for November 26, with the decision made by Prusek?","SELECT record FROM table_name_44 WHERE decision = ""prusek"" AND date = ""november 26""" Name the most total ,SELECT MAX(total) FROM table_22360_3 "Which school, club team, or country played for the rockets in the years 2000-01?","SELECT school_club_team_country FROM table_11734041_3 WHERE years_for_rockets = ""2000-01""" How many sales representitives are based in the offices in the USA?,SELECT COUNT(t1.employeeNumber) FROM employees AS t1 INNER JOIN offices AS t2 ON t1.officeCode = t2.officeCode WHERE t2.country = 'USA' AND t1.jobTitle = 'Sales Rep' What class has less than 12 numbers built operated by southern?,"SELECT class FROM table_name_1 WHERE no_built < 12 AND operator = ""southern""" What is the name of the team that won match ID 336000?,SELECT T2.Team_Name FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Match_Winner WHERE T1.Match_Id = 336000 Tell me the county for mariano castro,"SELECT county FROM table_name_48 WHERE grantee = ""mariano castro""" How many wins had less than 91 points in 25th rank?,"SELECT wins FROM table_name_44 WHERE points < 91 AND rank = ""25th""" What is the set 5 with a 19-25 set 1?,"SELECT set_5 FROM table_name_44 WHERE set_1 = ""19-25""" List down the locations of menu sponsored by Norddeutscher Lloyd Bremen.,SELECT location FROM Menu WHERE sponsor = 'Norddeutscher Lloyd Bremen' "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.","SELECT flno , origin , destination FROM Flight ORDER BY origin" What are the names of players who had been man of the match more than 5 times in season year 2008?,SELECT CASE WHEN COUNT(T2.Man_of_the_Match) > 5 THEN T1.Player_Name ELSE 0 END FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T4.Season_Year = 2008 "What is 1987, when 1986 is ""1R""?","SELECT 1987 FROM table_name_15 WHERE 1986 = ""1r""" What player was drafted 252?,SELECT player FROM table_name_52 WHERE pick = 252 What is the total number of played for the entry with a position of less than 1?,SELECT SUM(played) FROM table_name_65 WHERE position < 1 What is the name of the person who is the oldest?,SELECT name FROM Person WHERE age = (SELECT max(age) FROM person) List the official names of cities that have not held any competition.,SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition) Show distinct names of singers that have songs with sales more than 300000.,SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000 "What was the score of the game when the attendance was 1,644?","SELECT score FROM table_name_38 WHERE attendance = ""1,644""" What is the total revenue of each manufacturer?,"SELECT sum(revenue) , name FROM manufacturers GROUP BY name" Please list the IDs of all the menus that are DIYs of the restaurant.,SELECT id FROM Menu WHERE sponsor IS NULL What district is incumbent jack hightower from?,"SELECT district FROM table_1341598_44 WHERE incumbent = ""Jack Hightower""" "What is the sum of the ranks for the film, eddie murphy raw?","SELECT SUM(rank) FROM table_name_19 WHERE title = ""eddie murphy raw""" When David E. Finley was the incumbent what was the result?,"SELECT result FROM table_name_8 WHERE incumbent = ""david e. finley""" Which claim had the highest claim value? Please list the date the claim was made and the claim id.,"SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id order by T1.Amount_Claimed desc limit 1" Show the average and maximum damage for all storms with max speed higher than 1000.,"SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000;" Indicate the fax of the company Blondesddsl pre et fils in Strasbourg city.,SELECT Fax FROM Customers WHERE CompanyName = 'Blondesddsl pre et fils' AND City = 'Strasbourg' "Who directed the episode that aired on july15,2012?","SELECT directed_by FROM table_20704243_6 WHERE original_air_date = ""July15,2012""" "Show different builders of railways, along with the corresponding number of railways using each builder.","SELECT Builder , COUNT(*) FROM railway GROUP BY Builder" What is the name of the team when the stadium is listed as Edward Jones Dome?,"SELECT team FROM table_28884858_1 WHERE stadium = ""Edward Jones Dome""" How many movies did Universal Studios release?,SELECT COUNT(T2.movie_id) FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id WHERE T1.company_name = 'Universal Studios' What was the total number of A scores for Japan when the T score was more than 4?,"SELECT COUNT(a_score) FROM table_name_63 WHERE nation = ""japan"" AND t_score > 4" "For club Swansea Uplands RFC, what is the amount of tries against?","SELECT tries_against FROM table_17675675_2 WHERE club = ""Swansea Uplands RFC""" What is the name of the player with the largest number of votes?,SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1 How many advisors are there?,SELECT count(DISTINCT advisor) FROM Student Which team had 7 losses and 55 goals?,"SELECT team FROM table_name_80 WHERE losses = ""7"" AND goals_for = 55" What is the sum of Wins when draws shows 0 in 1964?,SELECT SUM(wins) FROM table_name_46 WHERE draws = 0 AND season = 1964 Which away team plays at Arden Street Oval?,"SELECT away_team FROM table_name_89 WHERE venue = ""arden street oval""" "What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a Forbes 2011 ranking larger than 17, and a CNN 2011 ranking less than 13?",SELECT SUM(usn_2013) FROM table_name_63 WHERE bw_2013 < 1000 AND forbes_2011 > 17 AND cnn_2011 < 13 What album was the song Shimmy Jimmy from the episode titled Toy to the world on?,"SELECT album_s_ FROM table_23667534_1 WHERE episode_title = ""Toy to the World"" AND song_s__title = ""Shimmy Jimmy""" Find the number of people who is under 40 for each gender.,"SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender" "List the hardware model name and company name for the phone whose screen mode type is ""Graphics.""","SELECT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = ""Graphics"";" What was the score on April 21?,"SELECT score FROM table_name_12 WHERE date = ""april 21""" "What's the year in 5th position that happened in Osaka, Japan?","SELECT MIN(year) FROM table_name_92 WHERE position = ""5th"" AND venue = ""osaka, japan""" What score did the home team of north melbourne get?,"SELECT home_team AS score FROM table_name_59 WHERE home_team = ""north melbourne""" Tell me class code for class room BUS311 ?,SELECT class_code FROM CLASS where CLASS_ROOM = 'BUS311' "What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?",SELECT SUM(games) FROM table_name_75 WHERE lost > 2 AND points < 0 What are the names of the two directors who have multiple show times?,SELECT distinct T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id where T1.show_times_per_day>1 What is the area of the appelation that produces the highest number of wines before the year of 2010?,SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1 "During st kilda's home game, what was the number of people in the crowd?","SELECT crowd FROM table_name_12 WHERE home_team = ""st kilda""" what are the shops? | Do you want the names of all the shops? | yes,select shop_name from shop Find the title and star rating of the movie that got the least rating star for each reviewer.,"SELECT T2.title, T1.rID, T1.stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID" "Among the cities with alias St Thomas, provide the type of postal point for each city.",SELECT DISTINCT T2.type FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'St Thomas' Find the top price?,SELECT Product_Price FROM Products ORDER BY Product_PRICE DESC LIMIT 1 Who has been coached by Jameson Tomas?,"SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Coach_name = ""Jameson Tomas""" Return the average age across all gymnasts.,SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID "Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7?","SELECT MAX(week) FROM table_name_17 WHERE points_for > 19 AND opponent = ""philadelphia eagles"" AND points_against > 7" "How many Points have an Against smaller than 43, and a Position smaller than 1?",SELECT SUM(points) FROM table_name_49 WHERE against < 43 AND position < 1 Which Country has azeri tv tower?,"SELECT country FROM table_name_61 WHERE name = ""azeri tv tower""" What are the names of races that were held after 2017 and the circuits were in the country of Spain?,"SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2017" What's the sum of the games that had paul (9) for high assists?,"SELECT SUM(game) FROM table_name_61 WHERE high_assists = ""paul (9)""" What are the first and last name for those employees who works either in department 70 or 90?,"SELECT first_name , last_name FROM employees WHERE department_id = 70 OR department_id = 90" Which Airport has a Carrier of malaysia airlines?,"SELECT airport FROM table_name_52 WHERE carriers = ""malaysia airlines""" "What tournament was on Jan 29, 2012?","SELECT tournament FROM table_name_8 WHERE date = ""jan 29, 2012""" Find the model of the car whose weight is below the average weight.,SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA) When river ness is the hr name what is the hr number?,"SELECT hr_no FROM table_1886270_1 WHERE hr_name = ""River Ness""" Name the year for hercules,"SELECT year_made FROM table_name_52 WHERE class = ""hercules""" What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca?,"SELECT general_classification FROM table_name_36 WHERE mountains_classification = ""stefano garzelli"" AND points_classification = ""danilo di luca"" AND winner = ""ignatas konovalovas""" On what date was James P. Buchanan (d)'s successor seated?,"SELECT date_successor_seated FROM table_2159547_3 WHERE vacator = ""James P. Buchanan (D)""" "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.","SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name" How many of the patients who underwent a 'bone immobilization' procedure have a driver's license?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Bone immobilization' AND T1.drivers IS NOT NULL In what Season were there 86 Assists in the WCJHL League?,"SELECT season FROM table_name_53 WHERE league = ""wcjhl"" AND assists = 86" How many types of products have Rodrick Heaney bought in total?,"SELECT count(DISTINCT t3.product_id) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" Which flag is most widely used among all ships?,SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1 Which tournament did the opponent Guillermo Carry play?,"SELECT tournament FROM table_name_60 WHERE opponent = ""guillermo carry""" what is the average tournaments played when cuts made is 14?,SELECT AVG(tournaments_played) FROM table_name_63 WHERE cuts_made = 14 what educational institute does wes swinson attend,"SELECT college_junior_club_team FROM table_2781227_10 WHERE player = ""Wes Swinson""" Which major has least number of students? List the major and the number of students.,"SELECT Major , count(*) FROM Student GROUP BY Major ORDER BY count(Major) ASC LIMIT 1;" Who was the original artist for First Solo?,"SELECT original_artist FROM table_26250176_1 WHERE theme = ""First Solo""" What are the names and arrival times of trains?,"SELECT Name , Arrival FROM train" Which opponent has a loss of trout (7-4)?,"SELECT opponent FROM table_name_53 WHERE loss = ""trout (7-4)""" "How many different instruments are used in the song ""Badlands""?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Badlands""" What are the dates for the documents with both 'GV' type and 'SF' type expenses?,SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF' "Which Points is the lowest one that has a Score of 1–4, and a January smaller than 18?","SELECT MIN(points) FROM table_name_26 WHERE score = ""1–4"" AND january < 18" What is the enrollment for the colors green & black?,"SELECT enrollment FROM table_261927_1 WHERE colors = ""Green & Black""" What were the points in the 1958-59 season? ,"SELECT points FROM table_2110959_1 WHERE season = ""1958-59""" When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?,"SELECT l2_cache FROM table_18823880_10 WHERE release_date = ""September 2009"" AND part_number_s_ = ""BY80607002529AF""" What's the type of the school whose students' name is spirits?,"SELECT type FROM table_1973842_1 WHERE nickname = ""Spirits""" How many goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins?,SELECT COUNT(goals_for) FROM table_name_37 WHERE goals_against < 56 AND games_played > 7 AND wins < 6 What is the Airport when the ICAO shows rpvm?,"SELECT airport FROM table_name_56 WHERE icao = ""rpvm""" Why did the change happened in Massachusetts (2)?,"SELECT reason_for_change FROM table_18563954_3 WHERE state__class_ = ""Massachusetts (2)""" What are the weights of all the perpetrators from South Korea?,"SELECT T1.Weight FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""South Korea""" Find the name of the instructors who taught C Programming course before.,SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' "Which staff members who reported problems from the product ""rem"" but not ""aut""? Give me their first and last names.","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""rem"" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""aut""" who's the writer of Bloody Mary? | Did you mean Bloody Mary or Bloody Mary : Lady Liberty? | Bloody Mary,"SELECT Writer FROM book WHERE Title = ""Bloody Mary""" What is the closing and opening time of businesses located at Glendale with highest star rating?,"SELECT T2.opening_time, T2.closing_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Glendale' ORDER BY T1.stars DESC LIMIT 1" How many points did the team have that conceded 41 goals and finish in a place larger than 10?,SELECT COUNT(points) FROM table_name_25 WHERE goals_conceded = 41 AND place > 10 What is the Australian open in 2010?,SELECT australian_open FROM table_name_71 WHERE year = 2010 What is the largest vote result for the Huddersfield constituency?,"SELECT MAX(result___votes) FROM table_25818630_1 WHERE constituency = ""Huddersfield""" How many delegates do each of these counties have?,"SELECT T1.County_name,COUNT ( * ) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id" What's the English title listed that has an Original title of The Crying Game?,"SELECT english_title FROM table_name_95 WHERE original_title = ""the crying game""" "what's the maximum position with winnings  $50,000","SELECT MAX(position) FROM table_10160447_1 WHERE winnings = ""$50,000""" Which room has the highest base price?,"SELECT RoomId , roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1;" What is the sum of losses that have points of 11 and more than 1 draw?,SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1 How many faculty members do we have for each rank and gender?,"SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex" "Please list the years of film market estimations when the market is in country ""Japan"" in descending order.","SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = ""Japan"" ORDER BY T1.Year DESC" Show names for all employees with a salary greater than average,SELECT name FROM Employee WHERE salary > ( SELECT avg ( salary ) FROM Employee ) "What team was the opponent in the 2008–09 season, with a final score of 2–3 l?","SELECT opponent FROM table_name_43 WHERE season = ""2008–09"" AND final_score = ""2–3 l""" What model type has 97100 model designation?,"SELECT model_type FROM table_20866024_2 WHERE model_designation = ""97100""" Find the name of dorms which have TV Lounge but no Study Room as amenity.,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' How many Mountains Classifications were in the race with Mike Northey as Youth Classification?,"SELECT COUNT(mountains_classification) FROM table_23157997_13 WHERE youth_classification = ""Mike Northey""" "Which Completions has Attempts of 1,271?","SELECT completions FROM table_name_89 WHERE attempts = ""1,271""" What was the away team score at Windy Hill?,"SELECT away_team AS score FROM table_name_15 WHERE venue = ""windy hill""" Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.,SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000 What is the away team's score when footscray is the away team?,"SELECT away_team AS score FROM table_name_74 WHERE away_team = ""footscray""" What card type did customer number 14 use?,SELECT card_type_code FROM Customers_cards where customer_id = 14 What about their length?,"SELECT catalog_entry_name,LENGTH FROM catalog_contents WHERE LENGTH < 5" Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.,SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2 Tell me the lowest gold for rank of 6 and total less than 2,"SELECT MIN(gold) FROM table_name_16 WHERE rank = ""6"" AND total < 2" List the names of all distinct wines that are made of red color grape.,"SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""Red""" Which division had the most games with more than 5 total field goals on 2020/2/22? Give the full name of the division?,"SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-02-22' AND T1.FTAG + T1.FTHG > 5 ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1" What shows for 2002 when 2010 shows 69?,"SELECT 2002 FROM table_name_85 WHERE 2010 = ""69""" Which paper ID cited the most word? In which class label does it belongs to?,"SELECT T1.paper_id, T1.class_label FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id GROUP BY T1.paper_id, T1.class_label ORDER BY COUNT(T2.word_cited_id) DESC LIMIT 1" what is the top-5 when the tournament is totals and the top-25 is more than 4?,"SELECT AVG(top_5) FROM table_name_80 WHERE tournament = ""totals"" AND top_25 > 4" What is the country that has the most perpetrators?,"SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1;" What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?,"SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )" How many bathroom count those building 809 has? | The total number of bathrooms building 809 has is NULL. | How about building 808?,SELECT sum ( bathroom_count ) FROM Apartments WHERE building_id = 808 Who is listed as the Winners with a Year of 2005?,"SELECT winners FROM table_name_79 WHERE year = ""2005""" What is the u form of the word with a neuter form of skip and a masculine a-ending of fisker?,"SELECT masculine_u_stems FROM table_name_18 WHERE neuter_a_stems = ""skip"" AND masculine_a_stems = ""fisker""" What was the broadcast date of episodes that were watched by 23.2 million viewers?,"SELECT original_air_date FROM table_27714985_1 WHERE us_viewers__millions_ = ""23.2""" Which company has the most buildings? | Do you want to the name of the company? | Yes and the company ID.,"select name,id from companies where id = ( SELECT company_id from office_locations group by company_id order by count ( * ) desc limit 1 ) " Name the regular season for final playoffs,"SELECT regular_season FROM table_2361911_2 WHERE playoffs = ""Final""" "which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?","SELECT MAX(no_in_season) FROM table_23117208_3 WHERE directed_by = ""Constantine Makris""" Give me the names of the accounts where the savings balance is more than 20000,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid where T3.balance>20000 Find the name of airline which runs the most number of routes.,SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1 How tall is the player from Yale University who picked up 28 penalty minutes in the 2005-2006 season?,SELECT T3.height_in_cm FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN height_info AS T3 ON T2.height = T3.height_id WHERE T1.SEASON = '2005-2006' AND T1.TEAM = 'Yale Univ.' AND T1.PIM = 28 WHAT ROUND WAS FORWARD ANDRE PETERSSON SELECTED?,"SELECT MIN(round) FROM table_11803648_17 WHERE position = ""Forward""" What name is under the Socialist ticket when Thomas J. Kreuzer was on the Democratic ticket?,"SELECT socialist_ticket FROM table_name_92 WHERE democratic_ticket = ""thomas j. kreuzer""" "Who won the most manager award? | Do you mean the first name of the person who won the most manager award? | Yes, and tell me the last name and the id of that person as well.","SELECT T1.name_first , T1.name_last , T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY count ( * ) DESC LIMIT 1" "How many times on page number 44 does the word ""votives"" appear?",SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'votives' AND T2.pid = 44 Name the total number of scoring average for money list rank of 174,"SELECT COUNT(scoring_average) FROM table_13026799_3 WHERE money_list_rank = ""174""" What Division One team were champions at the same time the Division Two Hereford Lads Club Colts were champs?,"SELECT division_one FROM table_name_61 WHERE division_two = ""hereford lads club colts""" Please list the businesses names whose length of user review is long with business id from 1 to 20.,SELECT T4.category_name FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T1.review_length LIKE 'Long' AND T3.category_id BETWEEN 1 AND 20 GROUP BY T4.category_name What is the total number of bikes that can be hold in Redwood City before 2014.,"SELECT SUM(CASE WHEN city = 'Redwood City' AND SUBSTR(installation_date, -4) < '2014' THEN dock_count ELSE 0 END) NUM FROM station" What is the highest number against on 12/04/1969?,"SELECT MAX(against) FROM table_name_19 WHERE date = ""12/04/1969""" What is the city code of Student Shiela Jones?,"SELECT city_code FROM student WHERE Lname = ""Jones"" AND Fname = ""Shiela""" What is the NTSC M for Pal M 525/60?,"SELECT ntsc_m FROM table_name_23 WHERE pal_m = ""525/60""" "For each city, what is the highest latitude for its stations?","SELECT city , max(lat) FROM station GROUP BY city" What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?,"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name" how many have times of 6,SELECT COUNT(fastest_lap) FROM table_13512105_3 WHERE rnd = 6 What is the vehicle details of vehicle id 1 and 2 ?,"SELECT vehicle_details FROM Vehicles WHERE vehicle_id = ""1"" or vehicle_id = ""2""" "What is the average number of points for players from the ""AIB"" club?","SELECT avg(T2.Points) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.name = ""AIB""" can you show me target user id | Would you like a list of all the target user id? | yes,SELECT target_u_id from trust What is the Date of the tournament with a Score of 6-1 6-3?,"SELECT date FROM table_name_22 WHERE score = ""6-1 6-3""" What was the Rebuildjahr(e) for the T2AA class?,"SELECT rebuildjahr_e_ FROM table_name_17 WHERE class = ""t2aa""" Which genre has the most games? Show its id.,"SELECT genre_id FROM ( SELECT T.genre_id, COUNT(T.id) FROM game AS T GROUP BY T.genre_id ORDER BY COUNT(T.id) DESC LIMIT 1 )" List the type of the services in alphabetical order.,SELECT service_type_code FROM services ORDER BY service_type_code Return the code of the card type that is most common.,SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1 Describe what happened in the episode of award no.296.,SELECT T1.summary FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE T2.award_id = 296 "What is Player, when Country is United States, and when Score is 70-72-70=212?","SELECT player FROM table_name_1 WHERE country = ""united states"" AND score = 70 - 72 - 70 = 212" What is the total number of bronze medals for the team with more than 4 silver and less than 30 gold medals?,"SELECT COUNT(bronze) FROM table_name_41 WHERE silver > 4 AND nation = ""total"" AND gold < 30" "Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?",SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790 Which Loss has a Date of july 2?,"SELECT loss FROM table_name_71 WHERE date = ""july 2""" "What is the ISIN that has a coupon of 1.02 and a value issued of 447,000,000?","SELECT isin FROM table_21692771_1 WHERE coupon = ""1.02"" AND amount_issued_[€] = ""447,000,000""" What show is coming back on in July 2008,"SELECT programme FROM table_13549921_18 WHERE date_s__of_return = ""July 2008""" "Which Capacity has a City of london, and a Stadium of queen's club?","SELECT AVG(capacity) FROM table_name_85 WHERE city = ""london"" AND stadium = ""queen's club""" Find the first names of the faculty members who are playing Canoeing or Kayaking.,SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking' What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635?,"SELECT label FROM table_name_75 WHERE format = ""stereo vinyl lp"" AND catalog = ""sf-7635""" "What are the building full names that contain the word ""court""?","SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE ""%court%""" how many votes did she get? | Do you mean the total votes in four election or list them separately? | the total votes,"SELECT sum ( T2.President_VOTE ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = ""F""" What are the first name and last name of the professionals who have done treatment with cost below average?,"SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)" How many match values have points under 14 and 0 draws?,SELECT COUNT(match) FROM table_name_23 WHERE points < 14 AND draw < 0 How many Summer games are there that were held in Paris?,SELECT COUNT(T3.id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Paris' AND T3.season = 'Summer' "What is Player, when Place is 2?","SELECT player FROM table_name_93 WHERE place = ""2""" What are the details of the shops that can be accessed by walk?,"SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = ""walk""" What year did the Nerang Suburb get founded?,"SELECT COUNT(founded) FROM table_name_96 WHERE suburb = ""nerang""" Which Leader has Spoilt Votes as % of Seats?,"SELECT leader FROM table_name_26 WHERE _percentage_of_seats = ""spoilt votes""" "Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1","SELECT country FROM table_name_3 WHERE to_par > 3 AND year_s__won = ""1979""" "What number episode in the series is the episode ""things that fly""?","SELECT MAX(series_number) FROM table_13505192_3 WHERE episode_title = ""Things That Fly""" "How many services has each resident requested? List the resident id, details, and the count in descending order of the count.","SELECT t1.resident_id , t1.other_details , count(*) FROM residents AS t1 JOIN residents_services AS t2 ON t1.resident_id = t2.resident_id GROUP BY t1.resident_id ORDER BY count(*) DESC" When was the first asset acquired?,SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date ASC LIMIT 1 Find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.,"SELECT T3.location , T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3" what is the declination (j2000) when the ngc number is higher than 3593?,SELECT declination___j2000__ FROM table_name_90 WHERE ngc_number > 3593 What is the Segment A for when Segment C is s Sailboard?,"SELECT segment_a FROM table_15187735_6 WHERE segment_c = ""s Sailboard""" What Number has a Language listed as other?,"SELECT number FROM table_name_33 WHERE language = ""other""" "Hmm, I also want to know their record times and the related events.","SELECT t1.time, t2.event_id FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id" What was built in 1857?,SELECT name FROM table_name_89 WHERE year_built = 1857 "Who vacated his post when his successor was formally installed on May 11, 1966?","SELECT vacator FROM table_1847180_3 WHERE date_of_successors_formal_installation = ""May 11, 1966""" List the area code of the city with the highest Hispanic population.,SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.hispanic_population = ( SELECT MAX(hispanic_population) FROM zip_data ) List the school districts that have bought resources from Barnes and Noble.,SELECT T2.school_district FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.vendor_name = 'Barnes and Noble' Show the names of editors that are on at least two journal committees.,SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2 What type of store is most popular in the South?,SELECT DISTINCT CASE WHEN MAX(T2.Population) THEN T2.Type END FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode What are the names of conductors as well as the corresonding orchestras that they have conducted?,"SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID" "Who is the voice actor for the villain of the movie ""Alice in Wonderland""?",SELECT T1.`voice-actor` FROM `voice-actors` AS T1 INNER JOIN characters AS T2 ON T1.movie = T2.movie_title WHERE T1.character LIKE '%' OR T2.villian OR '%' AND T2.movie_title = 'Alice in Wonderland' What is the building id of apartment Apt 585?,"SELECT building_id FROM Apartments WHERE apt_number = ""Apt. 585""" Which 1st leg has a Team 1 of drita?,"SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = ""drita""" Great - can you list all apartments with more than one bathroom and more than three bedrooms?,SELECT * FROM Apartments where bathroom_count > 1 and bedroom_count > 3 "How about project Ast3, how many scientists?","SELECT count ( * ) FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project where T1.Code = ""Ast3""" Can you tell me the Entrant that has the Laps of 17?,SELECT entrant FROM table_name_77 WHERE laps = 17 What proportion of sales orders are made from the United Kingdom?,SELECT CAST(SUM(CASE WHEN T2.Name = 'United Kingdom' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.SalesOrderID) FROM SalesOrderHeader AS T1 INNER JOIN SalesTerritory AS T2 ON T1.TerritoryID = T2.TerritoryID "Among the female customers with an level of education of 3 and below, list their income.",SELECT INCOME_K FROM Demog WHERE GEOID IN ( SELECT GEOID FROM Customers WHERE EDUCATIONNUM < 3 AND SEX = 'Female' ) What were the starting odds for the opening odds of 2-1?,"SELECT starting_odds FROM table_22517564_3 WHERE opening_odds = ""2-1""" Who was the visiting team at the Cavaliers game that had a score of 121–85?,"SELECT visitor FROM table_name_29 WHERE score = ""121–85""" Calculate the ratio of disabled students who have never been absent from school.,"SELECT 100 * SUM(IIF(T2.month = 0, 1, 0)) AS num FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name" What are the names of all students who successfully tried out for the position of striker?,SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker' What is the title of the episode that was directed by Roy Dupuis?,"SELECT title FROM table_name_38 WHERE directed_by = ""roy dupuis""" Find the number of dorms and total capacity for each gender.,"SELECT count(*) , sum(student_capacity) , gender FROM dorm GROUP BY gender" What was the result of the 4:27 fight?,"SELECT res FROM table_name_51 WHERE time = ""4:27""" What was the attendance when St Kilda played as the home team?,"SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = ""st kilda""" "Show me the country with people younger than 30,",SELECT distinct country FROM people WHERE age<30 What did Geelong score as the away team?,"SELECT away_team AS score FROM table_name_91 WHERE away_team = ""geelong""" "What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?",SELECT AVG(fall_06) FROM table_name_92 WHERE fall_08 < 79 AND fall_07 > 36 AND fall_05 > 74 How many teams did the heaviest player drafted by Arizona Coyotes have played for?,SELECT COUNT(T2.TEAM) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID INNER JOIN weight_info AS T3 ON T1.weight = T3.weight_id WHERE T1.overallby = 'Arizona Coyotes' ORDER BY T3.weight_in_lbs DESC LIMIT 1 Show which policy type has the most records in the database?,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count ( * ) DESC LIMIT 1 how many countries are in Asia?,"SELECT COUNT(*) FROM country WHERE continent = ""Asia""" Describe the full names and graduated universities of the professors who advised Olia Rabier.,"SELECT T1.first_name, T1.last_name, T1.graduate_from FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.f_name = 'Olia' AND T3.l_name = 'Rabier'" I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3,"SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = ""wushu"" AND silver > 3" "How many Drawn have a Position of 7, and Points larger than 18?",SELECT COUNT(drawn) FROM table_name_70 WHERE position = 7 AND points > 18 How many professors do have a Ph.D. degree?,SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' "When the standard speed (6th gear) is 114, what is the minimum rpm?","SELECT MIN(rpm) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = ""114""" Please show the most common age of editors.,SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1 What is the id of the repository with the highest number of solution path?,SELECT RepoId FROM solution GROUP BY RepoId ORDER BY COUNT(Path) DESC LIMIT 1 what is average of training hours?,SELECT avg ( HS ) FROM player How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?,"SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = ""38%""" How many are the Race 2 points when Race 1 was 12?,SELECT race_2_pts_ FROM table_23293785_3 WHERE race_1_pts_ = 12 Name the number of ends lost for 6 stolen ends,SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 6 Sure thing! Whats the typical selling price of cumin?,"SELECT typical_selling_price FROM Products WHERE product_name = ""cumin""" "Of the products that has a reorder inventory point of no more than 600, how many manufactured in-house products that takes 1 day to manufacture with BOM Level 4 are there?",SELECT COUNT(T1.ProductID) FROM Product AS T1 INNER JOIN BillOfMaterials AS T2 ON T1.ProductID = T2.ProductAssemblyID WHERE T1.MakeFlag = 1 AND T1.DaysToManufacture = 1 AND T2.BOMLevel = 4 AND T1.ReorderPoint <= 600 List the name and the number of stations for all the cities that have at least 15 stations.,"SELECT city , COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15" Return the number of United Airlines flights leaving from AHD Airport.,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.SourceAirport = ""AHD""" Which driver for Bob Holden Motors has fewer than 36 points and placed 7 in race 1?,"SELECT driver FROM table_name_80 WHERE points < 36 AND team = ""bob holden motors"" AND race_1 = ""7""" In which city are the most customers living in?,SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count ( * ) DESC LIMIT 1 How many points total are there later than 2003?,SELECT SUM(points) FROM table_name_99 WHERE year > 2003 "What is the customer last name, id and phone number with most number of orders?","SELECT T2.customer_last_name, T1.customer_id, T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1" How many cytoplasms result in a blue nucleus?,"SELECT COUNT(cytoplasm) FROM table_13570_1 WHERE nucleus = ""Blue""" What are the remarks for 8 October 2008?,"SELECT remarks FROM table_2015453_1 WHERE date = ""8 October 2008""" What shows for the League when the FA Cup is 6 (20)?,"SELECT league_a FROM table_name_47 WHERE fa_cup = ""6 (20)""" What is the indicator code for Mobile Cellular Subscriptions of Brazil?,SELECT DISTINCT IndicatorCode FROM Indicators WHERE CountryName = 'Brazil' AND IndicatorName = 'Mobile cellular subscriptions' What is the name of the root beer brand that has the longest history?,SELECT BrandName FROM rootbeerbrand WHERE FirstBrewedYear = ( SELECT MIN(FirstBrewedYear) FROM rootbeerbrand ) What's the name of Linroy Bottoson's victim?,"SELECT victim_s_ FROM table_23546266_1 WHERE executed_person = ""Linroy Bottoson""" what's Roof dorm id?,select dormid from has_amenity where amenid = ( SELECT T1.amenid FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count ( * ) DESC LIMIT 1 ) Where did the Gould Rex Mays Classic 150 occur?,"SELECT city_location FROM table_name_38 WHERE race_name = ""gould rex mays classic 150""" Name the production code for number in season being 21,"SELECT production_code FROM table_22948559_1 WHERE no_in_season = ""21""" "How many ranks have a Bronze smaller than 8, and a Total smaller than 7, and a Gold smaller than 1?",SELECT COUNT(rank) FROM table_name_1 WHERE bronze < 8 AND total < 7 AND gold < 1 "What is the average quantities ordered with payment method code ""MasterCard"" on invoices?","SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = ""MasterCard""" "Among the Olympic games held in Los Angeles, what is the name of the Olympic game that has the most number of competitors?",SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T4.city_name = 'Los Angeles' GROUP BY T1.id ORDER BY COUNT(T2.person_id) DESC LIMIT 1 What is the state of the college OU?,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T1.cName = 'OU' Which resource type is commonly bought by the Los Angeles Unified School District?,SELECT T1.project_resource_type FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_district = 'Los Angeles Unif Sch Dist' GROUP BY T2.school_district ORDER BY COUNT(T1.project_resource_type) DESC LIMIT 1 What are their ids?,SELECT DISTINCT RID FROM Rating WHERE stars < 4 Please indicate the total price of order key 32.,SELECT o_totalprice FROM orders WHERE o_orderkey = 32 List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.,"SELECT name , LOCATION FROM station ORDER BY Annual_entry_exit , Annual_interchanges" "What is the percentage of words in the Catalan language that have a repetition of more than 16,000 times?",SELECT CAST(COUNT(CASE WHEN occurrences > 16000 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM langs_words What's the quantity preserved when the fleet number was 700?,"SELECT quantity_preserved FROM table_name_57 WHERE fleet_number_s_ = ""700""" Who was in local affairs in 2012-2013?,"SELECT local_affairs FROM table_name_9 WHERE year = ""2012-2013""" Name the loss with record of 71-33,"SELECT loss FROM table_name_4 WHERE record = ""71-33""" Name the Prominence of the Mountain Peak of matchless mountain pb?,"SELECT prominence FROM table_name_81 WHERE mountain_peak = ""matchless mountain pb""" What are the committee names for the counties with population between 50000-100000?,SELECT T2.Committee FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 AND T1.Population > 50000 Show the average amount of transactions for different lots.,"SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id" What are the ids of all employees that don't have certificates?,SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate what locations of the party have the most hosts?,SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 "What country was the Pegasus, build by Royal Dockyard, from?","SELECT country FROM table_name_41 WHERE builder = ""royal dockyard"" AND ship = ""pegasus""" What is the lowest pick number?,SELECT MIN(pick__number) FROM table_14655757_1 And what is helen rank,SELECT T2.rank FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id where T1.name = 'Helen' Calculate the average number of female students who are disabled and who joined Foreign Legion organization.,"SELECT CAST(SUM(IIF(T3.name IS NULL, 1, 0)) AS REAL) / COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T2.organ = 'foreign_legion'" List all the cities where Zachery Hicks transported goods.,SELECT DISTINCT T3.city_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T1.city_id = T3.city_id WHERE T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' "How many traditional Chinese for the translation of ""Crossing the River""?","SELECT COUNT(traditional_chinese) FROM table_1805919_1 WHERE english_translation = ""Crossing the River""" "What is week 6 when week 7, week 4, and week 3 are evicted and week 2 29.35?","SELECT week_6 FROM table_name_22 WHERE week_7 = ""evicted"" AND week_4 = ""evicted"" AND week_3 = ""evicted"" AND week_2 = ""29.35""" Which height is associated with Franklin High School?,"SELECT height FROM table_name_40 WHERE school = ""franklin high school""" Which Player has a Score of 74-67-74-71=286?,SELECT player FROM table_name_86 WHERE score = 74 - 67 - 74 - 71 = 286 "When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?","SELECT sprint_classification FROM table_25055040_22 WHERE youth_classification = ""Peter Sagan"" AND most_courageous = ""Thomas Rabou""" On what date was Tie #13 played?,"SELECT date FROM table_name_93 WHERE tie_no = ""13""" Find the number of professors in accounting department.,"SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = ""Accounting""" Find the number of routes for each source airport and the airport name.,"SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name" "Tell me the number of orders with ""Second time"" as order detail.","SELECT count(*) FROM customer_orders WHERE order_details = ""Second time""" Where was the venue that had 274 runs?,"SELECT venue FROM table_name_29 WHERE runs = ""274""" What is the D 50 when the D 43 is r 43?,"SELECT d_50 FROM table_name_77 WHERE d_43 = ""r 43""" What metal has one rupee as the denomination?,"SELECT metal FROM table_name_83 WHERE denomination = ""one rupee""" Date of wed. nov. 13 had how many number of games?,"SELECT COUNT(game) FROM table_name_1 WHERE date = ""wed. nov. 13""" What is the name of the airport in Mount Hagen city?,SELECT name from airports where city = 'Mount Hagen' "Can you tell me the Name that has the Height of 6-5, and the Year of junior?","SELECT name FROM table_name_55 WHERE height = ""6-5"" AND year = ""junior""" How many weddings are there in year 2016?,SELECT count(*) FROM wedding WHERE YEAR = 2016 "What is the Time/ Behind, when Jockey is ""Jose Lezcano""?","SELECT time__behind FROM table_name_44 WHERE jockey = ""jose lezcano""" Which grade is studying in room 105?,SELECT DISTINCT grade FROM list WHERE classroom = 105 Name the number of administrative unit for number 4,SELECT name_of_administrative_unit FROM table_14465924_1 WHERE number = 4 "What are the club names of the clubs they belong to, please?",select clubName from club where clubid in ( select distinct clubid from member_of_club group by stuid having count ( * ) = 1 ) What are the names of all the individuals in the table?,SELECT name FROM user_profiles How many orders were handled by Michael Suyama. State the order ID.,SELECT COUNT(T2.OrderID) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama' What is the Team with a Lap that is 5?,SELECT team FROM table_name_48 WHERE laps = 5 "What is Event, when Opponent is ""Joe Pardo""?","SELECT event FROM table_name_41 WHERE opponent = ""joe pardo""" what are the student names who are in PHL city and are between 20 and 25 years of age | First name or last name? | first,SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 Name the 2012 for 2009 of a and 2010 of a and 2011 of a,"SELECT 2012 FROM table_name_89 WHERE 2009 = ""a"" AND 2010 = ""a"" AND 2011 = ""a""" How many parks are there in the state of NY?,SELECT COUNT(*) FROM park WHERE state = 'NY' What is the rate of increase of users with a current mental disorder from 2019's survey to 2016's survey?,SELECT CAST(( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2019 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) - ( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) AS REAL) * 100 / ( SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T2.SurveyID = 2016 AND T1.questiontext LIKE 'Do you currently have a mental health disorder?' AND T2.AnswerText = 'Yes' ) "What is Visitor, when Home is Philadelphia, and when Date is November 18?","SELECT visitor FROM table_name_11 WHERE home = ""philadelphia"" AND date = ""november 18""" What is the nickname of the employee named Janessa Sawayn?,"SELECT nickname FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What is the percentage of this constellation with an area of 248.885 sq. deg.?,"SELECT per­cent­age FROM table_177766_1 WHERE area__sqdeg_ = ""248.885""" What ground has a match smaller than 2?,SELECT ground FROM table_name_16 WHERE match < 2 Which Member has an Electorate of southern melbourne?,"SELECT member FROM table_name_36 WHERE electorate = ""southern melbourne""" What are the names of all video games that are collectible cards?,"SELECT gname FROM Video_games WHERE gtype = ""Collectible card game""" Count the number of templates of the type CV.,"SELECT count(*) FROM Templates WHERE template_type_code = ""CV""" "What is the minimum, average, and maximum distance of all aircrafts.","SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft" "With a Division II of Portsmouth, what is the Division IV?",SELECT division_iV FROM table_name_35 WHERE division_iII = portsmouth That's okay. What are some of Accept's other albums?,"SELECT T1.Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = ""Accept"" AND T1.Title ! = ""Balls to the Wall""" When grand prix de sar la princesse lalla meryem is the tournament what is the town?,"SELECT town FROM table_2803662_3 WHERE tournament = ""Grand Prix De SAR La Princesse Lalla Meryem""" How many were promoted from the league when Esher was relegated to the league?,"SELECT COUNT(promoted_from_league) FROM table_23927423_4 WHERE relegated_to_league = ""Esher""" What catalog came out after 2000?,SELECT catalog FROM table_name_23 WHERE year > 2000 What are the ratings of the film featuring behind the scenes?,SELECT rating FROM film WHERE special_features LIKE '%Behind the Scenes%' On what date did Mike Hawthorn have the fastest lap for the E Tyre of the Silverstone Circuit?,"SELECT date FROM table_name_36 WHERE fastest_lap = ""mike hawthorn"" AND tyre = ""e"" AND circuit = ""silverstone""" What is the id and market share of the browser Safari?,"SELECT id , market_share FROM browser WHERE name = 'Safari'" What is the elevator when the elector is Pietro Colonna?,"SELECT elevator FROM table_name_77 WHERE elector = ""pietro colonna""" "For Pick #323, which round is it?",SELECT round FROM table_name_41 WHERE pick__number = 323 Show the number of male and female assistant professors.,"SELECT sex , count(*) FROM Faculty WHERE rank = ""AsstProf"" GROUP BY sex" Which Line has a Platform of 3?,"SELECT line FROM table_name_62 WHERE platform = ""3""" What was the result of the election in the Arkansas 2 district? ,"SELECT result FROM table_1342359_4 WHERE district = ""Arkansas 2""" "Which problems are reported by the staff with last name ""Bosco""? Show the ids of the problems.","SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = ""Bosco""" What religious groups made up 0.72% of the Indian population in 2001?,"SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = ""0.72%""" What are the order dates of orders with price higher than 1000?,SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 What percentage do items under the category of 'Furniture' make up the total number of items ordered that are shipped as standard in the West region?,SELECT CAST(SUM(CASE WHEN T2.Category = 'Furniture' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(T1.Quantity) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' AND T1.`Ship Mode` = 'Standard Class' "What is the average money (£) that has +8 as the to par, with 73-72-72-71=288 as the score?","SELECT AVG(money___) AS £__ FROM table_name_8 WHERE to_par = ""+8"" AND score = 73 - 72 - 72 - 71 = 288" "Which format is released on August 29, 1998?","SELECT format FROM table_name_72 WHERE date = ""august 29, 1998""" "How many entries for prothrombin time are there where platelet count is ""decreased or unaffected""?","SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = ""Decreased or unaffected""" What was the game site week 15?,SELECT game_site FROM table_name_79 WHERE week = 15 Name the publication date when the fictional date is 2112,"SELECT publication_date FROM table_name_25 WHERE fictional_date = ""2112""" What was spent per voter when the spent per vote was 20.07?,"SELECT spent_per_voter___php__ FROM table_22097588_9 WHERE spent_per_vote___php__ = ""20.07""" How many incumbents resulted in a lost renomination republican gain?,"SELECT COUNT(incumbent) FROM table_1341690_18 WHERE result = ""Lost renomination Republican gain""" How many times did the team lose who had 1 of 37 points and less than 60 goals against?,"SELECT MIN(lost) FROM table_name_30 WHERE points_1 = ""37"" AND goals_against < 60" Who was the opponent for game number less than 47 and a record of 24-13-4?,"SELECT opponent FROM table_name_34 WHERE game < 47 AND record = ""24-13-4""" What is her ID?,SELECT t2.customer_ID FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count ( * ) DESC LIMIT 1 Return the template type description of the template type with the code AD.,"SELECT template_type_description FROM Ref_template_types WHERE template_type_code = ""AD""" "Write the complaint ID, call ID, and final phone number of complaints through AVIDAN server from 1/1/2014 to 12/30/2014.","SELECT `Complaint ID`, call_id, phonefinal FROM callcenterlogs WHERE strftime('%Y', `Date received`) = '2014' AND server = 'AVIDAN'" For how many consecutive years did Aruba get a footnote on the series code BX.KLT.DINV.CD.WD?,SELECT COUNT(T2.Year) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'BX.KLT.DINV.CD.WD' "What Event has a Prize of €869,000?","SELECT event FROM table_name_77 WHERE prize = ""€869,000""" What was Cici Kelley's minimum season?,"SELECT MIN(season) FROM table_2140071_8 WHERE coach = ""Cici Kelley""" what is the city of San Jose Civic Center,"SELECT city from station where name = ""San Jose Civic Center""" "Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?",SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8 Which airport has an IATA of hgh?,"SELECT airport FROM table_name_29 WHERE iata = ""hgh""" Find the name and credit score of the customers who have some loans.,"SELECT DISTINCT T1.cust_name , T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id" "List down the page id of titles start with alphabet ""b"".",SELECT pid FROM pages WHERE title LIKE 'b%' What is the mean game played on January 9?,"SELECT AVG(game) FROM table_name_82 WHERE date = ""january 9""" "What is the lowest league cup with a premier League of 1, and the total is less than 5?",SELECT MIN(league_cup) FROM table_name_71 WHERE premier_league = 1 AND total < 5 What rank has jo angel (wa) as the player?,"SELECT rank FROM table_name_47 WHERE player = ""jo angel (wa)""" Who is the incumbent of district pa-8?,"SELECT incumbent FROM table_28188239_1 WHERE district = ""PA-8""" How many events in total have happened on all the vivo devices in the year 2016?,"SELECT COUNT(T1.event_id) FROM events AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.event_id = T2.device_id WHERE STRFTIME('%Y', T1.timestamp) = '2016' AND T2.phone_brand = 'vivo'" what is the longitude of Santa Clara at Almaden?,SELECT distinct T1.long FROM station AS T1 JOIN trip AS T2 where T1.name = 'Santa Clara at Almaden' what is id of students who registered some courses but the least number of courses in these students?,SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1 What are the result description of the project whose detail is 'sint'?,SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'; What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?,"SELECT round FROM table_name_7 WHERE winning_team = ""a.z.k./roc-compétition a.z.k./roc-compétition"" AND date = ""30 june""" When mixed quad singles is the event what is the final/bronze medal match?,"SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = ""Mixed Quad Singles""" What is the nickname of the college established in 1773?,SELECT nickname FROM table_name_65 WHERE established = 1773 During which years was the model with the Engine code of m54b25 manufactured?,"SELECT years FROM table_name_11 WHERE engine_code = ""m54b25""" What is the price of the book that sells the best?,SELECT T2.price FROM sales AS T1 INNER JOIN titles AS T2 ON T1.title_id = T2.title_id ORDER BY T1.qty DESC LIMIT 1 "Which Finish has a To par of –1, and a Year(s) won of 1955?","SELECT finish FROM table_name_61 WHERE to_par = ""–1"" AND year_s__won = ""1955""" What is the number of first class team with birthday of 5 december 1970?,"SELECT COUNT(first_class_team) FROM table_11950720_4 WHERE date_of_birth = ""5 December 1970""" Which volume id has the maximum weeks on top?,SELECT distinct ( Volume_ID ) from volume where Weeks_On_Top = ( SELECT Weeks_on_Top FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 ) What is the last name of the author that has published the most papers?,"SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1" Show the name for regions and the number of storms for each region.,"SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id;" Who are the semifinalists when the tournament is in Cincinnati?,"SELECT semifinalists FROM table_name_58 WHERE tournament = ""cincinnati""" How many games had 41 rushes and were than 197 yards?,SELECT COUNT(games) FROM table_name_21 WHERE rushes = 41 AND yards < 197 What is the earliest year associated with under 0 wins?,SELECT MIN(year) FROM table_name_55 WHERE wins < 0 "Tell me the highest, lowest, and average cost of procedures.","SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures" How many contestants where from mitteldeutschland?,"SELECT COUNT(age) FROM table_23495048_2 WHERE represent = ""Mitteldeutschland""" Please delete that information and only show the product name for the product with a product id of 2.,select product_name from Products where product_id = '2' List the titles of the art category.,SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'arts' What is the maximum number of tropical storms in the year that had exactly 34 deaths?,"SELECT MAX(number_of_tropical_storms) FROM table_2930244_4 WHERE deaths = ""34""" Find the first names of the faculty members who participate in Caonoeing and Kayaking.,SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking' List the time of elimination of the wrestlers with largest days held.,SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 What is the most common media type?,SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT ( * ) DESC LIMIT 1 How many characteristics are there?,SELECT count(*) FROM CHARACTERISTICS What is the name of the home time with a 10 tie no?,"SELECT home_team FROM table_name_5 WHERE tie_no = ""10""" What is the status if the poverty rate is 11.4%?,"SELECT status FROM table_22815568_6 WHERE poverty_rate = ""11.4%""" What are their names?,SELECT T1.name FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes' "In what year were Reid's earnings €4,050 1?","SELECT MIN(year) FROM table_29506171_2 WHERE earnings___€__ = ""4,050 1""" How many times did the incumbent was first elected and then lost re-election anti-masonic gain?,"SELECT COUNT(first_elected) FROM table_2668173_4 WHERE result = ""Lost re-election Anti-Masonic gain""" Which surface has a Date of 24–25 apr?,"SELECT surface FROM table_name_58 WHERE date = ""24–25 apr""" What week is a bye week?,"SELECT week FROM table_name_64 WHERE date = ""bye""" "what is the soap opera when the years are 2000–2004, 2005—?","SELECT soap_opera FROM table_name_10 WHERE years = ""2000–2004, 2005—""" in what department is Rumat? | Do you want the name of the department? | Yes!,"select dept_name from student where name = ""Rumat""" "Who is the opponent of the game with 33,628 folks in attendance?","SELECT opponent FROM table_name_27 WHERE attendance = ""33,628""" What is the number of the truck that has the crew chief Billy Wilburn?,"SELECT MAX(_number) FROM table_19908313_2 WHERE crew_chief = ""Billy Wilburn""" "On what date is the venue Sam Nujoma Stadium, Windhoek, Namibia?","SELECT date FROM table_name_87 WHERE venue = ""sam nujoma stadium, windhoek, namibia""" How many languages are spoken in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = ""Aruba""" "What nation has paavo nurmi as the athlete, with a medal count less than 12?","SELECT nation FROM table_name_62 WHERE athlete = ""paavo nurmi"" AND medal_count < 12" How many concerts are there in year 2014 or 2015?,SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015 HOW MANY CARS HAD A CAR # SMALLER THAN 7 AND STARTED ON 2010?,SELECT number_of_cars FROM table_name_38 WHERE car__number < 7 AND year_started = 2010 "How many images have at least one pair of object samples with the relation ""parked on""?",SELECT SUM(CASE WHEN T1.PRED_CLASS = 'parked on' THEN 1 ELSE 0 END) FROM PRED_CLASSES AS T1 INNER JOIN IMG_REL AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T2.OBJ1_SAMPLE_ID != T2.OBJ2_SAMPLE_ID What is the city with the smallest GDP? Return the city and its GDP.,"SELECT city , GDP FROM city ORDER BY GDP LIMIT 1" "Among all the current female legislators, how many of them have attended in Senate roll call votes?",SELECT COUNT(lis_id) FROM current WHERE gender_bio = 'F' AND lis_id IS NOT NULL Who was the candidate in the election in the California 8 district where the incumbent was first elected in 1932? ,"SELECT candidates FROM table_1342331_6 WHERE first_elected = 1932 AND district = ""California 8""" Thank you. Can you provide the names of students taking classes in CIS?,"SELECT T1.stu_fname, T1.STU_LNAME FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'" List the supplier company names located in Germany.,SELECT CompanyName FROM Suppliers WHERE Country = 'Germany' Tell me the horse when the faults are 9 and the total is 46.36,"SELECT horse FROM table_name_11 WHERE faults = ""9"" AND total = 46.36" What year did Zone Rouge first air?,"SELECT first_year_aired FROM table_name_79 WHERE name = ""zone rouge""" what is the lowest value under the column series no.?,SELECT MIN(series_no) FROM table_21025437_3 "How many weeks did a game happen on September 17, 2000?","SELECT COUNT(week) FROM table_name_57 WHERE date = ""september 17, 2000""" What are the ids of all students who don't play sports?,SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo Which payment method is used the most often?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1 What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?,"SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Australian Grand Prix"" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = ""Chinese Grand Prix""" How many parts have a retail price of over 1900?,SELECT COUNT(p_partkey) FROM part WHERE p_retailprice > 1900 What NHL team does Denis Desgagnes play for?,"SELECT nhl_team FROM table_1965650_8 WHERE player = ""Denis Desgagnes""" Please list the phone numbers of the top 3 customers that have the highest credit limit and have Leslie Jennings as their sales representitive.,SELECT t1.phone FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t2.firstName = 'Leslie' AND t2.lastName = 'Jennings' ORDER BY t1.creditLimit DESC LIMIT 3 How many episodes in the season were directed by Jeremy Podeswa?,"SELECT COUNT(no_in_season) FROM table_2182654_3 WHERE directed_by = ""Jeremy Podeswa""" "Name the lowest Wins which has Points of 28, and a Year smaller than 1972?",SELECT MIN(wins) FROM table_name_94 WHERE points = 28 AND year < 1972 Return the type of transaction with the highest total amount.,SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1 How many outgoing managers were replaced by Bob Peeters?,"SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = ""Bob Peeters""" "What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?","SELECT result FROM table_name_14 WHERE competition = ""1994 fifa world cup qualification"" AND date = ""may 15, 1993""" When did his appointment start and end?,"SELECT t1.start,t1.end FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING count ( * ) = 1" How many destinations have a weekly frequency and are named AC Express?,"SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = ""Weekly"" AND train_name = ""AC Express""" What is the common English for the Italian word san gallo?,"SELECT common_english FROM table_name_50 WHERE italian = ""san gallo""" What is every score with a record of 46-25?,"SELECT score FROM table_23248910_9 WHERE record = ""46-25""" Which position has L bats and Anderson as a surname?,"SELECT position FROM table_name_14 WHERE bats = ""l"" AND surname = ""anderson""" Which kind of policy type was chosen by the most customers?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1 How many literate males are there in the taluka name nevasa?,"SELECT MAX(Literate) AS male FROM table_28939145_2 WHERE taluka_name = ""Nevasa""" Show the carriers of devices in stock at more than one shop.,SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1 Which keywords belong to the movie titles with the highest popularity?,SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id ORDER BY T1.popularity DESC LIMIT 1 Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.,SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%' Which show was sent to syndication for its new/returning/same network.,"SELECT show FROM table_169766_13 WHERE new_returning_same_network = ""Syndication""" Show me the name of the film with film id 1? | Do you mean the title in the table file | yes,SELECT title FROM film WHERE film_id = 1 What are the names of all instructors in the Comp. Sci. department?,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' What is the greek national account when 1997 is 6.1?,"SELECT greek_national_account FROM table_27146868_1 WHERE 1997 = ""6.1""" "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.","SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;" "Hmm, please list the cities that no customer is living in.",SELECT city FROM addresses WHERE city not IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id ) show all their names.,SELECT customer_name FROM customers How many attended the game on 4 February 2003?,"SELECT AVG(attendance) FROM table_name_81 WHERE date = ""4 february 2003""" "Name the winner for date of nov 5, 1987","SELECT winner FROM table_1594772_2 WHERE match_date = ""Nov 5, 1987""" Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1 "How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?",SELECT COUNT(goals_for) FROM table_name_6 WHERE pct__percentage > 0.557 AND points < 90 AND games > 68 What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0?,SELECT SUM(pl_gp) FROM table_name_90 WHERE pick__number = 199 AND reg_gp > 0 "Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama?","SELECT MIN(puchat_ligi) FROM table_name_64 WHERE uefa_cup < 2 AND player = ""takesure chinyama""" What is the 1st leg with Team 2 Lyon?,"SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = ""lyon""" what is the most episodes when the average ratings is 18.8%?,"SELECT MAX(episodes) FROM table_name_52 WHERE average_ratings = ""18.8%""" Show the number of customers for each gender.,"SELECT gender , count(*) FROM Customers GROUP BY gender" How many points were there when tries for were 84? ,"SELECT points FROM table_17369472_2 WHERE tries_for = ""84""" How many different colleges do attend the tryout test?,SELECT count(DISTINCT cName) FROM tryout What is the name of the replacement manager for the Bolton Wanderers?,"SELECT replaced_by FROM table_name_2 WHERE team = ""bolton wanderers""" What is the most recent year with a finish in 2nd position?,"SELECT MAX(season) FROM table_name_22 WHERE position = ""2nd""" What is the type of the match with a win result and Michael Gomez as the opponent?,"SELECT type FROM table_name_79 WHERE res = ""win"" AND opponent = ""michael gomez""" What is the current tournament name for the event in Tampa?,"SELECT also_currently_known_as FROM table_20630462_1 WHERE tournament = ""Tampa""" Find the address and staff number of the shops that do not have any happy hour.,"SELECT address, num_of_staff FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM happy_hour)" "Indicate, by region, which platform has sold the most games.","SELECT T.region_name FROM ( SELECT T1.platform_name, T4.region_name, SUM(T3.num_sales) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN region_sales AS T3 ON T1.id = T3.game_platform_id INNER JOIN region AS T4 ON T3.region_id = T4.id GROUP BY T1.platform_name, T4.region_name ORDER BY SUM(T3.num_sales) DESC LIMIT 1 ) t" "When is Part 2, when Part 5 is on January 24, 2008?","SELECT part_2 FROM table_name_42 WHERE part_5 = ""january 24, 2008""" What are all the week # where subject matter is auditioner's choice,"SELECT week__number FROM table_26250227_1 WHERE theme = ""Auditioner's Choice""" what is the score on february 16?,"SELECT score FROM table_name_76 WHERE date = ""february 16""" What are the names and arrival times of trains?,"SELECT Name , Arrival FROM train" How many stories does the highest building have?,SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1 What is the Spanish word for cas [ˈkas]?,"SELECT spanish FROM table_26614365_1 WHERE central = ""cas [ˈkas]""" Find the marketing region description of China?,"SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = ""China""" When 64 is the entries what is the winning boat?,SELECT winning_boat FROM table_24673710_1 WHERE entries = 64 What is the lowest total that has 1977 as the year (s) won?,"SELECT MIN(total) FROM table_name_32 WHERE year_s__won = ""1977""" "How many methods in the same repository share a tokenized name that begins with ""query language...""?",SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized LIKE 'query language%' Find the first name of students who are living in the dorm that has most number of amenities.,SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1) * I have left the chat *,"SELECT T1.Title , T2.AlbumID , COUNT ( * ) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID" "Show founder names that begin with letter ""S"" | Did you mean founder‘s name that begin with letter 'S'? | yes",SELECT founder FROM manufacturers WHERE Founder LIKE 'S%' "Show the dates, places, and names of events in descending order of the attendance.","SELECT Date , Name , venue FROM event ORDER BY Event_Attendance DESC" Where is it located?,SELECT location FROM university ORDER BY enrollment DESC LIMIT 1 How many marks are there when tackles are 3?,SELECT marks FROM table_2814720_1 WHERE tackles = 3 "Among the technology items, what percentage of them are from Best Buy for Business? Provide the date of the project related to those items.",SELECT CAST(SUM(CASE WHEN T1.vendor_name = 'Best Buy for Business' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.projectid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.project_resource_type = 'Technology' UNION ALL SELECT DISTINCT T1.date_posted FROM projects AS T1 INNER JOIN resources AS T2 ON T1.projectid = T2.projectid WHERE T2.vendor_name = 'Best Buy for Business' AND T2.project_resource_type = 'Technology' "Among universities that score below 80 in 2015, what is the percentage of international students?",SELECT SUM(CAST(T1.num_students * T1.pct_international_students AS REAL) / 100) / COUNT(*) * 100 FROM university_year AS T1 INNER JOIN university_ranking_year AS T2 ON T1.university_id = T2.university_id WHERE T2.score < 80 AND T1.year = 2015 "Show the name, role code, and date of birth for the employee with name 'Armani'.","SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'" List the service id and details for the events.,"SELECT service_id, event_details FROM EVENTS" List the champion (team name) and year from year 1950 to 1960.,"SELECT DISTINCT T1.name, T2.year FROM teams AS T1 JOIN series_post AS T2 ON T1.tmID = T2.tmIDWinner WHERE T2.round = 'F' AND T2.year BETWEEN 1950 AND 1960" "How many weeks are shown for the champion of john mcenroe 6–2, 6–3?","SELECT COUNT(week_of) FROM table_21584646_10 WHERE champion = ""John McEnroe 6–2, 6–3""" Name the maximum founded for blue hose,"SELECT MAX(founded) FROM table_16168849_1 WHERE nickname = ""Blue Hose""" How many customers pay by Credit card?,"select count ( * ) from customers where payment_method = ""Credit Card""" "What is the top attendance for weeks past 2 on october 29, 1961?","SELECT MAX(attendance) FROM table_name_57 WHERE week > 2 AND date = ""october 29, 1961""" What is the latitude when the diameter is 184.0?,"SELECT latitude FROM table_16768245_2 WHERE diameter = ""184.0""" And in which state is it located?,SELECT t3.state_province_county FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count ( * ) LIMIT 1 Which Away team score has a Venue of kardinia park?,"SELECT away_team AS score FROM table_name_42 WHERE venue = ""kardinia park""" Give the full names of the countries that are located in more than one continent.,SELECT T3.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country GROUP BY T3.Name HAVING COUNT(T3.Name) > 1 Show all template type codes that are not used by any document.,SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id what is the average lifespan of the representatives,SELECT avg ( lifespan ) FROM representative Which Tournament has a Semi finalists of monica seles sandrine testud?,"SELECT tournament FROM table_name_76 WHERE semi_finalists = ""monica seles sandrine testud""" Name the teleplay for david simon & eric overmyer and tom piazza,"SELECT teleplay_by FROM table_26914076_2 WHERE story_by = ""David Simon & Eric Overmyer and Tom Piazza""" "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).","SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC" Which game was a Platformer?,"SELECT game FROM table_name_90 WHERE genre = ""platformer""" How many touchdowns did the fullback score?,"SELECT MIN(touchdowns) FROM table_25711913_8 WHERE position = ""Fullback""" Show all date and share count of transactions.,"SELECT date_of_transaction , share_count FROM TRANSACTIONS" What is the highest population for the ,"SELECT MAX(population), _august_15, _2002 FROM table_12496904_1" now show me the shops that have more than one device in stock,SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT ( * ) > 1 Provide the order ID of Frank Olsen of the South region.,SELECT T1.`Order ID` FROM south_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T2.Region = 'South' AND T2.`Customer Name` = 'Frank Olsen' What was the maximum perigee on 1969-01-09?,"SELECT MAX(perigee__km_) FROM table_12141496_1 WHERE decay_date = ""1969-01-09""" Find the names of artists that do not have any albums.,SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId "Among the products, how many of them were discontinued in production?",SELECT COUNT(*) FROM Products WHERE Discontinued = 1 How many customers placed orders before George?,SELECT count ( T1.customer_name ) FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed < ( SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = 'George' order by T2.date_order_placed LIMIT 1 ) What was the fastest lap time in the Escort Radar Warning 200?,"SELECT fastest_lap FROM table_10706961_2 WHERE name = ""Escort Radar Warning 200""" What is the nationality of the player in round 7?,"SELECT nationality FROM table_name_33 WHERE round = ""7""" "What is High Rebounds, when Date is ""March 13""?","SELECT high_rebounds FROM table_name_93 WHERE date = ""march 13""" What is the name of the player from club pro recco?,"SELECT name_v_t_e FROM table_name_87 WHERE club = ""pro recco""" The Decile of 6 has which corresponding Years?,"SELECT years FROM table_name_91 WHERE decile = ""6""" Which teams homeeground is Stemmemyren? ,"SELECT team FROM table_2522473_1 WHERE home_ground = ""Stemmemyren""" "Which 2005 has a 2006 of 126,511?","SELECT 2005 FROM table_name_39 WHERE 2006 = ""126,511""" Show the denomination shared by schools founded before 1890 and schools founded after 1900,SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900 "Name the championship for hard surface 7–5, 6–4 ","SELECT championship FROM table_24638867_6 WHERE score = ""7–5, 6–4"" AND surface = ""Hard""" How many times did Valencia's home team win in the LaLiga division?,SELECT COUNT(T1.HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga' AND T1.HomeTeam = 'Valencia' AND T1.FTR = 'H' What are the course credits of those courses?,"SELECT t2.crs_credit FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = ""Accounting""" List all the order numbers for In-Store sales and find the city where the store is located.,"SELECT DISTINCT T1.OrderNumber, T2.`City Name` FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T1.`Sales Channel` = 'In-Store'" "How many characteristics does the product named ""sesame"" have?","SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" "Where is the championship where 6–1, 3–6, 3–6 is the score in the final?","SELECT championship FROM table_26202847_6 WHERE score_in_the_final = ""6–1, 3–6, 3–6""" Show different occupations along with the number of players in each occupation.,"SELECT Occupation , COUNT(*) FROM player GROUP BY Occupation" "Show me the prices of the products named ""Dining""",SELECT Product_Price FROM Products WHERE Product_Name = 'Dinning' List the nations that have more than two ships.,SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2 What Genre has the Network Zee TV?,"SELECT genre FROM table_name_93 WHERE network = ""zee tv""" Which counties have two or more delegates? Give me the county names.,SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2 Which Attendance has more than 90 points?,SELECT attendance FROM table_name_60 WHERE points > 90 "When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values?","SELECT COUNT(grid) FROM table_name_69 WHERE laps < 9 AND time_retired = ""engine""" What is the highest salary? who did earn it,SELECT * from employees order by salary desc limit 1 "How many ""bars"" are there in the Yelp business?",SELECT COUNT(T1.category_id) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T1.category_name LIKE 'Bars' What is the average number of stars assigned to The simpson 20s: S20-E12? What is the said episode all about?,"SELECT AVG(T2.stars), T1.summary FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.episode_id = 'S20-E12';" Which city was the 1992 Summer Olympic held?,SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_name = '1992 Summer' What is the highest Shooting Total with a Bronze less than 0?,"SELECT MAX(total) FROM table_name_40 WHERE sport = ""shooting"" AND bronze < 0" Name the number of titles written by adam i. lapidus,"SELECT COUNT(title) FROM table_12030612_9 WHERE written_by = ""Adam I. Lapidus""" list the name of the members in the order of their rank in rounds,SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC Calculate the average duration of absense of disabled students.,SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name what is the stream(s) and / or lake(s) when the date founded is 1959?,SELECT stream_s__and___or_lake_s_ FROM table_name_42 WHERE date_founded = 1959 Which direction do most of the trains with rectangle-shaped second cars run?,SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 2 AND T1.shape = 'rectangle' GROUP BY T2.direction ORDER BY COUNT(T2.id) DESC LIMIT 1 How long is the orbital period for the planet that has a semimajor axis of 5.20 au?,"SELECT orbital_period FROM table_10932739_2 WHERE semimajor_axis___au__ = ""5.20""" How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?,"SELECT COUNT(episode_number) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 0.7 / 2 AND rating = ""2.1""" What percentage of customers from the African region is in the household segment?,"SELECT CAST(SUM(IIF(T2.r_name = 'AFRICA', 1, 0)) AS REAL) * 100 / COUNT(T1.n_nationkey) FROM nation AS T1 INNER JOIN region AS T2 ON T1.n_regionkey = T2.r_regionkey INNER JOIN customer AS T3 ON T1.n_nationkey = T3.c_nationkey WHERE T3.c_mktsegment = 'HOUSEHOLD'" What are the names of documents that do not have any images?,SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?","SELECT preferred_foot , count(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot" What country did Bart Bryant with a score of 69-70=139 belong to?,"SELECT country FROM table_name_37 WHERE score = 69 - 70 = 139 AND player = ""bart bryant""" Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.,"SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = ""Central Coast"" AND T2.year < 2005" "What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?","SELECT no_3 FROM table_name_79 WHERE no_7 = ""abigail"" AND no_4 = ""ava""" What is the description of the type of the company who concluded its contracts most recently?,SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1 "What's the highest lowest number of capacity that ibrox stadium has when the average is larger than 49,143?","SELECT MAX(lowest) FROM table_name_67 WHERE stadium = ""ibrox stadium"" AND average > 49 OFFSET 143" okay great - can you tell me the maximum fastest lap speed during this race?,"SELECT max ( T2.fastestlapspeed ) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" List the name of rooms with king or queen bed.,"SELECT roomName FROM Rooms WHERE bedType = ""King"" OR bedType = ""Queen"";" What is the average longitude of stations that never had bike availability more than 10?,SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available) > 10) "What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup?",SELECT player FROM table_name_62 WHERE fa_cup < 6 AND premier_league = 33 AND UEfa_cup > 5 What is the average rental rate of sci-fi film titles?,SELECT AVG(T1.rental_rate) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.`name` = 'Sci-Fi' in which season the position was center,"SELECT season FROM table_19897896_7 WHERE position = ""Center""" What faults does the middle have?,SELECT fault_short_name from Part_Faults WHERE part_id in ( SELECT T2.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY count ( * ) ASC LIMIT 1 ) What was the name of the race in Bordeaux?,"SELECT race_name FROM table_1140113_5 WHERE circuit = ""Bordeaux""" "For Tie #2, who was the home team?","SELECT home_team FROM table_name_33 WHERE tie_no = ""2""" What was the date of the game at Princes Park?,"SELECT date FROM table_name_83 WHERE venue = ""princes park""" "Return the id of the customer who has the most cards, as well as the number of cards.","SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1" What was the attendance on 31 January 2009 when the opponent was Airdrie United?,"SELECT AVG(attendance) FROM table_name_33 WHERE opponent = ""airdrie united"" AND date = ""31 january 2009""" Can you show me the number of customers?,select count ( distinct custid ) from accounts find the number of players whose points are lower than 30 in each position.,"SELECT COUNT(*), POSITION FROM player WHERE points < 30 GROUP BY POSITION" What was the away team score when Waverley Park was the ground and the home team was collingwood?,"SELECT away_team AS score FROM table_name_80 WHERE ground = ""waverley park"" AND home_team = ""collingwood""" "For each station, return its longitude and the average duration of trips that started from the station.","SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id" WHICH COUNTRY HAVE A ROLLER COASTER LONGER THAN 5000,select T2.Name from roller_coaster as T1 JOIN country as T2 ON T1.Country_ID = T2.Country_ID where T1.Length > 5000 Name all the authors for all business titles.,"SELECT T3.au_fname, T3.au_lname FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T1.type = 'business'" Name the right ascension for sagittarius and NGC number larger than 6522 for open cluster and declination of °22′,"SELECT right_ascension___j2000__ FROM table_name_78 WHERE constellation = ""sagittarius"" AND ngc_number > 6522 AND object_type = ""open cluster"" AND declination___j2000__ = ""°22′""" Which students are advised by Michael Goodrich? Give me their first and last names.,"SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = ""Michael"" AND T1.lname = ""Goodrich""" What engine did the Team Lotus have after 1965?,"SELECT engine FROM table_name_63 WHERE entrant = ""team lotus"" AND year > 1965" What is the score of the home team olimpia?,"SELECT score FROM table_name_14 WHERE home = ""olimpia""" "Find the names of all the clubs that have at least a member from the city with city code ""BAL"".","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = ""BAL""" Which position is round 7?,SELECT position FROM table_name_27 WHERE round = 7 "What is the establishment's name and employee involved in the inspection ID 44256 on May 5, 2010?","SELECT T1.dba_name, T3.first_name, T3.last_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T2.inspection_date = '2010-05-05' AND T2.inspection_id = 44256" How many orders have more than two invoices?,SELECT COUNT ( * ) FROM ( SELECT * FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count ( * ) > 2 ) Which round lasted 2:32?,"SELECT round FROM table_name_84 WHERE time = ""2:32""" What was the score when the tie number was a replay and the home team was mansfield town?,"SELECT score FROM table_name_59 WHERE tie_no = ""replay"" AND home_team = ""mansfield town""" Which Week has a Tournament of monte carlo?,"SELECT week FROM table_name_18 WHERE tournament = ""monte carlo""" How many player with total points of 75,SELECT COUNT(player) FROM table_14342367_15 WHERE total_points = 75 "Which sport does the event ""Shooting Women's Trap"" belong to?",SELECT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T2.event_name LIKE 'Shooting Women%s Trap' Which Clock Multiplier has a Model Number of c7-m 764?,"SELECT clock_multiplier FROM table_name_23 WHERE model_number = ""c7-m 764""" What is the menu id of the menu sponsored by Occidental and Oriental Steamship Company with the highest number of pages?,SELECT T2.menu_id FROM Menu AS T1 INNER JOIN MenuPage AS T2 ON T1.id = T2.menu_id WHERE T1.sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY' GROUP BY T2.menu_id ORDER BY COUNT(T2.page_number) DESC LIMIT 1 "What is the Venue with an Attendance that is larger than 6,938?",SELECT venue FROM table_name_55 WHERE attendance > 6 OFFSET 938 what is name of headquarters on General Electric,"SELECT Headquarters FROM Companies where name = ""General Electric""" "Of the titles, which title is about the Carefully researched study of the effects of strong emotions on the body, which state-based publisher published this book, and what is the year-to-date sale?","SELECT T1.title, T2.pub_name, T1.ytd_sales FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.notes = 'Carefully researched study of the effects of strong emotions on the body. Metabolic charts included.'" Show the names of customers having an order with shipping method FedEx and order status Paid.,SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid' Which delegates are from counties with population smaller than 100000?,SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 What is the structure of the document with the least number of accesses?,SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY count(*) DESC LIMIT 1 "Actually, can you also give me the name of that race?","SELECT name,date FROM races ORDER BY date DESC LIMIT 1" Name the total number of places which has played more than 18,SELECT COUNT(place) FROM table_name_59 WHERE played > 18 Determine the percentage of manufacturers who are from Texas among all of Lorenzo's customers.,SELECT CAST(SUM(CASE WHEN cust_type = 'manufacturer' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer WHERE state = 'TX' "What is Apogee, when Designation is Prognoz 6?","SELECT apogee FROM table_name_9 WHERE designation = ""prognoz 6""" "What was the losing bonus for the 20 played, and 353 points?","SELECT losing_bonus FROM table_name_89 WHERE played = ""20"" AND points_for = ""353""" How many hours does a goalie need to play to meet the minimum?,SELECT min ( T2.HS ) FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID and T1.pPos = 'goalie' GROUP BY T1.pPos List the IUCR numbers and index status of homicide incidents.,SELECT index_code FROM IUCR WHERE primary_description = 'HOMICIDE' Show the names of companies and of employees.,"SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID" "Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?",SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.52 What location contains a school that has an enrollment of 2686?,SELECT location FROM table_1973729_1 WHERE enrollment = 2686 What are the total hours per week students under the age of 20 played games?,SELECT sum ( hoursperweek ) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20 What is the table when the team is slovan bratislava?,"SELECT table FROM table_27683516_3 WHERE team = ""Slovan Bratislava""" What is the civil parish of the cappanaboul townland?,"SELECT civil_parish FROM table_30120547_1 WHERE townland = ""Cappanaboul""" What is the name of the line from Karratha to Port Hedland?,"SELECT name__year_commissioned_ FROM table_name_74 WHERE from_to = ""karratha to port hedland""" "On April 28, what was the average number of people attending?","SELECT AVG(attendance) FROM table_name_6 WHERE date = ""april 28""" Calculate the percentage of population in Edmonton city to the population of its province.,SELECT CAST(T1.Population AS REAL) * 100 / T2.Population FROM city AS T1 INNER JOIN province AS T2 ON T1.Province = T2.Name WHERE T1.Name = 'Edmonton' what's the date with attendance being 40657,SELECT date FROM table_14951643_1 WHERE attendance = 40657 Find the name and position of physicians who prescribe some medication whose brand is X?,"SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" What position is for Plant high school?,"SELECT position FROM table_name_47 WHERE school = ""plant high school""" Which region has the highest number of games sold on all platforms?,"SELECT T.region_name FROM ( SELECT T2.region_name, SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id GROUP BY T4.platform_name ORDER BY SUM(T1.num_sales) DESC LIMIT 1 ) t" Report the distinct advisors who have more than 2 students.,SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*) > 2 "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?","SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2" display the emails of the employees who have a commission percentage | Did you mean the employees who have commission percentage more than 0? | yes,SELECT email FROM employees WHERE commission_pct > 0 I want the sum of pages for thistle among roses,"SELECT SUM(pages) FROM table_name_36 WHERE translated_title = ""thistle among roses""" Can you list the different facilities?,SELECT * FROM Apartment_Facilities Find the name of the amenities that Smith Hall dorm has.,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' "What is Team, when Run 3 is 1:24.00?","SELECT team FROM table_name_70 WHERE run_3 = ""1:24.00""" What is the Place of the Player with Money greater than 300 and a Score of 71-69-70-70=280?,SELECT place FROM table_name_1 WHERE money___$__ > 300 AND score = 71 - 69 - 70 - 70 = 280 Find the order detail for the products with price above 2000.,SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 What is the id of the most recent order?,SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1 "What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?","SELECT flattening_ratio FROM table_name_27 WHERE equatorial_diameter = ""12,756.28km""" "What is the type of the document named ""David CV""?","SELECT document_type_code FROM documents WHERE document_name = ""David CV""" "What is the result in 1985 when the career win-loss is n/a, and 0 / 23 as the career SR?","SELECT 1985 FROM table_name_62 WHERE career_win_loss = ""n/a"" AND career_sr = ""0 / 23""" Return the maximum final tables made across all poker players who have earnings below 200000.,SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 may i have the dates of their orders please?,"SELECT DISTINCT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Packing""" what is the highest frequency mhz with the call sign w292cu?,"SELECT MAX(frequency_mhz) FROM table_name_77 WHERE call_sign = ""w292cu""" Find all the zip codes in which the max dew point have never reached 70.,SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70 What are the locations that have gas stations owned by a company with a market value greater than 100?,SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 Average cost of purchase orders made during the first six months of 2012.,SELECT CAST(SUM(ActualCost) AS REAL) / COUNT(TransactionID) FROM TransactionHistoryArchive WHERE TransactionType = 'P' AND TransactionDate >= '2012-01-01' AND TransactionDate < '2012-07-01' "What time has q as the notes, and Australia as the country?","SELECT time FROM table_name_95 WHERE notes = ""q"" AND country = ""australia""" "What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?",SELECT SUM(yards) FROM table_name_60 WHERE asst = 19 AND totaltk = 60 AND sack > 0 Name actors who voiced more than five Disney characters.,SELECT 'voice-actor' FROM `voice-actors` GROUP BY 'voice-actor' HAVING COUNT(movie) > 5 What are the names of technicians and the machine series that they repair?,"SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID" Who went on a rampage in Baghdad?,"SELECT perpetrator FROM table_name_85 WHERE location = ""baghdad""" "What are the states or counties of the address of the stores with marketing region code ""CA""?","SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = ""CA""" what is the total number of rank where viewers is 9.38?,"SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE viewers__millions_ = ""9.38""" What are all the distinct premise types?,SELECT DISTINCT premises_type FROM premises What's the score on December 1 when Philadelphia visited?,"SELECT score FROM table_name_41 WHERE visitor = ""philadelphia"" AND date = ""december 1""" What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?,SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to < (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code = 'Clerical Staff') What was the event with leonardo chocolate in 2009?,"SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = ""leonardo chocolate""" can you tell me who that teacher is? | The teacher is Alvis Macer Schultz | and what is that teacher's email address?,"SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = ""918""" Which catalog publisher has published the most catalogs?,SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1 Which events have the number of notes between one and three? List the event id and the property id.,"SELECT T1.Customer_Event_ID , T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING count(*) BETWEEN 1 AND 3" What is the highest price of dishes with menu item ID 1 to 5?,SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.id BETWEEN 1 AND 5 ORDER BY T2.price DESC LIMIT 1 I was wondering what the maximum number of circulation history documents is for a single employee?,SELECT count ( * ) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY employees.employee_id ORDER BY count ( * ) DESC LIMIT 1 List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin.,"SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = ""Bill Turnbull and Louise Minchin""" Which status code is the most common of all the bookings?,SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1 "who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?","SELECT opponent FROM table_name_93 WHERE surface = ""clay"" AND outcome = ""winner"" AND championship = ""estoril"" AND date = ""15 april 1996""" "What is Record, when Opponent is San Francisco Warriors?","SELECT record FROM table_name_78 WHERE opponent = ""san francisco warriors""" At what age did Roy Emerson complete the Grand Slam?,"SELECT MAX(age) FROM table_197638_6 WHERE player = ""Roy Emerson""" Please list all of the restaurants that serve European food.,SELECT label FROM generalinfo WHERE food_type = 'european' What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method?,"SELECT time FROM table_name_75 WHERE method = ""tko (doctor stoppage)"" AND record = ""9-0""" What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?,"SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < ""1989-09-03"" OR invoice_date > ""2007-12-25""" how many names are in the friends column?,SELECT count ( distinct friend ) FROM PersonFriend When was the delegate who has previous experience as a commissioner of health born?,"SELECT born_in FROM table_name_36 WHERE former_experience = ""commissioner of health""" How many players were born in 1982 and have a height above 182cm?,"SELECT COUNT(T2.ELITEID) FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T1.height_in_cm > 182 AND strftime('%Y', T2.birthdate) = '1982'" How many accounts have a savings balance above the average savings balance?,SELECT count(*) FROM savings WHERE balance > (SELECT avg(balance) FROM savings) Which organisation type hires most research staff?,SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY COUNT(*) DESC LIMIT 1 Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel?,"SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = ""Curtis Kheel""" WHich Regular Season Champions has a Year of 1943–44?,"SELECT regular_season_champion_s_ FROM table_name_70 WHERE year = ""1943–44""" How many places offer happy hour?,SELECT count ( distinct shop_id ) FROM happy_hour What is the order number that has Aretha Franklin as the original artist?,"SELECT order__number FROM table_name_97 WHERE original_artist = ""aretha franklin""" Show me all grades that have at least 4 students.,SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4 What is the maximum rebounds when there are 0.9 steals and fewer than 1.4 turnovers?,SELECT MAX(rebounds) FROM table_name_69 WHERE steals = 0.9 AND turnovers < 1.4 "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.","SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )" "For each bed type, find the average base price of different bed type.","SELECT bedType , avg(basePrice) FROM Rooms GROUP BY bedType;" Which Administrative district has a Pre-1009 province of gwannae -do and a Post-1009 province of seohae -do?,"SELECT administrative_district FROM table_name_76 WHERE pre_1009_province = ""gwannae -do"" AND post_1009_province = ""seohae -do""" Show the first and last names of them,"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" What car has a March 90ca Chassis?,"SELECT engine FROM table_name_44 WHERE chassis = ""march 90ca""" "Give the percentage of subscribers who rated who rated the movie ""G.I. Jane"".",SELECT CAST(SUM(CASE WHEN T3.user_subscriber = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id INNER JOIN lists_users AS T3 ON T1.user_id = T3.user_id WHERE T2.movie_title = 'G.I. Jane' Find the catalog publisher that has the most catalogs.,SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1 Name the stage for 08:46,"SELECT stage FROM table_name_85 WHERE time__eest_ = ""08:46""" What was the venue where Chuck Klein played?,"SELECT venue FROM table_name_85 WHERE player = ""chuck klein""" What is the smallest Crowd number for the Venue named Princes Park?,"SELECT MIN(crowd) FROM table_name_96 WHERE venue = ""princes park""" Who is the Winner with a Time of 1:12.00 and Melvin A. Holland as the Jockey?,"SELECT winner FROM table_name_74 WHERE time = ""1:12.00"" AND jockey = ""melvin a. holland""" What is the qualification for rank of 29 in 1957?,"SELECT qual FROM table_name_70 WHERE rank = ""29"" AND year = ""1957""" "Among the users who use SUGAR, calculate the percentage of those who are above 20 years old.","SELECT SUM(IIF(T1.age > 20, 1, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'SUGAR'" What is the highest number of viewers for a rating greater than 9.4?,SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4 How many locations have the call signs dxjp-fm? ,"SELECT COUNT(location) FROM table_17487395_1 WHERE callsign = ""DXJP-FM""" How many games has each stadium held?,"SELECT T1.id , count ( * ) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id" Show all the distinct president votes made on 08/30/2015.,"SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = ""08/30/2015""" "Oh ok, how many credit hours is this course worth?","SELECT Credits FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.,SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1 How many book clubs are there?,SELECT count(*) FROM book_club When james rutherford is the incumbent how many dates are there?,"SELECT COUNT(date) FROM table_28898974_3 WHERE incumbent = ""James Rutherford""" "What's the percentage of coins that is higher than the price 1 hour ago in May 29,2013? List the names of these coins.",SELECT T1.NAME FROM coins AS T1 INNER JOIN historical AS T2 ON T1.ID = T2.coin_id WHERE T2.DATE = '2013-05-29' AND T2.percent_change_1h > 0 What is the closing and opening time of businesses located at Gilbert with highest star rating?,"SELECT T2.closing_time, T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Gilbert' ORDER BY T1.stars DESC LIMIT 1" how many high points where date is february 19,"SELECT COUNT(high_points) FROM table_20010140_10 WHERE date = ""February 19""" Which NHL team has left wing listed as the position?,"SELECT nhl_team FROM table_name_66 WHERE position = ""left wing""" How many minutes were played by Sue Bird?,"SELECT MIN(minutes) FROM table_24915964_4 WHERE player = ""Sue Bird""" Write the titles of papers published by Adam Jones and the journal name in which it was published from 2005 to 2010.,SELECT T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T2.Name = 'Adam Jones' AND T1.Year BETWEEN 2005 AND 2010 Which Krypton has Neon of 10?,"SELECT krypton FROM table_name_4 WHERE neon = ""10""" What was the Opponent when the Cavaliers had a Record of 3-9?,"SELECT opponent FROM table_name_10 WHERE record = ""3-9""" "When is it has 15,557 Attendances?","SELECT date FROM table_name_35 WHERE attendance = ""15,557""" What was the date when the home team was Essendon?,"SELECT date FROM table_name_9 WHERE home_team = ""essendon""" Which country have data classified as official aid?,SELECT DISTINCT T1.CountryCode FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data are classified as official aid.' Show the party with drivers from Hartford and drivers older than 40.,SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40 How many titles got a viewership of 26.53 million?,"SELECT COUNT(title) FROM table_10718525_2 WHERE us_viewers__millions_ = ""26.53""" "Show the average, minimum, and maximum age for different majors.","SELECT major, AVG(age), MIN(age), MAX(age) FROM Student GROUP BY major" "Tell me the total number of administrative panel with labour panel more than 2, nominated by taoiseach more than 6 and total of 28",SELECT COUNT(administrative_panel) FROM table_name_59 WHERE labour_panel > 2 AND total = 28 AND nominated_by_the_taoiseach > 6 How many dogs have not gone through any treatment?,SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments ) what is the minimumfor 5wi?,SELECT MIN(5 AS wi) FROM table_28846752_5 What is the sport with the most scholarship students?,SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1 can you show me a list of lesson date?,SELECT lesson_date FROM Lessons What is the score on March 18?,"SELECT score FROM table_name_97 WHERE date = ""march 18""" which company did Alyson published a book for?,SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson' What is the record of the game on 13 May?,"SELECT record FROM table_name_70 WHERE date = ""13 may""" What segment A is associated with a Segment C of paint chip cards?,"SELECT segment_a FROM table_name_31 WHERE segment_c = ""paint chip cards""" "What is the total number of products that are in orders with status ""Cancelled""?","SELECT sum ( t2.order_quantity ) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = ""Cancelled""" Which Report is on 1 june?,"SELECT report FROM table_name_13 WHERE date = ""1 june""" What are the names of the states whose postal point is not affiliated with any organization?,SELECT DISTINCT T2.name FROM zip_data AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.division IS NULL "What is the date of the munich, germany tournament?","SELECT date FROM table_name_52 WHERE tournament = ""munich, germany""" "Can you tell me the Team that has the High rebounds of antawn jamison (10), and the Date of november 5?","SELECT team FROM table_name_91 WHERE high_rebounds = ""antawn jamison (10)"" AND date = ""november 5""" What is the amount of customers of 1957 Chevy Pickup by customers in a month?,SELECT COUNT(T2.customerNumber) FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber WHERE T1.productCode IN ( SELECT productCode FROM products WHERE productName = '1957 Chevy Pickup' ) "What are the names, ages, and countries of artists, sorted by the year they joined?","SELECT name , age , country FROM artist ORDER BY Year_Join" What was the issue price in the year 2008?,SELECT SUM(issue_price) FROM table_name_29 WHERE year = 2008 Episode smaller than 210 had what segment c?,SELECT segment_c FROM table_name_67 WHERE episode < 210 Please give me a list of cities whose regional population is over 8000000 or under 5000000.,SELECT city FROM city WHERE regional_population > 8000000 UNION SELECT city FROM city WHERE regional_population < 5000000 On what Date did the Away team essendon play?,"SELECT date FROM table_name_11 WHERE away_team = ""essendon""" Name the order in office for spiro agnew,"SELECT order_in_office FROM table_2026548_1 WHERE vice_president = ""Spiro Agnew""" "Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.",SELECT T3.Name FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Hex Nut 5' ORDER BY T1.StandardPrice LIMIT 1 What is the average unit price of AKJ Books items?,SELECT SUM(item_unit_price) / SUM(item_quantity) FROM resources WHERE vendor_name = 'AKJ Books' What was the largest number of people in attendance of the game with a W 14-3 result after week 10?,"SELECT MAX(attendance) FROM table_name_10 WHERE result = ""w 14-3"" AND week > 10" "List the names of all the universities that have no less than 50,000 students in the year 2012.",SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.num_students > 50000 AND T1.year = 2012 Which country is Lemd the ICAO of?,"SELECT country FROM table_name_34 WHERE icao = ""lemd""" What Date is listed for the Region of France and Catalog of 82876-70291-2?,"SELECT date FROM table_name_48 WHERE region = ""france"" AND catalog = ""82876-70291-2""" How many memberships do these branches have?,SELECT membership_amount FROM branch ORDER BY membership_amount DESC LIMIT 3 What are the theme and year for all exhibitions that have a ticket price under 15?,"SELECT theme , YEAR FROM exhibition WHERE ticket_price < 15" Can you add to the table the forenames and surnames associated with each driver id?,"SELECT driverId, forename, surname FROM drivers" What year did Naushad Direct the Music?,"SELECT MAX(year) FROM table_2528382_5 WHERE music_director = ""Naushad""" How many wins for the team with fewer than 2 byes?,SELECT AVG(wins) FROM table_name_1 WHERE byes < 2 What was the partner count when the opponents in the final was forget leconte?,"SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = ""Forget Leconte""" How many shipments by truck were made?,SELECT COUNT(*) FROM ShipMethod AS T1 INNER JOIN SalesOrderHeader AS T2 USING (ShipMethodID) WHERE T1.Name = 'XRQ - TRUCK GROUND' What are the ids of the students who are under 20 years old and are involved in at least one activity.,SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20 Where was the game with a higher score than 1 played?,SELECT venue FROM table_name_85 WHERE scored > 1 How many distinct birth places are there?,SELECT count(DISTINCT Birth_Place) FROM people What was the match points score for the match won by Connacht?,"SELECT match_points FROM table_28068063_2 WHERE winners = ""Connacht""" What is the highest number of silver medals for a team with total less than 1?,SELECT MAX(silver) FROM table_name_32 WHERE total < 1 Which teams had the most postseason empty net goals in 2010 season? List their team names.,SELECT T2.name FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T1.year = 2010 GROUP BY T2.name ORDER BY SUM(PostENG) DESC LIMIT 1 How many people live in countries that do not speak English?,"SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"")" Show the id and name of the aircraft with the maximum distance.,"SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1" "What is the address of the driver that delivers the shipment for the customer lives at 7052 Carroll Road, San Diego, California?",SELECT T3.address FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T2.address = '7052 Carroll Road' AND T2.city = 'San Diego' AND T2.state = 'CA' How many bronzes did netherlands win?,"SELECT bronze FROM table_name_9 WHERE nation = ""netherlands""" Which lowest period's element is ruthenium?,"SELECT MIN(period) FROM table_name_28 WHERE element = ""ruthenium""" What is the number of ships?,SELECT count(*) FROM ship What about in the spring semester?,SELECT name FROM student WHERE id IN ( SELECT id FROM takes WHERE semester = 'Spring' AND YEAR = 2003 ) What is the Format of the Frequency owned by Laval University?,"SELECT format FROM table_name_96 WHERE owner = ""laval university""" What are the names of entrepreneurs?,SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID How many Folsom customers prefer to pay with Visa?,SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.City = 'Folsom' AND T2.CreditCardType = 'Visa' Calculate the ratio between unemployed students and disabled students.,SELECT CAST(( SELECT COUNT(name) FROM unemployed ) AS REAL ) / ( SELECT COUNT(name) FROM disabled ) What was the Time in the Mina Clavero 2 Stage?,"SELECT time FROM table_name_74 WHERE name = ""mina clavero 2""" Show the premise type and address type code for all customer addresses.,"SELECT T2.premises_type , T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id" In which tournament was the 2012 result 1r and the 2013 result 3r?,"SELECT tournament FROM table_name_31 WHERE 2012 = ""1r"" AND 2013 = ""3r""" What is the height of the player who attended Hartford?,"SELECT height_in_ft FROM table_11734041_2 WHERE school_club_team_country = ""Hartford""" "How many losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals?","SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = ""40-4"" AND goals_for > 57" Show all statement id and the number of accounts for each statement.,"SELECT STATEMENT_ID, COUNT(*) FROM Accounts GROUP BY STATEMENT_ID" "What is Original Album, when Time is ""3:39""?","SELECT original_album FROM table_name_23 WHERE time = ""3:39""" What round was a loss with a record of 12-3?,"SELECT round FROM table_name_22 WHERE res = ""loss"" AND record = ""12-3""" What is the package/option in Italy when the content is religione?,"SELECT package_option FROM table_name_68 WHERE content = ""religione"" AND country = ""italy""" How many patents outcomes were listed for all the projects?,SELECT count(*) FROM Project_outcomes WHERE outcome_code = 'Patent' What was the 2008 election status when glenn nye was the running democrat?,"SELECT 2008 AS _status FROM table_17503169_1 WHERE democratic = ""Glenn Nye""" "Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52",SELECT COUNT(average) FROM table_name_99 WHERE matches < 52 AND runs < 4564 AND wickets < 265 what is the average rank when the cyclist is alexandr pliuschin?,"SELECT AVG(rank) FROM table_name_71 WHERE cyclist = ""alexandr pliuschin""" List the criteria names under the ranking system called Center for World University Ranking.,SELECT T2.criteria_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T1.system_name = 'Center for World University Rankings' "What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?",SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 0 What's the percentage when the state delegate is 1662?,SELECT percentage FROM table_16186152_1 WHERE state_delegate = 1662 "For each grade 0 classroom, report the total number of students.","SELECT classroom , count(*) FROM list WHERE grade = ""0"" GROUP BY classroom" Show the names of people who have been on the negative side of debates at least twice.,SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative = T2.People_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?,"SELECT change__2010_to_2011_ FROM table_14752049_2 WHERE international_tourist_arrivals__2011_ = ""1.7 million""" "Who is the away team for the tome team Leeds United, at the League Cup Competition?","SELECT away_team FROM table_name_12 WHERE home_team = ""leeds united"" AND competition = ""league cup""" "Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24–23?","SELECT MAX(attendance) FROM table_name_27 WHERE week < 9 AND result = ""l 24–23""" "In 1987, what is the Runners-up when Stefan Edberg is Champion?","SELECT runners_up FROM table_name_95 WHERE champions = ""stefan edberg"" AND year = 1987" Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types.,SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full' Which problem log was created most recently? Give me the log id.,SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1 When did the duchess who became duchess on 7/8 April 1766 cease to be duchess?,"SELECT ceased_to_be_duchess FROM table_name_5 WHERE became_duchess = ""7/8 april 1766""" What was the highest grid for Patrick Carpentier?,"SELECT MAX(grid) FROM table_name_77 WHERE driver = ""patrick carpentier""" List any five of course IDs with professor IDs who taught master courses.,"SELECT T1.course_id, T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_500' LIMIT 5" What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010?,SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 Which professor advised Willie Rechert to work as a research assistant? Please give his or her full name.,"SELECT T1.first_name, T1.last_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.f_name = 'Willie' AND T3.l_name = 'Rechert'" What was roberto travern's record when he fought against john salter?,"SELECT record FROM table_name_60 WHERE opponent = ""john salter""" When was the satellite that has a COSPAR ID of 1967-042a launched?,"SELECT launch_date FROM table_name_80 WHERE cospar_id = ""1967-042a""" Who is the founders of companies whose first letter is S?,SELECT founder FROM manufacturers WHERE name LIKE 'S%' What is the least common product category code?,SELECT product_category_code from Products group by product_category_code order by count ( * ) limit 1 "What was the latest week that had a game on November 18, 1951?","SELECT MAX(week) FROM table_name_91 WHERE date = ""november 18, 1951""" Which department has the largest number of employees?,SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1; How many 'blue' attribute classes are there on image ID 2355735?,SELECT COUNT(T1.ATT_CLASS) FROM ATT_CLASSES AS T1 INNER JOIN IMG_OBJ_ATT AS T2 ON T1.ATT_CLASS_ID = T2.ATT_CLASS_ID WHERE T2.IMG_ID = 2355735 AND T1.ATT_CLASS = 'blue' What are the brands of the root beers that received 5-star ratings from no less than 5 customers?,SELECT T1.BrandName FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T2.StarRating = 5 GROUP BY T2.BrandID HAVING COUNT(T2.StarRating) >= 5 How many students belong to the navy department?,SELECT COUNT(name) FROM enlist WHERE organ = 'navy' What is the suriname with a 16.8% brokopondo?,"SELECT suriname FROM table_name_62 WHERE brokopondo = ""16.8%""" "During all the observations of Elly Koss, what was the highest Systolic Blood Pressure observed?","SELECT T2.value, T2.units FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.description = 'Systolic Blood Pressure' ORDER BY T2.VALUE DESC LIMIT 1" What is Vuelta a Ecuador's lowest UCI Rating?,"SELECT MIN(uci_rating) FROM table_name_3 WHERE race_name = ""vuelta a ecuador""" What is the name of the store in district 11?,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_id = 11 I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes,"SELECT cast FROM table_name_75 WHERE director = ""colbert clark and armand schaefer"" AND serial_title = ""burn 'em up barnes""" What is the number of goals against when the played is more than 38?,SELECT COUNT(goals_against) FROM table_name_19 WHERE played > 38 Which countries do the top 5 highest paying customers in a single payment come from? Indicate their entire address.,"SELECT DISTINCT T2.country, T2.addressLine1, T2.addressLine2 FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber ORDER BY T1.amount DESC LIMIT 5" Did the round 8 race get reported,SELECT report FROM table_15511178_3 WHERE rd = 8 Please show the software platforms of devices in descending order of the count.,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC What the college Charles is attending?,SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' What is the number for the international with 669 domestic earlier than 2005?,SELECT AVG(international) FROM table_name_78 WHERE domestic = 669 AND year < 2005 The lake with the highest altitude is located in which city?,SELECT T2.City FROM lake AS T1 LEFT JOIN located AS T2 ON T2.Lake = T1.Name ORDER BY T1.Altitude DESC LIMIT 1 Which Sleeves have a Year of 2006-2008?,"SELECT sleeves FROM table_name_67 WHERE year = ""2006-2008""" "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.","SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'" Show me the medicine name which can interact as 'activitor' with enzymes?,SELECT T1.name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' How many people who are below 30 and participated in the summer season?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' AND T2.age < 30 "Hi, could you find the appellations that produce wines after the year of 2008 but not in Central Coast area.","SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = ""Central Coast""" Find the name of customers whose credit score is below the average credit scores of all customers.,SELECT cust_name FROM customer WHERE credit_score < (SELECT avg(credit_score) FROM customer) "Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7?",SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7 "If the race time is 2:00:33, what is the average speed?","SELECT average_speed__mph_ FROM table_2260452_1 WHERE race_time = ""2:00:33""" Name the 2005 with 2007 of sf,"SELECT 2005 FROM table_name_16 WHERE 2007 = ""sf""" Find the first name and age of the students who are playing both Football and Lacrosse.,"SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = ""Football"" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = ""Lacrosse"")" What is the total number of civil liberties 2011 values having 2010 political rights values under 3 and 2011 political rights values under 1?,SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 1 How many times is the number of active apps in the event that happened at 7:50:28 on 2016/5/2 than in the event that happened at 7:41:03 on 2016/5/2?,"SELECT SUM(IIF(timestamp = '2016-05-02 7:50:28', 1, 0)) / SUM(IIF(timestamp = '2016-05-02 7:41:03', 1, 0)) AS num FROM events AS T1 INNER JOIN app_events AS T2 ON T1.event_id = T2.event_id WHERE T2.is_active = '1'" What are the response received dates for the documents described as 'Regular' or granted with more than 100?,SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100 What was the score of the Friendly competition where the result was 7-2?,"SELECT score FROM table_name_54 WHERE competition = ""friendly"" AND result = ""7-2""" What Gershausen has a Willingshain of 243 and Reckerode of 224?,"SELECT gershausen FROM table_name_46 WHERE willingshain = ""243"" AND reckerode_ * * * * = ""224""" What is the ICAO when the IATA shows mfm?,"SELECT icao FROM table_name_2 WHERE iata = ""mfm""" "What is Manufacturer, when Quantity Made is 2, and when Year Made is 1884?","SELECT manufacturer FROM table_name_25 WHERE quantity_made = ""2"" AND year_made = ""1884""" Mention the number of businesses that have no any attribute.,"SELECT COUNT(business_id) FROM Business_Attributes WHERE attribute_value IN ('none', 'no', 'false')" What was the largest ethnic group in 2002 of the settlement with the cyrillic name of ватин?,"SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = ""Ватин""" What is the catalog number of Venus Demilo's A-side?,"SELECT catalog_number FROM table_name_30 WHERE a_side = ""venus demilo""" Which name has a Kanji of 朧?,"SELECT name FROM table_name_77 WHERE kanji = ""朧""" List the closing time and day of week of active businesses in Goodyear with stars greater than the 80% of average age of star rating.,"SELECT DISTINCT T2.closing_time, T3.day_of_week FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.active = 'true' AND T1.city = 'Goodyear' AND T1.stars > ( SELECT AVG(stars) * 0.8 FROM Business WHERE active = 'true' AND city = 'Goodyear' )" What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?,"SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = ""Lysanne"" AND T4.staff_last_name = ""Turcotte"" )" How many research assistants does Sauveur Skyme have?,SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.first_name = 'Sauveur' AND T2.last_name = 'Skyme' What county is the team with the mascot of the Tigers in?,"SELECT county FROM table_name_2 WHERE mascot = ""tigers""" "Please list the IDs of the paragraphs in which the character ""son to Tamora"" appears.",SELECT T1.id FROM paragraphs AS T1 INNER JOIN characters AS T2 ON T1.character_id = T2.id WHERE T2.Description = 'son to Tamora' What is the prize money for the final round?,"SELECT prize_money FROM table_name_58 WHERE round = ""final""" "Among the orders with sales value of no less than 5,000 in west superstore, how many were bought by the customers in California?",SELECT COUNT(DISTINCT T1.`Order ID`) FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` INNER JOIN people AS T3 ON T3.`Customer ID` = T1.`Customer ID` WHERE T1.Sales > 5000 AND T3.State = 'California' AND T2.Region = 'West' Mention the titile of paper writen by Joe Lograsso.,SELECT T1.Title FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Joe Lograsso' when did the club Citizen achieve its last top division title?,"SELECT last_top_division_title FROM table_1908877_2 WHERE club = ""Citizen""" "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1 What is the name of the church that opened the latest?,SELECT name FROM church order BY open_date desc limit 1 "Among the players who were born in July and August, how many of them got in the Hall of Fame?","SELECT COUNT(T1.playerID) FROM Master AS T1 INNER JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.birthMon IN (7, 8)" What is the product ID for food?,select product_id from Products where product_name = 'food' What school is in Richmond?,"SELECT school FROM table_2076608_3 WHERE location_s_ = ""Richmond""" What is the name of the father who was born in 1204 and married ottokar ii?,"SELECT father FROM table_name_89 WHERE spouse = ""ottokar ii"" AND birth = ""1204""" "Show the names of authors from college ""Florida"" or ""Temple""","SELECT Author FROM submission WHERE College = ""Florida"" OR College = ""Temple""" how many students registered for just one course,SELECT COUNT ( * ) FROM ( SELECT student_id FROM student_course_registrations GROUP BY student_id having count ( * ) = 1 ) "What episoe number in the season originally aired on February 11, 1988?","SELECT no_in_season FROM table_2818164_5 WHERE original_air_date = ""February 11, 1988""" Name the number of players for louisiana state,"SELECT COUNT(player) FROM table_15621965_14 WHERE school_club_team = ""Louisiana State""" Show the id of each employee and the number of document destruction authorised by that employee.,"SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID" Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand.,"SELECT T3.BrandName, T2.CustomerID FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID GROUP BY T3.BrandID ORDER BY T3.CurrentRetailPrice - T3.WholesaleCost, COUNT(T1.BrandID) DESC LIMIT 1" What is the difference in population between the two nations where the tallest peak is located?,SELECT * FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Country = T2.Country INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T1.Name = ( SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 ) What different types are there with a CC License of by-nc-sa 2.5?,"SELECT type FROM table_name_25 WHERE cc_license = ""by-nc-sa 2.5""" What was the Orangemen record during game 3?,SELECT record FROM table_23346983_1 WHERE game = 3 What is the callsign of tuguegarao,"SELECT callsign FROM table_12547903_2 WHERE location__transmitter_site_ = ""Tuguegarao""" Please list the countries in Latin America & Caribbean with a note on the series code SM.POP.TOTL.,"SELECT T1.SHORTNAME, T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Region = 'Latin America & Caribbean' AND T2.Seriescode = 'SM.POP.TOTL'" "What is Balls, when Venue is ""Bristol"", and when Score is ""104*""?","SELECT balls FROM table_name_3 WHERE venue = ""bristol"" AND score = ""104*""" Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)?,"SELECT name FROM table_name_98 WHERE nat = ""gre"" AND app_l_c_e_ = ""49 (40/8/1)""" What is curtis strange's to par?,"SELECT to_par FROM table_name_26 WHERE player = ""curtis strange""" What are the names of body builders whose total score is higher than 300?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300 How many players bat with their left hands?,SELECT SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id "What's the percentage of the users who have rated ""1"" on the movie ""When Will I Be Loved""?",SELECT CAST(SUM(CASE WHEN T1.rating_score = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' When did the club UNAM played the first season in top division?,"SELECT first_season_in_top_division FROM table_18143210_2 WHERE club = ""UNAM""" Who had the highest assists of the game on March 5?,"SELECT high_assists FROM table_name_50 WHERE date = ""march 5""" Sort all the rooms according to the price. Just report the room names.,SELECT roomName FROM Rooms ORDER BY basePrice; Can you tell me the Chassis that has the Year of 1977?,SELECT chassis FROM table_name_47 WHERE year = 1977 What is the name and checking balance of the account which has the lowest savings balance?,"SELECT T2.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1" What game has a score of 44-20?,"SELECT result FROM table_name_78 WHERE score = ""44-20""" What are all the CFL teams where the pick number is 36?,SELECT cfl_team FROM table_15817998_5 WHERE pick__number = 36 What is the nationality of the 7th season Purple Cap winner?,SELECT T3.Country_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Season_Id = 7 AND T1.Purple_Cap IS NOT NULL "How many electronvolts is 3,600 joules?","SELECT electronvolt FROM table_name_44 WHERE joule = ""3,600""" State the location of flower awards held?,select Location from festival_detail where Festival_Name = 'Flower Awards' "In ""Twelfth Night, Or What You Will"", what is the description of the chapter in 2nd scene, Act 2?","SELECT T2.Description FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.LongTitle = 'Twelfth Night, Or What You Will' AND T2.Scene = 2 AND T2.Act = 2" "In 1975, what was the final round?","SELECT final_round FROM table_name_1 WHERE year = ""1975""" Find the min grade point for all letter grade?,SELECT min ( gradepoint ) FROM GRADECONVERSION What is the name of the storm active during season aggregates?,"SELECT name FROM table_name_48 WHERE dates_active = ""season aggregates""" When was Göteborg the opponent with a score of 3-1?,"SELECT date FROM table_name_9 WHERE opponents = ""göteborg"" AND score = ""3-1""" Count the number of different affected regions.,SELECT count(DISTINCT region_id) FROM affected_region Please list the customer names whose order quantity was more than 5 on 6/1/2018.,SELECT T FROM ( SELECT DISTINCT CASE WHEN SUM(T1.`Order Quantity`) > 5 THEN T2.`Customer Names` END AS T FROM `Sales Orders` T1 INNER JOIN Customers T2 ON T2.CustomerID = T1._CustomerID WHERE T1.OrderDate = '6/1/18' GROUP BY T1._CustomerID ) WHERE T IS NOT NULL What is the title of the animated films that have the shortest length?,SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id ORDER BY T1.length LIMIT 1 How many medicines have the FDA approval status 'No' ?,SELECT count(*) FROM medicine WHERE FDA_approved = 'No' What was the Venue of the North Melbourne Away Team?,"SELECT venue FROM table_name_33 WHERE away_team = ""north melbourne""" "Find the addresses of the course authors who teach the course with name ""operating system"" or ""data structure"".","SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = ""operating system"" OR T2.course_name = ""data structure""" How many police officers are there in that county?,SELECT Police_officers FROM county_public_safety ORDER BY Population DESC LIMIT 1 State average scores of participants from arizona,"SELECT average FROM table_17088705_2 WHERE country = ""Arizona""" What are the names of the airports which are not in the country 'Iceland'?,SELECT name FROM airport WHERE country != 'Iceland' What number of Yards has 32 as an In 20?,SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32 Find the name of the customer who made the order of the largest amount of goods.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = ( SELECT max(order_quantity) FROM order_items) When did the Baltimore Ravens play at home ?,"SELECT date FROM table_name_79 WHERE host_team = ""baltimore ravens""" How many users have joined Yelp since the year 2012?,SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2012 "Who belong to the institution ""University of Oxford""? Show the first names and last names.","SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = ""University of Oxford""" "What date sent has cygnus as a constellation, and hd 190360 as a designation HD?","SELECT date_sent FROM table_name_65 WHERE constellation = ""cygnus"" AND designation_hd = ""hd 190360""" "Which Nationality has a Rank larger than 3, and a Name of tom hilde?","SELECT nationality FROM table_name_71 WHERE rank > 3 AND name = ""tom hilde""" list out the customers first name,SELECT customer_first_name FROM Customers "Name the Date which has a Oil Pattern of chameleon, and a Event of lake county indiana classic?","SELECT date FROM table_name_51 WHERE oil_pattern = ""chameleon"" AND event = ""lake county indiana classic""" What is the score on April 12?,"SELECT score FROM table_name_88 WHERE date = ""april 12""" Which Number of electorates (2009) has 188 Constituents?,"SELECT number_of_electorates__2009_ FROM table_name_93 WHERE constituency_number = ""188""" Which Score has a Set 1 of 25–16?,"SELECT score FROM table_name_97 WHERE set_1 = ""25–16""" Wat is the tax source system code and master customer id of the taxes related to each parking fine id?,"SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id" "Which Season originally aired on September 17, 1955","SELECT season__number FROM table_15824796_4 WHERE original_air_date = ""September 17, 1955""" What organization details of service id 11?,SELECT T2.organization_details FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE t1.service_id = '11' What are the average price and score of wines grouped by appelation?,"SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation" List the store located cities with regions in no water area of California state.,SELECT DISTINCT T2.`City Name` FROM Regions AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StateCode = T1.StateCode WHERE T2.State = 'California' AND T2.`Water Area` = '0' what's the founder where moderate is ether,"SELECT founder FROM table_11256021_1 WHERE moderate = ""ether""" What is Laure Manaudou's highest rank?,"SELECT MAX(rank) FROM table_name_32 WHERE name = ""laure manaudou""" What is the Population of the nation that has a Member countries consisting of existing members (1973)?,"SELECT population FROM table_name_68 WHERE member_countries = ""existing members (1973)""" Describe the condition of patient Wilmer Koepp.,SELECT T2.DESCRIPTION FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Wilmer' AND T1.last = 'Koepp' What year does robin buck go 44 laps?,"SELECT year FROM table_name_78 WHERE distance_duration = ""44 laps"" AND driver = ""robin buck""" What are all the dates with a score of 203 (-13)?,"SELECT date FROM table_11622829_1 WHERE score = ""203 (-13)""" where the land is 35.990 what is the number of the geo id,"SELECT geo_id FROM table_18600760_19 WHERE land___sqmi__ = ""35.990""" Show the journalists with more than 10 years of working.,SELECT * FROM journalist WHERE Years_working > 10 What is the average number of stars for businesses in the Obstetricians & Gynecologists category?,SELECT CAST(SUM(T1.stars) AS REAL) / COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'Obstetricians & Gynecologists' Which province got a swimsuit score of 8.43,"SELECT province FROM table_15081939_4 WHERE swimsuit = ""8.43""" "What was the Billboard peak for the album released on February 2, 1976 by MCA?","SELECT billboard_peak FROM table_name_95 WHERE label = ""mca"" AND date_of_release = ""february 2, 1976""" How many words has the appearance times greater than 10?,SELECT COUNT(w1st) AS countwords FROM biwords WHERE occurrences > 10 "When the home attendance is 3.123, what's the highest away attendance?","SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = ""3.123""" "What are the total points for all gymnasts, ordered by total points descending?",SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC What airport is in Muscat?,"SELECT airport FROM table_name_60 WHERE city = ""muscat""" Please list the name and id of all artists that have at least 3 albums in alphabetical order.,"SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name" Title of the angry brigade involves which lowest year?,"SELECT MIN(year) FROM table_name_49 WHERE title = ""the angry brigade""" Find names and ids of all documents with document type code BK.,"SELECT document_name , document_id FROM Documents WHERE document_type_code = ""BK""" Give the advisor with the most students.,SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1 What is the defective year for the regular year of 29 days and month sequence of 2?,"SELECT MAX(defective_year) FROM table_28985631_1 WHERE regular_year = ""29 days"" AND month_sequence = 2" What is the Latin word for the English word bone?,"SELECT latin FROM table_name_33 WHERE english = ""bone""" "In Ascot (UK), what was the result?","SELECT result FROM table_14981555_3 WHERE venue = ""Ascot (UK)""" "What are the different software platforms for devices, and how many devices have each?","SELECT Software_Platform , COUNT(*) FROM device GROUP BY Software_Platform" How old is dan?,SELECT age FROM Person WHERE name = 'Dan' "What are the teams that played in a match with the point of winning margin of 38 on April 30, 2009?",SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Team_1 WHERE T2.win_margin = 38 AND match_date = '2009-04-30' Venue of thessaloniki (without participation) had what score?,"SELECT score FROM table_name_99 WHERE venue = ""thessaloniki (without participation)""" How many times is the postion S?,"SELECT COUNT(overall) FROM table_name_4 WHERE position = ""s""" Give the different positions of players who play for the country with the capital Dublin.,"SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = ""Dublin""" What is the highest difference for the team that had less than 0 draws?,SELECT MAX(difference) FROM table_name_98 WHERE drew < 0 Which R.A. (J2000) has a Name of ngc 1543?,"SELECT ra___j2000__ FROM table_name_68 WHERE name = ""ngc 1543""" what is the score when the competition is 1995 southeast asian games?,"SELECT score FROM table_name_1 WHERE competition = ""1995 southeast asian games""" What is the name of the singer with the largest net worth?,SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 "How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?","SELECT points FROM table_name_68 WHERE year < 1977 AND engine = ""cosworth v8"" AND entrant = ""hb bewaking alarm systems""" what stadium has a prior record of 7th?,"SELECT stadium FROM table_name_8 WHERE past_season = ""7th""" What are first and last names of all customers?,"SELECT customer_first_name , customer_last_name FROM Customers" What was Tim Simpson's place?,"SELECT place FROM table_name_94 WHERE player = ""tim simpson""" What nation had 1399.3 points?,SELECT nation FROM table_name_35 WHERE points = 1399.3 What is the Record of the Montreal Canadiens Home game on March 23?,"SELECT record FROM table_name_38 WHERE home = ""montreal canadiens"" AND date = ""march 23""" What's the number & name for the description peckett 0-4-0st?,"SELECT number_ & _name FROM table_name_72 WHERE description = ""peckett 0-4-0st""" "Show all movie titles, years, and directors, ordered by budget.","SELECT title , YEAR , director FROM movie ORDER BY budget_million" what is the lowest qualifying rank?,SELECT MIN(qualifying_rank) FROM table_13114949_3 Which of the highest drawn has a played less than 10?,SELECT MAX(drawn) FROM table_name_96 WHERE played < 10 What was the highest number of students in attendance for the university of north texas?,"SELECT MAX(enrollment) FROM table_28243691_1 WHERE institution = ""University of North Texas""" List the authors who do not have submission to any workshop.,SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance) What place has the score of 67-74=141?,SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141 What is the most expensive procedure? | Do you mean the name of the procedure with the highest cost? | Yes.,SELECT name FROM procedures order by cost desc limit 1 "How many more ""buffets"" than ""gyms"" in Yelp business?",SELECT SUM(CASE WHEN T1.category_name LIKE 'Buffets' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.category_name LIKE 'Gyms' THEN 1 ELSE 0 END) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id What are the average price and score of wines grouped by appelation?,"SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation" Tell me the first and last name of the student who has the most activities.,"SELECT T1.fname , T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1" What is average and maximum salary of all employees.,"SELECT AVG(salary), MAX(salary) FROM Employee" what is the total number of games played when the goals for is less than 30?,SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30 Give the cities and district names that belong to the country with Hajastan as its local name.,"SELECT T2.Name, T2.District FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.LocalName = 'Hajastan'" How many ranks have professors,"SELECT COUNT ( * ) FROM faculty where rank = ""Professor""" what is the reported death date for laura svehaug?,"SELECT reported_death_date FROM table_name_97 WHERE name = ""laura svehaug""" How many people were in the crowd when Essendon was the home team?,"SELECT COUNT(crowd) FROM table_name_78 WHERE home_team = ""essendon""" "Which locomotives 12"" x 17"" are both ex-industrial and built by Manning Wardle?","SELECT name FROM table_1157867_2 WHERE notes = ""Ex-industrial"" AND builder = ""Manning Wardle""" What season was an episode directed by wendey stanzler?,"SELECT MAX(no_in_season) FROM table_25716399_1 WHERE directed_by = ""Wendey Stanzler""" who is the oldest artist? | do you want to show his/her name? | yes,SELECT name FROM artist order by age desc limit 1 and what is the scientist id for project Aerodynamics and Bridge Design,SELECT t2.Scientist FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.name = 'Aerodynamics and Bridge Design' "If the salary range is 4,000-9,000, what is the Indians %?","SELECT indians FROM table_27257896_2 WHERE salary_range = ""4,000-9,000""" Name the ezhavas and syrian christians being 26.2,"SELECT ezhavas FROM table_23214055_2 WHERE syrian_christians = ""26.2""" Who built the car that ran out of fuel before 28 laps?,"SELECT constructor FROM table_name_47 WHERE laps < 28 AND time_retired = ""out of fuel""" "What is the percentage of students who get a ""B"" in the course ""Computer Network""?",SELECT CAST(SUM(CASE WHEN T1.grade = 'B' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.name = 'Computer Network' Name the number of overall nt points for 248.9,"SELECT COUNT(overall_nt_points) FROM table_14407512_24 WHERE points = ""248.9""" "What is the title of the German film that is originally called Mama, Ich Lebe?","SELECT film_title_used_in_nomination FROM table_name_14 WHERE language = ""german"" AND original_name = ""mama, ich lebe""" Which team has the most Swedish?,"SELECT T.TEAM FROM ( SELECT T2.TEAM, COUNT(DISTINCT T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN SeasonStatus AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.nation = 'Sweden' GROUP BY T2.TEAM ORDER BY COUNT(DISTINCT T1.ELITEID) DESC LIMIT 1 ) AS T" What's Salem State University's primary conference?,"SELECT primary_conference FROM table_1974545_2 WHERE institution = ""Salem State University""" How many lessons taught by staff whose first name has letter 'a' in it?,"SELECT COUNT(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE ""%a%""" "Which Opponent has an Attendance of 24,791?","SELECT opponent FROM table_name_94 WHERE attendance = ""24,791""" "Which 5 players have the highest potential? | Do you want the names of those players? | Yes, please.",SELECT distinct T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5 How many times did Keven Kuhn receive DTaP immunization?,SELECT COUNT(T2.CODE) FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Keven' AND T1.last = 'Kuhn' AND T2.DESCRIPTION = 'DTaP' What is the PSOE for the Local Elections polling firm?,"SELECT psoe FROM table_name_78 WHERE polling_firm = ""local elections""" "What is the total Launches to date with a Version of 541, and CCBs smaller than 1?","SELECT COUNT(launches_to_date) FROM table_name_8 WHERE version = ""541"" AND ccbs < 1" What's the highest Year with the Region of Southeast?,"SELECT MAX(year) FROM table_name_11 WHERE region = ""southeast""" "Hmm, can you tell me the color description of the product with the name “catnip”?","SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""catnip""" How many parties were represented for Charles R. Crisp?,"SELECT COUNT(party) FROM table_1342370_10 WHERE incumbent = ""Charles R. Crisp""" In what country is Hokkaidō and New Chitose airport located?,"SELECT country FROM table_name_55 WHERE province_region = ""hokkaidō"" AND airport = ""new chitose airport""" Which year had the most released films?,SELECT movie_release_year FROM movies GROUP BY movie_release_year ORDER BY COUNT(movie_id) DESC LIMIT 1 Show the distinct venues of debates,SELECT DISTINCT Venue FROM debate What is the product description of Headset Ball Bearings?,SELECT T1.Description FROM ProductDescription AS T1 INNER JOIN Product AS T2 WHERE T2.Name = 'Headset Ball Bearings' AND T1.productDescriptionID = T2.ProductID "Which Event resulted in a Win for Opponent, Shane Ott?","SELECT event FROM table_name_4 WHERE res = ""win"" AND opponent = ""shane ott""" What is the average Pick when the round was less than 6 for kenneth green?,"SELECT AVG(pick) FROM table_name_7 WHERE round < 6 AND player = ""kenneth green""" "Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.","SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC" What is the date of the match with a home team of Huddersfield Town and was a replay tie?,"SELECT date FROM table_name_93 WHERE tie_no = ""replay"" AND home_team = ""huddersfield town""" Which was the highest crowd drawn by an Away team in Richmond?,"SELECT MAX(crowd) FROM table_name_6 WHERE away_team = ""richmond""" What was the result when Ray Roberts was elected?,"SELECT result FROM table_1341718_44 WHERE incumbent = ""Ray Roberts""" "What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?",SELECT SUM(bronze) FROM table_name_8 WHERE silver = 1 AND rank < 4 AND gold > 1 which among them was the biggest?,"SELECT * FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Fate Like ""%Lost%"" order by T2.tonnage desc limit 1" Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.,SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted) > 100 OR sum(T3.amount) > 10 What is the status code of the customer with the last name Kohler or first name Marina?,"SELECT customer_status_code FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" Which school has the highest acc percent score?,SELECT t1.school FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent DESC LIMIT 1 What are the headquarters and industries of all companies?,"SELECT Headquarters , Industry FROM company" Which station that sat 54m above seal level is now Closed?,"SELECT station FROM table_name_15 WHERE height_above_sea_level__m_ = ""54m"" AND ""closed"" = ""closed""" Which Season 1 has a Season 7 of david chilton?,"SELECT season_1 FROM table_name_5 WHERE season_7 = ""david chilton""" What date has 0-6700-30838-2-9 for a catalog?,"SELECT date FROM table_name_88 WHERE catalog = ""0-6700-30838-2-9""" "Which Location has Floors smaller than 27, and a Building of 150 elgin?","SELECT location FROM table_name_71 WHERE floors < 27 AND building = ""150 elgin""" What Round against Aleksander Emelianenko had a time of 5:00?,"SELECT round FROM table_name_98 WHERE time = ""5:00"" AND opponent = ""aleksander emelianenko""" "How many goals against were scored when the points were smaller than 13, the wins were smaller than 3, and the goals for were smaller than 15?",SELECT SUM(goals_against) FROM table_name_73 WHERE points < 13 AND wins < 3 AND goals_for < 15 "what is the surface on july 26, 2010?","SELECT surface FROM table_name_15 WHERE date = ""july 26, 2010""" List down the states in 2011 with a national sector average of 20 and below.,SELECT DISTINCT T1.state FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.year = 2011 AND T1.awards_per_natl_value <= 20 "What is the care plan, procedure, medication and the patient's full name for encounter 6f2e3935-b203-493e-a9c0-f23e847b9798?","SELECT DISTINCT T3.DESCRIPTION, T4.DESCRIPTION, T5.DESCRIPTION, T1.first, T1.last FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT INNER JOIN careplans AS T3 ON T1.patient = T3.PATIENT INNER JOIN procedures AS T4 ON T1.patient = T4.PATIENT INNER JOIN medications AS T5 ON T1.patient = T5.PATIENT WHERE T2.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798'" Can you tell me the sum of the Pick # that has the CFL Team of edmonton?,"SELECT SUM(pick__number) FROM table_name_69 WHERE cfl_team = ""edmonton""" How many female athletes are from the Philippines?,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 = 'Philippines' AND T3.gender = 'F' who won the lifetime achievement in the year 1998?,SELECT lifetime_achievement FROM table_name_39 WHERE year = 1998 Name the highest Bronze which has a Gold larger than 2 and a Rank of total?,"SELECT MAX(bronze) FROM table_name_70 WHERE gold > 2 AND rank = ""total""" What are the names of all instructors in the Comp. Sci. department?,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' "How many overs were there in the first innings of match ID ""335996""?",SELECT COUNT(Over_Id) FROM Ball_by_Ball WHERE Match_Id = 335996 AND Innings_No = 1 "Hi, can I see the list of customers?",Select * from customers Give the distinct famous release dates for all artists.,SELECT distinct(Famous_Release_date) FROM artist What is the average Attendance for the final round?,"SELECT AVG(attendance) FROM table_name_54 WHERE round = ""final""" "From 2012 to 2015, how many complaints were submitted via email from female clients?","SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE strftime('%Y', T2.`Date received`) BETWEEN '2012' AND '2015' AND T2.`Submitted via` = 'Email' AND T1.sex = 'Male'" What are the names of all products that are not the most frequently-used maximum page size?,SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1) The game played on 6 December 1986 had what score?,"SELECT score FROM table_name_12 WHERE date = ""6 december 1986""" What are the names of the movies?,SELECT title FROM Movie how many million u.s. viewers watched the episode directed by dan lerner?,"SELECT us_viewers__million_ FROM table_25997153_1 WHERE directed_by = ""Dan Lerner""" When was the game with richmond as Away team?,"SELECT date FROM table_name_86 WHERE away_team = ""richmond""" List all information about the assessment notes sorted by date in ascending order.,SELECT * FROM Assessment_Notes ORDER BY date_of_notes Find the name of students who didn't take any course from Biology department.,SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology') What Week 2 has a Week 1 of crystal beddows?,"SELECT week_2 FROM table_name_66 WHERE week_1 = ""crystal beddows""" "How many 10-year old athletes participated in the Gymnastics Men's Parallel Bars, Teams event?","SELECT COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN event AS T3 ON T1.event_id = T3.id WHERE T3.event_name LIKE 'Gymnastics Men%s Parallel Bars, Teams' AND T2.age = 10" What is the crowd size for st kilda as the home team?,"SELECT crowd FROM table_name_17 WHERE home_team = ""st kilda""" "Which date held the match at the City Stadium, Georgetown?","SELECT date FROM table_name_7 WHERE venue = ""city stadium, georgetown""" What is the engine type with a wheelbase of 127 inches in 1915?,"SELECT engine_type___cyl FROM table_name_14 WHERE wheelbase_in = ""127"" AND year = ""1915""" How many candidates had 0 percent of the vote in 1999?,SELECT COUNT(candidates) FROM table_name_71 WHERE _percentage_of_vote = 0 AND election = 1999 AND seats_won > 0 How many tournaments were held at Alabama?,"SELECT COUNT(score) FROM table_21260421_1 WHERE location = ""Alabama""" Count the number of accounts.,SELECT count(*) FROM Accounts What Adminstration has a Season of 2000?,SELECT administration FROM table_name_56 WHERE season = 2000 List the full name of all past legislators that chose Pro-Administration as their political party in year 1791.,"SELECT T1.first_name, T1.last_name FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Pro-Administration' AND CAST(T2.start AS DATE) <= 1791 AND CAST(T2.END AS DATE) >= 1791" What were the names of the colleges for that position?,SELECT cName FROM tryout where pPos = ( SELECT pPos FROM tryout GROUP BY pPos ORDER BY count ( * ) DESC LIMIT 1 ) How many candidates were elected in the Louisiana 4 district?,"SELECT COUNT(first_elected) FROM table_1341865_20 WHERE district = ""Louisiana 4""" How many different cities do people originate from?,SELECT count(DISTINCT city) FROM Person How many stars on average does the episode Lost Verizon have?,SELECT CAST(SUM(T2.votes * T2.stars) AS REAL) / SUM(T2.votes) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.title = 'Lost Verizon'; "What is the total area with the Census Ranking of 3,129 of 5,008, and a Population larger than 460?","SELECT COUNT(area_km_2) FROM table_name_66 WHERE census_ranking = ""3,129 of 5,008"" AND population > 460" Find the names of the services that have never been used.,SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id What was the maximum OTL if L is 28?,SELECT MAX(Otl) FROM table_2233872_1 WHERE l = 28 How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?,"SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = ""Mercer""" How many athletes are from Australia?,SELECT COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Australia' How many budgets are above 3000 in year 2001 or before?,SELECT count(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001 What is the full name of the customers who live in Baiyin city?,"SELECT T3.first_name, T3.last_name FROM address AS T1 INNER JOIN customer_address AS T2 ON T1.address_id = T2.address_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T1.city = 'Baiyin'" Name the goalies who have played more than total of 5000 minutes in the all the season played. State given name of the player and from which country was he born.,"SELECT DISTINCT T1.nameGiven, T1.birthCountry FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID GROUP BY T1.nameGiven, T1.birthCountry HAVING SUM(T2.Min) > 5000" "What is the Name of the racer with a heat higher than 2 and a lane less than 5, with a time of 1:01.53?","SELECT name FROM table_name_96 WHERE heat > 2 AND lane < 5 AND time = ""1:01.53""" How many mailshots does customer id 1 have?,SELECT count ( * ) FROM mailshot_customers where customer_id = 1 What is the name of gao chiappe meng o'connor wang cheng liu?,"SELECT name FROM table_name_99 WHERE authors = ""gao chiappe meng o'connor wang cheng liu""" What is all the information about employees who have never had a job in the past?,SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history) What is the time/retired for the driver emerson fittipaldi?,"SELECT time_retired FROM table_name_55 WHERE driver = ""emerson fittipaldi""" What are the allergies and their types?,"SELECT allergy , allergytype FROM Allergy_type" "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.","SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY count(*) ASC LIMIT 1" Find the id of students who do not have a cat pet.,SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' Find names of all colleges whose enrollment is greater than that of all colleges in the FL state.,SELECT cName FROM college WHERE enr > (SELECT MAX(enr) FROM college WHERE state = 'FL') At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.,"SELECT Restaurant.ResName, SUM(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY SUM(Visits_Restaurant.Spent) LIMIT 1" State the royalty percentage for the most year to date sale title within the 20000 range.,SELECT MAX(T1.ytd_sales) FROM titles AS T1 INNER JOIN roysched AS T2 ON T1.title_id = T2.title_id WHERE T2.lorange > 20000 AND T2.hirange < 20000 Who was the leading scorer of the game that had a score of 107–97?,"SELECT leading_scorer FROM table_name_26 WHERE score = ""107–97""" "Which Rank has Notes of fb, and a Time of 5:57.31?","SELECT rank FROM table_name_70 WHERE notes = ""fb"" AND time = ""5:57.31""" Show the names of pilots and models of aircrafts they have flied with.,"SELECT T3.Pilot_name , T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID" Which province's IATA is kix?,"SELECT province FROM table_name_21 WHERE iata = ""kix""" Calculate the average age of the male patients that have hypertension.,"SELECT SUM(CASE WHEN T2.deathdate IS NULL THEN ROUND((strftime('%J', date('now')) - strftime('%J', T2.birthdate)) / 365) ELSE ROUND((strftime('%J', T2.deathdate) - strftime('%J', T2.birthdate)) / 365) END) / COUNT(T2.patient) FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T1.DESCRIPTION = 'Hypertension' AND T2.gender = 'M'" What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?,SELECT AVG(ae_2011) FROM table_name_21 WHERE forbes_2011 = 24 AND ft_2011 < 44 Count the number of total papers.,SELECT count(*) FROM papers The highest Systolic Blood Pressure was observed in which patient? Please give his or her full name.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T2.VALUE = ( SELECT MAX(VALUE) FROM observations WHERE description = 'Systolic Blood Pressure' ) LIMIT 1" What is the date for the Indianapolis circuit?,"SELECT date FROM table_15299235_1 WHERE circuit = ""Indianapolis""" How much is the Singapore Gross for the film that Siu Wing directed?,"SELECT singapore_gross FROM table_name_93 WHERE director = ""siu wing""" "Which Representative has a Presentation of Credentials on september 8, 2005?","SELECT representative FROM table_name_93 WHERE presentation_of_credentials = ""september 8, 2005""" Who drives for Newman-Haas Racing with a time of 1:51:47.260?,"SELECT driver FROM table_name_43 WHERE team = ""newman-haas racing"" AND time_retired = ""1:51:47.260""" "How many XML format does the github address ""https://github.com/dogeth/vss2git.git"" have?",SELECT COUNT(T3.CommentIsXml) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T1.Url = 'https://github.com/dogeth/vss2git.git' AND T3.CommentIsXml = 1 Which player was previously on the New York Knicks?,"SELECT player FROM table_name_24 WHERE previous_team = ""new york knicks""" Can you also show me the lowest rating of songs for each genre? | do you want to order them by genre as well? | Yes please,"SELECT min ( T1.duration ) , min ( T2.rating ) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is" who is the player with high assists on january 22?,"SELECT high_assists FROM table_13619027_7 WHERE date = ""January 22""" How many male sex are there,SELECT count ( * ) FROM people WHERE Sex = 'M' How many strokes off par was the winner in 1978?,"SELECT to_par FROM table_name_90 WHERE year_s__won = ""1978""" What is the English name of the country that has Ramallah as its capital?,"SELECT english_country_name FROM table_name_59 WHERE english_capital_name = ""ramallah""" How many different weeks are there in order number 4 that were judge's choice?,"SELECT COUNT(week__number) FROM table_27614707_1 WHERE theme = ""Judge's Choice"" AND order__number = ""4""" List the product and its issues of the complains of clients with age greater than the 60% of average age of all clients.,"SELECT DISTINCT T2.Product, T2.Issue FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.age * 100 > ( SELECT AVG(age) * 60 FROM client )" What is the smallest population with an Area (km²) of 1115.4?,SELECT MIN(population) FROM table_name_72 WHERE area__km²_ = 1115.4 Who retired at lap 77 and was grid 11?,"SELECT time_retired FROM table_name_22 WHERE laps = ""77"" AND grid = ""11""" "What is Date, when Name is ""Guay, Albert , 32""?","SELECT date FROM table_name_48 WHERE name = ""guay, albert , 32""" How many times has SR Watson been named 'Man of the Match'?,SELECT SUM(CASE WHEN T2.Player_Name = 'SR Watson' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Match = T2.Player_Id "Jill ranked which medium-quality class product as the highest, and how long will it take the company to manufacture such a product?",SELECT T1.DaysToManufacture FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Rating = 5 AND T1.Class = 'M' ORDER BY T2.Rating LIMIT 1 Who was the opponent in the round of R2?,"SELECT opponent FROM table_name_95 WHERE round = ""r2""" "at kardinia park, what was the away team's score?","SELECT away_team AS score FROM table_name_22 WHERE venue = ""kardinia park""" Who in series 9 corresponds to Peter Jones in series 2?,"SELECT series_9 FROM table_name_55 WHERE series_2 = ""peter jones""" What is the name of the stadium when the visiting team is the Denver Broncos?,"SELECT stadium FROM table_name_6 WHERE visiting_team = ""denver broncos""" Name the most silver with bronze more than 1 and gold more than 1 with total less than 7,SELECT MAX(silver) FROM table_name_46 WHERE bronze > 1 AND total < 7 AND gold > 1 What is the against for 17/02/1979?,"SELECT against FROM table_name_76 WHERE date = ""17/02/1979""" Which Segment C has a Segment B of fish food?,"SELECT segment_c FROM table_name_54 WHERE segment_b = ""fish food""" List out the product name of order which has unit cost of 781.22.,"SELECT T FROM ( SELECT DISTINCT IIF(T1.`Unit Cost` = 781.22, T2.`Product Name`, NULL) AS T FROM `Sales Orders` T1 INNER JOIN Products T2 ON T2.ProductID = T1._ProductID ) WHERE T IS NOT NULL" What are the course codes for every class that the student with the last name Smithson took?,SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson' What is the lowest ERP W of the 67829 Facility ID?,SELECT MIN(erp_w) FROM table_name_54 WHERE facility_id = 67829 What rank is Captain Conway?,SELECT Rank FROM captain WHERE name like '%Conway%' Name the date when result is l 13–10 ot,"SELECT date FROM table_14520977_1 WHERE result = ""L 13–10 OT""" What is the League for 1952–1960?,"SELECT league_a FROM table_name_2 WHERE years = ""1952–1960""" What are Ken Rosewall's sets w-l?,"SELECT sets_w_l FROM table_23133482_1 WHERE player = ""Ken Rosewall""" How long did the game go that was played with the Houston Oilers at home?,"SELECT length_of_game FROM table_name_31 WHERE home_team = ""houston oilers""" "Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood?","SELECT place FROM table_name_39 WHERE country = ""united states"" AND money___$__ > 0 AND player = ""craig wood""" what is the regulatory citation when the standard is 15 μg/m³?,"SELECT regulatory_citation FROM table_name_11 WHERE standard = ""15 μg/m³""" The Home team of Sydney had which ground?,"SELECT ground FROM table_name_1 WHERE home_team = ""sydney""" Name the moving to for fra,"SELECT moving_to FROM table_name_22 WHERE country = ""fra""" What is the average weight of the players who have won the award of Rookie of the year?,SELECT AVG(T1.weight) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Rookie of the Year' Which Record has a Game of 19?,SELECT record FROM table_name_78 WHERE game = 19 "Which clubs have one or more members from the city with code ""BAL""? Give me the names of the clubs.","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = ""BAL""" How many cities in this table?,SELECT count ( distinct City ) from city "List the paper title and journal ID which were published under the conference name of ""International Symposium of Robotics Research"".","SELECT DISTINCT T2.Title, T2.JournalId FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'International Symposium of Robotics Research' AND T2.Year = 2003" Show the name of students,"SELECT lname, fname FROM STUDENT" how many furnitures on the table,SELECT count ( * ) FROM furniture What is the first name and the last name of the customer who made the earliest rental?,"SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1" What episode number had US viewership of 4.87 million?,"SELECT № FROM table_27905664_1 WHERE us_viewers__million_ = ""4.87""" On what Date was the Score 105-118 and the H/A/N A?,"SELECT date FROM table_name_80 WHERE h_a_n = ""a"" AND score = ""105-118""" "Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?","SELECT works_number FROM table_name_88 WHERE type = ""0-4-4 forney locomotive"" AND builder = ""h. k. porter, inc""" Which English has Dutch of maken?,"SELECT english FROM table_name_37 WHERE dutch = ""maken""" How much surface area do the countires in the Carribean cover together?,"SELECT sum(SurfaceArea) FROM country WHERE Region = ""Caribbean""" In which cities are Los Angeles County Suburban Metro Schools located?,SELECT school_city FROM projects WHERE school_metro = 'suburban' AND school_county = 'Los Angeles' "What rank has a status of proposed, with 80 floors for Celestia Spaces 4?","SELECT AVG(rank) FROM table_name_79 WHERE status = ""proposed"" AND floors = 80 AND name = ""celestia spaces 4""" "Find all 200 meter and 300 meter results of swimmers with nationality ""Australia"".","SELECT meter_200 , meter_300 FROM swimmer WHERE nationality = 'Australia'" which campus has the fewest faculties in year 2003?,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty LIMIT 1 Name the date for 2004 afc asian cup qualifier,"SELECT date FROM table_name_23 WHERE competition = ""2004 afc asian cup qualifier""" "Name the Team which has a Time/Retired of contact, and a Grid smaller than 17?","SELECT team FROM table_name_87 WHERE time_retired = ""contact"" AND grid < 17" Show the transportation method most people choose to get to tourist attractions.,SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1 what's the district with candidates being john e. rankin (d) unopposed,"SELECT district FROM table_1342379_23 WHERE candidates = ""John E. Rankin (D) Unopposed""" Who were the opponents in the match that was played on a hard court and had a runner-up outcome?,"SELECT opponents FROM table_name_84 WHERE surface = ""hard"" AND outcome = ""runner-up""" What is the longitude and latitude for the district represented by Grayson Alan?,"SELECT T1.latitude, T1.longitude FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Grayson' AND T3.last_name = 'Alan'" Who was the home team for the game that has a Tie value of 3?,"SELECT home_team FROM table_name_36 WHERE tie_no = ""3""" Show all cities along with the number of drama workshop groups in each city.,"SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town" What was the club when home ground was Central Reserve?,"SELECT club FROM table_name_59 WHERE home_ground = ""central reserve""" Which Video has a PSIP Short Name of rt?,"SELECT video FROM table_name_53 WHERE psip_short_name = ""rt""" What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?,"SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5" How many people attended the game in week 13?,SELECT attendance FROM table_name_60 WHERE week = 13 "Who were the runners-up in the tournament on May 26, 1996?","SELECT runner_s__up FROM table_name_93 WHERE date = ""may 26, 1996""" What is the highest average that has 6 dances and a total of over 128?,SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128 Which player had 252 appearances,SELECT name FROM table_24565004_7 WHERE appearances¹ = 252 "What is the total decile with an Area of whitianga, and a Roll smaller than 835?","SELECT SUM(decile) FROM table_name_64 WHERE area = ""whitianga"" AND roll < 835" What date was there a game larger than 17?,SELECT date FROM table_name_20 WHERE game > 17 Which gene has the subject number 21?,"SELECT gene FROM table_name_28 WHERE subject_number = ""21""" What is the prothrombin time of von willebrand disease? ,"SELECT COUNT(prothrombin_time) FROM table_238124_1 WHERE condition = ""Von Willebrand disease""" What is the long in 1994?,"SELECT long FROM table_name_60 WHERE year = ""1994""" Find the countries that have never participated in any competition with Friendly type,SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' Tell me the service id of the customer id 10 ?,"SELECT service_id FROM Party_Services WHERE customer_id = ""10""" What county is associated with ansi code 1759686?,SELECT county FROM table_18600760_13 WHERE ansi_code = 1759686 From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?,"SELECT league_from FROM table_name_69 WHERE nhl_team = ""atlanta thrashers (from dallas) 6""" What are the notes of the satellite whose nssdc id number is 1959-002a?,"SELECT notes FROM table_191323_2 WHERE nssdc_id_no = ""1959-002A""" Show all game names played by Linda Smith,"SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = ""Smith"" AND T3.Fname = ""Linda""" What is the id of the longest song?,SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 What type was issued in 1964?,SELECT type FROM table_name_1 WHERE issued = 1964 What RolePlay actor played the same role Alison Pargeter played in the original production?,"SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = ""Alison Pargeter""" Find the total hours of all projects.,SELECT sum(hours) FROM projects What is the record on Sept 22?,"SELECT record FROM table_23624542_4 WHERE date = ""Sept 22""" Who directed the episode with production code 177605?,SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605 What tournament is in katowice?,"SELECT tournament FROM table_19765685_2 WHERE city = ""Katowice""" Show all the planned delivery dates and actual delivery dates of bookings.,"SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS" Who was the turbine manufacturer of the wind farm that started service on 2005?,"SELECT turbine_manufacturer FROM table_24837750_1 WHERE date_in_service = ""2005""" Name the goals for daniel sanchez,"SELECT goals¹ FROM table_24565004_20 WHERE name = ""Daniel Sanchez""" What is the highest total when bronze is less than 1 and gold more than 0?,SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0 what is the least bronze when gold is more than 0 for russia?,"SELECT MIN(bronze) FROM table_name_37 WHERE gold > 0 AND nation = ""russia""" Find the cities that have more than one employee under age 30.,SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1 "If the stadium name is the Thuwunna Stadium, what is the date?","SELECT date FROM table_25428629_1 WHERE stadium = ""Thuwunna stadium""" Find the number of classes in each department.,"SELECT count(*) , dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code" What was the word on episode number 673? ,SELECT the_wørd FROM table_25691838_2 WHERE episode__number = 673 Who was Judge Jack Edward Tanner's chief judge?,"SELECT Chief AS judge FROM table_name_37 WHERE judge = ""jack edward tanner""" "Which Bronze has a Total of 11, and a Silver smaller than 6?",SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6 What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars?,"SELECT location FROM table_name_46 WHERE date_of_demolition = 1940 AND church_name = ""christ church greyfriars""" What are the attributes that business number 56 have?,SELECT T1.attribute_name FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T2.attribute_value LIKE 'TRUE' AND T2.business_id = 56 What was the score of the game on November 9 when Atlanta was the visiting team?,"SELECT score FROM table_name_73 WHERE visitor = ""atlanta"" AND date = ""november 9""" Which model has the least amount of RAM? List the model name and the amount of RAM.,"SELECT Model_name , RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;" "Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?","SELECT set_2 FROM table_name_45 WHERE date = ""25 may"" AND set_3 = ""21–25""" Name the capacity for single cab size 2 medium tanker,"SELECT capacity__litres_ FROM table_2155350_2 WHERE cab_size = ""Single"" AND category = ""2 Medium tanker""" What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?,SELECT MIN(voter_turnout) FROM table_name_62 WHERE byut = 50.7 AND ou_psd < 36.8 "What are the average, maximum and total revenues of all companies?","SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers" Find the names of females who are friends with Zach,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female' which program owners have programs in the morning and the night,"SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Morning"" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = ""Night""" "What competition had its first match on December 20, 2007?","SELECT competition FROM table_name_15 WHERE first_match = ""december 20, 2007""" "Among the store contact employees, how many of them have a Vista credit card?",SELECT COUNT(T1.FirstName) FROM Person AS T1 INNER JOIN PersonCreditCard AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN CreditCard AS T3 ON T2.CreditCardID = T3.CreditCardID WHERE T3.CardType = 'Vista' AND T1.PersonType = 'SC' What was the minimum number for opponents?,SELECT MIN(opponents) FROM table_24560733_1 The product 'Mozzarella di Giovanni' belongs in which category? Include the category's description as well.,"SELECT T2.CategoryName, T2.Description FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.ProductName = 'Mozzarella di Giovanni'" Who had the lowest Best time that also had a Qual 2 of 49.887?,"SELECT MIN(best) FROM table_name_13 WHERE qual_2 = ""49.887""" How many current clubs have the player Aigars Vitols?,"SELECT COUNT(current_club) FROM table_23670057_7 WHERE player = ""Aigars Vitols""" Find the maximum and average capacity among rooms in each building.,"SELECT MAX(capacity), AVG(capacity), building FROM classroom GROUP BY building" "How many Touchdowns have Extra points larger than 0, and Points of 48?",SELECT COUNT(touchdowns) FROM table_name_84 WHERE extra_points > 0 AND points = 48 "WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?","SELECT project_management FROM table_name_9 WHERE blogs = ""no"" AND xml_forms_management_and_workflow = ""no"" AND enterprise_search = ""no"" AND social_software = ""no""" What is the episode title for number 7 in the season?,SELECT title FROM table_23981882_1 WHERE no_in_season = 7 What is the pixel aspect ratio and country of origin for all TV channels that do not use English?,"SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'" What is the best top-5 when top-10 is 1 and there are more than 0 wins?,SELECT MAX(top_5) FROM table_name_93 WHERE top_10 = 1 AND wins > 0 Who directed the film titled 'Steam of Life'?,"SELECT director FROM table_22020724_1 WHERE film_title_used_in_nomination = ""Steam of Life""" How many members were added at the nchc (men only) conference?,"SELECT members_added FROM table_27671835_3 WHERE conference = ""NCHC (men only)""" Show the product type and name for the products with price higher than 1000 or lower than 500.,"SELECT product_type_code , product_name FROM products WHERE product_price > 1000 OR product_price < 500" Please show different denominations and the corresponding number of schools.,"SELECT Denomination , COUNT(*) FROM school GROUP BY Denomination" What is the name of the department head of General Medicine?,SELECT T2.name FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID where T1.name = 'General Medicine' What name is on the Republican ticket when the American Labor ticket was spencer c. young?,"SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = ""spencer c. young""" "When 9 games (28,002 avg.) is the results of the games what is the date/year?","SELECT date_year FROM table_21436373_7 WHERE result_games = ""9 games (28,002 avg.)""" What is the name of the course with the most students enrolled?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1 How many trains arrive at 11:00?,"SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = ""11:00""" What are characteristic names used at least twice across all products?,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 GROUP BY t3.characteristic_name HAVING count(*) >= 2 What is the Callsign for the station with the branding 93dot5 home radio Cagayan De Oro?,"SELECT callsign FROM table_name_31 WHERE branding = ""93dot5 home radio cagayan de oro""" "What is the directed/undirected for mfinder, which has a network-centric basis?","SELECT directed___undirected FROM table_name_83 WHERE name = ""mfinder"" AND basis = ""network-centric""" What is the sexual abuse rate where the conflict is the Second Sudanese Civil War?,"SELECT MIN(sexual_abuse_1) FROM table_15652027_1 WHERE conflict = ""Second Sudanese Civil War""" What IHSAA Football Class has 20 elkhart as the county?,"SELECT ihsaa_football_class FROM table_name_39 WHERE county = ""20 elkhart""" Count the number of customers recorded.,SELECT count(*) FROM CUSTOMERS How many fault status codes are recorded in the fault log parts table?,SELECT DISTINCT fault_status FROM Fault_Log_Parts Name the place with building of victoria hall,"SELECT place FROM table_name_93 WHERE building = ""victoria hall""" Who is the winner and score of the tournament with semifinalists goran prpić sergi bruguera?,"SELECT winner_and_score FROM table_name_43 WHERE semifinalists = ""goran prpić sergi bruguera""" Who was the celebrity who finished in 7th place?,"SELECT celebrity FROM table_name_91 WHERE finished = ""7th""" Sort the list of all the first and last names of authors in alphabetical order of the last names.,"SELECT fname , lname FROM authors ORDER BY lname" Show the official names of the cities that have hosted more than one competition.,SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1 What is the name of Aleko Berdzenishvili's song?,"SELECT song FROM table_name_18 WHERE artist = ""aleko berdzenishvili""" What opponents have a record of 90-70?,"SELECT opponent FROM table_name_34 WHERE record = ""90-70""" How many journalists have worked for more than 5 years?,SELECT COUNT ( * ) FROM journalist WHERE years_working > 5 How much is the most expensive wine produced in Sonoma County?,"SELECT max ( T2.Price ) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = ""Sonoma""" Which country is Mountain Cerro Chirripo located in? Give the full name of the country.,SELECT DISTINCT T1.Name FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T2.Mountain = 'Cerro Chirripo' "How many trips made by a subscriber started in August, 2013 from a station that can hold more than 20 bikes?",SELECT COUNT(T2.id) FROM station AS T1 INNER JOIN trip AS T2 ON T1.id = T2.start_station_id WHERE T2.subscription_type = 'Subscriber' AND T2.start_date LIKE '8/%/2013%' AND T1.dock_count > 20 Find the organisation type description of the organisation detailed as 'quo'.,SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo' How much is the total urban population of middle income countries in 1960?,SELECT SUM(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup LIKE '%middle income' AND T2.Year = 1960 AND T2.IndicatorName = 'Urban population' What is the name of the organization which most of the students are enlisted in?,"SELECT organ FROM ( SELECT organ, COUNT(organ) AS num FROM enlist GROUP BY organ ) T ORDER BY T.num DESC LIMIT 1" Calculate the total points scored by team ID ANA and list down the coashes of the team.,"SELECT SUM(T2.Pts), T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T2.tmID = T1.tmID WHERE T2.tmID = 'ANA' GROUP BY T1.coachID" What is the famous release date of the artist with the oldest age?,SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1 "What was the original airdate of the episode ""The Cold Turkey"", which was viewed by 3.73 million viewers?","SELECT original_airdate FROM table_17467578_1 WHERE us_viewers__million_ = ""3.73""" What are the different names for all songs that have a higher resolution than English songs?,"SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = ""english"")" What were Will Rackley's total rounds?,"SELECT COUNT(round) FROM table_name_89 WHERE name = ""will rackley""" "Which title has content including mysticism, spiritualism, and a translation of the minaret of light?","SELECT title FROM table_name_86 WHERE content = ""mysticism, spiritualism"" AND translation = ""the minaret of light""" "Tell me the result for lincoln financial field december 11, 2005","SELECT result FROM table_name_90 WHERE venue = ""lincoln financial field"" AND date = ""december 11, 2005""" Which category does the app id No.894384172610331000 belong to?,SELECT T1.category FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T2.app_id = '894384172610331000' Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?,"SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" What is the state rank of the company with 6.8 billion in revenue?,"SELECT state_rank_by_revenue FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = ""6.8""" How many followers does each user have?,SELECT COUNT(*) FROM follows List all movie id associated with Brittany Harris and their rating date.,"SELECT T1.mID, T1.ratingDate FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" Give the maximum price and score for wines produced in the appelation St. Helena.,"SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = ""St. Helena""" What is the full name of the team that the 'NBA Coach of the Year' 1992 winner coached?,SELECT name FROM teams AS T1 INNER JOIN coaches AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN awards_coaches AS T3 ON T2.coachID = T3.coachID AND T2.year = T3.year WHERE T3.year = 1992 AND award = 'NBA Coach of the Year' What ends has transferred as the type?,"SELECT ends FROM table_name_92 WHERE type = ""transferred""" Which team hosted the Kansas City Chiefs?,"SELECT host_team FROM table_name_53 WHERE visiting_team = ""kansas city chiefs""" What is the Class AAAAA when the Class AAA is Gonzales?,SELECT class_aAAA FROM table_name_28 WHERE class_aAA = gonzales What was the TO par for the player who scored 68-71=139?,SELECT to_par FROM table_name_73 WHERE score = 68 - 71 = 139 How many rooms does each block floor have?,"SELECT count(*) , T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor" "What is the host year of city ""Taizhou ( Zhejiang )""?","SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = ""Taizhou ( Zhejiang )""" Who wrote episode #1 in season 7?,SELECT COUNT(writer) FROM table_10470082_8 WHERE _number = 1 What is the Court Rank of Son of Norihiro's Lineage?,"SELECT court_rank FROM table_name_6 WHERE lineage = ""son of norihiro""" What is the date and id of the transcript with at least 2 courses listed?,"SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2" What is the title name for the highest recorded single track ?,select name from track order by milliseconds desc limit 1 What is the average number of actors acted in comedy movies?,SELECT AVG(T1.actor_id) FROM film_actor AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id INNER JOIN actor AS T4 ON T4.actor_id = T1.actor_id WHERE T3.name = 'comedy' State the customer details of customer id 263?,SELECT customer_details from customers where customer_id = 263 "What is every number for the hometown of Canton, Illinois?","SELECT no FROM table_22824297_1 WHERE hometown = ""Canton, Illinois""" "Where was d: ~100nm, l: 1 μm geometry researched?","SELECT researched_at FROM table_30057479_1 WHERE geometry = ""D: ~100nm, L: 1 μm""" "What is Pro Year(s), when Team is Cincinnati Royals?","SELECT pro_year_s_ FROM table_name_79 WHERE team = ""cincinnati royals""" What are the names of those stations?,"SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg ( bikes_available ) > 10 EXCEPT SELECT name FROM station WHERE city = ""San Jose""" What is the highest ERP W with a w216bo call sign?,"SELECT MAX(erp_w) FROM table_name_10 WHERE call_sign = ""w216bo""" What are the names of the sections in reverse alphabetical order?,SELECT section_name FROM Sections ORDER BY section_name DESC "What is the average number of against with less than 10 losses, more than 0 draws, and more than 7 wins?",SELECT AVG(against) FROM table_name_74 WHERE losses < 10 AND draws > 0 AND wins > 7 How many polling areas are there with John Taber as the sitting Representative?,"SELECT COUNT(district) FROM table_1342256_32 WHERE incumbent = ""John Taber""" "please list the years of film market estimations when the market is in country ""Japan"" in descending order.","SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = ""Japan"" ORDER BY T1.Year DESC" "ExxonMobil is located in Punto Chapultepec, correct?","SELECT * FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id where T3.name = ""ExxonMobil"" and T2.name = ""Punto Chapultepec""" How many models does the VIVO phone brand released?,SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE phone_brand = 'vivo' What dorm id have the amenity id 922?,SELECT T2.dormid FROM has_amenity AS T2 where T2.amenid = 922 What's the London borough with 7797 Pakistani citizens?,SELECT london_borough FROM table_19149550_9 WHERE pakistani_population = 7797 What was the percentage of Slovenes in 1951 in the village that had 10.1% in 1991?,"SELECT percent_of_slovenes_1951 FROM table_name_22 WHERE percent_of_slovenes_1991 = ""10.1%""" In which cities beginning with the letter M have the Olympic Games been held?,SELECT city_name FROM city WHERE city_name LIKE 'M%' Show all countries and the number of people from each country.,"SELECT country , count(*) FROM people GROUP BY country" Find the number of students for the cities where have more than one student.,"SELECT count(*) , city_code FROM student GROUP BY city_code HAVING count(*) > 1" "Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?","SELECT manufacturer FROM table_name_47 WHERE grid < 9 AND time = ""+22.517""" "What is Left Office, when Party is Vacant (1999-2001)?","SELECT left_office FROM table_name_83 WHERE party = ""vacant (1999-2001)""" Tell me the name with decile of 6 and roll of 93,"SELECT name FROM table_name_63 WHERE decile = ""6"" AND roll = 93" "From which institute is harder to graduate for a bachelor, Amridge University or Auburn University?","SELECT chronname FROM institution_details WHERE chronname IN ('Amridge University', 'Auburn University') ORDER BY grad_100_value LIMIT 1" How many distinct countries are the climbers from?,SELECT COUNT(DISTINCT Country) FROM climber Find the number and time of the train that goes from Chennai to Guruvayur.,"SELECT train_number , TIME FROM train WHERE origin = 'Chennai' AND destination = 'Guruvayur'" What are the races that johnny rutherford has won?,"SELECT name FROM table_10706879_3 WHERE winning_driver = ""Johnny Rutherford""" What is the total salary paid by team Boston Red Stockings in 2010?,SELECT SUM(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010 Tell me the name of the instructor who getting high salary...And tell his department name too... | How do you define a high salary? | Higher than 80000.....,SELECT name FROM instructor WHERE salary > 80000 How many students live in each city?,"SELECT city_code , count(*) FROM Student GROUP BY city_code" "If 1967 is the winning year and a player has a total recorded as wd with a To par under 16, what's the players name?","SELECT player FROM table_name_43 WHERE total = ""wd"" AND to_par < 16 AND year_s__won = ""1967""" What was the 15th club in 2012?,"SELECT club FROM table_name_46 WHERE year = 2012 AND order = ""15th""" find all dependent names who have a spouse relation with some employee.,SELECT Dependent_name FROM dependent WHERE relationship = 'Spouse' Which Nation has a Second of tomas pitonak?,"SELECT nation FROM table_name_72 WHERE second = ""tomas pitonak""" How many footnotes have been made in year 1980 and what are the table names of these countries that made the footnotes?,SELECT COUNT(T2.Description) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Year = 'YR1980' UNION ALL SELECT DISTINCT T1.TableName FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Year = 'YR1980' What is the year of the Lotus 18 chassis?,"SELECT COUNT(year) FROM table_name_97 WHERE chassis = ""lotus 18""" How many draws when there are fewer than 6 wins and the goal difference is less than -15?,SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15 Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.,"SELECT gender_code , COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC" What Valley Vista has a Dysart of 1668?,"SELECT valley_vista FROM table_name_39 WHERE dysart = ""1668""" How many times did the team Werder Bremen win as the away team in matches of the Bundesliga division?,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.AwayTeam = 'Werder Bremen' AND T1.FTR = 'A' What is the maximum points against when team's points are 10?,SELECT MAX(points) AS against FROM table_16770037_3 WHERE pts = 10 "Among the users who are above 20, how many users use device model of ELIFE E7 Mini?",SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.device_model = 'ELIFE E7 Mini' AND T1.age > 20 "What is the average Gold, when Nation is Hungary, and when Bronze is greater than 1?","SELECT AVG(gold) FROM table_name_2 WHERE nation = ""hungary"" AND bronze > 1" "Who attended the school in 2009, that Lakita Hall attended in 2007?","SELECT 2009 FROM table_name_60 WHERE 2007 = ""lakita hall""" "What are the most common types of interactions between enzymes and medicine, and how many types are there?","SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1" List all results from the 3-3 scoring game.,"SELECT result FROM table_24561550_1 WHERE record = ""3-3""" Who is the friend of Zach with longest year relationship?,SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach') Who was Class AA in School Year 1994-95?,"SELECT class_aA FROM table_name_26 WHERE school_year = ""1994-95""" "List the number of invoices from the US, grouped by state.","SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state;" which ships were lost?,"SELECT * FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Fate Like ""%Lost%""" Indicate the page id of Wikipedia about Catalan language of all the pages that have a numeric value in their title.,"SELECT pid, title FROM pages WHERE title LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%'" "Among the customers who have rented the film ACADEMY DINOSAUR, how many of them are active?",SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T1.active = 1 AND T4.title = 'ACADEMY DINOSAUR' List the first names of all the students in room 107.,SELECT DISTINCT firstname FROM list WHERE classroom = 107 What are all the policy types of the customer that has the most policies listed?,SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) What is the judge's total for Roxanne and Daniel?,"SELECT judges FROM table_19744915_16 WHERE couple = ""Roxanne and Daniel""" How many persons in total have participated in 12 meter Mixed Sailing competitions?,SELECT COUNT(T1.competitor_id) FROM competitor_event AS T1 INNER JOIN event AS T2 ON T1.event_id = T2.id INNER JOIN sport AS T3 ON T2.sport_id = T3.id WHERE T2.event_name = 'Sailing Mixed 12 metres' Who is the winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors?,"SELECT winner FROM table_name_32 WHERE third_place = ""mikael pernfors"" AND tournament = ""hong kong""" What player from the United States played for the Grizzlies from 1997-1998?,"SELECT player FROM table_name_83 WHERE nationality = ""united states"" AND years_for_grizzlies = ""1997-1998""" find the number of different programs that are broadcast during night time.,SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night' "Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience?","SELECT nationality FROM table_name_30 WHERE previous_team = ""new york knicks"" AND years_of_nba_experience_[a_] > 3" what is the highest rank for east germany with points of 128.98 and places less than 70?,"SELECT MAX(rank) FROM table_name_40 WHERE nation = ""east germany"" AND points = 128.98 AND places < 70" What was the score on April 18?,"SELECT score FROM table_name_49 WHERE date = ""april 18""" What percentage of journals whose short name begins with ANN were published in the paper database in 1989?,SELECT CAST((SUM(CASE WHEN T1.ShortName LIKE 'ANN%' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.ShortName) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 1989 Which players are from Indonesia?,"SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = ""Indonesia""" Name the league for strikeouts being 451,SELECT league FROM table_242813_2 WHERE strikeouts = 451 What is the course code for the class named Statistics? | Do you mean the course code for the course whose description is Statistics? | yes.,SELECT CRS_CODE from course where CRS_DESCRIPTION = 'Statistics' Which Date has a Record of 1-4?,"SELECT date FROM table_name_34 WHERE record = ""1-4""" "What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?","SELECT points_classification FROM table_name_19 WHERE intergiro_classification = ""sven krauß"" AND mountains_classification = ""koldo gil"" AND trofeo_super_team = ""liquigas-bianchi"" AND stage = ""9""" What programs are there for the South Fork Dirt Riders track?,"SELECT program FROM table_name_44 WHERE track_name = ""south fork dirt riders""" When was the incumbent first elected in the district where the result was a democratic-republican gain? ,"SELECT first_elected FROM table_2668401_17 WHERE result = ""Democratic-Republican gain""" Show the order ids and the number of items in each order.,"SELECT order_id , count(*) FROM Order_items GROUP BY order_id" Which first match had a final position/round in the third qualifying round?,"SELECT first_match FROM table_name_72 WHERE final_position___round = ""third qualifying round""" Who was the lyricist for composer Haewon Park?,"SELECT lyricist_s_ FROM table_name_36 WHERE composer_s_ = ""haewon park""" What is the Record of the game with a Score of 107–108?,"SELECT record FROM table_name_85 WHERE score = ""107–108""" How many submissions are there?,SELECT count(*) FROM submission What date was the loss of ponson (4–3)?,"SELECT date FROM table_name_68 WHERE loss = ""ponson (4–3)""" "What is Pos., when Height is ""m (ft 10in)"", and when Date of Birth is ""1983-05-29""?","SELECT pos FROM table_name_45 WHERE height = ""m (ft 10in)"" AND date_of_birth = ""1983-05-29""" Who is the owner of the Raglan Road winner?,"SELECT owner FROM table_name_43 WHERE winner = ""raglan road""" "What are the customer name and date of the orders whose status is ""Delivered"".","SELECT t1.customer_name , t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = ""Delivered""" I want the circuit for jim clark,"SELECT circuit FROM table_name_25 WHERE fastest_lap = ""jim clark""" Who did Teo Fabi drive for when he won and had pole position?,"SELECT winning_team FROM table_name_74 WHERE winning_driver = ""teo fabi"" AND pole_position = ""teo fabi""" "Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?","SELECT place FROM table_name_22 WHERE country = ""australia"" AND player = ""ian baker-finch""" How many days did the sun rise before 5 AM?,SELECT COUNT(DISTINCT `date`) AS days FROM weather WHERE sunrise < time('05:00:00') Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51,"SELECT MIN(average) FROM table_name_38 WHERE wickets > 265 AND career = ""1888/89-1913/14"" AND matches > 51" "What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?","SELECT COUNT(total) FROM table_name_68 WHERE gold < 1 AND silver > 0 AND rank = ""14"" AND nation = ""afghanistan""" Show the account id with most number of transactions.,SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1 List down the product id for products with the highest quantity.,SELECT DISTINCT ProductID FROM Sales WHERE Quantity = ( SELECT MAX(Quantity) FROM Sales ) can you show me a list of degrees?,SELECT * FROM degrees List the full name of players who are drafted from round 1 in 1973 but not born in USA.,"SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN draft AS T2 ON T1.playerID = T2.playerID WHERE T2.draftRound = 1 AND T1.birthCountry != 'USA' AND T2.draftYear = 1973" Who is GTU Winning Team's #27 Don Lindley's TO Winning Team?,"SELECT to_winning_team FROM table_13657749_2 WHERE gtu_winning_team = ""#27 Don Lindley""" How many vacancies happened on 25 May?,"SELECT COUNT(manner_of_departure) FROM table_17327458_1 WHERE date_of_vacancy = ""25 May""" Which locomotive class had 5 items made?,SELECT class FROM table_name_26 WHERE quantity_made = 5 "Which Format has a Date of 1993, and a Catalog of cleo 2481-2?","SELECT format FROM table_name_81 WHERE date = 1993 AND catalog = ""cleo 2481-2""" How many runs did mahela jayawardene and thilan samaraweera have?,"SELECT SUM(runs) FROM table_name_82 WHERE batting_partners = ""mahela jayawardene and thilan samaraweera""" What is the title of the paper with the most authors?,SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id GROUP BY T1.PaperId ORDER BY COUNT(T1.PaperId) DESC LIMIT 1 how many people were killed in Japan?,SELECT sum ( Killed ) FROM perpetrator where country = 'Japan' "What is Incumbent, when Results is ""Re-Elected"", when Party is ""Democratic"", and when District is ""Minnesota 7""?","SELECT incumbent FROM table_name_75 WHERE results = ""re-elected"" AND party = ""democratic"" AND district = ""minnesota 7""" List all document type codes and document type names.,"SELECT document_type_code , document_type_name FROM Ref_document_types" "What city has riverside ground as the venue, with a year prior to 1998?","SELECT city FROM table_name_16 WHERE venue = ""riverside ground"" AND year < 1998" What is the Area of the Parish with a Population of 71?,SELECT area_km_2 FROM table_name_71 WHERE population = 71 Who is the builder with a works number of 2534?,"SELECT builder FROM table_name_16 WHERE works_number = ""2534""" Return all reviewer names and movie names together in a single list.,SELECT name FROM Reviewer UNION SELECT title FROM Movie What are the total and average enrollment of all schools?,"SELECT sum(enrollment) , avg(enrollment) FROM school" What team did the Heat play against at the TD Waterhouse Centre?,"SELECT team FROM table_name_55 WHERE location_attendance = ""td waterhouse centre""" How much is the total amount of sales handled by Heather McBadden?,SELECT SUM(T2.Quantity * T3.Price) FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Heather' AND T1.LastName = 'McBadden' What is the game number with a score of 116–138?,"SELECT COUNT(game) FROM table_name_31 WHERE score = ""116–138""" What is the result in the final versos Jennifer Capriati?,"SELECT outcome FROM table_19047_2 WHERE opponent_in_the_final = ""Jennifer Capriati""" Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?,"SELECT 20 AS _questions FROM table_name_46 WHERE centerfold_model = ""rachel jeán marteen""" What city in Russia has the least population?,SELECT T2.Name FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Russian Federation' ORDER BY T2.Population ASC LIMIT 1 How many teams came in fourth when Otsuka Pharmaceuticals won?,"SELECT COUNT(fourth_place) FROM table_29446183_2 WHERE winner = ""Otsuka Pharmaceuticals""" What about Firefox's Market share,"SELECT market_share FROM browser where name = ""Firefox""" What is the number of the sail with an overall length of 13.68?,"SELECT sail_number FROM table_25595107_2 WHERE loa__metres_ = ""13.68""" How many trips started from Mountain View city and ended at Palo Alto city?,"SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = ""Mountain View"" AND T3.city = ""Palo Alto""" what is the least laps when the driver is rolf stommelen and the grid is more than 18?,"SELECT MIN(laps) FROM table_name_99 WHERE driver = ""rolf stommelen"" AND grid > 18" What are the date and the operating professional's first name of each treatment?,"SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id" Who boarded first class?,"SELECT boarded FROM table_name_48 WHERE class = ""first""" How many engineer visits are required at most for a single fault log? List the number and the log entry id.,"SELECT count(*) , T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1" What are the planned delivery date and actual delivery date for each booking?,"SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS" "What is the Original Title, when Director is ""Ting Shan-Si"", and when Film Title Used In Nomination is ""The 800 Heroes""?","SELECT original_title FROM table_name_73 WHERE director = ""ting shan-si"" AND film_title_used_in_nomination = ""the 800 heroes""" Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 Give the average life expectancy for countries in Africa which are republics?,"SELECT avg(LifeExpectancy) FROM country WHERE Continent = ""Africa"" AND GovernmentForm = ""Republic""" What is the lowest amount of goals scored that has more than 19 goal conceded and played less than 18?,SELECT MIN(goals_scored) FROM table_name_50 WHERE goals_conceded > 19 AND played < 18 Calculate the percentage of products supplied by Gai pturage over all products.,SELECT CAST(COUNT(CASE WHEN T2.CompanyName = 'Gai pturage' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.SupplierID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)?,"SELECT COUNT(attendance) FROM table_name_54 WHERE score = ""7-3"" AND loss = ""worrell (0-1)""" "What is the name of the school with a decile of 1, a state authority, and located in Otahuhu?","SELECT name FROM table_name_41 WHERE decile = ""1"" AND authority = ""state"" AND area = ""otahuhu""" Which Raison Blue has the highest nicotine?,"SELECT MAX(nicotine) FROM table_name_40 WHERE name = ""raison blue""" What is the name of the establishment with the lowest inspection score of all time?,SELECT T2.name FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.score = ( SELECT MIN(score) FROM inspections ) What's the pick number of the player from New Mexico?,"SELECT MAX(pick__number) FROM table_10812938_5 WHERE college = ""New Mexico""" Write down five rumoured movie titles within the genre of Drama.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.movie_status = 'Rumored' AND T3.genre_name = 'Drama' LIMIT 5 Which type had an unknown manufacturer?,"SELECT type FROM table_name_57 WHERE manufacturer = ""unknown""" Show the names of companies in the banking or retailing industry?,"SELECT Name FROM company WHERE Industry = ""Banking"" OR Industry = ""Retailing""" List at least 5 device models that are commonly used by female users.,"SELECT T.device_model FROM ( SELECT T2.device_model, COUNT(T2.device_model) AS num FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' GROUP BY T2.device_model ) AS T ORDER BY T.num DESC LIMIT 5" Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck,"SELECT presentation_of_credentials FROM table_name_45 WHERE appointed_by = ""grover cleveland"" AND representative = ""charles w. buck""" "What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?","SELECT date FROM table_name_26 WHERE competition = ""2014 fifa world cup qualification"" AND score = ""1–0""" What was the type of boat built in Port Blakeley,"SELECT type FROM table_name_31 WHERE where_built = ""port blakeley""" Give the street number of a bar in Oakland with a 2.7 review.,SELECT T2.street_num FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.review = 2.7 AND T2.city = 'oakland' AND T1.food_type = 'bar' "For each aircraft that has won an award, what is its name and how many time has it won?","SELECT T1.Aircraft , COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft" Which of those statuses is used most commonly?,SELECT status_code FROM BOOKINGS group by status_code order by count ( * ) desc limit 1 What is the payment method that were used the least often?,SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1 Tell me the total number of attendance for result of l 18-6,"SELECT COUNT(attendance) FROM table_name_3 WHERE result = ""l 18-6""" What is the 1st prize of the tournament in Scotland?,"SELECT 1 AS st_prize___$__ FROM table_name_95 WHERE location = ""scotland""" What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?,SELECT SUM(gold) FROM table_name_18 WHERE total = 5 AND bronze < 0 What are the details of the student who registered the most number of courses?,SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1 return all columns of the albums created in the year of 2012.,SELECT * FROM Albums WHERE YEAR = 2012 What is the total number of years that has a chassis of Ferrari 625 and 2 points?,"SELECT COUNT(year) FROM table_name_24 WHERE chassis = ""ferrari 625"" AND points = ""2""" List the software platform shared by the greatest number of devices.,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1 "What actor has onderweg naar morgen, as the soap opera, with aafke couwenberg as the character?","SELECT actor FROM table_name_47 WHERE soap_opera = ""onderweg naar morgen"" AND character = ""aafke couwenberg""" "What is Record, when Game is ""36""?",SELECT record FROM table_name_24 WHERE game = 36 What kind of engine is in the car for Scuderia Ferrari that went all rounds?,"SELECT engine FROM table_name_28 WHERE rounds = ""all"" AND entrant = ""scuderia ferrari""" What are the maximum and minimum values of area codes?,"SELECT max(area_code) , min(area_code) FROM area_code_state" "What are the average prices of products, grouped by manufacturer code?","SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer" What building is the Spring 2010 course located?,SELECT building FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 "When vp8 ( webm ) is 6.0, how much is the vp9 ( webm )?","SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = ""6.0""" Who was the Cover model on 11-03?,"SELECT cover_model FROM table_name_96 WHERE date = ""11-03""" When and in what zip code did max temperature reach 80?,"SELECT date, zip_code FROM weather WHERE max_temperature_f >= 80" Who did the team play on january 9?,"SELECT team FROM table_27733258_8 WHERE date = ""January 9""" what are the elimination time of wrestlers,SELECT Time FROM elimination Which department has the highest average salary of professors?,SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg ( salary ) DESC LIMIT 1 Give the number of Ukrainian addresses in the database.,SELECT COUNT(*) FROM country AS T1 INNER JOIN address AS T2 ON T1.country_id = T2.country_id WHERE T1.country_name = 'Ukraine' Show all payment method codes and the number of orders for each code.,"SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code" What are the first names and office of the professors who are in the history department and have a Ph.D?,"SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'" What was the date of the game against the New York Jets?,"SELECT date FROM table_name_7 WHERE opponent = ""new york jets""" What is the qual for rank 18 in 1964?,"SELECT qual FROM table_name_44 WHERE rank = ""18"" AND year = ""1964""" What was the Version prior to 1996?,SELECT version FROM table_name_45 WHERE year < 1996 What is Alexandr Elke's Weight?,"SELECT weight FROM table_name_59 WHERE name = ""alexandr elke""" Which of these has the largest number of intentional passengers?,SELECT airport_name FROM airport order by international_passengers desc limit 1 Find the last names of teachers who are not involved in any detention.,SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?,"SELECT AVG(field_goals) FROM table_name_80 WHERE position = ""right halfback"" AND touchdowns > 3" Who is the player for St. Mary's team?,"SELECT player FROM table_name_48 WHERE school_club_team_country = ""st. mary's""" What was the margin in 2001 at the McDonald's LPGA Championship?,"SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = ""mcdonald's lpga championship""" What is the 2 June time for the rider with time of 17' 48.58 127.111mph on 3 June?,"SELECT wed_2_june FROM table_25220821_4 WHERE thurs_3_june = ""17' 48.58 127.111mph""" What was the highest vote number for Bush?,SELECT MAX(bush_number) FROM table_1756284_1 What is the number of season premieres were 10.17 people watched?,"SELECT COUNT(season) AS premiere FROM table_10120207_8 WHERE viewers__millions_ = ""10.17""" Which community area has the highest number of crimes reported on the street?,SELECT T1.community_area_no FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T2.location_description = 'STREET' GROUP BY T1.community_area_no ORDER BY COUNT(T2.location_description) DESC LIMIT 1 How many distinct payment methods are used by parties?,SELECT count(DISTINCT payment_method_code) FROM parties how many departments are there,SELECT count ( distinct department_id ) from Staff_Department_Assignments Which is a high quality product but with the lowest transacted quantity?,SELECT T1.Name FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Class = 'H' ORDER BY T2.Quantity ASC LIMIT 1 which Place has a Player of mark brooks?,"SELECT place FROM table_name_30 WHERE player = ""mark brooks""" find the took office and region id for the event id 1,"SELECT T2.Took_office,T2.Region_ID FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id where T1.party_id = 1" List the names of phones that are not on any market.,SELECT Name FROM phone WHERE Phone_id NOT IN (SELECT Phone_ID FROM phone_market) "Which Pos has a Team of roush fenway racing, and a Car # of 99?","SELECT SUM(pos) FROM table_name_32 WHERE team = ""roush fenway racing"" AND car__number = 99" "On december 16, 1985, all the records were what?","SELECT record FROM table_10647639_1 WHERE date = ""December 16, 1985""" in what city is Nou Mestalla,"SELECT city FROM stadium where name = ""Nou Mestalla""" What is the date for home team Collingwood?,"SELECT date FROM table_name_19 WHERE home_team = ""collingwood""" Find the number of pets whose weight is heavier than 10.,SELECT count(*) FROM pets WHERE weight > 10 How many login names are in both authors and students?,SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students What's the service number of the Jammu Duronto train? ,"SELECT MAX(service) FROM table_23477312_1 WHERE train_name = ""Jammu Duronto""" "College of san diego state, and a Pick # smaller than 30 is what lowest overall?","SELECT MIN(overall) FROM table_name_32 WHERE college = ""san diego state"" AND pick__number < 30" List the names of all the physicians who prescribe Thesisin as medication.,"SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = ""Thesisin""" "Among the coaches whose team has over 30 wins in a year, how many of them are born in the USA?",SELECT COUNT(T2.coachID) FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.W > 30 AND T1.birthCountry = 'USA' "For each faculty rank, show the number of faculty members who have it.","SELECT rank , count(*) FROM Faculty GROUP BY rank" List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.,"SELECT T2.Hardware_Model_name, T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32" Find the average credit score of the customers who do not have any loan.,SELECT avg(credit_score) FROM customer WHERE cust_id NOT IN (SELECT cust_id FROM loan) What are all locations of train stations?,SELECT DISTINCT LOCATION FROM station "Perfect, and can you do the same with 'King Book'?","SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'King Book'" What date did the executive office in Dover take office?,"SELECT Took AS office FROM table_name_76 WHERE location = ""dover"" AND type = ""executive""" How many times is the number of films Gina DeGeneres acted in than Penelope Guinness?,"SELECT CAST(SUM(IIF(T2.first_name = 'GINA' AND T2.last_name = 'DEGENERES', 1, 0)) AS REAL) * 100 / SUM(IIF(T2.first_name = 'PENELOPE' AND T2.last_name = 'GUINESS', 1, 0)) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id" "Show the location code of the country ""Canada"".","SELECT location_code FROM Ref_locations WHERE location_name = ""Canada""" Return the different names of cities that are in Asia and for which Chinese is the official language.,"SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = ""Asia""" Which ERP W is the lowest one that has a Frequency MHz of 91.3?,SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.3 Name the foochow for pingnan county,"SELECT foochow FROM table_2013618_1 WHERE english_name = ""Pingnan County""" What was the time of the race for Driver Jarno Trulli on a grid smaller than 13?,"SELECT time_retired FROM table_name_59 WHERE grid < 13 AND driver = ""jarno trulli""" What is the pick number of Penn State?,"SELECT pick FROM table_name_2 WHERE school = ""penn state""" Show the hometowns shared by people older than 23 and younger than 20.,SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20 Show the minister who took office after 1961 or before 1959.,SELECT minister FROM party WHERE took_office > 1961 OR took_office < 1959 SHOW ME THE hire date OF THE EMPLOYEE WHO HAS THE FIRST NAME AS JAMES,"SELECT EMP_HIREDATE FROM EMPLOYEE WHERE EMP_FNAME = ""James""" How many colors are there?,SELECT COUNT(*) FROM ref_colors What is the minimum D (max) when the Morse Taper number is less than 0?,SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0 What is population in the world when 788 (8.1%)?,"SELECT MIN(world) FROM table_19017269_5 WHERE latin_america_caribbean = ""788 (8.1%)""" how many schools are there?,SELECT count ( * ) from university What % has 4 RLng?,"SELECT int_percentage FROM table_name_80 WHERE rlng = ""4""" When did Episode 29 (7) originally air?,"SELECT original_airdate FROM table_name_65 WHERE episode__number = ""29 (7)""" What is the last 1/4 for the QUA race with a finishing time of 2:03.1?,"SELECT last_1_4 FROM table_name_22 WHERE race = ""qua"" AND fin_time = ""2:03.1""" "Which form of government has more countries that have completed the actual external debt reporting between the two types of government accounting concepts, budgetary central government vs. consolidated central government?","SELECT SUM(CASE WHEN GovernmentAccountingConcept = 'Budgetary central government' THEN 1 ELSE 0 END), SUM(CASE WHEN GovernmentAccountingConcept = 'Consolidated central government' THEN 1 ELSE 0 END) central_nums FROM country WHERE ExternalDebtReportingStatus = 'Actual'" What are the headquarters that have both a company in the banking and 'oil and gas' industries?,SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' Name the number of barangay for 205.4 density,"SELECT no_of_s_barangay FROM table_269888_1 WHERE pop_density__per_km²_ = ""205.4""" What manuals have the opus of 135?,"SELECT manuals FROM table_name_31 WHERE opus = ""135""" Return the name of the youngest captain.,SELECT name FROM captain ORDER BY age LIMIT 1 Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.,"SELECT T1.Aircraft , T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000" What is the Flagship of the Show Hosted by Rover (Shane French)?,"SELECT flagship FROM table_name_33 WHERE host_s_ = ""rover (shane french)""" what is the highest round when the player is troy creurer (d)?,"SELECT MAX(round) FROM table_name_90 WHERE player = ""troy creurer (d)""" How many entries have a speed of exactly 2.53 GHz?,"SELECT COUNT(cores) FROM table_269920_16 WHERE speed__ghz_ = ""2.53""" Ok.How many male employees have a salary lower than 50000?,"SELECT count ( * ) FROM employee WHERE salary < 50000 and Sex = ""M""" When 7 april 2001 to 29 september 2001 was aired in japan 2 how many titles were there?,"SELECT COUNT(title) FROM table_1714685_1 WHERE aired_in_japan_3 = ""7 April 2001 to 29 September 2001""" "Show the average amount of transactions with type code ""SALE"".","SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = ""SALE""" Who read the unabridged book written by Gary Paulsen?,"SELECT read_by FROM table_name_9 WHERE un__abridged = ""unabridged"" AND author = ""gary paulsen""" State the number of students do not have payment due.,SELECT COUNT(name) FROM no_payment_due WHERE bool = 'neg' What county has the highest population?,SELECT county_name FROM county order by population desc limit 1 Which unit has a Pennant Number of 82?,SELECT unit FROM table_name_27 WHERE pennant_number = 82 Okay that's fine. Do you know the stadium ID for games without injuries?,SELECT stadium_id FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident ) What is the name of the department that has the largest number of students enrolled?,SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY count ( * ) DESC LIMIT 1 What is the name of the young rider classification when Paolo Tiralongo won?,"SELECT young_rider_classification FROM table_28538368_2 WHERE winner = ""Paolo Tiralongo""" How many different phones are there?,select count ( distinct name ) from phone what is the school that left in 1966?,SELECT school FROM table_name_18 WHERE year_left = 1966 "Which country does Airline ""JetBlue Airways"" belong to?","SELECT Country FROM AIRLINES WHERE Airline = ""JetBlue Airways""" List the full names of the employees who were responsible for inspecting Taqueria La Paz.,"SELECT DISTINCT T3.first_name, T3.last_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T1.dba_name = 'TAQUERIA LA PAZ'" What was week 12's record?,"SELECT record FROM table_name_57 WHERE week = ""12""" How many of those 9 assets have 2 parts?,"select count ( * ) from ( SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) = 2 INTERSECT SELECT T1.asset_id , T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING count ( * ) > = 1 ) " how many names in the event table,SELECT count ( Name ) from event "Among the businesses with average rating, how many business has attribute of full_bar.",SELECT COUNT(T1.business_id) FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.attribute_value = 'full_bar' What are the customer ids for customers who do not have an account?,SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts "What is the lowest poles of team comtec racing, which has a nc position?","SELECT MIN(poles) FROM table_name_84 WHERE position = ""nc"" AND team = ""comtec racing""" Which college has a position of goaltender?,"SELECT college_junior_club_team__league_ FROM table_name_92 WHERE position = ""goaltender""" What was the time for the man who scored 1 point?,SELECT time FROM table_name_89 WHERE points = 1 "On what date was the game with fewer than 6650 in attendance, that finished 0:1?","SELECT date FROM table_name_30 WHERE attendance < 6650 AND score = ""0:1""" What year was S.A. Allward's theme that had an issue price of $16.95 released?,"SELECT year FROM table_name_60 WHERE issue_price = ""$16.95"" AND artist = ""s.a. allward""" Which nation won the boxing championship in 2012?,SELECT nation_represented FROM table_name_1 WHERE year = 2012 "In the match as corio oval, who was the away team?","SELECT away_team FROM table_name_29 WHERE venue = ""corio oval""" How many enrollment of school id 2?,"SELECT enrollment FROM school where School_id = ""2""" in which aircraft does John Williams have a certificate,"SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = ""John Williams""" What about for students who live in HKG?,"SELECT min ( T2.gradepoint ) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""HKG""" "Among the biwords pairs with ""àbac"" as its first word, how many of them have an occurrence of over 10?",SELECT COUNT(T2.w2nd) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T1.word = 'àbac' AND T2.occurrences > 10 "Find the name, headquarter and founder of the manufacturer that has the highest revenue.","SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1" Who had the fastest lap for the circuit magione?,"SELECT fastest_lap FROM table_26920192_5 WHERE circuit = ""Magione""" "Among the Yelp_Business in Arizona, how many of them closes at 12PM on Sundays?",SELECT COUNT(T1.business_id) FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Sunday' AND T1.closing_time LIKE '12PM' AND T3.state LIKE 'AZ' What is the percentage whereby the away team scored 2 goals during the 2017 seasons?,SELECT CAST(SUM(CASE WHEN FTAG = 2 THEN 1 ELSE 0 END) / COUNT(FTAG) AS REAL) * 100 FROM matchs WHERE season = 2017 "What is Opponent in Final, when Date is ""13 January 1992""?","SELECT opponent_in_final FROM table_name_12 WHERE date = ""13 january 1992""" What were all the salary values of players in 2010 and 2001?,SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001 Show the police force shared by counties with location on the east and west.,"SELECT Police_force FROM county_public_safety WHERE LOCATION = ""East"" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = ""West""" What was the score of the game with the Etobicoke Kangaroos as the home team?,"SELECT score FROM table_name_55 WHERE home = ""etobicoke kangaroos""" "For each staff id, what is the description of the role that is involved with the most number of projects?","SELECT T1.role_description , T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1" What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl?,"SELECT staffel_d FROM table_name_51 WHERE staffel_e = ""motor suhl"" AND season = ""1983-84""" "What is Result, when Year is greater than 1999, when White is ""Kramnik"", and when Tournament is ""Mainz CC Champions Duel (5)""?","SELECT result FROM table_name_77 WHERE year > 1999 AND white = ""kramnik"" AND tournament = ""mainz cc champions duel (5)""" What date did the Fai Cup with Derry City F.C. as runners-up take place?,"SELECT date FROM table_name_33 WHERE competition = ""fai cup"" AND runners_up = ""derry city f.c.""" What is the sum of total pounds of purchase in year 2018 for all branches in London?,SELECT sum(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018 Which inning were the Minnesota Twins in on 06-07-1961?,"SELECT inning FROM table_name_86 WHERE team = ""minnesota twins"" AND date = ""06-07-1961""" Name the software with the latest stable date of 0.6.1,"SELECT software FROM table_name_87 WHERE latest_stable_date__version_ = ""0.6.1""" Which seasons were directed by Nelson McCormick?,"SELECT title FROM table_17355933_1 WHERE directed_by = ""Nelson McCormick""" List the ids of all the patients with condition that has a prevalence percentage of 18.8%.,"SELECT DISTINCT T1.PATIENT FROM conditions AS T1 INNER JOIN all_prevalences AS T2 ON lower(T2.ITEM) = lower(T1.DESCRIPTION) WHERE T2.""PREVALENCE PERCENTAGE"" = CAST(18.8 AS float)" Which game took place on April 22?,"SELECT game FROM table_name_8 WHERE date = ""april 22""" What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?,"SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = ""czech republic"" AND population_in_millions < 10.3" How many points were there when there were less than 16 rebounds and 5 assists?,SELECT COUNT(points) FROM table_name_83 WHERE assists = 5 AND rebounds < 16 Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.,SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000 Find the number of checking accounts for each account name.,"SELECT count(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name" what is the transaction type code for the investor with id 18,SELECT transaction_type_code from transactions where investor_id = 18 "what is the date when the site is memorial stadium • minneapolis, mn, and the Attendance is 53,192?","SELECT date FROM table_name_70 WHERE site = ""memorial stadium • minneapolis, mn"" AND attendance = ""53,192""" Show the institution type with the largest number of institutions.,SELECT TYPE FROM institution GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 Which years had a jersey number 55,"SELECT years_for_rockets FROM table_11734041_18 WHERE no_s_ = ""55""" Find the name of amenity that is most common in all dorms.,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY COUNT(*) DESC LIMIT 1 "Which Total has a Rank of 5, and a Bronze smaller than 0?","SELECT AVG(total) FROM table_name_67 WHERE rank = ""5"" AND bronze < 0" What place has manfred kokot as the athlete?,"SELECT place FROM table_name_7 WHERE athlete = ""manfred kokot""" What is the name and distance for aircraft with id 12?,"SELECT name , distance FROM Aircraft WHERE aid = 12" What is the id and detail of the vehicle used in lessons for most of the times?,"SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1" List the name and country of origin for all singers who have produced songs with rating above 9.,"SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9" "What was the result of the December 15, 2002 game?","SELECT result FROM table_name_66 WHERE date = ""december 15, 2002""" What is the sum of the week for the Denver Broncos?,"SELECT SUM(week) FROM table_name_60 WHERE opponent = ""denver broncos""" What are these three swimmers' nationalities?,"SELECT t1.name, t1.Nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name, t1.Nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss'" What subtitles have 15 as the classification?,"SELECT subtitles FROM table_name_85 WHERE classifaction = ""15""" Name the highest Horizontal Bar which is in france and Rings smaller than 58.975?,"SELECT MAX(horizontal_bar) FROM table_name_4 WHERE country = ""france"" AND rings < 58.975" "What are the first and last names of the artist who perfomed the song ""Badlands""?","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Badlands""" On which years did Aruba got a footnote on the series code AG.LND.FRST.K2?,SELECT T2.Year FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2' "Which Date has a Result of 2–2, and a Venue of H?","SELECT date FROM table_name_3 WHERE result = ""2–2"" AND venue = ""h""" What is the maximum number of clubs remaining when the league entering at this round was allsvenskan?,"SELECT MIN(clubs_remaining) FROM table_29566686_1 WHERE leagues_entering_at_this_round = ""Allsvenskan""" What was the first award won by the cast or crew member of the show? Give the name of the person who won the said award.,"SELECT T2.award, T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.result = 'Winner' ORDER BY T2.year LIMIT 1;" Who is the pärnu manager?,"SELECT manager FROM table_27409644_1 WHERE club = ""Pärnu""" "How many images have at least one object sample in the class of ""man""?",SELECT COUNT(T.IMG_ID) FROM ( SELECT T2.IMG_ID FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.OBJ_CLASS = 'man' GROUP BY T2.IMG_ID ) T what are all the products name on this table,SELECT product_name FROM products What college has a player that is 6'1?,"SELECT college FROM table_20860739_1 WHERE height = ""6'1""" Thanks! That City and Country ID for Elizabeth is unusual... Can you please show her street address and state province?,"SELECT T1.first_name , T1.last_name , T3.city ,T3.COUNTRY_ID,T3.STREET_ADDRESS,T3.STATE_PROVINCE FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%' and T1.FIRST_NAME = 'Elizabeth'" When is the last day any resident moved in?,SELECT max(date_moved_in) FROM Residents "In female customers ages from 50 to 60, how many of them has an number of inhabitants ranges from 19 to 24?",SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.age >= 50 AND T1.age <= 60 AND T2.INHABITANTS_K >= 19 AND T2.INHABITANTS_K <= 24 "What are the tourist attractions available? | Did you mean to show you all the attractions? | Yes, what are their names?",SELECT distinct ( Name ) FROM Tourist_Attractions Which nations have hosts older than 45?,SELECT distinct Nationality FROM HOST WHERE Age > 45 When was the appointment date for the manager replaced by Lucien Favre?,"SELECT date_of_appointment FROM table_name_68 WHERE replaced_by = ""lucien favre""" What's the name of the tournament that Gianni Ocleppo was the runner-up?,"SELECT tournament_name FROM table_name_80 WHERE runners_up = ""gianni ocleppo""" What about born after the year 1980?,SELECT count ( * ) FROM player WHERE bats = 'R' AND birth_year > 1980 What college did the #22 overall draft pick attend?,SELECT college FROM table_name_39 WHERE pick__number = 22 What are the cost and treatment type description of each treatment?,"SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code" What is Mark Cannon's College?,"SELECT college FROM table_name_45 WHERE player = ""mark cannon""" What is the last name of the staff who has handled the first ever complaint?,SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1 Which player has an A-League of 150 (4)?,"SELECT name FROM table_name_1 WHERE a_league = ""150 (4)""" What is the score of game 21?,SELECT score FROM table_name_96 WHERE game = 21 Which Place has a Player of lee trevino?,"SELECT place FROM table_name_95 WHERE player = ""lee trevino""" Show the region name with at least two storms.,SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2 What are the first names and department numbers for employees with last name McEwen?,"SELECT first_name , department_id FROM employees WHERE last_name = 'McEwen'" How many nationalities does Tom Colley have?,"SELECT COUNT(nationality) FROM table_1965650_4 WHERE player = ""Tom Colley""" "in 1953, which of the institutions joined?","SELECT institution FROM table_261895_1 WHERE joined = ""1953""" How many students are in that major?,SELECT count ( * ) FROM STUDENT GROUP BY major ORDER BY count ( * ) DESC LIMIT 1 What was the result for Thirst in 2010 at the Green Globe Film Awards?,"SELECT result FROM table_name_91 WHERE film_series = ""thirst"" AND year = 2010 AND group = ""green globe film awards""" What is the name of the browser with the second largest market share?,select name from browser order by market_share limit 2 "What is the top fastest time, larger than 2, in Enugu?","SELECT MAX(fastest_time__s_) FROM table_name_76 WHERE location = ""enugu"" AND rank > 2" "Thank you :) This will be my last question, could you please let me know the name and ID of the instructor whose salary is the lowest?","SELECT name, ID from instructor order by salary asc limit 1" What was the Winter Olympics was Japan as the country?,"SELECT winter_olympics FROM table_name_38 WHERE country = ""japan""" List the project details of the projects launched by the organisation with the most number of projects.,SELECT project_details FROM Projects WHERE organisation_id IN ( SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY count(*) DESC LIMIT 1 ); "What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2?","SELECT MAX(wk_9) FROM table_name_13 WHERE wk_6 = ""7"" AND wk_10 > 2 AND wk_7 = ""5"" AND wk_11 < 2" what is 1976 when 1980 is 2.0?,"SELECT 1976 FROM table_name_46 WHERE 1980 = ""2.0""" what is the grid when the time/retired is +9 laps and the laps is larger than 91?,"SELECT COUNT(grid) FROM table_name_18 WHERE time_retired = ""+9 laps"" AND laps > 91" Show the ids of students whose advisors are professors.,"SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = ""Professor""" "On what Date was the Score in Final 6–3, 6–3?","SELECT date FROM table_name_70 WHERE score_in_final = ""6–3, 6–3""" what is the obama # in carson city,"SELECT obama__number FROM table_20424014_1 WHERE county = ""Carson City""" What is the average rating of the newest movies from France?,SELECT AVG(T1.rating) FROM u2base AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid WHERE T2.country = 'france' AND T2.year = 4 What is Boston Bruins minimum pick?,"SELECT MIN(pick__number) FROM table_1965650_10 WHERE nhl_team = ""Boston Bruins""" List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.,"SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'" "What is the maximum number of players for the sega game, hang-on (cartridge version)?","SELECT COUNT(max__number_of_players) FROM table_name_24 WHERE developer = ""sega"" AND main_title___alternate_title_s_ = ""hang-on (cartridge version)""" "Is there any intercity trip were made during 2014? If yes, list out the city name for the start and end station.","SELECT T1.start_station_name, T1.end_station_name FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.start_date LIKE '%/%/2014%' AND T1.start_station_name != T1.end_station_name" How many purchases were made at Sac State American River Courtyard using Master Card?,SELECT COUNT(T1.TransactionID) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID WHERE T2.LocationName = 'Sac State American River Courtyard' AND T1.CreditCardType = 'MasterCard' Which qual has rank of more than 28 and a grid number that is bigger than 23?,SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23 List the dates of games by the home team name in descending order.,SELECT Date FROM game ORDER BY home_team DESC What is the sum of rank with years 1996–2012 and apps greater than 340?,"SELECT SUM(rank) FROM table_name_15 WHERE years = ""1996–2012"" AND apps > 340" "Among the patients with viral sinusitis condition, which patient's gender is most affected? Provide the number for each respectively.","SELECT SUM(CASE WHEN T1.gender = 'F' THEN 1 ELSE 0 END), SUM(CASE WHEN T1.gender = 'M' THEN 1 ELSE 0 END) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Viral sinusitis (disorder)'" Can you list the number of invoices from all countries except the US grouped by billing city?,"SELECT billing_city, COUNT ( * ) FROM invoices where billing_country ! = ""USA"" group by billing_city" Give the procedure description of Ms. Jacquelyn Shanahan on 2009/8/9.,SELECT DISTINCT T2.description FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Ms.' AND T1.first = 'Jacquelyn' AND T1.last = 'Shanahan' AND T2.DATE = '2009-08-09' Find the name of instructors who are advising more than one student.,SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1 What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?,"SELECT sat_27_aug FROM table_30058355_7 WHERE thurs_25_aug = ""23' 56.90 94.528mph""" Name the site for game of game 2,"SELECT site FROM table_name_26 WHERE game = ""game 2""" "list all the names of programs, ordering by launch time.",SELECT name FROM program ORDER BY launch "What is Trailing Party, when Party Won is ""Janata Dal"", and when Year is ""1996""?","SELECT trailing_party FROM table_name_74 WHERE party_won = ""janata dal"" AND year = 1996" How many patients stay in room 112?,SELECT COUNT(patient) FROM stay WHERE room = 112 Count the number of appelations in Napa County.,"SELECT count(*) FROM APPELLATIONS WHERE County = ""Napa""" What percentage of people have worked on the True North episode as additional crew?,SELECT CAST(SUM(CASE WHEN T2.role = 'Additional Crew' THEN 1 ELSE 0 END) AS REAL ) * 100 / COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'True North' Tell the number of fights landed earlier on Miami Airport on 2018/8/12.,SELECT COUNT(*) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/12' AND T2.DEST = 'MIA' AND T2.ARR_DELAY < 0 What are the full names of all students,"SELECT Fname , Lname FROM Student" What try bonus has 18 as the played of and 204 as the points?,"SELECT try_bonus FROM table_name_83 WHERE played = ""18"" AND points_for = ""204""" What tournament was at the 2011 Cincinnati Masters?,"SELECT 2011 FROM table_name_5 WHERE tournament = ""cincinnati masters""" What is the flight number of the flight operated by American Airlines Inc. that had the longest delay in departure?,SELECT T1.OP_CARRIER_FL_NUM FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T2.Code = T1.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T1.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Airlines Inc.: AA' ORDER BY T1.DEP_TIME DESC LIMIT 1 Which To par has a Winning score of 64-68-66-63=261?,SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261 Return the total number of distinct customers.,SELECT count(*) FROM customers What Type of Tunnel is the Downhill Tunnel?,"SELECT type FROM table_name_78 WHERE tunnel = ""downhill""" "Who wrote the program that originally aired on June 6, 1999?","SELECT written_by FROM table_name_90 WHERE original_airdate = ""june 6, 1999""" "Which Total has a Finish of t64, and a Year won larger than 2006?","SELECT MAX(total) FROM table_name_64 WHERE finish = ""t64"" AND year_won > 2006" And what about the salary of the instructor with id number 96895?,SELECT salary FROM instructor WHERE id = 96895 What is the greatest lane with an overall rank of 79 and a time larger than 26.1?,"SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = ""79"" AND time > 26.1" What is the location of thierry boutsen?,"SELECT location FROM table_1137707_2 WHERE fastest_lap = ""Thierry Boutsen""" what is the country with the album best of and weeks on chart is less than 5?,"SELECT country FROM table_name_53 WHERE album = ""best of"" AND weeks_on_chart < 5" How many cuts did he make at the PGA championship in 3 events?,"SELECT MAX(cuts_made) FROM table_name_36 WHERE tournament = ""pga championship"" AND events > 3" "What was the result of the film made before 2005, winner of the robert award, in the category of best actress?","SELECT result FROM table_name_89 WHERE category = ""best actress"" AND year < 2005 AND award = ""robert award""" Where was the game held where Hawthorn was the away team?,"SELECT venue FROM table_name_46 WHERE away_team = ""hawthorn""" What is the total production of the product that is ordered in the highest quantity in order no. 10248?,SELECT T1.UnitsInStock + T1.UnitsOnOrder FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10248 ORDER BY T2.Quantity DESC LIMIT 1 what is the date when the away team is newport county?,"SELECT date FROM table_name_98 WHERE away_team = ""newport county""" Compute the average price of all products with manufacturer code equal to 2.,SELECT avg(price) FROM products WHERE Manufacturer = 2 Which director made Mi-temps?,"SELECT director_s_ FROM table_name_13 WHERE film = ""mi-temps""" "What is the customer id, first and last name with most number of accounts.","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1" What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?,"SELECT COUNT(last_title) FROM table_name_79 WHERE wins < 71 AND first_title > 1968 AND country = ""fiji""" When 1 is the number what episodes were used?,SELECT episodes_used FROM table_2144389_9 WHERE _number = 1 List the status shared by more than two roller coasters.,SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2 What's the highest league of the Nova Scotia Clippers with a total season of less than 4?,"SELECT highest_league FROM table_name_2 WHERE total_seasons < 4 AND team = ""nova scotia clippers""" What is the id and trade name of the medicines can interact with at least 3 enzymes?,"SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3" Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.,"SELECT cName FROM College WHERE enr < 13000 AND state = ""AZ"" UNION SELECT cName FROM College WHERE enr > 15000 AND state = ""LA""" what are schools in Hawaii have school buses?,"SELECT school FROM school WHERE location like ""%Hawaii%"" and school_id IN ( SELECT school_id FROM school_bus ) " How many distinct locations have the things with service detail 'Unsatisfied' been located in?,SELECT count(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied' "Among the countries who uses the 1968 System of National Accounts methodology, how many are in the Middle East & North Africa? Name the country with the highest CO2 emissions from solid fuel consumption in kiloton.",SELECT COUNT(DISTINCT T1.CountryCode) FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T2.SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.' AND T1.IndicatorName = 'CO2 emissions FROM solid fuel consumption (kt)' UNION SELECT * FROM ( SELECT T1.CountryName FROM indicators AS T1 INNER JOIN country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T2.SystemOfNationalAccounts = 'Country uses the 1968 System of National Accounts methodology.' AND T1.IndicatorName = 'CO2 emissions FROM solid fuel consumption (kt)' GROUP BY T1.CountryName ORDER BY SUM(T1.value) DESC LIMIT 1 ) "What is every value for % 40-59 if % 60-74 is 12,42%?","SELECT _percentage_40_59 FROM table_23606500_4 WHERE _percentage_60_74 = ""12,42%""" What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?,SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' How many Losses have Draws larger than 0?,SELECT MAX(losses) FROM table_name_58 WHERE draws > 0 What are the names of city of airport which is the source for the most number of flight routes | Do you mean the name of city which is the source for the most number of flight routes? | Yes,SELECT T1.city FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count ( * ) DESC LIMIT 1 What grade did jockey Robby Albarado get when racing with Ravens Pass?,"SELECT grade FROM table_name_78 WHERE jockey = ""robby albarado"" AND runner_up_winner = ""ravens pass""" "Which R.A. (J2000) has Apparent Magnitude of 11.7, and Dec. (J2000) of °07′06″?","SELECT ra___j2000__ FROM table_name_22 WHERE apparent_magnitude = 11.7 AND dec___j2000__ = ""°07′06″""" "Please list the page numbers of all the menu pages on which the dish ""Chicken gumbo"" had appeared.",SELECT T1.page_number FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Chicken gumbo' For the chinese name 盧奕基 how many in total is the govt salary?,"SELECT COUNT(govt_salary) FROM table_17964087_2 WHERE chinese_name = ""盧奕基""" Which word has the time of occurrences as 340691?,SELECT word FROM words WHERE occurrences = 340691 How about church names for weddings of people older than 30?,SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30 what is the name of product id 1,SELECT product_name from products where product_id = 1 Please list the top three most frequently occurring words and their ids.,"SELECT word, wid FROM words ORDER BY occurrences DESC LIMIT 3" Name the most founded for sea gulls,"SELECT MAX(founded) FROM table_1973648_1 WHERE nickname = ""Sea Gulls""" Who was the leading scorer on 9 January 2008?,"SELECT leading_scorer FROM table_name_99 WHERE date = ""9 january 2008""" What is the name of the body builder with the greatest body weight?,SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 List the forenames of all distinct drivers in alphabetical order?,SELECT DISTINCT forename FROM drivers ORDER BY forename ASC How many root beers did Tom Hanks purchase between 2015 to 2016?,SELECT COUNT(T2.RootBeerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.First = 'Tom' AND T1.Last = 'Hanks' AND T2.TransactionDate BETWEEN '2015-01-01' AND '2016-12-31' What is the sum of To par when the Finish is t11?,"SELECT SUM(to_par) FROM table_name_59 WHERE finish = ""t11""" Name the Finish which has a Total of 287?,SELECT finish FROM table_name_20 WHERE total = 287 "what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?","SELECT score FROM table_name_32 WHERE venue = ""stade général seyni kountché, niamey"" AND competition = ""friendly"" AND date = ""9 october 2012""" "How many against have a difference of 6, with a played greater than 19?","SELECT SUM(against) FROM table_name_57 WHERE difference = ""6"" AND played > 19" What is the name of the leading scorer when the record was 9–6?,"SELECT leading_scorer FROM table_name_18 WHERE record = ""9–6""" "What is the set 2 the has 1 set of 21-25, and 4 sets of 25-20?","SELECT set_2 FROM table_name_17 WHERE set_1 = ""21-25"" AND set_4 = ""25-20""" "What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?","SELECT tournament FROM table_name_63 WHERE outcome = ""winner"" AND date = ""13 july 2013""" What is all the information of all the products that have a price between 60 and 120?,SELECT * FROM products WHERE price BETWEEN 60 AND 120 Who is the largest donor by amount? Give the donation id and the total amount of the donation.,"SELECT donationid, donation_total FROM donations ORDER BY donation_total DESC LIMIT 1" what are the names of all drivers?,SELECT name FROM driver What is SS Player Rich McKinney's Team?,"SELECT team FROM table_name_19 WHERE position = ""ss"" AND player = ""rich mckinney""" "Can you find the entries with the highest room count and only keep those in the table? | And still return the apartment type code and the room count? | Yes, only for those entries with the highest room count.","SELECT apt_type_code,room_count FROM Apartments order by room_count desc limit 1" "What is Score, when Tie No is Replay, and when Home Team is Sunderland?","SELECT score FROM table_name_75 WHERE tie_no = ""replay"" AND home_team = ""sunderland""" How many countries exist?,SELECT count(*) FROM COUNTRIES; Name the home team score for south melbourne home team,"SELECT home_team AS score FROM table_name_35 WHERE home_team = ""south melbourne""" What is the ID of the project with the most number of documents?,SELECT project_id FROM Documents GROUP BY project_id ORDER BY count ( * ) DESC LIMIT 1 Which Builder has a Date of early 1871?,"SELECT builder FROM table_name_39 WHERE date = ""early 1871""" List the purchase order whereby all received quantity were rejected? Name those product.,SELECT T1.Name FROM Product AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.ProductID = T2.ProductID WHERE T2.RejectedQty = T2.ReceivedQty AND T2.RejectedQty <> 0 What are the faculty ids of all the male faculty members?,SELECT FacID FROM Faculty WHERE Sex = 'M' Excellent! Could you filter that list to show only the students who were taught by the teacher with the last name Moyer?,"SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.lastname = ""MOYER""" How many video games have type Massively multiplayer online game?,"SELECT count(*) FROM Video_games WHERE gtype = ""Massively multiplayer online game""" "Show the faculty id of each faculty member, along with the number of students he or she advises.","SELECT T1.FacID , count ( * ) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID" Name the four for 6 march 1801,"SELECT four FROM table_name_23 WHERE date = ""6 march 1801""" What is the real name of the movie about love?,"SELECT original_name FROM table_name_26 WHERE film_title_used_in_nomination = ""love""" "Which Platforms have a Hazmat of –, and a Type of urban & rural, and a Brigade of lara?","SELECT platforms FROM table_name_38 WHERE hazmat = ""–"" AND type = ""urban & rural"" AND brigade = ""lara""" Name the college for andrej podkonicky,"SELECT college_junior_club_team FROM table_2840500_8 WHERE player = ""Andrej Podkonicky""" How many episodes were written by Tom Scharpling and Daniel Dratch?,"SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = ""Tom Scharpling and Daniel Dratch""" How many films have a rental rate of 0.99?,SELECT COUNT(film_id) FROM film WHERE rental_rate = 0.99 What is the full name of the driver that has done the most shipments in 2017?,"SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' GROUP BY T2.first_name, T2.last_name ORDER BY COUNT(*) DESC LIMIT 1" What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc?,SELECT AVG(T2.weight) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'S K L Enterprises Inc' "What is the highest Money ( £ ), when Player is ""Peter Hedblom""?","SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = ""peter hedblom""" "For the catalog title DP068-07, what formats are available?","SELECT format FROM table_name_52 WHERE catalog = ""dp068-07""" What are the first and last names of all customers with between 1000 and 3000 dollars outstanding?,"SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;" "For each customer status code, how many customers are classified that way?","SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;" What is the average round for Georgia Tech with a pick greater than 103?,"SELECT AVG(round) FROM table_name_81 WHERE school = ""georgia tech"" AND pick > 103" Who was the director of Clean Pastures?,"SELECT director FROM table_name_12 WHERE title = ""clean pastures""" Please list the name of the countries with over 5 ethnic groups.,SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country GROUP BY T1.Name HAVING COUNT(T1.Name) > 5 can you show me a list of location name?,SELECT location_name FROM Ref_Locations "What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?","SELECT MIN(roll) FROM table_name_40 WHERE decile > 6 AND name = ""broomfield school""" How many segment b's when segment a is filigree glass,"SELECT COUNT(segment_b) FROM table_15187735_16 WHERE segment_a = ""Filigree Glass""" What is the age of the friend of Zach with longest year relationship?,SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach') "Which competition did Târlea come in 4th place, in 2003 at Budapest, Hungary?","SELECT competition FROM table_name_55 WHERE position = ""4th"" AND year > 2003 AND venue = ""budapest, hungary""" What is the Pinyin for 依兰县?,"SELECT hanyu_pinyin FROM table_name_53 WHERE hanzi = ""依兰县""" What is the name of the movie whose critic received the highest amount of likes? Indicate the URL to the rating on Mubi.,"SELECT T2.movie_title, T1.rating_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.critic_likes DESC LIMIT 1" "What is Country, when Player is ""Tom Watson""?","SELECT country FROM table_name_99 WHERE player = ""tom watson""" "Among the motorcycles with product scale of 1:10, which of them is the most ordered by American customers?",SELECT T1.productName FROM products AS T1 INNER JOIN orderdetails AS T2 ON T1.productCode = T2.productCode INNER JOIN orders AS T3 ON T2.orderNumber = T3.orderNumber INNER JOIN customers AS T4 ON T3.customerNumber = T4.customerNumber WHERE T1.productLine = 'Motorcycles' AND T1.productScale = '1:10' AND T4.country = 'USA' GROUP BY T1.productName ORDER BY SUM(T2.quantityOrdered) DESC LIMIT 1 Which Slalom has a Super G of 4?,"SELECT slalom FROM table_name_98 WHERE super_g = ""4""" " what's the extroverted, relationship-oriented where moderate is introverted sanguine","SELECT extroverted, _relationship_oriented FROM table_11256021_1 WHERE moderate = ""Introverted Sanguine""" who was the winner in 2003?,"SELECT winner FROM table_name_53 WHERE year = ""2003""" "When the Venue was Punt Road Oval, who was the Home Team?","SELECT home_team FROM table_name_47 WHERE venue = ""punt road oval""" "Among the Production Technicians who are single, how many of them are vendor contact?",SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.JobTitle LIKE 'Production Technician%' AND T1.MaritalStatus = 'S' AND T2.PersonType = 'VC' Show all student IDs with the number of sports and total number of games played,"SELECT StuID, COUNT(*), SUM(gamesplayed) FROM Sportsinfo GROUP BY StuID" "What is Nationality, when Round is less than 2, and when College/Team is ""CB L'Hospitalet""?","SELECT nationality FROM table_name_36 WHERE round < 2 AND college_team = ""cb l'hospitalet""" What is the highest rank for the airport with a code of HKG/VHHH?,"SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = ""hkg/vhhh""" Yes. Can you tell me the number of employees?,SELECT count ( * ) FROM employee "What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?","SELECT COUNT(season) FROM table_name_67 WHERE original_airdate = ""january 24, 1999"" AND year < 1999" How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?,"SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn"";" Who sand He's Bigfoot?,"SELECT singer_s_ FROM table_23667534_1 WHERE song_s__title = ""He's Bigfoot""" What were the highest laps when the grid was larger than 19 and the time/retired was fuel?,"SELECT MAX(laps) FROM table_name_52 WHERE grid > 19 AND time_retired = ""fuel""" What were the scores of the games with a record of 47-34?,"SELECT score FROM table_27902171_9 WHERE record = ""47-34""" What is the family of the constellation that has lyncis /ˈlɪnsɨs/ as genitive?,"SELECT family FROM table_287159_1 WHERE genitive = ""Lyncis /ˈlɪnsɨs/""" Name the number of team for 35 runs margin and india winner,"SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = ""35 runs"" AND winner = ""India""" Find the name of tracks which are in Movies playlist but not in music playlist.,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' What is the country of the player with a t6 place?,"SELECT country FROM table_name_33 WHERE place = ""t6""" display the department id and the total salary for those departments which contains at least two employees.,"SELECT department_id , SUM ( salary ) FROM employees GROUP BY department_id HAVING count ( * ) > = 2" Which is the highest bronze with gold less than 0?,SELECT MAX(bronze) FROM table_name_17 WHERE gold < 0 Name the sum of points for 1984,SELECT SUM(points) FROM table_name_95 WHERE year < 1984 Who won the III Coppa Acerbo title?,"SELECT driver_s FROM table_name_67 WHERE race_title = ""iii coppa acerbo""" What was the least amount for Goals Olimpia?,SELECT MIN(goals_olimpia) FROM table_13688489_1 Who is Bob's friend?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob' Find out what proportion of total revenue Walt Disney Parks and Resorts received in 2010.,SELECT SUM(`Walt Disney Parks and Resorts`) / SUM(Total) * 100 FROM revenue WHERE year = 2010 What is the USD price for Tealeaf?,"SELECT price_in_usd FROM table_name_79 WHERE company = ""tealeaf""" Which team did the all league rebound champion play in 1997? Give the full name of the team.,SELECT T1.name FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.year = 1997 GROUP BY T1.name ORDER BY SUM(rebounds + dRebounds) DESC LIMIT 1 What were the remarks for Dutch Antilles Express?,"SELECT remarks FROM table_name_74 WHERE airline = ""dutch antilles express""" "How many debut years have Years at club of 1950–1951, and Games larger than 14?","SELECT SUM(debut_year) FROM table_name_39 WHERE years_at_club = ""1950–1951"" AND games > 14" What is the home team of the game on February 3?,"SELECT home FROM table_name_72 WHERE date = ""february 3""" how many orders are there,SELECT count ( * ) FROM invoices list number of games played by students,select sum ( GamesPlayed ) from sportsinfo "What is the address content of the customer named ""Maudie Kertzmann""?","SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = ""Maudie Kertzmann""" How many teams have 21 tries for?,"SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = ""21""" What is the phone and email for customer with first name Aniyah and last name Feest?,"SELECT customer_phone , customer_email FROM Customers WHERE customer_first_name = ""Aniyah"" AND customer_last_name = ""Feest""" Which driver is Indian?,"SELECT driver___rider FROM table_name_58 WHERE car___motorcycle = ""indian""" List each birth place along with the number of people from there.,"SELECT Birth_Place , COUNT(*) FROM people GROUP BY Birth_Place" Who ihad the highest points and what was the number when the record was 11-40?,"SELECT high_points FROM table_13619053_7 WHERE record = ""11-40""" WHat in 2005 has a Win % of 82.61?,"SELECT 2005 FROM table_name_59 WHERE win__percentage = ""82.61""" Show all product colors.,SELECT DISTINCT product_color FROM Products what is solo when total tackles is 6?,"SELECT solo FROM table_name_82 WHERE total_tackles = ""6""" List all the cities with micro CBSA.,SELECT T2.city FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_type = 'Micro' Which duchess was born on 9 october 1574?,"SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = ""9 october 1574""" "In customers with marital status of never married, what is the percentage of customers with income of 2500 and above?",SELECT CAST(SUM(CASE WHEN T2.INCOME_K > 2500 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.MARITAL_STATUS = 'Never-married' What is the Time of the Great Britain players with Notes of SA/B?,"SELECT time FROM table_name_66 WHERE notes = ""sa/b"" AND country = ""great britain""" What was the attendance when North Melbourne was the away team?,"SELECT AVG(crowd) FROM table_name_77 WHERE away_team = ""north melbourne""" What is the detailed family information where the sequence is aagtact?,"SELECT COUNT(detailed_family_information) FROM table_26708105_2 WHERE sequence = ""aAGTAct""" What's the description of the series code SM.POP.TOTL for Aruba?,SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'SM.POP.TOTL' Name the running with for elizabeth falco,"SELECT running_with__in_team_ FROM table_1855841_1 WHERE candidate = ""Elizabeth Falco""" who directed the episode james clavell wrote?,"SELECT directed_by FROM table_2626495_1 WHERE written_by = ""James Clavell""" Find the founder of the company whose name begins with the letter 'S'.,SELECT founder FROM manufacturers WHERE name LIKE 'S%' What is the takeover date of the FA division mitre?,"SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = ""mitre""" Who directed Avatar?,SELECT director FROM Movie WHERE title = 'Avatar' On what date was the winning score –20 (68-67-65-64=264)?,SELECT date FROM table_name_46 WHERE winning_score = –20(68 - 67 - 65 - 64 = 264) The most common amenity in all dorms is what?,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count ( * ) DESC LIMIT 1 Show all opening years and the number of churches that opened in that year.,"SELECT open_date, COUNT(*) FROM church GROUP BY open_date" "Among all the users who use a vivo device, what is the percentage of the users in the M23-26 user group?","SELECT SUM(IIF(T1.`group` = 'M23-26', 1.0, 0)) / COUNT(T1.device_id) AS per FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo'" Provide the name of the patient who had a claim on 1947/9/11.,"SELECT T1.first, T1.last FROM patients AS T1 INNER JOIN claims AS T2 ON T1.patient = T2.PATIENT WHERE T2.billableperiod = '1947-09-11'" "Hmm, I want to know the cities with customers living in.",SELECT city FROM addresses WHERE city IN ( SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id ) How many community areas are in the Far North side?,SELECT COUNT(*) FROM Community_Area WHERE side = 'Far North ' Could you please find all the procedures that cost more than 1000?,SELECT * FROM procedures WHERE cost > 1000 Who ran in the race for the seat of incumbent Carl W. Rich?,"SELECT candidates FROM table_1341865_37 WHERE incumbent = ""Carl W. Rich""" How many blocks does the player who played 893 minutes have?,SELECT blocks FROM table_24912693_4 WHERE minutes = 893 "WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10?","SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = ""rice"" AND round > 10" Could you add in the investor details to the table please?,"SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT ( * ) DESC LIMIT 3" What is the Turkish word for the Bangla word shombar সোমবার?,"SELECT turkish FROM table_name_51 WHERE bangla = ""shombar সোমবার""" Which theme has a Episode of top 6?,"SELECT theme FROM table_name_79 WHERE episode = ""top 6""" Find the name of rooms whose base price is between 120 and 150.,SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150 What are the used kb of those?,"SELECT DISTINCT T1.used_kb FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = ""Nokia Corporation"" AND T1.Type ! = ""Text""" What is the checking balance of the account whose owner’s name contains the substring ‘ee’?,SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%' Name the home team for football park,"SELECT home_team FROM table_16388439_3 WHERE ground = ""Football Park""" List the names of players that do not have coaches.,SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach) Please list the website purchasing links of the vendors from whom the product Hex Nut 5 can be purchased.,SELECT T3.PurchasingWebServiceURL FROM ProductVendor AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Vendor AS T3 ON T1.BusinessEntityID = T3.BusinessEntityID WHERE T2.Name = 'Hex Nut 5' what is the area size of Neguac,"SELECT Area_size FROM store where store_name = ""Neguac""" What is the ID of the university with the most students in 2011?,SELECT university_id FROM university_year WHERE year = 2011 ORDER BY num_students DESC LIMIT 1 What is the week number that has Dolly Parton as the theme?,"SELECT week__number FROM table_name_12 WHERE theme = ""dolly parton""" What is the department name of the students with lowest gpa belongs to?,SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1 "Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?","SELECT driver FROM table_name_21 WHERE capacity < 5700 AND total_time = ""08:29""" what's the doubles w-l for player seol jae-min (none),"SELECT doubles_w_l FROM table_10023387_1 WHERE player = ""Seol Jae-Min (none)""" What was the site of the game that had an 11-4 score?,"SELECT site_stadium FROM table_28001186_8 WHERE score = ""11-4""" What is the average number of sales in Japan?,SELECT AVG(T2.num_sales) * 100000 AS avg_japan FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' Please list the location coordinates of all the devices with an inactive app user when event no.2 happened.,"SELECT DISTINCT T2.longitude, T2.latitude FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 2 AND T1.is_active = 0" Tell me the displacement for 1935-45,"SELECT displacement FROM table_name_63 WHERE year = ""1935-45""" What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western?,"SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = ""Westlake/MacArthur Park to Wilshire/Western""" Name the space crusade which has Genestealers of genrøvere (gene robbers),"SELECT space_crusade FROM table_name_92 WHERE genestealers = ""genrøvere (gene robbers)""" Find the number of different product types.,SELECT count(DISTINCT product_type_code) FROM products What was the Attendance in Week 17?,SELECT attendance FROM table_name_70 WHERE week = 17 "Which school has a hometown of winter park, FL?","SELECT school FROM table_name_68 WHERE hometown = ""winter park, fl""" Which teams classification winners had a general classification winner of Allan Davis?,"SELECT teams_classification FROM table_28092844_16 WHERE general_classification_żółta_koszulka = ""Allan Davis""" What Platform has a Current Version 0.6.2?,"SELECT platform FROM table_name_55 WHERE current_version = ""0.6.2""" How many Drawn does the team Portuguesa Santista have?,"SELECT drawn FROM table_15352382_1 WHERE team = ""Portuguesa Santista""" Find the savings balance of Wang?,"SELECT T2.balance from accounts as T1 join savings as T2 on T1.custid = T2.custid where T1.name = ""Wang""" "What language is the Tematico content with a sky tv package, and Fox Crime television service?","SELECT language FROM table_name_55 WHERE content = ""tematico"" AND package_option = ""sky tv"" AND television_service = ""fox crime""" Address of Luís Köhler? | Is Luís Köhler full name? | Yes,"SELECT address FROM customers WHERE first_name = ""Luís"" and last_name = "" Köhler""" What is the sum for December against the vancouver canucks earlier than game 33?,"SELECT SUM(december) FROM table_name_59 WHERE opponent = ""vancouver canucks"" AND game < 33" What was the loss/gain when the votes -cast was 166?,SELECT loss_gain FROM table_25818630_2 WHERE votes__cast = 166 Which team had a 2008-3 2008 draft?,"SELECT school_club_team FROM table_name_1 WHERE draft = ""2008-3 2008""" "In total, how many faculty members are there?",select count ( * ) from faculty What is the email id of clients whose calls were hung?,SELECT T1.email FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T2.outcome = 'HANG' What is the total medals Austria and those with larger than rank 4 have?,"SELECT COUNT(total) FROM table_name_76 WHERE nation = ""austria"" AND rank > 4" What Leading scorer had a Score of 80–112?,"SELECT leading_scorer FROM table_name_98 WHERE score = ""80–112""" what is the numeric decline from peak population when the perfect decline from peak population is -16.76%,"SELECT numeric_decline_from_peak_population FROM table_name_99 WHERE percent_decline_from_peak_population = ""-16.76%""" what is the date of appointment for the team osasuna?,"SELECT date_of_appointment FROM table_24231638_3 WHERE team = ""Osasuna""" What was the name of the city whose temperature in March was higher than that in October?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar > T2.Oct Find the number of rooms with more than 50 capacity for each building.,"SELECT COUNT(*), building FROM classroom WHERE capacity > 50 GROUP BY building" "For each file format, return the number of artists who released songs in that format.","SELECT COUNT(*), formats FROM files GROUP BY formats" How many planes of Spirit Air Lines took off on 2018/8/7?,SELECT COUNT(T2.Code) FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.FL_DATE = '2018/8/7' AND T2.Description = 'Spirit Air Lines: NK' what is the salary and name of the employee who has the most number of aircraft certificates?,"SELECT T1.name, T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1" what is the role code of staff id 674810.0,SELECT role_code FROM Project_Staff where staff_id = 674810.0 "with the amount of tries at 89, how many win's were there?","SELECT won FROM table_17675675_2 WHERE tries_against = ""89""" What was the score for the game against the New Jersey Nets?,"SELECT score FROM table_name_14 WHERE opponent = ""new jersey nets""" What is the name that only has one friend pairing?,SELECT name FROM PersonFriend GROUP BY name HAVING count ( * ) = 1 Name the 2007 for 2005 of a and 003 of a with 2009 of sf,"SELECT 2007 FROM table_name_17 WHERE 2005 = ""a"" AND 2003 = ""a"" AND 2009 = ""sf""" What is the minimum manhunt beauty contest?,SELECT MIN(manhunt_international) FROM table_30018460_1 "Could you please tell me all the catalog publishers whose name contains ""chocolate""?","SELECT catalog_publisher FROM catalogs WHERE catalog_publisher LIKE ""%chocolate%""" When the other is n/a and the psc-pc is 30% what is the date?,"SELECT date FROM table_name_52 WHERE others = ""n/a"" AND psd___pc = ""30%""" Who won the US Open in 1937?,SELECT player FROM table_197638_6 WHERE us_open = 1937 "What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?","SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" How many non-essential genes are located in the nucleus?,SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Classification AS T2 ON T1.GeneID = T2.GeneID WHERE T2.Localization = 'nucleus' AND T1.Essential = 'Non-Essential' What was Obama's percentage in those places where McCain's percentage was 55.46%?,"SELECT obama_percentage FROM table_20524090_1 WHERE mccain_percentage = ""55.46%""" How many tourist attractions?,SELECT count ( distinct Tourist_Attraction_ID ) FROM Visits "Show the season, the player, and the name of the team that players belong to.","SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id" What is the lowest points when the ranking is 1st?,"SELECT MIN(points) FROM table_name_60 WHERE rank = ""1st""" What are the account details with the largest value or with value having char '5' in it?,"SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE ""%5%""" "What competition was at the Daugava Stadium, Riga, Latvia?","SELECT competition FROM table_name_19 WHERE venue = ""daugava stadium, riga, latvia""" What were the least Wins in 1988?,SELECT MIN(wins) FROM table_name_19 WHERE year = 1988 From which city and state does the customer that bought the product with the highest sales?,"SELECT T5.City, T5.State FROM west_superstore AS T1 INNER JOIN east_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN central_superstore AS T3 ON T3.`Customer ID` = T2.`Customer ID` INNER JOIN south_superstore AS T4 ON T4.`Customer ID` = T3.`Customer ID` INNER JOIN people AS T5 ON T5.`Customer ID` = T4.`Customer ID` ORDER BY T2.Sales DESC LIMIT 1" Calculate the total number of students in universities located in Sweden.,SELECT SUM(T2.num_students) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Sweden' What are the names of all aircrafts that John Williams have certificates to be able to fly?,"SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = ""John Williams""" "What is Circuit, when Series is ASTC Round 4?","SELECT circuit FROM table_name_26 WHERE series = ""astc round 4""" What was the record of the game with a score of 12–6?,"SELECT record FROM table_name_76 WHERE score = ""12–6""" What is University of Rhode Island's affiliation?,SELECT Affiliation FROM university WHERE school = 'University of Rhode Island' Which Away team played at the Windy Hill Venue?,"SELECT away_team FROM table_name_50 WHERE venue = ""windy hill""" "And by ""Benjamin""?","SELECT TIME FROM elimination WHERE Eliminated_By = ""Benjamin""" How many solar eclipse during august 21-22 and January 15-16 is 141?,"SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = ""141""" Find the titles of all movies directed by steven spielberg.,SELECT title FROM Movie WHERE director = 'Steven Spielberg' What about United Kingdom's type of ships?,SELECT distinct Type FROM ship where Nationality = 'United Kingdom' "Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold?","SELECT SUM(total) FROM table_name_77 WHERE gold < 4 AND silver > 0 AND rank = ""3"" AND bronze < 6" What countries have not participated in any competition with Friendly type?,SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' List enzyme names in alphabetical order,select name from enzyme order by name Name the sum against for byes less than 0,SELECT SUM(against) FROM table_name_92 WHERE byes < 0 "Which Numbers (Quantity Ordered) have a Fuel Propulsion of cng, and a Year smaller than 2008, and a Make/ Model of nabi 40-lfw?","SELECT numbers__quantity_ordered_ FROM table_name_96 WHERE fuel_propulsion = ""cng"" AND year < 2008 AND make__model = ""nabi 40-lfw""" "What is the sum of Points for 250cc class, ranked 13th, later than 1955?","SELECT SUM(points) FROM table_name_89 WHERE class = ""250cc"" AND rank = ""13th"" AND year > 1955" "Please indicate the review count of the ""active life"" businesses in Phoenix.",SELECT COUNT(*) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id WHERE T1.category_name = 'Active Life' AND T3.city = 'Phoenix' Hello! Can you provide me with a list of the first names of all customers who rented films before '2005-08-23 02:06:01'?,SELECT first_name FROM customer WHERE customer_id IN ( SELECT customer_id FROM rental WHERE rental_date < '2005-08-23 02:06:01' ) What is the date for the player who debuted later than 1972 against Limerick?,"SELECT date FROM table_name_32 WHERE début > 1972 AND opposition = ""limerick""" "What is Score, when Team is ""Indiana""?","SELECT score FROM table_name_7 WHERE team = ""indiana""" Show the document type code with fewer than 3 documents.,SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING COUNT(*) < 3 "Which club, had a home ground of n/a?","SELECT club FROM table_name_95 WHERE home_ground = ""n/a""" "How many customers have email that contains ""gmail.com""?","SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE ""%gmail.com%""" What is the torque of 1.2 petrol?,"SELECT torque FROM table_name_49 WHERE name = ""1.2 petrol""" How many chip models are not being used in phones with full accreditation?,SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' "Which Time/Retired has Laps smaller than 100, and Points larger than 0?",SELECT time_retired FROM table_name_99 WHERE laps < 100 AND points > 0 What airport name has the highest amount of international passengers?,SELECT Airport_Name FROM airport order by International_Passengers desc limit 1 who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?,"SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = ""piercarlo ghinzani""" "How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?",SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09 "What product has the fewest online orders from one customer? List the product's class, line of business, and list price.","SELECT T2.Class, T2.ProductLine, T2.ListPrice FROM ShoppingCartItem AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID ORDER BY SUM(Quantity) LIMIT 1" What event did he compete in at Taipei?,"SELECT format FROM table_name_42 WHERE location = ""taipei""" Find the number of apartments that have no facility.,SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities) How many times is player Stanislas Wawrinka on the list?,"SELECT COUNT(points) AS defending FROM table_26218783_6 WHERE player = ""Stanislas Wawrinka""" What is the number of State Province of France that doesn't have a State Province Code?,SELECT T1.CountryRegionCode FROM StateProvince AS T1 INNER JOIN CountryRegion AS T2 ON T1.CountryRegionCode = T2.CountryRegionCode WHERE T2.Name = 'France' AND T1.IsOnlyStateProvinceFlag = 1 What was the Nominated Work earlier than 2003?,SELECT nominated_work FROM table_name_62 WHERE year < 2003 How many Indians were admitted in 2001?,SELECT indians_admitted FROM table_1717824_3 WHERE year = 2001 What septembers are 17.1 in December? ,"SELECT december FROM table_15945862_1 WHERE september = ""17.1""" What year was the role of Rachel active in TV?,"SELECT year_active FROM table_name_83 WHERE role = ""rachel""" State the name of research postgraduate student among Professor Zhihua Zhou's research assistants.,"SELECT T3.f_name, T3.l_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T1.first_name = 'Zhihua' AND T3.type = 'RPG' AND T1.last_name = 'Zhou'" What year did the team who played at the Scottrade Center leave the city?,"SELECT MIN(left_st_louis) FROM table_21564794_3 WHERE venue = ""Scottrade Center""" How many games played have 4.7 as points per game?,"SELECT games_played FROM table_2387461_1 WHERE points_per_game = ""4.7""" Show the order ids and the number of items in each order.,"SELECT order_id , count(*) FROM Order_items GROUP BY order_id" What is the minimum enrollment of the cyclones?,"SELECT MIN(enrollment) FROM table_20190834_1 WHERE team_name = ""Cyclones""" Name the horror movies with positive ratings greater than 7.,SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Horror' AND T1.vote_average > 7 What are the names of the venues in Abu Dhabi?,SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id WHERE T2.City_Name = 'Abu Dhabi' How many customers are there?,SELECT count(*) FROM Customers; On what date were the most events logged on devices for 40-year-old male users?,"SELECT T.timestamp FROM ( SELECT T2.timestamp, COUNT(T2.event_id) AS num FROM gender_age AS T1 INNER JOIN events_relevant AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'M' AND T1.age = 40 GROUP BY T2.timestamp ) AS T ORDER BY T.num DESC LIMIT 1" how many areas were in the election in 1912,SELECT COUNT(district) FROM table_1342379_10 WHERE first_elected = 1912 "What was the total number of the games that player Id ""rutlewa01"" played in 1967?",SELECT GP FROM Goalies WHERE playerID = 'rutlewa01' AND year = 1967 Advisor 1121 has how many students?,SELECT COUNT(*) FROM Student WHERE Advisor = 1121 What is the receipt date of the document with id 3?,SELECT receipt_date FROM Documents WHERE document_id = 3 Which staff members are assigned to the problem with id 1? Give me their first and last names.,"SELECT DISTINCT staff_first_name , staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" "What is Date From, when Moving To is ""Birmingham City""?","SELECT date_from FROM table_name_46 WHERE moving_to = ""birmingham city""" How many times was the result is hired by serepisos?,"SELECT COUNT(hometown) FROM table_26263322_1 WHERE result = ""Hired by Serepisos""" What Year had a Result of 34-25?,"SELECT AVG(year) FROM table_name_44 WHERE result = ""34-25""" "Gives the home page of the conference where the paper ""Increasing the Concurrency in Estelle"" is presented.",SELECT DISTINCT T2.HomePage FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Increasing the Concurrency in Estelle' What is the percentage of restaurants that serve American food in Dublin city?,"SELECT CAST(SUM(IIF(food_type = 'american food', 1, 0)) AS REAL) * 100 / COUNT(id_restaurant) FROM generalinfo WHERE city = 'dublin'" "How many people directed the episode that aired on February 5, 1968?","SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = ""February 5, 1968""" Who won the Men's Doubles when Karina de Wit won the Women's Singles?,"SELECT mens_doubles FROM table_12164707_1 WHERE womens_singles = ""Karina de Wit""" What is the age of the youngest female device user?,SELECT MIN(age) FROM gender_age WHERE gender = 'F' Is MP4 the most popular format?,SELECT formats FROM files GROUP BY formats ORDER BY COUNT ( * ) DESC LIMIT 1 What was the date of the game that lasted 75:43?,"SELECT date FROM table_name_93 WHERE length_of_game = ""75:43""" "On August 10, what was the record against the Expos?","SELECT record FROM table_name_21 WHERE opponent = ""expos"" AND date = ""august 10""" show the problem status code on Middleware,SELECT problem_status_code FROM problem_log WHERE problem_category_code = 'Middleware' What was 1948's pick?,SELECT pick FROM table_name_72 WHERE year = 1948 What is the total share (in percent) of all the channels owned by CCTV?,SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV' What are the notes for the time at 3:19.167?,"SELECT notes FROM table_name_85 WHERE time = ""3:19.167""" Where did Geelong play as the away team?,"SELECT venue FROM table_name_14 WHERE away_team = ""geelong""" "What is Series, when Date is ""June 7""?","SELECT series FROM table_name_74 WHERE date = ""june 7""" In what year did the episodes titled DWB get an award?,SELECT DISTINCT T1.year FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.title = 'DWB' AND T1.result = 'Winner' What is the Lomavren associated with a Persian of se?,"SELECT lomavren FROM table_name_32 WHERE persian = ""se""" What are their countries?,SELECT country FROM artist WHERE artist_id NOT IN ( SELECT artist_id FROM exhibition ) What is the Name of the stage with a Length of 16.62km and Time of 15:10?,"SELECT name FROM table_name_11 WHERE length = ""16.62km"" AND time = ""15:10""" "Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?","SELECT college_junior_club_team FROM table_name_58 WHERE position = ""defence"" AND nationality = ""czechoslovakia""" Return the duration of the actor with the greatest age.,SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1 "What are the song titles on the album ""A Kiss Before You Go: Live in Hamburg""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = ""A Kiss Before You Go: Live in Hamburg""" "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.",SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC "Which Senior status has a Chief Judge of —, a Reason for termination of death, and Active service of 1967–1983?","SELECT senior_status FROM table_name_18 WHERE chief_judge = ""—"" AND reason_for_termination = ""death"" AND active_service = ""1967–1983""" What is the Tyre for the united states grand prix?,"SELECT tyre FROM table_name_5 WHERE race = ""united states grand prix""" Who are the drivers with 133 laps in OC class?,"SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = ""oc""" Who was the home team when the VFL played Kardinia Park?,"SELECT home_team AS score FROM table_name_27 WHERE venue = ""kardinia park""" How many students are affected by food related allergies?,"SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = ""food""" Which Home team has a Game of game 5?,"SELECT home_team FROM table_name_85 WHERE game = ""game 5""" "How much Gold has a Silver smaller than 3, and a Total of 9, and a Bronze smaller than 1?",SELECT COUNT(gold) FROM table_name_26 WHERE silver < 3 AND total = 9 AND bronze < 1 The episode with production code 9abx02 was originally aired on what date?,"SELECT original_air_date FROM table_10088101_1 WHERE production_code = ""9ABX02""" Which MWEHL team has player Ben Johnson?,"SELECT mwehl_team FROM table_name_29 WHERE player = ""ben johnson""" "What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?",SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.79 "What is Run 1, when Team is ""Italy (ITA) Italy I""?","SELECT run_1 FROM table_name_15 WHERE team = ""italy (ita) italy i""" Who visited on April 29?,"SELECT visitor FROM table_name_35 WHERE date = ""april 29""" what's the preliminaries with average being 9.135,"SELECT preliminaries FROM table_11970261_2 WHERE average = ""9.135""" Which race has a Margin of 8?,"SELECT race FROM table_name_5 WHERE margin = ""8""" Complaint about Credit Card mostly came from clients of which age group?,"SELECT SUM(CASE WHEN T1.age > 13 AND T1.age <= 19 THEN 1 ELSE 0 END), SUM(CASE WHEN T1.age > 19 AND T1.age <= 65 THEN 1 ELSE 0 END) AS adult , SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END) AS elder FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card'" Name all the list titles created by user 4208563.,SELECT list_title FROM lists WHERE user_id LIKE 4208563 What is the name of the most recently founded organization in Saudi Arabia?,SELECT T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Saudi Arabia' ORDER BY T1.Established DESC LIMIT 1 What is the total surface area of the countries in the Caribbean region?,"SELECT SUM(SurfaceArea) FROM country WHERE Region = ""Caribbean""" What is the class of the word who's second participle is laug?,"SELECT class FROM table_1745843_5 WHERE part_2 = ""laug""" List all the username and passwords of users with the most popular role.,"SELECT user_name , password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1" Compute the average time in minute for each age group,"SELECT CAST(SUM(CASE WHEN T1.age > 13 AND T1.age <= 19 THEN 60 * strftime('%H', ser_time) + strftime('%M', ser_time) + strftime('%S', ser_time) / 60 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 13 AND T1.age <= 19 THEN 1 ELSE 0 END) AS teenagerAverageMins, CAST(SUM(CASE WHEN T1.age > 19 AND T1.age <= 65 THEN 60 * strftime('%H', ser_time) + strftime('%M', ser_time) + strftime('%S', ser_time) / 60 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 19 AND T1.age <= 65 THEN 1 ELSE 0 END) AS adultAverageMins , CAST(SUM(CASE WHEN T1.age > 65 THEN 60 * strftime('%H', ser_time) + strftime('%M', ser_time) + strftime('%S', ser_time) / 60 ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END) AS elderAverageMins FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client`" List all the junior senators in 1997.,"SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.start LIKE '1997%' AND T2.state_rank = 'junior'" what is the minister name of the party with 2 events,SELECT T2.Minister FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING count ( * ) = 2 Name the game site with result of l 7-38,"SELECT game_site FROM table_name_36 WHERE result = ""l 7-38""" How many flights have destination ATO?,"SELECT count(*) FROM FLIGHTS WHERE DestAirport = ""ATO""" What was its description?,"SELECT T1.fault_log_entry_id , T1.fault_description FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1" What was the attendance when Hawthorn played as home team?,"SELECT SUM(crowd) FROM table_name_25 WHERE home_team = ""hawthorn""" Provide the page IDs and name of the menu which had the highest page count.,"SELECT T1.page_number, T2.name FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id ORDER BY T2.page_count DESC LIMIT 1" Who was asked 20 questions in the issue where the cover model is Linda Brava?,"SELECT 20 AS _questions FROM table_1566850_9 WHERE cover_model = ""Linda Brava""" What percentage of elderly customers who are never married in the place with geographic ID 24?,SELECT CAST(SUM(CASE WHEN T1.MARITAL_STATUS = 'never married' THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.GEOID = 24 What is the total number scored for the team that had 19 points and a position larger than 4?,SELECT COUNT(scored) FROM table_name_48 WHERE position > 4 AND points = 19 What is the total number of runs scored by the batsmen during the 2nd inning of the match ID 335988?,SELECT SUM(Runs_Scored) FROM Batsman_Scored WHERE Match_Id = 335988 AND Innings_No = 2 "What is the total quantity of ""Telescoping Adjustable Floor Lamp"" ordered from central superstores?",SELECT SUM(T1.Quantity) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'Telescoping Adjustable Floor Lamp' "Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5?","SELECT MIN(touchdowns) FROM table_name_98 WHERE extra_points < 14 AND player = ""white"" AND points < 5" How many number of donations did the project 'A Rug For Reaching Readers' get?,SELECT SUM(T2.donation_total) FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.title LIKE 'A Rug For Reaching Readers' List the names of shops that have no devices in stock.,SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock) How many different genders are there in the dorms?,SELECT count(DISTINCT gender) FROM dorm Which major has between 2 and 30 number of students? List major and the number of students.,"SELECT Major , count(*) FROM Student GROUP BY Major HAVING count(Major) BETWEEN 2 AND 30;" Which major has most number of students?,SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1 What is the earliest year a Baylor player made the list?,"SELECT MIN(year) FROM table_name_79 WHERE college_country = ""baylor""" what is the highest number of dismissals in a match with 8 innings,SELECT COUNT(dismissals) FROM table_19870086_24 WHERE innings = 8 "Identify the total weight of shipments transported to San Mateo, California, in 2016.","SELECT SUM(T1.weight) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city_name = 'San Mateo' AND STRFTIME('%Y', T1.ship_date) = '2016'" What ride opened after 2011?,SELECT current_name FROM table_name_91 WHERE year_first_opened > 2011 "What Year has an (Aramac) of 832 and a Population (Total) less than 3,762?",SELECT SUM(year) FROM table_name_42 WHERE _aramac_ = 832 AND population__total_ < 3 OFFSET 762 How many people were assisted in 1997?,"SELECT people_assisted FROM table_name_14 WHERE year = ""1997""" What years have joyce couwenberg as the character?,"SELECT years FROM table_name_62 WHERE character = ""joyce couwenberg""" "Which category does ""tofu"" belong to?",SELECT T2.CategoryName FROM Products AS T1 INNER JOIN Categories AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.ProductName = 'Tofu' How many sanitarian employees in Chicago are from the zip code 60617?,SELECT COUNT(employee_id) FROM employee WHERE zip = '60617' Please list the texts of all the tweets posted from Buenos Aires with a positive sentiment.,SELECT T1.text FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.Sentiment > 0 AND T2.City = 'Buenos Aires' "Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?","SELECT MAX(villages) FROM table_name_92 WHERE hanzi = ""南流乡"" AND population > 24 OFFSET 802" What is the Winners when the United States is the runner-up at st. germain golf club?,"SELECT winners FROM table_name_90 WHERE runners_up = ""united states"" AND venue = ""st. germain golf club""" How many headquarters are there listed for HSBC?,"SELECT COUNT(headquarters) FROM table_1682026_7 WHERE company = ""HSBC""" "What is the new classification for La Mirada, California?","SELECT new_classification FROM table_name_69 WHERE location = ""la mirada, california""" What is the percentage of Harvard university's international students in 2011?,SELECT T1.pct_international_students FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Harvard University' "Among the countries that use Bosnian as their language, how many of them don't have a positive population growth rate?",SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN population AS T3 ON T3.Country = T2.Country WHERE T2.Name = 'Bosnian' AND T3.Population_Growth < 0 Please list the home phone numbers of the employees who are in charge of the sales in the territories in the Eastern Region.,SELECT T1.HomePhone FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T4.RegionDescription = 'Eastern ' GROUP BY T1.HomePhone What was the studio for The Hard Way in 1943?,"SELECT studio FROM table_name_77 WHERE year = 1943 AND title = ""the hard way""" "What Main Location(s) has an Area of 19,800 HA?","SELECT main_location_s_ FROM table_name_16 WHERE area = ""19,800 ha""" Write down the description and series code of Benin in year 2005.,"SELECT T2.Description, T2.Seriescode FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.TableName = 'Benin' AND T2.Year = 'YR2005'" Great! Now can you update this list to include the genders of all of these individuals?,"SELECT T1.staff_id , T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Department Manager""" "what is the color code of product name ""chervil""?","SELECT t1.color_code FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" what is the capacity percentage of New Meadowlands Stadium,"SELECT Capacity_Percentage FROM stadium where name = ""New Meadowlands Stadium""" Which 1999 has 2000 as the year-end championship?,"SELECT 1999 FROM table_name_40 WHERE 2000 = ""year-end championship""" "What is the record on October 13, when philadelphia was the home team?","SELECT record FROM table_name_47 WHERE home = ""philadelphia"" AND date = ""october 13""" How many numbers have the product code of 2.6?,"SELECT _number FROM table_20124413_2 WHERE prod_code = ""2.6""" Name the Fixtures Sec which has a Season of 2009–2010,"SELECT fixtures_sec FROM table_name_12 WHERE season = ""2009–2010""" Which club has 15 losses and 14 wins?,SELECT club FROM table_name_60 WHERE losses = 15 AND wins = 14 Please list all the film titles.,SELECT title from film How many product names does the supplier Exotic Liquids have?,SELECT COUNT(T1.ProductName) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Exotic Liquids' Which Tournament has a 2002 of grand slam tournaments?,"SELECT tournament FROM table_name_82 WHERE 2002 = ""grand slam tournaments""" What is the birth date of the poker player with the lowest earnings?,SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1 List all bounding box widths and heights of object sample ID 2.,"SELECT W, H FROM IMG_OBJ WHERE OBJ_SAMPLE_ID = 2" Show the name for regions not affected.,SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region) What is the Result with a Date with 22 january 2008?,"SELECT result FROM table_name_43 WHERE date = ""22 january 2008""" What are the names of the characters voiced by Frank Welker?,SELECT character FROM `voice-actors` WHERE 'voice-actor' = 'Frank Welker' "If the team is Rubio ñú, what is the 08 points?","SELECT 08 AS _pts FROM table_22011138_7 WHERE team = ""Rubio Ñú""" "What is the mean year number where there are more than 0 wins, the class is 250cc, and the points are 95?","SELECT AVG(year) FROM table_name_66 WHERE wins > 0 AND class = ""250cc"" AND points = 95" What 2007 has 236 for 2006?,"SELECT 2007 FROM table_name_70 WHERE 2006 = ""236""" Give the districts which have two or more addresses.,SELECT district FROM address GROUP BY district HAVING count(*) >= 2 What is the first name of the male employee who has a western name style?,SELECT T2.FirstName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.NameStyle = 0 AND T1.Gender = 'M' what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.,"SELECT max(num_of_shops) , avg(Num_of_Factories) FROM manufacturer WHERE open_year < 1990" What was the date of the earliest payment?,SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1 What state does he live in?,"SELECT state FROM customers WHERE first_name = ""Roberto"" AND last_name = ""Almeida""" How many Catalan-language Wikipedia pages are there overall?,SELECT pages FROM langs WHERE lang = 'ca' How many stadiums are there?,select count ( * ) from stadium What is the broadcast are for channel 1?,SELECT broadcast_area FROM table_2638104_1 WHERE channel = 1 Which To par has a Player of bernhard langer?,"SELECT to_par FROM table_name_34 WHERE player = ""bernhard langer""" "ok, which of them is the most common one?",SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count ( * ) DESC LIMIT 1 What's the record after week 16?,SELECT record FROM table_name_80 WHERE week > 16 Tell me the sex of 1005 and 1004 and their city code ..,"SELECT sex, city_code FROM STUDENT WHERE stuid = 1005 or stuid = 1004" What Volume:Issue that has Peter Cetera as the artist and was on top for longer than 1 week?,"SELECT volume AS :issue FROM table_name_97 WHERE weeks_on_top > 1 AND artist = ""peter cetera""" "Give the student's last name that gave the highest student satisfaction for the course ""Intro to Database 2"".",SELECT T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Intro to Database 2' ORDER BY T2.sat DESC LIMIT 1 Find the name and address of the customers who have both New and Pending orders.,"SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""New"" INTERSECT SELECT T1.customer_name , T1.customer_address FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = ""Pending""" What was the weight of Serhiy Alfyorov?,"SELECT weight FROM table_name_50 WHERE name = ""serhiy alfyorov""" "Among the incidents in January, 2018, how many of them were stated ""against Property"" in the FBI classification?","SELECT SUM(CASE WHEN SUBSTR(T2.date, 5, 4) = '2018' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.crime_against = 'Property' AND SUBSTR(T2.date, 1, 1) = '1'" And what is the zip postcode of the address with monthly rental 1297.807?,SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id where T2.monthly_rental = 1297.807 "Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?","SELECT AVG(car__number) FROM table_name_95 WHERE team = ""hendrick motorsports"" AND driver = ""mark martin"" AND pos > 4" What room seats 120 people?,SELECT * FROM classroom WHERE capacity = 120 "What is the label for the catalog of none, and is in the United Kingdom?","SELECT label FROM table_name_12 WHERE catalog = ""none"" AND region = ""united kingdom""" what is the circuit when the winner is stan jones and the race is phillip island trophy race?,"SELECT circuit FROM table_name_3 WHERE winner = ""stan jones"" AND race = ""phillip island trophy race""" What are the names of all European countries with at least 3 manufacturers?,SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3; "Show the prices of the products named ""Dining"" or ""Trading Policy"".","SELECT Product_Price FROM Products WHERE Product_Name = ""Dining"" OR Product_Name = ""Trading Policy""" List names of each manufacturer?,select name from manufacturers What is the venue name of Bandladore?,SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_ID = T2.City_ID WHERE T2.City_Name = 'Bangalore' What is the location/attendance of the game with a 3-1 record?,"SELECT location_attendance FROM table_name_1 WHERE record = ""3-1""" "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.","SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC" How many players are on a team? | Which team are you referring to? | The Boston Red Stockings.,SELECT count ( * ) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' Give me IDs of instructors in the Marketing department,select ID from instructor where dept_name = 'Marketing' HOW MANY PEOPLE HAS KILLED AT SOUTH KOREA ?,"SELECT killed FROM perpetrator WHERE Country = ""South Korea""" Return the names and ids of all products whose price is between 600 and 700.,"SELECT product_name , product_id FROM products WHERE product_price BETWEEN 600 AND 700" "Which League Goals have FA Cup Apps of 2, and Total Goals smaller than 0?","SELECT AVG(league_goals) FROM table_name_80 WHERE fa_cup_apps = ""2"" AND total_goals < 0" What are the original air date(s) for episodes with 8.63 million viewers?,"SELECT original_airdate FROM table_2501754_2 WHERE viewing_figures_millions = ""8.63""" Name the number of district for bill shuster,"SELECT COUNT(district) FROM table_25030512_41 WHERE incumbent = ""Bill Shuster""" Which major has the most students?,SELECT Major FROM STUDENT GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1 "What is Name, when Location is Tanzania, and when Novelty is Gen Nov?","SELECT name FROM table_name_88 WHERE location = ""tanzania"" AND novelty = ""gen nov""" What is the phone number of the customer who has filed the most recent complaint?,SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1 What is the voltage of the Pentiumiii866 microprocessor with a socket 370?,"SELECT voltage FROM table_name_8 WHERE socket = ""socket 370"" AND model_number = ""pentiumiii866""" how many subdivisions have an English Name of jiyang?,"SELECT COUNT(population) FROM table_name_24 WHERE english_name = ""jiyang""" List the votes of elections in descending order.,SELECT Votes FROM election ORDER BY Votes DESC Which championship had a Circuit of le mans?,"SELECT championship FROM table_name_39 WHERE circuit = ""le mans""" What is the smallest ERP W with a frequency MHz of 94.9?,SELECT MIN(erp_w) FROM table_name_26 WHERE frequency_mhz = 94.9 What are the GDP and population of the city that already served as a host more than once?,"SELECT t1.gdp , t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING count(*) > 1" Find the employee id for all employees who earn more than the average salary.,SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) List the school color of the school that has the largest enrollment.,SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 How many tracks are in the AAC audio file media type?,"SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = ""AAC audio file""" "Among all the users who use a vivo device, what is the age of the youngest user?",SELECT T1.age FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' ORDER BY T1.age LIMIT 1 Which rank is the most common among captains?,SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1 Tell me the home team score for essendon,"SELECT home_team AS score FROM table_name_54 WHERE home_team = ""essendon""" could you please let me know the ID of the stations with 10 precipitation?,SELECT t2.id FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id where t1.precipitation = 10 Which position was morristown minutemen in?,"SELECT position FROM table_name_1 WHERE team = ""morristown minutemen""" What was the Venue in 2003?,"SELECT venue FROM table_name_16 WHERE date = ""2003""" what is Gina Gegeneres's actor id?,SELECT actor_id from actor where first_name = 'GINA' and last_name = 'DEGENERES' What is the price of Chevrolet Vega 2300?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'chevrolet vega 2300' What are the names of catalog entries with level number 8?,"SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = ""8""" When was university of Rhode island founded?,"SELECT founded FROM university WHERE school = ""University of Rhode Island""" What is all the information about the Marketing department?,SELECT * FROM departments WHERE department_name = 'Marketing' What was the score at the Tie no. 1 game?,"SELECT score FROM table_name_37 WHERE tie_no = ""1""" Name the james e. holmes for erselle young,"SELECT james_e_holmes FROM table_25330991_3 WHERE reidsville = ""Erselle Young""" What is the country of Paavo Yrjölä?,"SELECT country FROM table_26454128_4 WHERE athlete = ""Paavo Yrjölä""" what is the phone number of employees whose salary is in the range of 8000 and 12000?,SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000 What Pitch is located at Isle of Man?,"SELECT pitch FROM table_name_97 WHERE location = ""isle of man""" "If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?","SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = ""1962"" AND country_of_origin = ""Denmark""" "what's the former province with area (km 2 ) being 12,245.9","SELECT former_province FROM table_1404456_1 WHERE area__km_2__ = ""12,245.9""" What is the kickoff time for the Hubert H. Humphrey Metrodome?,"SELECT kickoff_[a_] FROM table_name_12 WHERE game_site = ""hubert h. humphrey metrodome""" Which parts have more than 2 faults? Show the part name and id.,"SELECT T1.part_name , T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING count(*) > 2" Which motorway is in brod-posavina county and has a scheduled completion in 2013?,"SELECT motorway FROM table_name_68 WHERE scheduled_completion = ""2013"" AND county = ""brod-posavina""" What is the association agreement for bosnia and herzegovina?,"SELECT association_agreement FROM table_name_69 WHERE state = ""bosnia and herzegovina""" Which American Labor candidate ran against Republican Thomas E. Dewey?,"SELECT american_labor_ticket FROM table_name_91 WHERE republican_ticket = ""thomas e. dewey""" "Which Name has a Nationality of nor, and Points of 136?","SELECT name FROM table_name_99 WHERE nationality = ""nor"" AND points = 136" What is the N117/2400 IEC3 associated with an N100IEC3 of 25?,"SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = ""25""" What's Russia's lane when they were ranked before 1?,"SELECT MAX(lane) FROM table_name_60 WHERE nationality = ""russia"" AND rank < 1" Who is the January playmate with a September playmate Nikki Schieler?,"SELECT january FROM table_name_15 WHERE september = ""nikki schieler""" "How many products using ""roadster_black_small.gif"" as the thumbnail photo?",SELECT COUNT(DISTINCT T2.ProductID) FROM ProductPhoto AS T1 INNER JOIN ProductProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T1.LargePhotoFileName = 'roadster_black_large.gif' Who was the game on January 26 played against?,"SELECT team FROM table_23285761_7 WHERE date = ""January 26""" What was the average salary of players in 2010?,SELECT avg ( salary ) FROM salary WHERE YEAR = 2010 What are the first names of all teachers who have taught a course and the corresponding descriptions?,"SELECT T2.emp_fname , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code" "For each origin, how many flights came from there?","SELECT origin , count(*) FROM Flight GROUP BY origin" How many of them involve in detention?,SELECT count ( distinct T2.teacher_id ) FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id List down all of the film titles that are rated for general audiences.,SELECT title FROM film WHERE rating = 'G' What was the nationality of five-eighth player Darren Lockyer?,"SELECT nationality FROM table_name_96 WHERE player = ""darren lockyer"" AND position = ""five-eighth""" What is the least number of silver medals won,SELECT MIN(silver) FROM table_22355_50 What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?,"SELECT MIN(laps) FROM table_name_8 WHERE grid > 3 AND time = ""39:24.967""" What genre is Led Zeppelin?,"SELECT genre FROM table_name_85 WHERE artist = ""led zeppelin""" What is the song in the volume with the maximum weeks on top?,SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 "Among the matches in 2013, what is the percentage of winning of the team ""Mumbai Indians""?",SELECT CAST(SUM(CASE WHEN T2.Match_Winner = 7 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Match_Winner) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Match_Date LIKE '2013%' What week number saw a w 31-16 result?,"SELECT MIN(week) FROM table_name_21 WHERE result = ""w 31-16""" List grade points by letter grade?,"SELECT gradepoint,lettergrade FROM GRADECONVERSION" What is Elizabeth Simmonds' average lane number?,"SELECT AVG(lane) FROM table_name_21 WHERE name = ""elizabeth simmonds""" "For the movies in English that are the oldest, how many of them have the lowest rating?",SELECT COUNT(DISTINCT T1.movieid) FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.year = 1 AND T2.rating = 1 AND T1.isEnglish = 'T' What are the kinds of industries in the table?,select distinct Industry from company What's the quarterfinals when the rank was bronze?,"SELECT quarterfinals FROM table_name_79 WHERE rank = ""bronze""" "Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5?","SELECT MIN(extra_points) FROM table_name_86 WHERE player = ""ross kidston"" AND points < 5" Great! Can you please show me a list of Staff IDs for those who have the job_title_code of Department Manager?,"SELECT T1.staff_id FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Department Manager""" Name the title for season number 35,SELECT title FROM table_25764073_3 WHERE season__number = 35 "What is Place, when Player is ""Arnold Palmer""?","SELECT place FROM table_name_23 WHERE player = ""arnold palmer""" How many territories are there?,SELECT COUNT(TerritoryID) FROM Territories What is the Country of the Championship with a Score of 293?,"SELECT country FROM table_name_12 WHERE score = ""293""" In which cities are the customers of Costa Rica located?,SELECT T1.city FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Costa Rica' What is the career SR with a 1r in 1985?,"SELECT career_sr FROM table_name_43 WHERE 1985 = ""1r""" Who is Essendon's home team?,"SELECT MIN(crowd) FROM table_name_94 WHERE home_team = ""essendon""" Name the position for pick number 128,SELECT position FROM table_1473672_8 WHERE pick__number = 128 What was the record for the Sun Devils when they scored 44 points?,SELECT record FROM table_21007615_1 WHERE sun_devils_points = 44 Show names of cities and names of counties they are in.,"SELECT T1.Name, T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" What year was the championship in Wimbledon (2)?,"SELECT year FROM table_1028356_3 WHERE championship = ""Wimbledon (2)""" How many flights do we have?,SELECT count(*) FROM FLIGHTS Show all distinct positions of matches.,SELECT DISTINCT POSITION FROM match_season Find the birth dates corresponding to employees who live in the city of Edmonton.,"SELECT BirthDate FROM EMPLOYEE WHERE City = ""Edmonton""" What is the postion of the player listed from Dooly County High School?,"SELECT position FROM table_11677691_10 WHERE school = ""Dooly County High school""" What is the most popular movie directed by Ron Clements?,"SELECT T2.name FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T2.name = T1.movie_title WHERE T2.director = 'Ron Clements' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS int) DESC LIMIT 1" Date for less than 122 countries and a 47% rank?,"SELECT date FROM table_name_60 WHERE countries_surveyed < 122 AND _percentage_rank = ""47""" What is the average coldest temperature for the zip code of 94301 and what stations are within the zip code? Include the latitude and longitude as well.,"SELECT AVG(T3.min_temperature_f), T1.long, T1.lat FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.zip_code = 94301" Name the award name for black ocean current,"SELECT award_name FROM table_15584199_3 WHERE team_name = ""BLACK OCEAN CURRENT""" Who constructed olivier panis' car that retired after +1 lap?,"SELECT constructor FROM table_name_4 WHERE time_retired = ""+1 lap"" AND driver = ""olivier panis""" Which year was Stanley open?,"SELECT Open_year FROM branch WHERE name = ""Stanley""" I want to know the number of public universities with over 20000 enrollment size.,SELECT count ( * ) FROM university WHERE affiliation = 'Public' and enrollment > 20000 "what's the occupied territory with estimated deaths of 600,000","SELECT occupied_territory FROM table_10335_1 WHERE estimated_deaths = ""600,000""" What 1983 has a 1975 of career statistics?,"SELECT 1983 FROM table_name_44 WHERE 1975 = ""career statistics""" Who wrote episode 27 in the series that was directed by Wendey Stanzler?,"SELECT written_by FROM table_28768925_1 WHERE directed_by = ""Wendey Stanzler"" AND no_in_series = 27" "List the tail number of flights that flew on August 17, 2018.",SELECT TAIL_NUM FROM Airlines WHERE FL_DATE = '2018/8/17' GROUP BY TAIL_NUM What team belongs to Delmar?,"SELECT team FROM table_name_36 WHERE school = ""delmar""" When 6606 is the sail number what is the type of yacht?,"SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = ""6606""" How many points did the 2005 1st place team receive?,SELECT points FROM table_name_90 WHERE year = 2005 Return the text of tweets about the topic 'intern'.,SELECT text FROM tweets WHERE text LIKE '%intern%' Driving Force EX of 25cm (10-inch) involves what feature?,"SELECT feature FROM table_name_46 WHERE driving_force_ex = ""25cm (10-inch)""" "What is Second Vice President, when Inaugurated is ""26 March 1928""?","SELECT second_vice_president FROM table_name_85 WHERE inaugurated = ""26 march 1928""" how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?,"SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = ""Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%""" What is the first name of the professor who is teaching CIS-220 and QM-261?,SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261' "When the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against?",SELECT COUNT(goals_against) FROM table_name_14 WHERE points_1 = 44 AND goals_for > 65 Name the most number of leitrim,"SELECT MAX(no) FROM table_1705429_1 WHERE constituency = ""Leitrim""" "Which Leading Scorer has an Opponent of @ seattle, and a Record of 14-16?","SELECT Leading AS scorer FROM table_name_59 WHERE opponent = ""@ seattle"" AND record = ""14-16""" What is the highest value for SF round for the country of England?,"SELECT MAX(sf_round) FROM table_23293785_2 WHERE country = ""England""" Loss of de la rosa (8–8) has what average attendance?,"SELECT AVG(attendance) FROM table_name_97 WHERE loss = ""de la rosa (8–8)""" What is the HDTV of the Music Content Channel?,"SELECT hdtv FROM table_name_60 WHERE content = ""music""" "In the state of Connecticut, what is the name of the instution with the highest percent rank for freshman retention percentage within the sector?",SELECT chronname FROM institution_details WHERE state = 'Connecticut' AND retain_percentile = ( SELECT MAX(retain_percentile) FROM institution_details WHERE state = 'Connecticut' ) What's the average total cargo in metric tonnes that has an 11.8% Change?,"SELECT AVG(total_cargo__metric_tonnes_) FROM table_name_97 WHERE _percentage_change = ""11.8%""" What is the rank for Omni nashville hotel?,"SELECT SUM(rank) FROM table_name_89 WHERE name = ""omni nashville hotel""" Find the name and hours of project that has the most number of scientists.,"SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1" Show all template ids and number of documents using each template.,"SELECT template_id , count(*) FROM Documents GROUP BY template_id" What's the engine used for rounds 5-6?,"SELECT engine FROM table_name_1 WHERE rounds = ""5-6""" "List down the ID of toss winners who decided to bat after winning the ""toss of the coin"".",SELECT Toss_Winner FROM Match WHERE Toss_Decide = 2 What's the frequency of the call sign DYFR with 10KW of power?,"SELECT frequency FROM table_name_50 WHERE power__kw_ = ""10kw"" AND call_sign = ""dyfr""" How many long reviews does user No. 36139 give for the Yelp businesses?,SELECT COUNT(review_length) FROM Reviews WHERE user_id = 36139 AND review_length LIKE 'long' Show the lieutenant governor and comptroller from the democratic party.,"SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = ""Democratic""" "What is the mountain classification of Mario Cipollini, who has a general classification of Pavel tonkov?","SELECT mountains_classification FROM table_name_60 WHERE winner = ""mario cipollini"" AND general_classification = ""pavel tonkov""" What are the country of FTE_AY 178?,SELECT t1.county FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus where t2.FTE_AY = 178 Which sponsor has Mark Hughes as manager?,"SELECT shirt_sponsor FROM table_name_23 WHERE manager = ""mark hughes""" What is the lowest crowd at corio oval?,"SELECT MIN(crowd) FROM table_name_20 WHERE venue = ""corio oval""" "List the hardware model name for the phones that have screen mode type ""Text"" or RAM size greater than 32.","SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = ""Text"" OR T1.RAM_MiB > 32;" How many laps did Jo Bonnier driver when the grid number was smaller than 11?,"SELECT SUM(laps) FROM table_name_6 WHERE driver = ""jo bonnier"" AND grid < 11" What was the location and the attendance for the game on October 12?,"SELECT location_attendance FROM table_27756572_2 WHERE date = ""October 12""" "Among the games published by Nintendo, what is the percentage of those in the genre of sports?",SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Sports' THEN T1.id ELSE NULL END) AS REAL) * 100/ COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = 'Nintendo' How old are the students with allergies to food and animal types on average?,"SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""animal"")" How many times this institution was founded that was nicknamed Beavers?,"SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = ""Beavers""" Who is the publisher of 3D Lemmings?,SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = '3D Lemmings' "what instructors teach courses? | Do you mean the first names of instructors who teach courses? | Yes, the first names of all instructors who teach courses,",SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num Find the team of each player and sort them in ascending alphabetical order.,SELECT Team FROM player ORDER BY Team ASC find the date moved in for the resident id 6,SELECT date_moved_in from residents where resident_id = 6 How many attendances have w 48-10 as the result?,"SELECT SUM(attendance) FROM table_name_6 WHERE result = ""w 48-10""" Please show the most common status of roller coasters.,SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 "What are all of the products whose name includes the substring ""Scanner""?","SELECT product FROM product WHERE product LIKE ""%Scanner%""" What is the ratio of the highest and lowest temperature in store 11?,SELECT CAST((MAX(T1.tmax) - MIN(T1.tmin)) AS REAL) / MIN(T1.tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 11 Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.,SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased) > 50000 OR avg(total_amount_purchased) < 30000 can you show me a list of cinema names?,SELECT Name FROM cinema which one is the opened first?,SELECT Name FROM cinema ORDER BY Openning_year ASC LIMIT 1 what is the drawn when the won is 12?,"SELECT drawn FROM table_12828723_4 WHERE won = ""12""" How many poles in the year 2000,SELECT MAX(poles) FROM table_1875157_1 WHERE year = 2000 How many cardiff wins have a draw greater than 27?,SELECT COUNT(cardiff_win) FROM table_name_26 WHERE draw > 27 What was the score of the game against Minnesota?,"SELECT score FROM table_name_55 WHERE opponent = ""minnesota""" Who ran in the race for Jack Brooks' seat?,"SELECT candidates FROM table_1341865_45 WHERE incumbent = ""Jack Brooks""" "When the Total is less than 1, how many Bronze medals are won?",SELECT MIN(bronze) FROM table_name_27 WHERE total < 1 "Among the students with disabilities, list any five students' names who are unemployed.",SELECT T1.name FROM disabled AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name LIMIT 5 What is the capacity of code f4r?,"SELECT capacity FROM table_name_81 WHERE code = ""f4r""" What is the horsepower and model year of the car named Subaru Dl?,"SELECT T1.horsepower, T2.model_year FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T1.car_name = 'subaru dl'" "What are the dates of those, please?","SELECT project_id,Document_Date FROM Documents GROUP BY project_id HAVING count ( * ) > = 3" "And how many are female? | Do you mean the people who are female? | Yes, how many are female, have gender ""F""",SELECT count ( * ) from people where sex = 'F' What are all the labels?,SELECT DISTINCT label FROM Albums Which team had 342 total points? ,SELECT team FROM table_24784769_1 WHERE total_points = 342 "What country has a to par less than 13, with wayne grady as the player?","SELECT country FROM table_name_6 WHERE to_par < 13 AND player = ""wayne grady""" "Find all the stage positions of the musicians with first name ""Solveig""","SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = ""Solveig""" "Among the female legislators, what is the percentage of the senators in Maine?",SELECT CAST(SUM(CASE WHEN T2.type = 'sen' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.type) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'ME' AND T1.gender_bio = 'F' Return the name of the airport with code 'AKO'.,"SELECT AirportName FROM AIRPORTS WHERE AirportCode = ""AKO""" What is the average price of products that cost between 100 and 200?,SELECT AVG(Price) FROM Products WHERE Price BETWEEN 100 AND 200 Find the name of route that has the lowest number of deliveries?,SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY count ( * ) DESC LIMIT 1 What is the depth at the UTC time of 12:19:36?,"SELECT depth FROM table_26950408_1 WHERE time___utc__ = ""12:19:36""" How many countries are the Tata Sabaya Lava domes located in?,"SELECT COUNT(country) FROM table_1081235_1 WHERE name_of_lava_dome = ""Tata Sabaya lava domes""" "Which dish has the highest price on the menu ""Zentral Theater Terrace""? Please give its name.",SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Zentral Theater Terrace' ORDER BY T1.price DESC LIMIT 1 "What was the Runner-up with Ohio as the National Champion in Tucson, AZ?","SELECT runner_up FROM table_name_53 WHERE national_champion = ""ohio"" AND location = ""tucson, az""" How many numbers were recorded under miles for the 3:00:46 race time?,"SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = ""3:00:46""" Find the name of project that continues for the longest time.,SELECT name FROM projects ORDER BY hours DESC LIMIT 1 can you show me an average of revenue?,SELECT avg ( Revenue ) FROM manufacturers "Please state any three business numbers in AZ state that have received the ""Great experience"" review stars.",SELECT DISTINCT T2.business_id FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.state LIKE 'AZ' AND T1.review_stars = 5 LIMIT 3 Find the first names of the teachers that teach first grade.,SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 "What is the points number when 20 shows for played, and lost is 0?","SELECT points_for FROM table_name_19 WHERE played = ""20"" AND lost = ""0""" "Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?","SELECT SUM(1956) FROM table_name_40 WHERE county = ""vâlcea"" AND 2011 < 371714" Which cities have exactly 2 parks?,SELECT city FROM park GROUP BY city HAVING count ( * ) = 2 Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s,"SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = ""18h25m37.8s""" Name the year for willie goggin,"SELECT year FROM table_225880_1 WHERE runner_s__up = ""Willie Goggin""" "List all the characteristic names and data types of product ""cumin"".","SELECT t3.characteristic_name, t3.characteristic_data_type 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 = ""cumin""" Who was the Opponent when Terry Miles was the Man of the Match?,"SELECT opponent FROM table_name_1 WHERE man_of_the_match = ""terry miles""" what is the highest rank with a total less than 1?,SELECT MAX(rank) FROM table_name_68 WHERE total < 1 What are the names of the different artists from Bangladesh who never received a rating higher than a 7?,"SELECT DISTINCT artist_name FROM artist WHERE country = ""Bangladesh"" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7" "What number has the builder ruston hornsby, the date 1961, and the name Topsy?","SELECT COUNT(number) FROM table_name_10 WHERE builder = ""ruston hornsby"" AND date = 1961 AND name = ""topsy""" How many products shipped on 19/11/1994 were ordered on 21/09/1994?,SELECT COUNT(T2.l_partkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderdate = '1994-09-21' AND T2.l_shipdate = '1994-11-19' How many Wikipedia pages with over 4000 different words are there on the Catalan language?,SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 4000 Name for me the total number in attendance for week before 2 and result of t 24-24,"SELECT COUNT(attendance) FROM table_name_60 WHERE result = ""t 24-24"" AND week < 2" "If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?","SELECT COUNT(calculated_activity___bq__) FROM table_26211058_1 WHERE specimen_weight_size = ""1000 g / 8.79 cm""" "Name the most expensive and the least expensive products available, excluding free gifts.","SELECT Name FROM Products WHERE Price IN (( SELECT MAX(Price) FROM Products ), ( SELECT MIN(Price) FROM Products ))" Name all the volcano mountains between the height of 2000 to 4000.,SELECT Name FROM mountain WHERE Type = 'volcano' AND Height BETWEEN 2000 AND 4000 What is the episode title for the episode numbered #1.4?,"SELECT episode_title FROM table_15211468_1 WHERE episode_no = ""#1.4""" Which Launched has Commissioned 6 june 1935?,"SELECT launched FROM table_name_36 WHERE commissioned = ""6 june 1935""" What is the percentage of the teams who had post season (playoff) were ranked number 1?,SELECT CAST(SUM(CASE WHEN rank = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(name) FROM teams How many professors teach a class with the code ACCT-211?,"SELECT count(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = ""ACCT-211""" I want to know the longest Long for santana moss and Att more than 1,"SELECT MIN(long) FROM table_name_5 WHERE player = ""santana moss"" AND att > 1" Find the name of the customers who use the most frequently used payment method.,SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1) What's the Total number of Opening Weekend Net Gross that occured after the year 2012 with a Rank of 1?,SELECT COUNT(opening_weekend_net_gross) FROM table_name_82 WHERE year > 2012 AND rank = 1 Name the junes,SELECT june FROM table_1539201_1 "What was eliminated on the air date of November 3, 2005?","SELECT eliminated FROM table_1893276_2 WHERE air_date = ""November 3, 2005""" What is the average miles per gallon of all the cards with 4 cylinders?,SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4; What are the birthdays of people in ascending order of height?,SELECT Birth_Date FROM People ORDER BY Height ASC What is the longest time for a student from the navy department to be absent from school?,SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'navy' ORDER BY T1.`month` DESC LIMIT 1 "Show the starting years shared by technicians from team ""CLE"" and ""CWS"".","SELECT Starting_Year FROM technician WHERE Team = ""CLE"" INTERSECT SELECT Starting_Year FROM technician WHERE Team = ""CWS""" "What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)?","SELECT nat FROM table_name_76 WHERE app_l_c_e_ = ""0 (0/0/0)"" AND name = ""yahaya""" What is the power at the cebu station?,"SELECT power__kw_ FROM table_19215259_1 WHERE location = ""Cebu""" "Among the customers from the United States, which market segment has the highest number of customers?","SELECT T.c_mktsegment FROM ( SELECT T1.c_mktsegment, COUNT(T1.c_custkey) AS num FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'UNITED STATES' GROUP BY T1.c_mktsegment ) AS T ORDER BY T.num DESC LIMIT 1" What number in season is number 141 in series?,SELECT MAX(no_in_season) FROM table_27491610_2 WHERE no_in_series = 141 who is the incumbent with candidates being bud shuster (r) unopposed,"SELECT incumbent FROM table_1341586_39 WHERE candidates = ""Bud Shuster (R) Unopposed""" Provide address of ID 1?,SELECT address FROM customers WHERE id = 1 What is the ID of audiences that gave the most rating of 5?,SELECT userid FROM u2base WHERE rating = 5 GROUP BY userid ORDER BY COUNT(movieid) DESC LIMIT 1 What is the race class with most number of races.,SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1 Who was the Away team at Arden Street Oval?,"SELECT away_team FROM table_name_98 WHERE venue = ""arden street oval""" Find the name of rooms whose base price is between 120 and 150.,SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150 Who did the Jets play in their pre-week 9 game at the Robert F. Kennedy memorial stadium?,"SELECT opponent FROM table_name_32 WHERE week < 9 AND game_site = ""robert f. kennedy memorial stadium""" What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department?,"SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems'" How many characters where actor/actress is larry lamb?,"SELECT COUNT(character) FROM table_25831483_1 WHERE actor_actress = ""Larry Lamb""" What is the budget in billions of the Treasury Department?,"SELECT Budget_in_Billions FROM department where name = ""Treasury""" Which Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9?,"SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = ""week 11 nov 9""" what is the venue when the event is 4x400 m relay and the competition is asian championships?,"SELECT venue FROM table_name_7 WHERE event = ""4x400 m relay"" AND competition = ""asian championships""" List all the titles and year to date sales by author who are not on contract.,"SELECT T1.title_id, T1.ytd_sales FROM titles AS T1 INNER JOIN titleauthor AS T2 ON T1.title_id = T2.title_id INNER JOIN authors AS T3 ON T2.au_id = T3.au_id WHERE T3.contract = 0" How many cars have more than 4 cylinders?,SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4; What are all the distinct premise types?,SELECT DISTINCT premises_type FROM premises Please list the blocks where all the incidents in the district commanded by Robert A. Rubio took place.,SELECT T2.block FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander = 'Robert A. Rubio' Find the average height and weight for all males (sex is M).,"SELECT avg ( height ) , avg ( weight ) FROM people WHERE sex = 'M'" How many women speak German?,"SELECT females FROM table_name_67 WHERE language = ""german""" How many times was the player drawn that had less than 12 losses and a goal difference of +20?,"SELECT drawn FROM table_name_44 WHERE lost < 12 AND goal_difference = ""+20""" "If the Ovrs is less than 2, what's the average in Wkts?",SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2 Which party had a term start of 5 august 1999?,"SELECT party FROM table_name_95 WHERE term_start = ""5 august 1999""" Find the name of the nurse who has the largest number of appointments.,SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY count(*) DESC LIMIT 1 How many totals have andy north as the player?,"SELECT SUM(total) FROM table_name_96 WHERE player = ""andy north""" "What is the sum of Goals, when Season is ""2005-06"", and when Division is less than 1?","SELECT SUM(goals) FROM table_name_43 WHERE season = ""2005-06"" AND division < 1" Who are all of the players on the Westchester High School club team?,"SELECT player FROM table_10015132_9 WHERE school_club_team = ""Westchester High School""" "What is Jockey, when Post is 12?",SELECT jockey FROM table_name_53 WHERE post = 12 How many TotalEnrollment of Campus California State University-Channel Islands?,"SELECT t2.TotalEnrollment_AY FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus where t1.campus = ""California State University-Channel Islands""" What is the col (m) of the Barurumea Ridge peak? ,"SELECT MAX(col__m_) FROM table_18946749_2 WHERE peak = ""Barurumea Ridge""" which year has the highest number of degrees?,SELECT Year from degrees order by Degrees DESC LIMIT 1 Name the 2010 for 2011 of a and 2008 of 1r,"SELECT 2010 FROM table_name_61 WHERE 2011 = ""a"" AND 2008 = ""1r""" What is the 2012 value when the 2011 and 2007 values are 1R?,"SELECT 2012 FROM table_name_28 WHERE 2011 = ""1r"" AND 2007 = ""1r""" What is the least amount of Miss Airs any country has had?,SELECT MIN(miss_air) FROM table_30008638_1 Which Away team uses Princes Park as it's venue?,"SELECT away_team FROM table_name_77 WHERE venue = ""princes park""" How many customers are there in the customer type with the most customers?,SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1 "How many Drawn have an Against smaller than 5, and a Played smaller than 3?",SELECT COUNT(drawn) FROM table_name_38 WHERE against < 5 AND played < 3 "Show the first name, last name, and phone number for all female faculty members.","SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'" Return the full names and salaries for employees with first names that end with the letter m.,"SELECT first_name , last_name , salary FROM employees WHERE first_name LIKE '%m'" How many students have taken tests?,SELECT count ( distinct student_id ) from student_course_enrolment What is the total price of Ikura ordered in order no. 10273?,SELECT T2.UnitPrice * T2.Quantity FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10273 AND T1.ProductName = 'Ikura' "What are the first and last names of the performer who was in the back stage position for the song ""Badlands""?","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Badlands"" AND T1.StagePosition = ""back""" What products are no longer sold by Northwind?,SELECT ProductName FROM Products WHERE Discontinued = 1 Which manufacturer has a Time/Retired of +15.665?,"SELECT manufacturer FROM table_name_35 WHERE time_retired = ""+15.665""" Record of 3–1 had what Res?,"SELECT res FROM table_name_7 WHERE record = ""3–1""" What is the total number of points when draw is 4?,SELECT COUNT(points) FROM table_name_71 WHERE draw = 4 Which AFC cup does Masahiro Fukasawa have?,"SELECT afc_cup FROM table_name_17 WHERE name = ""masahiro fukasawa""" How many captains are in each rank?,"SELECT COUNT(*), rank FROM captain GROUP BY rank" What are the first and last names for all customers?,"SELECT first_name , last_name FROM Customers;" "What are the last names of faculty in building Barton, sorted by last name?","SELECT Lname FROM FACULTY WHERE Building = ""Barton"" ORDER BY Lname" How many students are in that classroom?,select count ( * ) from list group by classroom order by count ( * ) desc limit 1 Show the transportation method most people choose to get to tourist attractions.,SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1 Give the name of the film for inventory No.3479.,SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.inventory_id = 3479 "What player has a score less than 66, and a Place of t2, in the United States?","SELECT player FROM table_name_72 WHERE score < 66 AND place = ""t2"" AND country = ""united states""" Find the name of each user and number of tweets tweeted by each of them.,"SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid" Harry l Stephen rides a Norton machine on what date?,"SELECT date FROM table_name_56 WHERE machine = ""norton"" AND rider = ""harry l stephen""" What's the name of spain rank greater than 2?,"SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = ""spain""" What is the name of the product with the almost highest review score?,SELECT T1.Name FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Rating = ( SELECT Rating FROM ProductReview ORDER BY Rating DESC LIMIT 1 ) "Among the matches of Delhi Daredevils in 2009, what is the percentage of their matches won by wickets?",SELECT CAST(SUM(CASE WHEN T3.Win_Type = 'wickets' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Win_Type) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner INNER JOIN Win_By AS T3 ON T2.Win_Type = T3.Win_Id WHERE T1.Team_Name = 'Delhi Daredevils' "For the on going assembly item Component ID No. 494, what's the Unit measure for it?",SELECT T2.Name FROM BillOfMaterials AS T1 INNER JOIN UnitMeasure AS T2 ON T1.UnitMeasureCode = T2.UnitMeasureCode WHERE T1.ComponentID = 494 AND T1.EndDate IS NULL GROUP BY T2.name What is the sum of draws for all byes larger than 0?,SELECT SUM(draws) FROM table_name_94 WHERE byes > 0 "Among the countries that have GNP greater than 1500, what is the percentage of the countries have English as its language?","SELECT CAST(SUM(IIF(T2.Language = 'English', 1, 0)) AS REAL) * 100 / COUNT(T1.Code) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GNP > 1500" "What are the full names, departments, cities, and state provinces for each employee?","SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" Find the distinct last names of the students who have class president votes.,SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE what is the score where the record is 1-1,"SELECT ramtha FROM table_26173058_2 WHERE ahli = ""1-1""" WHAT IS THE Indonesia CAPITAL,"SELECT capital from country where country_name = ""Indonesia""" also include the college id in this table,"SELECT T1.Name ,t1.Member_ID,T1.College_ID FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC" What competition was held 1 March 1909?,"SELECT competition FROM table_name_31 WHERE date = ""1 march 1909""" How many patients on average receive combined chemotherapy and radiation therapy procedures each year?,"SELECT CAST(COUNT(PATIENT) AS REAL) / COUNT(DISTINCT strftime('%Y', DATE)) FROM procedures WHERE DESCRIPTION = 'Combined chemotherapy and radiation therapy (procedure)'" "For each position, what is the maximum number of hours for students who spent more than 1000 hours training?","SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos" How many tweets are seen by more than 1000 unique users?,SELECT COUNT(TweetID) AS tweet_number FROM twitter WHERE Reach > 1000 "If the stage is 3, what is the points classification name?",SELECT points_classification FROM table_22941863_19 WHERE stage = 3 What are all of the routes for each source airport? | do you mean the number of all of the routes? | Yes please.,SELECT count ( * ) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name What is the Raw bandwidth (Mbit/s) for the SAS 300?,"SELECT raw_bandwidth__mbit_s_ FROM table_name_8 WHERE name = ""sas 300""" What is the name of the client who has the largest quantity of rented material without returning it?,"SELECT T.first_name FROM ( SELECT T2.first_name, COUNT(T1.rental_date) AS num FROM rental AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.first_name ) AS T ORDER BY T.num DESC LIMIT 1" "If the scoring average is 72.46, what is the best finish?","SELECT best_finish FROM table_22838521_3 WHERE scoring_average = ""72.46""" What was the last episode featuring Rob Estes?,"SELECT final_episode FROM table_name_93 WHERE actor = ""rob estes""" What is the minimum number of starts for the players having a best finish of T18?,"SELECT MIN(starts) FROM table_24747844_2 WHERE best_finish = ""T18""" List down the first name of customers who placed order for product id 1.,SELECT T1.FirstName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T2.ProductID = 1 What is the minimum elevation?,SELECT min ( elevation ) FROM airports What is the total year with a Position of 12th?,"SELECT SUM(year) FROM table_name_89 WHERE position = ""12th""" Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.,SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200 What is the low grid that has brm and over 54 laps?,"SELECT MIN(grid) FROM table_name_20 WHERE constructor = ""brm"" AND laps > 54" Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?,"SELECT team_1 FROM table_name_20 WHERE team_2 = ""olympique lyonnais (d2)""" how many characteristics does the product name 'sesame' have?,"SELECT count ( * ) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" "Among the countries with over 3 organizations, how many of them have an inflation rate of over 5%?",SELECT COUNT(T2.Country) FROM economy AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T2.Country IN ( SELECT Country FROM organization GROUP BY Country HAVING COUNT(Country) > 3 ) AND T1.Inflation > 5 What is the head of government for Don Stephen Senanayake?,"SELECT head_s__of_government FROM table_name_77 WHERE name = ""don stephen senanayake""" "Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?","SELECT SUM(CASE WHEN T2.ARR_DELAY < 0 THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T1.Description = 'New York, NY: John F. Kennedy International'" Is wireless combo keyboard and mouse support part of the hub base class?,"SELECT hub_base_class FROM table_1153898_1 WHERE comparisons = ""Wireless Combo keyboard and mouse support""" What is the ICAO for Seewoosagur Ramgoolam airport?,"SELECT icao FROM table_name_72 WHERE airport = ""seewoosagur ramgoolam airport""" What is the % Change at London Heathrow airport?,"SELECT _percentage_change FROM table_name_68 WHERE airport = ""london heathrow airport""" How many judges were there when the result is safe with a vote percentage of 10.7%?,"SELECT MIN(judges) FROM table_26375386_20 WHERE result = ""Safe"" AND vote_percentage = ""10.7%""" Yes please,SELECT T1.clubname from club as T1 join member_of_club as T2 on T1.clubid = T2.clubid group by T2.clubid order by count ( * ) desc limit 1 What nationality has steve kerr as the player?,"SELECT nationality FROM table_name_95 WHERE player = ""steve kerr""" Select the project names which are not assigned yet.,SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo) What is average life expectancy in the countries where English is not the official language?,"SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"" AND T2.IsOfficial = ""T"")" what is the year where the qualifying score was 15.150?,"SELECT year FROM table_13114949_3 WHERE qualifying_score = ""15.150""" Which nation and region does the Customer#000000008 come from?,"SELECT T1.n_name, T3.r_name FROM nation AS T1 INNER JOIN customer AS T2 ON T1.n_nationkey = T2.c_nationkey INNER JOIN region AS T3 ON T1.n_regionkey = T3.r_regionkey WHERE T2.c_name = 'Customer#000000008'" what is the highest booked amount,SELECT MAX ( booked_amount ) FROM Products_Booked what was the amount claimed? | On this day? | yes,"SELECT Amount_Claimed FROM Claims where Date_Claim_Settled = ""2018-03-09""" Which classrooms are used by grade 5?,SELECT DISTINCT classroom FROM list WHERE grade = 5 What team was he on when he finished in 11th position?,"SELECT team FROM table_24491017_1 WHERE position = ""11th""" which type of university is Ave Maria University ?,SELECT Type FROM institution WHERE Institution = 'Ave Maria University' What are the lowest laps of Graham Hill?,"SELECT MIN(laps) FROM table_name_68 WHERE driver = ""graham hill""" What is the highest value for col(m) at North Island?,"SELECT MAX(col__m_) FROM table_18946749_4 WHERE island = ""North island""" What is the average number of employees of the departments whose rank is between 10 and 15?,SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15 How many unemployed students filed for bankruptcy?,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T2.name = T1.name Return the phone numbers of employees with salaries between 8000 and 12000.,SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000 WHat is the number of Population has a Density of 50.09 and a Rank larger than 30?,SELECT SUM(population) FROM table_name_70 WHERE density = 50.09 AND rank > 30 What are the departure dates for all flights from Los Angeles to Honolulu?,"SELECT departure_date FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Honolulu""" What is the Director of Gulf Stream Under the Iceberg?,"SELECT director FROM table_name_55 WHERE film_title_used_in_nomination = ""gulf stream under the iceberg""" Which week 2 had a week 3 of Cidney Carson?,"SELECT week_2 FROM table_name_74 WHERE week_3 = ""cidney carson""" "Who's the Writer with an Original Airdate of september 4, 2005 (hbo)?","SELECT writer FROM table_name_91 WHERE original_airdate = ""september 4, 2005 (hbo)""" What is the tie when team 2 is koper?,"SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = ""Koper""" which advisors have at least two students?,SELECT advisor FROM Student GROUP BY advisor HAVING count ( * ) > = 2 Which territory has the most customers as of 9/12/2014?,SELECT TerritoryID FROM Customer WHERE ModifiedDate < '2014-12-09' GROUP BY TerritoryID ORDER BY COUNT(TerritoryID) DESC LIMIT 1 What season was herschelle gibbs andrew symonds venugopal rao batsmen?,"SELECT season FROM table_22962745_35 WHERE batsmen = ""Herschelle Gibbs Andrew Symonds Venugopal Rao""" "Hi, when was the University of Delaware founded?",SELECT founded FROM university WHERE school = 'University of Delaware' What was the winning party when the incumbent was richard s. whaley?,"SELECT party FROM table_1346137_4 WHERE incumbent = ""Richard S. Whaley""" Provide the names of competitors who received a gold medal.,SELECT DISTINCT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T4.medal_name = 'Gold' Which route has 21 stations?,SELECT route FROM table_name_31 WHERE stations = 21 "What position did the kid from loganville, georgia play","SELECT position FROM table_11677691_8 WHERE hometown = ""Loganville, Georgia""" Count the number of stores.,SELECT count(*) FROM store Which Comments has a Model of 18sq?,"SELECT comments FROM table_name_30 WHERE model = ""18sq""" "What are all the songs in albums under label ""Universal Music Group""?","SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = ""Universal Music Group""" "List the name, nationality and id of all male architects ordered by their names lexicographically.","SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name" How many likes did short comment left by users who joined in 2010 get?,SELECT SUM(T2.likes) FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2010 Who was the home team when Boston is the road team in game 4?,"SELECT home_team FROM table_name_89 WHERE road_team = ""boston"" AND game = ""game 4""" Yes what is mark rank?,SELECT T2.rank FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id WHERE T1.name = 'Mark' Which tournament had a result in 2010 and 2012 of a?,"SELECT tournament FROM table_name_49 WHERE 2012 = ""a"" AND 2010 = ""a""" "Amazing, can you display only the entry with a fault log id of 1 as well as the description and record time for that entry with a fault log id of 1?","SELECT count ( * ) , *, T1.fault_description , T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id where t1.fault_log_entry_id = 1 GROUP BY T1.fault_log_entry_id ORDER BY count ( * ) DESC LIMIT 1" How many crews were born in the USA?,SELECT COUNT(name) FROM Person WHERE birth_country = 'USA'; What is the score of the player from fiji?,"SELECT score FROM table_name_6 WHERE country = ""fiji""" Can I have the customer's name please?,"SELECT customer_name FROM customers WHERE customer_address LIKE ""%WY%"" AND payment_method_code ! = ""Credit Card""" What is the organization(s) that has 'National Society' as member type.,SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T2.Type = 'National Society' "What is all the information about employees hired before June 21, 2002?",SELECT * FROM employees WHERE hire_date < '2002-06-21' Which restaurant has the highest total number of high risk violations?,SELECT T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' GROUP BY T2.name ORDER BY COUNT(T2.name) DESC LIMIT 1 What is the home team in week 1?,"SELECT home_team FROM table_name_61 WHERE week = ""1""" What is the total of bronze that has more silvers than 2?,SELECT COUNT(bronze) FROM table_name_15 WHERE silver > 2 How many establishments that are doing business as Homemade Pizza have a risk level of 2?,SELECT COUNT(license_no) FROM establishment WHERE risk_level = 2 AND dba_name = 'HOMEMADE PIZZA' "On the 19th, where was the venue?","SELECT venue FROM table_17120964_6 WHERE date = ""19th""" "What are all different template ids used for documents, and how many times were each of them used?","SELECT template_id , count(*) FROM Documents GROUP BY template_id" What's the HC for the standard with NO x of 7.0 g/kWh?,"SELECT hc__g_kwh_ FROM table_2780146_6 WHERE no_x__g_kwh_ = ""7.0""" Find the average ride time of the bikes that started at Steuart at Market station and ended at Embarcadero at Sansome station in July 2014.,SELECT AVG(duration) FROM trip WHERE start_date = '7/1/2014%' AND end_date = '7/31/2014%' AND start_station_name = 'Steuart at Market' AND end_station_name = 'Embarcadero at Sansome' Find the states of the colleges that have students in the tryout who played in striker position.,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker' Find the average number of ornaments sold each month in 2018.,SELECT CAST(SUM(T2.`Order Quantity`) AS REAL) / 12 FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID WHERE T1.`Product Name` = 'Ornaments' AND T2.OrderDate LIKE '%/%/18' Name all lists created by a user who was a subcriber when created the list.,SELECT DISTINCT T2.list_id FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T1.user_subscriber = 1 "Calculate the percentage of order via in-store channel of customer ""Medline"".",SELECT CAST(SUM(CASE WHEN T1.`Sales Channel` = 'In-Store' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1._CustomerID) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID WHERE T2.`Customer Names` = 'Medline ' Which country has the most number of suppliers whose account is in debt?,"SELECT T.n_name FROM ( SELECT T2.n_name, SUM(T1.s_acctbal) AS num FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 GROUP BY T2.n_name ) AS T ORDER BY T.num LIMIT 1" Which venue's home team is geelong?,"SELECT venue FROM table_name_33 WHERE home_team = ""geelong""" What's the English translation of the Japanese title of the game Ranma ½: Chougi Rambuhen?,"SELECT english_title_translation FROM table_12744399_1 WHERE japanese_title = ""Ranma ½: Chougi Rambuhen""" how many employees there,select count ( * ) from employees "Among the orders from 2016 in the Central region, what is the product with the lowest profit?","SELECT T2.`Product Name` FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'Central' AND STRFTIME('%Y', T1.`Order Date`) = '2016' ORDER BY T1.Profit ASC LIMIT 1" "What was the outcome on May 25, 2009?","SELECT outcome FROM table_name_55 WHERE date = ""may 25, 2009""" How many people were there in the Engineering Department in the year 2009?,"SELECT COUNT(T1.BusinessEntityID) FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T3.Name = 'Engineering' AND STRFTIME('%Y', T2.EndDate) > '2009' AND STRFTIME('%Y', T2.StartDate) < '2009'" How many Laps with a Grid smaller than 11 did John Watson have?,"SELECT AVG(laps) FROM table_name_71 WHERE driver = ""john watson"" AND grid < 11" Which donators have a donation amount above 8.5?,Select donator_name from endowment where amount > 8.5 What is the type for rank 2?,SELECT type FROM table_name_26 WHERE rank = 2 What is the total grid with laps less than 2?,SELECT SUM(grid) FROM table_name_78 WHERE laps < 2 Which protein has the highest sequence identity to human protein value?,SELECT protein_name FROM protein order by sequence_identity_to_human_protein desc limit 1 Report the distinct president vote and the vice president vote.,"SELECT DISTINCT President_Vote , VICE_President_Vote FROM VOTING_RECORD" Tell me the employee id of the head of the department with the least employees.,SELECT head FROM department GROUP BY departmentID ORDER BY count(departmentID) LIMIT 1; What is count of most papers which is USA has published?,"SELECT t1.country,count ( * ) FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid where country = ""USA""" Who was the home team when Footscray was the away team?,"SELECT home_team FROM table_name_50 WHERE away_team = ""footscray""" Who is the high rebounds for game 64?,SELECT high_rebounds FROM table_23281862_9 WHERE game = 64 sorry meant least number of amenities,SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count ( * ) LIMIT 1 How many items weren't sold in store 2 on 1/1/2012?,SELECT COUNT(item_nbr) FROM sales_in_weather WHERE store_nbr = 2 AND units = 0 AND `date` = '2012-01-01' "What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?","SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000" which is the oldest college in the table,SELECT school FROM university ORDER BY founded LIMIT 1 "Which Area (km²) is the lowest one that has a Population of 17,089?",SELECT MIN(area__km²_) FROM table_name_39 WHERE pop = 17 OFFSET 089 Name the attribute for mutation and domcharacterdatamodified,"SELECT attribute FROM table_name_81 WHERE category = ""mutation"" AND type = ""domcharacterdatamodified""" "How much is the total purchase price, including freight, of the top 2 most expensive products?",SELECT T2.UnitPrice * T2.Quantity + T1.Freight FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID ORDER BY T2.UnitPrice * T2.Quantity + T1.Freight DESC LIMIT 2 What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen?,"SELECT scorecard FROM table_22962745_35 WHERE batsmen = ""Robin Uthappa Mark Boucher Jacques Kallis""" What is the total number of countries where Spanish is spoken by the largest percentage of people?,"SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = ""Spanish"" GROUP BY CountryCode" How many people won the election in the Pennsylvania 11 district?,"SELECT COUNT(candidates) FROM table_2668169_2 WHERE district = ""Pennsylvania 11""" "What is Outcome, when Championship is Australian Open, and when Year is before 1994?","SELECT outcome FROM table_name_78 WHERE championship = ""australian open"" AND year < 1994" Name the date for adelaide for westpac stadium,"SELECT date FROM table_16388439_3 WHERE home_team = ""Adelaide"" AND ground = ""Westpac Stadium""" What's the total time for the summer universiade competition?,"SELECT COUNT(time) FROM table_name_82 WHERE competition = ""summer universiade""" "What is the number of graduates in ""San Francisco State University"" in year 2004?","SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Francisco State University""" Glenys Bakker was second for which nation?,"SELECT nation FROM table_name_74 WHERE second = ""glenys bakker""" What distinct accelerator names are compatible with the browswers that have market share higher than 15?,SELECT DISTINCT T1.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 T3.market_share > 15; How many goals have been scored by Tiago Gomes?,"SELECT goals FROM table_12321870_32 WHERE player_name = ""Tiago Gomes""" "What was the result for the 71,164 in attendance?",SELECT result FROM table_name_9 WHERE attendance > 71 OFFSET 164 "How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?","SELECT SUM(draws) FROM table_name_83 WHERE wins > 7 AND wimmera_fl = ""nhill"" AND losses > 8" What is the color code with a temperature classification of ordinary?,"SELECT color_code__with_fusible_link_ FROM table_name_67 WHERE temperature_classification = ""ordinary""" How many matches did Rajasthan Royals play in Season 8?,SELECT SUM(CASE WHEN T1.Season_Id = 8 THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Team_1 = T2.Team_Id OR T1.Team_2 = T2.Team_Id WHERE T2.Team_Name = 'Rajasthan Royals' "Who created the list that has 142 comments? Indicate the user id of the user, if there are multiple lists with 142 comments, list the user id of the person who created the list",SELECT user_id FROM lists WHERE list_comments = 142 What team was the opponent when the score was 7–1?,"SELECT opponent FROM table_name_86 WHERE score = ""7–1""" Show the number of cities in counties that have a population more than 20000.,SELECT count(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000) Who was the opponent during the game with a score of 6-5 and a loss of White (2-1)?,"SELECT opponent FROM table_name_44 WHERE score = ""6-5"" AND loss = ""white (2-1)""" "Among all the times event no.2 happened when the app user was not active, when was the earliest time this situation happened?",SELECT T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T1.is_active = 0 AND T2.event_id = 2 ORDER BY T2.timestamp LIMIT 1 What year was the USS Cambridge laid down?,"SELECT laid_down FROM table_name_17 WHERE name = ""uss cambridge""" "Which website was founded before 1897, and is located in Adaminaby?","SELECT website FROM table_name_82 WHERE founded < 1897 AND suburb_town = ""adaminaby""" What was the primary conference when joining the cslf for the institution that was founded in 1894,SELECT primary_conference_when_joining_the_csfl FROM table_262501_1 WHERE founded = 1894 Please list the full names of all the actors that have starred in the film with the highest replacement cost.,"SELECT first_name, last_name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id ORDER BY T3.replacement_cost DESC LIMIT 1" Who wrote episode number 28?,SELECT written_by FROM table_26561506_1 WHERE no = 28 "Which stadium name contains the substring ""Bank""?","SELECT name FROM stadium WHERE name LIKE ""%Bank%""" Which position did the player hold that played for the Philadelphia Flyers in NHL?,"SELECT position FROM table_1473672_3 WHERE nhl_team = ""Philadelphia Flyers""" What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand?,"SELECT COUNT(winner) FROM table_2267345_2 WHERE team_classification = ""Kelme-Costa Blanca"" AND combativity_award = ""Jacky Durand""" Who is the oldest player who played for Avangard Omsk during the regular season in 2000-2001?,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.GAMETYPE = 'Regular Season' AND T1.TEAM = 'Avangard Omsk' ORDER BY T2.birthdate ASC LIMIT 1 Indicate the name of the categories to which the products of order number 10933 belong.,SELECT T3.CategoryName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Categories AS T3 ON T1.CategoryID = T3.CategoryID WHERE T2.OrderID = 10933 What's the lowest against on 27/03/1971?,"SELECT MIN(against) FROM table_name_45 WHERE date = ""27/03/1971""" "Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates?","SELECT max(support_rate) , min(consider_rate) , min(oppose_rate) FROM candidate" "What Mountain Pass has an Elevation of 10,001 feet 3048 m?","SELECT mountain_pass FROM table_name_44 WHERE elevation = ""10,001 feet 3048 m""" "Who was the Partner that was a winner, a Year smaller than 1993, and a Score of 6–4, 6–2?","SELECT partner FROM table_name_94 WHERE outcome = ""winner"" AND year < 1993 AND score = ""6–4, 6–2""" What is the salaray and name of the employee that is certified to fly the most planes?,"SELECT T1.name , T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1" What was the qualification in 1932?,"SELECT qual FROM table_name_51 WHERE year = ""1932""" List the quantity and price of the product bought by Abigail Henderson.,"SELECT T2.Quantity, T1.Price FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.FirstName = 'Abigail' AND T3.LastName = 'Henderson'" Which store owns most items?,SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1 Which Game is the highest one that has a February of 25?,SELECT MAX(game) FROM table_name_96 WHERE february = 25 "How many orders did ""Laughing Bacchus Wine Cellars"" make?",SELECT COUNT(T2.OrderID) FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.CompanyName = 'Laughing Bacchus Wine Cellars' Find the name of dorms only for female (F gender).,SELECT dorm_name FROM dorm WHERE gender = 'F' Count the number of markets that have a number of cities lower than 300.,SELECT count(*) FROM market WHERE Number_cities < 300 Who was the away team against Newton Heath?,"SELECT away_team FROM table_name_74 WHERE home_team = ""newton heath""" What is raymond floyd's lowest $?,"SELECT MIN(money___) AS $__ FROM table_name_77 WHERE player = ""raymond floyd""" What is the lowest draw number for the song ranked 6th with more than 43 points?,"SELECT MIN(draw) FROM table_name_22 WHERE points > 43 AND rank = ""6th""" Tell me the name of the person married to frederick ix,"SELECT name FROM table_name_71 WHERE spouse = ""frederick ix""" What was the score of the tie with an away team of Stoke City?,"SELECT score FROM table_name_50 WHERE away_team = ""stoke city""" What was the report in the Belgian Grand Prix?,"SELECT report FROM table_name_5 WHERE race = ""belgian grand prix""" Name the laps for qual of 144.665,"SELECT SUM(laps) FROM table_name_94 WHERE qual = ""144.665""" Mention the user ID and their year of joining Yelp who had great experience on business ID 143.,"SELECT T2.user_id, T2.user_yelping_since_year FROM Reviews AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id WHERE T1.business_id = 143 AND T1.review_stars = 5" What are the ids of all moviest hat have not been reviewed by Britanny Harris?,"SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = ""Brittany Harris""" What is the average enrollment of schools?,SELECT avg(Enrollment) FROM school; "What's the task of the method whose tokenized name is ""html parser feed""?","SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE NameTokenized = 'html parser feed'" How many animation film titles are rated for adults only?,SELECT COUNT(T1.title) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'animation' AND T1.rating = 'NC-17' "Show the name, time, and service for all trains.","SELECT name , TIME , service FROM train" Find the id of routes whose source and destination airports are in the United States.,SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States') Hi can you tell me what activities are listed? | The following table shows activity names | Can you tell me how many faculty are involved in each activity?,"SELECT T1.activity_name , count ( * ) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID" "Find the names of all the clubs that have at least a member from the city with city code ""BAL"".","SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = ""BAL""" Find the name and id of the item with the highest average rating.,"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" "How many reserves are in Herzogtum Lauenburg with an area of 123,14?","SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE district___town = ""Herzogtum Lauenburg"" AND area__ha_ = ""123,14""" What are the locations and names of all stations with capacity between 5000 and 10000?,"SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000" And what language is most often used in songs with resolution above 500?,SELECT languages FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count ( * ) DESC LIMIT 1 What is the Date with an Away that is broadview hawks?,"SELECT date FROM table_name_5 WHERE away = ""broadview hawks""" What college/junior/club team is a left wing from Canada?,"SELECT college_junior_club_team FROM table_name_94 WHERE position = ""left wing"" AND nationality = ""canada""" HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006?,"SELECT MAX(carbon_dioxide_emissions_per_year__10_6_tons___2006_) FROM table_11251601_2 WHERE country = ""Russia""" What is the high assists of Hamilton (24)?,"SELECT high_assists FROM table_name_22 WHERE high_points = ""hamilton (24)""" Please provide the id of the solution whose repository has the most watchers.,SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = ( SELECT MAX(Watchers) FROM Repo ) "What is the maximum number of losses that the Minnesota Kicks had after 1979 with an average attendance of 16,605?",SELECT MAX(lost) FROM table_name_40 WHERE season > 1979 AND avg_attend = 16 OFFSET 605 What are the carriers of devices that are in stock in more than a single shop?,SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1 For what tournament was Blaž Kavčič the opponent in the final?,"SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = ""blaž kavčič""" What are their item ids?,select distinct ( i_id ) from review What gender is the team that has a decile of 5 and in the Dalefield area?,"SELECT gender FROM table_name_95 WHERE decile = 5 AND area = ""dalefield""" what's the home team where score is l 80–88,"SELECT home FROM table_11964047_9 WHERE score = ""L 80–88""" "What is the place of player sergio garcía, who has £77,500?","SELECT place FROM table_name_45 WHERE money___£__ = ""77,500"" AND player = ""sergio garcía""" Which defending forces has a population of 230?,"SELECT defending_forces FROM table_name_62 WHERE population = ""230""" "What is High Rebounds, when Location Attendance is ""Madison Square Garden Unknown"", and when Date is ""May 18""?","SELECT high_rebounds FROM table_name_15 WHERE location_attendance = ""madison square garden unknown"" AND date = ""may 18""" What is the score at game 31?,SELECT score FROM table_name_19 WHERE game = 31 Which score has a Result of 11–0?,"SELECT score FROM table_name_73 WHERE result = ""11–0""" what is а а [a] when гь гь [ɡʲ] is л л [l]?,"SELECT а_а_[a] FROM table_202365_2 WHERE гь_гь_[ɡʲ] = ""Л л [l]""" Which player had a To par of +11?,"SELECT player FROM table_name_55 WHERE to_par = ""+11""" Find the number of rooms located on each block floor.,"SELECT count(*) , T1.blockfloor FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockfloor" Who had the decision with boston at home?,"SELECT decision FROM table_name_34 WHERE home = ""boston""" "Between 2011 to 2016, in which countries can you find the universities where at least 50% of its students are international students?",SELECT DISTINCT T3.country_name FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.pct_international_students > 50 AND T2.year BETWEEN 2011 AND 2016 Name the M939 series for short wheelbase and M809 series of m817,"SELECT m939_series FROM table_name_95 WHERE wheelbase = ""short"" AND m809_series = ""m817""" Name the nomination in 2011 that won,"SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = ""won""" Which nation has the lowest proportion of people who speak an African language? Please state the nation's full name.,SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' ORDER BY T2.Percentage ASC LIMIT 1 What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari?,"SELECT chrome FROM table_name_22 WHERE opera = ""0.30%"" AND safari = ""6.77%""" "Among the patients who have been using Penicillin V Potassium 250 MG, what percentage of patients are female?",SELECT CAST(SUM(CASE WHEN T1.gender = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Penicillin V Potassium 250 MG' "Give the number of ""game-Fishing"" apps.",SELECT COUNT(T2.app_id) FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'game-Fishing' Which royal house corresponds to Polyxenos Epiphanes Soter?,"SELECT royal_house FROM table_name_84 WHERE name = ""polyxenos epiphanes soter""" How many episodes are there in the 9th season of Law and Order? Calculate the average number of casts per season of the said series.,"SELECT SUM(CASE WHEN T2.season = 9 THEN 1 ELSE 0 END) AS num , CAST(SUM(CASE WHEN T2.season = 9 THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.episode_id) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.category = 'Cast' AND T2.series = 'Law and Order'" What are their color descriptions?,"SELECT T1.product_name , T2.color_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" Can you show the artist name of song Tumi robe nirobe?,"SELECT artist_name FROM song WHERE song_name = ""Tumi robe nirobe""" Find the department name of the instructor whose name contains 'Soisalon',SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' Which job titles correspond to jobs with salaries over 9000?,SELECT job_title FROM jobs WHERE min_salary > 9000 How many points have 75 laps?,"SELECT points FROM table_name_6 WHERE laps = ""75""" What are the star rating descriptions of the hotels with price above 10000?,SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 Find the first name and gender of the student who has allergy to milk but not cat.,"SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" "Find the average age of students who live in the city with code ""NYC"" and have secretary votes in the spring election cycle.","SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = ""NYC"" AND T2.Election_Cycle = ""Spring""" What is the type of Kuang-Hsing?,"SELECT type FROM table_name_71 WHERE name__wade_giles_ = ""kuang-hsing""" "List down the product IDs and names that include the word ""Outdoor"".","SELECT ProductID, T FROM ( SELECT ProductID , CASE WHEN `Product Name` LIKE '%Outdoor%' THEN `Product Name` ELSE NULL END AS T FROM Products ) WHERE T IS NOT NULL ORDER BY T DESC" "What are the air carriers of the flights that flew on August 25, 2018 that have departure delay of -5?",SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.FL_DATE = '2018/8/25' GROUP BY T1.Description What is the 2nd leg when second team is Sumykhimprom?,"SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = ""sumykhimprom""" How many students are age 18?,SELECT count(*) FROM Student WHERE age = 18 How many American movies have cast number more than 1?,SELECT COUNT(T2.actorid) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid WHERE T1.country = 'USA' AND T2.cast_num > 1 What is the English title of the film Directed by Jayme Monjardim?,"SELECT english_title FROM table_name_21 WHERE director = ""jayme monjardim""" Name the most number in series for production code of 3abc11,"SELECT MAX(no_in_series) FROM table_23289934_1 WHERE production_code = ""3ABC11""" What family was featured in episode us14 of the series?,"SELECT family_families FROM table_19897294_11 WHERE no_in_series = ""US14""" Which semesters do not have any student enrolled? List the semester name.,SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment ) What is the position of the winner with 792 points?,"SELECT position FROM table_name_39 WHERE points = ""792""" What is Scott Hoch with a Score of 66 Country?,"SELECT country FROM table_name_36 WHERE score = 66 AND player = ""scott hoch""" What cardwell has an insider advantage and a knight of 1%,"SELECT cardwell FROM table_name_43 WHERE source = ""insider advantage"" AND knight = ""1%""" Find the average access count across all documents?,SELECT avg(access_count) FROM documents What is the most common product ordered by a customer from Germany?,SELECT T2.ProductID FROM Customers AS T1 INNER JOIN `Order Details` AS T2 WHERE T1.Country = 'Germany' GROUP BY T2.ProductID ORDER BY COUNT(T2.ProductID) DESC LIMIT 1 "What is the attribute value of an active business with a low review count and 3 stars which is located at Goodyear, AZ?",SELECT DISTINCT T2.attribute_value FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.state = 'AZ' AND T1.city = 'Goodyear' AND T1.active = 'true' AND T1.stars = 3 AND T1.review_count = 'Low' "In the players, how many were out by hit wicket?",SELECT Player_Out FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE Out_Name = 'hit wicket' What competition is located in bamako?,"SELECT competition FROM table_name_68 WHERE location = ""bamako""" "Among the clients born between 1980 and 2000, list the name of male clients who complained through referral.","SELECT T1.first, T1.middle, T1.last FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.year BETWEEN 1980 AND 2000 AND T1.sex = 'Male' AND T2.`Submitted via` = 'Referral'" "What was the serve time for the complaint call from client ""C00007127"" on 2017/2/22?",SELECT T1.ser_time FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE T2.Client_ID = 'C00007127' AND T1.`Date received` = '2017-02-22' What is the earliest year that had the Legend of Zelda: Twilight Princess game?,"SELECT MIN(year) FROM table_name_90 WHERE game = ""the legend of zelda: twilight princess""" "What was the total amount of sales handled by Nancy Davolio in December 1996, excluding discounts?",SELECT SUM(T3.UnitPrice * T3.Quantity) FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.FirstName = 'Nancy' AND T1.LastName = 'Davolio' AND T2.OrderDate LIKE '1996-12%' AND T3.Discount = 0 What is the highest silver total for nations with 3 total and over 2 bronze?,SELECT MAX(silver) FROM table_name_47 WHERE total = 3 AND bronze > 2 What's #14 FitzBradshaw Racing's top 5 result?,"SELECT MAX(top_5) FROM table_1909647_2 WHERE team_s_ = ""#14 FitzBradshaw Racing""" "What is the total number of Weight(s), when Block is 300?",SELECT COUNT(weight) FROM table_name_26 WHERE block = 300 On what Date was the Record 9–6–4?,"SELECT date FROM table_name_62 WHERE record = ""9–6–4""" What is the Position of Pick #321?,SELECT position FROM table_name_97 WHERE pick__number = 321 Which network has s analyst of eddie arcaro?,"SELECT network FROM table_22514845_4 WHERE s_analyst = ""Eddie Arcaro""" Who among the players in season 2000-2001 has committed the highest rule violations or penalty minutes?,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' ORDER BY T1.PIM DESC LIMIT 1 How many different markets are there?,select count ( distinct market_id ) from phone_market Who provided lyrics or music to the artist Cube?,"SELECT lyrics__l____music__m_ FROM table_name_46 WHERE artist = ""cube""" What is the color of the background of the white border and sign of information?,"SELECT background_colour FROM table_name_25 WHERE border = ""white"" AND type_of_sign = ""information""" Please list the genre of the movies that are directed by the directors with the highest level of average revenue.,SELECT T2.genre FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.avg_revenue = 4 How many laps did Mattia Pasini ride?,"SELECT MIN(laps) FROM table_name_16 WHERE rider = ""mattia pasini""" Find the id of the courses that do not have any prerequisite?,SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq On what date was the venue at Brisbane Cricket Ground?,"SELECT date FROM table_name_23 WHERE venue = ""brisbane cricket ground""" What neon has an Argon of 4.203?,"SELECT neon FROM table_name_89 WHERE argon = ""4.203""" When was the order with the highest amount of total price shipped?,SELECT T2.l_shipdate FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T1.o_totalprice DESC LIMIT 1 Show names for all employees who have certificate of Boeing 737-800.,"SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = ""Boeing 737-800""" What is the heat for the time 57.97?,"SELECT heat FROM table_name_62 WHERE time = ""57.97""" What was the home team score for the Richmond away team?,"SELECT home_team AS score FROM table_name_50 WHERE away_team = ""richmond""" Who had the high assists against charlotte?,"SELECT high_assists FROM table_13557843_3 WHERE team = ""Charlotte""" can you tell me how many degrees have been granted for each Orange county campus since the year 2000?,"SELECT T1.campus , sum ( T2.degrees ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = ""Orange"" AND T2.year > = 2000 GROUP BY T1.campus" "What colleges do the players play for? | * I have left the chat * | Yes, please",SELECT distinct College FROM match_season What is the name of the contact person of the Pavlova supplier company?,SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Pavlova' List out genre that have downloads more than 1000000000.,"SELECT Genres FROM playstore WHERE Installs = '1,000,000,000+' GROUP BY Genres" What is the final score when 22210 is the attendance?,SELECT final_score FROM table_23612439_2 WHERE attendance = 22210 "Among the providers in Argentina, which supplier has an account that is in debt?",SELECT T1.s_name FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0 AND T2.n_name = 'ARGENTINA' "How many characteristics does the product named ""laurel"" have?","SELECT COUNT(*) 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 = ""laurel""" What's the number of the episode directed by Whitney Ransick?,"SELECT _number FROM table_2345558_1 WHERE director = ""Whitney Ransick""" Find the name of the user who gave the highest rating.,SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1 What are the names of the artists?,"SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = ""english"" GROUP BY T2.artist_name HAVING count ( * ) > = 1" Which away team played against the home team of St Kilda?,"SELECT away_team FROM table_name_66 WHERE home_team = ""st kilda""" Which co-stars did Kalyanji-anandji direct in 1963?,"SELECT co_stars FROM table_2528382_2 WHERE music_director = ""Kalyanji-Anandji"" AND year = ""1963""" What are the names of the instructors in the Comp. Sci. department who earn more than 80000?,SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000 Which Opened has a Category of diesel light rail?,"SELECT MAX(opened) FROM table_name_3 WHERE category = ""diesel light rail""" Who is the player of the match at canberra stadium?,"SELECT player FROM table_name_89 WHERE venue = ""canberra stadium""" "Return the names of cities, ordered alphabetically.",SELECT Name FROM city ORDER BY Name ASC what is the city id of alberta district?,"SELECT distinct city_id from address where district = ""Alberta""" What was the top place with over 24 points and more than 14 played?,SELECT MAX(place__posición_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14 What is the rank of manager Rob Mcdonald?,"SELECT COUNT(rank) FROM table_1218784_1 WHERE manager = ""Rob McDonald""" display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.,"SELECT T1.first_name , T1.last_name , T1.employee_id , T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" Find the first name of student who is taking classes from accounting and Computer Info. Systems departments,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' Who was the Republican candidate against the Democratic candidate Arthur Levitt?,"SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = ""arthur levitt""" How much Money is requested by BassToneSlap?,"SELECT money_requested__£_ FROM table_name_10 WHERE company_or_product_name = ""basstoneslap""" Who was in 2nd leg when Boca Juniors was in home (1st leg)?,"SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = ""Boca Juniors""" What is the molecular target listed under the compounded name of hemiasterlin (e7974),"SELECT molecular_target FROM table_12715053_1 WHERE compound_name = ""Hemiasterlin (E7974)""" Which report had a circuit of Cagliari?,"SELECT report FROM table_name_33 WHERE circuit = ""cagliari""" What is the age of the youngest editor?,SELECT age FROM editor ORDER BY Age ASC LIMIT 1 Find the number of students who are older than 18 and do not have allergy to either food or animal.,"SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" OR T2.allergytype = ""animal"")" Can you filter this list to include only the investors that were associated with more than one entrepreneur id?,SELECT Investor FROM entrepreneur group by investor having count ( * ) > 1 In what week was the first game played?,SELECT MIN(week) FROM table_29679510_2 How many part supplies are close to being out of stock?,SELECT COUNT(ps_suppkey) FROM partsupp WHERE ps_availqty < 10 Who was the candidate in the Virginia 3 district election? ,"SELECT candidates FROM table_1341577_47 WHERE district = ""Virginia 3""" What are their nationalities?,SELECT t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING count ( * ) > 1 Please list all the cities in Argentina.,SELECT City FROM location WHERE City IS NOT NULL AND Country = 'Argentina' How many ties drawed at 20?,"SELECT ties FROM table_name_74 WHERE drawn = ""20""" What is the Streak in the game with a Record of 20–16?,"SELECT streak FROM table_name_42 WHERE record = ""20–16""" Who had the fastest lap of the race that Ayrton Senna won on 23 April?,"SELECT fastest_lap FROM table_name_4 WHERE winning_driver = ""ayrton senna"" AND date = ""23 april""" Which Division Two team were champions as the same time the Premier Division Leominster town team were champs?,"SELECT division_two FROM table_name_26 WHERE premier_division = ""leominster town""" How many positions have round 3?,SELECT COUNT(position) FROM table_20872722_1 WHERE round = 3 What is the total sales amount of all discontinued products?,SELECT SUM(T2.UnitPrice * T2.Quantity) FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Discontinued = 1 "How many words are there on the page titled ""Asclepi""?",SELECT words FROM pages WHERE title = 'Asclepi' Who was the rider with a grid of 36?,SELECT rider FROM table_name_39 WHERE grid = 36 Which Visitor has a Home of bulls?,"SELECT visitor FROM table_name_64 WHERE home = ""bulls""" On what date did the New York Giants host a game?,"SELECT date FROM table_name_42 WHERE host_team = ""new york giants""" What is the average amount of rent that Christy Vargas paid?,SELECT AVG(T2.amount) FROM customer AS T1 INNER JOIN payment AS T2 ON T1.customer_id = T2.customer_id WHERE T1.first_name = 'CHRISTY' AND T1.Last_name = 'VARGAS' Give me the title and category name of films whose price per day is more than $30. Please include their special features.,"SELECT T1.title, T3.name, T1.special_features FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T1.rental_duration * T1.rental_rate > 30" "Who wins with a score 7–6(4), 6–4","SELECT winner FROM table_name_1 WHERE score = ""7–6(4), 6–4""" "Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?","SELECT surface FROM table_name_53 WHERE opponent = ""kerry melville reid"" AND score = ""6–3, 2–6, 3–6""" Find the country of origin for the artist who made the least number of songs?,SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1 "Which Yards have an avg of 11.8, and a Player of brent celek, and a Long larger than 44?","SELECT AVG(yards) FROM table_name_2 WHERE avg = 11.8 AND player = ""brent celek"" AND long > 44" What form factor has capacities at 60/120/180/240?,"SELECT form_factor FROM table_name_65 WHERE capacities__gb_ = ""60/120/180/240""" What are the names of the tourist attractions that have parking or shopping as their feature details?,SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping' What is the address of the Peking Duck restaurant?,SELECT T2.street_name FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T1.label = 'peking duck restaurant' Who had a finish of t15?,"SELECT player FROM table_name_67 WHERE finish = ""t15""" What age of last name Kim?,"SELECT age from Student where lname = ""Kim""" List all the songs associated with drama movies.,SELECT song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Drama' GROUP BY song What are the different ages of editors? Show each age along with the number of editors of that age.,"SELECT Age, COUNT(*) FROM editor GROUP BY Age" "Date of january 11, 1998 has what surface?","SELECT surface FROM table_name_55 WHERE date = ""january 11, 1998""" What is the number of inhabitants and income of geographic identifier 239?,SELECT INHABITANTS_K FROM Demog WHERE GEOID = 239 What song title was written by Kal Mann and Bernie Lowe?,"SELECT song_title FROM table_name_14 WHERE writer_s_ = ""kal mann and bernie lowe""" How many 4-year public institutions are there in the state of Florida? Give all of their names.,SELECT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 WHERE T2.level = '4-year' AND T2.control = 'Public' AND T2.state = 'Florida' Which Status has a Date of 19/05/1981?,"SELECT status FROM table_name_34 WHERE date = ""19/05/1981""" "What Team has a Class of 350cc, with less than 13 points in 1959?","SELECT team FROM table_name_93 WHERE class = ""350cc"" AND points < 13 AND year = 1959" "how mant different day names in old English were coined from the Latin day name ""dies iovis""?","SELECT COUNT(old_english_day_name) FROM table_2624098_1 WHERE glossed_from_latin_day_name = ""Dies Iovis""" What is the lowest jews and others 1 for the localities 11?,SELECT MIN(jews_and_others_1) FROM table_25947046_1 WHERE localities = 11 What's the cover image of the user who created the movie list 'Georgia related films'?,SELECT T1.user_cover_image_url FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Georgia related films' Which is the most fuel efficient car in 1975?,SELECT T1.car_name FROM data AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID WHERE T2.model_year = '1975' ORDER BY T1.mpg DESC LIMIT 1 How many lesson does customer with first name Ray took?,"SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Ray""" What is the name of constituency 5?,"SELECT name FROM table_name_50 WHERE constituency_number = ""5""" Who are all the opponents of Slovakia?,"SELECT opponents FROM table_16741821_9 WHERE against = ""Slovakia""" What was Collingwood's score in their away game?,"SELECT away_team AS score FROM table_name_39 WHERE away_team = ""collingwood""" What are the investor name of Leonardo Binchi?,"SELECT T1.Investor FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Name = ""Leonardo Binchi""" "Who are the authors of the paper ""Determination of Planetary Meteorology from Aerobot Flight Sensors""?",SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Determination of Planetary Meteorology FROM Aerobot Flight Sensors' Count the total number of roles listed.,SELECT count(*) FROM ROLES "What winner has pierre rolland as mountains classification, with 7 as the stage?","SELECT winner FROM table_name_14 WHERE mountains_classification = ""pierre rolland"" AND stage = ""7""" What about for department number 600?,"SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 600" What is the total price of the order made by Cruz & Sons Co. on 2003/3/3?,SELECT SUM(t1.priceEach * t1.quantityOrdered) FROM orderdetails AS t1 INNER JOIN orders AS t2 ON t1.orderNumber = t2.orderNumber INNER JOIN customers AS t3 ON t2.customerNumber = t3.customerNumber WHERE t3.customerName = 'Cruz & Sons Co.' AND t2.orderDate = '2003-03-03' What type had an election day in 1980,SELECT type FROM table_1602620_1 WHERE elected = 1980 How many distinct complaint type codes are there in the database?,SELECT count(DISTINCT complaint_type_code) FROM complaints "What are the names of the songs whose title has the word ""the""?",SELECT title FROM songs WHERE title LIKE '% the %' Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.,SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 What country is ranked higher than 5?,SELECT country FROM table_name_29 WHERE rank > 5 What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?,SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729 What are the inspector's comments and clean operating requirement code for inspection ID 54216 and point ID 34?,"SELECT T2.inspector_comment, T1.code FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T2.inspection_id = 54216 AND T2.point_id = 34" What are the captions of all the self-relation relationship prediction classes?,SELECT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN pred_classes AS T2 ON T1.PRED_CLASS_ID = T2.PRED_CLASS_ID WHERE T1.OBJ1_SAMPLE_ID = T1.OBJ2_SAMPLE_ID GROUP BY T2.PRED_CLASS What is Away team Carlton's score?,"SELECT away_team AS score FROM table_name_59 WHERE away_team = ""carlton""" What was the featured in Engine through rounds 10-13?,"SELECT engine FROM table_name_85 WHERE rounds = ""10-13""" Who is the spokesperson after 2012?,SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012 "Find the cell mobile number of the candidates whose assessment code is ""Fail""?","SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = ""Fail""" What is the largest pick by the Baltimore Colts in a round later than 10?,"SELECT MAX(pick) FROM table_name_27 WHERE nfl_club = ""baltimore colts"" AND round > 10" Which series # had 0.645 U.S. viewers(millions)?,"SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = ""0.645""" What is the height for rank greater than 10 in Tameer Tower?,"SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = ""tameer tower""" Find the number of dog pets that are raised by female students (with sex F).,SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog' What is the description of document status code 'working'?,"SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = ""working"";" What pick was play Jason Webb?,"SELECT MAX(pick) FROM table_name_31 WHERE player = ""jason webb""" Which physicians prescribe a medication of brand X? Tell me the name and position of those physicians.,"SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = ""X""" How many of the approved documents are confidential?,SELECT COUNT(DocumentNode) FROM Document WHERE Status = 2 AND DocumentSummary IS NULL Which employee is in charge of the sales in Hollis? Please give the employee's full name.,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Hollis'" Find the department with the most employees.,SELECT name FROM department GROUP BY departmentID ORDER BY count(departmentID) DESC LIMIT 1; What is the receipt date of the document with id 3?,SELECT receipt_date FROM Documents WHERE document_id = 3; What venue features geelong as the away side?,"SELECT venue FROM table_name_29 WHERE away_team = ""geelong""" What is the last name of the student who received an A in the class with the code 10018?,SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018 What is the sum of enrollments for schools located in Culver?,"SELECT SUM(enrollment) FROM table_name_28 WHERE location = ""culver""" "If the college is Vanderbilt, what is the position?","SELECT position FROM table_27132791_3 WHERE college = ""Vanderbilt""" What was the number of the game against Charlotte?,"SELECT SUM(game) FROM table_name_63 WHERE team = ""charlotte""" What are the name and description for location code x?,"SELECT location_name , location_description FROM Ref_locations WHERE location_code = ""x""" Find the average credit score of the customers who have some loan.,SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) WHAT PLAYER HAS UPLAND HIGH SCHOOL?,"SELECT player FROM table_name_88 WHERE hometown_school = ""upland high school""" "Could you please tell me who is President of the club Bootup Baltimore. | Do you want the first and last name of him? | Yes, please provide first and last name of the President of the club Bootup Baltimore.","SELECT T3.fname, T3.lname from Club as T1 join member_of_club as T2 on T1.clubid = T2.clubid join student as T3 on T2.stuid = T3.stuid where T1.clubname = ""Bootup Baltimore"" and T2.position = ""President""" What was the date of the game where North Melbourne was the home team?,"SELECT date FROM table_name_65 WHERE home_team = ""north melbourne""" What percentage of votes does the shareholder with 78.19% of capital have?,"SELECT _percentage_of_votes FROM table_206359_1 WHERE _percentage_of_capital = ""78.19""" Name the term ends for bethlehem,"SELECT COUNT(term_ends) FROM table_1979619_3 WHERE residence = ""Bethlehem""" "Among the products that have price ranges from 100 to 150, what is the customer ID and sales ID of the product with a quantity lower than 25?","SELECT T2.CustomerID, T2.SalesID FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Price BETWEEN 100 AND 150 AND T2.Quantity < 25" Find the the name of the customers who have a loan with amount more than 3000.,SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 List the grapes and appelations of all wines.,"SELECT Grape , Appelation FROM WINE" How many males do we have data for?,select count ( * ) from person where gender = 'male' "What are the content ratings for the apps that have ""gr8"" in their comments?",SELECT DISTINCT T1.`Content Rating` FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Translated_Review LIKE '%gr8%' What is the date of the second round?,"SELECT date FROM table_name_66 WHERE round = ""second round""" can you show me player names that starting with 'A'?,SELECT pName FROM player where pName like 'A%' How many transaction does each account have? Show the number and account id.,"SELECT count(*) , account_id FROM Financial_transactions" What are the names of all reviewers that have rated 3 or more movies?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3 What is the total and minimum enrollment of all schools?,"SELECT sum(enrollment) , min(enrollment) FROM university" List down the app IDs under the category of game-Rowing .,SELECT T2.app_id FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'game-Rowing' Which skill is used in fixing the most number of faults ? List the skill id and description,"SELECT T1.skill_id , T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY count ( * ) DESC LIMIT 1" List all content reviewed for podcast with the best rating under the 'fiction' category. State the podcast title.,SELECT DISTINCT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T3.rating = 5 AND T1.category = 'fiction' Show the delegates and the names of county they belong to.,"SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District" How many laps were there when the Time/Retired was +14.403?,"SELECT laps FROM table_name_45 WHERE time_retired = ""+14.403""" "How many proteins are associated with an institution founded after 1880 or an institution with type ""Private""?",SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private' What is the name of the course that has the most student enrollment?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 What are the names of all departments in alphabetical order?,SELECT dept_name FROM department ORDER BY dept_name Who was the opponent when the fight had a time of 2:01?,"SELECT opponent FROM table_name_71 WHERE time = ""2:01""" Give me the names of members whose address is in Harford or Waterbury.,SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury' What are the names of all high schoolers in grade 10?,SELECT name FROM Highschooler WHERE grade = 10 Name the october when november is buffy tyler,"SELECT october FROM table_name_17 WHERE november = ""buffy tyler""" What is the id of the department with the least number of staff?,SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY count(*) LIMIT 1 What is the name of Alice's friend?,"SELECT friend from personfriend where name = ""Alice""" Which Type has a Principal activities of health services?,"SELECT type FROM table_name_28 WHERE principal_activities = ""health services""" Count the number of rooms in Lamberton with capacity lower than 50.,SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50 What is the percentage of total orders of Stephen Payne that had a net profit of over 1000?,"SELECT CAST(SUM(CASE WHEN REPLACE(T1.`Unit Price`, ',', '') - REPLACE(T1.`Unit Cost`, ',', '') > 1000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.`Sales Team` = 'Stephen Payne'" What is the description of the department whose name has the substring the computer?,SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' What is the best seller root beer brand and what is the average star rating for this root beer?,"SELECT T1.BrandID, AVG(T1.StarRating) FROM rootbeerreview AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID GROUP BY T3.BrandID ORDER BY COUNT(T1.BrandID) DESC LIMIT 1" "Which player is associated with the date July 6, 1949?","SELECT player FROM table_name_93 WHERE date = ""july 6, 1949""" How many faculty is there in total in the year of 2002?,SELECT sum(faculty) FROM faculty WHERE YEAR = 2002 Of them which was launched most recently?,SELECT name FROM program ORDER BY launch DESC LIMIT 1 What is the score of the 2006 Fifa World Cup Qualification?,"SELECT score FROM table_name_85 WHERE competition = ""2006 fifa world cup qualification""" What is the average surface area of all countries?,SELECT AVG(SurfaceArea) FROM Country what is the score on march 8?,"SELECT score FROM table_name_40 WHERE date = ""march 8""" "What is the name with a Decile less than 10, and a Roll of 297?",SELECT name FROM table_name_55 WHERE decile < 10 AND roll = 297 What rank is Super Mario Land 2: 6 Golden Coins?,"SELECT MIN(rank) FROM table_18590048_1 WHERE title = ""Super Mario Land 2: 6 Golden Coins""" Name the years in orlando that the player from concord hs was in,"SELECT years_in_orlando FROM table_15621965_10 WHERE school_club_team = ""Concord HS""" What is the salary and name of the employee who has the least number of certificates on aircrafts with distance more than 5000?,"SELECT T1.salary, T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY count ( * ) ASC LIMIT 1" How many people hosted the show in the year when Chenoa ended up in fourth place?,"SELECT COUNT(host) FROM table_1149495_1 WHERE fourth_place = ""Chenoa""" Name all the organisations that were established from 1970 to 1980.,"SELECT Name FROM organization WHERE STRFTIME('%Y', Established) BETWEEN '1970' AND '1980'" Which team has a match played of 10 4?,"SELECT team FROM table_21824695_8 WHERE match_played = ""10 4""" What Competition has a Year smaller than 1983?,SELECT competition FROM table_name_52 WHERE year < 1983 "Between 1/1/2017 to 12/31/2017, how many users who were eligible for trial when they rated the movie ""Patti Smith: Dream of Life""and what is the image URL to the movie on Mubi?","SELECT COUNT(T1.user_id), T2.movie_image_url FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE datetime(T1.rating_timestamp_utc) BETWEEN '2017-01-01 00:00:00' AND '2017-12-31 00:00:00'" What is the Away Team when the Home Team is Fulham?,"SELECT away_team FROM table_name_26 WHERE home_team = ""fulham""" "Find the total quantity of products associated with the orders in the ""Cancelled"" status.","SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = ""Cancelled""" What is the NHL team that has Peter Strom?,"SELECT nhl_team FROM table_1013129_8 WHERE player = ""Peter Strom""" "What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?","SELECT MIN(points) FROM table_name_15 WHERE year = 1978 AND chassis = ""ensign n177""" Tell me the week for pittsburgh steelers opponent,"SELECT week FROM table_name_34 WHERE opponent = ""pittsburgh steelers""" How many docks were left at the end station for trip ID4069?,SELECT SUM(T2.docks_available) FROM trip AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.end_station_id WHERE T1.ID = 4069 "Among the immunizations in 2017, calculate the percentage of patients who received the Influenza seasonal injectable preservative free. Among them, how many patients are English?","SELECT CAST(SUM(CASE WHEN T2.DESCRIPTION = 'Influenza seasonal injectable preservative free' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.patient), SUM(CASE WHEN T1.ethnicity = 'english' THEN 1 ELSE 0 END) FROM patients AS T1 INNER JOIN immunizations AS T2 ON T1.patient = T2.PATIENT WHERE strftime('%Y', T2.DATE) = '2017'" What is the status of the player who is moving to Nantes?,"SELECT status FROM table_name_72 WHERE moving_to = ""nantes""" What are the poles is #08 Miller racing?,"SELECT poles FROM table_2190919_1 WHERE team_s_ = ""#08 Miller Racing""" What are the famous title of the artists associated with volumes with more than 2 weeks on top?,SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 What was the score of game 4?,SELECT score FROM table_name_84 WHERE game = 4 "If Dragon Souveniers, Ltd. aren't satisfied with their order and want to send a complain e-mail, which e-mail address should they send to?","SELECT t2.email FROM customers AS t1 INNER JOIN employees AS t2 ON t1.salesRepEmployeeNumber = t2.employeeNumber WHERE t1.customerName = 'Dragon Souveniers, Ltd.'" Which is the catching hand for the goaltender who had the most shutouts in 1996?,SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1996 ORDER BY T2.SHO DESC LIMIT 1 What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against? Indicate whether the team lost or victorious.,"SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1" "How many Dates have a Builder of laconia car company, and a Number of 63-68?","SELECT COUNT(date) FROM table_name_8 WHERE builder = ""laconia car company"" AND number = ""63-68""" Name the object element that is described as being scattered on image no. 10.,SELECT T2.OBJ_CLASS FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID INNER JOIN IMG_OBJ_ATT AS T3 ON T1.IMG_ID = T3.IMG_ID INNER JOIN ATT_CLASSES AS T4 ON T3.ATT_CLASS_ID = T4.ATT_CLASS_ID WHERE T4.ATT_CLASS = 'scattered' AND T1.IMG_ID = 10 GROUP BY T2.OBJ_CLASS Find the total number of tours for each ranking date.,"SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date" What is the average number of games of the player with a rank less than 1?,SELECT AVG(games) FROM table_name_55 WHERE rank < 1 What was the first year that the artist of every little thing ranked lower than 10?,"SELECT MIN(year) FROM table_name_56 WHERE artist = ""every little thing"" AND rank < 10" Find the name and component amount of the least popular furniture.,"SELECT name , Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1" "What are all the role codes, role names, and role descriptions?","SELECT role_code , role_name , role_description FROM ROLES" How many games were published by Acclaim Entertainment?,SELECT COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Acclaim Entertainment' "Which player from ""AFS"" team has the tallest height?","SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'AFS' ORDER BY T1.height DESC LIMIT 1" How many laps associated with a Time/Retired of + 1:25.475?,"SELECT COUNT(laps) FROM table_name_62 WHERE time_retired = ""+ 1:25.475""" How many classes does the professor whose last name is Graztevski teach?,SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski' List all the zip codes in the county of New Castle in Delaware.,SELECT DISTINCT T2.zip_code FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T2.county = 'NEW CASTLE' AND T1.name = 'Delaware' "What is the Date when the label was alfa records, and a Catalog of alca-487?","SELECT date FROM table_name_61 WHERE label = ""alfa records"" AND catalog = ""alca-487""" "Who was the opponent on December 10, 2000?","SELECT opponent FROM table_name_36 WHERE date = ""december 10, 2000""" Name the least 2 credits for flush,"SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = ""Flush""" What is the Elimination move listed against Regal?,"SELECT elimination AS Move FROM table_name_28 WHERE wrestler = ""regal""" What is the organisation details of Id 3? | Do you mean the organisation id of grant id 3? | yes,SELECT organisation_id FROM grants WHERE grant_id = 3 How many rooms are located for each block code?,"SELECT count(*) , T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode" Name the Date when has robert smith (7)?,"SELECT date FROM table_name_8 WHERE winner__title__number_ = ""robert smith (7)""" Which year had the most festivals?,SELECT year FROM festival_detail group by year order by count ( * ) desc limit 1 How many low-income countries under the lending category of the International Development Associations have a note on the series code SM.POP.TOTL?,SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL' AND IncomeGroup = 'Low income' What are the id of songs whose format is mp3.,"SELECT f_id FROM files WHERE formats = ""mp3""" What NFL team did the Tight End position belong to?,"SELECT nfl_team FROM table_name_62 WHERE position = ""tight end""" How many universities scored 0 in Awards between 2005 to 2015?,SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id WHERE T1.criteria_name = 'Award' AND T2.year BETWEEN 2005 AND 2015 AND T2.score = 0 How many sections does each course has?,"SELECT COUNT(*), crs_code FROM CLASS GROUP BY crs_code" What time/retired for grid 18?,SELECT time_retired FROM table_name_49 WHERE grid = 18 What is the percentage of athletes from Vanuatu who are taller than 175?,SELECT CAST(COUNT(CASE WHEN T3.height > 175 THEN 1 ELSE NULL END) AS REAL) * 100 / 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 = 'Vanuatu' "Who was the opponent in the game with save ||33,389||87–62?","SELECT opponent FROM table_name_58 WHERE save = ""||33,389||87–62""" What is the rank for the player with 5 wins and under 32 events?,SELECT SUM(rank) FROM table_name_52 WHERE wins = 5 AND events < 32 When mount gauttier is the peak what is the highest prominence in meters?,"SELECT MAX(prominence__m_) FROM table_18946749_1 WHERE peak = ""Mount Gauttier""" What's the highest attendance for a game the Texan's played at Arrowhead Stadium?,"SELECT MAX(attendance) FROM table_name_87 WHERE game_site = ""arrowhead stadium""" Which opponent was played at Forbes Field after week 4?,"SELECT opponent FROM table_name_76 WHERE game_site = ""forbes field"" AND week > 4" "How many news stations opened on the date of June 24, 2000?","SELECT _number_of_new_stations FROM table_1817879_2 WHERE date_opened = ""June 24, 2000""" How many cards are credit cards?,"SELECT count ( * ) FROM Customers_cards where card_type_code = ""Credit""" "What are the notes for bydgoszcz, Poland?","SELECT notes FROM table_name_37 WHERE venue = ""bydgoszcz, poland""" "What is Record, when Method is KO, and when Opponent is Rich Guerin?","SELECT record FROM table_name_99 WHERE method = ""ko"" AND opponent = ""rich guerin""" Please list the full name and region of each employee in alphabetical order.,"SELECT DISTINCT T1.FirstName, T1.LastName, T4.RegionDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID ORDER BY T1.FirstName" "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.","SELECT first_name , last_name , hire_date , salary , department_id FROM employees WHERE first_name NOT LIKE '%M%'" "Which average rank has an Earning amount that is less than $224,589?",SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589 What are the manager name and district of the shop that sells the largest number of products?,"SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1" What is the average age of all the artists from United States?,SELECT avg ( age ) from artist where country = 'United States' What is the name of the museum that had no visitor yet?,SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit) What is every score when the date is January 2?,"SELECT score FROM table_28220778_21 WHERE date = ""January 2""" Which are the rivers that flows to Black Sea?,SELECT Name FROM river WHERE Sea = 'Black Sea' What is the largest mass(kg)?,SELECT MAX(mass__kg_) FROM table_1558077_2 "How many degrees were conferred in ""San Jose State University"" in 2000?","SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = ""San Jose State University"" AND t2.year = 2000" State the name of the platforms for games released in 2000.,SELECT DISTINCT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T1.release_year = 2000 "What are the names, classes, and ranks of all captains?","SELECT name , CLASS , rank FROM captain" Name the number of team for 19th position,"SELECT COUNT(team) FROM table_27666856_3 WHERE position_in_table = ""19th""" "Hmm, can you list the student ids with sports played?","SELECT stuID ,sportname FROM SportsInfo" What is the name of the shipping agent that shipped the smallest number of documents?,SELECT T1.shipping_agent_name FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T2.shipping_agent_code = T1.shipping_agent_code GROUP BY T1.shipping_agent_code ORDER BY count ( T2.document_id ) LIMIT 1 Which team had a qualifying 1 time of 1:01.342?,"SELECT team FROM table_name_40 WHERE qual_1 = ""1:01.342""" what is the type when the regulatory citation is 40 cfr 50.9(a)?,"SELECT type FROM table_name_63 WHERE regulatory_citation = ""40 cfr 50.9(a)""" Who is the July playmate with a December playmate Morgan Fox?,"SELECT july FROM table_name_58 WHERE december = ""morgan fox""" How many losses did ev bruckberg have when the drawn was more than 1?,"SELECT SUM(lost) FROM table_name_42 WHERE name = ""ev bruckberg"" AND drawn > 1" Name the score for game 5,SELECT score FROM table_27539272_4 WHERE game = 5 What is the average rating of songs produced by female artists?,"SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = ""Female""" "How many Points have an Average smaller than 1, a Played larger than 38, and a Team of gimnasia de la plata?","SELECT SUM(points) FROM table_name_73 WHERE average < 1 AND played > 38 AND team = ""gimnasia de la plata""" Find the author who achieved the highest score in a submission.,SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1 What is the airing date for a modern drama with more than 21 episodes?,"SELECT airing_date FROM table_name_21 WHERE genre = ""modern drama"" AND number_of_episodes > 21" "What is the population where the median family income is $48,446 and there are more than 35,343 households?","SELECT AVG(population) FROM table_name_48 WHERE median_family_income = ""$48,446"" AND number_of_households > 35 OFFSET 343" What circuit had an ensign n180 as the winning car in round 5?,"SELECT circuit FROM table_name_79 WHERE winning_car = ""ensign n180"" AND round = 5" What is the area % of EU with 16.4 population in millions?,SELECT area__percentage_of_eu FROM table_name_39 WHERE population_in_millions = 16.4 "Which Country has a To par of –2, and a Player of jim thorpe?","SELECT country FROM table_name_32 WHERE to_par = ""–2"" AND player = ""jim thorpe""" What are the names and scores of wines that are made of white color grapes?,"SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White""" What is the score when the tie number is 4?,"SELECT score FROM table_name_47 WHERE tie_no = ""4""" what is the place where the person is luke donald,"SELECT country FROM table_28498999_6 WHERE player = ""Luke Donald""" What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?,"SELECT COUNT(rank) FROM table_name_44 WHERE team = ""250cc honda"" AND time = ""1:27.57.28""" Which engine has a 2435 cm displacement and is named 2.4 (2001-2007)?,"SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = 2435 AND model_name = ""2.4 (2001-2007)""" how many of them have given ratings higher than 3?,SELECT count ( T2.rID ) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3 How much did customer 103 pay in total?,SELECT SUM(t.amount) FROM payments t WHERE t.customerNumber = '103' Name the Player who has a CFL Team of toronto?,"SELECT player FROM table_name_24 WHERE cfl_team = ""toronto""" In what city did oklahoma win the tournament.,"SELECT tournament_venue__city_ FROM table_24348134_3 WHERE tournament_winner = ""Oklahoma""" "Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?",SELECT MIN(drawn) FROM table_name_32 WHERE lost = 5 AND points > 4 List all the inactive coins and state the last date of its transaction?,"SELECT T1.NAME, MAX(T2.DATE) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.ID = T2.coin_id WHERE T1.status = 'inactive' ORDER BY T2.DATE DESC LIMIT 1" What is the highest number played with more than 2 lost for Palmeiras and less than 1 draw?,"SELECT MAX(played) FROM table_name_69 WHERE lost > 2 AND team = ""palmeiras"" AND drawn < 1" Find and list the products that sold below the average quantity.,SELECT DISTINCT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Quantity < ( SELECT AVG(Quantity) FROM Sales ) What college is draft pick #327 from?,"SELECT college FROM table_name_80 WHERE pick__number = ""327""" "Find the names of the customers who have order status both ""On Road"" and ""Shipped"".","SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" what is the venue when the date is 16 january 1996?,"SELECT venue FROM table_name_99 WHERE date = ""16 january 1996""" Hello! How many documents are there total?,SELECT count ( document_name ) FROM documents Show me the player id with salary 545000?,SELECT distinct T1.player_id FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.salary = 545000 What is the total access count of documents that are of the most common document type?,SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1 what are the locations that joined in 2008,"SELECT location FROM table_11658094_1 WHERE joined = ""2008""" Name the most world rank for asian rank being 31,SELECT MAX(world_rank) FROM table_2249029_1 WHERE asian_rank = 31 "Who is the captain for the manufacturer Pony, and the manager Harry Redknapp?","SELECT captain FROM table_name_59 WHERE kit_manufacturer = ""pony"" AND manager = ""harry redknapp""" Provide the release date and language of the most popular movie.,"SELECT T1.release_date, T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id ORDER BY T1.popularity DESC LIMIT 1" What are the themes and locations of parties?,"SELECT Party_Theme , LOCATION FROM party" what is the product description of the product id 3 ?,SELECT product_description FROM Products_for_Hire where product_id = 3 "What was the winning score on Aug 28, 1983?","SELECT winning_score FROM table_name_89 WHERE date = ""aug 28, 1983""" How many addresses are from the Philippines?,SELECT COUNT(T2.country_id) FROM address AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Philippines' Provide any five games and release year under the sports genre.,"SELECT T3.game_name, T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' LIMIT 5" Show all member names and registered branch names sorted by register year.,"SELECT T3.name , T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year" "Show the distinct leader names of colleges associated with members from country ""Canada"".","SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = ""Canada""" Who was the home team when the opposition was Buller?,"SELECT home_team FROM table_26847237_1 WHERE opposition = ""Buller""" What is the hometown of Bubba Starling?,"SELECT hometown FROM table_11677100_17 WHERE player = ""Bubba Starling""" Please list the names of all the climbers.,SELECT Name FROM climber What event was the competition World Junior Championships in 2010?,"SELECT event FROM table_name_16 WHERE competition = ""world junior championships"" AND year = 2010" Please show the most common occupation of players.,SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1 What are the different film Directors?,SELECT DISTINCT Director FROM film What position did pick 14 play?,SELECT position FROM table_name_72 WHERE pick = 14 "Lowest larger than 288, and a Team of east stirlingshire has what lowest average?","SELECT MIN(average) FROM table_name_61 WHERE lowest > 288 AND team = ""east stirlingshire""" What is Chesterfield Spires average?,"SELECT average FROM table_21991074_1 WHERE club = ""Chesterfield Spires""" State the name of all territories in Northern region.,SELECT DISTINCT T1.TerritoryDescription FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Northern' How many Drawn did Coach Francis Cummins have with less than 4 Lost?,"SELECT SUM(drawn) FROM table_name_99 WHERE lost < 4 AND coach = ""francis cummins""" What was the attendance at the game where the opponent was the denver broncos?,"SELECT attendance FROM table_name_85 WHERE opponent = ""denver broncos""" how many directors of the films never presented in china?,SELECT count ( director ) FROM film WHERE film_id NOT IN ( SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China' ) Show the countries that have managers of age above 50 or below 46?,SELECT Country FROM manager WHERE Age > 50 OR Age < 46 The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time?,"SELECT time FROM table_name_79 WHERE rank > 3 AND notes = ""fd"" AND athlete = ""shin yeong-eun""" What percentage of papers were preprinted after the year 2000?,SELECT CAST(SUM(CASE WHEN Year > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Id) FROM Paper What year had a score of 0.586?,"SELECT COUNT(year) FROM table_name_67 WHERE score = ""0.586""" What was the position of the player from Pacific Lutheran University named Greg Fredlund in years after 2010?,"SELECT position FROM table_name_54 WHERE school = ""pacific lutheran university"" AND player = ""greg fredlund"" AND year > 2010" How much is the size of Browser 4G and how many users have a pretty positive favorability on it?,"SELECT T1.Size, COUNT(T1.App) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'Browser 4G' AND T2.Sentiment_Polarity >= 0.5" Show all calendar dates and day Numbers.,"SELECT calendar_date , day_Number FROM Ref_calendar" Name the title of jean-pierre jeunet,"SELECT english_title FROM table_name_17 WHERE director = ""jean-pierre jeunet""" what is the duration of the longest song grouped by genre?,"SELECT max ( T1.duration ) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is" "what is the name of the episode whose premiere was in march 2, 1997?","SELECT title FROM table_2226817_12 WHERE original_air_date = ""March 2, 1997""" "Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?","SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = ""alex yoong""" What are December 10's high points?,"SELECT high_points FROM table_27712451_6 WHERE date = ""December 10""" What horse was shown by with Britta Näpel and got less than 71.909?,"SELECT horse FROM table_name_61 WHERE athlete = ""britta näpel"" AND result < 71.909" What was the result of the election featuring james a. gallivan (d) unopposed?,"SELECT result FROM table_1342379_20 WHERE candidates = ""James A. Gallivan (D) Unopposed""" What is the average of all domestic passengers?,SELECT avg ( Domestic_Passengers ) FROM airport Who is the youngest player and which city did he/she come from?,SELECT T3.City_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id INNER JOIN City AS T3 ON T2.Country_Id = T3.Country_Id ORDER BY T1.DOB LIMIT 1 What was the result of the bout that led to a 4-4 record?,"SELECT res FROM table_name_1 WHERE record = ""4-4""" What is the phone number of the performer Ashley?,"SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = ""Ashley""" List down the cities belongs to the country that has surface area greater than 7000000.,"SELECT T2.Name, T1.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.SurfaceArea > 7000000" What is the nickname of staff with first name as Janessa and last name as Sawayn?,"SELECT nickname FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" How many stolen ends were there when the locale was Sweden?,SELECT stolen_ends FROM table_1543845_63 WHERE locale = Sweden how many customers cards there,SELECT count ( * ) from Customers_Cards List the advisor IDs for students with eighth year of program and position status in faculty of those professors.,"SELECT T1.p_id_dummy, T2.hasPosition FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_8'" What are the dimensions of those products?,"SELECT product,dimensions FROM product WHERE max_page_size = ""A4"" AND pages_per_minute_color < 5" Which venue hosted a tournament in 1965?,SELECT venue FROM table_name_78 WHERE year = 1965 What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.,"SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2;" What is the margin when periyakulam is the constituency?,"SELECT margin FROM table_22754491_1 WHERE constituency = ""Periyakulam""" What are the ids of the problems which are reported after 1978-06-26?,"SELECT problem_id FROM problems WHERE date_problem_reported > ""1978-06-26""" What is the grid of car no. 3?,"SELECT grid FROM table_name_17 WHERE car_no = ""3""" What is the sum of the value Top-10 that has a Cuts value of 2 and a Wins value smaller than 0?,SELECT SUM(top_10) FROM table_name_26 WHERE cuts_made = 2 AND wins < 0 What is Dayana Robel policy id?,"SELECT Policy_ID FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = ""Dayana Robel""" Name the most joined for molloy college,"SELECT MAX(joined) FROM table_1969577_1 WHERE institution = ""Molloy College""" When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?,"SELECT construction_start FROM table_12983929_1 WHERE commercial_operation = ""04.03.1987""" What is the distance of the aircraft with the name Boeing 737-800?,SELECT distance FROM Aircraft where name = 'Boeing 737-800' What party does the area with the zip code 91701 belong to?,SELECT T1.party FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T3.zip_code = 91701 GROUP BY T1.party In what venue was the hosted away team Essendon?,"SELECT venue FROM table_name_59 WHERE away_team = ""essendon""" What is the top speed of the model 1.8 20v t?,"SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = ""1.8 20v t""" Who was Manuela Maleeva opponent when she played a match partnered with michelle strebel?,"SELECT opponents FROM table_name_81 WHERE partner = ""michelle strebel""" Show all information on that airport,SELECT * FROM airport ORDER BY International_Passengers DESC LIMIT 1 What is the frequency of 101.5 News FM?,"SELECT frequency FROM table_19215259_1 WHERE branding = ""101.5 News FM""" What's the total grid for someone with a time/retire of +44.831,"SELECT COUNT(grid) FROM table_name_26 WHERE time_retired = ""+44.831""" What are the names of enzymes whose product is not 'Heme'?,SELECT name FROM enzyme WHERE product != 'Heme' "What is the Position, when Player is ""Magnus Nygren""?","SELECT position FROM table_name_53 WHERE player = ""magnus nygren""" What is the release date by Editions EG in the Netherlands?,"SELECT AVG(release_date) FROM table_name_46 WHERE music_label = ""editions eg"" AND country = ""netherlands""" What is the author id?,SELECT T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT ( * ) DESC LIMIT 1 "Which college's enrollment is less than 1,000?",SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000 What Type of game has a Results¹ of 10:1?,"SELECT type_of_game FROM table_name_33 WHERE results¹ = ""10:1""" what opponent has the record of 78-63?,"SELECT opponent FROM table_name_25 WHERE record = ""78-63""" How many episodes have a segment d that is goalie masks (part 2)?,"SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = ""goalie masks (part 2)""" "What are the names and descriptions of the all courses under the ""Computer Science"" subject?","SELECT T1.course_name , T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = ""Computer Science""" which product coloured the highest pages in a minute?,"SELECT product,pages_per_minute_color FROM product order by pages_per_minute_color desc limit 1" What Secretary has a Social AO of lieke de boer?,"SELECT secretary FROM table_name_12 WHERE social_ao = ""lieke de boer""" What manufacturers on the list are located in Austin?,SELECT Name FROM manufacturers where Headquarter = 'Austin' What is the total grid of the team with a time/retired of +7.346?,"SELECT COUNT(grid) FROM table_name_53 WHERE time_retired = ""+7.346""" List out the name and indicator code of high income: nonOECD countries,"SELECT DISTINCT T1.CountryCode, T2.CountryName FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IncomeGroup = 'High income: nonOECD'" What place is the United States in that has a score of 68-73-68=209?,"SELECT place FROM table_name_8 WHERE country = ""united states"" AND score = 68 - 73 - 68 = 209" "Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?","SELECT 2007 FROM table_name_53 WHERE 2008 = ""1r"" AND tournament = ""wimbledon""" What is the series number for season episode 24?,SELECT MIN(series_number) FROM table_13505192_3 WHERE season_number = 24 What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?,"SELECT MIN(year) FROM table_name_74 WHERE class = ""125cc"" AND points > 102 AND rank = ""2nd""" How many incumbents are in district la-1?,"SELECT COUNT(incumbent) FROM table_28188239_1 WHERE district = ""LA-1""" Who won the gold when Jules van Dyk Belgium won bronze?,"SELECT gold FROM table_name_13 WHERE bronze = ""jules van dyk belgium""" What is the county of the bridge in Boulder?,"SELECT county FROM table_name_62 WHERE location = ""boulder""" What's the part 3 of the verb whose class is 4?,"SELECT part_3 FROM table_1745843_6 WHERE class = ""4""" Which is the origin country of the $44274.40748 car?,SELECT T3.country FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T1.price = 44274.40748 What are the top 5 installed free apps?,"SELECT App FROM playstore WHERE Price = 0 ORDER BY CAST(REPLACE(REPLACE(Installs, ',', ''), '+', '') AS INTEGER) DESC LIMIT 5" Show all the planned delivery dates and actual delivery dates of bookings.,"SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS" Find the different white color grapes that produced wines with scores higher than 90.,"SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = ""White"" AND T2.score > 90" Find the countries that have never participated in any competition with Friendly type.,SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.,SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance What are the first names and office of the professors who are in the history department and have a Ph.D?,"SELECT T1.emp_fname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T3.dept_code = T2.dept_code WHERE T3.dept_name = 'History' AND T2.prof_high_degree = 'Ph.D.'" When toronto is the hometown how many height measurements are there?,"SELECT COUNT(height) FROM table_18618707_1 WHERE hometown = ""Toronto""" Who was the opponent when the record was 11-6-2?,"SELECT opponent FROM table_name_25 WHERE record = ""11-6-2""" What are the total population of the districts whose area is larger than the average city area?,SELECT sum ( city_population ) FROM district WHERE city_area > ( SELECT avg ( city_area ) FROM district ) What was the result of game 1?,"SELECT result FROM table_name_26 WHERE game = ""game 1""" "What was the passenger fare for Lansing, when the passenger fare for Kalamazoo was $599.39?","SELECT lansing__lan_ FROM table_name_60 WHERE kalamazoo__azo_ = ""$599.39""" What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?,SELECT SUM(2006) FROM table_name_83 WHERE 2011 > 4113 AND 2008 < 7181 "How many donors have endowment for school named ""Glenn""?","SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = ""Glenn""" When the home team north melbourne was playing what did they score?,"SELECT home_team AS score FROM table_name_78 WHERE home_team = ""north melbourne""" "What is the power when the displacement is 182cid (2,988cc) and the notes are eu spec?","SELECT power FROM table_name_43 WHERE displacement = ""182cid (2,988cc)"" AND notes = ""eu spec""" What is the production cost when the producer is raintree pictures?,"SELECT production_cost FROM table_name_63 WHERE producer = ""raintree pictures""" What is Round when Year is 1987?,SELECT round FROM table_name_92 WHERE year = 1987 Which rank is the lowest with 37 games and more than 613 points?,SELECT MIN(rank) FROM table_name_44 WHERE games = 37 AND points > 613 How much money on average does Lucas Wyldbore spend on book orders?,SELECT SUM(T1.price) / COUNT(*) FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Wyldbore' How many Gold for the Nation in Rank 15 with 0 Silver?,"SELECT MAX(gold) FROM table_name_34 WHERE rank = ""15"" AND silver > 0" What other classes is this student taking?,select distinct course_name from Student_Course_Enrolment AS T1 JOIN Courses AS T2 ON T2.course_id = T1.course_id WHERE student_id = '15' and course_name ! = 'Chinese Painting' what is the earliest founded when the home city is mayagüez?,"SELECT MIN(founded) FROM table_name_51 WHERE home_city = ""mayagüez""" "What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?",SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5 What are the websites of schools that were founded in 1872?,SELECT website FROM table_name_11 WHERE founded = 1872 What are the names of the top 5 recipes that are best for wound healing?,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.vitamin_c DESC LIMIT 5 "In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion?",SELECT T3.ward_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Ward AS T3 ON T3.ward_no = T2.ward_no WHERE T1.primary_description = 'INTIMIDATION' AND T1.secondary_description = 'EXTORTION' AND T3.Population > 55000 GROUP BY T3.ward_no ORDER BY COUNT(T3.ward_no) DESC LIMIT 1 What is the prevalence percentage of condition no. 64859006?,"SELECT DISTINCT T1.""PREVALENCE PERCENTAGE"" FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON lower(T1.ITEM) = lower(T2.DESCRIPTION) WHERE T2.code = '64859006'" Which county is El Cerrito from?,SELECT county FROM geographic WHERE city = 'el cerrito' "What are the maximum and minimum share of performances whose type is not ""Live final"".","SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> ""Live final""" "What is the name of the school with the highest number of first-time, full-time, degree-seeking female students in the cohort being tracked, minus any exclusions who were seeking another type of degree or certificate at a 4-year institution?",SELECT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.gender = 'F' AND T2.cohort = '4y other' ORDER BY T2.grad_cohort DESC LIMIT 1 Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.,"SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1" Which classrooms are used by grade 4?,SELECT DISTINCT classroom FROM list WHERE grade = 4 What is cork's rank?,"SELECT rank FROM table_name_4 WHERE county = ""cork""" What are the first names of every student who has a cat or dog as a pet?,SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog' what is the place when the score is 68-67-73-68=276?,SELECT place FROM table_name_20 WHERE score = 68 - 67 - 73 - 68 = 276 How many people wrote the episode that had 6.34 million viewers?,"SELECT COUNT(written_by) FROM table_17641206_2 WHERE viewership = ""6.34 million""" "What instruments does the the song ""Le Pop"" use?","SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What is the maximum and minimum weight of all players?,"SELECT max(weight) , min(weight) FROM Player" "Alex Winckler wrote the film, who was the director?","SELECT director_s_ FROM table_name_35 WHERE writer_s_ = ""alex winckler""" Which cities have a branch?,SELECT distinct city FROM branch Show the date and venue of each workshop in ascending alphabetical order of the venue.,"SELECT Date , Venue FROM workshop ORDER BY Venue" What is the score on 23 November 1983 with exeter city as the away team?,"SELECT score FROM table_name_31 WHERE date = ""23 november 1983"" AND away_team = ""exeter city""" What is the Player with Versus with australia?,"SELECT player FROM table_name_34 WHERE versus = ""australia""" How many total players are there?,SELECT count ( * ) FROM player "What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?","SELECT championship FROM table_name_41 WHERE surface = ""clay"" AND score_in_the_final = ""6–2, 5–7, 6–4, 6–2""" "What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?",SELECT loses FROM table_name_84 WHERE points_for < 1175 AND wins > 2 AND points_against > 894 AND points = 24 Count the number of films.,SELECT count(*) FROM film What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?,SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748 What is the sum of the largest purse?,SELECT MAX(purse__) AS $__ FROM table_11622392_1 Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.,SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261' Which Economic Class has a Barangay of imelda bliss village?,"SELECT economic_class FROM table_name_77 WHERE barangay = ""imelda bliss village""" "It has a FA Cup Goals smaller than 4, and a FA Cup Apps larger than 7, what is the total number of total apps?",SELECT COUNT(total_apps) FROM table_name_6 WHERE fa_cup_goals < 4 AND fa_cup_apps > 7 "Which Type has a Builder of avonside engine company, and a Number of 9?","SELECT type FROM table_name_55 WHERE builder = ""avonside engine company"" AND number = 9" How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected?,"SELECT bleeding_time FROM table_1555308_1 WHERE platelet_count = ""Decreased"" AND prothrombin_time = ""Unaffected""" "How many years have an Award of venice film festival, and a Title of lust, caution?","SELECT COUNT(year) FROM table_name_73 WHERE award = ""venice film festival"" AND title = ""lust, caution""" During what race did Mike Hawthorn have the Fastest Lap and Peter Collins win?,"SELECT race FROM table_name_51 WHERE fastest_lap = ""mike hawthorn"" AND winning_driver = ""peter collins""" What PBA team is the player from Ateneo college with a pick number smaller than 15 from?,"SELECT pba_team FROM table_name_65 WHERE pick < 15 AND college = ""ateneo""" Show all student IDs who have at least two allergies.,SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2 What is the overall number for a kicker with a pick of less than 6?,"SELECT COUNT(overall) FROM table_name_84 WHERE position = ""kicker"" AND pick__number < 6" How many students have a major of 600?,SELECT COUNT ( * ) FROM Student WHERE Major = 600 What are the usernames and passwords of users that have the most common role?,"SELECT user_name , password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1" Tell me the vehicle id and staff id for all lesson id's...,"SELECT T1.vehicle_id , T2.staff_id FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id" How many people won in No. 12,SELECT COUNT(race_winner) FROM table_15187794_1 WHERE no = 12 What was the series of the episode directed by Abe Levitow released on 1959-06-27?,"SELECT series FROM table_name_63 WHERE director = ""abe levitow"" AND release_date = ""1959-06-27""" What are the titles of the films with those IDs?,SELECT Title from film WHERE film_ID IN ( SELECT film_ID FROM film WHERE Film_ID NOT IN ( SELECT Film_ID FROM film_market_estimation ) ) list the countries with mountains with height less than 5200,SELECT Country FROM mountain WHERE Height < 5200 how much is Creative Labs revenue?,"SELECT Revenue FROM manufacturers WHERE Name = ""Creative Labs""" What is the Freq currently of the 4GG Callsign?,"SELECT freq_currently FROM table_name_7 WHERE callsign = ""4gg""" What car make was sponsored by Aflac?,"SELECT make FROM table_27940569_1 WHERE sponsor = ""Aflac""" Who played in the semi finals matches at the Buick WCT finals?,"SELECT semifinal_matches FROM table_2413292_1 WHERE commercial_name = ""Buick WCT Finals""" In which district is the first elected 2000?,SELECT district FROM table_1805191_10 WHERE first_elected = 2000 What is the primary conference of the school that has the lowest acc percent score in the competition?,SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1 In how many games were the high rebounds made by Derrick Favors (8)?,"SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = ""Derrick Favors (8)""" Find the names and phone numbers of customers living in California state.,"SELECT t1.customer_name , t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'" who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto,"SELECT mens_doubles FROM table_13857700_1 WHERE mixed_doubles = ""Jimm Aalto Nina Sarnesto""" "Among all the male officers, what is the percentage of them are White?","SELECT CAST(SUM(IIF(race = 'W', 1, 0)) AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M'" what is the minimum points with highest position being 1,SELECT MIN(points) FROM table_13789248_2 WHERE highest_position = 1 What is the ranking for the United States when the money is $200?,"SELECT place FROM table_name_52 WHERE country = ""united states"" AND money___$__ = ""200""" In what Year is the length of the Song 7:42?,"SELECT AVG(year) FROM table_name_40 WHERE length = ""7:42""" What cities do students live in?,SELECT DISTINCT city_code FROM Student what is the characteristic data type of characteristic id 1,select characteristic_data_type from Characteristics where characteristic_id = 1 "Find the incident type code of behavior incidents of students with the last name ""Fahey""?","SELECT T1.incident_type_code FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = ""Fahey""" How many golds for Canada (12 total)?,"SELECT gold FROM table_name_7 WHERE total > 12 AND nation = ""canada""" What is the oldest age of the users in 2014's survey?,SELECT T2.AnswerText FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'What is your age?' AND T2.SurveyID = 2014 ORDER BY T2.AnswerText DESC LIMIT 1 "What is Prize, when Winner is ""John Shaw""?","SELECT prize FROM table_name_21 WHERE winner = ""john shaw""" List the all the distinct names of the products with the characteristic name 'warm'.,"SELECT DISTINCT t1.product_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 t3.characteristic_name = ""warm""" What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0?,SELECT SUM(silver) FROM table_name_26 WHERE bronze > 0 AND gold < 0 Which league goals has FA cup apps of 2?,SELECT league_goals FROM table_name_39 WHERE fa_cup_apps = 2 What are the names and dates for documents corresponding to project that has the details 'Graph Database project'?,"SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'" "What is Winner, when Date is ""20 August""?","SELECT winner FROM table_name_50 WHERE date = ""20 august""" "What is the record at the neutral site for when the overall record is ui, 27-16?","SELECT at_neutral_site FROM table_16201038_4 WHERE overall_record = ""UI, 27-16""" Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.,SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3 "For the business with great experience existed in Sun Lakes city, provide the user ID who gave review on it and user followers.","SELECT T3.user_id, T3.user_fans FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id INNER JOIN Users AS T3 ON T2.user_id = T3.user_id WHERE T1.city = 'Sun Lakes' AND T1.stars = 5" List the name of singers that do not have any song.,SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song) "Which catalog did Village Records have on February 14, 2002?","SELECT catalog FROM table_name_60 WHERE label = ""village records"" AND date = ""february 14, 2002""" How many employees are there all together?,SELECT count(*) FROM employee What spacecraft had an EVA that ended at 17:28?,"SELECT spacecraft FROM table_name_66 WHERE end_time = ""17:28""" How many viewers were there on 1august1964?,"SELECT viewers__in_millions_ FROM table_1723080_1 WHERE broadcast_date = ""1August1964""" What is the percentage of Atheism associated with an other percentage of 0.08%?,"SELECT atheism FROM table_name_90 WHERE other = ""0.08%""" Provide the authors and titles of the books which have more than 3000 pages.,"SELECT T3.author_name, T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.num_pages > 3000" "Which venue has 13,634 people in attendance?","SELECT venue FROM table_name_57 WHERE attendance = ""13,634""" What is the latitude of vaidilute rupes?,"SELECT latitude FROM table_16799784_3 WHERE name = ""Vaidilute Rupes""" Name the most abama number for mccain being 29266,SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = 29266 Find the total number of players.,SELECT count(*) FROM players What are the birth places that are shared by at least two people?,SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2 what is the episode # for production code 227,SELECT episode__number FROM table_10269427_3 WHERE production_code = 227 "Which away team played against Peterborough United, with a tie no of replay?","SELECT away_team FROM table_name_85 WHERE tie_no = ""replay"" AND home_team = ""peterborough united""" Find the origins from which more than 1 train starts.,SELECT origin FROM train GROUP BY origin HAVING count(*) > 1 When 21 is the number in series what is the air date?,SELECT original_air_date FROM table_2409041_2 WHERE no_in_series = 21 List the names of all players from Avangard Omsk who played in the 2000-2001 season of the International league that have no goals in draft year.,SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '2000-2001' AND T1.LEAGUE = 'International' AND T1.TEAM = 'Czech Republic (all)' AND T1.G = 0 Which race has a distance of 201.44 miles?,"SELECT race FROM table_name_71 WHERE distance = ""201.44 miles""" What is Hong's singles record?,"SELECT singles_WL from player where player like ""%Hong%""" who had a last performance of 3 july 2011?,"SELECT name FROM table_name_18 WHERE last_performance = ""3 july 2011""" "Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games?",SELECT MAX(played) FROM table_name_61 WHERE goal_difference < 27 AND losses > 13 AND goals_for < 42 AND draws = 6 What was d. a. weibring's to par?,"SELECT to_par FROM table_name_39 WHERE player = ""d. a. weibring""" Which buildings have a General Electric then?,"SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id where T3.name = ""General Electric""" Who did they play at lincoln financial field at 8:30 (ET) after week 14?,"SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = ""lincoln financial field"" AND time__et_ = ""8:30""" What type of decor in room name Abscond or bolster?,"SELECT decor FROM Rooms where roomname = ""Abscond or bolster""" Which circuit was held on 25–28 march?,"SELECT circuit FROM table_26686908_2 WHERE date = ""25–28 March""" "what is the goals when the country is wal, the name is smith and apps is more than 0?","SELECT SUM(goals) FROM table_name_83 WHERE country = ""wal"" AND name = ""smith"" AND apps > 0" List the name of the aircraft that has been named winning aircraft the most number of times.,SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1 What position did the #10 draft pick play?,"SELECT position FROM table_1004033_1 WHERE draft_pick__number = ""10""" "Tell me north america for january 23, 2013","SELECT north_america FROM table_name_83 WHERE japan = ""january 23, 2013""" Who was the winner when the time was 1:24.00?,"SELECT winner_2nd FROM table_1360997_2 WHERE time = ""1:24.00""" "Show the id, name of each editor and the number of journal committees they are on.","SELECT T1.editor_id , T1.Name , COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id" Return the names of cities that have a population between 160000 and 900000 .,select name from city where population between 160000 and 900000 "List the sales ID of the product with a quantity of 590 and named ""External Lock Washer 7"".",SELECT T1.SalesID FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'External Lock Washer 7' AND T1.Quantity = 590 Who had the high assists for game 49?,SELECT high_assists FROM table_11907963_6 WHERE game = 49 Which is the charity that the background of the celebrity is heavyweight champion?,"SELECT charity FROM table_12286195_1 WHERE background = ""Heavyweight Champion""" List the date of perpetrators in descending order of the number of people killed.,SELECT Date FROM perpetrator ORDER BY Killed DESC What Player is from the Country United States and Money ($) of 356?,"SELECT player FROM table_name_24 WHERE country = ""united states"" AND money___$__ = 356" how many pos with member association being china pr,"SELECT COUNT(pos) FROM table_14460937_2 WHERE member_association = ""China PR""" List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.,SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services' Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?,"SELECT years_as_tallest FROM table_name_14 WHERE height_metres___ft = ""01.0 27 / 90""" "Find all the catalog publishers whose name contains ""Murray""","SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE ""%Murray%""" What are the ids of all female students who play football?,"SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" How many students have been absent less than 4 months?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 4 What is the latitude and longitude for Surveyor 3?,"SELECT lat___lon FROM table_name_87 WHERE us_mission = ""surveyor 3""" can you please show me all the female architects?,SELECT name FROM architect WHERE gender = 'male' What are the last names of the students that minor in the department with DNO 140?,SELECT T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140 What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5?,"SELECT date FROM table_name_6 WHERE game < 5 AND location = ""oakland-alameda county coliseum"" AND time = ""3:40""" What is the name and opening year for the branch that registered the most members in 2016?,"SELECT T2.name , T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1" What is the earliest any of these players were born?,SELECT MIN(year_born) FROM table_12962773_10 Who all played mixed doubles in 2010?,SELECT mixed_doubles FROM table_name_68 WHERE year = 2010 What is the latest year for a Emeryson 1006 chassis with more than 0 points?,"SELECT MAX(year) FROM table_name_37 WHERE chassis = ""emeryson 1006"" AND points > 0" Who is the lead for the team with Christina Haller as alternate?,"SELECT lead FROM table_name_86 WHERE alternate = ""christina haller""" How many games were played by the player who had 22 penalty minutes?,"SELECT games FROM table_name_52 WHERE pen_min = ""22""" What was the inroductory phase for the episode that originally aired january 21?,"SELECT introductory_phrase FROM table_14835674_1 WHERE original_airdate = ""January 21""" What is the number of pole position with a round of 15?,SELECT COUNT(pole_position) FROM table_1137707_2 WHERE round = 15 "What was the score on October 24, 2005?","SELECT score FROM table_name_55 WHERE date = ""october 24, 2005""" What is the number of players whose last name is Green that played in the league but not coached?,SELECT COUNT(playerID) FROM Master WHERE lastName = 'Green' AND coachID IS NULL "Which company was based in London, United Kingdom?","SELECT institution FROM table_15438337_1 WHERE country = ""London, United Kingdom""" What party was re-elected to Virginia 12?,"SELECT party FROM table_2668420_17 WHERE result = ""Re-elected"" AND district = ""Virginia 12""" What is the last name of Reservations Code 10105?,SELECT LastName from Reservations where Code = 10105 What is the percentage of male athletes from Estonia?,SELECT CAST(COUNT(CASE WHEN T3.gender = 'M' THEN 1 ELSE NULL END) AS REAL) * 100 / 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 = 'Estonia' Which location has the most corresponding counties?,SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 what type of institution is ottawa university?,"SELECT type FROM table_262527_1 WHERE institution = ""Ottawa University""" Which memeber has nt as the state?,"SELECT member FROM table_name_7 WHERE state = ""nt""" Show names for all aircrafts of which John Williams has certificates.,"SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = ""John Williams""" What was the nationality of the swimmer in the semifinal with a time of 29.51?,"SELECT nationality FROM table_name_62 WHERE round = ""semifinal"" AND time = ""29.51""" can you show me a list of active from date?,select active_from_date from customer_contact_channels In which position did Iljuštšenko finish in the European Championships held prior to 2008?,"SELECT position FROM table_name_48 WHERE year < 2008 AND competition = ""european championships""" Tell me the affiliation for mls team of metrostars and pick number of 26,"SELECT affiliation FROM table_name_28 WHERE mls_team = ""metrostars"" AND pick__number = 26" How many Number of Platforms in station id 2?,select number_of_platforms from station where station_id = 2 "What type of transaction was made with the only yellow product, size 62 and with a minimum inventory stock of 500 units?",SELECT DISTINCT T2.TransactionType FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Size = 62 AND T1.Color = 'Yellow' AND T1.SafetyStockLevel = 500 "Among the universities with a score in teaching of over 90 in 2011, how many of them are in the United States of America?",SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90 What country is he from?,SELECT T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count ( * ) DESC LIMIT 1 Show the race class and number of races in each class.,"SELECT CLASS, COUNT(*) FROM race GROUP BY CLASS" list out the all machine id,SELECT machine_id FROM repair_assignment What is the total amount of products purchased before 2018-03-17 07:13:53?,SELECT sum(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < '2018-03-17 07:13:53' List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.,SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security' what are the names of the players?,SELECT Player_name FROM Player Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.,SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000 "For each team, how many technicians are there?","SELECT Team , COUNT(*) FROM technician GROUP BY Team" What was the score for the game against Houston?,"SELECT score FROM table_23285761_10 WHERE team = ""Houston""" And what about the accounting department?,"SELECT count ( * ) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = ""Accounting""" How many were in attendance against the Oakland Raiders after week 7?,"SELECT SUM(attendance) FROM table_name_25 WHERE opponent = ""oakland raiders"" AND week > 7" What is the lowest enrollment amount for a year left of 2012 and a current conference of Mid-South?,"SELECT MIN(enrollment) FROM table_name_17 WHERE left = 2012 AND current_conference = ""mid-south""" List every album whose title starts with A in alphabetical order.,SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title; What is Brian Mateer's Speed?,"SELECT speed FROM table_name_1 WHERE rider = ""brian mateer""" What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?,SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax' "Among the establishments that failed in the inspection, what is the percentage of establishments with the highest risk level?",SELECT CAST(COUNT(CASE WHEN T1.risk_level = 3 THEN T1.license_no END) AS REAL) * 100 / COUNT(T1.risk_level) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T2.results = 'Fail' "How many authors finished the paper ""An Improved Active Suspension Model for Attitude Control of Electric Vehicles"" together?",SELECT COUNT(T2.AuthorId) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' What is the full set of information associated with staff with last name Bosco?,SELECT * FROM Staff where staff_last_name = 'Bosco' List all the image name and URLs in the order of their names.,"SELECT image_name, image_url FROM images ORDER BY image_name" Which Tournament has an Opponent of meike babel?,"SELECT tournament FROM table_name_92 WHERE opponent = ""meike babel""" "What is Built, when Works Number is ""717""?","SELECT built FROM table_name_42 WHERE works_number = ""717""" How many donors from New Jersey have made a donation for an honoree?,SELECT COUNT(donationid) FROM donations WHERE for_honoree = 't' AND donor_state = 'NJ' Show the leader names and locations of colleges.,"SELECT Leader_Name, College_Location FROM college" "Which Score has a Game larger than 76, a Location Attendance of madison square garden 19,763, and a High rebounds of wilson chandler (8)?","SELECT score FROM table_name_71 WHERE game > 76 AND location_attendance = ""madison square garden 19,763"" AND high_rebounds = ""wilson chandler (8)""" How many gas stations opened after 2000?,SELECT count ( * ) from gas_station where open_year > 2000 How many departments have more than ten employees who got a commission?,SELECT COUNT ( * ) FROM ( SELECT department_id FROM employees GROUP BY department_id HAVING COUNT ( commission_pct ) > 10 ) List all female students older than 18 who are not majoring in 600. List students' first name and last name.,"SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major != 600 AND Sex = 'F';" Name the lowest total for rank of 13 with bronze less than 1,SELECT MIN(total) FROM table_name_20 WHERE rank = 13 AND bronze < 1 What is the least amount of silver medals a team with less than 0 gold medals has?,SELECT MIN(silver) FROM table_name_68 WHERE gold < 0 "Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009?","SELECT senior_status FROM table_name_7 WHERE appointed_by = ""l. johnson category:articles with hcards"" AND born_died = ""1918–2009""" What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?,"SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = ""Monaco Grand Prix""" Show the average amount of transactions for different investors.,"SELECT investor_id, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id" What is the company's profit on the product that was rated second-highest by David?,SELECT T2.ListPrice - T2.StandardCost FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ReviewerName = 'David' ORDER BY T1.Rating DESC LIMIT 1 "If Wed Aug 25 is —— no time, what is Sat aug 21?","SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = ""—— No Time""" Who was the Best Male Lyricist if Neshia Nee won the Best Male Record?,"SELECT best_male_lyricist FROM table_22546460_4 WHERE best_male_record = ""Neshia Nee""" Who is the home captain that played at Edgbaston?,"SELECT home_captain FROM table_name_22 WHERE venue = ""edgbaston""" "WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?","SELECT COUNT(points) FROM table_name_73 WHERE wins < 14 AND club = ""sd indauchu"" AND position > 12" "How many July 1, 2013 projections have a Rank of 27?","SELECT COUNT(july_1), _2013_projection FROM table_name_58 WHERE rank = ""27""" What is the highest pick for a year after 2010 and a round larger than 1?,SELECT MAX(pick) FROM table_name_41 WHERE year > 2010 AND round > 1 Who played the bass for the Against the Grain album after 1982?,"SELECT bass FROM table_name_97 WHERE year > 1982 AND album = ""against the grain""" Name the most founded for enrollment 2005 being 1285,SELECT MAX(founded) FROM table_2076533_1 WHERE enrollment__2005_ = 1285 How many seats in 2006 has a % 1997 rating of 38.9?,"SELECT COUNT(seats_2006) FROM table_21132404_1 WHERE _percentage_1997 = ""38.9""" Could you narrow that down to just male faculty members in the NEB building?,"SELECT Fname , Lname FROM FACULTY WHERE sex = ""M"" AND Building = ""NEB""" What is the average year with an award of platinum?,"SELECT AVG(year) FROM table_name_44 WHERE award_description_s_ = ""platinum""" When was the last serving date of Matt Salmon?,SELECT T1.END FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Matt Salmon' "What player has The United States as the country, with t2 as the place?","SELECT player FROM table_name_9 WHERE country = ""united states"" AND place = ""t2""" How old was Jr. F. James Sensenbrenner when he first started as a legislator?,"SELECT CAST(MIN(T2.start) - T1.birthday_bio AS DATE) AS AGE FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'F. James Sensenbrenner, Jr.'" "Can you list the names of all customers who don't have any address information, please?",SELECT customer_name FROM customers WHERE customer_id NOT IN ( SELECT customer_id FROM customer_address_history ) Which industry has the most companies?,SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1 What is the name and rank of every company ordered by descending number of sales?,"SELECT company , rank FROM company ORDER BY Sales_billion DESC" What is the average number of number of movies added to the lists of user 8516503? Indicate how many movies did he/she give a rating score of 5.,"SELECT AVG(T3.list_movie_number) , SUM(CASE WHEN T1.rating_score = 5 THEN 1 ELSE 0 END) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN lists AS T3 ON T2.user_id = T3.user_id WHERE T1.user_id = 8516503" Please state the API calls for method number 10 and its intended course of action.,"SELECT T2.ApiCalls, T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 10" Can you give me the names of the movies that has the top 3 highest rating star?,SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3 Count the number of poker players.,SELECT count(*) FROM poker_player "Show the positions of the players from the team with name ""Ryley Goldner"".","SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = ""Ryley Goldner""" "What is the State, when the year First elected is 1966, and when the Member is Alan Jarman?","SELECT state FROM table_name_13 WHERE first_elected = ""1966"" AND member = ""alan jarman""" "By department, display average salary of employees who get a commission percentage","SELECT department_id , AVG ( salary ) FROM employees WHERE commission_pct ! = ""null"" GROUP BY department_id" Name the runner-up for margin of victory of 3 strokes,"SELECT runner_s__up FROM table_name_37 WHERE margin_of_victory = ""3 strokes""" Which event had Edson Claas Vieira as an opponent?,"SELECT event FROM table_name_55 WHERE opponent = ""edson claas vieira""" What was the result of the fight when Tetsuji Kato's record was 19-9?,"SELECT res FROM table_name_73 WHERE record = ""19-9""" Name the type for hobart college,"SELECT type FROM table_1974482_1 WHERE institution = ""Hobart College""" How many menus sponsored by Krogs Fiske Restaurant were created in April 2015?,SELECT COUNT(*) FROM Menu WHERE date LIKE '2015-04%' AND sponsor = 'Krogs Fiskerestaurant' Give the name of the student in the History department with the most credits.,SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1 What was the name of the Visiting team at Jack Murphy Stadium?,"SELECT visiting_team FROM table_name_90 WHERE stadium = ""jack murphy stadium""" What is the engine for a vehicle in 1960?,SELECT engine FROM table_name_59 WHERE year = 1960 Show the ids of the employees who don't authorize destruction for any document.,SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917?,SELECT T2.name FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = '1917' AND T1.W > T1.L How many attended tie number 1?,"SELECT SUM(attendance) FROM table_name_47 WHERE tie_no = ""1""" "what is the chip model of XPERIA T, XPERIA J","SELECT chip_model FROM phone WHERE Hardware_Model_name = ""XPERIA T, XPERIA J""" "List the territory IDs, description and region description under the in-charge of Mrs. Margaret Peacock.","SELECT T3.TerritoryID, T3.TerritoryDescription, T4.RegionDescription FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T1.TitleOfCourtesy = 'Mrs.' AND T1.LastName = 'Peacock' AND T1.FirstName = 'Margaret'" What is the part number of athlon x2 4850e?,"SELECT part_number_s_ FROM table_name_89 WHERE model_number = ""athlon x2 4850e""" Calculate the percentage of students who have never been absent.,"SELECT CAST(SUM(IIF(month = 0, 1, 0)) AS REAL) * 100 / COUNT(name) FROM longest_absense_from_school" "How many 2-year public schools are there in ""California""?",SELECT COUNT(stateid) FROM state_sector_details WHERE state = 'California' AND level = '2-year' AND control = 'Public' Name the total number for 18-49 share being 18-49 being 3.1,"SELECT COUNT(share__18_49_) FROM table_20971444_3 WHERE rating__18_49_ = ""3.1""" Which team/s have 48 goals total?,SELECT club FROM table_18967450_2 WHERE goals = 48 "What was the record at the game on November 13, 1932?","SELECT record FROM table_name_38 WHERE date = ""november 13, 1932""" How many assists did the player with 54 penalty minutes have?,"SELECT assists FROM table_name_45 WHERE pen_min = ""54""" "Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?","SELECT date FROM table_name_60 WHERE result = ""win"" AND round < 2 AND opponent = ""myron greenberg""" What is the Call sign of the Frequency 106.9 the X?,"SELECT call_sign FROM table_name_19 WHERE branding = ""106.9 the x""" Which class has *alanaz as Part 4?,"SELECT class FROM table_name_62 WHERE part_4 = ""*alanaz""" What is the v-core for a stepping of G1 and frequency of 1900MHz?,"SELECT v_core FROM table_name_29 WHERE stepping = ""g1"" AND frequency = ""1900mhz""" What competition took place in a year later than 2009 with team notes?,"SELECT competition FROM table_name_8 WHERE year > 2009 AND notes = ""team""" Why did Majid bagherinia leave?,"SELECT manner_of_departure FROM table_22297198_3 WHERE outgoing_manager = ""Majid Bagherinia""" "What about the account details with the value having the character '9' in it, please?","SELECT Account_details FROM Accounts WHERE Account_details LIKE ""%9%""" What was the score on 1/10/1974?,"SELECT score FROM table_name_79 WHERE date = ""1/10/1974""" Show all the title of pages and number of occurences for each page where the word 'quipu' appears.,"SELECT T1.title, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'quipu'" What was the score when the away team was Collingwood?,"SELECT away_team AS score FROM table_name_56 WHERE away_team = ""collingwood""" Find the name of customers who do not have a loan with a type of Mortgages.,SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' "For nations with more than 6 silvers and more than 10 golds, what is the lowest total?",SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10 What about for just the team Boston Red Stockings?,SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010 Which wind farm is in the USA and is noted as having multiple farms?,"SELECT wind_farm FROM table_name_58 WHERE country = ""usa"" AND notes = ""multiple farms""" Who did they play when the score was 95-118?,"SELECT opponent FROM table_name_63 WHERE score = ""95-118""" List the names of wrestlers and the teams in elimination in descending order of days held.,"SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC" Give the name and building of the departments with greater than average budget.,"SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)" What is the average amount of resources from projects that have received donations per honoree?,SELECT AVG(T1.item_quantity) FROM resources AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.for_honoree = 't' What campus has the most faculties in 2003?,SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1 What venue were the 1986 Asian games resulting in 2-0 played at?,"SELECT venue FROM table_name_44 WHERE competition = ""1986 asian games"" AND result = ""2-0""" Describe the encounter of Mr. Hubert Baumbach on 2008/10/25.,SELECT T2.description FROM patients AS T1 INNER JOIN encounters AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mr.' AND T1.first = 'Hubert' AND T1.last = 'Baumbach' AND T2.date = '2008-10-25' How many players did Boston Red Stockings have in 2000?,SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000 Who all had the most assists in game 12?,SELECT high_assists FROM table_17060277_5 WHERE game = 12 How many rooms are located for each block code?,"SELECT count(*) , T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode" What was the total tenure time with a rank of 49?,SELECT total_tenure_time FROM table_name_3 WHERE total_tenure_rank = 49 Find the name and age of the visitor who bought the most tickets at once.,"SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1" How many wins for the year that is later than 1987 and has points less than 188?,SELECT wins FROM table_name_47 WHERE year > 1987 AND points < 188 "How many events have each participants attended? List the participant id, type and the number.","SELECT T1.Participant_ID , T1.Participant_Type_Code , count(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_ID" Who built the car that has a Time/Retired of 1:36:38.887?,"SELECT constructor FROM table_name_66 WHERE time_retired = ""1:36:38.887""" Which state had 3821 students in the fall of 06?,SELECT states FROM table_15055594_6 WHERE fall_06 = 3821 How many non-discontinued products are there in the dairy category?,SELECT COUNT(T1.CategoryID) FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T1.CategoryName = 'Dairy Products' AND T2.Discontinued = 0 List out all end stations for a bicycle that were making a trip starting from 2nd at South Park station? Only retain the unique value.,SELECT DISTINCT end_station_name FROM trip WHERE start_station_name = '2nd at South Park' What title has daffy (as duck dodgers) as the character?,"SELECT title FROM table_name_98 WHERE characters = ""daffy (as duck dodgers)""" What shows for round when the race was Int. Adac Preis Von Zweibrücken?,"SELECT round FROM table_name_43 WHERE race = ""int. adac preis von zweibrücken""" "Can you please order them in alphabetical order of project, and then of scientist name?","SELECT T1.Name , T3.Name , T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name , T1.Name" What is the name of the sales person who handled the highest number of sales?,"SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T2.SalesPersonID = T1.EmployeeID GROUP BY T2.SalesPersonID, T1.FirstName, T1.MiddleInitial, T1.LastName ORDER BY COUNT(T2.SalesID) DESC LIMIT 1" What is thr type in Aut country?,"SELECT type FROM table_name_81 WHERE country = ""aut""" Which major has the most students?,SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1 What is the high bronze total for nations ranked 12?,"SELECT MAX(bronze) FROM table_name_15 WHERE rank = ""12""" Name the authority for coed gender and chanel college,"SELECT authority FROM table_name_67 WHERE gender = ""coed"" AND name = ""chanel college""" Who directed the eposide that was watched by 1.95 million US viewers?,"SELECT directed_by FROM table_26736342_1 WHERE us_viewers__millions_ = ""1.95""" "Can you filter this list to show just the staff members who reported problems with the product named ""rem""?","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""rem""" "If the rank is 17, what are the names?",SELECT name FROM table_24990183_7 WHERE rank = 17 "What are the dates of the orders made by the customer named ""Jeramie""?","SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = ""Jeramie""" what is the county of California State University-Chico,"SELECT county FROM campuses where campus = ""California State University-Chico""" What's the top year with the Chassis ats hs1?,"SELECT MAX(year) FROM table_name_33 WHERE chassis = ""ats hs1""" Hello. What are the IDs of guests with gender code Female?,"SELECT guest_id FROM Guests WHERE gender_code = ""Female""" Which player is in position center for round 2?,"SELECT player FROM table_name_88 WHERE round = ""2"" AND position = ""center""" How many points did Duncan Thompson score?,"SELECT MAX(points) FROM table_14342480_15 WHERE player = ""Duncan Thompson""" display the ID for those employees who did two or more jobs in the past.,SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2 "Which Facility ID has a City of license of springfield, ma, and a ERP / Power W smaller than 230?","SELECT MAX(facility_id) FROM table_name_15 WHERE city_of_license = ""springfield, ma"" AND erp___power_w < 230" How old is each student and how many students are each age?,"SELECT age , count(*) FROM Student GROUP BY age" What is the description of the category that tofu belongs to?,SELECT T1.Description FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.ProductName = 'tofu' What is the full name of the employee who is in charge of the territory of Denver?,"SELECT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID WHERE T3.TerritoryDescription = 'Denver'" "Which Constructor has the Winning Driver, Jo Siffert?","SELECT constructor FROM table_name_72 WHERE winning_driver = ""jo siffert""" "Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback mountain, and an Award of golden globe award?","SELECT category FROM table_name_45 WHERE year > 1996 AND result = ""won"" AND title = ""brokeback mountain"" AND award = ""golden globe award""" "what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?","SELECT nominated_work_title FROM table_name_52 WHERE result = ""won"" AND organisation = ""star awards"" AND award = ""top 10 most popular female artiste"" AND year > 2007" "Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?","SELECT rider FROM table_name_43 WHERE rank < 8 AND year = 2000 AND speed = ""18.32 km/h""" How many times did Morgan win The Masters Tournament with fewer than 12 appearances?,"SELECT AVG(wins) FROM table_name_12 WHERE tournament = ""masters tournament"" AND events < 12" Thank you! Can you update that list to include the instructor names and which departments they are in?,"SELECT name, dept_name FROM instructor WHERE id NOT IN ( SELECT id FROM teaches ) " What is the weight of the person born in 1980?,"SELECT weight FROM table_name_63 WHERE born = ""1980""" What is the last round with club team Guelph Storm (ohl)?,"SELECT MAX(round) FROM table_11803648_22 WHERE club_team = ""Guelph Storm (OHL)""" How many detentions are there?,SELECT distinct count ( * ) from detention "Which conference is in Jackson, Mississippi?","SELECT current_conference FROM table_10577579_3 WHERE location = ""Jackson, Mississippi""" What is the Winner when anke huber chanda rubin was semi finalist?,"SELECT winner FROM table_name_31 WHERE semi_finalists = ""anke huber chanda rubin""" What are the neighborhoods that are located in the North Center community area?,SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'North Center' "Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam?","SELECT team_2 FROM table_name_27 WHERE venue = ""binh duong stadium, vietnam""" What is the zip code of staff with first name as Janessa and last name as Sawayn lived?,"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = ""Janessa"" AND T2.last_name = ""Sawayn""" Name the chapter with chinese of 釋水,"SELECT chapter FROM table_name_28 WHERE chinese = ""釋水""" What is the most common amenity in the dorms?,SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1 "Which ""music"" podcast has the longest title?",SELECT T2.title FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id WHERE T1.category = 'music' ORDER BY LENGTH(T2.title) DESC LIMIT 1 Name the most rank,SELECT MAX(rank) FROM table_22355_68 "What is the customer id of the customer with the most accounts, and how many accounts does this person have?","SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1" Find the abbreviation and country of the airline that has fewest number of flights?,"SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1" What was the actors name that vadim ilyenko directed?,"SELECT actors_name FROM table_10236830_1 WHERE director = ""Vadim Ilyenko""" what is the highest lane number for johan wissman when the react is less than 0.242?,"SELECT MAX(lane) FROM table_name_48 WHERE name = ""johan wissman"" AND react < 0.242" What is the college that Jeffrey Simmer plays for?,"SELECT college FROM table_15817998_5 WHERE player = ""Jeffrey Simmer""" "Which city does the student whose last name is ""Kim"" live in?","SELECT city_code FROM Student WHERE LName = ""Kim""" The boat named Agamemnon has what status?,"SELECT status FROM table_name_94 WHERE name = ""agamemnon""" what is fault status of engineer id 8?,SELECT fault_status from Engineer_Visits where engineer_id = 8 how many body builder id are there,select count ( * ) from body_builder "Who got more than 10,000 votes?",SELECT player_name from player WHERE votes > 10000 How many pages of Wikipedia are there in total on the Catalan language?,SELECT pages FROM langs WHERE lang = 'ca' can i have the master customer id,SELECT master_customer_id FROM CMI_Cross_References What is the date of the game where Dipietro earned a decision and Carolina was the visiting team?,"SELECT date FROM table_name_28 WHERE decision = ""dipietro"" AND visitor = ""carolina""" Most number of students affected by which allergy?,SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count ( * ) DESC LIMIT 1 Which 2008 Tournament has a 2007 of a and a 2010 of qf?,"SELECT 2008 FROM table_name_46 WHERE 2007 = ""a"" AND 2010 = ""qf""" What was the date of the Mariners game that had a loss of Segui (0-5)?,"SELECT date FROM table_name_77 WHERE loss = ""segui (0-5)""" "Sure, can you add to the table the unit of measure values for the product category codes of Spices and Herbs?","select unit_of_measure from Ref_Product_Categories where product_category_code = 'Herbs' or product_category_code = 'Spices'" Where did the match with opponent Laverne Clark occur?,"SELECT location FROM table_name_14 WHERE opponent = ""laverne clark""" "What is the name of Anguilla's capital, and where is it located?","SELECT Capital, Province FROM country WHERE Name = 'Anguilla'" What is the score of the home team aginst Essendon?,"SELECT home_team AS score FROM table_name_89 WHERE away_team = ""essendon""" "What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl?","SELECT score_in_the_final FROM table_name_44 WHERE surface = ""hard"" AND championship = ""washington, d.c. , u.s."" AND opponent_in_the_final = ""ivan lendl""" What is the date for game 4?,"SELECT date FROM table_name_97 WHERE game = ""game 4""" "What is the highest Year, when the Venue is Beijing, PR China?","SELECT MAX(year) FROM table_name_54 WHERE venue = ""beijing, pr china""" "From August 10 to August 20, 2018, how many cancelled flights of air carrier named Spirit Air Lines: NK are there?",SELECT COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Spirit Air Lines: NK' AND T2.CANCELLED = 0 AND T2.FL_DATE BETWEEN '2018/8/10' AND '2018/8/20' What kind of government does Iran have?,SELECT T2.Government FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Iran' What was the average elimination time of all teams?,SELECT avg ( TIME ) FROM elimination What is the Name of the power station with a Capacity of 25 MW?,SELECT name FROM table_name_9 WHERE capacity__mw_ = 25 "Mention the full name, hired date and performance status of the employee whose location is in Utah state.","SELECT T1.firstname, T1.lastname, T1.hiredate, T1.performance FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.state = 'UT'" How many shipments did Zachery Hicks transport goods to New York in the year 2016?,"SELECT COUNT(*) FROM city AS T1 INNER JOIN shipment AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T3.first_name = 'Zachery' AND T3.last_name = 'Hicks' AND T1.city_name = 'New York' AND STRFTIME('%Y', T2.ship_date) = '2016'" Who has a rank below 125 and time of 00: 56.30?,"SELECT name FROM table_name_32 WHERE rank < 125 AND time = ""00: 56.30""" What are the music festivals of Everybody Have Fun Tonight song?,"SELECT T1.Music_Festival FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Song = "" Everybody Have Fun Tonight """ What position was picked for Canada on Pick 8?,"SELECT position FROM table_name_61 WHERE country = ""canada"" AND pick = ""8""" "Which territory has the greatest difference in sales from previous year to this year? Indicate the difference, as well as the name and country of the region.","SELECT SalesLastYear - SalesYTD, Name, CountryRegionCode FROM SalesTerritory ORDER BY SalesLastYear - SalesYTD DESC LIMIT 1" How many members are female?,"SELECT count ( * ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = ""F""" How old is the doctor named Zach?,SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach' How much is the profit for smoke turquoise purple blue salmon that was delivered in person on 5/7/1996?,SELECT T1.l_extendedprice * (1 - T1.l_discount) - T2.ps_supplycost * T1.l_quantity AS num FROM lineitem AS T1 INNER JOIN partsupp AS T2 ON T1.l_suppkey = T2.ps_suppkey INNER JOIN part AS T3 ON T2.ps_partkey = T3.p_partkey WHERE T1.l_receiptdate = '1996-05-07' AND T1.l_shipinstruct = 'DELIVER IN PERSON' AND T3.p_name = 'smoke turquoise purple blue salmon' What is the 1st leg of team 1 Lyon?,"SELECT 1 AS st_leg FROM table_name_26 WHERE team_1 = ""lyon""" How many different types of pet are there?,SELECT count(DISTINCT pettype) FROM pets Where did they have the divisional playoffs?,"SELECT game_site FROM table_name_59 WHERE week = ""divisional playoffs""" "Among the countries whose GDP is over 1000000, how many of them have a population groth rate of over 3%?",SELECT COUNT(T1.Country) FROM economy AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE T1.GDP > 1000000 AND T2.Population_Growth > 3 Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.,"SELECT Company_name , count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;" How many touchdowns are there that has field goals less than 0 and 0 extra points?,SELECT SUM(touchdowns) FROM table_name_53 WHERE extra_points = 0 AND field_goals < 0 What percentage of the votes in Tippah did Obama get?,"SELECT obama_percentage FROM table_20799587_1 WHERE county = ""Tippah""" Name the height for the center position from kansas,"SELECT height_in_ft FROM table_name_93 WHERE position = ""center"" AND school_club_team_country = ""kansas""" "What is the host year of city ""Taizhou (Zhejiang)""?","SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = ""Taizhou ( Zhejiang ) """ List the all the cities and its city population for provinces with population more than 1000000.,"SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN province AS T2 ON T2.Name = T1.Province WHERE T2.Population > 1000000" Name the deceased players whose death country is different from his birth country order by birth year.,"SELECT firstName, lastName FROM Master WHERE birthCountry != deathCountry ORDER BY birthYear" How many stadiums are there?,SELECT count(*) FROM stadium How many casualties were in the earthquake with an unknown intensity and an epicenter in the bouïra province?,"SELECT casualties FROM table_name_3 WHERE intensity = ""unknown"" AND epicenter = ""bouïra province""" The match against Valentijn Overeem had what method?,"SELECT method FROM table_name_11 WHERE opponent = ""valentijn overeem""" "Where was the game on March 11, 1999 played?","SELECT venue FROM table_name_30 WHERE date = ""march 11, 1999""" Where is friendship collegiate charter school located,"SELECT hometown FROM table_11677691_8 WHERE school = ""Friendship Collegiate Charter school""" What is John Oxendine at in the poll where Karen Handel is at 38%?,"SELECT john_oxendine FROM table_name_75 WHERE karen_handel = ""38%""" "For the Indian Wells Masters tournament, what was the country?","SELECT country FROM table_name_96 WHERE tournament = ""indian wells masters""" What is the birthplace of Pete Sanderson?,"SELECT birthplace FROM table_name_71 WHERE real_name = ""pete sanderson""" Which Winning score has a Tournament of walt disney world/oldsmobile classic?,"SELECT winning_score FROM table_name_67 WHERE tournament = ""walt disney world/oldsmobile classic""" Tell me the average top 25 with events of 5 and cuts madde less than 3,SELECT AVG(top_25) FROM table_name_33 WHERE events = 5 AND cuts_made < 3 "In customers with the first name of Erica, how many of them bought a quantity below 200?",SELECT COUNT(T1.ProductID) FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.FirstName = 'Erica' AND T1.Quantity < 200 State name of unemployed students who have the longest duration of absense from school.,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1 Who is the player that won in the year 1978?,"SELECT player FROM table_name_81 WHERE year_s__won = ""1978""" What's the type for the brand herceptin with an approval date of before 2006?,"SELECT type FROM table_name_5 WHERE approval_date < 2006 AND brand_name = ""herceptin""" "What is Tie no, when Home Team is ""Gillingham""?","SELECT tie_no FROM table_name_96 WHERE home_team = ""gillingham""" Which OF-5 is in Ghana?,"SELECT of_5 FROM table_name_48 WHERE country = ""ghana""" What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee?,"SELECT MIN(year) FROM table_name_48 WHERE category = ""favorite male replacement"" AND nominee = ""ben vereen""" What was the game record during week 7?,SELECT team_record FROM table_24481478_1 WHERE week = 7 "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" What is the date of the event with a 1:54.00 time?,"SELECT date FROM table_name_25 WHERE time = ""1:54.00""" What is the earliest game played at the TD Waterhouse Centre?,"SELECT MIN(game) FROM table_name_99 WHERE location = ""td waterhouse centre""" Where does team #55/#83 robby gordon motorsports rank in the top 10?,"SELECT MAX(top_10) FROM table_1507423_5 WHERE team_s_ = ""#55/#83 Robby Gordon Motorsports""" What is the last name of the youngest student?,SELECT LName FROM Student WHERE age = (SELECT MIN(age) FROM Student) "Show the names of authors from college ""Florida"" or ""Temple""","SELECT Author FROM submission WHERE College = ""Florida"" OR College = ""Temple""" How many appellations produce wine in St. Helena?,"SELECT COUNT ( * ) FROM wine WHERE Appelation = ""St. Helena""" "What the total of Week with attendance of 53,147","SELECT SUM(week) FROM table_name_70 WHERE attendance = ""53,147""" What is the denomination of the school the most players belong to?,SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1 What is the call sign for a class of A?,"SELECT call_sign FROM table_name_69 WHERE class = ""a""" Find the city where the most customers live.,SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY count(*) DESC LIMIT 1 What is the most recent year?,SELECT MAX(year) FROM table_13169136_1 Which school has a roll larger than 26 and is located in Fairfield?,"SELECT name FROM table_name_5 WHERE roll > 26 AND area = ""fairfield""" What was the away team score at Hawthorn's home game?,"SELECT away_team AS score FROM table_name_28 WHERE home_team = ""hawthorn""" List the episode ID and title of episode where casting was credited to Bonita Pietila.,"SELECT T1.episode_id, T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T2.credited = 'true' AND T2.person = 'Bonita Pietila' AND T2.role = 'casting';" What is the first name and country code of the oldest player?,"SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1" What is the 2012 with A in 2009 and 2r in 2010?,"SELECT 2012 FROM table_name_96 WHERE 2009 = ""a"" AND 2010 = ""2r""" What was the score of the game with a record of 7–10–3–1?,"SELECT score FROM table_name_2 WHERE record = ""7–10–3–1""" When first woman eva is the comment what is the end -utc?,"SELECT end___utc FROM table_245801_2 WHERE comments = ""First woman EVA""" Please list the credit card numbers of all the employees who have left the Finance Department.,SELECT T3.CardNumber FROM EmployeeDepartmentHistory AS T1 INNER JOIN Department AS T2 ON T1.DepartmentID = T2.DepartmentID INNER JOIN CreditCard AS T3 ON T1.ModifiedDate = T3.ModifiedDate INNER JOIN PersonCreditCard AS T4 ON T3.CreditCardID = T4.CreditCardID WHERE T2.Name = 'Finance' AND T1.EndDate IS NOT NULL What position does the player from arkansas play?,"SELECT pos FROM table_name_57 WHERE school_country = ""arkansas""" Excellent! Can you tell me the district name associated with the largest population?,SELECT District_name FROM district where City_Population = ( select max ( City_Population ) from district ) What is the Pick # of the Player from Southern MIssissippi?,"SELECT COUNT(pick) FROM table_name_98 WHERE school = ""southern mississippi""" How many addresses are there in Woodridge city?,SELECT COUNT(T1.address_id) FROM address AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city = 'Woodridge' What is the ad frequency for the show named Health Matters?,"SELECT ad_freq FROM table_name_58 WHERE show_name = ""health matters""" "What is the mission that has ambassador of local position, and a resident country of democratic republic of congo?","SELECT mission FROM table_name_35 WHERE local_position = ""ambassador"" AND resident_country = ""democratic republic of congo""" What is the count of enzymes without any interactions?,SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); What is Tina Sachdev's position?,"SELECT position FROM table_name_60 WHERE co_contestant__yaar_vs_pyaar_ = ""tina sachdev""" What was the population in 2011 of the settlement with the cyrillic name of ватин?,"SELECT MAX(population__2011_) FROM table_2562572_46 WHERE cyrillic_name_other_names = ""Ватин""" What is the home team with scarborough as the away team?,"SELECT home_team FROM table_name_50 WHERE away_team = ""scarborough""" "From 1950 to 1970, what is the maximum point of players whose teams were ranked 1?",SELECT MAX(T2.points) FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year BETWEEN 1950 AND 1970 AND T1.rank = 1 "What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households?","SELECT MIN(female) FROM table_name_66 WHERE district = ""hiroo 1-chōme"" AND number_of_households > 1 OFFSET 666" What are the unique names of races that held after 2000 and the circuits were in Spain?,"SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = ""Spain"" AND T1.year > 2000" What is the maximum and the minimum tonnage for a cargo ship?,"SELECT max ( Tonnage ) ,min ( Tonnage ) FROM ship WHERE Type = 'Cargo ship'" Name the 3 dart average for michael van gerwen,"SELECT 3 AS _dart_average FROM table_18317531_1 WHERE player = ""Michael van Gerwen""" What are the numbers for the order number 713096-713119?,"SELECT numbers FROM table_2351952_1 WHERE order_number = ""713096-713119""" Which type has a quantity of 11?,SELECT type FROM table_name_29 WHERE quantity = 11 What is the match report from the game played on 28 february 2009?,"SELECT match_report FROM table_name_23 WHERE date = ""28 february 2009""" What about the youngest captain?,SELECT name FROM captain order by age asc limit 1 What is the seating capacity for Chicagoland Speedway?,SELECT Seating FROM track where Name = 'Chicagoland Speedway' What is every record for game 11?,SELECT record FROM table_23248940_6 WHERE game = 11 What is the first name and the last name of the customer who made the earliest rental?,"SELECT T1.first_name , T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1" What are the character names in paragraph 3?,SELECT DISTINCT T1.CharName FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.ParagraphNum = 3 What team uses a Cosworth DFV V8 engine and DN9 Chassis?,"SELECT entrant FROM table_name_68 WHERE engine = ""cosworth dfv v8"" AND chassis = ""dn9""" What is the quantity preserved for the serial number of mallet and simple articulated locomotives?,"SELECT quantity_preserved FROM table_name_19 WHERE serial_numbers = ""mallet and simple articulated locomotives""" List all the titles created by user who was a subsriber when he created the list and have less than 50 movies in the list.,SELECT DISTINCT T2.list_title FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_movie_number < 50 AND T1.user_subscriber = 1 In what season did he compete in the Grand Prix in Kuala Lumpur?,"SELECT season FROM table_name_81 WHERE event_type = ""grand prix"" AND location = ""kuala lumpur""" "Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]?","SELECT third_place FROM table_name_16 WHERE score = ""2–6, 7–6(3), [10–5]""" What game is the first with the Pittsburgh Penguins the opponent?,"SELECT MIN(game) FROM table_name_49 WHERE opponent = ""pittsburgh penguins""" "When is the modified date of the phone number ""1500 555-0143""?",SELECT ModifiedDate FROM PersonPhone WHERE PhoneNumber = '1 (11) 500 555-0143' How far is the olbia to sassari route?,"SELECT distance FROM table_name_99 WHERE course = ""olbia to sassari""" What is the zip code in which the average mean sea level pressure is the lowest?,SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1 What is the first name of the students who are in age 20 to 25 and living in PHL city?,SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 What are the advisors,SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2 "Nigeria competed on July2, 1999.","SELECT date FROM table_1231316_5 WHERE nation = ""Nigeria""" "Who was the opponent on November 26, 1989?","SELECT opponent FROM table_name_86 WHERE date = ""november 26, 1989""" "Can I see a list of students who's first name contains letter ""a""?",SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' Which apartment has the most bedrooms?,SELECT * FROM Apartments order by bedroom_count desc limit 1 Return the apartment number and the number of rooms for each apartment.,"SELECT apt_number , room_count FROM Apartments" What is the label that has the most albums?,SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1 "When Symbian/Series 40 is 0.40%, what is the percentage of ""other""?","SELECT other FROM table_11381701_3 WHERE symbian___series_40 = ""0.40%""" What is the mean road number when Moe Lemay is the player?,"SELECT AVG(rd__number) FROM table_name_64 WHERE player = ""moe lemay""" On what date was the Catalog FT 507?,"SELECT date FROM table_name_93 WHERE catalog = ""ft 507""" Name the tournament for 2010 of grand slam tournaments,"SELECT tournament FROM table_name_93 WHERE 2010 = ""grand slam tournaments""" "WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?","SELECT social_software FROM table_name_18 WHERE discussion = ""no"" AND time_tracking = ""no"" AND charting = ""no""" What schools were founded after 1900?,SELECT school FROM school WHERE Founded > 1900 What was the average number of points with bonus pts less than 31 with the rider dennis gavros?,"SELECT AVG(total_points) FROM table_name_29 WHERE rider = ""dennis gavros"" AND bonus_pts < 31" What are all role codes?,SELECT role_code FROM ROLES; When was the private/baptist school founded?,"SELECT founded FROM table_261941_1 WHERE type = ""Private/Baptist""" What away is there for the q3 round?,"SELECT away FROM table_name_68 WHERE round = ""q3""" "If the area is 34.73, what is the census ranking?","SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = ""34.73""" which Construction is named heng-hai?,"SELECT construction FROM table_name_69 WHERE name__wade_giles_ = ""heng-hai""" What is the name of the venue that was used before 1991?,SELECT venue FROM table_name_23 WHERE year < 1991 Which major has the most students?,SELECT Major FROM STUDENT GROUP BY major ORDER BY count(*) DESC LIMIT 1 "What is the Date, when the home team is the NY Rangers?","SELECT date FROM table_name_22 WHERE home = ""ny rangers""" Which department offers the most credits all together?,SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1 List the names and menu page IDs of the dishes that first appeared in 1861.,"SELECT T2.name, T1.dish_id FROM MenuItem AS T1 INNER JOIN Dish AS T2 ON T2.id = T1.dish_id WHERE T2.first_appeared = 1861" What is the amount of fog where the rain is 1 109?,"SELECT SUM(fog__days_year_) FROM table_name_50 WHERE rain__mm_year_ = ""1 109""" How many cities are in Australia?,SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' Name the latitude of laima tessera,"SELECT latitude FROM table_16799784_2 WHERE name = ""Laima Tessera""" What is the Name of the SS11 Stage?,"SELECT name FROM table_name_3 WHERE stage = ""ss11""" Count the number of bank branches.,SELECT count(*) FROM bank What is the average price for flights from Los Angeles to Washington D.C.,"SELECT avg ( price ) FROM Flight WHERE origin = ""Los Angeles"" AND destination = ""Washington D.C.""" name the most series number for season 22,SELECT MAX(series__number) FROM table_25800134_18 WHERE season__number = 22 Find the accreditation level that more than 3 phones use.,SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count ( * ) > 3 Which product is the most expensive?,SELECT ProductName FROM Products WHERE UnitPrice = ( SELECT MAX(UnitPrice) FROM Products ) What is the legislative district's office address where 010XX W LAKE ST is located?,SELECT T1.ward_office_address FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.block = '010XX W LAKE ST' GROUP BY T1.ward_office_address What is the Netflix episode for series episode 15-01?,"SELECT netflix FROM table_name_64 WHERE series_ep = ""15-01""" What customers have a policy?,SELECT * FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id What team has fewer than 9 wins and less than 1593 against?,SELECT lexton_plains FROM table_name_18 WHERE wins < 9 AND against < 1593 What was the aggregate score for Montauban?,"SELECT aggregate_score FROM table_27986200_3 WHERE proceed_to_quarter_final = ""Montauban""" "What is the proportion of the papers that have the keyword ""cancer""? Please provide a list of authors and their affiliations.","SELECT CAST(SUM(CASE WHEN T1.Keyword = 'cancer' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id), T2.Name, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId" Please list the job titles of the employees who has a document that has been approved.,"SELECT DISTINCT T2.BusinessEntityID, T2.JobTitle FROM Document AS T1 INNER JOIN Employee AS T2 ON T1.Owner = T2.BusinessEntityID WHERE T1.Status = 2" Which team has the high points of Raymond Felton (26)?,"SELECT team FROM table_name_30 WHERE high_points = ""raymond felton (26)""" "What are the names of the stations which serve both ""Ananthapuri Express"" and ""Guruvayur Express"" train?","SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = ""Ananthapuri Express"" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = ""Guruvayur Express""" What are the product id and product type of the cheapest product?,"SELECT product_id , product_type_code FROM products ORDER BY product_price LIMIT 1" Show me the team_id with attendance 3000?,SELECT team_id FROM home_game where attendance = 3000 How many times is runners-up less than 0?,SELECT COUNT(winners) FROM table_name_11 WHERE runners_up < 0 what is the county name zip code D02?,"SELECT county_name from county where zip_code = ""D02""" Which public college has a nickname of The Grenadiers?,"SELECT institution FROM table_name_30 WHERE type = ""public"" AND nickname = ""grenadiers""" What is the original name of the film that used the title Olympics 40 in nomination?,"SELECT original_name FROM table_name_91 WHERE film_title_used_in_nomination = ""olympics 40""" What is the Class AA of the school year 2009-10 with a class AAA of Giddings?,"SELECT class_aA FROM table_name_95 WHERE class_aAA = giddings AND school_year = ""2009-10""" What is the name and description for document type code RV?,"SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = ""RV""" Find the id and color description of the products with at least 2 characteristics.,"SELECT t1.product_id , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING count(*) >= 2" "How many Podiums have a Class of 250cc, and an F laps of 0?","SELECT SUM(podiums) FROM table_name_18 WHERE class = ""250cc"" AND f_laps = 0" Which school has the smallest amount of professors?,SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1 please list all items,SELECT * FROM item Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.,"SELECT first_name , last_name , department_id FROM employees WHERE salary IN ( SELECT MIN ( salary ) FROM employees GROUP BY department_id ) " "How many students, on average, does each college have enrolled?",SELECT avg(enr) FROM College Which Home has a Tie no of 6?,"SELECT home_team FROM table_name_26 WHERE tie_no = ""6""" What is the profit for part no.98768 in order no.1?,SELECT T1.l_extendedprice * (1 - T1.l_discount) - T2.ps_supplycost * T1.l_quantity FROM lineitem AS T1 INNER JOIN partsupp AS T2 ON T1.l_suppkey = T2.ps_suppkey WHERE T1.l_orderkey = 1 AND T1.l_partkey = 98768 "Which department has the highest average student GPA, and what is the average gpa?","SELECT T2.dept_name , avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1" How many assists did the player who had 121 rebounds have? ,SELECT MAX(assists) FROM table_24850487_5 WHERE rebounds = 121 Which Overall has a Round of 7?,SELECT MIN(overall) FROM table_name_99 WHERE round = 7 List top 3 highest Rating TV series. List the TV series's Episode and Rating.,"SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3" Name cellphone number's Type ID?,SELECT PhoneNumberTypeID FROM PhoneNumberType WHERE Name = 'Cell' Can you give me the top three wineries with the most white wines?,"SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = ""White"" GROUP BY T2.Winery ORDER BY count ( * ) DESC LIMIT 3" How many customers use a Yahoo! Mail e-mail address?,SELECT COUNT(*) FROM customer WHERE email LIKE '%@yahoo.com' Count the number of different directors.,SELECT COUNT (DISTINCT director) FROM movie Find the first name and country code of the oldest player.,"SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1" How many people scored the most points during the game on December 10?,"SELECT COUNT(high_points) FROM table_27756014_6 WHERE date = ""December 10""" "Hmm, please show me names of the drivers who are younger than 40.",SELECT name FROM driver WHERE age < 40 Which game was released in 2011?,SELECT game FROM table_name_13 WHERE year = 2011 "Show different tourist attractions' names, ids, and the corresponding number of visits.","SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID" 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""" "What venue listed is dated February 22, 2003?","SELECT venue FROM table_name_4 WHERE date = ""february 22, 2003""" List the ingredients in Tomato-Cucumber Relish.,SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Tomato-Cucumber Relish' What is the total number of CFL teams in the college Wilfrid Laurier,"SELECT COUNT(cfl_team) FROM table_15817998_5 WHERE college = ""Wilfrid Laurier""" "What is the Finish on June 1, 2008?","SELECT finish FROM table_name_61 WHERE date = ""june 1, 2008""" When was there a bye result?,"SELECT date FROM table_name_32 WHERE result = ""bye""" List out the number of female students who enlisted in the air force.,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force' AND name NOT IN ( SELECT name FROM male ) What is the description of the color used by least products?,SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY count(*) ASC LIMIT 1 "The 147.481 Qual, happened in what year?","SELECT year FROM table_name_15 WHERE qual = ""147.481""" Show all region code and region name sorted by the codes.,"SELECT region_code, region_name FROM region ORDER BY region_code" "What is Best, when Name is Jimmy Vasser?","SELECT best FROM table_name_17 WHERE name = ""jimmy vasser""" "What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?","SELECT division FROM table_name_96 WHERE playoffs = ""did not qualify"" AND league = ""usl pdl"" AND regular_season = ""7th, southeast""" What position is for Dr. Phillips high school?,"SELECT position FROM table_name_94 WHERE school = ""dr. phillips high school""" What is the Home team of Tie no 2?,"SELECT home_team FROM table_name_20 WHERE tie_no = ""2""" Can you order them by genre?,"SELECT min ( T1.duration ) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is order by T2.genre_is" How many players had 12 wickets?,SELECT COUNT(player) FROM table_27922491_8 WHERE wickets = 12 What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?,SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.8 Calculate the service of GDP for Brazil.,SELECT T2.Service * T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Brazil' Show the role description and the id of the project staff involved in most number of project outcomes?,"SELECT T1.role_description , T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY count(*) DESC LIMIT 1" What is the hometown of the youngest teacher?,SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1 What is the sum of the attendance during the game against the philadelphia eagles after week 9?,"SELECT SUM(attendance) FROM table_name_58 WHERE opponent = ""philadelphia eagles"" AND week > 9" Which republican was first elected in 1886 in the district of ohio 17?,"SELECT result FROM table_name_16 WHERE party = ""republican"" AND first_elected = ""1886"" AND district = ""ohio 17""" Which conference has the nickname Chargers?,"SELECT current_conference FROM table_1973729_2 WHERE nickname = ""Chargers""" is there any person friend for this persons,SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' INTERSECT SELECT T3.name FROM Person AS T4 JOIN PersonFriend AS T3 ON T4.name = T3.friend What is the FSB of the model with part number lf80537ge0251mn?,"SELECT fsb FROM table_11602313_4 WHERE part_number_s_ = ""LF80537GE0251MN""" What is 4zr's callsign?,"SELECT callsign FROM table_name_67 WHERE on_air_id = ""4zr""" What is the date of the match with a winner outcome and jim courier as the opponent in the final?,"SELECT date FROM table_name_27 WHERE outcome = ""winner"" AND opponent_in_the_final = ""jim courier""" How many male legislators are Roman Catholic?,SELECT COUNT(*) FROM current WHERE religion_bio = 'Roman Catholic' AND gender_bio = 'M' How many females use ZUK Z1 phones in the age group under 23?,SELECT COUNT(T1.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.gender = 'F' AND T2.device_model = 'Z1' AND T1.`group` = 'F23-' AND T2.phone_brand = 'ZUK' "What is Assembled, when Summoned is ""6 October 1297""?","SELECT assembled FROM table_name_55 WHERE summoned = ""6 october 1297""" "Gold larger than 0, and a Bronze larger than 1 includes what total number of silver?",SELECT COUNT(silver) FROM table_name_31 WHERE gold > 0 AND bronze > 1 What are the first names of students in room 108?,SELECT firstname FROM list WHERE classroom = 108 What is the average Acquired when the Number shows as 7?,SELECT AVG(acquired) FROM table_name_73 WHERE number = 7 List down the company names that have the highest reorder level.,SELECT DISTINCT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products ) I want the total number of points for against of 753 and points diff more than -114,SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114 What is the score of the away team that played home team Geelong?,"SELECT away_team AS score FROM table_name_18 WHERE home_team = ""geelong""" Show the crime rate of counties with a city having white percentage more than 90.,SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90 Name the pinyin for ciá-ìng-gâing,"SELECT pinyin FROM table_2013618_1 WHERE foochow = ""Ciá-ìng-gâing""" What are the distinct unit prices of all tracks?,SELECT DISTINCT (UnitPrice) FROM TRACK What was the score of the game where Philadelphia was the visitor?,"SELECT score FROM table_name_84 WHERE visitor = ""philadelphia""" Who's the opponent of the game with the record 64-51?,"SELECT opponent FROM table_name_60 WHERE record = ""64-51""" What is the count of aircrafts that have a distance between 1000 and 5000?,SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 "What are the teams of the players, sorted in ascending alphabetical order?",SELECT Team FROM player ORDER BY Team ASC Name the couty for others% 5.8,"SELECT county FROM table_23014476_1 WHERE others__percentage = ""5.8""" "What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance?","SELECT AVG(week) FROM table_name_14 WHERE opponent = ""philadelphia eagles"" AND attendance < 31 OFFSET 066" "For the race held on 10/08/86, what was the circuit?","SELECT circuit FROM table_name_11 WHERE date = ""10/08/86""" Who is the lead for the team with Nkeiruka Ezekh as second?,"SELECT lead FROM table_name_59 WHERE second = ""nkeiruka ezekh""" Identify recipes with different maximum and minimum quantities.,SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id WHERE T2.max_qty <> T2.min_qty Show the tourist attractions visited by the tourist whose detail is 'Vincent'.,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = ""Vincent""" What is the result for salmonella spp. if you use citrate?,"SELECT COUNT(citrate) FROM table_16083989_1 WHERE species = ""Salmonella spp.""" Show all track names that have had no races.,SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race) What position does Hedo Türkoğlu play?,"SELECT position FROM table_name_93 WHERE player = ""hedo türkoğlu""" Name the try bonus for kenfig hill rfc,"SELECT try_bonus FROM table_13564702_3 WHERE club = ""Kenfig Hill RFC""" What category has showest award for the category awards?,"SELECT category FROM table_name_9 WHERE award = ""showest award""" "Among the films that are released in 2006, how many of them are rated Adults Only in the Motion Picture Association Film Rating?",SELECT COUNT(film_id) FROM film WHERE rating = 'NC-17' AND release_year = 2006 Which label is from the Germany region?,"SELECT label FROM table_name_52 WHERE region = ""germany""" What is the official name of the municipality whose name in Spanish is Cripán?,"SELECT official_name FROM table_300283_1 WHERE name_in_spanish = ""Cripán""" Name the Player who has a To par of –2 and a Score of 69-73=142?,"SELECT player FROM table_name_74 WHERE to_par = ""–2"" AND score = 69 - 73 = 142" "Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?","SELECT melbourne FROM table_name_59 WHERE gold_coast = ""yes"" AND adelaide = ""no"" AND sydney = ""yes""" "Tell the number of 4-year private not-for-profit schools in the home state of ""Brevard Community College"".",SELECT COUNT(T1.chronname) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state WHERE T2.level = '4-year' AND T2.control = 'Private not-for-profit' AND T1.chronname = 'Brevard Community College' How many names are in the name column?,SELECT count ( distinct name ) FROM PersonFriend "What is the highest number lost when the number tied is more than 42, the years are less than 132, and the PCT is less than 0.5729000000000001?",SELECT MAX(lost) FROM table_name_57 WHERE tied > 42 AND years < 132 AND pct < 0.5729000000000001 What is their description?,SELECT Document_Description FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project' What is the average fee for a CSU campus in the year of 1996?,SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996 "Find the names of customers whose name contains ""Diana"".","SELECT customer_details FROM customers WHERE customer_details LIKE ""%Diana%""" What medication did Elly Koss take when she had Streptococcal sore throat?,SELECT T2.description FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.reasondescription = 'Streptococcal sore throat (disorder)' "Give the web site address for ""Swarthmore College"".",SELECT T FROM ( SELECT DISTINCT CASE WHEN chronname = 'Swarthmore College' THEN site ELSE NULL END AS T FROM institution_details ) WHERE T IS NOT NULL What is the smallest round associated with Samuel Scheschuk?,"SELECT MIN(round) FROM table_name_54 WHERE name = ""samuel scheschuk""" Which season had a result of 1–0 (aet)?,"SELECT season FROM table_27274566_2 WHERE result = ""1–0 (aet)""" Who was the writer of episode 15?,SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15 Which department has the least number of employees?,SELECT * FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY count ( departmentID ) LIMIT 1 What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12?,SELECT MAX(cpc_blend_kazakhstan) FROM table_name_48 WHERE barrow_island_australia < 12 "What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?",SELECT MIN(total) FROM table_name_77 WHERE bronze > 1 AND silver = 0 AND gold < 0 What were the penalty minutes in 1923's Stanley Cup finals of the team that ranked second in that year?,SELECT T1.PIM FROM TeamsSC AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = '1923' AND T2.rank = 2 Who was on Jason's team for the 12 June 2009 episode?,"SELECT jasons_team FROM table_23292220_8 WHERE first_broadcast = ""12 June 2009""" How many users with a long tip and 2 likes for their tip have a high number of fans?,SELECT COUNT(DISTINCT T1.user_id) FROM Users AS T1 INNER JOIN Tips AS T2 ON T1.user_id = T2.user_id WHERE T2.tip_length = 'Long' AND T2.likes = 2 AND T1.user_fans = 'High' In what Year is Keith Smith's Cross Code Debut RL Test v Wales?,"SELECT year FROM table_name_73 WHERE cross_code_debut = ""rl test v wales"" AND player = ""keith smith""" List down the customer names with a disputed order status.,SELECT t1.customerName FROM customers AS t1 INNER JOIN orders AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.status = 'Disputed' How many field goals did Carter get when he had 0 extra points?,"SELECT SUM(field_goals) FROM table_name_14 WHERE player = ""carter"" AND extra_points < 0" "Name the former codes for merged into panama ( pa , pan , 591 )","SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = ""Merged into Panama ( PA , PAN , 591 )""" what is the customer number of Kayley,"SELECT customer_number FROM Customers WHERE customer_name = ""Kayley""" what is the highest pick for the position tight end?,"SELECT MAX(pick) FROM table_name_20 WHERE position = ""tight end""" What are the allergy types and how many allergies correspond to each one?,"SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype" "Look for the movie title with the keyword of ""angel"".",SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'angel' What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson?,"SELECT MIN(year) FROM table_name_90 WHERE binibining_pilipinas_international = ""jessie alice salones dixson""" How many tweets are on the topic intern,SELECT count ( * ) FROM tweets WHERE text LIKE '%intern%' What is the Tie no when Wimbledon is the home team?,"SELECT tie_no FROM table_name_12 WHERE home_team = ""wimbledon""" How much taller is David Bornhammar than Pauli Levokari in centimeters?,SELECT ( SELECT T2.height_in_cm FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.PlayerName = 'David Bornhammar' ) - ( SELECT T2.height_in_cm FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T1.PlayerName = 'Pauli Levokari' ) What is the payment method code and party phone of the party with the email 'enrico09@example.com'?,"SELECT payment_method_code , party_phone FROM parties WHERE party_email = ""enrico09@example.com""" Which Surface has a Partner of galina voskoboeva?,"SELECT surface FROM table_name_45 WHERE partner = ""galina voskoboeva""" Provide the language used by the people of Belize.,SELECT T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Belize' What is the word pair that occured the highest amount of times in Addicio? Indicate how many times such word pair occured.,"SELECT T3.w1st, T3.w2nd, T3.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN biwords AS T3 ON T2.wid = T3.w1st OR T2.wid = T3.w2nd WHERE T1.title = 'Addicio' ORDER BY T3.occurrences DESC LIMIT 1" Find the full name of employee who supported the most number of customers.,"SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" "What are the names of all instructors with names that include ""dar""?",SELECT name FROM instructor WHERE name LIKE '%dar%' "Who was the opponent when 48,121 people attended?","SELECT opponent FROM table_name_49 WHERE attendance = ""48,121""" What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?,SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12 "Among the users who received high compliments from other users, which users joined Yelp earliest?",SELECT T2.user_id FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T2.number_of_compliments = 'High' AND T1.user_yelping_since_year = ( SELECT MIN(user_yelping_since_year) FROM Users ) Who was the architect that built the Electric Railway Chambers before 1915?,"SELECT architect FROM table_name_43 WHERE built < 1915 AND building = ""electric railway chambers""" List the countries of universities that scored 70 and below in 2016.,SELECT DISTINCT T3.country_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T2.score < 70 AND T2.year = 2016 "What instruments did the musician with the last name ""Heilo"" play in the song ""Le Pop""?","SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = ""Heilo"" AND T3.title = ""Le Pop""" What is listed for Played that has Points against of 263?,"SELECT played FROM table_name_33 WHERE points_against = ""263""" When we played Houston who had the most points?,"SELECT high_points FROM table_22879323_6 WHERE team = ""Houston""" Count the number of authors.,SELECT count(*) FROM authors List the customers first and last name of 10 least expensive invoices.,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;" How many different templates do all document use?,SELECT count(DISTINCT template_id) FROM Documents Find the number of cartoons directed by each of the listed directors.,"SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by" what is the tonnage grt of the ship author?,"SELECT tonnage_grt FROM table_name_40 WHERE ship = ""author""" Find the names of users who do not have a first notification of loss record.,SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?,"SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""254 Ottilie Junction"" OR T2.How_to_Get_There = ""bus""" What is the First Issue date of Bamboo Blade?,"SELECT first_issue FROM table_name_89 WHERE title = ""bamboo blade""" What are the poll sources of those support rates?,SELECT Poll_Source FROM candidate ORDER BY support_rate DESC LIMIT 3 "Where Class AAA is Atlanta and Class AA is Weimar, what is Class AAAAA?",SELECT class_aAAAA FROM table_name_65 WHERE class_aAA = atlanta AND class_aA = weimar Which manufacturer has the most number of shops? List its name and year of opening.,"SELECT open_year , name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1" what are the characteristics of the product name 'sesame'?,"SELECT t2.characteristic_id FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = ""sesame""" How many new conferences are in the NCLL deep south conference?,"SELECT COUNT(new_conference) FROM table_26476336_2 WHERE new_classification = ""NCLL Deep South Conference""" What are the movie titles and average rating of the movies with the lowest average rating?,"SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1" Find names and times of trains that run through stations for the local authority Chiltern.,"SELECT t3.name , t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = ""Chiltern"";" Show the country where people older than 30 and younger than 25 are from.,SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30 Who is the person that has no friend?,SELECT name FROM person EXCEPT SELECT name FROM PersonFriend "Who won silver in the year before 2010, the year Chan Ming Shu won gold?","SELECT silver FROM table_name_21 WHERE year < 2010 AND gold = ""chan ming shu""" in round 9 who was the 250cc winner?,SELECT 250 AS cc_winner FROM table_15299235_1 WHERE round = 9 which episode did sarah millican and grayson perry appear in,"SELECT MIN(episode) FROM table_29135051_3 WHERE guest_s_ = ""Sarah Millican and Grayson Perry""" "What date was the game played in seattle center coliseum 12,126?","SELECT date FROM table_27902171_7 WHERE location_attendance = ""Seattle Center Coliseum 12,126""" "Venue of melbourne , australia, and a Extra of 200 m has what results?","SELECT result FROM table_name_90 WHERE venue = ""melbourne , australia"" AND extra = ""200 m""" how many first performances where performer is wilfred engelman category:articles with hcards,"SELECT COUNT(first_performance) FROM table_19189856_1 WHERE performer = ""Wilfred Engelman category:Articles with hCards""" What is the average age of all the dogs?,SELECT avg(age) FROM Dogs Show the names of all ships from United States?,"SELECT Name FROM ship WHERE Nationality = ""United States""" What year was California State University-Chico started?,"SELECT year from campuses where campus = ""California State University-Chico""" What is the code of the city with the most students?,SELECT city_code FROM student GROUP BY city_code ORDER BY count(*) DESC LIMIT 1 Find id of the candidate whose email is stanley.monahan@example.org?,"SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = ""stanley.monahan@example.org""" How many games did each team played?,SELECT MIN(games_played) FROM table_18018214_3 Find the first names of all customers that live in Brazil and have an invoice.,"SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = ""Brazil""" Who were the candidates when the first elected was a republican in 1998? ,"SELECT candidates FROM table_1805191_14 WHERE first_elected = 1998 AND party = ""Republican""" Find the first names of students who took exactly one class.,SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1 List the name of the county with the largest population.,SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1 "Find the titles of papers whose first author is affiliated with an institution in the country ""Japan"" and has last name ""Ohori""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = ""Japan"" AND t2.authorder = 1 AND t1.lname = ""Ohori""" "What is the drawn that has 22 for played, and 96 for points?","SELECT drawn FROM table_name_96 WHERE played = ""22"" AND points = ""96""" How many unemployed students have never been absent?,SELECT COUNT(T2.name) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.month = 0 What are all the reports where Paul Tracy had the fastest lap?,"SELECT report FROM table_11056278_3 WHERE fastest_lap = ""Paul Tracy""" What is the total amount of grant money for research?,SELECT sum(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' Calculate the win rate of the toss-winners in 2012.,SELECT CAST(SUM(CASE WHEN Toss_Winner = Match_Winner THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN Match_Date LIKE '2012%' THEN 1 ELSE 0 END) FROM `Match` "What is 1997, when 2003 is 0 / 4?","SELECT 1997 FROM table_name_22 WHERE 2003 = ""0 / 4""" Which distinct source system code includes the substring 'en'?,SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%' Name the rufus guest for 15 december 2008,"SELECT COUNT(rufus_guest) FROM table_19930660_1 WHERE first_broadcast = ""15 December 2008""" Which Nationality has a Player of rudy poeschek?,"SELECT nationality FROM table_name_51 WHERE player = ""rudy poeschek""" What surface did Smeets play on during the Kuwait tournament?,"SELECT surface FROM table_name_30 WHERE tournament = ""kuwait""" What is the Name for 1997–99?,"SELECT name FROM table_name_76 WHERE year = ""1997–99""" What Call sign shows an ERP W of 80?,SELECT call_sign FROM table_name_93 WHERE erp_w = 80 List the name of enzymes in descending lexicographical order.,SELECT name FROM enzyme ORDER BY name DESC Please list the titles of all the films that have more than 2 special features.,"SELECT title FROM ( SELECT title, COUNT(special_features) AS num FROM film GROUP BY title ) AS T ORDER BY T.num > 2" Name the vendors that sell the item Classroom Keepers Management Center.,SELECT DISTINCT vendor_name FROM resources WHERE item_name = 'Classroom Keepers Management Center' "Identify the customer, which placed the largest order in terms of value.",SELECT T1.CompanyName FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T2.CustomerID ORDER BY SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) DESC LIMIT 1 State the company name of all suppliers in USA.,SELECT CompanyName FROM Suppliers WHERE Country = 'USA' what is the name of the manufacturer whose headquarter is in Los Angeles?,"SELECT name FROM manufacturers WHERE Headquarter = ""Los Angeles""" What is the highest number of bronze medals for nations with under 0 golds?,SELECT MAX(bronze) FROM table_name_46 WHERE gold < 0 Which season is Euroleague with Greek Cup?,"SELECT season FROM table_name_4 WHERE european_cup = ""euroleague"" AND national_cup = ""greek cup""" Find the number of investors in total.,SELECT count(*) FROM INVESTORS "Show the head portrait of the user who gave the most ""5"" ratings.",SELECT T2.user_avatar_image_url FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id WHERE T1.rating_score = 5 what is the city of San Jose Civic Center,"select city from station where name = ""San Jose Civic Center""" What is the Standard cost (USD) by hans Oischinger Creator ?,"SELECT standard_cost__usd_ FROM table_name_27 WHERE creator = ""hans oischinger""" "How many of the apps belong in the ""Equity Fund"" category?",SELECT COUNT(T1.app_id) FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T1.label_id = T2.label_id WHERE T2.category = 'Equity Fund' When 1472 was the elected when was the assembled?,"SELECT assembled FROM table_1827690_4 WHERE elected = ""1472""" Great - can you tell me the names of students in the Accounting department with a GPA above 3.0?,"SELECT T2.stu_fname, T2.stu_lname from department as T1 join student as T2 on T1.dept_code = T2.dept_code where T1.dept_name = ""Accounting"" and T2.stu_GPA > 3.0" "What are the names of customers with accounts, and what are the total savings balances for each?","SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name" What are the names of all colleges that have an enrollment less than at least one of the colleges in FL?,SELECT DISTINCT cName FROM college WHERE enr < ( SELECT max ( enr ) FROM college WHERE state = 'FL' ) Name the least division,SELECT MIN(division) FROM table_2361911_2 Which major metropolitan area had a land area of 23.80?,"SELECT metropolitan_area FROM table_22916979_1 WHERE land_area__mi_2__ = ""23.80""" "List the actors' IDs who have ""KILMER"" as last name.",SELECT actor_id FROM actor WHERE last_name = 'KILMER' How many contestants had a starting bmi of 33.1?,"SELECT COUNT(finale_weight) FROM table_28654454_5 WHERE starting_bmi = ""33.1""" Find the level name of the catalog with the lowest price (in USD).,SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 What is the average expenditures on R&D for Croatia after 2007?,"SELECT AVG(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_32 WHERE country_region = ""croatia"" AND year > 2007" Which Ends have a Name of zambrano?,"SELECT MAX(ends) FROM table_name_41 WHERE name = ""zambrano""" How many positions does Trent Bagnail play?,"SELECT COUNT(position) FROM table_28059992_5 WHERE player = ""Trent Bagnail""" How many picks does chad owens have?,"SELECT COUNT(pick__number) FROM table_name_47 WHERE name = ""chad owens""" List the app users IDs and installed status for the event ID of 844.,"SELECT app_id , IIF(is_installed = 1, 'YES', 'NO') AS status FROM app_events WHERE event_id = 844" How many 1st leg have team 1 ofk belgrade?,"SELECT COUNT(1 AS st_leg) FROM table_19294812_2 WHERE team_1 = ""OFK Belgrade""" How many games had a deficit of 175? ,SELECT COUNT(played) FROM table_18505065_1 WHERE against = 175 Who is Mike Wallace's primary Sponsor(s)?,"SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = ""mike wallace""" What is the number of complaints related to Credit cards came from female clients?,SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Female' AND T2.Product = 'Credit card' "When the no votes was 322682, what was the max meas. number?",SELECT MAX(meas_num) FROM table_256286_54 WHERE no_votes = 322682 What is the Visitor in the game with a Record of 11–49–7?,"SELECT visitor FROM table_name_98 WHERE record = ""11–49–7""" What are the speeds of the longest roller coaster?,SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1 How many professors are teaching course ID 18?,SELECT COUNT(DISTINCT p_id) FROM taughtBy WHERE course_id = 18 Which removal treaty covered the chickasaw nation?,"SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = ""chickasaw""" "What is the year with a Kurtis Kraft 500a chassis, and less than 1.5 points?","SELECT SUM(year) FROM table_name_10 WHERE chassis = ""kurtis kraft 500a"" AND points < 1.5" Tell me the format for calls of wrko,"SELECT format FROM table_name_56 WHERE calls = ""wrko""" Show the result of the submission with the highest score.,SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1 What is the cross-code debut later than 1958 for Dick Thornett?,"SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = ""dick thornett""" "Show the solution path for the method ""Mosa.Platform.x86.Instructions.IMul.EmitLegacy""?",SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy' How many people lived in san gabriel in the year 2000?,"SELECT COUNT(population__2000_) FROM table_2004733_2 WHERE barangay = ""San Gabriel""" How many cities are located in the Bay Area?,SELECT COUNT(city) FROM geographic WHERE region = 'bay area' List all who wrote for production code 1ark07.,"SELECT written_by FROM table_22835602_1 WHERE production_code = ""1ARK07""" Okay! Can you show me the customer name that is associate with the lowest savings account balance?,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 What is the length of disc 67?,"SELECT length FROM table_name_13 WHERE disc = ""67""" "Name the record for attendance location of palace of auburn hills 15,210","SELECT record FROM table_17103729_8 WHERE location_attendance = ""Palace of Auburn Hills 15,210""" What was the original air date of the episode that was directed by Jessica Landaw?,"SELECT original_air_date FROM table_26824484_1 WHERE directed_by = ""Jessica Landaw""" What was the result of the game that was played on week 15?,SELECT result FROM table_name_95 WHERE week = 15 For how many contestants was the background internet dreamer? ,"SELECT COUNT(contestant) FROM table_19810459_1 WHERE background = ""Internet dreamer""" "What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?","SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = ""patronymic"" AND etymology = ""son of christian"" AND number_of_bearers_1971 > 45.984" What venue had collingwood as the away team?,"SELECT venue FROM table_name_14 WHERE away_team = ""collingwood""" "Among the facilities that have undergone at least one inspection in 2010, how many of them are in ward no.42?","SELECT COUNT(DISTINCT T1.license_no) FROM inspection AS T1 INNER JOIN establishment AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T1.inspection_date) = '2010' AND T2.ward = 42" What is that employee's name?,"SELECT T1.Employee_Name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource""" What are the employee ids for employees who make more than the average?,SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) Name the result for glenn thompson,"SELECT result FROM table_25030512_41 WHERE incumbent = ""Glenn Thompson""" What is the Station Code of the Destination Station Departure?,"SELECT station_code FROM table_name_37 WHERE departure = ""destination station""" When did Linda Smith visit Subway?,"SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith"" AND Restaurant.ResName = ""Subway"";" Provide the ISBN and price of the book with book ID 7160.,"SELECT T1.isbn13, T2.price FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T2.book_id = 6503" What nationality has a pick of 1?,"SELECT nationality FROM table_name_49 WHERE pick = ""1""" List the details of the customers who do not have any policies.,SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id What is the lowest gp?,SELECT MIN(gp) FROM table_26176081_29 "What is the release date of ""New Worlds for Old""?","SELECT release_date FROM table_27932399_1 WHERE release_title = ""New Worlds For Old""" How many times is keauna mclaughlin / rockne brubaker ranked?,"SELECT COUNT(rank) FROM table_23938357_6 WHERE name = ""Keauna McLaughlin / Rockne Brubaker""" What was the tonnage of the Great Britain ship Batna?,"SELECT tonnage FROM table_name_26 WHERE nationality = ""great britain"" AND ship = ""batna""" how many revenue in the Manufacturers table | Do you mean the sum of revenue in the Manufacturers table | what highest price in the Products table,SELECT max ( Price ) from Products What was the percentage of the Bitcoins verifiably burned until 2018/4/28?,SELECT CAST((SUM(T2.max_supply) - SUM(T2.total_supply)) AS REAL) / SUM(T2.total_supply) FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date < '2018-04-28' AND T1.name = 'Bitcoin' Show the names of journalists and the dates of the events they reported.,"SELECT T3.Name , T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID" "Show the minimum, average, maximum order quantity of all invoices.","SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES" Find the name of projects that require between 100 and 300 hours of work.,SELECT name FROM projects WHERE hours BETWEEN 100 AND 300 "What is the decimal value when the memory map and byte string are standard, and the max memory is 512?","SELECT decimal FROM table_name_19 WHERE byte_string = ""standard"" AND memory_map = ""standard"" AND max_memory__kwords_ = 512" Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.,"SELECT kids FROM Reservations WHERE FirstName = ""ROY"" AND LastName = ""SWEAZY"";" What is the pair of words that is repeated the most times? Identify them by their ID.,"SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )" What was Dan Selznick best time?,"SELECT best FROM table_name_63 WHERE name = ""dan selznick""" Who was the winning driver of the Circuit of Lausitzring?,"SELECT winning_driver FROM table_name_15 WHERE circuit = ""lausitzring""" What years was soc a client?,"SELECT years_of_operation FROM table_name_88 WHERE client = ""soc""" Find the total revenue for each manufacturer.,"SELECT sum(revenue) , name FROM manufacturers GROUP BY name" which is the order date of customer id 5?,SELECT order_date FROM customer_orders where customer_id = 5 what is the average of grades?,SELECT avg ( Grade ) FROM list "what is the institution located in north newton, kansas?","SELECT institution FROM table_262527_1 WHERE location = ""North Newton, Kansas""" what is the highest spartak when played is less than 15 and dynamo is less than 3?,SELECT MAX(spartak) FROM table_name_42 WHERE played < 15 AND dynamo < 3 "What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?",SELECT MIN(wins) FROM table_name_88 WHERE goals_conceded < 26 AND draws = 1 AND goals_scored < 74 What is the number of points that driver fernando alonso has in the season he had 20 races?,"SELECT SUM(points) FROM table_name_72 WHERE races = 20 AND driver = ""fernando alonso""" What is the value of other religions associated with atheism at 1.86%?,"SELECT other FROM table_name_80 WHERE atheism = ""1.86%""" Name the competition for stephanie cox on 2011-07-02,"SELECT competition FROM table_name_64 WHERE assist_pass = ""stephanie cox"" AND date = ""2011-07-02""" WHAT IS THE LOWEST MONEY WITH TO PAR LARGER THAN 26?,SELECT MIN(money___) AS $__ FROM table_name_1 WHERE to_par > 26 "What are the names of all genres in alphabetical order, combined with its ratings?","SELECT g_name , rating FROM genre ORDER BY g_name" What are the star rating descriptions of these hotels? | You mean the hotels with price above 10000? | Yes. The ones we've been talking about.,SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 "What is the series note description of the series ""SP.DYN.TO65.MA.ZS"" which covers the topic ""Health: Mortality"" in 1967?",SELECT T2.Description FROM Series AS T1 INNER JOIN SeriesNotes AS T2 ON T1.SeriesCode = T2.Seriescode WHERE T1.SeriesCode = 'SP.DYN.TO65.MA.ZS' AND T1.Topic = 'Health: Mortality' AND T2.Year = 'YR1967' What is the original air date for the production code of 1.12?,"SELECT original_air_date FROM table_2226817_2 WHERE production_code = ""1.12""" "What is the rank that when Serbia is the nation, and gold is larger than 0?","SELECT SUM(rank) FROM table_name_10 WHERE nation = ""serbia"" AND gold > 0" What are the dates for the documents with both 'GV' type and 'SF' type expenses?,SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF' What is the average rating of inactive businesses?,"SELECT CAST(SUM(stars) AS REAL) / COUNT(business_id) AS ""average"" FROM Business WHERE active LIKE 'FALSE'" What is the name of the artist who joined latest?,SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 Name the player for fc dallas pick number less than 3,"SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = ""fc dallas""" What are the countries that are not playing cartoons written by Todd Casey?,SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' What Records Time is 3:38?,"SELECT record FROM table_name_19 WHERE time = ""3:38""" "State the number of questions that were asked in the ""mental health survey for 2018"".",SELECT COUNT(T1.QuestionID) FROM Answer AS T1 INNER JOIN Survey AS T2 ON T1.SurveyID = T2.SurveyID WHERE T2.Description = 'mental health survey for 2018' "Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain?","SELECT gold FROM table_name_65 WHERE bronze = ""1"" AND rank = ""47"" AND nation = ""spain""" What is Christian Malcolm´s highest react when his time was below 20.58?,"SELECT MAX(react) FROM table_name_72 WHERE time < 20.58 AND athlete = ""christian malcolm""" Which Points have a Draw of 2?,SELECT AVG(points) FROM table_name_46 WHERE draw = 2 What are the code and description of the most frequent behavior incident type?,"SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1" What are their names?,SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_id = 15 "What is the lowest Lane, when Country is France, and when React is less than 0.14100000000000001?","SELECT MIN(lane) FROM table_name_28 WHERE country = ""france"" AND react < 0.14100000000000001" "The character Donald Duck has appeared in two Disney movies, which one has more grossing?","SELECT T1.movie_title FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T2.hero = 'Donald Duck' ORDER BY CAST(REPLACE(SUBSTR(total_gross, 2), ',', '') AS REAL) DESC LIMIT 1" Return the category code and typical price of 'cumin'.,"SELECT product_category_code , typical_buying_price FROM products WHERE product_name = ""cumin""" What are the rank timeslots where ratings are 4.1?,"SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = ""4.1""" What was the 1st leg for Team 2 Concepto Egile?,"SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = ""concepto egile""" List the names of the city with the top 5 white percentages.,SELECT Name FROM city ORDER BY White DESC LIMIT 5 What is the average year with a 1:42.85 time?,"SELECT AVG(year) FROM table_name_81 WHERE time = ""1:42.85""" What is the most common keyword among all the movies released in 2006?,SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.release_date LIKE '2006%' GROUP BY T3.keyword_name ORDER BY COUNT(T3.keyword_name) DESC LIMIT 1 What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating?,"SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = ""James Cameron"")" what's the evening gown where state is south dakota,"SELECT evening_gown FROM table_12094609_1 WHERE state = ""South Dakota""" Give the flight numbers of flights landing at APG.,"SELECT FlightNo FROM FLIGHTS WHERE DestAirport = ""APG""" What Tournament was against Daniel Elsner?,"SELECT tournament FROM table_name_63 WHERE opponent = ""daniel elsner""" "Which year has an Organization of new york yankees, and a Team of johnson city yankees?","SELECT year FROM table_name_61 WHERE organization = ""new york yankees"" AND team = ""johnson city yankees""" What date was Ipswich Town the away team?,"SELECT date FROM table_name_76 WHERE away_team = ""ipswich town""" What team has fewer than 203 points?,SELECT team FROM table_name_66 WHERE points < 203 What is Cuba's ICAO?,"SELECT icao FROM table_name_63 WHERE country = ""cuba""" What was the margin of victory for Olazabal in the German Masters?,"SELECT margin_of_victory FROM table_name_78 WHERE tournament = ""german masters""" What is the average points for the chassis LOLA LC88?,"SELECT AVG(points) FROM table_name_2 WHERE chassis = ""lola lc88""" how many browser id?,SELECT count ( distinct browser_id ) from accelerator_compatible_browser what is the engineer's first name that starting with 'E'?,"SELECT first_name from Maintenance_Engineers where first_name like ""E%""" "What is the Tournament, on the Week of May 5?","SELECT tournament FROM table_name_4 WHERE week = ""may 5""" Find the committees that have delegates both from from the democratic party and the liberal party.,"SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Democratic"" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal""" Give the state that has the most customers.,SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1 What is the save of the game where moran (1-2) lost?,"SELECT save FROM table_name_79 WHERE loss = ""moran (1-2)""" "What is Marplan, when Gallup is 1.5%","SELECT marplan FROM table_name_55 WHERE gallup = ""1.5%""" Name the total number of division for fa cups being 9,SELECT COUNT(division) FROM table_2979789_1 WHERE fa_cup_apps = 9 Which tourist attractions are related to royal family? Tell me their details and how we can get there.,"SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID" What is the north with sb rosenheim as the south?,"SELECT north FROM table_name_45 WHERE south = ""sb rosenheim""" Who won at the Barbagallo Raceway circuit?,"SELECT winner FROM table_name_49 WHERE circuit = ""barbagallo raceway""" "What is Minister, when Portfolio is ""Minister of Pubblic Administration"", and when Took Office is ""14 November 2002""?","SELECT minister FROM table_name_97 WHERE portfolio = ""minister of pubblic administration"" AND took_office = ""14 november 2002""" "What is the customer first, last name and id with least number of accounts.","SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1" Who is the home captain that won AUS by 245 runs?,"SELECT home_captain FROM table_name_93 WHERE result = ""aus by 245 runs""" What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332?,"SELECT COUNT(round) FROM table_name_60 WHERE name = ""ron hansen"" AND overall > 332" Which Network has a Local name of moj tata je bolji od tvog tate?,"SELECT network FROM table_name_56 WHERE local_name = ""moj tata je bolji od tvog tate""" "Name the asian american population 2010 for kansas city-overland park-kansas city, mo-ks csa","SELECT MAX(asian_american_population__2010_) FROM table_18963843_1 WHERE combined_statistical_area = ""Kansas City-Overland Park-Kansas City, MO-KS CSA""" Name the segment c with episode less than 179 and segment b of s sticker,"SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = ""s sticker""" "Among the products under grains/cereals category, provide the contact person and title of the supplier with one digit ID.","SELECT DISTINCT T1.ContactName, T1.ContactTitle FROM Suppliers AS T1 INNER JOIN Products AS T2 ON T1.SupplierID = T2.SupplierID INNER JOIN Categories AS T3 ON T2.CategoryID = T3.CategoryID WHERE T3.CategoryName = 'Grains/Cereals' AND T1.SupplierID BETWEEN 1 AND 10 LIMIT 1" What movies did director Jack Kinney direct?,SELECT name FROM director WHERE director = 'Jack Kinney' What is the gender of the student Linda Smith?,"SELECT Sex FROM Student WHERE Fname = ""Linda"" AND Lname = ""Smith""" what is the address of Ahmed,"SELECT customer_address FROM Customers WHERE customer_name = ""Ahmed""" What is the document date of project ID 105? | Do you mean Document ID 105 | yes,SELECT Document_Date FROM Documents where Document_ID = 105 What is the number of votes when Ron Paul is the candidate with less than 0 counties?,"SELECT COUNT(votes) FROM table_name_28 WHERE candidate = ""ron paul"" AND counties < 0" What was the value in 1995 for A in 2000 at the Indian Wells tournament?,"SELECT 1995 FROM table_name_95 WHERE 2000 = ""a"" AND tournament = ""indian wells""" Which head's name has the substring 'Ha'? List the id and name.,"SELECT head_id , name FROM head WHERE name LIKE '%Ha%'" What is the ab ripper x when the length is 92:24?,"SELECT ab_ripper_x FROM table_27512025_1 WHERE length = ""92:24""" In what Year was Labyrinth nominated?,"SELECT year__ceremony_ FROM table_name_46 WHERE film_title_used_in_nomination = ""labyrinth""" Which Lead has a Nation of switzerland?,"SELECT lead FROM table_name_15 WHERE nation = ""switzerland""" And which has least?,SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count ( * ) LIMIT 1 Please list the precise location coordinates of all the crimes in Central Chicago.,"SELECT T2.latitude, T2.longitude FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.district_name = 'Central'" What is the total attendance of the game with Toronto as the visitor team?,"SELECT COUNT(attendance) FROM table_name_82 WHERE visitor = ""toronto""" Find the university from which the professor who advised most undergraduate students graduated.,SELECT T1.graduate_from FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.type = 'UG' GROUP BY T1.prof_id ORDER BY COUNT(T2.student_id) DESC LIMIT 1 Who is the least aged person on the list?,SELECT name FROM Person order by age limit 1 Return the id of the document with the fewest paragraphs.,SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1 "Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.","SELECT DISTINCT T1.Name, T1.ListPrice FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Quantity > 10000" What label shows an Album of cover version v?,"SELECT label FROM table_name_24 WHERE album = ""cover version v""" What is the most recent season with a date of 27 October 1957?,"SELECT MAX(season) FROM table_name_43 WHERE date = ""27 october 1957""" What are the cities that have more than 2 airports sorted by number of airports?,SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*) Count the number of courses.,SELECT count(*) FROM COURSE What driver had the highest grid position with a time of +0.283?,"SELECT MAX(grid) FROM table_name_90 WHERE time = ""+0.283""" What is the Date of the Event in Panama City?,"SELECT date FROM table_name_37 WHERE city = ""panama city""" Return the the details of all products.,SELECT DISTINCT product_details FROM products What album is 4:53 long?,"SELECT album FROM table_name_74 WHERE length = ""4:53""" Please list the social security numbers of all the employees who work in California.,SELECT T1.ssn FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID WHERE T2.state = 'CA' What is the college/junior/club team name of player Mats Lindgren?,"SELECT college_junior_club_team FROM table_2781227_1 WHERE player = ""Mats Lindgren""" List the main industry with highest total market value and its number of companies.,"SELECT main_industry , count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1" "List the open date of open year of the shop named ""Apple"".","SELECT Open_Date , Open_Year FROM shop WHERE Shop_Name = ""Apple""" State the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?,SELECT T1.name FROM teams AS T1 INNER JOIN series_post AS T2 ON T1.tmID = T2.tmIDLoser AND T1.year = T2.year WHERE T1.rank < 5 AND T2.lgIDLoser > 2 AND T2.year BETWEEN 1980 AND 2000 Show me the rank of the team that has the largest average number of attendance?,SELECT T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg ( T1.attendance ) DESC LIMIT 1 Which status is 75.35 km2 and is named sussex?,"SELECT status FROM table_name_20 WHERE area_km_2 < 75.35 AND official_name = ""sussex""" "How many more stars in percentage are there for the repository of solution ""1"" than solution ""2""?",SELECT CAST(SUM(CASE WHEN T2.Id = 1 THEN T1.Stars ELSE 0 END) - SUM(CASE WHEN T2.Id = 2 THEN T1.Stars ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 2 THEN T1.Stars ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId "What is the Motor that has a Focuses bigger than 62, and a Participant of rebaque?","SELECT engine FROM table_name_73 WHERE points > 62 AND entrant = ""rebaque""" Show the flight number and distance of the flight with maximum price.,"SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1" what is the position for the player from university of alabama?,"SELECT position FROM table_name_37 WHERE school = ""university of alabama""" What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?,"SELECT order__number FROM table_26250155_1 WHERE theme = ""Billboard Hot 100 Hits"" AND original_artist = ""Sixpence None the Richer""" Which nominating festival nominated Iao Lethem's film?,"SELECT nominating_festival FROM table_name_80 WHERE director_s_ = ""iao lethem""" Can you list all composers who wrote tracks with the letter B in their name?,"SELECT composer FROM track where name like ""%B%""" Which record has a score of l 121–127?,"SELECT record FROM table_name_93 WHERE score = ""l 121–127""" "Among the legislators who will end in 2009, how many are from the Republican party?","SELECT `END`, party FROM `current-terms` WHERE STRFTIME('%Y', `END`) = '2009' AND party = 'Republican'" For how many times has Aimee Bixby ordered the product Xerox 1952?,SELECT COUNT(DISTINCT T2.`Order ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Aimee Bixby' AND T3.`Product Name` = 'Xerox 1952' Find all the vocal types.,SELECT DISTINCT TYPE FROM vocals "Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?","SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = ""smyslov; kasparov"" AND position = 5" What was the competition when the score was 3-0?,"SELECT competition FROM table_name_33 WHERE score = ""3-0""" Find the name of tracks which are in both Movies and music playlists.,SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' Can you add to the table the name of the phones associated with each of the phone ids?,"SELECT t2.market_id, t2.district,t1.phone_id,t3.name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID" Which college is the player from South Medford High School headed to?,"SELECT college FROM table_name_67 WHERE school = ""south medford high school""" what is the circuit when the date is 16 april?,"SELECT circuit FROM table_name_60 WHERE date = ""16 april""" What episode number is presented by Ben Okri ?,"SELECT episode_no FROM table_15211468_3 WHERE presenter = ""Ben Okri""" What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?,"SELECT MIN(mccain_number) FROM table_20453681_1 WHERE obama_percentage = ""35.7%"" AND others_percentage = ""1.9%""" What is the date of the game where the NY Islanders are the home team?,"SELECT date FROM table_name_2 WHERE home = ""ny islanders""" Please calculate the total value of Motorcycles orders.,SELECT SUM(T1.quantityOrdered * T1.priceEach) FROM orderdetails AS T1 INNER JOIN products AS T2 ON T1.productCode = T2.productCode WHERE T2.productLine = 'Motorcycles' Give me the descriptions of the service types that cost more than 100.,SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 What manufacturer won the race on November 2?,"SELECT manufacturer FROM table_17801022_1 WHERE date = ""November 2""" "What are the product assembly ID that come with unit measure code EA and BOM level of 2, at the same time have per assembly quantity of more than 10?",SELECT ProductAssemblyID FROM BillOfMaterials WHERE UnitMeasureCode = 'EA' AND BOMLevel = 2 AND PerAssemblyQty > 10 "What is Country, when Class / Type is ""Three masted full rigged ship""?","SELECT country FROM table_name_2 WHERE class___type = ""three masted full rigged ship""" What is the Burmese term for Thursday?,"SELECT burmese FROM table_14850099_18 WHERE english = ""Thursday""" What is the county that produces the most wines scoring higher than 90?,SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1 Name the virtual for Fox,"SELECT COUNT(virtual) FROM table_14623167_1 WHERE network = ""Fox""" What is the site for Florida?,"SELECT listed FROM table_name_22 WHERE municipality = ""florida""" Which College/Junior/Club Team has a Nationality of Canada and Jeff brown?,"SELECT college_junior_club_team__league_ FROM table_name_84 WHERE nationality = ""canada"" AND player = ""jeff brown""" On what date was the attendance a bye?,"SELECT date FROM table_name_44 WHERE attendance = ""bye""" What genre is the game from the year 2007?,SELECT genre FROM table_name_29 WHERE year = 2007 "More crimes happened in which community area in January, 2018, Woodlawn or Lincoln Square?","SELECT T1.community_area_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name IN ('Woodlawn', 'Lincoln Square') AND T2.date LIKE '%1/2018%' GROUP BY T1.community_area_name ORDER BY COUNT(T1.community_area_name) DESC LIMIT 1" "Which Loss has a Name of bullock, chris, and a Long smaller than 36?","SELECT SUM(loss) FROM table_name_72 WHERE name = ""bullock, chris"" AND long < 36" What is the name of Rank 5?,SELECT name FROM table_name_89 WHERE rank = 5 How many railways are there?,SELECT count(*) FROM railway What is the name of the course with the highest satisfaction from students?,SELECT DISTINCT T2.name FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T1.sat = 5 The year 1972 has what written in Height column?,SELECT height FROM table_name_40 WHERE year = 1972 What are the distinct payment method codes in all the invoices?,SELECT DISTINCT payment_method_code FROM INVOICES How long has Sebastian Telfair played for Toronto?,"SELECT years_in_toronto FROM table_name_83 WHERE player = ""sebastian telfair""" What is the crowd for away team of north melbourne?,"SELECT crowd FROM table_name_16 WHERE away_team = ""north melbourne""" Who was the visiting team on May 7?,"SELECT visitor FROM table_name_55 WHERE date = ""may 7""" Name the week number for the beatles,"SELECT week__number FROM table_19508635_1 WHERE theme = ""The Beatles""" What is the date of the game when the Mavericks were the home team?,"SELECT date FROM table_name_98 WHERE home = ""mavericks""" What is the least amount of Silver medals that have more than 3 Bronze?,SELECT MIN(silver) FROM table_name_39 WHERE bronze > 3 How many games can be played on the Wii platform?,SELECT COUNT(T1.id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T2.platform_name = 'Wii' What are the line 1 of addresses shared by some students and some teachers?,SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id Who won bronze in Seoul?,"SELECT bronze FROM table_name_20 WHERE location = ""seoul""" find the property type code and address for the property id 24,"SELECT property_type_code, property_address from properties where property_id = 24" "List the number of invoices from the US, grouped by state.","SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = ""USA"" GROUP BY billing_state" What is the Pinyin translation of the Wade-Giles of hsin-yüan-i-ma?,"SELECT pinyin FROM table_name_4 WHERE wade_giles = ""hsin-yüan-i-ma""" What is the date of the post-week 2 game with a result of l 16–10?,"SELECT date FROM table_name_58 WHERE week > 2 AND result = ""l 16–10""" What about the least number of records?,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY count ( * ) ASC LIMIT 1 How many actors have appeared in each musical?,"SELECT T2.Name , COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID" "What To par has a Place of t2, and a Country of united states?","SELECT to_par FROM table_name_11 WHERE place = ""t2"" AND country = ""united states""" In how many games in which the batting team was the Delhi Daredevils were no runs scored?,SELECT COUNT(T1.Runs_Scored) FROM Batsman_Scored AS T1 INNER JOIN Ball_by_Ball AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Team AS T4 ON T3.Team_1 = T4.Team_Id WHERE T2.Team_Batting = 1 OR T2.Team_Batting = 2 AND T4.Team_Name = 'Delhi Daredevils' what is the name of customer id 2,SELECT customer_name from Customers where customer_id = 2 What is the copa libertadores 1996 of team corinthians?,"SELECT copa_libertadores_1996 FROM table_name_32 WHERE team = ""corinthians""" "Show the rank, first name, and last name for all the faculty.","SELECT rank , Fname , Lname FROM Faculty" include claim stage id in the table | Do you wanna see all the claim stage ids? | yes please,select distinct Claim_Stage_ID from Claims_Processing "For each zip code, return the average mean temperature of August there.","SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE ""8/%"" GROUP BY zip_code" Convert all temperature recorded at San Francisco city during August 2013 into degree Celsius.,"SELECT (max_temperature_f - 32) / 1.8000 , (mean_temperature_f - 32) / 1.8000 , (min_temperature_f - 32) / 1.8000 FROM weather WHERE SUBSTR(CAST(date AS TEXT), 1, INSTR(date, '/') - 1) = '8' AND SUBSTR(CAST(date AS TEXT), -4) = '2013' AND zip_code = 94107" Please list the names of the movies that have been rated the most times in 2020.,SELECT T2.movie_title FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T1.rating_timestamp_utc LIKE '2020%' GROUP BY T2.movie_title ORDER BY COUNT(T2.movie_title) DESC LIMIT 1 Please list all of the paragraphs that have the character name Aedile.,SELECT T2.ParagraphNum FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T1.CharName = 'Aedile' What Country has a Director of 2007?,"SELECT country FROM table_name_43 WHERE director_s_ = ""2007""" Which institution has a nickname of Blue Hens?,"SELECT institution FROM table_name_88 WHERE nickname = ""blue hens""" how many customers are presented on the table,SELECT COUNT ( * ) FROM Customers What is the total of all to par with player Bob Rosburg?,"SELECT SUM(to_par) FROM table_name_65 WHERE player = ""bob rosburg""" What is the number of ties when Altrincham is the home team?,"SELECT tie_no FROM table_name_88 WHERE home_team = ""altrincham""" What's the boiling point when the density is 1.092 g/ml?,"SELECT boiling_point FROM table_name_46 WHERE density = ""1.092 g/ml""" "Return the addresses of the course authors or tutors whose personal name is ""Cathrine"".","SELECT address_line_1 FROM Course_Authors_and_Tutors WHERE personal_name = ""Cathrine""" Could you show me the IDs for the investors who have the top 3 number of 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 ORDER BY COUNT ( * ) DESC LIMIT 3 what is the lowest attendance's ?,SELECT MIN ( Attendance ) FROM performance "Give the name, population, and head of state for the country that has the largest area.","SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1" How many goals were achieved when Chievo was the club and the debut year was before 2002?,"SELECT COUNT(goals) FROM table_name_71 WHERE current_club = ""chievo"" AND debut_year < 2002" What was the QB rating for Neil lomax?,"SELECT qb_rating FROM table_20906175_3 WHERE name = ""Neil Lomax""" "Count the products that have the color description ""white"" or have the characteristic name ""hot"".","SELECT count(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""white"" OR t3.characteristic_name = ""hot""" What is the most commmon hometowns for teachers?,SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1 What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2?,"SELECT livery FROM table_name_45 WHERE locomotive_type = ""steam"" AND year_built > 1950 AND wheel_arrangement = ""2-6-2""" "In total, how many orders were shipped via United Package?",SELECT COUNT(T1.OrderID) FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'United Package' "Of the 4 members, how many of them are members of the club ""Pen and Paper Gaming""?","SELECT count ( * ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Pen and Paper Gaming""" "Which College has a Year smaller than 1962, and a Position of rb?","SELECT college FROM table_name_98 WHERE year < 1962 AND position = ""rb""" "Please list the titles of all the films under the category of ""Horror"" and has a rental rate of $2.99.",SELECT T1.title FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T2.category_id = T3.category_id WHERE T3.name = 'Horror' AND T1.rental_rate = 2.99 Which recipes contain almond extract?,SELECT T1.title FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'almond extract' What team visited the Cleveland Browns Stadium?,"SELECT visiting_team FROM table_name_22 WHERE stadium = ""cleveland browns stadium""" Where is the most common country across members?,SELECT Country FROM member GROUP BY Country ORDER BY COUNT ( * ) DESC LIMIT 1 Who is the director when the production code is 60034?,SELECT directed_by FROM table_28140588_1 WHERE production_code = 60034 Name the division record for riders,"SELECT division_record FROM table_name_28 WHERE team = ""riders""" "show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.",SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id = t2.id WHERE t2.nationality = 'American' ORDER BY t1.length_feet How many routine inspections did Tiramisu Kitchen have?,SELECT COUNT(T1.business_id) FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.type = 'Routine - Unscheduled' AND T2.name = 'Tiramisu Kitchen' What is the number of staff living in Port Melyssa and what are their names? | first name or last name? | both please,"SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id where T1.city = ""Port Melyssa""" What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?,"SELECT f_id FROM song WHERE resolution > (SELECT avg(resolution) FROM song WHERE genre_is = ""modern"")" What is the carrier for the Samsung device?,"SELECT carrier FROM device where device = ""Samsung""" How many courses do the student whose id is 171 attend?,SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171 Find all procedures which cost more than 1000 or which physician John Wen was trained in.,"SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" Which player is from Utah?,"SELECT player FROM table_11677691_7 WHERE college = ""Utah""" Show all the buildings that have at least 10 professors.,"SELECT building FROM Faculty WHERE rank = ""Professor"" GROUP BY building HAVING count(*) >= 10" How many Yelp businesses are opened 24 hours?,SELECT COUNT(T2.business_id) FROM Attributes AS T1 INNER JOIN Business_Attributes AS T2 ON T1.attribute_id = T2.attribute_id WHERE T1.attribute_name LIKE 'Open 24 Hours' AND T2.attribute_value LIKE 'TRUE' Tell me the time for buffalo bills,"SELECT time FROM table_name_9 WHERE opponent = ""buffalo bills""" what is the highest head id in the management,SELECT max ( head_ID ) from head Which game had a result of 126-95?,"SELECT game FROM table_name_88 WHERE result = ""126-95""" "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.","SELECT rank , company , market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion , profits_billion" How many students did not have any course enrollment?,SELECT count(*) FROM Students WHERE student_id NOT IN (SELECT student_id FROM Student_Course_Enrolment) "What are the statement ids of those accounts, please?","SELECT Statement_ID FROM Accounts WHERE Account_details LIKE ""%5%""" What are the names of the technicians that have not been assigned to repair machines?,SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment) Tell me the least silver for total less than 6 and rank of 8,"SELECT MIN(silver) FROM table_name_17 WHERE total < 6 AND rank = ""8""" How much is the total fine given to Ron of Japan Inc in its inspection done on February 2014?,"SELECT SUM(T3.fine) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE strftime('%Y-%m', T2.inspection_date) = '2014-02' AND T1.dba_name = 'RON OF JAPAN INC'" Which Circuit has an Event of international procar meeting?,"SELECT circuit FROM table_name_10 WHERE event = ""international procar meeting""" Find the number of items that did not receive any review.,SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review) "Which writer had voice characters of JDR, BB, TN, LR, PS?","SELECT writer FROM table_name_13 WHERE voiced_character_s_ = ""jdr, bb, tn, lr, ps""" "Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?","SELECT origin_of_programming FROM table_name_12 WHERE genre = ""general"" AND network = ""ntv bangla"" AND service = ""cogeco cable""" On what year did Newcombe first face Clark Graebner in a final match?,"SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = ""Clark Graebner""" What was the score of the BCS National Championship game?,"SELECT score FROM table_name_66 WHERE bowl_game = ""bcs national championship""" What is the highest floor for the building measuring 220 meters?,SELECT MAX(floors) FROM table_name_97 WHERE metres > 220 What the summary of episode 15?,SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 15 Can you name the drawn with a Lost of 1?,"SELECT drawn FROM table_name_60 WHERE lost = ""1""" what is the total of floors when the name is kölntriangle and rank is less thank 63?,"SELECT SUM(floors) FROM table_name_10 WHERE name = ""kölntriangle"" AND rank < 63" On which day and in which zip code was the min dew point lower than any day in zip code 94107?,"SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)" What's the projected population of IN-MI?,"SELECT projected_2025_population FROM table_name_68 WHERE state__province = ""in-mi""" What is the payment method of Devin Mills.,"SELECT DISTINCT t1.payment_method FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Devin Mills""" Which state is Outagamie County in? Give the full name of the state.,SELECT DISTINCT T2.name FROM country AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.county = 'OUTAGAMIE' "Calculate customers' total payment amount in August, 2005.","SELECT SUM(amount) FROM payment WHERE SUBSTR(payment_date, 1, 7) = '2005-08'" Show the company name with the number of gas station.,"SELECT T2.company , count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id" How many districts are there in the police district building with a zip code of 60608?,SELECT COUNT(*) AS cnt FROM District WHERE zip_code = 60608 "What is the epicenter on January 1, 1965?","SELECT epicenter FROM table_name_88 WHERE date = ""january 1, 1965""" What is the storm name of the storm that affected the greatest number of regions?,"SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count ( * ) DESC LIMIT 1" "What is the sum of Money ($), when Score is 70-71-70-69=280?",SELECT SUM(money___) AS $__ FROM table_name_43 WHERE score = 70 - 71 - 70 - 69 = 280 What is the total average for Rank entries where the Lane listed is smaller than 4 and the Nationality listed is San Marino?,"SELECT AVG(rank) FROM table_name_7 WHERE lane < 4 AND nationality = ""san marino""" On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?,"SELECT COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = ""Marcos Siega"" AND written_by = ""Scott Buck""" what end station name has the least amount of trips taken but still above 100 trips,SELECT end_station_name FROM trip GROUP BY zip_code HAVING count ( * ) > = 100 order by count ( * ) asc limit 1 "Among the schools whose donators are teachers, what is the percentage of schools that are in Brooklyn?",SELECT CAST(SUM(CASE WHEN T1.school_city LIKE 'Brooklyn' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.teacher_acctid) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.is_teacher_acct = 't' "How many movies have ""vi"" as their language code?",SELECT COUNT(T1.movie_id) FROM movie_languages AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_code = 'vi' "What is the lowest FA cup that has a league greater than 0, with a Malaysia cup greater than 5?",SELECT MIN(fa_cup) FROM table_name_9 WHERE league > 0 AND malaysia_cup > 5 what is the total home game attandance in 1871?,SELECT sum ( T1.attendance ) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1871 what is the name of the dorms with capacity of greeter than 300,SELECT dorm_name FROM dorm WHERE student_capacity > 300 What are the member names and hometowns of those who registered at a branch in 2016?,"SELECT T2.name , T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016" What is the shipment ID of the heaviest shipment that Zachery Hicks transported?,SELECT T1.ship_id FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' ORDER BY T1.weight DESC LIMIT 1 "For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?","SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?,"SELECT mixed_doubles FROM table_14319023_2 WHERE girls_doubles = ""Anneke Feinya Agustin Wenny Setiawati""" "What Japanese prefecture has Ibaraki, Tsukuba?","SELECT japanese FROM table_name_15 WHERE prefecture = ""ibaraki"" AND name = ""tsukuba""" What is the earliest year with fewer than 5 wins and 89 points?,SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89 Which Opposing Teams is on 06/02/1988?,"SELECT opposing_teams FROM table_name_18 WHERE date = ""06/02/1988""" "Name the title when the main characters are grant calthorpe, lee neilan and the published in of astounding stories","SELECT title FROM table_name_84 WHERE published_in = ""astounding stories"" AND main_characters = ""grant calthorpe, lee neilan""" "What is the template type code of the template used by document with the name ""Data base""?","SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = ""Data base""" "On what day was a game played at Reese Smith Field, with a score of 4-3?","SELECT date FROM table_name_14 WHERE score = ""4-3"" AND site_stadium = ""reese smith field""" Please list the descriptions of all the high risk violations of Tiramisu Kitchen.,SELECT DISTINCT T1.description FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' AND T2.name = 'Tiramisu Kitchen' How many crime against property are there?,SELECT COUNT(*) AS cnt FROM FBI_Code WHERE crime_against = 'Property' List the game IDs that were released in 2017.,SELECT T.id FROM game_platform AS T WHERE T.release_year = 2017 What Team 1 has union douala as Team 2?,"SELECT team_1 FROM table_name_46 WHERE team_2 = ""union douala""" "What is the occurrence of the word ""nombre""?",SELECT occurrences FROM words WHERE word = 'nombre' Find the ids of the students who participate in Canoeing and Kayaking.,SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking' Where's the louisiana-lafayette as a visiting team?,"SELECT site FROM table_26842217_4 WHERE visiting_team = ""Louisiana-Lafayette""" Name the home team for manuka oval,"SELECT home_team FROM table_14312471_3 WHERE ground = ""Manuka Oval""" What is the Country when the IATA shows cju?,"SELECT country FROM table_name_98 WHERE iata = ""cju""" Which is the earliest founded day school to have entered the competition after 1958?,"SELECT MIN(founded) FROM table_name_64 WHERE day_boarding = ""day"" AND year_entered_competition > 1958" "Bronze smaller than 3, and a Total smaller than 2, and a Gold larger than 1 has how many average silvers?",SELECT AVG(silver) FROM table_name_83 WHERE bronze < 3 AND total < 2 AND gold > 1 "What year did the Nashville Metros have the Regular Season 2nd, central?","SELECT year FROM table_name_74 WHERE regular_season = ""2nd, central""" List the most common result of the musicals.,SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 Name the total number of trofeo fast team of stage 16,"SELECT COUNT(trofeo_fast_team) FROM table_12261806_2 WHERE stage = ""16""" "What is the age of Breton,Robert?","SELECT age FROM member where Name = 'Breton, Robert'" What is the Craft used at Coniston Water?,"SELECT craft FROM table_name_15 WHERE location = ""coniston water""" Report the name of all campuses in Los Angeles county.,"SELECT campus FROM campuses WHERE county = ""Los Angeles""" "Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955?","SELECT entrant FROM table_name_15 WHERE engine = ""offenhauser l4"" AND year < 1955 AND chassis = ""kurtis kraft kk500a"" AND points = 9" What's the hometown of the player who went to lsu?,"SELECT hometown FROM table_name_32 WHERE college = ""lsu""" tell me the staff details of staff id 1 ?,SELECT staff_details FROM Research_Staff where staff_id = 1 How many matches did the Sunrisers Hyderabad team win in 2013?,SELECT SUM(CASE WHEN Match_Date LIKE '2013%' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Match_Winner = T2.Team_Id WHERE T2.Team_Name = 'Sunrisers Hyderabad' What was the To par for bill britton when he placed t7?,"SELECT to_par FROM table_name_37 WHERE place = ""t7"" AND player = ""bill britton""" What is the most gold when the rank is 7 and bronze is less than 0?,"SELECT MAX(gold) FROM table_name_40 WHERE rank = ""7"" AND bronze < 0" list all the venues of the the debates,SELECT Venue FROM debate What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?,"SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = ""PIT""" What is the latest episode number that was directed by Tom Dicillo?,"SELECT MAX(no_in_series) FROM table_28561455_1 WHERE directed_by = ""Tom DiCillo""" "Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?",SELECT COUNT(T1.BusinessEntityID) FROM EmployeeDepartmentHistory AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T1.DepartmentID = T3.DepartmentID WHERE T3.Name = 'Engineering' AND T2.EmailPromotion = 0 Determine the number of shipments delivered by Andrea Simons to Huntsville in 2016.,"SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T3.first_name = 'Andrea' AND T3.last_name = 'Simons' AND T2.city_name = 'Huntsville' AND STRFTIME('%Y', T1.ship_date) = '2016'" What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.,"SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country" What company is the producer at the poolavadi location,"SELECT producer FROM table_name_99 WHERE location = ""poolavadi""" what are the color descriptions for the products? | Do you want both the names and the color descriptions? | yes,"SELECT T1.product_name , T2.color_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = ""Herbs""" "Find the campus fee of ""San Jose State University"" in year 2000.","SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = ""San Jose State University"" AND t1.year = 2000" what is the previous conference when the location is converse?,"SELECT previous_conference FROM table_name_69 WHERE location = ""converse""" What country is the Debemur Morti prod. label from?,"SELECT country FROM table_name_97 WHERE label = ""debemur morti prod.""" "What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?",SELECT COUNT(university_of_dublin) FROM table_name_94 WHERE agricultural_panel = 0 AND nominated_by_the_taoiseach > 0 AND industrial_and_commercial_panel < 0 what is the date from of staff id 779.0,SELECT date_from FROM Project_Staff where staff_id = 779.0 What was the segment b for Netflix s01e21?,"SELECT segment_b FROM table_name_34 WHERE netflix = ""s01e21""" What was the final score of the Paul Goldstein match?,"SELECT score FROM table_name_96 WHERE opponent_in_the_final = ""paul goldstein""" What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?,"SELECT MIN(edition) FROM table_name_64 WHERE year > 2003 AND third = ""tikveš"" AND runner_up = ""sileks""" "can you list the engineer id, first name, and last name of the engineer who had the least number of visits?","SELECT T1.engineer_id , T1.first_name , T1.last_name ,count ( * ) FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY count ( * ) limit 1" What was the most popular position at tryouts?,SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1 What are the main services of that station?,SELECT T2.Main_Services FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count ( * ) DESC LIMIT 1 * I have left the chat *,"SELECT file_size,formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages" In what rounds did Scuderia Milano participate?,"SELECT rounds FROM table_name_48 WHERE entrant = ""scuderia milano""" What is the name of the company that constructed the vehicle for Timo Glock?,"SELECT constructor FROM table_name_15 WHERE driver = ""timo glock""" How much is the car with the highest sweep volume?,SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID ORDER BY T1.displacement / T1.cylinders DESC LIMIT 1 show all the procedures on the table | Did you want all the procedure names? | exactly,SELECT Name FROM Procedures Name the stage for no award,"SELECT stage FROM table_22713796_14 WHERE mountains_classification = ""no award""" Return the template type code of the template that is used by a document named Data base.,"SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = ""Data base""" what is the id of balls to the walls,"SELECT distinct T2.id FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = ""Balls to the Wall""" Tell me the 1968 for 1r,"SELECT 1968 FROM table_name_76 WHERE 1967 = ""1r""" "What is the total silver with a Rank larger than 9, and a Total larger than 1?",SELECT SUM(silver) FROM table_name_94 WHERE rank > 9 AND total > 1 Which player had a rank of 8 and tally of 1-5?,"SELECT player FROM table_name_56 WHERE rank = 8 AND tally = ""1-5""" What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?,SELECT MAX(labour_panel) FROM table_name_46 WHERE university_of_dublin < 2 AND agricultural_panel > 5 which gender got the highest average uncertain ratio.,SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1 How many times more is the number of games which were published by Atari than Athena?,SELECT CAST(COUNT(CASE WHEN T1.publisher_name = 'Atari' THEN T2.game_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T1.publisher_name = 'Athena' THEN T2.game_id ELSE NULL END) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id What is the 2nd ratio of 1996-2002 Dodge Viper?,"SELECT 2 AS nd FROM table_1310499_1 WHERE application = ""1996-2002 Dodge Viper""" What kind of Week 2 has a Week 4 of araya robinson?,"SELECT week_2 FROM table_name_15 WHERE week_4 = ""araya robinson""" List the employees' full names and ages in 2022 who lived in London.,"SELECT TitleOfCourtesy, FirstName, LastName , TIMESTAMPDIFF(YEAR, BirthDate, NOW()) AS ages FROM Employees WHERE City = 'London'" What are all role codes?,SELECT role_code FROM ROLES "Can you tell me the average Total that had the Silver of 0, and the Rank of 6, and the Gold smaller than 0?","SELECT AVG(total) FROM table_name_92 WHERE silver = 0 AND rank = ""6"" AND gold < 0" What incumbent was a federalist that was first elected in 1803?,"SELECT incumbent FROM table_2668374_18 WHERE party = ""Federalist"" AND first_elected = ""1803""" What school/club team did Amal McCaskill play for?,"SELECT school_club_team FROM table_name_40 WHERE player = ""amal mccaskill""" What is the maximum capacity of the San Agustin Gym?,"SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = ""san agustin gym""" "what is the position when the pick is higher than 33 and the school is tottenville hs (staten island, ny)?","SELECT position FROM table_name_16 WHERE pick > 33 AND school = ""tottenville hs (staten island, ny)""" "Compute the total order quantities of the product ""photo"".","SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = ""photo""" Show the name for regions not affected.,SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region); Name the sum of frequency will call sign of k259aw,"SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = ""k259aw""" What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?,"SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE ""12/%""" What is the total work number of Gowrie after 1875?,"SELECT SUM(works_number) FROM table_name_45 WHERE date > 1875 AND name = ""gowrie""" What are the countries where either English or Dutch is the official language ?,"select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = ""english"" and isofficial = ""t"" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = ""dutch"" and isofficial = ""t""" Name the total number of opponent of record 9-2,"SELECT COUNT(opponent) FROM table_17186229_4 WHERE record = ""9-2""" "In 1976, how many goals achieved by team 'BIR' in Division 'EW'?",SELECT SUM(T2.G) FROM Teams AS T1 INNER JOIN Scoring AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.divID = 'EW' AND T1.tmID = 'BIR' AND T1.year = 1976 "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.","SELECT T1.fname , T1.lname , count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID" Where is bobby jones (a)?,"SELECT place FROM table_name_43 WHERE player = ""bobby jones (a)""" Which Tournament has a 2007 of wta premier 5 tournaments?,"SELECT tournament FROM table_name_28 WHERE 2007 = ""wta premier 5 tournaments""" "What is the 1988 result that has a 1994 result of A, and 3r as the 1987 result?","SELECT 1988 FROM table_name_19 WHERE 1994 = ""a"" AND 1987 = ""3r""" What is the batting style of Makhaya Ntini?,"SELECT batting_style FROM table_name_85 WHERE player = ""makhaya ntini""" "Which Attendance has a Game score less than 3, and a Score of 2 – 5?","SELECT AVG(attendance) FROM table_name_58 WHERE game < 3 AND score = ""2 – 5""" What is the percentage of females where the state code is a 4?,SELECT females___percentage_ FROM table_14598_9 WHERE state_ut_code = 4 What was the record when the game was played at Cleveland Municipal Stadium?,"SELECT record FROM table_14984078_1 WHERE game_site = ""Cleveland Municipal Stadium""" Which site has the CERCLIS ID fld004092532?,"SELECT name FROM table_name_88 WHERE cerclis_id = ""fld004092532""" List the range distroration for the ramsan-630,"SELECT form_factor FROM table_27615520_1 WHERE product_name = ""RamSan-630""" how many campuses are presented on the table,SELECT count ( * ) FROM campuses Find the name of the customers who have at most two orders.,SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) <= 2 "What is the highest Quantity for PTRD Nos. 3, 15?","SELECT MAX(quantity) FROM table_name_84 WHERE ptrd_nos = ""3, 15""" "Please list the names of all the customers who had ordered the product ""Telescoping Adjustable Floor Lamp"".",SELECT DISTINCT T1.`Customer Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T3.`Product Name` = 'Telescoping Adjustable Floor Lamp' Find all the songs that do not have a back vocal.,"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = ""back""" How many policies does America Jaskolski have listed?,"SELECT count ( * ) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id where Customer_name = ""America Jaskolski""" What circuit has qualifying as the session?,"SELECT circuit FROM table_name_77 WHERE session = ""qualifying""" Who was the loser playing football with england b as a winner after 1992?,"SELECT loser FROM table_name_55 WHERE sport = ""football"" AND winner = ""england b"" AND date > 1992" What is the highest number of enrollments? | do you mean the highest number of course enrollments of student? | yes,SELECT count ( * ) FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT ( * ) DESC LIMIT 1 What is the longest trip duration according? Convert the it to number of days.,"SELECT MAX(duration), CAST(MAX(duration) AS REAL) / 86400 FROM trip" How many students did Harvard University have in 2011?,SELECT T1.num_students FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Harvard University' AND T1.year = 2011 What position did Jimmy Oliver of the United States play?,"SELECT position FROM table_name_75 WHERE nationality = ""united states"" AND player = ""jimmy oliver""" What is the date in location from for this document?,"SELECT T2.Date_in_Location_From from all_documents as T1 join Document_Locations as T2 on T1.document_id = T2.document_id where T1.document_name = ""Robin CV""" Find the name of the item with the lowest average rating.,SELECT T1.title 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) LIMIT 1 State the total number of the attribute classes.,SELECT COUNT(ATT_CLASS_ID) FROM ATT_CLASSES "Could you find the names of all the departments, please?",SELECT dept_name FROM department What is the payment method of the customer that has purchased the least quantity of items?,SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1 Show the delegates and the names of the party they belong to.,"SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID" What is the pay rate of the employee who has the longest vacation hours?,SELECT T1.Rate FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID ORDER BY T2.VacationHours DESC LIMIT 1 What 20-29 was in season 2008?,"SELECT 20 AS _29 FROM table_name_69 WHERE season = ""2008""" "What is the date when the city is San Antonio, Texas?","SELECT date FROM table_20996923_20 WHERE city = ""San Antonio, Texas""" Please list the numbers of males in all the residential areas in Arecibo county.,SELECT SUM(T1.male_population) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov,"SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = ""Diana Koleva Emilia Dimitrova"" AND mens_singles = ""Jeliazko Valkov""" Name the number of shows when there was 2 million views,SELECT COUNT(us_viewers__million_) FROM table_13336122_6 WHERE no_in_season = 2 "Before 1956, what Chassis has Gordini Straight-4 engine with 3 points?","SELECT chassis FROM table_name_83 WHERE year < 1956 AND engine = ""gordini straight-4"" AND points = 3" Name the air date for jay j. demopoulos,"SELECT original_air_date FROM table_24466855_1 WHERE written_by = ""Jay J. Demopoulos""" How many stroke patients have married?,SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Stroke' AND T1.marital = 'M' Name the became consort for marriage of 4 april 1721,"SELECT became_consort FROM table_name_92 WHERE marriage = ""4 april 1721""" Sort the names of all counties in ascending order of population.,SELECT County_name FROM county ORDER BY Population ASC What language does Raj Kamal speak?,"SELECT language FROM table_name_62 WHERE music_director = ""raj kamal""" "What is the smallest ERP for allentown, pennsylvania?","SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = ""allentown, pennsylvania""" What is the average quantity of stocks?,SELECT avg(Quantity) FROM stock How old is the student with student id 1008?,SELECT Age FROM student WHERE StuID = 1008 Find the types of documents with more than 4 documents.,SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4 "How many types of ""HL Touring Frames"" are there?",SELECT COUNT(ProductID) FROM Products WHERE Name LIKE '%HL Touring Frame%' List down the advised student IDs and IDs of employing professor in faculty.,"SELECT T1.p_id, T2.p_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id_dummy = T2.p_id WHERE hasPosition = 'Faculty_eme'" Which club participated with a record of 45 tries against?,"SELECT club FROM table_name_91 WHERE tries_against = ""45""" What season number in the season has production code 210?,"SELECT MIN(no_in_season) FROM table_26448179_3 WHERE production_code = ""210""" What content is provided by the television service ewtn?,"SELECT content FROM table_name_1 WHERE television_service = ""ewtn""" List all product names that are high in quality. Please also state its selling price.,"SELECT Name, ListPrice FROM Product WHERE Class = 'H'" Name the date for sacramento,"SELECT date FROM table_15780049_8 WHERE team = ""Sacramento""" A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?,SELECT SUM(regular_season) FROM table_name_41 WHERE playoffs = 35 AND total > 302 How many more devices are there of the brand vivo than of the brand LG?,"SELECT SUM(IIF(phone_brand = 'vivo', 1, 0)) - SUM(IIF(phone_brand = 'LG', 1, 0)) AS num FROM phone_brand_device_model2" What are the highest points for Justin Lofton when his top 10 is lower than 5?,"SELECT MAX(points) FROM table_name_14 WHERE driver = ""justin lofton"" AND top_10 < 5" What city had the chameleon oil pattern at the Go RV'ing Classic?,"SELECT city FROM table_name_21 WHERE oil_pattern = ""chameleon"" AND event = ""go rv'ing classic""" "What is KK - 5 if KK - 1 is 1,067?","SELECT kk___5 FROM table_name_42 WHERE kk___1 = ""1,067""" "what is the name when the type is freighter, nationality is united kingdom on 3 may 1940?","SELECT name FROM table_name_61 WHERE type = ""freighter"" AND nationality = ""united kingdom"" AND date = ""3 may 1940""" What is week 4 if week 3 is 35.40?,"SELECT week_4 FROM table_name_26 WHERE week_3 = ""35.40""" Which the highest Bronze of czech republic with a Total smaller than 4?,"SELECT MAX(bronze) FROM table_name_63 WHERE nation = ""czech republic"" AND total < 4" What is the win record where the pa record is 62?,SELECT w FROM table_29565673_2 WHERE pa = 62 what is the highest price?,SELECT MAX ( Price ) FROM schedule "What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets?","SELECT AVG(sales__billion_) AS $_ FROM table_name_65 WHERE headquarters = ""france"" AND assets__billion_$_ > 2 OFFSET 539.1" "What Venue on October 27, 2005 had a Score of 5-0?","SELECT venue FROM table_name_65 WHERE score = ""5-0"" AND date = ""october 27, 2005""" What's the total of Rank for the County of Galway and has a Total that's larger than 13?,"SELECT SUM(rank) FROM table_name_60 WHERE county = ""galway"" AND total > 13" Find the id and last name of the student that has the most behavior incidents?,"SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1" What was the name of the Event with a time of 2:19?,"SELECT event FROM table_name_8 WHERE time = ""2:19""" What team was the away team when they played at lake oval?,"SELECT away_team AS score FROM table_name_84 WHERE venue = ""lake oval""" Tell me the D 41 and R 51 of r 11,"SELECT d_41 FROM table_name_33 WHERE r_51 = ""r 11""" How much is the discount applied to the order with the highest unit price?,"SELECT `Discount Applied` FROM `Sales Orders` WHERE REPLACE(`Unit Price`, ',', '') = ( SELECT REPLACE(`Unit Price`, ',', '') FROM `Sales Orders` ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1 ) ORDER BY REPLACE(`Unit Price`, ',', '') DESC LIMIT 1" Find the total and average amount of settlements.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements" What was the score of the match played on hard with a person ranked 10?,"SELECT score FROM table_name_70 WHERE surface = ""hard"" AND rank = 10" What are the interfaces of those products?,"SELECT product,interface FROM product WHERE max_page_size = ""A4"" AND pages_per_minute_color < 5" How many games were played in 1907?,SELECT count ( * ) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 What are the market id of china?,"SELECT market_id FROM market where country = ""China""" What division did the team coached by the winner of the 1977 NBA Coach of the Year award play in in 1976?,SELECT DISTINCT T3.divID FROM awards_coaches AS T1 INNER JOIN coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN teams AS T3 ON T2.tmID = T3.tmID WHERE T1.year = 1977 AND T1.award = 'NBA Coach of the Year' AND T3.year = 1976 "On 11/3/2013, which stations are often empty? Indicate the names of the stations.",SELECT DISTINCT T1.name FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.bikes_available = 0 AND T2.time LIKE '2013/11/03%' What is the most expensive product price?,select max ( Product_Price ) from Products "Which store has the most staff? | Do you want to get the shop ID which has the most staff? | yes, please",SELECT Shop_ID from shop order by Num_of_staff desc limit 1 Who is the captain of the team that has a kit manufacturer of Fox Leisure?,"SELECT captain FROM table_name_30 WHERE kit_manufacturer = ""fox leisure""" Show me the name of tracks in the Rock genre.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock""" "From the cases where the subject are male, list the case number and the location and subject status.","SELECT T1.case_number, T1.location, T1.subject_statuses FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'M'" List the site of institution within the student count of 500 to 1000 that has the recent year of data release.,SELECT DISTINCT T1.site FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.student_count BETWEEN 500 AND 1000 AND T2.year = ( SELECT MAX(T2.year) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid ) What was the result for the cirtcuit where the LMPC winning team was #89 Intersport Racing?,"SELECT results FROM table_27758427_2 WHERE lmpc_winning_team = ""#89 Intersport Racing""" Find the number of airports whose name contain the word 'International'.,SELECT count(*) FROM airports WHERE name LIKE '%International%' Which Laps has a Year of 2007?,SELECT AVG(laps) FROM table_name_80 WHERE year = 2007 How many values of top 10 for 5th position?,"SELECT COUNT(top_10) FROM table_2597876_2 WHERE position = ""5th""" "Okay, could you just give me the account names listed under Meaghan first?",select account_name from Customers AS T1 JOIN Accounts AS T2 ON T2.customer_id = T1.customer_id WHERE customer_first_name = 'Meaghan' What was the date of the game at MCG?,"SELECT date FROM table_name_85 WHERE venue = ""mcg""" List the most common result of the musicals.,SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1 What was the highest pick number for the Hamilton tiger-cats?,"SELECT MAX(pick__number) FROM table_name_13 WHERE cfl_team = ""hamilton tiger-cats""" Which Team has a Year larger than 2010?,SELECT team FROM table_name_47 WHERE year > 2010 Show the citizenship shared by singers with birth year before 1945 and after 1955.,SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955 Which country has the highest value of Merchandise imports by the reporting economy (current US$)?,SELECT CountryName FROM Indicators WHERE IndicatorName = 'Merchandise imports by the reporting economy (current US$)' ORDER BY Value DESC LIMIT 1 Which Reason for termination has Appointed by of eisenhower category:articles with hcards?,"SELECT reason_for_termination FROM table_name_14 WHERE appointed_by = ""eisenhower category:articles with hcards""" Can you tell me the id of the product with most complaints?,SELECT product_id FROM Complaints GROUP BY product_id ORDER BY COUNT ( * ) DESC LIMIT 1 List all staff in the Shipping and Receiving department who are hired in 2009.,"SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN EmployeeDepartmentHistory AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID INNER JOIN Department AS T4 ON T3.DepartmentID = T4.DepartmentID WHERE STRFTIME('%Y', T2.HireDate) = '2009' AND T4.Name = 'Shipping and Receiving'" "What is the number of losses when there were less than 4 draws, and points were 9?",SELECT losses FROM table_name_36 WHERE draws < 4 AND points = 9 Who directed the episode with production code ca303?,"SELECT directed_by FROM table_25740548_4 WHERE production_code = ""CA303""" What is the number of seats in congress when the candidates per party is 6?,SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE candidates_per_party = 6 "Wonderful, can you remove that information and instead display every student id that has a dorm id of 160?",SELECT T1.stuid FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid = 160 How many inspections were done under the display of inspection report summary category?,SELECT COUNT(T2.inspection_id) FROM inspection_point AS T1 INNER JOIN violation AS T2 ON T1.point_id = T2.point_id WHERE T1.category = 'Display of Inspection Report Summary' Name the scores for michael buerk and russell howard,"SELECT scores FROM table_23575917_2 WHERE lees_team = ""Michael Buerk and Russell Howard""" What is the location of the institution nicknamed Lions? ,"SELECT location FROM table_2562113_1 WHERE nickname = ""Lions""" "For the planes which has the hightest total price, how much it exceeds the average?",SELECT MAX(quantityOrdered * priceEach) - AVG(priceEach) FROM orderdetails WHERE productCode IN ( SELECT productCode FROM products WHERE productLine = 'Planes' ) "Find the name, age, and job title of persons who are friends with Alice for the longest years.","SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')" "What is the Outcome of the match with a Score of 6–1, 6–1?","SELECT outcome FROM table_name_22 WHERE score = ""6–1, 6–1""" List the products that were ordered by Anne McFarland from the Western store.,SELECT DISTINCT T3.`Product Name` FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Anne McFarland' Can you please show me the maximum damage for all storms with maximum speed higher than 1000?,SELECT max ( damage_millions_USD ) FROM storm WHERE max_speed > 1000 What are the ids of students who both have friends and are liked?,SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes "Who is the opponent when the attendance is 57,331?","SELECT opponent FROM table_name_41 WHERE attendance = ""57,331""" What are the full name (first and last name) and salary for all employees who does not have any value for commission?,"SELECT first_name, last_name, salary FROM employees WHERE commission_pct = ""null""" Show the themes of parties and the names of the party hosts.,"SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" what is the average place when the artist is juliana pasha & luiz ejlli and the points is more than 119?,"SELECT AVG(place) FROM table_name_99 WHERE artist = ""juliana pasha & luiz ejlli"" AND points > 119" Name the parent unit for josef priller,"SELECT parent_unit FROM table_28342423_1 WHERE commanding_officer = ""Josef Priller""" What campuses are located in Chico?,"SELECT campus FROM campuses WHERE LOCATION = ""Chico""" "What is the title which has character named ""Froth""?",SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T4.CharName = 'Froth' Which Home team has a Venue of victoria park?,"SELECT home_team FROM table_name_27 WHERE venue = ""victoria park""" Return the id and full name of the customer with the most accounts.,"SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1" "What is the region 1 release that has july 20, 2009 as the region 2?","SELECT region_1_release FROM table_name_39 WHERE region_2_release = ""july 20, 2009""" "What is the id of the reviewer whose name includes the word ""Mike""?","SELECT rID FROM Reviewer WHERE name LIKE ""%Mike%""" "What are flight numbers of flights arriving at City ""Aberdeen""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = ""Aberdeen""" What is the average cost of root beers purchased for more than 2 dollars and sold in bottles?,SELECT AVG(T2.PurchasePrice) FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T1.ContainerType = 'Bottle' AND T2.PurchasePrice > 2 "Between 2006 and 2007, which year ID had the greater number in elite user?","SELECT year_id FROM Elite WHERE year_id IN (2006, 2007) GROUP BY year_id ORDER BY COUNT(user_id) DESC LIMIT 1" What is the # listed when the score is 70-69-69-70=278?,SELECT _number FROM table_28498999_5 WHERE score = 70 - 69 - 69 - 70 = 278 What record has a Score of 9–6?,"SELECT record FROM table_name_15 WHERE score = ""9–6""" "List the categories of active businesses in Glendale, AZ.",SELECT DISTINCT T3.category_name FROM Business_Categories AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T1.category_id = T3.category_id WHERE T2.active = 'true' AND T2.state = 'AZ' AND T2.city = 'Glendale' What is the language for translators ritah meltser and amatsyah porat?,"SELECT language FROM table_name_87 WHERE translator = ""ritah meltser and amatsyah porat""" List the name of tracks belongs to genre Rock or media type is MPEG audio file.,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = ""Rock"" OR T3.name = ""MPEG audio file"";" What is the average round of player Sammy Morris?,"SELECT AVG(round) FROM table_name_13 WHERE player = ""sammy morris""" Who are all of the candidates in the election featuring james r. domengeaux?,"SELECT candidates FROM table_1342256_18 WHERE incumbent = ""James R. Domengeaux""" can you show me a list of password?,SELECT password FROM students Return all detention summaries.,SELECT detention_summary FROM Detention What is the number of makers of care in France?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'; What home team has 10 as the tie no?,"SELECT home_team FROM table_name_14 WHERE tie_no = ""10""" Who was the successor for the Kentucky 2nd district?,"SELECT successor FROM table_224794_3 WHERE district = ""Kentucky 2nd""" What were the original teams for The Biggest Loser (Season 1)?,"SELECT original_teams FROM table_name_77 WHERE name = ""the biggest loser (season 1)""" What medal was won in the men's 5000 m event?,"SELECT medal FROM table_name_53 WHERE event = ""men's 5000 m""" What was the worldwide gross for the film directed by joe pytka?,"SELECT worldwide_gross FROM table_name_65 WHERE director = ""joe pytka""" What is Runner(s)-Up when Margin of Victory is 6 Strokes?,"SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = ""6 strokes""" "What building is in ljubljana, proposed in 2010, and has 15 floors?","SELECT name FROM table_name_21 WHERE location = ""ljubljana"" AND year_proposed = ""2010"" AND floors = ""15""" Show the names of employees with role name Editor.,"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Editor""" What is short-term capital gain rate with long-term gain on collectibles at 15%?,"SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = ""15%""" Find the wineries that have at least four wines.,SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4 "What was the result of the player from Maylands, Western Australia?","SELECT result FROM table_24501530_1 WHERE hometown = ""Maylands, Western Australia""" Segment B of aerospace fuel lines has what segment A?,"SELECT segment_a FROM table_name_5 WHERE segment_b = ""aerospace fuel lines""" "How many different instruments are used in the song ""Le Pop""?","SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = ""Le Pop""" What is the population of the East Kilbride urban sub-area?,"SELECT population FROM table_name_61 WHERE urban_sub_area = ""east kilbride""" What's the platform of Super Mario All-Stars?,"SELECT platform FROM table_name_89 WHERE title = ""super mario all-stars""" What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?,"SELECT 1995 FROM table_name_81 WHERE 1997 = ""lq"" AND 1989 = ""1r""" What was the away team that faced Carlton?,"SELECT away_team FROM table_name_6 WHERE home_team = ""carlton""" What was the date of the game with a loss of Bush (1–5)?,"SELECT date FROM table_name_18 WHERE loss = ""bush (1–5)""" "Please list the reviewers who have given the highest rating for a medium class, women's product.",SELECT T1.ReviewerName FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Class = 'M' AND T2.Style = 'W' AND T1.Rating = 5 And what was the resolution for this song name?,SELECT resolution from song where song_name = 'Tumi robe nirobe' List down the country names of countries that have a GNP lower than 1000 and have Dutch as their language.,SELECT T2.Name FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T2.GNP < 1000 AND T1.IsOfficial = 'T' AND T1.Language = 'Dutch' 2007 of 8–4 is involved in what 2002?,"SELECT 2002 FROM table_name_69 WHERE 2007 = ""8–4""" find the name of employee who was awarded the most times in the evaluation.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1 Return the names of friends of the high school student Kyle.,"SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = ""Kyle""" What percentage of users were using Safari during the period in which 30.82% were using Firefox?,"SELECT safari FROM table_name_96 WHERE firefox = ""30.82%""" "What's the Yellow fertility rate when Brazil is 0,43407?","SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = ""0,43407""" Tell me the country for san juan,"SELECT country FROM table_name_62 WHERE city = ""san juan""" "Did the tallest player got in the Hall of Fame? If yes, please list the year when he got in the Hall of Fame.",SELECT CASE WHEN T1.hofID IS NULL THEN 'NO' ELSE T2.year END FROM Master AS T1 LEFT JOIN HOF AS T2 ON T1.hofID = T2.hofID WHERE T1.height = ( SELECT MAX(height) FROM Master ) "What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50?","SELECT email FROM employees WHERE commission_pct = ""null"" AND salary BETWEEN 7000 AND 12000 AND department_id = 50" Who's captain of the team whose stadium has a capacity of 17800 people?,SELECT team_captain FROM table_23214833_1 WHERE capacity = 17800 When was there a record of 13–17–3?,"SELECT date FROM table_name_63 WHERE record = ""13–17–3""" When it's the 2nd round of the open cup what is the playoffs?,"SELECT playoffs FROM table_1939235_1 WHERE open_cup = ""2nd Round""" Which 92.5 holds the world record?,"SELECT world_record FROM table_name_40 WHERE press = ""925""" What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company'; What is the name of the employee whose role name is Human Resources?,"SELECT T1.Employee_Name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource""" "Among the trains running west, how many trains have three-wheeled, jagged roof cars?",SELECT SUM(CASE WHEN T2.direction = 'west' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.wheels = 3 AND T1.roof = 'jagged' "What is the name of the territory assigned to the sales person with business id ""277""?",SELECT T2.Name FROM SalesPerson AS T1 INNER JOIN SalesTerritory AS T2 ON T1.TerritoryID = T2.TerritoryID WHERE T1.BusinessEntityID = 277 Which country has the highest GDP?,SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1 How many women are there?,SELECT count ( * ) FROM people WHERE is_male = 'F' "What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg?","SELECT almaty_, _kazakhstan FROM table_name_17 WHERE sergey_filimonov___kaz__ = ""210kg""" Thanks! Can you show me the average age of the students living in each of these dorms?,"SELECT avg ( T1.age ) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" What date did Footscray play and Away game?,"SELECT date FROM table_name_24 WHERE away_team = ""footscray""" What is the effective date of the claim that has the largest amount of total settlement?,SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1 Find the classroom that the most students use.,SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1 "Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?",SELECT SUM(females___percentage_) FROM table_name_71 WHERE hiv_awareness__males_percentage_ > 92 AND females_rank > 2 AND males_rank < 3 When was the player with 51 caps from a Club/province of clermont born?,"SELECT date_of_birth__age_ FROM table_name_4 WHERE caps = 51 AND club_province = ""clermont""" How old is he and what position does he play?,"SELECT Age, Position FROM player WHERE Player = ""Timothy Beckham""" what is the name of people that are not perpetrators,SELECT Name FROM people WHERE People_ID NOT IN ( SELECT People_ID FROM perpetrator ) What are the different names of the genres?,SELECT DISTINCT name FROM genres; What is the name of tracks whose genre is Rock?,"SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = ""Rock""" What is the location of the 200m backstroke?,"SELECT location FROM table_name_75 WHERE event = ""200m backstroke""" What is the lowest overall draft pick number for terry daniels who was picked in round 10?,"SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = ""terry daniels""" Find the name of the candidates whose oppose percentage is the lowest for each sex.,"SELECT t1.name , t1.sex , min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex" How many tries were for the 7 lost?,"SELECT tries_for FROM table_name_87 WHERE lost = ""7""" What is the first name and last name employee helps the customer with first name Leonie?,"SELECT T2.FirstName, T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = ""Leonie""" How many faculty members are in building Barton?,"SELECT count ( * ) FROM FACULTY WHERE Building = ""Barton""" What type of game is Call of Destiny?,"SELECT gtype FROM Video_games WHERE gname = ""Call of Destiny""" "In 2010-11, what was the League name?","SELECT league FROM table_name_18 WHERE year = ""2010-11""" what day was the score 39-14,"SELECT date FROM table_name_58 WHERE record = ""39-14""" LIST THE NAME OF CATALOGS,SELECT catalog_name FROM catalogs Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?,"SELECT no5 FROM table_name_29 WHERE no1 = ""lena claudisabel"" AND no2 = ""lena sylvie""" What was the place when the score was 68-75-68=211?,SELECT place FROM table_name_28 WHERE score = 68 - 75 - 68 = 211 how many matches did the player that played 23 matches win,SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 23 "Find the description of the claim status ""Open"".","SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = ""Open""" Give the name of the city of the user who tweeted `One of our favorite stories is @FINRA_News's move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a`.,SELECT T2.City FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T1.text = 'One of our favorite stories is @FINRA_News''s move to the cloud with AWS Enterprise Support! https://amp.twimg.com/v/991837f1-4815-4edc-a88f-e68ded09a02a' what is the total number of average where evening gown is 8.988,"SELECT COUNT(average) FROM table_12094609_1 WHERE evening_gown = ""8.988""" When salt of this sea is the english title who is the director?,"SELECT director FROM table_26555737_1 WHERE english_title = ""Salt of this Sea""" What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?,"SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = ""James Cameron"")" How many colors are never used by any product?,SELECT count(*) FROM Ref_colors WHERE color_code NOT IN ( SELECT color_code FROM products ) Show the names of editors that are on the committee of journals with sales bigger than 3000.,SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 How many climbers are there?,SELECT count(*) FROM climber Find the name of the program that is broadcast most frequently.,SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY count(*) DESC LIMIT 1 What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?,"SELECT time_retired FROM table_name_80 WHERE grid < 9 AND laps = 21 AND rider = ""jeremy mcwilliams""" How many films did actor Daryl Wahlberg appear in?,SELECT COUNT(T1.film_id) FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id WHERE T2.first_name = 'DARYL' AND T2.last_name = 'WAHLBERG' How many events are there?,SELECT COUNT(*) FROM event "If the residence is Chagrin falls, who is the representative?","SELECT representative FROM table_26131768_4 WHERE residence = ""Chagrin Falls""" "Among the students who have been absent for four months, provide any five students' names and enlisted organizations.","SELECT T2.name, T2.organ FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T1.month = 4 LIMIT 5" What is 2010 that has 1r 2011?,"SELECT 2010 FROM table_name_3 WHERE 2011 = ""1r""" "What is the episode for the TV series named ""Sky Radio""?","SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";" What is the location of the party with the most hosts?,SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1 How many runners-up did the club with the last final lost in 1985 have?,"SELECT runners_up FROM table_name_39 WHERE last_final_lost = ""1985""" "What are the total scores of the body builders whose birthday contains the string ""January"" ?","SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE ""%January%"";" Which year were those branches opened?,SELECT open_year FROM branch WHERE open_year < 2010 "What is the TV Channel that shows the cartoon ""The Rise of the Blue Beetle!""? List the TV Channel's series name.","SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = ""The Rise of the Blue Beetle!"";" How much did Kenny Brack win?,"SELECT winnings FROM table_25146455_1 WHERE driver = ""Kenny Brack""" Show the theme for exhibitions with both records of an attendance below 100 and above 500.,SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500 "Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson?","SELECT AVG(attendance) FROM table_name_10 WHERE scorers = ""steven, johnston, walters, mccoist, i.ferguson""" What Team had the first round of 1:00?,"SELECT team FROM table_name_53 WHERE first_round = ""1:00""" Can you tell me the lowest React that has the Lane of 5?,SELECT MIN(react) FROM table_name_50 WHERE lane = 5 "What extra has world championships as the tournament, and 1st as the result?","SELECT extra FROM table_name_2 WHERE tournament = ""world championships"" AND result = ""1st""" Find the names of schools that have some players in the mid position but not in the goalie position.,SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' "Name all the release titles of the ""ep's"" under the alternative tag.",SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag LIKE 'alternative' AND T1.releaseType = 'ep' What is the Singles W-L for the players named Laurynas Grigelis?,"SELECT singles_w_l FROM table_10295819_1 WHERE player = ""Laurynas Grigelis""" What is the home team score when the away team is Collingwood?,"SELECT home_team AS score FROM table_name_36 WHERE away_team = ""collingwood""" What's the sum of A Score that also has a score lower than 7.3 and an E Score larger than 7.1?,SELECT SUM(a_score) FROM table_name_92 WHERE t_score < 7.3 AND e_score > 7.1 Listed with a continent of Africa and before 2009 this structure is called what?,"SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = ""africa""" What is the lowest duration of songs that have mp3 format and resolution below 800?,"SELECT min ( T1.duration ) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" AND T2.resolution < 800" What are the three largest numbers of games sold?,"SELECT T.game_platform_id, SUM(T.num_sales) * 100000 FROM region_sales AS T GROUP BY game_platform_id ORDER BY SUM(T.num_sales) * 100000 DESC LIMIT 3" On what date was elimination on final night?,"SELECT date FROM table_name_43 WHERE eliminated = ""final night""" What are the maximum and minimum week on top of all volumes?,"SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume" Which destination has least number of flights?,SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1 "What is the description of the claim status ""Open""?","SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = ""Open""" "What is the info for the year 2010, for the Australian Open tournament?","SELECT 2010 FROM table_name_33 WHERE tournament = ""australian open""" Name the position for numbers of 41,"SELECT position FROM table_name_37 WHERE no_s_ = ""41""" What were the notes during the distance of Men's Speed Skating?,"SELECT notes FROM table_name_57 WHERE distance = ""men's speed skating""" What date was Leo Mainoldi (24) the leading scorer?,"SELECT date FROM table_name_72 WHERE leading_scorer = ""leo mainoldi (24)""" What is the pick # for Dimelon Westfield?,"SELECT MIN(pick__number) FROM table_name_93 WHERE player = ""dimelon westfield""" Which two nations are separated from one another by the longest border? Please include the entire names of the nations in your answer.,"SELECT Country1, Country2 FROM borders ORDER BY Length DESC LIMIT 1" Can you show me the list in descending order of sales and profits again?,"SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion , Profits_in_Billion DESC" What was escape to river cottage released?,"SELECT released FROM table_name_64 WHERE dvd_name = ""escape to river cottage""" Show names and phones of customers who do not have address information.,"SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)" Show the booking status code and the corresponding number of bookings.,"SELECT booking_status_code , COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code" What campuses are located in Los Angeles county and opened after 1950?,"SELECT campus FROM campuses WHERE county = ""Los Angeles"" AND YEAR > 1950" How many proteins are associated with an institution in a building with at least 20 floors?,SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id JOIN building AS T3 ON T3.building_id = T1.building_id WHERE T3.floors >= 20 Who were the guests in the episode with production code 6021? ,SELECT guest FROM table_25691838_2 WHERE production_code = 6021 How many businesses are there in Phoenix city? Find the percentage of businesses in Phoenix city in the total city.,"SELECT SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS ""num"" , CAST(SUM(CASE WHEN T3.city LIKE 'Phoenix' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.city) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id" What is the Tournament with a 3r 2011 and A 2010?,"SELECT tournament FROM table_name_63 WHERE 2011 = ""3r"" AND 2010 = ""a""" How many students who are majoring in 600 are in each of those clubs?,"SELECT t1.clubname,count ( * ) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = ""600"" GROUP BY t1.clubname ORDER BY count ( * ) " How many games has the club with 29-24 goals for/against score played? ,"SELECT games_played FROM table_13713206_1 WHERE goals_for_against = ""29-24""" "What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100?","SELECT AVG(metropolitan_population__2006__millions) FROM table_name_38 WHERE metropolitan_area = ""lima"" AND gdp__ppp__us$_per_capita > 13 OFFSET 100" "What year was the venue in Barcelona, Spain?","SELECT MIN(year) FROM table_name_57 WHERE venue = ""barcelona, spain""" Find the number of rooms that do not have any reservation.,SELECT COUNT(*) FROM rooms WHERE NOT roomid IN (SELECT DISTINCT room FROM reservations) "What is the lowest year that has athens, greece as the venue?","SELECT MIN(year) FROM table_name_83 WHERE venue = ""athens, greece""" List the names of camera supervisors in the crew.,SELECT T1.person_name FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T2.job = 'Camera Supervisor' How did Eunic Morar pay?,"SELECT payment_method FROM customers where customer_name = ""Eunice Morar""" What year saw the greatest number of organizations created on the European continent?,"SELECT STRFTIME('%Y', T4.Established) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T2.Country = T3.Code INNER JOIN organization AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Europe' GROUP BY STRFTIME('%Y', T4.Established) ORDER BY COUNT(T4.Name) DESC LIMIT 1" "What are the different carriers for devices, listed in alphabetical order?",SELECT Carrier FROM device ORDER BY Carrier ASC What is the catalogue number for the song that is 3:17 and was released 9/21/71?,"SELECT catalogue FROM table_name_94 WHERE release_date = ""9/21/71"" AND time = ""3:17""" How many id movies have category id 11?,SELECT COUNT(film_id) FROM film_category WHERE category_id = 11 "What is Position, when Player is ""Kevin Durant category:articles with hCards""?","SELECT position FROM table_name_71 WHERE player = ""kevin durant category:articles with hcards""" Which rounds do Arciero Wines sponsor a March 85c chassis?,"SELECT rounds FROM table_name_7 WHERE sponsor_s_ = ""arciero wines"" AND chassis = ""march 85c""" What are their party affiliations?,SELECT T2.Party FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name Who were the Investing Dragons in the episode that first aired on 18 January 2005 with the entrepreneur Tracey Herrtage?,"SELECT investing_dragon_s_ FROM table_name_65 WHERE first_aired = ""18 january 2005"" AND entrepreneur_s_ = ""tracey herrtage""" Which object has the highest attribute classes?,SELECT OBJ_SAMPLE_ID FROM IMG_OBJ_ATT GROUP BY OBJ_SAMPLE_ID ORDER BY COUNT(OBJ_SAMPLE_ID) DESC LIMIT 1 "Ok, I will also want to know the billing countries of the named customers","SELECT T1.FirstName, T1.lastname, T2.billingcountry FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId" What was the earliest round with Neil Colzie and a pick smaller than 24?,"SELECT MIN(round) FROM table_name_26 WHERE player = ""neil colzie"" AND pick < 24" How many projects are there?,SELECT count ( project_id ) from Project_Staff Find the payment method that is used the most often in all the invoices. Give me its code.,SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1 State the name of employee that manages the order from Victuailles en stock?,"SELECT DISTINCT T1.FirstName, T1.LastName FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.CompanyName = 'Victuailles en stock'" On what date was Arthur Jones the away captain at Sydney Cricket Ground?,"SELECT date FROM table_name_33 WHERE away_captain = ""arthur jones"" AND venue = ""sydney cricket ground""" "What are the the full names and ids for all customers, and how many accounts does each have?","SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name , count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" How many home games are listed when the average attendance is 79475?,SELECT COUNT(home_games) FROM table_28884858_1 WHERE average_attendance = 79475 What is the Attendance number when the Opponent was purdue?,"SELECT attendance FROM table_name_15 WHERE opponent_number = ""purdue""" Find the name and salary of instructors who are advisors of the students from the Math department.,"SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'" What type has the characters 廣丙?,"SELECT type FROM table_name_25 WHERE characters = ""廣丙""" What percentage of all scenes are tragic scenes in Shakespeare's work in 1594?,"SELECT CAST(SUM(IIF(T2.GenreType = 'Tragedy', 1, 0)) AS REAL) * 100 / COUNT(T1.Scene) FROM chapters AS T1 INNER JOIN works AS T2 ON T1.work_id = T2.id WHERE T2.Date = '1594'" Who was the opponent at GCM – D.O.G. 4?,"SELECT opponent FROM table_name_54 WHERE event = ""gcm – d.o.g. 4""" What losses consist of the team of japan?,"SELECT losses FROM table_name_13 WHERE team = ""japan""" "when was the episode with production code ""2arg01"" originally aired?","SELECT original_air_date FROM table_27332038_1 WHERE production_code = ""2ARG01""" Name the number of class aaaaa for 1988-89,"SELECT COUNT(class_aAAAA) FROM table_14601528_2 WHERE school_year = ""1988-89""" "What is the lowest Draws, when Byes is less than 2?",SELECT MIN(draws) FROM table_name_6 WHERE byes < 2 "How many distinct kinds of camera lenses are used to take photos of mountain ranges in the country ""Ethiopia""?",SELECT count ( DISTINCT T2.camera_lens_id ) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia' Where can you rent the movie 'Wyoming Storm'? Identify the address of the rental store and the rental rate.,"SELECT T2.store_id, T1.address, T4.rental_rate FROM address AS T1 INNER JOIN store AS T2 ON T1.address_id = T2.address_id INNER JOIN inventory AS T3 ON T2.store_id = T3.store_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T4.title = 'WYOMING STORM'" What club does John Westin play for?,"SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = ""john westin""" What was the Score on March 1?,"SELECT score FROM table_name_18 WHERE date = ""march 1""" Give the repository Url of the one with most solutions.,SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId GROUP BY T2.RepoId ORDER BY COUNT(T2.RepoId) DESC LIMIT 1 can you show me artist's countries? | did you mean the country of the oldest artist or countries of all the artists? | countries of all the artists,SELECT distinct Country FROM artist What time was the acc team #17 wake forest?,"SELECT time FROM table_21330550_2 WHERE acc_team = ""#17 Wake Forest""" What is the fewest number of draws for teams with more than 0 byes?,SELECT MIN(draws) FROM table_name_75 WHERE byes > 0 What nickname has the meaning of God knows my journey?,"SELECT nickname FROM table_name_63 WHERE meaning = ""god knows my journey""" On what Date was Henry I Latin Commander of the Battle of Boruy?,"SELECT date FROM table_name_67 WHERE latin_commander = ""henry i"" AND battle = ""battle of boruy""" what about international passengers?,"SELECT sum ( International_Passengers ) FROM airport WHERE Airport_Name LIKE ""%Heathrow%""" How long is the class?,"SELECT Hours FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" For which tie was Scunthorpe United the away team?,"SELECT tie_no FROM table_name_5 WHERE away_team = ""scunthorpe united""" Calculate the percentage of suppliers in Germany.,"SELECT CAST(SUM(IIF(T2.n_name = 'GERMANY', 1, 0)) AS REAL) * 100 / COUNT(T1.s_suppkey) FROM supplier AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_acctbal < 0" Who had the fasted lap in motorsport arena oschersleben?,"SELECT fastest_lap FROM table_21321935_2 WHERE circuit = ""Motorsport Arena Oschersleben""" What is the total appearances when the total goals is 289?,SELECT MIN(total_appearances) FROM table_29701419_2 WHERE total_goals = 289 "For each Orange county campus, report the number of degrees granted after 2000.","SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = ""Orange"" AND T2.year >= 2000 GROUP BY T1.campus" Who is the current champion in the NECW Heavyweight Championship?,"SELECT current_champion_s_ FROM table_name_44 WHERE championship = ""necw heavyweight champion""" "Find the texts of assessment notes for teachers with last name ""Schuster"".","SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = ""Schuster""" What were the notes in 2011?,SELECT notes FROM table_name_89 WHERE year = 2011 "Which tournament had a score of 6–4, 4–6, 7–5?","SELECT tournament FROM table_name_70 WHERE score = ""6–4, 4–6, 7–5""" What is the total number of awards won by The simpson 20s: Season 20?,SELECT COUNT(award_id) FROM Award WHERE result = 'Winner'; How many captains have the kitmaker as n/a?,"SELECT COUNT(captain) FROM table_27631756_2 WHERE kitmaker = ""N/A""" "Among the top 5 owners with highest number of establishments, which owner has the highest number of high risk violations? Give the name of the owner.",SELECT T4.owner_name FROM violations AS T3 INNER JOIN businesses AS T4 ON T3.business_id = T4.business_id INNER JOIN ( SELECT T2.owner_name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id GROUP BY T2.owner_name ORDER BY COUNT(T1.business_id) DESC LIMIT 5 ) AS T5 ON T4.owner_name = T5.owner_name WHERE T3.risk_category = 'High Risk' GROUP BY T4.owner_name ORDER BY COUNT(T3.risk_category) DESC LIMIT 1 "What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159?","SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = ""spain"" AND rank = 19 AND debt_as__percentageof_value > 159" Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.,"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 = ""Dameon"" AND T2.staff_last_name = ""Frami"" UNION 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 = ""Jolie"" AND T2.staff_last_name = ""Weber""" What was the score when the time was 14:00?,"SELECT score FROM table_name_86 WHERE time = ""14:00""" what is the debut when the play er is radoslava topalova and the years played is less than 2?,"SELECT AVG(debut) FROM table_name_33 WHERE player = ""radoslava topalova"" AND years_played < 2" How many no votes from Alaska in 1998?,"SELECT no_vote FROM table_name_31 WHERE date = ""1998"" AND state = ""alaska""" What is the Away team when the FootyTAB winner was st. george?,"SELECT away_team FROM table_name_13 WHERE footytab_winner = ""st. george""" Name the jury of 10 points,SELECT professional_jury FROM table_14977252_2 WHERE points = 10 How many cinema do we have?,SELECT count(*) FROM cinema How many legislators have not been registered in Federal Election Commission data?,SELECT COUNT(*) FROM current WHERE fec_id IS NULL OR fec_id = '' "Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6?","SELECT MIN(place) FROM table_name_44 WHERE points > 1 AND machine = ""bmw"" AND time = ""1:18.47.6""" List all headquarters and the number of companies in each headquarter.,"SELECT headquarters , count(*) FROM company GROUP BY headquarters" "What year was the League the malaysian super league, and a Malaysia Cup of group stage?","SELECT year FROM table_name_73 WHERE league = ""malaysian super league"" AND malaysia_cup = ""group stage""" How many airports do we have?,SELECT count(*) FROM AIRPORTS What is the Venue with a Result that is lost?,"SELECT venue FROM table_name_40 WHERE result = ""lost""" "For the earlier table with sorted counts, can you give me the first name associted with each teacher_id?","SELECT T2.first_name, T1.teacher_id , count ( * ) FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id order by count ( * ) desc" Which Owner(s) has a Description of hunslet engine company 0-6-0st?,"SELECT owner_s_ FROM table_name_18 WHERE description = ""hunslet engine company 0-6-0st""" What was the name of the airplane from flight 99 ?,SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99 "What are the names of perpetrators whose country is not ""China""?","SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country != ""China"";" "How many Losses have South West DFL of coleraine, and an Against smaller than 891?","SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = ""coleraine"" AND against < 891" List the brand IDs of the beers whose star rating is more than 3.,SELECT BrandID FROM rootbeerreview WHERE StarRating > 3 How many students are there?,SELECT count(*) FROM Student Calculate the difference between the total sales in the East superstore and the total sales in the West superstore.,SELECT SUM(T1.Sales) - SUM(T2.Sales) AS difference FROM east_superstore AS T1 INNER JOIN west_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` Thank you very much! Could you add the Opening Hours to that list for each of the tourist attractions?,"SELECT T2.Name, t2.Tourist_Attraction_ID, t2.Opening_Hours FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = ""660 Shea Crescent"" OR T2.How_to_Get_There = ""walk""" How many of the cities are in a Bay Area?,SELECT COUNT(city) FROM geographic WHERE region = 'bay area' In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?,"SELECT county FROM table_name_68 WHERE listed = ""09/21/1984"" AND construction_completed = ""07/19/2000""" Which journalist has worked the 2nd most amount of years?,"SELECT journalist_ID FROM journalist where journalist_ID not in ( SELECT journalist_ID FROM journalist ORDER BY Years_working DESC LIMIT 1 ) ORDER BY Years_working DESC LIMIT 1" What was the preliminary average for the one who had a semifinal average of 8.966 (3)?,"SELECT preliminary_average FROM table_16323766_3 WHERE semifinal_average = ""8.966 (3)""" Show the ids of students whose advisors are professors.,"SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = ""Professor""" Which region has the second most clients?,"SELECT T2.division FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id GROUP BY T2.division ORDER BY COUNT(T2.division) DESC LIMIT 1, 1" What is the highest profits in billions of the company headquartered in the USA with a market value of 194.87 billions and less than 76.66 billions in sales?,"SELECT MAX(profits__billion_) AS $_ FROM table_name_87 WHERE headquarters = ""usa"" AND market_value__billion_$_ = 194.87 AND sales__billion_$_ < 76.66" What is the label with the most albums?,SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1 How many credits have been displayed from episode 1 until 10?,SELECT COUNT(T1.person_id) FROM Credit AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.credited = 'true' AND T2.episode BETWEEN 1 AND 10 Which student's age is older than 18 and is majoring in 600? List each student's first and last name.,"SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major = 600;" "Who was the team's opponent of October 25, 1970?","SELECT opponent FROM table_14966537_1 WHERE date = ""October 25, 1970""" What is the record for the 20000 m walk?,"SELECT record FROM table_name_12 WHERE event = ""20000 m walk""" Can you find the first and last names of all people who paid more than the rooms' base prices?,"SELECT T1.firstname , T1.lastname FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T1.Rate - T2.basePrice > 0" "What is Bandwidth Included, when Price is ""50 EUR""?","SELECT bandwidth_included FROM table_name_45 WHERE price = ""50 eur""" What are the numbers of the players currently playing for Ironi Nahariya?,"SELECT no FROM table_12962773_2 WHERE current_club = ""Ironi Nahariya""" What is the percentage of players who were born in Denmark and weight above 154 lbs?,SELECT CAST(COUNT(CASE WHEN T1.nation = 'Denmark' AND T2.weight_in_lbs > 154 THEN T1.ELITEID ELSE NULL END) AS REAL) * 100 / COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id Sum up the likes get by short reviews on businesses located in City Goodyear.,SELECT SUM(T2.likes) AS likes FROM Business AS T1 INNER JOIN Tips AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Goodyear' What are the driver's names?,"select forename,surname from drivers" "What is the muzzle energy with grains (g) bullet weight and a max pressure of 35,000 psi?","SELECT muzzle_energy FROM table_name_67 WHERE bullet_weight = ""grains (g)"" AND max_pressure = ""35,000 psi""" Could you also list their cities and state provinces?,"SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?,"SELECT plant_hardiness_zone FROM table_name_36 WHERE region = ""northern"" AND annual_precipitation = ""443mm (17.4in)""" How many points against did the club with points have?,"SELECT ""points"" AS _against FROM table_name_21 WHERE ""points"" = ""points""" Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu?,"SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = ""Dr. Kozaburo Nambu""" what is the highest attendance when the week is smaller than 1?,SELECT MAX(attendance) FROM table_name_30 WHERE week < 1 "What is Venue, when Date is ""January 6, 1995""?","SELECT venue FROM table_name_35 WHERE date = ""january 6, 1995""" Find the names of items whose rank is higher than 3 and whose average rating is above 5.,SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating) > 5 Who was the first couple in the episode having a fourth couple of Sammy and Nat?,"SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = ""Sammy and Nat""" What rank was Lassi Karonen?,"SELECT COUNT(rank) FROM table_name_9 WHERE athlete = ""lassi karonen""" Name the green for otaki,"SELECT green FROM table_20217811_1 WHERE electorate = ""Otaki""" Find the name and capacity of the dorm with least number of amenities.,"SELECT T1.dorm_name , T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1" "Where was the game held on August 20, 2004?","SELECT venue FROM table_name_78 WHERE date = ""august 20, 2004""" What is the moving from with a transfer and the nationality of Bra?,"SELECT moving_from FROM table_name_22 WHERE type = ""transfer"" AND nat = ""bra""" What are the order details of the products with price higher than 2000?,SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 "What is the color code and description of the product named ""chervil""?","SELECT t1.color_code , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" What is the direction of the route that stars at downtown transit center and has a terminus point at Pensacola Beach?,"SELECT direction FROM table_name_50 WHERE starting_point = ""downtown transit center"" AND terminus = ""pensacola beach""" "Among the films that the customer RUTH MARTINEZ has rented, how many of them are released in 2006?",SELECT COUNT(T1.customer_id) FROM customer AS T1 INNER JOIN rental AS T2 ON T1.customer_id = T2.customer_id INNER JOIN inventory AS T3 ON T2.inventory_id = T3.inventory_id INNER JOIN film AS T4 ON T3.film_id = T4.film_id WHERE T4.release_year = 2006 AND T1.first_name = 'RUTH' AND T1.last_name = 'MARTINEZ' Please list the titles of the movie lists user 32172230 created when he or she was eligible for trial.,SELECT T1.list_title FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id AND T1.user_id = T2.user_id WHERE T1.user_id = 32172230 AND T2.user_eligible_for_trial = 1 Which services type had both successful and failure event details?,SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail' What are the names of instructors who advise more than one student?,SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1 How many distinct transaction types are used in the transactions?,SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS What was the lowest attendance was the opponent was chelsea?,"SELECT MIN(attendance) FROM table_name_68 WHERE opponent = ""chelsea""" Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?,"SELECT date FROM table_name_55 WHERE margin_of_victory = ""playoff"" AND runner_s__up = ""yueh-chyn huang""" What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?,"SELECT MAX(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE genus_ & _species = ""Mus musculus""" List all the full names of patients with a condition described as cystitis.,"SELECT DISTINCT T1.first, T1.last FROM patients AS T1 INNER JOIN conditions AS T2 ON T1.patient = T2.patient WHERE T2.DESCRIPTION = 'Cystitis'" What is the most common interaction type between enzymes and medicine? And how many are there?,"SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1" How many original 3rd us tour cast were there while the original uk cast was alyssa dipalma?,"SELECT COUNT(original_3rd_us_tour_cast) FROM table_24353141_1 WHERE original_uk_cast = ""Alyssa DiPalma""" Show the number of high schoolers for each grade.,"SELECT grade , count(*) FROM Highschooler GROUP BY grade" List 10 movie titles that were produced in France.,SELECT T1.title FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'France' LIMIT 10 "How many draws occured with a record of 10 losses, and 6 wins?",SELECT COUNT(draws) FROM table_name_38 WHERE losses = 10 AND wins > 6 What are the ids of all students who have advisor number 1121?,SELECT StuID FROM Student WHERE Advisor = 1121 How many episodes have the season number of 1?,SELECT COUNT(series__number) FROM table_17152787_3 WHERE season__number = 1 Who was the winner for Peter Jackson Racing at Mallala Motor Sport Park?,"SELECT winner FROM table_name_9 WHERE team = ""peter jackson racing"" AND circuit = ""mallala motor sport park""" What was the Against when the Opposing Team was sheffield wednesday?,"SELECT against FROM table_name_24 WHERE opposing_team = ""sheffield wednesday""" what is minimum area where the largest city is bloemfontein?,"SELECT MIN(area__km_2__) FROM table_17416221_1 WHERE largest_city = ""Bloemfontein""" "In restaurants with a review of 2, how many restaurants have a street number below 500?",SELECT COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.review = 2 AND T1.street_num < 500 Show me the count of students for the cities where have more than one student,"SELECT city_code, count ( * ) FROM student group by city_code having count ( * ) >1" What is game2 tourist attraction name?,"SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game2""" "Among the employees who are Trainees, how many of them work in New York?",SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2 ON T1.locationID = T2.locationID INNER JOIN position AS T3 ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Trainee' AND T2.state = 'NY' What are the names and capitals of each country?,"SELECT Country_name , Capital FROM country" "Name of 900 north michigan, and a Year smaller than 1989 involves what lowest floors?","SELECT MIN(floors) FROM table_name_39 WHERE name = ""900 north michigan"" AND year < 1989" What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6?,"SELECT MAX(bronze) FROM table_name_35 WHERE rank > 6 AND nation = ""great britain (gbr)"" AND silver > 1" what are the names of the channels that broadcast in both morning and night?,SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Night' What game number had a record of 3-1?,"SELECT game FROM table_20849830_1 WHERE record = ""3-1""" Which legislators do not have instagram account?,"SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.instagram IS NULL" Please indicate store id in the state of California that have been applied 20% discount in store.,SELECT T FROM ( SELECT DISTINCT CASE WHEN T2.State = 'California' AND T1.`Sales Channel` = 'In-Store' AND T1.`Discount Applied` = 0.2 THEN T2.StoreID END AS T FROM `Sales Orders` T1 INNER JOIN `Store Locations` T2 ON T2.StoreID = T1._StoreID ) WHERE T IS NOT NULL "Which Round has a Position of qb, and an Overall larger than 6?","SELECT MAX(round) FROM table_name_17 WHERE position = ""qb"" AND overall > 6" What is the name of the fastest roller coaster in Austria?,"SELECT T2.name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID where T1.Name = ""Austria"" order by T2.speed desc limit 1" WHich Open Cup has a Division larger than 4?,SELECT open_cup FROM table_name_30 WHERE division > 4 What are the names of the movies that was reviewed by brittany harris?,SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' What is the total of overall values with a safety position in a round greater than 1?,"SELECT COUNT(overall) FROM table_name_26 WHERE position = ""safety"" AND round > 1" "How much Avg/G has a Name of robert marve, and a Gain smaller than 236?","SELECT SUM(avg_g) FROM table_name_32 WHERE name = ""robert marve"" AND gain < 236" Name the position for billy price,"SELECT position FROM table_19730892_1 WHERE name = ""Billy Price""" Which nation has more than 6 Silver medals and fewer than 8 Gold medals?,SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8 Which customer is the most in debt?,SELECT c_name FROM customer WHERE c_acctbal = ( SELECT MIN(c_acctbal) FROM customer ) "How much was the prize money for rwe-sporthalle, mülheim ?","SELECT prize_fund FROM table_18828487_1 WHERE venue = ""RWE-Sporthalle, Mülheim""" Which u id has the least rank on the list?,SELECT u_id FROM review ORDER BY rank LIMIT 1 "Very nice! Finally, could you update this list to show the average access count for these two documents?",SELECT avg ( access_count ) FROM documents where document_structure_code = ( select min ( document_structure_code ) from documents ) group by document_name Can you list the name of each camera lens and the number of photos taken by it?,"SELECT T1.name , count ( * ) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id" "What is the premier league number when the position is forward, and the total is more than 22?","SELECT COUNT(premier_league) FROM table_name_16 WHERE position = ""forward"" AND total > 22" Name the candidate for south carolina 1?,"SELECT candidates FROM table_1342359_39 WHERE district = ""South Carolina 1""" What was the lowest Crowd total from a game in which Essendon was the Away team?,"SELECT MIN(crowd) FROM table_name_35 WHERE away_team = ""essendon""" Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.,"SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There" Tell me the school with a height of 6-9,"SELECT school FROM table_name_82 WHERE height = ""6-9""" find the names of all patients who have an undergoing treatment and are staying in room 111,SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111 How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?,SELECT COUNT(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.country = 'Ethiopia' Which Grid has a Rider of loic napoleone?,"SELECT AVG(grid) FROM table_name_14 WHERE rider = ""loic napoleone""" Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.,"SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = ""Christop""" Which home team plays at the Western Oval?,"SELECT home_team FROM table_name_50 WHERE venue = ""western oval""" For which colleges?,"SELECT count ( * ) , cName FROM tryout GROUP BY cName" What team drafted steve scifres?,"SELECT nfl_team FROM table_13758243_1 WHERE player = ""Steve Scifres""" What is the birth date of the duchess who married on 1 May 1844?,"SELECT birth FROM table_name_16 WHERE marriage = ""1 may 1844""" Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?,"SELECT production FROM table_name_67 WHERE result = ""nominated"" AND year = 2009 AND award_ceremony = ""helpmann awards""" When was the premiere on the TVB Jade Channel?,"SELECT premiere FROM table_name_86 WHERE channel = ""tvb jade""" What pick had a wide receiver named johnny holloway?,"SELECT pick FROM table_name_66 WHERE position = ""wide receiver"" AND name = ""johnny holloway""" "How many games have an Order of 1006, and Goals larger than 192?",SELECT SUM(games) FROM table_name_94 WHERE order = 1006 AND goals > 192 How many crimes were handled by Brendan Reilly on 7th October 2018?,SELECT SUM(CASE WHEN T2.alderman_last_name = 'Reilly' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.alderman_name_suffix IS NULL AND T2.alderman_first_name = 'Brendan' AND date LIKE '10/7/2018%' What are the names of the playlists? Available is defined as able to be used or obtained; at someone's disposal,SELECT name from playlists How many students participated in tryouts for each college by descennding count?,"SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC" What is the name of each teacher and what course they teach?,"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID" What was Derek Graham's time?,"SELECT time FROM table_name_95 WHERE name = ""derek graham""" How much more votes for episode 1 than for episode 5?,SELECT SUM(CASE WHEN T1.episode = 1 THEN T2.votes ELSE 0 END) - SUM(CASE WHEN T1.episode = 5 THEN T2.votes ELSE 0 END) AS diff FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id; How many times has Ma Long won the men's singles?,"SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = ""Ma Long""" What college is getting a player that attends Wichita Heights High School?,"SELECT college FROM table_name_32 WHERE school = ""wichita heights high school""" "Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?","SELECT thumb_stick FROM table_name_37 WHERE basic_shape = ""curved"" AND backlit = ""yes"" AND supplier = ""genius""" What is the name of the student who has the highest total credits in the History department.,SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1 What is the most common nationality?,SELECT Nationality FROM member group by Nationality order by count ( * ) desc limit 1 How many results are there when the game was at the Atlanta-Fulton county stadium? ,"SELECT COUNT(result) FROM table_17848578_1 WHERE game_site = ""Atlanta-Fulton County Stadium""" Give the name of the highest paid instructor.,SELECT name FROM instructor ORDER BY salary DESC LIMIT 1 What are the names of these mountains?,SELECT name FROM mountain WHERE Height > 5000 "For the product No. S18_3482 in the Order No.10108, how much discount did the customer have?",SELECT (t1.MSRP - t2.priceEach) / t1.MSRP FROM products AS t1 INNER JOIN orderdetails AS t2 ON t1.productCode = t2.productCode WHERE t1.productCode = 'S18_3482' AND t2.orderNumber = '10108' How many different combinations of scores by individual judges were given to the contestant competing against Mukul Dev?,"SELECT COUNT(scores_by_each_individual_judge) FROM table_18278508_6 WHERE co_contestant__yaar_vs_pyaar_ = ""Mukul Dev""" what district is Brooks Hays in,"SELECT district FROM table_1342013_4 WHERE incumbent = ""Brooks Hays""" What are the different parties of representative? Show the party name and the number of representatives in each party.,"SELECT Party, COUNT(*) FROM representative GROUP BY Party" What are the first name and gender of the students who have allergy to milk but can put up with cats?,"SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" Show the name of aircraft which fewest people have its certificate.,SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count(*) LIMIT 1 Which song released on heavenly (hvn152)?,"SELECT song FROM table_name_86 WHERE release_info = ""heavenly (hvn152)""" "Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004?","SELECT SUM(term_expiration) FROM table_name_22 WHERE appointing_governor = ""george pataki, republican"" AND appointed > 2004" Which visitor had a record of 7–5–3?,"SELECT visitor FROM table_name_49 WHERE record = ""7–5–3""" What was the attendance when the result was a bye?,"SELECT attendance FROM table_name_79 WHERE result = ""bye""" "Which engineer has visited the most times? Show the engineer id, first name and last name.","SELECT T1.engineer_id , T1.first_name , T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY count(*) DESC LIMIT 1" What player went to montreal college?,"SELECT player FROM table_20170644_5 WHERE college = ""Montreal""" What was the hottest temperature on the day of trip ID 4080?,"SELECT MAX(T2.max_temperature_f) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T1.id = 4080" Name the Region with a Mountain Peak of dillingham high point?,"SELECT region FROM table_name_95 WHERE mountain_peak = ""dillingham high point""" What are the daily hire costs for the products with substring 'Book' in its name?,SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%' When did the staff member with first name as Janessa and last name as Sawayn join the company?,"SELECT date_joined_staff FROM Staff WHERE first_name = ""Janessa"" AND last_name = ""Sawayn"";" What were the themes of each of those competitions?,"SELECT T1.Official_Name, T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT ( * ) = 1" Can you please also provide the manufacturer on these products?,"SELECT name, price, manufacturer FROM products WHERE price > = 180 order by price asc" What public team was founded prior to 1883?,"SELECT team FROM table_name_45 WHERE founded < 1883 AND type = ""public""" What is the name and address of the department with the most students?,"SELECT T2.dept_name , T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1" "What is Score, when Tournament is ""Tampere , Finland""?","SELECT score FROM table_name_24 WHERE tournament = ""tampere , finland""" What displacement has the code yd22ddt?,"SELECT displacement FROM table_name_22 WHERE code = ""yd22ddt""" List the distinct hometowns that are not associated with any gymnast.,SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID List document type codes and the number of documents in each code.,"SELECT document_type_code, COUNT(*) FROM Documents GROUP BY document_type_code" What was the 6-4 score's maximum attendance?,"SELECT MAX(attendance) FROM table_27537518_4 WHERE score = ""6-4""" What district was a republican first elected in 2000?,"SELECT district FROM table_name_98 WHERE first_elected = 2000 AND party = ""republican""" "Among the role playing game genre, how many are targeted to teens and what is their average sentiment polarity score?","SELECT COUNT(T1.App), AVG(T2.Sentiment_Polarity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.""Content Rating"" = 'Teen' AND T1.Genres = 'Role Playing'" What is the average Total with a Gold that is larger than 4?,SELECT AVG(total) FROM table_name_77 WHERE gold > 4 Who was the visiting team that played on September 15?,"SELECT visiting_team FROM table_name_41 WHERE date = ""september 15""" How many runs were there when the high score was 55 and there were more than 12 innings?,SELECT SUM(runs) FROM table_name_34 WHERE high_score = 55 AND innings > 12 How many times does Alice show up in the friend column?,SELECT count ( * ) FROM PersonFriend where friend = 'Alice' List the status for the operator Toronto transit commission.,"SELECT status FROM table_22481967_1 WHERE operator = ""Toronto Transit Commission""" What is the average first elected year that has a district of 11 and a committee of environmental matters?,"SELECT AVG(first_elected) FROM table_name_18 WHERE district = ""11"" AND committee = ""environmental matters""" how many courses did the student with id 121 register for?,SELECT count ( course_id ) FROM Student_Course_Registrations WHERE student_id = 121 "What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?","SELECT SUM(year) FROM table_name_68 WHERE position = ""6th"" AND competition = ""commonwealth games""" List the East Asia & Pacific countries which are under the High income: nonOECD group. Please include their alpha code.,"SELECT CountryCode, Alpha2Code FROM Country WHERE Region = 'East Asia & Pacific' AND IncomeGroup = 'High income: nonOECD'" What player is from the Denver Broncos?,"SELECT player FROM table_name_43 WHERE team = ""denver broncos""" Which company has the highest amount of assets?,SELECT name FROM Companies ORDER BY Assets_billion DESC LIMIT 1 How many different captain ranks are there?,SELECT count(DISTINCT rank) FROM captain What horse has the number 25?,SELECT name FROM table_20095300_1 WHERE number = 25 Where did Zimbabwe play?,"SELECT venue FROM table_name_63 WHERE opponent = ""zimbabwe""" How many people are older than every engineer?,SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer') What are the dates of transactions with at least 100 share count or amount bigger than 100?,SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100 Find the name of the customers who use the most frequently used payment method.,SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY count(*) DESC LIMIT 1) What percentage of people named Mary who wants Receive Email promotions of AdventureWorks and selected partners are store contacts?,SELECT CAST(SUM(CASE WHEN EmailPromotion = 2 THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN PersonType = 'SC' THEN 1 ELSE 0 END) FROM Person WHERE FirstName = 'Mary' What are the names of wines with scores higher than 90?,SELECT Name FROM WINE WHERE score > 90 "What is the percentage of people who gave the ""True North"" episode a 1-star rating?",SELECT CAST(SUM(CASE WHEN T2.stars = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'True North' AND T1.episode_id = 'tt0629477' How many tries against were there when there was 961 points against?,"SELECT tries_against FROM table_name_29 WHERE points_against = ""961""" "Find the first names of teachers whose email address contains the word ""man"".",SELECT first_name FROM Teachers WHERE email_address LIKE '%man%' What year was the 146 total?,SELECT year_s__won FROM table_name_58 WHERE total = 146 Which of those courses has the most number of credits?,SELECT * FROM course WHERE course_id NOT IN ( SELECT course_id FROM prereq ) order by credits desc limit 1 Order that by amenity name please?,SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name What is the total number of cuts made of tournaments with 2 Events?,SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 2 Who is the rider when the grid number is 3?,SELECT rider FROM table_name_28 WHERE grid = 3 Which song was picked that was originally performed by Marisa Monte?,"SELECT song_choice FROM table_27616663_1 WHERE original_artist = ""Marisa Monte""" Find the id and address of the shops whose score is below the average score.,"SELECT shop_id , address FROM shop WHERE score < (SELECT avg(score) FROM shop)" How many silver medals had a rank of 3 with bronze larger than 0?,SELECT COUNT(silver) FROM table_name_90 WHERE rank = 3 AND bronze > 0 How tall is the contestant from Aruba?,"SELECT height__ft_ FROM table_20669355_2 WHERE country = ""Aruba""" What were the scores when Jamie and Johns guest was Phillips Idowu?,"SELECT scores FROM table_29141354_2 WHERE jamie_and_johns_guest = ""Phillips Idowu""" What event did Sjerstin Vermeulen receive a 66.452 result?,"SELECT event FROM table_name_57 WHERE athlete = ""sjerstin vermeulen"" AND result = ""66.452""" What was the location attendance when High points was by Pierce (22)?,"SELECT location_attendance FROM table_11959669_4 WHERE high_points = ""Pierce (22)""" What are department ids for departments with managers managing more than 3 employees?,"SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" What types of domestic crimes have occurred the most in the North Lawndale community?,SELECT T2.domestic FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'North Lawndale' AND T2.domestic = 'TRUE' GROUP BY T2.domestic ORDER BY COUNT(T2.domestic) DESC LIMIT 1 Please show me the names of employees that work for companies with sales bigger than 200,SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200 What score did Australia get?,"SELECT score FROM table_name_85 WHERE country = ""australia""" details about paul hamm | Can you be more specific for what details do you need for Paul Hamm? | i want paul hamm's age,"SELECT age FROM people WHERE name = ""Paul Hamm""" What year did player payne stewart win?,"SELECT year_s__won FROM table_name_84 WHERE player = ""payne stewart""" What is the reviewer id of Daniel Lewis?,"SELECT rID FROM Reviewer WHERE name = ""Daniel Lewis""" What's the score on january 5 with a hasek decision?,"SELECT score FROM table_name_28 WHERE decision = ""hasek"" AND date = ""january 5""" What were the fewest amount of guns possessed by a frigate that served in 1815?,"SELECT MIN(guns) FROM table_name_32 WHERE class = ""frigate"" AND year = ""1815""" what is transactions type code? | Did you want all of the transactions type code? | yes,select distinct transaction_type_code from Transactions Please provide full name of any two countries using special trade system.,SELECT LongName FROM Country WHERE SystemOfTrade = 'Special trade system' LIMIT 2 "What is the lowest week that has September 19, 1965 as the date, with an attendance less than 46,941?","SELECT MIN(week) FROM table_name_70 WHERE date = ""september 19, 1965"" AND attendance < 46 OFFSET 941" How many students have been absent above 2 months?,SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 2 How much is the salary of the employee who has the highest number of inspections done of all time?,"SELECT T1.salary FROM employee AS T1 INNER JOIN ( SELECT employee_id, COUNT(inspection_id) FROM inspection GROUP BY employee_id ORDER BY COUNT(inspection_id) DESC LIMIT 1 ) AS T2 ON T1.employee_id = T2.employee_id" Find the production code and channel of the most recently aired cartoon .,"select production_code , channel from cartoon order by original_air_date desc limit 1" How many copies were sold where the position is lager than 1 in 1988?,SELECT copies_sold FROM table_name_85 WHERE oricon_position > 1 AND year = 1988 Calculate the total number of male tweet IDs.,SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID WHERE T2.Gender = 'Male' the zip code 94107 what is the humidity?,SELECT ( mean_humidity ) from weather where zip_code = 94107 "Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?","SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = ""hadise açıkgöz, yves jongen"" AND length = ""3:08""" "What are the names of perpetrators in country ""China"" or ""Japan""?","SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = ""China"" OR T2.Country = ""Japan""" How many different items were reviewed by some users?,SELECT count(DISTINCT i_id) FROM review What project has the longest time? List the name.,SELECT name FROM projects ORDER BY hours DESC LIMIT 1 Can you also give me all the delegate's name from Liberal party in Economic Matters committee.,"SELECT T1.delegate FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = ""Liberal"" and T1.committee = ""Economic Matters""" Was Magoffin a starting player?,"SELECT starter FROM table_25711913_8 WHERE player = ""Magoffin""" Which round is a lower score than 21.5?,SELECT round FROM table_name_46 WHERE score < 21.5 what are the actual delivery dates of orders with quantity 1?,SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 Which Doctor Who episode has a Episode # of 11?,"SELECT doctor_who_episode FROM table_name_78 WHERE episode__number = ""11""" In how many counties di McCain win 41.62% of the vote?,"SELECT COUNT(county) FROM table_20524090_1 WHERE mccain_percentage = ""41.62%""" What are the winnings for position 7?,SELECT MAX(winnings__) AS $_ FROM table_23239946_3 WHERE position = 7 What are the names of reviewers who had rated 3 star and 4 star?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4 List all of the two-star reviews and their categories.,SELECT T1.category FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.rating = 2 Which team picked a player(s) from South Carolina?,"SELECT cfl_team FROM table_name_73 WHERE college = ""south carolina""" On which surface did Mathieu play against Antonio Veić?,"SELECT surface FROM table_name_84 WHERE opponent_in_the_final = ""antonio veić""" How many bronzes are there for the total nation with 112 silver and a total of 72?,"SELECT AVG(bronze) FROM table_name_39 WHERE ""total"" > 72 AND nation = ""total"" AND silver < 112" Which batting team had 624 runs?,"SELECT batting_team FROM table_name_84 WHERE runs = ""624""" What are the first and last names of the customers with the 10 cheapest invoices?,"SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;" What is the average price before discount of the top 10 orders with the highest total price?,SELECT SUM(T2.l_extendedprice) / 10 FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T1.o_totalprice DESC LIMIT 10 "What are the coordinates of the school with the project ""Wiping Away Bad Grades""?","SELECT T1.school_longitude, T1.school_latitude FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'Wiping Away Bad Grades'" "Who was the home team on September 20, 1998 at Spartan Stadium?","SELECT home_team FROM table_name_39 WHERE venue = ""spartan stadium"" AND date = ""september 20, 1998""" When did the episode 1.13 air for the first time?,"SELECT date_aired FROM table_28283535_4 WHERE episode = ""1.13""" How many customers are from the place with the highest average income per month?,SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID ORDER BY T2.INCOME_K DESC LIMIT 1 How many policies are listed total?,SELECT count ( Policy_ID ) FROM Customers_Policies "what is the title where the airdate is december 5, 1964?","SELECT title FROM table_25800134_9 WHERE airdate = ""December 5, 1964""" Who is the opponent with a 0-1 record?,"SELECT opponent FROM table_name_81 WHERE record = ""0-1""" which countries' tv channels are not playing any cartoon written by Todd Casey?,SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' Provide the last name of the youngest student.,SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student) How many bonus points are there when points for is 385?,"SELECT bonus_points FROM table_17510803_2 WHERE points_for = ""385""" Find the id and star rating of each hotel and sort them in increasing order of price.,"SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC" What are their full names?,"SELECT first_name, last_name FROM employees WHERE first_name NOT LIKE '%M%'" Show the ids and names of festivals that have at least two nominations for artworks.,"SELECT T1.Festival_ID , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2" Find the names of the artists who are from UK and have produced English songs.,"SELECT artist_name FROM artist WHERE country = ""UK"" INTERSECT SELECT artist_name FROM song WHERE languages = ""english""" Which tie number has Bolton Wanderers as away?,"SELECT tie_no FROM table_name_59 WHERE away_team = ""bolton wanderers""" Who visited on march 26?,"SELECT visitor FROM table_name_6 WHERE date = ""march 26""" Find the founded year of the newest non public school.,SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1 "Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc?","SELECT team FROM table_name_12 WHERE points > 9 AND year > 1971 AND class = ""250cc""" "Find the name, population and expected life length of asian country with the largest area?","SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = ""Asia"" ORDER BY SurfaceArea DESC LIMIT 1" "Can you tell me the extension for the professor in office KLR229D, please?","SELECT prof_extension from professor where prof_high_degree = ""Ph.D."" and dept_code = ""ACCT"" and prof_office = ""KLR 229D""" Please show the most common publication date.,SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1 Name the driver for 200 laps 1997,"SELECT driver FROM table_2150776_1 WHERE laps = ""200"" AND year = ""1997""" which is the minimun amount of silver medals?,SELECT MIN(silver) FROM table_22355_35 What is the least top division titles?,SELECT MIN(top_division_titles) FROM table_11250_4 "Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger then 6?","SELECT MIN(pts_game) FROM table_name_59 WHERE name = ""philippa tuttiett"" AND points > 6" please tell me Clara phone number,"SELECT phone_number FROM customers where first_name = ""Clara""" List the names and buildings of all departments sorted by the budget from large to small.,"SELECT dept_name , building FROM department ORDER BY budget DESC" Name the number of locations for uk32,"SELECT COUNT(location_s_) FROM table_19897294_8 WHERE no_overall = ""UK32""" Since which year has CProxy been compatible?,"SELECT T2.compatible_since_year FROM Web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.accelerator_id WHERE T1.name = ""CProxy""" Find the name of the customer who made an order most recently.,SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id ORDER BY t2.order_date DESC LIMIT 1 And the name with the smallest population?,SELECT County_name FROM county ORDER BY Population ASC LIMIT 1 What was Spring Creek School's area when the decile was 4?,"SELECT area FROM table_name_67 WHERE decile = 4 AND name = ""spring creek school""" Which level has marvin gaye as artist 1 and david bowie as artist 2?,"SELECT level FROM table_23649244_1 WHERE artist_1 = ""Marvin Gaye"" AND artist_2 = ""David Bowie""" What was the opponent at the League Play Offs at home?,"SELECT opponents FROM table_name_8 WHERE venue = ""home"" AND competition = ""league play offs""" what would be final four mvp maximum when first team is 1,SELECT MAX(final_four_mvp) FROM table_26130295_3 WHERE first_team = 1 How many floors did the tallest building in Aston have?,"SELECT floors FROM table_name_43 WHERE location = ""aston""" "Ok, the class will be in Room 224. Do you know who the instructor will be?","SELECT Instructor FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = ""INTRODUCTION TO COMPUTER SCIENCE""" What is the ratio number of territories in Northern region and number territories in Western region?,SELECT CAST(( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Northern' ) AS REAL) * 100 / ( SELECT COUNT(T1.TerritoryID) FROM Territories AS T1 INNER JOIN Region AS T2 ON T1.RegionID = T2.RegionID WHERE T2.RegionDescription = 'Westerns' ) AS Calu " how many end of term with age at inauguration being 64-066 64years, 66days","SELECT COUNT(end_of_term) FROM table_12134383_1 WHERE age_at_inauguration = ""64-066 64years, 66days""" Which of these claims is most recently created?,"SELECT t1.claim_header_id FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.document_type_code = ""Document"" ORDER BY created_date LIMIT 1" What was the attendance on October 6?,"SELECT attendance FROM table_name_78 WHERE date = ""october 6""" "who wrote with original air date being september23,1995","SELECT written_by FROM table_14637853_3 WHERE original_air_date = ""September23,1995""" Which airport has an IATA of AMS?,"SELECT airport FROM table_name_39 WHERE iata = ""ams""" What is the listed crowd at windy hill?,"SELECT crowd FROM table_name_4 WHERE venue = ""windy hill""" How many violent crimes occurred the year that the index was 191037? ,SELECT violent FROM table_25271777_1 WHERE index = 191037 Name all salaried employee who are hired in 2007 and later.,"SELECT T1.FirstName, T1.LastName FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T2.HireDate) >= '2007' AND T2.SalariedFlag = 1" What town is Muscle Shoals High School located in?,"SELECT hometown FROM table_11677691_10 WHERE school = ""Muscle Shoals High school""" Find the name and account balance of the customer whose name includes the letter ‘a’.,"SELECT cust_name , acc_bal FROM customer WHERE cust_name LIKE '%a%'" What is the total number of losses of the player that has drawn 1 and played smaller than 12?,SELECT COUNT(lost) FROM table_name_73 WHERE drawn = 1 AND played < 12 Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing?,"SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = ""No. 20 Oryx Dyson Racing""" What is the type of store located in the city with the highest amount of water area?,SELECT CASE WHEN MAX(`Water Area`) THEN Type END FROM `Store Locations` "List the name of artists who have released albums and mixtape from 1980 to 1985 in ""dance"" genre.",SELECT COUNT(T1.artist) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'dance' AND T1.groupYear BETWEEN 1980 AND 1985 AND T1.releaseType LIKE 'album' OR T1.releaseType LIKE 'mixtape' What is the para with a 0.1% sipaliwini?,"SELECT para FROM table_name_70 WHERE sipaliwini = ""0.1%""" How many wins of average has cuts made less than 0?,SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0 Name the country vijay singh is from,"SELECT country FROM table_name_16 WHERE player = ""vijay singh""" What is the most common type of weapon that causes death?,SELECT subject_weapon FROM incidents WHERE subject_statuses = 'Deceased' GROUP BY subject_weapon ORDER BY COUNT(case_number) DESC LIMIT 1 What was the record for May 26?,"SELECT record FROM table_name_64 WHERE date = ""may 26""" What are the ids of all reviewers who did not give 4 stars?,SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 "Among the listed winery, what is the street number of the winery named ""Tulocay Winery""?",SELECT T1.street_num FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.label = 'Tulocay winery' AND T2.food_type = 'winery' Find the type and weight of the youngest pet.,"SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1" How many reporters for the year 1993?,SELECT COUNT(reporters) FROM table_22514845_3 WHERE year = 1993 What are the weights of entrepreneurs in descending order of money requested?,SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC "When Naomi Owen won the Womens Singles and Ricardo Walther won the Mens Singles, who won the mixed veteran?","SELECT mixed_veteran FROM table_28211674_3 WHERE womens_singles = ""Naomi Owen"" AND mens_singles = ""Ricardo Walther""" "What is the highest attendance for the game after week 1 on November 12, 1961?","SELECT MAX(attendance) FROM table_name_27 WHERE week > 1 AND date = ""november 12, 1961""" What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?,"SELECT COUNT(laps) FROM table_name_45 WHERE rider = ""massimo roccoli"" AND grid < 4" How many u.s. viewers (million) have a series # 83?,SELECT us_viewers__millions_ FROM table_22570439_1 WHERE series__number = 83 Find the last name of female (Sex as F) students in the descending order of age.,"SELECT LName FROM STUDENT WHERE Sex = ""F"" ORDER BY Age DESC" What was the Original Canadian air-date for the episode directed by mark rydell?,"SELECT original_canadian_air_date FROM table_name_25 WHERE director = ""mark rydell""" what is the location of California State University-Bakersfield,"SELECT location FROM campuses where campus = ""California State University-Bakersfield""" Which Cover Model was featured on 8-03?,"SELECT cover_model FROM table_name_8 WHERE date = ""8-03""" Show all the buildings along with the number of faculty members the buildings have.,"SELECT building , count(*) FROM Faculty GROUP BY building" How many gold medals does Henk Jan Zwolle have?,SELECT COUNT(T1.id) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T1.full_name = 'Henk Jan Zwolle' AND T4.medal_name = 'Gold' "Great! Can you tell me how many instances of role code ""researcher"" there are?",SELECT count ( * ) FROM Project_Staff where role_code = 'researcher' "What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?",SELECT AVG(goals_against) FROM table_name_68 WHERE goals_for > 35 AND goal_difference = 20 What is the away team score of Melbourne?,"SELECT away_team AS score FROM table_name_54 WHERE away_team = ""melbourne""" What are the terminals for line 2?,"SELECT terminals FROM table_1603807_2 WHERE line = ""line 2""" Name the Report of tourist trophy?,"SELECT report FROM table_name_77 WHERE name = ""tourist trophy""" "Which Affected area codes have an Effective date of august 30, 2014?","SELECT affected_area_codes FROM table_name_95 WHERE effective_date = ""august 30, 2014""" How many current legislators chose Republican as their political party?,SELECT COUNT(*) FROM `current-terms` WHERE party = 'Republican' What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?,"SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = ""23' 18.82 97.102mph""" Name the most races,SELECT MAX(races) FROM table_21457754_2 Show the names of members and the location of performances they attended in ascending alphabetical order of their names.,"SELECT T2.Name , T3.Location 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 ORDER BY T2.Name ASC" What is the highest elevation of an airport in the country of Iceland?,SELECT max(elevation) FROM airports WHERE country = 'Iceland' Name the league for paul paton,"SELECT league FROM table_17598822_11 WHERE player = ""Paul Paton""" what is the highest attendance for week 3?,SELECT MAX(attendance) FROM table_name_34 WHERE week = 3 "What are the names of organizations that contain the word ""Party""?","SELECT organization_name FROM organizations WHERE organization_name LIKE ""%Party%""" "In the female customers, how many bought root beer that contains artificial sweetener?",SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN rootbeer AS T3 ON T2.RootBeerID = T3.RootBeerID INNER JOIN rootbeerbrand AS T4 ON T3.BrandID = T4.BrandID WHERE T1.Gender = 'F' AND T4.ArtificialSweetener = 'TRUE' "How many venues are located at Centurion, South Africa?",SELECT COUNT(T1.Venue_name) FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id INNER JOIN Country AS T3 ON T2.Country_Id = T3.Country_Id WHERE T3.country_name = 'South Africa' AND T2.city_name = 'Centurion' Show the countries that have managers of age above 50 or below 46.,SELECT Country FROM manager WHERE Age > 50 OR Age < 46 Which cities have lower temperature in March than in July and have been once host cities?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city Hmm. Can you also give me his last name.,SELECT T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count ( * ) LIMIT 1 "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.","SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1" List out years that only have summer games.,SELECT games_year FROM games WHERE season != 'Winter' GROUP BY games_year HAVING COUNT(season) = 1 How many activities does Mark Giuliano participate in?,"SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = ""Mark"" AND T1.lname = ""Giuliano""" Give the color of the grape whose wine products have the highest average price?,SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1 What is the total price charged for orders shipped by air without shipping instructions?,SELECT l_extendedprice * (1 - l_discount) * (1 + l_tax) AS totalprice FROM lineitem WHERE l_shipmode = 'AIR' AND l_shipinstruct = 'NONE' "What is the highest debut year for player Joe Youlden, with goals larger than 0?","SELECT MAX(debut_year) FROM table_name_56 WHERE player = ""joe youlden"" AND goals > 0" What is the most popular full name of the actors?,"SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1" What is the total number of crimes that happened in Bridgeport with beat less than 1000?,SELECT SUM(CASE WHEN T2.beat < 1000 THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Bridgeport' "Among the universities with over 20000 students in 2011, how many of them have an international students percentage of over 25% in the same year?",SELECT COUNT(*) FROM university_year WHERE year = 2011 AND pct_international_students > 25 AND num_students > 20000 What is the ratio of male and female among the age of teenager when the education is above 10?,SELECT CAST(SUM(CASE WHEN SEX = 'Male' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN SEX = 'Female' THEN 1 ELSE 0 END) FROM Customers WHERE age BETWEEN 13 AND 19 AND EDUCATIONNUM > 10 Which category has the most reviews?,SELECT T1.category FROM categories AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id GROUP BY T1.category ORDER BY COUNT(T2.podcast_id) DESC LIMIT 1 Count the number of players who were born in USA and have bats information 'R'.,SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'; "What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007?",SELECT 2010 FROM table_name_21 WHERE 2006 < 6.9 AND 2008 > 1.6 AND 2007 = 2 And how many players go there?,select count ( distinct player_id ) from player_college where college_id = ( SELECT T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count ( * ) DESC LIMIT 1 ) "What is W/m², when η (%) is greater than 16.5, and when Technology is MJ?","SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = ""mj""" "Show the attendances of the performances at location ""TD Garden"" or ""Bell Centre""","SELECT Attendance FROM performance WHERE LOCATION = ""TD Garden"" OR LOCATION = ""Bell Centre""" Name the most margin for nco party and p. ramachandran won,"SELECT MAX(margin) FROM table_22754310_1 WHERE party = ""NCO"" AND winner = ""P. Ramachandran""" What is the average lane for Kenya with react larger than 0.212?,"SELECT AVG(lane) FROM table_name_79 WHERE nationality = ""kenya"" AND react > 0.212" How many artworks are there?,SELECT COUNT(*) FROM artwork Which team has nc position for 2010 season?,"SELECT team FROM table_23338693_1 WHERE position = ""NC"" AND season = 2010" How many people live at each of them?,"SELECT Residence, count ( * ) FROM player GROUP BY Residence" What's the official name of the place with an Area KM 2 of 295.07,"SELECT official_name FROM table_171236_2 WHERE area_km_2 = ""295.07""" Which Opponent has a February larger than 7 and Record of 37-16-4?,"SELECT opponent FROM table_name_3 WHERE february > 7 AND record = ""37-16-4""" Show the transaction type descriptions and dates if the share count is smaller than 10.,"SELECT T1.transaction_type_description , T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10" Which branding has the callsign of DXGH?,"SELECT branding FROM table_28794440_1 WHERE callsign = ""DXGH""" Which store in Arizona has the most net profit?,SELECT T2.StoreID FROM `Sales Orders` AS T1 INNER JOIN `Store Locations` AS T2 ON T2.StoreID = T1._StoreID WHERE T2.State = 'Arizona' ORDER BY T1.`Unit Price` - T1.`Unit Cost` DESC LIMIT 1 Did any artist ID appear more than once in the weeks spent on top? | Do you mean the artists id which has more than one volume? | Yes please.,SELECT Artist_ID from volume group by artist_id having count ( * ) > = 2 What lost has 86 points?,"SELECT lost FROM table_name_67 WHERE points = ""86""" What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2?,"SELECT AVG(yards) FROM table_name_81 WHERE games > 15 AND reception > 2 AND player = ""jimmie giles""" How many students have the same Fname?,select count ( StuID ) from student where Fname in ( SELECT Fname FROM student group by Fname having count ( * ) >1 ) How many titles does Episode 2 have,SELECT COUNT(title) FROM table_165732_2 WHERE episode__number = 2 what was the lowest elevation in april 2006?,"SELECT MIN(elevation_ft) FROM table_27435931_1 WHERE year = ""April 2006""" who are the participants from hanover?,"SELECT contestant FROM table_26427332_17 WHERE city = ""Hanover""" Can you tell me the name for this attraction as well?,"SELECT T2.name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = ""game1""" "Can you show me the origins, the destinations and the flight numbers?","SELECT origin, destination, flno FROM Flight GROUP BY destination" What is the percentage of employees are in Paris office?,SELECT CAST(COUNT(CASE WHEN t1.city = 'Paris' THEN t2.employeeNumber ELSE NULL END) AS REAL) * 100 / COUNT(t2.employeeNumber) FROM offices AS t1 INNER JOIN employees AS t2 ON t1.officeCode = t2.officeCode What is the release date of production number 1327?,SELECT release_date FROM table_name_60 WHERE production_number = 1327 What date had a 4ad label and a CD (reissue) format?,"SELECT date FROM table_name_99 WHERE label = ""4ad"" AND format = ""cd (reissue)""" Who are the recipients in 1994?,SELECT recipients_and_nominees FROM table_name_73 WHERE year = 1994 What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?,"SELECT torque FROM table_name_97 WHERE engine_code = ""n46b20"" AND power = ""ps (kw; hp)@6400""" What is the average and maximum capacities for all stadiums ?,"SELECT AVG(capacity), MAX(capacity) FROM stadium" "when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan?","SELECT launched FROM table_name_36 WHERE builder = ""fujinagata shipyards, japan"" AND laid_down = ""20 october 1924""" Give me the list of nominees that has been nominated multiple times for musicals,SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT ( * ) > 1 How many user ids from 1 to 20 have no fan users and have low ratings?,SELECT COUNT(user_id) FROM Users WHERE user_id BETWEEN 1 AND 20 AND user_fans LIKE 'None' AND user_review_count LIKE 'Low' Which company published the game with the most sales in North America?,"SELECT T.publisher_name FROM ( SELECT T5.publisher_name, SUM(T2.num_sales) * 100000 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T1.region_name = 'North America' GROUP BY T5.publisher_name ORDER BY SUM(T2.num_sales) * 100000 DESC LIMIT 1 ) t" What are the denomination more than one school have?,SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1 What are the first name and major of the students who are able to consume soy?,"SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Soy"")" COunt the average Enrollment in hope?,"SELECT AVG(enrollment) FROM table_name_32 WHERE location = ""hope""" find the file size for Farida?,"SELECT file_size from files where artist_name = ""Farida""" What are the first name and department name of all employees?,"SELECT T1.first_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id" What are the name of the players who received a card in descending order of the hours of training?,SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC Return the first names and last names of employees who earn more than 30000 in salary.,"SELECT fname , lname FROM employee WHERE salary > 30000" What is the £1 fraction when the reverse is hare?,"SELECT £1_fraction FROM table_1682865_1 WHERE reverse = ""Hare""" Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.,SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY sum(T1.amount) DESC LIMIT 1 How many critics were given to the movie that got the most movie popularity number.,SELECT COUNT(T1.critic) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_popularity = ( SELECT MAX(movie_popularity) FROM movies ) Tell me the overall rank for heat rank of 8,SELECT overall_rank FROM table_name_60 WHERE heat_rank = 8 What is the average years of working for journalists from England.,"SELECT avg ( years_working ) FROM journalist WHERE Nationality = ""England""" How many books fall into each category?,"SELECT category , count(*) FROM book_club GROUP BY category" What was the home team score when the VFL played at Western Oval?,"SELECT home_team AS score FROM table_name_65 WHERE venue = ""western oval""" What is the analogue terrestrial channel when the internet shows channel4.com?,"SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = ""channel4.com""" Show the student id of the oldest student.,SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student) What is the nationality of the Team Georgia Tech?,"SELECT nationality FROM table_name_47 WHERE school_club_team = ""georgia tech""" who won with a score of 199 (-14) on oct 31?,"SELECT winner FROM table_name_21 WHERE score = ""199 (-14)"" AND date = ""oct 31""" Which Score is the lowest one that has a Year of 1868?,SELECT MIN(score) FROM table_name_75 WHERE year = 1868 "What is the destination of the route kulitthurai,neyyattinkara?","SELECT destination FROM table_29770377_1 WHERE route_via = ""Kulitthurai,Neyyattinkara""" What Engine does the w123.026 chassis have?,"SELECT engine FROM table_name_53 WHERE chassis_code = ""w123.026""" Tell me the region for frank erwin center,"SELECT region FROM table_name_10 WHERE venue = ""frank erwin center""" List names of all pilot aged 30 or younger in descending alphabetical order.,SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC What is the percentage of American coaches among all the coaches who taught the Montreal Canadiens?,SELECT SUM(CAST(T2.W AS REAL) / T2.G) / SUM(T2.G + T2.W) FROM Teams AS T1 INNER JOIN TeamsSC AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.name = 'Montreal Canadiens' "When the Home team of footscray is playing, what's the Home team score?","SELECT home_team AS score FROM table_name_53 WHERE home_team = ""footscray""" What Televote Points had a Final Points score of 2?,"SELECT televote_points FROM table_name_43 WHERE final_points = ""2""" How many orders were made by customers who live in Texas at the Central superstore?,SELECT COUNT(DISTINCT T2.`Order ID`) FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` WHERE T1.State = 'Texas' What date got 9.82 million viewers?,"SELECT original_air_date FROM table_11562143_1 WHERE us_viewers__million_ = ""9.82""" What pick number was player Greg McKegg?,"SELECT AVG(pick__number) FROM table_name_13 WHERE player = ""greg mckegg""" What is the range of rental cost for the films?,"SELECT min ( rental_rate ) , max ( rental_rate ) from film" What is the day of the week that tweet with ID tw-682712873332805633 was posted?,SELECT Weekday FROM twitter WHERE TweetID = 'tw-682712873332805633' List the name of all projects that are operated longer than the average working hours of all projects.,SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects) what shows for 3rd place in 1990?,"SELECT 3 AS rd_place FROM table_name_60 WHERE year = ""1990""" Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.,SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT avg(product_price) FROM products) List the id of students who registered course statistics in the order of registration date.,"SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = ""statistics"" ORDER BY T2.registration_date" What are the names of everybody who has exactly one friend?,SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1 "What is the August 15, 2012 population when the population density of 2012 is 307?","SELECT MAX(population_august_15), _2012 FROM table_12496904_1 WHERE population_density_2012__km_2__ = 307" What race is on aug 4 with ron fellows?,"SELECT race_title FROM table_name_24 WHERE drivers = ""ron fellows"" AND date = ""aug 4""" "How many times did the word ""grec"" occur on the page titled ""Àbac""?",SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T3.title = 'Àbac' AND T1.word = 'grec' On what date did Dick Johnson with at Calder?,"SELECT date FROM table_name_10 WHERE winner = ""dick johnson"" AND race_title = ""calder""" What is the time of the 100m freestyle event?,"SELECT time FROM table_name_54 WHERE event = ""100m freestyle""" Who are the cast members of episode 3-04?,"SELECT cast FROM table_2570269_3 WHERE episode__number = ""3-04""" What are the characters and duration of actors?,"SELECT Character , Duration FROM actor" What title did Mentuhotep IV have?,"SELECT title FROM table_name_11 WHERE name = ""mentuhotep iv""" I want the years for marathon distance and wins of 3,"SELECT years FROM table_name_15 WHERE distance = ""marathon"" AND wins = 3" What is the number of students who have class senator votes in the spring election cycle?,"SELECT count ( * ) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T2.Election_Cycle = ""Spring""" Name the 2nd leg for defence force,"SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = ""defence force""" "Between 2011 to 2013, what is the average number of male Hispanic degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time in United Education Institute-Huntington Park Campus?",SELECT AVG(T2.grad_150) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'United Education Institute-Huntington Park Campus' AND T2.year BETWEEN 2011 AND 2013 AND T2.gender = 'M' AND T2.race = 'H' What is the highest 3620 value with a 5432 of 5432 and a 15122 greater than 15122?,SELECT MAX(3620) FROM table_name_34 WHERE 5432 = 5432 AND 15122 > 15122 What is the lowest amount of gold for more than 16 silver?,SELECT MIN(gold) FROM table_name_14 WHERE silver > 16 What's the value for race 4 when race 3 is dns and race 2 is 27?,"SELECT race_4 FROM table_name_55 WHERE race_3 = ""dns"" AND race_2 = ""27""" What is the type for a general programming and the owner tv kanal 5?,"SELECT type FROM table_name_73 WHERE programming = ""general"" AND owner = ""tv kanal 5""" Which tournament had a performance of 1R in 2004 and 2R in 1998?,"SELECT tournament FROM table_name_79 WHERE 2004 = ""1r"" AND 1998 = ""2r""" "What are the address and phone number of the buildings managed by ""Brenden""?","SELECT building_address , building_phone FROM Apartment_Buildings WHERE building_manager = ""Brenden""" How many suppliers are there in the United States of America?,SELECT COUNT(SupplierID) FROM Suppliers WHERE Country = 'USA' How many train stations are there?,SELECT count(*) FROM station Show names of shops and the carriers of devices they have in stock.,"SELECT T3.Shop_Name, T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID" What is the average laps for ralph firman with a grid of over 19?,"SELECT AVG(laps) FROM table_name_32 WHERE driver = ""ralph firman"" AND grid > 19" On what dates were employees without the letter M in their first names hired?,SELECT hire_date FROM employees WHERE first_name NOT LIKE '%M%' How many faculty members participate in an activity?,SELECT count(DISTINCT FacID) FROM Faculty_participates_in Find the name of the person who has friends with age above 40 and under age 30?,SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) What are the dates of those?,SELECT T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 Which shops run with no employees? Find the shop names,SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring) Name the number of poles for 15th position,"SELECT COUNT(poles) FROM table_24466191_1 WHERE position = ""15th""" In which Tournament was Mansour Bahrami Eric Winogradsky,"SELECT tournament FROM table_name_9 WHERE opponent_in_final = ""mansour bahrami eric winogradsky""" what is the 3-dart average of raymond van barneveld,"SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = ""Raymond van Barneveld""" What's the agregation method for the indicator whose value is 133 in 1960 for the Arab World?,SELECT T2.AggregationMethod FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName INNER JOIN Country AS T3 ON T1.CountryCode = T3.CountryCode WHERE T3.ShortName = 'Arab World' AND T1.Value = 133 AND T1.Year = 1960 Which driver's grid is 6?,"SELECT driver FROM table_name_79 WHERE grid = ""6""" What non-English American film/s has received the lowest user ratings? Mention the movie's I.D.,SELECT T2.movieid FROM movies AS T1 INNER JOIN u2base AS T2 ON T1.movieid = T2.movieid WHERE T1.isEnglish = 'F' AND T1.country = 'USA' ORDER BY T2.rating LIMIT 1 What country is ranked 79?,SELECT country FROM table_name_19 WHERE rank = 79 "Which region was on June 8, 2004?","SELECT region FROM table_name_7 WHERE date = ""june 8, 2004""" "List the name of artworks whose type is not ""Program Talent Show"".","SELECT Name FROM artwork WHERE TYPE != ""Program Talent Show""" "Give the number of device models for ""中兴"" phone brand.",SELECT COUNT(device_id) FROM phone_brand_device_model2 WHERE device_model = '中兴' "How many points have an Engine of ferrari tipo 033 v6 tc, and a Year larger than 1987?","SELECT SUM(pts) FROM table_name_37 WHERE engine = ""ferrari tipo 033 v6 tc"" AND year > 1987" "List the title of all Cartoons showed on TV Channel with series name ""Sky Radio"".","SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio""" Alright! Can you now show me his checking account balance?,"SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid where T1.name = ""Weeks""" What is the name of the community with an area of 30.75 sq. km.?,"SELECT official_name FROM table_171361_1 WHERE area_km_2 = ""30.75""" "Describe the full names, emails and intelligence of the students with the highest capability and salary.","SELECT f_name, l_name, email, intelligence FROM student WHERE student_id IN ( SELECT student_id FROM RA WHERE salary = 'high' AND capability = ( SELECT MAX(capability) FROM RA ) )" What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier?,"SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = ""quebec major junior hockey league"" AND player = ""samuel carrier""" Tell me the version for 1940-45,"SELECT version FROM table_name_71 WHERE year = ""1940-45""" How many sales people are handling all the customers?,SELECT COUNT(EmployeeID) FROM Employees "How much higher in percentage does the word ""grec"" occur on the page titled ""Àbac"" than on the page titled ""Astronomia""?",SELECT CAST((SUM(CASE WHEN T3.title = 'Àbac' THEN T2.occurrences END) - SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END)) AS REAL) * 100 / SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' What is the sum of budgets of the Marketing and Finance departments?,SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance' "What is 1st Leg, when Team 1 is ""Makedonija""?","SELECT 1 AS st_leg FROM table_name_52 WHERE team_1 = ""makedonija""" Which label has the catalog CDZAP22?,"SELECT label FROM table_name_65 WHERE catalog = ""cdzap22""" Which October is the lowest one that has an Opponent of washington capitals?,"SELECT MIN(october) FROM table_name_38 WHERE opponent = ""washington capitals""" Name the most bronze for silver more than 6 and total less than 127 with gold less than 11,SELECT MAX(bronze) FROM table_name_17 WHERE silver > 6 AND total < 127 AND gold < 11 What is the sum of wins for teams with against under 1067?,SELECT SUM(wins) FROM table_name_16 WHERE against < 1067 What is the highest to par that is less than 153,SELECT MAX(to_par) FROM table_name_54 WHERE total < 153 "Who was the artist for the album, Christmas under the reunion label with the guitar?","SELECT artist FROM table_name_67 WHERE label = ""reunion"" AND credit = ""guitar"" AND album = ""christmas""" How many total credits are offered by each department?,"SELECT sum(credits) , dept_name FROM course GROUP BY dept_name" Show the names of players coached by the rank 1 coach.,SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1 How many matches in 2009 had win margins of less than 10?,SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2009%' AND Win_Margin < 10 On which award show was Bad Girls nominated for Most Popular Drama in 2004?,"SELECT award_show FROM table_name_66 WHERE year = 2004 AND category = ""most popular drama""" What are the opening and closing time of business id 1 for day id 2?,"SELECT opening_time, closing_time FROM Business_Hours WHERE business_id = 1 AND day_id = 2" how many time was points 6675?,SELECT COUNT(points) AS won FROM table_26218783_7 WHERE points = 6675 What is the average year in which the finish position was 13th?,"SELECT AVG(year) FROM table_name_30 WHERE position = ""13th""" What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?,SELECT MIN(points) FROM table_name_38 WHERE drawn < 2 AND played > 8 What gas station is the oldest one based on open year | Which kind of information about this gas station do you want? | Which gas station location is the oldest based on its open year.,SELECT Location from gas_station order by open_year limit 1 What is the most frequently ordered product? Tell me the detail of the product,SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY count(*) DESC LIMIT 1 Around what time frame release a Sampling Rate of 12-bit 40khz?,"SELECT SUM(release_date) FROM table_name_63 WHERE sampling_rate = ""12-bit 40khz""" How many faculty members participate in an activity?,SELECT COUNT(DISTINCT FacID) FROM Faculty_participates_in "What upper middle income country under East Asia & Pacific region which covers the topic about Social Protection & Labor: Migration ? Indicate the short name of the said country.",SELECT DISTINCT T1.ShortName FROM Country AS T1 INNER JOIN footnotes AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN Series AS T3 ON T2.Seriescode = T3.SeriesCode WHERE T1.IncomeGroup = 'Upper middle income' AND T1.Region = 'East Asia & Pacific' AND T3.Topic = 'Social Protection & Labor: Migration' Find the distinct ages of students who have secretary votes in the fall election cycle.,"SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = ""Fall""" How many films are categorized as horror?,SELECT COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id WHERE T2.name = 'Horror' Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.,"SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = ""defensive end""" What was the method of fight completion for the Mars: Attack 1 event?,"SELECT method FROM table_name_4 WHERE event = ""mars: attack 1""" How many kinds of different ratings are listed?,SELECT COUNT(DISTINCT rating) FROM film Provide the number of orders by Daisey Lamball in 2021.,"SELECT COUNT(*) FROM cust_order AS T1 INNER JOIN customer AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = 'Daisey' AND T2.last_name = 'Lamball' AND STRFTIME('%Y', T1.order_date) = '2021'" Describe the ordered products which were the most overdue from required date.,"SELECT DISTINCT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE DATEDIFF(T1.ShippedDate, T1.RequiredDate) < 0" What is the full name of players origin from Finland?,"SELECT DISTINCT firstName, lastName FROM Master WHERE birthCountry = 'Finland'" Which City has the Bahawalpur Stags Team?,"SELECT city FROM table_name_98 WHERE team = ""bahawalpur stags""" Return the text of tweets about the topic 'intern'.,SELECT text FROM tweets WHERE text LIKE '%intern%' "Which Total has a Nation of united states, and a Bronze larger than 3?","SELECT MAX(total) FROM table_name_4 WHERE nation = ""united states"" AND bronze > 3" How many figures are provided for December 28 for Rosario?,"SELECT COUNT(december_28) FROM table_29217650_1 WHERE movies = ""Rosario""" Who was the Centerfold Model on 9-03?,"SELECT centerfold_model FROM table_name_79 WHERE date = ""9-03""" Find the the customer details and id for the customers who had more than one policy.,"SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1" What is the total number of silver medals of the nation with more than 16 total medals?,SELECT COUNT(silver) FROM table_name_40 WHERE total > 16 What is the height associated with Paraguay?,"SELECT height__ft_ FROM table_25461827_2 WHERE country = ""Paraguay""" "what is the reported birth date when the reported age is 110 years, 185 days?","SELECT reported_birth_date FROM table_name_58 WHERE reported_age = ""110 years, 185 days""" "What date was the game at Dowdy-Ficklen stadium • Greenville, NC, with 27,321 in attendance?","SELECT date FROM table_name_96 WHERE site = ""dowdy-ficklen stadium • greenville, nc"" AND attendance = ""27,321""" "What is the Winning score on oct 22, 2000?","SELECT winning_score FROM table_name_93 WHERE date = ""oct 22, 2000""" How many services are there?,SELECT count(*) FROM services "Among the users who are trailists when rating the movie ""When Will I Be Loved"", how many of them have rated ""1"" on the movie?",SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.rating_score = 1 AND T1.user_trialist = 1 "Which Cashes has a Match Play smaller than 13, and a Events of 7?",SELECT COUNT(cashes) FROM table_name_97 WHERE match_play < 13 AND events = 7 How many bids does Atlantic 10 have?,"SELECT _number_of_bids FROM table_name_98 WHERE conference = ""atlantic 10""" "Which Name had the Rank, 15?",SELECT name FROM table_name_54 WHERE rank = 15 What is the title of episode 155 in the series?,SELECT title FROM table_27988540_1 WHERE no_in_series = 155 How many rebounds per game did Andrej Džaković average when playing 35 minutes per game?,"SELECT rebounds_per_game FROM table_28547289_1 WHERE minutes_per_game = ""35""" What are the names of reviewers who had rated 3 star and 4 star?,SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4 Which winery is the wine that has the highest score from?,SELECT Winery FROM WINE ORDER BY SCORE DESC LIMIT 1 which poll source does the highest oppose rate come from?,SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 What is the university ID of the university with the largest student staff ratio?,SELECT university_id FROM university_year ORDER BY student_staff_ratio DESC LIMIT 1 For how many years was the location at Beijing?,"SELECT SUM(year) FROM table_name_7 WHERE location = ""beijing""" How many orders were delivered in 2021?,"SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id WHERE T1.status_value = 'Delivered' AND STRFTIME('%Y', T2.status_date) = '2021'" Show the names of members in ascending order of their rank in rounds.,SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC "What is Notes, when Year is ""2010""?",SELECT notes FROM table_name_96 WHERE year = 2010 List the full name of the customer who purchased the most quantity of products.,"SELECT T1.FirstName, T1.LastName FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID ORDER BY T2.Quantity DESC LIMIT 1" List the project details of the projects with the research outcome described with substring 'published'.,SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%' Which weather station does store no.20 belong to?,SELECT station_nbr FROM relation WHERE store_nbr = 20 When is the original airing on channel 4 with being alive as the title?,"SELECT original_airing_on_channel_4 FROM table_22170495_6 WHERE title = ""Being Alive""" Which city does the customer who finished transaction no.103545 live in?,SELECT T1.City FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.TransactionID = 103545 What school did the forward whose number is 10 belong to?,"SELECT school_club_team_country FROM table_11734041_2 WHERE no_s_ = ""10"" AND position = ""Forward""" List the level of education and income of customers ages from 30 to 55 with a true response.,"SELECT T1.EDUCATIONNUM, T3.INCOME_K FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.age >= 30 AND T1.age <= 55 AND T2.RESPONSE = 'true'" "Of the matches that were won by runs by team 1, what percentage have team 1 won the toss and decided to field?",SELECT CAST(COUNT(CASE WHEN T1.Team_1 = T1.Match_Winner = T1.Toss_Winner THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Team_1) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id INNER JOIN Toss_Decision AS T3 ON T1.Toss_Decide = T3.Toss_Id WHERE T3.Toss_Name = 'field' AND T2.Win_Type = 'runs' display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.,"SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = ""Clara"") AND first_name != ""Clara""" Find the difference between the average royalty of titles published by US and non US publishers?,SELECT (CAST(SUM(CASE WHEN T2.country = 'USA' THEN T1.royalty ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.country = 'USA' THEN 1 ELSE 0 END)) - (CAST(SUM(CASE WHEN T2.country != 'USA' THEN T1.royalty ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.country != 'USA' THEN 1 ELSE 0 END)) FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id INNER JOIN roysched AS T3 ON T1.title_id = T3.title_id List the software platform shared by the greatest number of devices.,SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1 what's the saturday time with wednesday being 10:00-5:00,"SELECT saturday FROM table_11019212_1 WHERE wednesday = ""10:00-5:00""" "What Social AO has an External CO of elena buscher, and a President of harm van leeuwen?","SELECT social_ao FROM table_name_39 WHERE external_co = ""elena buscher"" AND president = ""harm van leeuwen""" Count the number of rooms that are not in the Lamberton building.,SELECT count(*) FROM classroom WHERE building != 'Lamberton' Wat is the tax source system code and master customer id of the taxes related to each parking fine id?,"SELECT T1.source_system_code , T1.master_customer_id , T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id" "What is Win-Loss, when Win % is .456?","SELECT win_loss FROM table_name_60 WHERE win__percentage = "".456""" What was the score for the game on February 29?,"SELECT score FROM table_name_10 WHERE date = ""february 29""" What is the area of Mangamahu primary school?,"SELECT area FROM table_name_54 WHERE name = ""mangamahu primary school""" What team was he on when he had 10 f/laps?,SELECT team FROM table_24491017_1 WHERE f_laps = 10 What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?,"SELECT mintage FROM table_name_76 WHERE theme = ""toronto maple leafs"" AND issue_price < 24.95" Who did the Jets play in the Meadowlands on week 14?,"SELECT opponent FROM table_name_46 WHERE game_site = ""the meadowlands"" AND week = 14" what is stations' total passengers? | Do you mean sum of total passengers in all stations? | yes,SELECT sum ( Total_Passengers ) FROM station "Which wine products have the highest average price? | Do you mean which grape whose wine products has the highest average price? | Yes, Which grapes are in the wine products that have the highest average price?",SELECT T1.grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG ( Price ) DESC LIMIT 1 "What host has an original air date of june 11, 2007?","SELECT host FROM table_name_11 WHERE original_airdate = ""june 11, 2007""" Find the id of the appointment with the most recent start date?,SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1 What is the episode that has mafia keyword?,SELECT T1.episode FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T2.Keyword = 'mafia' Please list the occupations of the customers with an education level of 11.,SELECT DISTINCT OCCUPATION FROM Customers WHERE EDUCATIONNUM = 11 "what is the most silver when bronze is more than 0, total is more than 1, gold is more than 0 and the nation is china (chn)?","SELECT MAX(silver) FROM table_name_62 WHERE bronze > 0 AND total > 1 AND gold > 0 AND nation = ""china (chn)""" "Among the root beer purchased in 2014, what percentage were sold in cans?",SELECT CAST(COUNT(CASE WHEN ContainerType = 'Can' THEN RootBeerID ELSE NULL END) AS REAL) * 100 / COUNT(RootBeerID) FROM rootbeer WHERE PurchaseDate LIKE '2014%' Show me the number of routes that have destination John F Kennedy International Airport,SELECT count ( * ) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport' How many flights do we have?,SELECT count(*) FROM Flight What is the name of the country with the highest percentage of rural population in the overall total population? Indicate the rural population percentage of total population.,"SELECT countryname, MAX(value) FROM indicators WHERE indicatorname = 'Rural population (% of total population)'" How many episodes were written by Alexander Woo and directed by Scott Winant?,"SELECT COUNT(title) FROM table_26493520_1 WHERE written_by = ""Alexander Woo"" AND directed_by = ""Scott Winant""" In what division did they place 4th?,"SELECT division FROM table_name_27 WHERE position = ""4th""" What was the career SR with a value of A in 1980 and F in 1997?,"SELECT career_sr FROM table_name_47 WHERE 1989 = ""a"" AND 1997 = ""f""" Find the total population of the districts where the area is bigger than the average city area.,SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district) What are the party emails associated with parties that used the party form that is the most common?,SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1) Focal plane in ft (m) is 43ft (13.1m) is the first date lit.,"SELECT date_first_lit FROM table_25597136_1 WHERE focal_plane_in_ft__m_ = ""43ft (13.1m)""" What is the name of the breed with the most dogs?,SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1 Project details of project ID 1?,"SELECT project_details FROM Projects where project_id = 1" "Which catalog contents have a product stock number that starts from ""2""? Show the catalog entry names.","SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE ""2%""" What was the result of the game from 10 October 2009?,"SELECT result FROM table_name_47 WHERE date = ""10 october 2009""" What are the shot percentages for teams that played in switzerland?,SELECT shot__percentage FROM table_1644876_2 WHERE locale = Switzerland In what year did SP Narine win the Orange Cap?,"SELECT T4.Season_Year, T4.Orange_Cap FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Season AS T4 ON T3.Season_Id = T4.Season_Id WHERE T1.Player_Name = 'SP Narine' GROUP BY T4.Season_Year, T4.Orange_Cap" In which country do the majority of the players are from?,SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T1.Country_Id = T2.Country_Name GROUP BY T2.Country_Name ORDER BY COUNT(T2.Country_Name) DESC LIMIT 1 Find the ids and first names of the 3 teachers that have the most number of assessment notes?,"SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3" Show the description and code of the attraction type most tourist attractions belong to.,"SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" What is the memory for ct80618005844ab?,"SELECT memory FROM table_name_78 WHERE part_number_s_ = ""ct80618005844ab""" What Place has a Player of tony jacklin?,"SELECT place FROM table_name_28 WHERE player = ""tony jacklin""" What are the top 5 tags with the highest amount of downloads?,SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched DESC LIMIT 5 What time was the kickoff against the Frankfurt Galaxy?,"SELECT kickoff FROM table_27764201_2 WHERE opponent = ""Frankfurt Galaxy""" Which country had a score of 69-67=136?,SELECT country FROM table_name_5 WHERE score = 69 - 67 = 136 What are the songs in volumes with more than 1 week on top?,SELECT Song FROM volume WHERE Weeks_on_Top > 1 What is the customer id for George?,"SELECT customer_id FROM customers where customer_name = ""George""" "What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?",SELECT MIN(rank) FROM table_name_46 WHERE attempts = 319 AND year > 2000 How many hosts does each nationality have? List the nationality and the count.,"SELECT Nationality , COUNT(*) FROM HOST GROUP BY Nationality" What was the score when 2441 people were in attendance?,SELECT score FROM table_name_17 WHERE attendance = 2441 Calculate the total products that are supplied by Japan suppliers.,SELECT COUNT(T1.SupplierID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.Country = 'Japan' "Which engine was on a car with G tires, a chassis model of 003 002 004 005 006, driven by Jackie Stewart?","SELECT engine FROM table_name_98 WHERE tyre = ""g"" AND chassis = ""003 002 004 005 006"" AND driver = ""jackie stewart""" Find the average age and number of male students (with sex M) from each city.,"SELECT count(*) , avg(age) , city_code FROM student WHERE sex = 'M' GROUP BY city_code" What is the average age for all students who do not own any pets ?,select avg(age) from student where stuid not in (select stuid from has_pet) what players have a overall rating greater than 80?,SELECT * FROM Player_Attributes WHERE overall_rating > 80 What is the sum of rank when total is 3 and the nation is Australia?,"SELECT SUM(rank) FROM table_name_12 WHERE total = 3 AND nation = ""australia""" What was the attendance when South Melbourne was the away team?,"SELECT SUM(crowd) FROM table_name_88 WHERE away_team = ""south melbourne""" From which city was the tweet with the most number of retweets posted?,SELECT T2.City FROM twitter AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID ORDER BY T1.RetweetCount DESC LIMIT 1 What are the average invoice sizes of each country?,"SELECT billing_country , AVG ( total ) FROM invoices GROUP BY billing_country" Who scored a 68?,SELECT player FROM table_name_96 WHERE score = 68 Which Average has a Band of f?,"SELECT average FROM table_name_57 WHERE band = ""f""" List the earnings of poker players in descending order.,SELECT Earnings FROM poker_player ORDER BY Earnings DESC How many Bangladeshi citizens live in the borough ranked at number 14?,SELECT MAX(bangladeshi_population) FROM table_19149550_9 WHERE rank = 14 Find the name of airports which do not have any flight in and out.,SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) Give the number of followers for the user who posted the most lists.,SELECT SUM(T1.list_followers) FROM lists AS T1 INNER JOIN lists_users AS T2 ON T1.list_id = T2.list_id GROUP BY T1.user_id ORDER BY COUNT(T1.list_id) DESC LIMIT 1 Find the forename and surname of drivers whose nationality is German?,"SELECT forename , surname FROM drivers WHERE nationality = ""German""" Chinese title of 反正 卓文萱 had what released?,"SELECT released FROM table_name_44 WHERE chinese_title = ""反正 卓文萱""" "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.","SELECT T1.School_name, T1.Mascot, T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested, T2.total_budget_percent_budgeted" How many Goals Against have a Position of 4?,SELECT COUNT(goals_against) FROM table_name_40 WHERE position = 4 Show all company names and headquarters in the descending order of market value.,"SELECT company , headquarters FROM company ORDER BY market_value DESC" Find the id and name of the staff who has been assigned for the shortest period.,"SELECT T1.staff_id , T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" What was Gary Player's highest total when his To par was over 15?,"SELECT MAX(total) FROM table_name_41 WHERE player = ""gary player"" AND to_par > 15" What is the title of the song that has a translation of Without Me?,"SELECT title FROM table_name_38 WHERE english_translation = ""without me""" What is the email address of the staff Jon Stephens?,SELECT email FROM staff WHERE first_name = 'Jon' AND last_name = 'Stephens' "What is Set 1, when Set 4 is NA, when Score is 3-0, and when Set 2 is 29-27?","SELECT set_1 FROM table_name_30 WHERE set_4 = ""na"" AND score = ""3-0"" AND set_2 = ""29-27""" "Write down all the keywords for winner of ""WGA Award (TV)"" award.",SELECT T2.keyword FROM Award AS T1 INNER JOIN Keyword AS T2 ON T2.episode_id = T1.episode_id WHERE T1.award_category = 'WGA Award (TV)'; Tell me the club description for club id 1 ?,SELECT ClubDesc FROM club where ClubID = 1 Name the Player which has a To par of –6?,"SELECT player FROM table_name_99 WHERE to_par = ""–6""" What is the total game number with athlone town as the opponent?,"SELECT COUNT(game) FROM table_name_95 WHERE opponent = ""athlone town""" 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" "What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng?","SELECT player FROM table_name_83 WHERE rating > 2746 AND prev < 4 AND chng = ""+4""" "How many people attended the game on December 2, 1951?","SELECT attendance FROM table_name_69 WHERE date = ""december 2, 1951""" How many networks are there that have a channel number 7?,SELECT COUNT(network) FROM table_160728_4 WHERE channel = 7 what is teh ihsaa class/football/soccer when the location is alexandria?,"SELECT ihsaa_class___football___soccer FROM table_name_43 WHERE location = ""alexandria""" Who are Zach's friends?,"select friend from PersonFriend where name = ""Zach""" How many engineer visits are required at most for a single fault log? List the number and the log entry id.,"SELECT count(*) , T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY count(*) DESC LIMIT 1" "What tail number was on the an-26, with 25/25 fatalities?","SELECT tail_number FROM table_name_82 WHERE aircraft = ""an-26"" AND fatalities = ""25/25""" How many clubs are remaining when the winners from the previous round totals 4?,"SELECT clubs_remaining FROM table_18328569_1 WHERE winners_from_previous_round = ""4""" How many customers who are not in debt ordered an urgent order?,SELECT COUNT(T2.c_custkey) FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_acctbal > 0 AND T1.o_orderpriority = '1-URGENT' Where was shipment no. 1002 headed?,SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1002' What is the full address of the office where 4 people work and one of them is Sales Representation?,"SELECT T1.addressLine1, T1.addressLine2 FROM customers AS T1 INNER JOIN employees AS T2 ON T1.salesRepEmployeeNumber = T2.employeeNumber WHERE T2.jobTitle = 'Sales Rep'" How many different product categories are there?,select distinct product_category_code from Products What is the lowest pick that has arizona cardinals as the NFL club?,"SELECT MIN(pick) FROM table_name_43 WHERE nfl_club = ""arizona cardinals""" "How many saves were in the Georgia game, versus the Bulldogs, with a score of 7-6?","SELECT save FROM table_18025024_7 WHERE score = ""7-6""" What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?,SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80 What is the most number?,SELECT MAX(_number) FROM table_12803263_1 How many active businesses are there in Phoenix?,SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND active LIKE 'TRUE' What is minimum and maximum share of TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;" What is the capital of Uasin Gishu county?,"SELECT capital FROM table_16278894_1 WHERE county = ""Uasin Gishu""" What is the party for south carolina 3?,"SELECT party FROM table_1342359_39 WHERE district = ""South Carolina 3""" "In what year did Iljuštšenko compete in Barcelona, Spain?","SELECT year FROM table_name_70 WHERE venue = ""barcelona, spain""" Name the incumbent for matthew lyon (dr) anthony new (dr),"SELECT incumbent FROM table_2668378_5 WHERE candidates = ""Matthew Lyon (DR) Anthony New (DR)""" Can you list all companies based in Austin and their revenues?,"select Name,Revenue from Manufacturers where Headquarter = 'Austin'" Stars for rID 201?,SELECT stars FROM Rating where rID = 201 "What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200?",SELECT COUNT(clean_) & _jerk FROM table_name_8 WHERE total__kg_ = 200 AND snatch > 95 "What is the result of the UEFA Cup, against Palermo?","SELECT result FROM table_name_49 WHERE competition = ""uefa cup"" AND opponent = ""palermo""" How many runners-up were there when Joanne Wheatley won?,"SELECT COUNT(runners_up) FROM table_28962227_1 WHERE winner = ""Joanne Wheatley""" List the suppliers' names which supplied smoke red pale saddle plum.,SELECT T3.s_name FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_name = 'smoke red pale saddle plum' What is Friday 4 June if Wednesday 2 June is 20' 11.98 112.071mph?,"SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = ""20' 11.98 112.071mph""" "What is the score of the United States, which has more than $24,542?","SELECT score FROM table_name_21 WHERE country = ""united states"" AND money___$__ > 24 OFFSET 542" "What was the grid for rider Russell Holland, riding a Honda CBR1000rr?","SELECT grid FROM table_name_75 WHERE bike = ""honda cbr1000rr"" AND rider = ""russell holland""" How many total reviews runned at in June 2022 were added to the podcasts?,SELECT SUM(reviews_added) FROM runs WHERE run_at LIKE '2022-06-%' "What was the week on December 10, 1989?","SELECT week FROM table_name_39 WHERE date = ""december 10, 1989""" "What is First Elected, when District is ""Minnesota 2""?","SELECT first_elected FROM table_name_16 WHERE district = ""minnesota 2""" What is the mintage for a location of Sion and a denomination of 00500 500 Francs?,"SELECT mintage FROM table_26336060_19 WHERE location = ""Sion"" AND denomination = ""00500 500 francs""" "Please find all the papers published by ""Ralf Hinze""?","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Ralf"" AND t1.lname = ""Hinze""" What is the name of the supplier that supplies the most products to the company?,SELECT T1.SupplierID FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID GROUP BY T1.SupplierID ORDER BY COUNT(*) DESC LIMIT 1 "What are the total number of podiums for more than 4 laps, and less than 149 races?",SELECT COUNT(podiums) FROM table_name_86 WHERE fastest_laps > 4 AND races < 149 How many times did argentina win?,"SELECT MAX(winners) FROM table_14573770_4 WHERE nation = ""Argentina""" How many organizations are established after 1999/1/1 in a country whose GDP is under 500000?,"SELECT T1.Country, COUNT(T1.Country) FROM economy AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.GDP < 500000 AND STRFTIME('%Y', T2.Established) < '1999' GROUP BY T1.Country" Which images have more than 20 object samples?,SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(IMG_ID) > 20 How many assets can each parts be used in? List the part name and the number.,"SELECT T1.part_name , count(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name" Provide the fine paid and the complete address of the establishment with inspection ID 48216.,"SELECT DISTINCT T3.fine, T1.state, T1.city, T1.address FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T2.inspection_id = 48216" "Please show the names of aircrafts associated with airport with name ""London Gatwick"".","SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" Please provide the titles of any two papers that are either preprinted or unpublished along with the full name of the journal to which those papers belong.,"SELECT T1.Title, T2.FullName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Year < 1 LIMIT 2" Which Length has a Year of 2000?,SELECT length FROM table_name_13 WHERE year = 2000 Please list the movies directed by Wolfgang Reitherman that can be watched by the general audience.,SELECT T1.movie_title FROM `movies_total_gross` AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T1.MPAA_rating = 'G' AND T2.director = 'Wolfgang Reitherman' and Janessa? | Do you mean the last name of the staff whose first name is Janessa? | Yes,SELECT last_name from staff where first_name = 'Janessa' "What is the title, phone and hire date of Nancy Edwards?","SELECT title , phone , hire_date FROM employees WHERE first_name = ""Nancy"" AND last_name = ""Edwards""" Please list the names of taverns that paid a $100 fine upon inspection.,SELECT DISTINCT T1.dba_name FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id WHERE T1.facility_type = 'Tavern' AND T3.fine = 100 What is the total rank with more than 2 silver and total larger than 10?,SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10 Which colleges were those positions for?,"SELECT cName FROM tryout where pPos ! = ""goalie""" How about the road game scores for Clemson?,SELECT t2.All_Road FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.,"SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = ""F"" AND T2.Election_Cycle = ""Spring""" List the document type code for the document with the id 2.,SELECT document_type_code FROM Documents WHERE document_id = 2; Which home team had an away team of the Brisbane Lions?,"SELECT home_team FROM table_name_36 WHERE away_team = ""brisbane lions""" Tell me the payment method used by the customer who ordered the least amount of goods in total.,SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY sum(t3.order_quantity) LIMIT 1 What country is Relax-Gam from?,"SELECT country FROM table_name_83 WHERE team = ""relax-gam""" How many more units of item no.16 were sold on the day with the highest max temperature in 2012 in store no.5 than in store no.10?,SELECT ( SELECT SUM(units) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.item_nbr = 16 AND T1.`date` LIKE '%2012%' AND T1.store_nbr = 5 GROUP BY tmax ORDER BY T3.tmax DESC LIMIT 1 ) - ( SELECT SUM(units) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.item_nbr = 16 AND T1.`date` LIKE '%2012%' AND T1.store_nbr = 6 GROUP BY tmax ORDER BY T3.tmax DESC LIMIT 1 ) Which countries has the most number of airlines whose active status is 'Y'?,SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1 "Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989?","SELECT surname FROM table_name_73 WHERE bats = ""r"" AND position = ""p"" AND dob = ""20 may 1989""" What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.,"SELECT MAX(laps) FROM table_name_52 WHERE time_retired = ""+1 lap"" AND driver = ""alexander wurz"" AND grid < 14" Show the title and publication dates of books.,"SELECT T1.Title , T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID" What is the sum of averages with a long value of 32?,SELECT SUM(avg) FROM table_name_70 WHERE long = 32 Find the number of universities that have over a 20000 enrollment size for each affiliation type.,"SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation" Find the name of account that has the lowest total checking and saving balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1 Find the type code of the most frequently used policy.,SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1 "Indicate the care plan needed for the patient living at 179 Sydni Roads, Taunton, MA 02780 US.",SELECT T1.DESCRIPTION FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.address = '179 Sydni Roads Taunton MA 02780 US' What player has a penalty of holding on the DET team?,"SELECT player FROM table_name_35 WHERE penalty = ""holding"" AND team = ""det""" What is the film title and inventory id of the item in the inventory which was rented most frequently?,"SELECT T1.title , T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1" What is the score of game 25?,SELECT score FROM table_name_37 WHERE game = 25 How many flights do we have?,SELECT COUNT(*) FROM FLIGHTS Who was at Home when the Score was 13-19?,"SELECT home FROM table_name_83 WHERE score = ""13-19""" "For the county where DeSantis Ron is from, what is the average female median age?",SELECT SUM(T4.female_median_age) / COUNT(T1.county) FROM country AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id INNER JOIN zip_data AS T4 ON T1.zip_code = T4.zip_code WHERE T3.first_name = 'DeSantis' AND T3.last_name = 'Ron' Name both the alias and the bad alias of zip code 38015.,"SELECT T1.alias, T2.bad_alias FROM alias AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.zip_code = 38015" Count the number of book clubs.,SELECT count(*) FROM book_club What is the position of the player with more than 11 assists and 219 rebounds?,SELECT pos FROM table_name_85 WHERE asts > 11 AND rebs = 219 How much more total box office gross did the Walt Disney Company have in revenue in 1998 than in 1997?,SELECT SUM(CASE WHEN `Year` = 1998 THEN Total ELSE 0 END) - SUM(CASE WHEN `Year` = 1997 THEN Total ELSE 0 END) FROM revenue What is the average bike availability in stations that are not located in Palo Alto?,"SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city = ""Palo Alto"")" What country had the play Cyclops?,"SELECT country FROM table_name_15 WHERE play = ""cyclops""" What are the names of the procedures that cost more than 1000 and are procedures John Wen was trained in?,"SELECT name FROM procedures WHERE cost > 1000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" "What is the average total number of passengers of airports that are associated with aircraft ""Robinson R-22""?","SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = ""Robinson R-22""" "In the countries for which the latest trade data are from 2013, what was the GDP growth in 2014? List them in the ascending order of GDP.","SELECT DISTINCT T1.CountryCode, T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.LatestTradeData = 2013 AND T2.IndicatorName LIKE 'GDP growth (annual %)' AND T2.year = 2014 AND T2.Value > 0 ORDER BY T2.Value ASC" Please list the dates on which the sale of item no.5 in store no.3 exceeded 100 and the average wind speed exceeded 10.,SELECT T1.`date` FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T2.store_nbr = 3 AND T1.item_nbr = 5 AND T1.units > 100 AND T3.avgspeed > 10 Name the least week for opponent of washington redskins,"SELECT MIN(week) FROM table_name_87 WHERE opponent = ""washington redskins""" What are the general and specific descriptions of the most common crime incidents that happened in an aircraft?,"SELECT T2.primary_description, T2.secondary_description FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.location_description = 'AIRCRAFT' GROUP BY T1.iucr_no ORDER BY COUNT(T1.iucr_no) DESC LIMIT 1" Show the home city with the most number of drivers.,SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1 "In which year was the movie ""La Antena"" released?",SELECT movie_release_year FROM movies WHERE movie_title = 'La Antena' What is the lowest year for the game called The Elder Scrolls v: Skyrim?,"SELECT MIN(year) FROM table_name_99 WHERE game = ""the elder scrolls v: skyrim""" How many male clients born in the year 1977 were given priority 0 in their complaints?,SELECT COUNT(T1.sex) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.sex = 'Male' AND T2.priority = 0 AND T1.year = 1997 What is the total number of Silver medals for the Nation with less than 1 Bronze?,SELECT COUNT(silver) FROM table_name_84 WHERE bronze < 1 What is the last name for that student?,"SELECT last_name FROM Students WHERE first_name = ""Emma""" type the attendance for playing with tampa bay buccaneers?,"SELECT attendance FROM table_14656147_2 WHERE opponent = ""Tampa Bay Buccaneers""" What record has Glenn Robinson (16) as the leading scorer?,"SELECT record FROM table_name_83 WHERE leading_scorer = ""glenn robinson (16)""" What was the lowest attendance for a game played @ Nashville Predators?,"SELECT MIN(attendance) FROM table_name_85 WHERE opponent = ""@ nashville predators""" State name of disabled students who have the longest duration of absense from school.,SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name ORDER BY T2.month DESC LIMIT 1 what is the store Rob Dinning's marketing code?,"SELECT marketing_region_code from stores where store_name = ""Rob Dinning""" What is the gender of artists with at least one English song?,select T1.gender from artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = 'english' group by T1.artist_name having count ( * ) > = 1 What is the average amount of earnings for years under 2004 and money list rankings of 6?,"SELECT AVG(earnings__) AS $_ FROM table_name_88 WHERE money_list_rank = ""6"" AND year < 2004" Find the number of students whose age is older than the average age for each gender.,"SELECT count(*) , sex FROM student WHERE age > (SELECT avg(age) FROM student) GROUP BY sex" Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.,"SELECT title , film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title , T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING count(*) < 3" "What is the total number of Total Congregations, when % LDS is 0.54%, and when Population is greater than 105,275?","SELECT COUNT(total_congregations) FROM table_name_85 WHERE _percentage_lds = ""0.54%"" AND population > 105 OFFSET 275" "Find the number of students who have the word ""son"" in their personal names.","SELECT COUNT(*) FROM Students WHERE personal_name LIKE ""%son%""" "Among the users that permit the company to send regular emails to them, how many of them had made a transaction with a Visa card in July, 2014?","SELECT COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.SubscribedToEmailList = 'TRUE' AND T2.CreditCardType = 'Visa' AND STRFTIME('%Y-%m', T2.TransactionDate) = '2014-07'" "What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is ""25"", and when Draws is less than 5?",SELECT COUNT(losses) FROM table_name_13 WHERE position > 8 AND goals_for > 34 AND points = 25 AND draws < 5 What is the away team score at victoria park?,"SELECT away_team AS score FROM table_name_49 WHERE venue = ""victoria park""" "Who was the writer who wrote the episode that was aired on September 11, 1972?","SELECT writer_s_ FROM table_25800134_17 WHERE airdate = ""September 11, 1972""" List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.,"SELECT DISTINCT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15" When did the Summer Olympics occur in Tokyo?,"SELECT summer_olympics FROM table_name_3 WHERE city = ""tokyo""" "What is the name of the winner who has won the most matches, and how many rank points does this player have?","SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1" What is the largest capacity for a stadium?,SELECT MAX(capacity) FROM table_25129482_1 What are the full names and hire dates for employees in the same department as someone with the first name Clara?,"SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = ""Clara"")" what is the maximum vote percent of elections?,SELECT max ( Vote_Percent ) FROM election What venue was the game played in when the away team was fitzroy?,"SELECT venue FROM table_name_42 WHERE away_team = ""fitzroy""" "Rood & Taylor of o, and a Buechel & Manhart spelling (pronunciation) of o had what university of Minnesota?","SELECT university_of_minnesota FROM table_name_63 WHERE rood_ & _taylor = ""o"" AND buechel_ & _manhart_spelling__pronunciation_ = ""o""" What is the 2004 that has a of grand slam tournaments in2006 ?,"SELECT 2004 FROM table_name_82 WHERE 2006 = ""grand slam tournaments""" What is the pinyin for the Chinese title 直感一笔?,"SELECT pinyin FROM table_name_78 WHERE chinese_title = ""直感一笔""" What are the average and minimum price (in Euro) of all products?,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents" Who hosted the visiting team Baltimore Ravens?,"SELECT host_team FROM table_name_24 WHERE visiting_team = ""baltimore ravens""" On what surface was the opponent Michael Berrer?,"SELECT surface FROM table_name_15 WHERE opponent = ""michael berrer""" What is the 3rd place team for the year of 1955?,SELECT 3 AS rd_place_team FROM table_18618672_2 WHERE year = 1955 What is the total crowd count for the venue Princes Park?,"SELECT SUM(crowd) FROM table_name_23 WHERE venue = ""princes park""" Return the rank for which there are the fewest captains.,SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1 What is the highest number in series with director as Phil Abraham?,"SELECT MAX(no_in_series) FROM table_26736040_1 WHERE directed_by = ""Phil Abraham""" In what Years was the Player in MF Position?,"SELECT years FROM table_name_71 WHERE position = ""mf""" How many n are listed for berbers from siwa?,"SELECT COUnT AS n FROM table_21481509_4 WHERE population = ""Berbers from Siwa""" When did Hollywood Records release a digital download?,"SELECT date FROM table_name_87 WHERE label = ""hollywood records"" AND format = ""digital download""" "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 races?","SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5" What years was the jersey number(s) smaller than 3?,SELECT years FROM table_name_1 WHERE jersey_number_s_ < 3 who is the constructor when the grid is more than 10 and the time/retired is +1 lap?,"SELECT constructor FROM table_name_59 WHERE grid > 10 AND time_retired = ""+1 lap""" What is the genre of the song Tumi robe nirobe?,"SELECT genre_is FROM song WHERE song_name = ""Tumi robe nirobe""" List the name character awarded for the Outstanding Voice-Over Performance award in 2009.,SELECT T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T1.year = 2009 AND T1.award = 'Outstanding Voice-Over Performance'; What was the score for the away team when they played at lake oval?,"SELECT away_team AS score FROM table_name_70 WHERE venue = ""lake oval""" What is the score for Collingwood as the home team?,"SELECT home_team AS score FROM table_name_85 WHERE home_team = ""collingwood""" "What was the loss of the game attended by 41,212?","SELECT loss FROM table_name_50 WHERE attendance = ""41,212""" Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.,SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance How many students are enrolled in the class taught by some professor from the accounting department?,SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting' Which game type has least number of games?,SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1 What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?,"SELECT favorite_professional_sport FROM table_name_91 WHERE 2005 = ""17.1%""" What is the pole position of the Portuguese Grand Prix?,"SELECT pole_position FROM table_name_54 WHERE grand_prix = ""portuguese grand prix""" Which country won in 1986?,"SELECT country FROM table_name_59 WHERE year_s__won = ""1986""" Who ordered the book with the cheapest price?,"SELECT T3.first_name, T3.last_name FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id ORDER BY T1.price ASC LIMIT 1" "What is the inspection ID where the employee named ""David Hodges"" is currently employed in the ""Kamayan Express"" establishment?",SELECT T2.inspection_id FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN employee AS T3 ON T2.employee_id = T3.employee_id WHERE T3.first_name = 'David' AND T3.last_name = 'Hodges' AND T1.dba_name = 'KAMAYAN EXPRESS' "Which Name has a Type of loan, and a Moving to of apollon kalamaria?","SELECT name FROM table_name_97 WHERE type = ""loan"" AND moving_to = ""apollon kalamaria""" Count the number of customers who hold an account.,SELECT count(DISTINCT customer_id) FROM Accounts How many locations have been used for ballparks named Memorial Stadium?,"SELECT COUNT(location) FROM table_1987995_5 WHERE ballpark = ""Memorial Stadium""" What is the total points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud?,"SELECT SUM(points) FROM table_name_85 WHERE faults = ""refusal"" AND rider = ""h.r.h. prince abdullah al-soud""" Name the coin with the highest percentage price changed in 24 hours. State the transaction date and price.,"SELECT T1.name, T2.DATE, T2.price FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.percent_change_24h = ( SELECT MAX(percent_change_24h) FROM historical )" Show me a list of party themes,SELECT party_theme from party "Find the number of the products that have their color described as ""red"" and have a characteristic named ""slow"".","SELECT count(*) 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 JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = ""red"" AND t3.characteristic_name = ""slow""" List the number of shows that had 12.04 million viewers in the united states,"SELECT COUNT(title) FROM table_22904780_1 WHERE us_viewers__million_ = ""12.04""" "How many votes were taken when the outcome was ""6th voted out day 12""?","SELECT COUNT(vote) FROM table_1272844_2 WHERE finish = ""6th voted Out Day 12""" How many laps did Nick Heidfeld drive on grids larger than 4?,"SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = ""nick heidfeld""" What are the titles of the episodes that have received more 7-star votes than the season average?,SELECT DISTINCT T1.episode_id FROM Episode AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T2.stars = 7 AND T2.votes > 0.7 * ( SELECT CAST(COUNT(votes) AS REAL) / COUNT(CASE WHEN stars = 7 THEN 1 ELSE 0 END) FROM Vote ); How many dishes are there on page 1 of menu ID12882?,SELECT SUM(CASE WHEN T1.page_number = 1 THEN 1 ELSE 0 END) FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id WHERE T1.menu_id = 12882 The venue of Brunswick Street Oval was used on what date?,"SELECT date FROM table_name_53 WHERE venue = ""brunswick street oval""" The 'More Stupider: A 90-Day Fiance Podcast' belongs to which category and what is the average rating of the podcast?,SELECT AVG(T3.rating) FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T2.title = 'More Stupider: A 90-Day Fiance Podcast' What was the premiere date for the episode whose alternate title was miłość i przeznaczenie?,"SELECT series_premiere FROM table_29799700_2 WHERE alternante_title = ""Miłość i przeznaczenie""" what is the average place when lost is more than 12?,SELECT AVG(place) FROM table_name_13 WHERE lost > 12 What are the last names and ages of the students who are allergic to milk and cat?,"SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = ""Milk"" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = ""Cat"")" "Which Attendance has a Round of 52, and a Home of södertälje sk?","SELECT MIN(attendance) FROM table_name_67 WHERE round = 52 AND home = ""södertälje sk""" "Can you tell me which statement has the most number of accounts? | Do you want to know its statement id? | Yes, what is its statement id?",SELECT T1.statement_id FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY count ( * ) DESC LIMIT 1 what is the stroke where the vehicle code is t211?,"SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = ""T211""" Which IATA has a ICAO of slk?,"SELECT iata FROM table_name_14 WHERE icao = ""slk""" "Who performed the song named ""Badlands""? Show the first name and the last name.","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Badlands""" What countries have a stadium with a copacity greather than 60000?,SELECT distinct country FROM stadium WHERE capacity > 60000 "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.","SELECT flno , origin , destination FROM Flight ORDER BY origin" What is the pick number for Ray Giroux?,"SELECT pick FROM table_name_52 WHERE player = ""ray giroux""" Hi there! How are you? Can you show a list of all customer IDs for customers who have loans in the amount of 5000 or more?,SELECT T1.cust_id FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum ( T2.amount ) > = 5000 Which team offers the lowest average salary? Give me the name and id of the team.,"SELECT T1.name , T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;" What are the investor ID and details for the investor who had the earliest transaction date?,"SELECT T2.investor_id , T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY T2.date_of_transaction ASC LIMIT 1" List all the representatives in 1789 along with the districts and state.,"SELECT T2.district, T2.state FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.start LIKE '1789%'" "Give the name of the movie which the song ""I Thought I Lost You"" is associated with.",SELECT movie_title FROM characters WHERE song = 'I Thought I Lost You' How many people have the 747-400 certificate? | Do you mean the name of Boeing 747-400 in the Boeing 747-400 table ? | yes,"SELECT count ( * ) FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid where T2.name = ""Boeing 747-400""" "Find the papers which have ""Olin Shivers"" as an author.","SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = ""Olin"" AND t1.lname = ""Shivers""" Who was the opponent when they played after Game 26 and their record was 23-4?,"SELECT opponent FROM table_name_2 WHERE game > 26 AND record = ""23-4""" Return the names of all counties sorted by county name in descending alphabetical order.,SELECT County_name FROM county ORDER BY County_name DESC Whats the total passengers london waterloo has?,"SELECT Total_Passengers FROM station where name = ""London Waterloo""" Where did Croatia lead?,"SELECT lead FROM table_name_1 WHERE nation = ""croatia""" "What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?","SELECT cover FROM table_name_12 WHERE published = ""may 27, 2009 (hc) may 20, 2009 (tpb)""" Tell me the average units sold for square enix,"SELECT AVG(units_sold) FROM table_name_46 WHERE publisher = ""square enix""" In what round was lyon (32) a 5 seed?,SELECT lyon__32_ FROM table_20711545_1 WHERE seed = 5 Name the hanja for hangul of 주,"SELECT hanja FROM table_name_77 WHERE hangul = ""주""" What is the average weight in pounds of all the players with the highest prospects for the draft?,SELECT CAST(SUM(T2.weight_in_lbs) AS REAL) / COUNT(T1.ELITEID) FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T1.CSS_rank = ( SELECT MAX(CSS_rank) FROM PlayerInfo ) What is the ranking criteria ID of Brown University in 2014?,SELECT T1.ranking_criteria_id FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Brown University' AND T1.year = 2014 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" Count the number of institutions.,SELECT count(*) FROM inst "Among all players drafted by the Toronto Maple Leafs, identify the percentage who are from Eastern Europe.","SELECT CAST(COUNT(CASE WHEN nation IN ('Belarus', 'Czech Rep.', 'Slovakia', 'Ukraine') THEN ELITEID ELSE NULL END) AS REAL) * 100 / COUNT(ELITEID) FROM PlayerInfo WHERE overallby = 'Toronto Maple Leafs'" List the publication dates of publications with 3 lowest prices.,SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3 What is the frequency when callsign is dxru-fm?,"SELECT frequency FROM table_23915973_1 WHERE callsign = ""DXRU-FM""" Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?,"SELECT driver FROM table_name_25 WHERE entrant = ""arrows racing team"" AND rounds = ""1-3""" Display the employee ID and salary of all employees who report to payam (First name),"SELECT employee_id , salary FROM employees WHERE manager_id = ( SELECT employee_id FROM employees WHERE first_name = 'Payam' ) " "What is the total number of Week(s), when Attendance is 61,603?","SELECT COUNT(week) FROM table_name_23 WHERE attendance = ""61,603""" "Which Opponent has a Score of 3–6, 5–7?","SELECT opponent FROM table_name_52 WHERE score = ""3–6, 5–7""" What is the mother tongue language shared by 300 people in 2006?,SELECT mother_tongue FROM table_name_94 WHERE population__2006_ = 300 Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.,"SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700" "Park Dietz was credited in which role in the episode titled ""Cherished""?",SELECT T2.role FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T1.title = 'Cherished' AND T3.name = 'Park Dietz' AND T2.credited = 'true' what is the name of every pilot who is at least 25 years old?,SELECT Name FROM pilot WHERE Age >= 25 WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21?,SELECT COUNT(overall) FROM table_name_73 WHERE round > 7 AND pick = 21 Which podiums have a final placing of 10th?,"SELECT podiums FROM table_15852257_1 WHERE final_placing = ""10th""" Where did they play and how many attended game number 75?,SELECT location_attendance FROM table_27704187_11 WHERE game = 75 What is his name?,SELECT name FROM user_profiles WHERE name LIKE '%Swift%' Who played Peter Pan in the 1990 Broadway?,"SELECT 1990 AS _broadway FROM table_10312547_1 WHERE character = ""Peter Pan""" What are the names of all players that got more than the average number of points?,SELECT name FROM player WHERE points > (SELECT avg(points) FROM player) How many picks had less than 11 rounds and a player of Charley Casey?,"SELECT SUM(pick) FROM table_name_29 WHERE round < 11 AND player = ""charley casey""" "What was the weekly rank by Virgin media for the title aired on May 20, 2010?","SELECT MIN(weekly_rank_virgin_media) FROM table_26826304_2 WHERE air_date = ""May 20, 2010""" Show the name of buildings that do not have any institution.,SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution) On what date did the country have a gross domestic product 400% higher than Saint Kitts and Nevis become independent?,SELECT Independence FROM politics WHERE country = ( SELECT country FROM economy WHERE GDP = 1100 ) What is the number of reviewers?,SELECT COUNT ( * ) FROM Reviewer "What are the department ids, full names, and salaries for employees who make the most in their departments?","SELECT first_name , last_name , salary , department_id , MAX(salary) FROM employees GROUP BY department_id" What is the to total number of par with laurie ayton?,"SELECT COUNT(to_par) FROM table_name_99 WHERE player = ""laurie ayton""" What is the name of the player from Vanderbilt University?,"SELECT player FROM table_name_43 WHERE school = ""vanderbilt university""" List the number of assists against illinois-chicago.,"SELECT assists FROM table_26360571_2 WHERE opponent = ""Illinois-Chicago""" Thank you for that! Could you filter that list to show only the church names and ids of churches that have hosted 2 or more weddings?,"SELECT T1.name, T1.church_id FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING count ( * ) > = 2" List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.,"SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'" Provide the rooms of faculties with rank professor who live in building NEB?,"SELECT Room FROM FACULTY WHERE Rank = ""Professor"" AND Building = ""NEB""" How many artists do we have?,SELECT COUNT(*) FROM artist "What is the reason for sales order ""51883""?",SELECT T2.Name FROM SalesOrderHeaderSalesReason AS T1 INNER JOIN SalesReason AS T2 ON T1.SalesReasonID = T2.SalesReasonID WHERE T1.SalesOrderID = 51883 What is the total number of unique official languages spoken in the countries that are founded before 1930?,"SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = ""T""" Name the number of international frieghts for domestic mail of 260,SELECT COUNT(international_freight) FROM table_1754531_4 WHERE domestic_mail = 260 What year was the Spanish Grand Prix where Emerson Fittipaldi drove?,"SELECT year FROM table_name_30 WHERE event = ""spanish grand prix"" AND driver = ""emerson fittipaldi""" Please show the names and the players of clubs.,"SELECT T1.name , T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID" "Find the average prices of all products from each manufacture, and list each company's name.","SELECT avg(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" What is the total number of playoffs held in exactly 2006?,SELECT COUNT(playoffs) FROM table_1999350_1 WHERE year = 2006 What is the employment and payment status of student110?,SELECT T1.bool FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.name = 'student110' "If the qatari male is 1104, what is the grand total?",SELECT MAX(grand_total) FROM table_26214389_3 WHERE qatari_male = 1104 Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket?,"SELECT liberal_ticket FROM table_name_51 WHERE free_libertarian_ticket = ""robert s. flanzer""" How many weeks on top for volumes associated with the artist aged 24 or older?,SELECT count ( weeks_on_top ) FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age > = 24 How many dorms are there?,SELECT count(*) FROM dorm What is the average number of EVA for the Orion?,"SELECT AVG(number_of_s_eva) FROM table_name_50 WHERE lunar_lander = ""orion""" What is the download of the varies catch-up period?,"SELECT download FROM table_name_55 WHERE catch_up_period = ""varies""" What is the total number of purchases for members with level 6?,SELECT count(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6 "What are the names of the workshop groups that have bookings with status code ""stop""?","SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = ""stop""" What is the enrollment of that college?,"SELECT enr FROM College WHERE enr > 10000 AND state = ""LA""" What is the production number for Bell Hoppy in the MM Series?,"SELECT COUNT(production_number) FROM table_name_21 WHERE series = ""mm"" AND title = ""bell hoppy""" please show me the average age of those employees,SELECT avg ( T2.age ) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200 "What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin?","SELECT MAX(pos) FROM table_27396005_2 WHERE constructor = ""Joe Gibbs Racing"" AND driver = ""Denny Hamlin""" What is the middle name of the legislator whose birthday was on 8/24/1956?,SELECT middle_name FROM current WHERE birthday_bio = '1956-08-24' "Which Transfer fee has Ends larger than 2011, and a Moving from of psv?","SELECT transfer_fee FROM table_name_27 WHERE ends > 2011 AND moving_from = ""psv""" What is the percentage of preprints of John Van Reenen's papers?,SELECT CAST(SUM(CASE WHEN T1.ConferenceId = 0 AND T1.JournalId = 0 THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'John Van Reenen' Which position was in Orlando in 2000?,"SELECT position FROM table_name_15 WHERE years_in_orlando = ""2000""" What gender is allowed to attend the school that has a decile of 6 and a roll that is less than 179?,SELECT gender FROM table_name_69 WHERE decile = 6 AND roll < 179 "Thank you for that info. Now, how many 'cutlery' products have the daily hire cost lower than 20?",SELECT count ( product_id ) FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20 What is the lowest attendance when the h/A is H in the Semi-Finals Second Leg?,"SELECT MIN(attendance) FROM table_name_73 WHERE h___a = ""h"" AND round = ""semi-finals second leg""" When does week 11 start?,"SELECT date FROM table_name_25 WHERE week = ""11""" "Which area 2006 km² has an area 1996 km² of 26.39, and a pop 2006 smaller than 18,610?",SELECT MIN(area_2006_km²) FROM table_name_94 WHERE area_1996_km² = 26.39 AND pop_2006 < 18 OFFSET 610 "List the name and residence for players whose occupation is not ""Researcher"".","SELECT Player_name , residence FROM player WHERE Occupation != ""Researcher""" What is the highest number of nominations by Taoiseach of the composition with an administrative panel greater than 0 and an industrial and commercial panel less than 1?,SELECT MAX(nominated_by_the_taoiseach) FROM table_name_11 WHERE administrative_panel > 0 AND industrial_and_commercial_panel < 1 What was the record when the high rebound was Deandre Jordan (11)?,"SELECT record FROM table_name_63 WHERE high_rebounds = ""deandre jordan (11)""" What is the NBA Draft status of the person who went to college at LSU?,"SELECT nba_draft FROM table_name_38 WHERE college = ""lsu""" "Please list the name(s) of the tracks in the playlist ""Movies"".","SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = ""Movies""" Find the total and average amount paid in claim headers.,"SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers" "In complaints about the credit card product, list the phone number of the oldest client.",SELECT T1.phone FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.Product = 'Credit card' ORDER BY T1.age DESC LIMIT 1 What is the percentage of complaints about the late fee issue whose priority is 2 in 2017?,"SELECT CAST(SUM(CASE WHEN T1.priority = 2 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.`Complaint ID`) FROM callcenterlogs AS T1 INNER JOIN events AS T2 ON T1.`Complaint ID` = T2.`Complaint ID` WHERE strftime('%Y', T1.`Date received`) = '2017'" What phone number does alderman Emma Mitts have to call if she wants to speak to the commander in charge of the investigation of the crimes that have occurred in her ward?,SELECT T3.phone FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.alderman_first_name = 'Emma' AND T1.alderman_last_name = 'Mitts' What are the first and last names of all the employees and how many people report to them?,"SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;" Which country has the player Johnny Miller?,"SELECT country FROM table_name_58 WHERE player = ""johnny miller""" Who was the home team on the May 2 game?,"SELECT home FROM table_name_30 WHERE date = ""may 2""" Which series had a title of Boyhood Daze?,"SELECT series FROM table_name_78 WHERE title = ""boyhood daze""" How much does the car accelerate that makes amc hornet sportabout (sw)?,SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'; List the names of wrestlers in descending order of days held.,SELECT Name FROM wrestler ORDER BY Days_held DESC Who is the youngest player to have played during the 1997-1998 season for OHL League?,SELECT DISTINCT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1997-1998' AND T1.LEAGUE = 'OHL' ORDER BY T2.birthdate DESC LIMIT 1 "Among the USA players, who has the lightest weight?",SELECT T2.PlayerName FROM weight_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.weight_id = T2.weight WHERE T2.nation = 'USA' ORDER BY T1.weight_in_lbs ASC LIMIT 1 How did the manager replaced by Wolfgang Frank depart?,"SELECT manner_of_departure FROM table_name_93 WHERE replaced_by = ""wolfgang frank""" Which crew member of the simpson 20s is the oldest?,SELECT name FROM Person WHERE birthdate IS NOT NULL ORDER BY birthdate ASC LIMIT 1; Please list the age and famous title of artists in descending order of age.,"SELECT Famous_Title, Age FROM artist ORDER BY Age DESC" "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.","SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name" "Which order's shipment tracking number is ""3452""? Give me the id of the order.","SELECT order_id FROM shipments WHERE shipment_tracking_number = ""3452""" "Which country with a city with a population between 50,000 and 300,000 inhabitants and which is a member of an organization established between 03/01/1991 and 04/30/1991 is also a member of the EBRD?",SELECT T2.Country FROM country AS T1 INNER JOIN isMember AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country INNER JOIN city AS T4 ON T4.Country = T3.Country WHERE T3.Abbreviation = 'EBRD' AND T4.Population BETWEEN 50000 AND 300000 AND T3.Established BETWEEN '1991-01-31' AND '1991-04-30' "What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?","SELECT release_date FROM table_name_37 WHERE director = ""friz freleng"" AND production_number > 1496 AND series = ""mm"" AND title = ""apes of wrath""" Hinkley Locomotive Works is listed as what number as it has a works number smaller than 1563?,"SELECT number FROM table_name_7 WHERE works_number < 1563 AND builder = ""hinkley locomotive works""" How many students are under advisor 415?,SELECT COUNT(*) FROM advisedBy WHERE p_id_dummy = 415 In what district was incumbent first elected in 1938? ,SELECT district FROM table_1342013_42 WHERE first_elected = 1938 Tell me the highest wins for year less than 2000 and best finish of 4 and tournaments played less than 3,"SELECT MAX(wins) FROM table_name_42 WHERE year < 2000 AND best_finish = ""4"" AND tournaments_played < 3" What are the id and zip code of the address with the highest monthly rental?,"SELECT T2.address_id , T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1" "What's the highest grid of Ronnie Bremer, who had more than 18 points?","SELECT MAX(grid) FROM table_name_91 WHERE driver = ""ronnie bremer"" AND points > 18" What Locomotive was Delivered as T414?,"SELECT locomotive FROM table_name_2 WHERE delivered_as = ""t414""" List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'.,SELECT T1.user_id FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'Love Will Tear Us Apart' AND T1.rating_score = 1 what is th area where the municipaity is labrador?,"SELECT area__km²_ FROM table_1691800_2 WHERE municipality = ""Labrador""" how many stations there,SELECT count ( * ) from station "Provide the start date, end date, and party of Pearl Peden Oldfield.","SELECT T2.start, T2.`end`, T2.party FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Pearl' AND T1.middle_name = 'Peden' AND T1.last_name = 'Oldfield'" What is the document type for document name Learning English?,"SELECT document_type_code FROM documents WHERE document_name = ""Learning English""" What is the title and director for the movie with highest worldwide gross in the year 2000 or before?,"SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1" "Is word id ""88"" the word id for title ""Animals""?",SELECT CASE WHEN COUNT(T1.pid) > 0 THEN 'YES' ELSE 'NO' END AS YORN FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid = 88 AND T1.title = 'Animals' What is the first name and last name of the student who have most number of sports?,"SELECT T2.Fname , T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1" how many on the airport table,SELECT count ( * ) FROM airports Show all destinations and the number of flights to each destination.,"SELECT destination , count(*) FROM Flight GROUP BY destination" "Who is the ""CTO"" of club ""Hopkins Student Enterprises""? Show the first name and last name.","SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises"" AND t2.position = ""CTO""" What is the position of Dale Craigwell?,"SELECT position FROM table_name_67 WHERE player = ""dale craigwell""" Which title has origianal sound entertainment as its label?,"SELECT title FROM table_name_85 WHERE label = ""origianal sound entertainment""" Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.,"SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MIN(hours) FROM projects)" "What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?",SELECT MAX(2007) FROM table_name_56 WHERE 1985 > 52 AND 1987 > 130 AND 1990 < 1990 What is the name of every college in alphabetical order that has more than 18000 students enrolled?,SELECT cName FROM College WHERE enr > 18000 ORDER BY cName "What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?","SELECT COUNT(year) FROM table_name_28 WHERE result = ""3rd"" AND venue = ""edinburgh, scotland""" What was the record when the visitor was Cleveland in Dallas?,"SELECT record FROM table_name_59 WHERE visitor = ""cleveland"" AND home = ""dallas""" List the names of editors who are older than 25.,SELECT Name FROM editor WHERE Age > 25 Show the most common headquarter for companies.,SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1 What is sesame's typical selling price?,"SELECT typical_selling_price from products where product_name = ""sesame""" Which frequency belongs to the beat branding?,"SELECT frequency FROM table_name_58 WHERE branding = ""the beat""" Which space agency launched the herschel space observatory?,"SELECT space_agency FROM table_name_17 WHERE name = ""herschel space observatory""" Provide the google entity ID of the senators in New York.,SELECT T1.google_entity_id_id FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.type = 'sen' AND T2.state = 'NY' "what's the country/region with seasons and winners being season 1, 2012: demetra malalan","SELECT country_region FROM table_13779832_1 WHERE seasons_and_winners = ""Season 1, 2012: Demetra Malalan""" Where did McCain get 20226 votes?,SELECT county FROM table_20350118_1 WHERE mccain_number = 20226 What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1?,"SELECT MIN(places) FROM table_name_70 WHERE name = ""sherri baier / robin cowan"" AND rank < 1" Which artist speaks croatian?,"SELECT artist FROM table_name_32 WHERE language = ""croatian""" "Which artist does the album ""Balls to the Wall"" belong to?","SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = ""Balls to the Wall""" Which store owns most items?,SELECT store_id FROM inventory GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1 who are all the players when season mvp is less than 1.0 and second team is less than 1.0,SELECT player FROM table_26130295_3 WHERE season_mvp < 1.0 AND second_team < 1.0 "What is the status code, mobile phone number and email address of the customer with last name as Kohler or first name as Marina?","SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" What are all company names that have a corresponding movie directed in the year 1999?,SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999 Calculate the percentage of movie titles with a screen length of more than 120 minutes that have a category of horror movies.,"SELECT CAST(SUM(IIF(T3.`name` = 'Horror', 1, 0)) * 100 / COUNT(T1.film_id) AS REAL) FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T1.length > 120" What is the year leicester was established?,"SELECT MAX(established) FROM table_142950_1 WHERE location = ""Leicester""" What is the email of the customer that has the credit card with the earliest date valid from?,SELECT T2.customer_email FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.date_valid_from = ( SELECT MIN ( date_valid_from ) FROM Customers_Cards ) What is the solution path for method number 3?,SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 3 What is the synchronisation for the controlnet fieldbus?,"SELECT synchronisation FROM table_name_70 WHERE fieldbus = ""controlnet""" What points has 18 for the played and bala rfc as the club?,"SELECT points_for FROM table_name_31 WHERE played = ""18"" AND club = ""bala rfc""" Who is the trainer for Cherry Valley Farm?,"SELECT trainer FROM table_name_94 WHERE owner = ""cherry valley farm""" "With chem-s as the dative, what is the ergative?","SELECT ergative FROM table_name_85 WHERE dative = ""chem-s""" What is the total number of byes that has 11 wins and a Tallangatta DFL of Barnawartha?,"SELECT COUNT(byes) FROM table_name_3 WHERE wins = 11 AND tallangatta_dfl = ""barnawartha""" What was the score of the Home team in the game that had the Away team of south melbourne?,"SELECT home_team AS score FROM table_name_29 WHERE away_team = ""south melbourne""" What is the acreage of the Maghereen in the civil parish of Macroom?,"SELECT COUNT(area__acres__) FROM table_30120761_1 WHERE civil_parish = ""Macroom"" AND townland = ""Maghereen""" Please list the top three employees with the most unused sick leave along with their position titles.,SELECT JobTitle FROM Employee ORDER BY SickLeaveHours DESC LIMIT 3 what's the date of birth with end of term being 2april1969,"SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = ""2April1969""" "What is the minimum, maximum, and average market value for every company?","SELECT min(market_value) , max(market_value) , avg(market_value) FROM company" "Which Laps have a Grid larger than 8, and a Rider of anthony west?","SELECT MAX(laps) FROM table_name_60 WHERE grid > 8 AND rider = ""anthony west""" "State the publisher name of the game ""ModNation Racers"".",SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'ModNation Racers' How many rooms in each building have a capacity of over 50?,"SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building" Find the id of the product ordered the most often on invoices.,SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1 What is the most popular full name of the actors?,"SELECT first_name , last_name FROM actor GROUP BY first_name , last_name ORDER BY count(*) DESC LIMIT 1" Show the ages of gymnasts in descending order of total points.,SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC How many races has there been?,SELECT count ( * ) FROM races What was the surface tye during the match with the opponent of richard fromberg?,"SELECT surface FROM table_name_3 WHERE opponent = ""richard fromberg""" How many total movie ratings are there?,SELECT count ( * ) FROM rating How many names have a country of civ?,"SELECT COUnT AS name FROM table_22810095_8 WHERE country = ""CIV""" Calculate the average inspections per year done by Jessica Anthony from 2010 to 2017.,"SELECT CAST(COUNT(CASE WHEN T1.first_name = 'Jessica' AND T1.last_name = 'Anthony' THEN T2.inspection_id ELSE 0 END) AS REAL) / 8 FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE strftime('%Y', T2.inspection_date) BETWEEN '2010' AND '2017'" What is the building ID with apartment Suite 645?,select building_id from Apartments where apt_number = 'Suite 645' What is the total number of enrollment of schools that do not have any goalie player?,"SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos = ""goalie"")" How many goals were conceded by the team with more than 21 points more than 5 draws and less than 18 games played?,SELECT SUM(goals_conceded) FROM table_name_81 WHERE draw > 5 AND points > 21 AND played < 18 Name the style for 27,SELECT style FROM table_28677723_14 WHERE total = 27 "If the player is Hashan Tillakaratne, what is the catches minimum?","SELECT MIN(catches) FROM table_26041144_16 WHERE player = ""Hashan Tillakaratne""" What is the lowest Total for rank 3 with more than 4 gold?,"SELECT MIN(total) FROM table_name_13 WHERE rank = ""3"" AND gold > 4" What is the Set 1 with a Score with 3–2?,"SELECT set_1 FROM table_name_96 WHERE score = ""3–2""" what is the record when the result is win on 2004-06-26?,"SELECT record FROM table_name_96 WHERE result = ""win"" AND date = ""2004-06-26""" In what year did the Lions join?,"SELECT MIN(joined) FROM table_1973729_1 WHERE nickname = ""Lions""" Which Opponent has a Time of 2:31?,"SELECT opponent FROM table_name_42 WHERE time = ""2:31""" When did the show directed by Michael Dimartino first air?,"SELECT original_air_date FROM table_14724369_1 WHERE directed_by = ""Michael DiMartino""" How many results does the California 29 voting district have?,"SELECT COUNT(result) FROM table_1342149_6 WHERE district = ""California 29""" Who was the Rookie of the Year for the Season in 2000?,SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000 Find the name of the most popular party form.,SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY count(*) DESC LIMIT 1 What is the School of Sussex Tech's Team?,"SELECT team FROM table_name_31 WHERE school = ""sussex tech""" What are the special notes for the country whose average adolescent fertility rate is the highest?,SELECT DISTINCT T1.SpecialNotes FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Value = ( SELECT Value FROM Indicators WHERE IndicatorName LIKE 'Adolescent fertility rate%' ORDER BY Value DESC LIMIT 1 ) "Show all locations and the number of gas stations in each location ordered by the count, please?","SELECT LOCATION , count ( * ) FROM gas_station GROUP BY LOCATION ORDER BY count ( * ) " Find the number of activities available.,SELECT count(*) FROM Activity Is the Washington Corrections Center for Women (WCCW) a major facility?,"SELECT Major AS facility FROM table_25346763_1 WHERE facility = ""Washington Corrections Center for Women (WCCW)""" "List the number of tournament winners when iona , siena & niagara won in the regular season.","SELECT COUNT(tournament_winner) FROM table_24348134_3 WHERE regular_season_winner = ""Iona , Siena & Niagara""" What stadium has a final score of 26–21?,"SELECT stadium FROM table_name_8 WHERE final_score = ""26–21""" What is the GameRankings Released of 2011 with a Metacritic of 83/100?,"SELECT gamerankings FROM table_name_40 WHERE metacritic = ""83/100"" AND year_released = 2011" What is the resulting score for the episodes where Rufus's guest is Sean Lock?,"SELECT winner FROM table_19930660_3 WHERE rufus_guest = ""Sean Lock""" Tell me the average Laps for grid larger than 22,SELECT AVG(laps) FROM table_name_39 WHERE grid > 22 What is the type if the organization name is Gamma RHO Lambda 1?,"SELECT type FROM table_2538117_7 WHERE organization = ""Gamma Rho Lambda 1""" List down the IDs of the production companies that released the movies in 1916.,"SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1916" What was the first set with a third set of 25–21?,"SELECT set_1 FROM table_name_87 WHERE set_3 = ""25–21""" What are full names and salaries of employees working in the city of London?,"SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'" Which Commenced operations have an Airline of valuair?,"SELECT MAX(commenced_operations) FROM table_name_39 WHERE airline = ""valuair""" what is the average salary of Boston Red Stockings?,SELECT avg ( T1.salary ) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' 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 "Find the last name of the author with first name ""Amal"".","SELECT lname FROM authors WHERE fname = ""Amal""" How many attended the game on 12/17 with stephen jackson as the leading scorer?,"SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = ""stephen jackson"" AND date = ""12/17""" What is every code and location where the launch site condition and owner is obliterated?,"SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = ""Obliterated""" Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.,SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20 Which country has a GDP (nominal) of $29.9 billion?,"SELECT country FROM table_name_20 WHERE gdp__nominal_ = ""$29.9 billion""" Please list the names of the institutes in the state of Alabama whose all graduates in total exceeded 500 in 2011?,SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.state = 'Alabama' AND T2.year = 2011 AND T2.race = 'X' AND T2.grad_cohort > 500 What is the description for the budget type with code ORG?,"SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = ""ORG""" "Who was the Mariners opponent at the game attended by 7,893?","SELECT opponent FROM table_name_49 WHERE attendance = ""7,893""" Current legislator Roger F. Wicker has not been a representative for how many terms?,SELECT SUM(CASE WHEN T1.official_full_name = 'Roger F. Wicker' THEN 1 ELSE 0 END) AS count FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.district IS NULL OR T2.district = '' What was the away team when the result was 2–1 and home team was the bohemians?,"SELECT away_team FROM table_24949975_1 WHERE result = ""2–1"" AND home_team = ""Bohemians""" "What are the carriers of devices whose software platforms are not ""Android""?",SELECT Carrier FROM device WHERE Software_Platform != 'Android' Which currency has a central rate of 0.702804?,"SELECT currency FROM table_name_12 WHERE central_rate = ""0.702804""" who was the opponent when the week was 9?,"SELECT opponent FROM table_name_44 WHERE week = ""9""" Which chassis manufacturer is for fleet numbers range 2530-2558,"SELECT chassis_manufacturer FROM table_1425948_1 WHERE fleet_numbers = ""2530-2558""" What are the distinct first names and cities of the students who have allergy either to milk or to cat?,"SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = ""Milk"" OR T2.Allergy = ""Cat""" Which position does Robert Nkemdiche play?,"SELECT position FROM table_name_20 WHERE player = ""robert nkemdiche""" How many students has tree pollen affected?,SELECT count ( StuID ) FROM Has_allergy where Allergy = 'Tree Pollen' What is the 2007 value for the 2010 wta premier 5 tournaments?,"SELECT 2007 FROM table_name_12 WHERE 2010 = ""wta premier 5 tournaments""" What is the highest laps for the grid of 7?,SELECT MAX(laps) FROM table_name_82 WHERE grid = 7 What is the lowest oppose rate that male candidates have?,"SELECT min ( oppose_rate ) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id where t1.sex = ""M""" How many companies are there in the city of London?,SELECT COUNT(CompanyName) FROM Customers WHERE City = 'London' What is the number of nicknames for the meaning of god knows my journey.,"SELECT COUNT(nickname) FROM table_11908801_1 WHERE meaning = ""God Knows My Journey""" What is the total pick number for a wide receiver?,"SELECT COUNT(pick) FROM table_name_7 WHERE position = ""wide receiver""" When 1180 am is the frequency how many call signs are there?,"SELECT COUNT(call_sign) FROM table_1949746_1 WHERE frequency = ""1180 AM""" What is the Point of Chassis of Lancia d50 in 1954,"SELECT points FROM table_name_91 WHERE chassis = ""lancia d50"" AND year = 1954" Which player had a position of OT during round 27?,"SELECT name FROM table_name_43 WHERE position = ""ot"" AND round = 27" "On what episode did Julia Roberts win the ""Outstanding Guest Actress in a Drama Series"" award during the 1999 Primetime Emmy Awards? Tell me her role.","SELECT T3.episode_id, T2.role FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id INNER JOIN Episode AS T3 ON T2.episode_id = T3.episode_id WHERE T2.year = 1999 AND T2.award = 'Outstanding Guest Actress in a Drama Series' AND T2.organization = 'Primetime Emmy Awards' AND T1.name = 'Julia Roberts' AND T2.result = 'Nominee'" Name the german voice actor for alain dorval,"SELECT german_voice_actor FROM table_14960574_6 WHERE french_voice_actor = ""Alain Dorval""" "What are the names and ids of the different albums, and how many tracks are on each?","SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID" Which county has the mascot of Bruins?,"SELECT county FROM table_name_81 WHERE mascot = ""bruins""" Show the manager name with most number of gas stations opened after 2000.,SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1 "What is the Opponent at the game with Attendance of 68,436?","SELECT opponent FROM table_name_97 WHERE attendance = ""68,436""" What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?,SELECT AVG(yards) FROM table_name_53 WHERE average < 4 AND long = 12 AND attempts < 29 Retrieve all the last names of authors in alphabetical order.,SELECT lname FROM authors ORDER BY lname "When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?","SELECT place FROM table_name_18 WHERE score > 67 AND country = ""united states"" AND to_par = ""e"" AND player = ""bunky henry""" What week corresponds to the last one to be played at the memorial stadium?,"SELECT MAX(week) FROM table_10647401_1 WHERE stadium = ""Memorial stadium""" "Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?","SELECT opponent FROM table_name_7 WHERE method = ""tko"" AND location = ""elgin, illinois, usa"" AND date = ""2001-02-11""" what film has rental fee of 0.99?,SELECT title FROM film WHERE rental_rate = 0.99 Which episode was written by anthony e. zuiker & ken solarz,"SELECT title FROM table_11665016_2 WHERE written_by = ""Anthony E. Zuiker & Ken Solarz""" What was the location for the date 7–10 october?,"SELECT city___state FROM table_26686908_2 WHERE date = ""7–10 October""" Name the total number of main contestants for safe position for tina parekh,"SELECT COUNT(main_contestant) FROM table_18278508_4 WHERE position = ""Safe"" AND co_contestant__yaar_vs_pyaar_ = ""Tina Parekh""" What is the population (1991) when cyrillic name is панчево?,"SELECT MIN(population__1991_) FROM table_2562572_7 WHERE cyrillic_name = ""Панчево""" Who is the home team that played at MCG?,"SELECT home_team AS score FROM table_name_43 WHERE venue = ""mcg""" What is the name of the episode directed by Miguel Arteta?,"SELECT title FROM table_2182654_3 WHERE directed_by = ""Miguel Arteta""" hi. how many countries of origin are represented by the artists?,SELECT count ( country ) from artist "Return the document id, template id, and description for the document with the name Robbin CV.","SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = ""Robbin CV""" What is the score of the away team when the home team is Essendon?,"SELECT away_team AS score FROM table_name_12 WHERE home_team = ""essendon""" List down the full name of Irish patients diagnosed with the prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions.,"SELECT DISTINCT T2.first, T2.last FROM conditions AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient INNER JOIN all_prevalences AS T3 ON T1.DESCRIPTION = T3.ITEM WHERE T2.ethnicity = 'irish' AND 100 * CAST(T3.OCCURRENCES AS REAL) / ( SELECT AVG(OCCURRENCES) FROM all_prevalences ) > 96" "Show the names of aircrafts that are associated with both an airport named ""London Heathrow"" and an airport named ""London Gatwick""","SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Heathrow"" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" What is the completion percentage when yards per attempt was done by Steve McNair : 2003?,"SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = ""Steve McNair : 2003""" "Among the employees who have a pay rate of above 40, how many of them are male?",SELECT SUM(CASE WHEN T2.Gender = 'M' THEN 1 ELSE 0 END) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Rate > 40 "What i the total number of championships less than 2, and a league cup larger than 1?",SELECT COUNT(total) FROM table_name_9 WHERE championship < 2 AND league_cup > 1 What is the home team score that played away team carlton?,"SELECT home_team AS score FROM table_name_60 WHERE away_team = ""carlton""" What is the largest draw with 37 games from England?,"SELECT MAX(drawn) FROM table_name_65 WHERE nationality = ""england"" AND games = 37" What is the elevation of Mount Hagen Kagamuga Airport?,SELECT elevation from airports where name = 'Mount Hagen Kagamuga Airport' How many customers are there in India?,SELECT COUNT(T1.c_custkey) FROM customer AS T1 INNER JOIN nation AS T2 ON T1.c_nationkey = T2.n_nationkey WHERE T2.n_name = 'INDIA' "What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?","SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = ""10"" AND nationality = ""england"" AND position = ""df"" AND club_apps = ""118""" How many of the line items that have a quantity greater than 40 have been shipped by air?,SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity > 40 AND l_shipmode = 'AIR' Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842,"SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = ""isis"" AND date_commissioned < 1842" What is the number played by the team in place greater than 16?,SELECT AVG(played) FROM table_name_43 WHERE position > 16 Which recipe has the highest calories?,SELECT T1.title FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id ORDER BY T2.calories DESC LIMIT 1 Who was the winning team on July 13?,"SELECT winning_team FROM table_name_11 WHERE date = ""july 13""" Which city does has most number of customers?,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 List down all film IDs of comedy film titles.,SELECT T1.film_id FROM film AS T1 INNER JOIN film_category AS T2 ON T1.film_id = T2.film_id INNER JOIN category AS T3 ON T3.category_id = T2.category_id WHERE T3.name = 'comedy' What is the away team score for South Melbourne?,"SELECT away_team AS score FROM table_name_86 WHERE away_team = ""south melbourne""" what's the team where date is february 8,"SELECT team FROM table_11964154_9 WHERE date = ""February 8""" "On June 29, who was the opponent?","SELECT opponent FROM table_name_96 WHERE date = ""june 29""" Who was in the election that was for incumbent bud shuster's seat?,"SELECT opponent FROM table_1341522_41 WHERE incumbent = ""Bud Shuster""" "How many goals are associated with over 97 caps and a Latest cap of april 24, 2013?","SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = ""april 24, 2013"" AND caps > 97" What was the smallest population figure for Mareeba?,SELECT MIN(population__mareeba_) FROM table_12555835_1 "What is the lowest Total, when Year(s) Won is ""1948 , 1950 , 1951 , 1953""?","SELECT MIN(total) FROM table_name_58 WHERE year_s__won = ""1948 , 1950 , 1951 , 1953""" What are the labels' IDs of online shopping and online malls categories?,"SELECT label_id FROM label_categories WHERE category IN ('online shopping', 'online malls')" What is the Tennessee with a Kentucky of Larry Seiple,"SELECT tennessee FROM table_name_11 WHERE kentucky = ""larry seiple""" "How many app users belong to label ID of ""48""?",SELECT COUNT(app_id) FROM app_labels WHERE label_id = 48 What was the name of the city whose temperature in March was lower than that in July?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul What is the team name and acc regular season score of the school that was founded for the longest time?,"SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1" What was the result of rank 1?,SELECT result FROM table_name_73 WHERE rank = 1 "What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller than 96?","SELECT city FROM table_name_69 WHERE spire__m_ = ""105"" AND roof___m__ < 96 AND built = 1985" Who are all the writers of episodes in season 24?,SELECT writer_s_ FROM table_25800134_2 WHERE season__number = 24 What is the maximum number of wins in the formula 3 euro series? ,"SELECT MAX(wins) FROM table_24330803_1 WHERE series = ""Formula 3 Euro series""" On which date was the position less than 4 at Piraeus?,"SELECT date FROM table_name_27 WHERE pos < 4 AND venue = ""piraeus""" Show the names and ids of tourist attractions that are visited at least two times.,"SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2" What country does david gilford play for?,"SELECT country FROM table_name_90 WHERE player = ""david gilford""" How many percent of the mountains on Andes which are non-volcanic?,SELECT CAST(SUM(CASE WHEN type != 'volcano' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM mountain WHERE Mountains = 'Andes' "What is the average page number of the menus that have the dish ""Clear green turtle""?",SELECT AVG(T1.page_number) FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Clear green turtle' How many students are there?,SELECT count ( * ) FROM student What is the Title of the Pye Label mono LP release?,"SELECT title FROM table_name_18 WHERE format = ""mono lp"" AND label = ""pye""" Please show me all the information about each apartment,select * from apartments Which sport resulted in a gold medal in the 2000 Sydney games?,"SELECT sport FROM table_name_41 WHERE medal = ""gold"" AND games = ""2000 sydney""" How many games were played on March 15?,"SELECT COUNT(game) FROM table_17323042_9 WHERE date = ""March 15""" What is the title of episode nominated for WGA Award (TV) with votes greater than 1000?,SELECT DISTINCT T2.title FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T2.votes > 1000 AND T1.award_category = 'WGA Award (TV)' AND T1.result = 'Nominee'; How many rain figures are provided for sunlight hours in 1966?,SELECT COUNT(rain) FROM table_12837_1 WHERE sunlight_hours = 1966 What's the record of Carlos Boozer (23) as the leading scorer?,"SELECT record FROM table_name_83 WHERE leading_scorer = ""carlos boozer (23)""" What are the booking start and end dates of the apartments with more than 2 bedrooms?,"SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2" Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.,SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') "What is Circuit, when Team is ""R.J.MacArthur Onslow"", and when City / State is ""Sydney , New South Wales""?","SELECT circuit FROM table_name_54 WHERE team = ""r.j.macarthur onslow"" AND city___state = ""sydney , new south wales""" List the record company shared by the most number of orchestras.,SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 How old are the students with allergies to food and animal types on average?,"SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""food"" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = ""animal"")" Please list the IDs of all the cars with double sides on trains that run in the west direction.,SELECT T1.id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' AND T1.sides = 'double' What are the amenity id of those?,SELECT T2.amenid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name What is that church a continuation of?,SELECT open_date FROM church order BY open_date desc limit 1 What is the percentage of all the trains with at least 4 cars? List the directions of the said trains.,"SELECT CAST(COUNT(CASE WHEN T2.trailPosi >= 4 THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id UNION ALL SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars t GROUP BY train_id ) AS T2 ON T1.id = T2.train_id AND T2.trailPosi >= 4" What is the description of the department whose name has the substring the computer?,SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' List all employees in the circulation history of the document with id 1. List the employee's name.,SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1; how many wins had series formula renault 2.0 nec and the position is 18th?,"SELECT wins FROM table_26178824_1 WHERE series = ""Formula Renault 2.0 NEC"" AND position = ""18th""" Find the first and last name of all the students of age 18 who have vice president votes.,"SELECT DISTINCT T1.Fname , T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18" Which order has the most recent shipment? Give me the order id.,SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments) How many rooms have king beds? Report the number for each decor type.,"SELECT decor , count(*) FROM Rooms WHERE bedType = ""King"" GROUP BY decor;" "What is the total number of Top-25, when Events is greater than 86?",SELECT COUNT(top_25) FROM table_name_65 WHERE events > 86 "From 1980 to 1983, how many of the NBA All-Star players have more than 60% three point rate?",SELECT DISTINCT T2.playerID FROM player_allstar AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.year BETWEEN 1980 AND 1983 AND T1.three_made / T1.three_attempted > 0.6 How many friends does the high school student Kyle have?,"SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = ""Kyle""" "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.","SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1" How many trucks were manufactured in year 2009?,SELECT COUNT(truck_id) FROM truck WHERE model_year = 2009 What team hosted at Tampa Stadium?,"SELECT host_team FROM table_name_75 WHERE stadium = ""tampa stadium""" "Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage?","SELECT result FROM table_name_63 WHERE lineup = ""start"" AND assist_pass = ""carli lloyd"" AND competition = ""2011 fifa women’s world cup – group stage""" What is the list of distinct product names sorted by product id?,SELECT DISTINCT product_name FROM product ORDER BY product_id What away team score has carlton home team?,"SELECT away_team AS score FROM table_name_85 WHERE home_team = ""carlton""" Please list the top 5 products with the most orders.,"SELECT T1.Name FROM Product AS T1 INNER JOIN SalesOrderDetail AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.Name ORDER BY SUM(T2.OrderQty) DESC LIMIT 0, 5" Where was the Singapore Charity Shield tournament played?,"SELECT location FROM table_name_8 WHERE tournament = ""singapore charity shield""" What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points?,"SELECT SUM(rank) FROM table_name_87 WHERE team = ""tau cerámica"" AND name = ""igor rakočević"" AND points > 377" "What is the difference in the most populated city of Allentown-Bethlehem-Easton, PA-NJ in 2020 against its population in 2010?","SELECT T1.population_2020 - T1.population_2010 AS result_data FROM zip_data AS T1 INNER JOIN CBSA AS T2 ON T1.CBSA = T2.CBSA WHERE T2.CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ' ORDER BY T1.population_2020 DESC LIMIT 1" What was the date that the episode with a production code of 213 was originally aired?,SELECT original_us_air_date FROM table_21831229_3 WHERE prod_code = 213 "What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?","SELECT wins FROM table_name_61 WHERE conference = ""—"" AND division = ""western"" AND season = ""1967–68""" What was the average when the strike rate is 75.78?,"SELECT average FROM table_26041144_10 WHERE strike_rate = ""75.78""" What is the Method of the match with a Time of 4:07?,"SELECT method FROM table_name_53 WHERE time = ""4:07""" Can you list the uids and names of all users?,"SELECT uid, name FROM user_profiles" "Find the first and last name of the staff members who reported problems from the product ""rem"" but not ""aut""?","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""rem"" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""aut""" What is the grade of each high schooler?,SELECT grade FROM Highschooler Which team has a home field at Glenferrie Oval?,"SELECT home_team FROM table_name_48 WHERE venue = ""glenferrie oval""" "What is Position in Table, when Replaced By is ""Sergio Bueno""?","SELECT position_in_table FROM table_name_21 WHERE replaced_by = ""sergio bueno""" What are goals scored when postition is 17 and tied is 5?,SELECT goals_scored FROM table_28848697_4 WHERE position = 17 AND tied = 5 What are the different states that had students successfully try out?,SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' When was there a team of Simon and the start was 3?,"SELECT year FROM table_name_48 WHERE team = ""simon"" AND start = ""3""" In what city is RJSN located?,"SELECT city FROM table_name_57 WHERE icao = ""rjsn""" "What is total number of the to par of player john mahaffey, who has a total less than 298?","SELECT COUNT(to_par) FROM table_name_9 WHERE player = ""john mahaffey"" AND total < 298" What are the maximum and minimum settlement amount on record?,"SELECT max(settlement_amount) , min(settlement_amount) FROM settlements" State the explanation about object class 10.,SELECT OBJ_CLASS FROM OBJ_CLASSES WHERE OBJ_CLASS_ID = 10 "What is the name of the director of photography of the movie ""Pirates of the Caribbean: At World's End""?",SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Director of Photography' How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?,"SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = ""Rylan"" AND T2.last_name = ""Goodwin"" AND T1.lesson_status_code = ""Completed""" Which director is from Italy?,"SELECT director FROM table_name_41 WHERE country = ""italy""" What was the result when the opponent was Rory Markham?,"SELECT res FROM table_name_96 WHERE opponent = ""rory markham""" What is the fewest shots a glazing can handle?,SELECT MIN(shots) FROM table_21538523_1 Name the winner for ss14,"SELECT winner FROM table_name_82 WHERE stage = ""ss14""" How many schools in Suffolk County have Ph.D. teachers?,SELECT COUNT(schoolid) FROM projects WHERE teacher_prefix = 'Dr.' AND school_county = 'Suffolk' Which AFC cup does Kenji Arai have?,"SELECT afc_cup FROM table_name_43 WHERE name = ""kenji arai""" What is the id of the event with the most participants?,SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY count(*) DESC LIMIT 1 In how many movie does Dariusz Wolski work as the director of photography?,SELECT COUNT(T2.movie_id) FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Dariusz Wolski' AND T2.job = 'Director of Photography' Who were the comedians on episode 1x03?,"SELECT comedians FROM table_23122988_1 WHERE episode = ""1x03""" "What's the sum of WIns with Draws that's larger than 1, Losses that's smaller than 4, and Conceded of 20?",SELECT SUM(wins) FROM table_name_82 WHERE draws > 1 AND losses < 4 AND conceded = 20 What are the numbers of steals associated with players having exactly 3 blocks?,SELECT steals FROM table_24913533_4 WHERE blocks = 3 Can you list the names of all the swimmers who have won more than once?,SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING count ( * ) > 1 In what Week was the Locking Dance?,"SELECT MAX(week) FROM table_name_16 WHERE dance = ""locking""" Which rank is 40 for s Wicket with a player of Daniel Marsh?,"SELECT rank FROM table_name_63 WHERE s_wicket = ""40"" AND player = ""daniel marsh""" Who was the opponent at Ullevi?,"SELECT opponents FROM table_name_22 WHERE venue = ""ullevi""" Which Gender has a Residence of Haliburton?,"SELECT gender FROM table_name_28 WHERE residence = ""haliburton""" Which Tournament has a Winning score of −14 (65-69-72-68=274)?,SELECT tournament FROM table_name_18 WHERE winning_score = −14(65 - 69 - 72 - 68 = 274) Who was the builder for the USS cambridge?,"SELECT builder FROM table_name_98 WHERE name = ""uss cambridge""" Was the game with Kashima antlers at home or away?,"SELECT h___a FROM table_name_86 WHERE opponents = ""kashima antlers""" What is the IATA for Nanjing?,"SELECT iata FROM table_name_85 WHERE city = ""nanjing""" "Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?","SELECT accession_number FROM table_name_29 WHERE protein_name = ""ccdc165"" AND divergence_from_human_lineage__mya_ < 296" Provide the game publisher's name of the game with sales greater than 90% of the average sales in Japan.,SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T2.num_sales * 10000000 > ( SELECT AVG(T2.num_sales) * 100000 * 90 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' ) What is the date of the label Dos or Die Recordings?,"SELECT date FROM table_name_9 WHERE label = ""dos or die recordings""" What is the highest attendance of the game with eastwood town as the away team?,"SELECT MAX(attendance) FROM table_name_46 WHERE away_team = ""eastwood town""" What is the average cost of procedures that physician John Wen was trained in?,"SELECT avg(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = ""John Wen""" What is the average round of the number 16 pick?,"SELECT AVG(round) FROM table_name_72 WHERE pick = ""16""" What is the time for Sheffield?,"SELECT time FROM table_name_15 WHERE city = ""sheffield""" What event had Xu Zhilin competing?,"SELECT event FROM table_name_21 WHERE name = ""xu zhilin""" Find out which hotel and travel business having the most review? Calculate the standard deviation of the review star for this business.,SELECT T2.category_id FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Reviews AS T3 ON T3.business_id = T1.business_id WHERE T2.category_name = 'Hotels & Travel' GROUP BY T2.category_id ORDER BY COUNT(T2.category_id) DESC LIMIT 1 Which country is the airport that has the highest altitude located in?,SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 What role is Kevin Bishop the actor?,"SELECT role FROM table_name_18 WHERE actor = ""kevin bishop""" Name the most wins,SELECT MIN(wins) FROM table_15327489_1 Find the title of courses that have two prerequisites?,SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2 When collingwood played as the home team who was the away team?,"SELECT away_team FROM table_name_88 WHERE home_team = ""collingwood""" Give the name of the student in the History department with the most credits.,SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1 What episode number of the season had BCW410 as a production code?,"SELECT no_in_season FROM table_24319661_5 WHERE production_code = ""BCW410""" "Which Rank has a Club of zulte waregem, and Points larger than 22?","SELECT COUNT(rank) FROM table_name_93 WHERE club = ""zulte waregem"" AND points > 22" How many athletes took part in the Olympic games held in Barcelona?,SELECT COUNT(T1.person_id) FROM games_competitor AS T1 INNER JOIN games_city AS T2 ON T1.games_id = T2.games_id INNER JOIN city AS T3 ON T2.city_id = T3.id WHERE T3.city_name = 'Barcelona' List the business located in Mesa that have alcohol attribute.,SELECT T1.business_id FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Mesa' AND T3.attribute_name = 'Alcohol' "What are the building full names that contain the word ""court""?","SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE ""%court%""" What is the freestyle leg for the Netherlands?,"SELECT freestyle_leg FROM table_name_69 WHERE country = ""netherlands""" What is the decor of room Recluse and defiance?,"SELECT decor FROM Rooms WHERE roomName = ""Recluse and defiance""" What are the clerks of orders with line items shipped by mail?,SELECT T1.o_clerk FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'MAIL' What was the latest release date for Ariola in Spain?,"SELECT MAX(release_date) FROM table_name_3 WHERE label = ""ariola"" AND country = ""spain""" "Among all the tweets sent by male users in Argentina, what is the text of the one with the most number of likes?",SELECT T2.text FROM user AS T1 INNER JOIN twitter AS T2 ON T1.UserID = T2.UserID INNER JOIN location AS T3 ON T2.LocationID = T3.LocationID WHERE T3.Country = 'Argentina' AND T1.Gender = 'Male' ORDER BY T2.Likes DESC LIMIT 1 How many yards for the player with 1 solo tackle and over 0 sacks?,SELECT MAX(yards) FROM table_name_25 WHERE solo = 1 AND sack > 0 What team drove a Dodge vehicle?,"SELECT team FROM table_name_27 WHERE make = ""dodge""" Please list each title with its maximum price.,"SELECT T1.title, max ( price ) from film as T1 join schedule as T2 on T1.film_id = T2.film_id group by T1.film_id" Was there a starter when 3 touchdowns were scored?,SELECT starter FROM table_14342592_7 WHERE touchdowns = 3 What is the Score of Stewart Cink with a To par of +4?,"SELECT score FROM table_name_50 WHERE to_par = ""+4"" AND player = ""stewart cink""" Who is in group c when iowa is in group e?,"SELECT group_c FROM table_15290638_1 WHERE group_e = ""Iowa""" FIND THE all CHECKING BALANCE OF ALL ACCOUNTS,SELECT balance FROM checking What is the Home team when the Attendance was 1920?,SELECT home FROM table_name_20 WHERE attendance = 1920 "What was the percentage for the answer of ""Yes"" was given to the question ""Has your employer ever formally discussed mental health (for example, as part of a wellness campaign or other official communication)?""?","SELECT CAST(SUM(CASE WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Has your employer ever formally discussed mental health (for example, as part of a wellness campaign or other official communication)?'" Which number has 11 males?,"SELECT number FROM table_name_41 WHERE males = ""11""" What was the score of the game when the Indians ended up with a record of 55-51?,"SELECT score FROM table_name_33 WHERE record = ""55-51""" What is the name of the county with the greatest population?,SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1 What is the name of the driver in 1955?,"SELECT driver FROM table_name_18 WHERE year = ""1955""" WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC?,"SELECT 1 AS st_leg FROM table_name_5 WHERE team_2 = ""athletic""" "Who is performing in the back stage position for the song ""Der Kapitan""? Show the first name and last name.","SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = ""Der Kapitan"" AND T1.StagePosition = ""back""" What is the tournament when 2012 is q2?,"SELECT tournament FROM table_name_64 WHERE 2012 = ""q2""" What are the different card type codes?,SELECT DISTINCT card_type_code FROM Customers_Cards "Among players who were born after 1950, who had offence rebounds rates more than 30%? Please list their last names and first names.","SELECT DISTINCT T1.lastName, T1.firstName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthDate > 1950 AND CAST(T2.o_rebounds AS REAL) * 100 / T2.rebounds > 30" Which arranger worked with composer Imad Shams Eldeen at 4:03?,"SELECT arranger FROM table_name_19 WHERE composer = ""imad shams eldeen"" AND length = ""4:03""" What is the type for the population in 2011 of 1004?,SELECT type FROM table_2562572_43 WHERE population__2011_ = 1004 How many try bonuses were there when there were 64 tries for?,"SELECT try_bonus FROM table_12792876_2 WHERE tries_for = ""64""" Who is the Trainer with the Year of 2013?,"SELECT trainer FROM table_name_33 WHERE year = ""2013""" What is the point classification of stage 15?,"SELECT points_classification FROM table_name_92 WHERE stage = ""15""" What was the highest long with less than 7 losses and an Avg/G smaller than 25.1?,SELECT MAX(long) FROM table_name_3 WHERE loss < 7 AND avg_g < 25.1 Which show aired on 19 april?,"SELECT show FROM table_name_81 WHERE date = ""19 april""" What are the first names and last names of students with address in Wisconsin state?,"SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = ""Wisconsin""" How many total players came from the school/club team of De La Salle?,"SELECT COUNT(number) FROM table_name_62 WHERE school_club_team = ""de la salle""" Show the name of track and the number of races in each track.,"SELECT T2.name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id" How many enzymes do not have any interactions?,SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction ); What is their record on April 2?,"SELECT record FROM table_name_59 WHERE date = ""april 2""" List the names of perpetrators in descending order of the year.,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Year DESC; Sort the information about course authors and tutors in alphabetical order of the personal name.,SELECT * FROM Course_Authors_and_Tutors ORDER BY personal_name Show the leader names and locations of colleges.,"SELECT Leader_Name , College_Location FROM college" Tell me the nationality for rudolf vercik,"SELECT nationality FROM table_name_51 WHERE player = ""rudolf vercik""" How many Professors are in building NEB?,"SELECT count(*) FROM Faculty WHERE Rank = ""Professor"" AND building = ""NEB""" What was the name of the tournament that the final was played against Yi Jingqian?,"SELECT tournament FROM table_name_89 WHERE opponent_in_the_final = ""yi jingqian""" What Location Attendance has a Game of 14?,"SELECT location_attendance FROM table_name_91 WHERE game = ""14""" what is the composer of genre id 1,SELECT composer from tracks where genre_id = 1 "Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?",SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10 What are the maximum and minumum grade points?,"SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION" What is the distance of the name Boeing 747-400? | did you mean the distance of the aircraft with the name Boeing 747-400? | yes,SELECT distance FROM Aircraft where name = 'Boeing 747-400' Where did they play the San Diego Chargers?,"SELECT game_site FROM table_13259009_2 WHERE opponent = ""San Diego Chargers""" How many songs received a 10 from Goodman and were rated by Tonioli?,"SELECT COUNT(tonioli) FROM table_1014319_1 WHERE goodman = ""10""" "How many votes did Others receive where Kerry has 44.6%, and Bush more than 163,650 votes?","SELECT COUNT(others__number) FROM table_name_65 WHERE kerry__percentage = ""44.6%"" AND bush__number > 163 OFFSET 650" What is the average age of the sales agents in the company by 12/31/2009?,"SELECT AVG(2009 - STRFTIME('%Y', T2.BirthDate)) FROM Person AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.PersonType = 'SP'" "For part 2 *lauk, what is listed for part 4?","SELECT part_4 FROM table_1745843_2 WHERE part_2 = ""*lauk""" "In games that can be played on Wii, what is the percentage of games released in 2007?",SELECT CAST(COUNT(CASE WHEN T2.release_year = 2007 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 T1.platform_name = 'Wii' What type of food is there in the restaurants on Adeline Street in Berkeley city?,SELECT T1.food_type FROM generalinfo AS T1 INNER JOIN location AS T2 ON T1.id_restaurant = T2.id_restaurant WHERE T2.street_name = 'adeline st' AND T2.city = 'berkeley' Where is the professor of accounting's office?,SELECT T3.prof_office FROM professor AS T3 JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting' What is the last episode in the series written by Gregory S. Malins?,"SELECT MAX(no_s__in_series) FROM table_27714985_1 WHERE written_by = ""Gregory S. Malins""" Calculate the average score of Emory University from 2011 to 2016.,SELECT AVG(T1.score) FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Emory University' AND T1.year BETWEEN 2011 AND 2016 Find the number of trains starting from each origin.,"SELECT origin , count(*) FROM train GROUP BY origin;" what's the average time of purchase for white membership card?,"SELECT avg ( time_of_purchase ) FROM member WHERE membership_card = ""White""" What round was the game against Cedric Marks?,"SELECT round FROM table_name_39 WHERE opponent = ""cedric marks""" what is the withdrawal when the lb&sc number is less than 16 and the s.r. number is 2011?,SELECT withdrawal FROM table_name_95 WHERE lb & sc_number < 16 AND sr_number = 2011 Which team had Christoph John as an outgoing manager?,"SELECT team FROM table_name_45 WHERE outgoing_manager = ""christoph john""" What are the ids of the top 3 expensive rooms?,SELECT RoomId FROM Rooms ORDER BY basePrice desc LIMIT 3 What is the number of Seats for Leader Enda kenny?,"SELECT seats FROM table_name_49 WHERE leader = ""enda kenny""" How many games did Electronic Arts publish?,SELECT COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id WHERE T1.publisher_name = 'Electronic Arts' What are the grapes and appelations of each wine?,"SELECT Grape , Appelation FROM WINE" How many employees work in that department?,SELECT count ( * ) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance' Find the maximum and minimum monthly rental for all student addresses.,"SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses" "What is the total quantity of products purchased by ""Rodrick Heaney""?","SELECT sum(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = ""Rodrick Heaney""" What was the cause of death in the marriage that lasted 28 years? ,"SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = ""28 years""" What are the names of players who get more than the average points?,SELECT name FROM player WHERE points > ( SELECT avg ( points ) FROM player ) In which city is the brewery AJ Stephans Beverages located?,SELECT City FROM rootbeerbrand WHERE BreweryName = 'AJ Stephans Beverages' List down player ID of players who have passed away.,SELECT DISTINCT playerID FROM Master WHERE deathYear IS NOT NULL AND playerID IS NOT NULL Show the number of male and female assistant professors.,"SELECT sex , count(*) FROM Faculty WHERE rank = ""AsstProf"" GROUP BY sex" Tell me the most crowd for arden street oval venue,"SELECT MAX(crowd) FROM table_name_39 WHERE venue = ""arden street oval""" "Can you tell me the sum of Laps that has the Manufacturer of kawasaki, and the Grid smaller than 7?","SELECT SUM(laps) FROM table_name_88 WHERE manufacturer = ""kawasaki"" AND grid < 7" "Among the users who use a Galaxy Note 2, how many of them are female?",SELECT COUNT(T1.device_id) FROM phone_brand_device_model2 AS T1 INNER JOIN gender_age AS T2 ON T2.device_id = T1.device_id WHERE T2.gender = 'F' AND T1.device_model = 'Galaxy Note 2' what is the total number of customers?,SELECT COUNT ( * ) from Customers Calculate the average payment amount per customer.,SELECT AVG(amount) FROM payment GROUP BY customer_id Which players have a pick number of 27?,SELECT player FROM table_10975034_4 WHERE pick__number = 27 Name the commissioned-decommissioned for NVR page of aor-7,"SELECT commissioned__decommissioned FROM table_name_17 WHERE nvr_page = ""aor-7""" How many categories in total do the app users who were not active when event no.2 happened belong to?,SELECT COUNT(*) FROM ( SELECT COUNT(DISTINCT T1.category) AS result FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id INNER JOIN app_events AS T3 ON T2.app_id = T3.app_id WHERE T3.event_id = 2 AND T3.is_active = 0 GROUP BY T1.category ) T "rank the furniture according to the number of pieces available | Do you want a list of furniture name sorted by its corresponding number of component? | Yes, Name and corresponding number of components.","SELECT name, num_of_component FROM furniture ORDER BY num_of_component" How many orders did Antonia Poltun return?,SELECT COUNT(*) FROM order_status AS T1 INNER JOIN order_history AS T2 ON T1.status_id = T2.status_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.status_value = 'Returned' AND T4.first_name = 'Antonia' AND T4.last_name = 'Poltun' "Among the countries whose government type is republic, how many of them shares a border that's longer than 200?",SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Government = 'republic' AND T3.Length > 200 What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?,"SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = ""802.11b""" How many distinct delegates are from counties with population larger than 50000?,SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000 "WHich Category in White has a Amerindian of 4,87%?","SELECT white FROM table_name_96 WHERE amerindian = ""4,87%""" What are the Package Options of the TV Channels whose series names are Sky Radio?,"SELECT Package_Option FROM TV_Channel WHERE series_name = ""Sky Radio"";" What was the winning score in the Alfred Dunhill links championship?,"SELECT winning_score FROM table_name_35 WHERE tournament = ""alfred dunhill links championship""" Who was the outgoing manager when the incoming manager was joão pereira?,"SELECT outgoing_manage FROM table_17933600_2 WHERE incoming_manager = ""João Pereira""" Name The Score of Player of seve ballesteros?,"SELECT score FROM table_name_86 WHERE player = ""seve ballesteros""" "Who was the player in Round 7, on the MWEHL Team Detroit Honeybaked, and the NHL Team, Philadelphia Flyers teams?","SELECT player FROM table_name_32 WHERE round = ""7"" AND mwehl_team = ""detroit honeybaked"" AND nhl_team = ""philadelphia flyers""" How many mountains are there on the African Continent?,SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN province AS T4 ON T4.Country = T1.Code INNER JOIN geo_mountain AS T5 ON T5.Province = T4.Name WHERE T3.Name = 'European' Which finish has 1 as the rank?,"SELECT finish FROM table_name_95 WHERE rank = ""1""" Original title of das leben der anderen had what director?,"SELECT director FROM table_name_28 WHERE original_title = ""das leben der anderen""" What two players had the highest rebounds for the October 14 game?,"SELECT high_rebounds FROM table_27733258_2 WHERE date = ""October 14""" Show all the faculty ranks and the number of students advised by each rank.,"SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank" What is the Club that has an Established more than 2000 for soccer plated in kuntz stadium?,"SELECT club FROM table_name_90 WHERE established > 2000 AND sport = ""soccer"" AND venue = ""kuntz stadium""" Which player from A-League 39 (110) has the highest games per goal?,"SELECT MAX(games_per_goal) FROM table_name_34 WHERE a_league = ""39 (110)""" "Opponent of @ braves, and a Loss of pelfrey (2–5) had what score?","SELECT score FROM table_name_88 WHERE opponent = ""@ braves"" AND loss = ""pelfrey (2–5)""" "What is the latitude, longitude, city of the station from which the shortest trip started?","SELECT T1.lat , T1.long , T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1" "How many universities have at least 80,000 students in the year 2011?",SELECT COUNT(*) FROM university_year WHERE num_students > 80000 AND year = 2011 "Among the active employees with over 10 hours of sick leave, what is the percentage of the employees with over 20 vacation hours?",SELECT CAST(SUM(CASE WHEN T2.VacationHours > 20 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Employee AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.CurrentFlag = 1 AND T2.SickLeaveHours > 10 "Find the attribute data type for the attribute named ""Green"".","SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = ""Green""" Name the total number of nicknames for andrew college,"SELECT COUNT(nickname) FROM table_16734640_1 WHERE institution = ""Andrew College""" "For all words cited in paper ID 315017, state the other paper ID and class label which also cited those words.","SELECT T1.class_label, T2.word_cited_id FROM paper AS T1 INNER JOIN content AS T2 ON T1.paper_id = T2.paper_id WHERE T1.paper_id = 315017" What is the oldest year that the location was at Guangzhou?,"SELECT MIN(year) FROM table_name_1 WHERE location = ""guangzhou""" Show all director names who have a movie in both year 1999 and 2000.,SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999 Which professor is Oliy Spratling working with? Give the full name.,"SELECT T1.first_name, T1.last_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.f_name = 'Oliy' AND T3.l_name = 'Spratling'" what is highest num of component?,SELECT Num_of_Component FROM furniture order by Num_of_Component desc limit 1 "Which Partner has a Score in Final of 6–1, 6–2?","SELECT partner FROM table_name_94 WHERE score_in_final = ""6–1, 6–2""" How long does student Linda Smith spend on the restaurant in total?,"SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = ""Linda"" AND Student.Lname = ""Smith""" what parties have at least three representatives,SELECT Party FROM representative GROUP BY Party HAVING COUNT ( * ) > = 3 Can you list the base price for all rooms?,SELECT basePrice FROM Rooms "Among paragraphs with paragraph number between 1900 to 1950, list the texts said by a character described as a sea captain, friend to Sebatian.","SELECT T1.description FROM characters AS T1 INNER JOIN paragraphs AS T2 ON T1.id = T2.character_id WHERE T2.PlainText = 'a sea captain, friend to Sebastian' AND T2.ParagraphNum BETWEEN 1500 AND 1950" Count the number of video games with Massively multiplayer online game type .,"SELECT count(*) FROM Video_games WHERE gtype = ""Massively multiplayer online game""" "Which Points have a Score of 3–3, and a Date of november 11?","SELECT points FROM table_name_4 WHERE score = ""3–3"" AND date = ""november 11""" What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award?,"SELECT MAX(year) FROM table_name_54 WHERE nominated_work = ""the mineola twins"" AND category = ""outstanding actress in a play"" AND award = ""drama desk award""" Where is the Xian ren Qiao (fairy bridge) located?,"SELECT location FROM bridge WHERE name = ""Xian Ren Qiao ( Fairy Bridge ) """ How many years have a weeks at #1 value of exactly 8?,SELECT COUNT(year) FROM table_27441210_6 WHERE weeks_at__number1 = 8 "Among the genes with nucleic acid metabolism defects, how many of them can be found in the vacuole?",SELECT COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Classification AS T2 ON T1.GeneID = T2.GeneID WHERE T2.Localization = 'vacuole' AND T1.Phenotype = 'Nucleic acid metabolism defects' Which band has a current freq of 8tab (hpon)?,"SELECT band FROM table_name_80 WHERE freq_currently = ""8tab (hpon)""" What is the highest rank of an athlete from Switzerland in a heat larger than 3?,"SELECT MAX(rank) FROM table_name_54 WHERE heat > 3 AND nationality = ""switzerland""" What is the date the customer with last name Bernhard become a customer?,"SELECT date_became_customer FROM Customers WHERE last_name = ""Bernhard""" Which party does Christopher Henderson Clark belong to?,SELECT T1.party FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name OR T2.middle_name OR T2.last_name = 'ChristopherHendersonClark' Find the total number of employees.,SELECT count(*) FROM employee "Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau?","SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = ""miguel grau""" Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.,"SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Sales Person"" EXCEPT SELECT T1.staff_name , T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = ""Clerical Staff""" When 1995 is the year what is the open cup?,"SELECT open_cup FROM table_1986692_1 WHERE year = ""1995""" How many exhibition are there in year 2005 or after?,SELECT count(*) FROM exhibition WHERE YEAR >= 2005 "How many episodes were written by seth hoffman, russel friend & garrett lerner?","SELECT COUNT(rank__week_) FROM table_28026156_1 WHERE written_by = ""Seth Hoffman, Russel Friend & Garrett Lerner""" Which classroom has the most students?,SELECT classroom FROM list GROUP BY classroom ORDER BY count ( * ) DESC LIMIT 1 What is the most common major?,SELECT Major FROM Student group by Major order by count ( * ) desc limit 1 "what was my savings amount balance? | Sorry, what is your customer id? | 1339",SELECT * FROM savings WHERE custid = 1339 Sum of cuyo selection as the opposing team?,"SELECT SUM(against) FROM table_name_86 WHERE opposing_team = ""cuyo selection""" Thank you for that! Can you show me the names of all colleges with an enrollment value that is greater than the total enrollment of all of the colleges in the state of FL?,SELECT cName FROM college What is the Right Ascension with a Diffuse Nebula Object Type has a °42′30″ Declination and a NGC less than 6995?,"SELECT right_ascension___j2000__ FROM table_name_14 WHERE ngc_number < 6995 AND object_type = ""diffuse nebula"" AND declination___j2000__ = ""°42′30″""" What's the number & name for the date after 1954?,SELECT number_ & _name FROM table_name_28 WHERE date > 1954 Sort all the rooms according to the price. Just report the room names.,SELECT roomName FROM Rooms ORDER BY basePrice; What is the Year of the Film Belle of the Nineties?,"SELECT year FROM table_name_22 WHERE film = ""belle of the nineties""" What is the function of 1.4 version of Windows live messenger? ,"SELECT function FROM table_18138132_2 WHERE version = ""1.4"" AND title = ""Windows Live Messenger""" "What Away team had an Attendance of 3,395?","SELECT away_team FROM table_name_68 WHERE attendance = ""3,395""" What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there.,"SELECT Country , COUNT(*) FROM perpetrator GROUP BY Country;" Who had the high points on February 6?,"SELECT high_points FROM table_17311797_8 WHERE date = ""February 6""" Who was the gorham principal in 2010-2011?,"SELECT gorham_principal FROM table_25037577_1 WHERE year = ""2010-2011""" "Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?","SELECT rank_points FROM table_name_75 WHERE event = ""wc beijing"" AND score_points = ""13"" AND total = ""18""" "Among the students with payment due, how many of them are unemployed?",SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.bool = 'pos' Find all the policy types that are used by more than 2 customers.,SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2 "List out the full name of employee who has birth day on ""3/4/1955 12:00:00 AM"".","SELECT FirstName, LastName FROM Employees WHERE BirthDate = '1955-03-04 00:00:00'" "Which League showed 7,975 for an average attendance?","SELECT league FROM table_name_20 WHERE attendance_average = ""7,975""" Name 10 products that were shipped first class from the East region.,SELECT T2.`Product Name` FROM east_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'First Class' AND T2.Region = 'East' LIMIT 10 Which historical legislators are members of the National Greenbacker party? Write their first and last names.,"SELECT T2.first_name, T2.last_name FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.party = 'National Greenbacker'" How many products have a price higher than the average?,SELECT count(*) FROM products WHERE product_price > (SELECT avg(product_price) FROM products) Tell me the call sign for frequency of 0 97.3 fm,"SELECT call_sign FROM table_name_67 WHERE frequency = ""0 97.3 fm""" What are their birthdays?,SELECT distinct T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5 What is the overall total for players drafted from notre dame?,"SELECT SUM(overall) FROM table_name_25 WHERE college = ""notre dame""" What is game 9's record?,SELECT record FROM table_name_36 WHERE game = 9 Who is the commanding officer in the district with the highest number of reported crimes where no arrest has been made?,SELECT T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.arrest = 'FALSE' GROUP BY T2.commander ORDER BY COUNT(T1.report_no) DESC LIMIT 1 What is the average rank of the match where offaly was the opposition and the total was greater than 9?,"SELECT AVG(rank) FROM table_name_5 WHERE opposition = ""offaly"" AND total > 9" What is the place of plyaer Tim Herron from the United States with a to par of +1?,"SELECT place FROM table_name_15 WHERE country = ""united states"" AND to_par = ""+1"" AND player = ""tim herron""" What is the name of this storm?,SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' What is the Crowd for the Venue of Princes Park?,"SELECT crowd FROM table_name_88 WHERE venue = ""princes park""" And where is that college located?,"SELECT T1.city, T1.state, T1.country FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count ( * ) DESC LIMIT 1" What is the most recent year that Gulf Racing Middle East won?,"SELECT MAX(year) FROM table_name_91 WHERE team = ""gulf racing middle east""" Which word has the most appearances in the Wikipedia page revision ID No. 28278070? Give the word ID.,SELECT pid FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE revision = 28278070 ) ORDER BY occurrences DESC LIMIT 1 What is Ryan Goodwin's date of birth?,"SELECT date_of_birth from Customers where first_name = ""Rylan"" AND last_name = ""Goodwin""" What are the top 10 customers' first and last names by total number of orders and how many orders did they make?,"SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;" Show the number of all customers without an account.,SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts) What is the Tie no at the Hull City Home game with a Score of 1–1?,"SELECT tie_no FROM table_name_80 WHERE score = ""1–1"" AND home_team = ""hull city""" Find the policy types more than 4 customers use. Show their type code.,SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4 What is the course title of the prerequisite of course Mobile Computing?,SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') What is the number of the rank for the name of Chen Yan in a lane less than 2?,"SELECT COUNT(rank) FROM table_name_89 WHERE name = ""chen yan"" AND lane < 2" "Among all the tweets that are reshared, how many of them are posted by a user in Buenos Aires?",SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.City = 'Buenos Aires' AND T1.IsReshare = 'TRUE' What are the names of products that are not 'white' in color and are not measured by the unit 'Handful'?,"SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = ""white"" AND t2.unit_of_measure != ""Handful""" What was the date when the pitcher was Jason Marquis and the length was 410'?,"SELECT date FROM table_name_69 WHERE pitcher = ""jason marquis"" AND length = ""410'""" What is the Total for the Player who won in 1936?,"SELECT COUNT(total) FROM table_name_66 WHERE year_s__won = ""1936""" "If the start (utc) is November 18, 2008 18:09, what is the name of the spacecraft?","SELECT spacecraft FROM table_22385461_9 WHERE start___utc__ = ""November 18, 2008 18:09""" Find the male friend of Alice whose job is a doctor?,SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor' what is the rank of adam gilchrist,"SELECT COUNT(rank) FROM table_19870086_24 WHERE player = ""Adam Gilchrist""" What team has 102 Points against?,"SELECT team FROM table_name_61 WHERE points_against = ""102""" What is the team 1 with nîmes olympique (d2) as team 2?,"SELECT team_1 FROM table_name_66 WHERE team_2 = ""nîmes olympique (d2)""" Find the Yelp user with the average 5-star rating of all reviews who has been yelping the longest.,SELECT user_id FROM Users WHERE user_average_stars = 5 ORDER BY user_yelping_since_year ASC LIMIT 1 "How many days did it take to end the work order ""425""?","SELECT 365 * (STRFTIME('%Y', ActualEndDate) - STRFTIME('%Y', ActualStartDate)) + 30 * (STRFTIME('%m', ActualEndDate) - STRFTIME('%m', ActualStartDate)) + STRFTIME('%d', ActualEndDate) - STRFTIME('%d', ActualStartDate) FROM WorkOrderRouting WHERE WorkOrderID = 425" "What are the names of ships, ordered by year they were built and their class?","SELECT name FROM ship ORDER BY built_year , CLASS" What is the Record from February 10?,"SELECT record FROM table_name_47 WHERE date = ""february 10""" "How about for all employees with the role name ""Human Resource""?","SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = ""Human Resource""" What was the attendance when the opponent was virginia?,"SELECT SUM(attendance) FROM table_name_96 WHERE opponent = ""virginia""" "Which average Total has a Place smaller than 2, and a Draw smaller than 5?",SELECT AVG(total) FROM table_name_99 WHERE place < 2 AND draw < 5 How many followers do the most followed repository on Github have? Give the github address of the repository.,"SELECT Forks, Url FROM Repo WHERE Forks = ( SELECT MAX(Forks) FROM Repo )" What player scored 70-72-70=212?,SELECT player FROM table_name_35 WHERE score = 70 - 72 - 70 = 212 What are the codes of all the courses that are located in room KLR209?,SELECT class_code FROM CLASS WHERE class_room = 'KLR209' Name the 1st match for brisbane bears,"SELECT 1 AS st_match FROM table_name_61 WHERE team = ""brisbane bears""" How many loses does the team have that conceded 25 and won more than 6 games?,SELECT SUM(losses) FROM table_name_6 WHERE conceded = 25 AND wins > 6 What is the average Apr 2013 with a Jun 2011 less than 14?,SELECT AVG(apr_2013) FROM table_name_76 WHERE jun_2011 < 14 "What country had the publication, Drowned in Sound?","SELECT country FROM table_name_22 WHERE publication = ""drowned in sound""" "LIST THE DATES OF ENROLLMENT AND COMPLETION OF THE STUDENT WITH PERSONAL NAME ""KARSON""?","SELECT T1.date_of_enrolment , T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = ""Karson""" "Yes, what is the class time? | Do you want to know all class time? | NO, only for ACCT-211","SELECT CLASS_TIME from CLASS where CRS_CODE = ""ACCT-211""" Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.,SELECT DISTINCT T3.email FROM order_line AS T1 INNER JOIN cust_order AS T2 ON T2.order_id = T1.order_id INNER JOIN customer AS T3 ON T3.customer_id = T2.customer_id WHERE T1.price BETWEEN 3 AND 5 How many times was the award inte awards?,"SELECT COUNT(year) FROM table_name_90 WHERE award = ""inte awards""" Can you please list the name of that 1 customer please?,"SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""On Road"" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = ""Shipped""" Who was the opponent the falcons played against on week 3?,SELECT opponent FROM table_name_87 WHERE week = 3 Name the title with the highest price published by 'Binnet & Hardley'.,SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T2.pub_name = 'Binnet & Hardley' ORDER BY T1.price DESC LIMIT 1 WHAT IS THE NAME OF THE PERPETRATOR WITH THE BIGGEST WEIGHT ?,SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1 "Among the trains that run in the east direction, how many of them have more than 2 long cars?","SELECT SUM(CASE WHEN T2.longCarsNum > 2 THEN 1 ELSE 0 END)as count FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS longCarsNum FROM cars WHERE len = 'long' GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T1.direction = 'west'" "What are the booking start and end dates of the apartments with type code ""Duplex""?","SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = ""Duplex""" How many artists have album?,SELECT count ( distinct artistid ) FROM ALBUM Find the number of complaints with Product Failure type for each complaint status.,"SELECT complaint_status_code , count(*) FROM complaints WHERE complaint_type_code = ""Product Failure"" GROUP BY complaint_status_code" How many clients under the age of 35 gave Eagle National Mortgage 1 star?,SELECT COUNT(T2.age) FROM reviews AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T1.Product = 'Eagle National Mortgage' AND T1.Stars = 1 AND T2.age < 35 Who is listed under general classification on stage 4?,SELECT general_classification FROM table_27112708_2 WHERE stage = 4 How many Sports games did Nintendo publish?,SELECT COUNT(T3.id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' AND T1.publisher_name = 'Nintendo' "What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?","SELECT category FROM table_name_64 WHERE result = ""nominated"" AND year = 2006 AND title = ""pierrepoint""" What was the date for Round 2r?,"SELECT date FROM table_name_5 WHERE round = ""2r""" Name the directed by for 15.15 viewers,"SELECT directed_by FROM table_16617011_1 WHERE us_viewers__millions_ = ""15.15""" What are the African countries that have a population less than any country in Asia?,"SELECT Name FROM country WHERE Continent = ""Africa"" AND population < (SELECT max(population) FROM country WHERE Continent = ""Asia"")" List the names of companies by ascending number of sales.,SELECT Name FROM company ORDER BY Sales_in_Billion ASC what is the total number of date where visitor is new jersey nets,"SELECT COUNT(date) FROM table_11964047_5 WHERE visitor = ""New Jersey Nets""" How many new entries this round are there with more than 16 matches and a third round qualifying?,"SELECT new_entries_this_round FROM table_name_90 WHERE matches > 16 AND round = ""third round qualifying""" Report the first name and last name of all the students.,"SELECT DISTINCT firstname , lastname FROM list" What's the production code of the episode seen by 11.64 million US viewers?,"SELECT production_code FROM table_12159115_2 WHERE us_viewers__millions_ = ""11.64""" "Find the first and last name of the staff members who reported problems FROM the product ""rem"" but not ""aut""?","SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""rem"" EXCEPT SELECT T3.staff_first_name , T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = ""aut""" What is the sea level and average speed for store number 3 and store number 4?,"SELECT T1.sealevel, T1.avgspeed FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 3 OR T2.store_nbr = 4" List all information regarding the basketball match.,SELECT * FROM basketball_match "What are the first names for students who have an ""a"" in their first name?",SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' What games have more than 1 draw?,SELECT AVG(games) FROM table_name_22 WHERE drawn > 1 How many aircrafts do we have?,SELECT count(*) FROM Aircraft Which city has the highest temperature in February?,SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1 "On 8/29/2013, who took the longest to arrive in California Ave Caltrain Station from University and Emerson? Indicate the bike id.",SELECT bike_id FROM trip WHERE start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%' AND end_station_name = 'California Ave Caltrain Station' AND start_station_name = 'University and Emerson' AND duration = ( SELECT MAX(duration) FROM trip WHERE start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%' AND end_station_name = 'California Ave Caltrain Station' AND start_station_name = 'University and Emerson' ) How many students have advisors?,SELECT count(DISTINCT s_id) FROM advisor WHAT IS THE LOWEST DIAMETER FOR A LATITIDE OF 52.0S?,"SELECT MIN(diameter__km_) FROM table_name_78 WHERE latitude = ""52.0s""" "Which Series has an Opponent of new york rangers, and a Score of 3–2 ot?","SELECT series FROM table_name_59 WHERE opponent = ""new york rangers"" AND score = ""3–2 ot""" "For the shipment received by Leszek Kieltyka on 2017/9/25, what was its weight?",SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Leszek' AND T2.last_name = 'Kieltyka' AND T1.ship_date = '2017-09-25' What are the names of all directors who made one movie?,SELECT director FROM Movie GROUP BY director HAVING count(*) = 1 What is the number of employees?,SELECT count(*) FROM Employee What is the most recent year featuring the director Christopher Kulikowski?,"SELECT MAX(year) FROM table_name_89 WHERE director = ""christopher kulikowski""" What lenses are those? | Which kind of information do you want about those lenses? | What is the name of the lenses not used for taking photos?,SELECT name FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos ) "Yes, from that list can I have it sorted by order ID? | Did you mean in the Order table order by order id ? desc or asc? | My apologies, I meant can I have list of orders which includes the product ids from the orders placed?","SELECT T1.order_id ,T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id" And for Jeramie?,"SELECT customer_id FROM customers where customer_name = ""Jeramie""" "How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?",SELECT COUNT(swimsuit) FROM table_name_32 WHERE evening_gown > 9 AND interview > 8.405 "What is the rated power for the reactor that ended construction on May 10, 1978?","SELECT rated_power FROM table_name_52 WHERE finish_construction = ""may 10, 1978""" What is the air carrier's description of the cancelled flights?,SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T2.CANCELLED = 1 GROUP BY T1.Description What years did Lou Graham win in?,"SELECT year_s__won FROM table_name_41 WHERE player = ""lou graham""" "Among the crimes happened in the neighborhood called ""Avalon Park"", what is the percentage of crimes that happened inside the house?",SELECT CAST(SUM(CASE WHEN T2.location_description = 'HOUSE' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.location_description) AS persent FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.neighborhood_name = 'Avalon Park' List the name of all games published in Japan.,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id INNER JOIN region AS T5 ON T4.region_id = T5.id WHERE T5.region_name = 'Japan' "What are the names of high schoolers who have likes, and how many likes does each have?","SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id" What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?,"SELECT public_debt__percentage_of_gdp__2013_q1_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = ""4.7%""" What are the dock counts of each of those?,"SELECT name,dock_count FROM station WHERE city = ""San Jose""" "How much higher in percentage is the highest supply cost of the part ""hot spring dodger dim light"" than the lowest supply cost?",SELECT CAST((MAX(T1.ps_supplycost) - MIN(T1.ps_supplycost)) AS REAL) * 100 / MIN(T1.ps_supplycost) FROM partsupp AS T1 INNER JOIN supplier AS T2 ON T1.ps_suppkey = T2.s_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_name = 'hot spring dodger dim light' Tell me the highest time for heat rank of 8 and lane more than 2,SELECT MAX(time) FROM table_name_48 WHERE heat_rank = 8 AND lane > 2 "What are the start and end dates for incidents with incident type code ""NOISE""?","SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = ""NOISE""" "Which contact channel has been used by the customer with name ""Tillman Ernser""?","SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = ""Tillman Ernser""" Find the name of the students who have more than one advisor?,SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1 "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.","SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title" How many students enlisted in the Navy?,SELECT COUNT(name) FROM enlist WHERE organ = 'navy' Count the number of courses.,SELECT count(*) FROM COURSE "Among all Disney movies directed by Gary Trousdale, determine the percentage that earned over USD100m based on actual grossing.","SELECT CAST(COUNT(CASE WHEN CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) > 100000000 THEN T1.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_title) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Gary Trousdale'" Name the number in series for number 38,SELECT MIN(no_in_series) FROM table_18335117_5 WHERE no_overall = 38 Name the listen owners for repairone,"SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = ""RepairOne""" Which activity has the most faculty members participating in? Find the activity name.,SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1 What was the result of the game on week 4?,SELECT result FROM table_name_16 WHERE week = 4 "How many 2 stars rated business located in Phoenix, Arizona?",SELECT COUNT(business_id) FROM Business WHERE city = 'Phoenix' AND state = 'AZ' AND stars = 2 What notes have 2 as the rank?,SELECT notes FROM table_name_62 WHERE rank = 2 What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?,"SELECT AVG(kilometer) FROM table_name_15 WHERE pavement = ""asphalt"" AND length__m_ > 645 AND name = ""berendries"" AND average_climb___percentage_ < 7" What dorm id have the amenity id 901?,SELECT T2.dormid FROM has_amenity AS T2 where T2.amenid = 901 Which label has a date of 1987?,"SELECT label FROM table_name_52 WHERE date = ""1987""" What round was less than 545 overall for San Francisco Giants?,"SELECT round FROM table_name_92 WHERE overall < 545 AND mlb_team = ""san francisco giants""" What are all the distinct details of the customers?,SELECT DISTINCT customer_details FROM Customers "Which Score has a Place of t6, and a Player of raymond floyd?","SELECT score FROM table_name_43 WHERE place = ""t6"" AND player = ""raymond floyd""" Return the type code of the template type that the most templates belong to.,SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1 what are the maximum revenues of all companies?,SELECT max ( revenue ) FROM manufacturers What is the average height of an East conference All-star player?,SELECT AVG(DISTINCT height) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE conference = 'East' Which Moving from has a Nat of ned?,"SELECT moving_from FROM table_name_26 WHERE nat = ""ned""" WHAT IS LAST NAME OF THE STAFF WHO HAS HANDLED THE FIRST EVER COMPLAINT?,SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1 Name the segment c for couscous,"SELECT segment_c FROM table_15187735_3 WHERE segment_b = ""Couscous""" What's the name of the course with most number of enrollments?,SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1 How many paragraphs contain the character Lord Abergavenny?,SELECT SUM(T1.ParagraphNum) FROM paragraphs AS T1 INNER JOIN characters AS T2 ON T1.character_id = T2.id WHERE T2.CharName = 'Lord Abergavenny' What are the descriptions for all the math courses?,SELECT course_description FROM Courses WHERE course_name = 'math' Which country has the lowest percentage of arable land?,SELECT CountryName FROM Indicators WHERE IndicatorName LIKE 'Arable land (% of land area)' ORDER BY Value DESC LIMIT 1 What is the Date when the Set 2 is 13–25?,"SELECT date FROM table_name_32 WHERE set_2 = ""13–25""" "/What is Tie No, when Date is 18 February 1956, and when Away Team is Tottenham Hotspur?","SELECT tie_no FROM table_name_44 WHERE date = ""18 february 1956"" AND away_team = ""tottenham hotspur""" List down app that does not have negative sentiment and give their average rating?,"SELECT T1.App, AVG(T2.Sentiment_Polarity) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T2.Sentiment != 'Negative' GROUP BY T1.App" Can you please show me all female architects by their names lexicographically?,SELECT name FROM architect WHERE gender = 'male' ORDER BY name And who manufactures the Hard drive?,SELECT Manufacturer FROM Products where Name = 'Hard drive' Give the full name and staff id of the staff who has handled the fewest payments.,"SELECT T1.first_name , T1.last_name , T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1" "What is the position coordinate on the page menu of the ""Small Hominy"" dish and how long did it appear?","SELECT T2.xpos, T2.ypos, T1.last_appeared - T1.first_appeared FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Small Hominy'" Who wrote the album recorded at funhouse studios with a time of 3:27?,"SELECT writer_s_ FROM table_name_64 WHERE recorded_at = ""funhouse studios"" AND time = ""3:27""" Which employee are those documents associated with?,SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY employees.employee_id ORDER BY count ( * ) DESC LIMIT 1 Who was the opponent during week 8?,SELECT opponent FROM table_name_67 WHERE week = 8 What is the stadium of the san diego chargers?,"SELECT stadium FROM table_name_99 WHERE team = ""san diego chargers""" "What is the Week number on November 30, 1958 with more than 33,240 in Attendance?","SELECT COUNT(week) FROM table_name_64 WHERE date = ""november 30, 1958"" AND attendance > 33 OFFSET 240" "How many products have the characteristic named ""hot""?","SELECT count(*) 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 t3.characteristic_name = ""hot""" "List the names of the coins above the average price on April 28, 2013.",SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2018-04-28' AND T2.price > ( SELECT AVG(price) FROM historical WHERE date = '2018-04-28' ) How many students are filed for bankruptcy?,SELECT COUNT(name) FROM filed_for_bankrupcy Please list the event IDs of the events that have happened on the device of the oldest user.,SELECT T2.event_id FROM gender_age AS T1 INNER JOIN events AS T2 ON T1.device_id = T2.device_id ORDER BY T1.age DESC LIMIT 1 Tell me the statement details of the statement id 197?,SELECT statement_details from statements where statement_id = 197 Which manager has Manchester City as the team?,"SELECT manager FROM table_name_14 WHERE team = ""manchester city""" Which school has the fewest professors?,SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1 "Can you find me the names of all the swimmers who have ""win"" results in the record?",SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' Please list the top 3 discounts with the highest discount percentage and fall under the reseller category.,"SELECT Description, DiscountPct FROM SpecialOffer WHERE Category = 'Reseller' ORDER BY DiscountPct DESC LIMIT 0, 3" "What is the name of the artist, for each language, that has the most songs with a higher resolution than 500?",SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 "To the products which could make the profit as 21.9037, what were their list price after October of 2012?","SELECT T1.ListPrice FROM Product AS T1 INNER JOIN ProductListPriceHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ListPrice - T1.StandardCost > 21.9037 AND STRFTIME('%Y-%m-%d', T2.StartDate) >= '2012-10-01'" What's the largest crowd that attended a game at junction oval?,"SELECT MAX(crowd) FROM table_name_36 WHERE venue = ""junction oval""" Awesome! Can you also add to this list the number of registered courses for each of these students?,"SELECT T1.student_id , count ( * ) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id" "Name the most game for us airways center 16,470","SELECT MIN(game) FROM table_27756474_6 WHERE location_attendance = ""US Airways Center 16,470""" "Give me the id, role and email of the professionals who did not perform any treatment on dogs.","SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id" For the triathlon with a bike (40km) of 58:20 what is the total time?,"SELECT total_time FROM table_name_21 WHERE bike__40km_ = ""58:20""" What batting style does player Shahid Afridi have?,"SELECT batting_style FROM table_name_88 WHERE player = ""shahid afridi""" "What is the release title of the single under the ""funk"" tag that was released the oldest?",SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag LIKE 'funk' AND T1.releaseType = 'single' ORDER BY T1.groupYear LIMIT 1 What are the names of scientists who have not been assigned a project?,SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo) Name the f/laps for gp2 series,"SELECT f_laps FROM table_24587026_1 WHERE series = ""GP2 series""" What team played in the Bundesliga league with an Away record of 2-1?,"SELECT teams FROM table_name_6 WHERE league = ""bundesliga"" AND away = ""2-1""" List the names of the city with the top 5 white percentages.,SELECT Name FROM city ORDER BY White DESC LIMIT 5 "What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?",SELECT SUM(second) FROM table_name_1 WHERE total < 70 AND premier < 20 AND first > 18 What was the home team score when the VFL played at Princes Park?,"SELECT home_team AS score FROM table_name_86 WHERE venue = ""princes park""" "Show the location code, the starting date and ending date in that location for all the documents.","SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations" Find the id and name of the museum that has the most staff members?,"SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1" "What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?","SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = ""cultural leonesa""" Which Party has a Member of david jull?,"SELECT party FROM table_name_75 WHERE member = ""david jull""" How many phones are there?,SELECT COUNT(*) FROM phone How many points were scored when the podiums is 0 and position is 10th?,"SELECT points FROM table_25318033_1 WHERE podiums = 0 AND position = ""10th""" "What are the names of conductors whose nationalities are not ""USA""?",SELECT Name FROM conductor WHERE Nationality != 'USA' List the number of different series names and contents in the TV Channel table.,"SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;" "Attendance of 29,000 occurred on what date?","SELECT date FROM table_name_80 WHERE attendance = ""29,000""" Give the name and score of the university ID 124.,"SELECT T2.university_name, T1.score FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.id = 124" How many units of item no.5 were sold in store no.3 on average on the days when the max temperature exceeded 90?,SELECT CAST(SUM(T1.units) AS REAL) / COUNT(T1.`date`) FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr INNER JOIN weather AS T3 ON T2.station_nbr = T3.station_nbr WHERE T1.store_nbr = 3 AND T1.item_nbr = 5 AND T3.tmax > 90 "Among all the matches SC Ganguly has played in, what is the highest winning margin?",SELECT MAX(T3.Win_Margin) FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id WHERE T1.Player_Name = 'SC Ganguly' Which Attendance has a Tie # of 15?,"SELECT attendance FROM table_name_25 WHERE tie_no = ""15""" What are all the report for the Belgian Grand Prix? ,"SELECT report FROM table_26258348_4 WHERE grand_prix = ""Belgian grand_prix""" "Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets?","SELECT leader_at_the_summit FROM table_name_78 WHERE stage > 14 AND category = 1 AND start = ""saint-girons"" AND finish = ""cauterets""" What is the smallest drawn with a position bigger than 10 and a played less than 20?,SELECT MIN(drawn) FROM table_name_51 WHERE position > 10 AND played < 20 State the Wikipedia page title that has revision page id of 28040864.,SELECT title FROM pages WHERE revision = 28040864 What is the earliest closed year in the country of france?,"SELECT MIN(closed__as_a_rl_stadium_) FROM table_name_94 WHERE country = ""france""" What are the candidates for new york 35?,"SELECT candidates FROM table_1342233_32 WHERE district = ""New York 35""" What kind of location in Austin reported the most number of crimes?,SELECT T2.location_description FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.district_name = 'Austin' GROUP BY T2.location_description ORDER BY COUNT(T2.case_number) DESC LIMIT 1 What is the largest mass for Tycho Crater?,"SELECT MAX(mass__kg_) FROM table_name_59 WHERE landing_zone = ""tycho crater""" What is the region of 1149 El Camino Real?,SELECT T2.region FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.street_num = 1149 AND T1.street_name = 'el camino real' Please list the top five players with the most steals in the year 1997. Please give their full name.,"SELECT DISTINCT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1997 ORDER BY T2.steals DESC LIMIT 5" "What is Years, when Win-Loss is 11-60?","SELECT years FROM table_name_55 WHERE win_loss = ""11-60""" "What are the themes and years for exhibitions, sorted by ticket price descending?","SELECT theme , YEAR FROM exhibition ORDER BY ticket_price DESC" What are the years for Eileen Derbyshire with a duration of 52 years?,"SELECT years FROM table_name_4 WHERE duration = ""52 years"" AND actor = ""eileen derbyshire""" What is the Home team at corio oval?,"SELECT home_team FROM table_name_57 WHERE venue = ""corio oval""" "Describe the supplier companies, cities and products which total production amount is more than 120.","SELECT T2.CompanyName, T2.City, T1.ProductName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitsInStock + UnitsOnOrder > 120" Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .,select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582' List the name of ships that are not involved in any mission,SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission) In what year did the only team to beat the Houston in the final round of postseason series games earn its lowest ranking?,SELECT T2.year FROM series_post AS T1 INNER JOIN teams AS T2 ON T1.tmIDWinner = T2.tmID WHERE T1.round = 'DSF' AND T1.tmIDLoser = 'HSM' ORDER BY T2.rank ASC LIMIT 1 include member id in this table,"SELECT T1.Name ,t1.Member_ID FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC" What is the value for congi core 1 if the code name is Redwood and core clock(mhz) is 500?,"SELECT config_core_1 FROM table_25005714_3 WHERE code_name = ""Redwood"" AND core_clock___mhz__ = ""500""" Who were they playing when Bird (1-4) had a loss?,"SELECT opponent FROM table_name_42 WHERE loss = ""bird (1-4)""" "what is the bed type of the column ""room in HBB ? | Do you mean the bed type for the room with id HBB? | yes","SELECT bedtype FROM rooms WHERE roomid = ""HBB""" What products are sold at the store named Miramichi?,"SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = ""Miramichi""" What is the finish of player Hale Irwin?,"SELECT finish FROM table_name_25 WHERE player = ""hale irwin""" "For each party, return its theme and the name of its host.","SELECT T3.Party_Theme , T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" Which publisher released Martial Law: Substitutes?,"SELECT publisher FROM table_name_47 WHERE release_title = ""martial law: substitutes""" What is the Proto-Germanic origin associated with an allophone of [[[|k]]]?,"SELECT proto_germanic_origin FROM table_name_15 WHERE sound__allophone_ = ""[[[|k]]]""" What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?,SELECT fa_cup_apps FROM table_name_53 WHERE league_goals < 4 AND squad_no = 3 Who won the race at the Jersey circuit? ,"SELECT winning_driver FROM table_1140119_5 WHERE circuit = ""Jersey""" What is the phone number of the performer Ashley?,"SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = ""Ashley""" What is the game number for series 4-2?,"SELECT COUNT(game) FROM table_name_56 WHERE series = ""4-2""" Provide me with the name of the writer with the production code 210. ,SELECT writer_s_ FROM table_12451376_2 WHERE production_code = 210 List all titles which have year to date sales higher than the average order by pubisher name.,SELECT T1.title FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.ytd_sales > ( SELECT AVG(ytd_sales) FROM titles ) Return the maximum number of points for climbers from the United Kingdom.,"SELECT max(Points) FROM climber WHERE Country = ""United Kingdom""" what type of card is used by customer id 6?,SELECT card_type_code from Customers_Cards where customer_id = 6 "Find the title, credit, and department name of courses that have more than one prerequisites?","SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1" What's the ratio of gender in actors to actress in all the UK movies?,"SELECT CAST(SUM(IIF(T3.a_gender = 'M', 1, 0)) AS REAL) / SUM(IIF(T3.a_gender = 'F', 1, 0)) FROM movies AS T1 INNER JOIN movies2actors AS T2 ON T1.movieid = T2.movieid INNER JOIN actors AS T3 ON T2.actorid = T3.actorid WHERE T1.country = 'UK'" "What Club team has an average of 8, plays kaj linna, and has an overall larger than 131?","SELECT club_team FROM table_name_97 WHERE overall > 131 AND round = 8 AND player = ""kaj linna""" What is the Rank of the Character with Tenure of 2011?,"SELECT rank FROM table_name_2 WHERE tenure = ""2011""" What is the Result of the 2013 (86th) Ceremony?,"SELECT result FROM table_name_77 WHERE year__ceremony_ = ""2013 (86th)""" Could you give me the number of dorms for each gender?,"SELECT count ( * ) , gender FROM dorm GROUP BY gender" Find the names of customers who have bought by at least three distinct products.,SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id) >= 3 "What is Moving, when Type is ""Transfer"", and when Name is ""Andy Webster""?","SELECT moving_from FROM table_name_27 WHERE type = ""transfer"" AND name = ""andy webster""" How many devices are in stock at Dinas Device?,SELECT count ( Device_ID ) FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID where Shop_Name = 'Dinas Device' "For Peter Kohnke, show the name of his/her region.",SELECT T1.region_name 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 T3.full_name = 'Peter Kohnke' Name the number of title for number in series being 25,SELECT COUNT(title) FROM table_25810656_3 WHERE no_in_series = 25 Manager of lyman lamb / marty berghammer is in what league?,"SELECT league FROM table_name_59 WHERE manager = ""lyman lamb / marty berghammer""" What's the record of the game where Lebron James (16) was the leading scorer?,"SELECT record FROM table_name_69 WHERE leading_scorer = ""lebron james (16)""" "For each phone, show its names and total number of stocks?","SELECT T2.Name , sum ( T1.Num_of_stock ) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name" Which Catalog has a Region of Canada and a Format of cd/dvd?,"SELECT catalog FROM table_name_61 WHERE region = ""canada"" AND format = ""cd/dvd""" What cinema has the highest capacity?,SELECT Name FROM cinema ORDER BY Capacity DESC LIMIT 1 What is total bonus given in all evaluations?,SELECT sum(bonus) FROM evaluation Show first name and id for all customers with at least 2 accounts.,"SELECT T2.customer_first_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2" "Of the employees whose vacation hours are no more than 10, what is the age of the oldest employee at the time he/she was hired? Indicate his/her full name.","SELECT STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate), T2.FirstName, T2.MiddleName, T2.LastName FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.VacationHours <= 10 ORDER BY STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) DESC LIMIT 1" Name the max top 5 for avg finish being 27.6,"SELECT MAX(top_5) FROM table_2181798_1 WHERE avg_finish = ""27.6""" What's Brazil's lane with a time less than 21.15?,"SELECT MIN(lane) FROM table_name_55 WHERE nationality = ""brazil"" AND time < 21.15" "Which course is more difficult, Intro to BlockChain or Computer Network?",SELECT name FROM course WHERE name = 'Intro to BlockChain' OR name = 'Computer Network' ORDER BY diff DESC LIMIT 1 How many 'United Airlines' flights depart from Airport 'AHD'?,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = ""United Airlines"" AND T2.SourceAirport = ""AHD""" What are the ids of high school students who do not have friends?,SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend When was the game played at Princes Park?,"SELECT date FROM table_name_20 WHERE venue = ""princes park""" "What is the total number of Points with Wins larger than 0, a Position of 12th, and Poles larger than 0?","SELECT SUM(points) FROM table_name_67 WHERE wins > 0 AND position = ""12th"" AND poles > 0" "With a silver greater than 0, gold of 9 and a bronze less than 9, what is the lowest total listed?",SELECT MIN(total) FROM table_name_75 WHERE silver > 0 AND gold = 9 AND bronze < 9 Hello! Can you provide me with the song name for the song with the lowest resolution?,SELECT T2.song_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 What was the score of Tommy Aaron (2) when the tournament was in georgia?,"SELECT score FROM table_name_38 WHERE location = ""georgia"" AND winner = ""tommy aaron (2)""" Name the total number of troops per one million being 2.76,"SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = ""2.76""" When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?,SELECT t1.shippedDate FROM orders AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.customerName = 'Cruz & Sons Co.' AND t1.orderDate = '2003-03-03' What was the score when St. Louis was the visiting team?,"SELECT score FROM table_name_92 WHERE visitor = ""st. louis""" "What tournament was on May 31, 1987?","SELECT tournament FROM table_name_7 WHERE date = ""may 31, 1987""" "For each position, what is the minimum time students spent practicing?","SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos" what is the credit score for Mary?,"SELECT credit_score from customer where cust_name = ""Mary""" "Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain?","SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = ""b"" AND nationality = ""great britain""" Tell me the sum of bp 2nd comp with bp azeo of 57.5,SELECT SUM(bp_2nd_comp__) AS ˚c_ FROM table_name_33 WHERE bp_azeo__˚c_ = 57.5 What is the number of car models created by the car maker American Motor Company?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'; hello. Can you tell me the number of states in which there are customers?,SELECT count ( state ) FROM bank where no_of_customers>0 How many employees are IT Staff?,SELECT count ( * ) FROM employees WHERE title = 'IT Staff' find the count of the event name took place for the party id 1,"SELECT T1.party_id, count ( T2.party_name ) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id where T1.party_id = 1" "What is the total number of students impacted by the projects with a donation from a donor with zip code ""22205""?",SELECT SUM(T2.students_reached) FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.donor_zip = 22205 What is the average rating for all movies?,"SELECT T2.title ,avg ( T1.stars ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID" "What is ISBN UK, when Author is ""Dave Martin"", and when ISBN US is ""N/A""?","SELECT isbn_uk FROM table_name_38 WHERE author = ""dave martin"" AND isbn_us = ""n/a""" What's the 1st leg result in the round where team #1 is Iraklis?,"SELECT 1 AS st_leg FROM table_19130829_4 WHERE team__number1 = ""Iraklis""" What is the name of the university that had the highest number of international students for 6 consecutive years?,SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id ORDER BY T1.pct_international_students DESC LIMIT 1 How many teams did Bob Peppler play for?,"SELECT COUNT(nhl_team) FROM table_1213511_3 WHERE player = ""Bob Peppler""" What is the task of method number 2?,"SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Id = 2" "Which Score has a Place of t1, and a Player of hubert green?","SELECT AVG(score) FROM table_name_35 WHERE place = ""t1"" AND player = ""hubert green""" Who played as Team 2 against Team 1 SC Gagnoa?,"SELECT team_2 FROM table_name_73 WHERE team_1 = ""sc gagnoa""" What is the least amount of points?,SELECT MIN(points) FROM table_27539535_4 "In Yale University, what is the average number of Black students per year who were bachelor's/equivalent-seeking cohort at 4-year institutions between 2002 to 2005?",SELECT AVG(T2.grad_cohort) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T1.chronname = 'Yale University' AND T2.year BETWEEN 2002 AND 2005 AND T2.race = 'B' AND T2.cohort = '4y bach' Can you tell me which product has the greatest height? | Which attribute of product do you want? | Can you please show me the catalog entry name?,SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 How many opponents did the Sun Devils play when they scored 41 points?,SELECT COUNT(opponent) FROM table_21007615_1 WHERE sun_devils_points = 41 Tally the dishes that have appeared on the menu for more than 100 years.,SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.last_appeared - T1.first_appeared > 100 Who got the gold in seoul before 2002?,"SELECT gold FROM table_name_53 WHERE year < 2002 AND location = ""seoul""" "Count the number of tracks that are of the media type ""AAC audio file"".","SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = ""AAC audio file""" How large in US customary terms is the unit called butylka (vodochnaya)?,"SELECT us_customary FROM table_name_33 WHERE unit = ""butylka (vodochnaya)""" What are the last name and office of all history professors?,"SELECT T1.emp_lname , T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'" What is the least first elected for jeff busby?,"SELECT MIN(first_elected) FROM table_1342393_23 WHERE incumbent = ""Jeff Busby""" What is the average discount for the parts made by Manufacturer#5?,SELECT AVG(T3.l_discount) FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN lineitem AS T3 ON T2.ps_suppkey = T3.l_suppkey WHERE T1.p_mfgr = 'Manufacturer#5' In which episodes was Anthony Azzara not credited?,SELECT T1.title FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id INNER JOIN Person AS T3 ON T3.person_id = T2.person_id WHERE T2.credited = 'false' AND T3.name = 'Anthony Azzara' "What is Location Attendance, when Date is ""December 30""?","SELECT location_attendance FROM table_name_63 WHERE date = ""december 30""" When was the Treaty of Cession for Karikal Colony?,"SELECT treaty_of_cession FROM table_name_60 WHERE colony = ""karikal""" What are the names of all aircrafts that are associated with both London Heathrow and Gatwick airports?,"SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Heathrow"" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = ""London Gatwick""" What were the goals when the caps were set at 48?,SELECT goals FROM table_name_66 WHERE caps = 48 What is the episode title of the show that had a production code of 3T5764?,"SELECT title FROM table_11694832_1 WHERE production_code = ""3T5764""" What Player's Score is 69-68-66-70=273?,SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273 how many countries have remittances in 2008 of 9.07?,"SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2008 = ""9.07""" What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?,SELECT percentage_lost FROM table_name_93 WHERE starting_weight__kg_ > 102 AND weight_lost__kg_ = 46.9 Which award is in the category of best music video?,"SELECT award FROM table_name_55 WHERE category = ""best music video""" display all the information of those employees who did not have any job in the past.,SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history) How many type of thing code includes 'Electronics'? | Do you mean how many things include type of thing code 'Electronics'? | Yes,"SELECT count ( DISTINCT thing_id ) FROM Things where Type_of_Thing_Code = ""Electronics""" "What is the total number of medals when the bronze is more than 1, and Germany is the nation, and gold medals less than 1?","SELECT COUNT(total) FROM table_name_14 WHERE bronze > 1 AND nation = ""germany"" AND gold < 1" "For the paper which was presented by ""Zvezdan Protić"", was it preprinted?",SELECT CASE WHEN T1.Year = 0 THEN 'TRUE' ELSE 'FALSE' END FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Zvezdan Protić' AND T1.ConferenceId = 0 AND T1.JournalId = 0 find the minimum and maximum number of products of all stores.,"SELECT min(Number_products) , max(Number_products) FROM shop" Which city has a First season of current spell in Segunda División smaller than 2013?,SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013 "Which Pick has a Position of offensive guard, a Player of reggie mckenzie, and a Round larger than 2?","SELECT COUNT(pick) FROM table_name_96 WHERE position = ""offensive guard"" AND player = ""reggie mckenzie"" AND round > 2" How many online purchases did Ole Group make in May 2019?,SELECT SUM(CASE WHEN T1.`Sales Channel` = 'Online' AND T2.`Customer Names` = 'Ole Group' AND T1.OrderDate LIKE '5/%/19' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Customers AS T2 ON T2.CustomerID = T1._CustomerID Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000.,SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000 What is the mobile phone number of the customer with the last name Kohler or first name Marina?,"SELECT phone_number FROM Customers WHERE first_name = ""Marina"" OR last_name = ""Kohler""" Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.,"SELECT T1.company_id , T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING count(*) >= 2 UNION SELECT T3.company_id , T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING count(*) >= 2" "Return the last name for the members of the club named ""Hopkins Student Enterprises"".","SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = ""Hopkins Student Enterprises""" Return the title of the film with the highest high estimate?,SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1 "What is Expected End Date, when Target/Approach is Notes?","SELECT expected_end_date FROM table_name_3 WHERE target_approach = ""notes""" what is the cost of Reverse Rhinopodoplasty,"SELECT Cost FROM Procedures WHERE Name = ""Reverse Rhinopodoplasty""" WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?,"SELECT MIN(year) FROM table_name_20 WHERE bronze = ""aimo tepsell""" Which MLS team picked player Jason Herrick?,"SELECT mls_team FROM table_29626583_3 WHERE player = ""Jason Herrick""" Which circuit did winfield team nissan win for the tooheys 1000?,"SELECT circuit FROM table_name_68 WHERE team = ""winfield team nissan"" AND series = ""tooheys 1000""" Find the name of accounts whose checking balance is higher than corresponding saving balance.,SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance What is thursday day five when friday day six is პარასკევი p'arask'evi?,"SELECT thursday_day_five FROM table_1277350_7 WHERE friday_day_six = ""პარასკევი p'arask'evi""" How many rooms are in the apartment number suite 645?,"SELECT count ( * ) FROM Apartments WHERE apt_number = ""Suite 645""" What is the name of the school that participated in the basketball match?,SELECT school FROM university WHERE school_id NOT IN ( SELECT school_id FROM basketball_match ) At what numbers on 9th Avenue of San Francisco there are restaurants?,SELECT id_restaurant FROM location WHERE City = 'san francisco' AND street_name = '9th avenue' what is the full name and id of the college with the largest number of baseball players?,"SELECT T1.name_full , T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;" What is the most ordered products by customers?,SELECT T1.ProductID FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID GROUP BY T1.ProductID ORDER BY COUNT(*) DESC LIMIT 1 List all the policy types used by the customer enrolled in the most policies.,SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1) What was the largest crowd when Melbourne was the away team?,"SELECT MAX(crowd) FROM table_name_37 WHERE away_team = ""melbourne""" Which school drafted dave lewis?,"SELECT school FROM table_name_75 WHERE player = ""dave lewis""" "Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?",SELECT SUM(against) FROM table_name_65 WHERE losses > 2 AND wins = 8 AND byes < 0 What is the average and oldest age for each gender of student?,"SELECT avg(age) , max(age) , sex FROM student GROUP BY sex" how far is its distance? | Did you mean the distance of Boeing 747-400? | Yes,"SELECT distance from Aircraft where name = ""Boeing 747-400""" Show the names of pilots and the number of records they have.,"SELECT T2.Pilot_name , COUNT(*) FROM pilot_record AS T1 JOIN pilot AS T2 ON T1.pilot_ID = T2.pilot_ID GROUP BY T2.Pilot_name" Find the id and last name of the student that has the most behavior incidents?,"SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1" What is the staff id of that person?,SELECT T3.staff_id FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id where T1.problem_id = 1 What is the date of the largest amount claimed?,SELECT date_of_claim from claim_headers order by amount_claimed desc limit 1 of those things which are closed before 2017-06-19 02:59:21 | Do you still want the number of them? | Yes,"SELECT count ( distinct thing_id ) from Timed_Status_of_Things WHERE Status_of_Thing_Code = ""Close"" AND Date_and_Date < '2017-06-19 02:59:21'" Find the average age of students living in each dorm and the name of dorm.,"SELECT avg(T1.age) , T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" add a column showing the total number of documents shipped per code,"SELECT shipping_agent_code, count ( * ) FROM Documents group by shipping_agent_code" How many reservations for sc/st are there in constituency 191?,SELECT COUNT(reservation_for_sc_st) FROM table_29785324_4 WHERE constituency_no = 191 How many employees have certificate.,SELECT count(DISTINCT eid) FROM Certificate "What date has a result of win, in a friendly competition in Porto?","SELECT date FROM table_name_79 WHERE result = ""win"" AND competition = ""friendly"" AND location = ""porto""" name the team for 36-29 record,"SELECT team FROM table_27902171_8 WHERE record = ""36-29""" "In which country is the publisher of the book ""Life Without Fear"" located?",SELECT T2.country FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.title = 'Life Without Fear' Can you show me the customer names that have an invoice?,"SELECT FirstName, LastName from Customer where customerid in ( select customerid from Customer intersect select customerid from Invoice ) " "What are the dates of the latest logon of the students with family name ""Jaskolski"" or ""Langosh""?","SELECT date_of_latest_logon FROM Students WHERE family_name = ""Jaskolski"" OR family_name = ""Langosh""" "What is Date, when Runner(s)-Up is Jonathan Kaye?","SELECT date FROM table_name_18 WHERE runner_s__up = ""jonathan kaye""" Show student ids who are female and play football.,"SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = ""Football""" Who is the clerk in charge of handling the item with the highest amount of extended price?,SELECT T1.o_clerk FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey ORDER BY T2.l_extendedprice DESC LIMIT 1 What is the score if Millwall is the Home Team?,"SELECT score FROM table_name_18 WHERE home_team = ""millwall""" What is the product with the highest height? Give me the catalog entry name.,SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 Which December has a Record of 4-3-6?,"SELECT december FROM table_name_65 WHERE record = ""4-3-6""" Find the max occupancy of bed type Queen? | Here are the max occupancies of rooms with bed type Queen. | Find the average and minimum price of the rooms in different decor.,"SELECT decor , avg ( basePrice ) , min ( basePrice ) FROM Rooms GROUP BY decor" What are the distinct ages of the heads who are acting?,SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes' What score has amblecote as the venue?,"SELECT score FROM table_name_97 WHERE venue = ""amblecote""" What is the ID of university with the largest percentage of international students?,SELECT university_id FROM university_year ORDER BY pct_international_students DESC LIMIT 1 "Can you count the number of unique part fault ids that belong to each unique fault log entry id, and then add those values to the table?","SELECT fault_log_entry_id, count ( * ) FROM Fault_Log_Parts GROUP BY fault_log_entry_id" What is the date of the game in a week earlier than 10 played in Texas stadium agains the Atlanta Falcons?,"SELECT date FROM table_name_92 WHERE week < 10 AND game_site = ""texas stadium"" AND opponent = ""atlanta falcons""" How many competitors over the age of 30 participated in the 1992 Winter Olympics?,SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1992 Winter' AND T2.age > 30 Find the first names and last names of teachers in alphabetical order of last name.,"SELECT first_name , last_name FROM Teachers ORDER BY last_name" Who was the colour commmentator that broadcasted along with the Play-by-play of bob cole?,"SELECT colour_commentator_s_ FROM table_name_1 WHERE play_by_play = ""bob cole""" What is the series number that has a production code of 50021–50025?,"SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = ""50021–50025""" What position is there when the main contestant is Vishal Singh and the scores are 1 + 7 + 5 = 13?,"SELECT position FROM table_name_21 WHERE main_contestant = ""vishal singh"" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13" "What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan?","SELECT MAX(round) FROM table_name_91 WHERE opponent = ""rene rooze"" AND location = ""saitama, japan""" "What is Year(s) Won, when Total is less than 285?",SELECT year_s__won FROM table_name_48 WHERE total < 285 What is moorabbin oval's away team?,"SELECT away_team FROM table_name_11 WHERE venue = ""moorabbin oval""" Who is the driver for the Entract of Enrico Platé?,"SELECT driver FROM table_name_80 WHERE entrant = ""enrico platé""" Name the torque of the engine is d5244 t5,"SELECT torque__nm AS @rpm_ FROM table_1147701_5 WHERE engine_code = ""D5244 T5""" Can you list all the departments with the school code BUS?,"SELECT * FROM department where school_code = ""BUS""" List album titles for albums containing Rock genre tracks,SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock' What was the loss of the game that had a score of 9-7?,"SELECT loss FROM table_name_65 WHERE score = ""9-7""" When aspect computing is the yacht what is the sail number?,"SELECT sail_number FROM table_1858574_2 WHERE yacht = ""Aspect Computing""" Which non capital city has the most people of all?,SELECT T3.Name FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name <> T1.Capital ORDER BY T3.Population DESC LIMIT 1 What nationality has 2 as the rank?,SELECT nationality FROM table_name_32 WHERE rank = 2 find the state of the college which player Charles is attending,SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' "What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1?",SELECT tackles FROM table_name_75 WHERE solo > 67 AND sacks < 2 AND int_yds > 1 What is the name of Rapid City's Adult Contemporary station?,"SELECT name FROM table_134987_3 WHERE city_of_license = ""Rapid City"" AND format = ""Adult Contemporary""" "Write down homepage URL of journal for paper ""364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results"".",SELECT T2.HomePage FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results' "Name the catalog number for october 6, 1988","SELECT catalog_number FROM table_27303975_2 WHERE release_date = ""October 6, 1988""" "What date was the game at Williams-Brice stadium • Columbia, SC?","SELECT date FROM table_name_75 WHERE site = ""williams-brice stadium • columbia, sc""" What counties mascot are the Red Ramblers?,"SELECT county FROM table_name_85 WHERE mascot = ""red ramblers""" Which song has a U.S. R&B 100 in 2010?,"SELECT song FROM table_name_53 WHERE year = 2010 AND us_r & b = ""100""" What is the id of the candidate who most recently accessed the course?,SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1 Name the rank for thomas morgenstern,"SELECT rank FROM table_24489942_10 WHERE name = ""Thomas Morgenstern""" Which customer has the most reviews? State the full name.,"SELECT T1.First, T1.Last FROM customers AS T1 INNER JOIN rootbeerreview AS T2 ON T1.CustomerID = T2.CustomerID GROUP BY T1.CustomerID ORDER BY COUNT(T2.CustomerID) DESC LIMIT 1" what is the captain's age?,SELECT t2.age FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' What is the least purchased product by stores in the city of Santa Clarita?,SELECT T1.`Product Name` FROM Products AS T1 INNER JOIN `Sales Orders` AS T2 ON T2._ProductID = T1.ProductID INNER JOIN `Store Locations` AS T3 ON T3.StoreID = T2._StoreID WHERE T3.`City Name` = 'Santa Clarita' GROUP BY T1.`Product Name` ORDER BY COUNT(T1.`Product Name`) ASC LIMIT 1 How many times did SC Ganguly be the man of the match?,SELECT COUNT(T2.Man_of_the_Match) FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id WHERE T1.Player_Name = 'SC Ganguly' List all the post codes starting with 4.,"SELECT zip_postcode FROM addresses WHERE zip_postcode LIKE ""4%""" Indicate the number of installs and include the percentage of positive sentiments of FREEDOME VPN Unlimited anonymous Wifi Security.,"SELECT T1.Installs , CAST(SUM(CASE WHEN T2.Sentiment = 'Positive' THEN 1 ELSE 0 END) * 100 / SUM(CASE WHEN T2.Sentiment IS NOT NULL THEN 1.0 ELSE 0 END) AS REAL) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.App = 'FREEDOME VPN Unlimited anonymous Wifi Security'" How many courses that do not have prerequisite?,SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq) when did the transactions that were less that 3000 occur?,SELECT T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 who is a doctor?,SELECT name FROM Person WHERE job = 'doctor' Show me the prices of Trading Policy,"SELECT Product_Price FROM Products WHERE Product_Name = ""Trading Policy""" What is the prothrombin time in Von willebrand disease?,"SELECT prothrombin_time FROM table_1557752_1 WHERE condition = ""Von Willebrand disease""" "What are the top 10 customers' first and last names with the highest gross sales, and also what are the sales?","SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;" List the marital status and response of female customers with an level of education of 8 and above.,"SELECT DISTINCT T1.MARITAL_STATUS, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T1.EDUCATIONNUM > 8 AND T1.SEX = 'Female'" What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997?,SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997 WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?,"SELECT team FROM table_name_93 WHERE position = ""of"" AND pick = 24" Who was replaced as manager on June 20?,"SELECT outgoing_manager FROM table_29414946_3 WHERE date_of_appointment = ""June 20""" Name the most played when points is 105,SELECT MAX(played) FROM table_17968282_1 WHERE points = 105 How many different clients have rented materials from Jon Stephens?,SELECT COUNT(T1.customer_id) FROM rental AS T1 INNER JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Jon' AND T2.last_name = 'Stephens' "What is Class, when Part 2 is ""blétu""?","SELECT class FROM table_name_15 WHERE part_3 = ""blétu""" "What is the average age of first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department?",SELECT AVG(T1.age) FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID WHERE T2.RESPONSE = 'true' "Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?","SELECT location_attendance FROM table_name_10 WHERE high_assists = ""luke ridnour (10)"" AND date = ""december 3""" What was the team features at Oran Park Raceway?,"SELECT team FROM table_name_41 WHERE circuit = ""oran park raceway""" "What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?",SELECT MAX(games) FROM table_name_58 WHERE points < 4 AND drawn = 1 AND lost < 6 "What are the maximum and minimum sales of the companies whose industries are not ""Banking"".","SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != ""Banking""" "Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5?",SELECT bronze FROM table_name_69 WHERE gold > 1 AND silver < 3 AND rank < 5 How many professional or master/graduate courses are there?,SELECT COUNT(*) FROM course WHERE courseLevel = 'Level_500' Which films participated in the 30th Hawaii International Film Festival?,"SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = ""30th Hawaii International film_festival""" Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.,"SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'" What is the fewest draws for percentages of 5.02%?,"SELECT MIN(draw) FROM table_name_95 WHERE percentage = ""5.02%""" who was the winner of uci rating cn?,"SELECT winner FROM table_27887723_1 WHERE uci_rating = ""CN""" What is the NHL team in the media market ranking number 7?,SELECT nhl_team_s_ FROM table_1205598_1 WHERE media_market_ranking = 7 What's the IHSAA Class when the school is Seymour?,"SELECT ihsaa_class FROM table_name_39 WHERE school = ""seymour""" What is the bird uniform for Eagle Rider Mickey Dugan?,"SELECT bird_uniform FROM table_name_8 WHERE eagle_riders = ""mickey dugan""" What is the upstream speed that you get for 89 tl?,"SELECT upstream FROM table_17304621_14 WHERE price_tl = ""89 TL""" "What is the average number of followers of the lists created by the user who rated the movie ""Pavee Lackeen: The Traveller Girl"" on 3/27/2011 at 2:06:34 AM?",SELECT CAST(SUM(T4.list_followers) AS REAL) / COUNT(T2.list_id) FROM ratings AS T1 INNER JOIN lists_users AS T2 ON T1.user_id = T2.user_id INNER JOIN movies AS T3 ON T1.movie_id = T3.movie_id INNER JOIN lists AS T4 ON T2.list_id = T4.list_id WHERE T3.movie_title LIKE 'Pavee Lackeen: The Traveller Girl' AND T1.rating_timestamp_utc LIKE '2011-03-27 02:06:34' How many shipments were delivered to a customer from New York?,SELECT COUNT(*) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'NY' "Which supplier can provide the most number of ""hot spring dodger dim light""? Please give the supplier's phone number.",SELECT T3.s_phone FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey INNER JOIN supplier AS T3 ON T2.ps_suppkey = T3.s_suppkey WHERE T1.p_name = 'hot spring dodger dim light' ORDER BY T2.ps_availqty DESC LIMIT 1 Find the name of all the cities and states.,SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses What was the score when essendon was the home team?,"SELECT home_team AS score FROM table_name_75 WHERE home_team = ""essendon""" What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?,"SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100" What is his name?,SELECT Participant_Details FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%' What is the lowest game number on 20 July 2008?,"SELECT MIN(game) FROM table_name_33 WHERE date = ""20 july 2008""" What are the names of studios that have made two or more films?,SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2 how many laps were there when the grid was 24?,SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24 "Among the faculty affiliated professor, how many professors teaches professional or master/undergraduate courses?",SELECT COUNT(*) FROM person AS T1 INNER JOIN taughtBy AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T2.course_id WHERE T1.hasPosition = 'Faculty_aff' AND T1.professor = 1 AND T3.courseLevel = 'Level_500' Which driver drove in grid 19?,SELECT driver FROM table_name_12 WHERE grid = 19 How many extra points did Paul Jones score?,"SELECT COUNT(extra_points) FROM table_14342367_11 WHERE player = ""Paul Jones""" List the category of the business with high review count but received 2 stars.,SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T1.stars = 2 AND T1.review_count LIKE 'High' "List the product code of the top five motorcycles, by descending order, the number of quantity in stock.","SELECT productCode, quantityInStock FROM products WHERE productLine = 'Motorcycles' ORDER BY quantityInStock DESC LIMIT 5" "What is Competition, when Date is ""January 11, 1996"", when Venue is ""San Diego , United States""?","SELECT competition FROM table_name_72 WHERE date = ""january 11, 1996"" AND venue = ""san diego , united states""" What is the name of the Deputy when the Name was elizabeth black?,"SELECT deputy FROM table_name_88 WHERE name = ""elizabeth black""" What result in the table is from the year 2012?,SELECT result FROM table_name_38 WHERE year = 2012 Count the number of accounts corresponding to each customer id.,"SELECT count(*) , customer_id FROM Accounts GROUP BY customer_id" "What is the color code and description of the product named ""chervil""?","SELECT t1.color_code , t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = ""chervil""" What was the team that scored 56 points?Qh,"SELECT team FROM table_25369796_1 WHERE points = ""56""" State the principal activities of Air Hong Kong?,select distinct Principal_activities from operate_company where name = 'Air Hong Kong' What was the label in the region of Canada?,"SELECT label FROM table_name_57 WHERE region = ""canada""" what is the capacity of Codling Cinema,"SELECT capacity from cinema where name = ""Codling""" Find the total market rate of the furnitures that have the top 2 market shares.,SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2 "What is the id, name and nationality of the architect who built most mills?","SELECT T1.id , T1.name , T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1" How many furniture cushions orders which have date of order in 2018?,SELECT SUM(CASE WHEN T1.OrderDate LIKE '%/%/18' AND T2.`Product Name` = 'Furniture Cushions' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN Products AS T2 ON T2.ProductID = T1._ProductID Wha argon has helium of 1.0000684?,"SELECT argon FROM table_name_54 WHERE helium = ""1.0000684""" Name the CDP name for FIPS code of 3659708,SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708 "What is the name and country of origin of the artist who released a song that has ""love"" in its title?","SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE ""%love%""" What is the population gap between the United Kingdom and Italy?,SELECT MAX(Population) - MIN(Population) FROM country WHERE Name = 'United Kingdom' OR Name = 'Italy' Return the names of songs for which format is mp3 and resolution is below 1000.,"SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = ""mp3"" INTERSECT SELECT song_name FROM song WHERE resolution < 1000" "Which claims had exactly one settlement? For each, tell me the the date the claim was made, the date it was settled and the amount settled.","SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1" Which business had the most number of high risk violations? Give the name of the business.,SELECT T2.name FROM violations AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.risk_category = 'High Risk' GROUP BY T2.name ORDER BY COUNT(T2.name) DESC LIMIT 1 "Where 19 seats were won, what was the minimum number of forfeited seats?",SELECT MIN(forfeited_in_seats) FROM table_22582663_1 WHERE seats_won = 19 Who has 6/1 odds?,"SELECT trainer FROM table_name_50 WHERE odds = ""6/1""" Who came as a replacement in Sheffield United?,"SELECT replaced_by FROM table_19359427_6 WHERE team = ""Sheffield United""" What was the Purse for Owner Harold A. Allen prior to 2009?,"SELECT purse FROM table_name_41 WHERE year < 2009 AND owner = ""harold a. allen""" What is the first and last name of all the German drivers?,"SELECT forename , surname FROM drivers WHERE nationality = ""German""" What is the closing and opening time of businesses located at Tempe with highest star rating?,"SELECT T2.closing_time, T2.opening_time FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T1.city LIKE 'Tempe' ORDER BY T1.stars DESC LIMIT 1" How many of the papers are preprinted or not published?,SELECT COUNT(Id) FROM Paper WHERE Year = 0 How many days is the Monaco Grand Prix?,"SELECT COUNT(date) FROM table_1140083_2 WHERE race = ""Monaco Grand Prix""" Can you provide me with the most common apartment type code among all of the apartments with at least 1 bathroom?,SELECT apt_type_code FROM Apartments WHERE bathroom_count > = 1 GROUP BY apt_type_code ORDER BY count ( * ) DESC LIMIT 1 "Which Region has an Area of 9,451km²?","SELECT region FROM table_name_65 WHERE area__km²_ = ""9,451""" How many episodes did J.K. Simmons' role appear on the show?,SELECT COUNT(T1.role) FROM Credit AS T1 INNER JOIN Person AS T2 ON T2.person_id = T1.person_id WHERE T2.name = 'J.K. Simmons' Show names of parties that does not have any members.,SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member) "On average, how many players from each country bat with their right hand?",SELECT CAST(SUM(CASE WHEN T1.Batting_hand = 'Right-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Country_Name) FROM Batting_Style AS T1 INNER JOIN Player AS T2 ON T1.Batting_id = T2.Batting_hand what is the department code of 103 | Do you mean the department code of professor with emp number 103? | yes sir,SELECT dept_code from professor where emp_num = 103 What tournament had Greg Rusedski as a finalist?,"SELECT tournament FROM table_name_68 WHERE finalist = ""greg rusedski""" How long was the 16 staged event in 1997?,"SELECT distance FROM table_name_38 WHERE stages = ""16"" AND year = ""1997""" Name the publisher which has the most titles published in 1991.,"SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE STRFTIME('%Y', T1.pubdate) = '1991' GROUP BY T1.pub_id, T2.pub_name ORDER BY COUNT(T1.title_id) DESC LIMIT 1" How many teams playing in divisions in Greece have ever scored 4 or more goals?,SELECT COUNT(DISTINCT CASE WHEN T1.FTHG >= 4 THEN HomeTeam ELSE NULL end) + COUNT(DISTINCT CASE WHEN T1.FTAG >= 4 THEN AwayTeam ELSE NULL end) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Greece' How many silver medals for germany with a bronze count more than 0?,"SELECT MAX(silver) FROM table_name_81 WHERE nation = ""germany"" AND bronze > 0" "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.","SELECT fname, lname FROM student WHERE city_code != 'HKG' ORDER BY age" What are the dates of publications in descending order of price?,SELECT Publication_Date FROM publication ORDER BY Price DESC "What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?","SELECT 2006 FROM table_name_65 WHERE 2000 = ""1r"" AND 1996 = ""a"" AND tournament = ""cincinnati masters""" "For each headquarter, what are the headquarter and how many companies are centered there?","SELECT headquarters , count(*) FROM company GROUP BY headquarters" "What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?","SELECT model_number FROM table_name_2 WHERE voltage = ""2.0v"" AND frequency = ""350 mhz""" Which supplier supplies the most amount of products?,"SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID GROUP BY T2.SupplierID, T2.CompanyName ORDER BY COUNT(T1.ProductName) DESC LIMIT 1" "What was the date of the game attended by 25,022?","SELECT date FROM table_name_70 WHERE attendance = ""25,022""" "What team was the opponent when the time was 2:57, and a Score of 7–5?","SELECT opponent FROM table_name_59 WHERE time = ""2:57"" AND score = ""7–5""" what country is Kaio from?,SELECT Country FROM perpetrator where location = 'Kaio' Name the jason for public vote being 19.20%,"SELECT jason FROM table_21234111_6 WHERE public_vote__percentage = ""19.20%""" Name the most game,SELECT MAX(game) FROM table_21091157_1 What cc displacement has an i6 engine in 1936?,"SELECT displacement_cc FROM table_name_13 WHERE engine = ""i6"" AND year = ""1936""" What credit card is the most used in the purchase of non-alcoholic beer?,SELECT T2.CreditCardType FROM rootbeer AS T1 INNER JOIN `transaction` AS T2 ON T1.RootBeerID = T2.RootBeerID INNER JOIN rootbeerbrand AS T3 ON T1.BrandID = T3.BrandID WHERE T3.Alcoholic = 'FALSE' GROUP BY T2.CreditCardType ORDER BY COUNT(T2.CreditCardType) DESC LIMIT 1 "What is the profit from selling the ""O'Sullivan Living Dimensions 2-Shelf Bookcases""?",SELECT DISTINCT T1.Profit FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.`Product Name` = 'O''Sullivan Living Dimensions 2-Shelf Bookcases' "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""" "Among the actors starred in Die Hard 2, list their net worth and birth date of actors with a height between 60 to 65.","SELECT T3.NetWorth, T3.`Date of Birth` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Die Hard 2' AND T3.`Height (Inches)` BETWEEN 60 AND 65" List all counties where there is no Bakers Square Restaurant & Pie Shop.,SELECT DISTINCT T2.county FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T1.label != 'bakers square restaurant & pie shop' Return the name of the artist who has the latest join year.,SELECT name FROM artist ORDER BY year_join DESC LIMIT 1 During what Championship was the Opponent Jeff Borowiak?,"SELECT championship FROM table_name_53 WHERE opponent = ""jeff borowiak""" Find the names of courses that have either 3 credits or 1 credit but 4 hours.,SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4 "What are the name, population, and life expectancy of the largest Asian country by land?","SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = ""Asia"" ORDER BY SurfaceArea DESC LIMIT 1" "Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?","SELECT tournament FROM table_name_56 WHERE surface = ""carpet"" AND date < 1995 AND opponent_in_the_final = ""ken flach robert seguso""" What is the Country of the Player with a To par of +1 and a Score of 74-70-70=214?,"SELECT country FROM table_name_12 WHERE to_par = ""+1"" AND score = 74 - 70 - 70 = 214" "What club has losses greater than 1, 4 for the wins, with points against less than 894?",SELECT club FROM table_name_83 WHERE loses > 1 AND wins = 4 AND points_against < 894 Which crytocurrency was not opened on 2013/5/3?,SELECT T1.name FROM coins AS T1 INNER JOIN historical AS T2 ON T1.id = T2.coin_id WHERE T2.date = '2013-05-03' AND T2.open IS NULL Count the number of students who have advisors.,SELECT count(DISTINCT s_id) FROM advisor "Which Venue has a Kitmaker of lotto, and a Team of apoel?","SELECT venue FROM table_name_37 WHERE kitmaker = ""lotto"" AND team = ""apoel""" Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.,SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin') What is the id of the aircraft with the maximum distance?,SELECT aid FROM Aircraft order by distance desc limit 1 What is the number of results for james shannon?,"SELECT COUNT(result) FROM table_1341598_22 WHERE incumbent = ""James Shannon""" Please list the full names of all the students who are research assistants with the highest research capability.,"SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN RA AS T2 ON T1.student_id = T2.student_id WHERE T2.capability = 5" What to par has 7 as the place?,"SELECT to_par FROM table_name_20 WHERE place = ""7""" What are the names of tourist attraction that Alison visited but Rosalind did not visit?,"SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Alison"" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = ""Rosalind"""